@layers-app/editor 0.5.3 → 0.5.4

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 (211) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{layers.BIRU7ZCl.js → layers.0Vc5u9wi.js} +1 -1
  4. package/dist/{layers.DMh-zb88.js → layers.0lKxBq_Z.js} +1 -1
  5. package/dist/{layers.chFbbZh9.js → layers.2TEubI7B.js} +24 -24
  6. package/dist/{layers.f5SObLpT.js → layers.2dSs7BFo.js} +1 -1
  7. package/dist/{layers.DrD0W7B3.js → layers.3Dey85Sg.js} +1 -1
  8. package/dist/layers.4PnWyG15.js +1 -0
  9. package/dist/{layers.CdGfvF7V.js → layers.7AV5Mjwc.js} +1 -1
  10. package/dist/{layers.DIuulfCg.js → layers.8M-X7Sjs.js} +1 -1
  11. package/dist/{layers.B0JnuQf0.js → layers.8TlBNrhP.js} +1 -1
  12. package/dist/{layers.Coygwekn.js → layers.AdVOrUHP.js} +1 -1
  13. package/dist/{layers.sf1uvSch.js → layers.B-PN8Ivp.js} +1 -1
  14. package/dist/{layers.D0MGpeyX.js → layers.B-p6Dq0Q.js} +1 -1
  15. package/dist/{layers.D0lTyC6R.js → layers.B01Mkf43.js} +1 -1
  16. package/dist/{layers.BshQq6Az.js → layers.B1ZJQJ9P.js} +4 -4
  17. package/dist/{layers.Dlp5s5ci.js → layers.B3QTzda5.js} +1 -1
  18. package/dist/{layers.t3fpEPMO.js → layers.B3oxjHQn.js} +1 -1
  19. package/dist/{layers.DJS98Zvr.js → layers.B6HtYq4i.js} +1 -1
  20. package/dist/{layers.vHrsDWns.js → layers.B6_OBDNt.js} +1 -1
  21. package/dist/{layers.CmqoZAnC.js → layers.B78LZkUC.js} +42 -42
  22. package/dist/{layers.BiJ8hfRt.js → layers.B7K7JjK6.js} +3 -3
  23. package/dist/{layers.BFlW1eUA.js → layers.B7WUWYmW.js} +3 -3
  24. package/dist/{layers.ClJd7I1M.js → layers.B8B1EGKw.js} +1 -1
  25. package/dist/{layers.D33cj9e8.js → layers.B8Q6U7WI.js} +1 -1
  26. package/dist/{layers.1XpBjqYP.js → layers.BA4OdAcT.js} +1 -1
  27. package/dist/{layers.9rNftyw-.js → layers.BAZKZlZK.js} +1 -1
  28. package/dist/{layers.DXr2kWj5.js → layers.BAp-ZcKa.js} +1 -1
  29. package/dist/{layers.BZYqdVEt.js → layers.BBcawDfH.js} +1 -1
  30. package/dist/{layers.CtHBfow6.js → layers.BBoi-kO8.js} +2 -2
  31. package/dist/{layers.Dfw_b3vF.js → layers.BCH7lv8E.js} +3 -3
  32. package/dist/{layers.DNray0Kg.js → layers.BCHzCw1h.js} +1 -1
  33. package/dist/{layers.puGhbMne.js → layers.BGJy9qIc.js} +4 -4
  34. package/dist/{layers.DxIjFIXA.js → layers.BHm0Axow.js} +1 -1
  35. package/dist/{layers.DO8Lq71I.js → layers.BHu-pLjy.js} +1 -1
  36. package/dist/{layers.bfGibH2F.js → layers.BIbU3e2i.js} +1 -1
  37. package/dist/{layers.PaRWxJTx.js → layers.BIpjXFWx.js} +1 -1
  38. package/dist/{layers.BxqlTEGI.js → layers.BK7bGK5J.js} +1 -1
  39. package/dist/{layers.BjkZnui0.js → layers.BLJRrYDK.js} +1 -1
  40. package/dist/{layers.rfeShEsx.js → layers.BLNsVsdf.js} +1 -1
  41. package/dist/{layers.BsuVfEWr.js → layers.BLfiInYv.js} +1 -1
  42. package/dist/{layers.MNsWD8fy.js → layers.BMJEI08z.js} +1 -1
  43. package/dist/{layers.CR1i6QWh.js → layers.BNO6yxGi.js} +2 -2
  44. package/dist/{layers.ftDLkcXk.js → layers.BQkD83en.js} +1 -1
  45. package/dist/{layers.DSnpK9v9.js → layers.BRfovdxH.js} +1 -1
  46. package/dist/{layers.hGSxVR0w.js → layers.BTQk3je9.js} +1 -1
  47. package/dist/{layers.BsTKIt_N.js → layers.BWMcm2Fa.js} +4 -4
  48. package/dist/{layers.Bo0o9BXc.js → layers.BWnNwfH5.js} +1 -1
  49. package/dist/{layers.Da1VjmYH.js → layers.BXXQl2Zf.js} +1 -1
  50. package/dist/{layers.Pfqcm_x1.js → layers.BaSdeSdM.js} +1 -1
  51. package/dist/{layers.ETa5WiKT.js → layers.BeLeVyDh.js} +1 -1
  52. package/dist/{layers.DlWfA7qx.js → layers.BgHyUng2.js} +1 -1
  53. package/dist/{layers.Brr7ESXx.js → layers.BhCBXy_H.js} +1 -1
  54. package/dist/{layers.C2fRZH80.js → layers.BjdYJwx4.js} +1 -1
  55. package/dist/{layers.zysZLChz.js → layers.Bn7jNDk7.js} +1 -1
  56. package/dist/{layers.C_RheIIS.js → layers.Bo572hFp.js} +3 -3
  57. package/dist/{layers.eOMmuyRq.js → layers.BoXC0jZK.js} +1 -1
  58. package/dist/{layers.C4CXznF_.js → layers.BpWdUEAy.js} +1 -1
  59. package/dist/{layers.B-6jN1Zn.js → layers.Brnh5Tpc.js} +1 -1
  60. package/dist/{layers.DilKJOqa.js → layers.Bt8AkbAr.js} +1 -1
  61. package/dist/{layers.zj3cbd1g.js → layers.BtPpuF7b.js} +1 -1
  62. package/dist/{layers.Cisk2RXM.js → layers.BtU3b5tV.js} +1 -1
  63. package/dist/{layers.B0dbAkLw.js → layers.Bt_43ZXI.js} +1 -1
  64. package/dist/{layers.QeRtN6Gq.js → layers.BuwPLLxP.js} +1 -1
  65. package/dist/{layers.yIm62nh0.js → layers.Bw91koAV.js} +1 -1
  66. package/dist/{layers.2Ibk-yAi.js → layers.BwE0SG5q.js} +1 -1
  67. package/dist/{layers.B2IHCuq4.js → layers.BxVBZNlm.js} +4 -4
  68. package/dist/{layers.CBUXk-09.js → layers.By75AUqv.js} +1 -1
  69. package/dist/{layers.DFF0tKf2.js → layers.ByJ1e5_6.js} +1 -1
  70. package/dist/{layers.Dne14exG.js → layers.C-GJGbMF.js} +2 -2
  71. package/dist/{layers.MsLi1AaR.js → layers.C2CT_pu0.js} +1 -1
  72. package/dist/{layers.D_i2rLsg.js → layers.C34uefby.js} +8 -8
  73. package/dist/{layers.DByfn15F.js → layers.C4zd47gQ.js} +1 -1
  74. package/dist/{layers.C24uY6Fe.js → layers.C7DmNGsM.js} +3 -3
  75. package/dist/{layers.BjNcxnlF.js → layers.C7yxY1d5.js} +1 -1
  76. package/dist/{layers.DfXjhAWm.js → layers.CDR76Utk.js} +1 -1
  77. package/dist/{layers.Dfev0R1t.js → layers.CE9TtaVf.js} +1 -1
  78. package/dist/{layers.Bowu41KP.js → layers.CEW_1Vth.js} +5 -5
  79. package/dist/{layers.BipydXP9.js → layers.CHKv58R7.js} +3 -3
  80. package/dist/{layers.DT4gw4t8.js → layers.CHTiuRJ2.js} +1 -1
  81. package/dist/{layers.hMduvmS1.js → layers.CHmO_pnj.js} +1 -1
  82. package/dist/{layers.DHrdv4EX.js → layers.CJOaUqZa.js} +1 -1
  83. package/dist/{layers.Bq8EFsFh.js → layers.CNwhJl6E.js} +1 -1
  84. package/dist/{layers.B2OBW6d_.js → layers.CO3Sytmm.js} +1 -1
  85. package/dist/{layers.UA4MYWds.js → layers.COBiR5mi.js} +1 -1
  86. package/dist/{layers.Bm_lyqCL.js → layers.CPotB7xk.js} +1 -1
  87. package/dist/{layers.H0NAWny8.js → layers.CQjk6uv5.js} +1 -1
  88. package/dist/{layers.B66ctuSP.js → layers.CS7-jlyg.js} +1 -1
  89. package/dist/{layers.e7K9sNTy.js → layers.CUkptGJB.js} +1 -1
  90. package/dist/{layers.CQ6g1bgB.js → layers.CYPdHBuP.js} +1 -1
  91. package/dist/{layers.3DsBPqy5.js → layers.CYi_BcJI.js} +1 -1
  92. package/dist/{layers.BdC79PeD.js → layers.CZ1mAelj.js} +1 -1
  93. package/dist/{layers.BJOHTiQN.js → layers.CZKmXUYL.js} +1 -1
  94. package/dist/layers.CZg7_09G.js +6 -0
  95. package/dist/{layers.hYSHj9J1.js → layers.C_CX4lOf.js} +7 -7
  96. package/dist/{layers.BgOa2ZQq.js → layers.C_IvrzZ3.js} +1 -1
  97. package/dist/{layers.BptubpVI.js → layers.Ca6XSV3_.js} +1 -1
  98. package/dist/{layers.Cob5vYhh.js → layers.Cc9iNo-9.js} +1 -1
  99. package/dist/{layers.DXKXZPx3.js → layers.CcNvGlTJ.js} +1 -1
  100. package/dist/{layers.CLgsvcu7.js → layers.CffIrHwd.js} +1 -1
  101. package/dist/{layers.i3cprua-.js → layers.CjbtwZr2.js} +1 -1
  102. package/dist/{layers.BeQxuBmo.js → layers.CkglrFct.js} +3 -3
  103. package/dist/{layers.CVUgbWcY.js → layers.Ckt3zLwN.js} +8 -8
  104. package/dist/{layers.J8OYHqDO.js → layers.Clj6j5Iv.js} +1 -1
  105. package/dist/{layers.COYYECPe.js → layers.ClnUWksj.js} +6 -6
  106. package/dist/{layers.CnrBP_N5.js → layers.Cn_uKK1B.js} +3 -3
  107. package/dist/{layers.BpVuHPkZ.js → layers.CoifawpZ.js} +1 -1
  108. package/dist/{layers.BKLAyg9f.js → layers.CpaBuhmV.js} +1 -1
  109. package/dist/{layers.4OVSS-76.js → layers.CqIAspBY.js} +2 -2
  110. package/dist/{layers.Cf9fVqKx.js → layers.CqYl5vBW.js} +576 -576
  111. package/dist/{layers.DCrkhQnl.js → layers.CrYs8jr0.js} +1 -1
  112. package/dist/{layers.BznUuBVb.js → layers.CtKjFW4u.js} +1 -1
  113. package/dist/{layers.CAm5BKM7.js → layers.CulA-HKW.js} +1 -1
  114. package/dist/{layers.CTK5IBtb.js → layers.CvCkctiF.js} +3 -3
  115. package/dist/{layers.ClxhzI7j.js → layers.CwbqB-j8.js} +1 -1
  116. package/dist/layers.CxUmCpia.js +8 -0
  117. package/dist/{layers.DeIaMdiM.js → layers.Cxs_jg70.js} +1 -1
  118. package/dist/{layers.BUbQisBD.js → layers.Cyd9Kqo2.js} +1 -1
  119. package/dist/{layers.Df5Qb1Ul.js → layers.Czj79CMM.js} +4 -4
  120. package/dist/{layers.C7M6CfP5.js → layers.D11RjmdS.js} +1 -1
  121. package/dist/{layers.z72AWJJl.js → layers.D3ZgR0ob.js} +1 -1
  122. package/dist/{layers.Bwphu0_-.js → layers.D3rsDF_5.js} +1 -1
  123. package/dist/{layers.C7eXel2I.js → layers.D4Yj3ljo.js} +2 -2
  124. package/dist/{layers.CHmvLyW1.js → layers.D5O9Ej7a.js} +1 -1
  125. package/dist/{layers.B1IDMpWZ.js → layers.D6-ZYEi1.js} +1 -1
  126. package/dist/{layers.MbNt5pO7.js → layers.D6poOgUD.js} +1 -1
  127. package/dist/{layers.DRRAWjJ-.js → layers.D8Q-3JFA.js} +1 -1
  128. package/dist/{layers.Di7HIxcn.js → layers.D8nVojnD.js} +4 -4
  129. package/dist/{layers.DH7bTclZ.js → layers.DAJX6HDB.js} +1 -1
  130. package/dist/{layers.D-v-3mtK.js → layers.DD4kIsiO.js} +1 -1
  131. package/dist/{layers.DqpBjyTk.js → layers.DDyk3QWM.js} +1 -1
  132. package/dist/{layers.D_Q80AXV.js → layers.DFZijSB5.js} +1 -1
  133. package/dist/{layers.SuFOjX9h.js → layers.DKJ5N6Ku.js} +1 -1
  134. package/dist/{layers.BKktUt3V.js → layers.DKQs7So3.js} +16 -16
  135. package/dist/{layers.DT-qahkC.js → layers.DKf6DVWp.js} +1 -1
  136. package/dist/{layers.B1VK1Umd.js → layers.DM4eQ6Z1.js} +1 -1
  137. package/dist/{layers.CXg7Sg55.js → layers.DMTPlZmt.js} +4 -4
  138. package/dist/{layers.DaLcxrnP.js → layers.DM_vG6Lv.js} +1 -1
  139. package/dist/{layers.-mkaUFzn.js → layers.DN1GbpLB.js} +2 -2
  140. package/dist/{layers.YS67QCmr.js → layers.DNgc6xx-.js} +1 -1
  141. package/dist/{layers.Ccvu-Dlo.js → layers.DPW4bDAc.js} +1 -1
  142. package/dist/{layers.9Su9jHuK.js → layers.DQ3K0Cym.js} +1 -1
  143. package/dist/layers.DRdWz10Z.js +1 -0
  144. package/dist/{layers.CuoaVZrW.js → layers.DSQyvOKa.js} +1 -1
  145. package/dist/{layers.CMMTUOh6.js → layers.DVcE14xf.js} +1 -1
  146. package/dist/{layers.DIs-8Ynj.js → layers.DXZWbEKg.js} +1 -1
  147. package/dist/{layers.Bau1Nn-R.js → layers.DXs66o83.js} +1 -1
  148. package/dist/{layers.DGB6f2fp.js → layers.DaKR2bve.js} +4 -4
  149. package/dist/{layers.rPpIRTrs.js → layers.DbRnoAe6.js} +1 -1
  150. package/dist/{layers.NzblQjNP.js → layers.DbsHq_DJ.js} +1 -1
  151. package/dist/{layers.B9uP5ibo.js → layers.DcGVxSQi.js} +1 -1
  152. package/dist/{layers.Rhe5fmYG.js → layers.Des2uVtR.js} +1 -1
  153. package/dist/{layers.B19MhDZN.js → layers.DfvMqZjx.js} +2 -2
  154. package/dist/{layers.BY5x-OCj.js → layers.DiMBnDzx.js} +4 -4
  155. package/dist/{layers.DWynlv5x.js → layers.Djod0cA3.js} +1 -1
  156. package/dist/{layers.CLAvgOJP.js → layers.Dmy0UHGW.js} +1 -1
  157. package/dist/{layers.Zh3IN_BW.js → layers.Dng_PTXT.js} +5 -5
  158. package/dist/{layers.XOnoorb1.js → layers.DoCHsiql.js} +1 -1
  159. package/dist/{layers.CDEWhNHi.js → layers.DoOe-Btz.js} +1 -1
  160. package/dist/{layers.pN-YTLfe.js → layers.DpTZ84Jn.js} +1 -1
  161. package/dist/{layers.Cp5JhAmO.js → layers.Dq4U5Vw0.js} +1 -1
  162. package/dist/{layers.D-cAGd4i.js → layers.Dqr9FfvL.js} +1 -1
  163. package/dist/{layers.BQYTL9KT.js → layers.Dxb8h6Pl.js} +1 -1
  164. package/dist/{layers.Dh45zDPj.js → layers.DykPtL5P.js} +1 -1
  165. package/dist/{layers.DPg8YVWZ.js → layers.DywP4Z4U.js} +1 -1
  166. package/dist/{layers.gdeLIrFt.js → layers.Dyz6i6M_.js} +1 -1
  167. package/dist/{layers.X8WQJwc7.js → layers.HD0Vr-xE.js} +1 -1
  168. package/dist/{layers.DGlLGCMd.js → layers.HR91wdYz.js} +1 -1
  169. package/dist/{layers.G9Ka5gtG.js → layers.Hao1AIZh.js} +1 -1
  170. package/dist/{layers.CM9lYwoQ.js → layers.Ifm4e73K.js} +1 -1
  171. package/dist/{layers.BPHDdk7q.js → layers.JOdNqzvI.js} +1 -1
  172. package/dist/{layers.YfvGPzEu.js → layers.KFb7ZtXM.js} +1 -1
  173. package/dist/{layers.DVjOEkHq.js → layers.Ky_r0B3T.js} +1 -1
  174. package/dist/{layers.B_blLMys.js → layers.LnhJpGo4.js} +1 -1
  175. package/dist/{layers.akd0joBp.js → layers.OAm_JZSI.js} +1 -1
  176. package/dist/{layers.D40oNXih.js → layers.Pkyzio9W.js} +3 -3
  177. package/dist/{layers.CkXqIRYC.js → layers.QTZ08fgz.js} +1 -1
  178. package/dist/{layers.DDVf9_XJ.js → layers.QgLYm41y.js} +3 -3
  179. package/dist/{layers.CSYpl3YM.js → layers.RWsaxeRj.js} +1 -1
  180. package/dist/{layers.C3KcBscd.js → layers.V6FSgQ4T.js} +1 -1
  181. package/dist/{layers.B2RJoL8j.js → layers.VftpmJsa.js} +1 -1
  182. package/dist/{layers.BY5MS01o.js → layers.Wcehxj5N.js} +1 -1
  183. package/dist/{layers.DW9Z4dLd.js → layers.Ws5ugaAU.js} +1 -1
  184. package/dist/{layers.BLZg3-j8.js → layers.X75KJca-.js} +1 -1
  185. package/dist/{layers.CE4FK9O5.js → layers.Yv4znr1K.js} +1 -1
  186. package/dist/{layers.CRKrzT-Y.js → layers._oWisxxl.js} +1 -1
  187. package/dist/{layers.DvdRZk6P.js → layers.br9u2FNY.js} +1 -1
  188. package/dist/{layers.BmEnHWGn.js → layers.cttu3sFt.js} +1 -1
  189. package/dist/{layers.CF-302Fh.js → layers.d0M3Ot24.js} +1 -1
  190. package/dist/{layers.DWIf8ql6.js → layers.fiWMRDIw.js} +1 -1
  191. package/dist/{layers.QUgQojU2.js → layers.jxiuUHfs.js} +1 -1
  192. package/dist/{layers.BxBoiyiz.js → layers.ksZ72zjW.js} +1 -1
  193. package/dist/{layers.CJUngdl8.js → layers.lyc2_1rn.js} +1 -1
  194. package/dist/{layers.CDL3opya.js → layers.mUdFWzjh.js} +1 -1
  195. package/dist/{layers.ZAlzzwQR.js → layers.nToHNMBf.js} +2 -2
  196. package/dist/{layers.DGF-imcj.js → layers.ocD8VYnf.js} +1 -1
  197. package/dist/{layers.DXnKtB68.js → layers.osTZCjn2.js} +1 -1
  198. package/dist/{layers.C_eoPPmk.js → layers.qk2ev6Zp.js} +1 -1
  199. package/dist/{layers.DxzveV49.js → layers.rVltGhk6.js} +3 -3
  200. package/dist/{layers.v4_WldHC.js → layers.rrWidkhs.js} +1 -1
  201. package/dist/{layers.-R5PibOa.js → layers.sRbJVPJG.js} +1 -1
  202. package/dist/{layers.D-7S1Qn6.js → layers.sa9_Vizm.js} +1 -1
  203. package/dist/{layers.D3A8IuMw.js → layers.yHP1LRN4.js} +1 -1
  204. package/dist/{layers.D4ydcUW5.js → layers.yXjyswXG.js} +1 -1
  205. package/dist/{layers.BDlQMLta.js → layers.yZ8tdL03.js} +3 -3
  206. package/dist/{layers.D_MRmmCY.js → layers.yn0JrvOV.js} +1 -1
  207. package/package.json +2 -3
  208. package/dist/layers.BhoEY-tV.js +0 -1
  209. package/dist/layers.BjlXrUqq.js +0 -1
  210. package/dist/layers.CSNKiqFe.js +0 -8
  211. package/dist/layers.D_nCsZyv.js +0 -6
@@ -1,7 +1,7 @@
1
- import { l as Nr, a2 as yv, a3 as mv, a4 as bv, g as ao, A as wv, Y as Ev, P as Cn, i as Dn, d as xv, T as Tv } from "./layers.chFbbZh9.js";
2
- import { n as Cv } from "./layers.D_i2rLsg.js";
3
- import { c as Dv } from "./layers.DXnKtB68.js";
4
- import "./layers.CVUgbWcY.js";
1
+ import { l as Nr, a2 as yv, a3 as mv, a4 as bv, g as ao, A as wv, Y as Ev, P as Cn, i as Dn, d as xv, T as Tv } from "./layers.2TEubI7B.js";
2
+ import { n as Cv } from "./layers.C34uefby.js";
3
+ import { c as Dv } from "./layers.osTZCjn2.js";
4
+ import "./layers.Ckt3zLwN.js";
5
5
  function Bs(t, e) {
6
6
  (e == null || e > t.length) && (e = t.length);
7
7
  for (var r = 0, a = Array(e); r < e; r++) a[r] = t[r];
@@ -153,10 +153,10 @@ var tt = typeof window > "u" ? null : window, No = tt ? tt.navigator : null;
153
153
  tt && tt.document;
154
154
  var kv = nt(""), gf = nt({}), Nv = nt(function() {
155
155
  }), Bv = typeof HTMLElement > "u" ? "undefined" : nt(HTMLElement), Ba = function(e) {
156
- return e && e.instanceString && Xe(e.instanceString) ? e.instanceString() : null;
156
+ return e && e.instanceString && He(e.instanceString) ? e.instanceString() : null;
157
157
  }, ge = function(e) {
158
158
  return e != null && nt(e) == kv;
159
- }, Xe = function(e) {
159
+ }, He = function(e) {
160
160
  return e != null && nt(e) === Nv;
161
161
  }, Ve = function(e) {
162
162
  return !Lt(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array);
@@ -190,7 +190,7 @@ var kv = nt(""), gf = nt({}), Nv = nt(function() {
190
190
  }, Vv = function(e) {
191
191
  return Oe(e) && ne(e.x1) && ne(e.x2) && ne(e.y1) && ne(e.y2);
192
192
  }, Uv = function(e) {
193
- return Fv(e) && Xe(e.then);
193
+ return Fv(e) && He(e.then);
194
194
  }, qv = function() {
195
195
  return No && No.userAgent.match(/msie|trident|edge/i);
196
196
  }, ta = function(e, r) {
@@ -224,7 +224,7 @@ var kv = nt(""), gf = nt({}), Nv = nt(function() {
224
224
  return fr(e) ? e : e.charAt(0).toUpperCase() + e.substring(1);
225
225
  }, ir = function(e, r) {
226
226
  return e.slice(-1 * r.length) === r;
227
- }, at = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Yv = "rgb[a]?\\((" + at + "[%]?)\\s*,\\s*(" + at + "[%]?)\\s*,\\s*(" + at + "[%]?)(?:\\s*,\\s*(" + at + "))?\\)", Hv = "rgb[a]?\\((?:" + at + "[%]?)\\s*,\\s*(?:" + at + "[%]?)\\s*,\\s*(?:" + at + "[%]?)(?:\\s*,\\s*(?:" + at + "))?\\)", Xv = "hsl[a]?\\((" + at + ")\\s*,\\s*(" + at + "[%])\\s*,\\s*(" + at + "[%])(?:\\s*,\\s*(" + at + "))?\\)", $v = "hsl[a]?\\((?:" + at + ")\\s*,\\s*(?:" + at + "[%])\\s*,\\s*(?:" + at + "[%])(?:\\s*,\\s*(?:" + at + "))?\\)", Wv = "\\#[0-9a-fA-F]{3}", Kv = "\\#[0-9a-fA-F]{6}", bf = function(e, r) {
227
+ }, at = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", $v = "rgb[a]?\\((" + at + "[%]?)\\s*,\\s*(" + at + "[%]?)\\s*,\\s*(" + at + "[%]?)(?:\\s*,\\s*(" + at + "))?\\)", Yv = "rgb[a]?\\((?:" + at + "[%]?)\\s*,\\s*(?:" + at + "[%]?)\\s*,\\s*(?:" + at + "[%]?)(?:\\s*,\\s*(?:" + at + "))?\\)", Hv = "hsl[a]?\\((" + at + ")\\s*,\\s*(" + at + "[%])\\s*,\\s*(" + at + "[%])(?:\\s*,\\s*(" + at + "))?\\)", Xv = "hsl[a]?\\((?:" + at + ")\\s*,\\s*(?:" + at + "[%])\\s*,\\s*(?:" + at + "[%])(?:\\s*,\\s*(?:" + at + "))?\\)", Wv = "\\#[0-9a-fA-F]{3}", Kv = "\\#[0-9a-fA-F]{6}", bf = function(e, r) {
228
228
  return e < r ? -1 : e > r ? 1 : 0;
229
229
  }, Zv = function(e, r) {
230
230
  return -1 * bf(e, r);
@@ -248,7 +248,7 @@ var kv = nt(""), gf = nt({}), Nv = nt(function() {
248
248
  function f(d, p, g) {
249
249
  return g < 0 && (g += 1), g > 1 && (g -= 1), g < 1 / 6 ? d + (p - d) * 6 * g : g < 1 / 2 ? p : g < 2 / 3 ? d + (p - d) * (2 / 3 - g) * 6 : d;
250
250
  }
251
- var c = new RegExp("^" + Xv + "$").exec(e);
251
+ var c = new RegExp("^" + Hv + "$").exec(e);
252
252
  if (c) {
253
253
  if (a = parseInt(c[1]), a < 0 ? a = (360 - -1 * a % 360) % 360 : a > 360 && (a = a % 360), a /= 360, n = parseFloat(c[2]), n < 0 || n > 100 || (n = n / 100, i = parseFloat(c[3]), i < 0 || i > 100) || (i = i / 100, s = c[4], s !== void 0 && (s = parseFloat(s), s < 0 || s > 1)))
254
254
  return;
@@ -262,7 +262,7 @@ var kv = nt(""), gf = nt({}), Nv = nt(function() {
262
262
  }
263
263
  return r;
264
264
  }, jv = function(e) {
265
- var r, a = new RegExp("^" + Yv + "$").exec(e);
265
+ var r, a = new RegExp("^" + $v + "$").exec(e);
266
266
  if (a) {
267
267
  r = [];
268
268
  for (var n = [], i = 1; i <= 3; i++) {
@@ -520,10 +520,10 @@ function oo() {
520
520
  var t = Vn(), e = t.Symbol;
521
521
  return vi = e, vi;
522
522
  }
523
- var hi, Yo;
523
+ var hi, $o;
524
524
  function sh() {
525
- if (Yo) return hi;
526
- Yo = 1;
525
+ if ($o) return hi;
526
+ $o = 1;
527
527
  var t = oo(), e = Object.prototype, r = e.hasOwnProperty, a = e.toString, n = t ? t.toStringTag : void 0;
528
528
  function i(s) {
529
529
  var o = r.call(s, n), u = s[n];
@@ -537,30 +537,30 @@ function sh() {
537
537
  }
538
538
  return hi = i, hi;
539
539
  }
540
- var di, Ho;
540
+ var di, Yo;
541
541
  function oh() {
542
- if (Ho) return di;
543
- Ho = 1;
542
+ if (Yo) return di;
543
+ Yo = 1;
544
544
  var t = Object.prototype, e = t.toString;
545
545
  function r(a) {
546
546
  return e.call(a);
547
547
  }
548
548
  return di = r, di;
549
549
  }
550
- var gi, Xo;
550
+ var gi, Ho;
551
551
  function Tf() {
552
- if (Xo) return gi;
553
- Xo = 1;
552
+ if (Ho) return gi;
553
+ Ho = 1;
554
554
  var t = oo(), e = sh(), r = oh(), a = "[object Null]", n = "[object Undefined]", i = t ? t.toStringTag : void 0;
555
555
  function s(o) {
556
556
  return o == null ? o === void 0 ? n : a : i && i in Object(o) ? e(o) : r(o);
557
557
  }
558
558
  return gi = s, gi;
559
559
  }
560
- var pi, $o;
560
+ var pi, Xo;
561
561
  function uh() {
562
- if ($o) return pi;
563
- $o = 1;
562
+ if (Xo) return pi;
563
+ Xo = 1;
564
564
  function t(e) {
565
565
  return e != null && typeof e == "object";
566
566
  }
@@ -682,7 +682,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
682
682
  };
683
683
  })(), Ln = function(e) {
684
684
  return vh(e);
685
- }, Qt = Cf, Ar = 9261, Df = 65599, $r = 5381, Sf = function(e) {
685
+ }, Qt = Cf, Ar = 9261, Df = 65599, Xr = 5381, Sf = function(e) {
686
686
  for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ar, a = r, n; n = e.next(), !n.done; )
687
687
  a = a * Df + n.value | 0;
688
688
  return a;
@@ -690,7 +690,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
690
690
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ar;
691
691
  return r * Df + e | 0;
692
692
  }, Aa = function(e) {
693
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $r;
693
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xr;
694
694
  return (r << 5) + r + e | 0;
695
695
  }, hh = function(e, r) {
696
696
  return e * 2097152 + r;
@@ -755,7 +755,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
755
755
  }, jo = function() {
756
756
  return 0;
757
757
  }, lo = function() {
758
- }, He = function(e) {
758
+ }, Ye = function(e) {
759
759
  throw new Error(e);
760
760
  }, Rf = function(e) {
761
761
  if (e !== void 0)
@@ -894,12 +894,12 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
894
894
  })(), na = (typeof Set > "u" ? "undefined" : nt(Set)) !== Dh ? Set : Sh, Un = function(e, r) {
895
895
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
896
896
  if (e === void 0 || r === void 0 || !io(e)) {
897
- He("An element must have a core reference and parameters set");
897
+ Ye("An element must have a core reference and parameters set");
898
898
  return;
899
899
  }
900
900
  var n = r.group;
901
901
  if (n == null && (r.data && r.data.source != null && r.data.target != null ? n = "edges" : n = "nodes"), n !== "nodes" && n !== "edges") {
902
- He("An element must be of type `nodes` or `edges`; you specified `" + n + "`");
902
+ Ye("An element must be of type `nodes` or `edges`; you specified `" + n + "`");
903
903
  return;
904
904
  }
905
905
  this.length = 1, this[0] = this;
@@ -1017,7 +1017,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1017
1017
  dfs: e.dfs || !e.bfs
1018
1018
  }, function(a, n, i) {
1019
1019
  var s;
1020
- Oe(a) && !Lt(a) && (s = a, a = s.roots || s.root, n = s.visit, i = s.directed), i = arguments.length === 2 && !Xe(n) ? n : i, n = Xe(n) ? n : function() {
1020
+ Oe(a) && !Lt(a) && (s = a, a = s.roots || s.root, n = s.visit, i = s.directed), i = arguments.length === 2 && !He(n) ? n : i, n = He(n) ? n : function() {
1021
1021
  };
1022
1022
  for (var o = this._private.cy, u = a = ge(a) ? this.filter(a) : a, l = [], f = [], c = {}, v = {}, h = {}, d = 0, p, g = this.byGroup(), y = g.nodes, b = g.edges, m = 0; m < u.length; m++) {
1023
1023
  var E = u[m], T = E.id();
@@ -1038,10 +1038,10 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1038
1038
  for (var F = R.connectedEdges().filter(function(W) {
1039
1039
  return (!i || W.source().same(R)) && b.has(W);
1040
1040
  }), G = 0; G < F.length; G++) {
1041
- var H = F[G], Y = H.connectedNodes().filter(function(W) {
1041
+ var Y = F[G], $ = Y.connectedNodes().filter(function(W) {
1042
1042
  return !W.same(R) && y.has(W);
1043
- }), X = Y.id();
1044
- Y.length !== 0 && !h[X] && (Y = Y[0], l.push(Y), e.bfs && (h[X] = !0, f.push(Y)), c[X] = H, v[X] = v[P] + 1);
1043
+ }), H = $.id();
1044
+ $.length !== 0 && !h[H] && ($ = $[0], l.push($), e.bfs && (h[H] = !0, f.push($)), c[H] = Y, v[H] = v[P] + 1);
1045
1045
  }
1046
1046
  }, w; l.length !== 0 && (w = S(), !(w !== 0 && w === 1)); )
1047
1047
  ;
@@ -1214,8 +1214,8 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1214
1214
  }
1215
1215
  for (var T = function(N, O) {
1216
1216
  for (var k = (s ? N.edgesTo(O) : N.edgesWith(O)).intersect(p), B = 1 / 0, _, F = 0; F < k.length; F++) {
1217
- var G = k[F], H = u(G);
1218
- (H < B || !_) && (B = H, _ = G);
1217
+ var G = k[F], Y = u(G);
1218
+ (Y < B || !_) && (B = Y, _ = G);
1219
1219
  }
1220
1220
  return {
1221
1221
  edge: _,
@@ -1338,10 +1338,10 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1338
1338
  }), Fh = {
1339
1339
  // Implemented from pseudocode from wikipedia
1340
1340
  floydWarshall: function(e) {
1341
- for (var r = this.cy(), a = Bh(e), n = a.weight, i = a.directed, s = n, o = this.byGroup(), u = o.nodes, l = o.edges, f = u.length, c = f * f, v = function(H) {
1342
- return u.indexOf(H);
1343
- }, h = function(H) {
1344
- return u[H];
1341
+ for (var r = this.cy(), a = Bh(e), n = a.weight, i = a.directed, s = n, o = this.byGroup(), u = o.nodes, l = o.edges, f = u.length, c = f * f, v = function(Y) {
1342
+ return u.indexOf(Y);
1343
+ }, h = function(Y) {
1344
+ return u[Y];
1345
1345
  }, d = new Array(c), p = 0; p < c; p++) {
1346
1346
  var g = p % f, y = (p - g) / f;
1347
1347
  y === g ? d[p] = 0 : d[p] = 1 / 0;
@@ -1362,24 +1362,24 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1362
1362
  var O = P * f + N, k = R * f + N;
1363
1363
  d[M] + d[k] < d[O] && (d[O] = d[M] + d[k], b[O] = b[M]);
1364
1364
  }
1365
- var B = function(H) {
1366
- return (ge(H) ? r.filter(H) : H)[0];
1367
- }, _ = function(H) {
1368
- return v(B(H));
1365
+ var B = function(Y) {
1366
+ return (ge(Y) ? r.filter(Y) : Y)[0];
1367
+ }, _ = function(Y) {
1368
+ return v(B(Y));
1369
1369
  }, F = {
1370
- distance: function(H, Y) {
1371
- var X = _(H), W = _(Y);
1372
- return d[X * f + W];
1370
+ distance: function(Y, $) {
1371
+ var H = _(Y), W = _($);
1372
+ return d[H * f + W];
1373
1373
  },
1374
- path: function(H, Y) {
1375
- var X = _(H), W = _(Y), ee = h(X);
1376
- if (X === W)
1374
+ path: function(Y, $) {
1375
+ var H = _(Y), W = _($), ee = h(H);
1376
+ if (H === W)
1377
1377
  return ee.collection();
1378
- if (b[X * f + W] == null)
1378
+ if (b[H * f + W] == null)
1379
1379
  return r.collection();
1380
- var ae = r.collection(), J = X, z;
1381
- for (ae.merge(ee); X !== W; )
1382
- J = X, X = b[X * f + W], z = m[J * f + X], ae.merge(z), ae.merge(h(X));
1380
+ var ae = r.collection(), J = H, z;
1381
+ for (ae.merge(ee); H !== W; )
1382
+ J = H, H = b[H * f + W], z = m[J * f + H], ae.merge(z), ae.merge(h(H));
1383
1383
  return ae;
1384
1384
  }
1385
1385
  };
@@ -1434,11 +1434,11 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1434
1434
  }
1435
1435
  if (C)
1436
1436
  for (var B = [], _ = 0; _ < y; _++) {
1437
- var F = c[_], G = F.source(), H = F.target(), Y = o(F), X = b(G).dist, W = b(H).dist;
1438
- if (X + Y < W || !i && W + Y < X)
1437
+ var F = c[_], G = F.source(), Y = F.target(), $ = o(F), H = b(G).dist, W = b(Y).dist;
1438
+ if (H + $ < W || !i && W + $ < H)
1439
1439
  if (p || (Ge("Graph contains a negative weight cycle for Bellman-Ford"), p = !0), e.findNegativeWeightCycles !== !1) {
1440
1440
  var ee = [];
1441
- X + Y < W && ee.push(G), !i && W + Y < X && ee.push(H);
1441
+ H + $ < W && ee.push(G), !i && W + $ < H && ee.push(Y);
1442
1442
  for (var ae = ee.length, J = 0; J < ae; J++) {
1443
1443
  var z = ee[J], V = [z];
1444
1444
  V.push(b(z).edge);
@@ -1465,7 +1465,7 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1465
1465
  }
1466
1466
  // bellmanFord
1467
1467
  }, zh = Math.sqrt(2), Vh = function(e, r, a) {
1468
- a.length === 0 && He("Karger-Stein must be run on a connected (sub)graph");
1468
+ a.length === 0 && Ye("Karger-Stein must be run on a connected (sub)graph");
1469
1469
  for (var n = a[e], i = n[1], s = n[2], o = r[i], u = r[s], l = a, f = l.length - 1; f >= 0; f--) {
1470
1470
  var c = l[f], v = c[1], h = c[2];
1471
1471
  (r[v] === o && r[h] === u || r[v] === u && r[h] === o) && l.splice(f, 1);
@@ -1493,7 +1493,7 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1493
1493
  });
1494
1494
  var i = a.length, s = n.length, o = Math.ceil(Math.pow(Math.log(i) / Math.LN2, 2)), u = Math.floor(i / zh);
1495
1495
  if (i < 2) {
1496
- He("At least 2 nodes are required for Karger-Stein algorithm");
1496
+ Ye("At least 2 nodes are required for Karger-Stein algorithm");
1497
1497
  return;
1498
1498
  }
1499
1499
  for (var l = [], f = 0; f < s; f++) {
@@ -1554,25 +1554,25 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1554
1554
  x: e[0],
1555
1555
  y: e[1]
1556
1556
  };
1557
- }, Yh = function(e) {
1557
+ }, $h = function(e) {
1558
1558
  for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, n = 1 / 0, i = r; i < a; i++) {
1559
1559
  var s = e[i];
1560
1560
  isFinite(s) && (n = Math.min(s, n));
1561
1561
  }
1562
1562
  return n;
1563
- }, Hh = function(e) {
1563
+ }, Yh = function(e) {
1564
1564
  for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, n = -1 / 0, i = r; i < a; i++) {
1565
1565
  var s = e[i];
1566
1566
  isFinite(s) && (n = Math.max(s, n));
1567
1567
  }
1568
1568
  return n;
1569
- }, Xh = function(e) {
1569
+ }, Hh = function(e) {
1570
1570
  for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, n = 0, i = 0, s = r; s < a; s++) {
1571
1571
  var o = e[s];
1572
1572
  isFinite(o) && (n += o, i++);
1573
1573
  }
1574
1574
  return n / i;
1575
- }, $h = function(e) {
1575
+ }, Xh = function(e) {
1576
1576
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0;
1577
1577
  n ? e = e.slice(r, a) : (a < e.length && e.splice(a, e.length - a), r > 0 && e.splice(0, r));
1578
1578
  for (var o = 0, u = e.length - 1; u >= 0; u--) {
@@ -1810,8 +1810,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1810
1810
  return [M[0], M[1]];
1811
1811
  }
1812
1812
  {
1813
- var G = a - f + l, H = n + c - l;
1814
- if (M = wa(e, r, a, n, G, H, l + o), M.length > 0 && M[0] <= G && M[1] >= H)
1813
+ var G = a - f + l, Y = n + c - l;
1814
+ if (M = wa(e, r, a, n, G, Y, l + o), M.length > 0 && M[0] <= G && M[1] >= Y)
1815
1815
  return [M[0], M[1]];
1816
1816
  }
1817
1817
  return [];
@@ -2102,12 +2102,12 @@ var dd = ht({
2102
2102
  for (var k = new Array(c), B = new Array(c), _, F = 0; F < c; F++)
2103
2103
  k[F] = 1;
2104
2104
  for (var G = 0; G < i; G++) {
2105
- for (var H = 0; H < c; H++)
2106
- B[H] = 0;
2107
2105
  for (var Y = 0; Y < c; Y++)
2108
- for (var X = 0; X < c; X++) {
2109
- var W = Y * c + X;
2110
- B[Y] += d[W] * k[X];
2106
+ B[Y] = 0;
2107
+ for (var $ = 0; $ < c; $++)
2108
+ for (var H = 0; H < c; H++) {
2109
+ var W = $ * c + H;
2110
+ B[$] += d[W] * k[H];
2111
2111
  }
2112
2112
  Kh(B), _ = k, k = B, B = _;
2113
2113
  for (var ee = 0, ae = 0; ae < c; ae++) {
@@ -2262,8 +2262,8 @@ var pd = ht({
2262
2262
  a ? u[d] = h.outgoers().nodes() : u[d] = h.openNeighborhood().nodes(), c.set(d, 0);
2263
2263
  }
2264
2264
  for (var p = function() {
2265
- for (var m = o[g].id(), E = [], T = {}, S = {}, w = {}, x = new Ua(function(Y, X) {
2266
- return w[Y] - w[X];
2265
+ for (var m = o[g].id(), E = [], T = {}, S = {}, w = {}, x = new Ua(function($, H) {
2266
+ return w[$] - w[H];
2267
2267
  }), C = 0; C < o.length; C++) {
2268
2268
  var D = o[C].id();
2269
2269
  T[D] = [], S[D] = 0, w[D] = 1 / 0;
@@ -2287,8 +2287,8 @@ var pd = ht({
2287
2287
  B[o[_].id()] = 0;
2288
2288
  for (; E.length > 0; ) {
2289
2289
  for (var F = E.pop(), G = 0; G < T[F].length; G++) {
2290
- var H = T[F][G];
2291
- B[H] = B[H] + S[H] / S[F] * (1 + B[F]);
2290
+ var Y = T[F][G];
2291
+ B[Y] = B[Y] + S[Y] / S[F] * (1 + B[F]);
2292
2292
  }
2293
2293
  F != o[g].id() && c.set(F, c.get(F) + B[F]);
2294
2294
  }
@@ -2433,9 +2433,9 @@ var yd = ht({
2433
2433
  };
2434
2434
  ra["squared-euclidean"] = ra.squaredEuclidean;
2435
2435
  ra.squaredeuclidean = ra.squaredEuclidean;
2436
- function Yn(t, e, r, a, n, i) {
2436
+ function $n(t, e, r, a, n, i) {
2437
2437
  var s;
2438
- return Xe(t) ? s = t : s = ra[t] || ra.euclidean, e === 0 && Xe(t) ? s(n, i) : s(e, r, a, n, i);
2438
+ return He(t) ? s = t : s = ra[t] || ra.euclidean, e === 0 && He(t) ? s(n, i) : s(e, r, a, n, i);
2439
2439
  }
2440
2440
  var Md = ht({
2441
2441
  k: 2,
@@ -2456,7 +2456,7 @@ var Md = ht({
2456
2456
  }, u = function(v) {
2457
2457
  return n[v](r);
2458
2458
  }, l = a, f = r;
2459
- return Yn(e, n.length, o, u, l, f);
2459
+ return $n(e, n.length, o, u, l, f);
2460
2460
  }, Si = function(e, r, a) {
2461
2461
  for (var n = a.length, i = new Array(n), s = new Array(n), o = new Array(r), u = null, l = 0; l < n; l++)
2462
2462
  i[l] = e.min(a[l]).value, s[l] = e.max(a[l]).value;
@@ -2631,12 +2631,12 @@ var Md = ht({
2631
2631
  }), qd = {
2632
2632
  single: "min",
2633
2633
  complete: "max"
2634
- }, Yd = function(e) {
2634
+ }, $d = function(e) {
2635
2635
  var r = Ud(e), a = qd[r.linkage];
2636
2636
  return a != null && (r.linkage = a), r;
2637
2637
  }, hu = function(e, r, a, n, i) {
2638
2638
  for (var s = 0, o = 1 / 0, u, l = i.attributes, f = function(C, D) {
2639
- return Yn(i.distance, l.length, function(A) {
2639
+ return $n(i.distance, l.length, function(A) {
2640
2640
  return l[A](C);
2641
2641
  }, function(A) {
2642
2642
  return l[A](D);
@@ -2703,8 +2703,8 @@ var Md = ht({
2703
2703
  var n = [], i = [], s = [];
2704
2704
  return r === 0 ? (e.left && Kr(e.left, n), e.right && Kr(e.right, i), s = n.concat(i), [a.collection(s)]) : r === 1 ? e.value ? [a.collection(e.value)] : (e.left && Kr(e.left, n), e.right && Kr(e.right, i), [a.collection(n), a.collection(i)]) : e.value ? [a.collection(e.value)] : (e.left && (n = Vs(e.left, r - 1, a)), e.right && (i = Vs(e.right, r - 1, a)), n.concat(i));
2705
2705
  }, du = function(e) {
2706
- for (var r = this.cy(), a = this.nodes(), n = Yd(e), i = n.attributes, s = function(m, E) {
2707
- return Yn(n.distance, i.length, function(T) {
2706
+ for (var r = this.cy(), a = this.nodes(), n = $d(e), i = n.attributes, s = function(m, E) {
2707
+ return $n(n.distance, i.length, function(T) {
2708
2708
  return i[T](m);
2709
2709
  }, function(T) {
2710
2710
  return i[T](E);
@@ -2728,10 +2728,10 @@ var Md = ht({
2728
2728
  return n.mode === "dendrogram" ? (y = Vs(o[0], n.dendrogramDepth, r), n.addDendrogram && zs(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, m) {
2729
2729
  b.key = b.index = null, y[m] = r.collection(b.value);
2730
2730
  })), y;
2731
- }, Hd = {
2731
+ }, Yd = {
2732
2732
  hierarchicalClustering: du,
2733
2733
  hca: du
2734
- }, Xd = ht({
2734
+ }, Hd = ht({
2735
2735
  distance: "euclidean",
2736
2736
  // distance metric to compare attributes between two nodes
2737
2737
  preference: "median",
@@ -2746,27 +2746,27 @@ var Md = ht({
2746
2746
  // functions to quantify the similarity between any two points
2747
2747
  // e.g. node => node.data('weight')
2748
2748
  ]
2749
- }), $d = function(e) {
2749
+ }), Xd = function(e) {
2750
2750
  var r = e.damping, a = e.preference;
2751
- 0.5 <= r && r < 1 || He("Damping must range on [0.5, 1). Got: ".concat(r));
2751
+ 0.5 <= r && r < 1 || Ye("Damping must range on [0.5, 1). Got: ".concat(r));
2752
2752
  var n = ["median", "mean", "min", "max"];
2753
2753
  return n.some(function(i) {
2754
2754
  return i === a;
2755
- }) || ne(a) || He("Preference must be one of [".concat(n.map(function(i) {
2755
+ }) || ne(a) || Ye("Preference must be one of [".concat(n.map(function(i) {
2756
2756
  return "'".concat(i, "'");
2757
- }).join(", "), "] or a number. Got: ").concat(a)), Xd(e);
2757
+ }).join(", "), "] or a number. Got: ").concat(a)), Hd(e);
2758
2758
  }, Wd = function(e, r, a, n) {
2759
2759
  var i = function(o, u) {
2760
2760
  return n[u](o);
2761
2761
  };
2762
- return -Yn(e, n.length, function(s) {
2762
+ return -$n(e, n.length, function(s) {
2763
2763
  return i(r, s);
2764
2764
  }, function(s) {
2765
2765
  return i(a, s);
2766
2766
  }, r, a);
2767
2767
  }, Kd = function(e, r) {
2768
2768
  var a = null;
2769
- return r === "median" ? a = $h(e) : r === "mean" ? a = Xh(e) : r === "min" ? a = Yh(e) : r === "max" ? a = Hh(e) : a = r, a;
2769
+ return r === "median" ? a = Xh(e) : r === "mean" ? a = Hh(e) : r === "min" ? a = $h(e) : r === "max" ? a = Yh(e) : a = r, a;
2770
2770
  }, Zd = function(e, r, a) {
2771
2771
  for (var n = [], i = 0; i < e; i++)
2772
2772
  r[i * e + i] + a[i * e + i] > 0 && n.push(i);
@@ -2795,7 +2795,7 @@ var Md = ht({
2795
2795
  }
2796
2796
  return n = gu(e, r, a), n;
2797
2797
  }, pu = function(e) {
2798
- for (var r = this.cy(), a = this.nodes(), n = $d(e), i = {}, s = 0; s < a.length; s++)
2798
+ for (var r = this.cy(), a = this.nodes(), n = Xd(e), i = {}, s = 0; s < a.length; s++)
2799
2799
  i[a[s].id()] = s;
2800
2800
  var o, u, l, f, c, v;
2801
2801
  o = a.length, u = o * o, l = new Array(u);
@@ -2835,17 +2835,17 @@ var Md = ht({
2835
2835
  v[O * o + O] = (1 - n.damping) * (k - E[O]) + n.damping * m[O];
2836
2836
  }
2837
2837
  for (var F = 0, G = 0; G < o; G++) {
2838
- var H = v[G * o + G] + c[G * o + G] > 0 ? 1 : 0;
2839
- w[C % n.minIterations * o + G] = H, F += H;
2838
+ var Y = v[G * o + G] + c[G * o + G] > 0 ? 1 : 0;
2839
+ w[C % n.minIterations * o + G] = Y, F += Y;
2840
2840
  }
2841
2841
  if (F > 0 && (C >= n.minIterations - 1 || C == n.maxIterations - 1)) {
2842
- for (var Y = 0, X = 0; X < o; X++) {
2843
- T[X] = 0;
2842
+ for (var $ = 0, H = 0; H < o; H++) {
2843
+ T[H] = 0;
2844
2844
  for (var W = 0; W < n.minIterations; W++)
2845
- T[X] += w[W * o + X];
2846
- (T[X] === 0 || T[X] === n.minIterations) && Y++;
2845
+ T[H] += w[W * o + H];
2846
+ (T[H] === 0 || T[H] === n.minIterations) && $++;
2847
2847
  }
2848
- if (Y === o)
2848
+ if ($ === o)
2849
2849
  break;
2850
2850
  }
2851
2851
  }
@@ -3018,7 +3018,7 @@ var Md = ht({
3018
3018
  tscc: tn,
3019
3019
  tarjanStronglyConnectedComponents: tn
3020
3020
  }, Uf = {};
3021
- [La, Mh, Oh, Nh, Fh, Gh, Uh, gd, Jr, jr, Gs, Ld, Vd, Hd, Jd, eg, tg, rg].forEach(function(t) {
3021
+ [La, Mh, Oh, Nh, Fh, Gh, Uh, gd, Jr, jr, Gs, Ld, Vd, Yd, Jd, eg, tg, rg].forEach(function(t) {
3022
3022
  be(Uf, t);
3023
3023
  });
3024
3024
  /*!
@@ -3026,7 +3026,7 @@ Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
3026
3026
  Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
3027
3027
  Licensed under The MIT License (http://opensource.org/licenses/MIT)
3028
3028
  */
3029
- var qf = 0, Yf = 1, Hf = 2, _t = function(e) {
3029
+ var qf = 0, $f = 1, Yf = 2, _t = function(e) {
3030
3030
  if (!(this instanceof _t)) return new _t(e);
3031
3031
  this.id = "Thenable/1.0.7", this.state = qf, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = {
3032
3032
  then: this.then.bind(this)
@@ -3035,21 +3035,21 @@ var qf = 0, Yf = 1, Hf = 2, _t = function(e) {
3035
3035
  _t.prototype = {
3036
3036
  /* promise resolving methods */
3037
3037
  fulfill: function(e) {
3038
- return yu(this, Yf, "fulfillValue", e);
3038
+ return yu(this, $f, "fulfillValue", e);
3039
3039
  },
3040
3040
  reject: function(e) {
3041
- return yu(this, Hf, "rejectReason", e);
3041
+ return yu(this, Yf, "rejectReason", e);
3042
3042
  },
3043
3043
  /* "The then Method" [Promises/A+ 1.1, 1.2, 2.2] */
3044
3044
  then: function(e, r) {
3045
3045
  var a = this, n = new _t();
3046
- return a.onFulfilled.push(bu(e, n, "fulfill")), a.onRejected.push(bu(r, n, "reject")), Xf(a), n.proxy;
3046
+ return a.onFulfilled.push(bu(e, n, "fulfill")), a.onRejected.push(bu(r, n, "reject")), Hf(a), n.proxy;
3047
3047
  }
3048
3048
  };
3049
3049
  var yu = function(e, r, a, n) {
3050
- return e.state === qf && (e.state = r, e[a] = n, Xf(e)), e;
3051
- }, Xf = function(e) {
3052
- e.state === Yf ? mu(e, "onFulfilled", e.fulfillValue) : e.state === Hf && mu(e, "onRejected", e.rejectReason);
3050
+ return e.state === qf && (e.state = r, e[a] = n, Hf(e)), e;
3051
+ }, Hf = function(e) {
3052
+ e.state === $f ? mu(e, "onFulfilled", e.fulfillValue) : e.state === Yf && mu(e, "onRejected", e.rejectReason);
3053
3053
  }, mu = function(e, r, a) {
3054
3054
  if (e[r].length !== 0) {
3055
3055
  var n = e[r];
@@ -3071,10 +3071,10 @@ var yu = function(e, r, a, n) {
3071
3071
  r.reject(s);
3072
3072
  return;
3073
3073
  }
3074
- $f(r, i);
3074
+ Xf(r, i);
3075
3075
  }
3076
3076
  };
3077
- }, $f = function(e, r) {
3077
+ }, Xf = function(e, r) {
3078
3078
  if (e === r || e.proxy === r) {
3079
3079
  e.reject(new TypeError("cannot resolve promise with itself"));
3080
3080
  return;
@@ -3095,7 +3095,7 @@ var yu = function(e, r, a, n) {
3095
3095
  /* resolvePromise */
3096
3096
  /* [Promises/A+ 2.3.3.3.1] */
3097
3097
  function(i) {
3098
- n || (n = !0, i === r ? e.reject(new TypeError("circular thenable chain")) : $f(e, i));
3098
+ n || (n = !0, i === r ? e.reject(new TypeError("circular thenable chain")) : Xf(e, i));
3099
3099
  },
3100
3100
  /* rejectPromise */
3101
3101
  /* [Promises/A+ 2.3.3.3.2] */
@@ -3144,7 +3144,7 @@ var ia = typeof Promise < "u" ? Promise : _t, Us = function(e, r, a) {
3144
3144
  var n = io(e), i = !n, s = this._private = be({
3145
3145
  duration: 1e3
3146
3146
  }, r, a);
3147
- if (s.target = e, s.style = s.style || s.css, s.started = !1, s.playing = !1, s.hooked = !1, s.applying = !1, s.progress = 0, s.completes = [], s.frames = [], s.complete && Xe(s.complete) && s.completes.push(s.complete), i) {
3147
+ if (s.target = e, s.style = s.style || s.css, s.started = !1, s.playing = !1, s.hooked = !1, s.applying = !1, s.progress = 0, s.completes = [], s.frames = [], s.complete && He(s.complete) && s.completes.push(s.complete), i) {
3148
3148
  var o = e.position();
3149
3149
  s.startPosition = s.startPosition || {
3150
3150
  x: o.x,
@@ -3372,7 +3372,7 @@ var ag = {
3372
3372
  }
3373
3373
  // stop
3374
3374
  }, Ai, wu;
3375
- function Hn() {
3375
+ function Yn() {
3376
3376
  if (wu) return Ai;
3377
3377
  wu = 1;
3378
3378
  var t = Array.isArray;
@@ -3382,7 +3382,7 @@ var Li, Eu;
3382
3382
  function ng() {
3383
3383
  if (Eu) return Li;
3384
3384
  Eu = 1;
3385
- var t = Hn(), e = za(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/;
3385
+ var t = Yn(), e = za(), r = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/;
3386
3386
  function n(i, s) {
3387
3387
  if (t(i))
3388
3388
  return !1;
@@ -3480,7 +3480,7 @@ function yo() {
3480
3480
  return Ni = r, Ni;
3481
3481
  }
3482
3482
  var Bi, Ru;
3483
- function Xn() {
3483
+ function Hn() {
3484
3484
  if (Ru) return Bi;
3485
3485
  Ru = 1;
3486
3486
  var t = yo(), e = t(Object, "create");
@@ -3490,7 +3490,7 @@ var Fi, Pu;
3490
3490
  function cg() {
3491
3491
  if (Pu) return Fi;
3492
3492
  Pu = 1;
3493
- var t = Xn();
3493
+ var t = Hn();
3494
3494
  function e() {
3495
3495
  this.__data__ = t ? t(null) : {}, this.size = 0;
3496
3496
  }
@@ -3510,7 +3510,7 @@ var Gi, Mu;
3510
3510
  function hg() {
3511
3511
  if (Mu) return Gi;
3512
3512
  Mu = 1;
3513
- var t = Xn(), e = "__lodash_hash_undefined__", r = Object.prototype, a = r.hasOwnProperty;
3513
+ var t = Hn(), e = "__lodash_hash_undefined__", r = Object.prototype, a = r.hasOwnProperty;
3514
3514
  function n(i) {
3515
3515
  var s = this.__data__;
3516
3516
  if (t) {
@@ -3525,7 +3525,7 @@ var zi, Ou;
3525
3525
  function dg() {
3526
3526
  if (Ou) return zi;
3527
3527
  Ou = 1;
3528
- var t = Xn(), e = Object.prototype, r = e.hasOwnProperty;
3528
+ var t = Hn(), e = Object.prototype, r = e.hasOwnProperty;
3529
3529
  function a(n) {
3530
3530
  var i = this.__data__;
3531
3531
  return t ? i[n] !== void 0 : r.call(i, n);
@@ -3536,7 +3536,7 @@ var Vi, ku;
3536
3536
  function gg() {
3537
3537
  if (ku) return Vi;
3538
3538
  ku = 1;
3539
- var t = Xn(), e = "__lodash_hash_undefined__";
3539
+ var t = Hn(), e = "__lodash_hash_undefined__";
3540
3540
  function r(a, n) {
3541
3541
  var i = this.__data__;
3542
3542
  return this.size += this.has(a) ? 0 : 1, i[a] = t && n === void 0 ? e : n, this;
@@ -3566,18 +3566,18 @@ function yg() {
3566
3566
  }
3567
3567
  return qi = t, qi;
3568
3568
  }
3569
- var Yi, Fu;
3569
+ var $i, Fu;
3570
3570
  function Wf() {
3571
- if (Fu) return Yi;
3571
+ if (Fu) return $i;
3572
3572
  Fu = 1;
3573
3573
  function t(e, r) {
3574
3574
  return e === r || e !== e && r !== r;
3575
3575
  }
3576
- return Yi = t, Yi;
3576
+ return $i = t, $i;
3577
3577
  }
3578
- var Hi, _u;
3579
- function $n() {
3580
- if (_u) return Hi;
3578
+ var Yi, _u;
3579
+ function Xn() {
3580
+ if (_u) return Yi;
3581
3581
  _u = 1;
3582
3582
  var t = Wf();
3583
3583
  function e(r, a) {
@@ -3586,13 +3586,13 @@ function $n() {
3586
3586
  return n;
3587
3587
  return -1;
3588
3588
  }
3589
- return Hi = e, Hi;
3589
+ return Yi = e, Yi;
3590
3590
  }
3591
- var Xi, Gu;
3591
+ var Hi, Gu;
3592
3592
  function mg() {
3593
- if (Gu) return Xi;
3593
+ if (Gu) return Hi;
3594
3594
  Gu = 1;
3595
- var t = $n(), e = Array.prototype, r = e.splice;
3595
+ var t = Xn(), e = Array.prototype, r = e.splice;
3596
3596
  function a(n) {
3597
3597
  var i = this.__data__, s = t(i, n);
3598
3598
  if (s < 0)
@@ -3600,24 +3600,24 @@ function mg() {
3600
3600
  var o = i.length - 1;
3601
3601
  return s == o ? i.pop() : r.call(i, s, 1), --this.size, !0;
3602
3602
  }
3603
- return Xi = a, Xi;
3603
+ return Hi = a, Hi;
3604
3604
  }
3605
- var $i, zu;
3605
+ var Xi, zu;
3606
3606
  function bg() {
3607
- if (zu) return $i;
3607
+ if (zu) return Xi;
3608
3608
  zu = 1;
3609
- var t = $n();
3609
+ var t = Xn();
3610
3610
  function e(r) {
3611
3611
  var a = this.__data__, n = t(a, r);
3612
3612
  return n < 0 ? void 0 : a[n][1];
3613
3613
  }
3614
- return $i = e, $i;
3614
+ return Xi = e, Xi;
3615
3615
  }
3616
3616
  var Wi, Vu;
3617
3617
  function wg() {
3618
3618
  if (Vu) return Wi;
3619
3619
  Vu = 1;
3620
- var t = $n();
3620
+ var t = Xn();
3621
3621
  function e(r) {
3622
3622
  return t(this.__data__, r) > -1;
3623
3623
  }
@@ -3627,7 +3627,7 @@ var Ki, Uu;
3627
3627
  function Eg() {
3628
3628
  if (Uu) return Ki;
3629
3629
  Uu = 1;
3630
- var t = $n();
3630
+ var t = Xn();
3631
3631
  function e(r, a) {
3632
3632
  var n = this.__data__, i = t(n, r);
3633
3633
  return i < 0 ? (++this.size, n.push([r, a])) : n[i][1] = a, this;
@@ -3648,17 +3648,17 @@ function xg() {
3648
3648
  }
3649
3649
  return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = a, i.prototype.set = n, Zi = i, Zi;
3650
3650
  }
3651
- var Qi, Yu;
3651
+ var Qi, $u;
3652
3652
  function Tg() {
3653
- if (Yu) return Qi;
3654
- Yu = 1;
3653
+ if ($u) return Qi;
3654
+ $u = 1;
3655
3655
  var t = yo(), e = Vn(), r = t(e, "Map");
3656
3656
  return Qi = r, Qi;
3657
3657
  }
3658
- var Ji, Hu;
3658
+ var Ji, Yu;
3659
3659
  function Cg() {
3660
- if (Hu) return Ji;
3661
- Hu = 1;
3660
+ if (Yu) return Ji;
3661
+ Yu = 1;
3662
3662
  var t = pg(), e = xg(), r = Tg();
3663
3663
  function a() {
3664
3664
  this.size = 0, this.__data__ = {
@@ -3669,20 +3669,20 @@ function Cg() {
3669
3669
  }
3670
3670
  return Ji = a, Ji;
3671
3671
  }
3672
- var ji, Xu;
3672
+ var ji, Hu;
3673
3673
  function Dg() {
3674
- if (Xu) return ji;
3675
- Xu = 1;
3674
+ if (Hu) return ji;
3675
+ Hu = 1;
3676
3676
  function t(e) {
3677
3677
  var r = typeof e;
3678
3678
  return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
3679
3679
  }
3680
3680
  return ji = t, ji;
3681
3681
  }
3682
- var es, $u;
3682
+ var es, Xu;
3683
3683
  function Wn() {
3684
- if ($u) return es;
3685
- $u = 1;
3684
+ if (Xu) return es;
3685
+ Xu = 1;
3686
3686
  var t = Dg();
3687
3687
  function e(r, a) {
3688
3688
  var n = r.__data__;
@@ -3805,7 +3805,7 @@ var fs, al;
3805
3805
  function Og() {
3806
3806
  if (al) return fs;
3807
3807
  al = 1;
3808
- var t = oo(), e = Zf(), r = Hn(), a = za(), n = t ? t.prototype : void 0, i = n ? n.toString : void 0;
3808
+ var t = oo(), e = Zf(), r = Yn(), a = za(), n = t ? t.prototype : void 0, i = n ? n.toString : void 0;
3809
3809
  function s(o) {
3810
3810
  if (typeof o == "string")
3811
3811
  return o;
@@ -3832,7 +3832,7 @@ var vs, il;
3832
3832
  function Jf() {
3833
3833
  if (il) return vs;
3834
3834
  il = 1;
3835
- var t = Hn(), e = ng(), r = Kf(), a = Qf();
3835
+ var t = Yn(), e = ng(), r = Kf(), a = Qf();
3836
3836
  function n(i, s) {
3837
3837
  return t(i) ? i : e(i, s) ? [i] : r(a(i));
3838
3838
  }
@@ -3958,8 +3958,8 @@ function qg() {
3958
3958
  }
3959
3959
  return Es = e, Es;
3960
3960
  }
3961
- var Yg = qg(), Hg = /* @__PURE__ */ _a(Yg), xs, gl;
3962
- function Xg() {
3961
+ var $g = qg(), Yg = /* @__PURE__ */ _a($g), xs, gl;
3962
+ function Hg() {
3963
3963
  if (gl) return xs;
3964
3964
  gl = 1;
3965
3965
  function t(e, r) {
@@ -3971,16 +3971,16 @@ function Xg() {
3971
3971
  return xs = t, xs;
3972
3972
  }
3973
3973
  var Ts, pl;
3974
- function $g() {
3974
+ function Xg() {
3975
3975
  if (pl) return Ts;
3976
3976
  pl = 1;
3977
- var t = Zf(), e = Xg(), r = Hn(), a = za(), n = Kf(), i = mo(), s = Qf();
3977
+ var t = Zf(), e = Hg(), r = Yn(), a = za(), n = Kf(), i = mo(), s = Qf();
3978
3978
  function o(u) {
3979
3979
  return r(u) ? t(u, i) : a(u) ? [u] : e(n(s(u)));
3980
3980
  }
3981
3981
  return Ts = o, Ts;
3982
3982
  }
3983
- var Wg = $g(), Kg = /* @__PURE__ */ _a(Wg), Zg = {
3983
+ var Wg = Xg(), Kg = /* @__PURE__ */ _a(Wg), Zg = {
3984
3984
  // access data field
3985
3985
  data: function(e) {
3986
3986
  var r = {
@@ -4019,7 +4019,7 @@ var Wg = $g(), Kg = /* @__PURE__ */ _a(Wg), Zg = {
4019
4019
  s.beforeSet(o, p);
4020
4020
  for (var g = 0, y = l.length; g < y; g++) {
4021
4021
  var b = l[g];
4022
- s.canSet(b) && (v && f._private[s.field][n] === void 0 ? Hg(b._private[s.field], v, i) : b._private[s.field][n] = i);
4022
+ s.canSet(b) && (v && f._private[s.field][n] === void 0 ? Yg(b._private[s.field], v, i) : b._private[s.field][n] = i);
4023
4023
  }
4024
4024
  s.updateStyle && o.updateStyle(), s.onSet(o), s.settingTriggersEvent && o[s.triggerFnName](s.settingEvent);
4025
4025
  }
@@ -4037,7 +4037,7 @@ var Wg = $g(), Kg = /* @__PURE__ */ _a(Wg), Zg = {
4037
4037
  }
4038
4038
  }
4039
4039
  s.updateStyle && o.updateStyle(), s.onSet(o), s.settingTriggersEvent && o[s.triggerFnName](s.settingEvent);
4040
- } else if (s.allowBinding && Xe(n)) {
4040
+ } else if (s.allowBinding && He(n)) {
4041
4041
  var A = n;
4042
4042
  o.on(s.bindingEvent, A);
4043
4043
  } else if (s.allowGetting && n === void 0) {
@@ -4401,7 +4401,7 @@ var ze = function() {
4401
4401
  });
4402
4402
  }, ar = function(e, r, a) {
4403
4403
  e[e.length - 1] = a;
4404
- }, Ys = [{
4404
+ }, $s = [{
4405
4405
  name: "group",
4406
4406
  // just used for identifying when debugging
4407
4407
  query: !0,
@@ -4636,12 +4636,12 @@ var ze = function() {
4636
4636
  i === se.DIRECTED_EDGE ? n.type = se.NODE_TARGET : i === se.UNDIRECTED_EDGE && (n.type = se.NODE_NEIGHBOR, n.node = n.nodes[1], n.neighbor = n.nodes[0], n.nodes = null);
4637
4637
  }
4638
4638
  }];
4639
- Ys.forEach(function(t) {
4639
+ $s.forEach(function(t) {
4640
4640
  return t.regexObj = new RegExp("^" + t.regex);
4641
4641
  });
4642
4642
  var rp = function(e) {
4643
- for (var r, a, n, i = 0; i < Ys.length; i++) {
4644
- var s = Ys[i], o = s.name, u = e.match(s.regexObj);
4643
+ for (var r, a, n, i = 0; i < $s.length; i++) {
4644
+ var s = $s[i], o = s.name, u = e.match(s.regexObj);
4645
4645
  if (u != null) {
4646
4646
  a = u, r = s, n = o;
4647
4647
  var l = u[0];
@@ -4795,7 +4795,7 @@ var rp = function(e) {
4795
4795
  return e.data(r);
4796
4796
  }, lp = function(e, r) {
4797
4797
  return e[r]();
4798
- }, We = [], Ye = function(e, r) {
4798
+ }, We = [], $e = function(e, r) {
4799
4799
  return e.checks.every(function(a) {
4800
4800
  return We[a.type](a, r);
4801
4801
  });
@@ -4834,46 +4834,46 @@ We[se.DATA_EXIST] = function(t, e) {
4834
4834
  };
4835
4835
  We[se.UNDIRECTED_EDGE] = function(t, e) {
4836
4836
  var r = t.nodes[0], a = t.nodes[1], n = e.source(), i = e.target();
4837
- return Ye(r, n) && Ye(a, i) || Ye(a, n) && Ye(r, i);
4837
+ return $e(r, n) && $e(a, i) || $e(a, n) && $e(r, i);
4838
4838
  };
4839
4839
  We[se.NODE_NEIGHBOR] = function(t, e) {
4840
- return Ye(t.node, e) && e.neighborhood().some(function(r) {
4841
- return r.isNode() && Ye(t.neighbor, r);
4840
+ return $e(t.node, e) && e.neighborhood().some(function(r) {
4841
+ return r.isNode() && $e(t.neighbor, r);
4842
4842
  });
4843
4843
  };
4844
4844
  We[se.DIRECTED_EDGE] = function(t, e) {
4845
- return Ye(t.source, e.source()) && Ye(t.target, e.target());
4845
+ return $e(t.source, e.source()) && $e(t.target, e.target());
4846
4846
  };
4847
4847
  We[se.NODE_SOURCE] = function(t, e) {
4848
- return Ye(t.source, e) && e.outgoers().some(function(r) {
4849
- return r.isNode() && Ye(t.target, r);
4848
+ return $e(t.source, e) && e.outgoers().some(function(r) {
4849
+ return r.isNode() && $e(t.target, r);
4850
4850
  });
4851
4851
  };
4852
4852
  We[se.NODE_TARGET] = function(t, e) {
4853
- return Ye(t.target, e) && e.incomers().some(function(r) {
4854
- return r.isNode() && Ye(t.source, r);
4853
+ return $e(t.target, e) && e.incomers().some(function(r) {
4854
+ return r.isNode() && $e(t.source, r);
4855
4855
  });
4856
4856
  };
4857
4857
  We[se.CHILD] = function(t, e) {
4858
- return Ye(t.child, e) && Ye(t.parent, e.parent());
4858
+ return $e(t.child, e) && $e(t.parent, e.parent());
4859
4859
  };
4860
4860
  We[se.PARENT] = function(t, e) {
4861
- return Ye(t.parent, e) && e.children().some(function(r) {
4862
- return Ye(t.child, r);
4861
+ return $e(t.parent, e) && e.children().some(function(r) {
4862
+ return $e(t.child, r);
4863
4863
  });
4864
4864
  };
4865
4865
  We[se.DESCENDANT] = function(t, e) {
4866
- return Ye(t.descendant, e) && e.ancestors().some(function(r) {
4867
- return Ye(t.ancestor, r);
4866
+ return $e(t.descendant, e) && e.ancestors().some(function(r) {
4867
+ return $e(t.ancestor, r);
4868
4868
  });
4869
4869
  };
4870
4870
  We[se.ANCESTOR] = function(t, e) {
4871
- return Ye(t.ancestor, e) && e.descendants().some(function(r) {
4872
- return Ye(t.descendant, r);
4871
+ return $e(t.ancestor, e) && e.descendants().some(function(r) {
4872
+ return $e(t.descendant, r);
4873
4873
  });
4874
4874
  };
4875
4875
  We[se.COMPOUND_SPLIT] = function(t, e) {
4876
- return Ye(t.subject, e) && Ye(t.left, e) && Ye(t.right, e);
4876
+ return $e(t.subject, e) && $e(t.left, e) && $e(t.right, e);
4877
4877
  };
4878
4878
  We[se.TRUE] = function() {
4879
4879
  return !0;
@@ -4893,7 +4893,7 @@ var fp = function(e) {
4893
4893
  var a = function(i) {
4894
4894
  for (var s = 0; s < r.length; s++) {
4895
4895
  var o = r[s];
4896
- if (Ye(o, i))
4896
+ if ($e(o, i))
4897
4897
  return !0;
4898
4898
  }
4899
4899
  return !1;
@@ -4904,7 +4904,7 @@ var fp = function(e) {
4904
4904
  }, cp = function(e) {
4905
4905
  for (var r = this, a = 0; a < r.length; a++) {
4906
4906
  var n = r[a];
4907
- if (Ye(n, e))
4907
+ if ($e(n, e))
4908
4908
  return !0;
4909
4909
  }
4910
4910
  return !1;
@@ -4917,12 +4917,12 @@ var fp = function(e) {
4917
4917
  type: se.COLLECTION,
4918
4918
  value: e.collection()
4919
4919
  }]
4920
- }) : Xe(e) ? this.addQuery({
4920
+ }) : He(e) ? this.addQuery({
4921
4921
  checks: [{
4922
4922
  type: se.FILTER,
4923
4923
  value: e
4924
4924
  }]
4925
- }) : ge(e) ? this.parse(e) || (this.invalid = !0) : He("A selector must be created from a string; found "));
4925
+ }) : ge(e) ? this.parse(e) || (this.invalid = !0) : Ye("A selector must be created from a string; found "));
4926
4926
  }, dr = hr.prototype;
4927
4927
  [sp, vp].forEach(function(t) {
4928
4928
  return be(dr, t);
@@ -5317,7 +5317,7 @@ Bt = ac = {
5317
5317
  positions: function(e, r) {
5318
5318
  if (Oe(e))
5319
5319
  r ? this.silentPosition(e) : this.position(e);
5320
- else if (Xe(e)) {
5320
+ else if (He(e)) {
5321
5321
  var a = e, n = this.cy();
5322
5322
  n.startBatch();
5323
5323
  for (var i = 0; i < this.length; i++) {
@@ -5563,9 +5563,9 @@ var It = function(e) {
5563
5563
  A += M, L += N, R += O, P += k;
5564
5564
  var B = a || "main", _ = i.labelBounds, F = _[B] = _[B] || {};
5565
5565
  F.x1 = A, F.y1 = R, F.x2 = L, F.y2 = P, F.w = L - A, F.h = P - R, F.leftPad = M, F.rightPad = N, F.topPad = O, F.botPad = k;
5566
- var G = g && y.strValue === "autorotate", H = y.pfValue != null && y.pfValue !== 0;
5567
- if (G || H) {
5568
- var Y = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, X = Math.cos(Y), W = Math.sin(Y), ee = (A + L) / 2, ae = (R + P) / 2;
5566
+ var G = g && y.strValue === "autorotate", Y = y.pfValue != null && y.pfValue !== 0;
5567
+ if (G || Y) {
5568
+ var $ = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, H = Math.cos($), W = Math.sin($), ee = (A + L) / 2, ae = (R + P) / 2;
5569
5569
  if (!g) {
5570
5570
  switch (u.value) {
5571
5571
  case "left":
@@ -5586,8 +5586,8 @@ var It = function(e) {
5586
5586
  }
5587
5587
  var J = function(Te, we) {
5588
5588
  return Te = Te - ee, we = we - ae, {
5589
- x: Te * X - we * W + ee,
5590
- y: Te * W + we * X + ae
5589
+ x: Te * H - we * W + ee,
5590
+ y: Te * W + we * H + ae
5591
5591
  };
5592
5592
  }, z = J(A, R), V = J(A, P), q = J(L, R), Z = J(L, P);
5593
5593
  A = Math.min(z.x, V.x, q.x, Z.x), L = Math.max(z.x, V.x, q.x, Z.x), R = Math.min(z.y, V.y, q.y, Z.y), P = Math.max(z.y, V.y, q.y, Z.y);
@@ -5668,8 +5668,8 @@ var It = function(e) {
5668
5668
  }
5669
5669
  }
5670
5670
  } else {
5671
- var H = e.source(), Y = H.position(), X = e.target(), W = X.position();
5672
- if (f = Y.x, c = W.x, v = Y.y, h = W.y, f > c) {
5671
+ var Y = e.source(), $ = Y.position(), H = e.target(), W = H.position();
5672
+ if (f = $.x, c = W.x, v = $.y, h = W.y, f > c) {
5673
5673
  var ee = f;
5674
5674
  f = c, c = ee;
5675
5675
  }
@@ -5973,7 +5973,7 @@ function Zn() {
5973
5973
  this.context = e || this.context, this.listeners = [], this.emitting = 0;
5974
5974
  }
5975
5975
  var gr = Zn.prototype, vc = function(e, r, a, n, i, s, o) {
5976
- Xe(n) && (i = n, n = null), o && (s == null ? s = o : s = be({}, s, o));
5976
+ He(n) && (i = n, n = null), o && (s == null ? s = o : s = be({}, s, o));
5977
5977
  for (var u = Ve(a) ? a : a.split(/\s+/), l = 0; l < u.length; l++) {
5978
5978
  var f = u[l];
5979
5979
  if (!fr(f)) {
@@ -6012,7 +6012,7 @@ var gr = Zn.prototype, vc = function(e, r, a, n, i, s, o) {
6012
6012
  };
6013
6013
  gr.on = gr.addListener = function(t, e, r, a, n) {
6014
6014
  return vc(this, function(i, s, o, u, l, f, c) {
6015
- Xe(f) && i.listeners.push({
6015
+ He(f) && i.listeners.push({
6016
6016
  event: s,
6017
6017
  // full event string
6018
6018
  callback: f,
@@ -6186,7 +6186,7 @@ var dc = {
6186
6186
  return this;
6187
6187
  if (ge(e) || Lt(e))
6188
6188
  return new hr(e).filter(this);
6189
- if (Xe(e)) {
6189
+ if (He(e)) {
6190
6190
  for (var a = this.spawn(), n = this, i = 0; i < n.length; i++) {
6191
6191
  var s = n[i], o = r ? e.apply(r, [s, i, n]) : e(s, i, n);
6192
6192
  o && a.push(s);
@@ -6401,7 +6401,7 @@ var Np = {
6401
6401
  return l !== 0 ? l : e.poolIndex() - r.poolIndex();
6402
6402
  }, On = {
6403
6403
  forEach: function(e, r) {
6404
- if (Xe(e))
6404
+ if (He(e))
6405
6405
  for (var a = this.length, n = 0; n < a; n++) {
6406
6406
  var i = this[n], s = r ? e.apply(r, [i, n, this]) : e(i, n, this);
6407
6407
  if (s === !1)
@@ -6440,7 +6440,7 @@ var Np = {
6440
6440
  return !this.empty();
6441
6441
  },
6442
6442
  sort: function(e) {
6443
- if (!Xe(e))
6443
+ if (!He(e))
6444
6444
  return this;
6445
6445
  var r = this.toArray().sort(e);
6446
6446
  return this.spawn(r);
@@ -6857,7 +6857,7 @@ function Dl(t) {
6857
6857
  if (e.length === 2) {
6858
6858
  var a = e[0], n = e[1];
6859
6859
  this.on(t.event, a, n);
6860
- } else if (e.length === 1 && Xe(e[0])) {
6860
+ } else if (e.length === 1 && He(e[0])) {
6861
6861
  var i = e[0];
6862
6862
  this.on(t.event, i);
6863
6863
  } else if (e.length === 0 || e.length === 1 && Ve(e[0])) {
@@ -7169,7 +7169,7 @@ pt.componentsOf = pt.components;
7169
7169
  var vt = function(e, r) {
7170
7170
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
7171
7171
  if (e === void 0) {
7172
- He("A collection must have a reference to the core");
7172
+ Ye("A collection must have a reference to the core");
7173
7173
  return;
7174
7174
  }
7175
7175
  var i = new Zt(), s = !1;
@@ -7344,10 +7344,10 @@ qe.restore = function() {
7344
7344
  else if (ne(p.id))
7345
7345
  p.id = "" + p.id;
7346
7346
  else if (fr(p.id) || !ge(p.id)) {
7347
- He("Can not create element with invalid string ID `" + p.id + "`"), v();
7347
+ Ye("Can not create element with invalid string ID `" + p.id + "`"), v();
7348
7348
  continue;
7349
7349
  } else if (a.hasElementWithId(p.id)) {
7350
- He("Can not create second element with ID `" + p.id + "`"), v();
7350
+ Ye("Can not create second element with ID `" + p.id + "`"), v();
7351
7351
  continue;
7352
7352
  }
7353
7353
  }
@@ -7359,7 +7359,7 @@ qe.restore = function() {
7359
7359
  if (h.isEdge()) {
7360
7360
  for (var b = h, m = ["source", "target"], E = m.length, T = !1, S = 0; S < E; S++) {
7361
7361
  var w = m[S], x = p[w];
7362
- ne(x) && (x = p[w] = "" + p[w]), x == null || x === "" ? (He("Can not create edge `" + g + "` with unspecified " + w), T = !0) : a.hasElementWithId(x) || (He("Can not create edge `" + g + "` with nonexistant " + w + " `" + x + "`"), T = !0);
7362
+ ne(x) && (x = p[w] = "" + p[w]), x == null || x === "" ? (Ye("Can not create edge `" + g + "` with unspecified " + w), T = !0) : a.hasElementWithId(x) || (Ye("Can not create edge `" + g + "` with nonexistant " + w + " `" + x + "`"), T = !0);
7363
7363
  }
7364
7364
  if (T) {
7365
7365
  v();
@@ -7632,7 +7632,7 @@ function qp(t, e, r, a) {
7632
7632
  }, x;
7633
7633
  }
7634
7634
  /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */
7635
- var Yp = /* @__PURE__ */ (function() {
7635
+ var $p = /* @__PURE__ */ (function() {
7636
7636
  function t(a) {
7637
7637
  return -a.tension * a.x - a.friction * a.v;
7638
7638
  }
@@ -7714,7 +7714,7 @@ var Yp = /* @__PURE__ */ (function() {
7714
7714
  spring: function(e, r, a) {
7715
7715
  if (a === 0)
7716
7716
  return gn.linear;
7717
- var n = Yp(e, r, a);
7717
+ var n = $p(e, r, a);
7718
7718
  return function(i, s, o) {
7719
7719
  return i + (s - i) * n(o);
7720
7720
  };
@@ -7748,7 +7748,7 @@ function Vr(t, e, r, a, n) {
7748
7748
  return u;
7749
7749
  }
7750
7750
  }
7751
- function Hp(t, e, r, a) {
7751
+ function Yp(t, e, r, a) {
7752
7752
  var n = !a, i = t._private, s = e._private, o = s.easing, u = s.startTime, l = a ? t : t.cy(), f = l.style();
7753
7753
  if (!s.easingImpl)
7754
7754
  if (o == null)
@@ -7790,7 +7790,7 @@ function Hp(t, e, r, a) {
7790
7790
  function pa(t, e) {
7791
7791
  return t == null || e == null ? !1 : ne(t) && ne(e) ? !0 : !!(t && e);
7792
7792
  }
7793
- function Xp(t, e, r, a) {
7793
+ function Hp(t, e, r, a) {
7794
7794
  var n = e._private;
7795
7795
  n.started = !0, n.startTime = r - n.progress * n.duration;
7796
7796
  }
@@ -7814,7 +7814,7 @@ function kl(t, e) {
7814
7814
  h.splice(b, 1), E.hooked = !1, E.playing = !1, E.started = !1, y(E.frames);
7815
7815
  continue;
7816
7816
  }
7817
- !E.playing && !E.applying || (E.playing && E.applying && (E.applying = !1), E.started || Xp(f, m, t), Hp(f, m, t, c), E.applying && (E.applying = !1), y(E.frames), E.step != null && E.step(t), m.completed() && (h.splice(b, 1), E.hooked = !1, E.playing = !1, E.started = !1, y(E.completes)), p = !0);
7817
+ !E.playing && !E.applying || (E.playing && E.applying && (E.applying = !1), E.started || Hp(f, m, t), Yp(f, m, t, c), E.applying && (E.applying = !1), y(E.frames), E.step != null && E.step(t), m.completed() && (h.splice(b, 1), E.hooked = !1, E.playing = !1, E.started = !1, y(E.completes)), p = !0);
7818
7818
  }
7819
7819
  return !c && h.length === 0 && d.length === 0 && a.push(f), p;
7820
7820
  }
@@ -7825,7 +7825,7 @@ function kl(t, e) {
7825
7825
  var l = n(e, !0);
7826
7826
  (i || l) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(a), e.emit("step");
7827
7827
  }
7828
- var $p = {
7828
+ var Xp = {
7829
7829
  // pull in animation functions
7830
7830
  animate: _e.animate(),
7831
7831
  animation: _e.animation(),
@@ -7902,7 +7902,7 @@ var $p = {
7902
7902
  }
7903
7903
  };
7904
7904
  _e.eventAliasesOn(yc);
7905
- var Hs = {
7905
+ var Ys = {
7906
7906
  png: function(e) {
7907
7907
  var r = this._private.renderer;
7908
7908
  return e = e || {}, r.png(e);
@@ -7912,21 +7912,21 @@ var Hs = {
7912
7912
  return e = e || {}, e.bg = e.bg || "#fff", r.jpg(e);
7913
7913
  }
7914
7914
  };
7915
- Hs.jpeg = Hs.jpg;
7915
+ Ys.jpeg = Ys.jpg;
7916
7916
  var pn = {
7917
7917
  layout: function(e) {
7918
7918
  var r = this;
7919
7919
  if (e == null) {
7920
- He("Layout options must be specified to make a layout");
7920
+ Ye("Layout options must be specified to make a layout");
7921
7921
  return;
7922
7922
  }
7923
7923
  if (e.name == null) {
7924
- He("A `name` must be specified to make a layout");
7924
+ Ye("A `name` must be specified to make a layout");
7925
7925
  return;
7926
7926
  }
7927
7927
  var a = e.name, n = r.extension("layout", a);
7928
7928
  if (n == null) {
7929
- He("No such layout `" + a + "` found. Did you forget to import it and `cytoscape.use()` it?");
7929
+ Ye("No such layout `" + a + "` found. Did you forget to import it and `cytoscape.use()` it?");
7930
7930
  return;
7931
7931
  }
7932
7932
  var i;
@@ -8016,7 +8016,7 @@ var Kp = {
8016
8016
  webglBatchSize: 2048,
8017
8017
  webglTexPerBatch: 14,
8018
8018
  webglBgColor: [255, 255, 255]
8019
- }), Xs = {
8019
+ }), Hs = {
8020
8020
  renderTo: function(e, r, a, n) {
8021
8021
  var i = this._private.renderer;
8022
8022
  return i.renderTo(e, r, a, n), this;
@@ -8033,7 +8033,7 @@ var Kp = {
8033
8033
  initRenderer: function(e) {
8034
8034
  var r = this, a = r.extension("renderer", e.name);
8035
8035
  if (a == null) {
8036
- He("Can not initialise: No such renderer `".concat(e.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
8036
+ Ye("Can not initialise: No such renderer `".concat(e.name, "` found. Did you forget to import it and `cytoscape.use()` it?"));
8037
8037
  return;
8038
8038
  }
8039
8039
  e.wheelSensitivity !== void 0 && Ge("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");
@@ -8059,7 +8059,7 @@ var Kp = {
8059
8059
  return this.off("render", e);
8060
8060
  }
8061
8061
  };
8062
- Xs.invalidateDimensions = Xs.resize;
8062
+ Hs.invalidateDimensions = Hs.resize;
8063
8063
  var yn = {
8064
8064
  // get a collection
8065
8065
  // - empty collection on no args
@@ -8192,7 +8192,7 @@ lt.updateStyleHints = function(t) {
8192
8192
  a = Object.keys(u);
8193
8193
  for (var l = 0; l < n.length; l++) {
8194
8194
  var f = n[l];
8195
- e.styleKeys[f] = [Ar, $r];
8195
+ e.styleKeys[f] = [Ar, Xr];
8196
8196
  }
8197
8197
  for (var c = function(q, Z) {
8198
8198
  return e.styleKeys[Z][0] = Sa(q, e.styleKeys[Z][0]);
@@ -8220,7 +8220,7 @@ lt.updateStyleHints = function(t) {
8220
8220
  d(m.strValue, S);
8221
8221
  }
8222
8222
  }
8223
- for (var P = [Ar, $r], M = 0; M < n.length; M++) {
8223
+ for (var P = [Ar, Xr], M = 0; M < n.length; M++) {
8224
8224
  var N = n[M], O = e.styleKeys[N];
8225
8225
  P[0] = Sa(O[0], P[0]), P[1] = Aa(O[1], P[1]);
8226
8226
  }
@@ -8235,10 +8235,10 @@ lt.updateStyleHints = function(t) {
8235
8235
  e.targetLabelKey = rr(F), e.targetLabelStyleKey = rr(Qa(k.commonLabel, F));
8236
8236
  }
8237
8237
  if (o) {
8238
- var G = e.styleKeys, H = G.nodeBody, Y = G.nodeBorder, X = G.nodeOutline, W = G.backgroundImage, ee = G.compound, ae = G.pie, J = G.stripe, z = [H, Y, X, W, ee, ae, J].filter(function(V) {
8238
+ var G = e.styleKeys, Y = G.nodeBody, $ = G.nodeBorder, H = G.nodeOutline, W = G.backgroundImage, ee = G.compound, ae = G.pie, J = G.stripe, z = [Y, $, H, W, ee, ae, J].filter(function(V) {
8239
8239
  return V != null;
8240
- }).reduce(Qa, [Ar, $r]);
8241
- e.nodeKey = rr(z), e.hasPie = ae != null && ae[0] !== Ar && ae[1] !== $r, e.hasStripe = J != null && J[0] !== Ar && J[1] !== $r;
8240
+ }).reduce(Qa, [Ar, Xr]);
8241
+ e.nodeKey = rr(z), e.hasPie = ae != null && ae[0] !== Ar && ae[1] !== Xr, e.hasStripe = J != null && J[0] !== Ar && J[1] !== Xr;
8242
8242
  }
8243
8243
  return s !== e.styleKey;
8244
8244
  };
@@ -8247,11 +8247,11 @@ lt.clearStyleHints = function(t) {
8247
8247
  e.styleCxtKey = "", e.styleKeys = {}, e.styleKey = null, e.labelKey = null, e.labelStyleKey = null, e.sourceLabelKey = null, e.sourceLabelStyleKey = null, e.targetLabelKey = null, e.targetLabelStyleKey = null, e.nodeKey = null, e.hasPie = null, e.hasStripe = null;
8248
8248
  };
8249
8249
  lt.applyParsedProperty = function(t, e) {
8250
- var r = this, a = e, n = t._private.style, i, s = r.types, o = r.properties[a.name].type, u = a.bypass, l = n[a.name], f = l && l.bypass, c = t._private, v = "mapping", h = function(H) {
8251
- return H == null ? null : H.pfValue != null ? H.pfValue : H.value;
8250
+ var r = this, a = e, n = t._private.style, i, s = r.types, o = r.properties[a.name].type, u = a.bypass, l = n[a.name], f = l && l.bypass, c = t._private, v = "mapping", h = function(Y) {
8251
+ return Y == null ? null : Y.pfValue != null ? Y.pfValue : Y.value;
8252
8252
  }, d = function() {
8253
- var H = h(l), Y = h(a);
8254
- r.checkTriggers(t, a.name, H, Y);
8253
+ var Y = h(l), $ = h(a);
8254
+ r.checkTriggers(t, a.name, Y, $);
8255
8255
  };
8256
8256
  if (e.name === "curve-style" && t.isEdge() && // loops must be bundled beziers
8257
8257
  (e.value !== "bezier" && t.isLoop() || // edges connected to compound nodes can not be haystacks
@@ -8409,8 +8409,8 @@ lt.checkParallelEdgesBoundsTrigger = function(t, e, r, a) {
8409
8409
  lt.checkTriggers = function(t, e, r, a) {
8410
8410
  t.dirtyStyleCache(), this.checkZOrderTrigger(t, e, r, a), this.checkBoundsTrigger(t, e, r, a), this.checkConnectedEdgesBoundsTrigger(t, e, r, a), this.checkParallelEdgesBoundsTrigger(t, e, r, a);
8411
8411
  };
8412
- var Ya = {};
8413
- Ya.applyBypass = function(t, e, r, a) {
8412
+ var $a = {};
8413
+ $a.applyBypass = function(t, e, r, a) {
8414
8414
  var n = this, i = [], s = !0;
8415
8415
  if (e === "*" || e === "**") {
8416
8416
  if (r !== void 0)
@@ -8450,17 +8450,17 @@ Ya.applyBypass = function(t, e, r, a) {
8450
8450
  }
8451
8451
  return b;
8452
8452
  };
8453
- Ya.overrideBypass = function(t, e, r) {
8453
+ $a.overrideBypass = function(t, e, r) {
8454
8454
  e = so(e);
8455
8455
  for (var a = 0; a < t.length; a++) {
8456
8456
  var n = t[a], i = n._private.style[e], s = this.properties[e].type, o = s.color, u = s.mutiple, l = i ? i.pfValue != null ? i.pfValue : i.value : null;
8457
8457
  !i || !i.bypass ? this.applyBypass(n, e, r) : (i.value = r, i.pfValue != null && (i.pfValue = r), o ? i.strValue = "rgb(" + r.join(",") + ")" : u ? i.strValue = r.join(" ") : i.strValue = "" + r, this.updateStyleHints(n)), this.checkTriggers(n, e, l, r);
8458
8458
  }
8459
8459
  };
8460
- Ya.removeAllBypasses = function(t, e) {
8460
+ $a.removeAllBypasses = function(t, e) {
8461
8461
  return this.removeBypasses(t, this.propertyNames, e);
8462
8462
  };
8463
- Ya.removeBypasses = function(t, e, r) {
8463
+ $a.removeBypasses = function(t, e, r) {
8464
8464
  for (var a = !0, n = 0; n < t.length; n++) {
8465
8465
  for (var i = t[n], s = {}, o = 0; o < e.length; o++) {
8466
8466
  var u = e[o], l = this.properties[u], f = i.pstyle(l.name);
@@ -8660,7 +8660,7 @@ To.fromString = function(t) {
8660
8660
  };
8661
8661
  var Qe = {};
8662
8662
  (function() {
8663
- var t = at, e = Hv, r = $v, a = Wv, n = Kv, i = function(V) {
8663
+ var t = at, e = Yv, r = Xv, a = Wv, n = Kv, i = function(V) {
8664
8664
  return "^" + V + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$";
8665
8665
  }, s = function(V) {
8666
8666
  var q = t + "|\\w+|" + e + "|" + r + "|" + a + "|" + n;
@@ -9739,7 +9739,7 @@ var Qe = {};
9739
9739
  return V.groupKey = z;
9740
9740
  });
9741
9741
  });
9742
- var H = Qe.aliases = [{
9742
+ var Y = Qe.aliases = [{
9743
9743
  name: "content",
9744
9744
  pointsTo: "label"
9745
9745
  }, {
@@ -9776,12 +9776,12 @@ var Qe = {};
9776
9776
  Qe.propertyNames = B.map(function(z) {
9777
9777
  return z.name;
9778
9778
  });
9779
- for (var Y = 0; Y < B.length; Y++) {
9780
- var X = B[Y];
9781
- B[X.name] = X;
9779
+ for (var $ = 0; $ < B.length; $++) {
9780
+ var H = B[$];
9781
+ B[H.name] = H;
9782
9782
  }
9783
- for (var W = 0; W < H.length; W++) {
9784
- var ee = H[W], ae = B[ee.pointsTo], J = {
9783
+ for (var W = 0; W < Y.length; W++) {
9784
+ var ee = Y[W], ae = B[ee.pointsTo], J = {
9785
9785
  name: ee.name,
9786
9786
  alias: !0,
9787
9787
  pointsTo: ae
@@ -10066,7 +10066,7 @@ Qe.addDefaultStylesheet = function() {
10066
10066
  var ei = {};
10067
10067
  ei.parse = function(t, e, r, a) {
10068
10068
  var n = this;
10069
- if (Xe(e))
10069
+ if (He(e))
10070
10070
  return n.parseImplWarn(t, e, r, a);
10071
10071
  var i = a === "mapping" || a === !0 || a === !1 || a == null ? "dontcare" : a, s = r ? "t" : "f", o = "" + e, u = Af(t, o, s, i), l = n.propCache = n.propCache || [], f;
10072
10072
  return (f = l[u]) || (f = l[u] = n.parseImplWarn(t, e, r, a)), (r || a === "mapping") && (f = Ut(f), f && (f.value = Ut(f.value))), f;
@@ -10094,7 +10094,7 @@ ei.parseImpl = function(t, e, r, a) {
10094
10094
  bypass: !0,
10095
10095
  deleteBypass: !0
10096
10096
  };
10097
- if (Xe(e))
10097
+ if (He(e))
10098
10098
  return {
10099
10099
  name: t,
10100
10100
  value: e,
@@ -10237,12 +10237,12 @@ ei.parseImpl = function(t, e, r, a) {
10237
10237
  } : null;
10238
10238
  } else if (l.regex || l.regexes) {
10239
10239
  if (l.enums) {
10240
- var H = A();
10241
- if (H)
10242
- return H;
10240
+ var Y = A();
10241
+ if (Y)
10242
+ return Y;
10243
10243
  }
10244
- for (var Y = l.regexes ? l.regexes : [l.regex], X = 0; X < Y.length; X++) {
10245
- var W = new RegExp(Y[X]), ee = W.exec(e);
10244
+ for (var $ = l.regexes ? l.regexes : [l.regex], H = 0; H < $.length; H++) {
10245
+ var W = new RegExp($[H]), ee = W.exec(e);
10246
10246
  if (ee)
10247
10247
  return {
10248
10248
  name: t,
@@ -10263,7 +10263,7 @@ var ut = function(e) {
10263
10263
  if (!(this instanceof ut))
10264
10264
  return new ut(e);
10265
10265
  if (!io(e)) {
10266
- He("A style must have a core reference");
10266
+ Ye("A style must have a core reference");
10267
10267
  return;
10268
10268
  }
10269
10269
  this._private = {
@@ -10328,7 +10328,7 @@ ut.fromJson = function(t, e) {
10328
10328
  ut.fromString = function(t, e) {
10329
10329
  return new ut(t).fromString(e);
10330
10330
  };
10331
- [lt, Ya, xo, qt, jn, To, Qe, ei].forEach(function(t) {
10331
+ [lt, $a, xo, qt, jn, To, Qe, ei].forEach(function(t) {
10332
10332
  be(yt, t);
10333
10333
  });
10334
10334
  ut.types = yt.types;
@@ -10776,7 +10776,7 @@ var ka = function(e) {
10776
10776
  f([o.style, o.elements], function(h) {
10777
10777
  var d = h[0], p = h[1];
10778
10778
  l.styleEnabled && r.style().append(d), v(p, function() {
10779
- r.startAnimationLoop(), l.ready = !0, Xe(o.ready) && r.on("ready", o.ready);
10779
+ r.startAnimationLoop(), l.ready = !0, He(o.ready) && r.on("ready", o.ready);
10780
10780
  for (var g = 0; g < i.length; g++) {
10781
10781
  var y = i[g];
10782
10782
  r.on("ready", y);
@@ -10916,7 +10916,7 @@ be(kn, {
10916
10916
  }
10917
10917
  });
10918
10918
  kn.$id = kn.getElementById;
10919
- [Up, $p, yc, Hs, pn, Kp, Xs, yn, Jp, Or, Oa].forEach(function(t) {
10919
+ [Up, Xp, yc, Ys, pn, Kp, Hs, yn, Jp, Or, Oa].forEach(function(t) {
10920
10920
  be(kn, t);
10921
10921
  });
10922
10922
  var ey = {
@@ -11078,7 +11078,7 @@ mc.prototype.run = function() {
11078
11078
  var k = a[O], B = k.layoutDimensions(t), _ = B.w, F = B.h;
11079
11079
  N = Math.max(N, _, F);
11080
11080
  }
11081
- var G = {}, H = function(ie) {
11081
+ var G = {}, Y = function(ie) {
11082
11082
  if (G[ie.id()])
11083
11083
  return G[ie.id()];
11084
11084
  for (var he = Ur(ie).depth, de = ie.neighborhood(), xe = 0, pe = 0, De = 0; De < de.length; De++) {
@@ -11095,21 +11095,21 @@ mc.prototype.run = function() {
11095
11095
  }
11096
11096
  }
11097
11097
  return pe = Math.max(1, pe), xe = xe / pe, pe === 0 && (xe = 0), G[ie.id()] = xe, xe;
11098
- }, Y = function(ie, he) {
11099
- var de = H(ie), xe = H(he), pe = de - xe;
11098
+ }, $ = function(ie, he) {
11099
+ var de = Y(ie), xe = Y(he), pe = de - xe;
11100
11100
  return pe === 0 ? bf(ie.id(), he.id()) : pe;
11101
11101
  };
11102
- t.depthSort !== void 0 && (Y = t.depthSort);
11103
- for (var X = y.length, W = 0; W < X; W++)
11104
- y[W].sort(Y), x(W);
11102
+ t.depthSort !== void 0 && ($ = t.depthSort);
11103
+ for (var H = y.length, W = 0; W < H; W++)
11104
+ y[W].sort($), x(W);
11105
11105
  for (var ee = [], ae = 0; ae < T.length; ae++)
11106
11106
  ee.push(T[ae]);
11107
11107
  var J = function() {
11108
- for (var ie = 0; ie < X; ie++)
11108
+ for (var ie = 0; ie < H; ie++)
11109
11109
  x(ie);
11110
11110
  };
11111
- ee.length && (y.unshift(ee), X = y.length, J());
11112
- for (var z = 0, V = 0; V < X; V++)
11111
+ ee.length && (y.unshift(ee), H = y.length, J());
11112
+ for (var z = 0, V = 0; V < H; V++)
11113
11113
  z = Math.max(y[V].length, z);
11114
11114
  var q = {
11115
11115
  x: u.x1 + u.w / 2,
@@ -11128,9 +11128,9 @@ mc.prototype.run = function() {
11128
11128
  h: -1
11129
11129
  }), re = Math.max(
11130
11130
  // only one depth
11131
- X === 1 ? 0 : (
11131
+ H === 1 ? 0 : (
11132
11132
  // inside a bounding box, no need for top & bottom padding
11133
- o ? (u.h - t.padding * 2 - Z.h) / (X - 1) : (u.h - t.padding * 2 - Z.h) / (X + 1)
11133
+ o ? (u.h - t.padding * 2 - Z.h) / (H - 1) : (u.h - t.padding * 2 - Z.h) / (H + 1)
11134
11134
  ),
11135
11135
  N
11136
11136
  ), ve = y.reduce(function(ye, ie) {
@@ -11138,9 +11138,9 @@ mc.prototype.run = function() {
11138
11138
  }, 0), Pe = function(ie) {
11139
11139
  var he = Ur(ie), de = he.depth, xe = he.index;
11140
11140
  if (t.circle) {
11141
- var pe = Math.min(u.w / 2 / X, u.h / 2 / X);
11141
+ var pe = Math.min(u.w / 2 / H, u.h / 2 / H);
11142
11142
  pe = Math.max(pe, N);
11143
- var De = pe * de + pe - (X > 0 && y[0].length <= 3 ? pe / 2 : 0), Ie = 2 * Math.PI / y[de].length * xe;
11143
+ var De = pe * de + pe - (H > 0 && y[0].length <= 3 ? pe / 2 : 0), Ie = 2 * Math.PI / y[de].length * xe;
11144
11144
  return de === 0 && y[0].length === 1 && (De = 1), {
11145
11145
  x: q.x + De * Math.cos(Ie),
11146
11146
  y: q.y + De * Math.sin(Ie)
@@ -11155,7 +11155,7 @@ mc.prototype.run = function() {
11155
11155
  N
11156
11156
  ), Fe = {
11157
11157
  x: q.x + (xe + 1 - (Ne + 1) / 2) * Be,
11158
- y: q.y + (de + 1 - (X + 1) / 2) * re
11158
+ y: q.y + (de + 1 - (H + 1) / 2) * re
11159
11159
  };
11160
11160
  return Fe;
11161
11161
  }
@@ -11165,7 +11165,7 @@ mc.prototype.run = function() {
11165
11165
  upward: 180,
11166
11166
  rightward: -90
11167
11167
  };
11168
- Object.keys(Te).indexOf(t.direction) === -1 && He("Invalid direction '".concat(t.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Te).join(", ")));
11168
+ Object.keys(Te).indexOf(t.direction) === -1 && Ye("Invalid direction '".concat(t.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Te).join(", ")));
11169
11169
  var we = function(ie) {
11170
11170
  return yh(Pe(ie), u, Te[t.direction]);
11171
11171
  };
@@ -11351,22 +11351,22 @@ wc.prototype.run = function() {
11351
11351
  k = Math.max(k, G);
11352
11352
  }
11353
11353
  B = 0;
11354
- for (var H = 0; H < y.length; H++) {
11355
- var Y = y[H];
11356
- H === 0 && (B = Y.r), Y.r = B, B += k;
11354
+ for (var Y = 0; Y < y.length; Y++) {
11355
+ var $ = y[Y];
11356
+ Y === 0 && (B = $.r), $.r = B, B += k;
11357
11357
  }
11358
11358
  }
11359
- for (var X = {}, W = 0; W < y.length; W++)
11359
+ for (var H = {}, W = 0; W < y.length; W++)
11360
11360
  for (var ee = y[W], ae = ee.dTheta, J = ee.r, z = 0; z < ee.length; z++) {
11361
11361
  var V = ee[z], q = e.startAngle + (r ? 1 : -1) * ae * z, Z = {
11362
11362
  x: o.x + J * Math.cos(q),
11363
11363
  y: o.y + J * Math.sin(q)
11364
11364
  };
11365
- X[V.node.id()] = Z;
11365
+ H[V.node.id()] = Z;
11366
11366
  }
11367
11367
  return n.nodes().layoutPositions(this, e, function(re) {
11368
11368
  var ve = re.id();
11369
- return X[ve];
11369
+ return H[ve];
11370
11370
  }), this;
11371
11371
  };
11372
11372
  var As, ny = {
@@ -11521,7 +11521,7 @@ var iy = function(e, r, a) {
11521
11521
  }
11522
11522
  for (var f = 0; f < o.nodeSize; f++) {
11523
11523
  var d = i[f], p = d.layoutDimensions(a), g = {};
11524
- g.isLocked = d.locked(), g.id = d.data("id"), g.parentId = d.data("parent"), g.cmptId = l[d.id()], g.children = [], g.positionX = d.position("x"), g.positionY = d.position("y"), g.offsetX = 0, g.offsetY = 0, g.height = p.w, g.width = p.h, g.maxX = g.positionX + g.width / 2, g.minX = g.positionX - g.width / 2, g.maxY = g.positionY + g.height / 2, g.minY = g.positionY - g.height / 2, g.padLeft = parseFloat(d.style("padding")), g.padRight = parseFloat(d.style("padding")), g.padTop = parseFloat(d.style("padding")), g.padBottom = parseFloat(d.style("padding")), g.nodeRepulsion = Xe(a.nodeRepulsion) ? a.nodeRepulsion(d) : a.nodeRepulsion, o.layoutNodes.push(g), o.idToIndex[g.id] = f;
11524
+ g.isLocked = d.locked(), g.id = d.data("id"), g.parentId = d.data("parent"), g.cmptId = l[d.id()], g.children = [], g.positionX = d.position("x"), g.positionY = d.position("y"), g.offsetX = 0, g.offsetY = 0, g.height = p.w, g.width = p.h, g.maxX = g.positionX + g.width / 2, g.minX = g.positionX - g.width / 2, g.maxY = g.positionY + g.height / 2, g.minY = g.positionY - g.height / 2, g.padLeft = parseFloat(d.style("padding")), g.padRight = parseFloat(d.style("padding")), g.padTop = parseFloat(d.style("padding")), g.padBottom = parseFloat(d.style("padding")), g.nodeRepulsion = He(a.nodeRepulsion) ? a.nodeRepulsion(d) : a.nodeRepulsion, o.layoutNodes.push(g), o.idToIndex[g.id] = f;
11525
11525
  }
11526
11526
  for (var y = [], b = 0, m = -1, E = [], f = 0; f < o.nodeSize; f++) {
11527
11527
  var d = o.layoutNodes[f], T = d.parentId;
@@ -11543,7 +11543,7 @@ var iy = function(e, r, a) {
11543
11543
  for (var f = 0; f < o.edgeSize; f++) {
11544
11544
  var A = n[f], L = {};
11545
11545
  L.id = A.data("id"), L.sourceId = A.data("source"), L.targetId = A.data("target");
11546
- var R = Xe(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, P = Xe(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11546
+ var R = He(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, P = He(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11547
11547
  if (O != k) {
11548
11548
  for (var B = sy(L.sourceId, L.targetId, o), _ = o.graphSet[B], F = 0, g = o.layoutNodes[M]; _.indexOf(g.id) === -1; )
11549
11549
  g = o.layoutNodes[o.idToIndex[g.parentId]], F++;
@@ -11817,23 +11817,23 @@ Cc.prototype.run = function() {
11817
11817
  h: r.height()
11818
11818
  });
11819
11819
  if (i.h === 0 || i.w === 0)
11820
- a.nodes().layoutPositions(this, e, function(H) {
11820
+ a.nodes().layoutPositions(this, e, function(Y) {
11821
11821
  return {
11822
11822
  x: i.x1,
11823
11823
  y: i.y1
11824
11824
  };
11825
11825
  });
11826
11826
  else {
11827
- var s = n.size(), o = Math.sqrt(s * i.h / i.w), u = Math.round(o), l = Math.round(i.w / i.h * o), f = function(Y) {
11828
- if (Y == null)
11827
+ var s = n.size(), o = Math.sqrt(s * i.h / i.w), u = Math.round(o), l = Math.round(i.w / i.h * o), f = function($) {
11828
+ if ($ == null)
11829
11829
  return Math.min(u, l);
11830
- var X = Math.min(u, l);
11831
- X == u ? u = Y : l = Y;
11832
- }, c = function(Y) {
11833
- if (Y == null)
11830
+ var H = Math.min(u, l);
11831
+ H == u ? u = $ : l = $;
11832
+ }, c = function($) {
11833
+ if ($ == null)
11834
11834
  return Math.max(u, l);
11835
- var X = Math.max(u, l);
11836
- X == u ? u = Y : l = Y;
11835
+ var H = Math.max(u, l);
11836
+ H == u ? u = $ : l = $;
11837
11837
  }, v = e.rows, h = e.cols != null ? e.cols : e.columns;
11838
11838
  if (v != null && h != null)
11839
11839
  u = v, l = h;
@@ -11857,10 +11857,10 @@ Cc.prototype.run = function() {
11857
11857
  var w = T.layoutDimensions(e), x = e.avoidOverlapPadding, C = w.w + x, D = w.h + x;
11858
11858
  b = Math.max(b, C), m = Math.max(m, D);
11859
11859
  }
11860
- for (var A = {}, L = function(Y, X) {
11861
- return !!A["c-" + Y + "-" + X];
11862
- }, R = function(Y, X) {
11863
- A["c-" + Y + "-" + X] = !0;
11860
+ for (var A = {}, L = function($, H) {
11861
+ return !!A["c-" + $ + "-" + H];
11862
+ }, R = function($, H) {
11863
+ A["c-" + $ + "-" + H] = !0;
11864
11864
  }, P = 0, M = 0, N = function() {
11865
11865
  M++, M >= l && (M = 0, P++);
11866
11866
  }, O = {}, k = 0; k < n.length; k++) {
@@ -11879,11 +11879,11 @@ Cc.prototype.run = function() {
11879
11879
  O[B.id()] = F, R(F.row, F.col);
11880
11880
  }
11881
11881
  }
11882
- var G = function(Y, X) {
11882
+ var G = function($, H) {
11883
11883
  var W, ee;
11884
- if (Y.locked() || Y.isParent())
11884
+ if ($.locked() || $.isParent())
11885
11885
  return !1;
11886
- var ae = O[Y.id()];
11886
+ var ae = O[$.id()];
11887
11887
  if (ae)
11888
11888
  W = ae.col * b + b / 2 + i.x1, ee = ae.row * m + m / 2 + i.y1;
11889
11889
  else {
@@ -11959,7 +11959,7 @@ function Dc(t) {
11959
11959
  this.options = be({}, Ey, t);
11960
11960
  }
11961
11961
  Dc.prototype.run = function() {
11962
- var t = this.options, e = t.eles, r = e.nodes(), a = Xe(t.positions);
11962
+ var t = this.options, e = t.eles, r = e.nodes(), a = He(t.positions);
11963
11963
  function n(i) {
11964
11964
  if (t.positions == null)
11965
11965
  return qh(i.position());
@@ -12304,14 +12304,14 @@ Br.findNearestElements = function(t, e, r, a) {
12304
12304
  y: C.midY,
12305
12305
  angle: C.midtgtArrowAngle
12306
12306
  }], O = 0; O < F.length; O++) {
12307
- var G = F[O], H = i.arrowShapes[w.pstyle(G.name + "-arrow-shape").value], Y = w.pstyle("width").pfValue;
12308
- if (H.roughCollide(t, e, _, G.angle, {
12307
+ var G = F[O], Y = i.arrowShapes[w.pstyle(G.name + "-arrow-shape").value], $ = w.pstyle("width").pfValue;
12308
+ if (Y.roughCollide(t, e, _, G.angle, {
12309
12309
  x: G.x,
12310
12310
  y: G.y
12311
- }, Y, f) && H.collide(t, e, _, G.angle, {
12311
+ }, $, f) && Y.collide(t, e, _, G.angle, {
12312
12312
  x: G.x,
12313
12313
  y: G.y
12314
- }, Y, f))
12314
+ }, $, f))
12315
12315
  return g(w), !0;
12316
12316
  }
12317
12317
  l && o.length > 0 && (y(k), y(B));
@@ -12324,14 +12324,14 @@ Br.findNearestElements = function(t, e, r, a) {
12324
12324
  x ? A = x + "-" : A = "", w.boundingBox();
12325
12325
  var L = C.labelBounds[x || "main"], R = w.pstyle(A + "label").value, P = w.pstyle("text-events").strValue === "yes";
12326
12326
  if (!(!P || !R)) {
12327
- var M = m(C.rscratch, "labelX", x), N = m(C.rscratch, "labelY", x), O = m(C.rscratch, "labelAngle", x), k = w.pstyle(A + "text-margin-x").pfValue, B = w.pstyle(A + "text-margin-y").pfValue, _ = L.x1 - D - k, F = L.x2 + D - k, G = L.y1 - D - B, H = L.y2 + D - B;
12327
+ var M = m(C.rscratch, "labelX", x), N = m(C.rscratch, "labelY", x), O = m(C.rscratch, "labelAngle", x), k = w.pstyle(A + "text-margin-x").pfValue, B = w.pstyle(A + "text-margin-y").pfValue, _ = L.x1 - D - k, F = L.x2 + D - k, G = L.y1 - D - B, Y = L.y2 + D - B;
12328
12328
  if (O) {
12329
- var Y = Math.cos(O), X = Math.sin(O), W = function(Z, re) {
12329
+ var $ = Math.cos(O), H = Math.sin(O), W = function(Z, re) {
12330
12330
  return Z = Z - M, re = re - N, {
12331
- x: Z * Y - re * X + M,
12332
- y: Z * X + re * Y + N
12331
+ x: Z * $ - re * H + M,
12332
+ y: Z * H + re * $ + N
12333
12333
  };
12334
- }, ee = W(_, G), ae = W(_, H), J = W(F, G), z = W(F, H), V = [
12334
+ }, ee = W(_, G), ae = W(_, Y), J = W(F, G), z = W(F, Y), V = [
12335
12335
  // with the margin added after the rotation is applied
12336
12336
  ee.x + k,
12337
12337
  ee.y + B,
@@ -12480,23 +12480,23 @@ Br.getAllInBox = function(t, e, r, a) {
12480
12480
  if (O.startX != null && O.startY != null && O.endX != null && O.endY != null && (sr(v, O.startX, O.startY) || sr(v, O.endX, O.endY)))
12481
12481
  o.push(M), G = !0;
12482
12482
  else if (!G && O.edgeType === "haystack") {
12483
- for (var H = N.rstyle.haystackPts, Y = 0; Y < H.length; Y++)
12484
- if (nu(v, H[Y])) {
12483
+ for (var Y = N.rstyle.haystackPts, $ = 0; $ < Y.length; $++)
12484
+ if (nu(v, Y[$])) {
12485
12485
  o.push(M), G = !0;
12486
12486
  break;
12487
12487
  }
12488
12488
  }
12489
12489
  if (!G) {
12490
- var X = N.rstyle.bezierPts || N.rstyle.linePts || N.rstyle.haystackPts;
12491
- if ((!X || X.length < 2) && O.edgeType === "straight" && O.startX != null && O.startY != null && O.endX != null && O.endY != null && (X = [{
12490
+ var H = N.rstyle.bezierPts || N.rstyle.linePts || N.rstyle.haystackPts;
12491
+ if ((!H || H.length < 2) && O.edgeType === "straight" && O.startX != null && O.startY != null && O.endX != null && O.endY != null && (H = [{
12492
12492
  x: O.startX,
12493
12493
  y: O.startY
12494
12494
  }, {
12495
12495
  x: O.endX,
12496
12496
  y: O.endY
12497
- }]), !X || X.length < 2) continue;
12498
- for (var W = 0; W < X.length - 1; W++) {
12499
- for (var ee = X[W], ae = X[W + 1], J = 0; J < d.length; J++) {
12497
+ }]), !H || H.length < 2) continue;
12498
+ for (var W = 0; W < H.length - 1; W++) {
12499
+ for (var ee = H[W], ae = H[W + 1], J = 0; J < d.length; J++) {
12500
12500
  var z = Je(d[J], 2), V = z[0], q = z[1];
12501
12501
  if (y(ee, ae, V, q)) {
12502
12502
  o.push(M), G = !0;
@@ -12567,16 +12567,16 @@ Bn.getArrowWidth = Bn.getArrowHeight = function(t, e) {
12567
12567
  var r = this.arrowWidthCache = this.arrowWidthCache || {}, a = r[t + ", " + e];
12568
12568
  return a || (a = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = a, a);
12569
12569
  };
12570
- var $s, Ws, Vt = {}, Pt = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12570
+ var Xs, Ws, Vt = {}, Pt = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12571
12571
  a.x = r.x - e.x, a.y = r.y - e.y, a.len = Math.sqrt(a.x * a.x + a.y * a.y), a.nx = a.x / a.len, a.ny = a.y / a.len, a.ang = Math.atan2(a.ny, a.nx);
12572
12572
  }, Cy = function(e, r) {
12573
12573
  r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang;
12574
12574
  }, Dy = function(e, r, a, n, i) {
12575
12575
  if (e !== Ul ? ql(r, e, Vt) : Cy(Pt, Vt), ql(r, a, Pt), zl = Vt.nx * Pt.ny - Vt.ny * Pt.nx, Vl = Vt.nx * Pt.nx - Vt.ny * -Pt.ny, Wt = Math.asin(Math.max(-1, Math.min(1, zl))), Math.abs(Wt) < 1e-6) {
12576
- $s = r.x, Ws = r.y, Sr = qr = 0;
12576
+ Xs = r.x, Ws = r.y, Sr = qr = 0;
12577
12577
  return;
12578
12578
  }
12579
- Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, Pt.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + Pt.nx * Gt, Zs = r.y + Pt.ny * Gt, $s = Ks - Pt.ny * Sr * Lr, Ws = Zs + Pt.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12579
+ Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, Pt.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + Pt.nx * Gt, Zs = r.y + Pt.ny * Gt, Xs = Ks - Pt.ny * Sr * Lr, Ws = Zs + Pt.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12580
12580
  };
12581
12581
  function Pc(t, e) {
12582
12582
  e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise);
@@ -12595,7 +12595,7 @@ function So(t, e, r, a) {
12595
12595
  endAngle: void 0,
12596
12596
  counterClockwise: void 0
12597
12597
  } : (Dy(t, e, r, a, n), {
12598
- cx: $s,
12598
+ cx: Xs,
12599
12599
  cy: Ws,
12600
12600
  radius: Sr,
12601
12601
  startX: Lc,
@@ -12725,12 +12725,12 @@ mt.findTaxiPoints = function(t, e) {
12725
12725
  var G = T < 0 ? 1 + T : T;
12726
12726
  F = G * O;
12727
12727
  } else {
12728
- var H = T < 0 ? O : 0;
12729
- F = H + T * B;
12728
+ var Y = T < 0 ? O : 0;
12729
+ F = Y + T * B;
12730
12730
  }
12731
- var Y = function(I) {
12731
+ var $ = function(I) {
12732
12732
  return Math.abs(I) < w || Math.abs(I) >= Math.abs(O);
12733
- }, X = Y(F), W = Y(Math.abs(O) - Math.abs(F)), ee = X || W;
12733
+ }, H = $(F), W = $(Math.abs(O) - Math.abs(F)), ee = H || W;
12734
12734
  if (ee && !_)
12735
12735
  if (N) {
12736
12736
  var ae = Math.abs(k) <= v / 2, J = Math.abs(D) <= h / 2;
@@ -12917,7 +12917,7 @@ mt.findEdgeControlPoints = function(t) {
12917
12917
  var B = O;
12918
12918
  O = k, k = B;
12919
12919
  }
12920
- var _ = R.srcPos = O.position(), F = R.tgtPos = k.position(), G = R.srcW = O.outerWidth(), H = R.srcH = O.outerHeight(), Y = R.tgtW = k.outerWidth(), X = R.tgtH = k.outerHeight(), W = R.srcShape = r.nodeShapes[e.getNodeShape(O)], ee = R.tgtShape = r.nodeShapes[e.getNodeShape(k)], ae = R.srcCornerRadius = O.pstyle("corner-radius").value === "auto" ? "auto" : O.pstyle("corner-radius").pfValue, J = R.tgtCornerRadius = k.pstyle("corner-radius").value === "auto" ? "auto" : k.pstyle("corner-radius").pfValue, z = R.tgtRs = k._private.rscratch, V = R.srcRs = O._private.rscratch;
12920
+ var _ = R.srcPos = O.position(), F = R.tgtPos = k.position(), G = R.srcW = O.outerWidth(), Y = R.srcH = O.outerHeight(), $ = R.tgtW = k.outerWidth(), H = R.tgtH = k.outerHeight(), W = R.srcShape = r.nodeShapes[e.getNodeShape(O)], ee = R.tgtShape = r.nodeShapes[e.getNodeShape(k)], ae = R.srcCornerRadius = O.pstyle("corner-radius").value === "auto" ? "auto" : O.pstyle("corner-radius").pfValue, J = R.tgtCornerRadius = k.pstyle("corner-radius").value === "auto" ? "auto" : k.pstyle("corner-radius").pfValue, z = R.tgtRs = k._private.rscratch, V = R.srcRs = O._private.rscratch;
12921
12921
  R.dirCounts = {
12922
12922
  north: 0,
12923
12923
  west: 0,
@@ -12932,7 +12932,7 @@ mt.findEdgeControlPoints = function(t) {
12932
12932
  var Z = R.eles[q], re = Z[0]._private.rscratch, ve = Z.pstyle("curve-style").value, Pe = ve === "unbundled-bezier" || ir(ve, "segments") || ir(ve, "taxi"), Te = !O.same(Z.source());
12933
12933
  if (!R.calculatedIntersection && O !== k && (R.hasBezier || R.hasUnbundled)) {
12934
12934
  R.calculatedIntersection = !0;
12935
- var we = W.intersectLine(_.x, _.y, G, H, F.x, F.y, 0, ae, V), ye = R.srcIntn = we, ie = ee.intersectLine(F.x, F.y, Y, X, _.x, _.y, 0, J, z), he = R.tgtIntn = ie, de = R.intersectionPts = {
12935
+ var we = W.intersectLine(_.x, _.y, G, Y, F.x, F.y, 0, ae, V), ye = R.srcIntn = we, ie = ee.intersectLine(F.x, F.y, $, H, _.x, _.y, 0, J, z), he = R.tgtIntn = ie, de = R.intersectionPts = {
12936
12936
  x1: we[0],
12937
12937
  x2: ie[0],
12938
12938
  y1: we[1],
@@ -12954,7 +12954,7 @@ mt.findEdgeControlPoints = function(t) {
12954
12954
  x: -Be.y,
12955
12955
  y: Be.x
12956
12956
  };
12957
- R.nodesOverlap = !ne(Ie) || ee.checkPoint(we[0], we[1], 0, Y, X, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, H, _.x, _.y, ae, V), R.vectorNormInverse = Fe, P = {
12957
+ R.nodesOverlap = !ne(Ie) || ee.checkPoint(we[0], we[1], 0, $, H, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, Y, _.x, _.y, ae, V), R.vectorNormInverse = Fe, P = {
12958
12958
  nodesOverlap: R.nodesOverlap,
12959
12959
  dirCounts: R.dirCounts,
12960
12960
  calculatedIntersection: !0,
@@ -12965,10 +12965,10 @@ mt.findEdgeControlPoints = function(t) {
12965
12965
  srcRs: z,
12966
12966
  tgtPos: _,
12967
12967
  tgtRs: V,
12968
- srcW: Y,
12969
- srcH: X,
12968
+ srcW: $,
12969
+ srcH: H,
12970
12970
  tgtW: G,
12971
- tgtH: H,
12971
+ tgtH: Y,
12972
12972
  srcIntn: he,
12973
12973
  tgtIntn: ye,
12974
12974
  srcShape: ee,
@@ -13041,8 +13041,8 @@ mt.getEdgeMidpoint = function(t) {
13041
13041
  y: e.midY
13042
13042
  };
13043
13043
  };
13044
- var Ha = {};
13045
- Ha.manualEndptToPx = function(t, e) {
13044
+ var Ya = {};
13045
+ Ya.manualEndptToPx = function(t, e) {
13046
13046
  var r = this, a = t.position(), n = t.outerWidth(), i = t.outerHeight(), s = t._private.rscratch;
13047
13047
  if (e.value.length === 2) {
13048
13048
  var o = [e.pfValue[0], e.pfValue[1]];
@@ -13054,15 +13054,15 @@ Ha.manualEndptToPx = function(t, e) {
13054
13054
  return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x, a.y, n, i, f[0], f[1], 0, t.pstyle("corner-radius").value === "auto" ? "auto" : t.pstyle("corner-radius").pfValue, s);
13055
13055
  }
13056
13056
  };
13057
- Ha.findEndpoints = function(t) {
13057
+ Ya.findEndpoints = function(t) {
13058
13058
  var e, r, a, n, i = this, s, o = t.source()[0], u = t.target()[0], l = o.position(), f = u.position(), c = t.pstyle("target-arrow-shape").value, v = t.pstyle("source-arrow-shape").value, h = t.pstyle("target-distance-from-node").pfValue, d = t.pstyle("source-distance-from-node").pfValue, p = o._private.rscratch, g = u._private.rscratch, y = t.pstyle("curve-style").value, b = t._private.rscratch, m = b.edgeType, E = ir(y, "taxi"), T = m === "self" || m === "compound", S = m === "bezier" || m === "multibezier" || T, w = m !== "bezier", x = m === "straight" || m === "segments", C = m === "segments", D = S || w || x, A = T || E, L = t.pstyle("source-endpoint"), R = A ? "outside-to-node" : L.value, P = o.pstyle("corner-radius").value === "auto" ? "auto" : o.pstyle("corner-radius").pfValue, M = t.pstyle("target-endpoint"), N = A ? "outside-to-node" : M.value, O = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue;
13059
13059
  b.srcManEndpt = L, b.tgtManEndpt = M;
13060
- var k, B, _, F, G = (e = (M == null || (r = M.pfValue) === null || r === void 0 ? void 0 : r.length) === 2 ? M.pfValue : null) !== null && e !== void 0 ? e : [0, 0], H = (a = (L == null || (n = L.pfValue) === null || n === void 0 ? void 0 : n.length) === 2 ? L.pfValue : null) !== null && a !== void 0 ? a : [0, 0];
13060
+ var k, B, _, F, G = (e = (M == null || (r = M.pfValue) === null || r === void 0 ? void 0 : r.length) === 2 ? M.pfValue : null) !== null && e !== void 0 ? e : [0, 0], Y = (a = (L == null || (n = L.pfValue) === null || n === void 0 ? void 0 : n.length) === 2 ? L.pfValue : null) !== null && a !== void 0 ? a : [0, 0];
13061
13061
  if (S) {
13062
- var Y = [b.ctrlpts[0], b.ctrlpts[1]], X = w ? [b.ctrlpts[b.ctrlpts.length - 2], b.ctrlpts[b.ctrlpts.length - 1]] : Y;
13063
- k = X, B = Y;
13062
+ var $ = [b.ctrlpts[0], b.ctrlpts[1]], H = w ? [b.ctrlpts[b.ctrlpts.length - 2], b.ctrlpts[b.ctrlpts.length - 1]] : $;
13063
+ k = H, B = $;
13064
13064
  } else if (x) {
13065
- var W = C ? b.segpts.slice(0, 2) : [f.x + G[0], f.y + G[1]], ee = C ? b.segpts.slice(b.segpts.length - 2) : [l.x + H[0], l.y + H[1]];
13065
+ var W = C ? b.segpts.slice(0, 2) : [f.x + G[0], f.y + G[1]], ee = C ? b.segpts.slice(b.segpts.length - 2) : [l.x + Y[0], l.y + Y[1]];
13066
13066
  k = ee, B = W;
13067
13067
  }
13068
13068
  if (N === "inside-to-node")
@@ -13102,9 +13102,9 @@ Ha.findEndpoints = function(t) {
13102
13102
  I === "left" ? Be -= Ee : I === "right" && (Be += Ee);
13103
13103
  var U = Pa(F[0], F[1], [Be - Ee, Fe - ue, Be + Ee, Fe - ue, Be + Ee, Fe + ue, Be - Ee, Fe + ue], l.x, l.y);
13104
13104
  if (U.length > 0) {
13105
- var $ = f, K = Dr($, Wr(s)), j = Dr($, Wr(U)), oe = K;
13105
+ var X = f, K = Dr(X, Wr(s)), j = Dr(X, Wr(U)), oe = K;
13106
13106
  if (j < K && (s = [U[0], U[1]], oe = j), U.length > 2) {
13107
- var te = Dr($, {
13107
+ var te = Dr(X, {
13108
13108
  x: U[2],
13109
13109
  y: U[3]
13110
13110
  });
@@ -13115,7 +13115,7 @@ Ha.findEndpoints = function(t) {
13115
13115
  var fe = ja(s, B, i.arrowShapes[v].spacing(t) + d), le = ja(s, B, i.arrowShapes[v].gap(t) + d);
13116
13116
  b.startX = le[0], b.startY = le[1], b.arrowStartX = fe[0], b.arrowStartY = fe[1], D && (!ne(b.startX) || !ne(b.startY) || !ne(b.endX) || !ne(b.endY) ? b.badLine = !0 : b.badLine = !1);
13117
13117
  };
13118
- Ha.getSourceEndpoint = function(t) {
13118
+ Ya.getSourceEndpoint = function(t) {
13119
13119
  var e = t[0]._private.rscratch;
13120
13120
  switch (this.recalculateRenderedStyle(t), e.edgeType) {
13121
13121
  case "haystack":
@@ -13130,7 +13130,7 @@ Ha.getSourceEndpoint = function(t) {
13130
13130
  };
13131
13131
  }
13132
13132
  };
13133
- Ha.getTargetEndpoint = function(t) {
13133
+ Ya.getTargetEndpoint = function(t) {
13134
13134
  var e = t[0]._private.rscratch;
13135
13135
  switch (this.recalculateRenderedStyle(t), e.edgeType) {
13136
13136
  case "haystack":
@@ -13184,8 +13184,8 @@ Ao.storeEdgeProjections = function(t) {
13184
13184
  Ao.recalculateEdgeProjections = function(t) {
13185
13185
  this.findEdgeControlPoints(t);
13186
13186
  };
13187
- var Yt = {};
13188
- Yt.recalculateNodeLabelProjection = function(t) {
13187
+ var $t = {};
13188
+ $t.recalculateNodeLabelProjection = function(t) {
13189
13189
  var e = t.pstyle("label").strValue;
13190
13190
  if (!fr(e)) {
13191
13191
  var r, a, n = t._private, i = t.width(), s = t.height(), o = t.padding(), u = t.position(), l = t.pstyle("text-halign").strValue, f = t.pstyle("text-valign").strValue, c = n.rscratch, v = n.rstyle;
@@ -13222,7 +13222,7 @@ var Mc = function(e, r) {
13222
13222
  var i = Ra(0, n - 1e-3, 1), s = Ra(0, n + 1e-3, 1), o = Qr(e, r, a, i), u = Qr(e, r, a, s);
13223
13223
  return Oc(o, u);
13224
13224
  };
13225
- Yt.recalculateEdgeLabelProjections = function(t) {
13225
+ $t.recalculateEdgeLabelProjections = function(t) {
13226
13226
  var e, r = t._private, a = r.rscratch, n = this, i = {
13227
13227
  mid: t.pstyle("label").strValue,
13228
13228
  source: t.pstyle("source-label").strValue,
@@ -13337,10 +13337,10 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13337
13337
  l("source"), l("target"), this.applyLabelDimensions(t);
13338
13338
  }
13339
13339
  };
13340
- Yt.applyLabelDimensions = function(t) {
13340
+ $t.applyLabelDimensions = function(t) {
13341
13341
  this.applyPrefixedLabelDimensions(t), t.isEdge() && (this.applyPrefixedLabelDimensions(t, "source"), this.applyPrefixedLabelDimensions(t, "target"));
13342
13342
  };
13343
- Yt.applyPrefixedLabelDimensions = function(t, e) {
13343
+ $t.applyPrefixedLabelDimensions = function(t, e) {
13344
13344
  var r = t._private, a = this.getLabelText(t, e), n = Pr(a, t._private.labelDimsKey);
13345
13345
  if (Dt(r.rscratch, "prefixedLabelDimsKey", e) !== n) {
13346
13346
  Kt(r.rscratch, "prefixedLabelDimsKey", e, n);
@@ -13348,9 +13348,9 @@ Yt.applyPrefixedLabelDimensions = function(t, e) {
13348
13348
  Kt(r.rstyle, "labelWidth", e, v), Kt(r.rscratch, "labelWidth", e, v), Kt(r.rstyle, "labelHeight", e, h), Kt(r.rscratch, "labelHeight", e, h), Kt(r.rscratch, "labelLineHeight", e, c);
13349
13349
  }
13350
13350
  };
13351
- Yt.getLabelText = function(t, e) {
13352
- var r = t._private, a = e ? e + "-" : "", n = t.pstyle(a + "label").strValue, i = t.pstyle("text-transform").value, s = function(H, Y) {
13353
- return Y ? (Kt(r.rscratch, H, e, Y), Y) : Dt(r.rscratch, H, e);
13351
+ $t.getLabelText = function(t, e) {
13352
+ var r = t._private, a = e ? e + "-" : "", n = t.pstyle(a + "label").strValue, i = t.pstyle("text-transform").value, s = function(Y, $) {
13353
+ return $ ? (Kt(r.rscratch, Y, e, $), $) : Dt(r.rscratch, Y, e);
13354
13354
  };
13355
13355
  if (!n)
13356
13356
  return "";
@@ -13401,7 +13401,7 @@ Yt.getLabelText = function(t, e) {
13401
13401
  }
13402
13402
  return n;
13403
13403
  };
13404
- Yt.getLabelJustification = function(t) {
13404
+ $t.getLabelJustification = function(t) {
13405
13405
  var e = t.pstyle("text-justification").strValue, r = t.pstyle("text-halign").strValue;
13406
13406
  if (e === "auto")
13407
13407
  if (t.isNode())
@@ -13418,7 +13418,7 @@ Yt.getLabelJustification = function(t) {
13418
13418
  else
13419
13419
  return e;
13420
13420
  };
13421
- Yt.calculateLabelDimensions = function(t, e) {
13421
+ $t.calculateLabelDimensions = function(t, e) {
13422
13422
  var r = this, a = r.cy.window(), n = a.document, i = 0, s = t.pstyle("font-style").strValue, o = t.pstyle("font-size").pfValue, u = t.pstyle("font-family").strValue, l = t.pstyle("font-weight").strValue, f = this.labelCalcCanvas, c = this.labelCalcCanvasContext;
13423
13423
  if (!f) {
13424
13424
  f = this.labelCalcCanvas = n.createElement("canvas"), c = this.labelCalcCanvasContext = f.getContext("2d");
@@ -13436,19 +13436,19 @@ Yt.calculateLabelDimensions = function(t, e) {
13436
13436
  height: d
13437
13437
  };
13438
13438
  };
13439
- Yt.calculateLabelAngle = function(t, e) {
13439
+ $t.calculateLabelAngle = function(t, e) {
13440
13440
  var r = t._private, a = r.rscratch, n = t.isEdge(), i = e ? e + "-" : "", s = t.pstyle(i + "text-rotation"), o = s.strValue;
13441
13441
  return o === "none" ? 0 : n && o === "autorotate" ? a.labelAutoAngle : o === "autorotate" ? 0 : s.pfValue;
13442
13442
  };
13443
- Yt.calculateLabelAngles = function(t) {
13443
+ $t.calculateLabelAngles = function(t) {
13444
13444
  var e = this, r = t.isEdge(), a = t._private, n = a.rscratch;
13445
13445
  n.labelAngle = e.calculateLabelAngle(t), r && (n.sourceLabelAngle = e.calculateLabelAngle(t, "source"), n.targetLabelAngle = e.calculateLabelAngle(t, "target"));
13446
13446
  };
13447
- var kc = {}, Yl = 28, Hl = !1;
13447
+ var kc = {}, $l = 28, Yl = !1;
13448
13448
  kc.getNodeShape = function(t) {
13449
13449
  var e = this, r = t.pstyle("shape").value;
13450
- if (r === "cutrectangle" && (t.width() < Yl || t.height() < Yl))
13451
- return Hl || (Ge("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), Hl = !0), "rectangle";
13450
+ if (r === "cutrectangle" && (t.width() < $l || t.height() < $l))
13451
+ return Yl || (Ge("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), Yl = !0), "rectangle";
13452
13452
  if (t.isParent())
13453
13453
  return r === "rectangle" || r === "roundrectangle" || r === "round-rectangle" || r === "cutrectangle" || r === "cut-rectangle" || r === "barrel" ? r : "rectangle";
13454
13454
  if (r === "polygon") {
@@ -13553,7 +13553,7 @@ ai.getCachedZSortedEles = function(t) {
13553
13553
  return e;
13554
13554
  };
13555
13555
  var Nc = {};
13556
- [Br, Bn, mt, Ha, Ao, Yt, kc, ri, ai].forEach(function(t) {
13556
+ [Br, Bn, mt, Ya, Ao, $t, kc, ri, ai].forEach(function(t) {
13557
13557
  be(Nc, t);
13558
13558
  });
13559
13559
  var Bc = {};
@@ -13631,12 +13631,12 @@ ua.load = function() {
13631
13631
  var U = I.getRootNode();
13632
13632
  if (U && U.nodeType === 11 && U.host !== void 0)
13633
13633
  return U;
13634
- }, n = function(I, U, $, K) {
13634
+ }, n = function(I, U, X, K) {
13635
13635
  I == null && (I = t.cy);
13636
13636
  for (var j = 0; j < U.length; j++) {
13637
13637
  var oe = U[j];
13638
13638
  I.emit({
13639
- originalEvent: $,
13639
+ originalEvent: X,
13640
13640
  type: oe,
13641
13641
  position: K
13642
13642
  });
@@ -13644,18 +13644,18 @@ ua.load = function() {
13644
13644
  }, i = function(I) {
13645
13645
  return I.shiftKey || I.metaKey || I.ctrlKey;
13646
13646
  }, s = function(I, U) {
13647
- var $ = !0;
13647
+ var X = !0;
13648
13648
  if (t.cy.hasCompoundNodes() && I && I.pannable())
13649
13649
  for (var K = 0; U && K < U.length; K++) {
13650
13650
  var I = U[K];
13651
13651
  if (I.isNode() && I.isParent() && !I.pannable()) {
13652
- $ = !1;
13652
+ X = !1;
13653
13653
  break;
13654
13654
  }
13655
13655
  }
13656
13656
  else
13657
- $ = !0;
13658
- return $;
13657
+ X = !0;
13658
+ return X;
13659
13659
  }, o = function(I) {
13660
13660
  I[0]._private.grabbed = !0;
13661
13661
  }, u = function(I) {
@@ -13669,18 +13669,18 @@ ua.load = function() {
13669
13669
  }, v = function(I) {
13670
13670
  I[0]._private.rscratch.isGrabTarget = !1;
13671
13671
  }, h = function(I, U) {
13672
- var $ = U.addToList, K = $.has(I);
13673
- !K && I.grabbable() && !I.locked() && ($.merge(I), o(I));
13672
+ var X = U.addToList, K = X.has(I);
13673
+ !K && I.grabbable() && !I.locked() && (X.merge(I), o(I));
13674
13674
  }, d = function(I, U) {
13675
13675
  if (I.cy().hasCompoundNodes() && !(U.inDragLayer == null && U.addToList == null)) {
13676
- var $ = I.descendants();
13677
- U.inDragLayer && ($.forEach(l), $.connectedEdges().forEach(l)), U.addToList && h($, U);
13676
+ var X = I.descendants();
13677
+ U.inDragLayer && (X.forEach(l), X.connectedEdges().forEach(l)), U.addToList && h(X, U);
13678
13678
  }
13679
13679
  }, p = function(I, U) {
13680
13680
  U = U || {};
13681
- var $ = I.cy().hasCompoundNodes();
13681
+ var X = I.cy().hasCompoundNodes();
13682
13682
  U.inDragLayer && (I.forEach(l), I.neighborhood().stdFilter(function(K) {
13683
- return !$ || K.isEdge();
13683
+ return !X || K.isEdge();
13684
13684
  }).forEach(l)), U.addToList && I.forEach(function(K) {
13685
13685
  h(K, U);
13686
13686
  }), d(I, U), b(I, {
@@ -13692,9 +13692,9 @@ ua.load = function() {
13692
13692
  }), t.updateCachedGrabbedEles());
13693
13693
  }, b = function(I, U) {
13694
13694
  if (!(U.inDragLayer == null && U.addToList == null) && I.cy().hasCompoundNodes()) {
13695
- var $ = I.ancestors().orphans();
13696
- if (!$.same(I)) {
13697
- var K = $.descendants().spawnSelf().merge($).unmerge(I).unmerge(I.descendants()), j = K.connectedEdges();
13695
+ var X = I.ancestors().orphans();
13696
+ if (!X.same(I)) {
13697
+ var K = X.descendants().spawnSelf().merge(X).unmerge(I).unmerge(I.descendants()), j = K.connectedEdges();
13698
13698
  U.inDragLayer && (j.forEach(l), K.forEach(l)), U.addToList && K.forEach(function(oe) {
13699
13699
  h(oe, U);
13700
13700
  });
@@ -13705,10 +13705,10 @@ ua.load = function() {
13705
13705
  }, E = typeof MutationObserver < "u", T = typeof ResizeObserver < "u";
13706
13706
  E ? (t.removeObserver = new MutationObserver(function(Q) {
13707
13707
  for (var I = 0; I < Q.length; I++) {
13708
- var U = Q[I], $ = U.removedNodes;
13709
- if ($)
13710
- for (var K = 0; K < $.length; K++) {
13711
- var j = $[K];
13708
+ var U = Q[I], X = U.removedNodes;
13709
+ if (X)
13710
+ for (var K = 0; K < X.length; K++) {
13711
+ var j = X[K];
13712
13712
  if (j === t.container) {
13713
13713
  t.destroy();
13714
13714
  break;
@@ -13740,9 +13740,9 @@ ua.load = function() {
13740
13740
  var C = function() {
13741
13741
  return t.selection[4] !== 0;
13742
13742
  }, D = function(I) {
13743
- for (var U = t.findContainerClientCoords(), $ = U[0], K = U[1], j = U[2], oe = U[3], te = I.touches ? I.touches : [I], fe = !1, le = 0; le < te.length; le++) {
13743
+ for (var U = t.findContainerClientCoords(), X = U[0], K = U[1], j = U[2], oe = U[3], te = I.touches ? I.touches : [I], fe = !1, le = 0; le < te.length; le++) {
13744
13744
  var me = te[le];
13745
- if ($ <= me.clientX && me.clientX <= $ + j && K <= me.clientY && me.clientY <= K + oe) {
13745
+ if (X <= me.clientX && me.clientX <= X + j && K <= me.clientY && me.clientY <= K + oe) {
13746
13746
  fe = !0;
13747
13747
  break;
13748
13748
  }
@@ -13761,8 +13761,8 @@ ua.load = function() {
13761
13761
  t.registerBinding(t.container, "mousedown", function(I) {
13762
13762
  if (D(I) && !(t.hoverData.which === 1 && I.which !== 1)) {
13763
13763
  I.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = I.which;
13764
- var U = t.cy, $ = [I.clientX, I.clientY], K = t.projectIntoViewport($[0], $[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13765
- t.hoverData.mdownPos = K, t.hoverData.mdownGPos = $;
13764
+ var U = t.cy, X = [I.clientX, I.clientY], K = t.projectIntoViewport(X[0], X[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13765
+ t.hoverData.mdownPos = K, t.hoverData.mdownGPos = X;
13766
13766
  var le = function(Le) {
13767
13767
  return {
13768
13768
  originalEvent: I,
@@ -13830,11 +13830,11 @@ ua.load = function() {
13830
13830
  t.registerBinding([e, A], "mousemove", function(I) {
13831
13831
  var U = t.hoverData.capture;
13832
13832
  if (!(!U && !D(I))) {
13833
- var $ = !1, K = t.cy, j = K.zoom(), oe = [I.clientX, I.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13833
+ var X = !1, K = t.cy, j = K.zoom(), oe = [I.clientX, I.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13834
13834
  !t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Ae = t.findNearestElement(te[0], te[1], !0, !1));
13835
13835
  var Ce = t.hoverData.last, ce = t.hoverData.down, Re = [te[0] - me[2], te[1] - me[3]], Le = t.dragData.possibleDragElements, je;
13836
13836
  if (le) {
13837
- var $e = oe[0] - le[0], bt = $e * $e, Ke = oe[1] - le[1], st = Ke * Ke, et = bt + st;
13837
+ var Xe = oe[0] - le[0], bt = Xe * Xe, Ke = oe[1] - le[1], st = Ke * Ke, et = bt + st;
13838
13838
  t.hoverData.isOverThresholdDrag = je = et >= t.desktopTapThreshold2;
13839
13839
  }
13840
13840
  var ft = i(I);
@@ -13843,7 +13843,7 @@ ua.load = function() {
13843
13843
  var Rt = t.hoverData.dragDelta = t.hoverData.dragDelta || [];
13844
13844
  Rt.length === 0 ? (Rt.push(Re[0]), Rt.push(Re[1])) : (Rt[0] += Re[0], Rt[1] += Re[1]);
13845
13845
  };
13846
- $ = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], I, {
13846
+ X = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], I, {
13847
13847
  x: te[0],
13848
13848
  y: te[1]
13849
13849
  });
@@ -13856,16 +13856,16 @@ ua.load = function() {
13856
13856
  y: te[1]
13857
13857
  }
13858
13858
  };
13859
- }, Xt = function() {
13859
+ }, Ht = function() {
13860
13860
  t.data.bgActivePosistion = void 0, t.hoverData.selecting || K.emit(Ze("boxstart")), me[4] = 1, t.hoverData.selecting = !0, t.redrawHint("select", !0), t.redraw();
13861
13861
  };
13862
13862
  if (t.hoverData.which === 3) {
13863
13863
  if (je) {
13864
- var $t = Ze("cxtdrag");
13865
- ce ? ce.emit($t) : K.emit($t), t.hoverData.cxtDragged = !0, (!t.hoverData.cxtOver || Ae !== t.hoverData.cxtOver) && (t.hoverData.cxtOver && t.hoverData.cxtOver.emit(Ze("cxtdragout")), t.hoverData.cxtOver = Ae, Ae && Ae.emit(Ze("cxtdragover")));
13864
+ var Xt = Ze("cxtdrag");
13865
+ ce ? ce.emit(Xt) : K.emit(Xt), t.hoverData.cxtDragged = !0, (!t.hoverData.cxtOver || Ae !== t.hoverData.cxtOver) && (t.hoverData.cxtOver && t.hoverData.cxtOver.emit(Ze("cxtdragout")), t.hoverData.cxtOver = Ae, Ae && Ae.emit(Ze("cxtdragover")));
13866
13866
  }
13867
13867
  } else if (t.hoverData.dragging) {
13868
- if ($ = !0, K.panningEnabled() && K.userPanningEnabled()) {
13868
+ if (X = !0, K.panningEnabled() && K.userPanningEnabled()) {
13869
13869
  var _r;
13870
13870
  if (t.hoverData.justStartedPan) {
13871
13871
  var Wa = t.hoverData.mdownPos;
@@ -13884,7 +13884,7 @@ ua.load = function() {
13884
13884
  } else if (me[4] == 1 && (ce == null || ce.pannable())) {
13885
13885
  if (je) {
13886
13886
  if (!t.hoverData.dragging && K.boxSelectionEnabled() && (ft || !K.panningEnabled() || !K.userPanningEnabled()))
13887
- Xt();
13887
+ Ht();
13888
13888
  else if (!t.hoverData.selecting && K.panningEnabled() && K.userPanningEnabled()) {
13889
13889
  var xr = s(ce, t.hoverData.downs);
13890
13890
  xr && (t.hoverData.dragging = !0, t.hoverData.justStartedPan = !0, me[4] = 0, t.data.bgActivePosistion = Wr(fe), t.redrawHint("select", !0), t.redraw());
@@ -13901,7 +13901,7 @@ ua.load = function() {
13901
13901
  }), t.hoverData.last = Ae), ce)
13902
13902
  if (je) {
13903
13903
  if (K.boxSelectionEnabled() && ft)
13904
- ce && ce.grabbed() && (y(Le), ce.emit(Ze("freeon")), Le.emit(Ze("free")), t.dragData.didDrag && (ce.emit(Ze("dragfreeon")), Le.emit(Ze("dragfree")))), Xt();
13904
+ ce && ce.grabbed() && (y(Le), ce.emit(Ze("freeon")), Le.emit(Ze("free")), t.dragData.didDrag && (ce.emit(Ze("dragfreeon")), Le.emit(Ze("dragfree")))), Ht();
13905
13905
  else if (ce && ce.grabbed() && t.nodeIsDraggable(ce)) {
13906
13906
  var Tt = !t.dragData.didDrag;
13907
13907
  Tt && t.redrawHint("eles", !0), t.dragData.didDrag = !0, t.hoverData.draggingEles || p(Le, {
@@ -13919,9 +13919,9 @@ ua.load = function() {
13919
13919
  }
13920
13920
  } else
13921
13921
  tr();
13922
- $ = !0;
13922
+ X = !0;
13923
13923
  }
13924
- if (me[2] = te[0], me[3] = te[1], $)
13924
+ if (me[2] = te[0], me[3] = te[1], X)
13925
13925
  return I.stopPropagation && I.stopPropagation(), I.preventDefault && I.preventDefault(), !1;
13926
13926
  }
13927
13927
  }, !1);
@@ -13931,12 +13931,12 @@ ua.load = function() {
13931
13931
  var U = t.hoverData.capture;
13932
13932
  if (U) {
13933
13933
  t.hoverData.capture = !1;
13934
- var $ = t.cy, K = t.projectIntoViewport(I.clientX, I.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(I);
13934
+ var X = t.cy, K = t.projectIntoViewport(I.clientX, I.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(I);
13935
13935
  t.data.bgActivePosistion && (t.redrawHint("select", !0), t.redraw()), t.hoverData.tapholdCancelled = !0, t.data.bgActivePosistion = void 0, fe && fe.unactivate();
13936
- var me = function($e) {
13936
+ var me = function(Xe) {
13937
13937
  return {
13938
13938
  originalEvent: I,
13939
- type: $e,
13939
+ type: Xe,
13940
13940
  position: {
13941
13941
  x: K[0],
13942
13942
  y: K[1]
@@ -13945,9 +13945,9 @@ ua.load = function() {
13945
13945
  };
13946
13946
  if (t.hoverData.which === 3) {
13947
13947
  var Ae = me("cxttapend");
13948
- if (fe ? fe.emit(Ae) : $.emit(Ae), !t.hoverData.cxtDragged) {
13948
+ if (fe ? fe.emit(Ae) : X.emit(Ae), !t.hoverData.cxtDragged) {
13949
13949
  var Ce = me("cxttap");
13950
- fe ? fe.emit(Ce) : $.emit(Ce);
13950
+ fe ? fe.emit(Ce) : X.emit(Ce);
13951
13951
  }
13952
13952
  t.hoverData.cxtDragged = !1, t.hoverData.which = null;
13953
13953
  } else if (t.hoverData.which === 1) {
@@ -13960,7 +13960,7 @@ ua.load = function() {
13960
13960
  !t.hoverData.isOverThresholdDrag && (n(fe, ["click", "tap", "vclick"], I, {
13961
13961
  x: K[0],
13962
13962
  y: K[1]
13963
- }), R = !1, I.timeStamp - P <= $.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, P = null, n(fe, ["dblclick", "dbltap", "vdblclick"], I, {
13963
+ }), R = !1, I.timeStamp - P <= X.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, P = null, n(fe, ["dblclick", "dbltap", "vdblclick"], I, {
13964
13964
  x: K[0],
13965
13965
  y: K[1]
13966
13966
  })) : (L = setTimeout(function() {
@@ -13968,13 +13968,13 @@ ua.load = function() {
13968
13968
  x: K[0],
13969
13969
  y: K[1]
13970
13970
  });
13971
- }, $.multiClickDebounceTime()), P = I.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(I) && ($.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = $.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || ($.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || ($.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13972
- var ce = $.collection(t.getAllInBox(j[0], j[1], j[2], j[3]));
13973
- t.redrawHint("select", !0), ce.length > 0 && t.redrawHint("eles", !0), $.emit(me("boxend"));
13974
- var Re = function($e) {
13975
- return $e.selectable() && !$e.selected();
13971
+ }, X.multiClickDebounceTime()), P = I.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(I) && (X.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = X.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || (X.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || (X.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13972
+ var ce = X.collection(t.getAllInBox(j[0], j[1], j[2], j[3]));
13973
+ t.redrawHint("select", !0), ce.length > 0 && t.redrawHint("eles", !0), X.emit(me("boxend"));
13974
+ var Re = function(Xe) {
13975
+ return Xe.selectable() && !Xe.selected();
13976
13976
  };
13977
- $.selectionType() === "additive" || le || $.$(r).unmerge(ce).unselect(), ce.emit(me("box")).stdFilter(Re).select().emit(me("boxselect")), t.redraw();
13977
+ X.selectionType() === "additive" || le || X.$(r).unmerge(ce).unselect(), ce.emit(me("box")).stdFilter(Re).select().emit(me("boxselect")), t.redraw();
13978
13978
  }
13979
13979
  if (t.hoverData.dragging && (t.hoverData.dragging = !1, t.redrawHint("select", !0), t.redrawHint("eles", !0), t.redraw()), !j[4]) {
13980
13980
  t.redrawHint("drag", !0), t.redrawHint("eles", !0);
@@ -13987,18 +13987,18 @@ ua.load = function() {
13987
13987
  }
13988
13988
  }, !1);
13989
13989
  var M = [], N = 4, O, k = 1e5, B = function(I, U) {
13990
- for (var $ = 0; $ < I.length; $++)
13991
- if (I[$] % U !== 0)
13990
+ for (var X = 0; X < I.length; X++)
13991
+ if (I[X] % U !== 0)
13992
13992
  return !1;
13993
13993
  return !0;
13994
13994
  }, _ = function(I) {
13995
- for (var U = Math.abs(I[0]), $ = 1; $ < I.length; $++)
13996
- if (Math.abs(I[$]) !== U)
13995
+ for (var U = Math.abs(I[0]), X = 1; X < I.length; X++)
13996
+ if (Math.abs(I[X]) !== U)
13997
13997
  return !1;
13998
13998
  return !0;
13999
13999
  }, F = function(I) {
14000
- var U = !1, $ = I.deltaY;
14001
- if ($ == null && (I.wheelDeltaY != null ? $ = I.wheelDeltaY / 4 : I.wheelDelta != null && ($ = I.wheelDelta / 4)), $ !== 0) {
14000
+ var U = !1, X = I.deltaY;
14001
+ if (X == null && (I.wheelDeltaY != null ? X = I.wheelDeltaY / 4 : I.wheelDelta != null && (X = I.wheelDelta / 4)), X !== 0) {
14002
14002
  if (O == null)
14003
14003
  if (M.length >= N) {
14004
14004
  var K = M;
@@ -14010,8 +14010,8 @@ ua.load = function() {
14010
14010
  for (var oe = 0; oe < K.length; oe++)
14011
14011
  k = Math.min(Math.abs(K[oe]), k);
14012
14012
  } else
14013
- M.push($), U = !0;
14014
- else O && (k = Math.min(Math.abs($), k));
14013
+ M.push(X), U = !0;
14014
+ else O && (k = Math.min(Math.abs(X), k));
14015
14015
  if (!t.scrollingPage) {
14016
14016
  var te = t.cy, fe = te.zoom(), le = te.pan(), me = t.projectIntoViewport(I.clientX, I.clientY), Ae = [me[0] * fe + le.x, me[1] * fe + le.y];
14017
14017
  if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || C()) {
@@ -14023,7 +14023,7 @@ ua.load = function() {
14023
14023
  t.data.wheelZooming = !1, t.redrawHint("eles", !0), t.redraw();
14024
14024
  }, 150);
14025
14025
  var Ce;
14026
- U && Math.abs($) > 5 && ($ = vo($) * 5), Ce = $ / -250, O && (Ce /= k, Ce *= 3), Ce = Ce * t.wheelSensitivity;
14026
+ U && Math.abs(X) > 5 && (X = vo(X) * 5), Ce = X / -250, O && (Ce /= k, Ce *= 3), Ce = Ce * t.wheelSensitivity;
14027
14027
  var ce = I.deltaMode === 1;
14028
14028
  ce && (Ce *= 33);
14029
14029
  var Re = te.zoom() * Math.pow(10, Ce);
@@ -14074,46 +14074,46 @@ ua.load = function() {
14074
14074
  }
14075
14075
  });
14076
14076
  }, !1);
14077
- var G, H, Y, X, W, ee, ae, J, z, V, q, Z, re, ve = function(I, U, $, K) {
14078
- return Math.sqrt(($ - I) * ($ - I) + (K - U) * (K - U));
14079
- }, Pe = function(I, U, $, K) {
14080
- return ($ - I) * ($ - I) + (K - U) * (K - U);
14077
+ var G, Y, $, H, W, ee, ae, J, z, V, q, Z, re, ve = function(I, U, X, K) {
14078
+ return Math.sqrt((X - I) * (X - I) + (K - U) * (K - U));
14079
+ }, Pe = function(I, U, X, K) {
14080
+ return (X - I) * (X - I) + (K - U) * (K - U);
14081
14081
  }, Te;
14082
14082
  t.registerBinding(t.container, "touchstart", Te = function(I) {
14083
14083
  if (t.hasTouchStarted = !0, !!D(I)) {
14084
14084
  m(), t.touchData.capture = !0, t.data.bgActivePosistion = void 0;
14085
- var U = t.cy, $ = t.touchData.now, K = t.touchData.earlier;
14085
+ var U = t.cy, X = t.touchData.now, K = t.touchData.earlier;
14086
14086
  if (I.touches[0]) {
14087
14087
  var j = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14088
- $[0] = j[0], $[1] = j[1];
14088
+ X[0] = j[0], X[1] = j[1];
14089
14089
  }
14090
14090
  if (I.touches[1]) {
14091
14091
  var j = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14092
- $[2] = j[0], $[3] = j[1];
14092
+ X[2] = j[0], X[3] = j[1];
14093
14093
  }
14094
14094
  if (I.touches[2]) {
14095
14095
  var j = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14096
- $[4] = j[0], $[5] = j[1];
14096
+ X[4] = j[0], X[5] = j[1];
14097
14097
  }
14098
14098
  var oe = function(ft) {
14099
14099
  return {
14100
14100
  originalEvent: I,
14101
14101
  type: ft,
14102
14102
  position: {
14103
- x: $[0],
14104
- y: $[1]
14103
+ x: X[0],
14104
+ y: X[1]
14105
14105
  }
14106
14106
  };
14107
14107
  };
14108
14108
  if (I.touches[1]) {
14109
14109
  t.touchData.singleTouchMoved = !0, y(t.dragData.touchDragEles);
14110
14110
  var te = t.findContainerClientCoords();
14111
- z = te[0], V = te[1], q = te[2], Z = te[3], G = I.touches[0].clientX - z, H = I.touches[0].clientY - V, Y = I.touches[1].clientX - z, X = I.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= Y && Y <= q && 0 <= H && H <= Z && 0 <= X && X <= Z;
14111
+ z = te[0], V = te[1], q = te[2], Z = te[3], G = I.touches[0].clientX - z, Y = I.touches[0].clientY - V, $ = I.touches[1].clientX - z, H = I.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= $ && $ <= q && 0 <= Y && Y <= Z && 0 <= H && H <= Z;
14112
14112
  var fe = U.pan(), le = U.zoom();
14113
- W = ve(G, H, Y, X), ee = Pe(G, H, Y, X), ae = [(G + Y) / 2, (H + X) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14113
+ W = ve(G, Y, $, H), ee = Pe(G, Y, $, H), ae = [(G + $) / 2, (Y + H) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14114
14114
  var me = 200, Ae = me * me;
14115
14115
  if (ee < Ae && !I.touches[2]) {
14116
- var Ce = t.findNearestElement($[0], $[1], !0, !0), ce = t.findNearestElement($[2], $[3], !0, !0);
14116
+ var Ce = t.findNearestElement(X[0], X[1], !0, !0), ce = t.findNearestElement(X[2], X[3], !0, !0);
14117
14117
  Ce && Ce.isNode() ? (Ce.activate().emit(oe("cxttapstart")), t.touchData.start = Ce) : ce && ce.isNode() ? (ce.activate().emit(oe("cxttapstart")), t.touchData.start = ce) : U.emit(oe("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
14118
14118
  return;
14119
14119
  }
@@ -14122,36 +14122,36 @@ ua.load = function() {
14122
14122
  U.boxSelectionEnabled() && I.preventDefault();
14123
14123
  else if (!I.touches[1]) {
14124
14124
  if (I.touches[0]) {
14125
- var Re = t.findNearestElements($[0], $[1], !0, !0), Le = Re[0];
14125
+ var Re = t.findNearestElements(X[0], X[1], !0, !0), Le = Re[0];
14126
14126
  if (Le != null && (Le.activate(), t.touchData.start = Le, t.touchData.starts = Re, t.nodeIsGrabbable(Le))) {
14127
- var je = t.dragData.touchDragEles = U.collection(), $e = null;
14128
- t.redrawHint("eles", !0), t.redrawHint("drag", !0), Le.selected() ? ($e = U.$(function(et) {
14127
+ var je = t.dragData.touchDragEles = U.collection(), Xe = null;
14128
+ t.redrawHint("eles", !0), t.redrawHint("drag", !0), Le.selected() ? (Xe = U.$(function(et) {
14129
14129
  return et.selected() && t.nodeIsGrabbable(et);
14130
- }), p($e, {
14130
+ }), p(Xe, {
14131
14131
  addToList: je
14132
14132
  })) : g(Le, {
14133
14133
  addToList: je
14134
- }), c(Le), Le.emit(oe("grabon")), $e ? $e.forEach(function(et) {
14134
+ }), c(Le), Le.emit(oe("grabon")), Xe ? Xe.forEach(function(et) {
14135
14135
  et.emit(oe("grab"));
14136
14136
  }) : Le.emit(oe("grab"));
14137
14137
  }
14138
14138
  n(Le, ["touchstart", "tapstart", "vmousedown"], I, {
14139
- x: $[0],
14140
- y: $[1]
14139
+ x: X[0],
14140
+ y: X[1]
14141
14141
  }), Le == null && (t.data.bgActivePosistion = {
14142
14142
  x: j[0],
14143
14143
  y: j[1]
14144
14144
  }, t.redrawHint("select", !0), t.redraw()), t.touchData.singleTouchMoved = !1, t.touchData.singleTouchStartTime = +/* @__PURE__ */ new Date(), clearTimeout(t.touchData.tapholdTimeout), t.touchData.tapholdTimeout = setTimeout(function() {
14145
14145
  t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && n(t.touchData.start, ["taphold"], I, {
14146
- x: $[0],
14147
- y: $[1]
14146
+ x: X[0],
14147
+ y: X[1]
14148
14148
  });
14149
14149
  }, t.tapholdDuration);
14150
14150
  }
14151
14151
  }
14152
14152
  if (I.touches.length >= 1) {
14153
- for (var bt = t.touchData.startPosition = [null, null, null, null, null, null], Ke = 0; Ke < $.length; Ke++)
14154
- bt[Ke] = K[Ke] = $[Ke];
14153
+ for (var bt = t.touchData.startPosition = [null, null, null, null, null, null], Ke = 0; Ke < X.length; Ke++)
14154
+ bt[Ke] = K[Ke] = X[Ke];
14155
14155
  var st = I.touches[0];
14156
14156
  t.touchData.startGPosition = [st.clientX, st.clientY];
14157
14157
  }
@@ -14161,7 +14161,7 @@ ua.load = function() {
14161
14161
  t.registerBinding(e, "touchmove", we = function(I) {
14162
14162
  var U = t.touchData.capture;
14163
14163
  if (!(!U && !D(I))) {
14164
- var $ = t.selection, K = t.cy, j = t.touchData.now, oe = t.touchData.earlier, te = K.zoom();
14164
+ var X = t.selection, K = t.cy, j = t.touchData.now, oe = t.touchData.earlier, te = K.zoom();
14165
14165
  if (I.touches[0]) {
14166
14166
  var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14167
14167
  j[0] = fe[0], j[1] = fe[1];
@@ -14187,13 +14187,13 @@ ua.load = function() {
14187
14187
  if (U && I.touches[0] && me) {
14188
14188
  for (var Ce = [], ce = 0; ce < j.length; ce++)
14189
14189
  Ce[ce] = j[ce] - oe[ce];
14190
- var Re = I.touches[0].clientX - me[0], Le = Re * Re, je = I.touches[0].clientY - me[1], $e = je * je, bt = Le + $e;
14190
+ var Re = I.touches[0].clientX - me[0], Le = Re * Re, je = I.touches[0].clientY - me[1], Xe = je * je, bt = Le + Xe;
14191
14191
  Ae = bt >= t.touchTapThreshold2;
14192
14192
  }
14193
14193
  if (U && t.touchData.cxt) {
14194
14194
  I.preventDefault();
14195
- var Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, tr = Pe(Ke, st, et, ft), Ze = tr / ee, Xt = 150, $t = Xt * Xt, _r = 1.5, Wa = _r * _r;
14196
- if (Ze >= Wa || tr >= $t) {
14195
+ var Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, tr = Pe(Ke, st, et, ft), Ze = tr / ee, Ht = 150, Xt = Ht * Ht, _r = 1.5, Wa = _r * _r;
14196
+ if (Ze >= Wa || tr >= Xt) {
14197
14197
  t.touchData.cxt = !1, t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14198
14198
  var xr = le("cxttapend");
14199
14199
  t.touchData.start ? (t.touchData.start.unactivate().emit(xr), t.touchData.start = null) : K.emit(xr);
@@ -14205,7 +14205,7 @@ ua.load = function() {
14205
14205
  var Tt = t.findNearestElement(j[0], j[1], !0, !0);
14206
14206
  (!t.touchData.cxtOver || Tt !== t.touchData.cxtOver) && (t.touchData.cxtOver && t.touchData.cxtOver.emit(le("cxtdragout")), t.touchData.cxtOver = Tt, Tt && Tt.emit(le("cxtdragover")));
14207
14207
  } else if (U && I.touches[2] && K.boxSelectionEnabled())
14208
- I.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, $[4] = 1, !$ || $.length === 0 || $[0] === void 0 ? ($[0] = (j[0] + j[2] + j[4]) / 3, $[1] = (j[1] + j[3] + j[5]) / 3, $[2] = (j[0] + j[2] + j[4]) / 3 + 1, $[3] = (j[1] + j[3] + j[5]) / 3 + 1) : ($[2] = (j[0] + j[2] + j[4]) / 3, $[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14208
+ I.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, X[4] = 1, !X || X.length === 0 || X[0] === void 0 ? (X[0] = (j[0] + j[2] + j[4]) / 3, X[1] = (j[1] + j[3] + j[5]) / 3, X[2] = (j[0] + j[2] + j[4]) / 3 + 1, X[3] = (j[1] + j[3] + j[5]) / 3 + 1) : (X[2] = (j[0] + j[2] + j[4]) / 3, X[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14209
14209
  else if (U && I.touches[1] && !t.touchData.didSelect && K.zoomingEnabled() && K.panningEnabled() && K.userZoomingEnabled() && K.userPanningEnabled()) {
14210
14210
  I.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14211
14211
  var gt = t.dragData.touchDragEles;
@@ -14218,7 +14218,7 @@ ua.load = function() {
14218
14218
  }
14219
14219
  var Rt = t.touchData.start, Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, Io = ve(Ke, st, et, ft), ov = Io / W;
14220
14220
  if (re) {
14221
- var uv = Ke - G, lv = st - H, fv = et - Y, cv = ft - X, vv = (uv + fv) / 2, hv = (lv + cv) / 2, ca = K.zoom(), ni = ca * ov, Ka = K.pan(), Mo = J[0] * ca + Ka.x, Oo = J[1] * ca + Ka.y, dv = {
14221
+ var uv = Ke - G, lv = st - Y, fv = et - $, cv = ft - H, vv = (uv + fv) / 2, hv = (lv + cv) / 2, ca = K.zoom(), ni = ca * ov, Ka = K.pan(), Mo = J[0] * ca + Ka.x, Oo = J[1] * ca + Ka.y, dv = {
14222
14222
  x: -ni / ca * (Mo - Ka.x - vv) + Mo,
14223
14223
  y: -ni / ca * (Oo - Ka.y - hv) + Oo
14224
14224
  };
@@ -14230,7 +14230,7 @@ ua.load = function() {
14230
14230
  zoom: ni,
14231
14231
  pan: dv,
14232
14232
  cancelOnFailedZoom: !0
14233
- }), K.emit(le("pinchzoom")), W = Io, G = Ke, H = st, Y = et, X = ft, t.pinching = !0;
14233
+ }), K.emit(le("pinchzoom")), W = Io, G = Ke, Y = st, $ = et, H = ft, t.pinching = !0;
14234
14234
  }
14235
14235
  if (I.touches[0]) {
14236
14236
  var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
@@ -14297,8 +14297,8 @@ ua.load = function() {
14297
14297
  });
14298
14298
  var ie, he, de, xe;
14299
14299
  if (t.registerBinding(e, "touchend", ie = function(I) {
14300
- var U = t.touchData.start, $ = t.touchData.capture;
14301
- if ($)
14300
+ var U = t.touchData.start, X = t.touchData.capture;
14301
+ if (X)
14302
14302
  I.touches.length === 0 && (t.touchData.capture = !1), I.preventDefault();
14303
14303
  else
14304
14304
  return;
@@ -14317,10 +14317,10 @@ ua.load = function() {
14317
14317
  var le = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14318
14318
  te[4] = le[0], te[5] = le[1];
14319
14319
  }
14320
- var me = function($t) {
14320
+ var me = function(Xt) {
14321
14321
  return {
14322
14322
  originalEvent: I,
14323
- type: $t,
14323
+ type: Xt,
14324
14324
  position: {
14325
14325
  x: te[0],
14326
14326
  y: te[1]
@@ -14341,8 +14341,8 @@ ua.load = function() {
14341
14341
  t.touchData.selecting = !1;
14342
14342
  var ce = j.collection(t.getAllInBox(K[0], K[1], K[2], K[3]));
14343
14343
  K[0] = void 0, K[1] = void 0, K[2] = void 0, K[3] = void 0, K[4] = 0, t.redrawHint("select", !0), j.emit(me("boxend"));
14344
- var Re = function($t) {
14345
- return $t.selectable() && !$t.selected();
14344
+ var Re = function(Xt) {
14345
+ return Xt.selectable() && !Xt.selected();
14346
14346
  };
14347
14347
  ce.emit(me("box")).stdFilter(Re).select().emit(me("boxselect")), ce.nonempty() && t.redrawHint("eles", !0), t.redraw();
14348
14348
  }
@@ -14360,8 +14360,8 @@ ua.load = function() {
14360
14360
  y: te[1]
14361
14361
  }), U.unactivate(), t.touchData.start = null;
14362
14362
  } else {
14363
- var $e = t.findNearestElement(te[0], te[1], !0, !0);
14364
- n($e, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14363
+ var Xe = t.findNearestElement(te[0], te[1], !0, !0);
14364
+ n(Xe, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14365
14365
  x: te[0],
14366
14366
  y: te[1]
14367
14367
  });
@@ -14409,15 +14409,15 @@ ua.load = function() {
14409
14409
  pe.push(Ie(I));
14410
14410
  }, Be = function(I) {
14411
14411
  for (var U = 0; U < pe.length; U++) {
14412
- var $ = pe[U];
14413
- if ($.event.pointerId === I.pointerId) {
14412
+ var X = pe[U];
14413
+ if (X.event.pointerId === I.pointerId) {
14414
14414
  pe.splice(U, 1);
14415
14415
  return;
14416
14416
  }
14417
14417
  }
14418
14418
  }, Fe = function(I) {
14419
- var U = pe.filter(function($) {
14420
- return $.event.pointerId === I.pointerId;
14419
+ var U = pe.filter(function(X) {
14420
+ return X.event.pointerId === I.pointerId;
14421
14421
  })[0];
14422
14422
  U.event = I, U.touch = De(I);
14423
14423
  }, Ee = function(I) {
@@ -14614,8 +14614,8 @@ jt.generateBarrel = function() {
14614
14614
  for (var v = this.generateBarrelBezierPts(n, i, s, o), h = function(x, C, D) {
14615
14615
  var A = D[4], L = D[2], R = D[0], P = D[5], M = D[1], N = Math.min(A, R), O = Math.max(A, R), k = Math.min(P, M), B = Math.max(P, M);
14616
14616
  if (N <= x && x <= O && k <= C && C <= B) {
14617
- var _ = hd(A, L, R), F = id(_[0], _[1], _[2], x), G = F.filter(function(H) {
14618
- return 0 <= H && H <= 1;
14617
+ var _ = hd(A, L, R), F = id(_[0], _[1], _[2], x), G = F.filter(function(Y) {
14618
+ return 0 <= Y && Y <= 1;
14619
14619
  });
14620
14620
  if (G.length > 0)
14621
14621
  return G[0];
@@ -14682,18 +14682,18 @@ jt.registerNodeShapes = function() {
14682
14682
  return (v = this[c]) ? v : e.generatePolygon(c, l);
14683
14683
  };
14684
14684
  };
14685
- var Xa = {};
14686
- Xa.timeToRender = function() {
14685
+ var Ha = {};
14686
+ Ha.timeToRender = function() {
14687
14687
  return this.redrawTotalTime / this.redrawCount;
14688
14688
  };
14689
- Xa.redraw = function(t) {
14689
+ Ha.redraw = function(t) {
14690
14690
  t = t || If();
14691
14691
  var e = this;
14692
14692
  e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t;
14693
14693
  };
14694
- Xa.beforeRender = function(t, e) {
14694
+ Ha.beforeRender = function(t, e) {
14695
14695
  if (!this.destroyed) {
14696
- e == null && He("Priority is not optional for beforeRender");
14696
+ e == null && Ye("Priority is not optional for beforeRender");
14697
14697
  var r = this.beforeRenderCallbacks;
14698
14698
  r.push({
14699
14699
  fn: t,
@@ -14703,18 +14703,18 @@ Xa.beforeRender = function(t, e) {
14703
14703
  });
14704
14704
  }
14705
14705
  };
14706
- var Xl = function(e, r, a) {
14706
+ var Hl = function(e, r, a) {
14707
14707
  for (var n = e.beforeRenderCallbacks, i = 0; i < n.length; i++)
14708
14708
  n[i].fn(r, a);
14709
14709
  };
14710
- Xa.startRenderLoop = function() {
14710
+ Ha.startRenderLoop = function() {
14711
14711
  var t = this, e = t.cy;
14712
14712
  if (!t.renderLoopStarted) {
14713
14713
  t.renderLoopStarted = !0;
14714
14714
  var r = function(n) {
14715
14715
  if (!t.destroyed) {
14716
14716
  if (!e.batching()) if (t.requestedFrame && !t.skipFrame) {
14717
- Xl(t, !0, n);
14717
+ Hl(t, !0, n);
14718
14718
  var i = Qt();
14719
14719
  t.render(t.renderOptions);
14720
14720
  var s = t.lastDrawTime = Qt();
@@ -14722,7 +14722,7 @@ Xa.startRenderLoop = function() {
14722
14722
  var o = s - i;
14723
14723
  t.redrawTotalTime += o, t.lastRedrawTime = o, t.averageRedrawTime = t.averageRedrawTime / 2 + o / 2, t.requestedFrame = !1;
14724
14724
  } else
14725
- Xl(t, !1, n);
14725
+ Hl(t, !1, n);
14726
14726
  t.skipFrame = !1, Ln(r);
14727
14727
  }
14728
14728
  };
@@ -14804,7 +14804,7 @@ la.destroy = function() {
14804
14804
  la.isHeadless = function() {
14805
14805
  return !1;
14806
14806
  };
14807
- [Do, Nc, Bc, ua, jt, Xa].forEach(function(t) {
14807
+ [Do, Nc, Bc, ua, jt, Ha].forEach(function(t) {
14808
14808
  be(la, t);
14809
14809
  });
14810
14810
  var Ls = 1e3 / 60, _c = {
@@ -14849,7 +14849,7 @@ var Ls = 1e3 / 60, _c = {
14849
14849
  return mr(t, [{
14850
14850
  key: "getIdsFor",
14851
14851
  value: function(r) {
14852
- r == null && He("Can not get id list for null key");
14852
+ r == null && Ye("Can not get id list for null key");
14853
14853
  var a = this.idsByKey, n = this.idsByKey.get(r);
14854
14854
  return n || (n = new na(), a.set(r, n)), n;
14855
14855
  }
@@ -14965,11 +14965,11 @@ var Ls = 1e3 / 60, _c = {
14965
14965
  return i && this.invalidateKey(n), i || this.getNumberOfIdsForKey(n) === 0;
14966
14966
  }
14967
14967
  }]);
14968
- })(), $l = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Iy = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14968
+ })(), Xl = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Iy = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14969
14969
  dequeue: "dequeue",
14970
14970
  downscale: "downscale",
14971
14971
  highQuality: "highQuality"
14972
- }, Yy = ht({
14972
+ }, $y = ht({
14973
14973
  getKey: null,
14974
14974
  doesEleInvalidateKey: Rn,
14975
14975
  drawElement: null,
@@ -14982,7 +14982,7 @@ var Ls = 1e3 / 60, _c = {
14982
14982
  }), xa = function(e, r) {
14983
14983
  var a = this;
14984
14984
  a.renderer = e, a.onDequeues = [];
14985
- var n = Yy(r);
14985
+ var n = $y(r);
14986
14986
  be(a, n), a.lookup = new Py(n.getKey, n.doesEleInvalidateKey), a.setupDequeueing();
14987
14987
  }, it = xa.prototype;
14988
14988
  it.reasons = Zr;
@@ -15019,7 +15019,7 @@ it.getElement = function(t, e, r, a, n) {
15019
15019
  if (h && h.invalidated && (h.invalidated = !1, h.texture.invalidatedWidth -= h.width), h)
15020
15020
  return h;
15021
15021
  var d;
15022
- if (f <= $l ? d = $l : f <= un ? d = un : d = Math.ceil(f / un) * un, f > ky || c > Oy)
15022
+ if (f <= Xl ? d = Xl : f <= un ? d = un : d = Math.ceil(f / un) * un, f > ky || c > Oy)
15023
15023
  return null;
15024
15024
  var p = i.getTextureQueue(d), g = p[p.length - 2], y = function() {
15025
15025
  return i.recycleTexture(d, c) || i.addTexture(d, c);
@@ -15182,7 +15182,7 @@ it.setupDequeueing = _c.setupDequeueing({
15182
15182
  return e.renderer.beforeRenderPriorities.eleTxrDeq;
15183
15183
  }
15184
15184
  });
15185
- var Hy = 1, Ca = -4, Fn = 2, Xy = 3.99, $y = 50, Wy = 50, Ky = 0.15, Zy = 0.1, Qy = 0.9, Jy = 0.9, jy = 1, Wl = 250, em = 4e3 * 4e3, Kl = 32767, tm = !0, zc = function(e) {
15185
+ var Yy = 1, Ca = -4, Fn = 2, Hy = 3.99, Xy = 50, Wy = 50, Ky = 0.15, Zy = 0.1, Qy = 0.9, Jy = 0.9, jy = 1, Wl = 250, em = 4e3 * 4e3, Kl = 32767, tm = !0, zc = function(e) {
15186
15186
  var r = this, a = r.renderer = e, n = a.cy;
15187
15187
  r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = Qt() - 2 * Wl, r.skipping = !1, r.eleTxrDeqs = n.collection(), r.scheduleElementRefinement = Va(function() {
15188
15188
  r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs);
@@ -15214,7 +15214,7 @@ dt.getLayers = function(t, e, r) {
15214
15214
  if (a.firstGet = !1, r == null) {
15215
15215
  if (r = Math.ceil(co(s * e)), r < Ca)
15216
15216
  r = Ca;
15217
- else if (s >= Xy || r > Fn)
15217
+ else if (s >= Hy || r > Fn)
15218
15218
  return null;
15219
15219
  }
15220
15220
  a.validateLayersElesOrdering(r, t);
@@ -15263,7 +15263,7 @@ dt.getLayers = function(t, e, r) {
15263
15263
  };
15264
15264
  if (a.skipping && !o)
15265
15265
  return null;
15266
- for (var y = null, b = t.length / Hy, m = !o, E = 0; E < t.length; E++) {
15266
+ for (var y = null, b = t.length / Yy, m = !o, E = 0; E < t.length; E++) {
15267
15267
  var T = t[E], S = T._private.rscratch, w = S.imgLayerCaches = S.imgLayerCaches || {}, x = w[r];
15268
15268
  if (x) {
15269
15269
  y = x;
@@ -15409,7 +15409,7 @@ dt.requestRedraw = Va(function() {
15409
15409
  t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw();
15410
15410
  }, 100);
15411
15411
  dt.setupDequeueing = _c.setupDequeueing({
15412
- deqRedrawThreshold: $y,
15412
+ deqRedrawThreshold: Xy,
15413
15413
  deqCost: Ky,
15414
15414
  deqAvgCost: Zy,
15415
15415
  deqNoDrawCost: Qy,
@@ -15474,20 +15474,20 @@ Vc.arrowShapeImpl = function(t) {
15474
15474
  circle: sm
15475
15475
  }))[t];
15476
15476
  };
15477
- var Ht = {};
15478
- Ht.drawElement = function(t, e, r, a, n, i) {
15477
+ var Yt = {};
15478
+ Yt.drawElement = function(t, e, r, a, n, i) {
15479
15479
  var s = this;
15480
15480
  e.isNode() ? s.drawNode(t, e, r, a, n, i) : s.drawEdge(t, e, r, a, n, i);
15481
15481
  };
15482
- Ht.drawElementOverlay = function(t, e) {
15482
+ Yt.drawElementOverlay = function(t, e) {
15483
15483
  var r = this;
15484
15484
  e.isNode() ? r.drawNodeOverlay(t, e) : r.drawEdgeOverlay(t, e);
15485
15485
  };
15486
- Ht.drawElementUnderlay = function(t, e) {
15486
+ Yt.drawElementUnderlay = function(t, e) {
15487
15487
  var r = this;
15488
15488
  e.isNode() ? r.drawNodeUnderlay(t, e) : r.drawEdgeUnderlay(t, e);
15489
15489
  };
15490
- Ht.drawCachedElementPortion = function(t, e, r, a, n, i, s, o) {
15490
+ Yt.drawCachedElementPortion = function(t, e, r, a, n, i, s, o) {
15491
15491
  var u = this, l = r.getBoundingBox(e);
15492
15492
  if (!(l.w === 0 || l.h === 0)) {
15493
15493
  var f = r.getElement(e, l, a, n, i);
@@ -15522,32 +15522,32 @@ var om = function() {
15522
15522
  }, Rs = function(e, r) {
15523
15523
  return r.pstyle("text-opacity").pfValue * r.effectiveOpacity();
15524
15524
  };
15525
- Ht.drawCachedElement = function(t, e, r, a, n, i) {
15525
+ Yt.drawCachedElement = function(t, e, r, a, n, i) {
15526
15526
  var s = this, o = s.data, u = o.eleTxrCache, l = o.lblTxrCache, f = o.slbTxrCache, c = o.tlbTxrCache, v = e.boundingBox(), h = i === !0 ? u.reasons.highQuality : null;
15527
15527
  if (!(v.w === 0 || v.h === 0 || !e.visible()) && (!a || ho(v, a))) {
15528
15528
  var d = e.isEdge(), p = e.element()._private.rscratch.badLine;
15529
15529
  s.drawElementUnderlay(t, e), s.drawCachedElementPortion(t, e, u, r, n, h, om, cm), (!d || !p) && s.drawCachedElementPortion(t, e, l, r, n, h, um, Rs), d && !p && (s.drawCachedElementPortion(t, e, f, r, n, h, lm, Rs), s.drawCachedElementPortion(t, e, c, r, n, h, fm, Rs)), s.drawElementOverlay(t, e);
15530
15530
  }
15531
15531
  };
15532
- Ht.drawElements = function(t, e) {
15532
+ Yt.drawElements = function(t, e) {
15533
15533
  for (var r = this, a = 0; a < e.length; a++) {
15534
15534
  var n = e[a];
15535
15535
  r.drawElement(t, n);
15536
15536
  }
15537
15537
  };
15538
- Ht.drawCachedElements = function(t, e, r, a) {
15538
+ Yt.drawCachedElements = function(t, e, r, a) {
15539
15539
  for (var n = this, i = 0; i < e.length; i++) {
15540
15540
  var s = e[i];
15541
15541
  n.drawCachedElement(t, s, r, a);
15542
15542
  }
15543
15543
  };
15544
- Ht.drawCachedNodes = function(t, e, r, a) {
15544
+ Yt.drawCachedNodes = function(t, e, r, a) {
15545
15545
  for (var n = this, i = 0; i < e.length; i++) {
15546
15546
  var s = e[i];
15547
15547
  s.isNode() && n.drawCachedElement(t, s, r, a);
15548
15548
  }
15549
15549
  };
15550
- Ht.drawLayeredElements = function(t, e, r, a) {
15550
+ Yt.drawLayeredElements = function(t, e, r, a) {
15551
15551
  var n = this, i = n.data.lyrTxrCache.getLayers(e, r);
15552
15552
  if (i)
15553
15553
  for (var s = 0; s < i.length; s++) {
@@ -15734,16 +15734,16 @@ Lo.drawInscribedImage = function(t, e, r, a, n) {
15734
15734
  B === "%" ? k += (y - A) * _ : k += _;
15735
15735
  var F = f(r, "background-offset-y", "units", a), G = f(r, "background-offset-y", "pfValue", a);
15736
15736
  F === "%" ? k += (y - A) * G : k += G, b.pathCache && (R -= o, k -= u, o = 0, u = 0);
15737
- var H = t.globalAlpha;
15737
+ var Y = t.globalAlpha;
15738
15738
  t.globalAlpha = T;
15739
- var Y = i.getImgSmoothing(t), X = !1;
15740
- if (S === "no" && Y ? (i.setImgSmoothing(t, !1), X = !0) : S === "yes" && !Y && (i.setImgSmoothing(t, !0), X = !0), v === "no-repeat")
15739
+ var $ = i.getImgSmoothing(t), H = !1;
15740
+ if (S === "no" && $ ? (i.setImgSmoothing(t, !1), H = !0) : S === "yes" && !$ && (i.setImgSmoothing(t, !0), H = !0), v === "no-repeat")
15741
15741
  E && (t.save(), b.pathCache ? t.clip(b.pathCache) : (i.nodeShapes[i.getNodeShape(r)].draw(t, o, u, g, y, w, b), t.clip())), i.safeDrawImage(t, e, 0, 0, x, C, R, k, D, A), E && t.restore();
15742
15742
  else {
15743
15743
  var W = t.createPattern(e, v);
15744
15744
  t.fillStyle = W, i.nodeShapes[i.getNodeShape(r)].draw(t, o, u, g, y, w, b), t.translate(R, k), t.fill(), t.translate(-R, -k);
15745
15745
  }
15746
- t.globalAlpha = H, X && i.setImgSmoothing(t, Y);
15746
+ t.globalAlpha = Y, H && i.setImgSmoothing(t, $);
15747
15747
  }
15748
15748
  };
15749
15749
  var Fr = {};
@@ -15838,7 +15838,7 @@ Fr.drawText = function(t, e, r) {
15838
15838
  G -= d / 2;
15839
15839
  break;
15840
15840
  }
15841
- var H = l - p - C, Y = d + 2 * C, X = p + 2 * C;
15841
+ var Y = l - p - C, $ = d + 2 * C, H = p + 2 * C;
15842
15842
  if (_ && (t.fillStyle = "rgba(".concat(O[0], ",").concat(O[1], ",").concat(O[2], ",").concat(S * o, ")")), F && (t.strokeStyle = "rgba(".concat(k[0], ",").concat(k[1], ",").concat(k[2], ",").concat(w * o, ")"), t.lineWidth = x, t.setLineDash))
15843
15843
  switch (B) {
15844
15844
  case "dotted":
@@ -15855,9 +15855,9 @@ Fr.drawText = function(t, e, r) {
15855
15855
  t.setLineDash([]);
15856
15856
  break;
15857
15857
  }
15858
- if (A ? (t.beginPath(), jl(t, G, H, Y, X, R)) : L ? (t.beginPath(), vm(t, G, H, Y, X)) : (t.beginPath(), t.rect(G, H, Y, X)), _ && t.fill(), F && t.stroke(), F && B === "double") {
15858
+ if (A ? (t.beginPath(), jl(t, G, Y, $, H, R)) : L ? (t.beginPath(), vm(t, G, Y, $, H)) : (t.beginPath(), t.rect(G, Y, $, H)), _ && t.fill(), F && t.stroke(), F && B === "double") {
15859
15859
  var W = x / 2;
15860
- t.beginPath(), A ? jl(t, G + W, H + W, Y - 2 * W, X - 2 * W, R) : t.rect(G + W, H + W, Y - 2 * W, X - 2 * W), t.stroke();
15860
+ t.beginPath(), A ? jl(t, G + W, Y + W, $ - 2 * W, H - 2 * W, R) : t.rect(G + W, Y + W, $ - 2 * W, H - 2 * W), t.stroke();
15861
15861
  }
15862
15862
  t.fillStyle = P, t.strokeStyle = M, t.lineWidth = N, t.setLineDash && t.setLineDash([]);
15863
15863
  }
@@ -15898,7 +15898,7 @@ wr.drawNode = function(t, e, r) {
15898
15898
  });
15899
15899
  }
15900
15900
  }
15901
- var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, P = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, H = e.pstyle("outline-color").value, Y = e.pstyle("outline-style").value, X = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15901
+ var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, P = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, Y = e.pstyle("outline-color").value, $ = e.pstyle("outline-style").value, H = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15902
15902
  ee !== "auto" && (ee = e.pstyle("corner-radius").pfValue);
15903
15903
  var ae = function() {
15904
15904
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : R;
@@ -15907,11 +15907,11 @@ wr.drawNode = function(t, e, r) {
15907
15907
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : F;
15908
15908
  s.colorStrokeStyle(t, P[0], P[1], P[2], ue);
15909
15909
  }, z = function() {
15910
- var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : X;
15911
- s.colorStrokeStyle(t, H[0], H[1], H[2], ue);
15910
+ var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : H;
15911
+ s.colorStrokeStyle(t, Y[0], Y[1], Y[2], ue);
15912
15912
  }, V = function(ue, Q, I, U) {
15913
- var $ = s.nodePathCache = s.nodePathCache || [], K = Af(I === "polygon" ? I + "," + U.join(",") : I, "" + Q, "" + ue, "" + ee), j = $[K], oe, te = !1;
15914
- return j != null ? (oe = j, te = !0, f.pathCache = oe) : (oe = new Path2D(), $[K] = f.pathCache = oe), {
15913
+ var X = s.nodePathCache = s.nodePathCache || [], K = Af(I === "polygon" ? I + "," + U.join(",") : I, "" + Q, "" + ue, "" + ee), j = X[K], oe, te = !1;
15914
+ return j != null ? (oe = j, te = !0, f.pathCache = oe) : (oe = new Path2D(), X[K] = f.pathCache = oe), {
15915
15915
  path: oe,
15916
15916
  cacheHit: te
15917
15917
  };
@@ -15931,13 +15931,13 @@ wr.drawNode = function(t, e, r) {
15931
15931
  }
15932
15932
  h ? t.fill(d) : t.fill();
15933
15933
  }, Pe = function() {
15934
- for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, I = l.backgrounding, U = 0, $ = 0; $ < T.length; $++) {
15935
- var K = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", $);
15934
+ for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, I = l.backgrounding, U = 0, X = 0; X < T.length; X++) {
15935
+ var K = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", X);
15936
15936
  if (Q && K === "over" || !Q && K === "inside") {
15937
15937
  U++;
15938
15938
  continue;
15939
15939
  }
15940
- E[$] && T[$].complete && !T[$].error && (U++, s.drawInscribedImage(t, T[$], e, $, ue));
15940
+ E[X] && T[X].complete && !T[X].error && (U++, s.drawInscribedImage(t, T[X], e, X, ue));
15941
15941
  }
15942
15942
  l.backgrounding = U !== S, I !== l.backgrounding && e.updateStyle(!1);
15943
15943
  }, Te = function() {
@@ -15984,7 +15984,7 @@ wr.drawNode = function(t, e, r) {
15984
15984
  }, he = function() {
15985
15985
  if (G > 0) {
15986
15986
  if (t.lineWidth = G, t.lineCap = "butt", t.setLineDash)
15987
- switch (Y) {
15987
+ switch ($) {
15988
15988
  case "dotted":
15989
15989
  t.setLineDash([1, 1]);
15990
15990
  break;
@@ -16003,7 +16003,7 @@ wr.drawNode = function(t, e, r) {
16003
16003
  });
16004
16004
  var Q = s.getNodeShape(e), I = L;
16005
16005
  k === "inside" && (I = 0), k === "outside" && (I *= 2);
16006
- var U = (o + I + (G + W)) / o, $ = (u + I + (G + W)) / u, K = o * U, j = u * $, oe = s.nodeShapes[Q].points, te;
16006
+ var U = (o + I + (G + W)) / o, X = (u + I + (G + W)) / u, K = o * U, j = u * X, oe = s.nodeShapes[Q].points, te;
16007
16007
  if (h) {
16008
16008
  var fe = V(K, j, Q, oe);
16009
16009
  te = fe.path;
@@ -16012,16 +16012,16 @@ wr.drawNode = function(t, e, r) {
16012
16012
  s.drawEllipsePath(te || t, ue.x, ue.y, K, j);
16013
16013
  else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(Q)) {
16014
16014
  var le = 0, me = 0, Ae = 0;
16015
- Q === "round-diamond" ? le = (I + W + G) * 1.4 : Q === "round-heptagon" ? (le = (I + W + G) * 1.075, Ae = -(I / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (I + W + G) * 1.12 : Q === "round-pentagon" ? (le = (I + W + G) * 1.13, Ae = -(I / 2 + W + G) / 15) : Q === "round-tag" ? (le = (I + W + G) * 1.12, me = (I / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (I + W + G) * (Math.PI / 2), Ae = -(I + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || ($ = (u + le) / u, j = u * $)), ee = ee === "auto" ? Ff(K, j) : ee;
16016
- for (var Ce = K / 2, ce = j / 2, Re = ee + (I + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), $e = 0; $e < oe.length / 2; $e++)
16017
- Le[$e] = {
16018
- x: ue.x + me + Ce * oe[$e * 2],
16019
- y: ue.y + Ae + ce * oe[$e * 2 + 1]
16015
+ Q === "round-diamond" ? le = (I + W + G) * 1.4 : Q === "round-heptagon" ? (le = (I + W + G) * 1.075, Ae = -(I / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (I + W + G) * 1.12 : Q === "round-pentagon" ? (le = (I + W + G) * 1.13, Ae = -(I / 2 + W + G) / 15) : Q === "round-tag" ? (le = (I + W + G) * 1.12, me = (I / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (I + W + G) * (Math.PI / 2), Ae = -(I + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || (X = (u + le) / u, j = u * X)), ee = ee === "auto" ? Ff(K, j) : ee;
16016
+ for (var Ce = K / 2, ce = j / 2, Re = ee + (I + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), Xe = 0; Xe < oe.length / 2; Xe++)
16017
+ Le[Xe] = {
16018
+ x: ue.x + me + Ce * oe[Xe * 2],
16019
+ y: ue.y + Ae + ce * oe[Xe * 2 + 1]
16020
16020
  };
16021
16021
  var bt, Ke, st, et, ft = Le.length;
16022
16022
  for (Ke = Le[ft - 1], bt = 0; bt < ft; bt++)
16023
16023
  st = Le[bt % ft], et = Le[(bt + 1) % ft], je[bt] = So(Ke, st, et, Re), Ke = st, st = et;
16024
- s.drawRoundPolygonPath(te || t, ue.x + me, ue.y + Ae, o * U, u * $, oe, je);
16024
+ s.drawRoundPolygonPath(te || t, ue.x + me, ue.y + Ae, o * U, u * X, oe, je);
16025
16025
  } else if (["roundrectangle", "round-rectangle"].includes(Q))
16026
16026
  ee = ee === "auto" ? vr(K, j) : ee, s.drawRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (I + G + W) / 2);
16027
16027
  else if (["cutrectangle", "cut-rectangle"].includes(Q))
@@ -16037,10 +16037,10 @@ wr.drawNode = function(t, e, r) {
16037
16037
  var Ze = (I + G + W) / o;
16038
16038
  oe = Pn(In(oe, -Ze)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16039
16039
  }
16040
- if (h ? t.stroke(te) : t.stroke(), Y === "double") {
16040
+ if (h ? t.stroke(te) : t.stroke(), $ === "double") {
16041
16041
  t.lineWidth = I / 3;
16042
- var Xt = t.globalCompositeOperation;
16043
- t.globalCompositeOperation = "destination-out", h ? t.stroke(te) : t.stroke(), t.globalCompositeOperation = Xt;
16042
+ var Ht = t.globalCompositeOperation;
16043
+ t.globalCompositeOperation = "destination-out", h ? t.stroke(te) : t.stroke(), t.globalCompositeOperation = Ht;
16044
16044
  }
16045
16045
  t.setLineDash && t.setLineDash([]);
16046
16046
  }
@@ -16317,15 +16317,15 @@ xt.render = function(t) {
16317
16317
  } else e.textureOnViewport && !a && (e.textureCache = null);
16318
16318
  var k = r.extent(), B = e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming || e.hoverData.draggingEles || e.cy.animated(), _ = e.hideEdgesOnViewport && B, F = [];
16319
16319
  if (F[e.NODE] = !f[e.NODE] && v && !e.clearedForMotionBlur[e.NODE] || e.clearingMotionBlur, F[e.NODE] && (e.clearedForMotionBlur[e.NODE] = !0), F[e.DRAG] = !f[e.DRAG] && v && !e.clearedForMotionBlur[e.DRAG] || e.clearingMotionBlur, F[e.DRAG] && (e.clearedForMotionBlur[e.DRAG] = !0), f[e.NODE] || n || i || F[e.NODE]) {
16320
- var G = v && !F[e.NODE] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), H = v && !G ? "motionBlur" : void 0;
16321
- L(P, H), _ ? e.drawCachedNodes(P, D.nondrag, u, k) : e.drawLayeredElements(P, D.nondrag, u, k), e.debug && e.drawDebugPoints(P, D.nondrag), !n && !v && (f[e.NODE] = !1);
16320
+ var G = v && !F[e.NODE] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), Y = v && !G ? "motionBlur" : void 0;
16321
+ L(P, Y), _ ? e.drawCachedNodes(P, D.nondrag, u, k) : e.drawLayeredElements(P, D.nondrag, u, k), e.debug && e.drawDebugPoints(P, D.nondrag), !n && !v && (f[e.NODE] = !1);
16322
16322
  }
16323
16323
  if (!i && (f[e.DRAG] || n || F[e.DRAG])) {
16324
16324
  var G = v && !F[e.DRAG] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]);
16325
16325
  L(P, v && !G ? "motionBlur" : void 0), _ ? e.drawCachedNodes(P, D.drag, u, k) : e.drawCachedElements(P, D.drag, u, k), e.debug && e.drawDebugPoints(P, D.drag), !n && !v && (f[e.DRAG] = !1);
16326
16326
  }
16327
16327
  if (this.drawSelectionRectangle(t, L), v && h !== 1) {
16328
- var Y = l.contexts[e.NODE], X = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], W = l.contexts[e.DRAG], ee = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], ae = function(z, V, q) {
16328
+ var $ = l.contexts[e.NODE], H = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], W = l.contexts[e.DRAG], ee = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], ae = function(z, V, q) {
16329
16329
  z.setTransform(1, 0, 0, 1, 0, 0), q || !y ? z.clearRect(0, 0, e.canvasWidth, e.canvasHeight) : A(z, 0, 0, e.canvasWidth, e.canvasHeight);
16330
16330
  var Z = h;
16331
16331
  z.drawImage(
@@ -16345,7 +16345,7 @@ xt.render = function(t) {
16345
16345
  // w, h
16346
16346
  );
16347
16347
  };
16348
- (f[e.NODE] || F[e.NODE]) && (ae(Y, X, F[e.NODE]), f[e.NODE] = !1), (f[e.DRAG] || F[e.DRAG]) && (ae(W, ee, F[e.DRAG]), f[e.DRAG] = !1);
16348
+ (f[e.NODE] || F[e.NODE]) && (ae($, H, F[e.NODE]), f[e.NODE] = !1), (f[e.DRAG] || F[e.DRAG]) && (ae(W, ee, F[e.DRAG]), f[e.DRAG] = !1);
16349
16349
  }
16350
16350
  e.prevViewport = w, e.clearingMotionBlur && (e.clearingMotionBlur = !1, e.motionBlurCleared = !0, e.motionBlur = !0), v && (e.motionBlurTimeout = setTimeout(function() {
16351
16351
  e.motionBlurTimeout = null, e.clearedForMotionBlur[e.NODE] = !1, e.clearedForMotionBlur[e.DRAG] = !1, e.motionBlur = !1, e.clearingMotionBlur = !c, e.mbFrames = 0, f[e.NODE] = !0, f[e.DRAG] = !0, e.redraw();
@@ -16431,7 +16431,7 @@ function Cr(t, e, r) {
16431
16431
  var a = t[0] / 255, n = t[1] / 255, i = t[2] / 255, s = e, o = r || new Array(4);
16432
16432
  return o[0] = a * s, o[1] = n * s, o[2] = i * s, o[3] = s, o;
16433
16433
  }
16434
- function Yr(t, e) {
16434
+ function $r(t, e) {
16435
16435
  var r = e || new Array(4);
16436
16436
  return r[0] = (t >> 0 & 255) / 255, r[1] = (t >> 8 & 255) / 255, r[2] = (t >> 16 & 255) / 255, r[3] = (t >> 24 & 255) / 255, r;
16437
16437
  }
@@ -16446,7 +16446,7 @@ function Em(t, e) {
16446
16446
  t.deleteTexture(r);
16447
16447
  }, r;
16448
16448
  }
16449
- function Yc(t, e) {
16449
+ function $c(t, e) {
16450
16450
  switch (e) {
16451
16451
  case "float":
16452
16452
  return [1, t.FLOAT, 4];
@@ -16462,7 +16462,7 @@ function Yc(t, e) {
16462
16462
  return [2, t.INT, 4];
16463
16463
  }
16464
16464
  }
16465
- function Hc(t, e, r) {
16465
+ function Yc(t, e, r) {
16466
16466
  switch (e) {
16467
16467
  case t.FLOAT:
16468
16468
  return new Float32Array(r);
@@ -16479,11 +16479,11 @@ function xm(t, e, r, a, n, i) {
16479
16479
  }
16480
16480
  }
16481
16481
  function Tm(t, e, r, a) {
16482
- var n = Yc(t, e), i = Je(n, 2), s = i[0], o = i[1], u = Hc(t, o, a), l = t.createBuffer();
16482
+ var n = $c(t, e), i = Je(n, 2), s = i[0], o = i[1], u = Yc(t, o, a), l = t.createBuffer();
16483
16483
  return t.bindBuffer(t.ARRAY_BUFFER, l), t.bufferData(t.ARRAY_BUFFER, u, t.STATIC_DRAW), o === t.FLOAT ? t.vertexAttribPointer(r, s, o, !1, 0, 0) : o === t.INT && t.vertexAttribIPointer(r, s, o, 0, 0), t.enableVertexAttribArray(r), t.bindBuffer(t.ARRAY_BUFFER, null), l;
16484
16484
  }
16485
16485
  function zt(t, e, r, a) {
16486
- var n = Yc(t, r), i = Je(n, 3), s = i[0], o = i[1], u = i[2], l = Hc(t, o, e * s), f = s * u, c = t.createBuffer();
16486
+ var n = $c(t, r), i = Je(n, 3), s = i[0], o = i[1], u = i[2], l = Yc(t, o, e * s), f = s * u, c = t.createBuffer();
16487
16487
  t.bindBuffer(t.ARRAY_BUFFER, c), t.bufferData(t.ARRAY_BUFFER, e * f, t.DYNAMIC_DRAW), t.enableVertexAttribArray(a), o === t.FLOAT ? t.vertexAttribPointer(a, s, o, !1, f, 0) : o === t.INT && t.vertexAttribIPointer(a, s, o, f, 0), t.vertexAttribDivisor(a, 1), t.bindBuffer(t.ARRAY_BUFFER, null);
16488
16488
  for (var v = new Array(e), h = 0; h < e; h++)
16489
16489
  v[h] = xm(t, o, l, f, s, h);
@@ -17074,7 +17074,7 @@ var Im = /* @__PURE__ */ (function() {
17074
17074
  // don't render the texture at all
17075
17075
  USE_BB: 2
17076
17076
  // render the bounding box as an opaque rectangle
17077
- }, Is = 0, nf = 1, sf = 2, Ms = 3, Hr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17077
+ }, Is = 0, nf = 1, sf = 2, Ms = 3, Yr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17078
17078
  function t(e, r, a) {
17079
17079
  yr(this, t), this.r = e, this.gl = r, this.maxInstances = a.webglBatchSize, this.atlasSize = a.webglTexSize, this.bgColor = a.bgColor, this.debug = a.webglDebug, this.batchDebugInfo = [], a.enableWrapping = !0, a.createTextureCanvas = gm, this.atlasManager = new Im(e, a), this.batchManager = new Mm(a), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Da.SCREEN), this.pickingProgram = this._createShaderProgram(Da.PICKING), this.vao = this._createVAO();
17080
17080
  }
@@ -17221,7 +17221,7 @@ var Im = /* @__PURE__ */ (function() {
17221
17221
 
17222
17222
  gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);
17223
17223
  }
17224
- else if(aVertType == `).concat(Hr, " || aVertType == ").concat(ba, `
17224
+ else if(aVertType == `).concat(Yr, " || aVertType == ").concat(ba, `
17225
17225
  || aVertType == `).concat(ln, " || aVertType == ").concat(ma, `) { // simple shapes
17226
17226
 
17227
17227
  // the bounding box is needed by the fragment shader
@@ -17379,10 +17379,10 @@ var Im = /* @__PURE__ */ (function() {
17379
17379
  outColor = blend(vColor, uBGColor);
17380
17380
  outColor.a = 1.0; // make opaque, masks out line under arrow
17381
17381
  }
17382
- else if(vVertType == `).concat(Hr, ` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border
17382
+ else if(vVertType == `).concat(Yr, ` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border
17383
17383
  outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done
17384
17384
  }
17385
- else if(vVertType == `).concat(Hr, " || vVertType == ").concat(ba, `
17385
+ else if(vVertType == `).concat(Yr, " || vVertType == ").concat(ba, `
17386
17386
  || vVertType == `).concat(ln, " || vVertType == ").concat(ma, `) { // use SDF
17387
17387
 
17388
17388
  float outerBorder = vBorderWidth[0];
@@ -17394,7 +17394,7 @@ var Im = /* @__PURE__ */ (function() {
17394
17394
  vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center
17395
17395
 
17396
17396
  float d; // signed distance
17397
- if(vVertType == `).concat(Hr, `) {
17397
+ if(vVertType == `).concat(Yr, `) {
17398
17398
  d = rectangleSD(p, b);
17399
17399
  } else if(vVertType == `).concat(ba, ` && w == h) {
17400
17400
  d = circleSD(p, b.x); // faster than ellipse
@@ -17511,7 +17511,7 @@ var Im = /* @__PURE__ */ (function() {
17511
17511
  var S = this.instanceCount;
17512
17512
  this.vertTypeBuffer.getView(S)[0] = Is;
17513
17513
  var w = this.indexBuffer.getView(S);
17514
- Yr(a, w);
17514
+ $r(a, w);
17515
17515
  var x = this.atlasIdBuffer.getView(S);
17516
17516
  x[0] = g;
17517
17517
  var C = this.texBuffer.getView(S);
@@ -17591,9 +17591,9 @@ var Im = /* @__PURE__ */ (function() {
17591
17591
  key: "drawPickingRectangle",
17592
17592
  value: function(r, a, n) {
17593
17593
  var i = this.atlasManager.getRenderTypeOpts(n), s = this.instanceCount;
17594
- this.vertTypeBuffer.getView(s)[0] = Hr;
17594
+ this.vertTypeBuffer.getView(s)[0] = Yr;
17595
17595
  var o = this.indexBuffer.getView(s);
17596
- Yr(a, o);
17596
+ $r(a, o);
17597
17597
  var u = this.colorBuffer.getView(s);
17598
17598
  Cr([0, 0, 0], 1, u);
17599
17599
  var l = this.transformBuffer.getMatrixView(s);
@@ -17618,7 +17618,7 @@ var Im = /* @__PURE__ */ (function() {
17618
17618
  c[0] = f, c[1] = f, c[2] = f, c[3] = f, o === ma && (c[0] = 0, c[2] = 0);
17619
17619
  }
17620
17620
  var v = this.indexBuffer.getView(u);
17621
- Yr(a, v);
17621
+ $r(a, v);
17622
17622
  var h = r.pstyle(s.color).value, d = r.pstyle(s.opacity).value, p = this.colorBuffer.getView(u);
17623
17623
  Cr(h, d, p);
17624
17624
  var g = this.lineWidthBuffer.getView(u);
@@ -17648,7 +17648,7 @@ var Im = /* @__PURE__ */ (function() {
17648
17648
  var n = r.pstyle(a).value;
17649
17649
  switch (n) {
17650
17650
  case "rectangle":
17651
- return Hr;
17651
+ return Yr;
17652
17652
  case "ellipse":
17653
17653
  return ba;
17654
17654
  case "roundrectangle":
@@ -17683,7 +17683,7 @@ var Im = /* @__PURE__ */ (function() {
17683
17683
  var f = r.pstyle(n + "-arrow-color").value, c = r.pstyle("opacity").value, v = r.pstyle("line-opacity").value, h = c * v, d = r.pstyle("width").pfValue, p = r.pstyle("arrow-scale").value, g = this.r.getArrowWidth(d, p), y = this.instanceCount, b = this.transformBuffer.getMatrixView(y);
17684
17684
  rf(b), wn(b, b, [s, o]), Js(b, b, [g, g]), af(b, b, u), this.vertTypeBuffer.getView(y)[0] = Ms;
17685
17685
  var m = this.indexBuffer.getView(y);
17686
- Yr(a, m);
17686
+ $r(a, m);
17687
17687
  var E = this.colorBuffer.getView(y);
17688
17688
  Cr(f, h, E), this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
17689
17689
  }
@@ -17704,7 +17704,7 @@ var Im = /* @__PURE__ */ (function() {
17704
17704
  var f = this.instanceCount;
17705
17705
  this.vertTypeBuffer.getView(f)[0] = nf;
17706
17706
  var c = this.indexBuffer.getView(f);
17707
- Yr(a, c);
17707
+ $r(a, c);
17708
17708
  var v = this.colorBuffer.getView(f);
17709
17709
  Cr(u, l, v);
17710
17710
  var h = this.lineWidthBuffer.getView(f);
@@ -17716,7 +17716,7 @@ var Im = /* @__PURE__ */ (function() {
17716
17716
  var g = this.instanceCount;
17717
17717
  this.vertTypeBuffer.getView(g)[0] = sf;
17718
17718
  var y = this.indexBuffer.getView(g);
17719
- Yr(a, y);
17719
+ $r(a, y);
17720
17720
  var b = this.colorBuffer.getView(g);
17721
17721
  Cr(u, l, b);
17722
17722
  var m = this.lineWidthBuffer.getView(g);
@@ -17834,8 +17834,8 @@ var Im = /* @__PURE__ */ (function() {
17834
17834
  };
17835
17835
  }
17836
17836
  }]);
17837
- })(), Xc = {};
17838
- Xc.initWebgl = function(t, e) {
17837
+ })(), Hc = {};
17838
+ Hc.initWebgl = function(t, e) {
17839
17839
  var r = this, a = r.data.contexts[r.WEBGL];
17840
17840
  t.bgColor = _m(r), t.webglTexSize = Math.min(t.webglTexSize, a.getParameter(a.MAX_TEXTURE_SIZE)), t.webglTexRows = Math.min(t.webglTexRows, 54), t.webglTexRowsNodes = Math.min(t.webglTexRowsNodes, 54), t.webglBatchSize = Math.min(t.webglBatchSize, 16384), t.webglTexPerBatch = Math.min(t.webglTexPerBatch, a.getParameter(a.MAX_TEXTURE_IMAGE_UNITS)), r.webglDebug = t.webglDebug, r.webglDebugShowAtlases = t.webglDebugShowAtlases, r.pickingFrameBuffer = Dm(a), r.pickingFrameBuffer.needsDraw = !0, r.drawing = new Fm(r, a, t);
17841
17841
  var n = function(c) {
@@ -17949,13 +17949,13 @@ function _m(t) {
17949
17949
  var e = t.cy.container(), r = e && e.style && e.style.backgroundColor || "white";
17950
17950
  return wf(r);
17951
17951
  }
17952
- function $c(t, e) {
17952
+ function Xc(t, e) {
17953
17953
  var r = t._private.rscratch;
17954
17954
  return Dt(r, "labelWrapCachedLines", e) || [];
17955
17955
  }
17956
17956
  var Os = function(e, r) {
17957
17957
  return function(a) {
17958
- var n = e(a), i = $c(a, r);
17958
+ var n = e(a), i = Xc(a, r);
17959
17959
  return i.length > 1 ? i.map(function(s, o) {
17960
17960
  return "".concat(n, "_").concat(o);
17961
17961
  }) : n;
@@ -17966,7 +17966,7 @@ var Os = function(e, r) {
17966
17966
  if (typeof n == "string") {
17967
17967
  var s = n.indexOf("_");
17968
17968
  if (s > 0) {
17969
- var o = Number(n.substring(s + 1)), u = $c(a, r), l = i.h / u.length, f = l * o, c = i.y1 + f;
17969
+ var o = Number(n.substring(s + 1)), u = Xc(a, r), l = i.h / u.length, f = l * o, c = i.y1 + f;
17970
17970
  return {
17971
17971
  x1: i.x1,
17972
17972
  w: i.w,
@@ -17995,7 +17995,7 @@ function Gm(t) {
17995
17995
  };
17996
17996
  }
17997
17997
  t.findNearestElements = function(i, s, o, u) {
17998
- return $m(t, i, s);
17998
+ return Xm(t, i, s);
17999
17999
  };
18000
18000
  {
18001
18001
  var a = t.invalidateCachedZSortedEles;
@@ -18039,11 +18039,11 @@ function qm(t, e) {
18039
18039
  return Wc(t, r);
18040
18040
  });
18041
18041
  }
18042
- function Ym(t) {
18042
+ function $m(t) {
18043
18043
  var e = t.data.contexts[t.NODE];
18044
18044
  e.save(), Wc(t, e), e.strokeStyle = "rgba(0, 0, 0, 0.3)", e.beginPath(), e.moveTo(-1e3, 0), e.lineTo(1e3, 0), e.stroke(), e.beginPath(), e.moveTo(0, -1e3), e.lineTo(0, 1e3), e.stroke(), e.restore();
18045
18045
  }
18046
- function Hm(t) {
18046
+ function Ym(t) {
18047
18047
  var e = function(n, i, s) {
18048
18048
  for (var o = n.atlasManager.getAtlasCollection(i), u = t.data.contexts[t.NODE], l = o.atlases, f = 0; f < l.length; f++) {
18049
18049
  var c = l[f], v = c.canvas;
@@ -18055,7 +18055,7 @@ function Hm(t) {
18055
18055
  }, r = 0;
18056
18056
  e(t.drawing, "node", r++), e(t.drawing, "label", r++);
18057
18057
  }
18058
- function Xm(t, e, r, a, n) {
18058
+ function Hm(t, e, r, a, n) {
18059
18059
  var i, s, o, u, l = Ro(t), f = l.pan, c = l.zoom;
18060
18060
  {
18061
18061
  var v = ym(t, f, c, e, r), h = Je(v, 2), d = h[0], p = h[1], g = 6;
@@ -18073,8 +18073,8 @@ function Xm(t, e, r, a, n) {
18073
18073
  }
18074
18074
  return E;
18075
18075
  }
18076
- function $m(t, e, r) {
18077
- var a = Xm(t, e, r), n = t.getCachedZSortedEles(), i, s, o = At(a), u;
18076
+ function Xm(t, e, r) {
18077
+ var a = Hm(t, e, r), n = t.getCachedZSortedEles(), i, s, o = At(a), u;
18078
18078
  try {
18079
18079
  for (o.s(); !(u = o.n()).done; ) {
18080
18080
  var l = u.value, f = n[l];
@@ -18108,7 +18108,7 @@ function Kc(t, e, r) {
18108
18108
  } else if (r.picking)
18109
18109
  for (var c = 0; c < u.length; c++)
18110
18110
  Ns(t, c, u[c]);
18111
- n.endFrame(), r.screen && t.webglDebugShowAtlases && (Ym(t), Hm(t)), t.data.canvasNeedsRedraw[t.NODE] = !1, t.data.canvasNeedsRedraw[t.DRAG] = !1;
18111
+ n.endFrame(), r.screen && t.webglDebugShowAtlases && ($m(t), Ym(t)), t.data.canvasNeedsRedraw[t.NODE] = !1, t.data.canvasNeedsRedraw[t.DRAG] = !1;
18112
18112
  }
18113
18113
  if (t.webglDebug) {
18114
18114
  var v = performance.now(), h = !1, d = Math.ceil(v - a), p = n.getDebugInfo(), g = ["".concat(i, " elements"), "".concat(p.totalInstances, " instances"), "".concat(p.batchCount, " batches"), "".concat(p.totalAtlases, " atlases"), "".concat(p.wrappedCount, " wrapped textures"), "".concat(p.simpleCount, " simple shapes")].join(", ");
@@ -18162,8 +18162,8 @@ Er.drawBarrelPath = function(t, e, r, a, n) {
18162
18162
  t.beginPath && t.beginPath(), t.moveTo(o, l + h), t.lineTo(o, f - h), t.quadraticCurveTo(o + d, f, o + v, f), t.lineTo(u - v, f), t.quadraticCurveTo(u - d, f, u, f - h), t.lineTo(u, l + h), t.quadraticCurveTo(u - d, l, u - v, l), t.lineTo(o + v, l), t.quadraticCurveTo(o + d, l, o, l + h), t.closePath();
18163
18163
  };
18164
18164
  var of = Math.sin(0), uf = Math.cos(0), js = {}, eo = {}, Zc = Math.PI / 40;
18165
- for (var Xr = 0 * Math.PI; Xr < 2 * Math.PI; Xr += Zc)
18166
- js[Xr] = Math.sin(Xr), eo[Xr] = Math.cos(Xr);
18165
+ for (var Hr = 0 * Math.PI; Hr < 2 * Math.PI; Hr += Zc)
18166
+ js[Hr] = Math.sin(Hr), eo[Hr] = Math.cos(Hr);
18167
18167
  Er.drawEllipsePath = function(t, e, r, a, n) {
18168
18168
  if (t.beginPath && t.beginPath(), t.ellipse)
18169
18169
  t.ellipse(e, r, a / 2, n / 2, 0, 0, 2 * Math.PI);
@@ -18172,12 +18172,12 @@ Er.drawEllipsePath = function(t, e, r, a, n) {
18172
18172
  i = e - o * js[l] * of + o * eo[l] * uf, s = r + u * eo[l] * of + u * js[l] * uf, l === 0 ? t.moveTo(i, s) : t.lineTo(i, s);
18173
18173
  t.closePath();
18174
18174
  };
18175
- var $a = {};
18176
- $a.createBuffer = function(t, e) {
18175
+ var Xa = {};
18176
+ Xa.createBuffer = function(t, e) {
18177
18177
  var r = document.createElement("canvas");
18178
18178
  return r.width = t, r.height = e, [r, r.getContext("2d")];
18179
18179
  };
18180
- $a.bufferCanvasImage = function(t) {
18180
+ Xa.bufferCanvasImage = function(t) {
18181
18181
  var e = this.cy, r = e.mutableElements(), a = r.boundingBox(), n = this.findContainerClientCoords(), i = t.full ? Math.ceil(a.w) : n[2], s = t.full ? Math.ceil(a.h) : n[3], o = ne(t.maxWidth) || ne(t.maxHeight), u = this.getPixelRatio(), l = 1;
18182
18182
  if (t.scale !== void 0)
18183
18183
  i *= t.scale, s *= t.scale, l = t.scale;
@@ -18240,10 +18240,10 @@ function Qc(t, e, r) {
18240
18240
  return a();
18241
18241
  }
18242
18242
  }
18243
- $a.png = function(t) {
18243
+ Xa.png = function(t) {
18244
18244
  return Qc(t, this.bufferCanvasImage(t), "image/png");
18245
18245
  };
18246
- $a.jpg = function(t) {
18246
+ Xa.jpg = function(t) {
18247
18247
  return Qc(t, this.bufferCanvasImage(t), "image/jpeg");
18248
18248
  };
18249
18249
  var Jc = {};
@@ -18304,7 +18304,7 @@ function jc(t) {
18304
18304
  qv() && (u["-ms-touch-action"] = "none", u["touch-action"] = "none");
18305
18305
  for (var l = 0; l < Se.CANVAS_LAYERS; l++) {
18306
18306
  var f = e.data.canvases[l] = a.createElement("canvas"), c = Se.CANVAS_TYPES[l];
18307
- e.data.contexts[l] = f.getContext(c), e.data.contexts[l] || He("Could not create canvas of type " + c), Object.keys(u).forEach(function(J) {
18307
+ e.data.contexts[l] = f.getContext(c), e.data.contexts[l] || Ye("Could not create canvas of type " + c), Object.keys(u).forEach(function(J) {
18308
18308
  f.style[J] = u[J];
18309
18309
  }), f.style.position = "absolute", f.setAttribute("data-id", "layer" + l), f.style.zIndex = String(Se.CANVAS_LAYERS - l), e.data.canvasContainer.appendChild(f), e.data.canvasNeedsRedraw[l] = !1;
18310
18310
  }
@@ -18398,7 +18398,7 @@ function jc(t) {
18398
18398
  }
18399
18399
  }
18400
18400
  return q;
18401
- }, H = e.data.eleTxrCache = new xa(e, {
18401
+ }, Y = e.data.eleTxrCache = new xa(e, {
18402
18402
  getKey: g,
18403
18403
  doesEleInvalidateKey: p,
18404
18404
  drawElement: E,
@@ -18407,14 +18407,14 @@ function jc(t) {
18407
18407
  getRotationOffset: B,
18408
18408
  allowEdgeTxrCaching: !1,
18409
18409
  allowParentTxrCaching: !1
18410
- }), Y = e.data.lblTxrCache = new xa(e, {
18410
+ }), $ = e.data.lblTxrCache = new xa(e, {
18411
18411
  getKey: y,
18412
18412
  drawElement: T,
18413
18413
  getBoundingBox: C,
18414
18414
  getRotationPoint: N,
18415
18415
  getRotationOffset: G,
18416
18416
  isVisible: L
18417
- }), X = e.data.slbTxrCache = new xa(e, {
18417
+ }), H = e.data.slbTxrCache = new xa(e, {
18418
18418
  getKey: b,
18419
18419
  drawElement: S,
18420
18420
  getBoundingBox: D,
@@ -18430,7 +18430,7 @@ function jc(t) {
18430
18430
  isVisible: L
18431
18431
  }), ee = e.data.lyrTxrCache = new zc(e);
18432
18432
  e.onUpdateEleCalcs(function(z, V) {
18433
- H.invalidateElements(V), Y.invalidateElements(V), X.invalidateElements(V), W.invalidateElements(V), ee.invalidateElements(V);
18433
+ Y.invalidateElements(V), $.invalidateElements(V), H.invalidateElements(V), W.invalidateElements(V), ee.invalidateElements(V);
18434
18434
  for (var q = 0; q < V.length; q++) {
18435
18435
  var Z = V[q]._private;
18436
18436
  Z.oldBackgroundTimestamp = Z.backgroundTimestamp;
@@ -18440,7 +18440,7 @@ function jc(t) {
18440
18440
  for (var V = 0; V < z.length; V++)
18441
18441
  ee.enqueueElementRefinement(z[V].ele);
18442
18442
  };
18443
- H.onDequeue(ae), Y.onDequeue(ae), X.onDequeue(ae), W.onDequeue(ae), t.webgl && e.initWebgl(t, {
18443
+ Y.onDequeue(ae), $.onDequeue(ae), H.onDequeue(ae), W.onDequeue(ae), t.webgl && e.initWebgl(t, {
18444
18444
  getStyleKey: g,
18445
18445
  getLabelKey: y,
18446
18446
  getSourceLabelKey: b,
@@ -18505,7 +18505,7 @@ Se.makeOffscreenCanvas = function(t, e) {
18505
18505
  }
18506
18506
  return r;
18507
18507
  };
18508
- [Vc, Ht, er, Lo, Fr, wr, xt, Xc, Er, $a, Jc].forEach(function(t) {
18508
+ [Vc, Yt, er, Lo, Fr, wr, xt, Hc, Er, Xa, Jc].forEach(function(t) {
18509
18509
  be(Se, t);
18510
18510
  });
18511
18511
  var Qm = [{
@@ -18618,11 +18618,11 @@ function rv(t, e, r) {
18618
18618
  b[S] = g[S];
18619
18619
  d.clientFunctions.forEach(function(w) {
18620
18620
  b[w] = b[w] || function() {
18621
- He("Renderer does not implement `renderer." + w + "()` on its prototype");
18621
+ Ye("Renderer does not implement `renderer." + w + "()` on its prototype");
18622
18622
  };
18623
18623
  }), a = y;
18624
18624
  } else if (t === "__proto__" || t === "constructor" || t === "prototype")
18625
- return He(t + " is an illegal type to be registered, possibly lead to prototype pollutions");
18625
+ return Ye(t + " is an illegal type to be registered, possibly lead to prototype pollutions");
18626
18626
  return Ef({
18627
18627
  map: ev,
18628
18628
  keys: [t, e],
@@ -18657,7 +18657,7 @@ var to = function() {
18657
18657
  return e0.apply(null, arguments);
18658
18658
  if (arguments.length === 5)
18659
18659
  return jm.apply(null, arguments);
18660
- He("Invalid extension access syntax");
18660
+ Ye("Invalid extension access syntax");
18661
18661
  };
18662
18662
  ka.prototype.extension = to;
18663
18663
  Jm.forEach(function(t) {
@@ -19380,7 +19380,7 @@ function a0() {
19380
19380
  if (f < v)
19381
19381
  return l[0] = g, l[1] = c, l[2] = S, l[3] = h, !1;
19382
19382
  } else {
19383
- var N = o.height / o.width, O = u.height / u.width, k = (h - c) / (v - f), B = void 0, _ = void 0, F = void 0, G = void 0, H = void 0, Y = void 0;
19383
+ var N = o.height / o.width, O = u.height / u.width, k = (h - c) / (v - f), B = void 0, _ = void 0, F = void 0, G = void 0, Y = void 0, $ = void 0;
19384
19384
  if (-N === k ? f > v ? (l[0] = y, l[1] = b, P = !0) : (l[0] = g, l[1] = p, P = !0) : N === k && (f > v ? (l[0] = d, l[1] = p, P = !0) : (l[0] = m, l[1] = b, P = !0)), -O === k ? v > f ? (l[2] = C, l[3] = D, M = !0) : (l[2] = x, l[3] = w, M = !0) : O === k && (v > f ? (l[2] = S, l[3] = w, M = !0) : (l[2] = A, l[3] = D, M = !0)), P && M)
19385
19385
  return !1;
19386
19386
  if (f > v ? c > h ? (B = this.getCardinalDirection(N, k, 4), _ = this.getCardinalDirection(O, k, 2)) : (B = this.getCardinalDirection(-N, k, 3), _ = this.getCardinalDirection(-O, k, 1)) : c > h ? (B = this.getCardinalDirection(-N, k, 1), _ = this.getCardinalDirection(-O, k, 3)) : (B = this.getCardinalDirection(N, k, 2), _ = this.getCardinalDirection(O, k, 4)), !P)
@@ -19401,16 +19401,16 @@ function a0() {
19401
19401
  if (!M)
19402
19402
  switch (_) {
19403
19403
  case 1:
19404
- Y = w, H = v + -R / k, l[2] = H, l[3] = Y;
19404
+ $ = w, Y = v + -R / k, l[2] = Y, l[3] = $;
19405
19405
  break;
19406
19406
  case 2:
19407
- H = A, Y = h + L * k, l[2] = H, l[3] = Y;
19407
+ Y = A, $ = h + L * k, l[2] = Y, l[3] = $;
19408
19408
  break;
19409
19409
  case 3:
19410
- Y = D, H = v + R / k, l[2] = H, l[3] = Y;
19410
+ $ = D, Y = v + R / k, l[2] = Y, l[3] = $;
19411
19411
  break;
19412
19412
  case 4:
19413
- H = C, Y = h + -L * k, l[2] = H, l[3] = Y;
19413
+ Y = C, $ = h + -L * k, l[2] = Y, l[3] = $;
19414
19414
  break;
19415
19415
  }
19416
19416
  }
@@ -20636,13 +20636,13 @@ function i0() {
20636
20636
  k = k.concat(w.getEdges());
20637
20637
  var B = k.length;
20638
20638
  x != null && B--;
20639
- for (var _ = 0, F = k.length, G, H = w.getEdgesBetween(x); H.length > 1; ) {
20640
- var Y = H[0];
20641
- H.splice(0, 1);
20642
- var X = k.indexOf(Y);
20643
- X >= 0 && k.splice(X, 1), F--, B--;
20639
+ for (var _ = 0, F = k.length, G, Y = w.getEdgesBetween(x); Y.length > 1; ) {
20640
+ var $ = Y[0];
20641
+ Y.splice(0, 1);
20642
+ var H = k.indexOf($);
20643
+ H >= 0 && k.splice(H, 1), F--, B--;
20644
20644
  }
20645
- x != null ? G = (k.indexOf(H[0]) + 1) % F : G = 0;
20645
+ x != null ? G = (k.indexOf(Y[0]) + 1) % F : G = 0;
20646
20646
  for (var W = Math.abs(D - C) / B, ee = G; _ != B; ee = ++ee % F) {
20647
20647
  var ae = k[ee].getOtherEnd(w);
20648
20648
  if (ae != x) {
@@ -20865,18 +20865,18 @@ function i0() {
20865
20865
  if (A > 0)
20866
20866
  for (var _ = R; _ <= P; _++)
20867
20867
  B[3] += this.grid[A - 1][_].length + this.grid[A][_].length - 1;
20868
- for (var F = y.MAX_VALUE, G, H, Y = 0; Y < B.length; Y++)
20869
- B[Y] < F ? (F = B[Y], G = 1, H = Y) : B[Y] == F && G++;
20868
+ for (var F = y.MAX_VALUE, G, Y, $ = 0; $ < B.length; $++)
20869
+ B[$] < F ? (F = B[$], G = 1, Y = $) : B[$] == F && G++;
20870
20870
  if (G == 3 && F == 0)
20871
20871
  B[0] == 0 && B[1] == 0 && B[2] == 0 ? x = 1 : B[0] == 0 && B[1] == 0 && B[3] == 0 ? x = 0 : B[0] == 0 && B[2] == 0 && B[3] == 0 ? x = 3 : B[1] == 0 && B[2] == 0 && B[3] == 0 && (x = 2);
20872
20872
  else if (G == 2 && F == 0) {
20873
- var X = Math.floor(Math.random() * 2);
20874
- B[0] == 0 && B[1] == 0 ? X == 0 ? x = 0 : x = 1 : B[0] == 0 && B[2] == 0 ? X == 0 ? x = 0 : x = 2 : B[0] == 0 && B[3] == 0 ? X == 0 ? x = 0 : x = 3 : B[1] == 0 && B[2] == 0 ? X == 0 ? x = 1 : x = 2 : B[1] == 0 && B[3] == 0 ? X == 0 ? x = 1 : x = 3 : X == 0 ? x = 2 : x = 3;
20873
+ var H = Math.floor(Math.random() * 2);
20874
+ B[0] == 0 && B[1] == 0 ? H == 0 ? x = 0 : x = 1 : B[0] == 0 && B[2] == 0 ? H == 0 ? x = 0 : x = 2 : B[0] == 0 && B[3] == 0 ? H == 0 ? x = 0 : x = 3 : B[1] == 0 && B[2] == 0 ? H == 0 ? x = 1 : x = 2 : B[1] == 0 && B[3] == 0 ? H == 0 ? x = 1 : x = 3 : H == 0 ? x = 2 : x = 3;
20875
20875
  } else if (G == 4 && F == 0) {
20876
- var X = Math.floor(Math.random() * 4);
20877
- x = X;
20878
- } else
20876
+ var H = Math.floor(Math.random() * 4);
20879
20877
  x = H;
20878
+ } else
20879
+ x = Y;
20880
20880
  x == 0 ? D.setCenter(C.getCenterX(), C.getCenterY() - C.getHeight() / 2 - v.DEFAULT_EDGE_LENGTH - D.getHeight() / 2) : x == 1 ? D.setCenter(C.getCenterX() + C.getWidth() / 2 + v.DEFAULT_EDGE_LENGTH + D.getWidth() / 2, C.getCenterY()) : x == 2 ? D.setCenter(C.getCenterX(), C.getCenterY() + C.getHeight() / 2 + v.DEFAULT_EDGE_LENGTH + D.getHeight() / 2) : D.setCenter(C.getCenterX() - C.getWidth() / 2 - v.DEFAULT_EDGE_LENGTH - D.getWidth() / 2, C.getCenterY());
20881
20881
  }, a.exports = T;
20882
20882
  }),
@@ -21053,16 +21053,16 @@ function o0() {
21053
21053
  return;
21054
21054
  }
21055
21055
  var G = S.layout.getPositionsData();
21056
- E.eles.nodes().positions(function(H, Y) {
21057
- if (typeof H == "number" && (H = Y), !H.isParent()) {
21058
- for (var X = H.id(), W = G[X], ee = H; W == null && (W = G[ee.data("parent")] || G["DummyCompound_" + ee.data("parent")], G[X] = W, ee = ee.parent()[0], ee != null); )
21056
+ E.eles.nodes().positions(function(Y, $) {
21057
+ if (typeof Y == "number" && (Y = $), !Y.isParent()) {
21058
+ for (var H = Y.id(), W = G[H], ee = Y; W == null && (W = G[ee.data("parent")] || G["DummyCompound_" + ee.data("parent")], G[H] = W, ee = ee.parent()[0], ee != null); )
21059
21059
  ;
21060
21060
  return W != null ? {
21061
21061
  x: W.x,
21062
21062
  y: W.y
21063
21063
  } : {
21064
- x: H.position("x"),
21065
- y: H.position("y")
21064
+ x: Y.position("x"),
21065
+ y: Y.position("y")
21066
21066
  };
21067
21067
  }
21068
21068
  }), k(), m = requestAnimationFrame(O);
@@ -21192,31 +21192,31 @@ var ro = (function() {
21192
21192
  D.push(F);
21193
21193
  var G = k.options && k.options.ranges;
21194
21194
  typeof B.yy.parseError == "function" ? this.parseError = B.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
21195
- function H() {
21195
+ function Y() {
21196
21196
  var re;
21197
21197
  return re = x.pop() || k.lex() || N, typeof re != "number" && (re instanceof Array && (x = re, re = x.pop()), re = S.symbols_[re] || re), re;
21198
21198
  }
21199
- for (var Y, X, W, ee, ae = {}, J, z, V, q; ; ) {
21200
- if (X = w[w.length - 1], this.defaultActions[X] ? W = this.defaultActions[X] : ((Y === null || typeof Y > "u") && (Y = H()), W = A[X] && A[X][Y]), typeof W > "u" || !W.length || !W[0]) {
21199
+ for (var $, H, W, ee, ae = {}, J, z, V, q; ; ) {
21200
+ if (H = w[w.length - 1], this.defaultActions[H] ? W = this.defaultActions[H] : (($ === null || typeof $ > "u") && ($ = Y()), W = A[H] && A[H][$]), typeof W > "u" || !W.length || !W[0]) {
21201
21201
  var Z = "";
21202
21202
  q = [];
21203
- for (J in A[X])
21203
+ for (J in A[H])
21204
21204
  this.terminals_[J] && J > M && q.push("'" + this.terminals_[J] + "'");
21205
21205
  k.showPosition ? Z = "Parse error on line " + (R + 1) + `:
21206
21206
  ` + k.showPosition() + `
21207
- Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "Parse error on line " + (R + 1) + ": Unexpected " + (Y == N ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(Z, {
21207
+ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : Z = "Parse error on line " + (R + 1) + ": Unexpected " + ($ == N ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(Z, {
21208
21208
  text: k.match,
21209
- token: this.terminals_[Y] || Y,
21209
+ token: this.terminals_[$] || $,
21210
21210
  line: k.yylineno,
21211
21211
  loc: F,
21212
21212
  expected: q
21213
21213
  });
21214
21214
  }
21215
21215
  if (W[0] instanceof Array && W.length > 1)
21216
- throw new Error("Parse Error: multiple actions possible at state: " + X + ", token: " + Y);
21216
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + $);
21217
21217
  switch (W[0]) {
21218
21218
  case 1:
21219
- w.push(Y), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), Y = null, P = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21219
+ w.push($), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), $ = null, P = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21220
21220
  break;
21221
21221
  case 2:
21222
21222
  if (z = this.productions_[W[1]][1], ae.$ = C[C.length - z], ae._$ = {
@@ -21927,12 +21927,12 @@ const F0 = async (t, e, r, a) => {
21927
21927
  dominant-baseline: middle;
21928
21928
  text-align: center;
21929
21929
  }
21930
- `, V0 = z0, $0 = {
21930
+ `, V0 = z0, X0 = {
21931
21931
  db: x0,
21932
21932
  renderer: _0,
21933
21933
  parser: f0,
21934
21934
  styles: V0
21935
21935
  };
21936
21936
  export {
21937
- $0 as diagram
21937
+ X0 as diagram
21938
21938
  };