graphdb-workbench 2.7.2-TR3 → 2.8.0-TR1

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 (427) hide show
  1. package/dist/{0.77349cff52402428d9b2.bundle.js → 0.ee26748479357c501f6a.bundle.js} +3 -3
  2. package/dist/{1.b01a382482194b2f51cb.bundle.js → 1.3a98bf80daadb1ec3514.bundle.js} +1 -1
  3. package/dist/{10.1aa770d7f1e7124afe38.bundle.js → 10.49455c5c44489637efcf.bundle.js} +1 -1
  4. package/dist/100.800ae87d94875d5fd553.bundle.js +1 -0
  5. package/dist/{100.791e6c1dd4d34f785fa1.bundle.js → 101.92cca3beedfeffd613c2.bundle.js} +1 -1
  6. package/dist/{101.37e41d12f25ce7c3b6fc.bundle.js → 102.52529ff735512deb6521.bundle.js} +1 -1
  7. package/dist/{102.6f9cbff52ee6b40bd8ed.bundle.js → 103.1c877102f9aac7a735a6.bundle.js} +1 -1
  8. package/dist/104.b4cfe4a3daa9f33b360b.bundle.js +1 -0
  9. package/dist/{104.60b9a1f31027d37caf14.bundle.js → 105.b5e75ad19a5189f381cd.bundle.js} +1 -1
  10. package/dist/{105.8ec8714c5344f807f679.bundle.js → 106.5888668d058e20e0959b.bundle.js} +1 -1
  11. package/dist/{106.f34d41aa335a1a1c4d38.bundle.js → 107.535033ab833742881ac9.bundle.js} +1 -1
  12. package/dist/{107.7002925ebe3a8f9dc69a.bundle.js → 108.406953373c42e90e65ab.bundle.js} +1 -1
  13. package/dist/{108.27bef479890bf24da4e2.bundle.js → 109.843df4130c5fbc2d9659.bundle.js} +1 -1
  14. package/dist/{11.5ac6f570d5d9addd9325.bundle.js → 11.6fdf751c22aba8d9019f.bundle.js} +2 -2
  15. package/dist/{109.7befd38d683a7d38c650.bundle.js → 110.a5e1ebec1ae3e49260dd.bundle.js} +1 -1
  16. package/dist/{110.d6dd4580333cc5874d3c.bundle.js → 111.fdf62f278aae06b6f678.bundle.js} +1 -1
  17. package/dist/{111.7822b8d4ffbfe8ec478c.bundle.js → 112.9b1d9a193bf7e95ca2b5.bundle.js} +1 -1
  18. package/dist/{112.9a2f16b0bb3599c14751.bundle.js → 113.acf6641dcd35a40698d4.bundle.js} +1 -1
  19. package/dist/{113.27b113aa87f5120f3214.bundle.js → 114.16cdceb34e9970a7f596.bundle.js} +1 -1
  20. package/dist/{114.6a65bbedc013e1309ded.bundle.js → 115.b6b4a06047d28cb9e09c.bundle.js} +1 -1
  21. package/dist/{115.b8d4948e91bc87af25f6.bundle.js → 116.66684114972fa46fc1d6.bundle.js} +1 -1
  22. package/dist/{116.4bdd621e8f4121c1fb9b.bundle.js → 117.6c05b427446d3c5ac135.bundle.js} +1 -1
  23. package/dist/{117.d3d85fee4a3d81b18e15.bundle.js → 118.9d71467d090bab29b32b.bundle.js} +1 -1
  24. package/dist/{118.35617d9571fdd1e04280.bundle.js → 119.b8bc2b13e30c68842f3b.bundle.js} +1 -1
  25. package/dist/{12.578e8ea044e8b40a94ee.bundle.js → 12.167f0304653bc0dd65f0.bundle.js} +1 -1
  26. package/dist/{119.25046aae4f906a3b9457.bundle.js → 120.31707891ecb62cae5f1b.bundle.js} +1 -1
  27. package/dist/{120.f8d9da3ff5443d64b7c9.bundle.js → 121.347ac872baa815081dae.bundle.js} +1 -1
  28. package/dist/{121.af7399fc572a60de3061.bundle.js → 122.069967c94c4387867449.bundle.js} +1 -1
  29. package/dist/{122.59b4ea10d7a9b22fc9db.bundle.js → 123.f7578a49cf761721da27.bundle.js} +1 -1
  30. package/dist/{123.5587ea39af3023b5bb34.bundle.js → 124.c0e4e16aaf613072f515.bundle.js} +1 -1
  31. package/dist/{124.12578c32900e1dd77742.bundle.js → 125.d399fef9851974980992.bundle.js} +1 -1
  32. package/dist/{125.14767fcefae0676044e6.bundle.js → 126.b4c5856d1bda1a861884.bundle.js} +1 -1
  33. package/dist/{126.0e93fab2297ba7757766.bundle.js → 127.3c12d6bda8b0db90ece2.bundle.js} +1 -1
  34. package/dist/{127.7151226dc5c7143c6a7d.bundle.js → 128.96712818990e4caebca6.bundle.js} +1 -1
  35. package/dist/{128.cf87f851d1ba35fe7100.bundle.js → 129.54754422810428f8956e.bundle.js} +1 -1
  36. package/dist/{13.5c9ab846d6b784ce3825.bundle.js → 13.1491f7c25fa372120bce.bundle.js} +1 -1
  37. package/dist/{129.d71a9882363b278a7918.bundle.js → 130.82e683142806dd0e997a.bundle.js} +1 -1
  38. package/dist/{130.234b58f1812b976eebe0.bundle.js → 131.7b3bb746c89211916c3a.bundle.js} +1 -1
  39. package/dist/{131.3c2f24f2e6abff9140c5.bundle.js → 132.aba25cf32131d99fd157.bundle.js} +1 -1
  40. package/dist/{132.99311ccc8a21d3448cc2.bundle.js → 133.c3ce4e78dff0a2c13876.bundle.js} +1 -1
  41. package/dist/{133.c42e903423b4dff7fd3c.bundle.js → 134.72c0f9bd3d2287a1bd32.bundle.js} +1 -1
  42. package/dist/{134.cb7f54514484f90eb02f.bundle.js → 135.ee730677e6ddb5bae495.bundle.js} +1 -1
  43. package/dist/{135.bd00a551693084ff39e6.bundle.js → 136.7968e25493c8374ba0ad.bundle.js} +1 -1
  44. package/dist/{136.b053fc49873b7ca8438a.bundle.js → 137.d8253b96730ebc4c9199.bundle.js} +1 -1
  45. package/dist/{137.bcc736c3b60fde444204.bundle.js → 138.b2083baa7972f9bd3870.bundle.js} +1 -1
  46. package/dist/{138.4b51b9fdc0a16e6051a5.bundle.js → 139.4b0ef2082d2324887a2b.bundle.js} +1 -1
  47. package/dist/{14.14fc4d8859366e46cf8e.bundle.js → 14.a9aed9964d151a170e8b.bundle.js} +1 -1
  48. package/dist/{139.24c33f149a0bf46e5d55.bundle.js → 140.06d5a8546886dbe7414a.bundle.js} +1 -1
  49. package/dist/{140.a13e04b4090a07f4e59b.bundle.js → 141.b083a73de351cea29a8b.bundle.js} +1 -1
  50. package/dist/{141.6bf44fe90aca025f268f.bundle.js → 142.e4cab96fe9b4d9e202ab.bundle.js} +1 -1
  51. package/dist/{142.afa43cdf98db52b553cc.bundle.js → 143.91d60fc87a9f3bf614ee.bundle.js} +1 -1
  52. package/dist/{143.5f179c457fc4e9102dac.bundle.js → 144.7d3761925ade762326c0.bundle.js} +1 -1
  53. package/dist/{144.bed1362e8e1bf28f2474.bundle.js → 145.b0d65506bac9d85fd11d.bundle.js} +1 -1
  54. package/dist/{145.ead9efabb724dfeb0e19.bundle.js → 146.e18068fcd4ee36b5157b.bundle.js} +1 -1
  55. package/dist/{146.5c85b4c6e5b066c1b871.bundle.js → 147.bdd8863ef06850f70ed2.bundle.js} +1 -1
  56. package/dist/{147.c172219a8a4bd0f6c056.bundle.js → 148.940fcbe51089039670eb.bundle.js} +1 -1
  57. package/dist/{148.28bebc68de5695208221.bundle.js → 149.4733b779af0153d4f0ed.bundle.js} +1 -1
  58. package/dist/{15.22af29a4663786436ba9.bundle.js → 15.a230a721f2ae65bc696a.bundle.js} +1 -1
  59. package/dist/{149.6ca53f69236ab27aa67e.bundle.js → 150.f253463af31571e28675.bundle.js} +1 -1
  60. package/dist/{150.8172cd2b4dddb58bf148.bundle.js → 151.8f939cef0c5e7058f043.bundle.js} +1 -1
  61. package/dist/{151.209c122817bdae72ca11.bundle.js → 152.9bdcd32ec314ae337e05.bundle.js} +1 -1
  62. package/dist/{152.ee6121b3ed275c8e2e96.bundle.js → 153.c65dcfbcca27aaaf8466.bundle.js} +1 -1
  63. package/dist/{153.01af8362898ed0ff4f07.bundle.js → 154.cbd8f01ad1767255a95c.bundle.js} +1 -1
  64. package/dist/{154.1a185f1296920a9bf4f8.bundle.js → 155.0592294f32657c50a11d.bundle.js} +1 -1
  65. package/dist/{155.9b4a15ea77ec62764a32.bundle.js → 156.359aa968ddc6f1a06eac.bundle.js} +1 -1
  66. package/dist/{156.cbdb3e315d0152425838.bundle.js → 157.088b77d7bdf4922fa816.bundle.js} +1 -1
  67. package/dist/{157.90de0b1ea209ff696c9e.bundle.js → 158.fb96da9c00cac7e8a19e.bundle.js} +1 -1
  68. package/dist/{158.2f8002340e867ac58b91.bundle.js → 159.c23d12c3993f5c5c2006.bundle.js} +1 -1
  69. package/dist/{16.5a4f7749c7625c7f6f28.bundle.js → 16.0cbdbc8876793c2ae41c.bundle.js} +1 -1
  70. package/dist/{159.6736108c1fa2b4eafd4f.bundle.js → 160.9eb62776bf9e10b81c76.bundle.js} +1 -1
  71. package/dist/{160.d46763b6750067017f78.bundle.js → 161.2c3145b5de74c9f65c3e.bundle.js} +1 -1
  72. package/dist/162.e6bbc34103d629349db3.bundle.js +1 -0
  73. package/dist/{162.faf20ecd7edbfeb433f7.bundle.js → 163.3fc9a9f82aa15965d68c.bundle.js} +1 -1
  74. package/dist/{163.a2dadd41b54ec7cf64c3.bundle.js → 164.939a016cc2c9055c35bc.bundle.js} +1 -1
  75. package/dist/{164.d4542931bcfc40f30b0b.bundle.js → 165.62966e1a7ed098b8b052.bundle.js} +1 -1
  76. package/dist/{165.78f7fab494d1436d90e0.bundle.js → 166.317e1a9af0eb4d27e337.bundle.js} +1 -1
  77. package/dist/{166.486fb397b80473b0d11e.bundle.js → 167.ef1fe9220f2312c915a4.bundle.js} +1 -1
  78. package/dist/{167.efcd257081f26115b782.bundle.js → 168.5b7a44af5a3e6b932207.bundle.js} +1 -1
  79. package/dist/{168.a15a524f8b75e42a4b00.bundle.js → 169.6d1fda273dc567acf2d4.bundle.js} +1 -1
  80. package/dist/{17.4cbad7cd0c476b9a4ec4.bundle.js → 17.1d6f7f9aba918cc3decf.bundle.js} +2 -2
  81. package/dist/{169.b948971765f11f54b0d5.bundle.js → 170.cd9b1ccbe849ad539a06.bundle.js} +1 -1
  82. package/dist/{170.10f0db38ff475fa7e988.bundle.js → 171.b38590952676e1bf45f6.bundle.js} +1 -1
  83. package/dist/{171.81243c7d1f615f7c84be.bundle.js → 172.f02528ec9e8930a9f11b.bundle.js} +1 -1
  84. package/dist/{172.19467709a3cfb3940ba5.bundle.js → 173.c00a113e46ff0860f2d5.bundle.js} +1 -1
  85. package/dist/{173.c5229151bdf08623a7de.bundle.js → 174.4f9ba56ea66e7f08dd66.bundle.js} +1 -1
  86. package/dist/{174.a2c9a9b979d7c7793177.bundle.js → 175.ca69921b516a7120f4de.bundle.js} +1 -1
  87. package/dist/{175.2f2a140f48766e99c704.bundle.js → 176.c36ceb45245e5867d471.bundle.js} +1 -1
  88. package/dist/{176.267080123b2d0469175d.bundle.js → 177.d619467f12ebaeb5809e.bundle.js} +1 -1
  89. package/dist/{177.8f5a1a113b1f4f3f348e.bundle.js → 178.eb4d382e42e7f210f648.bundle.js} +1 -1
  90. package/dist/{178.9cac406665b8550e16b9.bundle.js → 179.7e48d827d3049d3bf9e5.bundle.js} +1 -1
  91. package/dist/18.46018108483df47d5f25.bundle.js +3 -0
  92. package/dist/180.1c6edd70ccab1e005c61.bundle.js +1 -0
  93. package/dist/{180.4fa14c1d5036979d5263.bundle.js → 181.0f23ba65bf663bdcfdaf.bundle.js} +1 -1
  94. package/dist/{181.1cef448de3c0f1136a20.bundle.js → 182.585920e0f9ef6f6fada4.bundle.js} +1 -1
  95. package/dist/{182.56348d343ee5cf092e0d.bundle.js → 183.ce67abd90d9ce6e5a86e.bundle.js} +1 -1
  96. package/dist/{183.9ee4e46cf1e1368e86ed.bundle.js → 184.00c0eb434fd58d0f957d.bundle.js} +1 -1
  97. package/dist/{184.41ee6066caff3af33283.bundle.js → 185.3bcaea2a49a601f14ce3.bundle.js} +1 -1
  98. package/dist/{185.6ed725999b50da70e228.bundle.js → 186.bcc4e22c039e2d08fd76.bundle.js} +1 -1
  99. package/dist/{186.bb3d9af2735c37664e55.bundle.js → 187.04c2109c0923760d656c.bundle.js} +1 -1
  100. package/dist/{187.90162eddabd6aff17165.bundle.js → 188.019189cd82e303942d64.bundle.js} +1 -1
  101. package/dist/{188.f3e6b7eeb6822cfdc63d.bundle.js → 189.1acd363120af096c0ae6.bundle.js} +1 -1
  102. package/dist/19.115926f7947f41eafc07.bundle.js +2 -0
  103. package/dist/{189.890ee3dde9a48048c9cc.bundle.js → 190.517734e406840dd19dba.bundle.js} +1 -1
  104. package/dist/{190.e981b1883942821aeda7.bundle.js → 191.b957f91e6bf5fa64f590.bundle.js} +1 -1
  105. package/dist/{191.b411571959305e3646e6.bundle.js → 192.c5ed502bf6dfad8bc428.bundle.js} +1 -1
  106. package/dist/{192.25a8b9411da49d711c94.bundle.js → 193.140a77ef984359dba581.bundle.js} +1 -1
  107. package/dist/{193.fd8099b7720c4dd43846.bundle.js → 194.49f6a3b7df5b08b28658.bundle.js} +1 -1
  108. package/dist/{194.899581165008ec35c6f2.bundle.js → 195.7f2abb8a1e4463eaf4ea.bundle.js} +1 -1
  109. package/dist/{195.b8c5e9f217902accb057.bundle.js → 196.743add5e83c4da5e5220.bundle.js} +1 -1
  110. package/dist/{196.7ea52062f0a2531b65b0.bundle.js → 197.acf2f399d865101ce614.bundle.js} +1 -1
  111. package/dist/{197.ec9eab135af5dccf29c1.bundle.js → 198.822509c7d75e9a24902e.bundle.js} +1 -1
  112. package/dist/{198.b3187d611303cfd5f2d8.bundle.js → 199.a289fc4f3a0a3c1941c0.bundle.js} +1 -1
  113. package/dist/{2.f061edb2896b6301bec7.bundle.js → 2.98d9fedbafd383e0a05f.bundle.js} +2 -2
  114. package/dist/{20.4de171699394fd8bdbef.bundle.js → 20.7bd6a59261134bc253ce.bundle.js} +1 -1
  115. package/dist/200.9e2f429b1ec4a99c71a4.bundle.js +1 -0
  116. package/dist/{200.02004bd0480acf25b3a6.bundle.js → 201.bf14358458dd696f9b9f.bundle.js} +1 -1
  117. package/dist/202.376b8a02afcb0a4a5fe7.bundle.js +1 -0
  118. package/dist/{202.10ce39fbc37365892b07.bundle.js → 203.f88b95576bad48e016dd.bundle.js} +1 -1
  119. package/dist/{203.057de94e85bb04e21ee1.bundle.js → 204.3d0b6471e3b2593087a5.bundle.js} +1 -1
  120. package/dist/{204.c9577ddc3e4f2eff1518.bundle.js → 205.e169c392a32dd366db94.bundle.js} +1 -1
  121. package/dist/{205.385bff094a30cca9835a.bundle.js → 206.3388e7caca73519f643b.bundle.js} +1 -1
  122. package/dist/{206.7ce70e6227ec693d750f.bundle.js → 207.fa39e4d73523ed99635f.bundle.js} +1 -1
  123. package/dist/{207.508f7ab02aa8a28a2c74.bundle.js → 208.11912b5d2db95047c8dc.bundle.js} +1 -1
  124. package/dist/{208.8d55a668719423f97b1f.bundle.js → 209.6ce93f03496549435606.bundle.js} +1 -1
  125. package/dist/{21.04a1f4a0bc7a1dd81657.bundle.js → 21.d2108da9e9ce4a04d6fe.bundle.js} +1 -1
  126. package/dist/{209.1a590652b60bd1ebd56f.bundle.js → 210.c0dd483f6477fb3172d8.bundle.js} +1 -1
  127. package/dist/211.b8e27072ccc0ea871f42.bundle.js +1 -0
  128. package/dist/{211.210c65ad98a9f87a8edd.bundle.js → 212.36a05dd50027972b0203.bundle.js} +1 -1
  129. package/dist/{212.ad7c8b87e4c22b15d1a7.bundle.js → 213.f58ca88f305c2ea0a780.bundle.js} +1 -1
  130. package/dist/214.aa0f685cd8ddc8b82528.bundle.js +1 -0
  131. package/dist/215.86d95d7d64a7207d0fc0.bundle.js +1 -0
  132. package/dist/{215.0f06504928b6f322bab7.bundle.js → 216.09d37c6890c3d58141a9.bundle.js} +1 -1
  133. package/dist/{216.810bc408538d4895dd7c.bundle.js → 217.08b43631a093a35ceabb.bundle.js} +1 -1
  134. package/dist/{217.7a480940f353ee16c96b.bundle.js → 218.04e724364e78362f0269.bundle.js} +1 -1
  135. package/dist/{218.2bddc5cb6b0b4a78b9e9.bundle.js → 219.c7c762006847e7306c6a.bundle.js} +1 -1
  136. package/dist/{22.043a7aaf571339cd5488.bundle.js → 22.4c901f6b31b519473c8e.bundle.js} +1 -1
  137. package/dist/{219.1ba4630d28ea5f7e0413.bundle.js → 220.cbcd037f74740a7ca6b4.bundle.js} +1 -1
  138. package/dist/{220.72e8a728288f5e31c517.bundle.js → 221.e4550bdbd4cac4b67158.bundle.js} +1 -1
  139. package/dist/222.f2bc38101b720e4477c4.bundle.js +1 -0
  140. package/dist/{222.acc090967bed54a503fe.bundle.js → 223.3e231fbb36f3189d5d3c.bundle.js} +1 -1
  141. package/dist/224.6f8d953bb5a0a8af0273.bundle.js +1 -0
  142. package/dist/{224.809f30bbd6538d4146d4.bundle.js → 225.ae24f911d5cea36373f3.bundle.js} +1 -1
  143. package/dist/{225.ef9c6c5dd48e5627386e.bundle.js → 226.d08d12e06c0bcb740d86.bundle.js} +1 -1
  144. package/dist/{226.3f67931e10b3e8e973f7.bundle.js → 227.8c161d770ba4c7eca89e.bundle.js} +1 -1
  145. package/dist/228.0d8fa0ac047254e3ca39.bundle.js +1 -0
  146. package/dist/{228.fe0a53662ef4f0ea8021.bundle.js → 229.c02867f6486e17c8c721.bundle.js} +1 -1
  147. package/dist/{23.214659b8307a8b526c4a.bundle.js → 23.5f8f13edd4fecbb4a7de.bundle.js} +1 -1
  148. package/dist/{229.90996a69b404a8d7adf2.bundle.js → 230.56cb1b32e6262ec0e9e5.bundle.js} +1 -1
  149. package/dist/{230.547dca73ab65c62e0b2a.bundle.js → 231.ab1ee7fb0f67ff8a02a6.bundle.js} +1 -1
  150. package/dist/{231.4f6e352480b2a62f65cf.bundle.js → 232.2c28a90f6c7046d2860f.bundle.js} +1 -1
  151. package/dist/{232.371f100d4f9c6b54abdc.bundle.js → 233.2e46b7799b959ad6c3c1.bundle.js} +1 -1
  152. package/dist/{233.3a6c18b567c553c2bfc0.bundle.js → 234.961b347e98b4edc00293.bundle.js} +1 -1
  153. package/dist/{234.7fcbaa0c655372e5239f.bundle.js → 235.528c8a04438ac8612166.bundle.js} +1 -1
  154. package/dist/{235.667e9e865d0c55618529.bundle.js → 236.fa506980bd389e2dcf07.bundle.js} +1 -1
  155. package/dist/{236.64ad84e5e5cf8420e3d3.bundle.js → 237.57c458a4cc14d01d79c7.bundle.js} +1 -1
  156. package/dist/{237.5496017c121856c29839.bundle.js → 238.21f728a838e232959f7c.bundle.js} +1 -1
  157. package/dist/{238.b2f62417480358f3aeb8.bundle.js → 239.baf6c6ba45d6cde32587.bundle.js} +1 -1
  158. package/dist/{24.a4b4d14d58787aae2bb3.bundle.js → 24.824f22b4e57b06900919.bundle.js} +1 -1
  159. package/dist/{239.d127ee50248b2e121d8a.bundle.js → 240.b24773087136351042cf.bundle.js} +1 -1
  160. package/dist/{240.c29cfcce94d65a067900.bundle.js → 241.63d119969c615b148723.bundle.js} +1 -1
  161. package/dist/{241.7ac34ebc61bc5efa7c63.bundle.js → 242.5f4eae23393711e4cc26.bundle.js} +1 -1
  162. package/dist/{242.37a6d363be1218b79b96.bundle.js → 243.f4d1f8509ef8f836d4b5.bundle.js} +1 -1
  163. package/dist/{243.b7071f131ee27952ff5e.bundle.js → 244.370a3e41950bded3731c.bundle.js} +1 -1
  164. package/dist/{244.78aeea49a7d2ce079279.bundle.js → 245.8adc83fae2a7dbccd056.bundle.js} +1 -1
  165. package/dist/{245.0d5944d99695e131eb9e.bundle.js → 246.6716ed0619153dc17215.bundle.js} +1 -1
  166. package/dist/{246.8bec7af8d65ea7e892e4.bundle.js → 247.6d0fa4e89c2f76c28b6e.bundle.js} +1 -1
  167. package/dist/{247.f0de1976dd01f512815c.bundle.js → 248.1a72b9412c12f76c172b.bundle.js} +1 -1
  168. package/dist/{248.e9f35b7e2bd6a8c93445.bundle.js → 249.62928eb313569190cb3c.bundle.js} +1 -1
  169. package/dist/{25.07157a5754026ebfca68.bundle.js → 25.c097d5a777cad7d84b65.bundle.js} +1 -1
  170. package/dist/{249.9421b55b30175fff9055.bundle.js → 250.357e46a5006b9c851cf2.bundle.js} +1 -1
  171. package/dist/{250.85855003c5c3a888f410.bundle.js → 251.fe4c32e52543e6a7de78.bundle.js} +1 -1
  172. package/dist/{251.fc18aaf41dc94a94970e.bundle.js → 252.0829a5d026543e818a9a.bundle.js} +1 -1
  173. package/dist/{252.b358dd85b1fdc0c4f527.bundle.js → 253.3d42bdb3fa317e62a29c.bundle.js} +1 -1
  174. package/dist/{253.5565201a8a2d5904d59f.bundle.js → 254.387f9d51023e66a025c8.bundle.js} +1 -1
  175. package/dist/{254.d420ab9f094a0c4f0812.bundle.js → 255.15b19a883116c2b0acfa.bundle.js} +1 -1
  176. package/dist/{255.836e5a69fd34bb5be73c.bundle.js → 256.707e884364772c1aeea1.bundle.js} +1 -1
  177. package/dist/{256.c51cdf38904e54c493f6.bundle.js → 257.ce88edd53efe3dd6728e.bundle.js} +1 -1
  178. package/dist/{257.745d505c44cac9ecbdcb.bundle.js → 258.b32c33ebedef68671551.bundle.js} +1 -1
  179. package/dist/{258.ad1e8bc5426760cd7ff5.bundle.js → 259.dfe0ff2404eaa1e7737d.bundle.js} +1 -1
  180. package/dist/{26.69b15d62bbc31dda14a9.bundle.js → 26.ccdaf696855d307fed38.bundle.js} +1 -1
  181. package/dist/{259.1f263b72f0bcc10f3472.bundle.js → 260.18b4025159181b51f397.bundle.js} +1 -1
  182. package/dist/{260.5d8f798ceab03ffd005e.bundle.js → 261.bafa7eee9d28177b33df.bundle.js} +1 -1
  183. package/dist/{261.cfc91fd6259161171ef8.bundle.js → 262.0ee13b2a52662adb56d2.bundle.js} +1 -1
  184. package/dist/{262.bb79058c715d910286de.bundle.js → 263.842f3121647811d8ad1f.bundle.js} +1 -1
  185. package/dist/264.14a3cc9fb3d24968ba20.bundle.js +1 -0
  186. package/dist/{264.5dbd1c96b788f865e8a3.bundle.js → 265.97013d9a135cf1ae2f08.bundle.js} +1 -1
  187. package/dist/{265.91fe4801d0ae3c7c6013.bundle.js → 266.3afbe2eef7f5abc83d96.bundle.js} +1 -1
  188. package/dist/{266.faf272fe407c865552d5.bundle.js → 267.ed53f710d9eb2b4992ae.bundle.js} +1 -1
  189. package/dist/{267.51d61308ef19d0f31ae3.bundle.js → 268.b99fc97c883652157c03.bundle.js} +1 -1
  190. package/dist/{268.d4496b954a694a12f563.bundle.js → 269.e3961d04d5c1d86feefd.bundle.js} +1 -1
  191. package/dist/{27.53acb4e8dbb891f6f608.bundle.js → 27.806a24b738ae5027c50c.bundle.js} +1 -1
  192. package/dist/{269.39786de80a65a060ba15.bundle.js → 270.bc2a313a78cee4fc482d.bundle.js} +1 -1
  193. package/dist/{270.64089e07bc299884bcbc.bundle.js → 271.af4b4b1ca87245f5520b.bundle.js} +1 -1
  194. package/dist/{271.a3c76fa258d0ed1c68de.bundle.js → 272.677688089491bf3dbdbf.bundle.js} +1 -1
  195. package/dist/{272.fc74d1eaa74ffe3cbed8.bundle.js → 273.f192f02c62686bb8a626.bundle.js} +1 -1
  196. package/dist/{273.363c48cd824d9b16511d.bundle.js → 274.e314dc000a3629d1eedc.bundle.js} +1 -1
  197. package/dist/{274.09dd817db059d1e2027b.bundle.js → 275.5251be542735a0c08a71.bundle.js} +1 -1
  198. package/dist/276.25602f408fcb4c4dcefa.bundle.js +1 -0
  199. package/dist/{275.1d433118168273895d76.bundle.js → 277.775687415cb6c244ac3f.bundle.js} +1 -1
  200. package/dist/{28.aad16b51f82fef579d6f.bundle.js → 28.9b3779d4f00f941848a4.bundle.js} +1 -1
  201. package/dist/{281.2c5c1a5308b7d1b13676.bundle.js → 283.9f8858b300e85fc22ab8.bundle.js} +1 -1
  202. package/dist/{282.21b470589ebf50a754ca.bundle.js → 284.0f321bfa3a806a1befb9.bundle.js} +1 -1
  203. package/dist/{283.961a0723a6dd6d6d20a7.bundle.js → 285.7066d6a4f34081ed6eb7.bundle.js} +1 -1
  204. package/dist/{284.3bcff740d5abd555442c.bundle.js → 286.18e6856ff42dcb9daa4c.bundle.js} +1 -1
  205. package/dist/{285.d0c6c3b0f4c16444ebfe.bundle.js → 287.0ca383b14f3c7c514a17.bundle.js} +1 -1
  206. package/dist/{286.7d732e8410d0dd046fb1.bundle.js → 288.bd3667430476f3c00dde.bundle.js} +1 -1
  207. package/dist/{287.f8db56b77fbb5c6dd38a.bundle.js → 289.0b7c7178d0455d6f6fd1.bundle.js} +1 -1
  208. package/dist/{29.15213e151364f5ecfcd5.bundle.js → 29.b81c87fc5342ab86bb70.bundle.js} +1 -1
  209. package/dist/{288.8832d23379c6281a398f.bundle.js → 290.518f1e5e4f5937eebecb.bundle.js} +1 -1
  210. package/dist/{289.c7d6f3a82e31d17e2011.bundle.js → 291.199f56de69969b1fd0d8.bundle.js} +1 -1
  211. package/dist/{290.67cc2dcf2cef8f4c33c3.bundle.js → 292.3cb1d369637cb5548086.bundle.js} +1 -1
  212. package/dist/{291.038fdef3df3ba7f946c2.bundle.js → 293.d6e532f46fcd51253531.bundle.js} +1 -1
  213. package/dist/{292.301d98f1f2a43b128b8e.bundle.js → 294.3d639b1f967a64ac9b50.bundle.js} +1 -1
  214. package/dist/{293.4e1ffa1e4b20c2d7af2a.bundle.js → 295.2f19000ca5794f12ddb5.bundle.js} +1 -1
  215. package/dist/{294.696e31444cc6256fe321.bundle.js → 296.0bd7f553f4094336e63f.bundle.js} +1 -1
  216. package/dist/{295.dca318e4078b71328e54.bundle.js → 297.62415b0a650d20167097.bundle.js} +1 -1
  217. package/dist/{296.241452bb8b8fd4eed62a.bundle.js → 298.5a4b87c6a8c189a079c1.bundle.js} +1 -1
  218. package/dist/{297.238b4a2efa3e2d6d322f.bundle.js → 299.43e2c67878feb2d1bd54.bundle.js} +1 -1
  219. package/dist/{3.004ca7fdd54f69fb403c.bundle.js → 3.a2c895591e5574d18857.bundle.js} +1 -1
  220. package/dist/{30.fd0ba22c1f4947d37d89.bundle.js → 30.3a5bdd692f7555da3c4b.bundle.js} +1 -1
  221. package/dist/{298.29db4e667a0e9192e362.bundle.js → 300.bc21bd800f13d43747e0.bundle.js} +1 -1
  222. package/dist/{299.d171525eeacb4ec26228.bundle.js → 301.d5cf850375788272ee4e.bundle.js} +1 -1
  223. package/dist/{300.27089ba45aae8a39db45.bundle.js → 302.169f7d8e3e4c3a375d2a.bundle.js} +1 -1
  224. package/dist/{301.713cc2fd062d43c3924c.bundle.js → 303.ff95dffdeed9e77ee3cd.bundle.js} +1 -1
  225. package/dist/{302.cf691f0d425977e8328f.bundle.js → 304.f0b694a35ac1f08e94ce.bundle.js} +1 -1
  226. package/dist/{303.0a23ae41f14d004ed155.bundle.js → 305.63d3a31aa566a5cc1356.bundle.js} +1 -1
  227. package/dist/{304.0df49527d28d35eb6f06.bundle.js → 306.3f8b992284282ca8213c.bundle.js} +1 -1
  228. package/dist/{305.adef0eecfe234f6359af.bundle.js → 307.8b2b99a50265c4bf6c9a.bundle.js} +1 -1
  229. package/dist/{306.ccca6079d073f11ae483.bundle.js → 308.0cfe99631e532ad63317.bundle.js} +1 -1
  230. package/dist/{307.78134fdf4ce7f304d79d.bundle.js → 309.547aae3790007e965f07.bundle.js} +1 -1
  231. package/dist/{31.4afb7a17e968b99fcc25.bundle.js → 31.54ff77e2ff626c101707.bundle.js} +1 -1
  232. package/dist/{308.2d5e878851fc4567d5ce.bundle.js → 310.b3d678bc9bc222ee06b5.bundle.js} +1 -1
  233. package/dist/{309.63676f552ab143b004d3.bundle.js → 311.64062972b3ff1a3c4ff5.bundle.js} +1 -1
  234. package/dist/{310.7eff60bf98ff29da94d5.bundle.js → 312.2335cdc12ed57a49c6a7.bundle.js} +1 -1
  235. package/dist/{311.d6f992aaa4599c7f6b42.bundle.js → 313.9520e173fabe4dfe6de6.bundle.js} +1 -1
  236. package/dist/{312.27caf9d771a4f5d5cdbf.bundle.js → 314.89faa3f8c1da1e830b63.bundle.js} +1 -1
  237. package/dist/{313.77ebadf4913583d2069f.bundle.js → 315.cd9877b45ba510eb07fa.bundle.js} +1 -1
  238. package/dist/{314.5a8f07eeb97707c9cd2b.bundle.js → 316.42a740493cf7d6e05e0a.bundle.js} +1 -1
  239. package/dist/{315.3d0aafcd00e3e9d660e3.bundle.js → 317.384500382f1c246c9a7f.bundle.js} +1 -1
  240. package/dist/{316.387a38dbdc74b473b37a.bundle.js → 318.1bc6911b0ee79121b2d9.bundle.js} +1 -1
  241. package/dist/{317.4b482d92ec2bbd0a8383.bundle.js → 319.11151911f8fd99eb0b46.bundle.js} +1 -1
  242. package/dist/{32.075fe8754ea97e7f7fc3.bundle.js → 32.ea0988f8fa58c483dbc9.bundle.js} +1 -1
  243. package/dist/{318.b03fc767ed888eb5ccbd.bundle.js → 320.96d56b343c23228a70e9.bundle.js} +1 -1
  244. package/dist/{319.8139aa7532c46c09869f.bundle.js → 321.fefaaa6c1c8183d9175c.bundle.js} +1 -1
  245. package/dist/{320.6ddd2b8b745f5e3b70da.bundle.js → 322.aea0337378c9209870f0.bundle.js} +1 -1
  246. package/dist/{321.877a11cd71bbc9a5dbe5.bundle.js → 323.f0b82b139b8533c949ec.bundle.js} +1 -1
  247. package/dist/{322.372c2b047b1ec2f9647d.bundle.js → 324.7adab27473111432ab41.bundle.js} +1 -1
  248. package/dist/{323.b7e2a28dfb5bb7aaf51b.bundle.js → 325.2e02fe9305321b1e4bef.bundle.js} +1 -1
  249. package/dist/326.e57ec9c2767e48cda787.bundle.js +1 -0
  250. package/dist/{325.3b562f5f4176555acfb8.bundle.js → 327.95393251845de7ef8041.bundle.js} +1 -1
  251. package/dist/{326.05d1c554dadf34e04b48.bundle.js → 328.51e3f5255cf4cc77f55b.bundle.js} +1 -1
  252. package/dist/{327.0dd17f14774a689cf0bd.bundle.js → 329.950f77e97b11a8c7fa06.bundle.js} +1 -1
  253. package/dist/{33.ef6d9b8af90ededb7e35.bundle.js → 33.742b11606a797fb52ea2.bundle.js} +1 -1
  254. package/dist/{328.13ae52c236489e97275e.bundle.js → 330.89907edcf48a4314525e.bundle.js} +1 -1
  255. package/dist/331.6714f78cd302a75238d6.bundle.js +1 -0
  256. package/dist/{329.1808839ae9d31a459f7d.bundle.js → 332.65d742ba38674f823339.bundle.js} +1 -1
  257. package/dist/{330.3aaf9ed3666747f7f263.bundle.js → 333.a524a4e2158b1deba12a.bundle.js} +1 -1
  258. package/dist/{331.ea30174370df9cd558e7.bundle.js → 334.1744ada30232274070d3.bundle.js} +1 -1
  259. package/dist/{332.bd5a639fb04d7a2e2157.bundle.js → 335.18d6cf37a01e242f1e02.bundle.js} +1 -1
  260. package/dist/{333.97d00b72175a54fb68d3.bundle.js → 336.b24b1a238b76bdd3a3d0.bundle.js} +1 -1
  261. package/dist/{334.431ce8a7110d6ae618a3.bundle.js → 337.6f3e60a22d4324e2b260.bundle.js} +1 -1
  262. package/dist/{335.2e3ee5cb8b39555151a9.bundle.js → 338.700a5f7691aa07a7bef9.bundle.js} +1 -1
  263. package/dist/{336.e976f5b51fbfea25e124.bundle.js → 339.18b8b0f0506ac99b5a9c.bundle.js} +1 -1
  264. package/dist/{34.4efc8e27610045aedb48.bundle.js → 34.1ee34834dbfada8b022e.bundle.js} +1 -1
  265. package/dist/340.0368ff4dfc4af3db461c.bundle.js +1 -0
  266. package/dist/{338.831b8a324346f1599e2b.bundle.js → 341.910334d5418e251bca60.bundle.js} +1 -1
  267. package/dist/{339.323e045a35d3220fe9f0.bundle.js → 342.e98ad19ee4888eab44a6.bundle.js} +1 -1
  268. package/dist/{340.935a1c1f9a35a1c129bb.bundle.js → 343.98459923fa2b3c3b2f1a.bundle.js} +1 -1
  269. package/dist/{341.109d7474283fe68d444a.bundle.js → 344.242e6a2e289b1821ed5a.bundle.js} +1 -1
  270. package/dist/{342.449f34216f5e52c0b080.bundle.js → 345.e06ced8912cae2f59345.bundle.js} +1 -1
  271. package/dist/346.f6a6e478c7cc20aa933d.bundle.js +1 -0
  272. package/dist/347.83fa4df464510c347923.bundle.js +1 -0
  273. package/dist/{345.1a95e7094a69ee0c9613.bundle.js → 348.88952984c08c8d2bfdba.bundle.js} +1 -1
  274. package/dist/{346.60cf78940db162ca9bc9.bundle.js → 349.03a3498542231a26d407.bundle.js} +1 -1
  275. package/dist/35.fe0e87440f59bfe4bbd1.bundle.js +1 -0
  276. package/dist/{347.7753176037d17327265e.bundle.js → 350.12e6747902ff03efc114.bundle.js} +1 -1
  277. package/dist/{348.08c1df47fb00d7777c89.bundle.js → 351.a9c6b798a762571072fc.bundle.js} +1 -1
  278. package/dist/36.dd75d3e740c027954a00.bundle.js +1 -0
  279. package/dist/{37.5bc958ea98f658c74e6f.bundle.js → 37.39cf2f77cf060bccb22f.bundle.js} +2 -2
  280. package/dist/{38.fe5507949994d9c14c96.bundle.js → 38.d6d502541df1c3e3f180.bundle.js} +1 -1
  281. package/dist/{39.a2bfad8b4215d48674d6.bundle.js → 39.45cf7b46a21758f5d8d8.bundle.js} +1 -1
  282. package/dist/{4.13e9d9d6478d01002907.bundle.js → 4.1bc093d17c21a02c84c4.bundle.js} +1 -1
  283. package/dist/{40.48503b9b69c049bf1b70.bundle.js → 40.d3e8007d4b5ed801783f.bundle.js} +1 -1
  284. package/dist/{41.fed402c17d066982fb57.bundle.js → 41.3625d7a4b20ce3a4941c.bundle.js} +1 -1
  285. package/dist/{42.52befbab22e69bb433f4.bundle.js → 42.f869df6f1efea6833695.bundle.js} +1 -1
  286. package/dist/{43.61da2053811c0f3ee46b.bundle.js → 43.110d57b012b666bfef7d.bundle.js} +1 -1
  287. package/dist/{44.c9660924b9c53a3f835f.bundle.js → 44.7870f140ccffc445f12b.bundle.js} +1 -1
  288. package/dist/45.883046f76ca7a1e20227.bundle.js +1 -0
  289. package/dist/{46.987b895714eacb59cda9.bundle.js → 46.f20e5069c42b9f9948c7.bundle.js} +1 -1
  290. package/dist/{47.32904b5b7445c997858b.bundle.js → 47.e8a3a23a92ef57da766f.bundle.js} +2 -2
  291. package/dist/{48.1dbc4f311d388c5e860e.bundle.js → 48.834dcb9f85755d08f098.bundle.js} +1 -1
  292. package/dist/{49.2f503ecb8b6c6ef4a783.bundle.js → 49.260675445b3147515b95.bundle.js} +1 -1
  293. package/dist/5.d5efa9feef4142dceb95.bundle.js +1 -0
  294. package/dist/{50.77842af2f9c8bb5f870b.bundle.js → 50.7fc95b0da6f0afccc392.bundle.js} +1 -1
  295. package/dist/51.23078029007a1b93cc36.bundle.js +1 -0
  296. package/dist/{51.3f22305963e051eecbe3.bundle.js → 52.e8ed8d2448d367b9ab16.bundle.js} +1 -1
  297. package/dist/{52.4e8a1d6b1fd0fca771bf.bundle.js → 53.954712c02b6903aeda8a.bundle.js} +1 -1
  298. package/dist/{53.2c81a8eff9870cc15147.bundle.js → 54.bc3f9bd909d88729da36.bundle.js} +1 -1
  299. package/dist/55.0c573b620b2b6af2fb3e.bundle.js +1 -0
  300. package/dist/{55.7469e86d5a762a26fa2a.bundle.js → 56.87baf6bc7bcb2c3883eb.bundle.js} +1 -1
  301. package/dist/{56.4b10b9c5ccf4b1303cf2.bundle.js → 57.8920858311c7c8c5aa01.bundle.js} +1 -1
  302. package/dist/{57.146a187effd26fa6177d.bundle.js → 58.bc282b12feff15f069af.bundle.js} +1 -1
  303. package/dist/{58.a8c536c0056134028712.bundle.js → 59.d7c4dd581846f32d9721.bundle.js} +1 -1
  304. package/dist/6.33f7dc2f0134674478b6.bundle.js +1 -0
  305. package/dist/{59.308f6dc1cc293202893e.bundle.js → 60.3a828140923ef580e6a5.bundle.js} +1 -1
  306. package/dist/{60.93b697b695b2d4db8f94.bundle.js → 61.c2114b2660a32b3ef03c.bundle.js} +1 -1
  307. package/dist/62.71512fb0cfad53e626ba.bundle.js +1 -0
  308. package/dist/{62.e31d150a37b1a5512859.bundle.js → 63.8fc4dddc1d8730c26e94.bundle.js} +1 -1
  309. package/dist/{63.c6ace2bddfc73e9f19b6.bundle.js → 64.40db4d8753063c722425.bundle.js} +1 -1
  310. package/dist/{64.a2480d961d60435044c1.bundle.js → 65.efe12721a27dd1f188c2.bundle.js} +1 -1
  311. package/dist/{65.d10dd3cb67f53d99a6ca.bundle.js → 66.efe9d51dcae23e59e31c.bundle.js} +1 -1
  312. package/dist/{66.50df6f012d7cc308b9f2.bundle.js → 67.0cf588aea35f464cae8e.bundle.js} +1 -1
  313. package/dist/{67.3fda2c5db81d96431b4b.bundle.js → 68.0f955a6fcc4f68231a80.bundle.js} +1 -1
  314. package/dist/{68.869c1e7064c11322ef03.bundle.js → 69.033cfeeec9df7512fdc3.bundle.js} +1 -1
  315. package/dist/7.169d379582767438ae98.bundle.js +1 -0
  316. package/dist/{69.39a8350e9361d0a438f8.bundle.js → 70.cb238b1ed556c8726e9e.bundle.js} +1 -1
  317. package/dist/{70.c7cf4ef0824344f073d8.bundle.js → 71.bb921adba7746069f33c.bundle.js} +1 -1
  318. package/dist/72.c04451433a5ca79bbccf.bundle.js +1 -0
  319. package/dist/{71.971c2ea4f2da7b2aa01d.bundle.js → 73.0ac098ae0911025f5f14.bundle.js} +1 -1
  320. package/dist/{72.bd8f94a264a113a4a0f1.bundle.js → 74.2055b6a99a71cc6d5477.bundle.js} +1 -1
  321. package/dist/{74.d37bdd8d93965209533b.bundle.js → 75.96f7d9b0166f14f969c5.bundle.js} +1 -1
  322. package/dist/{75.5a0f20e2ff76016b90c4.bundle.js → 76.1d80787dcc64bd68d2cf.bundle.js} +1 -1
  323. package/dist/{76.1da8486d8e34aba63aaa.bundle.js → 77.ef2547ccc43eddc6e263.bundle.js} +1 -1
  324. package/dist/{77.5603a2f42c03e9a60bca.bundle.js → 78.02c246f3394f43c6f79f.bundle.js} +1 -1
  325. package/dist/{78.cb21ce486a2e7103a5d9.bundle.js → 79.d67d67fad4b110a4d621.bundle.js} +1 -1
  326. package/dist/{7.0d6b451c3b56ee9d14ba.bundle.js → 8.ba66fb677093ae4a2932.bundle.js} +11 -11
  327. package/dist/{79.81913abe8d72f0fd2243.bundle.js → 80.ac62a813e0bc16ea2298.bundle.js} +1 -1
  328. package/dist/{80.326e0b168888bbe1157b.bundle.js → 81.eb52424a90266c087aee.bundle.js} +1 -1
  329. package/dist/{81.8f7d84e5a0aa9eea1aab.bundle.js → 82.760ddbfe6cf1817ba419.bundle.js} +1 -1
  330. package/dist/{82.0f6218f01e4e4f955834.bundle.js → 83.82f7a5c037a299dd09b0.bundle.js} +1 -1
  331. package/dist/{83.17521cbbe57dbdab16b6.bundle.js → 84.955cb73cf6b43a099c30.bundle.js} +1 -1
  332. package/dist/{84.6f326eb774b0838c8784.bundle.js → 85.a3879076c42d5938b278.bundle.js} +1 -1
  333. package/dist/{85.0e228c6e29f15f2b8dbc.bundle.js → 86.48d5613b1b25c8fac4f7.bundle.js} +1 -1
  334. package/dist/{86.b2f0c3fc2ffba505c48b.bundle.js → 87.97c8269554fb5e67b802.bundle.js} +1 -1
  335. package/dist/{87.55d246dbb0a855f3eb14.bundle.js → 88.3246e3b909634902b77b.bundle.js} +1 -1
  336. package/dist/{88.7e2a621ad5c10ef09398.bundle.js → 89.15ada099d4278783461b.bundle.js} +1 -1
  337. package/dist/9.af28c78685713e3b56bf.bundle.js +1 -0
  338. package/dist/{89.b3cb104714565da76323.bundle.js → 90.5e385d86d6e22032d581.bundle.js} +1 -1
  339. package/dist/{90.12322edd4effa5656b59.bundle.js → 91.a551333df01cbcc551da.bundle.js} +1 -1
  340. package/dist/{91.1a262c491ff1bbcf5078.bundle.js → 92.1169feddd87e05cee667.bundle.js} +1 -1
  341. package/dist/{92.ed70e3b240a28d971d54.bundle.js → 93.fb51ff09570854a737fc.bundle.js} +1 -1
  342. package/dist/{93.5ac89f8d41a46819e59c.bundle.js → 94.04beff733558fdc50dc7.bundle.js} +1 -1
  343. package/dist/{94.1d8b4e9bd2a96f832dd7.bundle.js → 95.2837ec4d33b7bc3a6a1e.bundle.js} +1 -1
  344. package/dist/{95.afff0a4c33382bd1ed81.bundle.js → 96.d25531cc9483f9aa0c0b.bundle.js} +1 -1
  345. package/dist/{96.a505124be8dac6401c11.bundle.js → 97.555c253f57b6df67be73.bundle.js} +1 -1
  346. package/dist/{97.6853aeafb525f21053b5.bundle.js → 98.9df5f9330e606b9bf789.bundle.js} +1 -1
  347. package/dist/{98.a05f20feb5e16050ac66.bundle.js → 99.00cadb9351ee4cd876a6.bundle.js} +1 -1
  348. package/dist/{bundle.d2a0cda84a6020900c71.bundle.js → bundle.8f814d1fc03f49465512.bundle.js} +16 -16
  349. package/dist/css/clustermanagement.css +5 -0
  350. package/dist/css/repositories.css +1 -1
  351. package/dist/i18n/locale-en.json +36 -0
  352. package/dist/i18n/locale-fr.json +33 -1
  353. package/dist/index.html +3 -3
  354. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  355. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  356. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  357. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  358. package/dist/js/angular/import/templates/settingsModal.html +12 -3
  359. package/dist/js/angular/repositories/templates/manage-remote-location-dialog.template.html +112 -0
  360. package/dist/js/angular/security/templates/user.html +1 -1
  361. package/dist/js/angular/templates/modal/add-location.html +11 -4
  362. package/dist/license-checker.json +2 -2
  363. package/dist/{main.fa619ec63a04e1a07cd6.bundle.js → main.fc8cc28bacad45318a9f.bundle.js} +1 -1
  364. package/dist/pages/aclmanagement.html +2 -2
  365. package/dist/pages/autocomplete.html +1 -1
  366. package/dist/pages/choose-repository-type.html +1 -1
  367. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  368. package/dist/pages/create-index.html +1 -1
  369. package/dist/pages/dependencies.html +1 -1
  370. package/dist/pages/domainRangeInfo.html +2 -2
  371. package/dist/pages/edit.html +1 -1
  372. package/dist/pages/explore.html +1 -1
  373. package/dist/pages/export.html +1 -1
  374. package/dist/pages/find.html +1 -1
  375. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  376. package/dist/pages/graphs-visualizations.html +7 -7
  377. package/dist/pages/guides.html +1 -1
  378. package/dist/pages/import.html +2 -2
  379. package/dist/pages/jdbc-create.html +1 -1
  380. package/dist/pages/monitor/backup-and-restore.html +1 -1
  381. package/dist/pages/monitor/queries.html +1 -1
  382. package/dist/pages/monitor/resources.html +1 -1
  383. package/dist/pages/namespaces.html +2 -2
  384. package/dist/pages/plugins.html +1 -1
  385. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  386. package/dist/pages/rdfrank.html +2 -2
  387. package/dist/pages/repositories.html +181 -5
  388. package/dist/pages/repository.html +1 -1
  389. package/dist/pages/similarity-indexes.html +1 -1
  390. package/dist/pages/sparql-editor.html +1 -1
  391. package/dist/pages/sparql-template-create.html +1 -1
  392. package/dist/pages/ux-test1.html +2 -2
  393. package/dist/pages/webapi.html +2 -2
  394. package/dist/{polyfills-dom.43664e8ce3b2d7d3959f.bundle.js → polyfills-dom.d5d07f91752002ce6541.bundle.js} +1 -1
  395. package/dist/res/swagger5/index.html +12 -12
  396. package/dist/{vendor.2bc8e327262ee85afa52.bundle.js → vendor.9988a39373ab6f1ca0f2.bundle.js} +4 -4
  397. package/dist/{vendors~polyfills-core-js.18202545fd5e7ab0712d.bundle.js → vendors~polyfills-core-js.b07b816a18b92c5e5f5f.bundle.js} +1 -1
  398. package/package.json +1 -1
  399. package/dist/103.40f2dbdccc572f7875b3.bundle.js +0 -1
  400. package/dist/161.39f87c352f42106bacaf.bundle.js +0 -1
  401. package/dist/179.64e58d733460f4636d45.bundle.js +0 -1
  402. package/dist/18.a7609828cd2fd3058d18.bundle.js +0 -3
  403. package/dist/19.6789bda5aa81fc5846c0.bundle.js +0 -2
  404. package/dist/199.776cdb50bdeae7835801.bundle.js +0 -1
  405. package/dist/201.9626945256f81354e642.bundle.js +0 -1
  406. package/dist/210.852e87d929308f655026.bundle.js +0 -1
  407. package/dist/213.f2847ddf6a7a83fbcc10.bundle.js +0 -1
  408. package/dist/214.a1fa76d230f52433bb66.bundle.js +0 -1
  409. package/dist/221.fede5a9a0339337860cb.bundle.js +0 -1
  410. package/dist/223.1ce96be3b072429a8c61.bundle.js +0 -1
  411. package/dist/227.72d3fff553f2c1506029.bundle.js +0 -1
  412. package/dist/263.2aa1ef932b9751fcfb15.bundle.js +0 -1
  413. package/dist/324.bbf14b2fef309ada6ac2.bundle.js +0 -1
  414. package/dist/337.a0979969efa50dcfeaef.bundle.js +0 -1
  415. package/dist/343.884ced397fe008596b42.bundle.js +0 -1
  416. package/dist/344.da30ac0d8a3f8c47338a.bundle.js +0 -1
  417. package/dist/35.730709a36118182f408e.bundle.js +0 -1
  418. package/dist/36.bc56e91f8a7dc45ea2b8.bundle.js +0 -1
  419. package/dist/45.a478b3b8def2e18361f2.bundle.js +0 -1
  420. package/dist/5.30cc562dd4e36c8fff5f.bundle.js +0 -1
  421. package/dist/54.a0732a95394329590499.bundle.js +0 -1
  422. package/dist/6.f5dae781ae6aed8bb4f5.bundle.js +0 -1
  423. package/dist/61.fff95e1f2048dae2a2e0.bundle.js +0 -1
  424. package/dist/73.d8ce553b26bf8f2daff1.bundle.js +0 -1
  425. package/dist/8.469126564c7b691ccb33.bundle.js +0 -1
  426. package/dist/9.0d37b940f46679eaca4b.bundle.js +0 -1
  427. package/dist/99.27862271b2265d287af4.bundle.js +0 -1
@@ -1,3 +1,3 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[17,27,28,29,41,42,53,76,121,122,123,124,125,126,127,129,130,159,194,202,241,250,255,272,274],{101:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",r),r.$inject=["$http"];function r(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,r){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:r}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,r,n){return e.get("rest/dependencies/matrix",{params:{mode:r,classes:_.map(t,(function(e){return e.name})),graphURI:n}})},getRelationshipsClasses:function(t,r){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:r}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,r,n){return e.get("rest/dependencies/predicates",{params:{from:t,to:r,mode:"all",graphURI:n}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let r={headers:{"Content-Type":"application/json"}};return r=Object.assign(r,t),e.post("rest/explore-graph/graph",r)},getRdfsLabelAndComment:function(t,r,n){const i=n||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(i,{uri:t,languages:r}),headers:{Accept:"application/json"}})}}}},172:function(e,t){function r(e){return{initLazyList:function(t,r,n,i,a){return e((function(){const e=t+i-1,o=Math.max(0-i,e),s=Math.min(e+r-1,a.length);o>s?n([]):$.isArray(a)&&n(a.slice(o,s+1))}),100,!0)}}}angular.module("graphdb.framework.graphexplore.services.uiscroll",[]).factory("UiScrollService",r),r.$inject=["$timeout"]},173:function(e,t){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function t(e){const t={};for(let r in e)if(e.hasOwnProperty(r)){let n=r;r.indexOf(":")>-1&&(n=r,r=r.split(":")[1].toLowerCase()),t[r]=e[n]}return t}const r=e.results.bindings,n=[],i=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=t(e.label),n.push(r)),angular.isUndefined(e.comment)||(r=t(e.comment),i.push(r))}));const a=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(n,a)[0],s=$.grep(i,a)[0],c=angular.isUndefined(o)?n.length>0?n[0].value:void 0:o.value,l=angular.isUndefined(s)?i.length>0?i[0].value:void 0:s.value;return{rdfsLabel:c,rdfsComment:l}}}}))},174:function(e,t){angular.module("graphdb.framework.rest.graphexplore.savedgraphs.service",[]).factory("SavedGraphsRestService",r),r.$inject=["$http"];function r(e){return{getSavedGraphs:function(){return e.get("rest/explore-graph/saved")},getSavedGraph:function(t){return e.get("rest/explore-graph/saved/"+encodeURIComponent(t))},editSavedGraph:function(t){return e.put("rest/explore-graph/saved/"+encodeURIComponent(t.id),t)},deleteSavedGraph:function(t){return e.delete("rest/explore-graph/saved/"+encodeURIComponent(t.id))},addNewSavedGraph:function(t){return e.post("rest/explore-graph/saved",t)}}}},175:function(e,t,r){"use strict";r.r(t);var n=r(90);angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",i);function i(e){return{getGraphConfigs:function(){return e.get("rest/explore-graph/config")},getGraphConfigSamples:function(){return e.get("rest/explore-graph/samples")},loadGraphForConfig:function(t,r,n,i){return e.get(`rest/explore-graph/config/graph/${encodeURIComponent(t.id)}?includeInferred=${r}&linksLimit=${n}&sameAsState=${i}`)},getConfig:function(t){return e.get("rest/explore-graph/config/"+encodeURIComponent(t)).then(e=>Object(n.mapGraphsConfigResponseToModel)(e.data))},createGraphConfig:function(t){return e.post("rest/explore-graph/config",t)},updateGraphConfig:function(t){return console.log("rest update",t),e.put("rest/explore-graph/config/"+encodeURIComponent(t.id),t)},deleteGraphConfig:function(t){return e.delete("rest/explore-graph/config/"+encodeURIComponent(t.id))},validateQuery:function(t,r,n,i,a){return e({method:"POST",url:"rest/explore-graph/validate",data:{query:t,queryType:r,params:n,all:i,oneOf:a}})}}}i.$inject=["$http"]},176:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p,f,h,g,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,p.firefox?e.currentBrowserLimit=50:(p.safari||p.msie||p.msedge)&&(e.currentBrowserLimit=400);const y={};let v=0,x=0;t.key="",y.get=function(t,r,n){return c.initLazyList(t,r,n,v,e.instancesObj.items)};let S=allGraphs;const w=function(){if(e.getActiveRepository())return g.resolveGraphs(n.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,C()})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),m.instant("graphexplore.error.getting.graphs"))}))},C=function(){const t=f.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?S=t:f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},b=function(){return e.instancesObj.items.length<1e3?m.instant("graphexplore.search.class.instances"):m.instant("graphexplore.search.first.class.instances")};t.$watch((function(){return t.key}),(function(){v=0,_.each(e.instancesObj.items,(function(e){t.key>e&&v++})),x++})),y.revision=function(){return x},e.adapterContainer={adapter:{remain:!0}};const I=[];I.push(e.$on("goToDomainRangeGraphView",(function(e,t){E(t)}))),I.push(e.$on("classCount",R)),I.push(e.$on("repositoryIsSet",(function(){if(!i.isLicenseValid())return;if(T===n.getActiveRepository())return;T=n.getActiveRepository();if(e.repositoryError=null,!T)return;S=allGraphs,w().then(P)}))),I.push(t.$on("$translateChangeSuccess",()=>{e.instancesSearchPlaceholder=b()}));function R(t,r,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==r&&(e.classCountSlider={});var i;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:r,options:{floor:1,ceil:r,vertical:!0,showSelectionBar:!0,onChange:function(){d(k,100,!0)}}},null===f.get(h.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&r>e.currentBrowserLimit&&(i=e.currentBrowserLimit,p.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:i}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:p.name,classLimit:i}),m.instant("graphexplore.reducing.visual.effects"))));const a=f.get(h.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:r>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),r>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),d((function(){e.$broadcast("reCalcViewDimensions")}),200),k();let s=0;$("rzslider").on("wheel",(function(t){t.preventDefault(),t.stopPropagation();const r=(new Date).getTime();if(!(r-s>100))return;s=r,t=t.originalEvent;let n=e.classCountSlider.value;t.deltaY<=-1?n+=1:t.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,d(k,100,!0)}))}))}function k(){e.currentSliderValue=e.classCountSlider.value}function E(e){const t=e.data.fullName,n=e.data.name;s.checkDomainRangeData(t).success((function(e,i){204===i?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(f.set(h.CLASS_HIERARCHY_LAST_SELECTED_CLASS,r.hash()),r.hash("").path("domain-range-graph").search("uri",t).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function L(){r.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,f.clearClassHieararchyState(),e.hidePrefixes="true"===f.get(h.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},t.$broadcast("angucomplete-alt:clearInput")}function A(){e.hasClassHierarchy()&&d((function(){$("#toolbar").removeClass("ng-hide")}),0)}I.push(e.$on("$destroy",()=>{I.forEach(e=>e())})),e.datasource=y,e.goToDomainRangeGraphView=E,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,t.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){u.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){L(),e.loader=!0,e.hierarchyError=!1,s.reloadClassHierarchy(S.contextID.uri).success((function(t){e.loader=!1,e.classHierarchyData=t,A(),R()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){u.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const r={name:e.title};t.$broadcast("searchedClass",r)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},w(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(t){const r=t.data.fullName;let n=t.data.name;if(n===r){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(r);const i=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+r+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+i+"&execute=true",s.getRdfsLabelAndComment(r).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,s.getClassInstances(r).success((function(t){e.instancesObj.items=[],_.each(t,(function(t,r){const n={};n.type=t.startsWith("<<")&&t.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(t),n.absUriNonEncoded=t,n.resolvedUri=r,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=b(),e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let T=n.getActiveRepository();function P(){L(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,s.getClassHierarchyData(S.contextID.uri).success((function(t,r){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=t,207===r&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),A()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return i.isLicenseValid()},e.chosenGraph=function(e){S=e,P(),f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},e.getSelGraphValue=function(){return S.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]},177:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const f={};let h=0,g=0;r.key="",f.get=function(t,r,n){return l.initLazyList(t,r,n,h,e.predicatesObj.items)},r.$watch((function(){return r.key}),(function(){h=0,_.each(e.predicatesObj.items,(function(e){r.key>e&&h++})),g++})),f.revision=function(){return g},e.adapterContainer={adapter:{remain:!0}};const m=o.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function y(){const e=o.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);t.search("").hash(e).path("hierarchy")}e.collapseEdges=null===m||"true"===m,e.datasource=f,e.$on("reloadDomainRangeGraphView",(function(e,r){const n=r.objectPropClassUri,i=r.objectPropClassName;t.path("domain-range-graph").search("uri",n).search("name",i)})),e.$on("switchEdgeMode",(function(e,r){t.path("domain-range-graph").search("uri",r.uri).search("name",r.name).search("collapsed",r.collapsed)})),e.$on("repositoryIsSet",(function(){if(v===i.getActiveRepository())return;v=i.getActiveRepository();y()})),e.$on("changeCollapsedEdgesState",(function(t,r){e.collapseEdges=!r,o.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=y,e.copyToClipboard=function(e){d.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,a.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&n((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(t){const r=t.target,n=t.source;e.encodedUri=encodeURIComponent(t.uri),e.sourceTargetObjectNodeUri=r.objectPropClassUri?r.objectPropClassUri:n.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=r.objectPropClassName?r.objectPropClassName:n.objectPropClassName?n.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?c.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment})).error((function(){u.error(p.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const i=r.allEdges?r.allEdges:n.allEdges;_.each(i,(function(t){const r={};r.absUri=encodeURIComponent(t.uri),r.absUriNonEncoded=t.uri,r.resolvedUri=t.name,r.isImplicit=t.implicit,e.predicatesObj.items.push(r)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let v=i.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",n),n.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]},178:function(e,t,r){(function(e){const t="WAIT",r="NO_REPO",n="READY",i="IN_PROGRESS",a="ERROR",o={contextID:{type:"all",value:"all.graphs.label",uri:""}};function s(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let r=e/Math.pow(1e3,t);return r=r%1>1/Math.pow(1e3,t-1)?r.toFixed(2):r.toFixed(0),r+["K","M","G","T","P","H"][t-1]}function c(e,s,c,l,d,u,p,f,h,g,m){let y=null;e.status=c.getActiveRepository()?t:r;let v=o;const x=function(){g.resolveGraphs(c.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,S(),e.isSystemRepository()?"READY"!==e.status&&C():(e.status="WAIT",C(!0))})).error((function(t){e.repositoryError=getError(t),l.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},S=function(){const t=h.get("dependencies-selectedGraph-"+c.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?v=t:h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},w=function(r){d3.select("#dependencies-chord").html(""),e.status=t,u.getRelationshipsData(r,e.direction,v.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=n})).error((function(t){e.status=n,l.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},C=function(r){(e.status!==n||r)&&(e.status=t,u.getRelationshipsStatus(v.contextID.uri).success((function(t){if(e.status=t,e.status===i){if(null!==y)return;y=d(C,2e3)}e.status===n&&(null!==y&&(d.cancel(y),y=null),u.getRelationshipsClasses(e.direction,v.contextID.uri).success((function(t,r){e.allClasses.items=_.filter(t,k),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===r&&l.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=a,l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=a,l.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const b={};let I=0,R=0;function k(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}s.key="",b.get=function(t,r,n){return p.initLazyList(t,r,n,I,e.allClasses.items)},s.$watch((function(){return s.key}),(function(){I=0,_.each(e.allClasses.items,(function(e){s.key>e&&I++})),R++})),b.revision=function(){return R},e.datasource=b,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=k,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!c.getActiveRepository()||e.isSystemRepository()||c.isActiveRepoFedXType()||x()})),e.$on("$destroy",(function(){d.cancel(y)})),e.isLoading=function(){return e.status===i||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,u.calculateRelationships(v.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):C()})).error((function(e){l.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===c.getActiveRepository()};const E=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,v=o,c.getActiveRepository()&&!c.isActiveRepoFedXType()?x():e.status=r}));window.addEventListener("beforeunload",(function e(){E(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){v=e,C(!0),h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},e.getSelectedGraphValue=function(){return v.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>o}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return s})),c.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,r(11))},179:function(e,t,r){"use strict";r.r(t);r(7);var n=r(454),i=r(467),a=(r(10),r(91)),o=r(72);function s(e,t,r,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w,C,b,I,R,k){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=f.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{A(),f.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{m.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),N()},e.changeLimit=t=>{let r=e.settings.linksLimit+t;r<1&&(r=1),r>1e3&&(r=1e3),e.settings.linksLimit=r},e.validateLinksLimit=()=>{e.invalidLimit=!a.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),N()},e.updateSettings=()=>{e.invalidLimit?c.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,(function(e){return e.text})),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,(function(e){return e.text})),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,(function(e){return e.text})),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,(function(e){return e.text})),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,(function(e){return e.text})),e.rootNodeIri?D(e.rootNodeIri):e.queryResultsMode&&f.search().query?M(f.search().query,f.search().sameAs,f.search().inference):"query"===e.configLoaded.startMode&&z(e.configLoaded),P(),e.showInfoPanel=!1,e.showFilter=!1,x.set(S.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{C.getGraphConfigs().success((function(r){e.graphConfigs=r,t&&t()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.graph.configs.short.msg"))}))},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,(function(e){return e.id===t}))[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then((function(){C.deleteGraphConfig(t).success((function(){e.getGraphConfigs(),e.refreshSavedGraphs()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.cannot.delete.config"))}))}))},e.goToGraphConfig=e=>{L({config:e.id},{config:e}),A(),z(e)},e.replaceIRIWithPrefix=t=>{const r=e.namespaces,n=_.findLast(r,(function(e){return 0===t.indexOf(e.uri)}));return n?n.prefix+":"+t.substring(n.uri.length):t};const E=[];t.$on("$translateChangeSuccess",(function(){e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder")})),e.$on("autocompleteStatus",(function(){ce()})),e.$on("repositoryIsSet",(function(t,r){r.newRepo&&(e.hasInitedRepository=!1),se(r.newRepo),r.newRepo&&(A(),$(".graph-visualization svg").empty(),f.search().query&&(e.goToHome(),O()))}));E.push(t.$watch(()=>t.key,()=>{B=0,_.each(e.propertiesObj.items,(function(e){t.key>e&&B++})),W++}));E.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&l((function(){e.adapterContainer.adapter.reload()}),500)}));e.$on("$destroy",()=>{E.forEach(e=>e())});const L=(t,r)=>{e.embedded&&(t.embedded=!0),f.search(t),f.state(r)},A=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,V={},Y=0},T=()=>k.isActive()?e.defaultSettings:e.saveSettings,P=()=>{T().showLinksText?d3.selectAll("svg .link-wrapper text").style("display","block"):d3.selectAll("svg .link-wrapper text").style("display","none")},N=()=>{e.settings.languagesMap=_.map(e.settings.languages,(function(e){return{text:e}})),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,(function(e){return{text:e}})),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,(function(e){return{text:e}})),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,(function(e){return{text:e}})),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,(function(e){return{text:e}}))},D=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},O=()=>{f.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,M(f.search().query,f.search().sameAs,f.search().inference)):e.$on("onRootNodeChange",(function(t,r){e.loading=!0;const n=T();angular.isDefined(r)&&(e.rootNodeIri=r,b.getInstanceNode({iri:r,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState}).then((function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),oe=new ae;const r=oe.addNode(t.data,te/2,re/2);ee=J,Re(r,!0)})).catch((function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.could.not.load.graph"))})))})),f.search().uri&&e.openUri(f.search().uri,!0),f.search().saved&&w.getSavedGraph(f.search().saved).success((function(t){e.loadSavedGraph(t)})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.could.not.open"))}))},M=(t,r,n)=>{const i=T(),a=void 0===r?i.sameAsState:!0===r,o=void 0===n?i.includeInferred:!0===n;e.loading=!0,b.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:o,sameAsState:a}).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t.data),R.instant("graphexplore.error.cannot.load.graph"))}))},G=(e,t)=>{const r=e.split(" ");return t?[r[0],r[1],r[2]].join(">"):[r[0],r[2]].join(">")},j=e=>[e.source.iri,e.target.iri].join(">"),Q=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},U=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},H=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},F=e=>{const t=e.source.isTriple?G(e.source.iri,!0):e.source.iri,r=e.target.isTriple?G(e.target.iri,!0):e.target.iri;return Object(o.removeSpecialChars)(`${t}>${r}>marker`)},z=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?l((function(){e.openUri(t.startIRI,!0)}),0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,C.loadGraphForConfig(t,t.startQueryIncludeInferred,T().linksLimit,t.startQuerySameAs).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.graph.load"))})))},q=function(){var t,r;f.search().config?(t=f.search().config,r=O,t===e.defaultGraphConfig.id?z(e.defaultGraphConfig):C.getConfig(t).then(e=>{z(e),r()}).catch(e=>{c.error(getError(e),R.instant("graphexplore.error.could.not.load.config",{configId:t}))})):f.search().query||f.search().uri?(z(e.defaultGraphConfig),O()):O()};v.onpopstate=function(t){A(),t.state&&(t.state.config?(z(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0))},e.embedded&&(f.search().query||f.search().uri||f.search().config||f.search().saved)&&(e.noGoHome=!0);let B=0,W=0,V={},Y=0;const K=16,X=d3.zoom().scaleExtent([.1,10]);let Z;const J=d3.zoomIdentity.translate(0,-70).scale(1);X.on("zoom",(function(e){k.isActive()||(ee=e.transform,Z.attr("transform",ee))}));let ee=J;const te=1e3,re=1e3;let ne,ie;function ae(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,r){return e.x=t,e.y=r,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,(function(r){const n=r.source.iri,i=r.target.iri,a=_.min([n,i])+"|"+_.max([n,i]);t[a]||(t[a]=1,e[n]=(e[n]||0)+1,e[i]=(e[i]||0)+1)})),_.each(this.links,(function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0}))},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,(function(e){let r,n;r=e.isTripleSource?Te(e.source):_.find(t,(function(t){return t.iri===e.source})),n=e.isTripleTarget?Te(e.target):_.find(t,(function(t){return t.iri===e.target}));let i={source:r,target:n,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){let e=`${i.source.isTriple?G(i.source.iri):i.source.iri}>${i.target.isTriple?G(i.target.iri):i.target.iri}`;if(oe.tripleLinksCopy.has(e)){let t=oe.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),oe.tripleLinksCopy.set(e,t),null}oe.tripleLinksCopy.set(e,[i])}return i}))}(e,t));for(let e of oe.tripleLinksCopy.keys())1===oe.tripleLinksCopy.get(e).length&&oe.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return r(e,t).length};function r(e,t){return _.filter(t,(function(t){return t.source.iri===e.iri||t.target.iri===e.iri}))}this.countLinks=t,this.linksTypes=function(e,t){const n=r(e,t),i=_.map(n,(function(t){return t.source.iri===e.iri?t.target.types:t.source.types}));return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const n=r(e,t),i=_.map(n,(function(e){return e.predicates}));return _.uniq(_.flatten(i))},this.removeTriples=function(e){let t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,(function(r){let n=e.split(">"),i=G(r.source.iri),a=G(r.target.iri);if(i===e&&oe.tripleNodes.delete(a)){let e=a.split(">");t.push({source:e[0],target:e[1]})}let o=i===e||a===e||r.source.iri===n[0]&&r.target.iri===n[1];return o&&(oe.tripleLinksCopy.delete(`${i}>${a}`),oe.tripleLinksCopy.delete(`${a}>${i}`)),o})))}),t.forEach(e=>{this.links=_.reject(this.links,(function(t){return t.source.iri===e.source&&t.target.iri===e.target}))})},this.removeNode=function(r){let n=[];this.links=_.reject(this.links,(function(e){let t=e.source.iri===r.iri||e.target.iri===r.iri;return t&&(e.target.isTriple&&n.push(G(e.target.iri)),e.source.isTriple||e.target.isTriple||n.push([e.source.iri,e.target.iri].join(">"))),t})),this.removeTriples(n);const i=this.links;this.nodes=_.reject(this.nodes,(function(e){return 0===t(e,i)})),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){let n=[],i=this.links;this.links=_.reject(this.links,(function(a){let o=a.source.iri===e.iri&&1===t(a.target,i)&&!a.target.isTriple||a.target.iri===e.iri&&1===t(a.source,i)&&!a.source.isTriple;if(!o){let n;if(a.source.iri!==e.iri||2!==t(a.target,i)||a.target.isTriple?a.target.iri!==e.iri||2!==t(a.source,i)||a.source.isTriple||(n=r(a.source,i)):n=r(a.target,i),!n)return!1;o=(n[0].source.iri===e.iri||n[0].target.iri)&&(n[1].source.iri===e.iri||n[1].target.iri)}return o&&(a.target.isTriple&&n.push(G(a.target.iri)),a.source.isTriple||a.target.isTriple||n.push([a.source.iri,a.target.iri].join(">"))),o})),this.removeTriples(n),i=this.links,this.nodes=_.reject(this.nodes,(function(r){return 0===t(r,i)&&r.iri!==e.iri})),this.computeConnectedness()},this.addTriple=function(e,t,r){e.x=t,e.y=r,e.weight=0;let n=G(e.iri);if(this.tripleNodes.has(n)){let t=this.tripleNodes.get(n);t.push(e),this.tripleNodes.set(n,t)}else e.weight=10,this.tripleNodes.set(n,[e])},this.copyState=function(){const e=_.map(this.nodes,(function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}})),t=JSON.stringify(Array.from(this.tripleNodes.entries())),r=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,(function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}})),tripleNodes:t,tripleLinksCopy:r,colorIndex:Y,type2color:V,transform:ee}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,(function(t){t.fixed&&e.numberOfPinnedNodes++})),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(Y=t.colorIndex,V=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ee=d3.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),ve()}}e.datasource={get:function(t,r,n){return g.initLazyList(t,r,n,B,e.propertiesObj.items)},revision:function(){return W}},p.when(h.getPrincipal()).then(t=>(t=>{const r=t.appSettings;e.defaultSettings.includeInferred=r.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=r.DEFAULT_INFERENCE&&r.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=r.DEFAULT_VIS_GRAPH_SCHEMA;const n=x.get(S.GRAPHS_VIZ);if(n&&"object"==typeof n)try{e.saveSettings=n,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch(t){e.saveSettings=_.cloneDeep(e.defaultSettings),x.set(S.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let oe=new ae;function se(t){!r.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(q),e.getNamespacesPromise=I.getNamespaces(e.getActiveRepository()).success((function(t){const r=_.map(t.results.bindings,(function(e){return{uri:e.namespace.value,prefix:e.prefix.value}}));e.namespaces=_.sortBy(r,(function(e){return e.uri.length})),ce()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.view.will.not.work"))})))}function ce(){s.isLicenseValid()&&(e.getAutocompletePromise=u.checkAutocompleteStatus())}e.addedTag=function(t){return t.text.indexOf(":")<0?(c.warning(R.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const r=e.split(":"),n=r[0],i=r[1];if(!angular.isUndefined(i)){const e=d.getNamespaceUriForPrefix(t,n);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,r){if(e.text.indexOf(":")<0)return r?c.warning(R.instant("graphexplore.absolute.prefixed.iri.option"),t):c.warning(R.instant("graphexplore.absolute.prefixed.iri"),t),!1;const n=e.text.indexOf("*");if(n>=0){if(!r)return c.warning(R.instant("graphexplore.wildcards.not.allowed"),t),!1;if(n<e.text.length-1)return c.warning(R.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},se();const le=d3.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(d3.interpolateHslLong),de=d3.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(d3.interpolateHslLong);e.getColor=function(e){angular.isUndefined(V[e])&&(V[e]=Y,Y++);const t=V[e];return t>39?"#c2c2c2":t%2==0?le(t/2):de(t/2)};const ue=d3.forceX(te/2).strength(.005),pe=d3.forceY(re/2).strength(.005),fe=d3.forceSimulation().force("x",ue).force("y",pe),he=d3.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+te+" "+re).attr("preserveAspectRatio","xMidYMid meet");he.append("rect").attr("width",10*te).attr("height",10*re).attr("x",-(10*te-te)/2).attr("y",-(10*re-re)/2).style("fill","none").style("pointer-events","all").call(X).on("click",(function(e){e.stopPropagation(),ke(),fe.stop()}));let ge=0,me=0;const ye=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){d3.select(t).append("circle").attr("cx",(function(){return e.x})).attr("cy",(function(){return e.y})).attr("class","loader-container").attr("r",(function(){return e.size})).style("fill","fff").style("opacity","0.7"),d3.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=2.7.2-TR3").attr("x",(function(){return e.x-e.size+5})).attr("y",(function(){return e.y-e.size})).attr("width",(function(){return 2*e.size})).attr("height",(function(){return 2*e.size})).attr("class","node-loader")}};function ve(t){d3.selectAll("svg g").remove(),d3.selectAll(".d3-tip").remove(),d3.selectAll(".menu-events").remove(),Z=he.append("g").attr("class","nodes-container").attr("transform",(function(){return angular.isDefined(ee)&&!t?ee:""}));const r=Object(i.a)().attr("class","d3-tip").customPosition((function(){const e=ne.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}})).html((function(t){let r="";return t.fixed&&(r+='<i class="icon-pin"></i>&nbsp;&nbsp;'),t.types.length>0?r+=_.join(_.map(t.types,(function(t){return e.replaceIRIWithPrefix(t)}))," · "):r+="<i>No types</i>",r})),a=function(e){let t="";return t+=_.join(_.map(e.predicates,(function(t,r){if(0===r)return Ne(t);if(r<10)return" · "+Ne(t);if(10===r){const t=function(e){return e.predicates.length-10}(e),r=t>1?t+" predicates":t+" predicate";return" · "+R.instant("graphexplore.tip.text",{textToShow:r})}})),""),t};let s;const d=Object(i.a)().attr("class","d3-tip").customPosition((function(e){const t=s.getBoundingClientRect(),r=function(e){const t=a(e),r=document.createElement("canvas").getContext("2d");return r.font="13px Arial",e.predicates.length<10?r.measureText(t).width:r.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:r+"px"}})).html((function(e){return a(e)}));const u=function(){l.cancel(void 0),l.cancel(ge),ne=null,r.hide(),me=l((function(){ke()}),500)};he.call(r);he.call(d);let p=he.selectAll(".link"),f=he.selectAll(".node");const h=d3.forceCollide(e=>e.size+5).strength(.5),g=d3.forceManyBody().strength(-300),m=d3.forceCenter(te/2,re/2);fe.nodes(oe.nodes).force("charge",g).force("collide",h).force("center",m).force("link",d3.forceLink(oe.links).distance((function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),r=e.predicates[0].split("/"),n=r[r.length-1];t.addClass("predicate-text").text(n),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness}))),Z.append("defs").selectAll("marker").data(oe.links).enter().append("marker").attr("class","arrow-marker").attr("id",(function(e){return F(e)})).attr("viewBox","0 -5 10 10").attr("refX",(function(e){return e.target.isTriple?11:e.target.size+11})).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),p=Z.selectAll(".link").data(oe.links).enter().append("g").attr("class","link-wrapper").attr("id",(function(e){return Object(o.removeSpecialChars)(j(e))})).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",(function(e){return`url(#${F(e)})`}));const y=Z.selectAll(".link-wrapper").append("text").text((function(e){return Pe(e)})).attr("class",(function(e){return e.predicates.length>1||oe.tripleNodes.has(j(e))?"predicates":"predicate"})).attr("dy","-0.5em").style("text-anchor","middle").style("display",T().showLinksText?"":"none").on("mouseover",(function(e,t){e.stopPropagation(),function(e,t){l.cancel(void 0);const r=s=e.target;l((function(){s===r&&t.predicates.length>1&&d.show(t,s)}),300)}(e,t)})).on("mouseout",(function(){l.cancel(void 0),s=null,d.hide()})).on("click",(function(t,r){t.stopPropagation(),function(t,r){Ae();const n=j(r);if(1===r.predicates.length&&oe.tripleNodes.has(n)){ie=null;const e=oe.tripleNodes.get(n)[0];if(we(e,this,t.button)){const t={};t.iri=e.iri,t.pred=Ne(e.iri.split(" ")[1]),_e(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ie===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ie=null);ie=t,e.showPredicates&&(e.predicates=_.map(t.predicates,(function(e){const r=function(e,t){const r=j(t);return oe.tripleNodes.has(r)?oe.tripleNodes.get(r).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),n=r>-1;return{value:Ne(e),partOfTriple:n,linkId:n?j(t):"",nodeIndex:r}})),e.showInfoPanel=!0)}(r)}(t,r)}));let v,x=0,S=null,w=null;const C=function(t,r,n){let i=n||this.parentNode;Array.isArray(n)&&(i=n[r]);oe.countLinks(t,oe.links)<=T().linksLimit?Re(t,!1,i):c.info(R.instant("graphexplore.increase.limit"),R.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function b(e,t){let r,n,i,a,o=!0;if("down"===t)r=2*e.size,n=e.size/3,i=.8,a=.3;else if("down-fixed"===t)r=2*e.size,n=e.size,i=.8,a=.66;else if("up"===t)r=e.size/3,n=2*e.size,i=.3,a=.8;else{if("fixed"!==t)return;r=e.size,i=.66,o=!1}let s=Z.selectAll(".node-wrapper").filter((function(t){return t===e})).append("text").text("").classed("icon-any pinned",!0).style("font-size",r+"px").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=s),o&&(s=s.transition().duration(1e3).style("font-size",(function(){return n+"px"})).attr("opacity",a),"down-fixed"!==t&&s.remove())}const I=d3.drag().subject((function(e){return e})).on("start",(function(e,t){if(k.isActive())return;0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,ke(),d3.select(this).classed("dragging",!0),fe.alphaTarget(.3).restart())})).on("drag",(function(t,r){r.isBeingDragged&&(r.fx=t.x,r.fy=t.y,r.fixed?r.beginDragging&&b(r,"fixed"):(e.numberOfPinnedNodes++,r.fixed=!0,b(r,"down-fixed")),r.pinWasFixed=!0,r.beginDragging=null)})).on("end",(function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,d3.select(".pinned").remove()),t.isBeingDragged=!1,d3.select(this).classed("dragging",!1));fe.alphaTarget(0)}));f=Z.selectAll(".node").data(oe.nodes).enter().append("g").attr("class","node-wrapper").attr("id",(function(e){return e.iri})).append("circle").attr("class","node").attr("r",(function(e){return e.size})).style("fill",(function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])})).on("mouseover",(function(t,n){n.isBeingDragged||(l.cancel(me),ge=l(()=>{(function(t,r){if(e.showInfoPanel)return!1;(Se.closeIcon||Se.expandIcon||Se.focusIcon||Se.copyURIIcon)&&Se.removeIcons();if(fe.alpha()<.1)return Se.initIcons(t,r.parentNode),fe.stop(),xe(),!0;return!1})(n,this)&&function(e,t){l.cancel(void 0);const n=ne=t.target;l((function(){ne===n&&r.show(e,ne)}),300)}(n,t)},400))})).on("mouseout",u).on("click",(function(t,r){if(t.button&&0!==t.button)return;const n=this;if(S&&w===n)return l.cancel(S),S=null,void C(r,0,n.parentNode);w=n,u(),e.showPredicates=!1,k.isActive()||(l.cancel(S),S=l((function(){we(r,n,t),S=null}),540))})).on("touchstart",(e,t)=>function(e){x=0,v=l((function(){x<5&&Ce(e),v=null}),1e3)}(t)).on("touchmove",(function(){x++})).on("touchend",(function(){l.cancel(v),v=null})).on("contextmenu",(function(t,n){t.shiftKey||(t.preventDefault(),ke(),e.closeInfoPanel(),n.fixed?(e.numberOfPinnedNodes--,n.fixed=!1,n.fx=null,n.fy=null,b(n,"up"),fe.alpha(1).restart()):(e.numberOfPinnedNodes++,n.fixed=!0,b(n,"down")),function(e){ne&&r.show(e,ne)}(n))})).on("gdb-expand-node",(e,t)=>C(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Ee(t)).call(I);const E=Z.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",(function(e){return 2*e.size*1.75}));Z.insert("g").attr("class","menu-events"),(e=>{e.each((function(e){e.fontSize=n.a.Text.calcFontSizeRaw(e.labels[0].label,e.size,K,!0)})).attr("height",(function(e){return 3*e.fontSize})).append("xhtml:div").attr("class","node-label-body").style("font-size",(function(e){return e.fontSize+"px"})).append("xhtml:div").text((function(e){return e.labels[0].label})),l((function(){$(".node-label-body div").each((function(e,t){let r=t.textContent.substring(0,t.textContent.length-1);let n=0;for(;n<200&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)r=r.substring(0,r.length-1),t.textContent=r+"…",n++}))}),50)})(E),fe.on("tick",(function(){p.attr("x1",(function(e){return Q(e.source)})).attr("y1",(function(e){return U(e.source)})).attr("x2",(function(e){return Q(e.target)})).attr("y2",(function(e){return U(e.target)})),y.attr("x",(function(e){let t=Q(e.source),r=Q(e.target);return e.x=.5*(t+r)})).attr("y",(function(e){let t=U(e.source),r=U(e.target);return e.y=.5*(t+r)})).attr("transform",(function(e){return"rotate("+function(e,t){const r={x:Q(e.source),y:U(e.source)},n={x:Q(e.target),y:U(e.target)};if(t)return 180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;{const e=180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"})),f.attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),Z.select(".node-loader").attr("x",(function(e){return e.x-e.size+3})).attr("y",(function(e){return e.y-e.size})),Z.select(".loader-container").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),E.attr("x",(function(e){return e.x-1.75*e.size})).attr("y",(function(e){return e.y-3*e.fontSize/2})),d3.select(".pinned").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})),xe()})),angular.isDefined(ye)&&ye.setLoadingState(!1),e.loading&&(e.loading=!1),d3.selectAll(".link-wrapper").each((function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];d3.selectAll(".link").each((function(r){const n=Object(o.removeSpecialChars)(r.source.iri),i=Object(o.removeSpecialChars)(r.target.iri);if(n===t&&i===e){let e=n;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),r.direction="double"}}))})),d3.selectAll(".d3-actions-tip").remove(),fe.alpha(.3).restart()}function xe(){t.d3alpha=fe.alpha()}const Se=new function(){function r(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(n,a){const o=Object(i.a)().attr("class","d3-tip d3-actions-tip").customPosition((function(e,t){const r=t.target.getBoundingClientRect();return{top:r.top-20+"px",left:r.right+10+"px"}})).html((function(e){return e}));he.call(o);n.isExpanded?(this.collapseIcon=d3.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",(function(){return r(20,n)})),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",(function(){var e;(e=n).isExpanded=!1,oe.removeNodeLeafLinks(e),ve()})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(ge),l.cancel(me)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))):(this.expandIcon=d3.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",(function(){return r(20,n)})),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",(function(){Re(n,!1,a)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))),this.focusIcon=d3.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",(function(){return r(20,n)})),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",(function(){t.$broadcast("onRootNodeChange",n.iri)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.copyURIIcon=d3.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",(function(){return r(20,n)})),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",(function(){e.copyToClipboard(n.iri),ke(),o.hide()})).on("mouseover",(function(e){o.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+n.iri+"</div>",e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.closeIcon=d3.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",(function(){return r(20,n)})),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",(function(){Ce(n)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.animateMenu(n)},this.animateMenu=function(e){const t=d3.easeSin;let n=0;let i=20;this.expandIcon&&this.expandIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.collapseIcon&&this.collapseIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.copyURIIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.focusIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.closeIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.expandedState=!0}};function we(r,n,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",r.iri),!1):i.ctrlKey||i.metaKey?(Ce(r),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===r?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Ee(r),!0)}function Ce(e){oe.removeNode(e),ve()}function be(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),oe=new ae,ee=J}(t),Ie(t)}function Ie(t,r,n){let i=t.data;i=_.filter(i,(function(e){return-1===_.findIndex(oe.links,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))}));const a=[],o=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){o.next().value.forEach(e=>{a.push(e)})}i=_.filter(i,(function(e){return-1===_.findIndex(a,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))})),i=_.filter(i,(function(e){return e.source!==e.target}));const s=((e,t)=>{const r=t.map(t=>t[e]);return t.filter((t,n)=>r.indexOf(t[e])===n)})("iri",_.union(_.flatten(_.map(t.data,(function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]}))))),l=_.map(oe.nodes,(function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}})),d=oe.tripleNodes.values();for(let e=0;e<oe.tripleNodes.size;e++){d.next().value.forEach(e=>{l.push({iri:e.iri,isTriple:e.isTriple})})}const u=_.reject(s,(function(e){return _.some(l,e)}));if(0===u.length)(n||0===i.length)&&c.info(R.instant("graphexplore.error.node.connections")),oe.addAndMatchLinks(i),ve();else{const t=[],n=[],a=T();_.forEach(u,(function(r,i){t.push(b.getInstanceNode({iri:r.isTriple?H(r.iri):r.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?a.languages:[],includeInferred:a.includeInferred,sameAsState:a.sameAsState}).then((function(e){n[i]=e.data})))})),p.all(t).then((function(){_.forEach(n,(function(e,t){const i=2*Math.PI*t/n.length,a=(r?r.x:0)+Math.cos(i)*re/3,o=(r?r.y:0)+Math.sin(i)*re/3;e.isTriple?oe.addTriple(e,a,o):oe.addNode(e,a,o)})),oe.addAndMatchLinks(i),r&&(r.isExpanded=!0),ve()}))}}function Re(t,r,n){if(ye.getLoadingState())return;ye.init(t,n);const i=T(),a=t.iri;b.getInstanceNodeLinks({iri:a,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then((function(e){Ie(e,t,r)}),(function(t){const r=getError(t.data);c.error(r,R.instant("graphexplore.error.exploring.node")),e.loading=!1,ye.setLoadingState(!1)}))}function ke(){angular.isDefined(Se)&&Se.expandedState&&Se.removeIcons()}function Ee(t){fe.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(H(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const r=T();b.getProperties({iri:t.isTriple?H(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState,rejectedPredicates:e.shouldShowSettings()?r.rejectedPredicates:[]}).then((function(t){e.data=_.mapKeys(t.data,(function(t,r){return e.replaceIRIWithPrefix(r)})),e.propertiesObj.items=[],_.forEach(e.data,(function(t,r){e.propertiesObj.items.push({key:r,value:t})})),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const r=_.find(e.propertiesObj.items,(function(e){return"image"===e.key}));r&&(e.nodeImage=r.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,(function(e){return"image"===e.key})),e.propertiesNotFiltered=e.propertiesObj.items}),(function(e){c.warning(getError(e.data),"Error")}))}function _e(e){Le("predicate","var(--primary-color-dark)",e),Le("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)}));const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))}))}function Le(e,t,r){const n=document.getElementsByClassName(e);n&&_.each(n,(function(e){const n=e.__data__;r?((n.source.iri.indexOf(r.iri)>=0||n.target.iri.indexOf(r.iri)>=0)&&(e.style.fill=t),G(r.iri)===j(n)&&(e.textContent=r.pred,e.style.fill=t),r.oppLinkIRI&&r.oppLinkIRI===j(n)&&(e.textContent=r.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Pe(n))}))}function Ae(){_.each(e.predicates,(function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")}));const t=document.getElementsByClassName("link");t&&_.each(t,(function(e){e.style.stroke="#999",e.style.strokeWidth=1})),Le("predicate",""),Le("predicates","");const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")}))}function Te(e){const t=G(e);if(oe.tripleNodes.has(t))return oe.tripleNodes.get(t).find(t=>t.iri===e)}function Pe(e){return e.predicates.length>1?e.predicates.length+" predicates":Ne(e.predicates[0])}function Ne(t){const r=e.replaceIRIWithPrefix(t);return r.length===t.length?t.split("/")[t.split("/").length-1]:r}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ie=null,l((function(){e.showInfoPanel=!1}))},e.clickLink=function(t){if(oe.tripleNodes.has(t.linkId)){Ae();const r=oe.tripleNodes.get(t.linkId)[t.nodeIndex];Ee(r),e.showPredicates=!0;const n=document.getElementById(t.linkId+t.nodeIndex);n&&(n.style.fontWeight="bold");const i={},a=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){const e=a.next().value;e.length>1&&e.every(t=>t.source.iri===r.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=G(t.target.iri),i.oppTriplePred=Ne(t.target.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==r.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=G(t.source.iri),i.oppTriplePred=Ne(t.source.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=r.iri,i.pred=Ne(r.iri.split(" ")[1])),_e(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLoadingLocation=function(){return r.isLoadingLocation()},e.hasActiveLocation=function(){return r.hasActiveLocation()},e.rotate=function(e){ke();const t=10*(e?1:-1)*Math.PI/180,r=Math.cos(t),n=Math.sin(t),i=te/2,a=re/2;d3.selectAll(".node-wrapper").each((function(e){e.x=i+(r*(e.x-i)+n*(e.y-a)),e.y=a+(-n*(e.x-i)+r*(e.y-a)),e.fixed&&(e.fx=e.x,e.fy=e.y)})),fe.alpha(1).restart()},e.openUri=function(t,r){if(!r){const r={};e.configLoaded.id!==e.defaultGraphConfig.id&&(r.config=e.configLoaded.id),r.uri=t,L(r,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(oe.copyState()),r={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};r.id?e.saveGraphModal("update",r):e.saveGraphModal("new",r)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};const De=function(t){w.editSavedGraph(t).success((function(){e.lastSavedGraphName=t.name,e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.edited",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.edit"))}))};e.saveGraphModal=function(t,r,n){y.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:r,graphExists:n,shared:r.shared}}}}).result.then((function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),w.addNewSavedGraph(t).success((function(r,n,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph",{name:t.name}))})).error((function(r,n){if(422===n)e.saveGraphModal("new",t,!0);else{const e=getError(r);c.error(e,R.instant("graphexplore.error.cannot.create.graph"))}}))}(t.graph);break;case"update":case"rename":De(t.graph)}}))},e.refreshSavedGraphs=function(){w.getSavedGraphs().success((function(t){e.savedGraphs=t})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.getting.saved.graphs"))}))},e.loadSavedGraph=function(t,r){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),f.url("?saved="+t.id),oe.restoreState(JSON.parse(t.data)),r||L({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const r=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(r)},e.deleteSavedGraph=function(t){m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then((function(){!function(t){w.deleteSavedGraph(t).success((function(){e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.delete"))}))}(t)}))},e.openIRI=function(t,r){return r.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){ke();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,d3.selectAll(".node").each((function(r){r.fixed=t,t?(e.numberOfPinnedNodes++,r.fx=r.x,r.fy=r.y):(r.fx=null,r.fy=null)})),fe.alpha(1).restart()},$("body").on("keydown",(function(t){!k.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))})),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function c(e,t,r,n){switch(e.mode=r.mode,e.graph=_.cloneDeep(r.graph),e.graphExists=r.graphExists,e.mode){case"new":e.title=n.instant("graphexplore.create.new.graph"),e.okButtonText=n.instant("common.create.btn");break;case"update":e.title=n.instant("graphexplore.update"),e.okButtonText=n.instant("common.save.btn");break;case"rename":e.title=n.instant("graphexplore.rename"),e.okButtonText=n.instant("common.save.btn")}e.ok=function(){e.form.$valid&&t.close({graph:e.graph,mode:e.mode})},e.saveNew=function(){e.graph.name=e.graph.name+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter"]).controller("GraphsVisualizationsCtrl",s).controller("SaveGraphModalCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),s.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","AutocompleteRestService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","RDF4JRepositoriesRestService","$translate","GuidesService"],c.$inject=["$scope","$uibModalInstance","data","$translate"]},180:function(e,t,r){"use strict";r.r(t);r(69),r(10);var n=r(68),i=r(66),a=r(14),o=r(76),s=r(90);function c(e,t,r,c,l,d,u,p,f,h,g,m,y,v,x,S,w){let C;t.newConfig=new o.GraphsConfig,t.revertConfig=void 0,t.page=1,t.totalPages=5,t.helpHidden=1===v.get(x.HIDE_GRAPH_CONFIG_HELP),t.isUpdate=!1,t.shared=!1,t.canEditActiveRepo=t.canWriteActiveRepo(),t.samples=[],t.tabConfig={inference:t.newConfig.startQueryIncludeInferred,sameAs:t.newConfig.startQuerySameAs},t.getAutocompletePromise=void 0,t.getNamespacesPromise=void 0,t.tabsViewModel=[];const b=g.configName,I=d.getActiveRepository();t.toggleHelp=e=>{void 0===e&&(e=v.get(x.HIDE_GRAPH_CONFIG_HELP)),1!==e?(v.set(x.HIDE_GRAPH_CONFIG_HELP,1),t.helpHidden=!0):(v.set(x.HIDE_GRAPH_CONFIG_HELP,0),t.helpHidden=!1)},t.fixedVisualCallback=(e,r)=>{t.newConfig.startIRI=e,t.newConfig.startIRILabel=r,C=!0},t.isDefaultGraph=e=>e.isDefaultGraph(),t.isUserGraph=e=>!e.isDefaultGraph(),t.getSampleName=(e,t)=>{if(!e)return"";const r=e.getPropertyDescription(t);return r||(e.id?"Copy of "+e.name:e.name)},t.createGraphConfig=e=>{f.createGraphConfig(e).success((async function(){await m.showToastMessageWithDelay("graphexplore.saved.new.config"),c.url("graphs-visualizations")})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.could.not.create"))}))},t.updateGraphConfig=e=>{f.updateGraphConfig(e).success((async function(){await m.showToastMessageWithDelay("graphexplore.saved.config"),c.url("graphs-visualizations")})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.could.not.save"))}))},t.goToPage=e=>{t.page!==e&&T(()=>{t.showEditor(),t.page=e})},t.goToPreviousPage=()=>{t.page>1&&t.goToPage(t.page-1),M()&&(C=!1)},t.goToNextPage=()=>{$(),t.newConfig.isStartMode(o.StartMode.NODE)&&!C||t.goToPage(t.page+1)},t.saveGraphConfig=()=>{$(),M()&&!C||(t.newConfig.startQueryIncludeInferred=t.tabConfig.inference,t.newConfig.startQuerySameAs=t.tabConfig.sameAs,T(()=>{t.newConfig.name?(t.queryEditorIsDirty=!1,t.isUpdate?t.updateGraphConfig(t.newConfig.toSavePayload()):t.createGraphConfig(t.newConfig.toSavePayload())):N(S.instant("graphexplore.provide.config.name"))}))},t.setQuery=async e=>{const r=e||" ";(await R()).setQuery(r),t.markDirty()},t.markDirty=async()=>{if(t.revertConfig){const e=t.revertConfig.getQueryType(t.page),r=await L();t.queryEditorIsDirty=e!==r}},t.showEditor=()=>{t.viewMode="yasr",A(),_()},t.showPreview=()=>{t.viewMode="editor",k()},t.revertEditor=()=>{t.setQuery(t.revertConfig.getQueryType(t.page)),t.queryEditorIsDirty=!1};const R=()=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),k=async(e,r)=>{const n=await R(),i=await n.getQueryType();if(r&&"SELECT"!==i&&"CONSTRUCT"!==i&&"DESCRIBE"!==i)return void l.warning(S.instant("query.editor.warning.msg"));"update"!==await n.getQueryMode()?t.queryIsRunning||(t.viewMode="editor",E()):l.warning(S.instant("cannot.execute.update.error"))},E=async()=>{(await R()).query(i.RenderingMode.YASR)},_=async()=>(await R()).changeRenderMode(i.RenderingMode.YASQE),L=async()=>(await R()).getQuery(),A=async()=>(await R()).abortQuery(),T=async e=>{const r=await(async()=>{const e=await R();let r=await e.getQuery();return r=r.trim(),t.newConfig.updateModel(r,t.page)})();1===t.page?r.isStartMode(o.StartMode.NODE)&&!r.startIRI?N(S.instant("graphexplore.select.start.node")):r.isStartMode(o.StartMode.QUERY)&&!r.startGraphQuery?N(S.instant("graphexplore.provide.query")):r.isStartMode(o.StartMode.QUERY)?O(e,r.startGraphQuery,"graph"):e():2===t.page?O(e,r.expandQuery,"construct",["node"]):3===t.page?O(e,r.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===t.page?O(e,r.predicateLabelQuery,"tuple",["edge"],["label"]):5===t.page&&O(e,r.resourcePropertiesQuery,"tuple",["node"],["property","value"])},P=()=>{t.tabConfig.inference=t.newConfig.startQueryIncludeInferred,t.tabConfig.sameAs=t.newConfig.startQuerySameAs,t.setQuery(t.newConfig.getQueryType(t.page))},N=e=>{l.warning(e)},D=()=>{t.getAutocompletePromise=h.checkAutocompleteStatus()},O=(e,t,r,n,i,a)=>{t?f.validateQuery(t,r,n,i,a).success(()=>{e()}).error(e=>{N(getError(e))}):e()},$=()=>{M()&&t.$broadcast("addStartFixedNodeAutomatically",{startIRI:t.newConfig.startIRI})},M=()=>1===t.page&&t.newConfig.isStartMode(o.StartMode.NODE),G=()=>{f.getGraphConfigSamples().success((function(e){t.samples=Object(s.mapGraphConfigSamplesToGraphConfigs)(e).filter(e=>!e.id||t.newConfig.id!==e.id||(t.revertConfig=e,!1))})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.graph.configs"))})),D(),t.getNamespacesPromise=y.getNamespaces(t.getActiveRepository())},j={endpoint:()=>"repositories/"+d.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:a.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:i.RenderingMode.YASQE,maxPersistentResponseSize:0,showYasqeResizer:!1,yasqeMode:n.YasqeMode.PROTECTED,infer:t.newConfig.startQueryIncludeInferred,sameAs:t.newConfig.startQuerySameAs},Q=(e,r,n)=>{t.queryIsRunning=e},U=()=>{window.removeEventListener("beforeunload",H),z.forEach(e=>e())},H=e=>{t.queryEditorIsDirty&&(e.returnValue=!0)},F=()=>{t.tabsViewModel=[{page:1,label:S.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:S.instant("graph.expansion"),type:"expandQuery"},{page:3,label:S.instant("node.basics"),type:"resourceQuery"},{page:4,label:S.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:S.instant("node.extra"),type:"resourcePropertiesQuery"}]},z=[];z.push(t.$on("autocompleteStatus",D)),z.push(t.$on("$locationChangeStart",(e,r)=>{if(t.queryEditorIsDirty){e.preventDefault();((e,t,r,n)=>{w.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))})(S.instant("common.confirm"),S.instant("visual.config.warning.unsaved.changes"),()=>{U();const e=c.absUrl().length-c.url().length,t=r.substring(e);c.path(t)})}else U()})),z.push(t.$on("$destroy",U)),z.push(t.$watch(t.getActiveRepositoryObject,()=>{(t.newConfig.isStartMode(o.StartMode.QUERY)||t.page>1)&&(t.viewMode="yasr",A().then(_))})),z.push(e.$on("$translateChangeSuccess",()=>{F()})),window.addEventListener("beforeunload",H),t.$watch("newConfig.startMode",e=>{e===o.StartMode.QUERY&&P()}),t.$watch("page",e=>{(t.newConfig.isStartMode(o.StartMode.QUERY)||e>1)&&(t.showEditor(),P())}),F(),d.getPrefixes(I).then(e=>(e=>{const r=t.$watch((function(){return t.getActiveRepositoryObject()}),(function(i){if(i){t.canEditActiveRepo=t.canWriteActiveRepo();const i=angular.extend({},j,{prefixes:e,yasqeMode:t.canWriteActiveRepo()?n.YasqeMode.WRITE:n.YasqeMode.PROTECTED});t.yasguiConfig=i,r()}}))})(e)).finally(()=>Q(!1)),b?(t.isUpdate=!0,f.getConfig(b).then((function(e){t.newConfig=e,G()})).catch(e=>{l.error(getError(e),S.instant("created.connector",{name:b}))})):(t.isUpdate=!1,G()),t.getActiveRepository()&&(Q(!0,S.instant("common.refreshing.namespaces"),S.instant("common.extra.message")),d.getPrefixes(d.getActiveRepository()).then(e=>{t.namespaces=e}).catch((function(e){t.repositoryError=getError(e)})).finally((function(){Q(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",c),c.$inject=["$rootScope","$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},181:function(e,t,r){"use strict";r.r(t);var n=r(467),i=r(494),a=r(454),o=r(455);r(10);function s(e,t,r,s,c,l,d,u,p,f,h,g,m){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,y,v){!function(d,y){var v,x,S=d3.pack().size([780,780]),w=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function b(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function I(){return"true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.7.2-TR3");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=I();var k,E,L=b();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=h.get("classHierarchy-selectedGraph-"+l.getActiveRepository());r.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,r,n){e.loader=!1,207===r&&u.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(m.instant("graphexplore.error.request.failed",{name:f,error:getError(t)}))}))}var A,T,P,N,D,O,M,G={};function j(r,o,l,u){T&&T(),P&&P(),d3.selectAll("#main-group").remove(),L=b(),i.a.SingleChild.addPlaceholders(r,!0),(x=d3.hierarchy(r)).sum((function(e){return e.size})),A=l||x,S(x);var h,g=x.descendants();A.isInFocusTransitive=!0,i.a.SingleChild.removePlaceholders(g),i.a.SingleChild.centerNodes(g),i.a.SingleChild.makePositionsRelativeToZero(g),v||(v=Object(n.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(v));var m=L.selectAll("circle").data(g).enter().append("g");o.doFade&&m.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)}));var y,I=[],R=m.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?w(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==f){var t=e.data.name;I.push({name:t}),G[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?v.show(e,t):v.hide(e)})),e.circle.on("mouseout",v.hide)}})).on("gdb-focus",(e,t)=>E(t)).on("gdb-zoom",(e,t)=>z(t));function N(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),y=e}function D(){d.showClassInfoPanel=!1}I&&(I=_.uniqBy(I,"name"),d.flattenedClassNames=I);var O=a.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(O),E=function(e){z(e),e.data.name===f?(D(),d3.selectAll(".selected").classed("selected",!1)):(N(e),d.selectedClass=y,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},O.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),v.hide(),E(t)})),O.on("dblclick",(function(t,n){n!==r&&(v.hide(),N(n),e.$broadcast("goToDomainRangeGraphView",y,A),t.stopPropagation())}));var $=0;C.on("wheel",(function(e){v.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-$>100){$=t;var r="";e.deltaY<=-1?r="in":e.deltaY>=1&&(r="out");var n=e.target.__data__;if(n||(n=A),"in"===r){if(n!==A){for(;n.parent&&!n.parent.isInFocusTransitive;)n=n.parent;n.depth<A.depth&&(n=A)}if(n===A&&n.children){for(var i=n.children[0],a=1;a<n.children.length;a++)n.children[a].sortingRank>i.sortingRank&&(i=n.children[a]);i.children&&(n=i)}else n.children||(n=n.parent);z(n,!0)}else"out"===r&&(n=A.parent)&&z(n,!0);A.data.name===f&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),Q()}}));var M=L.selectAll("text").data(g).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?(M.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),M.style("display",(function(e){return e.parent&&e.parent.data===A.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&M.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)})),k=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&E(t)}))}var r=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(r)};var j=L.selectAll("circle, text");function U(e,t){var r=800/e[2];h=e,j.attr("transform",(function(t){return"translate("+(t.x-e[0])*r+","+(t.y-e[1])*r+")"})),R.attr("r",(function(e){return e.r*r})),t&&M.each((function(e){e.data.fullName!==A.data.topLevelParentUri&&A.data.topLevelParentUri!==f||(e.textSel.style("display","none"),A.children&&A.children.length?_.each(A.children,(function(e){e.textSel.style("display","inline")})):A.textSel.style("display","inline"),A.parent&&_.each(A.parent.children,(function(e){e.data.name!==A.data.name&&e.textSel.style("display","inline")})))})),M.style("font-size",(function(e){return o.noPrefixes?a.a.Text.calcFontSize(e.noPrefixName,e.r*r):a.a.Text.calcFontSize(e.data.name,e.r*r)})).text((function(e){return o.noPrefixes?a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*r/3):a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*r/3)}))}function H(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function F(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function z(e,t){if(c((function(){d.showExternalElements=e.data.name===f})),A!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,A!==e))){if(t&&(D(),d3.selectAll(".selected").classed("selected",!1)),A.parent)for(var r=A;r;)r.isInFocusTransitive=!1,r=r.parent;for(r=e;r;)r.isInFocusTransitive=!!r.children,r=r.parent;if(2*(A=e).r/(2*A.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)U([A.x,A.y,H(A.r)]),M.each((function(e){F.call(this,e)}));else d3.transition().duration(p).tween("zoom",(function(e){var t=d3.interpolateZoom(h,[A.x,A.y,H(A.r)]);return function(e){U(t(e))}})).selectAll("text").each(F)}}U([A.x,A.y,H(A.r)],u),T=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),E(x)})),P=d.$on("classSearch",(function(e){E(e)}))}function Q(){const t=d.classHierarchyData.classCount;let r=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!r||r>t)&&(r=t,h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,r)),e.$broadcast("classCount",t,r)}window.addEventListener("resize",Q),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",Q),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){N&&N(),D&&D(),O&&O(),M&&M();var e=I();if(d.classHierarchyData.classCount){Q();var t=_.cloneDeep(d.classHierarchyData);var r,n,i=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function a(e,t){const i={keepPrevState:!0,noPrefixes:I()};n=i.noPrefixes,j(r||e,i,A,!0),c((function(){h.set(g.CLASS_HIERARCHY_SWITCH_PREFIXES,t),k()}),70)}function o(e,i,o){if(!e)return;h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:f,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(i[t].data.id),i[t].parent===i[0]&&r.children.push(i[t].data);if(function e(t){if(!t.children)return;const r=[];for(const e of t.children)s.has(e.id)&&r.push($.extend({},e));t.children=r;for(const r of t.children)e(r)}(r),o){n=angular.isUndefined(n)?I():n;j(r,{noPrefixes:n})}else a(t)}var s,l=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,i);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:I()};j(t,u),k()}N=d.$watch("hidePrefixes",(function(r){angular.isUndefined(r)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||h.set(g.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(r),a(t,!0)}),50)}),!0),D=d.$watch("currentSliderValue",(function(e){o(e,i,!0)}),!0),M=d.$on("onEnterKeypressSearchAction",(function(e){s&&E(s)})),O=d.$on("searchedClass",(function(e,t){(s=G[t.name])&&E(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},182:function(e,t,r){"use strict";r.r(t);var n=r(455),i=r(454);r(10);function a(e,t,r,a,o,s,c,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),m=d3.drag().subject((function(e){return e})).on("start",(function(e,t){g.stop(),t.fx=e.x,t.fy=e.y,d3.select(this).classed("selected",!0)})).on("end",(function(e,t){t.fx=null,t.fy=null,d3.select(this).classed("selected",!1),w?(g.alpha(.2).restart(),w=!1):g.restart()})).on("drag",(function(e,t){w=!0,g.alphaTarget(0).restart(),t.fx=e.x,t.fy=e.y})),y=p.append("defs");y.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var e=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.7.2-TR3");$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>");var t=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:t,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var e=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");e.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var t=16+1200/18/2.5,r=t+1200/90;e.append("circle").attrs({class:"legend-class-node",cx:(16+t)/2,cy:30,r:1200/18/4.5}),e.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),e.append("circle").attrs({class:"legend-object-node",cx:(16+t)/2,cy:70,r:1200/110/1.25}),e.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),e.append("circle").attrs({class:"legend-datatype-node",cx:(16+t)/2,cy:70+1200/45,r:1200/110/2}),e.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),e.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:t,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),e.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:t,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),e.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:t,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)"),e.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var v=o.search().uri,x=o.search().name;const S=o.search().collapsed;(function(e,t){a.getDomainRangeData(e,t).success((function(e,t,r){u.domainRangeGraphData=e})).error((function(e){d.error("Request for "+x+" failed!")}))})(v,S),$(window).on("popstate",(function(){s.set(c.DOMAIN_RANGE_WENT_BACK,!0)})),t.onpopstate=function(t){t.state&&e.$broadcast("changeCollapsedEdgesState",t.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(s.set(c.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==s.get(c.DOMAIN_RANGE_WENT_BACK)&&function(t){e.$broadcast("switchEdgeMode",{uri:v,name:x,collapsed:t})}(u.collapseEdges),s.remove(c.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const N=r.nodes,D=r.links;g.nodes(N).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(D).distance(1200/3.5));var n=p.selectAll(".link").data(D).enter().append("g");function a(e){e.style("stroke",f),e.style("stroke-width",2),e.attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)")}var s,c,d=0;n.each((function(e){if(e.objectPropNodeClassUri!==v)s=n.append("line").attrs({class:"link","marker-end":"url("+o.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(e){switch(e.propertyType){case"objectLeft":e.targetRadius=1200/18;break;case"objectRight":e.targetRadius=1200/110;break;case"datatype":e.targetRadius=1200/110/2;break;default:e.targetRadius=0}var t=d3.select(this);e.targetNodeEdgeCount>1?a(t):e.implicit&&t.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(c)){c=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+o.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=e.targetNodeEdgeCount)>1&&a(d3.select(".loop-link"))}}));var y={};function S(){$.isEmptyObject(y)||(y.text.style("fill","black"),y.background.style("fill","#f0f0f0"))}function w(e,t){S(),y.text=d3.select(this),y.background=d3.select(this.previousSibling),y.text.style("fill","white"),y.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=t})),e.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",S)}));var C=n.append("text").attr("class",(function(e){return e.objectPropNodeClassUri===v?"loop-link-property-name":"property-name"})).attr("dx",(function(e){return 1200/18/2*("objectLeft"===e.propertyType?1:-1)})).style("text-anchor",(function(e){return"objectLeft"===e.propertyType?"end":"start"})).style("font-size",1200/90).text((function(e){return e.targetNodeEdgeCount>1?e.targetNodeEdgeCount+" predicates":e.name}));C.each((function(e){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",w):r.on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var b=n.append("rect").attr("class",(function(e){return e.objectPropNodeClassUri!==v?"link-background":"loop-link-background"})).attr("width",(function(e){return e.calculatedWidth=this.previousSibling.getBBox().width,e.calculatedWidth+4})).attr("height",(function(e){return e.calculatedHeight=this.previousSibling.getBBox().height,e.calculatedHeight+2})).attr("transform",(function(e){var t=2-1200/18/2*("objectLeft"===e.propertyType?1:-1);return"objectLeft"===e.propertyType&&(t+=e.calculatedWidth),"translate(-"+t+",-"+(2+e.calculatedHeight/2)+")"})).on("click",(function(e){e.stopPropagation()})),I=p.selectAll(".node").data(N).enter().append("g"),R=I.filter((function(e){return e.objectPropClassUri!==v})).append("circle").each((function(e){var t=d3.select(this);"main"===e.classPosition?t.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+o.absUrl()+"#loop-link)"):null===e.objectPropClassName?t.attrs({class:"datatype-node",r:1200/110/2}):t.attrs({class:"object-prop-node",r:1200/110})})).call(m);d3.selectAll(".object-prop-node").on("dblclick",(function(t,r,n){u.$apply((function(){e.$broadcast("reloadDomainRangeGraphView",r,n)}))})),I.filter((function(e){return e.objectPropClassName&&e.objectPropClassUri!==v})).append("text").attr("class",(function(e){return e.classPosition+"-class-label"})).style("font-size",1200/90).text((function(e){return e.objectPropClassName})).on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var k=I.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(e){return i.a.Text.calcFontSize(x,1200/18)})).text(x).on("click",(function(){t.open("resource?uri="+encodeURIComponent(v),"_blank")}))}));var E=p.select(".class-node + text"),L=d3.select(".class-node"),A=d3.selectAll(".loop-link-background"),T=d3.selectAll(".loop-link-property-name");if(C=d3.selectAll(".property-name"),!angular.isUndefined(c)){var P=[];A.each((function(e,t){d3.select(this);P.push({idx:t,width:e.calculatedWidth,height:e.calculatedHeight})}))}g.on("tick",(function(e){var t=8*g.alpha();function r(e){var t=e.x+1200/18*2,r=e.y-1200/18/1.9;var n=[];A.each((function(i,a){n.push(i),a<h?function(n,i){var a=$.grep(P,(function(e){return e.idx==i}));i>0&&(t+=parseFloat(i*(a[0].height/(i/1.4)))),n.attrs({transform:"rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")",width:a[0].height,height:a[0].width})}(d3.select(this),a):d3.select(this).remove()})),function(e){var t;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=e,t=this.getComputedTextLength()})).on("click",w),d3.select(".view-more-preds-rect").attr("height",t+4)}(n)}s.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x1",(function(e){return e.source.x})).attr("y1",(function(e){return e.source.y})).attr("x2",(function(e){return e.targetX})).attr("y2",(function(e){return e.targetY})).each((function(e){!function(e){"objectLeft"===e.propertyType?(e.source.x-=8*t,e.source.y-=t/9):(e.target.x+=8*t,e.target.y-=t/9)}(e);var r=Math.atan2(e.target.y-e.source.y,e.target.x-e.source.x);e.targetX=e.target.x-Math.cos(r)*e.targetRadius,e.targetY=e.target.y-Math.sin(r)*e.targetRadius})),R.each((function(e){"main"!==e.classPosition||angular.isUndefined(c)||(!function(e){var t=e.x+64,r=e.y-1200/18/5.7-5;c.attr("transform","rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")")}(e),function(e){function t(t,r){var n=$.grep(P,(function(e){return e.idx==r})),i=0;r>0&&(i=parseFloat(2*r*(n[0].height/1.4)));var a=e.x,o=e.y-1200/18*2.1-i;t.attrs({x:a,y:o}).moveToFront()}T.each((function(e,r){var n=d3.select(this),i=T.size()-h;i<0?t(n,r):(0==r&&!u.collapseEdges&&i>1&&(!function(e,t,r){e.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&t.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),i),t(n,r)),r<h?t(n,r):n.remove())}))}(e),r(e)),e.objectPropClassUri!==v&&d3.select(this).attr("cx",(function(e){return"main"===e.classPosition?function(e){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(e){return Math.log(e)/Math.LN10});var t=L.attr("cx")-600,r=.5*Math.log10(Math.abs(t));return e.x+=t>0?-r:r,e.x}(e):e.x})).attr("cy",(function(e){return e.y}))})),E.attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).moveToFront(),b.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),C.attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),k.attr("x",(function(e){return"right"===e.classPosition?e.x+1200/110*1.2:e.x-1200/110*1.2})).attr("y",(function(e){return e.y})).moveToFront()}))}}));let w=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",a),a.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},183:function(e,t){function r(e,t){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(r){r.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},r.hasPermission=function(){return t.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",r),r.$inject=["$repositories","$rootScope"]},184:function(e,t){function r(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(t,r){t.stringLimit=e,t.scrollToTop=function(){r[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},t.checkCommentLength=function(){return r[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},t.equalHeights=function(){const e=r[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&t.expanded&&(r[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},t.toggleFullComment=function(){t.expanded=!t.expanded},t.$watch("expanded || alwaysExpanded",(function(r){t.stringLimit=r?t.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",r).constant("SHORT_COMMENT_LENGTH",100),r.$inject=["SHORT_COMMENT_LENGTH"]},185:function(e,t,r){"use strict";r.r(t);var n=r(455);r(101);function i(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(r){r.$watch("dependenciesData",(function(){if(r.dependenciesData){const i=r.dependenciesData;!function(i,a){if(function(){let e=!0;for(const t of i){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),s=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){s.style("opacity",0)}));const c=Math.min(800,800)/2.8,l=c-24,d=d3.arc().innerRadius(l).outerRadius(c),u=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),p=d3.ribbon().radius(l),f=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");f.append("circle").attr("r",c).style("fill","none");const h=u(i),g=f.selectAll(".group").data(h.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=g.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));g.append("title").text((function(e,t){return a[t]})),g.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",d).style("fill",(function(e,t){return o(t)})),g.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(l+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return a[e.index]}));const m=f.selectAll(".chord").data(h).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",p);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,n){const i=a[n.source.index],o=a[n.target.index],c=e.pageX,l=e.pageY;t.getPredicates(i,o,r.selectedGraph&&r.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+i+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",s.html(t).style("left",c+"px").style("top",l+"px")})),s.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){f.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=n.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(i.matrix,i.nodes,i.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",i),i.$inject=["$repositories","GraphDataRestService"]},186:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,n,i;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,n=e.listItemsNotFiltered,i=e.filterFunction,t.length>0?_.filter(n,i):r.length!==n.length?n:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]},187:function(e,t){function r(e,t){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(r,n){r.searchedObjCallback=r.searchedObjCallback(),r.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},r.showInput=function(){$("#selectGraphDropdown").hide(),n.find("#search_input #search_input_value")[0].value="",n.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),n.find("#search_input .angucomplete-holder").css("display","block"),t((function(){n.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),t((function(){n.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),n.find("#search_input #search_input_value").focus()}),200)}),1)},r.hideInput=function(){n.find("#search_input #search_input_value")[0].value="",n.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),t((function(){n.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),n.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),t((function(){n.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",r),r.$inject=["$rootScope","$timeout"]},264:function(e,t,r){"use strict";r.r(t);r(7),r(33),r(27),r(28),r(699),r(700),r(444),r(467),r(237),r(247),r(701),r(478),r(454),r(494),r(455),r(101),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(92);angular.module("graphdb.framework.graphexplore",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.graphexplore.data.service","graphdb.framework.graphexplore.services.uiscroll","graphdb.framework.graphexplore.services.rdfsdetails","graphdb.framework.rest.graphexplore.savedgraphs.service","graphdb.framework.rest.graphconfig.service","graphdb.framework.graphexplore.controllers.class","graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.graphexplore.controllers.graphviz","graphdb.framework.graphexplore.controllers.graphviz.config","graphdb.framework.graphexplore.directives.sysrepo","graphdb.framework.graphexplore.directives.rdfsdetails","graphdb.framework.graphexplore.directives.searchfilter","graphdb.framework.graphexplore.directives.class","graphdb.framework.graphexplore.directives.domainrange","graphdb.framework.graphexplore.directives.dependencies","graphdb.framework.graphexplore.directives.searchcontrols","graphdb.framework.core.directives.yasgui-component"])},444:function(e,t,r){var n,i;n=[r(452)],void 0===(i=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),r=select(this);for(var n in e)r.attr(n,e[n])}))}function t(e,t){for(var r in t)e.attr(r,t[r]);return e}return"undefined"==typeof d3&&(d3=r(452)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?e:t)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,n))||(e.exports=i)},454:function(e,t,r){"use strict";r(444);var n=n||{};n.Text=function(){function e(e,t,r,n){r=r||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<r&&(i=r),Math.round(i)):(i<r&&(i=r),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,r,n,i){return e(t,r,n)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),n.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},n.Click=function(){const e=function(e,r){let n,i=1,a=arguments.length;for(;++i<a;)n=arguments[i],e[n]=t(e,r,r[n]);return e};function t(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var r,n=null;e.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,i){var a,o,s;(o=r,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(n?(window.clearTimeout(n),n=null,t.call("dblclick",e,e,i)):n=window.setTimeout((a=e,function(){t.call("click",a,a,i),n=null}),250))}))}),t,"on")}}}(),t.a=n},455:function(e,t,r){"use strict";r(444);var n=n||{};n.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let r="";return _.each(t,(function(e){r+=e.cssText})),r},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=n},467:function(e,t,r){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},r=function(){return" "},n=u(),i=null,a=null,o=null,s=null;function c(e){var t;i="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,a=i.createSVGPoint(),document.body.appendChild(n)}c.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(o=n.pop());var i,a=r.apply(this,n),u=t.apply(this,n),f=e.apply(this,n),h=p(),g=d.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,v=s.apply(this,n);for(h.html(a).style("opacity",1).style("pointer-events","all");g--;)h.classed(d[g],!1);const x=n.filter(e=>e instanceof Event);return i=l.get(f).apply(this,x),v?Object.keys(v).forEach((function(e){h.style(e,v[e])})):h.classed(f,!0).style("top",i.top+u[0]+m+"px").style("left",i.left+u[1]+y+"px"),c},c.hide=function(){return p().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().attr(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(p(),r),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().style(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(p(),r),c},c.direction=function(t){return arguments.length?(e=null==t?t:h(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:h(e),c):t},c.html=function(e){return arguments.length?(r=null==e?e:h(e),c):r},c.customPosition=function(e){return arguments.length?(s=null==e?e:h(e),c):s},c.destroy=function(){return n&&(p().remove(),n=null),c};var l=new Map(Object.entries({n:function(e){var t=f(e);return{top:t.n.y-n.offsetHeight,left:t.n.x-n.offsetWidth/2}},s:function(e){var t=f(e);return{top:t.s.y,left:t.s.x-n.offsetWidth/2}},e:function(e){var t=f(e);return{top:t.e.y-n.offsetHeight/2,left:t.e.x}},w:function(e){var t=f(e);return{top:t.w.y-n.offsetHeight/2,left:t.w.x-n.offsetWidth}},nw:function(e){var t=f(e);return{top:t.nw.y-n.offsetHeight,left:t.nw.x-n.offsetWidth}},ne:function(e){var t=f(e);return{top:t.ne.y-n.offsetHeight,left:t.ne.x}},sw:function(e){var t=f(e);return{top:t.sw.y,left:t.sw.x-n.offsetWidth}},se:function(e){var t=f(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function p(){return null===n&&(n=u(),document.body.appendChild(n)),d3.select(n)}function f(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var r={},n=t.getScreenCTM(),i=t.getBBox(),s=i.width,c=i.height,l=i.x,d=i.y;return a.x=l,a.y=d,r.nw=a.matrixTransform(n),a.x+=s,r.ne=a.matrixTransform(n),a.y+=c,r.se=a.matrixTransform(n),a.x-=s,r.sw=a.matrixTransform(n),a.y-=c/2,r.w=a.matrixTransform(n),a.x+=s,r.e=a.matrixTransform(n),a.x-=s/2,a.y-=c/2,r.n=a.matrixTransform(n),a.y+=c,r.s=a.matrixTransform(n),r}function h(e){return"function"==typeof e?e:function(){return e}}return c}},494:function(e,t,r){"use strict";var n=n||{};n.SingleChild={addPlaceholders:function e(t,r){if(t.children){for(var n=0;n<t.children.length;n++)e(t.children[n]);if(1===t.children.length){var i=1.2*t.size;r&&(i=.1*t.children[0].size),t.children.push({name:"placeholder",size:i})}}},removePlaceholders:function e(t){for(var r=t.length-1;r>=0;r--){var n=t[r];"placeholder"===n.data.name?t.splice(r,1):n.children&&e(n.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.children&&1===r.children.length){var n=r.x-r.children[0].x;r.children[0].x+=n,i(r.children[0],n)}}function i(e,t){if(e.children)for(var r=0;r<e.children.length;r++)e.children[r].x+=t,i(e.children[r],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,r=e[0].y,n=0;n<e.length;n++){var i=e[n];i.x-=t,i.y-=r}}},t.a=n},66:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));const n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},68:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));const n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},69:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(n=>{e.success(t.instant(r)),setTimeout(n,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},701:function(e,t){
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[17,27,28,29,41,42,54,77,122,123,124,125,126,127,128,130,131,160,195,203,242,251,256,273,275],{103:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",r),r.$inject=["$http"];function r(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,r){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:r}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,r,n){return e.get("rest/dependencies/matrix",{params:{mode:r,classes:_.map(t,(function(e){return e.name})),graphURI:n}})},getRelationshipsClasses:function(t,r){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:r}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,r,n){return e.get("rest/dependencies/predicates",{params:{from:t,to:r,mode:"all",graphURI:n}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let r={headers:{"Content-Type":"application/json"}};return r=Object.assign(r,t),e.post("rest/explore-graph/graph",r)},getRdfsLabelAndComment:function(t,r,n){const i=n||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(i,{uri:t,languages:r}),headers:{Accept:"application/json"}})}}}},176:function(e,t){function r(e){return{initLazyList:function(t,r,n,i,a){return e((function(){const e=t+i-1,o=Math.max(0-i,e),s=Math.min(e+r-1,a.length);o>s?n([]):$.isArray(a)&&n(a.slice(o,s+1))}),100,!0)}}}angular.module("graphdb.framework.graphexplore.services.uiscroll",[]).factory("UiScrollService",r),r.$inject=["$timeout"]},177:function(e,t){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function t(e){const t={};for(let r in e)if(e.hasOwnProperty(r)){let n=r;r.indexOf(":")>-1&&(n=r,r=r.split(":")[1].toLowerCase()),t[r]=e[n]}return t}const r=e.results.bindings,n=[],i=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=t(e.label),n.push(r)),angular.isUndefined(e.comment)||(r=t(e.comment),i.push(r))}));const a=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(n,a)[0],s=$.grep(i,a)[0],c=angular.isUndefined(o)?n.length>0?n[0].value:void 0:o.value,l=angular.isUndefined(s)?i.length>0?i[0].value:void 0:s.value;return{rdfsLabel:c,rdfsComment:l}}}}))},178:function(e,t){angular.module("graphdb.framework.rest.graphexplore.savedgraphs.service",[]).factory("SavedGraphsRestService",r),r.$inject=["$http"];function r(e){return{getSavedGraphs:function(){return e.get("rest/explore-graph/saved")},getSavedGraph:function(t){return e.get("rest/explore-graph/saved/"+encodeURIComponent(t))},editSavedGraph:function(t){return e.put("rest/explore-graph/saved/"+encodeURIComponent(t.id),t)},deleteSavedGraph:function(t){return e.delete("rest/explore-graph/saved/"+encodeURIComponent(t.id))},addNewSavedGraph:function(t){return e.post("rest/explore-graph/saved",t)}}}},179:function(e,t,r){"use strict";r.r(t);var n=r(91);angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",i);function i(e){return{getGraphConfigs:function(){return e.get("rest/explore-graph/config")},getGraphConfigSamples:function(){return e.get("rest/explore-graph/samples")},loadGraphForConfig:function(t,r,n,i){return e.get(`rest/explore-graph/config/graph/${encodeURIComponent(t.id)}?includeInferred=${r}&linksLimit=${n}&sameAsState=${i}`)},getConfig:function(t){return e.get("rest/explore-graph/config/"+encodeURIComponent(t)).then(e=>Object(n.mapGraphsConfigResponseToModel)(e.data))},createGraphConfig:function(t){return e.post("rest/explore-graph/config",t)},updateGraphConfig:function(t){return console.log("rest update",t),e.put("rest/explore-graph/config/"+encodeURIComponent(t.id),t)},deleteGraphConfig:function(t){return e.delete("rest/explore-graph/config/"+encodeURIComponent(t.id))},validateQuery:function(t,r,n,i,a){return e({method:"POST",url:"rest/explore-graph/validate",data:{query:t,queryType:r,params:n,all:i,oneOf:a}})}}}i.$inject=["$http"]},180:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p,f,h,g,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,p.firefox?e.currentBrowserLimit=50:(p.safari||p.msie||p.msedge)&&(e.currentBrowserLimit=400);const y={};let v=0,x=0;t.key="",y.get=function(t,r,n){return c.initLazyList(t,r,n,v,e.instancesObj.items)};let S=allGraphs;const w=function(){if(e.getActiveRepository())return g.resolveGraphs(n.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,C()})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),m.instant("graphexplore.error.getting.graphs"))}))},C=function(){const t=f.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?S=t:f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},b=function(){return e.instancesObj.items.length<1e3?m.instant("graphexplore.search.class.instances"):m.instant("graphexplore.search.first.class.instances")};t.$watch((function(){return t.key}),(function(){v=0,_.each(e.instancesObj.items,(function(e){t.key>e&&v++})),x++})),y.revision=function(){return x},e.adapterContainer={adapter:{remain:!0}};const I=[];I.push(e.$on("goToDomainRangeGraphView",(function(e,t){E(t)}))),I.push(e.$on("classCount",R)),I.push(e.$on("repositoryIsSet",(function(){if(!i.isLicenseValid())return;if(T===n.getActiveRepository())return;T=n.getActiveRepository();if(e.repositoryError=null,!T)return;S=allGraphs,w().then(P)}))),I.push(t.$on("$translateChangeSuccess",()=>{e.instancesSearchPlaceholder=b()}));function R(t,r,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==r&&(e.classCountSlider={});var i;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:r,options:{floor:1,ceil:r,vertical:!0,showSelectionBar:!0,onChange:function(){d(k,100,!0)}}},null===f.get(h.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&r>e.currentBrowserLimit&&(i=e.currentBrowserLimit,p.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:i}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:p.name,classLimit:i}),m.instant("graphexplore.reducing.visual.effects"))));const a=f.get(h.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:r>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),r>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),d((function(){e.$broadcast("reCalcViewDimensions")}),200),k();let s=0;$("rzslider").on("wheel",(function(t){t.preventDefault(),t.stopPropagation();const r=(new Date).getTime();if(!(r-s>100))return;s=r,t=t.originalEvent;let n=e.classCountSlider.value;t.deltaY<=-1?n+=1:t.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,d(k,100,!0)}))}))}function k(){e.currentSliderValue=e.classCountSlider.value}function E(e){const t=e.data.fullName,n=e.data.name;s.checkDomainRangeData(t).success((function(e,i){204===i?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(f.set(h.CLASS_HIERARCHY_LAST_SELECTED_CLASS,r.hash()),r.hash("").path("domain-range-graph").search("uri",t).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function L(){r.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,f.clearClassHieararchyState(),e.hidePrefixes="true"===f.get(h.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},t.$broadcast("angucomplete-alt:clearInput")}function A(){e.hasClassHierarchy()&&d((function(){$("#toolbar").removeClass("ng-hide")}),0)}I.push(e.$on("$destroy",()=>{I.forEach(e=>e())})),e.datasource=y,e.goToDomainRangeGraphView=E,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,t.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){u.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){L(),e.loader=!0,e.hierarchyError=!1,s.reloadClassHierarchy(S.contextID.uri).success((function(t){e.loader=!1,e.classHierarchyData=t,A(),R()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){u.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const r={name:e.title};t.$broadcast("searchedClass",r)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},w(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(t){const r=t.data.fullName;let n=t.data.name;if(n===r){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(r);const i=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+r+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+i+"&execute=true",s.getRdfsLabelAndComment(r).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,s.getClassInstances(r).success((function(t){e.instancesObj.items=[],_.each(t,(function(t,r){const n={};n.type=t.startsWith("<<")&&t.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(t),n.absUriNonEncoded=t,n.resolvedUri=r,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=b(),e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let T=n.getActiveRepository();function P(){L(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,s.getClassHierarchyData(S.contextID.uri).success((function(t,r){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=t,207===r&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),A()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return i.isLicenseValid()},e.chosenGraph=function(e){S=e,P(),f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},e.getSelGraphValue=function(){return S.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]},181:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const f={};let h=0,g=0;r.key="",f.get=function(t,r,n){return l.initLazyList(t,r,n,h,e.predicatesObj.items)},r.$watch((function(){return r.key}),(function(){h=0,_.each(e.predicatesObj.items,(function(e){r.key>e&&h++})),g++})),f.revision=function(){return g},e.adapterContainer={adapter:{remain:!0}};const m=o.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function y(){const e=o.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);t.search("").hash(e).path("hierarchy")}e.collapseEdges=null===m||"true"===m,e.datasource=f,e.$on("reloadDomainRangeGraphView",(function(e,r){const n=r.objectPropClassUri,i=r.objectPropClassName;t.path("domain-range-graph").search("uri",n).search("name",i)})),e.$on("switchEdgeMode",(function(e,r){t.path("domain-range-graph").search("uri",r.uri).search("name",r.name).search("collapsed",r.collapsed)})),e.$on("repositoryIsSet",(function(){if(v===i.getActiveRepository())return;v=i.getActiveRepository();y()})),e.$on("changeCollapsedEdgesState",(function(t,r){e.collapseEdges=!r,o.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=y,e.copyToClipboard=function(e){d.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,a.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&n((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(t){const r=t.target,n=t.source;e.encodedUri=encodeURIComponent(t.uri),e.sourceTargetObjectNodeUri=r.objectPropClassUri?r.objectPropClassUri:n.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=r.objectPropClassName?r.objectPropClassName:n.objectPropClassName?n.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?c.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment})).error((function(){u.error(p.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const i=r.allEdges?r.allEdges:n.allEdges;_.each(i,(function(t){const r={};r.absUri=encodeURIComponent(t.uri),r.absUriNonEncoded=t.uri,r.resolvedUri=t.name,r.isImplicit=t.implicit,e.predicatesObj.items.push(r)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let v=i.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",n),n.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]},182:function(e,t,r){(function(e){const t="WAIT",r="NO_REPO",n="READY",i="IN_PROGRESS",a="ERROR",o={contextID:{type:"all",value:"all.graphs.label",uri:""}};function s(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let r=e/Math.pow(1e3,t);return r=r%1>1/Math.pow(1e3,t-1)?r.toFixed(2):r.toFixed(0),r+["K","M","G","T","P","H"][t-1]}function c(e,s,c,l,d,u,p,f,h,g,m){let y=null;e.status=c.getActiveRepository()?t:r;let v=o;const x=function(){g.resolveGraphs(c.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,S(),e.isSystemRepository()?"READY"!==e.status&&C():(e.status="WAIT",C(!0))})).error((function(t){e.repositoryError=getError(t),l.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},S=function(){const t=h.get("dependencies-selectedGraph-"+c.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?v=t:h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},w=function(r){d3.select("#dependencies-chord").html(""),e.status=t,u.getRelationshipsData(r,e.direction,v.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=n})).error((function(t){e.status=n,l.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},C=function(r){(e.status!==n||r)&&(e.status=t,u.getRelationshipsStatus(v.contextID.uri).success((function(t){if(e.status=t,e.status===i){if(null!==y)return;y=d(C,2e3)}e.status===n&&(null!==y&&(d.cancel(y),y=null),u.getRelationshipsClasses(e.direction,v.contextID.uri).success((function(t,r){e.allClasses.items=_.filter(t,k),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===r&&l.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=a,l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=a,l.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const b={};let I=0,R=0;function k(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}s.key="",b.get=function(t,r,n){return p.initLazyList(t,r,n,I,e.allClasses.items)},s.$watch((function(){return s.key}),(function(){I=0,_.each(e.allClasses.items,(function(e){s.key>e&&I++})),R++})),b.revision=function(){return R},e.datasource=b,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=k,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!c.getActiveRepository()||e.isSystemRepository()||c.isActiveRepoFedXType()||x()})),e.$on("$destroy",(function(){d.cancel(y)})),e.isLoading=function(){return e.status===i||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,u.calculateRelationships(v.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):C()})).error((function(e){l.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===c.getActiveRepository()};const E=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,v=o,c.getActiveRepository()&&!c.isActiveRepoFedXType()?x():e.status=r}));window.addEventListener("beforeunload",(function e(){E(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){v=e,C(!0),h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},e.getSelectedGraphValue=function(){return v.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>o}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return s})),c.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,r(11))},183:function(e,t,r){"use strict";r.r(t);r(7);var n=r(459),i=r(472),a=(r(10),r(92)),o=r(73);function s(e,t,r,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w,C,b,I,R,k){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=f.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{A(),f.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{m.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),N()},e.changeLimit=t=>{let r=e.settings.linksLimit+t;r<1&&(r=1),r>1e3&&(r=1e3),e.settings.linksLimit=r},e.validateLinksLimit=()=>{e.invalidLimit=!a.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),N()},e.updateSettings=()=>{e.invalidLimit?c.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,(function(e){return e.text})),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,(function(e){return e.text})),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,(function(e){return e.text})),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,(function(e){return e.text})),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,(function(e){return e.text})),e.rootNodeIri?D(e.rootNodeIri):e.queryResultsMode&&f.search().query?M(f.search().query,f.search().sameAs,f.search().inference):"query"===e.configLoaded.startMode&&z(e.configLoaded),P(),e.showInfoPanel=!1,e.showFilter=!1,x.set(S.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{C.getGraphConfigs().success((function(r){e.graphConfigs=r,t&&t()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.graph.configs.short.msg"))}))},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,(function(e){return e.id===t}))[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then((function(){C.deleteGraphConfig(t).success((function(){e.getGraphConfigs(),e.refreshSavedGraphs()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.cannot.delete.config"))}))}))},e.goToGraphConfig=e=>{L({config:e.id},{config:e}),A(),z(e)},e.replaceIRIWithPrefix=t=>{const r=e.namespaces,n=_.findLast(r,(function(e){return 0===t.indexOf(e.uri)}));return n?n.prefix+":"+t.substring(n.uri.length):t};const E=[];t.$on("$translateChangeSuccess",(function(){e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder")})),e.$on("autocompleteStatus",(function(){ce()})),e.$on("repositoryIsSet",(function(t,r){r.newRepo&&(e.hasInitedRepository=!1),se(r.newRepo),r.newRepo&&(A(),$(".graph-visualization svg").empty(),f.search().query&&(e.goToHome(),O()))}));E.push(t.$watch(()=>t.key,()=>{B=0,_.each(e.propertiesObj.items,(function(e){t.key>e&&B++})),W++}));E.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&l((function(){e.adapterContainer.adapter.reload()}),500)}));e.$on("$destroy",()=>{E.forEach(e=>e())});const L=(t,r)=>{e.embedded&&(t.embedded=!0),f.search(t),f.state(r)},A=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,V={},Y=0},T=()=>k.isActive()?e.defaultSettings:e.saveSettings,P=()=>{T().showLinksText?d3.selectAll("svg .link-wrapper text").style("display","block"):d3.selectAll("svg .link-wrapper text").style("display","none")},N=()=>{e.settings.languagesMap=_.map(e.settings.languages,(function(e){return{text:e}})),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,(function(e){return{text:e}})),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,(function(e){return{text:e}})),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,(function(e){return{text:e}})),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,(function(e){return{text:e}}))},D=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},O=()=>{f.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,M(f.search().query,f.search().sameAs,f.search().inference)):e.$on("onRootNodeChange",(function(t,r){e.loading=!0;const n=T();angular.isDefined(r)&&(e.rootNodeIri=r,b.getInstanceNode({iri:r,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState}).then((function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),oe=new ae;const r=oe.addNode(t.data,te/2,re/2);ee=J,Re(r,!0)})).catch((function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.could.not.load.graph"))})))})),f.search().uri&&e.openUri(f.search().uri,!0),f.search().saved&&w.getSavedGraph(f.search().saved).success((function(t){e.loadSavedGraph(t)})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.could.not.open"))}))},M=(t,r,n)=>{const i=T(),a=void 0===r?i.sameAsState:!0===r,o=void 0===n?i.includeInferred:!0===n;e.loading=!0,b.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:o,sameAsState:a}).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t.data),R.instant("graphexplore.error.cannot.load.graph"))}))},G=(e,t)=>{const r=e.split(" ");return t?[r[0],r[1],r[2]].join(">"):[r[0],r[2]].join(">")},j=e=>[e.source.iri,e.target.iri].join(">"),Q=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},U=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},H=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},F=e=>{const t=e.source.isTriple?G(e.source.iri,!0):e.source.iri,r=e.target.isTriple?G(e.target.iri,!0):e.target.iri;return Object(o.removeSpecialChars)(`${t}>${r}>marker`)},z=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?l((function(){e.openUri(t.startIRI,!0)}),0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,C.loadGraphForConfig(t,t.startQueryIncludeInferred,T().linksLimit,t.startQuerySameAs).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.graph.load"))})))},q=function(){var t,r;f.search().config?(t=f.search().config,r=O,t===e.defaultGraphConfig.id?z(e.defaultGraphConfig):C.getConfig(t).then(e=>{z(e),r()}).catch(e=>{c.error(getError(e),R.instant("graphexplore.error.could.not.load.config",{configId:t}))})):f.search().query||f.search().uri?(z(e.defaultGraphConfig),O()):O()};v.onpopstate=function(t){A(),t.state&&(t.state.config?(z(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0))},e.embedded&&(f.search().query||f.search().uri||f.search().config||f.search().saved)&&(e.noGoHome=!0);let B=0,W=0,V={},Y=0;const K=16,X=d3.zoom().scaleExtent([.1,10]);let Z;const J=d3.zoomIdentity.translate(0,-70).scale(1);X.on("zoom",(function(e){k.isActive()||(ee=e.transform,Z.attr("transform",ee))}));let ee=J;const te=1e3,re=1e3;let ne,ie;function ae(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,r){return e.x=t,e.y=r,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,(function(r){const n=r.source.iri,i=r.target.iri,a=_.min([n,i])+"|"+_.max([n,i]);t[a]||(t[a]=1,e[n]=(e[n]||0)+1,e[i]=(e[i]||0)+1)})),_.each(this.links,(function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0}))},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,(function(e){let r,n;r=e.isTripleSource?Te(e.source):_.find(t,(function(t){return t.iri===e.source})),n=e.isTripleTarget?Te(e.target):_.find(t,(function(t){return t.iri===e.target}));let i={source:r,target:n,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){let e=`${i.source.isTriple?G(i.source.iri):i.source.iri}>${i.target.isTriple?G(i.target.iri):i.target.iri}`;if(oe.tripleLinksCopy.has(e)){let t=oe.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),oe.tripleLinksCopy.set(e,t),null}oe.tripleLinksCopy.set(e,[i])}return i}))}(e,t));for(let e of oe.tripleLinksCopy.keys())1===oe.tripleLinksCopy.get(e).length&&oe.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return r(e,t).length};function r(e,t){return _.filter(t,(function(t){return t.source.iri===e.iri||t.target.iri===e.iri}))}this.countLinks=t,this.linksTypes=function(e,t){const n=r(e,t),i=_.map(n,(function(t){return t.source.iri===e.iri?t.target.types:t.source.types}));return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const n=r(e,t),i=_.map(n,(function(e){return e.predicates}));return _.uniq(_.flatten(i))},this.removeTriples=function(e){let t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,(function(r){let n=e.split(">"),i=G(r.source.iri),a=G(r.target.iri);if(i===e&&oe.tripleNodes.delete(a)){let e=a.split(">");t.push({source:e[0],target:e[1]})}let o=i===e||a===e||r.source.iri===n[0]&&r.target.iri===n[1];return o&&(oe.tripleLinksCopy.delete(`${i}>${a}`),oe.tripleLinksCopy.delete(`${a}>${i}`)),o})))}),t.forEach(e=>{this.links=_.reject(this.links,(function(t){return t.source.iri===e.source&&t.target.iri===e.target}))})},this.removeNode=function(r){let n=[];this.links=_.reject(this.links,(function(e){let t=e.source.iri===r.iri||e.target.iri===r.iri;return t&&(e.target.isTriple&&n.push(G(e.target.iri)),e.source.isTriple||e.target.isTriple||n.push([e.source.iri,e.target.iri].join(">"))),t})),this.removeTriples(n);const i=this.links;this.nodes=_.reject(this.nodes,(function(e){return 0===t(e,i)})),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){let n=[],i=this.links;this.links=_.reject(this.links,(function(a){let o=a.source.iri===e.iri&&1===t(a.target,i)&&!a.target.isTriple||a.target.iri===e.iri&&1===t(a.source,i)&&!a.source.isTriple;if(!o){let n;if(a.source.iri!==e.iri||2!==t(a.target,i)||a.target.isTriple?a.target.iri!==e.iri||2!==t(a.source,i)||a.source.isTriple||(n=r(a.source,i)):n=r(a.target,i),!n)return!1;o=(n[0].source.iri===e.iri||n[0].target.iri)&&(n[1].source.iri===e.iri||n[1].target.iri)}return o&&(a.target.isTriple&&n.push(G(a.target.iri)),a.source.isTriple||a.target.isTriple||n.push([a.source.iri,a.target.iri].join(">"))),o})),this.removeTriples(n),i=this.links,this.nodes=_.reject(this.nodes,(function(r){return 0===t(r,i)&&r.iri!==e.iri})),this.computeConnectedness()},this.addTriple=function(e,t,r){e.x=t,e.y=r,e.weight=0;let n=G(e.iri);if(this.tripleNodes.has(n)){let t=this.tripleNodes.get(n);t.push(e),this.tripleNodes.set(n,t)}else e.weight=10,this.tripleNodes.set(n,[e])},this.copyState=function(){const e=_.map(this.nodes,(function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}})),t=JSON.stringify(Array.from(this.tripleNodes.entries())),r=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,(function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}})),tripleNodes:t,tripleLinksCopy:r,colorIndex:Y,type2color:V,transform:ee}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,(function(t){t.fixed&&e.numberOfPinnedNodes++})),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(Y=t.colorIndex,V=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ee=d3.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),ve()}}e.datasource={get:function(t,r,n){return g.initLazyList(t,r,n,B,e.propertiesObj.items)},revision:function(){return W}},p.when(h.getPrincipal()).then(t=>(t=>{const r=t.appSettings;e.defaultSettings.includeInferred=r.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=r.DEFAULT_INFERENCE&&r.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=r.DEFAULT_VIS_GRAPH_SCHEMA;const n=x.get(S.GRAPHS_VIZ);if(n&&"object"==typeof n)try{e.saveSettings=n,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch(t){e.saveSettings=_.cloneDeep(e.defaultSettings),x.set(S.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let oe=new ae;function se(t){!r.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(q),e.getNamespacesPromise=I.getNamespaces(e.getActiveRepository()).success((function(t){const r=_.map(t.results.bindings,(function(e){return{uri:e.namespace.value,prefix:e.prefix.value}}));e.namespaces=_.sortBy(r,(function(e){return e.uri.length})),ce()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.view.will.not.work"))})))}function ce(){s.isLicenseValid()&&(e.getAutocompletePromise=u.checkAutocompleteStatus())}e.addedTag=function(t){return t.text.indexOf(":")<0?(c.warning(R.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const r=e.split(":"),n=r[0],i=r[1];if(!angular.isUndefined(i)){const e=d.getNamespaceUriForPrefix(t,n);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,r){if(e.text.indexOf(":")<0)return r?c.warning(R.instant("graphexplore.absolute.prefixed.iri.option"),t):c.warning(R.instant("graphexplore.absolute.prefixed.iri"),t),!1;const n=e.text.indexOf("*");if(n>=0){if(!r)return c.warning(R.instant("graphexplore.wildcards.not.allowed"),t),!1;if(n<e.text.length-1)return c.warning(R.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},se();const le=d3.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(d3.interpolateHslLong),de=d3.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(d3.interpolateHslLong);e.getColor=function(e){angular.isUndefined(V[e])&&(V[e]=Y,Y++);const t=V[e];return t>39?"#c2c2c2":t%2==0?le(t/2):de(t/2)};const ue=d3.forceX(te/2).strength(.005),pe=d3.forceY(re/2).strength(.005),fe=d3.forceSimulation().force("x",ue).force("y",pe),he=d3.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+te+" "+re).attr("preserveAspectRatio","xMidYMid meet");he.append("rect").attr("width",10*te).attr("height",10*re).attr("x",-(10*te-te)/2).attr("y",-(10*re-re)/2).style("fill","none").style("pointer-events","all").call(X).on("click",(function(e){e.stopPropagation(),ke(),fe.stop()}));let ge=0,me=0;const ye=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){d3.select(t).append("circle").attr("cx",(function(){return e.x})).attr("cy",(function(){return e.y})).attr("class","loader-container").attr("r",(function(){return e.size})).style("fill","fff").style("opacity","0.7"),d3.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=2.8.0-TR1").attr("x",(function(){return e.x-e.size+5})).attr("y",(function(){return e.y-e.size})).attr("width",(function(){return 2*e.size})).attr("height",(function(){return 2*e.size})).attr("class","node-loader")}};function ve(t){d3.selectAll("svg g").remove(),d3.selectAll(".d3-tip").remove(),d3.selectAll(".menu-events").remove(),Z=he.append("g").attr("class","nodes-container").attr("transform",(function(){return angular.isDefined(ee)&&!t?ee:""}));const r=Object(i.a)().attr("class","d3-tip").customPosition((function(){const e=ne.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}})).html((function(t){let r="";return t.fixed&&(r+='<i class="icon-pin"></i>&nbsp;&nbsp;'),t.types.length>0?r+=_.join(_.map(t.types,(function(t){return e.replaceIRIWithPrefix(t)}))," · "):r+="<i>No types</i>",r})),a=function(e){let t="";return t+=_.join(_.map(e.predicates,(function(t,r){if(0===r)return Ne(t);if(r<10)return" · "+Ne(t);if(10===r){const t=function(e){return e.predicates.length-10}(e),r=t>1?t+" predicates":t+" predicate";return" · "+R.instant("graphexplore.tip.text",{textToShow:r})}})),""),t};let s;const d=Object(i.a)().attr("class","d3-tip").customPosition((function(e){const t=s.getBoundingClientRect(),r=function(e){const t=a(e),r=document.createElement("canvas").getContext("2d");return r.font="13px Arial",e.predicates.length<10?r.measureText(t).width:r.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:r+"px"}})).html((function(e){return a(e)}));const u=function(){l.cancel(void 0),l.cancel(ge),ne=null,r.hide(),me=l((function(){ke()}),500)};he.call(r);he.call(d);let p=he.selectAll(".link"),f=he.selectAll(".node");const h=d3.forceCollide(e=>e.size+5).strength(.5),g=d3.forceManyBody().strength(-300),m=d3.forceCenter(te/2,re/2);fe.nodes(oe.nodes).force("charge",g).force("collide",h).force("center",m).force("link",d3.forceLink(oe.links).distance((function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),r=e.predicates[0].split("/"),n=r[r.length-1];t.addClass("predicate-text").text(n),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness}))),Z.append("defs").selectAll("marker").data(oe.links).enter().append("marker").attr("class","arrow-marker").attr("id",(function(e){return F(e)})).attr("viewBox","0 -5 10 10").attr("refX",(function(e){return e.target.isTriple?11:e.target.size+11})).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),p=Z.selectAll(".link").data(oe.links).enter().append("g").attr("class","link-wrapper").attr("id",(function(e){return Object(o.removeSpecialChars)(j(e))})).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",(function(e){return`url(#${F(e)})`}));const y=Z.selectAll(".link-wrapper").append("text").text((function(e){return Pe(e)})).attr("class",(function(e){return e.predicates.length>1||oe.tripleNodes.has(j(e))?"predicates":"predicate"})).attr("dy","-0.5em").style("text-anchor","middle").style("display",T().showLinksText?"":"none").on("mouseover",(function(e,t){e.stopPropagation(),function(e,t){l.cancel(void 0);const r=s=e.target;l((function(){s===r&&t.predicates.length>1&&d.show(t,s)}),300)}(e,t)})).on("mouseout",(function(){l.cancel(void 0),s=null,d.hide()})).on("click",(function(t,r){t.stopPropagation(),function(t,r){Ae();const n=j(r);if(1===r.predicates.length&&oe.tripleNodes.has(n)){ie=null;const e=oe.tripleNodes.get(n)[0];if(we(e,this,t.button)){const t={};t.iri=e.iri,t.pred=Ne(e.iri.split(" ")[1]),_e(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ie===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ie=null);ie=t,e.showPredicates&&(e.predicates=_.map(t.predicates,(function(e){const r=function(e,t){const r=j(t);return oe.tripleNodes.has(r)?oe.tripleNodes.get(r).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),n=r>-1;return{value:Ne(e),partOfTriple:n,linkId:n?j(t):"",nodeIndex:r}})),e.showInfoPanel=!0)}(r)}(t,r)}));let v,x=0,S=null,w=null;const C=function(t,r,n){let i=n||this.parentNode;Array.isArray(n)&&(i=n[r]);oe.countLinks(t,oe.links)<=T().linksLimit?Re(t,!1,i):c.info(R.instant("graphexplore.increase.limit"),R.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function b(e,t){let r,n,i,a,o=!0;if("down"===t)r=2*e.size,n=e.size/3,i=.8,a=.3;else if("down-fixed"===t)r=2*e.size,n=e.size,i=.8,a=.66;else if("up"===t)r=e.size/3,n=2*e.size,i=.3,a=.8;else{if("fixed"!==t)return;r=e.size,i=.66,o=!1}let s=Z.selectAll(".node-wrapper").filter((function(t){return t===e})).append("text").text("").classed("icon-any pinned",!0).style("font-size",r+"px").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=s),o&&(s=s.transition().duration(1e3).style("font-size",(function(){return n+"px"})).attr("opacity",a),"down-fixed"!==t&&s.remove())}const I=d3.drag().subject((function(e){return e})).on("start",(function(e,t){if(k.isActive())return;0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,ke(),d3.select(this).classed("dragging",!0),fe.alphaTarget(.3).restart())})).on("drag",(function(t,r){r.isBeingDragged&&(r.fx=t.x,r.fy=t.y,r.fixed?r.beginDragging&&b(r,"fixed"):(e.numberOfPinnedNodes++,r.fixed=!0,b(r,"down-fixed")),r.pinWasFixed=!0,r.beginDragging=null)})).on("end",(function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,d3.select(".pinned").remove()),t.isBeingDragged=!1,d3.select(this).classed("dragging",!1));fe.alphaTarget(0)}));f=Z.selectAll(".node").data(oe.nodes).enter().append("g").attr("class","node-wrapper").attr("id",(function(e){return e.iri})).append("circle").attr("class","node").attr("r",(function(e){return e.size})).style("fill",(function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])})).on("mouseover",(function(t,n){n.isBeingDragged||(l.cancel(me),ge=l(()=>{(function(t,r){if(e.showInfoPanel)return!1;(Se.closeIcon||Se.expandIcon||Se.focusIcon||Se.copyURIIcon)&&Se.removeIcons();if(fe.alpha()<.1)return Se.initIcons(t,r.parentNode),fe.stop(),xe(),!0;return!1})(n,this)&&function(e,t){l.cancel(void 0);const n=ne=t.target;l((function(){ne===n&&r.show(e,ne)}),300)}(n,t)},400))})).on("mouseout",u).on("click",(function(t,r){if(t.button&&0!==t.button)return;const n=this;if(S&&w===n)return l.cancel(S),S=null,void C(r,0,n.parentNode);w=n,u(),e.showPredicates=!1,k.isActive()||(l.cancel(S),S=l((function(){we(r,n,t),S=null}),540))})).on("touchstart",(e,t)=>function(e){x=0,v=l((function(){x<5&&Ce(e),v=null}),1e3)}(t)).on("touchmove",(function(){x++})).on("touchend",(function(){l.cancel(v),v=null})).on("contextmenu",(function(t,n){t.shiftKey||(t.preventDefault(),ke(),e.closeInfoPanel(),n.fixed?(e.numberOfPinnedNodes--,n.fixed=!1,n.fx=null,n.fy=null,b(n,"up"),fe.alpha(1).restart()):(e.numberOfPinnedNodes++,n.fixed=!0,b(n,"down")),function(e){ne&&r.show(e,ne)}(n))})).on("gdb-expand-node",(e,t)=>C(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Ee(t)).call(I);const E=Z.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",(function(e){return 2*e.size*1.75}));Z.insert("g").attr("class","menu-events"),(e=>{e.each((function(e){e.fontSize=n.a.Text.calcFontSizeRaw(e.labels[0].label,e.size,K,!0)})).attr("height",(function(e){return 3*e.fontSize})).append("xhtml:div").attr("class","node-label-body").style("font-size",(function(e){return e.fontSize+"px"})).append("xhtml:div").text((function(e){return e.labels[0].label})),l((function(){$(".node-label-body div").each((function(e,t){let r=t.textContent.substring(0,t.textContent.length-1);let n=0;for(;n<200&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)r=r.substring(0,r.length-1),t.textContent=r+"…",n++}))}),50)})(E),fe.on("tick",(function(){p.attr("x1",(function(e){return Q(e.source)})).attr("y1",(function(e){return U(e.source)})).attr("x2",(function(e){return Q(e.target)})).attr("y2",(function(e){return U(e.target)})),y.attr("x",(function(e){let t=Q(e.source),r=Q(e.target);return e.x=.5*(t+r)})).attr("y",(function(e){let t=U(e.source),r=U(e.target);return e.y=.5*(t+r)})).attr("transform",(function(e){return"rotate("+function(e,t){const r={x:Q(e.source),y:U(e.source)},n={x:Q(e.target),y:U(e.target)};if(t)return 180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;{const e=180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"})),f.attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),Z.select(".node-loader").attr("x",(function(e){return e.x-e.size+3})).attr("y",(function(e){return e.y-e.size})),Z.select(".loader-container").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),E.attr("x",(function(e){return e.x-1.75*e.size})).attr("y",(function(e){return e.y-3*e.fontSize/2})),d3.select(".pinned").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})),xe()})),angular.isDefined(ye)&&ye.setLoadingState(!1),e.loading&&(e.loading=!1),d3.selectAll(".link-wrapper").each((function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];d3.selectAll(".link").each((function(r){const n=Object(o.removeSpecialChars)(r.source.iri),i=Object(o.removeSpecialChars)(r.target.iri);if(n===t&&i===e){let e=n;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),r.direction="double"}}))})),d3.selectAll(".d3-actions-tip").remove(),fe.alpha(.3).restart()}function xe(){t.d3alpha=fe.alpha()}const Se=new function(){function r(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(n,a){const o=Object(i.a)().attr("class","d3-tip d3-actions-tip").customPosition((function(e,t){const r=t.target.getBoundingClientRect();return{top:r.top-20+"px",left:r.right+10+"px"}})).html((function(e){return e}));he.call(o);n.isExpanded?(this.collapseIcon=d3.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",(function(){return r(20,n)})),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",(function(){var e;(e=n).isExpanded=!1,oe.removeNodeLeafLinks(e),ve()})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(ge),l.cancel(me)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))):(this.expandIcon=d3.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",(function(){return r(20,n)})),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",(function(){Re(n,!1,a)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))),this.focusIcon=d3.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",(function(){return r(20,n)})),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",(function(){t.$broadcast("onRootNodeChange",n.iri)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.copyURIIcon=d3.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",(function(){return r(20,n)})),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",(function(){e.copyToClipboard(n.iri),ke(),o.hide()})).on("mouseover",(function(e){o.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+n.iri+"</div>",e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.closeIcon=d3.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",(function(){return r(20,n)})),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",(function(){Ce(n)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.animateMenu(n)},this.animateMenu=function(e){const t=d3.easeSin;let n=0;let i=20;this.expandIcon&&this.expandIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.collapseIcon&&this.collapseIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.copyURIIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.focusIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.closeIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.expandedState=!0}};function we(r,n,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",r.iri),!1):i.ctrlKey||i.metaKey?(Ce(r),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===r?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Ee(r),!0)}function Ce(e){oe.removeNode(e),ve()}function be(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),oe=new ae,ee=J}(t),Ie(t)}function Ie(t,r,n){let i=t.data;i=_.filter(i,(function(e){return-1===_.findIndex(oe.links,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))}));const a=[],o=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){o.next().value.forEach(e=>{a.push(e)})}i=_.filter(i,(function(e){return-1===_.findIndex(a,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))})),i=_.filter(i,(function(e){return e.source!==e.target}));const s=((e,t)=>{const r=t.map(t=>t[e]);return t.filter((t,n)=>r.indexOf(t[e])===n)})("iri",_.union(_.flatten(_.map(t.data,(function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]}))))),l=_.map(oe.nodes,(function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}})),d=oe.tripleNodes.values();for(let e=0;e<oe.tripleNodes.size;e++){d.next().value.forEach(e=>{l.push({iri:e.iri,isTriple:e.isTriple})})}const u=_.reject(s,(function(e){return _.some(l,e)}));if(0===u.length)(n||0===i.length)&&c.info(R.instant("graphexplore.error.node.connections")),oe.addAndMatchLinks(i),ve();else{const t=[],n=[],a=T();_.forEach(u,(function(r,i){t.push(b.getInstanceNode({iri:r.isTriple?H(r.iri):r.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?a.languages:[],includeInferred:a.includeInferred,sameAsState:a.sameAsState}).then((function(e){n[i]=e.data})))})),p.all(t).then((function(){_.forEach(n,(function(e,t){const i=2*Math.PI*t/n.length,a=(r?r.x:0)+Math.cos(i)*re/3,o=(r?r.y:0)+Math.sin(i)*re/3;e.isTriple?oe.addTriple(e,a,o):oe.addNode(e,a,o)})),oe.addAndMatchLinks(i),r&&(r.isExpanded=!0),ve()}))}}function Re(t,r,n){if(ye.getLoadingState())return;ye.init(t,n);const i=T(),a=t.iri;b.getInstanceNodeLinks({iri:a,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then((function(e){Ie(e,t,r)}),(function(t){const r=getError(t.data);c.error(r,R.instant("graphexplore.error.exploring.node")),e.loading=!1,ye.setLoadingState(!1)}))}function ke(){angular.isDefined(Se)&&Se.expandedState&&Se.removeIcons()}function Ee(t){fe.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(H(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const r=T();b.getProperties({iri:t.isTriple?H(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState,rejectedPredicates:e.shouldShowSettings()?r.rejectedPredicates:[]}).then((function(t){e.data=_.mapKeys(t.data,(function(t,r){return e.replaceIRIWithPrefix(r)})),e.propertiesObj.items=[],_.forEach(e.data,(function(t,r){e.propertiesObj.items.push({key:r,value:t})})),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const r=_.find(e.propertiesObj.items,(function(e){return"image"===e.key}));r&&(e.nodeImage=r.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,(function(e){return"image"===e.key})),e.propertiesNotFiltered=e.propertiesObj.items}),(function(e){c.warning(getError(e.data),"Error")}))}function _e(e){Le("predicate","var(--primary-color-dark)",e),Le("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)}));const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))}))}function Le(e,t,r){const n=document.getElementsByClassName(e);n&&_.each(n,(function(e){const n=e.__data__;r?((n.source.iri.indexOf(r.iri)>=0||n.target.iri.indexOf(r.iri)>=0)&&(e.style.fill=t),G(r.iri)===j(n)&&(e.textContent=r.pred,e.style.fill=t),r.oppLinkIRI&&r.oppLinkIRI===j(n)&&(e.textContent=r.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Pe(n))}))}function Ae(){_.each(e.predicates,(function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")}));const t=document.getElementsByClassName("link");t&&_.each(t,(function(e){e.style.stroke="#999",e.style.strokeWidth=1})),Le("predicate",""),Le("predicates","");const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")}))}function Te(e){const t=G(e);if(oe.tripleNodes.has(t))return oe.tripleNodes.get(t).find(t=>t.iri===e)}function Pe(e){return e.predicates.length>1?e.predicates.length+" predicates":Ne(e.predicates[0])}function Ne(t){const r=e.replaceIRIWithPrefix(t);return r.length===t.length?t.split("/")[t.split("/").length-1]:r}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ie=null,l((function(){e.showInfoPanel=!1}))},e.clickLink=function(t){if(oe.tripleNodes.has(t.linkId)){Ae();const r=oe.tripleNodes.get(t.linkId)[t.nodeIndex];Ee(r),e.showPredicates=!0;const n=document.getElementById(t.linkId+t.nodeIndex);n&&(n.style.fontWeight="bold");const i={},a=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){const e=a.next().value;e.length>1&&e.every(t=>t.source.iri===r.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=G(t.target.iri),i.oppTriplePred=Ne(t.target.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==r.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=G(t.source.iri),i.oppTriplePred=Ne(t.source.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=r.iri,i.pred=Ne(r.iri.split(" ")[1])),_e(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLoadingLocation=function(){return r.isLoadingLocation()},e.hasActiveLocation=function(){return r.hasActiveLocation()},e.rotate=function(e){ke();const t=10*(e?1:-1)*Math.PI/180,r=Math.cos(t),n=Math.sin(t),i=te/2,a=re/2;d3.selectAll(".node-wrapper").each((function(e){e.x=i+(r*(e.x-i)+n*(e.y-a)),e.y=a+(-n*(e.x-i)+r*(e.y-a)),e.fixed&&(e.fx=e.x,e.fy=e.y)})),fe.alpha(1).restart()},e.openUri=function(t,r){if(!r){const r={};e.configLoaded.id!==e.defaultGraphConfig.id&&(r.config=e.configLoaded.id),r.uri=t,L(r,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(oe.copyState()),r={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};r.id?e.saveGraphModal("update",r):e.saveGraphModal("new",r)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};const De=function(t){w.editSavedGraph(t).success((function(){e.lastSavedGraphName=t.name,e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.edited",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.edit"))}))};e.saveGraphModal=function(t,r,n){y.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:r,graphExists:n,shared:r.shared}}}}).result.then((function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),w.addNewSavedGraph(t).success((function(r,n,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph",{name:t.name}))})).error((function(r,n){if(422===n)e.saveGraphModal("new",t,!0);else{const e=getError(r);c.error(e,R.instant("graphexplore.error.cannot.create.graph"))}}))}(t.graph);break;case"update":case"rename":De(t.graph)}}))},e.refreshSavedGraphs=function(){w.getSavedGraphs().success((function(t){e.savedGraphs=t})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.getting.saved.graphs"))}))},e.loadSavedGraph=function(t,r){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),f.url("?saved="+t.id),oe.restoreState(JSON.parse(t.data)),r||L({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const r=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(r)},e.deleteSavedGraph=function(t){m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then((function(){!function(t){w.deleteSavedGraph(t).success((function(){e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.delete"))}))}(t)}))},e.openIRI=function(t,r){return r.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){ke();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,d3.selectAll(".node").each((function(r){r.fixed=t,t?(e.numberOfPinnedNodes++,r.fx=r.x,r.fy=r.y):(r.fx=null,r.fy=null)})),fe.alpha(1).restart()},$("body").on("keydown",(function(t){!k.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))})),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function c(e,t,r,n){switch(e.mode=r.mode,e.graph=_.cloneDeep(r.graph),e.graphExists=r.graphExists,e.mode){case"new":e.title=n.instant("graphexplore.create.new.graph"),e.okButtonText=n.instant("common.create.btn");break;case"update":e.title=n.instant("graphexplore.update"),e.okButtonText=n.instant("common.save.btn");break;case"rename":e.title=n.instant("graphexplore.rename"),e.okButtonText=n.instant("common.save.btn")}e.ok=function(){e.form.$valid&&t.close({graph:e.graph,mode:e.mode})},e.saveNew=function(){e.graph.name=e.graph.name+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter"]).controller("GraphsVisualizationsCtrl",s).controller("SaveGraphModalCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),s.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","AutocompleteRestService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","RDF4JRepositoriesRestService","$translate","GuidesService"],c.$inject=["$scope","$uibModalInstance","data","$translate"]},184:function(e,t,r){"use strict";r.r(t);r(70),r(10);var n=r(69),i=r(67),a=r(14),o=r(76),s=r(91);function c(e,t,r,c,l,d,u,p,f,h,g,m,y,v,x,S,w){let C;t.newConfig=new o.GraphsConfig,t.revertConfig=void 0,t.page=1,t.totalPages=5,t.helpHidden=1===v.get(x.HIDE_GRAPH_CONFIG_HELP),t.isUpdate=!1,t.shared=!1,t.canEditActiveRepo=t.canWriteActiveRepo(),t.samples=[],t.tabConfig={inference:t.newConfig.startQueryIncludeInferred,sameAs:t.newConfig.startQuerySameAs},t.getAutocompletePromise=void 0,t.getNamespacesPromise=void 0,t.tabsViewModel=[];const b=g.configName,I=d.getActiveRepository();t.toggleHelp=e=>{void 0===e&&(e=v.get(x.HIDE_GRAPH_CONFIG_HELP)),1!==e?(v.set(x.HIDE_GRAPH_CONFIG_HELP,1),t.helpHidden=!0):(v.set(x.HIDE_GRAPH_CONFIG_HELP,0),t.helpHidden=!1)},t.fixedVisualCallback=(e,r)=>{t.newConfig.startIRI=e,t.newConfig.startIRILabel=r,C=!0},t.isDefaultGraph=e=>e.isDefaultGraph(),t.isUserGraph=e=>!e.isDefaultGraph(),t.getSampleName=(e,t)=>{if(!e)return"";const r=e.getPropertyDescription(t);return r||(e.id?"Copy of "+e.name:e.name)},t.createGraphConfig=e=>{f.createGraphConfig(e).success((async function(){await m.showToastMessageWithDelay("graphexplore.saved.new.config"),c.url("graphs-visualizations")})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.could.not.create"))}))},t.updateGraphConfig=e=>{f.updateGraphConfig(e).success((async function(){await m.showToastMessageWithDelay("graphexplore.saved.config"),c.url("graphs-visualizations")})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.could.not.save"))}))},t.goToPage=e=>{t.page!==e&&T(()=>{t.showEditor(),t.page=e})},t.goToPreviousPage=()=>{t.page>1&&t.goToPage(t.page-1),M()&&(C=!1)},t.goToNextPage=()=>{$(),t.newConfig.isStartMode(o.StartMode.NODE)&&!C||t.goToPage(t.page+1)},t.saveGraphConfig=()=>{$(),M()&&!C||(t.newConfig.startQueryIncludeInferred=t.tabConfig.inference,t.newConfig.startQuerySameAs=t.tabConfig.sameAs,T(()=>{t.newConfig.name?(t.queryEditorIsDirty=!1,t.isUpdate?t.updateGraphConfig(t.newConfig.toSavePayload()):t.createGraphConfig(t.newConfig.toSavePayload())):N(S.instant("graphexplore.provide.config.name"))}))},t.setQuery=async e=>{const r=e||" ";(await R()).setQuery(r),t.markDirty()},t.markDirty=async()=>{if(t.revertConfig){const e=t.revertConfig.getQueryType(t.page),r=await L();t.queryEditorIsDirty=e!==r}},t.showEditor=()=>{t.viewMode="yasr",A(),_()},t.showPreview=()=>{t.viewMode="editor",k()},t.revertEditor=()=>{t.setQuery(t.revertConfig.getQueryType(t.page)),t.queryEditorIsDirty=!1};const R=()=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),k=async(e,r)=>{const n=await R(),i=await n.getQueryType();if(r&&"SELECT"!==i&&"CONSTRUCT"!==i&&"DESCRIBE"!==i)return void l.warning(S.instant("query.editor.warning.msg"));"update"!==await n.getQueryMode()?t.queryIsRunning||(t.viewMode="editor",E()):l.warning(S.instant("cannot.execute.update.error"))},E=async()=>{(await R()).query(i.RenderingMode.YASR)},_=async()=>(await R()).changeRenderMode(i.RenderingMode.YASQE),L=async()=>(await R()).getQuery(),A=async()=>(await R()).abortQuery(),T=async e=>{const r=await(async()=>{const e=await R();let r=await e.getQuery();return r=r.trim(),t.newConfig.updateModel(r,t.page)})();1===t.page?r.isStartMode(o.StartMode.NODE)&&!r.startIRI?N(S.instant("graphexplore.select.start.node")):r.isStartMode(o.StartMode.QUERY)&&!r.startGraphQuery?N(S.instant("graphexplore.provide.query")):r.isStartMode(o.StartMode.QUERY)?O(e,r.startGraphQuery,"graph"):e():2===t.page?O(e,r.expandQuery,"construct",["node"]):3===t.page?O(e,r.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===t.page?O(e,r.predicateLabelQuery,"tuple",["edge"],["label"]):5===t.page&&O(e,r.resourcePropertiesQuery,"tuple",["node"],["property","value"])},P=()=>{t.tabConfig.inference=t.newConfig.startQueryIncludeInferred,t.tabConfig.sameAs=t.newConfig.startQuerySameAs,t.setQuery(t.newConfig.getQueryType(t.page))},N=e=>{l.warning(e)},D=()=>{t.getAutocompletePromise=h.checkAutocompleteStatus()},O=(e,t,r,n,i,a)=>{t?f.validateQuery(t,r,n,i,a).success(()=>{e()}).error(e=>{N(getError(e))}):e()},$=()=>{M()&&t.$broadcast("addStartFixedNodeAutomatically",{startIRI:t.newConfig.startIRI})},M=()=>1===t.page&&t.newConfig.isStartMode(o.StartMode.NODE),G=()=>{f.getGraphConfigSamples().success((function(e){t.samples=Object(s.mapGraphConfigSamplesToGraphConfigs)(e).filter(e=>!e.id||t.newConfig.id!==e.id||(t.revertConfig=e,!1))})).error((function(e){l.error(getError(e),S.instant("graphexplore.error.graph.configs"))})),D(),t.getNamespacesPromise=y.getNamespaces(t.getActiveRepository())},j={endpoint:()=>"repositories/"+d.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:a.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:i.RenderingMode.YASQE,maxPersistentResponseSize:0,showYasqeResizer:!1,yasqeMode:n.YasqeMode.PROTECTED,infer:t.newConfig.startQueryIncludeInferred,sameAs:t.newConfig.startQuerySameAs},Q=(e,r,n)=>{t.queryIsRunning=e},U=()=>{window.removeEventListener("beforeunload",H),z.forEach(e=>e())},H=e=>{t.queryEditorIsDirty&&(e.returnValue=!0)},F=()=>{t.tabsViewModel=[{page:1,label:S.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:S.instant("graph.expansion"),type:"expandQuery"},{page:3,label:S.instant("node.basics"),type:"resourceQuery"},{page:4,label:S.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:S.instant("node.extra"),type:"resourcePropertiesQuery"}]},z=[];z.push(t.$on("autocompleteStatus",D)),z.push(t.$on("$locationChangeStart",(e,r)=>{if(t.queryEditorIsDirty){e.preventDefault();((e,t,r,n)=>{w.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))})(S.instant("common.confirm"),S.instant("visual.config.warning.unsaved.changes"),()=>{U();const e=c.absUrl().length-c.url().length,t=r.substring(e);c.path(t)})}else U()})),z.push(t.$on("$destroy",U)),z.push(t.$watch(t.getActiveRepositoryObject,()=>{(t.newConfig.isStartMode(o.StartMode.QUERY)||t.page>1)&&(t.viewMode="yasr",A().then(_))})),z.push(e.$on("$translateChangeSuccess",()=>{F()})),window.addEventListener("beforeunload",H),t.$watch("newConfig.startMode",e=>{e===o.StartMode.QUERY&&P()}),t.$watch("page",e=>{(t.newConfig.isStartMode(o.StartMode.QUERY)||e>1)&&(t.showEditor(),P())}),F(),d.getPrefixes(I).then(e=>(e=>{const r=t.$watch((function(){return t.getActiveRepositoryObject()}),(function(i){if(i){t.canEditActiveRepo=t.canWriteActiveRepo();const i=angular.extend({},j,{prefixes:e,yasqeMode:t.canWriteActiveRepo()?n.YasqeMode.WRITE:n.YasqeMode.PROTECTED});t.yasguiConfig=i,r()}}))})(e)).finally(()=>Q(!1)),b?(t.isUpdate=!0,f.getConfig(b).then((function(e){t.newConfig=e,G()})).catch(e=>{l.error(getError(e),S.instant("created.connector",{name:b}))})):(t.isUpdate=!1,G()),t.getActiveRepository()&&(Q(!0,S.instant("common.refreshing.namespaces"),S.instant("common.extra.message")),d.getPrefixes(d.getActiveRepository()).then(e=>{t.namespaces=e}).catch((function(e){t.repositoryError=getError(e)})).finally((function(){Q(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",c),c.$inject=["$rootScope","$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},185:function(e,t,r){"use strict";r.r(t);var n=r(472),i=r(499),a=r(459),o=r(460);r(10);function s(e,t,r,s,c,l,d,u,p,f,h,g,m){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,y,v){!function(d,y){var v,x,S=d3.pack().size([780,780]),w=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function b(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function I(){return"true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.8.0-TR1");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=I();var k,E,L=b();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=h.get("classHierarchy-selectedGraph-"+l.getActiveRepository());r.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,r,n){e.loader=!1,207===r&&u.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(m.instant("graphexplore.error.request.failed",{name:f,error:getError(t)}))}))}var A,T,P,N,D,O,M,G={};function j(r,o,l,u){T&&T(),P&&P(),d3.selectAll("#main-group").remove(),L=b(),i.a.SingleChild.addPlaceholders(r,!0),(x=d3.hierarchy(r)).sum((function(e){return e.size})),A=l||x,S(x);var h,g=x.descendants();A.isInFocusTransitive=!0,i.a.SingleChild.removePlaceholders(g),i.a.SingleChild.centerNodes(g),i.a.SingleChild.makePositionsRelativeToZero(g),v||(v=Object(n.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(v));var m=L.selectAll("circle").data(g).enter().append("g");o.doFade&&m.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)}));var y,I=[],R=m.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?w(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==f){var t=e.data.name;I.push({name:t}),G[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?v.show(e,t):v.hide(e)})),e.circle.on("mouseout",v.hide)}})).on("gdb-focus",(e,t)=>E(t)).on("gdb-zoom",(e,t)=>z(t));function N(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),y=e}function D(){d.showClassInfoPanel=!1}I&&(I=_.uniqBy(I,"name"),d.flattenedClassNames=I);var O=a.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(O),E=function(e){z(e),e.data.name===f?(D(),d3.selectAll(".selected").classed("selected",!1)):(N(e),d.selectedClass=y,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},O.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),v.hide(),E(t)})),O.on("dblclick",(function(t,n){n!==r&&(v.hide(),N(n),e.$broadcast("goToDomainRangeGraphView",y,A),t.stopPropagation())}));var $=0;C.on("wheel",(function(e){v.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-$>100){$=t;var r="";e.deltaY<=-1?r="in":e.deltaY>=1&&(r="out");var n=e.target.__data__;if(n||(n=A),"in"===r){if(n!==A){for(;n.parent&&!n.parent.isInFocusTransitive;)n=n.parent;n.depth<A.depth&&(n=A)}if(n===A&&n.children){for(var i=n.children[0],a=1;a<n.children.length;a++)n.children[a].sortingRank>i.sortingRank&&(i=n.children[a]);i.children&&(n=i)}else n.children||(n=n.parent);z(n,!0)}else"out"===r&&(n=A.parent)&&z(n,!0);A.data.name===f&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),Q()}}));var M=L.selectAll("text").data(g).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?(M.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),M.style("display",(function(e){return e.parent&&e.parent.data===A.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&M.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)})),k=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&E(t)}))}var r=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(r)};var j=L.selectAll("circle, text");function U(e,t){var r=800/e[2];h=e,j.attr("transform",(function(t){return"translate("+(t.x-e[0])*r+","+(t.y-e[1])*r+")"})),R.attr("r",(function(e){return e.r*r})),t&&M.each((function(e){e.data.fullName!==A.data.topLevelParentUri&&A.data.topLevelParentUri!==f||(e.textSel.style("display","none"),A.children&&A.children.length?_.each(A.children,(function(e){e.textSel.style("display","inline")})):A.textSel.style("display","inline"),A.parent&&_.each(A.parent.children,(function(e){e.data.name!==A.data.name&&e.textSel.style("display","inline")})))})),M.style("font-size",(function(e){return o.noPrefixes?a.a.Text.calcFontSize(e.noPrefixName,e.r*r):a.a.Text.calcFontSize(e.data.name,e.r*r)})).text((function(e){return o.noPrefixes?a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*r/3):a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*r/3)}))}function H(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function F(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function z(e,t){if(c((function(){d.showExternalElements=e.data.name===f})),A!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,A!==e))){if(t&&(D(),d3.selectAll(".selected").classed("selected",!1)),A.parent)for(var r=A;r;)r.isInFocusTransitive=!1,r=r.parent;for(r=e;r;)r.isInFocusTransitive=!!r.children,r=r.parent;if(2*(A=e).r/(2*A.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)U([A.x,A.y,H(A.r)]),M.each((function(e){F.call(this,e)}));else d3.transition().duration(p).tween("zoom",(function(e){var t=d3.interpolateZoom(h,[A.x,A.y,H(A.r)]);return function(e){U(t(e))}})).selectAll("text").each(F)}}U([A.x,A.y,H(A.r)],u),T=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),E(x)})),P=d.$on("classSearch",(function(e){E(e)}))}function Q(){const t=d.classHierarchyData.classCount;let r=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!r||r>t)&&(r=t,h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,r)),e.$broadcast("classCount",t,r)}window.addEventListener("resize",Q),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",Q),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){N&&N(),D&&D(),O&&O(),M&&M();var e=I();if(d.classHierarchyData.classCount){Q();var t=_.cloneDeep(d.classHierarchyData);var r,n,i=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function a(e,t){const i={keepPrevState:!0,noPrefixes:I()};n=i.noPrefixes,j(r||e,i,A,!0),c((function(){h.set(g.CLASS_HIERARCHY_SWITCH_PREFIXES,t),k()}),70)}function o(e,i,o){if(!e)return;h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:f,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(i[t].data.id),i[t].parent===i[0]&&r.children.push(i[t].data);if(function e(t){if(!t.children)return;const r=[];for(const e of t.children)s.has(e.id)&&r.push($.extend({},e));t.children=r;for(const r of t.children)e(r)}(r),o){n=angular.isUndefined(n)?I():n;j(r,{noPrefixes:n})}else a(t)}var s,l=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,i);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:I()};j(t,u),k()}N=d.$watch("hidePrefixes",(function(r){angular.isUndefined(r)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||h.set(g.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(r),a(t,!0)}),50)}),!0),D=d.$watch("currentSliderValue",(function(e){o(e,i,!0)}),!0),M=d.$on("onEnterKeypressSearchAction",(function(e){s&&E(s)})),O=d.$on("searchedClass",(function(e,t){(s=G[t.name])&&E(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},186:function(e,t,r){"use strict";r.r(t);var n=r(460),i=r(459);r(10);function a(e,t,r,a,o,s,c,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),m=d3.drag().subject((function(e){return e})).on("start",(function(e,t){g.stop(),t.fx=e.x,t.fy=e.y,d3.select(this).classed("selected",!0)})).on("end",(function(e,t){t.fx=null,t.fy=null,d3.select(this).classed("selected",!1),w?(g.alpha(.2).restart(),w=!1):g.restart()})).on("drag",(function(e,t){w=!0,g.alphaTarget(0).restart(),t.fx=e.x,t.fy=e.y})),y=p.append("defs");y.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var e=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.8.0-TR1");$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>");var t=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:t,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var e=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");e.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var t=16+1200/18/2.5,r=t+1200/90;e.append("circle").attrs({class:"legend-class-node",cx:(16+t)/2,cy:30,r:1200/18/4.5}),e.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),e.append("circle").attrs({class:"legend-object-node",cx:(16+t)/2,cy:70,r:1200/110/1.25}),e.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),e.append("circle").attrs({class:"legend-datatype-node",cx:(16+t)/2,cy:70+1200/45,r:1200/110/2}),e.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),e.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:t,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),e.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:t,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),e.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:t,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)"),e.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var v=o.search().uri,x=o.search().name;const S=o.search().collapsed;(function(e,t){a.getDomainRangeData(e,t).success((function(e,t,r){u.domainRangeGraphData=e})).error((function(e){d.error("Request for "+x+" failed!")}))})(v,S),$(window).on("popstate",(function(){s.set(c.DOMAIN_RANGE_WENT_BACK,!0)})),t.onpopstate=function(t){t.state&&e.$broadcast("changeCollapsedEdgesState",t.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(s.set(c.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==s.get(c.DOMAIN_RANGE_WENT_BACK)&&function(t){e.$broadcast("switchEdgeMode",{uri:v,name:x,collapsed:t})}(u.collapseEdges),s.remove(c.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const N=r.nodes,D=r.links;g.nodes(N).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(D).distance(1200/3.5));var n=p.selectAll(".link").data(D).enter().append("g");function a(e){e.style("stroke",f),e.style("stroke-width",2),e.attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)")}var s,c,d=0;n.each((function(e){if(e.objectPropNodeClassUri!==v)s=n.append("line").attrs({class:"link","marker-end":"url("+o.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(e){switch(e.propertyType){case"objectLeft":e.targetRadius=1200/18;break;case"objectRight":e.targetRadius=1200/110;break;case"datatype":e.targetRadius=1200/110/2;break;default:e.targetRadius=0}var t=d3.select(this);e.targetNodeEdgeCount>1?a(t):e.implicit&&t.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(c)){c=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+o.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=e.targetNodeEdgeCount)>1&&a(d3.select(".loop-link"))}}));var y={};function S(){$.isEmptyObject(y)||(y.text.style("fill","black"),y.background.style("fill","#f0f0f0"))}function w(e,t){S(),y.text=d3.select(this),y.background=d3.select(this.previousSibling),y.text.style("fill","white"),y.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=t})),e.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",S)}));var C=n.append("text").attr("class",(function(e){return e.objectPropNodeClassUri===v?"loop-link-property-name":"property-name"})).attr("dx",(function(e){return 1200/18/2*("objectLeft"===e.propertyType?1:-1)})).style("text-anchor",(function(e){return"objectLeft"===e.propertyType?"end":"start"})).style("font-size",1200/90).text((function(e){return e.targetNodeEdgeCount>1?e.targetNodeEdgeCount+" predicates":e.name}));C.each((function(e){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",w):r.on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var b=n.append("rect").attr("class",(function(e){return e.objectPropNodeClassUri!==v?"link-background":"loop-link-background"})).attr("width",(function(e){return e.calculatedWidth=this.previousSibling.getBBox().width,e.calculatedWidth+4})).attr("height",(function(e){return e.calculatedHeight=this.previousSibling.getBBox().height,e.calculatedHeight+2})).attr("transform",(function(e){var t=2-1200/18/2*("objectLeft"===e.propertyType?1:-1);return"objectLeft"===e.propertyType&&(t+=e.calculatedWidth),"translate(-"+t+",-"+(2+e.calculatedHeight/2)+")"})).on("click",(function(e){e.stopPropagation()})),I=p.selectAll(".node").data(N).enter().append("g"),R=I.filter((function(e){return e.objectPropClassUri!==v})).append("circle").each((function(e){var t=d3.select(this);"main"===e.classPosition?t.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+o.absUrl()+"#loop-link)"):null===e.objectPropClassName?t.attrs({class:"datatype-node",r:1200/110/2}):t.attrs({class:"object-prop-node",r:1200/110})})).call(m);d3.selectAll(".object-prop-node").on("dblclick",(function(t,r,n){u.$apply((function(){e.$broadcast("reloadDomainRangeGraphView",r,n)}))})),I.filter((function(e){return e.objectPropClassName&&e.objectPropClassUri!==v})).append("text").attr("class",(function(e){return e.classPosition+"-class-label"})).style("font-size",1200/90).text((function(e){return e.objectPropClassName})).on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var k=I.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(e){return i.a.Text.calcFontSize(x,1200/18)})).text(x).on("click",(function(){t.open("resource?uri="+encodeURIComponent(v),"_blank")}))}));var E=p.select(".class-node + text"),L=d3.select(".class-node"),A=d3.selectAll(".loop-link-background"),T=d3.selectAll(".loop-link-property-name");if(C=d3.selectAll(".property-name"),!angular.isUndefined(c)){var P=[];A.each((function(e,t){d3.select(this);P.push({idx:t,width:e.calculatedWidth,height:e.calculatedHeight})}))}g.on("tick",(function(e){var t=8*g.alpha();function r(e){var t=e.x+1200/18*2,r=e.y-1200/18/1.9;var n=[];A.each((function(i,a){n.push(i),a<h?function(n,i){var a=$.grep(P,(function(e){return e.idx==i}));i>0&&(t+=parseFloat(i*(a[0].height/(i/1.4)))),n.attrs({transform:"rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")",width:a[0].height,height:a[0].width})}(d3.select(this),a):d3.select(this).remove()})),function(e){var t;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=e,t=this.getComputedTextLength()})).on("click",w),d3.select(".view-more-preds-rect").attr("height",t+4)}(n)}s.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x1",(function(e){return e.source.x})).attr("y1",(function(e){return e.source.y})).attr("x2",(function(e){return e.targetX})).attr("y2",(function(e){return e.targetY})).each((function(e){!function(e){"objectLeft"===e.propertyType?(e.source.x-=8*t,e.source.y-=t/9):(e.target.x+=8*t,e.target.y-=t/9)}(e);var r=Math.atan2(e.target.y-e.source.y,e.target.x-e.source.x);e.targetX=e.target.x-Math.cos(r)*e.targetRadius,e.targetY=e.target.y-Math.sin(r)*e.targetRadius})),R.each((function(e){"main"!==e.classPosition||angular.isUndefined(c)||(!function(e){var t=e.x+64,r=e.y-1200/18/5.7-5;c.attr("transform","rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")")}(e),function(e){function t(t,r){var n=$.grep(P,(function(e){return e.idx==r})),i=0;r>0&&(i=parseFloat(2*r*(n[0].height/1.4)));var a=e.x,o=e.y-1200/18*2.1-i;t.attrs({x:a,y:o}).moveToFront()}T.each((function(e,r){var n=d3.select(this),i=T.size()-h;i<0?t(n,r):(0==r&&!u.collapseEdges&&i>1&&(!function(e,t,r){e.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&t.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),i),t(n,r)),r<h?t(n,r):n.remove())}))}(e),r(e)),e.objectPropClassUri!==v&&d3.select(this).attr("cx",(function(e){return"main"===e.classPosition?function(e){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(e){return Math.log(e)/Math.LN10});var t=L.attr("cx")-600,r=.5*Math.log10(Math.abs(t));return e.x+=t>0?-r:r,e.x}(e):e.x})).attr("cy",(function(e){return e.y}))})),E.attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).moveToFront(),b.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),C.attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),k.attr("x",(function(e){return"right"===e.classPosition?e.x+1200/110*1.2:e.x-1200/110*1.2})).attr("y",(function(e){return e.y})).moveToFront()}))}}));let w=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",a),a.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},187:function(e,t){function r(e,t){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(r){r.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},r.hasPermission=function(){return t.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",r),r.$inject=["$repositories","$rootScope"]},188:function(e,t){function r(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(t,r){t.stringLimit=e,t.scrollToTop=function(){r[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},t.checkCommentLength=function(){return r[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},t.equalHeights=function(){const e=r[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&t.expanded&&(r[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},t.toggleFullComment=function(){t.expanded=!t.expanded},t.$watch("expanded || alwaysExpanded",(function(r){t.stringLimit=r?t.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",r).constant("SHORT_COMMENT_LENGTH",100),r.$inject=["SHORT_COMMENT_LENGTH"]},189:function(e,t,r){"use strict";r.r(t);var n=r(460);r(103);function i(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(r){r.$watch("dependenciesData",(function(){if(r.dependenciesData){const i=r.dependenciesData;!function(i,a){if(function(){let e=!0;for(const t of i){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),s=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){s.style("opacity",0)}));const c=Math.min(800,800)/2.8,l=c-24,d=d3.arc().innerRadius(l).outerRadius(c),u=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),p=d3.ribbon().radius(l),f=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");f.append("circle").attr("r",c).style("fill","none");const h=u(i),g=f.selectAll(".group").data(h.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=g.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));g.append("title").text((function(e,t){return a[t]})),g.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",d).style("fill",(function(e,t){return o(t)})),g.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(l+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return a[e.index]}));const m=f.selectAll(".chord").data(h).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",p);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,n){const i=a[n.source.index],o=a[n.target.index],c=e.pageX,l=e.pageY;t.getPredicates(i,o,r.selectedGraph&&r.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+i+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",s.html(t).style("left",c+"px").style("top",l+"px")})),s.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){f.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=n.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(i.matrix,i.nodes,i.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",i),i.$inject=["$repositories","GraphDataRestService"]},190:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,n,i;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,n=e.listItemsNotFiltered,i=e.filterFunction,t.length>0?_.filter(n,i):r.length!==n.length?n:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]},191:function(e,t){function r(e,t){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(r,n){r.searchedObjCallback=r.searchedObjCallback(),r.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},r.showInput=function(){$("#selectGraphDropdown").hide(),n.find("#search_input #search_input_value")[0].value="",n.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),n.find("#search_input .angucomplete-holder").css("display","block"),t((function(){n.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),t((function(){n.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),n.find("#search_input #search_input_value").focus()}),200)}),1)},r.hideInput=function(){n.find("#search_input #search_input_value")[0].value="",n.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),t((function(){n.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),n.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),t((function(){n.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",r),r.$inject=["$rootScope","$timeout"]},268:function(e,t,r){"use strict";r.r(t);r(7),r(34),r(28),r(29),r(704),r(705),r(449),r(472),r(242),r(251),r(706),r(483),r(459),r(499),r(460),r(103),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(94);angular.module("graphdb.framework.graphexplore",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.graphexplore.data.service","graphdb.framework.graphexplore.services.uiscroll","graphdb.framework.graphexplore.services.rdfsdetails","graphdb.framework.rest.graphexplore.savedgraphs.service","graphdb.framework.rest.graphconfig.service","graphdb.framework.graphexplore.controllers.class","graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.graphexplore.controllers.graphviz","graphdb.framework.graphexplore.controllers.graphviz.config","graphdb.framework.graphexplore.directives.sysrepo","graphdb.framework.graphexplore.directives.rdfsdetails","graphdb.framework.graphexplore.directives.searchfilter","graphdb.framework.graphexplore.directives.class","graphdb.framework.graphexplore.directives.domainrange","graphdb.framework.graphexplore.directives.dependencies","graphdb.framework.graphexplore.directives.searchcontrols","graphdb.framework.core.directives.yasgui-component"])},449:function(e,t,r){var n,i;n=[r(457)],void 0===(i=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),r=select(this);for(var n in e)r.attr(n,e[n])}))}function t(e,t){for(var r in t)e.attr(r,t[r]);return e}return"undefined"==typeof d3&&(d3=r(457)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?e:t)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,n))||(e.exports=i)},459:function(e,t,r){"use strict";r(449);var n=n||{};n.Text=function(){function e(e,t,r,n){r=r||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<r&&(i=r),Math.round(i)):(i<r&&(i=r),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,r,n,i){return e(t,r,n)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),n.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},n.Click=function(){const e=function(e,r){let n,i=1,a=arguments.length;for(;++i<a;)n=arguments[i],e[n]=t(e,r,r[n]);return e};function t(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var r,n=null;e.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,i){var a,o,s;(o=r,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(n?(window.clearTimeout(n),n=null,t.call("dblclick",e,e,i)):n=window.setTimeout((a=e,function(){t.call("click",a,a,i),n=null}),250))}))}),t,"on")}}}(),t.a=n},460:function(e,t,r){"use strict";r(449);var n=n||{};n.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let r="";return _.each(t,(function(e){r+=e.cssText})),r},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=n},472:function(e,t,r){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},r=function(){return" "},n=u(),i=null,a=null,o=null,s=null;function c(e){var t;i="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,a=i.createSVGPoint(),document.body.appendChild(n)}c.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(o=n.pop());var i,a=r.apply(this,n),u=t.apply(this,n),f=e.apply(this,n),h=p(),g=d.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,v=s.apply(this,n);for(h.html(a).style("opacity",1).style("pointer-events","all");g--;)h.classed(d[g],!1);const x=n.filter(e=>e instanceof Event);return i=l.get(f).apply(this,x),v?Object.keys(v).forEach((function(e){h.style(e,v[e])})):h.classed(f,!0).style("top",i.top+u[0]+m+"px").style("left",i.left+u[1]+y+"px"),c},c.hide=function(){return p().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().attr(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(p(),r),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().style(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(p(),r),c},c.direction=function(t){return arguments.length?(e=null==t?t:h(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:h(e),c):t},c.html=function(e){return arguments.length?(r=null==e?e:h(e),c):r},c.customPosition=function(e){return arguments.length?(s=null==e?e:h(e),c):s},c.destroy=function(){return n&&(p().remove(),n=null),c};var l=new Map(Object.entries({n:function(e){var t=f(e);return{top:t.n.y-n.offsetHeight,left:t.n.x-n.offsetWidth/2}},s:function(e){var t=f(e);return{top:t.s.y,left:t.s.x-n.offsetWidth/2}},e:function(e){var t=f(e);return{top:t.e.y-n.offsetHeight/2,left:t.e.x}},w:function(e){var t=f(e);return{top:t.w.y-n.offsetHeight/2,left:t.w.x-n.offsetWidth}},nw:function(e){var t=f(e);return{top:t.nw.y-n.offsetHeight,left:t.nw.x-n.offsetWidth}},ne:function(e){var t=f(e);return{top:t.ne.y-n.offsetHeight,left:t.ne.x}},sw:function(e){var t=f(e);return{top:t.sw.y,left:t.sw.x-n.offsetWidth}},se:function(e){var t=f(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function p(){return null===n&&(n=u(),document.body.appendChild(n)),d3.select(n)}function f(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var r={},n=t.getScreenCTM(),i=t.getBBox(),s=i.width,c=i.height,l=i.x,d=i.y;return a.x=l,a.y=d,r.nw=a.matrixTransform(n),a.x+=s,r.ne=a.matrixTransform(n),a.y+=c,r.se=a.matrixTransform(n),a.x-=s,r.sw=a.matrixTransform(n),a.y-=c/2,r.w=a.matrixTransform(n),a.x+=s,r.e=a.matrixTransform(n),a.x-=s/2,a.y-=c/2,r.n=a.matrixTransform(n),a.y+=c,r.s=a.matrixTransform(n),r}function h(e){return"function"==typeof e?e:function(){return e}}return c}},499:function(e,t,r){"use strict";var n=n||{};n.SingleChild={addPlaceholders:function e(t,r){if(t.children){for(var n=0;n<t.children.length;n++)e(t.children[n]);if(1===t.children.length){var i=1.2*t.size;r&&(i=.1*t.children[0].size),t.children.push({name:"placeholder",size:i})}}},removePlaceholders:function e(t){for(var r=t.length-1;r>=0;r--){var n=t[r];"placeholder"===n.data.name?t.splice(r,1):n.children&&e(n.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.children&&1===r.children.length){var n=r.x-r.children[0].x;r.children[0].x+=n,i(r.children[0],n)}}function i(e,t){if(e.children)for(var r=0;r<e.children.length;r++)e.children[r].x+=t,i(e.children[r],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,r=e[0].y,n=0;n<e.length;n++){var i=e[n];i.x-=t,i.y-=r}}},t.a=n},67:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));const n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},69:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));const n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},70:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(n=>{e.success(t.instant(r)),setTimeout(n,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},706:function(e,t){
2
2
  /*! Copyright (c) 2014 Hidenari Nozaki and contributors | Licensed under the MIT license */
3
- !function(e,t){"use strict";!function(e){e.module("angucomplete-alt",[]).directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(e,t,r,n,i,a,o){function s(t,a,o,s){var c,l,d,u,p,f,h=a.find("input"),g=3,m=null,y="autocomplete-required",v=null,x=null,S=a[0].querySelector(".angucomplete-dropdown"),w=!1,C=null;function b(e,r){e&&("object"==typeof e?(t.searchStr=E(e),k({originalObject:e})):"string"==typeof e&&e.length>0?t.searchStr=e:console&&console.error&&console.error("Tried to set "+(r?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),A(!0))}function I(e){C=null,t.hideResults(e),document.body.removeEventListener("click",I)}function R(e){return e.which?e.which:e.keyCode}function k(e){"function"==typeof t.selectedObject?t.selectedObject(e,t.selectedObjectData):t.selectedObject=e,A(!!e)}function E(e){return t.titleField.split(",").map((function(t){return _(e,t)})).join(" ")}function _(e,t){var r,n;if(t){r=t.split("."),n=e;for(var i=0;i<r.length;i++)n=n[r[i]]}else n=e;return n}function L(e,r){var i,a,o;if(o=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),i=(a=e.match(o))?e.replace(o,'<span class="'+t.matchClass+'">'+a[0]+"</span>"):e,n.trustAsHtml(i)}function A(e){t.notEmpty=e,v=t.searchStr,t.fieldRequired&&s&&t.inputName&&s[t.inputName].$setValidity(y,e)}function T(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(e&&e.preventDefault(),i.cancel(m),M(),k({originalObject:t.searchStr}),t.clearSelected&&(t.searchStr=null),Q())}function P(){return a[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function N(e){S.scrollTop=S.scrollTop+e}function D(){var e=t.results[t.currentIndex];t.matchClass?h.val(E(e.originalObject)):h.val(e.title)}function O(e){return function(r,n,i,a){n||i||a||!r.data||(r=r.data),t.searching=!1,F(_(l(r),t.remoteUrlDataField),e)}}function $(e,r,n,i){t.searching=!1,0!==r&&-1!==r&&(r||n||i||(r=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,r,n,i):console&&console.error&&console.error("http error"))}function M(){x&&x.resolve()}function G(n){var i={},a=t.remoteUrl+encodeURIComponent(n);t.remoteUrlRequestFormatter&&(i={params:t.remoteUrlRequestFormatter(n)},a=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(i.withCredentials=!0),M(),x=e.defer(),i.timeout=x.promise,r.get(a,i).success(O(n)).error($)}function j(r){M(),x=e.defer(),t.remoteApiHandler(r,x.promise).then(O(r)).catch($)}function Q(){t.showDropdown=!1,t.results=[],S&&(S.scrollTop=0)}function U(){t.showDropdown=u,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function H(e){!e||e.length<g||(t.localData?t.$apply((function(){var r;r=void 0!==t.localSearch()?t.localSearch()(e,t.localData):function(e){var r,n,i,a,o=t.searchFields.split(","),s=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),r=0;r<t.localData.length;r++){for(n=!1,i=0;i<o.length;i++)a=_(t.localData[r],o[i])||"",n=n||a.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;n&&(s[s.length]=t.localData[r])}return s}(e),t.searching=!1,F(r,e)})):t.remoteApiHandler?j(e):G(e))}function F(e,r){var n,i,a,o,s,c;if(e&&e.length>0)for(t.results=[],n=0;n<e.length;n++)t.titleField&&""!==t.titleField&&(o=s=E(e[n])),i="",t.descriptionField&&(i=c=_(e[n],t.descriptionField)),a="",t.imageField&&(a=_(e[n],t.imageField)),t.matchClass&&(s=L(o,r),c=L(i,r)),t.results[t.results.length]={title:s,description:c,image:a,originalObject:e[n]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,r,n){if(!n)return!1;for(var i in r)if(r[i].toLowerCase()===n.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:o,desc:i||""},t.searchStr)?t.showDropdown=!1:0!==t.results.length||p?t.showDropdown=!0:t.showDropdown=!1}function z(){t.localData?F(t.localData,""):t.remoteApiHandler?j(""):G("")}a.on("mousedown",(function(e){e.target.id?(C=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",I):C=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,d=t.$watch("initialValue",(function(e){e&&(d(),b(e,!0))})),t.$watch("fieldRequired",(function(e,r){e!==r&&(e?v&&-1!==t.currentIndex?A(!0):A(!1):s[t.inputName].$setValidity(y,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,r){r&&r!==t.id||(t.searchStr=null,k(),A(!1),Q())})),t.$on("angucomplete-alt:changeInput",(function(e,r,n){r&&r===t.id&&b(n)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==g||t.searchStr&&0!==t.searchStr.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,z())},t.hideResults=function(){C&&(C===t.id+"_dropdown"||C.indexOf("angucomplete")>=0)?C=null:(c=i((function(){Q(),t.$apply((function(){t.searchStr&&t.searchStr.length>0&&h.val(t.searchStr)}))}),200),M(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&-1===t.currentIndex&&T())},t.resetHideResults=function(){c&&i.cancel(c)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=E(e.originalObject),e.description=_(e.originalObject,t.descriptionField)),t.clearSelected?t.searchStr=null:t.searchStr=e.title,k(e),Q()},t.inputChangeHandler=function(e){return e.length<g?(M(),Q()):0===e.length&&0===g&&(t.searching=!1,z()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(y=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(g=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&s&&(t.initialValue?A(!0):A(!1)),t.inputType=o.type?o.type:"text",t.textSearching=o.textSearching?o.textSearching:"Searching...",t.textNoResults=o.textNoResults?o.textNoResults:"No results found",u="false"!==t.textSearching,p="false"!==t.textNoResults,t.maxlength=o.maxlength?o.maxlength:524288,h.on("keydown",(function(e){var r=R(e),n=null,i=null;13===r&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(T(e),Q()),t.$apply()):40===r&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,D()})),w&&(n=P(),S.getBoundingClientRect().top+parseInt(getComputedStyle(S).maxHeight,10)<n.getBoundingClientRect().bottom&&N(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(n))))):38===r&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,D()})),w&&(i=P().getBoundingClientRect().top-(S.getBoundingClientRect().top+parseInt(getComputedStyle(S).paddingTop,10)))<0&&N(i-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,h.val(t.searchStr)}))):9===r?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?T():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&T():27===r&&e.preventDefault()})),h.on("keyup",(function(e){var r=R(e);if(37!==r&&39!==r)if(38===r||13===r)e.preventDefault();else if(40===r)e.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=g&&(U(),t.searching=!0,H(t.searchStr));else if(27===r)Q(),t.$apply((function(){h.val(t.searchStr)}));else{if(0===g&&!t.searchStr)return;t.searchStr&&""!==t.searchStr?t.searchStr.length>=g&&(U(),m&&i.cancel(m),t.searching=!0,m=i((function(){H(t.searchStr)}),t.pause)):t.showDropdown=!1,v&&v!==t.searchStr&&!t.clearSelected&&t.$apply((function(){k()}))}})),f="remoteUrlResponseFormatter",l=function(e){return t[f]?t[f](e):e},i((function(){var e=getComputedStyle(S);w=e.maxHeight&&"auto"===e.overflowY}))}return a.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",selectedObjectData:"=",disableInput:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",textSearching:"@",textNoResults:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=o.startSymbol(),r=o.endSymbol();if("{{"!==t||"}}"!==r){var n=e.html().replace(/\{\{/g,t).replace(/\}\}/g,r);e.html(n)}return s}}}])}(window.angular)}()},72:function(e,t,r){"use strict";r.r(t),r.d(t,"removeSpecialChars",(function(){return i})),r.d(t,"toBoolean",(function(){return a})),r.d(t,"toTitleCase",(function(){return o}));var n=r(26);const i=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),o=e=>e?Object(n.upperFirst)(e.toLowerCase()):e},76:function(e,t,r){"use strict";r.r(t),r.d(t,"StartMode",(function(){return n})),r.d(t,"GraphsConfig",(function(){return i}));const n={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,t,r=n.SEARCH,i,a=!0,o=!0,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w){this._id=e,this._name=t,this._startMode=r,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=o,this._startGraphQuery=s,this._startIRI=c,this._startIRILabel=l,this._expandQuery=d,this._resourceQuery=u,this._predicateLabelQuery=p,this._resourcePropertiesQuery=f,this._shared=h,this._description=g,this._hint=m,this._startGraphQueryDescription=y,this._expandQueryDescription=v,this._resourceQueryDescription=x,this._predicateLabelQueryDescription=S,this._resourcePropertiesQueryDescription=w}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let t;return this.isStartMode(n.QUERY)&&1===e?t=this.startGraphQuery:2===e?t=this.expandQuery:3===e?t=this.resourceQuery:4===e?t=this.predicateLabelQuery:5===e&&(t=this.resourcePropertiesQuery),t||""}updateModel(e,t){return this.isStartMode(n.QUERY)&&1===t?this.startGraphQuery=e:2===t?this.expandQuery=e:3===t?this.resourceQuery=e:4===t?this.predicateLabelQuery=e:5===t&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},90:function(e,t,r){"use strict";r.r(t),r.d(t,"mapGraphsConfigResponseToModel",(function(){return i})),r.d(t,"mapGraphConfigSampleToGraphConfig",(function(){return a})),r.d(t,"mapGraphConfigSamplesToGraphConfigs",(function(){return o}));var n=r(76);const i=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),o=e=>e.map(e=>a(e))},91:function(e,t,r){"use strict";r.r(t),r.d(t,"STATIC_RULESETS",(function(){return n})),r.d(t,"REPOSITORY_TYPES",(function(){return i})),r.d(t,"FILENAME_PATTERN",(function(){return a})),r.d(t,"NUMBER_PATTERN",(function(){return o}));const n=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},a=new RegExp("^[a-zA-Z0-9-_]+$"),o=new RegExp("^[0-9]+$")}}]);
3
+ !function(e,t){"use strict";!function(e){e.module("angucomplete-alt",[]).directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(e,t,r,n,i,a,o){function s(t,a,o,s){var c,l,d,u,p,f,h=a.find("input"),g=3,m=null,y="autocomplete-required",v=null,x=null,S=a[0].querySelector(".angucomplete-dropdown"),w=!1,C=null;function b(e,r){e&&("object"==typeof e?(t.searchStr=E(e),k({originalObject:e})):"string"==typeof e&&e.length>0?t.searchStr=e:console&&console.error&&console.error("Tried to set "+(r?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),A(!0))}function I(e){C=null,t.hideResults(e),document.body.removeEventListener("click",I)}function R(e){return e.which?e.which:e.keyCode}function k(e){"function"==typeof t.selectedObject?t.selectedObject(e,t.selectedObjectData):t.selectedObject=e,A(!!e)}function E(e){return t.titleField.split(",").map((function(t){return _(e,t)})).join(" ")}function _(e,t){var r,n;if(t){r=t.split("."),n=e;for(var i=0;i<r.length;i++)n=n[r[i]]}else n=e;return n}function L(e,r){var i,a,o;if(o=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),i=(a=e.match(o))?e.replace(o,'<span class="'+t.matchClass+'">'+a[0]+"</span>"):e,n.trustAsHtml(i)}function A(e){t.notEmpty=e,v=t.searchStr,t.fieldRequired&&s&&t.inputName&&s[t.inputName].$setValidity(y,e)}function T(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(e&&e.preventDefault(),i.cancel(m),M(),k({originalObject:t.searchStr}),t.clearSelected&&(t.searchStr=null),Q())}function P(){return a[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function N(e){S.scrollTop=S.scrollTop+e}function D(){var e=t.results[t.currentIndex];t.matchClass?h.val(E(e.originalObject)):h.val(e.title)}function O(e){return function(r,n,i,a){n||i||a||!r.data||(r=r.data),t.searching=!1,F(_(l(r),t.remoteUrlDataField),e)}}function $(e,r,n,i){t.searching=!1,0!==r&&-1!==r&&(r||n||i||(r=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,r,n,i):console&&console.error&&console.error("http error"))}function M(){x&&x.resolve()}function G(n){var i={},a=t.remoteUrl+encodeURIComponent(n);t.remoteUrlRequestFormatter&&(i={params:t.remoteUrlRequestFormatter(n)},a=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(i.withCredentials=!0),M(),x=e.defer(),i.timeout=x.promise,r.get(a,i).success(O(n)).error($)}function j(r){M(),x=e.defer(),t.remoteApiHandler(r,x.promise).then(O(r)).catch($)}function Q(){t.showDropdown=!1,t.results=[],S&&(S.scrollTop=0)}function U(){t.showDropdown=u,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function H(e){!e||e.length<g||(t.localData?t.$apply((function(){var r;r=void 0!==t.localSearch()?t.localSearch()(e,t.localData):function(e){var r,n,i,a,o=t.searchFields.split(","),s=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),r=0;r<t.localData.length;r++){for(n=!1,i=0;i<o.length;i++)a=_(t.localData[r],o[i])||"",n=n||a.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;n&&(s[s.length]=t.localData[r])}return s}(e),t.searching=!1,F(r,e)})):t.remoteApiHandler?j(e):G(e))}function F(e,r){var n,i,a,o,s,c;if(e&&e.length>0)for(t.results=[],n=0;n<e.length;n++)t.titleField&&""!==t.titleField&&(o=s=E(e[n])),i="",t.descriptionField&&(i=c=_(e[n],t.descriptionField)),a="",t.imageField&&(a=_(e[n],t.imageField)),t.matchClass&&(s=L(o,r),c=L(i,r)),t.results[t.results.length]={title:s,description:c,image:a,originalObject:e[n]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,r,n){if(!n)return!1;for(var i in r)if(r[i].toLowerCase()===n.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:o,desc:i||""},t.searchStr)?t.showDropdown=!1:0!==t.results.length||p?t.showDropdown=!0:t.showDropdown=!1}function z(){t.localData?F(t.localData,""):t.remoteApiHandler?j(""):G("")}a.on("mousedown",(function(e){e.target.id?(C=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",I):C=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,d=t.$watch("initialValue",(function(e){e&&(d(),b(e,!0))})),t.$watch("fieldRequired",(function(e,r){e!==r&&(e?v&&-1!==t.currentIndex?A(!0):A(!1):s[t.inputName].$setValidity(y,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,r){r&&r!==t.id||(t.searchStr=null,k(),A(!1),Q())})),t.$on("angucomplete-alt:changeInput",(function(e,r,n){r&&r===t.id&&b(n)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==g||t.searchStr&&0!==t.searchStr.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,z())},t.hideResults=function(){C&&(C===t.id+"_dropdown"||C.indexOf("angucomplete")>=0)?C=null:(c=i((function(){Q(),t.$apply((function(){t.searchStr&&t.searchStr.length>0&&h.val(t.searchStr)}))}),200),M(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&-1===t.currentIndex&&T())},t.resetHideResults=function(){c&&i.cancel(c)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=E(e.originalObject),e.description=_(e.originalObject,t.descriptionField)),t.clearSelected?t.searchStr=null:t.searchStr=e.title,k(e),Q()},t.inputChangeHandler=function(e){return e.length<g?(M(),Q()):0===e.length&&0===g&&(t.searching=!1,z()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(y=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(g=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&s&&(t.initialValue?A(!0):A(!1)),t.inputType=o.type?o.type:"text",t.textSearching=o.textSearching?o.textSearching:"Searching...",t.textNoResults=o.textNoResults?o.textNoResults:"No results found",u="false"!==t.textSearching,p="false"!==t.textNoResults,t.maxlength=o.maxlength?o.maxlength:524288,h.on("keydown",(function(e){var r=R(e),n=null,i=null;13===r&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(T(e),Q()),t.$apply()):40===r&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,D()})),w&&(n=P(),S.getBoundingClientRect().top+parseInt(getComputedStyle(S).maxHeight,10)<n.getBoundingClientRect().bottom&&N(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(n))))):38===r&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,D()})),w&&(i=P().getBoundingClientRect().top-(S.getBoundingClientRect().top+parseInt(getComputedStyle(S).paddingTop,10)))<0&&N(i-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,h.val(t.searchStr)}))):9===r?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?T():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&T():27===r&&e.preventDefault()})),h.on("keyup",(function(e){var r=R(e);if(37!==r&&39!==r)if(38===r||13===r)e.preventDefault();else if(40===r)e.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=g&&(U(),t.searching=!0,H(t.searchStr));else if(27===r)Q(),t.$apply((function(){h.val(t.searchStr)}));else{if(0===g&&!t.searchStr)return;t.searchStr&&""!==t.searchStr?t.searchStr.length>=g&&(U(),m&&i.cancel(m),t.searching=!0,m=i((function(){H(t.searchStr)}),t.pause)):t.showDropdown=!1,v&&v!==t.searchStr&&!t.clearSelected&&t.$apply((function(){k()}))}})),f="remoteUrlResponseFormatter",l=function(e){return t[f]?t[f](e):e},i((function(){var e=getComputedStyle(S);w=e.maxHeight&&"auto"===e.overflowY}))}return a.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",selectedObjectData:"=",disableInput:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",textSearching:"@",textNoResults:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=o.startSymbol(),r=o.endSymbol();if("{{"!==t||"}}"!==r){var n=e.html().replace(/\{\{/g,t).replace(/\}\}/g,r);e.html(n)}return s}}}])}(window.angular)}()},73:function(e,t,r){"use strict";r.r(t),r.d(t,"removeSpecialChars",(function(){return i})),r.d(t,"toBoolean",(function(){return a})),r.d(t,"toTitleCase",(function(){return o}));var n=r(27);const i=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),o=e=>e?Object(n.upperFirst)(e.toLowerCase()):e},76:function(e,t,r){"use strict";r.r(t),r.d(t,"StartMode",(function(){return n})),r.d(t,"GraphsConfig",(function(){return i}));const n={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,t,r=n.SEARCH,i,a=!0,o=!0,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w){this._id=e,this._name=t,this._startMode=r,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=o,this._startGraphQuery=s,this._startIRI=c,this._startIRILabel=l,this._expandQuery=d,this._resourceQuery=u,this._predicateLabelQuery=p,this._resourcePropertiesQuery=f,this._shared=h,this._description=g,this._hint=m,this._startGraphQueryDescription=y,this._expandQueryDescription=v,this._resourceQueryDescription=x,this._predicateLabelQueryDescription=S,this._resourcePropertiesQueryDescription=w}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let t;return this.isStartMode(n.QUERY)&&1===e?t=this.startGraphQuery:2===e?t=this.expandQuery:3===e?t=this.resourceQuery:4===e?t=this.predicateLabelQuery:5===e&&(t=this.resourcePropertiesQuery),t||""}updateModel(e,t){return this.isStartMode(n.QUERY)&&1===t?this.startGraphQuery=e:2===t?this.expandQuery=e:3===t?this.resourceQuery=e:4===t?this.predicateLabelQuery=e:5===t&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},91:function(e,t,r){"use strict";r.r(t),r.d(t,"mapGraphsConfigResponseToModel",(function(){return i})),r.d(t,"mapGraphConfigSampleToGraphConfig",(function(){return a})),r.d(t,"mapGraphConfigSamplesToGraphConfigs",(function(){return o}));var n=r(76);const i=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),o=e=>e.map(e=>a(e))},92:function(e,t,r){"use strict";r.r(t),r.d(t,"STATIC_RULESETS",(function(){return n})),r.d(t,"REPOSITORY_TYPES",(function(){return i})),r.d(t,"FILENAME_PATTERN",(function(){return a})),r.d(t,"NUMBER_PATTERN",(function(){return o}));const n=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},a=new RegExp("^[a-zA-Z0-9-_]+$"),o=new RegExp("^[0-9]+$")}}]);