@layers-app/editor 2.3.4 → 2.3.5

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 (213) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/{layers.BdspVGV8.js → layers.-VlIwa08.js} +1 -1
  4. package/dist/{layers.DweKW_B0.js → layers.-sX0WmQt.js} +1 -1
  5. package/dist/{layers.RlehOKvV.js → layers.0c6wXC0n.js} +1 -1
  6. package/dist/{layers.hMMOCyZz.js → layers.0vgtum76.js} +1 -1
  7. package/dist/{layers.D52UU_R2.js → layers.17DOAqqj.js} +1 -1
  8. package/dist/{layers.CtoqswCy.js → layers.2JIsr3yt.js} +1 -1
  9. package/dist/{layers.BadlTAtr.js → layers.2ZWfG7Kc.js} +1 -1
  10. package/dist/{layers.C_drrdcR.js → layers.2bzzLfwP.js} +1 -1
  11. package/dist/{layers.Dtm-D3Ly.js → layers.2cgFKeRS.js} +1 -1
  12. package/dist/{layers.CHpFefB2.js → layers.3m_izwG9.js} +1 -1
  13. package/dist/{layers.C0k0jVBY.js → layers.6VTAjKBI.js} +1 -1
  14. package/dist/{layers.DcovnCpx.js → layers.86qWfXQi.js} +1 -1
  15. package/dist/{layers.D7u4cDT_.js → layers.8SzZ62td.js} +1 -1
  16. package/dist/{layers.B6OUTwFh.js → layers.9QrBwKsF.js} +1 -1
  17. package/dist/{layers.DFXFYTZB.js → layers.B-a377ag.js} +1 -1
  18. package/dist/{layers.CBVl-Y8i.js → layers.B0rfzZWu.js} +1 -1
  19. package/dist/{layers.BhdB2QUv.js → layers.B15WP6qd.js} +1 -1
  20. package/dist/{layers.tN3a8Oo6.js → layers.B1uaEePl.js} +1 -1
  21. package/dist/{layers.BRYASJ_E.js → layers.B44x6J9u.js} +1 -1
  22. package/dist/{layers.Cxbgp-1T.js → layers.B4C_CiFp.js} +1 -1
  23. package/dist/{layers.SKk1tc-m.js → layers.B4mf6d5h.js} +1 -1
  24. package/dist/{layers.N75bcj43.js → layers.B5sisCK-.js} +1 -1
  25. package/dist/{layers.BUskYH95.js → layers.B6-Ov7jz.js} +1 -1
  26. package/dist/{layers.ggIP-Fzz.js → layers.B6HtJ2cK.js} +1 -1
  27. package/dist/{layers.N4Zrx7q-.js → layers.B6hnUriW.js} +1 -1
  28. package/dist/{layers.2wuTyWpp.js → layers.B7GmOQb8.js} +1 -1
  29. package/dist/{layers.Cy8dC_QV.js → layers.B7hI2AQs.js} +1 -1
  30. package/dist/{layers.DhBupeTA.js → layers.BBzLQy3M.js} +1 -1
  31. package/dist/{layers.DWoQKjqK.js → layers.BC0gWTaw.js} +3 -3
  32. package/dist/{layers.Csi2VhZE.js → layers.BE5dGeDX.js} +1 -1
  33. package/dist/{layers.F9q61D5w.js → layers.BF6vXUH7.js} +2 -2
  34. package/dist/{layers.DPuigatn.js → layers.BIZNZsgb.js} +5 -5
  35. package/dist/{layers.BCf1Q8i1.js → layers.BItTEMRl.js} +1 -1
  36. package/dist/{layers.Dg6V_oqM.js → layers.BKkZ8xmN.js} +1 -1
  37. package/dist/{layers.DSOnYa-t.js → layers.BMDftC1Y.js} +1 -1
  38. package/dist/{layers.C3k_-Noa.js → layers.BN7MKbFn.js} +1 -1
  39. package/dist/{layers.CWSWbzs5.js → layers.BQaxFGFv.js} +1 -1
  40. package/dist/{layers.EcuBCqMx.js → layers.BQxQ_VHS.js} +1 -1
  41. package/dist/{layers.BuTNfme2.js → layers.BTlkMiGU.js} +1 -1
  42. package/dist/{layers.CFOND1ax.js → layers.BUNnlIv8.js} +1 -1
  43. package/dist/{layers.C8I72hVl.js → layers.BVWiN8dT.js} +1 -1
  44. package/dist/layers.BWIbEOqS.js +8 -0
  45. package/dist/{layers.DGxOvt5E.js → layers.BWlAwfde.js} +1 -1
  46. package/dist/{layers.DQ5N1odu.js → layers.BXR7Q4O0.js} +1 -1
  47. package/dist/{layers.7GA8oS85.js → layers.BZGj5Vvb.js} +1 -1
  48. package/dist/{layers.CvvkD_6p.js → layers.BdMpp7lE.js} +3 -3
  49. package/dist/{layers.Bo1LAg6M.js → layers.BeTgCSs7.js} +1 -1
  50. package/dist/{layers.BLrJkiv2.js → layers.BfFyHpnJ.js} +1 -1
  51. package/dist/{layers.D7KLHeag.js → layers.Bh2i6eZ5.js} +1 -1
  52. package/dist/{layers.DuSQZPzD.js → layers.BhGOdtE4.js} +1 -1
  53. package/dist/{layers.CnUuDK8R.js → layers.BihEbjyD.js} +3 -3
  54. package/dist/{layers.B39nSEJW.js → layers.Bisk-KjY.js} +3 -3
  55. package/dist/{layers.obAzlOBR.js → layers.BizaKgK4.js} +1 -1
  56. package/dist/{layers.JYZAPh1W.js → layers.BjMXZ7Hq.js} +1 -1
  57. package/dist/{layers.5AXHQhpF.js → layers.Bk3yddNB.js} +2 -2
  58. package/dist/{layers.CyCxa0pd.js → layers.Bkv2PBuz.js} +1 -1
  59. package/dist/{layers.Edui0n_y.js → layers.BmFjermk.js} +1 -1
  60. package/dist/{layers.DJPXU9HX.js → layers.BoKVPhkA.js} +4 -4
  61. package/dist/{layers.B_M8cWZA.js → layers.Btr7wO_I.js} +1 -1
  62. package/dist/{layers.DuzxjeNW.js → layers.Bx_ZcWeM.js} +1 -1
  63. package/dist/{layers.DhDneDrI.js → layers.C-VUvnab.js} +1 -1
  64. package/dist/{layers.CvV-edsK.js → layers.C-jqGjpM.js} +1 -1
  65. package/dist/{layers.C4lV7Qa3.js → layers.C1Sn3_x5.js} +3 -3
  66. package/dist/{layers.0PleFK5G.js → layers.C1_3pIGA.js} +1 -1
  67. package/dist/{layers.D3wf2E6j.js → layers.C4Icfx-V.js} +1 -1
  68. package/dist/{layers.BjrLmgLM.js → layers.C4kK4zJF.js} +1 -1
  69. package/dist/{layers.kW32UeBD.js → layers.C5rFXigo.js} +3991 -3968
  70. package/dist/{layers.BZyAIirs.js → layers.C61WJJHF.js} +1 -1
  71. package/dist/{layers.CVfJgUq4.js → layers.C69ZxLar.js} +1 -1
  72. package/dist/{layers.BZpXCUqh.js → layers.C6dgM4o8.js} +1 -1
  73. package/dist/{layers.BowFO5ud.js → layers.C6xQn98q.js} +1 -1
  74. package/dist/{layers.CQFPyts7.js → layers.C823iYdQ.js} +1 -1
  75. package/dist/{layers.BIeX5XWr.js → layers.CBGG3KL2.js} +1 -1
  76. package/dist/{layers.MeusfLB1.js → layers.CCnDiTT2.js} +1 -1
  77. package/dist/{layers.CbIIgE8p.js → layers.CCoVuv41.js} +1 -1
  78. package/dist/{layers.r6ZKBaGf.js → layers.CCqW4TYW.js} +1 -1
  79. package/dist/{layers.BEgmCoMc.js → layers.CDu9Fedl.js} +1 -1
  80. package/dist/{layers.CPaWVpzB.js → layers.CGY5P1_D.js} +1 -1
  81. package/dist/layers.CGvy11qi.js +1 -0
  82. package/dist/{layers.BiPcbPSh.js → layers.CHSvvNvL.js} +1 -1
  83. package/dist/{layers.C6Wa0qPn.js → layers.CJkt25xp.js} +1 -1
  84. package/dist/{layers.C7-b6ZX7.js → layers.CKibrigV.js} +1 -1
  85. package/dist/{layers.B5FxiH2U.js → layers.CNUN3x_C.js} +1 -1
  86. package/dist/{layers.DMBxr9Pj.js → layers.CNnPs2if.js} +1 -1
  87. package/dist/{layers.D2tYgW86.js → layers.CQ1Gv2d_.js} +1 -1
  88. package/dist/{layers.Dq_WtjyN.js → layers.CRQovLVV.js} +3 -3
  89. package/dist/{layers.CQdY4QwF.js → layers.CRfxFI67.js} +1 -1
  90. package/dist/{layers.DHM0V-Zv.js → layers.CT7Of9Sb.js} +1 -1
  91. package/dist/{layers.D01fpNJH.js → layers.CU2qQ4d6.js} +1 -1
  92. package/dist/{layers.D0MK-z30.js → layers.CU_vQfRq.js} +1 -1
  93. package/dist/{layers.DpzGffQR.js → layers.CVnJv17O.js} +1 -1
  94. package/dist/{layers.Cx5RTedK.js → layers.CXwi01IS.js} +3 -3
  95. package/dist/{layers.CfZJoPMp.js → layers.CZl3nnA0.js} +1 -1
  96. package/dist/{layers.BQXnkjP-.js → layers.CaTPheMV.js} +1 -1
  97. package/dist/{layers.CIqRj3RS.js → layers.CdMoNgHT.js} +1 -1
  98. package/dist/{layers.CHpWy1Bo.js → layers.CdXjjB-I.js} +1 -1
  99. package/dist/{layers.CXvGlT89.js → layers.ChD0vCTn.js} +1 -1
  100. package/dist/{layers.CnK_qHuK.js → layers.CicSmn28.js} +1 -1
  101. package/dist/{layers.DP2VNpAC.js → layers.CjS5US5X.js} +1 -1
  102. package/dist/{layers.DWbsE2l9.js → layers.CmbxAH_W.js} +1 -1
  103. package/dist/{layers.XPLsiptx.js → layers.Cr_zK84w.js} +1 -1
  104. package/dist/{layers.Bhca0e70.js → layers.CsDm4Rcf.js} +1 -1
  105. package/dist/{layers.CldD1A0D.js → layers.CtMvBJBS.js} +3 -3
  106. package/dist/{layers.lWvrYYB2.js → layers.Cu1LU2Ec.js} +1 -1
  107. package/dist/{layers.DJeFp5b7.js → layers.CuQ5yUXE.js} +1 -1
  108. package/dist/{layers.C4cbrWzv.js → layers.Cvas4L-Y.js} +1 -1
  109. package/dist/{layers.BrF6zNf0.js → layers.Cwzvd6Kr.js} +2 -2
  110. package/dist/{layers.BYtOcusf.js → layers.CxIb0x7b.js} +1 -1
  111. package/dist/{layers.CpmsbWkd.js → layers.CydZYFGx.js} +1 -1
  112. package/dist/{layers.Cc9tZe84.js → layers.D-JVc3kQ.js} +1 -1
  113. package/dist/{layers.CYoWebZv.js → layers.D-LT7f4r.js} +1 -1
  114. package/dist/{layers.CTEplTF6.js → layers.D06gLg3w.js} +1 -1
  115. package/dist/{layers.DXsyYAKZ.js → layers.D09E3UyF.js} +1 -1
  116. package/dist/{layers.JyvC6WBE.js → layers.D09a77gC.js} +1 -1
  117. package/dist/{layers.DrCmOiYU.js → layers.D0axh6Co.js} +1 -1
  118. package/dist/{layers.Cvv1NnPe.js → layers.D1utucmY.js} +1 -1
  119. package/dist/{layers.6MaHjtbz.js → layers.D2p4qgjB.js} +1 -1
  120. package/dist/{layers.D4QEpwG0.js → layers.D2qBFxgd.js} +1 -1
  121. package/dist/{layers.CrCEI_c_.js → layers.D2wLh8jH.js} +4 -4
  122. package/dist/{layers.BvMdsT3l.js → layers.D4uF4iwo.js} +1 -1
  123. package/dist/{layers.DMhyce4z.js → layers.D5dPGsVY.js} +1 -1
  124. package/dist/{layers.CjwjfqsY.js → layers.D8-qfMHo.js} +3 -3
  125. package/dist/{layers.DQZe7qaD.js → layers.D9OckQ1d.js} +1 -1
  126. package/dist/{layers.CgueVNsx.js → layers.DAxpLuZ_.js} +2 -2
  127. package/dist/{layers.B73OSDcB.js → layers.DD7ggCz9.js} +1 -1
  128. package/dist/{layers.BHk8P-H6.js → layers.DFFceBll.js} +1 -1
  129. package/dist/{layers.DmHg2u_u.js → layers.DHu3WKbV.js} +1 -1
  130. package/dist/{layers.Bd9qqMf-.js → layers.DJm4Qf-9.js} +1 -1
  131. package/dist/{layers.CUsiYnqE.js → layers.DKKB1GnT.js} +1 -1
  132. package/dist/{layers.DABantmY.js → layers.DMpvcdGz.js} +1 -1
  133. package/dist/{layers.FcspHymt.js → layers.DNPMShS8.js} +1 -1
  134. package/dist/{layers._DrNSkWt.js → layers.DNjRCLMi.js} +3 -3
  135. package/dist/{layers.DXADF5qA.js → layers.DP0wVN8o.js} +1 -1
  136. package/dist/{layers.CHSZQQyP.js → layers.DP2R_RPi.js} +1 -1
  137. package/dist/layers.DR2ZRDRj.js +1 -0
  138. package/dist/{layers.Cg4x56P_.js → layers.DRhofXpI.js} +1 -1
  139. package/dist/{layers.2OEax2Ut.js → layers.DTV8sNFP.js} +4 -4
  140. package/dist/layers.DVC1WbzR.js +6 -0
  141. package/dist/{layers.Dr2qipmI.js → layers.DXmZcpoP.js} +1 -1
  142. package/dist/{layers.C7iF_FwX.js → layers.DZGK4XDT.js} +1 -1
  143. package/dist/{layers.XX5XNILo.js → layers.DZLCGtWj.js} +1 -1
  144. package/dist/{layers.BRhZTMWS.js → layers.D_OIYjde.js} +65 -65
  145. package/dist/{layers.DI3JHMOb.js → layers.DaLxSEou.js} +1 -1
  146. package/dist/{layers.C1k1xMV8.js → layers.DbGFtvlR.js} +2 -2
  147. package/dist/{layers.w-AYiGTY.js → layers.Dbob_7EM.js} +2 -2
  148. package/dist/{layers.C5EWGYlE.js → layers.DcpdxBGE.js} +1 -1
  149. package/dist/{layers.B93zcbqs.js → layers.DdbXZ1gb.js} +1 -1
  150. package/dist/{layers.CY7nxTg-.js → layers.DfX-U489.js} +1 -1
  151. package/dist/{layers.CGgLAkdP.js → layers.Dg-BSviK.js} +1 -1
  152. package/dist/{layers.BXd04QLk.js → layers.Dh-SmjOb.js} +1 -1
  153. package/dist/{layers.B_FtAqzW.js → layers.DhAt8V0V.js} +1 -1
  154. package/dist/{layers.D3IJ0sRX.js → layers.DhH4r58e.js} +1 -1
  155. package/dist/{layers.Cqn7DhvL.js → layers.DhSlVkxD.js} +2 -2
  156. package/dist/{layers.Dsemf5tS.js → layers.DhZ_TFJ0.js} +1 -1
  157. package/dist/{layers.sy9IxFCQ.js → layers.DiY6E5_8.js} +2 -2
  158. package/dist/{layers.BFEsUjiM.js → layers.Dl793PNA.js} +1 -1
  159. package/dist/{layers.-sdwiz0i.js → layers.Dn19xoY_.js} +3 -3
  160. package/dist/{layers.Bum5DF0-.js → layers.DneV1Ycl.js} +1 -1
  161. package/dist/{layers.DDjz2pwY.js → layers.DpAK2gd6.js} +1 -1
  162. package/dist/{layers.DKLv4YEB.js → layers.Dr4y8wct.js} +1 -1
  163. package/dist/{layers.BRcCviJD.js → layers.DrsuDOat.js} +1 -1
  164. package/dist/{layers.D6MbfBZi.js → layers.DtmjjMZC.js} +1 -1
  165. package/dist/{layers.yQeTgbN9.js → layers.Duy_rICR.js} +1 -1
  166. package/dist/{layers.C4gIdlMV.js → layers.DvbVUIKW.js} +1 -1
  167. package/dist/{layers.CrNKZzI0.js → layers.DwMwTyQj.js} +1 -1
  168. package/dist/{layers.C_gkaxJM.js → layers.DwTFxZ0P.js} +1 -1
  169. package/dist/{layers.Dm2l-1Xt.js → layers.DxngWEtn.js} +1 -1
  170. package/dist/{layers.DsrZOmwn.js → layers.DyyWmFvG.js} +1 -1
  171. package/dist/{layers.5r9GGuXi.js → layers.FBJd5wXM.js} +4 -4
  172. package/dist/{layers.BMaiAC-V.js → layers.FBRhxm5w.js} +1 -1
  173. package/dist/{layers.CYTLm-mZ.js → layers.FUOopWkf.js} +1 -1
  174. package/dist/{layers.CwFBpCFf.js → layers.HPMZOLEE.js} +1 -1
  175. package/dist/{layers.CUaTL9MG.js → layers.L-n3e2jf.js} +1 -1
  176. package/dist/{layers.KOlq1Hho.js → layers.LzTzcphk.js} +1 -1
  177. package/dist/{layers.Ces_o8KV.js → layers.NTPlff8Z.js} +1 -1
  178. package/dist/{layers.BBQEHuFV.js → layers.NksOW9p9.js} +1 -1
  179. package/dist/{layers.Br60Keya.js → layers.OEJw6wn-.js} +1 -1
  180. package/dist/{layers.DTfOr0oo.js → layers.PYk-Em47.js} +1 -1
  181. package/dist/{layers.CVqlVRtx.js → layers.QAZr2nnm.js} +1 -1
  182. package/dist/{layers.B_l3jMUZ.js → layers.QHxbhMk_.js} +24 -24
  183. package/dist/{layers.H0EEBBi3.js → layers.RsYVppoA.js} +1 -1
  184. package/dist/{layers.D1RC6DCX.js → layers.THKMKVT6.js} +1 -1
  185. package/dist/{layers.DVHzGY1k.js → layers.TWd_cgiD.js} +2 -2
  186. package/dist/{layers.BHU4-517.js → layers.Ug1GskGJ.js} +1 -1
  187. package/dist/{layers.Cjw2KNGI.js → layers.VYY450Oj.js} +2 -2
  188. package/dist/{layers.BR4n0PVT.js → layers.W6xf19CY.js} +1 -1
  189. package/dist/{layers.B5ojWM9Z.js → layers.X6IXk5Ee.js} +8 -8
  190. package/dist/{layers.BdT-NrMU.js → layers.XOsXY-sg.js} +1 -1
  191. package/dist/{layers.DhRINGeq.js → layers.Zyqql1eX.js} +1 -1
  192. package/dist/{layers.cPonntig.js → layers.abv2ZTYE.js} +1 -1
  193. package/dist/{layers.Cbu8_QWs.js → layers.g__NfmoJ.js} +1 -1
  194. package/dist/{layers.BXEkLEDt.js → layers.hQQwRdmZ.js} +1 -1
  195. package/dist/{layers.B94bVQNr.js → layers.k5vXqBeZ.js} +1 -1
  196. package/dist/{layers.jqkNr4Sa.js → layers.kNnmOm6h.js} +1 -1
  197. package/dist/{layers.Bfu6zuA4.js → layers.l3OlQTgS.js} +1 -1
  198. package/dist/{layers.DW5RcmfS.js → layers.mBZAmKrM.js} +1 -1
  199. package/dist/{layers.DIAtY6WD.js → layers.nFMAj0WU.js} +1 -1
  200. package/dist/{layers.D3NWgg1X.js → layers.pz202BJa.js} +1 -1
  201. package/dist/{layers.DQnLEutf.js → layers.qcn8dPut.js} +1 -1
  202. package/dist/{layers.D8-C8ifi.js → layers.rkBh2_24.js} +1 -1
  203. package/dist/{layers.CmiH0RyA.js → layers.tNdUk2Ti.js} +3 -3
  204. package/dist/{layers.CWzI8k8O.js → layers.tOcZDO9n.js} +1 -1
  205. package/dist/{layers.CtFYNGbo.js → layers.vlJZw41F.js} +1 -1
  206. package/dist/{layers.CoQqKHpf.js → layers.xID5X81j.js} +1 -1
  207. package/dist/{layers.fD0u5167.js → layers.xbqkY4fF.js} +7 -7
  208. package/dist/{layers.BSH3wDTU.js → layers.yQIceN-g.js} +1 -1
  209. package/package.json +1 -1
  210. package/dist/layers.BUj4G0UD.js +0 -6
  211. package/dist/layers.BwPl0N7J.js +0 -8
  212. package/dist/layers.CWdRusbc.js +0 -1
  213. package/dist/layers.FrLw-XkU.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("./layers.5r9GGuXi.js"),G=require("lodash-es"),P=require("./layers.BLd2spTm.js"),V=require("./layers.CGgLAkdP.js"),j=require("./layers.CWdRusbc.js");function F(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(a,i,o.get?o:{enumerable:!0,get:()=>e[i]})}}return a.default=e,Object.freeze(a)}const E=F(G);function N(e){return typeof e=="string"?new r.Selection([document.querySelectorAll(e)],[document.documentElement]):new r.Selection([r.array(e)],r.root)}function M(e,a){return!!e.children(a).length}function R(e){return _(e.v)+":"+_(e.w)+":"+_(e.name)}var H=/:/g;function _(e){return e?String(e).replace(H,"\\:"):""}function B(e,a){a&&e.attr("style",a)}function K(e,a,i){a&&e.attr("class",a).attr("class",i+" "+e.attr("class"))}function O(e,a){var i=a.graph();if(E.isPlainObject(i)){var o=i.transition;if(E.isFunction(o))return o(e)}return e}function D(e,a){var i=e.append("foreignObject").attr("width","100000"),o=i.append("xhtml:div");o.attr("xmlns","http://www.w3.org/1999/xhtml");var d=a.label;switch(typeof d){case"function":o.insert(d);break;case"object":o.insert(function(){return d});break;default:o.html(d)}B(o,a.labelStyle),o.style("display","inline-block"),o.style("white-space","nowrap");var p=o.node().getBoundingClientRect();return i.attr("width",p.width).attr("height",p.height),i}const I={},U=function(e){const a=Object.keys(e);for(const i of a)I[i]=e[i]},z=async function(e,a,i,o,d,p){const g=o.select(`[id="${i}"]`),s=Object.keys(e);for(const b of s){const l=e[b];let h="default";l.classes.length>0&&(h=l.classes.join(" ")),h=h+" flowchart-label";const w=r.getStylesFromArray(l.styles);let t=l.text!==void 0?l.text:l.id,c;if(r.log$1.info("vertex",l,l.labelType),l.labelType==="markdown")r.log$1.info("vertex",l,l.labelType);else if(r.evaluate(r.getConfig().flowchart.htmlLabels))c=D(g,{label:t}).node(),c.parentNode.removeChild(c);else{const k=d.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const T=t.split(r.common$1.lineBreakRegex);for(const $ of T){const v=d.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}c=k}let f=0,n="";switch(l.type){case"round":f=5,n="rect";break;case"square":n="rect";break;case"diamond":n="question";break;case"hexagon":n="hexagon";break;case"odd":n="rect_left_inv_arrow";break;case"lean_right":n="lean_right";break;case"lean_left":n="lean_left";break;case"trapezoid":n="trapezoid";break;case"inv_trapezoid":n="inv_trapezoid";break;case"odd_right":n="rect_left_inv_arrow";break;case"circle":n="circle";break;case"ellipse":n="ellipse";break;case"stadium":n="stadium";break;case"subroutine":n="subroutine";break;case"cylinder":n="cylinder";break;case"group":n="rect";break;case"doublecircle":n="doublecircle";break;default:n="rect"}const S=await r.renderKatexSanitized(t,r.getConfig());a.setNode(l.id,{labelStyle:w.labelStyle,shape:n,labelText:S,labelType:l.labelType,rx:f,ry:f,class:h,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:p.db.getTooltip(l.id)||"",domId:p.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:r.getConfig().flowchart.padding}),r.log$1.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:n,labelText:S,rx:f,ry:f,class:h,style:w.style,id:l.id,domId:p.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:r.getConfig().flowchart.padding})}},q=async function(e,a,i){r.log$1.info("abc78 edges = ",e);let o=0,d={},p,g;if(e.defaultStyle!==void 0){const s=r.getStylesFromArray(e.defaultStyle);p=s.style,g=s.labelStyle}for(const s of e){o++;const b="L-"+s.start+"-"+s.end;d[b]===void 0?(d[b]=0,r.log$1.info("abc78 new entry",b,d[b])):(d[b]++,r.log$1.info("abc78 new entry",b,d[b]));let l=b+"-"+d[b];r.log$1.info("abc78 new link id to be used is",b,l,d[b]);const h="LS-"+s.start,w="LE-"+s.end,t={style:"",labelStyle:""};switch(t.minlen=s.length||1,s.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let c="",f="";switch(s.stroke){case"normal":c="fill:none;",p!==void 0&&(c=p),g!==void 0&&(f=g),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(s.style!==void 0){const n=r.getStylesFromArray(s.style);c=n.style,f=n.labelStyle}t.style=t.style+=c,t.labelStyle=t.labelStyle+=f,s.interpolate!==void 0?t.curve=r.interpolateToCurve(s.interpolate,r.curveLinear):e.defaultInterpolate!==void 0?t.curve=r.interpolateToCurve(e.defaultInterpolate,r.curveLinear):t.curve=r.interpolateToCurve(I.curve,r.curveLinear),s.text===void 0?s.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=s.labelType,t.label=await r.renderKatexSanitized(s.text.replace(r.common$1.lineBreakRegex,`
1
+ "use strict";const r=require("./layers.FBJd5wXM.js"),G=require("lodash-es"),P=require("./layers.BLd2spTm.js"),V=require("./layers.Dg-BSviK.js"),j=require("./layers.CGvy11qi.js");function F(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(a,i,o.get?o:{enumerable:!0,get:()=>e[i]})}}return a.default=e,Object.freeze(a)}const E=F(G);function N(e){return typeof e=="string"?new r.Selection([document.querySelectorAll(e)],[document.documentElement]):new r.Selection([r.array(e)],r.root)}function M(e,a){return!!e.children(a).length}function R(e){return _(e.v)+":"+_(e.w)+":"+_(e.name)}var H=/:/g;function _(e){return e?String(e).replace(H,"\\:"):""}function B(e,a){a&&e.attr("style",a)}function K(e,a,i){a&&e.attr("class",a).attr("class",i+" "+e.attr("class"))}function O(e,a){var i=a.graph();if(E.isPlainObject(i)){var o=i.transition;if(E.isFunction(o))return o(e)}return e}function D(e,a){var i=e.append("foreignObject").attr("width","100000"),o=i.append("xhtml:div");o.attr("xmlns","http://www.w3.org/1999/xhtml");var d=a.label;switch(typeof d){case"function":o.insert(d);break;case"object":o.insert(function(){return d});break;default:o.html(d)}B(o,a.labelStyle),o.style("display","inline-block"),o.style("white-space","nowrap");var p=o.node().getBoundingClientRect();return i.attr("width",p.width).attr("height",p.height),i}const I={},U=function(e){const a=Object.keys(e);for(const i of a)I[i]=e[i]},z=async function(e,a,i,o,d,p){const g=o.select(`[id="${i}"]`),s=Object.keys(e);for(const b of s){const l=e[b];let h="default";l.classes.length>0&&(h=l.classes.join(" ")),h=h+" flowchart-label";const w=r.getStylesFromArray(l.styles);let t=l.text!==void 0?l.text:l.id,c;if(r.log$1.info("vertex",l,l.labelType),l.labelType==="markdown")r.log$1.info("vertex",l,l.labelType);else if(r.evaluate(r.getConfig().flowchart.htmlLabels))c=D(g,{label:t}).node(),c.parentNode.removeChild(c);else{const k=d.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const T=t.split(r.common$1.lineBreakRegex);for(const $ of T){const v=d.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=$,k.appendChild(v)}c=k}let f=0,n="";switch(l.type){case"round":f=5,n="rect";break;case"square":n="rect";break;case"diamond":n="question";break;case"hexagon":n="hexagon";break;case"odd":n="rect_left_inv_arrow";break;case"lean_right":n="lean_right";break;case"lean_left":n="lean_left";break;case"trapezoid":n="trapezoid";break;case"inv_trapezoid":n="inv_trapezoid";break;case"odd_right":n="rect_left_inv_arrow";break;case"circle":n="circle";break;case"ellipse":n="ellipse";break;case"stadium":n="stadium";break;case"subroutine":n="subroutine";break;case"cylinder":n="cylinder";break;case"group":n="rect";break;case"doublecircle":n="doublecircle";break;default:n="rect"}const S=await r.renderKatexSanitized(t,r.getConfig());a.setNode(l.id,{labelStyle:w.labelStyle,shape:n,labelText:S,labelType:l.labelType,rx:f,ry:f,class:h,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:p.db.getTooltip(l.id)||"",domId:p.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:r.getConfig().flowchart.padding}),r.log$1.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:n,labelText:S,rx:f,ry:f,class:h,style:w.style,id:l.id,domId:p.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:r.getConfig().flowchart.padding})}},q=async function(e,a,i){r.log$1.info("abc78 edges = ",e);let o=0,d={},p,g;if(e.defaultStyle!==void 0){const s=r.getStylesFromArray(e.defaultStyle);p=s.style,g=s.labelStyle}for(const s of e){o++;const b="L-"+s.start+"-"+s.end;d[b]===void 0?(d[b]=0,r.log$1.info("abc78 new entry",b,d[b])):(d[b]++,r.log$1.info("abc78 new entry",b,d[b]));let l=b+"-"+d[b];r.log$1.info("abc78 new link id to be used is",b,l,d[b]);const h="LS-"+s.start,w="LE-"+s.end,t={style:"",labelStyle:""};switch(t.minlen=s.length||1,s.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let c="",f="";switch(s.stroke){case"normal":c="fill:none;",p!==void 0&&(c=p),g!==void 0&&(f=g),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(s.style!==void 0){const n=r.getStylesFromArray(s.style);c=n.style,f=n.labelStyle}t.style=t.style+=c,t.labelStyle=t.labelStyle+=f,s.interpolate!==void 0?t.curve=r.interpolateToCurve(s.interpolate,r.curveLinear):e.defaultInterpolate!==void 0?t.curve=r.interpolateToCurve(e.defaultInterpolate,r.curveLinear):t.curve=r.interpolateToCurve(I.curve,r.curveLinear),s.text===void 0?s.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=s.labelType,t.label=await r.renderKatexSanitized(s.text.replace(r.common$1.lineBreakRegex,`
2
2
  `),r.getConfig()),s.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=l,t.classes="flowchart-link "+h+" "+w,a.setEdge(s.start,s.end,t,o)}},W=function(e,a){return a.db.getClasses()},X=async function(e,a,i,o){r.log$1.info("Drawing flowchart");let d=o.db.getDirection();d===void 0&&(d="TD");const{securityLevel:p,flowchart:g}=r.getConfig(),s=g.nodeSpacing||50,b=g.rankSpacing||50;let l;p==="sandbox"&&(l=r.select("#i"+a));const h=p==="sandbox"?r.select(l.nodes()[0].contentDocument.body):r.select("body"),w=p==="sandbox"?l.nodes()[0].contentDocument:document,t=new P.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:s,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let c;const f=o.db.getSubGraphs();r.log$1.info("Subgraphs - ",f);for(let u=f.length-1;u>=0;u--)c=f[u],r.log$1.info("Subgraph - ",c),o.db.addVertex(c.id,{text:c.title,type:c.labelType},"group",void 0,c.classes,c.dir);const n=o.db.getVertices(),S=o.db.getEdges();r.log$1.info("Edges",S);let k=0;for(k=f.length-1;k>=0;k--){c=f[k],N("cluster").append("text");for(let u=0;u<c.nodes.length;u++)r.log$1.info("Setting up subgraphs",c.nodes[u],c.id),t.setParent(c.nodes[u],c.id)}await z(n,t,a,h,w,o),await q(S,t);const T=h.select(`[id="${a}"]`),$=h.select("#"+a+" g");if(await V.render($,t,["point","circle","cross"],"flowchart",a),r.utils.insertTitle(T,"flowchartTitleText",g.titleTopMargin,o.db.getDiagramTitle()),r.setupGraphViewbox$1(t,T,g.diagramPadding,g.useMaxWidth),o.db.indexNodes("subGraph"+k),!g.htmlLabels){const u=w.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const x of u){const m=x.getBBox(),y=w.createElementNS("http://www.w3.org/2000/svg","rect");y.setAttribute("rx",0),y.setAttribute("ry",0),y.setAttribute("width",m.width),y.setAttribute("height",m.height),x.insertBefore(y,x.firstChild)}}Object.keys(n).forEach(function(u){const x=n[u];if(x.link){const m=r.select("#"+a+' [id="'+u+'"]');if(m){const y=w.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),y.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const C=m.insert(function(){return y},":first-child"),L=m.select(".label-container");L&&C.append(function(){return L.node()});const A=m.select(".label");A&&C.append(function(){return A.node()})}}})},J={setConf:U,addVertices:z,addEdges:q,getClasses:W,draw:X},Q=(e,a)=>{const i=j.channel,o=i(e,"r"),d=i(e,"g"),p=i(e,"b");return r.rgba(o,d,p,a)},Y=e=>`.label {
3
3
  font-family: ${e.fontFamily};
4
4
  color: ${e.nodeTextColor||e.textColor};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.5r9GGuXi.js");require("lodash-es");const Ve=require("./layers.Cyzu9PKQ.js"),Oe=require("./layers.BLd2spTm.js");require("./layers.Dxr2o7ON.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const Le=require("./layers.DW5RcmfS.js");var ce=(function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},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],re={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,n,a,r,y,s,K){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.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,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],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=r.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(r=q,q=r.pop()),q=n.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)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.FBJd5wXM.js");require("lodash-es");const Ve=require("./layers.Cyzu9PKQ.js"),Oe=require("./layers.BLd2spTm.js");require("./layers.Dxr2o7ON.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const Le=require("./layers.mBZAmKrM.js");var ce=(function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},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],re={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,n,a,r,y,s,K){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.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,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],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=r.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(r=q,q=r.pop()),q=n.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
2
  `+E.showPosition()+`
3
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(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||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 n=i.match(/(?:\r\n?|\n).*/g);return n?(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 n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=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===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-n]),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
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(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react"),z=require("react-i18next"),$=require("@lexical/react/LexicalComposerContext"),x=require("@mantine/core"),S=require("lexical"),t=require("./layers.BRhZTMWS.js"),B=require("@layers-app/shared"),H=require("@lexical/react/useLexicalEditable"),R=require("@mantine/hooks");require("@lexical/react/LexicalDecoratorBlockNode");require("@lexical/utils");require("@lexical/mark");require("@lexical/code");require("@lexical/selection");require("react-dom");require("@lexical/react/LexicalErrorBoundary");require("@lexical/react/LexicalBlockWithAlignableContents");require("@mantine/notifications");function xe(e,a){const n=document.createElement("a");n.href=e,n.download=a,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()}function V(e){try{const n=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return n.includes(".")?n:`${n}.png`}catch{return"image"}}async function G(e,a){const n=await fetch(e);if(!n.ok)throw new Error("fetch failed");const s=await n.blob(),l=URL.createObjectURL(s);try{xe(l,a)}finally{setTimeout(()=>URL.revokeObjectURL(l),0)}}function be({editor:e,nodeKey:a,href:n,onClose:s}){const[l,d]=r.useState(()=>t.getLinkTypeFromUrl(n)),[c,u]=r.useState(()=>t.removeProtocol(n)),[I,v]=r.useState(!1),m=r.useCallback(g=>{d(g),v(!1)},[]),f=r.useCallback(g=>{u(g),v(!1)},[]),b=r.useCallback(()=>{const g=t.addProtocolIfNeeded(c.trim(),l);if(!g||!t.isValidUrl(g,l)){v(!0);return}t.$writeImageLinkToNode(e,a,t.sanitizeUrl(g)),s()},[e,a,c,l,s]),C=r.useCallback(()=>{t.$writeImageLinkToNode(e,a,""),s()},[e,a,s]),y=r.useCallback(g=>{g.key==="Enter"?(g.preventDefault(),b()):g.key==="Escape"&&(g.preventDefault(),s())},[b,s]);return{linkType:l,linkUrl:c,error:I,onLinkTypeChange:m,onUrlInputChange:f,onUrlInputKeyDown:y,onSave:b,onRemove:C}}function X({editor:e,nodeKey:a,href:n,onClose:s,mobile:l}){const d=r.useRef(null),c=be({editor:e,nodeKey:a,href:n,onClose:s});return r.useEffect(()=>{var u;(u=d.current)==null||u.focus({preventScroll:!0})},[]),o.jsx(t.CreateMode,{inputRef:d,linkUrl:c.linkUrl,linkType:c.linkType,error:c.error,mobile:l,onLinkTypeChange:c.onLinkTypeChange,onUrlInputChange:c.onUrlInputChange,onUrlInputKeyDown:c.onUrlInputKeyDown,onCancel:s,onSave:c.onSave,onRemove:n?c.onRemove:void 0})}function re({opened:e,onOpenChange:a,t:n,onDownload:s,onDelete:l,hasLink:d,onLinkAction:c}){return o.jsxs(x.Menu,{opened:e,onChange:a,transitionProps:t.animationMenu,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[o.jsx(x.Menu.Target,{children:o.jsx(t.ActionIcon,{label:n("editor.toolbar.more"),icon:t.K1,iconColor:"var(--mantine-color-gray-text)","aria-label":n("editor.toolbar.more")})}),o.jsxs(x.Menu.Dropdown,{p:4,miw:164,w:"max-content",onMouseDown:u=>u.preventDefault(),children:[c&&o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.Icon,{name:"link",size:16})}),onClick:u=>{u.stopPropagation(),c()},children:n(d?"editor.link.editLink":"editor.link.addLink")}),o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16})}),onClick:u=>{u.stopPropagation(),s()},children:n("editor.gallery.download")}),o.jsx(x.Menu.Item,{color:"red",leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"red.6",children:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16})}),onClick:u=>{u.stopPropagation(),l()},children:n("editor.contextMenu.delete")})]})]})}const ae=({t:e,src:a,setShown:n,id:s})=>{const[l,{open:d,close:c}]=R.useDisclosure(!1),u=t.useCanDownload(),I=r.useMemo(()=>[{id:!s||s==="0"?"":s,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,s]),v=m=>{m?d():c()};return o.jsxs(o.Fragment,{children:[o.jsx(B.AttachmentsGalleryModal,{opened:l,onOpenChange:v,attachments:I,allowDownload:u}),o.jsx(t.ActionIcon,{label:e("editor.image.preview"),icon:t.gn,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{n(!1),d()}})]})},ke=({nodeKey:e,src:a,href:n})=>{const[s]=$.useLexicalComposerContext(),l=H.useLexicalEditable(),[d,c]=r.useState(!1),[u,I]=r.useState(!1),[v,m]=r.useState(!1),{t:f}=z.useTranslation();r.useEffect(()=>{if(!v)return;const y=g=>{const k=g.target;k!=null&&k.closest(".floating-link-dropdown")||k!=null&&k.closest(".floating-link-type-combobox-dropdown")||m(!1)};return document.addEventListener("pointerdown",y,!0),()=>document.removeEventListener("pointerdown",y,!0)},[v]);const b=r.useCallback(()=>{s.update(()=>{const y=S.$getNodeByKey(e);t.$isImageNode(y)&&y.remove()})},[s,e]),C=r.useCallback(async()=>{if(a)try{await G(a,V(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:v,onChange:m,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:`media-actions ${l?"":"media-actions--readonly"}`,children:[o.jsx(ae,{t:f,src:a,setShown:()=>{}}),l&&o.jsxs(o.Fragment,{children:[o.jsx(t.NodeAlignmentMenu,{opened:d,setOpened:c,t:f,editor:s,nodeKey:e,setShown:()=>{}}),o.jsx(re,{opened:u,onOpenChange:I,t:f,onDownload:()=>void C(),onDelete:b,hasLink:!!n,onLinkAction:()=>m(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${n?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(X,{editor:s,nodeKey:e,href:n,onClose:()=>m(!1)})})]})},ve=()=>{};function ye({nodeKey:e,src:a,id:n,href:s}){const{t:l}=z.useTranslation(),[d]=$.useLexicalComposerContext(),c=H.useLexicalEditable(),[u,I]=r.useState(!1),[v,m]=r.useState(!1),[f,b]=r.useState(!1);r.useEffect(()=>{if(!f)return;const g=k=>{const p=k.target;p!=null&&p.closest(".floating-link-dropdown")||p!=null&&p.closest(".floating-link-type-combobox-dropdown")||b(!1)};return document.addEventListener("pointerdown",g,!0),()=>document.removeEventListener("pointerdown",g,!0)},[f]);const C=r.useCallback(()=>{m(!1),d.update(()=>{const g=S.$getNodeByKey(e);if(!t.$isImageNode(g))return;const k=g.getParent();t.$isImageOverlayWrapperNode(k)?k.remove():g.remove()})},[d,e]),y=r.useCallback(async()=>{if(a)try{await G(a,V(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:f,onChange:b,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:"media-actions visible",style:{position:"absolute",top:10,right:10,zIndex:10,pointerEvents:"auto",display:"flex",gap:4},onClick:g=>g.stopPropagation(),children:[o.jsx(ae,{t:l,src:a,setShown:ve,id:n}),c&&o.jsxs(o.Fragment,{children:[o.jsx(t.NodeAlignmentMenu,{opened:u,setOpened:I,t:l,editor:d,nodeKey:e}),o.jsx(re,{opened:v,onOpenChange:m,t:l,onDownload:()=>void y(),onDelete:C,hasLink:!!s,onLinkAction:()=>b(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${s?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(X,{editor:d,nodeKey:e,href:s,onClose:()=>b(!1)})})]})}function Ce({nodeKey:e,src:a,id:n,href:s}){const{t:l}=z.useTranslation(),[d]=$.useLexicalComposerContext(),c=H.useLexicalEditable(),u=t.useCanDownload(),[I,{open:v,close:m}]=R.useDisclosure(!1),[f,{open:b,close:C}]=R.useDisclosure(!1),[y,{open:g,close:k}]=R.useDisclosure(!1),p=()=>{m(),g()},L=r.useMemo(()=>[{id:!n||n==="0"?"":n,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,n]),E=()=>{m(),b()},D=r.useCallback(async()=>{if(m(),!!a)try{await G(a,V(a))}catch{}},[a,m]),T=r.useCallback(()=>{m(),d.update(()=>{const N=S.$getNodeByKey(e);t.$isImageNode(N)&&N.remove()})},[d,e,m]);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"image-touch-actions",style:{position:"absolute",top:8,right:8,zIndex:10,pointerEvents:"auto"},onClick:N=>N.stopPropagation(),children:o.jsx(t.ActionIcon,{label:l("editor.toolbar.more"),icon:t.O1,iconColor:"var(--mantine-color-gray-text)","aria-label":l("editor.toolbar.more"),onClick:v})}),o.jsx(B.AttachmentsGalleryModal,{opened:f,onOpenChange:N=>N?b():C(),attachments:L,allowDownload:u}),o.jsx(t.MobileDrawer,{opened:I,onClose:m,title:l("editor.image.mobileActions"),children:o.jsxs(x.Stack,{gap:4,p:0,children:[o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:E,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.gn,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.image.previewFullScreen")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:p,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.zz,size:16,color:"var(--mantine-color-dimmed)"}),children:l(s?"editor.link.editLink":"editor.link.addLink")}),u&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:()=>void D(),leftSection:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.gallery.download")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:T,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16,color:"var(--mantine-color-red-6)"}),children:l("editor.actions.delete")})]})}),o.jsx(t.MobileDrawer,{opened:y,onClose:k,title:l(s?"editor.link.editLink":"editor.link.addLink"),children:o.jsx(X,{editor:d,nodeKey:e,href:s,onClose:k,mobile:!0})})]})}const ie=e=>{const{width:a,height:n,isLoading:s,isError:l,src:d,id:c,altText:u,imageRef:I,maxWidth:v,aspectRatio:m,href:f}=e,b=r.useRef(null);return o.jsxs("div",{className:"media-wrapper","data-reserved-box":m?"":void 0,style:{width:a,height:m?"auto":n,aspectRatio:m||void 0,display:"inline-flex",position:"relative"},children:[o.jsx(x.LoadingOverlay,{visible:s,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),o.jsx("a",{className:"editor-image-link","data-link":f?"true":void 0,"data-href":f?t.sanitizeUrl(f):void 0,role:f?"link":void 0,rel:f?"noopener noreferrer":void 0,draggable:!1,onMouseDown:f?C=>{b.current={x:C.clientX,y:C.clientY}}:void 0,onClick:f?C=>{C.preventDefault();const y=b.current;b.current=null,!(y&&Math.hypot(C.clientX-y.x,C.clientY-y.y)>5)&&window.open(t.sanitizeUrl(f),"_blank","noopener,noreferrer")}:void 0,children:o.jsx(Ie,{className:null,src:d,altText:u,imageRef:I,width:"inherit",height:"inherit",maxWidth:v||"auto",id:c})}),t.IS_TOUCH_DEVICE&&o.jsx(Ce,{nodeKey:e.nodeKey,src:d,id:c,href:f}),t.IS_TOUCH_TABLET&&o.jsx(ye,{nodeKey:e.nodeKey,src:d,id:c,href:f}),t.IS_HOVER_CAPABLE&&!t.IS_TOUCH_DEVICE&&!t.IS_TOUCH_TABLET&&o.jsx(ke,{nodeKey:e.nodeKey,src:d,href:f})]})};function Ie({altText:e,className:a,imageRef:n,src:s,width:l,height:d,maxWidth:c,id:u}){const[I,v]=r.useState(!1);return o.jsx("img",{className:`${a||void 0} ${I?"":"loading"}`,src:s,alt:e,ref:n,style:{height:d,maxWidth:c,width:l},onLoad:()=>{s.includes("splash")?setTimeout(()=>{v(!0)},100):v(!0)},draggable:"false","data-id":u})}function je(e){const{disable:a}=r.useContext(t.Context);return a&&t.ImageNode.isPlaceholderSrc(e.src)?null:o.jsx(De,{...e})}function De({src:e,altText:a,nodeKey:n,width:s,height:l,maxWidth:d,showCaption:c,caption:u,id:I,create:v,alignment:m,imagePickerTab:f,aspectRatio:b,href:C}){var oe,ne;const y=r.useRef(null),[g,k]=r.useState(!0),[p]=$.useLexicalComposerContext(),[L,E]=r.useState(!0),[D,T]=r.useState({width:0,height:0}),{start:N}=t.useCancelUpload(),[Se,W]=r.useState(0),{fetchUploadMedia:O,fetchDeleteMedia:Y,maxFileSize:Ne,imperativeHandleRef:M,disable:se}=r.useContext(t.Context),U=t.mediaMap.has(e)&&(((oe=t.mediaMap.get(e))==null?void 0:oe.mediaNodeKeys.length)===0||((ne=t.mediaMap.get(e))==null?void 0:ne.mediaNodeKeys.length)===void 0||e.trim()===""),{t:A}=z.useTranslation(),Z=i=>{if(typeof i=="number")return i>0?i:null;if(typeof i=="string"&&!i.includes("%")){const h=parseFloat(i);return Number.isFinite(h)&&h>0?h:null}return null},P=Z(s),J=Z(l),Q=P&&J?P/J:void 0,[le,ce]=r.useState(void 0),K=r.useMemo(()=>{try{const i=parseFloat(localStorage.getItem("layers-img-ratio:"+e)||"");return Number.isFinite(i)&&i>0?i:void 0}catch{return}},[e]),de=Q??b??K??le,[ue,_]=r.useState(!1),ge=!ue&&!Q&&(b??K)!=null,[Le,pe]=r.useState(0);r.useEffect(()=>p.registerDecoratorListener(()=>{pe(i=>i+1)}),[U]),r.useEffect(()=>{const i=p.getElementByKey(n);i&&(i.style.removeProperty("aspect-ratio"),i.style.removeProperty("width"))},[p,n]),r.useEffect(()=>{if(!e||e.startsWith("data:image/")||!e.trim()){k(!1);return}const i=new Image;i.src=e,i.onload=()=>{if(k(!1),i.naturalWidth){const h=i.naturalWidth/i.naturalHeight;if(ce(h),i.naturalWidth>=100)try{localStorage.setItem("layers-img-ratio:"+e,String(h))}catch{}!b&&i.naturalWidth>=100&&p.update(()=>{const w=S.$getNodeByKey(n);t.$isImageNode(w)&&w.getAspectRatio()==null&&w.setAspectRatio(h)},{tag:"history-merge"})}},i.onerror=()=>{k(!1)}},[e,U]);const me=(i,h)=>{p.update(()=>{S.$setSelection(null);const w=S.$getNodeByKey(n);t.$isImageNode(w)&&w.setWidthAndHeight(i,h)})},{historyState:ee}=t.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:te}}=t.useSettings();function fe(i){const h=t.decodeSvgDataUrl(i);return h?t.getSvgMarkupSize(h).width:0}function he(i){return new Promise((h,w)=>{if(t.isSvgSource(i)){h(fe(i));return}const j=new Image;j.src=i,j.onload=()=>{h(j.width)},j.onerror=()=>{w(new Error("Failed to load image"))}})}r.useEffect(()=>{let i=s,h=l,w=100;if((e.includes("unsplash")?e.trim():!U&&e.trim()||e.includes("upload-src-editor"))&&e!=="upload"){if(P!=null&&P>=w){E(!1),T({width:P,height:P}),_(!0);return}he(e).then(j=>{typeof i=="number"&&i<w&&j<w?(E(!0),T({width:i,height:h})):j<w?(E(!0),T({width:"auto",height:"auto"})):(T({width:j,height:j}),E(!1)),_(!0)}).catch(j=>{_(!0),console.warn("Ошибка при загрузке изображения:",j.message)})}},[e,U]),r.useEffect(()=>{D.width&&D.height&&L&&p.update(()=>{const i=S.$getNodeByKey(n);t.$isImageNode(i)&&i.setWidthAndHeight(D.width,D.height)})},[D.width,D.height,L]);const we=r.useCallback(i=>t.$writeImagePickerTabToNode(p,n,i),[p,n]),F=r.useCallback((i,h)=>{k(!1),p.update(()=>{const w=S.$getNodeByKey(n);t.$isImageNode(w)&&(w.setSrc(i),w.setId(h))})},[p,n]),q=r.useCallback(i=>{k(!0);const h=N();O&&O(i[0],(w,j)=>{F(w,j),W(0)},w=>{w&&B.showErrorNotification({message:A("editor.gallery.errorFile")}),W(0),F(e.startsWith("blob:")?"upload":"","")},h,w=>{W(w)})},[O,N,A,F,e]);return r.useEffect(()=>p.registerCommand(t.UPLOAD_IMAGE_COMMAND,i=>!e.startsWith("blob:")&&e!=="upload"||i.targetNodeKey!==n?!1:(q(i.files),!0),S.COMMAND_PRIORITY_LOW),[p,q,n,e]),!e||e==="upload"?o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.ImagePicker,{inline:!0,nodeKey:n,defaultTabValue:f,onWriteTabToNode:we,uploading:!1,onUpload:i=>{!O||!i.length||q(i)},popoverProps:{opened:!0,position:"bottom",zIndex:t.EDITOR_UI_MIN_Z_INDEX},onChange:i=>{p.update(()=>{const h=S.$getNodeByKey(n);t.$isImageNode(h)&&h.setSrc(i)})}})}):L&&!ge?o.jsx(ie,{width:D.width,height:D.height,isLoading:g,isError:!1,isIcon:L,src:e,id:I,editor:p,nodeKey:n,fetchDeleteMedia:Y,altText:a,imageRef:y,maxWidth:d,showCaption:c,caption:u,isCollabActive:!1,historyState:ee,showNestedEditorTreeView:te,t:A,href:C}):o.jsx(t.ResizableContainer,{editor:p,isIcon:L,width:t.parseContainerSize(s),height:t.parseContainerSize(l),initialWidth:D.width||"",initialHeight:D.height||"",onResizeEnd:me,alignment:m,disable:se,onRegisterDecoratorEnter:i=>{M!=null&&M.current&&(M.current.decoratorEnterAction=i)},onActivate:()=>p.dispatchCommand(t.ON_CHANGE_COMMAND,"show_menu"),children:o.jsx(ie,{width:"inherit",height:"inherit",aspectRatio:de,isLoading:g,isError:!1,isIcon:L,src:e,id:I,editor:p,nodeKey:n,fetchDeleteMedia:Y,altText:a,imageRef:y,maxWidth:d,showCaption:c,caption:u,isCollabActive:!1,historyState:ee,showNestedEditorTreeView:te,t:A,href:C})})}exports.default=je;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react"),z=require("react-i18next"),$=require("@lexical/react/LexicalComposerContext"),x=require("@mantine/core"),S=require("lexical"),t=require("./layers.D_OIYjde.js"),B=require("@layers-app/shared"),H=require("@lexical/react/useLexicalEditable"),R=require("@mantine/hooks");require("@lexical/react/LexicalDecoratorBlockNode");require("@lexical/utils");require("@lexical/mark");require("@lexical/code");require("@lexical/selection");require("react-dom");require("@lexical/react/LexicalErrorBoundary");require("@lexical/react/LexicalBlockWithAlignableContents");require("@mantine/notifications");function xe(e,a){const n=document.createElement("a");n.href=e,n.download=a,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()}function V(e){try{const n=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return n.includes(".")?n:`${n}.png`}catch{return"image"}}async function G(e,a){const n=await fetch(e);if(!n.ok)throw new Error("fetch failed");const s=await n.blob(),l=URL.createObjectURL(s);try{xe(l,a)}finally{setTimeout(()=>URL.revokeObjectURL(l),0)}}function be({editor:e,nodeKey:a,href:n,onClose:s}){const[l,d]=r.useState(()=>t.getLinkTypeFromUrl(n)),[c,u]=r.useState(()=>t.removeProtocol(n)),[I,v]=r.useState(!1),m=r.useCallback(g=>{d(g),v(!1)},[]),f=r.useCallback(g=>{u(g),v(!1)},[]),b=r.useCallback(()=>{const g=t.addProtocolIfNeeded(c.trim(),l);if(!g||!t.isValidUrl(g,l)){v(!0);return}t.$writeImageLinkToNode(e,a,t.sanitizeUrl(g)),s()},[e,a,c,l,s]),C=r.useCallback(()=>{t.$writeImageLinkToNode(e,a,""),s()},[e,a,s]),y=r.useCallback(g=>{g.key==="Enter"?(g.preventDefault(),b()):g.key==="Escape"&&(g.preventDefault(),s())},[b,s]);return{linkType:l,linkUrl:c,error:I,onLinkTypeChange:m,onUrlInputChange:f,onUrlInputKeyDown:y,onSave:b,onRemove:C}}function X({editor:e,nodeKey:a,href:n,onClose:s,mobile:l}){const d=r.useRef(null),c=be({editor:e,nodeKey:a,href:n,onClose:s});return r.useEffect(()=>{var u;(u=d.current)==null||u.focus({preventScroll:!0})},[]),o.jsx(t.CreateMode,{inputRef:d,linkUrl:c.linkUrl,linkType:c.linkType,error:c.error,mobile:l,onLinkTypeChange:c.onLinkTypeChange,onUrlInputChange:c.onUrlInputChange,onUrlInputKeyDown:c.onUrlInputKeyDown,onCancel:s,onSave:c.onSave,onRemove:n?c.onRemove:void 0})}function re({opened:e,onOpenChange:a,t:n,onDownload:s,onDelete:l,hasLink:d,onLinkAction:c}){return o.jsxs(x.Menu,{opened:e,onChange:a,transitionProps:t.animationMenu,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[o.jsx(x.Menu.Target,{children:o.jsx(t.ActionIcon,{label:n("editor.toolbar.more"),icon:t.K1,iconColor:"var(--mantine-color-gray-text)","aria-label":n("editor.toolbar.more")})}),o.jsxs(x.Menu.Dropdown,{p:4,miw:164,w:"max-content",onMouseDown:u=>u.preventDefault(),children:[c&&o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.Icon,{name:"link",size:16})}),onClick:u=>{u.stopPropagation(),c()},children:n(d?"editor.link.editLink":"editor.link.addLink")}),o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16})}),onClick:u=>{u.stopPropagation(),s()},children:n("editor.gallery.download")}),o.jsx(x.Menu.Item,{color:"red",leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"red.6",children:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16})}),onClick:u=>{u.stopPropagation(),l()},children:n("editor.contextMenu.delete")})]})]})}const ae=({t:e,src:a,setShown:n,id:s})=>{const[l,{open:d,close:c}]=R.useDisclosure(!1),u=t.useCanDownload(),I=r.useMemo(()=>[{id:!s||s==="0"?"":s,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,s]),v=m=>{m?d():c()};return o.jsxs(o.Fragment,{children:[o.jsx(B.AttachmentsGalleryModal,{opened:l,onOpenChange:v,attachments:I,allowDownload:u}),o.jsx(t.ActionIcon,{label:e("editor.image.preview"),icon:t.gn,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{n(!1),d()}})]})},ke=({nodeKey:e,src:a,href:n})=>{const[s]=$.useLexicalComposerContext(),l=H.useLexicalEditable(),[d,c]=r.useState(!1),[u,I]=r.useState(!1),[v,m]=r.useState(!1),{t:f}=z.useTranslation();r.useEffect(()=>{if(!v)return;const y=g=>{const k=g.target;k!=null&&k.closest(".floating-link-dropdown")||k!=null&&k.closest(".floating-link-type-combobox-dropdown")||m(!1)};return document.addEventListener("pointerdown",y,!0),()=>document.removeEventListener("pointerdown",y,!0)},[v]);const b=r.useCallback(()=>{s.update(()=>{const y=S.$getNodeByKey(e);t.$isImageNode(y)&&y.remove()})},[s,e]),C=r.useCallback(async()=>{if(a)try{await G(a,V(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:v,onChange:m,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:`media-actions ${l?"":"media-actions--readonly"}`,children:[o.jsx(ae,{t:f,src:a,setShown:()=>{}}),l&&o.jsxs(o.Fragment,{children:[o.jsx(t.NodeAlignmentMenu,{opened:d,setOpened:c,t:f,editor:s,nodeKey:e,setShown:()=>{}}),o.jsx(re,{opened:u,onOpenChange:I,t:f,onDownload:()=>void C(),onDelete:b,hasLink:!!n,onLinkAction:()=>m(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${n?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(X,{editor:s,nodeKey:e,href:n,onClose:()=>m(!1)})})]})},ve=()=>{};function ye({nodeKey:e,src:a,id:n,href:s}){const{t:l}=z.useTranslation(),[d]=$.useLexicalComposerContext(),c=H.useLexicalEditable(),[u,I]=r.useState(!1),[v,m]=r.useState(!1),[f,b]=r.useState(!1);r.useEffect(()=>{if(!f)return;const g=k=>{const p=k.target;p!=null&&p.closest(".floating-link-dropdown")||p!=null&&p.closest(".floating-link-type-combobox-dropdown")||b(!1)};return document.addEventListener("pointerdown",g,!0),()=>document.removeEventListener("pointerdown",g,!0)},[f]);const C=r.useCallback(()=>{m(!1),d.update(()=>{const g=S.$getNodeByKey(e);if(!t.$isImageNode(g))return;const k=g.getParent();t.$isImageOverlayWrapperNode(k)?k.remove():g.remove()})},[d,e]),y=r.useCallback(async()=>{if(a)try{await G(a,V(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:f,onChange:b,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:"media-actions visible",style:{position:"absolute",top:10,right:10,zIndex:10,pointerEvents:"auto",display:"flex",gap:4},onClick:g=>g.stopPropagation(),children:[o.jsx(ae,{t:l,src:a,setShown:ve,id:n}),c&&o.jsxs(o.Fragment,{children:[o.jsx(t.NodeAlignmentMenu,{opened:u,setOpened:I,t:l,editor:d,nodeKey:e}),o.jsx(re,{opened:v,onOpenChange:m,t:l,onDownload:()=>void y(),onDelete:C,hasLink:!!s,onLinkAction:()=>b(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${s?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(X,{editor:d,nodeKey:e,href:s,onClose:()=>b(!1)})})]})}function Ce({nodeKey:e,src:a,id:n,href:s}){const{t:l}=z.useTranslation(),[d]=$.useLexicalComposerContext(),c=H.useLexicalEditable(),u=t.useCanDownload(),[I,{open:v,close:m}]=R.useDisclosure(!1),[f,{open:b,close:C}]=R.useDisclosure(!1),[y,{open:g,close:k}]=R.useDisclosure(!1),p=()=>{m(),g()},L=r.useMemo(()=>[{id:!n||n==="0"?"":n,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,n]),E=()=>{m(),b()},D=r.useCallback(async()=>{if(m(),!!a)try{await G(a,V(a))}catch{}},[a,m]),T=r.useCallback(()=>{m(),d.update(()=>{const N=S.$getNodeByKey(e);t.$isImageNode(N)&&N.remove()})},[d,e,m]);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"image-touch-actions",style:{position:"absolute",top:8,right:8,zIndex:10,pointerEvents:"auto"},onClick:N=>N.stopPropagation(),children:o.jsx(t.ActionIcon,{label:l("editor.toolbar.more"),icon:t.O1,iconColor:"var(--mantine-color-gray-text)","aria-label":l("editor.toolbar.more"),onClick:v})}),o.jsx(B.AttachmentsGalleryModal,{opened:f,onOpenChange:N=>N?b():C(),attachments:L,allowDownload:u}),o.jsx(t.MobileDrawer,{opened:I,onClose:m,title:l("editor.image.mobileActions"),children:o.jsxs(x.Stack,{gap:4,p:0,children:[o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:E,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.gn,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.image.previewFullScreen")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:p,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.zz,size:16,color:"var(--mantine-color-dimmed)"}),children:l(s?"editor.link.editLink":"editor.link.addLink")}),u&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:()=>void D(),leftSection:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.gallery.download")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:T,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16,color:"var(--mantine-color-red-6)"}),children:l("editor.actions.delete")})]})}),o.jsx(t.MobileDrawer,{opened:y,onClose:k,title:l(s?"editor.link.editLink":"editor.link.addLink"),children:o.jsx(X,{editor:d,nodeKey:e,href:s,onClose:k,mobile:!0})})]})}const ie=e=>{const{width:a,height:n,isLoading:s,isError:l,src:d,id:c,altText:u,imageRef:I,maxWidth:v,aspectRatio:m,href:f}=e,b=r.useRef(null);return o.jsxs("div",{className:"media-wrapper","data-reserved-box":m?"":void 0,style:{width:a,height:m?"auto":n,aspectRatio:m||void 0,display:"inline-flex",position:"relative"},children:[o.jsx(x.LoadingOverlay,{visible:s,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),o.jsx("a",{className:"editor-image-link","data-link":f?"true":void 0,"data-href":f?t.sanitizeUrl(f):void 0,role:f?"link":void 0,rel:f?"noopener noreferrer":void 0,draggable:!1,onMouseDown:f?C=>{b.current={x:C.clientX,y:C.clientY}}:void 0,onClick:f?C=>{C.preventDefault();const y=b.current;b.current=null,!(y&&Math.hypot(C.clientX-y.x,C.clientY-y.y)>5)&&window.open(t.sanitizeUrl(f),"_blank","noopener,noreferrer")}:void 0,children:o.jsx(Ie,{className:null,src:d,altText:u,imageRef:I,width:"inherit",height:"inherit",maxWidth:v||"auto",id:c})}),t.IS_TOUCH_DEVICE&&o.jsx(Ce,{nodeKey:e.nodeKey,src:d,id:c,href:f}),t.IS_TOUCH_TABLET&&o.jsx(ye,{nodeKey:e.nodeKey,src:d,id:c,href:f}),t.IS_HOVER_CAPABLE&&!t.IS_TOUCH_DEVICE&&!t.IS_TOUCH_TABLET&&o.jsx(ke,{nodeKey:e.nodeKey,src:d,href:f})]})};function Ie({altText:e,className:a,imageRef:n,src:s,width:l,height:d,maxWidth:c,id:u}){const[I,v]=r.useState(!1);return o.jsx("img",{className:`${a||void 0} ${I?"":"loading"}`,src:s,alt:e,ref:n,style:{height:d,maxWidth:c,width:l},onLoad:()=>{s.includes("splash")?setTimeout(()=>{v(!0)},100):v(!0)},draggable:"false","data-id":u})}function je(e){const{disable:a}=r.useContext(t.Context);return a&&t.ImageNode.isPlaceholderSrc(e.src)?null:o.jsx(De,{...e})}function De({src:e,altText:a,nodeKey:n,width:s,height:l,maxWidth:d,showCaption:c,caption:u,id:I,create:v,alignment:m,imagePickerTab:f,aspectRatio:b,href:C}){var oe,ne;const y=r.useRef(null),[g,k]=r.useState(!0),[p]=$.useLexicalComposerContext(),[L,E]=r.useState(!0),[D,T]=r.useState({width:0,height:0}),{start:N}=t.useCancelUpload(),[Se,W]=r.useState(0),{fetchUploadMedia:O,fetchDeleteMedia:Y,maxFileSize:Ne,imperativeHandleRef:M,disable:se}=r.useContext(t.Context),U=t.mediaMap.has(e)&&(((oe=t.mediaMap.get(e))==null?void 0:oe.mediaNodeKeys.length)===0||((ne=t.mediaMap.get(e))==null?void 0:ne.mediaNodeKeys.length)===void 0||e.trim()===""),{t:A}=z.useTranslation(),Z=i=>{if(typeof i=="number")return i>0?i:null;if(typeof i=="string"&&!i.includes("%")){const h=parseFloat(i);return Number.isFinite(h)&&h>0?h:null}return null},P=Z(s),J=Z(l),Q=P&&J?P/J:void 0,[le,ce]=r.useState(void 0),K=r.useMemo(()=>{try{const i=parseFloat(localStorage.getItem("layers-img-ratio:"+e)||"");return Number.isFinite(i)&&i>0?i:void 0}catch{return}},[e]),de=Q??b??K??le,[ue,_]=r.useState(!1),ge=!ue&&!Q&&(b??K)!=null,[Le,pe]=r.useState(0);r.useEffect(()=>p.registerDecoratorListener(()=>{pe(i=>i+1)}),[U]),r.useEffect(()=>{const i=p.getElementByKey(n);i&&(i.style.removeProperty("aspect-ratio"),i.style.removeProperty("width"))},[p,n]),r.useEffect(()=>{if(!e||e.startsWith("data:image/")||!e.trim()){k(!1);return}const i=new Image;i.src=e,i.onload=()=>{if(k(!1),i.naturalWidth){const h=i.naturalWidth/i.naturalHeight;if(ce(h),i.naturalWidth>=100)try{localStorage.setItem("layers-img-ratio:"+e,String(h))}catch{}!b&&i.naturalWidth>=100&&p.update(()=>{const w=S.$getNodeByKey(n);t.$isImageNode(w)&&w.getAspectRatio()==null&&w.setAspectRatio(h)},{tag:"history-merge"})}},i.onerror=()=>{k(!1)}},[e,U]);const me=(i,h)=>{p.update(()=>{S.$setSelection(null);const w=S.$getNodeByKey(n);t.$isImageNode(w)&&w.setWidthAndHeight(i,h)})},{historyState:ee}=t.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:te}}=t.useSettings();function fe(i){const h=t.decodeSvgDataUrl(i);return h?t.getSvgMarkupSize(h).width:0}function he(i){return new Promise((h,w)=>{if(t.isSvgSource(i)){h(fe(i));return}const j=new Image;j.src=i,j.onload=()=>{h(j.width)},j.onerror=()=>{w(new Error("Failed to load image"))}})}r.useEffect(()=>{let i=s,h=l,w=100;if((e.includes("unsplash")?e.trim():!U&&e.trim()||e.includes("upload-src-editor"))&&e!=="upload"){if(P!=null&&P>=w){E(!1),T({width:P,height:P}),_(!0);return}he(e).then(j=>{typeof i=="number"&&i<w&&j<w?(E(!0),T({width:i,height:h})):j<w?(E(!0),T({width:"auto",height:"auto"})):(T({width:j,height:j}),E(!1)),_(!0)}).catch(j=>{_(!0),console.warn("Ошибка при загрузке изображения:",j.message)})}},[e,U]),r.useEffect(()=>{D.width&&D.height&&L&&p.update(()=>{const i=S.$getNodeByKey(n);t.$isImageNode(i)&&i.setWidthAndHeight(D.width,D.height)})},[D.width,D.height,L]);const we=r.useCallback(i=>t.$writeImagePickerTabToNode(p,n,i),[p,n]),F=r.useCallback((i,h)=>{k(!1),p.update(()=>{const w=S.$getNodeByKey(n);t.$isImageNode(w)&&(w.setSrc(i),w.setId(h))})},[p,n]),q=r.useCallback(i=>{k(!0);const h=N();O&&O(i[0],(w,j)=>{F(w,j),W(0)},w=>{w&&B.showErrorNotification({message:A("editor.gallery.errorFile")}),W(0),F(e.startsWith("blob:")?"upload":"","")},h,w=>{W(w)})},[O,N,A,F,e]);return r.useEffect(()=>p.registerCommand(t.UPLOAD_IMAGE_COMMAND,i=>!e.startsWith("blob:")&&e!=="upload"||i.targetNodeKey!==n?!1:(q(i.files),!0),S.COMMAND_PRIORITY_LOW),[p,q,n,e]),!e||e==="upload"?o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.ImagePicker,{inline:!0,nodeKey:n,defaultTabValue:f,onWriteTabToNode:we,uploading:!1,onUpload:i=>{!O||!i.length||q(i)},popoverProps:{opened:!0,position:"bottom",zIndex:t.EDITOR_UI_MIN_Z_INDEX},onChange:i=>{p.update(()=>{const h=S.$getNodeByKey(n);t.$isImageNode(h)&&h.setSrc(i)})}})}):L&&!ge?o.jsx(ie,{width:D.width,height:D.height,isLoading:g,isError:!1,isIcon:L,src:e,id:I,editor:p,nodeKey:n,fetchDeleteMedia:Y,altText:a,imageRef:y,maxWidth:d,showCaption:c,caption:u,isCollabActive:!1,historyState:ee,showNestedEditorTreeView:te,t:A,href:C}):o.jsx(t.ResizableContainer,{editor:p,isIcon:L,width:t.parseContainerSize(s),height:t.parseContainerSize(l),initialWidth:D.width||"",initialHeight:D.height||"",onResizeEnd:me,alignment:m,disable:se,onRegisterDecoratorEnter:i=>{M!=null&&M.current&&(M.current.decoratorEnterAction=i)},onActivate:()=>p.dispatchCommand(t.ON_CHANGE_COMMAND,"show_menu"),children:o.jsx(ie,{width:"inherit",height:"inherit",aspectRatio:de,isLoading:g,isError:!1,isIcon:L,src:e,id:I,editor:p,nodeKey:n,fetchDeleteMedia:Y,altText:a,imageRef:y,maxWidth:d,showCaption:c,caption:u,isCollabActive:!1,historyState:ee,showNestedEditorTreeView:te,t:A,href:C})})}exports.default=je;
@@ -1,4 +1,4 @@
1
- import "./layers.B5ojWM9Z.js";
1
+ import "./layers.X6IXk5Ee.js";
2
2
  var e = { paste: "Einfügen", pasteAsPlaintext: "Als reinen Text einfügen", pasteCharts: "Diagramme einfügen", selectAll: "Alle auswählen", multiSelect: "Element zur Auswahl hinzufügen", moveCanvas: "Leinwand verschieben", cut: "Ausschneiden", copy: "Kopieren", copyAsPng: "In Zwischenablage kopieren (PNG)", copyAsSvg: "In Zwischenablage kopieren (SVG)", copyText: "In die Zwischenablage als Text kopieren", copySource: "Quelle in Zwischenablage kopieren", convertToCode: "In Code konvertieren", bringForward: "Nach vorne", sendToBack: "In den Hintergrund", bringToFront: "In den Vordergrund", sendBackward: "Nach hinten", delete: "Löschen", copyStyles: "Formatierung kopieren", pasteStyles: "Formatierung übernehmen", stroke: "Strich", background: "Hintergrund", fill: "Füllung", strokeWidth: "Strichstärke", strokeStyle: "Konturstil", strokeStyle_solid: "Durchgezogen", strokeStyle_dashed: "Gestrichelt", strokeStyle_dotted: "Gepunktet", sloppiness: "Sauberkeit", opacity: "Deckkraft", textAlign: "Textausrichtung", edges: "Kanten", sharp: "Scharf", round: "Rund", arrowheads: "Pfeilspitzen", arrowhead_none: "Keine", arrowhead_arrow: "Pfeil", arrowhead_bar: "Balken", arrowhead_circle: "Kreis", arrowhead_circle_outline: "Kreis (Umrandung)", arrowhead_triangle: "Dreieck", arrowhead_triangle_outline: "Dreieck (Umrandung)", arrowhead_diamond: "Raute", arrowhead_diamond_outline: "Raute (Umrandung)", fontSize: "Schriftgröße", fontFamily: "Schriftfamilie", addWatermark: '"Made with Excalidraw" hinzufügen', handDrawn: "Handgezeichnet", normal: "Normal", code: "Code", small: "Klein", medium: "Mittel", large: "Groß", veryLarge: "Sehr groß", solid: "Deckend", hachure: "Schraffiert", zigzag: "Zickzack", crossHatch: "Kreuzschraffiert", thin: "Dünn", bold: "Fett", left: "Links", center: "Zentriert", right: "Rechts", extraBold: "Extra Fett", architect: "Architekt", artist: "Künstler", cartoonist: "Karikaturist", fileTitle: "Dateiname", colorPicker: "Farbauswähler", canvasColors: "Auf Leinwand verwendet", canvasBackground: "Zeichenflächenhintergrund", drawingCanvas: "Leinwand", layers: "Ebenen", actions: "Aktionen", language: "Sprache", liveCollaboration: "Live-Zusammenarbeit...", duplicateSelection: "Duplizieren", untitled: "Unbenannt", name: "Name", yourName: "Dein Name", madeWithExcalidraw: "Made with Excalidraw", group: "Auswahl gruppieren", ungroup: "Gruppierung aufheben", collaborators: "Mitarbeitende", showGrid: "Raster anzeigen", addToLibrary: "Zur Bibliothek hinzufügen", removeFromLibrary: "Aus Bibliothek entfernen", libraryLoadingMessage: "Lade Bibliothek…", libraries: "Bibliotheken durchsuchen", loadingScene: "Lade Zeichnung…", align: "Ausrichten", alignTop: "Obere Kanten", alignBottom: "Untere Kanten", alignLeft: "Linke Kanten", alignRight: "Rechte Kanten", centerVertically: "Vertikal zentrieren", centerHorizontally: "Horizontal zentrieren", distributeHorizontally: "Horizontal verteilen", distributeVertically: "Vertikal verteilen", flipHorizontal: "Horizontal spiegeln", flipVertical: "Vertikal spiegeln", viewMode: "Ansichtsmodus", share: "Teilen", showStroke: "Auswahl für Strichfarbe anzeigen", showBackground: "Hintergrundfarbe auswählen", toggleTheme: "Design umschalten", personalLib: "Persönliche Bibliothek", excalidrawLib: "Excalidraw Bibliothek", decreaseFontSize: "Schriftgröße verkleinern", increaseFontSize: "Schrift vergrößern", unbindText: "Text lösen", bindText: "Text an Container binden", createContainerFromText: "Text in Container einbetten", link: { edit: "Link bearbeiten", editEmbed: "Link bearbeiten & einbetten", create: "Link erstellen", createEmbed: "Link erstellen & einbetten", label: "Link", labelEmbed: "Verlinken & einbetten", empty: "Kein Link festgelegt" }, lineEditor: { edit: "Linie bearbeiten", exit: "Linieneditor verlassen" }, elementLock: { lock: "Sperren", unlock: "Entsperren", lockAll: "Alle sperren", unlockAll: "Alle entsperren" }, statusPublished: "Veröffentlicht", sidebarLock: "Seitenleiste offen lassen", selectAllElementsInFrame: "Alle Elemente im Rahmen auswählen", removeAllElementsFromFrame: "Alle Elemente aus dem Rahmen entfernen", eyeDropper: "Farbe von der Zeichenfläche auswählen", textToDiagram: "Text zu Diagramm", prompt: "Eingabe" }, n = { noItems: "Noch keine Elemente hinzugefügt...", hint_emptyLibrary: "Wähle ein Element auf der Zeichenfläche, um es hier hinzuzufügen. Oder installiere eine Bibliothek aus dem öffentlichen Verzeichnis.", hint_emptyPrivateLibrary: "Wähle ein Element von der Zeichenfläche, um es hier hinzuzufügen." }, i = { clearReset: "Zeichenfläche löschen & Hintergrundfarbe zurücksetzen", exportJSON: "In Datei exportieren", exportImage: "Exportiere Bild...", export: "Speichern als...", copyToClipboard: "In Zwischenablage kopieren", save: "In aktueller Datei speichern", saveAs: "Speichern unter", load: "Öffnen", getShareableLink: "Teilbaren Link erhalten", close: "Schließen", selectLanguage: "Sprache auswählen", scrollBackToContent: "Zurück zum Inhalt", zoomIn: "Vergrößern", zoomOut: "Verkleinern", resetZoom: "Zoom zurücksetzen", menu: "Menü", done: "Fertig", edit: "Bearbeiten", undo: "Rückgängig machen", redo: "Wiederholen", resetLibrary: "Bibliothek zurücksetzen", createNewRoom: "Neuen Raum erstellen", fullScreen: "Vollbildanzeige", darkMode: "Dunkles Design", lightMode: "Helles Design", zenMode: "Zen-Modus", objectsSnapMode: "Einrasten an Objekten", exitZenMode: "Zen-Modus verlassen", cancel: "Abbrechen", clear: "Löschen", remove: "Entfernen", embed: "Einbettung umschalten", publishLibrary: "Veröffentlichen", submit: "Absenden", confirm: "Bestätigen", embeddableInteractionButton: "Klicken, um zu interagieren" }, r = { clearReset: "Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?", couldNotCreateShareableLink: "Konnte keinen teilbaren Link erstellen.", couldNotCreateShareableLinkTooBig: "Konnte keinen teilbaren Link erstellen: Die Zeichnung ist zu groß", couldNotLoadInvalidFile: "Ungültige Datei konnte nicht geladen werden", importBackendFailed: "Import vom Server ist fehlgeschlagen.", cannotExportEmptyCanvas: "Leere Zeichenfläche kann nicht exportiert werden.", couldNotCopyToClipboard: "Kopieren in die Zwischenablage fehlgeschlagen.", decryptFailed: "Daten konnten nicht entschlüsselt werden.", uploadedSecurly: "Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen.", loadSceneOverridePrompt: "Das Laden einer externen Zeichnung ersetzt den vorhandenen Inhalt. Möchtest du fortfahren?", collabStopOverridePrompt: `Das Stoppen der Sitzung wird deine vorherige, lokal gespeicherte Zeichnung überschreiben. Bist du dir sicher?
3
3
 
4
4
  (Wenn du deine lokale Zeichnung behalten möchtest, schließe stattdessen den Browser-Tab.)`, errorAddingToLibrary: "Das Element konnte nicht zur Bibliothek hinzugefügt werden", errorRemovingFromLibrary: "Das Element konnte nicht aus der Bibliothek entfernt werden", confirmAddLibrary: "Dies fügt {{numShapes}} Form(en) zu deiner Bibliothek hinzu. Bist du dir sicher?", imageDoesNotContainScene: "Dieses Bild scheint keine Szenendaten zu enthalten. Hast Du das Einbetten der Szene während des Exports aktiviert?", cannotRestoreFromImage: "Die Zeichnung konnte aus dieser Bilddatei nicht wiederhergestellt werden", invalidSceneUrl: "Die Szene konnte nicht von der angegebenen URL importiert werden. Sie ist entweder fehlerhaft oder enthält keine gültigen Excalidraw JSON-Daten.", resetLibrary: "Dieses löscht deine Bibliothek. Bist du sicher?", removeItemsFromsLibrary: "{{count}} Element(e) aus der Bibliothek löschen?", invalidEncryptionKey: "Verschlüsselungsschlüssel muss 22 Zeichen lang sein. Die Live-Zusammenarbeit ist deaktiviert.", collabOfflineWarning: `Keine Internetverbindung verfügbar.
@@ -1,4 +1,4 @@
1
- import "./layers.B5ojWM9Z.js";
1
+ import "./layers.X6IXk5Ee.js";
2
2
  var e = { paste: "Plakken", pasteAsPlaintext: "Plakken als platte tekst", pasteCharts: "Plak grafieken", selectAll: "Alles selecteren", multiSelect: "Voeg element toe aan selectie", moveCanvas: "Canvas verplaatsen", cut: "Knip", copy: "Kopiëren", copyAsPng: "Kopieer als PNG", copyAsSvg: "Kopieer naar klembord als SVG", copyText: "Kopieer naar klembord als tekst", copySource: "", convertToCode: "", bringForward: "Breng naar voren", sendToBack: "Stuur naar achtergrond", bringToFront: "Breng naar voorgrond", sendBackward: "Breng naar achter", delete: "Verwijderen", copyStyles: "Kopieer opmaak", pasteStyles: "Plak opmaak", stroke: "Lijn", background: "Achtergrond", fill: "Invulling", strokeWidth: "Lijnbreedte", strokeStyle: "Lijnstijl", strokeStyle_solid: "Ononderbroken", strokeStyle_dashed: "Gestreept", strokeStyle_dotted: "Gestippeld", sloppiness: "Slordigheid", opacity: "Doorzichtigheid", textAlign: "Uitlijning", edges: "Randen", sharp: "Hoekig", round: "Rond", arrowheads: "Pijlpunten", arrowhead_none: "Geen", arrowhead_arrow: "Pijl", arrowhead_bar: "Balk", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Driehoek", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Tekstgrootte", fontFamily: "Lettertype", addWatermark: 'Voeg "Gemaakt met Excalidraw" toe', handDrawn: "Handgetekend", normal: "Normaal", code: "Code", small: "Klein", medium: "Medium", large: "Groot", veryLarge: "Zeer groot", solid: "Ingekleurd", hachure: "Arcering", zigzag: "", crossHatch: "Tweemaal gearceerd", thin: "Dun", bold: "Vet", left: "Links", center: "Midden", right: "Rechts", extraBold: "Zwaar", architect: "Architect", artist: "Artiest", cartoonist: "Cartoonist", fileTitle: "Bestandsnaam", colorPicker: "Kleurenkiezer", canvasColors: "Gebruikt op canvas", canvasBackground: "Canvas achtergrond", drawingCanvas: "Canvas", layers: "Lagen", actions: "Acties", language: "Taal", liveCollaboration: "Live Samenwerking...", duplicateSelection: "Dupliceer", untitled: "Naamloos", name: "Naam", yourName: "Jouw naam", madeWithExcalidraw: "Gemaakt met Excalidraw", group: "Groeperen", ungroup: "Groep opheffen", collaborators: "Deelnemers", showGrid: "Raster weergeven", addToLibrary: "Voeg toe aan bibliotheek", removeFromLibrary: "Verwijder uit bibliotheek", libraryLoadingMessage: "Bibliotheek laden…", libraries: "Blader door bibliotheken", loadingScene: "Scène laden…", align: "Uitlijnen", alignTop: "Boven uitlijnen", alignBottom: "Onder uitlijnen", alignLeft: "Links uitlijnen", alignRight: "Rechts uitlijnen", centerVertically: "Verticaal Centreren", centerHorizontally: "Horizontaal Centreren", distributeHorizontally: "Horizontaal verspreiden", distributeVertically: "Verticaal distribueren", flipHorizontal: "Horizontaal spiegelen", flipVertical: "Verticaal spiegelen", viewMode: "Weergavemodus", share: "Deel", showStroke: "Toon lijn kleur kiezer", showBackground: "Toon achtergrondkleur kiezer", toggleTheme: "Thema aan/uit", personalLib: "Persoonlijke bibliotheek", excalidrawLib: "Excalidraw bibliotheek", decreaseFontSize: "Letters verkleinen", increaseFontSize: "Letters vergroten", unbindText: "Ontkoppel tekst", bindText: "Koppel tekst aan de container", createContainerFromText: "", link: { edit: "Wijzig link", editEmbed: "Link bewerken & insluiten", create: "Maak link", createEmbed: "Link maken en insluiten", label: "Link", labelEmbed: "Link toevoegen & insluiten", empty: "Er is geen link ingesteld" }, lineEditor: { edit: "Bewerk regel", exit: "Verlaat regel-editor" }, elementLock: { lock: "Vergrendel", unlock: "Ontgrendel", lockAll: "Vergrendel alles", unlockAll: "Ontgrendel alles" }, statusPublished: "Gepubliceerd", sidebarLock: "Zijbalk open houden", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, n = { noItems: "Nog geen items toegevoegd...", hint_emptyLibrary: "Selecteer een item op het canvas om het hier toe te voegen of installeer een bibliotheek uit de openbare repository, hieronder.", hint_emptyPrivateLibrary: "Selecteer een item op het canvas om het hier toe te voegen." }, t = { clearReset: "Canvas opnieuw instellen", exportJSON: "Exporteren naar bestand", exportImage: "Exporteer afbeelding...", export: "Sla op...", copyToClipboard: "Kopieer", save: "Opslaan naar huidige bestand", saveAs: "Opslaan als", load: "Open", getShareableLink: "Maak een deelbare link", close: "Sluiten", selectLanguage: "Taal selecteren", scrollBackToContent: "Scroll terug naar inhoud", zoomIn: "Inzoomen", zoomOut: "Uitzoomen", resetZoom: "Zoom terugzetten", menu: "Menu", done: "Klaar", edit: "Bewerken", undo: "Ongedaan maken", redo: "Herstel ongedaan maken", resetLibrary: "Bibliotheek Resetten", createNewRoom: "Creëer live-samenwerkingssessie", fullScreen: "Volledig scherm", darkMode: "Donkere modus", lightMode: "Lichte modus", zenMode: "Zen modus", objectsSnapMode: "", exitZenMode: "Verlaat zen modus", cancel: "Annuleren", clear: "Wissen", remove: "Verwijderen", embed: "Insluiten in-/uitschakelen", publishLibrary: "Publiceren", submit: "Versturen", confirm: "Bevestigen", embeddableInteractionButton: "Klik voor interactie" }, a = { clearReset: "Dit zal het hele canvas verwijderen. Weet je het zeker?", couldNotCreateShareableLink: "Kon geen deelbare link aanmaken.", couldNotCreateShareableLinkTooBig: "Kan geen deelbare link aanmaken: de scène is te groot", couldNotLoadInvalidFile: "Kan ongeldig bestand niet laden", importBackendFailed: "Importeren vanuit backend mislukt.", cannotExportEmptyCanvas: "Kan geen leeg canvas exporteren.", couldNotCopyToClipboard: "Kon niet naar klembord kopiëren.", decryptFailed: "Kan gegevens niet decoderen.", uploadedSecurly: "De upload is beveiligd met end-to-end encryptie, wat betekent dat de Excalidraw server en derden de inhoud niet kunnen lezen.", loadSceneOverridePrompt: "Het inladen van een externe tekening zal je bestaande inhoud vervangen. Wil je verdergaan?", collabStopOverridePrompt: `Wanneer de sessie wordt gestopt, overschrijft u de eerdere, lokaal opgeslagen tekening. Weet je het zeker?
3
3
 
4
4
  (Als je de lokale tekening wilt behouden, sluit je in plaats daarvan het browsertabblad)`, errorAddingToLibrary: "Kan item niet toevoegen aan de bibliotheek", errorRemovingFromLibrary: "Kan item niet uit de bibliotheek verwijderen", confirmAddLibrary: "Dit zal {{numShapes}} vorm(en) toevoegen aan je bibliotheek. Weet je het zeker?", imageDoesNotContainScene: "Deze afbeelding lijkt geen scène gegevens te bevatten. Heb je scène embedding tijdens het exporteren ingeschakeld?", cannotRestoreFromImage: "Scène kan niet worden hersteld vanuit dit afbeeldingsbestand", invalidSceneUrl: "Kan scène niet importeren vanuit de opgegeven URL. Het is onjuist of bevat geen geldige Excalidraw JSON-gegevens.", resetLibrary: "Dit zal je bibliotheek wissen. Weet je het zeker?", removeItemsFromsLibrary: "Verwijder {{count}} item(s) uit bibliotheek?", invalidEncryptionKey: "Encryptiesleutel moet 22 tekens zijn. Live samenwerking is uitgeschakeld.", collabOfflineWarning: `Geen internetverbinding beschikbaar.
@@ -1,4 +1,4 @@
1
- "use strict";const u=require("./layers.5r9GGuXi.js");var gt=(function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,v,m,pt,N={},st,x,Dt,it;;){if(v=i[i.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Gt()),m=w[v]&&w[v][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[v])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
1
+ "use strict";const u=require("./layers.FBJd5wXM.js");var gt=(function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,v,m,pt,N={},st,x,Dt,it;;){if(v=i[i.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Gt()),m=w[v]&&w[v][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[v])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+it.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(C+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:yt,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+_);switch(m[0]){case 1:i.push(_),S.push(g.yytext),e.push(g.yylloc),i.push(m[1]),_=null,O=g.yyleng,l=g.yytext,C=g.yylineno,yt=g.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=S[S.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,C,L.yy,m[1],S,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),S.push(N.$),e.push(N._$),Dt=w[i[i.length-2]][i[i.length-1]],i.push(Dt);break;case 3:return!0}}return!0}},Vt=(function(){var A={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.length-1);var S=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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`