@pananfly/pi-web 0.8.1

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 (533) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +46 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +138 -0
  12. package/.next/react-loadable-manifest.json +2367 -0
  13. package/.next/required-server-files.js +350 -0
  14. package/.next/required-server-files.json +350 -0
  15. package/.next/routes-manifest.json +348 -0
  16. package/.next/server/app/_global-error/page.js +32 -0
  17. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  18. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  19. package/.next/server/app/_global-error.html +1 -0
  20. package/.next/server/app/_global-error.meta +16 -0
  21. package/.next/server/app/_global-error.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  23. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
  24. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  25. package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  26. package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  27. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  28. package/.next/server/app/_not-found/page.js +2 -0
  29. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  30. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  31. package/.next/server/app/_not-found.html +1 -0
  32. package/.next/server/app/_not-found.meta +16 -0
  33. package/.next/server/app/_not-found.rsc +19 -0
  34. package/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
  35. package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  36. package/.next/server/app/_not-found.segments/_index.segment.rsc +6 -0
  37. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  38. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  39. package/.next/server/app/_not-found.segments/_tree.segment.rsc +5 -0
  40. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -0
  41. package/.next/server/app/api/agent/[id]/bash-output/route.js.nft.json +1 -0
  42. package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -0
  43. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  44. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -0
  45. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/agent/[id]/route.js +1 -0
  47. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
  48. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  49. package/.next/server/app/api/agent/new/route.js +1 -0
  50. package/.next/server/app/api/agent/new/route.js.nft.json +1 -0
  51. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/agent/running/events/route.js +3 -0
  53. package/.next/server/app/api/agent/running/events/route.js.nft.json +1 -0
  54. package/.next/server/app/api/agent/running/events/route_client-reference-manifest.js +1 -0
  55. package/.next/server/app/api/auth/all-providers/route.js +1 -0
  56. package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -0
  57. package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  59. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -0
  60. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  61. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  62. package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -0
  63. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/auth/login/route.js +1 -0
  65. package/.next/server/app/api/auth/login/route.js.nft.json +1 -0
  66. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
  67. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  68. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -0
  69. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/auth/logout/route.js +1 -0
  71. package/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
  72. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -0
  73. package/.next/server/app/api/auth/providers/route.js +1 -0
  74. package/.next/server/app/api/auth/providers/route.js.nft.json +1 -0
  75. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/auth/refresh/route.js +1 -0
  77. package/.next/server/app/api/auth/refresh/route.js.nft.json +1 -0
  78. package/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -0
  79. package/.next/server/app/api/auth/status/route.js +1 -0
  80. package/.next/server/app/api/auth/status/route.js.nft.json +1 -0
  81. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/auth/verify/route.js +1 -0
  83. package/.next/server/app/api/auth/verify/route.js.nft.json +1 -0
  84. package/.next/server/app/api/auth/verify/route_client-reference-manifest.js +1 -0
  85. package/.next/server/app/api/cwd/validate/route.js +1 -0
  86. package/.next/server/app/api/cwd/validate/route.js.nft.json +1 -0
  87. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/default-cwd/route.js +1 -0
  89. package/.next/server/app/api/default-cwd/route.js.nft.json +1 -0
  90. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/file-index/route.js +1 -0
  92. package/.next/server/app/api/file-index/route.js.nft.json +1 -0
  93. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/files/[...path]/route.js +49 -0
  95. package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -0
  96. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  97. package/.next/server/app/api/git/diff/route.js +6 -0
  98. package/.next/server/app/api/git/diff/route.js.nft.json +1 -0
  99. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/git/status/route.js +6 -0
  101. package/.next/server/app/api/git/status/route.js.nft.json +1 -0
  102. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -0
  103. package/.next/server/app/api/home/route.js +1 -0
  104. package/.next/server/app/api/home/route.js.nft.json +1 -0
  105. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/models/route.js +1 -0
  107. package/.next/server/app/api/models/route.js.nft.json +1 -0
  108. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  109. package/.next/server/app/api/models-config/route.js +1 -0
  110. package/.next/server/app/api/models-config/route.js.nft.json +1 -0
  111. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/models-config/test/route.js +1 -0
  113. package/.next/server/app/api/models-config/test/route.js.nft.json +1 -0
  114. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
  115. package/.next/server/app/api/plugins/route.js +1 -0
  116. package/.next/server/app/api/plugins/route.js.nft.json +1 -0
  117. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/sessions/[id]/auto-name/route.js +10 -0
  119. package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -0
  120. package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -0
  121. package/.next/server/app/api/sessions/[id]/context/route.js +1 -0
  122. package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -0
  123. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  124. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -0
  125. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js.nft.json +1 -0
  126. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -0
  127. package/.next/server/app/api/sessions/[id]/export/route.js +54 -0
  128. package/.next/server/app/api/sessions/[id]/export/route.js.nft.json +1 -0
  129. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
  130. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  131. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -0
  132. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  133. package/.next/server/app/api/sessions/[id]/state/route.js +1 -0
  134. package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -0
  135. package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -0
  136. package/.next/server/app/api/sessions/route.js +1 -0
  137. package/.next/server/app/api/sessions/route.js.nft.json +1 -0
  138. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  139. package/.next/server/app/api/skills/check/route.js +1 -0
  140. package/.next/server/app/api/skills/check/route.js.nft.json +1 -0
  141. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
  142. package/.next/server/app/api/skills/install/route.js +1 -0
  143. package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
  144. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  145. package/.next/server/app/api/skills/route.js +6 -0
  146. package/.next/server/app/api/skills/route.js.nft.json +1 -0
  147. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  148. package/.next/server/app/api/skills/search/route.js +1 -0
  149. package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
  150. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  151. package/.next/server/app/api/skills/update/route.js +1 -0
  152. package/.next/server/app/api/skills/update/route.js.nft.json +1 -0
  153. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
  154. package/.next/server/app/api/worktrees/route.js +1 -0
  155. package/.next/server/app/api/worktrees/route.js.nft.json +1 -0
  156. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -0
  157. package/.next/server/app/favicon.ico/route.js +1 -0
  158. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  159. package/.next/server/app/favicon.ico.body +0 -0
  160. package/.next/server/app/favicon.ico.meta +1 -0
  161. package/.next/server/app/index.html +1 -0
  162. package/.next/server/app/index.meta +14 -0
  163. package/.next/server/app/index.rsc +18 -0
  164. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  165. package/.next/server/app/index.segments/_full.segment.rsc +18 -0
  166. package/.next/server/app/index.segments/_head.segment.rsc +6 -0
  167. package/.next/server/app/index.segments/_index.segment.rsc +6 -0
  168. package/.next/server/app/index.segments/_tree.segment.rsc +5 -0
  169. package/.next/server/app/login/page.js +2 -0
  170. package/.next/server/app/login/page.js.nft.json +1 -0
  171. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  172. package/.next/server/app/login.html +1 -0
  173. package/.next/server/app/login.meta +15 -0
  174. package/.next/server/app/login.rsc +20 -0
  175. package/.next/server/app/login.segments/_full.segment.rsc +20 -0
  176. package/.next/server/app/login.segments/_head.segment.rsc +6 -0
  177. package/.next/server/app/login.segments/_index.segment.rsc +6 -0
  178. package/.next/server/app/login.segments/_tree.segment.rsc +5 -0
  179. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +6 -0
  180. package/.next/server/app/login.segments/login.segment.rsc +5 -0
  181. package/.next/server/app/page.js +73 -0
  182. package/.next/server/app/page.js.nft.json +1 -0
  183. package/.next/server/app/page_client-reference-manifest.js +1 -0
  184. package/.next/server/app-paths-manifest.json +46 -0
  185. package/.next/server/chunks/1069.js +23 -0
  186. package/.next/server/chunks/1089.js +1 -0
  187. package/.next/server/chunks/1130.js +79 -0
  188. package/.next/server/chunks/1207.js +36 -0
  189. package/.next/server/chunks/1515.js +1 -0
  190. package/.next/server/chunks/1570.js +24 -0
  191. package/.next/server/chunks/1605.js +1 -0
  192. package/.next/server/chunks/1707.js +93 -0
  193. package/.next/server/chunks/1792.js +38 -0
  194. package/.next/server/chunks/1813.js +1 -0
  195. package/.next/server/chunks/2018.js +148 -0
  196. package/.next/server/chunks/2106.js +1 -0
  197. package/.next/server/chunks/2155.js +34 -0
  198. package/.next/server/chunks/2185.js +5 -0
  199. package/.next/server/chunks/2190.js +1 -0
  200. package/.next/server/chunks/2325.js +82 -0
  201. package/.next/server/chunks/2349.js +1 -0
  202. package/.next/server/chunks/2394.js +1 -0
  203. package/.next/server/chunks/2434.js +1 -0
  204. package/.next/server/chunks/2744.js +1 -0
  205. package/.next/server/chunks/2815.js +1 -0
  206. package/.next/server/chunks/2871.js +8 -0
  207. package/.next/server/chunks/2903.js +1 -0
  208. package/.next/server/chunks/319.js +45 -0
  209. package/.next/server/chunks/3252.js +115 -0
  210. package/.next/server/chunks/3379.js +1 -0
  211. package/.next/server/chunks/3770.js +1 -0
  212. package/.next/server/chunks/3894.js +1 -0
  213. package/.next/server/chunks/4030.js +86 -0
  214. package/.next/server/chunks/4286.js +1 -0
  215. package/.next/server/chunks/4309.js +1 -0
  216. package/.next/server/chunks/4338.js +64 -0
  217. package/.next/server/chunks/4367.js +1 -0
  218. package/.next/server/chunks/4372.js +1 -0
  219. package/.next/server/chunks/4424.js +215 -0
  220. package/.next/server/chunks/4485.js +1 -0
  221. package/.next/server/chunks/46.js +62 -0
  222. package/.next/server/chunks/4674.js +1 -0
  223. package/.next/server/chunks/4741.js +18 -0
  224. package/.next/server/chunks/4742.js +80 -0
  225. package/.next/server/chunks/4796.js +104 -0
  226. package/.next/server/chunks/4980.js +1 -0
  227. package/.next/server/chunks/5029.js +1 -0
  228. package/.next/server/chunks/5198.js +90 -0
  229. package/.next/server/chunks/5318.js +1 -0
  230. package/.next/server/chunks/5461.js +1 -0
  231. package/.next/server/chunks/5582.js +3 -0
  232. package/.next/server/chunks/5598.js +1 -0
  233. package/.next/server/chunks/5627.js +1 -0
  234. package/.next/server/chunks/6219.js +41 -0
  235. package/.next/server/chunks/6337.js +1 -0
  236. package/.next/server/chunks/6429.js +1 -0
  237. package/.next/server/chunks/6476.js +27 -0
  238. package/.next/server/chunks/6509.js +153 -0
  239. package/.next/server/chunks/6949.js +1 -0
  240. package/.next/server/chunks/6953.js +1 -0
  241. package/.next/server/chunks/703.js +1 -0
  242. package/.next/server/chunks/7152.js +1 -0
  243. package/.next/server/chunks/7181.js +160 -0
  244. package/.next/server/chunks/7233.js +1 -0
  245. package/.next/server/chunks/7307.js +1 -0
  246. package/.next/server/chunks/7434.js +77 -0
  247. package/.next/server/chunks/7561.js +1 -0
  248. package/.next/server/chunks/7872.js +1 -0
  249. package/.next/server/chunks/7914.js +226 -0
  250. package/.next/server/chunks/8267.js +24 -0
  251. package/.next/server/chunks/8294.js +1 -0
  252. package/.next/server/chunks/835.js +1 -0
  253. package/.next/server/chunks/8645.js +141 -0
  254. package/.next/server/chunks/9081.js +1 -0
  255. package/.next/server/chunks/9169.js +1 -0
  256. package/.next/server/chunks/9280.js +255 -0
  257. package/.next/server/chunks/940.js +287 -0
  258. package/.next/server/chunks/9486.js +1 -0
  259. package/.next/server/chunks/9509.js +1 -0
  260. package/.next/server/functions-config-manifest.json +15 -0
  261. package/.next/server/instrumentation.js +1 -0
  262. package/.next/server/instrumentation.js.nft.json +1 -0
  263. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  264. package/.next/server/middleware-build-manifest.js +1 -0
  265. package/.next/server/middleware-manifest.json +6 -0
  266. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  267. package/.next/server/middleware.js +18 -0
  268. package/.next/server/middleware.js.nft.json +1 -0
  269. package/.next/server/next-font-manifest.js +1 -0
  270. package/.next/server/next-font-manifest.json +1 -0
  271. package/.next/server/pages/404.html +1 -0
  272. package/.next/server/pages/500.html +1 -0
  273. package/.next/server/pages-manifest.json +4 -0
  274. package/.next/server/prefetch-hints.json +1 -0
  275. package/.next/server/server-reference-manifest.js +1 -0
  276. package/.next/server/server-reference-manifest.json +1 -0
  277. package/.next/server/webpack-runtime.js +1 -0
  278. package/.next/static/chunks/050357b0.986bc6597f184c3b.js +62 -0
  279. package/.next/static/chunks/1212.c32f02f461182c5b.js +226 -0
  280. package/.next/static/chunks/127.394be8b7a579a747.js +8 -0
  281. package/.next/static/chunks/1327.09252bb80616cc3a.js +1 -0
  282. package/.next/static/chunks/1377.e883e13864574c26.js +36 -0
  283. package/.next/static/chunks/1390.3e7d84d187924556.js +104 -0
  284. package/.next/static/chunks/1438.d742ea00e0f072ca.js +27 -0
  285. package/.next/static/chunks/1474.605367a77b6161a0.js +115 -0
  286. package/.next/static/chunks/1576.93e0666990c12243.js +38 -0
  287. package/.next/static/chunks/1951.4b73bf47740c2bfb.js +160 -0
  288. package/.next/static/chunks/2081.47b6e9391094055f.js +1 -0
  289. package/.next/static/chunks/2178.2adcd2b51553bd50.js +1 -0
  290. package/.next/static/chunks/2217.4bf1455eb89bdd9b.js +1 -0
  291. package/.next/static/chunks/2325.23caf22075e51aa5.js +1 -0
  292. package/.next/static/chunks/2356.52627097a8b56ec1.js +1 -0
  293. package/.next/static/chunks/2418.b5d9e177e10a686e.js +1 -0
  294. package/.next/static/chunks/249.973d23a3940a5fc9.js +1 -0
  295. package/.next/static/chunks/2554.ca4cb2f8bc69f32e.js +86 -0
  296. package/.next/static/chunks/2566.505384571dedf726.js +79 -0
  297. package/.next/static/chunks/2619.9aac8983f30c7c8a.js +1 -0
  298. package/.next/static/chunks/2646.c653cac657d7b035.js +215 -0
  299. package/.next/static/chunks/2784.3d8e0d20edb71dcd.js +64 -0
  300. package/.next/static/chunks/2821.934bcf60fbdc28c6.js +1 -0
  301. package/.next/static/chunks/2847.b66f6d92e4f5e495.js +23 -0
  302. package/.next/static/chunks/2866.4ecb766127917d99.js +1 -0
  303. package/.next/static/chunks/28f0fb3b.5f2b0099c24fbe32.js +122 -0
  304. package/.next/static/chunks/3308.29d4f7078e26a916.js +73 -0
  305. package/.next/static/chunks/3316.5c51b238308a838b.js +34 -0
  306. package/.next/static/chunks/3341.6042c7cb7225d88d.js +41 -0
  307. package/.next/static/chunks/339.1a094bb1c6eaf9dc.js +1 -0
  308. package/.next/static/chunks/370.57cfa27da8567918.js +1 -0
  309. package/.next/static/chunks/3708.81252290870c8487.js +1 -0
  310. package/.next/static/chunks/3794-e569667691edc8f7.js +32 -0
  311. package/.next/static/chunks/3832.5d713641634c65b5.js +24 -0
  312. package/.next/static/chunks/4368.e43e952c5535cba6.js +80 -0
  313. package/.next/static/chunks/4424.fd0c93a807a333e1.js +1 -0
  314. package/.next/static/chunks/4866.d1060b4faf2ae1e2.js +1 -0
  315. package/.next/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
  316. package/.next/static/chunks/5020.9ac8d0dc8390bb6e.js +1 -0
  317. package/.next/static/chunks/5166.7d3648847337fe52.js +62 -0
  318. package/.next/static/chunks/5242.7b643c6b3394cac1.js +1 -0
  319. package/.next/static/chunks/5361.afc00ab2626bacbf.js +1 -0
  320. package/.next/static/chunks/5460.0337c14f29b9ff9a.js +90 -0
  321. package/.next/static/chunks/5521.cfdf2cfc6db31407.js +1 -0
  322. package/.next/static/chunks/5715.048f1bae2c41fa89.js +1 -0
  323. package/.next/static/chunks/6121.5b8cb3199531d194.js +1 -0
  324. package/.next/static/chunks/6294.24f510c0c3e3714c.js +1 -0
  325. package/.next/static/chunks/6467.b354ed428e3bef01.js +5 -0
  326. package/.next/static/chunks/66d203d7.3e90bc8f1f096a8e.js +153 -0
  327. package/.next/static/chunks/6787.a15de946178e8ef7.js +1 -0
  328. package/.next/static/chunks/7176.2979806e91c0df29.js +1 -0
  329. package/.next/static/chunks/7256.e07cf52d87d40252.js +1 -0
  330. package/.next/static/chunks/7543.89f7b805ed0f2901.js +1 -0
  331. package/.next/static/chunks/776.fe8e64ab3669a915.js +287 -0
  332. package/.next/static/chunks/8118.f905a690db2b859b.js +148 -0
  333. package/.next/static/chunks/8233.a465d18b04719c6d.js +141 -0
  334. package/.next/static/chunks/8249.7a48897e80a16391.js +1 -0
  335. package/.next/static/chunks/8311-95813758da2b283c.js +1 -0
  336. package/.next/static/chunks/8365.dc22e1ff76d04a3b.js +93 -0
  337. package/.next/static/chunks/8498.1083c36ddbbedd69.js +1 -0
  338. package/.next/static/chunks/8511.c7c064a8f58f1355.js +1 -0
  339. package/.next/static/chunks/869.7152372b662e31af.js +1 -0
  340. package/.next/static/chunks/8782.9ab86081b5661687.js +77 -0
  341. package/.next/static/chunks/8863.fa0320ea586efb3b.js +1 -0
  342. package/.next/static/chunks/8953.e5e7399c7952a1ff.js +1 -0
  343. package/.next/static/chunks/90542734.b75ad0df50bf68f5.js +1 -0
  344. package/.next/static/chunks/9165.02dc1f4804b94791.js +24 -0
  345. package/.next/static/chunks/934.9006461bd0548660.js +1 -0
  346. package/.next/static/chunks/9522.c7c6e9c330f9ba6b.js +1 -0
  347. package/.next/static/chunks/9667.c6d6228dd3c4861b.js +1 -0
  348. package/.next/static/chunks/9705.40a82b97f214e28b.js +1 -0
  349. package/.next/static/chunks/9793.4567af813117ad25.js +1 -0
  350. package/.next/static/chunks/app/_global-error/page-6270af0206ac74b6.js +1 -0
  351. package/.next/static/chunks/app/_not-found/page-3ea40c1a91b0cd39.js +1 -0
  352. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-6270af0206ac74b6.js +1 -0
  353. package/.next/static/chunks/app/api/agent/[id]/events/route-6270af0206ac74b6.js +1 -0
  354. package/.next/static/chunks/app/api/agent/[id]/route-6270af0206ac74b6.js +1 -0
  355. package/.next/static/chunks/app/api/agent/new/route-6270af0206ac74b6.js +1 -0
  356. package/.next/static/chunks/app/api/agent/running/events/route-6270af0206ac74b6.js +1 -0
  357. package/.next/static/chunks/app/api/auth/all-providers/route-6270af0206ac74b6.js +1 -0
  358. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6270af0206ac74b6.js +1 -0
  359. package/.next/static/chunks/app/api/auth/login/[provider]/route-6270af0206ac74b6.js +1 -0
  360. package/.next/static/chunks/app/api/auth/login/route-6270af0206ac74b6.js +1 -0
  361. package/.next/static/chunks/app/api/auth/logout/[provider]/route-6270af0206ac74b6.js +1 -0
  362. package/.next/static/chunks/app/api/auth/logout/route-6270af0206ac74b6.js +1 -0
  363. package/.next/static/chunks/app/api/auth/providers/route-6270af0206ac74b6.js +1 -0
  364. package/.next/static/chunks/app/api/auth/refresh/route-6270af0206ac74b6.js +1 -0
  365. package/.next/static/chunks/app/api/auth/status/route-6270af0206ac74b6.js +1 -0
  366. package/.next/static/chunks/app/api/auth/verify/route-6270af0206ac74b6.js +1 -0
  367. package/.next/static/chunks/app/api/cwd/validate/route-6270af0206ac74b6.js +1 -0
  368. package/.next/static/chunks/app/api/default-cwd/route-6270af0206ac74b6.js +1 -0
  369. package/.next/static/chunks/app/api/file-index/route-6270af0206ac74b6.js +1 -0
  370. package/.next/static/chunks/app/api/files/[...path]/route-6270af0206ac74b6.js +1 -0
  371. package/.next/static/chunks/app/api/git/diff/route-6270af0206ac74b6.js +1 -0
  372. package/.next/static/chunks/app/api/git/status/route-6270af0206ac74b6.js +1 -0
  373. package/.next/static/chunks/app/api/home/route-6270af0206ac74b6.js +1 -0
  374. package/.next/static/chunks/app/api/models/route-6270af0206ac74b6.js +1 -0
  375. package/.next/static/chunks/app/api/models-config/route-6270af0206ac74b6.js +1 -0
  376. package/.next/static/chunks/app/api/models-config/test/route-6270af0206ac74b6.js +1 -0
  377. package/.next/static/chunks/app/api/plugins/route-6270af0206ac74b6.js +1 -0
  378. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-6270af0206ac74b6.js +1 -0
  379. package/.next/static/chunks/app/api/sessions/[id]/context/route-6270af0206ac74b6.js +1 -0
  380. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-6270af0206ac74b6.js +1 -0
  381. package/.next/static/chunks/app/api/sessions/[id]/export/route-6270af0206ac74b6.js +1 -0
  382. package/.next/static/chunks/app/api/sessions/[id]/route-6270af0206ac74b6.js +1 -0
  383. package/.next/static/chunks/app/api/sessions/[id]/state/route-6270af0206ac74b6.js +1 -0
  384. package/.next/static/chunks/app/api/sessions/route-6270af0206ac74b6.js +1 -0
  385. package/.next/static/chunks/app/api/skills/check/route-6270af0206ac74b6.js +1 -0
  386. package/.next/static/chunks/app/api/skills/install/route-6270af0206ac74b6.js +1 -0
  387. package/.next/static/chunks/app/api/skills/route-6270af0206ac74b6.js +1 -0
  388. package/.next/static/chunks/app/api/skills/search/route-6270af0206ac74b6.js +1 -0
  389. package/.next/static/chunks/app/api/skills/update/route-6270af0206ac74b6.js +1 -0
  390. package/.next/static/chunks/app/api/worktrees/route-6270af0206ac74b6.js +1 -0
  391. package/.next/static/chunks/app/layout-fc0dbec63c654527.js +1 -0
  392. package/.next/static/chunks/app/login/page-c7d96da038297463.js +1 -0
  393. package/.next/static/chunks/app/page-883e877df3335b30.js +72 -0
  394. package/.next/static/chunks/d2c09beb.4f5ff7197b5bbbea.js +1 -0
  395. package/.next/static/chunks/d3ac728e-7964f816a1ca64e5.js +1 -0
  396. package/.next/static/chunks/da12927c.00775c0e4542fd3e.js +82 -0
  397. package/.next/static/chunks/framework-711ef29bc66f648c.js +1 -0
  398. package/.next/static/chunks/main-app-6d3ca1bd083597b7.js +1 -0
  399. package/.next/static/chunks/main-b70eb01cb9d3de17.js +5 -0
  400. package/.next/static/chunks/next/dist/client/components/builtin/app-error-6270af0206ac74b6.js +1 -0
  401. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6270af0206ac74b6.js +1 -0
  402. package/.next/static/chunks/next/dist/client/components/builtin/global-error-129b03c25e777d59.js +1 -0
  403. package/.next/static/chunks/next/dist/client/components/builtin/not-found-6270af0206ac74b6.js +1 -0
  404. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6270af0206ac74b6.js +1 -0
  405. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  406. package/.next/static/chunks/webpack-bbd44e4ff13f4c9b.js +1 -0
  407. package/.next/static/css/88714c00e109ce28.css +1 -0
  408. package/.next/static/css/afdadd5192f321e7.css +1 -0
  409. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  410. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  411. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  412. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  413. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  414. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  415. package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  416. package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  417. package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  418. package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  419. package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  420. package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  421. package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  422. package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  423. package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  424. package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  425. package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  426. package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  427. package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  428. package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  429. package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  430. package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  431. package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  432. package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  433. package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  434. package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  435. package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  436. package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  437. package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  438. package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  439. package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  440. package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  441. package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  442. package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  443. package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  444. package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  445. package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  446. package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  447. package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  448. package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  449. package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  450. package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  451. package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  452. package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  453. package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  454. package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  455. package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  456. package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  457. package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  458. package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  459. package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  460. package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  461. package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  462. package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  463. package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  464. package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  465. package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  466. package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  467. package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  468. package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  469. package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  470. package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  471. package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  472. package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  473. package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  474. package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  475. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  476. package/.next/static/rNxNXXmbOkkvQk0-VdhVR/_buildManifest.js +1 -0
  477. package/.next/static/rNxNXXmbOkkvQk0-VdhVR/_ssgManifest.js +1 -0
  478. package/.next/trace +6 -0
  479. package/.next/trace-build +1 -0
  480. package/.next/types/app/api/agent/[id]/bash-output/route.ts +351 -0
  481. package/.next/types/app/api/agent/[id]/events/route.ts +351 -0
  482. package/.next/types/app/api/agent/[id]/route.ts +351 -0
  483. package/.next/types/app/api/agent/new/route.ts +351 -0
  484. package/.next/types/app/api/agent/running/events/route.ts +351 -0
  485. package/.next/types/app/api/auth/all-providers/route.ts +351 -0
  486. package/.next/types/app/api/auth/api-key/[provider]/route.ts +351 -0
  487. package/.next/types/app/api/auth/login/[provider]/route.ts +351 -0
  488. package/.next/types/app/api/auth/login/route.ts +351 -0
  489. package/.next/types/app/api/auth/logout/[provider]/route.ts +351 -0
  490. package/.next/types/app/api/auth/logout/route.ts +351 -0
  491. package/.next/types/app/api/auth/providers/route.ts +351 -0
  492. package/.next/types/app/api/auth/refresh/route.ts +351 -0
  493. package/.next/types/app/api/auth/status/route.ts +351 -0
  494. package/.next/types/app/api/auth/verify/route.ts +351 -0
  495. package/.next/types/app/api/cwd/validate/route.ts +351 -0
  496. package/.next/types/app/api/default-cwd/route.ts +351 -0
  497. package/.next/types/app/api/file-index/route.ts +351 -0
  498. package/.next/types/app/api/files/[...path]/route.ts +351 -0
  499. package/.next/types/app/api/git/diff/route.ts +351 -0
  500. package/.next/types/app/api/git/status/route.ts +351 -0
  501. package/.next/types/app/api/home/route.ts +351 -0
  502. package/.next/types/app/api/models/route.ts +351 -0
  503. package/.next/types/app/api/models-config/route.ts +351 -0
  504. package/.next/types/app/api/models-config/test/route.ts +351 -0
  505. package/.next/types/app/api/plugins/route.ts +351 -0
  506. package/.next/types/app/api/sessions/[id]/auto-name/route.ts +351 -0
  507. package/.next/types/app/api/sessions/[id]/context/route.ts +351 -0
  508. package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +351 -0
  509. package/.next/types/app/api/sessions/[id]/export/route.ts +351 -0
  510. package/.next/types/app/api/sessions/[id]/route.ts +351 -0
  511. package/.next/types/app/api/sessions/[id]/state/route.ts +351 -0
  512. package/.next/types/app/api/sessions/route.ts +351 -0
  513. package/.next/types/app/api/skills/check/route.ts +351 -0
  514. package/.next/types/app/api/skills/install/route.ts +351 -0
  515. package/.next/types/app/api/skills/route.ts +351 -0
  516. package/.next/types/app/api/skills/search/route.ts +351 -0
  517. package/.next/types/app/api/skills/update/route.ts +351 -0
  518. package/.next/types/app/api/worktrees/route.ts +351 -0
  519. package/.next/types/app/layout.ts +87 -0
  520. package/.next/types/app/login/page.ts +87 -0
  521. package/.next/types/app/page.ts +87 -0
  522. package/.next/types/cache-life.d.ts +145 -0
  523. package/.next/types/package.json +1 -0
  524. package/.next/types/routes.d.ts +112 -0
  525. package/.next/types/validator.ts +430 -0
  526. package/LICENSE +21 -0
  527. package/README.md +140 -0
  528. package/README.zh-CN.md +136 -0
  529. package/bin/pi-web-options.js +45 -0
  530. package/bin/pi-web.js +343 -0
  531. package/lib/auth-cli.js +115 -0
  532. package/next.config.ts +37 -0
  533. package/package.json +79 -0
@@ -0,0 +1,104 @@
1
+ "use strict";exports.id=4796,exports.ids=[4796],exports.modules={4328:(a,b,c)=>{function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(95097).K)(d,"populateCommonDb")},44796:(a,b,c)=>{c.d(b,{diagram:()=>aD});var d=c(80336),e=c(4328),f=c(37879),g=c(36594),h=c(58715),i=c(95097),j=c(92325),k=c(69085),l={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},m=g.UI.gitGraph,n=(0,i.K)(()=>(0,f.$t)({...m,...(0,g.zj)().gitGraph}),"getConfig"),o=new d.m(()=>{let a=n(),b=a.mainBranchName,c=a.mainBranchOrder;return{mainBranchName:b,commits:new Map,head:null,branchConfig:new Map([[b,{name:b,order:c}]]),branches:new Map([[b,null]]),currBranch:b,direction:"LR",seq:0,options:{}}});function p(){return(0,f.yT)({length:7})}function q(a,b){let c=Object.create(null);return a.reduce((a,d)=>{let e=b(d);return c[e]||(c[e]=!0,a.push(d)),a},[])}(0,i.K)(p,"getID"),(0,i.K)(q,"uniqBy");var r=(0,i.K)(function(a){o.records.direction=a},"setDirection"),s=(0,i.K)(function(a){h.R.debug("options str",a),a=(a=a?.trim())||"{}";try{o.records.options=JSON.parse(a)}catch(a){h.R.error("error while parsing gitGraph options",a.message)}},"setOptions"),t=(0,i.K)(function(){return o.records.options},"getOptions"),u=(0,i.K)(function(a){let b=a.msg,c=a.id,d=a.type,e=a.tags;h.R.info("commit",b,c,d,e),h.R.debug("Entering commit:",b,c,d,e);let f=n();c=g.Y2.sanitizeText(c,f),b=g.Y2.sanitizeText(b,f),e=e?.map(a=>g.Y2.sanitizeText(a,f));let i={id:c||o.records.seq+"-"+p(),message:b,seq:o.records.seq++,type:d??l.NORMAL,tags:e??[],parents:null==o.records.head?[]:[o.records.head.id],branch:o.records.currBranch};o.records.head=i,h.R.info("main branch",f.mainBranchName),o.records.commits.has(i.id)&&h.R.warn(`Commit ID ${i.id} already exists`),o.records.commits.set(i.id,i),o.records.branches.set(o.records.currBranch,i.id),h.R.debug("in pushCommit "+i.id)},"commit"),v=(0,i.K)(function(a){let b=a.name,c=a.order;if(b=g.Y2.sanitizeText(b,n()),o.records.branches.has(b))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${b}")`);o.records.branches.set(b,null!=o.records.head?o.records.head.id:null),o.records.branchConfig.set(b,{name:b,order:c}),y(b),h.R.debug("in createBranch")},"branch"),w=(0,i.K)(a=>{let b=a.branch,c=a.id,d=a.type,e=a.tags,f=n();b=g.Y2.sanitizeText(b,f),c&&(c=g.Y2.sanitizeText(c,f));let i=o.records.branches.get(o.records.currBranch),j=o.records.branches.get(b),k=i?o.records.commits.get(i):void 0,m=j?o.records.commits.get(j):void 0;if(k&&m&&k.branch===b)throw Error(`Cannot merge branch '${b}' into itself.`);if(o.records.currBranch===b){let a=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["branch abc"]},a}if(void 0===k||!k){let a=Error(`Incorrect usage of "merge". Current branch (${o.records.currBranch})has no commits`);throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["commit"]},a}if(!o.records.branches.has(b)){let a=Error('Incorrect usage of "merge". Branch to be merged ('+b+") does not exist");throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:[`branch ${b}`]},a}if(void 0===m||!m){let a=Error('Incorrect usage of "merge". Branch to be merged ('+b+") has no commits");throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:['"commit"']},a}if(k===m){let a=Error('Incorrect usage of "merge". Both branches have same head');throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["branch abc"]},a}if(c&&o.records.commits.has(c)){let a=Error('Incorrect usage of "merge". Commit with id:'+c+" already exists, use different custom id");throw a.hash={text:`merge ${b} ${c} ${d} ${e?.join(" ")}`,token:`merge ${b} ${c} ${d} ${e?.join(" ")}`,expected:[`merge ${b} ${c}_UNIQUE ${d} ${e?.join(" ")}`]},a}let q={id:c||`${o.records.seq}-${p()}`,message:`merged branch ${b} into ${o.records.currBranch}`,seq:o.records.seq++,parents:null==o.records.head?[]:[o.records.head.id,j||""],branch:o.records.currBranch,type:l.MERGE,customType:d,customId:!!c,tags:e??[]};o.records.head=q,o.records.commits.set(q.id,q),o.records.branches.set(o.records.currBranch,q.id),h.R.debug(o.records.branches),h.R.debug("in mergeBranch")},"merge"),x=(0,i.K)(function(a){let b=a.id,c=a.targetId,d=a.tags,e=a.parent;h.R.debug("Entering cherryPick:",b,c,d);let f=n();if(b=g.Y2.sanitizeText(b,f),c=g.Y2.sanitizeText(c,f),d=d?.map(a=>g.Y2.sanitizeText(a,f)),e=g.Y2.sanitizeText(e,f),!b||!o.records.commits.has(b)){let a=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let i=o.records.commits.get(b);if(void 0===i||!i)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(i.parents)&&i.parents.includes(e)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let j=i.branch;if(i.type===l.MERGE&&!e)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!c||!o.records.commits.has(c)){if(j===o.records.currBranch){let a=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let a=o.records.branches.get(o.records.currBranch);if(void 0===a||!a){let a=Error(`Incorrect usage of "cherry-pick". Current branch (${o.records.currBranch})has no commits`);throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let f=o.records.commits.get(a);if(void 0===f||!f){let a=Error(`Incorrect usage of "cherry-pick". Current branch (${o.records.currBranch})has no commits`);throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let g={id:o.records.seq+"-"+p(),message:`cherry-picked ${i?.message} into ${o.records.currBranch}`,seq:o.records.seq++,parents:null==o.records.head?[]:[o.records.head.id,i.id],branch:o.records.currBranch,type:l.CHERRY_PICK,tags:d?d.filter(Boolean):[`cherry-pick:${i.id}${i.type===l.MERGE?`|parent:${e}`:""}`]};o.records.head=g,o.records.commits.set(g.id,g),o.records.branches.set(o.records.currBranch,g.id),h.R.debug(o.records.branches),h.R.debug("in cherryPick")}},"cherryPick"),y=(0,i.K)(function(a){if(a=g.Y2.sanitizeText(a,n()),o.records.branches.has(a)){o.records.currBranch=a;let b=o.records.branches.get(o.records.currBranch);void 0!==b&&b?o.records.head=o.records.commits.get(b)??null:o.records.head=null}else{let b=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw b.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},b}},"checkout");function z(a,b,c){let d=a.indexOf(b);-1===d?a.push(c):a.splice(d,1,c)}function A(a){let b=a.reduce((a,b)=>a.seq>b.seq?a:b,a[0]),c="";a.forEach(function(a){a===b?c+=" *":c+=" |"});let d=[c,b.id,b.seq];for(let a in o.records.branches)o.records.branches.get(a)===b.id&&d.push(a);if(h.R.debug(d.join(" ")),b.parents&&2==b.parents.length&&b.parents[0]&&b.parents[1]){let c=o.records.commits.get(b.parents[0]);z(a,b,c),b.parents[1]&&a.push(o.records.commits.get(b.parents[1]))}else if(0==b.parents.length)return;else if(b.parents[0]){let c=o.records.commits.get(b.parents[0]);z(a,b,c)}A(a=q(a,a=>a.id))}(0,i.K)(z,"upsert"),(0,i.K)(A,"prettyPrintCommitHistory");var B=(0,i.K)(function(){h.R.debug(o.records.commits),A([G()[0]])},"prettyPrint"),C=(0,i.K)(function(){o.reset(),(0,g.IU)()},"clear"),D=(0,i.K)(function(){return[...o.records.branchConfig.values()].map((a,b)=>null!==a.order&&void 0!==a.order?a:{...a,order:parseFloat(`0.${b}`)}).sort((a,b)=>(a.order??0)-(b.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),E=(0,i.K)(function(){return o.records.branches},"getBranches"),F=(0,i.K)(function(){return o.records.commits},"getCommits"),G=(0,i.K)(function(){let a=[...o.records.commits.values()];return a.forEach(function(a){h.R.debug(a.id)}),a.sort((a,b)=>a.seq-b.seq),a},"getCommitsArray"),H={commitType:l,getConfig:n,setDirection:r,setOptions:s,getOptions:t,commit:u,branch:v,merge:w,cherryPick:x,checkout:y,prettyPrint:B,clear:C,getBranchesAsObjArray:D,getBranches:E,getCommits:F,getCommitsArray:G,getCurrentBranch:(0,i.K)(function(){return o.records.currBranch},"getCurrentBranch"),getDirection:(0,i.K)(function(){return o.records.direction},"getDirection"),getHead:(0,i.K)(function(){return o.records.head},"getHead"),setAccTitle:g.SV,getAccTitle:g.iN,getAccDescription:g.m7,setAccDescription:g.EI,setDiagramTitle:g.ke,getDiagramTitle:g.ab},I=(0,i.K)((a,b)=>{for(let c of((0,e.S)(a,b),a.dir&&b.setDirection(a.dir),a.statements))J(c,b)},"populate"),J=(0,i.K)((a,b)=>{let c={Commit:(0,i.K)(a=>b.commit(K(a)),"Commit"),Branch:(0,i.K)(a=>b.branch(L(a)),"Branch"),Merge:(0,i.K)(a=>b.merge(M(a)),"Merge"),Checkout:(0,i.K)(a=>b.checkout(N(a)),"Checkout"),CherryPicking:(0,i.K)(a=>b.cherryPick(O(a)),"CherryPicking")}[a.$type];c?c(a):h.R.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),K=(0,i.K)(a=>({id:a.id,msg:a.message??"",type:void 0!==a.type?l[a.type]:l.NORMAL,tags:a.tags??void 0}),"parseCommit"),L=(0,i.K)(a=>({name:a.name,order:a.order??0}),"parseBranch"),M=(0,i.K)(a=>({branch:a.branch,id:a.id??"",type:void 0!==a.type?l[a.type]:void 0,tags:a.tags??void 0}),"parseMerge"),N=(0,i.K)(a=>a.branch,"parseCheckout"),O=(0,i.K)(a=>({id:a.id,targetId:"",tags:a.tags?.length===0?void 0:a.tags,parent:a.parent}),"parseCherryPicking"),P={parse:(0,i.K)(async a=>{let b=await (0,j.qg)("gitGraph",a);h.R.debug(b),I(b,H)},"parse")},Q=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),R=new Set(["redux-color","redux-dark-color"]),S=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),T=(0,i.K)((a,b,c=!1)=>c&&a>0?(a-1)%(b-1)+1:a%b,"calcColorIndex"),U=new Map,V=new Map,W=new Map,X=[],Y=0,Z="LR",$=(0,i.K)(()=>{U.clear(),V.clear(),W.clear(),Y=0,X=[],Z="LR"},"clear"),_=(0,i.K)(a=>{let b=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):a).forEach(a=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=a.trim(),b.appendChild(c)}),b},"drawText"),aa=(0,i.K)(a=>{let b,c,d;return"BT"===Z?(c=(0,i.K)((a,b)=>a<=b,"comparisonFunc"),d=1/0):(c=(0,i.K)((a,b)=>a>=b,"comparisonFunc"),d=0),a.forEach(a=>{let e="TB"===Z||"BT"==Z?V.get(a)?.y:V.get(a)?.x;void 0!==e&&c(e,d)&&(b=a,d=e)}),b},"findClosestParent"),ab=(0,i.K)(a=>{let b="",c=1/0;return a.forEach(a=>{let d=V.get(a).y;d<=c&&(b=a,c=d)}),b||void 0},"findClosestParentBT"),ac=(0,i.K)((a,b,c)=>{let d=c,e=c,f=[];a.forEach(a=>{let c=b.get(a);if(!c)throw Error(`Commit not found for key ${a}`);c.parents.length?e=Math.max(d=ae(c),e):f.push(c),af(c,d)}),d=e,f.forEach(a=>{ag(a,d,c)}),a.forEach(a=>{let c=b.get(a);if(c?.parents.length){let a=ab(c.parents);(d=V.get(a).y-40)<=e&&(e=d);let b=U.get(c.branch).pos,f=d-10;V.set(c.id,{x:b,y:f})}})},"setParallelBTPos"),ad=(0,i.K)(a=>{let b=aa(a.parents.filter(a=>null!==a));if(!b)throw Error(`Closest parent not found for commit ${a.id}`);let c=V.get(b)?.y;if(void 0===c)throw Error(`Closest parent position not found for commit ${a.id}`);return c},"findClosestParentPos"),ae=(0,i.K)(a=>ad(a)+40,"calculateCommitPosition"),af=(0,i.K)((a,b)=>{let c=U.get(a.branch);if(!c)throw Error(`Branch not found for commit ${a.id}`);let d=c.pos,e=b+10;return V.set(a.id,{x:d,y:e}),{x:d,y:e}},"setCommitPosition"),ag=(0,i.K)((a,b,c)=>{let d=U.get(a.branch);if(!d)throw Error(`Branch not found for commit ${a.id}`);let e=d.pos;V.set(a.id,{x:e,y:b+c})},"setRootPosition"),ah=(0,i.K)((a,b,c,d,e,f)=>{let{theme:h}=(0,g.D7)(),i=Q.has(h??""),j=R.has(h??""),k=S.has(h??"");if(f===l.HIGHLIGHT)a.append("rect").attr("x",c.x-10+3*!!i).attr("y",c.y-10+3*!!i).attr("width",i?14:20).attr("height",i?14:20).attr("class",`commit ${b.id} commit-highlight${T(e,8,j)} ${d}-outer`),a.append("rect").attr("x",c.x-6+2*!!i).attr("y",c.y-6+2*!!i).attr("width",i?8:12).attr("height",i?8:12).attr("class",`commit ${b.id} commit${T(e,8,j)} ${d}-inner`);else if(f===l.CHERRY_PICK)a.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",i?7:10).attr("class",`commit ${b.id} ${d}`),a.append("circle").attr("cx",c.x-3).attr("cy",c.y+2).attr("r",i?2.5:2.75).attr("fill",k?"#000000":"#fff").attr("class",`commit ${b.id} ${d}`),a.append("circle").attr("cx",c.x+3).attr("cy",c.y+2).attr("r",i?2.5:2.75).attr("fill",k?"#000000":"#fff").attr("class",`commit ${b.id} ${d}`),a.append("line").attr("x1",c.x+3).attr("y1",c.y+1).attr("x2",c.x).attr("y2",c.y-5).attr("stroke",k?"#000000":"#fff").attr("class",`commit ${b.id} ${d}`),a.append("line").attr("x1",c.x-3).attr("y1",c.y+1).attr("x2",c.x).attr("y2",c.y-5).attr("stroke",k?"#000000":"#fff").attr("class",`commit ${b.id} ${d}`);else{let g=a.append("circle");if(g.attr("cx",c.x),g.attr("cy",c.y),g.attr("r",i?7:10),g.attr("class",`commit ${b.id} commit${T(e,8,j)}`),f===l.MERGE){let f=a.append("circle");f.attr("cx",c.x),f.attr("cy",c.y),f.attr("r",i?5:6),f.attr("class",`commit ${d} ${b.id} commit${T(e,8,j)}`)}if(f===l.REVERSE){let f=a.append("path"),g=i?4:5;f.attr("d",`M ${c.x-g},${c.y-g}L${c.x+g},${c.y+g}M${c.x-g},${c.y+g}L${c.x+g},${c.y-g}`).attr("class",`commit ${d} ${b.id} commit${T(e,8,j)}`)}}},"drawCommitBullet"),ai=(0,i.K)((a,b,c,d,e)=>{if(b.type!==l.CHERRY_PICK&&(b.customId&&b.type===l.MERGE||b.type!==l.MERGE)&&e.showCommitLabel){let f=a.append("g"),g=f.insert("rect").attr("class","commit-label-bkg"),h=f.append("text").attr("x",d).attr("y",c.y+25).attr("class","commit-label").text(b.id),i=h.node()?.getBBox();if(i&&(g.attr("x",c.posWithOffset-i.width/2-2).attr("y",c.y+13.5).attr("width",i.width+4).attr("height",i.height+4),"TB"===Z||"BT"===Z?(g.attr("x",c.x-(i.width+16+5)).attr("y",c.y-12),h.attr("x",c.x-(i.width+16)).attr("y",c.y+i.height-12)):h.attr("x",c.posWithOffset-i.width/2),e.rotateCommitLabel))if("TB"===Z||"BT"===Z)h.attr("transform","rotate(-45, "+c.x+", "+c.y+")"),g.attr("transform","rotate(-45, "+c.x+", "+c.y+")");else{let a=-7.5-(i.width+10)/25*9.5,b=10+i.width/25*8.5;f.attr("transform","translate("+a+", "+b+") rotate(-45, "+d+", "+c.y+")")}}},"drawCommitLabel"),aj=(0,i.K)((a,b,c,d)=>{if(b.tags.length>0){let e=0,f=0,g=0,h=[];for(let d of b.tags.reverse()){let b=a.insert("polygon"),i=a.append("circle"),j=a.append("text").attr("y",c.y-16-e).attr("class","tag-label").text(d),k=j.node()?.getBBox();if(!k)throw Error("Tag bbox not found");f=Math.max(f,k.width),g=Math.max(g,k.height),j.attr("x",c.posWithOffset-k.width/2),h.push({tag:j,hole:i,rect:b,yOffset:e}),e+=20}for(let{tag:a,hole:b,rect:e,yOffset:i}of h){let h=g/2,j=c.y-19.2-i;if(e.attr("class","tag-label-bkg").attr("points",`
2
+ ${d-f/2-2},${j+2}
3
+ ${d-f/2-2},${j-2}
4
+ ${c.posWithOffset-f/2-4},${j-h-2}
5
+ ${c.posWithOffset+f/2+4},${j-h-2}
6
+ ${c.posWithOffset+f/2+4},${j+h+2}
7
+ ${c.posWithOffset-f/2-4},${j+h+2}`),b.attr("cy",j).attr("cx",d-f/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===Z||"BT"===Z){let g=d+i;e.attr("class","tag-label-bkg").attr("points",`
8
+ ${c.x},${g+2}
9
+ ${c.x},${g-2}
10
+ ${c.x+10},${g-h-2}
11
+ ${c.x+10+f+4},${g-h-2}
12
+ ${c.x+10+f+4},${g+h+2}
13
+ ${c.x+10},${g+h+2}`).attr("transform","translate(12,12) rotate(45, "+c.x+","+d+")"),b.attr("cx",c.x+2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+c.x+","+d+")"),a.attr("x",c.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+c.x+","+d+")")}}}},"drawCommitTags"),ak=(0,i.K)(a=>{switch(a.customType??a.type){case l.NORMAL:return"commit-normal";case l.REVERSE:return"commit-reverse";case l.HIGHLIGHT:return"commit-highlight";case l.MERGE:return"commit-merge";case l.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),al=(0,i.K)((a,b,c,d)=>{let e={x:0,y:0};if(a.parents.length>0){let c=aa(a.parents);if(c){let f=d.get(c)??e;return"TB"===b?f.y+40:"BT"===b?(d.get(a.id)??e).y-40:f.x+40}}else if("TB"===b)return 30;else if("BT"===b)return(d.get(a.id)??e).y-40;return 0},"calculatePosition"),am=(0,i.K)((a,b,c)=>{let d="BT"===Z&&c?b:b+10,e=U.get(a.branch)?.pos,f="TB"===Z||"BT"===Z?U.get(a.branch)?.pos:d;if(void 0===f||void 0===e)throw Error(`Position were undefined for commit ${a.id}`);let h=Q.has((0,g.D7)().theme??"");return{x:f,y:"TB"===Z||"BT"===Z?d:e+(h?7:-2),posWithOffset:d}},"getCommitPosition"),an=(0,i.K)((a,b,c,d)=>{let e=a.append("g").attr("class","commit-bullets"),f=a.append("g").attr("class","commit-labels"),g=30*("TB"===Z||"BT"===Z),h=[...b.keys()],j=d.parallelCommits??!1,k=h.sort((0,i.K)((a,c)=>{let d=b.get(a)?.seq,e=b.get(c)?.seq;return void 0!==d&&void 0!==e?d-e:0},"sortKeys"));"BT"===Z&&(j&&ac(k,b,g),k=k.reverse()),k.forEach(a=>{let h=b.get(a);if(!h)throw Error(`Commit not found for key ${a}`);j&&(g=al(h,Z,g,V));let i=am(h,g,j);if(c){let a=ak(h),b=h.customType??h.type,c=U.get(h.branch)?.index??0;ah(e,h,i,a,c,b),ai(f,h,i,g,d),aj(f,h,i,g)}"TB"===Z||"BT"===Z?V.set(h.id,{x:i.x,y:i.posWithOffset}):V.set(h.id,{x:i.posWithOffset,y:i.y}),(g="BT"===Z&&j?g+40:g+40+10)>Y&&(Y=g)})},"drawCommits"),ao=(0,i.K)((a,b,c,d,e)=>{let f=("TB"===Z||"BT"===Z?c.x<d.x:c.y<d.y)?b.branch:a.branch,g=(0,i.K)(a=>a.branch===f,"isOnBranchToGetCurve"),h=(0,i.K)(c=>c.seq>a.seq&&c.seq<b.seq,"isBetweenCommits");return[...e.values()].some(a=>h(a)&&g(a))},"shouldRerouteArrow"),ap=(0,i.K)((a,b,c=0)=>{let d=a+Math.abs(a-b)/2;if(c>5)return d;if(X.every(a=>Math.abs(a-d)>=10))return X.push(d),d;let e=Math.abs(a-b);return ap(a,b-e/5,c+1)},"findLane"),aq=(0,i.K)((a,b,c,d)=>{let e,{theme:f}=(0,g.D7)(),h=R.has(f??""),i=V.get(b.id),j=V.get(c.id);if(void 0===i||void 0===j)throw Error(`Commit positions not found for commits ${b.id} and ${c.id}`);let k=ao(b,c,i,j,d),m="",n="",o=0,p=0,q=U.get(c.branch)?.index;if(c.type===l.MERGE&&b.id!==c.parents[0]&&(q=U.get(b.branch)?.index),k){m="A 10 10, 0, 0, 0,",n="A 10 10, 0, 0, 1,",o=10,p=10;let a=i.y<j.y?ap(i.y,j.y):ap(j.y,i.y),c=i.x<j.x?ap(i.x,j.x):ap(j.x,i.x);"TB"===Z?i.x<j.x?e=`M ${i.x} ${i.y} L ${c-o} ${i.y} ${n} ${c} ${i.y+p} L ${c} ${j.y-o} ${m} ${c+p} ${j.y} L ${j.x} ${j.y}`:(q=U.get(b.branch)?.index,e=`M ${i.x} ${i.y} L ${c+o} ${i.y} ${m} ${c} ${i.y+p} L ${c} ${j.y-o} ${n} ${c-p} ${j.y} L ${j.x} ${j.y}`):"BT"===Z?i.x<j.x?e=`M ${i.x} ${i.y} L ${c-o} ${i.y} ${m} ${c} ${i.y-p} L ${c} ${j.y+o} ${n} ${c+p} ${j.y} L ${j.x} ${j.y}`:(q=U.get(b.branch)?.index,e=`M ${i.x} ${i.y} L ${c+o} ${i.y} ${n} ${c} ${i.y-p} L ${c} ${j.y+o} ${m} ${c-p} ${j.y} L ${j.x} ${j.y}`):i.y<j.y?e=`M ${i.x} ${i.y} L ${i.x} ${a-o} ${m} ${i.x+p} ${a} L ${j.x-o} ${a} ${n} ${j.x} ${a+p} L ${j.x} ${j.y}`:(q=U.get(b.branch)?.index,e=`M ${i.x} ${i.y} L ${i.x} ${a+o} ${n} ${i.x+p} ${a} L ${j.x-o} ${a} ${m} ${j.x} ${a-p} L ${j.x} ${j.y}`)}else m="A 20 20, 0, 0, 0,",n="A 20 20, 0, 0, 1,",o=20,p=20,"TB"===Z?(i.x<j.x&&(e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${j.y-o} ${m} ${i.x+p} ${j.y} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${j.x-o} ${i.y} ${n} ${j.x} ${i.y+p} L ${j.x} ${j.y}`),i.x>j.x&&(m="A 20 20, 0, 0, 0,",n="A 20 20, 0, 0, 1,",o=20,p=20,e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${j.y-o} ${n} ${i.x-p} ${j.y} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${j.x+o} ${i.y} ${m} ${j.x} ${i.y+p} L ${j.x} ${j.y}`),i.x===j.x&&(e=`M ${i.x} ${i.y} L ${j.x} ${j.y}`)):"BT"===Z?(i.x<j.x&&(e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${j.y+o} ${n} ${i.x+p} ${j.y} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${j.x-o} ${i.y} ${m} ${j.x} ${i.y-p} L ${j.x} ${j.y}`),i.x>j.x&&(m="A 20 20, 0, 0, 0,",n="A 20 20, 0, 0, 1,",o=20,p=20,e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${j.y+o} ${m} ${i.x-p} ${j.y} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${j.x+o} ${i.y} ${n} ${j.x} ${i.y-p} L ${j.x} ${j.y}`),i.x===j.x&&(e=`M ${i.x} ${i.y} L ${j.x} ${j.y}`)):(i.y<j.y&&(e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${j.x-o} ${i.y} ${n} ${j.x} ${i.y+p} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${i.x} ${j.y-o} ${m} ${i.x+p} ${j.y} L ${j.x} ${j.y}`),i.y>j.y&&(e=c.type===l.MERGE&&b.id!==c.parents[0]?`M ${i.x} ${i.y} L ${j.x-o} ${i.y} ${m} ${j.x} ${i.y-p} L ${j.x} ${j.y}`:`M ${i.x} ${i.y} L ${i.x} ${j.y+o} ${n} ${i.x+p} ${j.y} L ${j.x} ${j.y}`),i.y===j.y&&(e=`M ${i.x} ${i.y} L ${j.x} ${j.y}`));if(void 0===e)throw Error("Line definition not found");a.append("path").attr("d",e).attr("class","arrow arrow"+T(q,8,h))},"drawArrow"),ar=(0,i.K)((a,b)=>{let c=a.append("g").attr("class","commit-arrows");[...b.keys()].forEach(a=>{let d=b.get(a);d.parents&&d.parents.length>0&&d.parents.forEach(a=>{aq(c,b.get(a),d,b)})})},"drawArrows"),as=(0,i.K)((a,b,c,d)=>{let{look:e,theme:f,themeVariables:h}=(0,g.D7)(),{dropShadow:i,THEME_COLOR_LIMIT:j}=h,k=Q.has(f??""),l=R.has(f??""),m=a.append("g");b.forEach((a,b)=>{let f=T(b,k?j:8,l),g=U.get(a.name)?.pos;if(void 0===g)throw Error(`Position not found for branch ${a.name}`);let h="TB"===Z||"BT"===Z?g:k?g+6+1:g-2,n=m.append("line");n.attr("x1",0),n.attr("y1",h),n.attr("x2",Y),n.attr("y2",h),n.attr("class","branch branch"+f),"TB"===Z?(n.attr("y1",30),n.attr("x1",g),n.attr("y2",Y),n.attr("x2",g)):"BT"===Z&&(n.attr("y1",Y),n.attr("x1",g),n.attr("y2",30),n.attr("x2",g)),X.push(h);let o=_(a.name),p=m.insert("rect"),q=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+f);q.node().appendChild(o);let r=o.getBBox(),s=4*!k,t=16*!!k,u=12*!!k;"neo"===e&&p.attr("data-look","neo"),p.attr("class","branchLabelBkg label"+f).attr("style","neo"===e?`filter:${k?`url(#${d}-drop-shadow)`:i}`:"").attr("rx",s).attr("ry",s).attr("x",-r.width-4-30*(!0===c.rotateCommitLabel)).attr("y",-r.height/2+10).attr("width",r.width+18+t).attr("height",r.height+4+u),q.attr("transform","translate("+(-r.width-14-30*(!0===c.rotateCommitLabel)+t/2)+", "+(h-r.height/2-2)+")"),"TB"===Z?(p.attr("x",g-r.width/2-10).attr("y",0),q.attr("transform","translate("+(g-r.width/2-5)+", 0)"),k&&(p.attr("transform",`translate(${-t/2-3}, ${-u-10})`),q.attr("transform","translate("+(g-r.width/2-5)+", "+(-(2*u)+7)+")"))):"BT"===Z?(p.attr("x",g-r.width/2-10).attr("y",Y),q.attr("transform","translate("+(g-r.width/2-5)+", "+Y+")"),k&&(p.attr("transform",`translate(${-t/2-3}, ${u+10})`),q.attr("transform","translate("+(g-r.width/2-5)+", "+(Y+2*u+4)+")"))):p.attr("transform","translate(-19, "+(h-12-u/2)+")")})},"drawBranches"),at=(0,i.K)(function(a,b,c,d,e){return U.set(a,{pos:b,index:c}),b+=50+40*!!e+("TB"===Z||"BT"===Z?d.width/2:0)},"setBranchPosition"),au=(0,i.K)(function(a,b,c,d){$(),h.R.debug("in gitgraph renderer",a+"\n","id:",b,c);let e=d.db;if(!e.getConfig)return void h.R.error("getConfig method is not available on db");let i=e.getConfig(),j=i.rotateCommitLabel??!1;W=e.getCommits();let l=e.getBranchesAsObjArray();Z=e.getDirection();let m=(0,k.Ltv)(`[id="${b}"]`),{look:n,theme:o,themeVariables:p}=(0,g.D7)(),{useGradient:q,gradientStart:r,gradientStop:s,filterColor:t}=p;if(q){let a=m.append("defs").append("linearGradient").attr("id",b+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("stop").attr("offset","0%").attr("stop-color",r).attr("stop-opacity",1),a.append("stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)}"neo"===n&&Q.has(o??"")&&m.append("defs").append("filter").attr("id",b+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",t);let u=0;l.forEach((a,b)=>{let c=_(a.name),d=m.append("g"),e=d.insert("g").attr("class","branchLabel"),f=e.insert("g").attr("class","label branch-label");f.node()?.appendChild(c);let g=c.getBBox();u=at(a.name,u,b,g,j),f.remove(),e.remove(),d.remove()}),an(m,W,!1,i),i.showBranches&&as(m,l,i,b),ar(m,W),an(m,W,!0,i),f._K.insertTitle(m,"gitTitleText",i.titleTopMargin??0,e.getDiagramTitle()),(0,g.mj)(void 0,m,i.diagramPadding,i.useMaxWidth)},"draw"),av=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),aw=new Set(["redux-color","redux-dark-color"]),ax=new Set(["neo","neo-dark"]),ay=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),az=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),aA=(0,i.K)(a=>{let{svgId:b}=a,c="";if(a.useGradient&&b)for(let d=0;d<a.THEME_COLOR_LIMIT;d++)c+=`
14
+ .label${d} { fill: ${a.mainBkg}; stroke: url(${b}-gradient); stroke-width: ${a.strokeWidth};}
15
+ `;return c},"genGitGraphGradient"),aB=(0,i.K)(a=>{let{theme:b,themeVariables:c}=(0,g.zj)(),{borderColorArray:d}=c,e=av.has(b);if(ax.has(b)){let b="";for(let c=0;c<a.THEME_COLOR_LIMIT;c++)if(0===c)b+=`
16
+ .branch-label${c} { fill: ${a.nodeBorder};}
17
+ .commit${c} { stroke: ${a.nodeBorder}; }
18
+ .commit-highlight${c} { stroke: ${a.nodeBorder}; fill: ${a.nodeBorder}; }
19
+ .arrow${c} { stroke: ${a.nodeBorder}; }
20
+ .commit-bullets { fill: ${a.nodeBorder}; }
21
+ .commit-cherry-pick${c} { stroke: ${a.nodeBorder}; }
22
+ ${aA(a)}`;else{let d=c%8;b+=`
23
+ .branch-label${c} { fill: ${a["gitBranchLabel"+d]}; }
24
+ .commit${c} { stroke: ${a["git"+d]}; fill: ${a["git"+d]}; }
25
+ .commit-highlight${c} { stroke: ${a["gitInv"+d]}; fill: ${a["gitInv"+d]}; }
26
+ .arrow${c} { stroke: ${a["git"+d]}; }
27
+ `}return b}if(aw.has(b)){let c="";for(let f=0;f<a.THEME_COLOR_LIMIT;f++)if(0===f)c+=`
28
+ .branch-label${f} { fill: ${a.nodeBorder}; ${e?`font-weight:${a.noteFontWeight}`:""} }
29
+ .commit${f} { stroke: ${a.nodeBorder}; }
30
+ .commit-highlight${f} { stroke: ${a.nodeBorder}; fill: ${a.mainBkg}; }
31
+ .label${f} { fill: ${a.mainBkg}; stroke: ${a.nodeBorder}; stroke-width: ${a.strokeWidth}; ${e?`font-weight:${a.noteFontWeight}`:""} }
32
+ .arrow${f} { stroke: ${a.nodeBorder}; }
33
+ .commit-bullets { fill: ${a.nodeBorder}; }
34
+ `;else{let g=f%d.length;c+=`
35
+ .branch-label${f} { fill: ${a.nodeBorder}; ${e?`font-weight:${a.noteFontWeight}`:""} }
36
+ .commit${f} { stroke: ${d[g]}; fill: ${d[g]}; }
37
+ .commit-highlight${f} { stroke: ${d[g]}; fill: ${d[g]}; }
38
+ .label${f} { fill: ${ay.has(b)?a.mainBkg:d[g]}; stroke: ${d[g]}; stroke-width: ${a.strokeWidth}; }
39
+ .arrow${f} { stroke: ${d[g]}; }
40
+ `}return c}{let b="";for(let c=0;c<a.THEME_COLOR_LIMIT;c++)b+=`
41
+ .branch-label${c} { fill: ${a.nodeBorder}; ${e?`font-weight:${a.noteFontWeight}`:""} }
42
+ .commit${c} { stroke: ${a.nodeBorder}; }
43
+ .commit-highlight${c} { stroke: ${a.nodeBorder}; fill: ${a.nodeBorder}; }
44
+ .label${c} { fill: ${a.mainBkg}; stroke: ${a.nodeBorder}; stroke-width: ${a.strokeWidth}; ${e?`font-weight:${a.noteFontWeight}`:""}}
45
+ .arrow${c} { stroke: ${a.nodeBorder}; }
46
+ .commit-bullets { fill: ${a.nodeBorder}; }
47
+ .commit-cherry-pick${c} { stroke: ${a.nodeBorder}; }
48
+ `;return b}},"genColor"),aC=(0,i.K)(a=>`${Array.from({length:a.THEME_COLOR_LIMIT},(a,b)=>b).map(b=>{let c=b%8;return`
49
+ .branch-label${b} { fill: ${a["gitBranchLabel"+c]}; }
50
+ .commit${b} { stroke: ${a["git"+c]}; fill: ${a["git"+c]}; }
51
+ .commit-highlight${b} { stroke: ${a["gitInv"+c]}; fill: ${a["gitInv"+c]}; }
52
+ .label${b} { fill: ${a["git"+c]}; }
53
+ .arrow${b} { stroke: ${a["git"+c]}; }
54
+ `}).join("\n")}`,"normalTheme"),aD={parser:P,db:H,renderer:{draw:au},styles:(0,i.K)(a=>{let{theme:b}=(0,g.zj)(),c=az.has(b);return`
55
+ .commit-id,
56
+ .commit-msg,
57
+ .branch-label {
58
+ fill: lightgrey;
59
+ color: lightgrey;
60
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
61
+ font-family: var(--mermaid-font-family);
62
+ }
63
+
64
+ ${c?aB(a):aC(a)}
65
+
66
+ .branch {
67
+ stroke-width: ${a.strokeWidth};
68
+ stroke: ${a.commitLineColor??a.lineColor};
69
+ stroke-dasharray: ${c?"4 2":"2"};
70
+ }
71
+ .commit-label { font-size: ${a.commitLabelFontSize}; fill: ${c?a.nodeBorder:a.commitLabelColor}; ${c?`font-weight:${a.noteFontWeight};`:""}}
72
+ .commit-label-bkg { font-size: ${a.commitLabelFontSize}; fill: ${c?"transparent":a.commitLabelBackground}; opacity: ${c?"":.5}; }
73
+ .tag-label { font-size: ${a.tagLabelFontSize}; fill: ${a.tagLabelColor};}
74
+ .tag-label-bkg { fill: ${c?a.mainBkg:a.tagLabelBackground}; stroke: ${c?a.nodeBorder:a.tagLabelBorder}; ${c?`filter:${a.dropShadow}`:""} }
75
+ .tag-hole { fill: ${a.textColor}; }
76
+
77
+ .commit-merge {
78
+ stroke: ${c?a.mainBkg:a.primaryColor};
79
+ fill: ${c?a.mainBkg:a.primaryColor};
80
+ }
81
+ .commit-reverse {
82
+ stroke: ${c?a.mainBkg:a.primaryColor};
83
+ fill: ${c?a.mainBkg:a.primaryColor};
84
+ stroke-width: ${c?a.strokeWidth:3};
85
+ }
86
+ .commit-highlight-outer {
87
+ }
88
+ .commit-highlight-inner {
89
+ stroke: ${c?a.mainBkg:a.primaryColor};
90
+ fill: ${c?a.mainBkg:a.primaryColor};
91
+ }
92
+
93
+ .arrow {
94
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
95
+ stroke-width: ${av.has(b)?a.strokeWidth:8};
96
+ stroke-linecap: round;
97
+ fill: none
98
+ }
99
+ .gitTitleText {
100
+ text-anchor: middle;
101
+ font-size: 18px;
102
+ fill: ${a.textColor};
103
+ }
104
+ `},"getStyles")}},80336:(a,b,c)=>{c.d(b,{m:()=>e});var d=c(95097),e=class{constructor(a){this.init=a,this.records=this.init()}static{(0,d.K)(this,"ImperativeState")}reset(){this.records=this.init()}}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=4980,exports.ids=[4980],exports.modules={64980:(a,b,c)=>{c.d(b,{Zp:()=>bV});var d,e,f,g=c(85992),h=c(17904),i=0;let j=function(a){var b=++i;return(0,h.A)(a)+b};var k=c(86060),l=c(78959);let m=function(a){return(null==a?0:a.length)?(0,l.A)(a,1):[]};var n=c(38368),o=Math.ceil,p=Math.max;let q=function(a,b,c,d){for(var e=-1,f=p(o((b-a)/(c||1)),0),g=Array(f);f--;)g[d?f:++e]=a,a+=c;return g};var r=c(44878),s=c(93884),t=c(29163),u=c(18671);let v=function(a,b,c){if(!(0,u.A)(c))return!1;var d=typeof b;return("number"==d?!!((0,s.A)(c)&&(0,t.A)(b,c.length)):"string"==d&&b in c)&&(0,r.A)(c[b],a)};var w=/\s/;let x=function(a){for(var b=a.length;b--&&w.test(a.charAt(b)););return b};var y=/^\s+/,z=c(86340),A=0/0,B=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,D=/^0o[0-7]+$/i,E=parseInt;let F=function(a){if("number"==typeof a)return a;if((0,z.A)(a))return A;if((0,u.A)(a)){var b,c="function"==typeof a.valueOf?a.valueOf():a;a=(0,u.A)(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=(b=a)?b.slice(0,x(b)+1).replace(y,""):b;var d=C.test(a);return d||D.test(a)?E(a.slice(2),d?2:8):B.test(a)?A:+a};var G=1/0;let H=function(a){return a?(a=F(a))===G||a===-G?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0},I=function(a,b,c){return c&&"number"!=typeof c&&v(a,b,c)&&(b=c=void 0),a=H(a),void 0===b?(b=a,a=0):b=H(b),c=void 0===c?a<b?1:-1:H(c),q(a,b,c,void 0)};var J=c(74367);class K{constructor(){var a={};a._next=a._prev=a,this._sentinel=a}dequeue(){var a=this._sentinel,b=a._prev;if(b!==a)return L(b),b}enqueue(a){var b=this._sentinel;a._prev&&a._next&&L(a),a._next=b._next,b._next._prev=a,b._next=a,a._prev=b}toString(){for(var a=[],b=this._sentinel,c=b._prev;c!==b;)a.push(JSON.stringify(c,M)),c=c._prev;return"["+a.join(", ")+"]"}}function L(a){a._prev._next=a._next,a._next._prev=a._prev,delete a._next,delete a._prev}function M(a,b){if("_next"!==a&&"_prev"!==a)return b}var N=k.A(1);function O(a,b,c,d,e){var f=e?[]:void 0;return g.A(a.inEdges(d.v),function(d){var g=a.edge(d),h=a.node(d.v);e&&f.push({v:d.v,w:d.w}),h.out-=g,P(b,c,h)}),g.A(a.outEdges(d.v),function(d){var e=a.edge(d),f=d.w,g=a.node(f);g.in-=e,P(b,c,g)}),a.removeNode(d.v),f}function P(a,b,c){c.out?c.in?a[c.out-c.in+b].enqueue(c):a[a.length-1].enqueue(c):a[0].enqueue(c)}var Q=c(41573),R=c(71734);let S=function(a,b,c){(void 0===c||(0,r.A)(a[b],c))&&(void 0!==c||b in a)||(0,R.A)(a,b,c)};var T=c(78832),U=c(44564),V=c(43391),W=c(53149),X=c(65977),Y=c(73769),Z=c(4591),$=c(45015),_=c(1443),aa=c(10228),ab=c(64910),ac=c(91329),ad=c(93820),ae=Object.prototype,af=Function.prototype.toString,ag=ae.hasOwnProperty,ah=af.call(Object);let ai=function(a){if(!(0,ad.A)(a)||"[object Object]"!=(0,ab.A)(a))return!1;var b=(0,ac.A)(a);if(null===b)return!0;var c=ag.call(b,"constructor")&&b.constructor;return"function"==typeof c&&c instanceof c&&af.call(c)==ah};var aj=c(38426);let ak=function(a,b){if(("constructor"!==b||"function"!=typeof a[b])&&"__proto__"!=b)return a[b]};var al=c(19089),am=c(45092);let an=function(a,b,c,d,e,f,g){var h=ak(a,c),i=ak(b,c),j=g.get(i);if(j)return void S(a,c,j);var k=f?f(h,i,c+"",a,b,g):void 0,l=void 0===k;if(l){var m=(0,Z.A)(i),n=!m&&(0,_.A)(i),o=!m&&!n&&(0,aj.A)(i);(k=i,m||n||o)?(0,Z.A)(h)?k=h:(0,$.A)(h)?k=(0,W.A)(h):n?(l=!1,k=(0,U.A)(i,!0)):o?(l=!1,k=(0,V.A)(i,!0)):k=[]:ai(i)||(0,Y.A)(i)?(k=h,(0,Y.A)(h))?k=(0,al.A)(h,(0,am.A)(h)):(!(0,u.A)(h)||(0,aa.A)(h))&&(k=(0,X.A)(i)):l=!1}l&&(g.set(i,k),e(k,i,d,f,g),g.delete(i)),S(a,c,k)},ao=function a(b,c,d,e,f){b!==c&&(0,T.A)(c,function(g,h){if(f||(f=new Q.A),(0,u.A)(g))an(b,c,h,d,a,e,f);else{var i=e?e(ak(b,h),g,h+"",b,c,f):void 0;void 0===i&&(i=g),S(b,h,i)}},am.A)};var ap=c(9672),aq=(d=function(a,b,c){ao(a,b,c)},(0,ap.A)(function(a,b){var c=-1,e=b.length,f=e>1?b[e-1]:void 0,g=e>2?b[2]:void 0;for(f=d.length>3&&"function"==typeof f?(e--,f):void 0,g&&v(b[0],b[1],g)&&(f=e<3?void 0:f,e=1),a=Object(a);++c<e;){var h=b[c];h&&d(a,h,c,f)}return a})),ar=c(86296),as=c(17149),at=c(67285),au=c(47927);let av=function(a,b,c,d){if(!(0,u.A)(a))return a;b=(0,at.A)(b,a);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=(0,au.A)(b[e]),j=c;if("__proto__"===i||"constructor"===i||"prototype"===i)break;if(e!=g){var k=h[i];void 0===(j=d?d(k,i,h):void 0)&&(j=(0,u.A)(k)?k:(0,t.A)(b[e+1])?[]:{})}(0,as.A)(h,i,j),h=h[i]}return a},aw=function(a,b,c){for(var d=-1,e=b.length,f={};++d<e;){var g=b[d],h=(0,ar.A)(a,g);c(h,g)&&av(f,(0,at.A)(g,a),h)}return f};var ax=c(67109),ay=c(50989),az=c(10874),aA=(e=function(a,b){return null==a?{}:aw(a,b,function(b,c){return(0,ax.A)(a,c)})},(0,az.A)((0,ay.A)(e,void 0,m),e+"")),aB=Object.prototype,aC=aB.hasOwnProperty,aD=(0,ap.A)(function(a,b){a=Object(a);var c=-1,d=b.length,e=d>2?b[2]:void 0;for(e&&v(b[0],b[1],e)&&(d=1);++c<d;)for(var f=b[c],g=(0,am.A)(f),h=-1,i=g.length;++h<i;){var j=g[h],k=a[j];(void 0===k||(0,r.A)(k,aB[j])&&!aC.call(a,j))&&(a[j]=f[j])}return a});let aE=function(a,b,c){for(var d=-1,e=a.length;++d<e;){var f=a[d],g=b(f);if(null!=g&&(void 0===h?g==g&&!(0,z.A)(g):c(g,h)))var h=g,i=f}return i},aF=function(a,b){return a>b};var aG=c(66994);let aH=function(a){return a&&a.length?aE(a,aG.A,aF):void 0},aI=function(a){var b=null==a?0:a.length;return b?a[b-1]:void 0};var aJ=c(62023),aK=c(78803);let aL=function(a,b){var c={};return b=(0,aK.A)(b,3),(0,aJ.A)(a,function(a,d,e){(0,R.A)(c,d,b(a,d,e))}),c};var aM=c(98122);let aN=function(a,b){return a<b},aO=function(a){return a&&a.length?aE(a,aG.A,aN):void 0};var aP=Object.prototype.hasOwnProperty;let aQ=function(a,b){return null!=a&&aP.call(a,b)};var aR=c(58560);let aS=function(a,b){return null!=a&&(0,aR.A)(a,b,aQ)};var aT=c(18623);let aU=function(){return aT.A.Date.now()};function aV(a,b,c,d){var e;do e=j(d);while(a.hasNode(e));return c.dummy=b,a.setNode(e,c),e}function aW(a){var b=new J.T({multigraph:a.isMultigraph()}).setGraph(a.graph());return g.A(a.nodes(),function(c){a.children(c).length||b.setNode(c,a.node(c))}),g.A(a.edges(),function(c){b.setEdge(c,a.edge(c))}),b}function aX(a,b){var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;if(!g&&!h)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=j*g/h,d=j):(g<0&&(i=-i),c=i,d=i*h/g),{x:e+c,y:f+d}}function aY(a){var b=n.A(I(a$(a)+1),function(){return[]});return g.A(a.nodes(),function(c){var d=a.node(c),e=d.rank;aM.A(e)||(b[e][d.order]=c)}),b}function aZ(a,b,c,d){var e={width:0,height:0};return arguments.length>=4&&(e.rank=c,e.order=d),aV(a,"border",e,b)}function a$(a){return aH(n.A(a.nodes(),function(b){var c=a.node(b).rank;if(!aM.A(c))return c}))}function a_(a,b){var c=aU();try{return b()}finally{console.log(a+" time: "+(aU()-c)+"ms")}}function a0(a,b){return b()}function a1(a,b,c,d,e,f){var g=e[b][f-1],h=aV(a,"border",{width:0,height:0,rank:f,borderType:b},c);e[b][f]=h,a.setParent(h,d),g&&a.setEdge(g,h,{weight:1})}function a2(a){g.A(a.nodes(),function(b){a3(a.node(b))}),g.A(a.edges(),function(b){a3(a.edge(b))})}function a3(a){var b=a.width;a.width=a.height,a.height=b}function a4(a){a.y=-a.y}function a5(a){var b=a.x;a.x=a.y,a.y=b}let a6=function(a,b){return a&&a.length?aE(a,(0,aK.A)(b,2),aN):void 0};function a7(a){var b={};g.A(a.sources(),function c(d){var e=a.node(d);if(Object.prototype.hasOwnProperty.call(b,d))return e.rank;b[d]=!0;var f=aO(n.A(a.outEdges(d),function(b){return c(b.w)-a.edge(b).minlen}));return(f===1/0||null==f)&&(f=0),e.rank=f})}function a8(a,b){return a.node(b.w).rank-a.node(b.v).rank-a.edge(b).minlen}function a9(a){var b,c,d,e,f=new J.T({directed:!1}),h=a.nodes()[0],i=a.nodeCount();for(f.setNode(h,{});b=f,c=a,g.A(b.nodes(),function a(d){g.A(c.nodeEdges(d),function(e){var f=e.v,g=d===f?e.w:f;b.hasNode(g)||a8(c,e)||(b.setNode(g,{}),b.setEdge(d,g,{}),a(g))})}),b.nodeCount()<i;)d=function(a,b){return a6(b.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return a8(b,c)})}(f,a),e=f.hasNode(d.v)?a8(a,d):-a8(a,d),function(a,b,c){g.A(a.nodes(),function(a){b.node(a).rank+=c})}(f,a,e);return f}var ba=c(45680),bb=c(67853);let bc=function(a){var b=H(a),c=b%1;return b==b?c?b-c:b:0};var bd=Math.max,be=(f=function(a,b,c){var d=null==a?0:a.length;if(!d)return -1;var e=null==c?0:bc(c);return e<0&&(e=bd(d+e,0)),(0,bb.A)(a,(0,aK.A)(b,3),e)},function(a,b,c){var d=Object(a);if(!(0,s.A)(a)){var e=(0,aK.A)(b,3);a=(0,ba.A)(a),b=function(a){return e(d[a],a,d)}}var g=f(a,b,c);return g>-1?d[e?a[g]:g]:void 0}),bf=c(58617);k.A(1),k.A(1);var bg=c(61137),bh=c(91680),bi=(0,c(19919).A)("length"),bj=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),bk="\\ud800-\\udfff",bl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",bm="\\ud83c[\\udffb-\\udfff]",bn="[^"+bk+"]",bo="(?:\\ud83c[\\udde6-\\uddff]){2}",bp="[\\ud800-\\udbff][\\udc00-\\udfff]",bq="(?:"+bl+"|"+bm+")?",br="[\\ufe0e\\ufe0f]?",bs="(?:\\u200d(?:"+[bn,bo,bp].join("|")+")"+br+bq+")*",bt=RegExp(bm+"(?="+bm+")|"+("(?:"+[bn+bl+"?",bl,bo,bp,"["+bk+"]"].join("|"))+")"+(br+bq+bs),"g");function bu(){}function bv(a,b,c){Z.A(b)||(b=[b]);var d=(a.isDirected()?a.successors:a.neighbors).bind(a),e=[],f={};return g.A(b,function(b){if(!a.hasNode(b))throw Error("Graph does not have node: "+b);!function a(b,c,d,e,f,h){!Object.prototype.hasOwnProperty.call(e,c)&&(e[c]=!0,d||h.push(c),g.A(f(c),function(c){a(b,c,d,e,f,h)}),d&&h.push(c))}(a,b,"post"===c,f,d,e)}),e}function bw(a){b=a,c=new J.T().setGraph(b.graph()),g.A(b.nodes(),function(a){c.setNode(a,b.node(a))}),g.A(b.edges(),function(a){var d=c.edge(a.v,a.w)||{weight:0,minlen:1},e=b.edge(a);c.setEdge(a.v,a.w,{weight:d.weight+e.weight,minlen:Math.max(d.minlen,e.minlen)})}),a7(a=c);var b,c,d,e,f=a9(a);for(bz(f),bx(f,a);d=bA(f);)e=bB(f,a,d),bC(f,a,d,e)}function bx(a,b){var c=bv(a,a.nodes(),"post");c=c.slice(0,c.length-1),g.A(c,function(c){var d,e,f,g;d=a,e=b,f=c,g=d.node(f).parent,d.edge(f,g).cutvalue=by(d,e,f)})}function by(a,b,c){var d=a.node(c).parent,e=!0,f=b.edge(c,d),h=0;return f||(e=!1,f=b.edge(d,c)),h=f.weight,g.A(b.nodeEdges(c),function(f){var g=f.v===c,i=g?f.w:f.v;if(i!==d){var j,k,l,m=g===e,n=b.edge(f).weight;if(h+=m?n:-n,j=a,k=c,l=i,j.hasEdge(k,l)){var o=a.edge(c,i).cutvalue;h+=m?-o:o}}}),h}function bz(a,b){arguments.length<2&&(b=a.nodes()[0]),function a(b,c,d,e,f){var h=d,i=b.node(e);return c[e]=!0,g.A(b.neighbors(e),function(f){Object.prototype.hasOwnProperty.call(c,f)||(d=a(b,c,d,f,e))}),i.low=h,i.lim=d++,f?i.parent=f:delete i.parent,d}(a,{},1,b)}function bA(a){return be(a.edges(),function(b){return a.edge(b).cutvalue<0})}function bB(a,b,c){var d=c.v,e=c.w;b.hasEdge(d,e)||(d=c.w,e=c.v);var f=a.node(d),g=a.node(e),h=f,i=!1;return f.lim>g.lim&&(h=g,i=!0),a6(bf.A(b.edges(),function(b){return i===bD(a,a.node(b.v),h)&&i!==bD(a,a.node(b.w),h)}),function(a){return a8(b,a)})}function bC(a,b,c,d){var e,f,h,i,j=c.v,k=c.w;a.removeEdge(j,k),a.setEdge(d.v,d.w,{}),bz(a),bx(a,b),e=a,f=b,h=be(e.nodes(),function(a){return!f.node(a).parent}),i=(i=bv(e,h,"pre")).slice(1),g.A(i,function(a){var b=e.node(a).parent,c=f.edge(a,b),d=!1;c||(c=f.edge(b,a),d=!0),f.node(a).rank=f.node(b).rank+(d?c.minlen:-c.minlen)})}function bD(a,b,c){return c.low<=b.lim&&b.lim<=c.lim}bu.prototype=Error(),c(33456),bw.initLowLimValues=bz,bw.initCutValues=bx,bw.calcCutValue=by,bw.leaveEdge=bA,bw.enterEdge=bB,bw.exchangeEdges=bC;var bE=c(21152),bF=c(46171),bG=c(30108);let bH=function(a,b,c){for(var d=-1,e=a.length,f=b.length,g={};++d<e;){var h=d<f?b[d]:void 0;c(g,a[d],h)}return g};var bI=c(44090),bJ=c(87826);let bK=function(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a};var bL=c(63095);let bM=function(a,b){if(a!==b){var c=void 0!==a,d=null===a,e=a==a,f=(0,z.A)(a),g=void 0!==b,h=null===b,i=b==b,j=(0,z.A)(b);if(!h&&!j&&!f&&a>b||f&&g&&i&&!h&&!j||d&&g&&i||!c&&i||!e)return 1;if(!d&&!f&&!j&&a<b||j&&c&&e&&!d&&!f||h&&c&&e||!g&&e||!i)return -1}return 0},bN=function(a,b,c){for(var d=-1,e=a.criteria,f=b.criteria,g=e.length,h=c.length;++d<g;){var i=bM(e[d],f[d]);if(i){if(d>=h)return i;return i*("desc"==c[d]?-1:1)}}return a.index-b.index},bO=function(a,b,c){b=b.length?(0,bI.A)(b,function(a){return(0,Z.A)(a)?function(b){return(0,ar.A)(b,1===a.length?a[0]:a)}:a}):[aG.A];var d=-1;return b=(0,bI.A)(b,(0,bL.A)(aK.A)),bK((0,bJ.A)(a,function(a,c,e){return{criteria:(0,bI.A)(b,function(b){return b(a)}),index:++d,value:a}}),function(a,b){return bN(a,b,c)})};var bP=(0,ap.A)(function(a,b){if(null==a)return[];var c=b.length;return c>1&&v(a,b[0],b[1])?b=[]:c>2&&v(b[0],b[1],b[2])&&(b=[b[0]]),bO(a,(0,l.A)(b,1),[])});function bQ(a,b,c){for(var d;b.length&&(d=aI(b)).i<=c;)b.pop(),a.push(d.vs),c++;return c}function bR(a,b,c){return n.A(b,function(b){var d,e;return d=function(a){for(var b;a.hasNode(b=j("_root")););return b}(a),e=new J.T({compound:!0}).setGraph({root:d}).setDefaultNodeLabel(function(b){return a.node(b)}),g.A(a.nodes(),function(f){var h=a.node(f),i=a.parent(f);(h.rank===b||h.minRank<=b&&b<=h.maxRank)&&(e.setNode(f),e.setParent(f,i||d),g.A(a[c](f),function(b){var c=b.v===f?b.w:b.v,d=e.edge(c,f),g=aM.A(d)?0:d.weight;e.setEdge(c,f,{weight:a.edge(b).weight+g})}),Object.prototype.hasOwnProperty.call(h,"minRank")&&e.setNode(f,{borderLeft:h.borderLeft[b],borderRight:h.borderRight[b]}))}),e})}function bS(a,b){g.A(b,function(b){g.A(b,function(b,c){a.node(b).order=c})})}var bT=c(62320);function bU(a,b,c){if(b>c){var d=b;b=c,c=d}Object.prototype.hasOwnProperty.call(a,b)||Object.defineProperty(a,b,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(a[b],c,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function bV(a,b){var c=b&&b.debugTiming?a_:a0;c("layout",()=>{var b=c(" buildLayoutGraph",()=>{var b,c,d;return b=a,c=new J.T({multigraph:!0,compound:!0}),d=b3(b.graph()),c.setGraph(aq({},bX,b2(d,bW),aA(d,bY))),g.A(b.nodes(),function(a){var d=b3(b.node(a));c.setNode(a,aD(b2(d,bZ),b$)),c.setParent(a,b.parent(a))}),g.A(b.edges(),function(a){var d=b3(b.edge(a));c.setEdge(a,aq({},b0,b2(d,b_),aA(d,b1)))}),c});c(" runLayout",()=>{var a,d;return a=b,void((d=c)(" makeSpaceForEdgeLabels",()=>{var b,c;return c=(b=a).graph(),void(c.ranksep/=2,g.A(b.edges(),function(a){var d=b.edge(a);d.minlen*=2,"c"!==d.labelpos.toLowerCase()&&("TB"===c.rankdir||"BT"===c.rankdir?d.width+=d.labeloffset:d.height+=d.labeloffset)}))}),d(" removeSelfEdges",()=>{var b;return b=a,void g.A(b.edges(),function(a){if(a.v===a.w){var c=b.node(a.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:a,label:b.edge(a)}),b.removeEdge(a)}})}),d(" acyclic",()=>{var b,c,d,e,f,h;return b="greedy"===a.graph().acyclicer?function(a,b){if(1>=a.nodeCount())return[];var c,d,e,f,h,i,j,k=(c=a,d=b||N,e=new J.T,f=0,h=0,g.A(c.nodes(),function(a){e.setNode(a,{v:a,in:0,out:0})}),g.A(c.edges(),function(a){var b=e.edge(a.v,a.w)||0,c=d(a);e.setEdge(a.v,a.w,b+c),h=Math.max(h,e.node(a.v).out+=c),f=Math.max(f,e.node(a.w).in+=c)}),i=I(h+f+3).map(function(){return new K}),j=f+1,g.A(e.nodes(),function(a){P(i,j,e.node(a))}),{graph:e,buckets:i,zeroIdx:j}),l=function(a,b,c){for(var d,e=[],f=b[b.length-1],g=b[0];a.nodeCount();){for(;d=g.dequeue();)O(a,b,c,d);for(;d=f.dequeue();)O(a,b,c,d);if(a.nodeCount()){for(var h=b.length-2;h>0;--h)if(d=b[h].dequeue()){e=e.concat(O(a,b,c,d,!0));break}}}return e}(k.graph,k.buckets,k.zeroIdx);return m(n.A(l,function(b){return a.outEdges(b.v,b.w)}))}(a,(c=a,function(a){return c.edge(a).weight})):(d=a,e=[],f={},h={},g.A(d.nodes(),function a(b){Object.prototype.hasOwnProperty.call(h,b)||(h[b]=!0,f[b]=!0,g.A(d.outEdges(b),function(b){Object.prototype.hasOwnProperty.call(f,b.w)?e.push(b):a(b.w)}),delete f[b])}),e),void g.A(b,function(b){var c=a.edge(b);a.removeEdge(b),c.forwardName=b.name,c.reversed=!0,a.setEdge(b.w,b.v,c,j("rev"))})}),d(" nestingGraph.run",()=>{var b,c,d,e,f,h,i,j;return b=aV(a,"root",{},"_root"),h=a,i={},g.A(h.children(),function(a){!function a(b,c){var d=h.children(b);d&&d.length&&g.A(d,function(b){a(b,c+1)}),i[b]=c}(a,1)}),c=i,e=2*(d=aH(bE.A(c))-1)+1,a.graph().nestingRoot=b,g.A(a.edges(),function(b){a.edge(b).minlen*=e}),f=(j=a,bF.A(j.edges(),function(a,b){return a+j.edge(b).weight},0)+1),void(g.A(a.children(),function(h){!function a(b,c,d,e,f,h,i){var j=b.children(i);if(!j.length){i!==c&&b.setEdge(c,i,{weight:0,minlen:d});return}var k=aZ(b,"_bt"),l=aZ(b,"_bb"),m=b.node(i);b.setParent(k,i),m.borderTop=k,b.setParent(l,i),m.borderBottom=l,g.A(j,function(g){a(b,c,d,e,f,h,g);var j=b.node(g),m=j.borderTop?j.borderTop:g,n=j.borderBottom?j.borderBottom:g,o=j.borderTop?e:2*e,p=m!==n?1:f-h[i]+1;b.setEdge(k,m,{weight:o,minlen:p,nestingEdge:!0}),b.setEdge(n,l,{weight:o,minlen:p,nestingEdge:!0})}),b.parent(i)||b.setEdge(c,k,{weight:0,minlen:f+h[i]})}(a,b,e,f,d,c,h)}),a.graph().nodeRankFactor=e)}),d(" rank",()=>(function(a){switch(a.graph().ranker){case"network-simplex":default:bw(a);break;case"tight-tree":var b;a7(b=a),a9(b);break;case"longest-path":a7(a)}})(aW(a))),d(" injectEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(c.width&&c.height){var d=b.node(a.v),e={rank:(b.node(a.w).rank-d.rank)/2+d.rank,e:a};aV(b,"edge-proxy",e,"_ep")}})}),d(" removeEmptyRanks",()=>{var b,c,d,e;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),c=[],g.A(a.nodes(),function(d){var e=a.node(d).rank-b;c[e]||(c[e]=[]),c[e].push(d)}),d=0,e=a.graph().nodeRankFactor,void g.A(c,function(b,c){aM.A(b)&&c%e!=0?--d:d&&g.A(b,function(b){a.node(b).rank+=d})})}),d(" nestingGraph.cleanup",()=>{var b;return b=a.graph(),void(a.removeNode(b.nestingRoot),delete b.nestingRoot,g.A(a.edges(),function(b){a.edge(b).nestingEdge&&a.removeEdge(b)}))}),d(" normalizeRanks",()=>{var b;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),void g.A(a.nodes(),function(c){var d=a.node(c);aS(d,"rank")&&(d.rank-=b)})}),d(" assignRankMinMax",()=>{var b,c;return b=a,c=0,void(g.A(b.nodes(),function(a){var d=b.node(a);d.borderTop&&(d.minRank=b.node(d.borderTop).rank,d.maxRank=b.node(d.borderBottom).rank,c=aH(c,d.maxRank))}),b.graph().maxRank=c)}),d(" removeEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);"edge-proxy"===c.dummy&&(b.edge(c.e).labelRank=c.rank,b.removeNode(a))})}),d(" normalize.run",()=>{a.graph().dummyChains=[],g.A(a.edges(),function(b){!function(a,b){var c,d,e=b.v,f=a.node(e).rank,g=b.w,h=a.node(g).rank,i=b.name,j=a.edge(b),k=j.labelRank;if(h!==f+1){a.removeEdge(b);var l=void 0;for(d=0,++f;f<h;++d,++f)j.points=[],c=aV(a,"edge",l={width:0,height:0,edgeLabel:j,edgeObj:b,rank:f},"_d"),f===k&&(l.width=j.width,l.height=j.height,l.dummy="edge-label",l.labelpos=j.labelpos),a.setEdge(e,c,{weight:j.weight},i),0===d&&a.graph().dummyChains.push(c),e=c;a.setEdge(e,g,{weight:j.weight},i)}}(a,b)})}),d(" parentDummyChains",()=>{var b,c,d,e;return c=a,d={},e=0,g.A(c.children(),function a(b){var f=e;g.A(c.children(b),a),d[b]={low:f,lim:e++}}),b=d,void g.A(a.graph().dummyChains,function(c){for(var d=a.node(c),e=d.edgeObj,f=function(a,b,c,d){var e,f,g=[],h=[],i=Math.min(b[c].low,b[d].low),j=Math.max(b[c].lim,b[d].lim);e=c;do g.push(e=a.parent(e));while(e&&(b[e].low>i||j>b[e].lim));for(f=e,e=d;(e=a.parent(e))!==f;)h.push(e);return{path:g.concat(h.reverse()),lca:f}}(a,b,e.v,e.w),g=f.path,h=f.lca,i=0,j=g[0],k=!0;c!==e.w;){if(d=a.node(c),k){for(;(j=g[i])!==h&&a.node(j).maxRank<d.rank;)i++;j===h&&(k=!1)}if(!k){for(;i<g.length-1&&a.node(j=g[i+1]).minRank<=d.rank;)i++;j=g[i]}a.setParent(c,j),c=a.successors(c)[0]}})}),d(" addBorderSegments",()=>{g.A(a.children(),function b(c){var d=a.children(c),e=a.node(c);if(d.length&&g.A(d,b),Object.prototype.hasOwnProperty.call(e,"minRank")){e.borderLeft=[],e.borderRight=[];for(var f=e.minRank,h=e.maxRank+1;f<h;++f)a1(a,"borderLeft","_bl",c,e,f),a1(a,"borderRight","_br",c,e,f)}})}),d(" order",()=>(function(a){var b=a$(a),c=bR(a,I(1,b+1),"inEdges"),d=bR(a,I(b-1,-1,-1),"outEdges"),e=(f={},h=bf.A(a.nodes(),function(b){return!a.children(b).length}),i=aH(n.A(h,function(b){return a.node(b).rank})),j=n.A(I(i+1),function(){return[]}),k=bP(h,function(b){return a.node(b).rank}),g.A(k,function b(c){aS(f,c)||(f[c]=!0,j[a.node(c).rank].push(c),g.A(a.successors(c),b))}),j);bS(a,e);for(var f,h,i,j,k,l,o=1/0,p=0,q=0;q<4;++p,++q){(function(a,b){var c=new J.T;g.A(a,function(a){var d,e,f,h=a.graph().root,i=function a(b,c,d,e){var f,h,i,j,k,l,o,p,q,r,s,t,u=b.children(c),v=b.node(c),w=v?v.borderLeft:void 0,x=v?v.borderRight:void 0,y={};w&&(u=bf.A(u,function(a){return a!==w&&a!==x}));var z=(f=u,n.A(f,function(a){var c=b.inEdges(a);if(!c.length)return{v:a};var d=bF.A(c,function(a,c){var d=b.edge(c),e=b.node(c.v);return{sum:a.sum+d.weight*e.order,weight:a.weight+d.weight}},{sum:0,weight:0});return{v:a,barycenter:d.sum/d.weight,weight:d.weight}}));g.A(z,function(c){if(b.children(c.v).length){var f,g,h=a(b,c.v,d,e);y[c.v]=h,Object.prototype.hasOwnProperty.call(h,"barycenter")&&(f=c,g=h,aM.A(f.barycenter)?(f.barycenter=g.barycenter,f.weight=g.weight):(f.barycenter=(f.barycenter*f.weight+g.barycenter*g.weight)/(f.weight+g.weight),f.weight+=g.weight))}});var A=(h={},g.A(z,function(a,b){var c=h[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:b};aM.A(a.barycenter)||(c.barycenter=a.barycenter,c.weight=a.weight)}),g.A(d.edges(),function(a){var b=h[a.v],c=h[a.w];aM.A(b)||aM.A(c)||(c.indegree++,b.out.push(h[a.w]))}),function(a){for(var b=[];a.length;){var c=a.pop();b.push(c),g.A(c.in.reverse(),function(a){return function(b){!b.merged&&(aM.A(b.barycenter)||aM.A(a.barycenter)||b.barycenter>=a.barycenter)&&function(a,b){var c=0,d=0;a.weight&&(c+=a.barycenter*a.weight,d+=a.weight),b.weight&&(c+=b.barycenter*b.weight,d+=b.weight),a.vs=b.vs.concat(a.vs),a.barycenter=c/d,a.weight=d,a.i=Math.min(b.i,a.i),b.merged=!0}(a,b)}}(c)),g.A(c.out,function(b){return function(c){c.in.push(b),0==--c.indegree&&a.push(c)}}(c))}return n.A(bf.A(b,function(a){return!a.merged}),function(a){return aA(a,["vs","i","barycenter","weight"])})}(bf.A(h,function(a){return!a.indegree})));!function(a,b){g.A(a,function(a){a.vs=m(a.vs.map(function(a){return b[a]?b[a].vs:a}))})}(A,y);var B=(l=(i=function(a){return Object.prototype.hasOwnProperty.call(a,"barycenter")},j={lhs:[],rhs:[]},g.A(A,function(a){i(a)?j.lhs.push(a):j.rhs.push(a)}),k=j).lhs,o=bP(k.rhs,function(a){return-a.i}),p=[],q=0,r=0,s=0,l.sort(function(a){return function(b,c){return b.barycenter<c.barycenter?-1:b.barycenter>c.barycenter?1:a?c.i-b.i:b.i-c.i}}(!!e)),s=bQ(p,o,s),g.A(l,function(a){s+=a.vs.length,p.push(a.vs),q+=a.barycenter*a.weight,r+=a.weight,s=bQ(p,o,s)}),t={vs:m(p)},r&&(t.barycenter=q/r,t.weight=r),t);if(w&&(B.vs=m([w,B.vs,x]),b.predecessors(w).length)){var C=b.node(b.predecessors(w)[0]),D=b.node(b.predecessors(x)[0]);Object.prototype.hasOwnProperty.call(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+C.order+D.order)/(B.weight+2),B.weight+=2}return B}(a,h,c,b);g.A(i.vs,function(b,c){a.node(b).order=c}),d=i.vs,f={},g.A(d,function(b){for(var d,g,h=a.parent(b);h;){if((d=a.parent(h))?(g=f[d],f[d]=h):(g=e,e=h),g&&g!==h)return void c.setEdge(g,h);h=d}})})})(p%2?c:d,p%4>=2),e=aY(a);var r,s=function(a,b){for(var c=0,d=1;d<b.length;++d)c+=function(a,b,c){for(var d=bH(c||[],n.A(c,function(a,b){return b})||[],as.A),e=m(n.A(b,function(b){return bP(n.A(a.outEdges(b),function(b){return{pos:d[b.w],weight:a.edge(b).weight}}),"pos")})),f=1;f<c.length;)f<<=1;var h=2*f-1;f-=1;var i=n.A(Array(h),function(){return 0}),j=0;return g.A(e.forEach(function(a){var b=a.pos+f;i[b]+=a.weight;for(var c=0;b>0;)b%2&&(c+=i[b+1]),b=b-1>>1,i[b]+=a.weight;j+=a.weight*c})),j}(a,b[d-1],b[d]);return c}(a,e);s<o&&(q=0,r=e,l=(0,bG.A)(r,5),o=s)}bS(a,l)})(a)),d(" insertSelfEdges",()=>{var b,c;return c=aY(b=a),void g.A(c,function(a){var c=0;g.A(a,function(a,d){var e=b.node(a);e.order=d+c,g.A(e.selfEdges,function(a){aV(b,"selfedge",{width:a.label.width,height:a.label.height,rank:e.rank,order:d+ ++c,e:a.e,label:a.label},"_se")}),delete e.selfEdges})})}),d(" adjustCoordinateSystem",()=>{var b;("lr"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&a2(a)}),d(" position",()=>{var b,c,d,e,f,h,i,j,k,l,m,o,p,q,r,s,t;r=aY(q=b=aW(b=a)),s=q.graph().ranksep,t=0,g.A(r,function(a){var b=aH(n.A(a,function(a){return q.node(a).height}));g.A(a,function(a){q.node(a).y=t+b/2}),t+=b+s}),e=aY(c=b),h=aq((f={},bF.A(e,function(a,b){var d=0,e=0,h=a.length,i=aI(b);return g.A(b,function(a,j){var k=function(a,b){if(a.node(b).dummy)return be(a.predecessors(b),function(b){return a.node(b).dummy})}(c,a),l=k?c.node(k).order:h;(k||a===i)&&(g.A(b.slice(e,j+1),function(a){g.A(c.predecessors(a),function(b){var e=c.node(b),g=e.order;(g<d||l<g)&&!(e.dummy&&c.node(a).dummy)&&bU(f,b,a)})}),e=j+1,d=l)}),b}),f),function(a,b){var c={};function d(b,d,e,f,h){var i;g.A(I(d,e),function(d){i=b[d],a.node(i).dummy&&g.A(a.predecessors(i),function(b){var d=a.node(b);d.dummy&&(d.order<f||d.order>h)&&bU(c,b,i)})})}return bF.A(b,function(b,c){var e,f=-1,h=0;return g.A(c,function(g,i){if("border"===a.node(g).dummy){var j=a.predecessors(g);j.length&&(e=a.node(j[0]).order,d(c,h,i,f,e),h=i,f=e)}d(c,h,c.length,e,b.length)}),c}),c}(c,e)),i={},g.A(["u","d"],function(a){d="u"===a?e:bE.A(e).reverse(),g.A(["l","r"],function(b){"r"===b&&(d=n.A(d,function(a){return bE.A(a).reverse()}));var e,f,j,k,l=("u"===a?c.predecessors:c.successors).bind(c),m=(e=d,f={},j={},k={},g.A(e,function(a){g.A(a,function(a,b){f[a]=a,j[a]=a,k[a]=b})}),g.A(e,function(a){var b=-1;g.A(a,function(a){var c=l(a);if(c.length)for(var d=((c=bP(c,function(a){return k[a]})).length-1)/2,e=Math.floor(d),g=Math.ceil(d);e<=g;++e){var i=c[e];j[a]===a&&b<k[i]&&!function(a,b,c){if(b>c){var d=b;b=c,c=d}return!!a[b]&&Object.prototype.hasOwnProperty.call(a[b],c)}(h,a,i)&&(j[i]=a,j[a]=f[a]=f[i],b=k[i])}})}),{root:f,align:j}),o=function(a,b,c,d,e){var f,h,i,j,k,l,m,n,o,p,q={},r=(f=a,h=b,i=c,j=e,n=new J.T,p=(k=(o=f.graph()).nodesep,l=o.edgesep,m=j,function(a,b,c){var d,e,f=a.node(b),g=a.node(c);if(d=0+f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":e=-f.width/2;break;case"r":e=f.width/2}if(e&&(d+=m?e:-e),e=0,d+=(f.dummy?l:k)/2,d+=(g.dummy?l:k)/2,d+=g.width/2,Object.prototype.hasOwnProperty.call(g,"labelpos"))switch(g.labelpos.toLowerCase()){case"l":e=g.width/2;break;case"r":e=-g.width/2}return e&&(d+=m?e:-e),e=0,d}),g.A(h,function(a){var b;g.A(a,function(a){var c=i[a];if(n.setNode(c),b){var d=i[b],e=n.edge(d,c);n.setEdge(d,c,Math.max(p(f,a,b),e||0))}b=a})}),n),s=e?"borderLeft":"borderRight";function t(a,b){for(var c=r.nodes(),d=c.pop(),e={};d;)e[d]?a(d):(e[d]=!0,c.push(d),c=c.concat(b(d))),d=c.pop()}return t(function(a){q[a]=r.inEdges(a).reduce(function(a,b){return Math.max(a,q[b.v]+r.edge(b))},0)},r.predecessors.bind(r)),t(function(b){var c=r.outEdges(b).reduce(function(a,b){return Math.min(a,q[b.w]-r.edge(b))},1/0),d=a.node(b);c!==1/0&&d.borderType!==s&&(q[b]=Math.max(q[b],c))},r.successors.bind(r)),g.A(d,function(a){q[a]=q[c[a]]}),q}(c,d,m.root,m.align,"r"===b);"r"===b&&(o=aL(o,function(a){return-a})),i[a+b]=o})}),j=a6(bE.A(i),function(a){var b,d=-1/0,e=1/0;return b=function(a,b){var f,g,h=(f=c,g=b,f.node(g).width/2);d=Math.max(a+h,d),e=Math.min(a-h,e)},null==a||(0,T.A)(a,(0,bT.A)(b),am.A),d-e}),l=aO(k=bE.A(j)),m=aH(k),g.A(["u","d"],function(a){g.A(["l","r"],function(b){var c,d=a+b,e=i[d];if(e!==j){var f=bE.A(e);(c="l"===b?l-aO(f):m-aH(f))&&(i[d]=aL(e,function(a){return a+c}))}})}),o=c.graph().align,p=aL(i.ul,function(a,b){if(o)return i[o.toLowerCase()][b];var c=bP(n.A(i,b));return(c[1]+c[2])/2}),p&&(0,aJ.A)(p,(0,bT.A)(function(a,c){b.node(c).x=a}))}),d(" positionSelfEdges",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);if("selfedge"===c.dummy){var d=b.node(c.e.v),e=d.x+d.width/2,f=d.y,g=c.x-e,h=d.height/2;b.setEdge(c.e,c.label),b.removeNode(a),c.label.points=[{x:e+2*g/3,y:f-h},{x:e+5*g/6,y:f-h},{x:e+g,y:f},{x:e+5*g/6,y:f+h},{x:e+2*g/3,y:f+h}],c.label.x=c.x,c.label.y=c.y}})}),d(" removeBorderNodes",()=>{var b;return b=a,void(g.A(b.nodes(),function(a){if(b.children(a).length){var c=b.node(a),d=b.node(c.borderTop),e=b.node(c.borderBottom),f=b.node(aI(c.borderLeft)),g=b.node(aI(c.borderRight));c.width=Math.abs(g.x-f.x),c.height=Math.abs(e.y-d.y),c.x=f.x+c.width/2,c.y=d.y+c.height/2}}),g.A(b.nodes(),function(a){"border"===b.node(a).dummy&&b.removeNode(a)}))}),d(" normalize.undo",()=>{g.A(a.graph().dummyChains,function(b){var c,d=a.node(b),e=d.edgeLabel;for(a.setEdge(d.edgeObj,e);d.dummy;)c=a.successors(b)[0],a.removeNode(b),e.points.push({x:d.x,y:d.y}),"edge-label"===d.dummy&&(e.x=d.x,e.y=d.y,e.width=d.width,e.height=d.height),b=c,d=a.node(b)})}),d(" fixupEdgeLabelCoords",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(Object.prototype.hasOwnProperty.call(c,"x"))switch(("l"===c.labelpos||"r"===c.labelpos)&&(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}),d(" undoCoordinateSystem",()=>{var b,c,d;("bt"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&(c=a,g.A(c.nodes(),function(a){a4(c.node(a))}),g.A(c.edges(),function(a){var b=c.edge(a);g.A(b.points,a4),Object.prototype.hasOwnProperty.call(b,"y")&&a4(b)})),("lr"===b||"rl"===b)&&(d=a,g.A(d.nodes(),function(a){a5(d.node(a))}),g.A(d.edges(),function(a){var b=d.edge(a);g.A(b.points,a5),Object.prototype.hasOwnProperty.call(b,"x")&&a5(b)}),a2(a))}),d(" translateGraph",()=>(function(a){var b=1/0,c=0,d=1/0,e=0,f=a.graph(),h=f.marginx||0,i=f.marginy||0;function j(a){var f=a.x,g=a.y,h=a.width,i=a.height;b=Math.min(b,f-h/2),c=Math.max(c,f+h/2),d=Math.min(d,g-i/2),e=Math.max(e,g+i/2)}g.A(a.nodes(),function(b){j(a.node(b))}),g.A(a.edges(),function(b){var c=a.edge(b);Object.prototype.hasOwnProperty.call(c,"x")&&j(c)}),b-=h,d-=i,g.A(a.nodes(),function(c){var e=a.node(c);e.x-=b,e.y-=d}),g.A(a.edges(),function(c){var e=a.edge(c);g.A(e.points,function(a){a.x-=b,a.y-=d}),Object.prototype.hasOwnProperty.call(e,"x")&&(e.x-=b),Object.prototype.hasOwnProperty.call(e,"y")&&(e.y-=d)}),f.width=c-b+h,f.height=e-d+i})(a)),d(" assignNodeIntersects",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c,d,e=b.edge(a),f=b.node(a.v),g=b.node(a.w);e.points?(c=e.points[0],d=e.points[e.points.length-1]):(e.points=[],c=g,d=f),e.points.unshift(aX(f,c)),e.points.push(aX(g,d))})}),d(" reversePoints",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);c.reversed&&c.points.reverse()})}),d(" acyclic.undo",()=>{g.A(a.edges(),function(b){var c=a.edge(b);if(c.reversed){a.removeEdge(b);var d=c.forwardName;delete c.reversed,delete c.forwardName,a.setEdge(b.w,b.v,c,d)}})}))}),c(" updateInputGraph",()=>{var c,d;return c=a,d=b,void(g.A(c.nodes(),function(a){var b=c.node(a),e=d.node(a);b&&(b.x=e.x,b.y=e.y,d.children(a).length&&(b.width=e.width,b.height=e.height))}),g.A(c.edges(),function(a){var b=c.edge(a),e=d.edge(a);b.points=e.points,Object.prototype.hasOwnProperty.call(e,"x")&&(b.x=e.x,b.y=e.y)}),c.graph().width=d.graph().width,c.graph().height=d.graph().height)})})}var bW=["nodesep","edgesep","ranksep","marginx","marginy"],bX={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},bY=["acyclicer","ranker","rankdir","align"],bZ=["width","height"],b$={width:0,height:0},b_=["minlen","weight","width","height","labeloffset"],b0={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},b1=["labelpos"];function b2(a,b){return aL(aA(a,b),Number)}function b3(a){var b={};return g.A(a,function(a,c){b[c.toLowerCase()]=a}),b}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=5029,exports.ids=[5029],exports.modules={5029:(a,b,c)=>{c.d(b,{createTreemapServices:()=>d.d});var d=c(93401);c(7274)}};
@@ -0,0 +1,90 @@
1
+ "use strict";exports.id=5198,exports.ids=[5198],exports.modules={5198:(a,b,c)=>{c.d(b,{diagram:()=>y});var d=c(30917),e=c(51267),f=c(35645);c(39668),c(38317),c(16367),c(7423),c(97386),c(47147),c(70960),c(37879);var g=c(36594),h=c(58715),i=c(95097),j=c(55511);let k={randomUUID:j.randomUUID},l=new Uint8Array(256),m=l.length,n=[];for(let a=0;a<256;++a)n.push((a+256).toString(16).slice(1));let o=function(a,b,c){if(k.randomUUID&&!b&&!a)return k.randomUUID();let d=(a=a||{}).random??a.rng?.()??(m>l.length-16&&((0,j.randomFillSync)(l),m=0),l.slice(m,m+=16));if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=d[a];return b}return function(a,b=0){return(n[a[b+0]]+n[a[b+1]]+n[a[b+2]]+n[a[b+3]]+"-"+n[a[b+4]]+n[a[b+5]]+"-"+n[a[b+6]]+n[a[b+7]]+"-"+n[a[b+8]]+n[a[b+9]]+"-"+n[a[b+10]]+n[a[b+11]]+n[a[b+12]]+n[a[b+13]]+n[a[b+14]]+n[a[b+15]]).toLowerCase()}(d)};var p=c(67821),q=c(61255),r=c(30089),s=function(){var a=(0,i.K)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,4],c=[1,13],d=[1,12],e=[1,15],f=[1,16],g=[1,20],h=[1,19],j=[6,7,8],k=[1,26],l=[1,24],m=[1,25],n=[6,7,11],o=[1,6,13,15,16,19,22],p=[1,33],q=[1,34],r=[1,6,7,11,13,15,16,19,22],s={trace:(0,i.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,i.K)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 6:case 7:return d;case 8:d.getLogger().trace("Stop NL ");break;case 9:d.getLogger().trace("Stop EOF ");break;case 11:d.getLogger().trace("Stop NL2 ");break;case 12:d.getLogger().trace("Stop EOF2 ");break;case 15:d.getLogger().info("Node: ",f[h].id),d.addNode(f[h-1].length,f[h].id,f[h].descr,f[h].type);break;case 16:d.getLogger().trace("Icon: ",f[h]),d.decorateNode({icon:f[h]});break;case 17:case 21:d.decorateNode({class:f[h]});break;case 18:d.getLogger().trace("SPACELIST");break;case 19:d.getLogger().trace("Node: ",f[h].id),d.addNode(0,f[h].id,f[h].descr,f[h].type);break;case 20:d.decorateNode({icon:f[h]});break;case 25:d.getLogger().trace("node found ..",f[h-2]),this.$={id:f[h-1],descr:f[h-1],type:d.getType(f[h-2],f[h])};break;case 26:this.$={id:f[h],descr:f[h],type:d.nodeType.DEFAULT};break;case 27:d.getLogger().trace("node found ..",f[h-3]),this.$={id:f[h-3],descr:f[h-1],type:d.getType(f[h-2],f[h])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:b},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:b},{6:c,7:[1,10],9:9,12:11,13:d,14:14,15:e,16:f,17:17,18:18,19:g,22:h},a(j,[2,3]),{1:[2,2]},a(j,[2,4]),a(j,[2,5]),{1:[2,6],6:c,12:21,13:d,14:14,15:e,16:f,17:17,18:18,19:g,22:h},{6:c,9:22,12:11,13:d,14:14,15:e,16:f,17:17,18:18,19:g,22:h},{6:k,7:l,10:23,11:m},a(n,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:g,22:h}),a(n,[2,18]),a(n,[2,19]),a(n,[2,20]),a(n,[2,21]),a(n,[2,23]),a(n,[2,24]),a(n,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:l,10:32,11:m},{1:[2,7],6:c,12:21,13:d,14:14,15:e,16:f,17:17,18:18,19:g,22:h},a(o,[2,14],{7:p,11:q}),a(r,[2,8]),a(r,[2,9]),a(r,[2,10]),a(n,[2,15]),a(n,[2,16]),a(n,[2,17]),{20:[1,35]},{21:[1,36]},a(o,[2,13],{7:p,11:q}),a(r,[2,11]),a(r,[2,12]),{21:[1,37]},a(n,[2,25]),a(n,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,i.K)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function t(){this.yy={}}return s.lexer={EOF:1,parseError:(0,i.K)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,i.K)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,i.K)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K)(function(){return this._more=!0,this},"more"),reject:(0,i.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,i.K)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,i.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,i.K)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K)(function(a,b,c,d){switch(c){case 0:return a.getLogger().trace("Found comment",b.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:a.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return a.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:a.getLogger().trace("end icon"),this.popState();break;case 10:return a.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return a.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return a.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return a.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:a.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return a.getLogger().trace("description:",b.yytext),"NODE_DESCR";case 27:return this.popState(),a.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),a.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),a.getLogger().trace("node end ...",b.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),a.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),a.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return a.getLogger().trace("Long description:",b.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},(0,i.K)(t,"Parser"),t.prototype=s,s.Parser=t,new t}();s.parser=s;var t={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},u=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=t,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{(0,i.K)(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(a){for(let b=this.nodes.length-1;b>=0;b--)if(this.nodes[b].level<a)return this.nodes[b];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(a,b,c,d){h.R.info("addNode",a,b,c,d);let e=!1;0===this.nodes.length?(this.baseLevel=a,a=0,e=!0):void 0!==this.baseLevel&&(a-=this.baseLevel,e=!1);let f=(0,g.D7)(),i=f.mindmap?.padding??g.UI.mindmap.padding;switch(d){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:i*=2}let j={id:this.count++,nodeId:(0,g.jZ)(b,f),level:a,descr:(0,g.jZ)(c,f),type:d,children:[],width:f.mindmap?.maxNodeWidth??g.UI.mindmap.maxNodeWidth,padding:i,isRoot:e},k=this.getParent(a);if(k)k.children.push(j),this.nodes.push(j);else if(e)this.nodes.push(j);else throw Error(`There can be only one root. No parent could be found for ("${j.descr}")`)}getType(a,b){switch(h.R.debug("In get type",a,b),a){case"[":return this.nodeType.RECT;case"(":return")"===b?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(a,b){this.elements[a]=b}getElementById(a){return this.elements[a]}decorateNode(a){if(!a)return;let b=(0,g.D7)(),c=this.nodes[this.nodes.length-1];a.icon&&(c.icon=(0,g.jZ)(a.icon,b)),a.class&&(c.class=(0,g.jZ)(a.class,b))}type2Str(a){switch(a){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(a,b){if(0===a.level?a.section=void 0:a.section=b,a.children)for(let[c,d]of a.children.entries()){let e=0===a.level?c%11:b;this.assignSections(d,e)}}flattenNodes(a,b){let c=(0,g.D7)(),d=["mindmap-node"];!0===a.isRoot?d.push("section-root","section--1"):void 0!==a.section&&d.push(`section-${a.section}`),a.class&&d.push(a.class);let e=d.join(" "),f=(0,i.K)(a=>{let b=(c.theme?.toLowerCase()??"").includes("redux");switch(a){case t.CIRCLE:return"mindmapCircle";case t.RECT:return"rect";case t.ROUNDED_RECT:return"rounded";case t.CLOUD:return"cloud";case t.BANG:return"bang";case t.HEXAGON:return"hexagon";case t.DEFAULT:return b?"rounded":"defaultMindmapNode";case t.NO_BORDER:default:return"rect"}},"getShapeFromType"),h={id:a.id.toString(),domId:"node_"+a.id.toString(),label:a.descr,labelType:"markdown",isGroup:!1,shape:f(a.type),width:a.width,height:a.height??0,padding:a.padding,cssClasses:e,cssStyles:[],look:c.look,icon:a.icon,x:a.x,y:a.y,level:a.level,nodeId:a.nodeId,type:a.type,section:a.section};if(b.push(h),a.children)for(let c of a.children)this.flattenNodes(c,b)}generateEdges(a,b){if(!a.children)return;let c=(0,g.D7)();for(let d of a.children){let e="edge";void 0!==d.section&&(e+=` section-edge-${d.section}`);let f=a.level+1;e+=` edge-depth-${f}`;let g={id:`edge_${a.id}_${d.id}`,start:a.id.toString(),end:d.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:c.look,classes:e,depth:a.level,section:d.section};b.push(g),this.generateEdges(d,b)}}getData(){let a=this.getMindmap(),b=(0,g.D7)();if(void 0!==(0,g.TM)().layout||(b.layout="cose-bilkent"),!a)return{nodes:[],edges:[],config:b};h.R.debug("getData: mindmapRoot",a,b),this.assignSections(a);let c=[],d=[];this.flattenNodes(a,c),this.generateEdges(a,d),h.R.debug(`getData: processed ${c.length} nodes and ${d.length} edges`);let e=new Map;for(let a of c)e.set(a.id,{shape:a.shape,width:a.width,height:a.height,padding:a.padding});return{nodes:c,edges:d,config:b,rootNode:a,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(e),type:"mindmap",diagramId:"mindmap-"+o()}}getLogger(){return h.R}},v=(0,i.K)(async(a,b,c,i)=>{h.R.debug("Rendering mindmap diagram\n"+a);let j=i.db,k=j.getData(),l=(0,d.A)(b,k.config.securityLevel);if(k.type=i.type,k.layoutAlgorithm=(0,f.q7)(k.config.layout,{fallback:"cose-bilkent"}),k.diagramId=b,!j.getMindmap())return;k.nodes.forEach(a=>{"rounded"===a.shape?(a.radius=15,a.taper=15,a.stroke="none",a.width=0,a.padding=15):"circle"===a.shape?a.padding=10:"rect"===a.shape?(a.width=0,a.padding=10):"hexagon"===a.shape&&(a.width=0,a.height=0)}),await (0,f.XX)(k,l);let{themeVariables:m}=(0,g.zj)(),{useGradient:n,gradientStart:o,gradientStop:p}=m;if(n&&o&&p){let a=l.attr("id"),b=l.append("defs").append("linearGradient").attr("id",`${a}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");b.append("stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),b.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}(0,e.P)(l,k.config.mindmap?.padding??g.UI.mindmap.padding,"mindmapDiagram",k.config.mindmap?.useMaxWidth??g.UI.mindmap.useMaxWidth)},"draw"),w=(0,i.K)(a=>{let{theme:b,look:c}=a,d="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)a["lineColor"+b]=a["lineColor"+b]||a["cScaleInv"+b],(0,p.A)(a["lineColor"+b])?a["lineColor"+b]=(0,q.A)(a["lineColor"+b],20):a["lineColor"+b]=(0,r.A)(a["lineColor"+b],20);for(let e=0;e<a.THEME_COLOR_LIMIT;e++){let f=""+("neo"===c?Math.max(10-(e-1)*2,2):17-3*e);d+=`
2
+ .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path {
3
+ fill: ${a["cScale"+e]};
4
+ }
5
+ .section-${e-1} text {
6
+ fill: ${a["cScaleLabel"+e]};
7
+ }
8
+ .section-${e-1} span {
9
+ color: ${a["cScaleLabel"+e]};
10
+ }
11
+ .node-icon-${e-1} {
12
+ font-size: 40px;
13
+ color: ${a["cScaleLabel"+e]};
14
+ }
15
+ .section-edge-${e-1}{
16
+ stroke: ${a["cScale"+e]};
17
+ }
18
+ .edge-depth-${e-1}{
19
+ stroke-width: ${f};
20
+ }
21
+ .section-${e-1} line {
22
+ stroke: ${a["cScaleInv"+e]} ;
23
+ stroke-width: 3;
24
+ }
25
+
26
+ .disabled, .disabled circle, .disabled text {
27
+ fill: lightgray;
28
+ }
29
+ .disabled text {
30
+ fill: #efefef;
31
+ }
32
+ [data-look="neo"].mindmap-node.section-${e-1} rect, [data-look="neo"].mindmap-node.section-${e-1} path, [data-look="neo"].mindmap-node.section-${e-1} circle, [data-look="neo"].mindmap-node.section-${e-1} polygon {
33
+ fill: ${"redux"===b||"redux-dark"===b||"neutral"===b?a.mainBkg:a["cScale"+e]};
34
+ stroke: ${"redux"===b||"redux-dark"===b?a.nodeBorder:a["cScale"+e]};
35
+ stroke-width: ${a.strokeWidth??2}px;
36
+ }
37
+ [data-look="neo"].section-edge-${e-1}{
38
+ stroke: ${b?.includes("redux")||"neo-dark"===b?a.nodeBorder:a["cScale"+e]};
39
+ }
40
+ [data-look="neo"].mindmap-node.section-${e-1} text {
41
+ fill: ${"redux"===b||"redux-dark"===b?a.nodeBorder:a["cScaleLabel"+("neutral"===b?1:e)]};
42
+ }
43
+ `}return d},"genSections"),x=(0,i.K)((a,b,c)=>{let d="";for(let e=0;e<a;e++)d+=`
44
+ [data-look="neo"].mindmap-node.section-${e-1} rect, [data-look="neo"].mindmap-node.section-${e-1} path, [data-look="neo"].mindmap-node.section-${e-1} circle, [data-look="neo"].mindmap-node.section-${e-1} polygon {
45
+ stroke: url(${b}-gradient);
46
+ fill: ${c};
47
+ }
48
+ .section-${e-1} line {
49
+ stroke-width: 0;
50
+ }`;return d},"genGradient"),y={get db(){return new u},renderer:{draw:v},parser:s,styles:(0,i.K)(a=>{let{theme:b}=a,c=a.svgId,d=a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${c}-drop-shadow)`):"none";return`
51
+ .edge {
52
+ stroke-width: 3;
53
+ }
54
+ ${w(a)}
55
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
56
+ fill: ${a.git0};
57
+ }
58
+ .section-root text {
59
+ fill: ${a.gitBranchLabel0};
60
+ }
61
+ .section-root span {
62
+ color: ${b?.includes("redux")?a.nodeBorder:a.gitBranchLabel0};
63
+ }
64
+ .icon-container {
65
+ height:100%;
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ }
70
+ .edge {
71
+ fill: none;
72
+ }
73
+ .mindmap-node-label {
74
+ dy: 1em;
75
+ alignment-baseline: middle;
76
+ text-anchor: middle;
77
+ dominant-baseline: middle;
78
+ text-align: center;
79
+ }
80
+ [data-look="neo"].mindmap-node {
81
+ filter: ${d};
82
+ }
83
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
84
+ fill: ${b?.includes("redux")?a.mainBkg:a.git0};
85
+ }
86
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
87
+ fill: ${b?.includes("redux")?a.nodeBorder:a["cScaleLabel"+ +("neutral"===b)]};
88
+ }
89
+ ${a.useGradient&&c&&a.mainBkg?x(a.THEME_COLOR_LIMIT,c,a.mainBkg):""}
90
+ `},"getStyles")}},30917:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(95097),e=c(69085),f=(0,d.K)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},51267:(a,b,c)=>{c.d(b,{P:()=>g});var d=c(36594),e=c(58715),f=c(95097),g=(0,f.K)((a,b,c,f)=>{a.attr("class",c);let{width:g,height:j,x:k,y:l}=h(a,b);(0,d.a$)(a,j,g,f);let m=i(k,l,g,j,b);a.attr("viewBox",m),e.R.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),h=(0,f.K)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),i=(0,f.K)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")}};
@@ -0,0 +1 @@
1
+ exports.id=5318,exports.ids=[5318],exports.modules={38698:function(a,b,c){a.exports=function(a){var b=[function(b,c){b.exports=a},function(a,b,c){"use strict";var d=c(0).layoutBase.LayoutConstants,e=c(0).layoutBase.FDLayoutConstants,f=c(0).CoSEConstants,g=c(0).CoSELayout,h=c(0).CoSENode,i=c(0).layoutBase.PointD,j=c(0).layoutBase.DimensionD,k={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function l(a){this.options=function(a,b){var c={};for(var d in a)c[d]=a[d];for(var d in b)c[d]=b[d];return c}(k,a),m(this.options)}var m=function(a){null!=a.nodeRepulsion&&(f.DEFAULT_REPULSION_STRENGTH=e.DEFAULT_REPULSION_STRENGTH=a.nodeRepulsion),null!=a.idealEdgeLength&&(f.DEFAULT_EDGE_LENGTH=e.DEFAULT_EDGE_LENGTH=a.idealEdgeLength),null!=a.edgeElasticity&&(f.DEFAULT_SPRING_STRENGTH=e.DEFAULT_SPRING_STRENGTH=a.edgeElasticity),null!=a.nestingFactor&&(f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=a.nestingFactor),null!=a.gravity&&(f.DEFAULT_GRAVITY_STRENGTH=e.DEFAULT_GRAVITY_STRENGTH=a.gravity),null!=a.numIter&&(f.MAX_ITERATIONS=e.MAX_ITERATIONS=a.numIter),null!=a.gravityRange&&(f.DEFAULT_GRAVITY_RANGE_FACTOR=e.DEFAULT_GRAVITY_RANGE_FACTOR=a.gravityRange),null!=a.gravityCompound&&(f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=a.gravityCompound),null!=a.gravityRangeCompound&&(f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=a.gravityRangeCompound),null!=a.initialEnergyOnIncremental&&(f.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.DEFAULT_COOLING_FACTOR_INCREMENTAL=a.initialEnergyOnIncremental),"draft"==a.quality?d.QUALITY=0:"proof"==a.quality?d.QUALITY=2:d.QUALITY=1,f.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=a.nodeDimensionsIncludeLabels,f.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=!a.randomize,f.ANIMATE=e.ANIMATE=d.ANIMATE=a.animate,f.TILE=a.tile,f.TILING_PADDING_VERTICAL="function"==typeof a.tilingPaddingVertical?a.tilingPaddingVertical.call():a.tilingPaddingVertical,f.TILING_PADDING_HORIZONTAL="function"==typeof a.tilingPaddingHorizontal?a.tilingPaddingHorizontal.call():a.tilingPaddingHorizontal};l.prototype.run=function(){var a,b,c=this.options;this.idToLNode={};var d=this.layout=new g,e=this;e.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var f=d.newGraphManager();this.gm=f;var h=this.options.eles.nodes(),i=this.options.eles.edges();this.root=f.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(h),d);for(var j=0;j<i.length;j++){var k=i[j],l=this.idToLNode[k.data("source")],m=this.idToLNode[k.data("target")];l!==m&&0==l.getEdgesBetween(m).length&&(f.add(d.newEdge(),l,m).id=k.id())}var n=function(a,b){"number"==typeof a&&(a=b);var c=a.data("id"),d=e.idToLNode[c];return{x:d.getRect().getCenterX(),y:d.getRect().getCenterY()}},o=function f(){for(var g,h=function(){c.fit&&c.cy.fit(c.eles,c.padding),a||(a=!0,e.cy.one("layoutready",c.ready),e.cy.trigger({type:"layoutready",layout:e}))},i=e.options.refresh,j=0;j<i&&!g;j++)g=e.stopped||e.layout.tick();if(g){d.checkLayoutSuccess()&&!d.isSubLayout&&d.doPostLayout(),d.tilingPostLayout&&d.tilingPostLayout(),d.isLayoutFinished=!0,e.options.eles.nodes().positions(n),h(),e.cy.one("layoutstop",e.options.stop),e.cy.trigger({type:"layoutstop",layout:e}),b&&cancelAnimationFrame(b),a=!1;return}var k=e.layout.getPositionsData();c.eles.nodes().positions(function(a,b){if("number"==typeof a&&(a=b),!a.isParent()){for(var c=a.id(),d=k[c],e=a;null==d&&(d=k[e.data("parent")]||k["DummyCompound_"+e.data("parent")],k[c]=d,void 0!=(e=e.parent()[0])););return null!=d?{x:d.x,y:d.y}:{x:a.position("x"),y:a.position("y")}}}),h(),b=requestAnimationFrame(f)};return d.addListener("layoutstarted",function(){"during"===e.options.animate&&(b=requestAnimationFrame(o))}),d.runLayout(),"during"!==this.options.animate&&(e.options.eles.nodes().not(":parent").layoutPositions(e,e.options,n),a=!1),this},l.prototype.getTopMostNodes=function(a){for(var b={},c=0;c<a.length;c++)b[a[c].id()]=!0;return a.filter(function(a,c){"number"==typeof a&&(a=c);for(var d=a.parent()[0];null!=d;){if(b[d.id()])return!1;d=d.parent()[0]}return!0})},l.prototype.processChildrenList=function(a,b,c){for(var d=b.length,e=0;e<d;e++){var f,g,k=b[e],l=k.children(),m=k.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((f=null!=k.outerWidth()&&null!=k.outerHeight()?a.add(new h(c.graphManager,new i(k.position("x")-m.w/2,k.position("y")-m.h/2),new j(parseFloat(m.w),parseFloat(m.h)))):a.add(new h(this.graphManager))).id=k.data("id"),f.paddingLeft=parseInt(k.css("padding")),f.paddingTop=parseInt(k.css("padding")),f.paddingRight=parseInt(k.css("padding")),f.paddingBottom=parseInt(k.css("padding")),this.options.nodeDimensionsIncludeLabels&&k.isParent()){var n=k.boundingBox({includeLabels:!0,includeNodes:!1}).w,o=k.boundingBox({includeLabels:!0,includeNodes:!1}).h,p=k.css("text-halign");f.labelWidth=n,f.labelHeight=o,f.labelPos=p}this.idToLNode[k.data("id")]=f,isNaN(f.rect.x)&&(f.rect.x=0),isNaN(f.rect.y)&&(f.rect.y=0),null!=l&&l.length>0&&(g=c.getGraphManager().add(c.newGraph(),f),this.processChildrenList(g,l,c))}},l.prototype.stop=function(){return this.stopped=!0,this};var n=function(a){a("layout","cose-bilkent",l)};"u">typeof cytoscape&&n(cytoscape),a.exports=n}],c={};function d(a){if(c[a])return c[a].exports;var e=c[a]={i:a,l:!1,exports:{}};return b[a].call(e.exports,e,e.exports,d),e.l=!0,e.exports}return d.m=b,d.c=c,d.i=function(a){return a},d.d=function(a,b,c){d.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:c})},d.n=function(a){var b=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(b,"a",b),b},d.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},d.p="",d(d.s=1)}(c(92108))},75318:(a,b,c)=>{"use strict";c.r(b),c.d(b,{render:()=>p});var d=c(58715),e=c(95097),f=c(17307),g=c(38698),h=c(69085);function i(a,b){a.forEach(a=>{let c={id:a.id,labelText:a.label,height:a.height,width:a.width,padding:a.padding??0};Object.keys(a).forEach(b=>{["id","label","height","width","padding","x","y"].includes(b)||(c[b]=a[b])}),b.add({group:"nodes",data:c,position:{x:a.x??0,y:a.y??0}})})}function j(a,b){a.forEach(a=>{let c={id:a.id,source:a.start,target:a.end};Object.keys(a).forEach(b=>{["id","start","end"].includes(b)||(c[b]=a[b])}),b.add({group:"edges",data:c})})}function k(a){return new Promise(b=>{let c=(0,h.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),e=(0,f.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});c.remove(),i(a.nodes,e),j(a.edges,e),e.nodes().forEach(function(a){a.layoutDimensions=()=>{let b=a.data();return{w:b.width,h:b.height}}}),e.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),e.ready(a=>{d.R.info("Cytoscape ready",a),b(e)})})}function l(a){return a.nodes().map(a=>{let b=a.data(),c=a.position(),d={id:b.id,x:c.x,y:c.y};return Object.keys(b).forEach(a=>{"id"!==a&&(d[a]=b[a])}),d})}function m(a){return a.edges().map(a=>{let b=a.data(),c=a._private.rscratch,d={id:b.id,source:b.source,target:b.target,startX:c.startX,startY:c.startY,midX:c.midX,midY:c.midY,endX:c.endX,endY:c.endY};return Object.keys(b).forEach(a=>{["id","source","target"].includes(a)||(d[a]=b[a])}),d})}async function n(a,b){d.R.debug("Starting cose-bilkent layout algorithm");try{o(a);let b=await k(a),c=l(b),e=m(b);return d.R.debug(`Layout completed: ${c.length} nodes, ${e.length} edges`),{nodes:c,edges:e}}catch(a){throw d.R.error("Error in cose-bilkent layout algorithm:",a),a}}function o(a){if(!a)throw Error("Layout data is required");if(!a.config)throw Error("Configuration is required in layout data");if(!a.rootNode)throw Error("Root node is required");if(!a.nodes||!Array.isArray(a.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(a.edges))throw Error("Edges array is required in layout data");return!0}f.A.use(g),(0,e.K)(i,"addNodes"),(0,e.K)(j,"addEdges"),(0,e.K)(k,"createCytoscapeInstance"),(0,e.K)(l,"extractPositionedNodes"),(0,e.K)(m,"extractPositionedEdges"),(0,e.K)(n,"executeCoseBilkentLayout"),(0,e.K)(o,"validateLayoutData");var p=(0,e.K)(async(a,b,{insertCluster:c,insertEdge:d,insertEdgeLabel:e,insertMarkers:f,insertNode:g,log:h,positionEdgeLabel:i},{algorithm:j})=>{let k={},l={},m=b.select("g");f(m,a.markers,a.type,a.diagramId);let o=m.insert("g").attr("class","subgraphs"),p=m.insert("g").attr("class","edgePaths"),q=m.insert("g").attr("class","edgeLabels"),r=m.insert("g").attr("class","nodes");h.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(a.nodes.map(async b=>{if(b.isGroup){let a={...b};l[b.id]=a,k[b.id]=a,await c(o,b)}else{let c={...b};k[b.id]=c;let d=await g(r,b,{config:a.config,dir:a.direction||"TB"}),e=d.node().getBBox();c.width=e.width,c.height=e.height,c.domId=d,h.debug(`Node ${b.id} dimensions: ${e.width}x${e.height}`)}})),h.debug("Running cose-bilkent layout algorithm");let s={...a,nodes:a.nodes.map(a=>{let b=k[a.id];return{...a,width:b.width,height:b.height}})},t=await n(s,a.config);h.debug("Positioning nodes based on layout results"),t.nodes.forEach(a=>{let b=k[a.id];b?.domId&&(b.domId.attr("transform",`translate(${a.x}, ${a.y})`),b.x=a.x,b.y=a.y,h.debug(`Positioned node ${b.id} at center (${a.x}, ${a.y})`))}),t.edges.forEach(b=>{let c=a.edges.find(a=>a.id===b.id);c&&(c.points=[{x:b.startX,y:b.startY},{x:b.midX,y:b.midY},{x:b.endX,y:b.endY}])}),h.debug("Inserting and positioning edges"),await Promise.all(a.edges.map(async b=>{await e(q,b);let c=k[b.start??""],f=k[b.end??""];if(c&&f){let e=t.edges.find(a=>a.id===b.id);if(e){h.debug("APA01 positionedEdge",e);let g={...b},j=d(p,g,l,a.type,c,f,a.diagramId);i(g,j)}else{let e={...b,points:[{x:c.x||0,y:c.y||0},{x:f.x||0,y:f.y||0}]},g=d(p,e,l,a.type,c,f,a.diagramId);i(e,g)}}})),h.debug("Cose-bilkent rendering completed")},"render")},92108:function(a,b,c){a.exports=function(a){var b=[function(b,c){b.exports=a},function(a,b,c){"use strict";var d=c(0).FDLayoutConstants;function e(){}for(var f in d)e[f]=d[f];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TREE_REDUCTION_ON_INCREMENTAL=!1,a.exports=e},function(a,b,c){"use strict";var d=c(0).FDLayoutEdge;function e(a,b,c){d.call(this,a,b,c)}for(var f in e.prototype=Object.create(d.prototype),d)e[f]=d[f];a.exports=e},function(a,b,c){"use strict";var d=c(0).LGraph;function e(a,b,c){d.call(this,a,b,c)}for(var f in e.prototype=Object.create(d.prototype),d)e[f]=d[f];a.exports=e},function(a,b,c){"use strict";var d=c(0).LGraphManager;function e(a){d.call(this,a)}for(var f in e.prototype=Object.create(d.prototype),d)e[f]=d[f];a.exports=e},function(a,b,c){"use strict";var d=c(0).FDLayoutNode,e=c(0).IMath;function f(a,b,c,e){d.call(this,a,b,c,e)}for(var g in f.prototype=Object.create(d.prototype),d)f[g]=d[g];f.prototype.move=function(){var a=this.graphManager.getLayout();this.displacementX=a.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=a.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>a.coolingFactor*a.maxNodeDisplacement&&(this.displacementX=a.coolingFactor*a.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>a.coolingFactor*a.maxNodeDisplacement&&(this.displacementY=a.coolingFactor*a.maxNodeDisplacement*e.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),a.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},f.prototype.propogateDisplacementToChildren=function(a,b){for(var c,d=this.getChild().getNodes(),e=0;e<d.length;e++)null==(c=d[e]).getChild()?(c.moveBy(a,b),c.displacementX+=a,c.displacementY+=b):c.propogateDisplacementToChildren(a,b)},f.prototype.setPred1=function(a){this.pred1=a},f.prototype.getPred1=function(){return pred1},f.prototype.getPred2=function(){return pred2},f.prototype.setNext=function(a){this.next=a},f.prototype.getNext=function(){return next},f.prototype.setProcessed=function(a){this.processed=a},f.prototype.isProcessed=function(){return processed},a.exports=f},function(a,b,c){"use strict";var d=c(0).FDLayout,e=c(4),f=c(3),g=c(5),h=c(2),i=c(1),j=c(0).FDLayoutConstants,k=c(0).LayoutConstants,l=c(0).Point,m=c(0).PointD,n=c(0).Layout,o=c(0).Integer,p=c(0).IGeometry,q=c(0).LGraph,r=c(0).Transform;function s(){d.call(this),this.toBeTiled={}}for(var t in s.prototype=Object.create(d.prototype),d)s[t]=d[t];s.prototype.newGraphManager=function(){var a=new e(this);return this.graphManager=a,a},s.prototype.newGraph=function(a){return new f(null,this.graphManager,a)},s.prototype.newNode=function(a){return new g(this.graphManager,a)},s.prototype.newEdge=function(a){return new h(null,null,a)},s.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.isSubLayout||(i.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=j.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=j.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=j.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=j.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=j.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=j.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/j.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=j.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},s.prototype.layout=function(){return k.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},s.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(i.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),b=this.nodesWithGravity.filter(function(b){return a.has(b)});this.graphManager.setAllNodesToApplyGravitation(b)}}else{var c=this.getFlatForest();if(c.length>0)this.positionNodesRadially(c);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),b=this.nodesWithGravity.filter(function(b){return a.has(b)});this.graphManager.setAllNodesToApplyGravitation(b),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},s.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;if(this.totalIterations%j.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),b=this.nodesWithGravity.filter(function(b){return a.has(b)});this.graphManager.setAllNodesToApplyGravitation(b),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=j.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=j.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,d=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,d),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},s.prototype.getPositionsData=function(){for(var a=this.graphManager.getAllNodes(),b={},c=0;c<a.length;c++){var d=a[c].rect,e=a[c].id;b[e]={id:e,x:d.getCenterX(),y:d.getCenterY(),w:d.width,h:d.height}}return b},s.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var a=!1;if("during"===j.ANIMATE)this.emit("layoutstarted");else{for(;!a;)a=this.tick();this.graphManager.updateBounds()}},s.prototype.calculateNodesToApplyGravitationTo=function(){var a,b,c=[],d=this.graphManager.getGraphs(),e=d.length;for(b=0;b<e;b++)(a=d[b]).updateConnected(),a.isConnected||(c=c.concat(a.getNodes()));return c},s.prototype.createBendpoints=function(){var a=[];a=a.concat(this.graphManager.getAllEdges());var b=new Set;for(f=0;f<a.length;f++){var c=a[f];if(!b.has(c)){var d=c.getSource(),e=c.getTarget();if(d==e)c.getBendpoints().push(new m),c.getBendpoints().push(new m),this.createDummyNodesForBendpoints(c),b.add(c);else{var f,g,h=[];if(h=(h=h.concat(d.getEdgeListToNode(e))).concat(e.getEdgeListToNode(d)),!b.has(h[0])){if(h.length>1)for(g=0;g<h.length;g++){var i=h[g];i.getBendpoints().push(new m),this.createDummyNodesForBendpoints(i)}h.forEach(function(a){b.add(a)})}}}if(b.size==a.length)break}},s.prototype.positionNodesRadially=function(a){for(var b=new l(0,0),c=Math.ceil(Math.sqrt(a.length)),d=0,e=0,f=0,g=new m(0,0),h=0;h<a.length;h++){h%c==0&&(f=0,e=d,0!=h&&(e+=i.DEFAULT_COMPONENT_SEPERATION),d=0);var j=a[h],o=n.findCenterOfTree(j);b.x=f,b.y=e,(g=s.radialLayout(j,o,b)).y>d&&(d=Math.floor(g.y)),f=Math.floor(g.x+i.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(k.WORLD_CENTER_X-g.x/2,k.WORLD_CENTER_Y-g.y/2))},s.radialLayout=function(a,b,c){var d=Math.max(this.maxDiagonalInTree(a),i.DEFAULT_RADIAL_SEPARATION);s.branchRadialLayout(b,null,0,359,0,d);var e=q.calculateBounds(a),f=new r;f.setDeviceOrgX(e.getMinX()),f.setDeviceOrgY(e.getMinY()),f.setWorldOrgX(c.x),f.setWorldOrgY(c.y);for(var g=0;g<a.length;g++)a[g].transform(f);var h=new m(e.getMaxX(),e.getMaxY());return f.inverseTransformPoint(h)},s.branchRadialLayout=function(a,b,c,d,e,f){var g,h=(d-c+1)/2;h<0&&(h+=180);var i=(h+c)%360*p.TWO_PI/360,j=e*Math.cos(i),k=e*Math.sin(i);a.setCenter(j,k);var l=[],m=(l=l.concat(a.getEdges())).length;null!=b&&m--;for(var n=0,o=l.length,q=a.getEdgesBetween(b);q.length>1;){var r=q[0];q.splice(0,1);var t=l.indexOf(r);t>=0&&l.splice(t,1),o--,m--}g=null!=b?(l.indexOf(q[0])+1)%o:0;for(var u=Math.abs(d-c)/m,v=g;n!=m;v=++v%o){var w=l[v].getOtherEnd(a);if(w!=b){var x=(c+n*u)%360,y=(x+u)%360;s.branchRadialLayout(w,a,x,y,e+f,f),n++}}},s.maxDiagonalInTree=function(a){for(var b=o.MIN_VALUE,c=0;c<a.length;c++){var d=a[c].getDiagonal();d>b&&(b=d)}return b},s.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},s.prototype.groupZeroDegreeMembers=function(){var a=this,b={};this.memberGroups={},this.idToDummyNode={};for(var c=[],d=this.graphManager.getAllNodes(),e=0;e<d.length;e++){var f=d[e],h=f.getParent();0!==this.getNodeDegreeWithChildren(f)||void 0!=h.id&&this.getToBeTiled(h)||c.push(f)}for(var e=0;e<c.length;e++){var f=c[e],i=f.getParent().id;void 0===b[i]&&(b[i]=[]),b[i]=b[i].concat(f)}Object.keys(b).forEach(function(c){if(b[c].length>1){var d="DummyCompound_"+c;a.memberGroups[d]=b[c];var e=b[c][0].getParent(),f=new g(a.graphManager);f.id=d,f.paddingLeft=e.paddingLeft||0,f.paddingRight=e.paddingRight||0,f.paddingBottom=e.paddingBottom||0,f.paddingTop=e.paddingTop||0,a.idToDummyNode[d]=f;var h=a.getGraphManager().add(a.newGraph(),f),i=e.getChild();i.add(f);for(var j=0;j<b[c].length;j++){var k=b[c][j];i.remove(k),h.add(k)}}})},s.prototype.clearCompounds=function(){var a={},b={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)b[this.compoundOrder[c].id]=this.compoundOrder[c],a[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(a,b)},s.prototype.clearZeroDegreeMembers=function(){var a=this,b=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var d=a.idToDummyNode[c];b[c]=a.tileNodes(a.memberGroups[c],d.paddingLeft+d.paddingRight),d.rect.width=b[c].width,d.rect.height=b[c].height})},s.prototype.repopulateCompounds=function(){for(var a=this.compoundOrder.length-1;a>=0;a--){var b=this.compoundOrder[a],c=b.id,d=b.paddingLeft,e=b.paddingTop;this.adjustLocations(this.tiledMemberPack[c],b.rect.x,b.rect.y,d,e)}},s.prototype.repopulateZeroDegreeMembers=function(){var a=this,b=this.tiledZeroDegreePack;Object.keys(b).forEach(function(c){var d=a.idToDummyNode[c],e=d.paddingLeft,f=d.paddingTop;a.adjustLocations(b[c],d.rect.x,d.rect.y,e,f)})},s.prototype.getToBeTiled=function(a){var b=a.id;if(null!=this.toBeTiled[b])return this.toBeTiled[b];var c=a.getChild();if(null==c)return this.toBeTiled[b]=!1,!1;for(var d=c.getNodes(),e=0;e<d.length;e++){var f=d[e];if(this.getNodeDegree(f)>0)return this.toBeTiled[b]=!1,!1;if(null==f.getChild()){this.toBeTiled[f.id]=!1;continue}if(!this.getToBeTiled(f))return this.toBeTiled[b]=!1,!1}return this.toBeTiled[b]=!0,!0},s.prototype.getNodeDegree=function(a){a.id;for(var b=a.getEdges(),c=0,d=0;d<b.length;d++){var e=b[d];e.getSource().id!==e.getTarget().id&&(c+=1)}return c},s.prototype.getNodeDegreeWithChildren=function(a){var b=this.getNodeDegree(a);if(null==a.getChild())return b;for(var c=a.getChild().getNodes(),d=0;d<c.length;d++){var e=c[d];b+=this.getNodeDegreeWithChildren(e)}return b},s.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},s.prototype.fillCompexOrderByDFS=function(a){for(var b=0;b<a.length;b++){var c=a[b];null!=c.getChild()&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},s.prototype.adjustLocations=function(a,b,c,d,e){b+=d,c+=e;for(var f=b,g=0;g<a.rows.length;g++){var h=a.rows[g];b=f;for(var i=0,j=0;j<h.length;j++){var k=h[j];k.rect.x=b,k.rect.y=c,b+=k.rect.width+a.horizontalPadding,k.rect.height>i&&(i=k.rect.height)}c+=i+a.verticalPadding}},s.prototype.tileCompoundMembers=function(a,b){var c=this;this.tiledMemberPack=[],Object.keys(a).forEach(function(d){var e=b[d];c.tiledMemberPack[d]=c.tileNodes(a[d],e.paddingLeft+e.paddingRight),e.rect.width=c.tiledMemberPack[d].width,e.rect.height=c.tiledMemberPack[d].height})},s.prototype.tileNodes=function(a,b){var c={rows:[],rowWidth:[],rowHeight:[],width:0,height:b,verticalPadding:i.TILING_PADDING_VERTICAL,horizontalPadding:i.TILING_PADDING_HORIZONTAL};a.sort(function(a,b){return a.rect.width*a.rect.height>b.rect.width*b.rect.height?-1:+(a.rect.width*a.rect.height<b.rect.width*b.rect.height)});for(var d=0;d<a.length;d++){var e=a[d];0==c.rows.length?this.insertNodeToRow(c,e,0,b):this.canAddHorizontal(c,e.rect.width,e.rect.height)?this.insertNodeToRow(c,e,this.getShortestRowIndex(c),b):this.insertNodeToRow(c,e,c.rows.length,b),this.shiftToLastRow(c)}return c},s.prototype.insertNodeToRow=function(a,b,c,d){c==a.rows.length&&(a.rows.push([]),a.rowWidth.push(d),a.rowHeight.push(0));var e=a.rowWidth[c]+b.rect.width;a.rows[c].length>0&&(e+=a.horizontalPadding),a.rowWidth[c]=e,a.width<e&&(a.width=e);var f=b.rect.height;c>0&&(f+=a.verticalPadding);var g=0;f>a.rowHeight[c]&&(g=a.rowHeight[c],a.rowHeight[c]=f,g=a.rowHeight[c]-g),a.height+=g,a.rows[c].push(b)},s.prototype.getShortestRowIndex=function(a){for(var b=-1,c=Number.MAX_VALUE,d=0;d<a.rows.length;d++)a.rowWidth[d]<c&&(b=d,c=a.rowWidth[d]);return b},s.prototype.getLongestRowIndex=function(a){for(var b=-1,c=5e-324,d=0;d<a.rows.length;d++)a.rowWidth[d]>c&&(b=d,c=a.rowWidth[d]);return b},s.prototype.canAddHorizontal=function(a,b,c){var d,e,f=this.getShortestRowIndex(a);if(f<0)return!0;var g=a.rowWidth[f];if(g+a.horizontalPadding+b<=a.width)return!0;var h=0;return a.rowHeight[f]<c&&f>0&&(h=c+a.verticalPadding-a.rowHeight[f]),d=a.width-g>=b+a.horizontalPadding?(a.height+h)/(g+b+a.horizontalPadding):(a.height+h)/a.width,h=c+a.verticalPadding,(e=a.width<b?(a.height+h)/b:(a.height+h)/a.width)<1&&(e=1/e),d<1&&(d=1/d),d<e},s.prototype.shiftToLastRow=function(a){var b=this.getLongestRowIndex(a),c=a.rowWidth.length-1,d=a.rows[b],e=d[d.length-1],f=e.width+a.horizontalPadding;if(a.width-a.rowWidth[c]>f&&b!=c){d.splice(-1,1),a.rows[c].push(e),a.rowWidth[b]=a.rowWidth[b]-f,a.rowWidth[c]=a.rowWidth[c]+f,a.width=a.rowWidth[instance.getLongestRowIndex(a)];for(var g=5e-324,h=0;h<d.length;h++)d[h].height>g&&(g=d[h].height);b>0&&(g+=a.verticalPadding);var i=a.rowHeight[b]+a.rowHeight[c];a.rowHeight[b]=g,a.rowHeight[c]<e.height+a.verticalPadding&&(a.rowHeight[c]=e.height+a.verticalPadding);var j=a.rowHeight[b]+a.rowHeight[c];a.height+=j-i,this.shiftToLastRow(a)}},s.prototype.tilingPreLayout=function(){i.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},s.prototype.tilingPostLayout=function(){i.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},s.prototype.reduceTrees=function(){for(var a,b=[],c=!0;c;){var d=this.graphManager.getAllNodes(),e=[];c=!1;for(var f=0;f<d.length;f++)1!=(a=d[f]).getEdges().length||a.getEdges()[0].isInterGraph||null!=a.getChild()||(e.push([a,a.getEdges()[0],a.getOwner()]),c=!0);if(!0==c){for(var g=[],h=0;h<e.length;h++)1==e[h][0].getEdges().length&&(g.push(e[h]),e[h][0].getOwner().remove(e[h][0]));b.push(g),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=b},s.prototype.growTree=function(a){for(var b,c=a.length,d=a[c-1],e=0;e<d.length;e++)b=d[e],this.findPlaceforPrunedNode(b),b[2].add(b[0]),b[2].add(b[1],b[1].source,b[1].target);a.splice(a.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},s.prototype.findPlaceforPrunedNode=function(a){var b,c,d,e,f=a[0],g=(c=f==a[1].source?a[1].target:a[1].source).startX,h=c.finishX,i=c.startY,k=c.finishY,l=[0,0,0,0];if(i>0)for(var m=g;m<=h;m++)l[0]+=this.grid[m][i-1].length+this.grid[m][i].length-1;if(h<this.grid.length-1)for(var m=i;m<=k;m++)l[1]+=this.grid[h+1][m].length+this.grid[h][m].length-1;if(k<this.grid[0].length-1)for(var m=g;m<=h;m++)l[2]+=this.grid[m][k+1].length+this.grid[m][k].length-1;if(g>0)for(var m=i;m<=k;m++)l[3]+=this.grid[g-1][m].length+this.grid[g][m].length-1;for(var n=o.MAX_VALUE,p=0;p<l.length;p++)l[p]<n?(n=l[p],d=1,e=p):l[p]==n&&d++;if(3==d&&0==n)0==l[0]&&0==l[1]&&0==l[2]?b=1:0==l[0]&&0==l[1]&&0==l[3]?b=0:0==l[0]&&0==l[2]&&0==l[3]?b=3:0==l[1]&&0==l[2]&&0==l[3]&&(b=2);else if(2==d&&0==n){var q=Math.floor(2*Math.random());b=0==l[0]&&0==l[1]?+(0!=q):0==l[0]&&0==l[2]?2*(0!=q):0==l[0]&&0==l[3]?3*(0!=q):0==l[1]&&0==l[2]?0==q?1:2:0==l[1]&&0==l[3]?0==q?1:3:0==q?2:3}else if(4==d&&0==n){var q=Math.floor(4*Math.random());b=q}else b=e;0==b?f.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-j.DEFAULT_EDGE_LENGTH-f.getHeight()/2):1==b?f.setCenter(c.getCenterX()+c.getWidth()/2+j.DEFAULT_EDGE_LENGTH+f.getWidth()/2,c.getCenterY()):2==b?f.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+j.DEFAULT_EDGE_LENGTH+f.getHeight()/2):f.setCenter(c.getCenterX()-c.getWidth()/2-j.DEFAULT_EDGE_LENGTH-f.getWidth()/2,c.getCenterY())},a.exports=s},function(a,b,c){"use strict";var d={};d.layoutBase=c(0),d.CoSEConstants=c(1),d.CoSEEdge=c(2),d.CoSEGraph=c(3),d.CoSEGraphManager=c(4),d.CoSELayout=c(6),d.CoSENode=c(5),a.exports=d}],c={};function d(a){if(c[a])return c[a].exports;var e=c[a]={i:a,l:!1,exports:{}};return b[a].call(e.exports,e,e.exports,d),e.l=!0,e.exports}return d.m=b,d.c=c,d.i=function(a){return a},d.d=function(a,b,c){d.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:c})},d.n=function(a){var b=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(b,"a",b),b},d.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},d.p="",d(d.s=7)}(c(97372))},97372:function(a){a.exports=function(){var a=[function(a,b,c){"use strict";function d(){}d.QUALITY=1,d.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,d.DEFAULT_INCREMENTAL=!1,d.DEFAULT_ANIMATION_ON_LAYOUT=!0,d.DEFAULT_ANIMATION_DURING_LAYOUT=!1,d.DEFAULT_ANIMATION_PERIOD=50,d.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,d.DEFAULT_GRAPH_MARGIN=15,d.NODE_DIMENSIONS_INCLUDE_LABELS=!1,d.SIMPLE_NODE_SIZE=40,d.SIMPLE_NODE_HALF_SIZE=d.SIMPLE_NODE_SIZE/2,d.EMPTY_COMPOUND_NODE_SIZE=40,d.MIN_EDGE_LENGTH=1,d.WORLD_BOUNDARY=1e6,d.INITIAL_WORLD_BOUNDARY=d.WORLD_BOUNDARY/1e3,d.WORLD_CENTER_X=1200,d.WORLD_CENTER_Y=900,a.exports=d},function(a,b,c){"use strict";var d=c(2),e=c(8),f=c(9);function g(a,b,c){d.call(this,c),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=c,this.bendpoints=[],this.source=a,this.target=b}for(var h in g.prototype=Object.create(d.prototype),d)g[h]=d[h];g.prototype.getSource=function(){return this.source},g.prototype.getTarget=function(){return this.target},g.prototype.isInterGraph=function(){return this.isInterGraph},g.prototype.getLength=function(){return this.length},g.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},g.prototype.getBendpoints=function(){return this.bendpoints},g.prototype.getLca=function(){return this.lca},g.prototype.getSourceInLca=function(){return this.sourceInLca},g.prototype.getTargetInLca=function(){return this.targetInLca},g.prototype.getOtherEnd=function(a){if(this.source===a)return this.target;if(this.target===a)return this.source;throw"Node is not incident with this edge"},g.prototype.getOtherEndInGraph=function(a,b){for(var c=this.getOtherEnd(a),d=b.getGraphManager().getRoot();;){if(c.getOwner()==b)return c;if(c.getOwner()==d)break;c=c.getOwner().getParent()}return null},g.prototype.updateLength=function(){var a=[,,,,];this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),a),this.isOverlapingSourceAndTarget||(this.lengthX=a[0]-a[2],this.lengthY=a[1]-a[3],1>Math.abs(this.lengthX)&&(this.lengthX=f.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=f.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},g.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=f.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=f.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},a.exports=g},function(a,b,c){"use strict";a.exports=function(a){this.vGraphObject=a}},function(a,b,c){"use strict";var d=c(2),e=c(10),f=c(13),g=c(0),h=c(16),i=c(4);function j(a,b,c,g){null==c&&null==g&&(g=b),d.call(this,g),null!=a.graphManager&&(a=a.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=a,null!=c&&null!=b?this.rect=new f(b.x,b.y,c.width,c.height):this.rect=new f}for(var k in j.prototype=Object.create(d.prototype),d)j[k]=d[k];j.prototype.getEdges=function(){return this.edges},j.prototype.getChild=function(){return this.child},j.prototype.getOwner=function(){return this.owner},j.prototype.getWidth=function(){return this.rect.width},j.prototype.setWidth=function(a){this.rect.width=a},j.prototype.getHeight=function(){return this.rect.height},j.prototype.setHeight=function(a){this.rect.height=a},j.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},j.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},j.prototype.getCenter=function(){return new i(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},j.prototype.getLocation=function(){return new i(this.rect.x,this.rect.y)},j.prototype.getRect=function(){return this.rect},j.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},j.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},j.prototype.setRect=function(a,b){this.rect.x=a.x,this.rect.y=a.y,this.rect.width=b.width,this.rect.height=b.height},j.prototype.setCenter=function(a,b){this.rect.x=a-this.rect.width/2,this.rect.y=b-this.rect.height/2},j.prototype.setLocation=function(a,b){this.rect.x=a,this.rect.y=b},j.prototype.moveBy=function(a,b){this.rect.x+=a,this.rect.y+=b},j.prototype.getEdgeListToNode=function(a){var b=[],c=this;return c.edges.forEach(function(d){if(d.target==a){if(d.source!=c)throw"Incorrect edge source!";b.push(d)}}),b},j.prototype.getEdgesBetween=function(a){var b=[],c=this;return c.edges.forEach(function(d){if(d.source!=c&&d.target!=c)throw"Incorrect edge source and/or target";(d.target==a||d.source==a)&&b.push(d)}),b},j.prototype.getNeighborsList=function(){var a=new Set,b=this;return b.edges.forEach(function(c){if(c.source==b)a.add(c.target);else{if(c.target!=b)throw"Incorrect incidency!";a.add(c.source)}}),a},j.prototype.withChildren=function(){var a=new Set;if(a.add(this),null!=this.child)for(var b=this.child.getNodes(),c=0;c<b.length;c++)b[c].withChildren().forEach(function(b){a.add(b)});return a},j.prototype.getNoOfChildren=function(){var a=0;if(null==this.child)a=1;else for(var b=this.child.getNodes(),c=0;c<b.length;c++)a+=b[c].getNoOfChildren();return 0==a&&(a=1),a},j.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},j.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},j.prototype.scatter=function(){var a,b,c=-g.INITIAL_WORLD_BOUNDARY,d=g.INITIAL_WORLD_BOUNDARY;a=g.WORLD_CENTER_X+h.nextDouble()*(d-c)+c;var e=-g.INITIAL_WORLD_BOUNDARY,f=g.INITIAL_WORLD_BOUNDARY;b=g.WORLD_CENTER_Y+h.nextDouble()*(f-e)+e,this.rect.x=a,this.rect.y=b},j.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var a=this.getChild();if(a.updateBounds(!0),this.rect.x=a.getLeft(),this.rect.y=a.getTop(),this.setWidth(a.getRight()-a.getLeft()),this.setHeight(a.getBottom()-a.getTop()),g.NODE_DIMENSIONS_INCLUDE_LABELS){var b=a.getRight()-a.getLeft(),c=a.getBottom()-a.getTop();this.labelWidth>b&&(this.rect.x-=(this.labelWidth-b)/2,this.setWidth(this.labelWidth)),this.labelHeight>c&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-c)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-c),this.setHeight(this.labelHeight))}}},j.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},j.prototype.transform=function(a){var b=this.rect.x;b>g.WORLD_BOUNDARY?b=g.WORLD_BOUNDARY:b<-g.WORLD_BOUNDARY&&(b=-g.WORLD_BOUNDARY);var c=this.rect.y;c>g.WORLD_BOUNDARY?c=g.WORLD_BOUNDARY:c<-g.WORLD_BOUNDARY&&(c=-g.WORLD_BOUNDARY);var d=new i(b,c),e=a.inverseTransformPoint(d);this.setLocation(e.x,e.y)},j.prototype.getLeft=function(){return this.rect.x},j.prototype.getRight=function(){return this.rect.x+this.rect.width},j.prototype.getTop=function(){return this.rect.y},j.prototype.getBottom=function(){return this.rect.y+this.rect.height},j.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},a.exports=j},function(a,b,c){"use strict";function d(a,b){null==a&&null==b?(this.x=0,this.y=0):(this.x=a,this.y=b)}d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.setX=function(a){this.x=a},d.prototype.setY=function(a){this.y=a},d.prototype.getDifference=function(a){return new DimensionD(this.x-a.x,this.y-a.y)},d.prototype.getCopy=function(){return new d(this.x,this.y)},d.prototype.translate=function(a){return this.x+=a.width,this.y+=a.height,this},a.exports=d},function(a,b,c){"use strict";var d=c(2),e=c(10),f=c(0),g=c(6),h=c(3),i=c(1),j=c(13),k=c(12),l=c(11);function m(a,b,c){d.call(this,c),this.estimatedSize=e.MIN_VALUE,this.margin=f.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=a,null!=b&&b instanceof g?this.graphManager=b:null!=b&&b instanceof Layout&&(this.graphManager=b.graphManager)}for(var n in m.prototype=Object.create(d.prototype),d)m[n]=d[n];m.prototype.getNodes=function(){return this.nodes},m.prototype.getEdges=function(){return this.edges},m.prototype.getGraphManager=function(){return this.graphManager},m.prototype.getParent=function(){return this.parent},m.prototype.getLeft=function(){return this.left},m.prototype.getRight=function(){return this.right},m.prototype.getTop=function(){return this.top},m.prototype.getBottom=function(){return this.bottom},m.prototype.isConnected=function(){return this.isConnected},m.prototype.add=function(a,b,c){if(null==b&&null==c){if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(a)>-1)throw"Node already in graph!";return a.owner=this,this.getNodes().push(a),a}if(!(this.getNodes().indexOf(b)>-1&&this.getNodes().indexOf(c)>-1))throw"Source or target not in graph!";if(b.owner!=c.owner||b.owner!=this)throw"Both owners must be this graph!";return b.owner!=c.owner?null:(a.source=b,a.target=c,a.isInterGraph=!1,this.getEdges().push(a),b.edges.push(a),c!=b&&c.edges.push(a),a)},m.prototype.remove=function(a){if(a instanceof h){if(null==a)throw"Node is null!";if(null==a.owner||a.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var b,c=a.edges.slice(),d=c.length,e=0;e<d;e++)(b=c[e]).isInterGraph?this.graphManager.remove(b):b.source.owner.remove(b);var f=this.nodes.indexOf(a);if(-1==f)throw"Node not in owner node list!";this.nodes.splice(f,1)}else if(a instanceof i){var b=a;if(null==b)throw"Edge is null!";if(null==b.source||null==b.target)throw"Source and/or target is null!";if(null==b.source.owner||null==b.target.owner||b.source.owner!=this||b.target.owner!=this)throw"Source and/or target owner is invalid!";var g=b.source.edges.indexOf(b),j=b.target.edges.indexOf(b);if(!(g>-1&&j>-1))throw"Source and/or target doesn't know this edge!";b.source.edges.splice(g,1),b.target!=b.source&&b.target.edges.splice(j,1);var f=b.source.owner.getEdges().indexOf(b);if(-1==f)throw"Not in owner's edge list!";b.source.owner.getEdges().splice(f,1)}},m.prototype.updateLeftTop=function(){for(var a,b,c,d=e.MAX_VALUE,f=e.MAX_VALUE,g=this.getNodes(),h=g.length,i=0;i<h;i++){var j=g[i];a=j.getTop(),b=j.getLeft(),d>a&&(d=a),f>b&&(f=b)}return d==e.MAX_VALUE?null:(c=void 0!=g[0].getParent().paddingLeft?g[0].getParent().paddingLeft:this.margin,this.left=f-c,this.top=d-c,new k(this.left,this.top))},m.prototype.updateBounds=function(a){for(var b,c,d,f,g,h=e.MAX_VALUE,i=-e.MAX_VALUE,k=e.MAX_VALUE,l=-e.MAX_VALUE,m=this.nodes,n=m.length,o=0;o<n;o++){var p=m[o];a&&null!=p.child&&p.updateBounds(),b=p.getLeft(),c=p.getRight(),d=p.getTop(),f=p.getBottom(),h>b&&(h=b),i<c&&(i=c),k>d&&(k=d),l<f&&(l=f)}var q=new j(h,k,i-h,l-k);h==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),g=void 0!=m[0].getParent().paddingLeft?m[0].getParent().paddingLeft:this.margin,this.left=q.x-g,this.right=q.x+q.width+g,this.top=q.y-g,this.bottom=q.y+q.height+g},m.calculateBounds=function(a){for(var b,c,d,f,g=e.MAX_VALUE,h=-e.MAX_VALUE,i=e.MAX_VALUE,k=-e.MAX_VALUE,l=a.length,m=0;m<l;m++){var n=a[m];b=n.getLeft(),c=n.getRight(),d=n.getTop(),f=n.getBottom(),g>b&&(g=b),h<c&&(h=c),i>d&&(i=d),k<f&&(k=f)}return new j(g,i,h-g,k-i)},m.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},m.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},m.prototype.calcEstimatedSize=function(){for(var a=0,b=this.nodes,c=b.length,d=0;d<c;d++)a+=b[d].calcEstimatedSize();return 0==a?this.estimatedSize=f.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=a/Math.sqrt(this.nodes.length),this.estimatedSize},m.prototype.updateConnected=function(){var a,b,c=this;if(0==this.nodes.length){this.isConnected=!0;return}var d=new l,e=new Set,f=this.nodes[0];for(f.withChildren().forEach(function(a){d.push(a),e.add(a)});0!==d.length;)for(var g=(a=(f=d.shift()).getEdges()).length,h=0;h<g;h++)null==(b=a[h].getOtherEndInGraph(f,this))||e.has(b)||b.withChildren().forEach(function(a){d.push(a),e.add(a)});if(this.isConnected=!1,e.size>=this.nodes.length){var i=0;e.forEach(function(a){a.owner==c&&i++}),i==this.nodes.length&&(this.isConnected=!0)}},a.exports=m},function(a,b,c){"use strict";var d,e=c(1);function f(a){d=c(5),this.layout=a,this.graphs=[],this.edges=[]}f.prototype.addRoot=function(){var a=this.layout.newGraph(),b=this.layout.newNode(null),c=this.add(a,b);return this.setRootGraph(c),this.rootGraph},f.prototype.add=function(a,b,c,d,e){if(null==c&&null==d&&null==e){if(null==a)throw"Graph is null!";if(null==b)throw"Parent node is null!";if(this.graphs.indexOf(a)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(a),null!=a.parent)throw"Already has a parent!";if(null!=b.child)throw"Already has a child!";return a.parent=b,b.child=a,a}e=c,d=b,c=a;var f=d.getOwner(),g=e.getOwner();if(null==f||f.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==g||g.getGraphManager()!=this)throw"Target not in this graph mgr!";if(f==g)return c.isInterGraph=!1,f.add(c,d,e);if(c.isInterGraph=!0,c.source=d,c.target=e,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),null==c.source||null==c.target)throw"Edge source and/or target is null!";if(-1!=c.source.edges.indexOf(c)||-1!=c.target.edges.indexOf(c))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c},f.prototype.remove=function(a){if(a instanceof d){if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(a!=this.rootGraph&&(null==a.parent||a.parent.graphManager!=this))throw"Invalid parent node!";for(var b,c,f=[],g=(f=f.concat(a.getEdges())).length,h=0;h<g;h++)b=f[h],a.remove(b);var i=[];g=(i=i.concat(a.getNodes())).length;for(var h=0;h<g;h++)c=i[h],a.remove(c);a==this.rootGraph&&this.setRootGraph(null);var j=this.graphs.indexOf(a);this.graphs.splice(j,1),a.parent=null}else if(a instanceof e){if(null==(b=a))throw"Edge is null!";if(!b.isInterGraph)throw"Not an inter-graph edge!";if(null==b.source||null==b.target)throw"Source and/or target is null!";if(-1==b.source.edges.indexOf(b)||-1==b.target.edges.indexOf(b))throw"Source and/or target doesn't know this edge!";var j=b.source.edges.indexOf(b);if(b.source.edges.splice(j,1),j=b.target.edges.indexOf(b),b.target.edges.splice(j,1),null==b.source.owner||null==b.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==b.source.owner.getGraphManager().edges.indexOf(b))throw"Not in owner graph manager's edge list!";var j=b.source.owner.getGraphManager().edges.indexOf(b);b.source.owner.getGraphManager().edges.splice(j,1)}},f.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},f.prototype.getGraphs=function(){return this.graphs},f.prototype.getAllNodes=function(){if(null==this.allNodes){for(var a=[],b=this.getGraphs(),c=b.length,d=0;d<c;d++)a=a.concat(b[d].getNodes());this.allNodes=a}return this.allNodes},f.prototype.resetAllNodes=function(){this.allNodes=null},f.prototype.resetAllEdges=function(){this.allEdges=null},f.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},f.prototype.getAllEdges=function(){if(null==this.allEdges){var a=[],b=this.getGraphs();b.length;for(var c=0;c<b.length;c++)a=a.concat(b[c].getEdges());a=a.concat(this.edges),this.allEdges=a}return this.allEdges},f.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},f.prototype.setAllNodesToApplyGravitation=function(a){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=a},f.prototype.getRoot=function(){return this.rootGraph},f.prototype.setRootGraph=function(a){if(a.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=a,null==a.parent&&(a.parent=this.layout.newNode("Root node"))},f.prototype.getLayout=function(){return this.layout},f.prototype.isOneAncestorOfOther=function(a,b){if(null==a||null==b)throw"assert failed";if(a==b)return!0;for(var c,d=a.getOwner();null!=(c=d.getParent());){if(c==b)return!0;if(null==(d=c.getOwner()))break}for(d=b.getOwner();null!=(c=d.getParent());){if(c==a)return!0;if(null==(d=c.getOwner()))break}return!1},f.prototype.calcLowestCommonAncestors=function(){for(var a,b,c,d,e,f=this.getAllEdges(),g=f.length,h=0;h<g;h++){if(b=(a=f[h]).source,c=a.target,a.lca=null,a.sourceInLca=b,a.targetInLca=c,b==c){a.lca=b.getOwner();continue}for(d=b.getOwner();null==a.lca;){for(a.targetInLca=c,e=c.getOwner();null==a.lca;){if(e==d){a.lca=e;break}if(e==this.rootGraph)break;if(null!=a.lca)throw"assert failed";a.targetInLca=e.getParent(),e=a.targetInLca.getOwner()}if(d==this.rootGraph)break;null==a.lca&&(a.sourceInLca=d.getParent(),d=a.sourceInLca.getOwner())}if(null==a.lca)throw"assert failed"}},f.prototype.calcLowestCommonAncestor=function(a,b){if(a==b)return a.getOwner();for(var c=a.getOwner();null!=c;){for(var d=b.getOwner();null!=d;){if(d==c)return d;d=d.getParent().getOwner()}c=c.getParent().getOwner()}return c},f.prototype.calcInclusionTreeDepths=function(a,b){null==a&&null==b&&(a=this.rootGraph,b=1);for(var c,d=a.getNodes(),e=d.length,f=0;f<e;f++)(c=d[f]).inclusionTreeDepth=b,null!=c.child&&this.calcInclusionTreeDepths(c.child,b+1)},f.prototype.includesInvalidEdge=function(){for(var a,b=this.edges.length,c=0;c<b;c++)if(a=this.edges[c],this.isOneAncestorOfOther(a.source,a.target))return!0;return!1},a.exports=f},function(a,b,c){"use strict";var d=c(0);function e(){}for(var f in d)e[f]=d[f];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=3*e.MAX_NODE_DISPLACEMENT_INCREMENTAL,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,a.exports=e},function(a,b,c){"use strict";var d=c(12);function e(){}e.calcSeparationAmount=function(a,b,c,d){if(!a.intersects(b))throw"assert failed";var e=[,,];this.decideDirectionsForOverlappingNodes(a,b,e),c[0]=Math.min(a.getRight(),b.getRight())-Math.max(a.x,b.x),c[1]=Math.min(a.getBottom(),b.getBottom())-Math.max(a.y,b.y),a.getX()<=b.getX()&&a.getRight()>=b.getRight()?c[0]+=Math.min(b.getX()-a.getX(),a.getRight()-b.getRight()):b.getX()<=a.getX()&&b.getRight()>=a.getRight()&&(c[0]+=Math.min(a.getX()-b.getX(),b.getRight()-a.getRight())),a.getY()<=b.getY()&&a.getBottom()>=b.getBottom()?c[1]+=Math.min(b.getY()-a.getY(),a.getBottom()-b.getBottom()):b.getY()<=a.getY()&&b.getBottom()>=a.getBottom()&&(c[1]+=Math.min(a.getY()-b.getY(),b.getBottom()-a.getBottom()));var f=Math.abs((b.getCenterY()-a.getCenterY())/(b.getCenterX()-a.getCenterX()));b.getCenterY()===a.getCenterY()&&b.getCenterX()===a.getCenterX()&&(f=1);var g=f*c[0],h=c[1]/f;c[0]<h?h=c[0]:g=c[1],c[0]=-1*e[0]*(h/2+d),c[1]=-1*e[1]*(g/2+d)},e.decideDirectionsForOverlappingNodes=function(a,b,c){a.getCenterX()<b.getCenterX()?c[0]=-1:c[0]=1,a.getCenterY()<b.getCenterY()?c[1]=-1:c[1]=1},e.getIntersection2=function(a,b,c){var d=a.getCenterX(),e=a.getCenterY(),f=b.getCenterX(),g=b.getCenterY();if(a.intersects(b))return c[0]=d,c[1]=e,c[2]=f,c[3]=g,!0;var h=a.getX(),i=a.getY(),j=a.getRight(),k=a.getX(),l=a.getBottom(),m=a.getRight(),n=a.getWidthHalf(),o=a.getHeightHalf(),p=b.getX(),q=b.getY(),r=b.getRight(),s=b.getX(),t=b.getBottom(),u=b.getRight(),v=b.getWidthHalf(),w=b.getHeightHalf(),x=!1,y=!1;if(d===f)e>g?(c[0]=d,c[1]=i,c[2]=f,c[3]=t):e<g&&(c[0]=d,c[1]=l,c[2]=f,c[3]=q);else if(e===g)d>f?(c[0]=h,c[1]=e,c[2]=r,c[3]=g):d<f&&(c[0]=j,c[1]=e,c[2]=p,c[3]=g);else{var z=a.height/a.width,A=b.height/b.width,B=(g-e)/(f-d),C=void 0,D=void 0,E=void 0,F=void 0,G=void 0,H=void 0;if(-z===B?(d>f?(c[0]=k,c[1]=l):(c[0]=j,c[1]=i),x=!0):z===B&&(d>f?(c[0]=h,c[1]=i):(c[0]=m,c[1]=l),x=!0),-A===B?(f>d?(c[2]=s,c[3]=t):(c[2]=r,c[3]=q),y=!0):A===B&&(f>d?(c[2]=p,c[3]=q):(c[2]=u,c[3]=t),y=!0),x&&y)return!1;if(d>f?e>g?(C=this.getCardinalDirection(z,B,4),D=this.getCardinalDirection(A,B,2)):(C=this.getCardinalDirection(-z,B,3),D=this.getCardinalDirection(-A,B,1)):e>g?(C=this.getCardinalDirection(-z,B,1),D=this.getCardinalDirection(-A,B,3)):(C=this.getCardinalDirection(z,B,2),D=this.getCardinalDirection(A,B,4)),!x)switch(C){case 1:F=i,E=d+-o/B,c[0]=E,c[1]=F;break;case 2:E=m,F=e+n*B,c[0]=E,c[1]=F;break;case 3:F=l,E=d+o/B,c[0]=E,c[1]=F;break;case 4:E=k,F=e+-n*B,c[0]=E,c[1]=F}if(!y)switch(D){case 1:H=q,G=f+-w/B,c[2]=G,c[3]=H;break;case 2:G=u,H=g+v*B,c[2]=G,c[3]=H;break;case 3:H=t,G=f+w/B,c[2]=G,c[3]=H;break;case 4:G=s,H=g+-v*B,c[2]=G,c[3]=H}}return!1},e.getCardinalDirection=function(a,b,c){return a>b?c:1+c%4},e.getIntersection=function(a,b,c,e){if(null==e)return this.getIntersection2(a,b,c);var f=a.x,g=a.y,h=b.x,i=b.y,j=c.x,k=c.y,l=e.x,m=e.y,n=void 0,o=void 0,p=void 0,q=void 0,r=void 0,s=void 0,t=void 0;return(n=i-g,p=f-h,r=h*g-f*i,o=m-k,q=j-l,s=l*k-j*m,0==(t=n*q-o*p))?null:new d((p*s-q*r)/t,(o*r-n*s)/t)},e.angleOfVector=function(a,b,c,d){var e=void 0;return a!==c?(e=Math.atan((d-b)/(c-a)),c<a?e+=Math.PI:d<b&&(e+=this.TWO_PI)):e=d<b?this.ONE_AND_HALF_PI:this.HALF_PI,e},e.doIntersect=function(a,b,c,d){var e=a.x,f=a.y,g=b.x,h=b.y,i=c.x,j=c.y,k=d.x,l=d.y,m=(g-e)*(l-j)-(k-i)*(h-f);if(0===m)return!1;var n=((l-j)*(k-e)+(i-k)*(l-f))/m,o=((f-h)*(k-e)+(g-e)*(l-f))/m;return 0<n&&n<1&&0<o&&o<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,a.exports=e},function(a,b,c){"use strict";function d(){}d.sign=function(a){return a>0?1:a<0?-1:0},d.floor=function(a){return a<0?Math.ceil(a):Math.floor(a)},d.ceil=function(a){return a<0?Math.floor(a):Math.ceil(a)},a.exports=d},function(a,b,c){"use strict";function d(){}d.MAX_VALUE=0x7fffffff,d.MIN_VALUE=-0x80000000,a.exports=d},function(a,b,c){"use strict";var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function(a){return{value:a,next:null,prev:null}},f=function(a,b,c,d){return null!==a?a.next=b:d.head=b,null!==c?c.prev=b:d.tail=b,b.prev=a,b.next=c,d.length++,b},g=function(a,b){var c=a.prev,d=a.next;return null!==c?c.next=d:b.head=d,null!==d?d.prev=c:b.tail=c,a.prev=a.next=null,b.length--,a};a.exports=function(){function a(b){var c=this;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");this.length=0,this.head=null,this.tail=null,null!=b&&b.forEach(function(a){return c.push(a)})}return d(a,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(a,b){return f(b.prev,e(a),b,this)}},{key:"insertAfter",value:function(a,b){return f(b,e(a),b.next,this)}},{key:"insertNodeBefore",value:function(a,b){return f(b.prev,a,b,this)}},{key:"insertNodeAfter",value:function(a,b){return f(b,a,b.next,this)}},{key:"push",value:function(a){return f(this.tail,e(a),null,this)}},{key:"unshift",value:function(a){return f(null,e(a),this.head,this)}},{key:"remove",value:function(a){return g(a,this)}},{key:"pop",value:function(){return g(this.tail,this).value}},{key:"popNode",value:function(){return g(this.tail,this)}},{key:"shift",value:function(){return g(this.head,this).value}},{key:"shiftNode",value:function(){return g(this.head,this)}},{key:"get_object_at",value:function(a){if(a<=this.length()){for(var b=1,c=this.head;b<a;)c=c.next,b++;return c.value}}},{key:"set_object_at",value:function(a,b){if(a<=this.length()){for(var c=1,d=this.head;c<a;)d=d.next,c++;d.value=b}}}]),a}()},function(a,b,c){"use strict";function d(a,b,c){this.x=null,this.y=null,null==a&&null==b&&null==c?(this.x=0,this.y=0):"number"==typeof a&&"number"==typeof b&&null==c?(this.x=a,this.y=b):"Point"==a.constructor.name&&null==b&&null==c&&(c=a,this.x=c.x,this.y=c.y)}d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.getLocation=function(){return new d(this.x,this.y)},d.prototype.setLocation=function(a,b,c){"Point"==a.constructor.name&&null==b&&null==c?(c=a,this.setLocation(c.x,c.y)):"number"==typeof a&&"number"==typeof b&&null==c&&(parseInt(a)==a&&parseInt(b)==b?this.move(a,b):(this.x=Math.floor(a+.5),this.y=Math.floor(b+.5)))},d.prototype.move=function(a,b){this.x=a,this.y=b},d.prototype.translate=function(a,b){this.x+=a,this.y+=b},d.prototype.equals=function(a){return"Point"==a.constructor.name?this.x==a.x&&this.y==a.y:this==a},d.prototype.toString=function(){return new d().constructor.name+"[x="+this.x+",y="+this.y+"]"},a.exports=d},function(a,b,c){"use strict";function d(a,b,c,d){this.x=0,this.y=0,this.width=0,this.height=0,null!=a&&null!=b&&null!=c&&null!=d&&(this.x=a,this.y=b,this.width=c,this.height=d)}d.prototype.getX=function(){return this.x},d.prototype.setX=function(a){this.x=a},d.prototype.getY=function(){return this.y},d.prototype.setY=function(a){this.y=a},d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(a){this.width=a},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(a){this.height=a},d.prototype.getRight=function(){return this.x+this.width},d.prototype.getBottom=function(){return this.y+this.height},d.prototype.intersects=function(a){return!(this.getRight()<a.x||this.getBottom()<a.y||a.getRight()<this.x||a.getBottom()<this.y)},d.prototype.getCenterX=function(){return this.x+this.width/2},d.prototype.getMinX=function(){return this.getX()},d.prototype.getMaxX=function(){return this.getX()+this.width},d.prototype.getCenterY=function(){return this.y+this.height/2},d.prototype.getMinY=function(){return this.getY()},d.prototype.getMaxY=function(){return this.getY()+this.height},d.prototype.getWidthHalf=function(){return this.width/2},d.prototype.getHeightHalf=function(){return this.height/2},a.exports=d},function(a,b,c){"use strict";var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function e(){}e.lastID=0,e.createID=function(a){return e.isPrimitive(a)?a:(null!=a.uniqueID||(a.uniqueID=e.getString(),e.lastID++),a.uniqueID)},e.getString=function(a){return null==a&&(a=e.lastID),"Object#"+a},e.isPrimitive=function(a){var b=void 0===a?"undefined":d(a);return null==a||"object"!=b&&"function"!=b},a.exports=e},function(a,b,c){"use strict";function d(a){if(!Array.isArray(a))return Array.from(a);for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}var e=c(0),f=c(6),g=c(3),h=c(1),i=c(5),j=c(4),k=c(17),l=c(27);function m(a){l.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new f(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=a&&(this.isRemoteUse=a)}m.RANDOM_SEED=1,m.prototype=Object.create(l.prototype),m.prototype.getGraphManager=function(){return this.graphManager},m.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},m.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},m.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},m.prototype.newGraphManager=function(){var a=new f(this);return this.graphManager=a,a},m.prototype.newGraph=function(a){return new i(null,this.graphManager,a)},m.prototype.newNode=function(a){return new g(this.graphManager,a)},m.prototype.newEdge=function(a){return new h(null,null,a)},m.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},m.prototype.runLayout=function(){var a;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),a=!this.checkLayoutSuccess()&&this.layout(),"during"!==e.ANIMATE&&(a&&!this.isSubLayout&&this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,a)},m.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},m.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var a=this.graphManager.getAllEdges(),b=0;b<a.length;b++)a[b];for(var c=this.graphManager.getRoot().getNodes(),b=0;b<c.length;b++)c[b];this.update(this.graphManager.getRoot())}},m.prototype.update=function(a){if(null==a)this.update2();else if(a instanceof g){if(null!=a.getChild())for(var b=a.getChild().getNodes(),c=0;c<b.length;c++)update(b[c]);null!=a.vGraphObject&&a.vGraphObject.update(a)}else a instanceof h?null!=a.vGraphObject&&a.vGraphObject.update(a):a instanceof i&&null!=a.vGraphObject&&a.vGraphObject.update(a)},m.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},m.prototype.transform=function(a){if(void 0==a)this.transform(new j(0,0));else{var b=new k,c=this.graphManager.getRoot().updateLeftTop();if(null!=c){b.setWorldOrgX(a.x),b.setWorldOrgY(a.y),b.setDeviceOrgX(c.x),b.setDeviceOrgY(c.y);for(var d=this.getAllNodes(),e=0;e<d.length;e++)d[e].transform(b)}}},m.prototype.positionNodesRandomly=function(a){if(void 0==a)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var b,c,d=a.getNodes(),e=0;e<d.length;e++)null==(c=(b=d[e]).getChild())||0==c.getNodes().length?b.scatter():(this.positionNodesRandomly(c),b.updateBounds())},m.prototype.getFlatForest=function(){for(var a=[],b=!0,c=this.graphManager.getRoot().getNodes(),e=!0,f=0;f<c.length;f++)null!=c[f].getChild()&&(e=!1);if(!e)return a;var g=new Set,h=[],i=new Map,j=[];for(j=j.concat(c);j.length>0&&b;){for(h.push(j[0]);h.length>0&&b;){var k=h[0];h.splice(0,1),g.add(k);for(var l=k.getEdges(),f=0;f<l.length;f++){var m=l[f].getOtherEnd(k);if(i.get(k)!=m)if(g.has(m)){b=!1;break}else h.push(m),i.set(m,k)}}if(b){var n=[].concat(d(g));a.push(n);for(var f=0;f<n.length;f++){var o=n[f],p=j.indexOf(o);p>-1&&j.splice(p,1)}g=new Set,i=new Map}else a=[]}return a},m.prototype.createDummyNodesForBendpoints=function(a){for(var b=[],c=a.source,d=this.graphManager.calcLowestCommonAncestor(a.source,a.target),e=0;e<a.bendpoints.length;e++){var f=this.newNode(null);f.setRect(new Point(0,0),new Dimension(1,1)),d.add(f);var g=this.newEdge(null);this.graphManager.add(g,c,f),b.add(f),c=f}var g=this.newEdge(null);return this.graphManager.add(g,c,a.target),this.edgeToDummyNodes.set(a,b),a.isInterGraph()?this.graphManager.remove(a):d.remove(a),b},m.prototype.createBendpointsFromDummyNodes=function(){var a=[];a=a.concat(this.graphManager.getAllEdges()),a=[].concat(d(this.edgeToDummyNodes.keys())).concat(a);for(var b=0;b<a.length;b++){var c=a[b];if(c.bendpoints.length>0){for(var e=this.edgeToDummyNodes.get(c),f=0;f<e.length;f++){var g=e[f],h=new j(g.getCenterX(),g.getCenterY()),i=c.bendpoints.get(f);i.x=h.x,i.y=h.y,g.getOwner().remove(g)}this.graphManager.add(c,c.source,c.target)}}},m.transform=function(a,b,c,d){if(void 0==c||void 0==d)return a<=50?(e=9*b/500,f=b/10):(e=9*b/50,f=-8*b),e*a+f;var e,f,g=b;return a<=50?g-=(b-b/c)/50*(50-a):g+=(b*d-b)/50*(a-50),g},m.findCenterOfTree=function(a){var b=[];b=b.concat(a);var c=[],d=new Map,e=!1,f=null;(1==b.length||2==b.length)&&(e=!0,f=b[0]);for(var g=0;g<b.length;g++){var h=b[g],i=h.getNeighborsList().size;d.set(h,h.getNeighborsList().size),1==i&&c.push(h)}var j=[];for(j=j.concat(c);!e;){var k=[];k=k.concat(j),j=[];for(var g=0;g<b.length;g++){var h=b[g],l=b.indexOf(h);l>=0&&b.splice(l,1),h.getNeighborsList().forEach(function(a){if(0>c.indexOf(a)){var b=d.get(a)-1;1==b&&j.push(a),d.set(a,b)}})}c=c.concat(j),(1==b.length||2==b.length)&&(e=!0,f=b[0])}return f},m.prototype.setGraphManager=function(a){this.graphManager=a},a.exports=m},function(a,b,c){"use strict";function d(){}d.seed=1,d.x=0,d.nextDouble=function(){return d.x=1e4*Math.sin(d.seed++),d.x-Math.floor(d.x)},a.exports=d},function(a,b,c){"use strict";var d=c(4);function e(a,b){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(a){this.lworldExtX=a},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(a){this.lworldExtY=a},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},e.prototype.transformX=function(a){var b=0,c=this.lworldExtX;return 0!=c&&(b=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/c),b},e.prototype.transformY=function(a){var b=0,c=this.lworldExtY;return 0!=c&&(b=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/c),b},e.prototype.inverseTransformX=function(a){var b=0,c=this.ldeviceExtX;return 0!=c&&(b=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/c),b},e.prototype.inverseTransformY=function(a){var b=0,c=this.ldeviceExtY;return 0!=c&&(b=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/c),b},e.prototype.inverseTransformPoint=function(a){return new d(this.inverseTransformX(a.x),this.inverseTransformY(a.y))},a.exports=e},function(a,b,c){"use strict";var d=c(15),e=c(7),f=c(0),g=c(8),h=c(9);function i(){d.call(this),this.useSmartIdealEdgeLengthCalculation=e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=e.DEFAULT_EDGE_LENGTH,this.springConstant=e.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=e.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=e.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=e.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*e.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=e.MAX_ITERATIONS}for(var j in i.prototype=Object.create(d.prototype),d)i[j]=d[j];i.prototype.initParameters=function(){d.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},i.prototype.calcIdealEdgeLengths=function(){for(var a,b,c,d,g,h,i=this.getGraphManager().getAllEdges(),j=0;j<i.length;j++)(a=i[j]).idealLength=this.idealEdgeLength,a.isInterGraph&&(c=a.getSource(),d=a.getTarget(),g=a.getSourceInLca().getEstimatedSize(),h=a.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(a.idealLength+=g+h-2*f.SIMPLE_NODE_SIZE),b=a.getLca().getInclusionTreeDepth(),a.idealLength+=e.DEFAULT_EDGE_LENGTH*e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+d.getInclusionTreeDepth()-2*b))},i.prototype.initSpringEmbedder=function(){var a=this.getAllNodes().length;this.incremental?(a>e.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(a-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(a>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(a-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var a,b=this.getAllEdges(),c=0;c<b.length;c++)a=b[c],this.calcSpringForce(a,a.idealLength)},i.prototype.calcRepulsionForces=function(){var a,b,c,d,f,g=!(arguments.length>0)||void 0===arguments[0]||arguments[0],h=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&g&&this.updateGrid(),f=new Set,a=0;a<i.length;a++)c=i[a],this.calculateRepulsionForceOfANode(c,f,g,h),f.add(c);else for(a=0;a<i.length;a++)for(c=i[a],b=a+1;b<i.length;b++)d=i[b],c.getOwner()==d.getOwner()&&this.calcRepulsionForce(c,d)},i.prototype.calcGravitationalForces=function(){for(var a,b=this.getAllNodesToApplyGravitation(),c=0;c<b.length;c++)a=b[c],this.calcGravitationalForce(a)},i.prototype.moveNodes=function(){for(var a=this.getAllNodes(),b=0;b<a.length;b++)a[b].move()},i.prototype.calcSpringForce=function(a,b){var c,d,e,f,g=a.getSource(),h=a.getTarget();if(this.uniformLeafNodeSizes&&null==g.getChild()&&null==h.getChild())a.updateLengthSimple();else if(a.updateLength(),a.isOverlapingSourceAndTarget)return;0!=(c=a.getLength())&&(e=(d=this.springConstant*(c-b))*(a.lengthX/c),f=d*(a.lengthY/c),g.springForceX+=e,g.springForceY+=f,h.springForceX-=e,h.springForceY-=f)},i.prototype.calcRepulsionForce=function(a,b){var c,d,f,i,j,k,l,m=a.getRect(),n=b.getRect(),o=[,,],p=[,,,,];if(m.intersects(n)){g.calcSeparationAmount(m,n,o,e.DEFAULT_EDGE_LENGTH/2),k=2*o[0],l=2*o[1];var q=a.noOfChildren*b.noOfChildren/(a.noOfChildren+b.noOfChildren);a.repulsionForceX-=q*k,a.repulsionForceY-=q*l,b.repulsionForceX+=q*k,b.repulsionForceY+=q*l}else this.uniformLeafNodeSizes&&null==a.getChild()&&null==b.getChild()?(c=n.getCenterX()-m.getCenterX(),d=n.getCenterY()-m.getCenterY()):(g.getIntersection(m,n,p),c=p[2]-p[0],d=p[3]-p[1]),Math.abs(c)<e.MIN_REPULSION_DIST&&(c=h.sign(c)*e.MIN_REPULSION_DIST),Math.abs(d)<e.MIN_REPULSION_DIST&&(d=h.sign(d)*e.MIN_REPULSION_DIST),i=Math.sqrt(f=c*c+d*d),k=(j=this.repulsionConstant*a.noOfChildren*b.noOfChildren/f)*c/i,l=j*d/i,a.repulsionForceX-=k,a.repulsionForceY-=l,b.repulsionForceX+=k,b.repulsionForceY+=l},i.prototype.calcGravitationalForce=function(a){var b,c,d,e,f,g,h,i;c=((b=a.getOwner()).getRight()+b.getLeft())/2,d=(b.getTop()+b.getBottom())/2,e=a.getCenterX()-c,f=a.getCenterY()-d,g=Math.abs(e)+a.getWidth()/2,h=Math.abs(f)+a.getHeight()/2,a.getOwner()==this.graphManager.getRoot()?(g>(i=b.getEstimatedSize()*this.gravityRangeFactor)||h>i)&&(a.gravitationForceX=-this.gravityConstant*e,a.gravitationForceY=-this.gravityConstant*f):(g>(i=b.getEstimatedSize()*this.compoundGravityRangeFactor)||h>i)&&(a.gravitationForceX=-this.gravityConstant*e*this.compoundGravityConstant,a.gravitationForceY=-this.gravityConstant*f*this.compoundGravityConstant)},i.prototype.isConverged=function(){var a,b=!1;return this.totalIterations>this.maxIterations/3&&(b=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),a=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,a||b},i.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},i.prototype.calcNoOfChildrenForAllNodes=function(){for(var a,b=this.graphManager.getAllNodes(),c=0;c<b.length;c++)(a=b[c]).noOfChildren=a.getNoOfChildren()},i.prototype.calcGrid=function(a){var b=0,c=0;b=parseInt(Math.ceil((a.getRight()-a.getLeft())/this.repulsionRange)),c=parseInt(Math.ceil((a.getBottom()-a.getTop())/this.repulsionRange));for(var d=Array(b),e=0;e<b;e++)d[e]=Array(c);for(var e=0;e<b;e++)for(var f=0;f<c;f++)d[e][f]=[];return d},i.prototype.addNodeToGrid=function(a,b,c){var d=0,e=0,f=0,g=0;d=parseInt(Math.floor((a.getRect().x-b)/this.repulsionRange)),e=parseInt(Math.floor((a.getRect().width+a.getRect().x-b)/this.repulsionRange)),f=parseInt(Math.floor((a.getRect().y-c)/this.repulsionRange)),g=parseInt(Math.floor((a.getRect().height+a.getRect().y-c)/this.repulsionRange));for(var h=d;h<=e;h++)for(var i=f;i<=g;i++)this.grid[h][i].push(a),a.setGridCoordinates(d,e,f,g)},i.prototype.updateGrid=function(){var a,b,c=this.getAllNodes();for(a=0,this.grid=this.calcGrid(this.graphManager.getRoot());a<c.length;a++)b=c[a],this.addNodeToGrid(b,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},i.prototype.calculateRepulsionForceOfANode=function(a,b,c,d){if(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&c||d){var f,g=new Set;a.surrounding=[];for(var h=this.grid,i=a.startX-1;i<a.finishX+2;i++)for(var j=a.startY-1;j<a.finishY+2;j++)if(!(i<0||j<0||i>=h.length||j>=h[0].length)){for(var k=0;k<h[i][j].length;k++)if(f=h[i][j][k],a.getOwner()==f.getOwner()&&a!=f&&!b.has(f)&&!g.has(f)){var l=Math.abs(a.getCenterX()-f.getCenterX())-(a.getWidth()/2+f.getWidth()/2),m=Math.abs(a.getCenterY()-f.getCenterY())-(a.getHeight()/2+f.getHeight()/2);l<=this.repulsionRange&&m<=this.repulsionRange&&g.add(f)}}a.surrounding=[].concat(function(a){if(!Array.isArray(a))return Array.from(a);for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}(g))}for(i=0;i<a.surrounding.length;i++)this.calcRepulsionForce(a,a.surrounding[i])},i.prototype.calcRepulsionRange=function(){return 0},a.exports=i},function(a,b,c){"use strict";var d=c(1),e=c(7);function f(a,b,c){d.call(this,a,b,c),this.idealLength=e.DEFAULT_EDGE_LENGTH}for(var g in f.prototype=Object.create(d.prototype),d)f[g]=d[g];a.exports=f},function(a,b,c){"use strict";var d=c(3);function e(a,b,c,e){d.call(this,a,b,c,e),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var f in e.prototype=Object.create(d.prototype),d)e[f]=d[f];e.prototype.setGridCoordinates=function(a,b,c,d){this.startX=a,this.finishX=b,this.startY=c,this.finishY=d},a.exports=e},function(a,b,c){"use strict";function d(a,b){this.width=0,this.height=0,null!==a&&null!==b&&(this.height=b,this.width=a)}d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(a){this.width=a},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(a){this.height=a},a.exports=d},function(a,b,c){"use strict";var d=c(14);function e(){this.map={},this.keys=[]}e.prototype.put=function(a,b){var c=d.createID(a);this.contains(c)||(this.map[c]=b,this.keys.push(a))},e.prototype.contains=function(a){return d.createID(a),null!=this.map[a]},e.prototype.get=function(a){var b=d.createID(a);return this.map[b]},e.prototype.keySet=function(){return this.keys},a.exports=e},function(a,b,c){"use strict";var d=c(14);function e(){this.set={}}e.prototype.add=function(a){var b=d.createID(a);this.contains(b)||(this.set[b]=a)},e.prototype.remove=function(a){delete this.set[d.createID(a)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(a){return this.set[d.createID(a)]==a},e.prototype.isEmpty=function(){return 0===this.size()},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(a){for(var b=Object.keys(this.set),c=b.length,d=0;d<c;d++)a.push(this.set[b[d]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(a){for(var b=a.length,c=0;c<b;c++){var d=a[c];this.add(d)}},a.exports=e},function(a,b,c){"use strict";var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=c(11);a.exports=function(){function a(b,c){if(!(this instanceof a))throw TypeError("Cannot call a class as a function");(null!==c||void 0!==c)&&(this.compareFunction=this._defaultCompareFunction);var d=void 0;d=b instanceof e?b.size():b.length,this._quicksort(b,0,d-1)}return d(a,[{key:"_quicksort",value:function(a,b,c){if(b<c){var d=this._partition(a,b,c);this._quicksort(a,b,d),this._quicksort(a,d+1,c)}}},{key:"_partition",value:function(a,b,c){for(var d=this._get(a,b),e=b,f=c;;){for(;this.compareFunction(d,this._get(a,f));)f--;for(;this.compareFunction(this._get(a,e),d);)e++;if(!(e<f))return f;this._swap(a,e,f),e++,f--}}},{key:"_get",value:function(a,b){return a instanceof e?a.get_object_at(b):a[b]}},{key:"_set",value:function(a,b,c){a instanceof e?a.set_object_at(b,c):a[b]=c}},{key:"_swap",value:function(a,b,c){var d=this._get(a,b);this._set(a,b,this._get(a,c)),this._set(a,c,d)}},{key:"_defaultCompareFunction",value:function(a,b){return b>a}}]),a}()},function(a,b,c){"use strict";var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();a.exports=function(){function a(b,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");this.sequence1=b,this.sequence2=c,this.match_score=d,this.mismatch_penalty=e,this.gap_penalty=f,this.iMax=b.length+1,this.jMax=c.length+1,this.grid=Array(this.iMax);for(var g=0;g<this.iMax;g++){this.grid[g]=Array(this.jMax);for(var h=0;h<this.jMax;h++)this.grid[g][h]=0}this.tracebackGrid=Array(this.iMax);for(var i=0;i<this.iMax;i++){this.tracebackGrid[i]=Array(this.jMax);for(var j=0;j<this.jMax;j++)this.tracebackGrid[i][j]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return d(a,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var a=1;a<this.jMax;a++)this.grid[0][a]=this.grid[0][a-1]+this.gap_penalty,this.tracebackGrid[0][a]=[!1,!1,!0];for(var b=1;b<this.iMax;b++)this.grid[b][0]=this.grid[b-1][0]+this.gap_penalty,this.tracebackGrid[b][0]=[!1,!0,!1];for(var c=1;c<this.iMax;c++)for(var d=1;d<this.jMax;d++){var e=[this.sequence1[c-1]===this.sequence2[d-1]?this.grid[c-1][d-1]+this.match_score:this.grid[c-1][d-1]+this.mismatch_penalty,this.grid[c-1][d]+this.gap_penalty,this.grid[c][d-1]+this.gap_penalty],f=this.arrayAllMaxIndexes(e);this.grid[c][d]=e[f[0]],this.tracebackGrid[c][d]=[f.includes(0),f.includes(1),f.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var a=[];for(a.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});a[0];){var b=a[0],c=this.tracebackGrid[b.pos[0]][b.pos[1]];c[0]&&a.push({pos:[b.pos[0]-1,b.pos[1]-1],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),c[1]&&a.push({pos:[b.pos[0]-1,b.pos[1]],seq1:this.sequence1[b.pos[0]-1]+b.seq1,seq2:"-"+b.seq2}),c[2]&&a.push({pos:[b.pos[0],b.pos[1]-1],seq1:"-"+b.seq1,seq2:this.sequence2[b.pos[1]-1]+b.seq2}),0===b.pos[0]&&0===b.pos[1]&&this.alignments.push({sequence1:b.seq1,sequence2:b.seq2}),a.shift()}return this.alignments}},{key:"getAllIndexes",value:function(a,b){for(var c=[],d=-1;-1!==(d=a.indexOf(b,d+1));)c.push(d);return c}},{key:"arrayAllMaxIndexes",value:function(a){return this.getAllIndexes(a,Math.max.apply(null,a))}}]),a}()},function(a,b,c){"use strict";var d=function(){};d.FDLayout=c(18),d.FDLayoutConstants=c(7),d.FDLayoutEdge=c(19),d.FDLayoutNode=c(20),d.DimensionD=c(21),d.HashMap=c(22),d.HashSet=c(23),d.IGeometry=c(8),d.IMath=c(9),d.Integer=c(10),d.Point=c(12),d.PointD=c(4),d.RandomSeed=c(16),d.RectangleD=c(13),d.Transform=c(17),d.UniqueIDGeneretor=c(14),d.Quicksort=c(24),d.LinkedList=c(11),d.LGraphObject=c(2),d.LGraph=c(5),d.LEdge=c(1),d.LGraphManager=c(6),d.LNode=c(3),d.Layout=c(15),d.LayoutConstants=c(0),d.NeedlemanWunsch=c(25),a.exports=d},function(a,b,c){"use strict";function d(){this.listeners=[]}var e=d.prototype;e.addListener=function(a,b){this.listeners.push({event:a,callback:b})},e.removeListener=function(a,b){for(var c=this.listeners.length;c>=0;c--){var d=this.listeners[c];d.event===a&&d.callback===b&&this.listeners.splice(c,1)}},e.emit=function(a,b){for(var c=0;c<this.listeners.length;c++){var d=this.listeners[c];a===d.event&&d.callback(b)}},a.exports=d}],b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,c),e.l=!0,e.exports}return c.m=a,c.c=b,c.i=function(a){return a},c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:d})},c.n=function(a){var b=a&&a.__esModule?function(){return a.default}:function(){return a};return c.d(b,"a",b),b},c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},c.p="",c(c.s=26)}()}};