paul-ai-assistant 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/README.md +249 -0
  2. package/dist/1.async.js +61 -0
  3. package/dist/1013.async.js +1 -0
  4. package/dist/123.async.js +258 -0
  5. package/dist/1387.async.js +321 -0
  6. package/dist/1481.async.js +1 -0
  7. package/dist/1548.async.js +2 -0
  8. package/dist/1815.async.js +3 -0
  9. package/dist/1819.async.js +1 -0
  10. package/dist/1851.async.js +1 -0
  11. package/dist/2491.async.js +132 -0
  12. package/dist/2517.async.js +247 -0
  13. package/dist/2678.async.js +1 -0
  14. package/dist/2856.async.js +267 -0
  15. package/dist/295.async.js +1 -0
  16. package/dist/3098.async.js +1 -0
  17. package/dist/3138.async.js +1 -0
  18. package/dist/34.async.js +137 -0
  19. package/dist/3472.async.js +1 -0
  20. package/dist/3614.async.js +25 -0
  21. package/dist/3959.async.js +69 -0
  22. package/dist/404.html +44 -0
  23. package/dist/4484.async.js +10 -0
  24. package/dist/4498.async.js +37 -0
  25. package/dist/4911.async.js +1 -0
  26. package/dist/4927.async.js +104 -0
  27. package/dist/5067.async.js +44 -0
  28. package/dist/5588.async.js +8 -0
  29. package/dist/5754.async.js +5 -0
  30. package/dist/6254.async.js +30286 -0
  31. package/dist/6355.async.js +10 -0
  32. package/dist/6662.async.js +177 -0
  33. package/dist/6680.async.js +2615 -0
  34. package/dist/6690.async.js +153 -0
  35. package/dist/7267.async.js +31 -0
  36. package/dist/7329.async.js +180 -0
  37. package/dist/7718.async.js +61 -0
  38. package/dist/7762.async.js +3 -0
  39. package/dist/7787.async.js +7 -0
  40. package/dist/7929.async.js +1 -0
  41. package/dist/8164.async.js +1 -0
  42. package/dist/834.async.js +221 -0
  43. package/dist/8456.async.js +146 -0
  44. package/dist/8542.async.js +25 -0
  45. package/dist/8749.async.js +1 -0
  46. package/dist/8914.async.js +66 -0
  47. package/dist/9570.async.js +65 -0
  48. package/dist/9725.async.js +18 -0
  49. package/dist/components/llm-trace-v2/index.html +44 -0
  50. package/dist/components/llm-trace-v3/index.html +44 -0
  51. package/dist/components/llm-trace-v3-advanced/index.html +44 -0
  52. package/dist/components/llm-trace-v3-examples/index.html +44 -0
  53. package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
  54. package/dist/demos.async.js +594 -0
  55. package/dist/demos__index.md.async.js +1 -0
  56. package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
  57. package/dist/demos__toolChatType__index.md.async.js +1 -0
  58. package/dist/docs/index.html +44 -0
  59. package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
  60. package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
  61. package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
  62. package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
  63. package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
  64. package/dist/docs__docs__index.md.async.js +108 -0
  65. package/dist/docs__index.md.async.js +1 -0
  66. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
  67. package/dist/index.html +44 -0
  68. package/dist/markdown-latex-mermaid/index.html +44 -0
  69. package/dist/meta__demos.async.js +4272 -0
  70. package/dist/meta__docs.async.js +3416 -0
  71. package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
  72. package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
  73. package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
  74. package/dist/preload_helper.js +1 -0
  75. package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  76. package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  77. package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  78. package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  79. package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  80. package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  81. package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  82. package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  83. package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  84. package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  85. package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  86. package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  87. package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  88. package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  89. package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  90. package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  91. package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  92. package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
  93. package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  94. package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  95. package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  96. package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  97. package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  98. package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
  99. package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  100. package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  101. package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  102. package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  103. package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  104. package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  105. package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
  106. package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
  107. package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  108. package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  109. package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  110. package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  111. package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  112. package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  113. package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  114. package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  115. package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  116. package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  117. package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  118. package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
  119. package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  120. package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  121. package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  122. package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  123. package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
  124. package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  125. package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  126. package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  127. package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  128. package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  129. package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  130. package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  131. package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  132. package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  133. package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  134. package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  135. package/dist/tool-chat-type/index.html +44 -0
  136. package/dist/umi.js +1534 -0
  137. package/dist/~demos/:id/index.html +44 -0
  138. package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
  139. package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
  140. package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
  141. package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
  142. package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
  143. package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
  144. package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
  145. package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
  146. package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
  147. package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
  148. package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
  149. package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
  150. package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
  151. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
  152. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
  153. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
  154. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
  155. package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
  156. package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
  157. package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
  158. package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
  159. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
  160. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
  161. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
  162. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
  163. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
  164. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
  165. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
  166. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
  167. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
  168. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
  169. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
  170. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
  171. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
  172. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
  173. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
  174. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
  175. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
  176. package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
  177. package/es/AssistantChat/AssistantChatApp/const.js +105 -0
  178. package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
  179. package/es/AssistantChat/AssistantChatApp/index.js +281 -0
  180. package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
  181. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
  182. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
  183. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
  184. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
  185. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
  186. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
  187. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
  188. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
  189. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
  190. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
  191. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
  192. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
  193. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
  194. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
  195. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
  196. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
  197. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
  198. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
  199. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
  200. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
  201. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
  202. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
  203. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
  204. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
  205. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
  206. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
  207. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
  208. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
  209. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
  210. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
  211. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
  212. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
  213. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
  214. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
  215. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
  216. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
  217. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
  218. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
  219. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
  220. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
  221. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
  222. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
  223. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
  224. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
  225. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
  226. package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
  227. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
  228. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
  229. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
  230. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
  231. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
  232. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
  233. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
  234. package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
  235. package/es/AssistantChat/AssistantChatCard/index.js +10 -0
  236. package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
  237. package/es/AssistantChat/AssistantChatInput/index.js +172 -0
  238. package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
  239. package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
  240. package/es/AssistantChat/AssistantToolApp/const.js +22 -0
  241. package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
  242. package/es/AssistantChat/AssistantToolApp/index.js +159 -0
  243. package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
  244. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
  245. package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
  246. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
  247. package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
  248. package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
  249. package/es/AssistantChat/AssistentError/index.d.ts +5 -0
  250. package/es/AssistantChat/AssistentError/index.js +138 -0
  251. package/es/AssistantChat/index.d.ts +6 -0
  252. package/es/AssistantChat/index.js +166 -0
  253. package/es/AssistantChat/index.scss +30 -0
  254. package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
  255. package/es/AssistantChat/logCallback/aTagLog.js +23 -0
  256. package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
  257. package/es/AssistantChat/logCallback/copyLog.js +63 -0
  258. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
  259. package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
  260. package/es/ErrorBoundary/index.d.ts +22 -0
  261. package/es/ErrorBoundary/index.js +69 -0
  262. package/es/common/registerAssistChatForm.d.ts +2 -0
  263. package/es/common/registerAssistChatForm.js +14 -0
  264. package/es/components/AgentCardSubmit/index.d.ts +20 -0
  265. package/es/components/AgentCardSubmit/index.js +90 -0
  266. package/es/components/AgentResult/index.d.ts +8 -0
  267. package/es/components/AgentResult/index.js +77 -0
  268. package/es/components/AgentResult/index.scss +11 -0
  269. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
  270. package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
  271. package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
  272. package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
  273. package/es/components/AgentSchemaForm/_interface.js +13 -0
  274. package/es/components/AgentSchemaForm/index.d.ts +9 -0
  275. package/es/components/AgentSchemaForm/index.js +190 -0
  276. package/es/components/AgentSchemaForm/index.scss +37 -0
  277. package/es/components/AgentText/index.d.ts +4 -0
  278. package/es/components/AgentText/index.js +8 -0
  279. package/es/components/AgentText/index.scss +5 -0
  280. package/es/components/AigcTips/index.d.ts +9 -0
  281. package/es/components/AigcTips/index.js +17 -0
  282. package/es/components/AigcTips/index.scss +6 -0
  283. package/es/components/ArrayInput/index.d.ts +3 -0
  284. package/es/components/ArrayInput/index.js +36 -0
  285. package/es/components/AssistantDrawer/index.d.ts +22 -0
  286. package/es/components/AssistantDrawer/index.js +112 -0
  287. package/es/components/AssistantDrawer/index.scss +96 -0
  288. package/es/components/EmptyIcon/index.d.ts +3 -0
  289. package/es/components/EmptyIcon/index.js +124 -0
  290. package/es/components/HeaderSvgIcon/index.d.ts +3 -0
  291. package/es/components/HeaderSvgIcon/index.js +1 -0
  292. package/es/components/InspectionCard/index.d.ts +66 -0
  293. package/es/components/InspectionCard/index.js +246 -0
  294. package/es/components/InspectionCard/index.module.less +193 -0
  295. package/es/components/InspectionCard/result.d.ts +13 -0
  296. package/es/components/InspectionCard/result.js +26 -0
  297. package/es/components/InspectionCard/result.module.less +36 -0
  298. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
  299. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
  300. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
  301. package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
  302. package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
  303. package/es/components/LlmMarkDown/index.d.ts +30 -0
  304. package/es/components/LlmMarkDown/index.js +202 -0
  305. package/es/components/LlmMarkDown/index.scss +23 -0
  306. package/es/components/LlmModelChange/index.d.ts +57 -0
  307. package/es/components/LlmModelChange/index.js +138 -0
  308. package/es/components/LlmModelChange/index.scss +60 -0
  309. package/es/components/LlmReference/index.d.ts +25 -0
  310. package/es/components/LlmReference/index.js +147 -0
  311. package/es/components/LlmReference/index.scss +92 -0
  312. package/es/components/LlmTitle/index.d.ts +14 -0
  313. package/es/components/LlmTitle/index.js +26 -0
  314. package/es/components/LlmTitle/index.scss +20 -0
  315. package/es/components/LlmTrace/index.d.ts +17 -0
  316. package/es/components/LlmTrace/index.js +119 -0
  317. package/es/components/LlmTrace/index.scss +79 -0
  318. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
  319. package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
  320. package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
  321. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
  322. package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
  323. package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
  324. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
  325. package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
  326. package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
  327. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
  328. package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
  329. package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
  330. package/es/components/LlmTraceComponents/const.d.ts +25 -0
  331. package/es/components/LlmTraceComponents/const.js +23 -0
  332. package/es/components/LlmTraceV2/index.d.ts +56 -0
  333. package/es/components/LlmTraceV2/index.js +384 -0
  334. package/es/components/LlmTraceV2/index.scss +115 -0
  335. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
  336. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
  337. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
  338. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
  339. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
  340. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
  341. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
  342. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
  343. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
  344. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
  345. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
  346. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
  347. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
  348. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
  349. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
  350. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
  351. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
  352. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
  353. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
  354. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
  355. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
  356. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
  357. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
  358. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
  359. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
  360. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
  361. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
  362. package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
  363. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
  364. package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
  365. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
  366. package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
  367. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
  368. package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
  369. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
  370. package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
  371. package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
  372. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
  373. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
  374. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
  375. package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
  376. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
  377. package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
  378. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
  379. package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
  380. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
  381. package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
  382. package/es/components/LlmTraceV3/index.d.ts +11 -0
  383. package/es/components/LlmTraceV3/index.js +173 -0
  384. package/es/components/LlmTraceV3/index.scss +333 -0
  385. package/es/components/LlmTraceV3/types.d.ts +263 -0
  386. package/es/components/LlmTraceV3/types.js +108 -0
  387. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
  388. package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
  389. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
  390. package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
  391. package/es/components/MarkDown/index.d.ts +11 -0
  392. package/es/components/MarkDown/index.js +222 -0
  393. package/es/components/MarkDown/index.scss +179 -0
  394. package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
  395. package/es/components/ModelSelect/ModeDropdown.js +118 -0
  396. package/es/components/ModelSelect/const.d.ts +30 -0
  397. package/es/components/ModelSelect/const.js +61 -0
  398. package/es/components/ModelSelect/index.d.ts +4 -0
  399. package/es/components/ModelSelect/index.js +45 -0
  400. package/es/components/ModelSelect/index.scss +121 -0
  401. package/es/components/PaulButtonGroup/Select.d.ts +3 -0
  402. package/es/components/PaulButtonGroup/Select.js +109 -0
  403. package/es/components/PaulButtonGroup/index.d.ts +16 -0
  404. package/es/components/PaulButtonGroup/index.js +209 -0
  405. package/es/components/PaulButtonGroup/index.scss +19 -0
  406. package/es/components/PopAuth/index.d.ts +4 -0
  407. package/es/components/PopAuth/index.js +62 -0
  408. package/es/components/PopAuth/index.scss +16 -0
  409. package/es/components/ReferenceInfoItem/index.d.ts +49 -0
  410. package/es/components/ReferenceInfoItem/index.js +43 -0
  411. package/es/components/ReferenceInfoItem/index.scss +46 -0
  412. package/es/components/ReferenceTag/index.d.ts +11 -0
  413. package/es/components/ReferenceTag/index.js +27 -0
  414. package/es/components/ReferenceTag/index.scss +19 -0
  415. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
  416. package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
  417. package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
  418. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
  419. package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
  420. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
  421. package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
  422. package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
  423. package/es/components/SchemaInput/index.d.ts +8 -0
  424. package/es/components/SchemaInput/index.js +30 -0
  425. package/es/components/SelectBlurry/index.d.ts +3 -0
  426. package/es/components/SelectBlurry/index.js +74 -0
  427. package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
  428. package/es/components/SendMessageSvgIcon/index.js +70 -0
  429. package/es/components/ShareContent/index.d.ts +21 -0
  430. package/es/components/ShareContent/index.js +176 -0
  431. package/es/components/ShareContent/index.scss +36 -0
  432. package/es/components/ShareModal/index.d.ts +15 -0
  433. package/es/components/ShareModal/index.js +185 -0
  434. package/es/components/ShareModal/index.scss +199 -0
  435. package/es/components/ShareOperationBar/index.d.ts +4 -0
  436. package/es/components/ShareOperationBar/index.js +152 -0
  437. package/es/components/ShareOperationBar/index.scss +47 -0
  438. package/es/components/TextContent/index.d.ts +14 -0
  439. package/es/components/TextContent/index.js +37 -0
  440. package/es/components/TextContent/index.scss +31 -0
  441. package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
  442. package/es/components/TraceMarkdownWithCard/index.js +21 -0
  443. package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
  444. package/es/components/TraceWithAgent/index.d.ts +23 -0
  445. package/es/components/TraceWithAgent/index.js +93 -0
  446. package/es/components/TraceWithAgent/index.less +74 -0
  447. package/es/constants/assistChatEvent.d.ts +33 -0
  448. package/es/constants/assistChatEvent.js +33 -0
  449. package/es/constants/common.d.ts +71 -0
  450. package/es/constants/common.js +90 -0
  451. package/es/constants/logTrace.d.ts +3 -0
  452. package/es/constants/logTrace.js +4 -0
  453. package/es/constants/reference.d.ts +109 -0
  454. package/es/constants/reference.js +111 -0
  455. package/es/constants/traceDataStatus.d.ts +34 -0
  456. package/es/constants/traceDataStatus.js +37 -0
  457. package/es/context/index.d.ts +13 -0
  458. package/es/context/index.js +785 -0
  459. package/es/context/utils/messages.d.ts +33 -0
  460. package/es/context/utils/messages.js +194 -0
  461. package/es/context/utils/send.d.ts +29 -0
  462. package/es/context/utils/send.js +187 -0
  463. package/es/context/utils/tool.d.ts +19 -0
  464. package/es/context/utils/tool.js +89 -0
  465. package/es/index.d.ts +37 -0
  466. package/es/index.js +63 -0
  467. package/es/index.scss +39 -0
  468. package/es/interface/IAgent.d.ts +12 -0
  469. package/es/interface/IAgent.js +1 -0
  470. package/es/interface/IChatBottom.d.ts +69 -0
  471. package/es/interface/IChatBottom.js +1 -0
  472. package/es/interface/IChatCard.d.ts +40 -0
  473. package/es/interface/IChatCard.js +1 -0
  474. package/es/interface/IChatContext.d.ts +59 -0
  475. package/es/interface/IChatContext.js +1 -0
  476. package/es/interface/IChatRef.d.ts +75 -0
  477. package/es/interface/IChatRef.js +1 -0
  478. package/es/interface/IGuessQuestion.d.ts +43 -0
  479. package/es/interface/IGuessQuestion.js +15 -0
  480. package/es/interface/IMessage.d.ts +17 -0
  481. package/es/interface/IMessage.js +1 -0
  482. package/es/interface/ISend.d.ts +19 -0
  483. package/es/interface/ISend.js +1 -0
  484. package/es/interface/index.d.ts +272 -0
  485. package/es/interface/index.js +7 -0
  486. package/es/utils/CSEIconTool.d.ts +8 -0
  487. package/es/utils/CSEIconTool.js +6 -0
  488. package/es/utils/apushAssistant.d.ts +73 -0
  489. package/es/utils/apushAssistant.js +518 -0
  490. package/es/utils/clientPlugin.d.ts +3 -0
  491. package/es/utils/clientPlugin.js +73 -0
  492. package/es/utils/common.d.ts +10 -0
  493. package/es/utils/common.js +40 -0
  494. package/es/utils/copyToClipboard.d.ts +2 -0
  495. package/es/utils/copyToClipboard.js +70 -0
  496. package/es/utils/formDataFormat.d.ts +3 -0
  497. package/es/utils/formDataFormat.js +55 -0
  498. package/es/utils/formatData.d.ts +14 -0
  499. package/es/utils/formatData.js +104 -0
  500. package/es/utils/log.d.ts +18 -0
  501. package/es/utils/log.js +37 -0
  502. package/es/utils/parseUrl.d.ts +9 -0
  503. package/es/utils/parseUrl.js +48 -0
  504. package/es/utils/screenshot.d.ts +45 -0
  505. package/es/utils/screenshot.js +650 -0
  506. package/es/utils/send.d.ts +10 -0
  507. package/es/utils/send.js +8 -0
  508. package/es/utils/uploadImage.d.ts +9 -0
  509. package/es/utils/uploadImage.js +226 -0
  510. package/es/utils/websocketLogger.d.ts +176 -0
  511. package/es/utils/websocketLogger.js +267 -0
  512. package/package.json +166 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[1481],{71481:function(e,a,_){_.d(a,{createTreemapServices:function(){return s.K}});var s=_(56895),n=_(9423)}}]);
@@ -0,0 +1,2 @@
1
+ !(function(){var tt=Object.defineProperty,et=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var z=(_,R,G)=>R in _?tt(_,R,{enumerable:!0,configurable:!0,writable:!0,value:G}):_[R]=G,Q=(_,R)=>{for(var G in R||(R={}))it.call(R,G)&&z(_,G,R[G]);if(J)for(var G of J(R))nt.call(R,G)&&z(_,G,R[G]);return _},j=(_,R)=>et(_,rt(R));var $=(_,R,G)=>new Promise((D,u)=>{var o=i=>{try{t(G.next(i))}catch(h){u(h)}},e=i=>{try{t(G.throw(i))}catch(h){u(h)}},t=i=>i.done?D(i.value):Promise.resolve(i.value).then(o,e);t((G=G.apply(_,R)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[1548],{84182:function(_,R,G){(function(u,o){_.exports=o(G(82241))})(this,function(D){return function(u){var o={};function e(t){if(o[t])return o[t].exports;var i=o[t]={i:t,l:!1,exports:{}};return u[t].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=u,e.c=o,e.i=function(t){return t},e.d=function(t,i,h){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:h})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=7)}([function(u,o){u.exports=D},function(u,o,e){"use strict";var t=e(0).FDLayoutConstants;function i(){}for(var h in t)i[h]=t[h];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=t.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,u.exports=i},function(u,o,e){"use strict";var t=e(0).FDLayoutEdge;function i(n,f,r){t.call(this,n,f,r)}i.prototype=Object.create(t.prototype);for(var h in t)i[h]=t[h];u.exports=i},function(u,o,e){"use strict";var t=e(0).LGraph;function i(n,f,r){t.call(this,n,f,r)}i.prototype=Object.create(t.prototype);for(var h in t)i[h]=t[h];u.exports=i},function(u,o,e){"use strict";var t=e(0).LGraphManager;function i(n){t.call(this,n)}i.prototype=Object.create(t.prototype);for(var h in t)i[h]=t[h];u.exports=i},function(u,o,e){"use strict";var t=e(0).FDLayoutNode,i=e(0).IMath;function h(f,r,a,l){t.call(this,f,r,a,l)}h.prototype=Object.create(t.prototype);for(var n in t)h[n]=t[n];h.prototype.move=function(){var f=this.graphManager.getLayout();this.displacementX=f.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=f.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementX=f.coolingFactor*f.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementY=f.coolingFactor*f.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),f.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},h.prototype.propogateDisplacementToChildren=function(f,r){for(var a=this.getChild().getNodes(),l,p=0;p<a.length;p++)l=a[p],l.getChild()==null?(l.moveBy(f,r),l.displacementX+=f,l.displacementY+=r):l.propogateDisplacementToChildren(f,r)},h.prototype.setPred1=function(f){this.pred1=f},h.prototype.getPred1=function(){return pred1},h.prototype.getPred2=function(){return pred2},h.prototype.setNext=function(f){this.next=f},h.prototype.getNext=function(){return next},h.prototype.setProcessed=function(f){this.processed=f},h.prototype.isProcessed=function(){return processed},u.exports=h},function(u,o,e){"use strict";var t=e(0).FDLayout,i=e(4),h=e(3),n=e(5),f=e(2),r=e(1),a=e(0).FDLayoutConstants,l=e(0).LayoutConstants,p=e(0).Point,g=e(0).PointD,L=e(0).Layout,v=e(0).Integer,y=e(0).IGeometry,E=e(0).LGraph,O=e(0).Transform;function N(){t.call(this),this.toBeTiled={}}N.prototype=Object.create(t.prototype);for(var M in t)N[M]=t[M];N.prototype.newGraphManager=function(){var s=new i(this);return this.graphManager=s,s},N.prototype.newGraph=function(s){return new h(null,this.graphManager,s)},N.prototype.newNode=function(s){return new n(this.graphManager,s)},N.prototype.newEdge=function(s){return new f(null,null,s)},N.prototype.initParameters=function(){t.prototype.initParameters.call(this,arguments),this.isSubLayout||(r.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=a.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=a.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.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/a.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=a.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},N.prototype.layout=function(){var s=l.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.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(r.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var c=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(I){return c.has(I)});this.graphManager.setAllNodesToApplyGravitation(d)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var c=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(T){return c.has(T)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},N.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%a.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(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 s=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(c),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=a.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=a.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),c={},d=0;d<s.length;d++){var T=s[d].rect,A=s[d].id;c[A]={id:A,x:T.getCenterX(),y:T.getCenterY(),w:T.width,h:T.height}}return c},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(a.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},N.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],c,d=this.graphManager.getGraphs(),T=d.length,A;for(A=0;A<T;A++)c=d[A],c.updateConnected(),c.isConnected||(s=s.concat(c.getNodes()));return s},N.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var c=new Set,d;for(d=0;d<s.length;d++){var T=s[d];if(!c.has(T)){var A=T.getSource(),I=T.getTarget();if(A==I)T.getBendpoints().push(new g),T.getBendpoints().push(new g),this.createDummyNodesForBendpoints(T),c.add(T);else{var m=[];if(m=m.concat(A.getEdgeListToNode(I)),m=m.concat(I.getEdgeListToNode(A)),!c.has(m[0])){if(m.length>1){var C;for(C=0;C<m.length;C++){var F=m[C];F.getBendpoints().push(new g),this.createDummyNodesForBendpoints(F)}}m.forEach(function(S){c.add(S)})}}}if(c.size==s.length)break}},N.prototype.positionNodesRadially=function(s){for(var c=new p(0,0),d=Math.ceil(Math.sqrt(s.length)),T=0,A=0,I=0,m=new g(0,0),C=0;C<s.length;C++){C%d==0&&(I=0,A=T,C!=0&&(A+=r.DEFAULT_COMPONENT_SEPERATION),T=0);var F=s[C],S=L.findCenterOfTree(F);c.x=I,c.y=A,m=N.radialLayout(F,S,c),m.y>T&&(T=Math.floor(m.y)),I=Math.floor(m.x+r.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(l.WORLD_CENTER_X-m.x/2,l.WORLD_CENTER_Y-m.y/2))},N.radialLayout=function(s,c,d){var T=Math.max(this.maxDiagonalInTree(s),r.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(c,null,0,359,0,T);var A=E.calculateBounds(s),I=new O;I.setDeviceOrgX(A.getMinX()),I.setDeviceOrgY(A.getMinY()),I.setWorldOrgX(d.x),I.setWorldOrgY(d.y);for(var m=0;m<s.length;m++){var C=s[m];C.transform(I)}var F=new g(A.getMaxX(),A.getMaxY());return I.inverseTransformPoint(F)},N.branchRadialLayout=function(s,c,d,T,A,I){var m=(T-d+1)/2;m<0&&(m+=180);var C=(m+d)%360,F=C*y.TWO_PI/360,S=Math.cos(F),b=A*Math.cos(F),H=A*Math.sin(F);s.setCenter(b,H);var x=[];x=x.concat(s.getEdges());var P=x.length;c!=null&&P--;for(var Y=0,w=x.length,U,X=s.getEdgesBetween(c);X.length>1;){var W=X[0];X.splice(0,1);var Z=x.indexOf(W);Z>=0&&x.splice(Z,1),w--,P--}c!=null?U=(x.indexOf(X[0])+1)%w:U=0;for(var B=Math.abs(T-d)/P,V=U;Y!=P;V=++V%w){var k=x[V].getOtherEnd(s);if(k!=c){var K=(d+Y*B)%360,q=(K+B)%360;N.branchRadialLayout(k,s,K,q,A+I,I),Y++}}},N.maxDiagonalInTree=function(s){for(var c=v.MIN_VALUE,d=0;d<s.length;d++){var T=s[d],A=T.getDiagonal();A>c&&(c=A)}return c},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var s=this,c={};this.memberGroups={},this.idToDummyNode={};for(var d=[],T=this.graphManager.getAllNodes(),A=0;A<T.length;A++){var I=T[A],m=I.getParent();this.getNodeDegreeWithChildren(I)===0&&(m.id==null||!this.getToBeTiled(m))&&d.push(I)}for(var A=0;A<d.length;A++){var I=d[A],C=I.getParent().id;typeof c[C]=="undefined"&&(c[C]=[]),c[C]=c[C].concat(I)}Object.keys(c).forEach(function(F){if(c[F].length>1){var S="DummyCompound_"+F;s.memberGroups[S]=c[F];var b=c[F][0].getParent(),H=new n(s.graphManager);H.id=S,H.paddingLeft=b.paddingLeft||0,H.paddingRight=b.paddingRight||0,H.paddingBottom=b.paddingBottom||0,H.paddingTop=b.paddingTop||0,s.idToDummyNode[S]=H;var x=s.getGraphManager().add(s.newGraph(),H),P=b.getChild();P.add(H);for(var Y=0;Y<c[F].length;Y++){var w=c[F][Y];P.remove(w),x.add(w)}}})},N.prototype.clearCompounds=function(){var s={},c={};this.performDFSOnCompounds();for(var d=0;d<this.compoundOrder.length;d++)c[this.compoundOrder[d].id]=this.compoundOrder[d],s[this.compoundOrder[d].id]=[].concat(this.compoundOrder[d].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[d].getChild()),this.compoundOrder[d].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,c)},N.prototype.clearZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(d){var T=s.idToDummyNode[d];c[d]=s.tileNodes(s.memberGroups[d],T.paddingLeft+T.paddingRight),T.rect.width=c[d].width,T.rect.height=c[d].height})},N.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var c=this.compoundOrder[s],d=c.id,T=c.paddingLeft,A=c.paddingTop;this.adjustLocations(this.tiledMemberPack[d],c.rect.x,c.rect.y,T,A)}},N.prototype.repopulateZeroDegreeMembers=function(){var s=this,c=this.tiledZeroDegreePack;Object.keys(c).forEach(function(d){var T=s.idToDummyNode[d],A=T.paddingLeft,I=T.paddingTop;s.adjustLocations(c[d],T.rect.x,T.rect.y,A,I)})},N.prototype.getToBeTiled=function(s){var c=s.id;if(this.toBeTiled[c]!=null)return this.toBeTiled[c];var d=s.getChild();if(d==null)return this.toBeTiled[c]=!1,!1;for(var T=d.getNodes(),A=0;A<T.length;A++){var I=T[A];if(this.getNodeDegree(I)>0)return this.toBeTiled[c]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[c]=!1,!1}return this.toBeTiled[c]=!0,!0},N.prototype.getNodeDegree=function(s){for(var c=s.id,d=s.getEdges(),T=0,A=0;A<d.length;A++){var I=d[A];I.getSource().id!==I.getTarget().id&&(T=T+1)}return T},N.prototype.getNodeDegreeWithChildren=function(s){var c=this.getNodeDegree(s);if(s.getChild()==null)return c;for(var d=s.getChild().getNodes(),T=0;T<d.length;T++){var A=d[T];c+=this.getNodeDegreeWithChildren(A)}return c},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(s){for(var c=0;c<s.length;c++){var d=s[c];d.getChild()!=null&&this.fillCompexOrderByDFS(d.getChild().getNodes()),this.getToBeTiled(d)&&this.compoundOrder.push(d)}},N.prototype.adjustLocations=function(s,c,d,T,A){c+=T,d+=A;for(var I=c,m=0;m<s.rows.length;m++){var C=s.rows[m];c=I;for(var F=0,S=0;S<C.length;S++){var b=C[S];b.rect.x=c,b.rect.y=d,c+=b.rect.width+s.horizontalPadding,b.rect.height>F&&(F=b.rect.height)}d+=F+s.verticalPadding}},N.prototype.tileCompoundMembers=function(s,c){var d=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var A=c[T];d.tiledMemberPack[T]=d.tileNodes(s[T],A.paddingLeft+A.paddingRight),A.rect.width=d.tiledMemberPack[T].width,A.rect.height=d.tiledMemberPack[T].height})},N.prototype.tileNodes=function(s,c){var d=r.TILING_PADDING_VERTICAL,T=r.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:c,verticalPadding:d,horizontalPadding:T};s.sort(function(C,F){return C.rect.width*C.rect.height>F.rect.width*F.rect.height?-1:C.rect.width*C.rect.height<F.rect.width*F.rect.height?1:0});for(var I=0;I<s.length;I++){var m=s[I];A.rows.length==0?this.insertNodeToRow(A,m,0,c):this.canAddHorizontal(A,m.rect.width,m.rect.height)?this.insertNodeToRow(A,m,this.getShortestRowIndex(A),c):this.insertNodeToRow(A,m,A.rows.length,c),this.shiftToLastRow(A)}return A},N.prototype.insertNodeToRow=function(s,c,d,T){var A=T;if(d==s.rows.length){var I=[];s.rows.push(I),s.rowWidth.push(A),s.rowHeight.push(0)}var m=s.rowWidth[d]+c.rect.width;s.rows[d].length>0&&(m+=s.horizontalPadding),s.rowWidth[d]=m,s.width<m&&(s.width=m);var C=c.rect.height;d>0&&(C+=s.verticalPadding);var F=0;C>s.rowHeight[d]&&(F=s.rowHeight[d],s.rowHeight[d]=C,F=s.rowHeight[d]-F),s.height+=F,s.rows[d].push(c)},N.prototype.getShortestRowIndex=function(s){for(var c=-1,d=Number.MAX_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]<d&&(c=T,d=s.rowWidth[T]);return c},N.prototype.getLongestRowIndex=function(s){for(var c=-1,d=Number.MIN_VALUE,T=0;T<s.rows.length;T++)s.rowWidth[T]>d&&(c=T,d=s.rowWidth[T]);return c},N.prototype.canAddHorizontal=function(s,c,d){var T=this.getShortestRowIndex(s);if(T<0)return!0;var A=s.rowWidth[T];if(A+s.horizontalPadding+c<=s.width)return!0;var I=0;s.rowHeight[T]<d&&T>0&&(I=d+s.verticalPadding-s.rowHeight[T]);var m;s.width-A>=c+s.horizontalPadding?m=(s.height+I)/(A+c+s.horizontalPadding):m=(s.height+I)/s.width,I=d+s.verticalPadding;var C;return s.width<c?C=(s.height+I)/c:C=(s.height+I)/s.width,C<1&&(C=1/C),m<1&&(m=1/m),m<C},N.prototype.shiftToLastRow=function(s){var c=this.getLongestRowIndex(s),d=s.rowWidth.length-1,T=s.rows[c],A=T[T.length-1],I=A.width+s.horizontalPadding;if(s.width-s.rowWidth[d]>I&&c!=d){T.splice(-1,1),s.rows[d].push(A),s.rowWidth[c]=s.rowWidth[c]-I,s.rowWidth[d]=s.rowWidth[d]+I,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var m=Number.MIN_VALUE,C=0;C<T.length;C++)T[C].height>m&&(m=T[C].height);c>0&&(m+=s.verticalPadding);var F=s.rowHeight[c]+s.rowHeight[d];s.rowHeight[c]=m,s.rowHeight[d]<A.height+s.verticalPadding&&(s.rowHeight[d]=A.height+s.verticalPadding);var S=s.rowHeight[c]+s.rowHeight[d];s.height+=S-F,this.shiftToLastRow(s)}},N.prototype.tilingPreLayout=function(){r.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){r.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var s=[],c=!0,d;c;){var T=this.graphManager.getAllNodes(),A=[];c=!1;for(var I=0;I<T.length;I++)d=T[I],d.getEdges().length==1&&!d.getEdges()[0].isInterGraph&&d.getChild()==null&&(A.push([d,d.getEdges()[0],d.getOwner()]),c=!0);if(c==!0){for(var m=[],C=0;C<A.length;C++)A[C][0].getEdges().length==1&&(m.push(A[C]),A[C][0].getOwner().remove(A[C][0]));s.push(m),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},N.prototype.growTree=function(s){for(var c=s.length,d=s[c-1],T,A=0;A<d.length;A++)T=d[A],this.findPlaceforPrunedNode(T),T[2].add(T[0]),T[2].add(T[1],T[1].source,T[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},N.prototype.findPlaceforPrunedNode=function(s){var c,d,T=s[0];T==s[1].source?d=s[1].target:d=s[1].source;var A=d.startX,I=d.finishX,m=d.startY,C=d.finishY,F=0,S=0,b=0,H=0,x=[F,b,S,H];if(m>0)for(var P=A;P<=I;P++)x[0]+=this.grid[P][m-1].length+this.grid[P][m].length-1;if(I<this.grid.length-1)for(var P=m;P<=C;P++)x[1]+=this.grid[I+1][P].length+this.grid[I][P].length-1;if(C<this.grid[0].length-1)for(var P=A;P<=I;P++)x[2]+=this.grid[P][C+1].length+this.grid[P][C].length-1;if(A>0)for(var P=m;P<=C;P++)x[3]+=this.grid[A-1][P].length+this.grid[A][P].length-1;for(var Y=v.MAX_VALUE,w,U,X=0;X<x.length;X++)x[X]<Y?(Y=x[X],w=1,U=X):x[X]==Y&&w++;if(w==3&&Y==0)x[0]==0&&x[1]==0&&x[2]==0?c=1:x[0]==0&&x[1]==0&&x[3]==0?c=0:x[0]==0&&x[2]==0&&x[3]==0?c=3:x[1]==0&&x[2]==0&&x[3]==0&&(c=2);else if(w==2&&Y==0){var W=Math.floor(Math.random()*2);x[0]==0&&x[1]==0?W==0?c=0:c=1:x[0]==0&&x[2]==0?W==0?c=0:c=2:x[0]==0&&x[3]==0?W==0?c=0:c=3:x[1]==0&&x[2]==0?W==0?c=1:c=2:x[1]==0&&x[3]==0?W==0?c=1:c=3:W==0?c=2:c=3}else if(w==4&&Y==0){var W=Math.floor(Math.random()*4);c=W}else c=U;c==0?T.setCenter(d.getCenterX(),d.getCenterY()-d.getHeight()/2-a.DEFAULT_EDGE_LENGTH-T.getHeight()/2):c==1?T.setCenter(d.getCenterX()+d.getWidth()/2+a.DEFAULT_EDGE_LENGTH+T.getWidth()/2,d.getCenterY()):c==2?T.setCenter(d.getCenterX(),d.getCenterY()+d.getHeight()/2+a.DEFAULT_EDGE_LENGTH+T.getHeight()/2):T.setCenter(d.getCenterX()-d.getWidth()/2-a.DEFAULT_EDGE_LENGTH-T.getWidth()/2,d.getCenterY())},u.exports=N},function(u,o,e){"use strict";var t={};t.layoutBase=e(0),t.CoSEConstants=e(1),t.CoSEEdge=e(2),t.CoSEGraph=e(3),t.CoSEGraphManager=e(4),t.CoSELayout=e(6),t.CoSENode=e(5),u.exports=t}])})},14607:function(_,R,G){(function(u,o){_.exports=o(G(84182))})(this,function(D){return function(u){var o={};function e(t){if(o[t])return o[t].exports;var i=o[t]={i:t,l:!1,exports:{}};return u[t].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=u,e.c=o,e.i=function(t){return t},e.d=function(t,i,h){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:h})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=1)}([function(u,o){u.exports=D},function(u,o,e){"use strict";var t=e(0).layoutBase.LayoutConstants,i=e(0).layoutBase.FDLayoutConstants,h=e(0).CoSEConstants,n=e(0).CoSELayout,f=e(0).CoSENode,r=e(0).layoutBase.PointD,a=e(0).layoutBase.DimensionD,l={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 p(y,E){var O={};for(var N in y)O[N]=y[N];for(var N in E)O[N]=E[N];return O}function g(y){this.options=p(l,y),L(this.options)}var L=function(E){E.nodeRepulsion!=null&&(h.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=E.nodeRepulsion),E.idealEdgeLength!=null&&(h.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=E.idealEdgeLength),E.edgeElasticity!=null&&(h.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=E.edgeElasticity),E.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=E.nestingFactor),E.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=E.gravity),E.numIter!=null&&(h.MAX_ITERATIONS=i.MAX_ITERATIONS=E.numIter),E.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=E.gravityRange),E.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=E.gravityCompound),E.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=E.gravityRangeCompound),E.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=E.initialEnergyOnIncremental),E.quality=="draft"?t.QUALITY=0:E.quality=="proof"?t.QUALITY=2:t.QUALITY=1,h.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=E.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=!E.randomize,h.ANIMATE=i.ANIMATE=t.ANIMATE=E.animate,h.TILE=E.tile,h.TILING_PADDING_VERTICAL=typeof E.tilingPaddingVertical=="function"?E.tilingPaddingVertical.call():E.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof E.tilingPaddingHorizontal=="function"?E.tilingPaddingHorizontal.call():E.tilingPaddingHorizontal};g.prototype.run=function(){var y,E,O=this.options,N=this.idToLNode={},M=this.layout=new n,s=this;s.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var c=M.newGraphManager();this.gm=c;var d=this.options.eles.nodes(),T=this.options.eles.edges();this.root=c.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(d),M);for(var A=0;A<T.length;A++){var I=T[A],m=this.idToLNode[I.data("source")],C=this.idToLNode[I.data("target")];if(m!==C&&m.getEdgesBetween(C).length==0){var F=c.add(M.newEdge(),m,C);F.id=I.id()}}var S=function(x,P){typeof x=="number"&&(x=P);var Y=x.data("id"),w=s.idToLNode[Y];return{x:w.getRect().getCenterX(),y:w.getRect().getCenterY()}},b=function H(){for(var x=function(){O.fit&&O.cy.fit(O.eles,O.padding),y||(y=!0,s.cy.one("layoutready",O.ready),s.cy.trigger({type:"layoutready",layout:s}))},P=s.options.refresh,Y,w=0;w<P&&!Y;w++)Y=s.stopped||s.layout.tick();if(Y){M.checkLayoutSuccess()&&!M.isSubLayout&&M.doPostLayout(),M.tilingPostLayout&&M.tilingPostLayout(),M.isLayoutFinished=!0,s.options.eles.nodes().positions(S),x(),s.cy.one("layoutstop",s.options.stop),s.cy.trigger({type:"layoutstop",layout:s}),E&&cancelAnimationFrame(E),y=!1;return}var U=s.layout.getPositionsData();O.eles.nodes().positions(function(X,W){if(typeof X=="number"&&(X=W),!X.isParent()){for(var Z=X.id(),B=U[Z],V=X;B==null&&(B=U[V.data("parent")]||U["DummyCompound_"+V.data("parent")],U[Z]=B,V=V.parent()[0],V!=null););return B!=null?{x:B.x,y:B.y}:{x:X.position("x"),y:X.position("y")}}}),x(),E=requestAnimationFrame(H)};return M.addListener("layoutstarted",function(){s.options.animate==="during"&&(E=requestAnimationFrame(b))}),M.runLayout(),this.options.animate!=="during"&&(s.options.eles.nodes().not(":parent").layoutPositions(s,s.options,S),y=!1),this},g.prototype.getTopMostNodes=function(y){for(var E={},O=0;O<y.length;O++)E[y[O].id()]=!0;var N=y.filter(function(M,s){typeof M=="number"&&(M=s);for(var c=M.parent()[0];c!=null;){if(E[c.id()])return!1;c=c.parent()[0]}return!0});return N},g.prototype.processChildrenList=function(y,E,O){for(var N=E.length,M=0;M<N;M++){var s=E[M],c=s.children(),d,T=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?d=y.add(new f(O.graphManager,new r(s.position("x")-T.w/2,s.position("y")-T.h/2),new a(parseFloat(T.w),parseFloat(T.h)))):d=y.add(new f(this.graphManager)),d.id=s.data("id"),d.paddingLeft=parseInt(s.css("padding")),d.paddingTop=parseInt(s.css("padding")),d.paddingRight=parseInt(s.css("padding")),d.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var A=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,I=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,m=s.css("text-halign");d.labelWidth=A,d.labelHeight=I,d.labelPos=m}if(this.idToLNode[s.data("id")]=d,isNaN(d.rect.x)&&(d.rect.x=0),isNaN(d.rect.y)&&(d.rect.y=0),c!=null&&c.length>0){var C;C=O.getGraphManager().add(O.newGraph(),d),this.processChildrenList(C,c,O)}}},g.prototype.stop=function(){return this.stopped=!0,this};var v=function(E){E("layout","cose-bilkent",g)};typeof cytoscape!="undefined"&&v(cytoscape),u.exports=v}])})},82241:function(_){(function(G,D){_.exports=D()})(this,function(){return function(R){var G={};function D(u){if(G[u])return G[u].exports;var o=G[u]={i:u,l:!1,exports:{}};return R[u].call(o.exports,o,o.exports,D),o.l=!0,o.exports}return D.m=R,D.c=G,D.i=function(u){return u},D.d=function(u,o,e){D.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:e})},D.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return D.d(o,"a",o),o},D.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},D.p="",D(D.s=26)}([function(R,G,D){"use strict";function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,R.exports=u},function(R,G,D){"use strict";var u=D(2),o=D(8),e=D(9);function t(h,n,f){u.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=h,this.target=n}t.prototype=Object.create(u.prototype);for(var i in u)t[i]=u[i];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(h){if(this.source===h)return this.target;if(this.target===h)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(h,n){for(var f=this.getOtherEnd(h),r=n.getGraphManager().getRoot();;){if(f.getOwner()==n)return f;if(f.getOwner()==r)break;f=f.getOwner().getParent()}return null},t.prototype.updateLength=function(){var h=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),h),this.isOverlapingSourceAndTarget||(this.lengthX=h[0]-h[2],this.lengthY=h[1]-h[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},R.exports=t},function(R,G,D){"use strict";function u(o){this.vGraphObject=o}R.exports=u},function(R,G,D){"use strict";var u=D(2),o=D(10),e=D(13),t=D(0),i=D(16),h=D(4);function n(r,a,l,p){l==null&&p==null&&(p=a),u.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,l!=null&&a!=null?this.rect=new e(a.x,a.y,l.width,l.height):this.rect=new e}n.prototype=Object.create(u.prototype);for(var f in u)n[f]=u[f];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,a){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=a.width,this.rect.height=a.height},n.prototype.setCenter=function(r,a){this.rect.x=r-this.rect.width/2,this.rect.y=a-this.rect.height/2},n.prototype.setLocation=function(r,a){this.rect.x=r,this.rect.y=a},n.prototype.moveBy=function(r,a){this.rect.x+=r,this.rect.y+=a},n.prototype.getEdgeListToNode=function(r){var a=[],l,p=this;return p.edges.forEach(function(g){if(g.target==r){if(g.source!=p)throw"Incorrect edge source!";a.push(g)}}),a},n.prototype.getEdgesBetween=function(r){var a=[],l,p=this;return p.edges.forEach(function(g){if(!(g.source==p||g.target==p))throw"Incorrect edge source and/or target";(g.target==r||g.source==r)&&a.push(g)}),a},n.prototype.getNeighborsList=function(){var r=new Set,a=this;return a.edges.forEach(function(l){if(l.source==a)r.add(l.target);else{if(l.target!=a)throw"Incorrect incidency!";r.add(l.source)}}),r},n.prototype.withChildren=function(){var r=new Set,a,l;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),g=0;g<p.length;g++)a=p[g],l=a.withChildren(),l.forEach(function(L){r.add(L)});return r},n.prototype.getNoOfChildren=function(){var r=0,a;if(this.child==null)r=1;else for(var l=this.child.getNodes(),p=0;p<l.length;p++)a=l[p],r+=a.getNoOfChildren();return r==0&&(r=1),r},n.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},n.prototype.calcEstimatedSize=function(){return this.child==null?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)},n.prototype.scatter=function(){var r,a,l=-t.INITIAL_WORLD_BOUNDARY,p=t.INITIAL_WORLD_BOUNDARY;r=t.WORLD_CENTER_X+i.nextDouble()*(p-l)+l;var g=-t.INITIAL_WORLD_BOUNDARY,L=t.INITIAL_WORLD_BOUNDARY;a=t.WORLD_CENTER_Y+i.nextDouble()*(L-g)+g,this.rect.x=r,this.rect.y=a},n.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var r=this.getChild();if(r.updateBounds(!0),this.rect.x=r.getLeft(),this.rect.y=r.getTop(),this.setWidth(r.getRight()-r.getLeft()),this.setHeight(r.getBottom()-r.getTop()),t.NODE_DIMENSIONS_INCLUDE_LABELS){var a=r.getRight()-r.getLeft(),l=r.getBottom()-r.getTop();this.labelWidth>a&&(this.rect.x-=(this.labelWidth-a)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var a=this.rect.x;a>t.WORLD_BOUNDARY?a=t.WORLD_BOUNDARY:a<-t.WORLD_BOUNDARY&&(a=-t.WORLD_BOUNDARY);var l=this.rect.y;l>t.WORLD_BOUNDARY?l=t.WORLD_BOUNDARY:l<-t.WORLD_BOUNDARY&&(l=-t.WORLD_BOUNDARY);var p=new h(a,l),g=r.inverseTransformPoint(p);this.setLocation(g.x,g.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},R.exports=n},function(R,G,D){"use strict";function u(o,e){o==null&&e==null?(this.x=0,this.y=0):(this.x=o,this.y=e)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(o){this.x=o},u.prototype.setY=function(o){this.y=o},u.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},R.exports=u},function(R,G,D){"use strict";var u=D(2),o=D(10),e=D(0),t=D(6),i=D(3),h=D(1),n=D(13),f=D(12),r=D(11);function a(p,g,L){u.call(this,L),this.estimatedSize=o.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,g!=null&&g instanceof t?this.graphManager=g:g!=null&&g instanceof Layout&&(this.graphManager=g.graphManager)}a.prototype=Object.create(u.prototype);for(var l in u)a[l]=u[l];a.prototype.getNodes=function(){return this.nodes},a.prototype.getEdges=function(){return this.edges},a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getParent=function(){return this.parent},a.prototype.getLeft=function(){return this.left},a.prototype.getRight=function(){return this.right},a.prototype.getTop=function(){return this.top},a.prototype.getBottom=function(){return this.bottom},a.prototype.isConnected=function(){return this.isConnected},a.prototype.add=function(p,g,L){if(g==null&&L==null){var v=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var y=p;if(!(this.getNodes().indexOf(g)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(g.owner==L.owner&&g.owner==this))throw"Both owners must be this graph!";return g.owner!=L.owner?null:(y.source=g,y.target=L,y.isInterGraph=!1,this.getEdges().push(y),g.edges.push(y),L!=g&&L.edges.push(y),y)}},a.prototype.remove=function(p){var g=p;if(p instanceof i){if(g==null)throw"Node is null!";if(!(g.owner!=null&&g.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=g.edges.slice(),v,y=L.length,E=0;E<y;E++)v=L[E],v.isInterGraph?this.graphManager.remove(v):v.source.owner.remove(v);var O=this.nodes.indexOf(g);if(O==-1)throw"Node not in owner node list!";this.nodes.splice(O,1)}else if(p instanceof h){var v=p;if(v==null)throw"Edge is null!";if(!(v.source!=null&&v.target!=null))throw"Source and/or target is null!";if(!(v.source.owner!=null&&v.target.owner!=null&&v.source.owner==this&&v.target.owner==this))throw"Source and/or target owner is invalid!";var N=v.source.edges.indexOf(v),M=v.target.edges.indexOf(v);if(!(N>-1&&M>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(N,1),v.target!=v.source&&v.target.edges.splice(M,1);var O=v.source.owner.getEdges().indexOf(v);if(O==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(O,1)}},a.prototype.updateLeftTop=function(){for(var p=o.MAX_VALUE,g=o.MAX_VALUE,L,v,y,E=this.getNodes(),O=E.length,N=0;N<O;N++){var M=E[N];L=M.getTop(),v=M.getLeft(),p>L&&(p=L),g>v&&(g=v)}return p==o.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?y=E[0].getParent().paddingLeft:y=this.margin,this.left=g-y,this.top=p-y,new f(this.left,this.top))},a.prototype.updateBounds=function(p){for(var g=o.MAX_VALUE,L=-o.MAX_VALUE,v=o.MAX_VALUE,y=-o.MAX_VALUE,E,O,N,M,s,c=this.nodes,d=c.length,T=0;T<d;T++){var A=c[T];p&&A.child!=null&&A.updateBounds(),E=A.getLeft(),O=A.getRight(),N=A.getTop(),M=A.getBottom(),g>E&&(g=E),L<O&&(L=O),v>N&&(v=N),y<M&&(y=M)}var I=new n(g,v,L-g,y-v);g==o.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),c[0].getParent().paddingLeft!=null?s=c[0].getParent().paddingLeft:s=this.margin,this.left=I.x-s,this.right=I.x+I.width+s,this.top=I.y-s,this.bottom=I.y+I.height+s},a.calculateBounds=function(p){for(var g=o.MAX_VALUE,L=-o.MAX_VALUE,v=o.MAX_VALUE,y=-o.MAX_VALUE,E,O,N,M,s=p.length,c=0;c<s;c++){var d=p[c];E=d.getLeft(),O=d.getRight(),N=d.getTop(),M=d.getBottom(),g>E&&(g=E),L<O&&(L=O),v>N&&(v=N),y<M&&(y=M)}var T=new n(g,v,L-g,y-v);return T},a.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.prototype.calcEstimatedSize=function(){for(var p=0,g=this.nodes,L=g.length,v=0;v<L;v++){var y=g[v];p+=y.calcEstimatedSize()}return p==0?this.estimatedSize=e.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},a.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var g=new r,L=new Set,v=this.nodes[0],y,E,O=v.withChildren();for(O.forEach(function(T){g.push(T),L.add(T)});g.length!==0;){v=g.shift(),y=v.getEdges();for(var N=y.length,M=0;M<N;M++){var s=y[M];if(E=s.getOtherEndInGraph(v,this),E!=null&&!L.has(E)){var c=E.withChildren();c.forEach(function(T){g.push(T),L.add(T)})}}}if(this.isConnected=!1,L.size>=this.nodes.length){var d=0;L.forEach(function(T){T.owner==p&&d++}),d==this.nodes.length&&(this.isConnected=!0)}},R.exports=a},function(R,G,D){"use strict";var u,o=D(1);function e(t){u=D(5),this.layout=t,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var t=this.layout.newGraph(),i=this.layout.newNode(null),h=this.add(t,i);return this.setRootGraph(h),this.rootGraph},e.prototype.add=function(t,i,h,n,f){if(h==null&&n==null&&f==null){if(t==null)throw"Graph is null!";if(i==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(i.child!=null)throw"Already has a child!";return t.parent=i,i.child=t,t}else{f=h,n=i,h=t;var r=n.getOwner(),a=f.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(a!=null&&a.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==a)return h.isInterGraph=!1,r.add(h,n,f);if(h.isInterGraph=!0,h.source=n,h.target=f,this.edges.indexOf(h)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(h),!(h.source!=null&&h.target!=null))throw"Edge source and/or target is null!";if(!(h.source.edges.indexOf(h)==-1&&h.target.edges.indexOf(h)==-1))throw"Edge already in source and/or target incidency list!";return h.source.edges.push(h),h.target.edges.push(h),h}},e.prototype.remove=function(t){if(t instanceof u){var i=t;if(i.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(i==this.rootGraph||i.parent!=null&&i.parent.graphManager==this))throw"Invalid parent node!";var h=[];h=h.concat(i.getEdges());for(var n,f=h.length,r=0;r<f;r++)n=h[r],i.remove(n);var a=[];a=a.concat(i.getNodes());var l;f=a.length;for(var r=0;r<f;r++)l=a[r],i.remove(l);i==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(i);this.graphs.splice(p,1),i.parent=null}else if(t instanceof o){if(n=t,n==null)throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(!(n.source!=null&&n.target!=null))throw"Source and/or target is null!";if(!(n.source.edges.indexOf(n)!=-1&&n.target.edges.indexOf(n)!=-1))throw"Source and/or target doesn't know this edge!";var p=n.source.edges.indexOf(n);if(n.source.edges.splice(p,1),p=n.target.edges.indexOf(n),n.target.edges.splice(p,1),!(n.source.owner!=null&&n.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(n.source.owner.getGraphManager().edges.indexOf(n)==-1)throw"Not in owner graph manager's edge list!";var p=n.source.owner.getGraphManager().edges.indexOf(n);n.source.owner.getGraphManager().edges.splice(p,1)}},e.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},e.prototype.getGraphs=function(){return this.graphs},e.prototype.getAllNodes=function(){if(this.allNodes==null){for(var t=[],i=this.getGraphs(),h=i.length,n=0;n<h;n++)t=t.concat(i[n].getNodes());this.allNodes=t}return this.allNodes},e.prototype.resetAllNodes=function(){this.allNodes=null},e.prototype.resetAllEdges=function(){this.allEdges=null},e.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},e.prototype.getAllEdges=function(){if(this.allEdges==null){for(var t=[],i=this.getGraphs(),h=i.length,n=0;n<i.length;n++)t=t.concat(i[n].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},e.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},e.prototype.setAllNodesToApplyGravitation=function(t){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=t},e.prototype.getRoot=function(){return this.rootGraph},e.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,t.parent==null&&(t.parent=this.layout.newNode("Root node"))},e.prototype.getLayout=function(){return this.layout},e.prototype.isOneAncestorOfOther=function(t,i){if(!(t!=null&&i!=null))throw"assert failed";if(t==i)return!0;var h=t.getOwner(),n;do{if(n=h.getParent(),n==null)break;if(n==i)return!0;if(h=n.getOwner(),h==null)break}while(!0);h=i.getOwner();do{if(n=h.getParent(),n==null)break;if(n==t)return!0;if(h=n.getOwner(),h==null)break}while(!0);return!1},e.prototype.calcLowestCommonAncestors=function(){for(var t,i,h,n,f,r=this.getAllEdges(),a=r.length,l=0;l<a;l++){if(t=r[l],i=t.source,h=t.target,t.lca=null,t.sourceInLca=i,t.targetInLca=h,i==h){t.lca=i.getOwner();continue}for(n=i.getOwner();t.lca==null;){for(t.targetInLca=h,f=h.getOwner();t.lca==null;){if(f==n){t.lca=f;break}if(f==this.rootGraph)break;if(t.lca!=null)throw"assert failed";t.targetInLca=f.getParent(),f=t.targetInLca.getOwner()}if(n==this.rootGraph)break;t.lca==null&&(t.sourceInLca=n.getParent(),n=t.sourceInLca.getOwner())}if(t.lca==null)throw"assert failed"}},e.prototype.calcLowestCommonAncestor=function(t,i){if(t==i)return t.getOwner();var h=t.getOwner();do{if(h==null)break;var n=i.getOwner();do{if(n==null)break;if(n==h)return n;n=n.getParent().getOwner()}while(!0);h=h.getParent().getOwner()}while(!0);return h},e.prototype.calcInclusionTreeDepths=function(t,i){t==null&&i==null&&(t=this.rootGraph,i=1);for(var h,n=t.getNodes(),f=n.length,r=0;r<f;r++)h=n[r],h.inclusionTreeDepth=i,h.child!=null&&this.calcInclusionTreeDepths(h.child,i+1)},e.prototype.includesInvalidEdge=function(){for(var t,i=this.edges.length,h=0;h<i;h++)if(t=this.edges[h],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},R.exports=e},function(R,G,D){"use strict";var u=D(0);function o(){}for(var e in u)o[e]=u[e];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,R.exports=o},function(R,G,D){"use strict";var u=D(12);function o(){}o.calcSeparationAmount=function(e,t,i,h){if(!e.intersects(t))throw"assert failed";var n=new Array(2);this.decideDirectionsForOverlappingNodes(e,t,n),i[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),i[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var f=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(f=1);var r=f*i[0],a=i[1]/f;i[0]<a?a=i[0]:r=i[1],i[0]=-1*n[0]*(a/2+h),i[1]=-1*n[1]*(r/2+h)},o.decideDirectionsForOverlappingNodes=function(e,t,i){e.getCenterX()<t.getCenterX()?i[0]=-1:i[0]=1,e.getCenterY()<t.getCenterY()?i[1]=-1:i[1]=1},o.getIntersection2=function(e,t,i){var h=e.getCenterX(),n=e.getCenterY(),f=t.getCenterX(),r=t.getCenterY();if(e.intersects(t))return i[0]=h,i[1]=n,i[2]=f,i[3]=r,!0;var a=e.getX(),l=e.getY(),p=e.getRight(),g=e.getX(),L=e.getBottom(),v=e.getRight(),y=e.getWidthHalf(),E=e.getHeightHalf(),O=t.getX(),N=t.getY(),M=t.getRight(),s=t.getX(),c=t.getBottom(),d=t.getRight(),T=t.getWidthHalf(),A=t.getHeightHalf(),I=!1,m=!1;if(h===f){if(n>r)return i[0]=h,i[1]=l,i[2]=f,i[3]=c,!1;if(n<r)return i[0]=h,i[1]=L,i[2]=f,i[3]=N,!1}else if(n===r){if(h>f)return i[0]=a,i[1]=n,i[2]=M,i[3]=r,!1;if(h<f)return i[0]=p,i[1]=n,i[2]=O,i[3]=r,!1}else{var C=e.height/e.width,F=t.height/t.width,S=(r-n)/(f-h),b=void 0,H=void 0,x=void 0,P=void 0,Y=void 0,w=void 0;if(-C===S?h>f?(i[0]=g,i[1]=L,I=!0):(i[0]=p,i[1]=l,I=!0):C===S&&(h>f?(i[0]=a,i[1]=l,I=!0):(i[0]=v,i[1]=L,I=!0)),-F===S?f>h?(i[2]=s,i[3]=c,m=!0):(i[2]=M,i[3]=N,m=!0):F===S&&(f>h?(i[2]=O,i[3]=N,m=!0):(i[2]=d,i[3]=c,m=!0)),I&&m)return!1;if(h>f?n>r?(b=this.getCardinalDirection(C,S,4),H=this.getCardinalDirection(F,S,2)):(b=this.getCardinalDirection(-C,S,3),H=this.getCardinalDirection(-F,S,1)):n>r?(b=this.getCardinalDirection(-C,S,1),H=this.getCardinalDirection(-F,S,3)):(b=this.getCardinalDirection(C,S,2),H=this.getCardinalDirection(F,S,4)),!I)switch(b){case 1:P=l,x=h+-E/S,i[0]=x,i[1]=P;break;case 2:x=v,P=n+y*S,i[0]=x,i[1]=P;break;case 3:P=L,x=h+E/S,i[0]=x,i[1]=P;break;case 4:x=g,P=n+-y*S,i[0]=x,i[1]=P;break}if(!m)switch(H){case 1:w=N,Y=f+-A/S,i[2]=Y,i[3]=w;break;case 2:Y=d,w=r+T*S,i[2]=Y,i[3]=w;break;case 3:w=c,Y=f+A/S,i[2]=Y,i[3]=w;break;case 4:Y=s,w=r+-T*S,i[2]=Y,i[3]=w;break}}return!1},o.getCardinalDirection=function(e,t,i){return e>t?i:1+i%4},o.getIntersection=function(e,t,i,h){if(h==null)return this.getIntersection2(e,t,i);var n=e.x,f=e.y,r=t.x,a=t.y,l=i.x,p=i.y,g=h.x,L=h.y,v=void 0,y=void 0,E=void 0,O=void 0,N=void 0,M=void 0,s=void 0,c=void 0,d=void 0;return E=a-f,N=n-r,s=r*f-n*a,O=L-p,M=l-g,c=g*p-l*L,d=E*M-O*N,d===0?null:(v=(N*c-M*s)/d,y=(O*s-E*c)/d,new u(v,y))},o.angleOfVector=function(e,t,i,h){var n=void 0;return e!==i?(n=Math.atan((h-t)/(i-e)),i<e?n+=Math.PI:h<t&&(n+=this.TWO_PI)):h<t?n=this.ONE_AND_HALF_PI:n=this.HALF_PI,n},o.doIntersect=function(e,t,i,h){var n=e.x,f=e.y,r=t.x,a=t.y,l=i.x,p=i.y,g=h.x,L=h.y,v=(r-n)*(L-p)-(g-l)*(a-f);if(v===0)return!1;var y=((L-p)*(g-n)+(l-g)*(L-f))/v,E=((f-a)*(g-n)+(r-n)*(L-f))/v;return 0<y&&y<1&&0<E&&E<1},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,R.exports=o},function(R,G,D){"use strict";function u(){}u.sign=function(o){return o>0?1:o<0?-1:0},u.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},u.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},R.exports=u},function(R,G,D){"use strict";function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,R.exports=u},function(R,G,D){"use strict";var u=function(){function n(f,r){for(var a=0;a<r.length;a++){var l=r[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(f,l.key,l)}}return function(f,r,a){return r&&n(f.prototype,r),a&&n(f,a),f}}();function o(n,f){if(!(n instanceof f))throw new TypeError("Cannot call a class as a function")}var e=function(f){return{value:f,next:null,prev:null}},t=function(f,r,a,l){return f!==null?f.next=r:l.head=r,a!==null?a.prev=r:l.tail=r,r.prev=f,r.next=a,l.length++,r},i=function(f,r){var a=f.prev,l=f.next;return a!==null?a.next=l:r.head=l,l!==null?l.prev=a:r.tail=a,f.prev=f.next=null,r.length--,f},h=function(){function n(f){var r=this;o(this,n),this.length=0,this.head=null,this.tail=null,f!=null&&f.forEach(function(a){return r.push(a)})}return u(n,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(r,a){return t(a.prev,e(r),a,this)}},{key:"insertAfter",value:function(r,a){return t(a,e(r),a.next,this)}},{key:"insertNodeBefore",value:function(r,a){return t(a.prev,r,a,this)}},{key:"insertNodeAfter",value:function(r,a){return t(a,r,a.next,this)}},{key:"push",value:function(r){return t(this.tail,e(r),null,this)}},{key:"unshift",value:function(r){return t(null,e(r),this.head,this)}},{key:"remove",value:function(r){return i(r,this)}},{key:"pop",value:function(){return i(this.tail,this).value}},{key:"popNode",value:function(){return i(this.tail,this)}},{key:"shift",value:function(){return i(this.head,this).value}},{key:"shiftNode",value:function(){return i(this.head,this)}},{key:"get_object_at",value:function(r){if(r<=this.length()){for(var a=1,l=this.head;a<r;)l=l.next,a++;return l.value}}},{key:"set_object_at",value:function(r,a){if(r<=this.length()){for(var l=1,p=this.head;l<r;)p=p.next,l++;p.value=a}}}]),n}();R.exports=h},function(R,G,D){"use strict";function u(o,e,t){this.x=null,this.y=null,o==null&&e==null&&t==null?(this.x=0,this.y=0):typeof o=="number"&&typeof e=="number"&&t==null?(this.x=o,this.y=e):o.constructor.name=="Point"&&e==null&&t==null&&(t=o,this.x=t.x,this.y=t.y)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.getLocation=function(){return new u(this.x,this.y)},u.prototype.setLocation=function(o,e,t){o.constructor.name=="Point"&&e==null&&t==null?(t=o,this.setLocation(t.x,t.y)):typeof o=="number"&&typeof e=="number"&&t==null&&(parseInt(o)==o&&parseInt(e)==e?this.move(o,e):(this.x=Math.floor(o+.5),this.y=Math.floor(e+.5)))},u.prototype.move=function(o,e){this.x=o,this.y=e},u.prototype.translate=function(o,e){this.x+=o,this.y+=e},u.prototype.equals=function(o){if(o.constructor.name=="Point"){var e=o;return this.x==e.x&&this.y==e.y}return this==o},u.prototype.toString=function(){return new u().constructor.name+"[x="+this.x+",y="+this.y+"]"},R.exports=u},function(R,G,D){"use strict";function u(o,e,t,i){this.x=0,this.y=0,this.width=0,this.height=0,o!=null&&e!=null&&t!=null&&i!=null&&(this.x=o,this.y=e,this.width=t,this.height=i)}u.prototype.getX=function(){return this.x},u.prototype.setX=function(o){this.x=o},u.prototype.getY=function(){return this.y},u.prototype.setY=function(o){this.y=o},u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(o){this.width=o},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(o){this.height=o},u.prototype.getRight=function(){return this.x+this.width},u.prototype.getBottom=function(){return this.y+this.height},u.prototype.intersects=function(o){return!(this.getRight()<o.x||this.getBottom()<o.y||o.getRight()<this.x||o.getBottom()<this.y)},u.prototype.getCenterX=function(){return this.x+this.width/2},u.prototype.getMinX=function(){return this.getX()},u.prototype.getMaxX=function(){return this.getX()+this.width},u.prototype.getCenterY=function(){return this.y+this.height/2},u.prototype.getMinY=function(){return this.getY()},u.prototype.getMaxY=function(){return this.getY()+this.height},u.prototype.getWidthHalf=function(){return this.width/2},u.prototype.getHeightHalf=function(){return this.height/2},R.exports=u},function(R,G,D){"use strict";var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){}o.lastID=0,o.createID=function(e){return o.isPrimitive(e)?e:(e.uniqueID!=null||(e.uniqueID=o.getString(),o.lastID++),e.uniqueID)},o.getString=function(e){return e==null&&(e=o.lastID),"Object#"+e},o.isPrimitive=function(e){var t=typeof e=="undefined"?"undefined":u(e);return e==null||t!="object"&&t!="function"},R.exports=o},function(R,G,D){"use strict";function u(l){if(Array.isArray(l)){for(var p=0,g=Array(l.length);p<l.length;p++)g[p]=l[p];return g}else return Array.from(l)}var o=D(0),e=D(6),t=D(3),i=D(1),h=D(5),n=D(4),f=D(17),r=D(27);function a(l){r.call(this),this.layoutQuality=o.QUALITY,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=o.DEFAULT_INCREMENTAL,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new e(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,l!=null&&(this.isRemoteUse=l)}a.RANDOM_SEED=1,a.prototype=Object.create(r.prototype),a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},a.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},a.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},a.prototype.newGraphManager=function(){var l=new e(this);return this.graphManager=l,l},a.prototype.newGraph=function(l){return new h(null,this.graphManager,l)},a.prototype.newNode=function(l){return new t(this.graphManager,l)},a.prototype.newEdge=function(l){return new i(null,null,l)},a.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},a.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var l;return this.checkLayoutSuccess()?l=!1:l=this.layout(),o.ANIMATE==="during"?!1:(l&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,l)},a.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},a.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var l,p=this.graphManager.getAllEdges(),g=0;g<p.length;g++)l=p[g];for(var L,v=this.graphManager.getRoot().getNodes(),g=0;g<v.length;g++)L=v[g];this.update(this.graphManager.getRoot())}},a.prototype.update=function(l){if(l==null)this.update2();else if(l instanceof t){var p=l;if(p.getChild()!=null)for(var g=p.getChild().getNodes(),L=0;L<g.length;L++)update(g[L]);if(p.vGraphObject!=null){var v=p.vGraphObject;v.update(p)}}else if(l instanceof i){var y=l;if(y.vGraphObject!=null){var E=y.vGraphObject;E.update(y)}}else if(l instanceof h){var O=l;if(O.vGraphObject!=null){var N=O.vGraphObject;N.update(O)}}},a.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=o.QUALITY,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=o.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},a.prototype.transform=function(l){if(l==null)this.transform(new n(0,0));else{var p=new f,g=this.graphManager.getRoot().updateLeftTop();if(g!=null){p.setWorldOrgX(l.x),p.setWorldOrgY(l.y),p.setDeviceOrgX(g.x),p.setDeviceOrgY(g.y);for(var L=this.getAllNodes(),v,y=0;y<L.length;y++)v=L[y],v.transform(p)}}},a.prototype.positionNodesRandomly=function(l){if(l==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,g,L=l.getNodes(),v=0;v<L.length;v++)p=L[v],g=p.getChild(),g==null||g.getNodes().length==0?p.scatter():(this.positionNodesRandomly(g),p.updateBounds())},a.prototype.getFlatForest=function(){for(var l=[],p=!0,g=this.graphManager.getRoot().getNodes(),L=!0,v=0;v<g.length;v++)g[v].getChild()!=null&&(L=!1);if(!L)return l;var y=new Set,E=[],O=new Map,N=[];for(N=N.concat(g);N.length>0&&p;){for(E.push(N[0]);E.length>0&&p;){var M=E[0];E.splice(0,1),y.add(M);for(var s=M.getEdges(),v=0;v<s.length;v++){var c=s[v].getOtherEnd(M);if(O.get(M)!=c)if(!y.has(c))E.push(c),O.set(c,M);else{p=!1;break}}}if(!p)l=[];else{var d=[].concat(u(y));l.push(d);for(var v=0;v<d.length;v++){var T=d[v],A=N.indexOf(T);A>-1&&N.splice(A,1)}y=new Set,O=new Map}}return l},a.prototype.createDummyNodesForBendpoints=function(l){for(var p=[],g=l.source,L=this.graphManager.calcLowestCommonAncestor(l.source,l.target),v=0;v<l.bendpoints.length;v++){var y=this.newNode(null);y.setRect(new Point(0,0),new Dimension(1,1)),L.add(y);var E=this.newEdge(null);this.graphManager.add(E,g,y),p.add(y),g=y}var E=this.newEdge(null);return this.graphManager.add(E,g,l.target),this.edgeToDummyNodes.set(l,p),l.isInterGraph()?this.graphManager.remove(l):L.remove(l),p},a.prototype.createBendpointsFromDummyNodes=function(){var l=[];l=l.concat(this.graphManager.getAllEdges()),l=[].concat(u(this.edgeToDummyNodes.keys())).concat(l);for(var p=0;p<l.length;p++){var g=l[p];if(g.bendpoints.length>0){for(var L=this.edgeToDummyNodes.get(g),v=0;v<L.length;v++){var y=L[v],E=new n(y.getCenterX(),y.getCenterY()),O=g.bendpoints.get(v);O.x=E.x,O.y=E.y,y.getOwner().remove(y)}this.graphManager.add(g,g.source,g.target)}}},a.transform=function(l,p,g,L){if(g!=null&&L!=null){var v=p;if(l<=50){var y=p/g;v-=(p-y)/50*(50-l)}else{var E=p*L;v+=(E-p)/50*(l-50)}return v}else{var O,N;return l<=50?(O=9*p/500,N=p/10):(O=9*p/50,N=-8*p),O*l+N}},a.findCenterOfTree=function(l){var p=[];p=p.concat(l);var g=[],L=new Map,v=!1,y=null;(p.length==1||p.length==2)&&(v=!0,y=p[0]);for(var E=0;E<p.length;E++){var O=p[E],N=O.getNeighborsList().size;L.set(O,O.getNeighborsList().size),N==1&&g.push(O)}var M=[];for(M=M.concat(g);!v;){var s=[];s=s.concat(M),M=[];for(var E=0;E<p.length;E++){var O=p[E],c=p.indexOf(O);c>=0&&p.splice(c,1);var d=O.getNeighborsList();d.forEach(function(I){if(g.indexOf(I)<0){var m=L.get(I),C=m-1;C==1&&M.push(I),L.set(I,C)}})}g=g.concat(M),(p.length==1||p.length==2)&&(v=!0,y=p[0])}return y},a.prototype.setGraphManager=function(l){this.graphManager=l},R.exports=a},function(R,G,D){"use strict";function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},R.exports=u},function(R,G,D){"use strict";var u=D(4);function o(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(e){this.lworldExtX=e},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(e){this.lworldExtY=e},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},o.prototype.transformX=function(e){var t=0,i=this.lworldExtX;return i!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/i),t},o.prototype.transformY=function(e){var t=0,i=this.lworldExtY;return i!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/i),t},o.prototype.inverseTransformX=function(e){var t=0,i=this.ldeviceExtX;return i!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/i),t},o.prototype.inverseTransformY=function(e){var t=0,i=this.ldeviceExtY;return i!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/i),t},o.prototype.inverseTransformPoint=function(e){var t=new u(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return t},R.exports=o},function(R,G,D){"use strict";function u(r){if(Array.isArray(r)){for(var a=0,l=Array(r.length);a<r.length;a++)l[a]=r[a];return l}else return Array.from(r)}var o=D(15),e=D(7),t=D(0),i=D(8),h=D(9);function n(){o.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}n.prototype=Object.create(o.prototype);for(var f in o)n[f]=o[f];n.prototype.initParameters=function(){o.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},n.prototype.calcIdealEdgeLengths=function(){for(var r,a,l,p,g,L,v=this.getGraphManager().getAllEdges(),y=0;y<v.length;y++)r=v[y],r.idealLength=this.idealEdgeLength,r.isInterGraph&&(l=r.getSource(),p=r.getTarget(),g=r.getSourceInLca().getEstimatedSize(),L=r.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(r.idealLength+=g+L-2*t.SIMPLE_NODE_SIZE),a=r.getLca().getInclusionTreeDepth(),r.idealLength+=e.DEFAULT_EDGE_LENGTH*e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(l.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*a))},n.prototype.initSpringEmbedder=function(){var r=this.getAllNodes().length;this.incremental?(r>e.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-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):(r>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(r-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(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),a,l=0;l<r.length;l++)a=r[l],this.calcSpringForce(a,a.idealLength)},n.prototype.calcRepulsionForces=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,p,g,L,v=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),y=new Set,l=0;l<v.length;l++)g=v[l],this.calculateRepulsionForceOfANode(g,y,r,a),y.add(g);else for(l=0;l<v.length;l++)for(g=v[l],p=l+1;p<v.length;p++)L=v[p],g.getOwner()==L.getOwner()&&this.calcRepulsionForce(g,L)},n.prototype.calcGravitationalForces=function(){for(var r,a=this.getAllNodesToApplyGravitation(),l=0;l<a.length;l++)r=a[l],this.calcGravitationalForce(r)},n.prototype.moveNodes=function(){for(var r=this.getAllNodes(),a,l=0;l<r.length;l++)a=r[l],a.move()},n.prototype.calcSpringForce=function(r,a){var l=r.getSource(),p=r.getTarget(),g,L,v,y;if(this.uniformLeafNodeSizes&&l.getChild()==null&&p.getChild()==null)r.updateLengthSimple();else if(r.updateLength(),r.isOverlapingSourceAndTarget)return;g=r.getLength(),g!=0&&(L=this.springConstant*(g-a),v=L*(r.lengthX/g),y=L*(r.lengthY/g),l.springForceX+=v,l.springForceY+=y,p.springForceX-=v,p.springForceY-=y)},n.prototype.calcRepulsionForce=function(r,a){var l=r.getRect(),p=a.getRect(),g=new Array(2),L=new Array(4),v,y,E,O,N,M,s;if(l.intersects(p)){i.calcSeparationAmount(l,p,g,e.DEFAULT_EDGE_LENGTH/2),M=2*g[0],s=2*g[1];var c=r.noOfChildren*a.noOfChildren/(r.noOfChildren+a.noOfChildren);r.repulsionForceX-=c*M,r.repulsionForceY-=c*s,a.repulsionForceX+=c*M,a.repulsionForceY+=c*s}else this.uniformLeafNodeSizes&&r.getChild()==null&&a.getChild()==null?(v=p.getCenterX()-l.getCenterX(),y=p.getCenterY()-l.getCenterY()):(i.getIntersection(l,p,L),v=L[2]-L[0],y=L[3]-L[1]),Math.abs(v)<e.MIN_REPULSION_DIST&&(v=h.sign(v)*e.MIN_REPULSION_DIST),Math.abs(y)<e.MIN_REPULSION_DIST&&(y=h.sign(y)*e.MIN_REPULSION_DIST),E=v*v+y*y,O=Math.sqrt(E),N=this.repulsionConstant*r.noOfChildren*a.noOfChildren/E,M=N*v/O,s=N*y/O,r.repulsionForceX-=M,r.repulsionForceY-=s,a.repulsionForceX+=M,a.repulsionForceY+=s},n.prototype.calcGravitationalForce=function(r){var a,l,p,g,L,v,y,E;a=r.getOwner(),l=(a.getRight()+a.getLeft())/2,p=(a.getTop()+a.getBottom())/2,g=r.getCenterX()-l,L=r.getCenterY()-p,v=Math.abs(g)+r.getWidth()/2,y=Math.abs(L)+r.getHeight()/2,r.getOwner()==this.graphManager.getRoot()?(E=a.getEstimatedSize()*this.gravityRangeFactor,(v>E||y>E)&&(r.gravitationForceX=-this.gravityConstant*g,r.gravitationForceY=-this.gravityConstant*L)):(E=a.getEstimatedSize()*this.compoundGravityRangeFactor,(v>E||y>E)&&(r.gravitationForceX=-this.gravityConstant*g*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,a=!1;return this.totalIterations>this.maxIterations/3&&(a=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,r||a},n.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},n.prototype.calcNoOfChildrenForAllNodes=function(){for(var r,a=this.graphManager.getAllNodes(),l=0;l<a.length;l++)r=a[l],r.noOfChildren=r.getNoOfChildren()},n.prototype.calcGrid=function(r){var a=0,l=0;a=parseInt(Math.ceil((r.getRight()-r.getLeft())/this.repulsionRange)),l=parseInt(Math.ceil((r.getBottom()-r.getTop())/this.repulsionRange));for(var p=new Array(a),g=0;g<a;g++)p[g]=new Array(l);for(var g=0;g<a;g++)for(var L=0;L<l;L++)p[g][L]=new Array;return p},n.prototype.addNodeToGrid=function(r,a,l){var p=0,g=0,L=0,v=0;p=parseInt(Math.floor((r.getRect().x-a)/this.repulsionRange)),g=parseInt(Math.floor((r.getRect().width+r.getRect().x-a)/this.repulsionRange)),L=parseInt(Math.floor((r.getRect().y-l)/this.repulsionRange)),v=parseInt(Math.floor((r.getRect().height+r.getRect().y-l)/this.repulsionRange));for(var y=p;y<=g;y++)for(var E=L;E<=v;E++)this.grid[y][E].push(r),r.setGridCoordinates(p,g,L,v)},n.prototype.updateGrid=function(){var r,a,l=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),r=0;r<l.length;r++)a=l[r],this.addNodeToGrid(a,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},n.prototype.calculateRepulsionForceOfANode=function(r,a,l,p){if(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&l||p){var g=new Set;r.surrounding=new Array;for(var L,v=this.grid,y=r.startX-1;y<r.finishX+2;y++)for(var E=r.startY-1;E<r.finishY+2;E++)if(!(y<0||E<0||y>=v.length||E>=v[0].length)){for(var O=0;O<v[y][E].length;O++)if(L=v[y][E][O],!(r.getOwner()!=L.getOwner()||r==L)&&!a.has(L)&&!g.has(L)){var N=Math.abs(r.getCenterX()-L.getCenterX())-(r.getWidth()/2+L.getWidth()/2),M=Math.abs(r.getCenterY()-L.getCenterY())-(r.getHeight()/2+L.getHeight()/2);N<=this.repulsionRange&&M<=this.repulsionRange&&g.add(L)}}r.surrounding=[].concat(u(g))}for(y=0;y<r.surrounding.length;y++)this.calcRepulsionForce(r,r.surrounding[y])},n.prototype.calcRepulsionRange=function(){return 0},R.exports=n},function(R,G,D){"use strict";var u=D(1),o=D(7);function e(i,h,n){u.call(this,i,h,n),this.idealLength=o.DEFAULT_EDGE_LENGTH}e.prototype=Object.create(u.prototype);for(var t in u)e[t]=u[t];R.exports=e},function(R,G,D){"use strict";var u=D(3);function o(t,i,h,n){u.call(this,t,i,h,n),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=[]}o.prototype=Object.create(u.prototype);for(var e in u)o[e]=u[e];o.prototype.setGridCoordinates=function(t,i,h,n){this.startX=t,this.finishX=i,this.startY=h,this.finishY=n},R.exports=o},function(R,G,D){"use strict";function u(o,e){this.width=0,this.height=0,o!==null&&e!==null&&(this.height=e,this.width=o)}u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(o){this.width=o},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(o){this.height=o},R.exports=u},function(R,G,D){"use strict";var u=D(14);function o(){this.map={},this.keys=[]}o.prototype.put=function(e,t){var i=u.createID(e);this.contains(i)||(this.map[i]=t,this.keys.push(e))},o.prototype.contains=function(e){var t=u.createID(e);return this.map[e]!=null},o.prototype.get=function(e){var t=u.createID(e);return this.map[t]},o.prototype.keySet=function(){return this.keys},R.exports=o},function(R,G,D){"use strict";var u=D(14);function o(){this.set={}}o.prototype.add=function(e){var t=u.createID(e);this.contains(t)||(this.set[t]=e)},o.prototype.remove=function(e){delete this.set[u.createID(e)]},o.prototype.clear=function(){this.set={}},o.prototype.contains=function(e){return this.set[u.createID(e)]==e},o.prototype.isEmpty=function(){return this.size()===0},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),i=t.length,h=0;h<i;h++)e.push(this.set[t[h]])},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAll=function(e){for(var t=e.length,i=0;i<t;i++){var h=e[i];this.add(h)}},R.exports=o},function(R,G,D){"use strict";var u=function(){function i(h,n){for(var f=0;f<n.length;f++){var r=n[f];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}return function(h,n,f){return n&&i(h.prototype,n),f&&i(h,f),h}}();function o(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")}var e=D(11),t=function(){function i(h,n){o(this,i),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var f=void 0;h instanceof e?f=h.size():f=h.length,this._quicksort(h,0,f-1)}return u(i,[{key:"_quicksort",value:function(n,f,r){if(f<r){var a=this._partition(n,f,r);this._quicksort(n,f,a),this._quicksort(n,a+1,r)}}},{key:"_partition",value:function(n,f,r){for(var a=this._get(n,f),l=f,p=r;;){for(;this.compareFunction(a,this._get(n,p));)p--;for(;this.compareFunction(this._get(n,l),a);)l++;if(l<p)this._swap(n,l,p),l++,p--;else return p}}},{key:"_get",value:function(n,f){return n instanceof e?n.get_object_at(f):n[f]}},{key:"_set",value:function(n,f,r){n instanceof e?n.set_object_at(f,r):n[f]=r}},{key:"_swap",value:function(n,f,r){var a=this._get(n,f);this._set(n,f,this._get(n,r)),this._set(n,r,a)}},{key:"_defaultCompareFunction",value:function(n,f){return f>n}}]),i}();R.exports=t},function(R,G,D){"use strict";var u=function(){function t(i,h){for(var n=0;n<h.length;n++){var f=h[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,h,n){return h&&t(i.prototype,h),n&&t(i,n),i}}();function o(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var e=function(){function t(i,h){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,t),this.sequence1=i,this.sequence2=h,this.match_score=n,this.mismatch_penalty=f,this.gap_penalty=r,this.iMax=i.length+1,this.jMax=h.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.grid[a][l]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var g=0;g<this.jMax;g++)this.tracebackGrid[p][g]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return u(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var h=1;h<this.jMax;h++)this.grid[0][h]=this.grid[0][h-1]+this.gap_penalty,this.tracebackGrid[0][h]=[!1,!1,!0];for(var n=1;n<this.iMax;n++)this.grid[n][0]=this.grid[n-1][0]+this.gap_penalty,this.tracebackGrid[n][0]=[!1,!0,!1];for(var f=1;f<this.iMax;f++)for(var r=1;r<this.jMax;r++){var a=void 0;this.sequence1[f-1]===this.sequence2[r-1]?a=this.grid[f-1][r-1]+this.match_score:a=this.grid[f-1][r-1]+this.mismatch_penalty;var l=this.grid[f-1][r]+this.gap_penalty,p=this.grid[f][r-1]+this.gap_penalty,g=[a,l,p],L=this.arrayAllMaxIndexes(g);this.grid[f][r]=g[L[0]],this.tracebackGrid[f][r]=[L.includes(0),L.includes(1),L.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var h=[];for(h.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});h[0];){var n=h[0],f=this.tracebackGrid[n.pos[0]][n.pos[1]];f[0]&&h.push({pos:[n.pos[0]-1,n.pos[1]-1],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),f[1]&&h.push({pos:[n.pos[0]-1,n.pos[1]],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:"-"+n.seq2}),f[2]&&h.push({pos:[n.pos[0],n.pos[1]-1],seq1:"-"+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),n.pos[0]===0&&n.pos[1]===0&&this.alignments.push({sequence1:n.seq1,sequence2:n.seq2}),h.shift()}return this.alignments}},{key:"getAllIndexes",value:function(h,n){for(var f=[],r=-1;(r=h.indexOf(n,r+1))!==-1;)f.push(r);return f}},{key:"arrayAllMaxIndexes",value:function(h){return this.getAllIndexes(h,Math.max.apply(null,h))}}]),t}();R.exports=e},function(R,G,D){"use strict";var u=function(){};u.FDLayout=D(18),u.FDLayoutConstants=D(7),u.FDLayoutEdge=D(19),u.FDLayoutNode=D(20),u.DimensionD=D(21),u.HashMap=D(22),u.HashSet=D(23),u.IGeometry=D(8),u.IMath=D(9),u.Integer=D(10),u.Point=D(12),u.PointD=D(4),u.RandomSeed=D(16),u.RectangleD=D(13),u.Transform=D(17),u.UniqueIDGeneretor=D(14),u.Quicksort=D(24),u.LinkedList=D(11),u.LGraphObject=D(2),u.LGraph=D(5),u.LEdge=D(1),u.LGraphManager=D(6),u.LNode=D(3),u.Layout=D(15),u.LayoutConstants=D(0),u.NeedlemanWunsch=D(25),R.exports=u},function(R,G,D){"use strict";function u(){this.listeners=[]}var o=u.prototype;o.addListener=function(e,t){this.listeners.push({event:e,callback:t})},o.removeListener=function(e,t){for(var i=this.listeners.length;i>=0;i--){var h=this.listeners[i];h.event===e&&h.callback===t&&this.listeners.splice(i,1)}},o.emit=function(e,t){for(var i=0;i<this.listeners.length;i++){var h=this.listeners[i];e===h.event&&h.callback(t)}},R.exports=u}])})},41548:function(_,R,G){"use strict";G.r(R),G.d(R,{render:function(){return p}});var D=G(35096),u=G(1387),o=G(14607),e=G(989);u.Z.use(o);function t(g,L){g.forEach(v=>{var E,O,N;const y={id:v.id,labelText:v.label,height:v.height,width:v.width,padding:(E=v.padding)!=null?E:0};Object.keys(v).forEach(M=>{["id","label","height","width","padding","x","y"].includes(M)||(y[M]=v[M])}),L.add({group:"nodes",data:y,position:{x:(O=v.x)!=null?O:0,y:(N=v.y)!=null?N:0}})})}(0,D.eW)(t,"addNodes");function i(g,L){g.forEach(v=>{const y={id:v.id,source:v.start,target:v.end};Object.keys(v).forEach(E=>{["id","start","end"].includes(E)||(y[E]=v[E])}),L.add({group:"edges",data:y})})}(0,D.eW)(i,"addEdges");function h(g){return new Promise(L=>{const v=(0,e.Ys)("body").append("div").attr("id","cy").attr("style","display:none"),y=(0,u.Z)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});v.remove(),t(g.nodes,y),i(g.edges,y),y.nodes().forEach(function(O){O.layoutDimensions=()=>{const N=O.data();return{w:N.width,h:N.height}}});const E={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};y.layout(E).run(),y.ready(O=>{D.cM.info("Cytoscape ready",O),L(y)})})}(0,D.eW)(h,"createCytoscapeInstance");function n(g){return g.nodes().map(L=>{const v=L.data(),y=L.position(),E={id:v.id,x:y.x,y:y.y};return Object.keys(v).forEach(O=>{O!=="id"&&(E[O]=v[O])}),E})}(0,D.eW)(n,"extractPositionedNodes");function f(g){return g.edges().map(L=>{const v=L.data(),y=L._private.rscratch,E={id:v.id,source:v.source,target:v.target,startX:y.startX,startY:y.startY,midX:y.midX,midY:y.midY,endX:y.endX,endY:y.endY};return Object.keys(v).forEach(O=>{["id","source","target"].includes(O)||(E[O]=v[O])}),E})}(0,D.eW)(f,"extractPositionedEdges");function r(g,L){return $(this,null,function*(){D.cM.debug("Starting cose-bilkent layout algorithm");try{a(g);const v=yield h(g),y=n(v),E=f(v);return D.cM.debug(`Layout completed: ${y.length} nodes, ${E.length} edges`),{nodes:y,edges:E}}catch(v){throw D.cM.error("Error in cose-bilkent layout algorithm:",v),v}})}(0,D.eW)(r,"executeCoseBilkentLayout");function a(g){if(!g)throw new Error("Layout data is required");if(!g.config)throw new Error("Configuration is required in layout data");if(!g.rootNode)throw new Error("Root node is required");if(!g.nodes||!Array.isArray(g.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(g.edges))throw new Error("Edges array is required in layout data");return!0}(0,D.eW)(a,"validateLayoutData");var l=(0,D.eW)((d,T,A,I)=>$(this,[d,T,A,I],function*(g,L,{insertCluster:v,insertEdge:y,insertEdgeLabel:E,insertMarkers:O,insertNode:N,log:M,positionEdgeLabel:s},{algorithm:c}){const m={},C={},F=L.select("g");O(F,g.markers,g.type,g.diagramId);const S=F.insert("g").attr("class","subgraphs"),b=F.insert("g").attr("class","edgePaths"),H=F.insert("g").attr("class","edgeLabels"),x=F.insert("g").attr("class","nodes");M.debug("Inserting nodes into DOM for dimension calculation"),yield Promise.all(g.nodes.map(w=>$(this,null,function*(){if(w.isGroup){const U=Q({},w);C[w.id]=U,m[w.id]=U,yield v(S,w)}else{const U=Q({},w);m[w.id]=U;const X=yield N(x,w,{config:g.config,dir:g.direction||"TB"}),W=X.node().getBBox();U.width=W.width,U.height=W.height,U.domId=X,M.debug(`Node ${w.id} dimensions: ${W.width}x${W.height}`)}}))),M.debug("Running cose-bilkent layout algorithm");const P=j(Q({},g),{nodes:g.nodes.map(w=>{const U=m[w.id];return j(Q({},w),{width:U.width,height:U.height})})}),Y=yield r(P,g.config);M.debug("Positioning nodes based on layout results"),Y.nodes.forEach(w=>{const U=m[w.id];U!=null&&U.domId&&(U.domId.attr("transform",`translate(${w.x}, ${w.y})`),U.x=w.x,U.y=w.y,M.debug(`Positioned node ${U.id} at center (${w.x}, ${w.y})`))}),Y.edges.forEach(w=>{const U=g.edges.find(X=>X.id===w.id);U&&(U.points=[{x:w.startX,y:w.startY},{x:w.midX,y:w.midY},{x:w.endX,y:w.endY}])}),M.debug("Inserting and positioning edges"),yield Promise.all(g.edges.map(w=>$(this,null,function*(){var Z,B;const U=yield E(H,w),X=m[(Z=w.start)!=null?Z:""],W=m[(B=w.end)!=null?B:""];if(X&&W){const V=Y.edges.find(k=>k.id===w.id);if(V){M.debug("APA01 positionedEdge",V);const k=Q({},w),K=y(b,k,C,g.type,X,W,g.diagramId);s(k,K)}else{const k=j(Q({},w),{points:[{x:X.x||0,y:X.y||0},{x:W.x||0,y:W.y||0}]}),K=y(b,k,C,g.type,X,W,g.diagramId);s(k,K)}}}))),M.debug("Cose-bilkent rendering completed")}),"render"),p=l}}]);
2
+ }());
@@ -0,0 +1,3 @@
1
+ !(function(){"use strict";var c=(E,e,a)=>new Promise((i,t)=>{var v=_=>{try{s(a.next(_))}catch(n){t(n)}},r=_=>{try{s(a.throw(_))}catch(n){t(n)}},s=_=>_.done?i(_.value):Promise.resolve(_.value).then(v,r);s((a=a.apply(E,e)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[1815],{41815:function(E,e,a){a.d(e,{diagram:function(){return m}});var i=a(45887),t=a(88674),v=a(99970),r=a(35096),s=a(12491),_={parse:(0,r.eW)(d=>c(this,null,function*(){const o=yield(0,s.Qc)("info",d);r.cM.debug(o)}),"parse")},n={version:i.X.version+""},D=(0,r.eW)(()=>n.version,"getVersion"),M={getVersion:D},g=(0,r.eW)((d,o,O)=>{r.cM.debug(`rendering info diagram
2
+ `+d);const u=(0,t.P)(o);(0,v.v2)(u,100,400,!0),u.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${O}`)},"draw"),p={draw:g},m={parser:_,db:M,renderer:p}}}]);
3
+ }());
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[1819],{81819:function(n,a,_){_.d(a,{createInfoServices:function(){return s.M}});var s=_(86185),u=_(9423)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[1851],{15359:function(a,M,_){_.d(M,{diagram:function(){return P}});var E=_(80834),O=_(26620),n=_(43663),t=_(23386),A=_(28659),B=_(84593),C=_(31792),I=_(5016),R=_(2831),h=_(21347),m=_(4284),L=_(99970),D=_(35096),P={parser:E.J8,get db(){return new E.oI(2)},renderer:E._$,styles:E.Ee,init:(0,D.eW)(s=>{s.state||(s.state={}),s.state.arrowMarkerAbsolute=s.arrowMarkerAbsolute},"init")}}}]);