@layers-app/editor 0.7.15 → 0.7.16

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 (237) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +77 -1
  3. package/dist/index.js +15 -9
  4. package/dist/{layers.BQfSzTMx.js → layers.-fM6L_z3.js} +1 -1
  5. package/dist/{layers.BHcs7CqU.js → layers.0KANPDnB.js} +1 -1
  6. package/dist/{layers.DW62kNPb.js → layers.1Nv-nANB.js} +9 -6
  7. package/dist/layers.1bdyQGVP.js +8 -0
  8. package/dist/{layers.D3Vd3dna.js → layers.49H_5LNr.js} +1 -1
  9. package/dist/{layers.DEBfJf6Q.js → layers.4HZb3jXk.js} +1 -1
  10. package/dist/{layers.DZ1-iKEC.js → layers.4RmaHEsu.js} +1 -1
  11. package/dist/{layers.DB1s8GND.js → layers.5WzirB7G.js} +1 -1
  12. package/dist/{layers.C2Snani7.js → layers.5bSjIKfg.js} +1 -1
  13. package/dist/{layers.DWpXde7j.js → layers.7oLFJZ8l.js} +1 -1
  14. package/dist/{layers.D5TYe_t6.js → layers.7xkZRnuM.js} +1 -1
  15. package/dist/{layers.D3GALwgA.js → layers.ABhWEnmQ.js} +1 -1
  16. package/dist/{layers.DF6gld-u.js → layers.B-8gEV_E.js} +3 -3
  17. package/dist/{layers.Coz7xkYs.js → layers.B-9QQMGw.js} +1 -1
  18. package/dist/{layers.D17Dmom7.js → layers.B0sBopW9.js} +1 -1
  19. package/dist/{layers.Bc5nZC3Y.js → layers.B1ySJNCM.js} +1 -1
  20. package/dist/{layers.DsHK2Ar2.js → layers.B2BhJZ0D.js} +1 -1
  21. package/dist/{layers.C8f8Dvmj.js → layers.B2iVWMcm.js} +1 -1
  22. package/dist/{layers.B-uN2dv6.js → layers.B6Va7v9s.js} +1 -1
  23. package/dist/layers.B82wcYq0.js +271 -0
  24. package/dist/{layers.D-ozIqh2.js → layers.BAU0IeY7.js} +1 -1
  25. package/dist/layers.BCD7sjs8.js +1 -0
  26. package/dist/{layers.CP8mkVAF.js → layers.BEUJQJGq.js} +1 -1
  27. package/dist/{layers.NAvAltHE.js → layers.BGDCJs-p.js} +1 -1
  28. package/dist/{layers.BBTHDb_P.js → layers.BHz2k1im.js} +1 -1
  29. package/dist/{layers.mA-ZoRCk.js → layers.BIM8NeWS.js} +1 -1
  30. package/dist/{layers.BGG2KrZD.js → layers.BIbdMSbX.js} +92 -89
  31. package/dist/{layers.DJK9E0iz.js → layers.BJhjIY5r.js} +1 -1
  32. package/dist/{layers.q9n8pS5N.js → layers.BJmaj5SY.js} +1 -1
  33. package/dist/{layers.BaZPyxUt.js → layers.BKy18lBk.js} +1 -1
  34. package/dist/{layers.AmrlbWu1.js → layers.BL3wEq7M.js} +1 -1
  35. package/dist/{layers.Dxu3Xyi3.js → layers.BLKD1Tiy.js} +1 -1
  36. package/dist/{layers.NsLqNUEF.js → layers.BNR6f37h.js} +1 -1
  37. package/dist/{layers.DPxVCpug.js → layers.BNkwxNgt.js} +1 -1
  38. package/dist/layers.BOMC5c1j.js +2 -0
  39. package/dist/{layers.Bd22pBlW.js → layers.BQL01Vq6.js} +1 -1
  40. package/dist/{layers.C99Cexqw.js → layers.BQm21WlP.js} +1 -1
  41. package/dist/{layers.qGNJ--WQ.js → layers.BRGRJfuK.js} +1 -1
  42. package/dist/{layers.oVkUiGD5.js → layers.BXDV2XaW.js} +1 -1
  43. package/dist/{layers.Clg4qKJE.js → layers.B_Vwa8Hx.js} +1 -1
  44. package/dist/{layers.B69R6aNe.js → layers.B_jUVHTe.js} +1 -1
  45. package/dist/{layers.fMORkKD1.js → layers.BakV9gnD.js} +1 -1
  46. package/dist/{layers.CMeoX_6d.js → layers.BbbyE_Pc.js} +1 -1
  47. package/dist/{layers.Cyriz6h0.js → layers.Bd6ptC9U.js} +1 -1
  48. package/dist/{layers.Dvj9GF2t.js → layers.BeCuix4V.js} +1 -1
  49. package/dist/{layers.BqwXjSdW.js → layers.BeFEsW5q.js} +1 -1
  50. package/dist/{layers.DTpQsyHL.js → layers.BfVGjstp.js} +1 -1
  51. package/dist/{layers.tKYD6YFQ.js → layers.BgEbqAdb.js} +3 -3
  52. package/dist/{layers.Cf3UeiB-.js → layers.Bk40urId.js} +3 -3
  53. package/dist/{layers.Dl2HBQxC.js → layers.Blc4R7F2.js} +1 -1
  54. package/dist/{layers.D7rWRjC3.js → layers.Bny7BWT9.js} +1 -1
  55. package/dist/layers.Bpnbfq-r.js +1 -0
  56. package/dist/{layers.CxdXwrxt.js → layers.BrbcqGdA.js} +11 -8
  57. package/dist/{layers.B5bpf_7p.js → layers.BvGgfImM.js} +7 -7
  58. package/dist/{layers.DYpK4YMg.js → layers.BywviGiP.js} +1 -1
  59. package/dist/layers.C-_ynqvr.js +1 -0
  60. package/dist/{layers.CfQfH2uJ.js → layers.C1actZbK.js} +1 -1
  61. package/dist/{layers.BUVnl6Le.js → layers.C3DRx9On.js} +4 -4
  62. package/dist/{layers.KwB0GlFE.js → layers.C3SAUwXb.js} +1 -1
  63. package/dist/{layers.BRERX0Ta.js → layers.C3yLkCio.js} +1 -1
  64. package/dist/layers.C6fD5O8g.js +6 -0
  65. package/dist/{layers.CChpNaZS.js → layers.C8YD8pwl.js} +1 -1
  66. package/dist/{layers.CZ1OaFnb.js → layers.C92R-ENv.js} +1 -1
  67. package/dist/layers.C9QCrDzm.js +1 -0
  68. package/dist/{layers.CmhjLkPQ.js → layers.C9_vX7IO.js} +3 -3
  69. package/dist/{layers.BleViEhx.js → layers.CA_fw2Dw.js} +1 -1
  70. package/dist/layers.CB61rfHO.js +1225 -0
  71. package/dist/{layers.DKXsz8De.js → layers.CCur6VEj.js} +2 -2
  72. package/dist/{layers.ymjb604H.js → layers.CFLfRAu0.js} +2 -2
  73. package/dist/{layers.nZCdSvk1.js → layers.CFcHk-z5.js} +7 -4
  74. package/dist/{layers.DKW7xVDB.js → layers.CFmNZSAJ.js} +1 -1
  75. package/dist/{layers.CnNiivey.js → layers.CGajZ1Yz.js} +1 -1
  76. package/dist/{layers.DtSwBGHi.js → layers.CHhFVTiW.js} +1 -1
  77. package/dist/{layers.CxgVGyGF.js → layers.CJ1YRhUh.js} +1 -1
  78. package/dist/{layers.BKe6olqL.js → layers.CJtE2LxP.js} +227 -224
  79. package/dist/{layers.BiR2CF-2.js → layers.CJyO2xrs.js} +1 -1
  80. package/dist/{layers.CoQmjZ4J.js → layers.CMyb9_FE.js} +1 -1
  81. package/dist/{layers.DXEokfvb.js → layers.COjckA33.js} +1 -1
  82. package/dist/{layers.DveaDpN8.js → layers.CPJSmpbw.js} +1 -1
  83. package/dist/{layers.DSl-zfQT.js → layers.CQvaw3yb.js} +1 -1
  84. package/dist/{layers.3fYhTnFF.js → layers.CRht5Nqq.js} +17 -14
  85. package/dist/{layers.D8UT-P1H.js → layers.CSXAHvGG.js} +1 -1
  86. package/dist/{layers.-HEzHycj.js → layers.CTaitOnb.js} +1 -1
  87. package/dist/{layers.DekD8orP.js → layers.CV8UgwCq.js} +36 -36
  88. package/dist/{layers.Cz9QvGey.js → layers.CVJOismf.js} +1 -1
  89. package/dist/{layers.CCH5qSih.js → layers.CXWtqfTe.js} +10 -7
  90. package/dist/layers.CYPfnKfS.js +96 -0
  91. package/dist/{layers.B00-1iAV.js → layers.CYdP1IhC.js} +1 -1
  92. package/dist/{layers.D3j9uNzd.js → layers.CYneLciB.js} +13 -10
  93. package/dist/layers.CZLVHOh5.js +8 -0
  94. package/dist/{layers.BE-zaOC2.js → layers.CbBTbZIx.js} +1 -1
  95. package/dist/layers.CcP6Z-gZ.js +118 -0
  96. package/dist/{layers.qhcxehdz.js → layers.CcTyCqqv.js} +1 -1
  97. package/dist/{layers.sLOyQZcV.js → layers.Cd3kGFCJ.js} +1 -1
  98. package/dist/{layers.Dbb-j6ep.js → layers.Ce7-wBOK.js} +1 -1
  99. package/dist/{layers.cM9zXLVC.js → layers.Cf5sVqJX.js} +1 -1
  100. package/dist/{layers.JEEhIg0m.js → layers.CfISeAkt.js} +86 -84
  101. package/dist/{layers.Dlplq5Vl.js → layers.Cg3Hqyp6.js} +1 -1
  102. package/dist/{layers.CXfyEibx.js → layers.Cg60w1Fn.js} +7 -4
  103. package/dist/layers.Chd1p2rt.js +26645 -0
  104. package/dist/{layers.Bv10AxGq.js → layers.CiTNX3uh.js} +1 -1
  105. package/dist/{layers.DYLSrRDw.js → layers.CkwenT1M.js} +1 -1
  106. package/dist/{layers.Dq67pw8V.js → layers.CnN8JfiX.js} +9 -6
  107. package/dist/{layers.Y0IKjrt2.js → layers.Coh6z7rV.js} +1 -1
  108. package/dist/{layers.ae6QjKlD.js → layers.CpJSdiMb.js} +1 -1
  109. package/dist/{layers.D_ZNOxp7.js → layers.Cryqj610.js} +8 -5
  110. package/dist/{layers.CTCi1Zya.js → layers.Cs-83js7.js} +1 -1
  111. package/dist/{layers.7OvdxGRE.js → layers.CsivQuv1.js} +1 -1
  112. package/dist/{layers.DGBPtrAj.js → layers.Cud-IArB.js} +1 -1
  113. package/dist/{layers.DB79nMwy.js → layers.CwL02t3J.js} +1 -1
  114. package/dist/{layers.iQx1OnXH.js → layers.CwsNJfmi.js} +1 -1
  115. package/dist/{layers.D2ept2hx.js → layers.CxIhyFb7.js} +6 -2
  116. package/dist/{layers.CDED3tG-.js → layers.Cxh-oez0.js} +6 -6
  117. package/dist/layers.D-uio-rN.js +423 -0
  118. package/dist/{layers.QbyGQk-s.js → layers.D0RX234F.js} +1 -1
  119. package/dist/{layers.BcdD4Kub.js → layers.D176Ljko.js} +1 -1
  120. package/dist/{layers.8-443yyd.js → layers.D2cVaX5z.js} +20 -17
  121. package/dist/layers.D4Bw_BrO.js +1 -0
  122. package/dist/{layers.1nXpKAJ2.js → layers.D8fFj0P_.js} +1 -1
  123. package/dist/{layers.b-XvW4-V.js → layers.D9N3lSue.js} +6 -6
  124. package/dist/{layers.DqIJvqbu.js → layers.DAmxkO9p.js} +1 -1
  125. package/dist/{layers.vSt9xurF.js → layers.DBwG7x-W.js} +1 -1
  126. package/dist/{layers.DC-Esj9C.js → layers.DDFbkCJT.js} +1 -1
  127. package/dist/{layers.DZNtacAC.js → layers.DDnI7-13.js} +1 -1
  128. package/dist/{layers.XqsjM4Js.js → layers.DE6w34F3.js} +1 -1
  129. package/dist/{layers.0Ig7SAGH.js → layers.DEaAvR_W.js} +18 -15
  130. package/dist/{layers.rigCtjVk.js → layers.DEtMl_i3.js} +1 -1
  131. package/dist/{layers.D5aMPhta.js → layers.DHNIckw6.js} +1 -1
  132. package/dist/layers.DHVcgZzL.js +257 -0
  133. package/dist/{layers.iA_Fgo9z.js → layers.DHcbExrH.js} +3 -3
  134. package/dist/{layers.CyNyXxvj.js → layers.DIpDvY-A.js} +1 -1
  135. package/dist/{layers.DuDf1ezU.js → layers.DJM_OF_R.js} +1 -1
  136. package/dist/{layers.LqgkRSDx.js → layers.DLJtS0JJ.js} +1 -1
  137. package/dist/{layers.DQ9tLViO.js → layers.DNJtYtN1.js} +1 -1
  138. package/dist/layers.DUlTmlus.js +213 -0
  139. package/dist/{layers.BP0cLCdC.js → layers.DUutOP8h.js} +1 -1
  140. package/dist/{layers.BHNil4iz.js → layers.DVWaIKgr.js} +12 -9
  141. package/dist/{layers.B7KSJCCk.js → layers.D_WwW4Fn.js} +1 -1
  142. package/dist/{layers.Bv7vodST.js → layers.D_fPGQ6i.js} +1 -1
  143. package/dist/{layers.BzhWDlph.js → layers.D_faABvp.js} +3744 -3749
  144. package/dist/{layers.BvBoMXd2.js → layers.DaIprEGs.js} +1 -1
  145. package/dist/{layers.D4YtD7iL.js → layers.Db0NyGA-.js} +1 -1
  146. package/dist/{layers.CoSEj_NH.js → layers.DdMy9cRx.js} +7 -7
  147. package/dist/{layers.DHkz5z4N.js → layers.De35CioU.js} +1 -1
  148. package/dist/{layers.fMMLMI12.js → layers.DgO3Q5mW.js} +1 -1
  149. package/dist/{layers.DGBh4sVh.js → layers.Di-PcJK6.js} +1 -1
  150. package/dist/{layers.BBLGcPGg.js → layers.DjCXWv2m.js} +1 -1
  151. package/dist/{layers.CmyzESvD.js → layers.Dk2S8boy.js} +1 -1
  152. package/dist/{layers.CTlgEeVk.js → layers.DkBjWcDH.js} +8 -5
  153. package/dist/{layers.Se5UBbOF.js → layers.DnRaD217.js} +3231 -3814
  154. package/dist/{layers.CjVZz9BF.js → layers.DnvnGxUC.js} +1 -1
  155. package/dist/{layers.DZGTkrsO.js → layers.DrarpmaN.js} +7 -4
  156. package/dist/{layers.DTj0lXel.js → layers.DukGouVT.js} +1 -1
  157. package/dist/{layers.BbBLP9cJ.js → layers.DvYYNhUp.js} +1 -1
  158. package/dist/layers.Dv_6xN7s.js +2 -0
  159. package/dist/layers.DwWUZK6s.js +129 -0
  160. package/dist/{layers.DZRyTn6M.js → layers.DwzO2zcv.js} +1 -1
  161. package/dist/{layers.Da2uCCzT.js → layers.DzD-lWXV.js} +8 -5
  162. package/dist/{layers.BHv2-g4M.js → layers.E0TLXdrR.js} +1 -1
  163. package/dist/{layers.EMkoiu95.js → layers.EcqLW9Mh.js} +1 -1
  164. package/dist/{layers.CxUvO3nD.js → layers.F4d4ILBH.js} +95 -92
  165. package/dist/{layers.CSGRMqOI.js → layers.G3enfHRT.js} +1 -1
  166. package/dist/{layers.B7TEkwGs.js → layers.HFONz6O9.js} +4 -4
  167. package/dist/{layers.BlxPj2ft.js → layers.IUqwmZRd.js} +3 -3
  168. package/dist/{layers.HJGAV_6P.js → layers.IbJq0D6U.js} +1 -1
  169. package/dist/{layers.B6ZBiQ9y.js → layers.Ic3KgoPg.js} +1 -1
  170. package/dist/{layers.CMTtWk9r.js → layers.JNgL8WWu.js} +1 -1
  171. package/dist/{layers.0huivShe.js → layers.KT-QFgdb.js} +1 -1
  172. package/dist/{layers.DhJGs9D9.js → layers.LCfVvo3T.js} +1 -1
  173. package/dist/{layers.CxE_w_kd.js → layers.LR-nMBU_.js} +8 -5
  174. package/dist/layers.Qt2qr0-t.js +76 -0
  175. package/dist/{layers.DS6uH7WL.js → layers.R8mPlCA0.js} +1 -1
  176. package/dist/{layers.CrNTTDsw.js → layers.SCsPWeXb.js} +1 -1
  177. package/dist/{layers.BFh4kozj.js → layers.U4NCf2-l.js} +3 -3
  178. package/dist/{layers.B44wzkNx.js → layers.UewvnK33.js} +1 -1
  179. package/dist/{layers.CsC8UAA5.js → layers.VfVZmEbK.js} +1 -1
  180. package/dist/{layers.Bxqbtq5y.js → layers.Vh-KvhZg.js} +1 -1
  181. package/dist/{layers.LSr3ZSq0.js → layers.Y3D9xjCC.js} +1 -1
  182. package/dist/{layers.DXl6OGkS.js → layers.YT6D6D2x.js} +1 -1
  183. package/dist/{layers.DMlO9Mu6.js → layers._y8hExIw.js} +9 -6
  184. package/dist/layers.a8-4vDzD.js +22 -0
  185. package/dist/{layers.CfFB1Jdb.js → layers.aGzHUJ1W.js} +4 -4
  186. package/dist/{layers.C6SjTJMZ.js → layers.b9B2NY7n.js} +2 -2
  187. package/dist/{layers.Cc0Vj494.js → layers.ck9pUJ0W.js} +1 -1
  188. package/dist/{layers.2QIBFyz0.js → layers.d3HoUueQ.js} +1 -1
  189. package/dist/layers.dWB4bggP.js +1 -0
  190. package/dist/{layers.DXSG6UTB.js → layers.dh8xLSwh.js} +1 -1
  191. package/dist/{layers.Csay1TY9.js → layers.eT_ZPmHS.js} +1 -1
  192. package/dist/{layers.DFPipsvw.js → layers.fumrrA0i.js} +3 -3
  193. package/dist/{layers.oMvas05W.js → layers.gVfRcFrJ.js} +1 -1
  194. package/dist/{layers.CBhNW4x3.js → layers.js7-Kn9p.js} +1 -1
  195. package/dist/{layers.D2kxkk3M.js → layers.kW7XFPN_.js} +1 -1
  196. package/dist/layers.mobYTQXI.js +1 -0
  197. package/dist/{layers.2FGRH0to.js → layers.mvotlTNZ.js} +1 -1
  198. package/dist/{layers.Br03igaE.js → layers.n1dibO8I.js} +1 -1
  199. package/dist/layers.nRPZ1e3g.js +1 -0
  200. package/dist/layers.o2u1uDM3.js +1 -0
  201. package/dist/layers.oJ31-KOl.js +6 -0
  202. package/dist/{layers.BaF5V6eT.js → layers.ojcNGNgi.js} +1 -1
  203. package/dist/{layers.C14IhTUb.js → layers.otxU0wtq.js} +1 -1
  204. package/dist/layers.rE9xnPLC.js +1 -0
  205. package/dist/{layers.YCN45krj.js → layers.s0KLXd5N.js} +1 -1
  206. package/dist/{layers.CXMTQ4Qs.js → layers.sqH5TpK8.js} +1 -1
  207. package/dist/{layers.Cic_oB60.js → layers.t_MFWlU6.js} +1 -1
  208. package/dist/{layers.2rBPbs2X.js → layers.xrt74v23.js} +1 -1
  209. package/dist/{layers.eqg2Wrbo.js → layers.zNb0110W.js} +1 -1
  210. package/package.json +24 -23
  211. package/dist/layers.1BQdieb-.js +0 -198
  212. package/dist/layers.B8bQ9R7v.js +0 -1
  213. package/dist/layers.BEoiYZ9C.js +0 -2
  214. package/dist/layers.BEwSO8pM.js +0 -118
  215. package/dist/layers.BRp0FVsS.js +0 -1
  216. package/dist/layers.Bbe25s3_.js +0 -1
  217. package/dist/layers.BkR5zRHn.js +0 -2
  218. package/dist/layers.BkpzTL2k.js +0 -1
  219. package/dist/layers.BqIIcYfB.js +0 -1
  220. package/dist/layers.BxEWWb9m.js +0 -96
  221. package/dist/layers.C4sqTK_F.js +0 -1
  222. package/dist/layers.CQIsVcwC.js +0 -6
  223. package/dist/layers.CTRdszML.js +0 -208
  224. package/dist/layers.CqT_gss2.js +0 -48035
  225. package/dist/layers.CsWTu1pX.js +0 -1
  226. package/dist/layers.CslnYMwL.js +0 -1
  227. package/dist/layers.CxWy2u81.js +0 -257
  228. package/dist/layers.D8q8EQ25.js +0 -19
  229. package/dist/layers.DSizcPmk.js +0 -304
  230. package/dist/layers.DrCX7uk-.js +0 -1
  231. package/dist/layers.DwoR4aww.js +0 -1
  232. package/dist/layers.F-T8S6hH.js +0 -423
  233. package/dist/layers.JZD2ERjq.js +0 -8
  234. package/dist/layers.SCq_rm-E.js +0 -74
  235. package/dist/layers.VNi0OGm-.js +0 -1359
  236. package/dist/layers.lU1KJbBR.js +0 -8
  237. package/dist/layers.wUbLWqHf.js +0 -7
@@ -1,8 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./layers.BxEWWb9m.js");require("./layers.DekD8orP.js");const pt=require("./layers.B19hGmey.js"),mt=require("./layers.BIeVwYKL.js");function rt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function ft(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function kt(t){return t.target.depth}function _t(t){return t.depth}function xt(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function vt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,kt)-1:0}function G(t){return function(){return t}}function ot(t,n){return Y(t.source,n.source)||t.index-n.index}function lt(t,n){return Y(t.target,n.target)||t.index-n.index}function Y(t,n){return t.y0-n.y0}function J(t){return t.value}function bt(t){return t.index}function wt(t){return t.nodes}function St(t){return t.links}function at(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ct({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Lt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=bt,i=yt,o,c,m=wt,b=St,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return A(e),E(e),T(e),C(e),S(e),ct(e),e}x.update=function(e){return ct(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:G(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:G(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:G(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:G(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function A({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=at(l,k)),typeof v!="object"&&(v=r.target=at(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function E({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function T({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function C({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function O({nodes:e}){const f=rt(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function j(e){const f=ft(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=O(e);g=Math.min(_,(a-n)/(rt(f,l=>l.length)-1)),j(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);D(f,h,r),N(f,h,r)}}function N(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let U=0,z=0;for(const{source:F,value:K}of v.targetLinks){let q=K*(v.layer-F.layer);U+=M(F,v)*q,z+=q}if(!(z>0))continue;let W=(U/z-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function D(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let U=0,z=0;for(const{target:F,value:K}of v.sourceLinks){let q=K*(F.layer-v.layer);U+=R(v,F)*q,z+=q}if(!(z>0))continue;let W=(U/z-v.y0)*f;v.y0+=W,v.y1+=W,w(v)}o===void 0&&k.sort(Y),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),I(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),I(e,n,0,f)}function I(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(lt);for(const{target:{targetLinks:l}}of e)l.sort(ot)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(lt),l.sort(ot)}function M(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function R(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,B=1e-6,Et=et-B;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new nt}nt.prototype=dt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>B)if(!(Math.abs(c*p-i*o)>B)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,A=b*b+y*y,E=Math.sqrt(x),T=Math.sqrt(m),C=u*Math.tan((tt-Math.acos((x+m-A)/(2*E*T)))/2),O=C/T,j=C/E;Math.abs(O-1)>B&&(this._+="L"+(t+O*o)+","+(n+O*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+j*p)+","+(this._y1=n+j*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>B||Math.abs(this._y1-o)>B)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>Et?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>B&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function At(t){return t[0]}function Tt(t){return t[1]}var Mt=Array.prototype.slice;function Nt(t){return t.source}function Ct(t){return t.target}function Pt(t){var n=Nt,s=Ct,a=At,u=Tt,_=null;function g(){var p,i=Mt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=dt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ut(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ut(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function It(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ot(){return Pt(It)}function $t(t){return[t.source.x1,t.y0]}function Dt(t){return[t.target.x0,t.y1]}function jt(){return Ot().source($t).target(Dt)}var it=(function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var A=y.length-1;switch(b){case 7:const E=m.findOrCreateNode(y[A-4].trim().replaceAll('""','"')),T=m.findOrCreateNode(y[A-2].trim().replaceAll('""','"')),C=parseFloat(y[A].trim());m.addLink(E,T,C);break;case 8:case 9:case 11:this.$=y[A];break;case 10:this.$=y[A-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,A="",E=0,T=0,C=2,O=1,j=y.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);S.setInput(i,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var I=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||O,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,M,R,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),M=x[$]&&x[$][w]),typeof M>"u"||!M.length||!M[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>C&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(E+1)+`:
2
- `+S.showPosition()+`
3
- Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(E+1)+": Unexpected "+(w==O?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(M[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(M[1]),w=null,T=S.yyleng,A=S.yytext,E=S.yylineno,P=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},I&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),R=this.performAction.apply(e,[A,T,E,N.yy,M[1],b,y].concat(j)),typeof R<"u")return R;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[M[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=(function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||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 o=i.match(/(?:\r\n?|\n).*/g);return o?(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 o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),c.length-1&&(this.yylineno-=c.length-1);var b=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:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
- `+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return p})();u.lexer=_;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g})();it.parser=it;const H=it;let X=[],Q=[],V={};const zt=()=>{X=[],Q=[],V={},L.clear()};class Bt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Vt=(t,n,s)=>{X.push(new Bt(t,n,s))};class Rt{constructor(n){this.ID=n}}const Ut=t=>(t=L.common$1.sanitizeText(t,L.getConfig()),V[t]||(V[t]=new Rt(t),Q.push(V[t])),V[t]),Wt=()=>Q,Ft=()=>X,qt=()=>({nodes:Q.map(t=>({id:t.ID})),links:X.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),Gt={nodesMap:V,getConfig:()=>L.getConfig().sankey,getNodes:Wt,getLinks:Ft,getGraph:qt,addLink:Vt,findOrCreateNode:Ut,getAccTitle:L.getAccTitle,setAccTitle:L.setAccTitle,getAccDescription:L.getAccDescription,setAccDescription:L.setAccDescription,getDiagramTitle:L.getDiagramTitle,setDiagramTitle:L.setDiagramTitle,clear:zt},gt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};gt.count=0;let ht=gt;const Yt={left:_t,right:xt,center:vt,justify:yt},Ht=function(t,n,s,a){const{securityLevel:u,sankey:_}=L.getConfig(),g=L.defaultConfig.sankey;let p;u==="sandbox"&&(p=L.select("#i"+n));const i=u==="sandbox"?L.select(p.nodes()[0].contentDocument.body):L.select("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):L.select(`[id="${n}"]`),c=(_==null?void 0:_.width)??g.width,m=(_==null?void 0:_.height)??g.width,b=(_==null?void 0:_.useMaxWidth)??g.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??g.nodeAlignment,x=(_==null?void 0:_.prefix)??g.prefix,A=(_==null?void 0:_.suffix)??g.suffix,E=(_==null?void 0:_.showValues)??g.showValues,T=a.db.getGraph(),C=Yt[y];Lt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(E?15:0)).nodeAlign(C).extent([[0,0],[c,m]])(T);const S=pt.ordinal(mt.schemeTableau10);o.append("g").attr("class","nodes").selectAll(".node").data(T.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ht.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const N=({id:d,value:w})=>E?`${d}
7
- ${x}${Math.round(w*100)/100}${A}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(T.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${E?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(N);const D=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(T.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(_==null?void 0:_.linkColor)||"gradient";if(P==="gradient"){const d=D.append("linearGradient").attr("id",w=>(w.uid=ht.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let I;switch(P){case"gradient":I=d=>d.uid;break;case"source":I=d=>S(d.source.id);break;case"target":I=d=>S(d.target.id);break;default:I=P}D.append("path").attr("d",jt()).attr("stroke",I).attr("stroke-width",d=>Math.max(1,d.width)),L.setupGraphViewbox$1(void 0,o,0,b)},Xt={draw:Ht},Qt=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
- `).trim(),Kt=H.parse.bind(H);H.parse=t=>Kt(Qt(t));const Zt={parser:H,db:Gt,renderer:Xt};exports.diagram=Zt;
@@ -1,7 +0,0 @@
1
- import { q as e, G as t } from "./layers.BzhWDlph.js";
2
- import { X as r } from "./layers.BzhWDlph.js";
3
- export {
4
- e as decodePngMetadata,
5
- t as encodePngMetadata,
6
- r as getTEXtChunk
7
- };