@fecp/designer 5.6.5 → 5.6.8

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 (1645) hide show
  1. package/es/_virtual/advancedFormat.mjs +2 -2
  2. package/es/_virtual/constants.mjs +4 -0
  3. package/es/_virtual/cose-base.mjs +4 -0
  4. package/es/_virtual/cose-base2.mjs +4 -0
  5. package/es/_virtual/customParseFormat.mjs +2 -2
  6. package/es/_virtual/cytoscape-cose-bilkent.mjs +7 -0
  7. package/es/_virtual/cytoscape-cose-bilkent2.mjs +4 -0
  8. package/es/_virtual/cytoscape-fcose.mjs +7 -0
  9. package/es/_virtual/cytoscape-fcose2.mjs +4 -0
  10. package/es/_virtual/dayjs.min.mjs +2 -2
  11. package/es/_virtual/duration.mjs +7 -0
  12. package/es/_virtual/duration2.mjs +4 -0
  13. package/es/_virtual/index.mjs +4 -4
  14. package/es/_virtual/index2.mjs +3 -2
  15. package/es/_virtual/index3.mjs +7 -0
  16. package/es/_virtual/index4.mjs +4 -0
  17. package/es/_virtual/index5.mjs +4 -0
  18. package/es/_virtual/isoWeek.mjs +7 -0
  19. package/es/_virtual/isoWeek2.mjs +4 -0
  20. package/es/_virtual/layout-base.mjs +4 -0
  21. package/es/_virtual/layout-base2.mjs +4 -0
  22. package/es/designer/package.json.mjs +1 -1
  23. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  24. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  25. package/es/designer/src/components/ValueSelector.vue2.mjs +5 -7
  26. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  27. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  28. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  29. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  30. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  31. package/es/designer/src/packages/form/headerBtn.vue.mjs +47 -25
  32. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  33. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  34. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  35. package/es/designer/src/packages/importantDataChange/index.vue.mjs +184 -0
  36. package/es/designer/src/packages/importantDataChange/useImportantDataChangeDialog.mjs +16 -0
  37. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  38. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  39. package/es/designer.css +968 -112
  40. package/es/node_modules/@braintree/sanitize-url/dist/constants.mjs +20 -0
  41. package/es/node_modules/@braintree/sanitize-url/dist/index.mjs +75 -0
  42. package/es/node_modules/@element-plus/icons-vue/dist/index.mjs +32 -0
  43. package/es/node_modules/@iconify/utils/lib/customisations/defaults.mjs +13 -0
  44. package/es/node_modules/@iconify/utils/lib/icon/defaults.mjs +26 -0
  45. package/es/node_modules/@iconify/utils/lib/icon/merge.mjs +13 -0
  46. package/es/node_modules/@iconify/utils/lib/icon/name.mjs +45 -0
  47. package/es/node_modules/@iconify/utils/lib/icon/transformations.mjs +11 -0
  48. package/es/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +22 -0
  49. package/es/node_modules/@iconify/utils/lib/icon-set/tree.mjs +20 -0
  50. package/es/node_modules/@iconify/utils/lib/svg/build.mjs +103 -0
  51. package/es/node_modules/@iconify/utils/lib/svg/defs.mjs +29 -0
  52. package/es/node_modules/@iconify/utils/lib/svg/html.mjs +8 -0
  53. package/es/node_modules/@iconify/utils/lib/svg/id.mjs +25 -0
  54. package/es/node_modules/@iconify/utils/lib/svg/size.mjs +26 -0
  55. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-TIHT7OUA.mjs +6 -0
  56. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5FCAYU7R.mjs +35 -0
  57. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5HE753X5.mjs +49 -0
  58. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5JV3BV7I.mjs +88 -0
  59. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5TONJI2A.mjs +76 -0
  60. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BIQX33UG.mjs +31 -0
  61. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CQNSW5MT.mjs +57 -0
  62. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CYSBUYHQ.mjs +31 -0
  63. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EMLP6XTP.mjs +31 -0
  64. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JG7HCLWE.mjs +76 -0
  65. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KEIR6QF5.mjs +30695 -0
  66. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MOZMSUNE.mjs +48 -0
  67. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OSBZ3O6U.mjs +31 -0
  68. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-QBLGF6JB.mjs +31 -0
  69. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R7FJI6CG.mjs +102 -0
  70. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-U6XO7XAA.mjs +79 -0
  71. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-YOTPTUD7.mjs +39 -0
  72. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-VYW2F7L2.mjs +6 -0
  73. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-45OFAUF4.mjs +6 -0
  74. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-TEB2WS4Q.mjs +6 -0
  75. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-DKCQHKI2.mjs +6 -0
  76. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-7NZHBO7P.mjs +6 -0
  77. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-RZYD4A2V.mjs +6 -0
  78. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-I7S5WNFK.mjs +6 -0
  79. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-3IZDKUUU.mjs +6 -0
  80. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-AHOZXSZD.mjs +6 -0
  81. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-EBAXGLYW.mjs +6 -0
  82. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-LSFZ7HO6.mjs +6 -0
  83. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-QDETBFTQ.mjs +6 -0
  84. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-6X3UGDF4.mjs +6 -0
  85. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-OPB4EBWU.mjs +6 -0
  86. package/es/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +276 -0
  87. package/es/node_modules/@upsetjs/venn.js/build/venn.esm.mjs +1465 -0
  88. package/es/node_modules/@vant/use/dist/index.esm.mjs +1 -1
  89. package/es/node_modules/cytoscape/dist/cytoscape.esm.mjs +30346 -0
  90. package/es/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +374 -0
  91. package/es/node_modules/cytoscape-cose-bilkent/node_modules/cose-base/cose-base.mjs +1090 -0
  92. package/es/node_modules/cytoscape-cose-bilkent/node_modules/layout-base/layout-base.mjs +3197 -0
  93. package/es/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +1278 -0
  94. package/es/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.mjs +2555 -0
  95. package/es/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.mjs +3745 -0
  96. package/es/node_modules/d3/node_modules/d3-shape/src/arc.mjs +133 -0
  97. package/es/node_modules/d3/node_modules/d3-shape/src/array.mjs +6 -0
  98. package/es/node_modules/d3/node_modules/d3-shape/src/constant.mjs +8 -0
  99. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basis.mjs +66 -0
  100. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basisClosed.mjs +63 -0
  101. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basisOpen.mjs +50 -0
  102. package/es/node_modules/d3/node_modules/d3-shape/src/curve/bump.mjs +49 -0
  103. package/es/node_modules/d3/node_modules/d3-shape/src/curve/bundle.mjs +43 -0
  104. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinal.mjs +73 -0
  105. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinalClosed.mjs +69 -0
  106. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinalOpen.mjs +57 -0
  107. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRom.mjs +83 -0
  108. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +75 -0
  109. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +63 -0
  110. package/es/node_modules/d3/node_modules/d3-shape/src/curve/linear.mjs +39 -0
  111. package/es/node_modules/d3/node_modules/d3-shape/src/curve/linearClosed.mjs +25 -0
  112. package/es/node_modules/d3/node_modules/d3-shape/src/curve/monotone.mjs +99 -0
  113. package/es/node_modules/d3/node_modules/d3-shape/src/curve/natural.mjs +54 -0
  114. package/es/node_modules/d3/node_modules/d3-shape/src/curve/step.mjs +59 -0
  115. package/es/node_modules/d3/node_modules/d3-shape/src/descending.mjs +6 -0
  116. package/es/node_modules/d3/node_modules/d3-shape/src/identity.mjs +6 -0
  117. package/es/node_modules/d3/node_modules/d3-shape/src/line.mjs +41 -0
  118. package/es/node_modules/d3/node_modules/d3-shape/src/math.mjs +32 -0
  119. package/es/node_modules/d3/node_modules/d3-shape/src/noop.mjs +5 -0
  120. package/es/node_modules/d3/node_modules/d3-shape/src/path.mjs +19 -0
  121. package/es/node_modules/d3/node_modules/d3-shape/src/pie.mjs +55 -0
  122. package/es/node_modules/d3/node_modules/d3-shape/src/point.mjs +10 -0
  123. package/es/node_modules/d3-array/node_modules/internmap/src/index.mjs +43 -0
  124. package/es/node_modules/d3-array/src/ascending.mjs +6 -0
  125. package/es/node_modules/d3-array/src/bisect.mjs +10 -0
  126. package/es/node_modules/d3-array/src/bisector.mjs +47 -0
  127. package/es/node_modules/d3-array/src/descending.mjs +6 -0
  128. package/es/node_modules/d3-array/src/max.mjs +21 -0
  129. package/es/node_modules/d3-array/src/min.mjs +21 -0
  130. package/es/node_modules/d3-array/src/number.mjs +6 -0
  131. package/es/node_modules/d3-array/src/range.mjs +11 -0
  132. package/es/node_modules/d3-array/src/ticks.mjs +51 -0
  133. package/es/node_modules/d3-axis/src/axis.mjs +94 -0
  134. package/es/node_modules/d3-axis/src/identity.mjs +6 -0
  135. package/es/node_modules/d3-color/src/color.mjs +338 -0
  136. package/es/node_modules/d3-color/src/define.mjs +13 -0
  137. package/es/node_modules/d3-color/src/lab.mjs +95 -0
  138. package/es/node_modules/d3-color/src/math.mjs +6 -0
  139. package/es/node_modules/d3-dispatch/src/dispatch.mjs +70 -0
  140. package/es/node_modules/d3-ease/src/cubic.mjs +6 -0
  141. package/es/node_modules/d3-format/src/defaultLocale.mjs +20 -0
  142. package/es/node_modules/d3-format/src/exponent.mjs +7 -0
  143. package/es/node_modules/d3-format/src/formatDecimal.mjs +15 -0
  144. package/es/node_modules/d3-format/src/formatGroup.mjs +15 -0
  145. package/es/node_modules/d3-format/src/formatNumerals.mjs +10 -0
  146. package/es/node_modules/d3-format/src/formatPrefixAuto.mjs +12 -0
  147. package/es/node_modules/d3-format/src/formatRounded.mjs +10 -0
  148. package/es/node_modules/d3-format/src/formatSpecifier.mjs +37 -0
  149. package/es/node_modules/d3-format/src/formatTrim.mjs +21 -0
  150. package/es/node_modules/d3-format/src/formatTypes.mjs +21 -0
  151. package/es/node_modules/d3-format/src/identity.mjs +6 -0
  152. package/es/node_modules/d3-format/src/locale.mjs +82 -0
  153. package/es/node_modules/d3-format/src/precisionFixed.mjs +7 -0
  154. package/es/node_modules/d3-format/src/precisionPrefix.mjs +7 -0
  155. package/es/node_modules/d3-format/src/precisionRound.mjs +8 -0
  156. package/es/node_modules/d3-hierarchy/src/accessors.mjs +7 -0
  157. package/es/node_modules/d3-hierarchy/src/constant.mjs +12 -0
  158. package/es/node_modules/d3-hierarchy/src/hierarchy/ancestors.mjs +10 -0
  159. package/es/node_modules/d3-hierarchy/src/hierarchy/count.mjs +12 -0
  160. package/es/node_modules/d3-hierarchy/src/hierarchy/descendants.mjs +6 -0
  161. package/es/node_modules/d3-hierarchy/src/hierarchy/each.mjs +10 -0
  162. package/es/node_modules/d3-hierarchy/src/hierarchy/eachAfter.mjs +18 -0
  163. package/es/node_modules/d3-hierarchy/src/hierarchy/eachBefore.mjs +15 -0
  164. package/es/node_modules/d3-hierarchy/src/hierarchy/find.mjs +11 -0
  165. package/es/node_modules/d3-hierarchy/src/hierarchy/index.mjs +79 -0
  166. package/es/node_modules/d3-hierarchy/src/hierarchy/iterator.mjs +17 -0
  167. package/es/node_modules/d3-hierarchy/src/hierarchy/leaves.mjs +12 -0
  168. package/es/node_modules/d3-hierarchy/src/hierarchy/links.mjs +12 -0
  169. package/es/node_modules/d3-hierarchy/src/hierarchy/path.mjs +28 -0
  170. package/es/node_modules/d3-hierarchy/src/hierarchy/sort.mjs +10 -0
  171. package/es/node_modules/d3-hierarchy/src/hierarchy/sum.mjs +10 -0
  172. package/es/node_modules/d3-hierarchy/src/treemap/dice.mjs +10 -0
  173. package/es/node_modules/d3-hierarchy/src/treemap/index.mjs +69 -0
  174. package/es/node_modules/d3-hierarchy/src/treemap/round.mjs +9 -0
  175. package/es/node_modules/d3-hierarchy/src/treemap/slice.mjs +10 -0
  176. package/es/node_modules/d3-hierarchy/src/treemap/squarify.mjs +47 -0
  177. package/es/node_modules/d3-interpolate/src/array.mjs +13 -0
  178. package/es/node_modules/d3-interpolate/src/color.mjs +29 -0
  179. package/es/node_modules/d3-interpolate/src/constant.mjs +4 -0
  180. package/es/node_modules/d3-interpolate/src/date.mjs +9 -0
  181. package/es/node_modules/d3-interpolate/src/hcl.mjs +18 -0
  182. package/es/node_modules/d3-interpolate/src/number.mjs +8 -0
  183. package/es/node_modules/d3-interpolate/src/numberArray.mjs +15 -0
  184. package/es/node_modules/d3-interpolate/src/object.mjs +20 -0
  185. package/es/node_modules/d3-interpolate/src/rgb.mjs +20 -0
  186. package/es/node_modules/d3-interpolate/src/round.mjs +8 -0
  187. package/es/node_modules/d3-interpolate/src/string.mjs +43 -0
  188. package/es/node_modules/d3-interpolate/src/transform/decompose.mjs +28 -0
  189. package/es/node_modules/d3-interpolate/src/transform/index.mjs +59 -0
  190. package/es/node_modules/d3-interpolate/src/transform/parse.mjs +18 -0
  191. package/es/node_modules/d3-interpolate/src/value.mjs +16 -0
  192. package/es/node_modules/d3-path/src/path.mjs +88 -0
  193. package/es/node_modules/d3-sankey/node_modules/d3-array/src/max.mjs +21 -0
  194. package/es/node_modules/d3-sankey/node_modules/d3-array/src/min.mjs +21 -0
  195. package/es/node_modules/d3-sankey/node_modules/d3-array/src/sum.mjs +21 -0
  196. package/es/node_modules/d3-sankey/src/align.mjs +22 -0
  197. package/es/node_modules/d3-sankey/src/constant.mjs +8 -0
  198. package/es/node_modules/d3-sankey/src/sankey.mjs +326 -0
  199. package/es/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +13 -0
  200. package/es/node_modules/d3-scale/src/band.mjs +56 -0
  201. package/es/node_modules/d3-scale/src/constant.mjs +8 -0
  202. package/es/node_modules/d3-scale/src/continuous.mjs +95 -0
  203. package/es/node_modules/d3-scale/src/init.mjs +16 -0
  204. package/es/node_modules/d3-scale/src/linear.mjs +61 -0
  205. package/es/node_modules/d3-scale/src/nice.mjs +14 -0
  206. package/es/node_modules/d3-scale/src/number.mjs +6 -0
  207. package/es/node_modules/d3-scale/src/ordinal.mjs +38 -0
  208. package/es/node_modules/d3-scale/src/tickFormat.mjs +34 -0
  209. package/es/node_modules/d3-scale/src/time.mjs +54 -0
  210. package/es/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +5 -0
  211. package/es/node_modules/d3-scale-chromatic/src/colors.mjs +8 -0
  212. package/es/node_modules/d3-selection/src/array.mjs +6 -0
  213. package/es/node_modules/d3-selection/src/constant.mjs +8 -0
  214. package/es/node_modules/d3-selection/src/creator.mjs +20 -0
  215. package/es/node_modules/d3-selection/src/matcher.mjs +14 -0
  216. package/es/node_modules/d3-selection/src/namespace.mjs +9 -0
  217. package/es/node_modules/d3-selection/src/namespaces.mjs +12 -0
  218. package/es/node_modules/d3-selection/src/select.mjs +7 -0
  219. package/es/node_modules/d3-selection/src/selection/append.mjs +10 -0
  220. package/es/node_modules/d3-selection/src/selection/attr.mjs +46 -0
  221. package/es/node_modules/d3-selection/src/selection/call.mjs +9 -0
  222. package/es/node_modules/d3-selection/src/selection/classed.mjs +64 -0
  223. package/es/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  224. package/es/node_modules/d3-selection/src/selection/data.mjs +76 -0
  225. package/es/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  226. package/es/node_modules/d3-selection/src/selection/dispatch.mjs +28 -0
  227. package/es/node_modules/d3-selection/src/selection/each.mjs +11 -0
  228. package/es/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  229. package/es/node_modules/d3-selection/src/selection/enter.mjs +31 -0
  230. package/es/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  231. package/es/node_modules/d3-selection/src/selection/filter.mjs +16 -0
  232. package/es/node_modules/d3-selection/src/selection/html.mjs +20 -0
  233. package/es/node_modules/d3-selection/src/selection/index.mjs +88 -0
  234. package/es/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  235. package/es/node_modules/d3-selection/src/selection/iterator.mjs +10 -0
  236. package/es/node_modules/d3-selection/src/selection/join.mjs +19 -0
  237. package/es/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  238. package/es/node_modules/d3-selection/src/selection/merge.mjs +18 -0
  239. package/es/node_modules/d3-selection/src/selection/node.mjs +12 -0
  240. package/es/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  241. package/es/node_modules/d3-selection/src/selection/on.mjs +64 -0
  242. package/es/node_modules/d3-selection/src/selection/order.mjs +14 -0
  243. package/es/node_modules/d3-selection/src/selection/property.mjs +23 -0
  244. package/es/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  245. package/es/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  246. package/es/node_modules/d3-selection/src/selection/select.mjs +17 -0
  247. package/es/node_modules/d3-selection/src/selection/selectAll.mjs +24 -0
  248. package/es/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  249. package/es/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  250. package/es/node_modules/d3-selection/src/selection/size.mjs +8 -0
  251. package/es/node_modules/d3-selection/src/selection/sort.mjs +22 -0
  252. package/es/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  253. package/es/node_modules/d3-selection/src/selection/style.mjs +28 -0
  254. package/es/node_modules/d3-selection/src/selection/text.mjs +20 -0
  255. package/es/node_modules/d3-selection/src/selector.mjs +10 -0
  256. package/es/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  257. package/es/node_modules/d3-selection/src/window.mjs +6 -0
  258. package/es/node_modules/d3-shape/node_modules/d3-path/src/path.mjs +73 -0
  259. package/es/node_modules/d3-shape/src/array.mjs +4 -0
  260. package/es/node_modules/d3-shape/src/constant.mjs +8 -0
  261. package/es/node_modules/d3-shape/src/link/index.mjs +45 -0
  262. package/es/node_modules/d3-shape/src/point.mjs +10 -0
  263. package/es/node_modules/d3-time/src/day.mjs +34 -0
  264. package/es/node_modules/d3-time/src/duration.mjs +16 -0
  265. package/es/node_modules/d3-time/src/hour.mjs +26 -0
  266. package/es/node_modules/d3-time/src/interval.mjs +61 -0
  267. package/es/node_modules/d3-time/src/millisecond.mjs +23 -0
  268. package/es/node_modules/d3-time/src/minute.mjs +26 -0
  269. package/es/node_modules/d3-time/src/month.mjs +27 -0
  270. package/es/node_modules/d3-time/src/second.mjs +15 -0
  271. package/es/node_modules/d3-time/src/ticks.mjs +54 -0
  272. package/es/node_modules/d3-time/src/week.mjs +66 -0
  273. package/es/node_modules/d3-time/src/year.mjs +45 -0
  274. package/es/node_modules/d3-time-format/src/defaultLocale.mjs +25 -0
  275. package/es/node_modules/d3-time-format/src/locale.mjs +542 -0
  276. package/es/node_modules/d3-timer/src/timeout.mjs +13 -0
  277. package/es/node_modules/d3-timer/src/timer.mjs +96 -0
  278. package/es/node_modules/d3-transition/src/interrupt.mjs +21 -0
  279. package/es/node_modules/d3-transition/src/selection/index.mjs +5 -0
  280. package/es/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  281. package/es/node_modules/d3-transition/src/selection/transition.mjs +39 -0
  282. package/es/node_modules/d3-transition/src/transition/attr.mjs +55 -0
  283. package/es/node_modules/d3-transition/src/transition/attrTween.mjs +42 -0
  284. package/es/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  285. package/es/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  286. package/es/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  287. package/es/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  288. package/es/node_modules/d3-transition/src/transition/end.mjs +23 -0
  289. package/es/node_modules/d3-transition/src/transition/filter.mjs +16 -0
  290. package/es/node_modules/d3-transition/src/transition/index.mjs +68 -0
  291. package/es/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  292. package/es/node_modules/d3-transition/src/transition/merge.mjs +18 -0
  293. package/es/node_modules/d3-transition/src/transition/on.mjs +23 -0
  294. package/es/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  295. package/es/node_modules/d3-transition/src/transition/schedule.mjs +125 -0
  296. package/es/node_modules/d3-transition/src/transition/select.mjs +20 -0
  297. package/es/node_modules/d3-transition/src/transition/selectAll.mjs +24 -0
  298. package/es/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  299. package/es/node_modules/d3-transition/src/transition/style.mjs +47 -0
  300. package/es/node_modules/d3-transition/src/transition/styleTween.mjs +25 -0
  301. package/es/node_modules/d3-transition/src/transition/text.mjs +18 -0
  302. package/es/node_modules/d3-transition/src/transition/textTween.mjs +25 -0
  303. package/es/node_modules/d3-transition/src/transition/transition.mjs +22 -0
  304. package/es/node_modules/d3-transition/src/transition/tween.mjs +64 -0
  305. package/es/node_modules/d3-zoom/src/transform.mjs +45 -0
  306. package/es/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +56 -0
  307. package/es/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +33 -0
  308. package/es/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +66 -0
  309. package/es/node_modules/dagre-d3-es/src/dagre/data/list.mjs +49 -0
  310. package/es/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +101 -0
  311. package/es/node_modules/dagre-d3-es/src/dagre/layout.mjs +350 -0
  312. package/es/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +97 -0
  313. package/es/node_modules/dagre-d3-es/src/dagre/normalize.mjs +69 -0
  314. package/es/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +25 -0
  315. package/es/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +30 -0
  316. package/es/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +35 -0
  317. package/es/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +58 -0
  318. package/es/node_modules/dagre-d3-es/src/dagre/order/index.mjs +54 -0
  319. package/es/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +36 -0
  320. package/es/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +88 -0
  321. package/es/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +69 -0
  322. package/es/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +50 -0
  323. package/es/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +66 -0
  324. package/es/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +319 -0
  325. package/es/node_modules/dagre-d3-es/src/dagre/position/index.mjs +32 -0
  326. package/es/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +46 -0
  327. package/es/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +29 -0
  328. package/es/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +149 -0
  329. package/es/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +32 -0
  330. package/es/node_modules/dagre-d3-es/src/dagre/util.mjs +171 -0
  331. package/es/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +34 -0
  332. package/es/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +7 -0
  333. package/es/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +7 -0
  334. package/es/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +6 -0
  335. package/es/node_modules/dagre-d3-es/src/graphlib/graph.mjs +786 -0
  336. package/es/node_modules/dagre-d3-es/src/graphlib/json.mjs +49 -0
  337. package/es/node_modules/dayjs/plugin/duration.mjs +140 -0
  338. package/es/node_modules/dayjs/plugin/isoWeek.mjs +37 -0
  339. package/es/node_modules/diagram-js/lib/model/index.mjs +1 -1
  340. package/es/node_modules/dompurify/dist/purify.es.mjs +1503 -0
  341. package/es/node_modules/element-plus/es/components/calendar/src/select-controller.vue_vue_type_script_setup_true_lang.mjs +3 -3
  342. package/es/node_modules/element-plus/es/components/calendar/src/use-calendar.mjs +4 -4
  343. package/es/node_modules/element-plus/es/components/calendar/src/use-date-table.mjs +4 -4
  344. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs +3 -3
  345. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs +3 -3
  346. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.mjs +2 -2
  347. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.vue_vue_type_script_setup_true_lang.mjs +4 -4
  348. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.vue_vue_type_script_setup_true_lang.mjs +7 -7
  349. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +14 -14
  350. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +6 -6
  351. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue_vue_type_script_setup_true_lang.mjs +3 -3
  352. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue_vue_type_script_setup_true_lang.mjs +3 -3
  353. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs +11 -11
  354. package/es/node_modules/element-plus/es/components/date-picker-panel/src/utils.mjs +10 -10
  355. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_setup_true_lang.mjs +4 -4
  356. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_setup_true_lang.mjs +6 -6
  357. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs +3 -3
  358. package/es/node_modules/element-plus/es/components/time-picker/src/utils.mjs +3 -3
  359. package/es/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs +5 -5
  360. package/es/node_modules/entities/lib/esm/decode.mjs +383 -0
  361. package/es/node_modules/entities/lib/esm/decode_codepoint.mjs +56 -0
  362. package/es/node_modules/entities/lib/esm/generated/decode-data-html.mjs +7 -0
  363. package/es/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +7 -0
  364. package/es/node_modules/es-toolkit/dist/_internal/globalThis.mjs +6 -0
  365. package/es/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
  366. package/es/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs +6 -0
  367. package/es/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs +7 -0
  368. package/es/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs +7 -0
  369. package/es/node_modules/es-toolkit/dist/compat/_internal/tags.mjs +46 -0
  370. package/es/node_modules/es-toolkit/dist/compat/function/memoize.mjs +17 -0
  371. package/es/node_modules/es-toolkit/dist/compat/object/clone.mjs +130 -0
  372. package/es/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs +7 -0
  373. package/es/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs +35 -0
  374. package/es/node_modules/es-toolkit/dist/compat/object/merge.mjs +8 -0
  375. package/es/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs +65 -0
  376. package/es/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs +7 -0
  377. package/es/node_modules/es-toolkit/dist/compat/predicate/isArray.mjs +6 -0
  378. package/es/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs +7 -0
  379. package/es/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs +8 -0
  380. package/es/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs +22 -0
  381. package/es/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs +6 -0
  382. package/es/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs +18 -0
  383. package/es/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs +7 -0
  384. package/es/node_modules/es-toolkit/dist/function/noop.mjs +5 -0
  385. package/es/node_modules/es-toolkit/dist/object/clone.mjs +33 -0
  386. package/es/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs +145 -0
  387. package/es/node_modules/es-toolkit/dist/predicate/isBuffer.mjs +7 -0
  388. package/es/node_modules/es-toolkit/dist/predicate/isLength.mjs +6 -0
  389. package/es/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs +6 -0
  390. package/es/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs +6 -0
  391. package/es/node_modules/highlight.js/es/index.mjs +5 -0
  392. package/es/node_modules/highlight.js/lib/core.mjs +1542 -0
  393. package/es/node_modules/highlight.js/lib/index.mjs +399 -0
  394. package/es/node_modules/highlight.js/lib/languages/1c.mjs +157 -0
  395. package/es/node_modules/highlight.js/lib/languages/abnf.mjs +74 -0
  396. package/es/node_modules/highlight.js/lib/languages/accesslog.mjs +90 -0
  397. package/es/node_modules/highlight.js/lib/languages/actionscript.mjs +151 -0
  398. package/es/node_modules/highlight.js/lib/languages/ada.mjs +231 -0
  399. package/es/node_modules/highlight.js/lib/languages/angelscript.mjs +175 -0
  400. package/es/node_modules/highlight.js/lib/languages/apache.mjs +103 -0
  401. package/es/node_modules/highlight.js/lib/languages/applescript.mjs +130 -0
  402. package/es/node_modules/highlight.js/lib/languages/arcade.mjs +431 -0
  403. package/es/node_modules/highlight.js/lib/languages/arduino.mjs +942 -0
  404. package/es/node_modules/highlight.js/lib/languages/armasm.mjs +97 -0
  405. package/es/node_modules/highlight.js/lib/languages/asciidoc.mjs +257 -0
  406. package/es/node_modules/highlight.js/lib/languages/aspectj.mjs +229 -0
  407. package/es/node_modules/highlight.js/lib/languages/autohotkey.mjs +76 -0
  408. package/es/node_modules/highlight.js/lib/languages/autoit.mjs +163 -0
  409. package/es/node_modules/highlight.js/lib/languages/avrasm.mjs +67 -0
  410. package/es/node_modules/highlight.js/lib/languages/awk.mjs +68 -0
  411. package/es/node_modules/highlight.js/lib/languages/axapta.mjs +183 -0
  412. package/es/node_modules/highlight.js/lib/languages/bash.mjs +403 -0
  413. package/es/node_modules/highlight.js/lib/languages/basic.mjs +235 -0
  414. package/es/node_modules/highlight.js/lib/languages/bnf.mjs +40 -0
  415. package/es/node_modules/highlight.js/lib/languages/brainfuck.mjs +56 -0
  416. package/es/node_modules/highlight.js/lib/languages/c.mjs +303 -0
  417. package/es/node_modules/highlight.js/lib/languages/cal.mjs +157 -0
  418. package/es/node_modules/highlight.js/lib/languages/capnproto.mjs +99 -0
  419. package/es/node_modules/highlight.js/lib/languages/ceylon.mjs +137 -0
  420. package/es/node_modules/highlight.js/lib/languages/clean.mjs +68 -0
  421. package/es/node_modules/highlight.js/lib/languages/clojure-repl.mjs +26 -0
  422. package/es/node_modules/highlight.js/lib/languages/clojure.mjs +164 -0
  423. package/es/node_modules/highlight.js/lib/languages/cmake.mjs +33 -0
  424. package/es/node_modules/highlight.js/lib/languages/coffeescript.mjs +359 -0
  425. package/es/node_modules/highlight.js/lib/languages/coq.mjs +448 -0
  426. package/es/node_modules/highlight.js/lib/languages/cos.mjs +100 -0
  427. package/es/node_modules/highlight.js/lib/languages/cpp.mjs +552 -0
  428. package/es/node_modules/highlight.js/lib/languages/crmsh.mjs +95 -0
  429. package/es/node_modules/highlight.js/lib/languages/crystal.mjs +307 -0
  430. package/es/node_modules/highlight.js/lib/languages/csharp.mjs +409 -0
  431. package/es/node_modules/highlight.js/lib/languages/csp.mjs +56 -0
  432. package/es/node_modules/highlight.js/lib/languages/css.mjs +946 -0
  433. package/es/node_modules/highlight.js/lib/languages/d.mjs +121 -0
  434. package/es/node_modules/highlight.js/lib/languages/dart.mjs +263 -0
  435. package/es/node_modules/highlight.js/lib/languages/delphi.mjs +254 -0
  436. package/es/node_modules/highlight.js/lib/languages/diff.mjs +62 -0
  437. package/es/node_modules/highlight.js/lib/languages/django.mjs +55 -0
  438. package/es/node_modules/highlight.js/lib/languages/dns.mjs +79 -0
  439. package/es/node_modules/highlight.js/lib/languages/dockerfile.mjs +43 -0
  440. package/es/node_modules/highlight.js/lib/languages/dos.mjs +166 -0
  441. package/es/node_modules/highlight.js/lib/languages/dsconfig.mjs +66 -0
  442. package/es/node_modules/highlight.js/lib/languages/dts.mjs +144 -0
  443. package/es/node_modules/highlight.js/lib/languages/dust.mjs +46 -0
  444. package/es/node_modules/highlight.js/lib/languages/ebnf.mjs +51 -0
  445. package/es/node_modules/highlight.js/lib/languages/elixir.mjs +281 -0
  446. package/es/node_modules/highlight.js/lib/languages/elm.mjs +137 -0
  447. package/es/node_modules/highlight.js/lib/languages/erb.mjs +27 -0
  448. package/es/node_modules/highlight.js/lib/languages/erlang-repl.mjs +54 -0
  449. package/es/node_modules/highlight.js/lib/languages/erlang.mjs +226 -0
  450. package/es/node_modules/highlight.js/lib/languages/excel.mjs +583 -0
  451. package/es/node_modules/highlight.js/lib/languages/fix.mjs +42 -0
  452. package/es/node_modules/highlight.js/lib/languages/flix.mjs +76 -0
  453. package/es/node_modules/highlight.js/lib/languages/fortran.mjs +569 -0
  454. package/es/node_modules/highlight.js/lib/languages/fsharp.mjs +575 -0
  455. package/es/node_modules/highlight.js/lib/languages/gams.mjs +162 -0
  456. package/es/node_modules/highlight.js/lib/languages/gauss.mjs +196 -0
  457. package/es/node_modules/highlight.js/lib/languages/gcode.mjs +171 -0
  458. package/es/node_modules/highlight.js/lib/languages/gherkin.mjs +51 -0
  459. package/es/node_modules/highlight.js/lib/languages/glsl.mjs +39 -0
  460. package/es/node_modules/highlight.js/lib/languages/gml.mjs +3132 -0
  461. package/es/node_modules/highlight.js/lib/languages/go.mjs +163 -0
  462. package/es/node_modules/highlight.js/lib/languages/golo.mjs +81 -0
  463. package/es/node_modules/highlight.js/lib/languages/gradle.mjs +190 -0
  464. package/es/node_modules/highlight.js/lib/languages/graphql.mjs +79 -0
  465. package/es/node_modules/highlight.js/lib/languages/groovy.mjs +189 -0
  466. package/es/node_modules/highlight.js/lib/languages/haml.mjs +113 -0
  467. package/es/node_modules/highlight.js/lib/languages/handlebars.mjs +239 -0
  468. package/es/node_modules/highlight.js/lib/languages/haskell.mjs +199 -0
  469. package/es/node_modules/highlight.js/lib/languages/haxe.mjs +169 -0
  470. package/es/node_modules/highlight.js/lib/languages/hsp.mjs +56 -0
  471. package/es/node_modules/highlight.js/lib/languages/http.mjs +97 -0
  472. package/es/node_modules/highlight.js/lib/languages/hy.mjs +107 -0
  473. package/es/node_modules/highlight.js/lib/languages/inform7.mjs +66 -0
  474. package/es/node_modules/highlight.js/lib/languages/ini.mjs +125 -0
  475. package/es/node_modules/highlight.js/lib/languages/irpf90.mjs +63 -0
  476. package/es/node_modules/highlight.js/lib/languages/isbl.mjs +266 -0
  477. package/es/node_modules/highlight.js/lib/languages/java.mjs +263 -0
  478. package/es/node_modules/highlight.js/lib/languages/javascript.mjs +710 -0
  479. package/es/node_modules/highlight.js/lib/languages/jboss-cli.mjs +62 -0
  480. package/es/node_modules/highlight.js/lib/languages/json.mjs +49 -0
  481. package/es/node_modules/highlight.js/lib/languages/julia-repl.mjs +35 -0
  482. package/es/node_modules/highlight.js/lib/languages/julia.mjs +378 -0
  483. package/es/node_modules/highlight.js/lib/languages/kotlin.mjs +264 -0
  484. package/es/node_modules/highlight.js/lib/languages/lasso.mjs +154 -0
  485. package/es/node_modules/highlight.js/lib/languages/latex.mjs +280 -0
  486. package/es/node_modules/highlight.js/lib/languages/ldif.mjs +32 -0
  487. package/es/node_modules/highlight.js/lib/languages/leaf.mjs +99 -0
  488. package/es/node_modules/highlight.js/lib/languages/less.mjs +1027 -0
  489. package/es/node_modules/highlight.js/lib/languages/lisp.mjs +141 -0
  490. package/es/node_modules/highlight.js/lib/languages/livecodeserver.mjs +103 -0
  491. package/es/node_modules/highlight.js/lib/languages/livescript.mjs +370 -0
  492. package/es/node_modules/highlight.js/lib/languages/llvm.mjs +98 -0
  493. package/es/node_modules/highlight.js/lib/languages/lsl.mjs +72 -0
  494. package/es/node_modules/highlight.js/lib/languages/lua.mjs +70 -0
  495. package/es/node_modules/highlight.js/lib/languages/makefile.mjs +80 -0
  496. package/es/node_modules/highlight.js/lib/languages/markdown.mjs +241 -0
  497. package/es/node_modules/highlight.js/lib/languages/mathematica.mjs +7341 -0
  498. package/es/node_modules/highlight.js/lib/languages/matlab.mjs +85 -0
  499. package/es/node_modules/highlight.js/lib/languages/maxima.mjs +63 -0
  500. package/es/node_modules/highlight.js/lib/languages/mel.mjs +35 -0
  501. package/es/node_modules/highlight.js/lib/languages/mercury.mjs +87 -0
  502. package/es/node_modules/highlight.js/lib/languages/mipsasm.mjs +85 -0
  503. package/es/node_modules/highlight.js/lib/languages/mizar.mjs +18 -0
  504. package/es/node_modules/highlight.js/lib/languages/mojolicious.mjs +37 -0
  505. package/es/node_modules/highlight.js/lib/languages/monkey.mjs +184 -0
  506. package/es/node_modules/highlight.js/lib/languages/moonscript.mjs +144 -0
  507. package/es/node_modules/highlight.js/lib/languages/n1ql.mjs +360 -0
  508. package/es/node_modules/highlight.js/lib/languages/nestedtext.mjs +85 -0
  509. package/es/node_modules/highlight.js/lib/languages/nginx.mjs +152 -0
  510. package/es/node_modules/highlight.js/lib/languages/nim.mjs +190 -0
  511. package/es/node_modules/highlight.js/lib/languages/nix.mjs +356 -0
  512. package/es/node_modules/highlight.js/lib/languages/node-repl.mjs +34 -0
  513. package/es/node_modules/highlight.js/lib/languages/nsis.mjs +539 -0
  514. package/es/node_modules/highlight.js/lib/languages/objectivec.mjs +252 -0
  515. package/es/node_modules/highlight.js/lib/languages/ocaml.mjs +75 -0
  516. package/es/node_modules/highlight.js/lib/languages/openscad.mjs +78 -0
  517. package/es/node_modules/highlight.js/lib/languages/oxygene.mjs +78 -0
  518. package/es/node_modules/highlight.js/lib/languages/parser3.mjs +56 -0
  519. package/es/node_modules/highlight.js/lib/languages/perl.mjs +494 -0
  520. package/es/node_modules/highlight.js/lib/languages/pf.mjs +45 -0
  521. package/es/node_modules/highlight.js/lib/languages/pgsql.mjs +289 -0
  522. package/es/node_modules/highlight.js/lib/languages/php-template.mjs +55 -0
  523. package/es/node_modules/highlight.js/lib/languages/php.mjs +610 -0
  524. package/es/node_modules/highlight.js/lib/languages/plaintext.mjs +21 -0
  525. package/es/node_modules/highlight.js/lib/languages/pony.mjs +65 -0
  526. package/es/node_modules/highlight.js/lib/languages/powershell.mjs +265 -0
  527. package/es/node_modules/highlight.js/lib/languages/processing.mjs +435 -0
  528. package/es/node_modules/highlight.js/lib/languages/profile.mjs +46 -0
  529. package/es/node_modules/highlight.js/lib/languages/prolog.mjs +86 -0
  530. package/es/node_modules/highlight.js/lib/languages/properties.mjs +65 -0
  531. package/es/node_modules/highlight.js/lib/languages/protobuf.mjs +81 -0
  532. package/es/node_modules/highlight.js/lib/languages/puppet.mjs +120 -0
  533. package/es/node_modules/highlight.js/lib/languages/purebasic.mjs +68 -0
  534. package/es/node_modules/highlight.js/lib/languages/python-repl.mjs +34 -0
  535. package/es/node_modules/highlight.js/lib/languages/python.mjs +424 -0
  536. package/es/node_modules/highlight.js/lib/languages/q.mjs +33 -0
  537. package/es/node_modules/highlight.js/lib/languages/qml.mjs +157 -0
  538. package/es/node_modules/highlight.js/lib/languages/r.mjs +219 -0
  539. package/es/node_modules/highlight.js/lib/languages/reasonml.mjs +148 -0
  540. package/es/node_modules/highlight.js/lib/languages/rib.mjs +24 -0
  541. package/es/node_modules/highlight.js/lib/languages/roboconf.mjs +78 -0
  542. package/es/node_modules/highlight.js/lib/languages/routeros.mjs +155 -0
  543. package/es/node_modules/highlight.js/lib/languages/rsl.mjs +146 -0
  544. package/es/node_modules/highlight.js/lib/languages/ruby.mjs +422 -0
  545. package/es/node_modules/highlight.js/lib/languages/ruleslanguage.mjs +38 -0
  546. package/es/node_modules/highlight.js/lib/languages/rust.mjs +322 -0
  547. package/es/node_modules/highlight.js/lib/languages/sas.mjs +552 -0
  548. package/es/node_modules/highlight.js/lib/languages/scala.mjs +200 -0
  549. package/es/node_modules/highlight.js/lib/languages/scheme.mjs +148 -0
  550. package/es/node_modules/highlight.js/lib/languages/scilab.mjs +67 -0
  551. package/es/node_modules/highlight.js/lib/languages/scss.mjs +931 -0
  552. package/es/node_modules/highlight.js/lib/languages/shell.mjs +33 -0
  553. package/es/node_modules/highlight.js/lib/languages/smali.mjs +127 -0
  554. package/es/node_modules/highlight.js/lib/languages/smalltalk.mjs +70 -0
  555. package/es/node_modules/highlight.js/lib/languages/sml.mjs +77 -0
  556. package/es/node_modules/highlight.js/lib/languages/sqf.mjs +2619 -0
  557. package/es/node_modules/highlight.js/lib/languages/sql.mjs +652 -0
  558. package/es/node_modules/highlight.js/lib/languages/stan.mjs +504 -0
  559. package/es/node_modules/highlight.js/lib/languages/stata.mjs +47 -0
  560. package/es/node_modules/highlight.js/lib/languages/step21.mjs +68 -0
  561. package/es/node_modules/highlight.js/lib/languages/stylus.mjs +980 -0
  562. package/es/node_modules/highlight.js/lib/languages/subunit.mjs +46 -0
  563. package/es/node_modules/highlight.js/lib/languages/swift.mjs +884 -0
  564. package/es/node_modules/highlight.js/lib/languages/taggerscript.mjs +56 -0
  565. package/es/node_modules/highlight.js/lib/languages/tap.mjs +48 -0
  566. package/es/node_modules/highlight.js/lib/languages/tcl.mjs +189 -0
  567. package/es/node_modules/highlight.js/lib/languages/thrift.mjs +79 -0
  568. package/es/node_modules/highlight.js/lib/languages/tp.mjs +173 -0
  569. package/es/node_modules/highlight.js/lib/languages/twig.mjs +248 -0
  570. package/es/node_modules/highlight.js/lib/languages/typescript.mjs +823 -0
  571. package/es/node_modules/highlight.js/lib/languages/vala.mjs +50 -0
  572. package/es/node_modules/highlight.js/lib/languages/vbnet.mjs +142 -0
  573. package/es/node_modules/highlight.js/lib/languages/vbscript-html.mjs +24 -0
  574. package/es/node_modules/highlight.js/lib/languages/vbscript.mjs +215 -0
  575. package/es/node_modules/highlight.js/lib/languages/verilog.mjs +550 -0
  576. package/es/node_modules/highlight.js/lib/languages/vhdl.mjs +210 -0
  577. package/es/node_modules/highlight.js/lib/languages/vim.mjs +80 -0
  578. package/es/node_modules/highlight.js/lib/languages/wasm.mjs +130 -0
  579. package/es/node_modules/highlight.js/lib/languages/wren.mjs +288 -0
  580. package/es/node_modules/highlight.js/lib/languages/x86asm.mjs +96 -0
  581. package/es/node_modules/highlight.js/lib/languages/xl.mjs +206 -0
  582. package/es/node_modules/highlight.js/lib/languages/xml.mjs +235 -0
  583. package/es/node_modules/highlight.js/lib/languages/xquery.mjs +336 -0
  584. package/es/node_modules/highlight.js/lib/languages/yaml.mjs +210 -0
  585. package/es/node_modules/highlight.js/lib/languages/zephir.mjs +108 -0
  586. package/es/node_modules/katex/dist/katex.mjs +14499 -0
  587. package/es/node_modules/khroma/dist/channels/index.mjs +131 -0
  588. package/es/node_modules/khroma/dist/channels/reusable.mjs +5 -0
  589. package/es/node_modules/khroma/dist/channels/type.mjs +24 -0
  590. package/es/node_modules/khroma/dist/color/hex.mjs +40 -0
  591. package/es/node_modules/khroma/dist/color/hsl.mjs +50 -0
  592. package/es/node_modules/khroma/dist/color/index.mjs +39 -0
  593. package/es/node_modules/khroma/dist/color/keyword.mjs +172 -0
  594. package/es/node_modules/khroma/dist/color/rgb.mjs +33 -0
  595. package/es/node_modules/khroma/dist/constants.mjs +13 -0
  596. package/es/node_modules/khroma/dist/methods/adjust.mjs +15 -0
  597. package/es/node_modules/khroma/dist/methods/adjust_channel.mjs +13 -0
  598. package/es/node_modules/khroma/dist/methods/change.mjs +12 -0
  599. package/es/node_modules/khroma/dist/methods/channel.mjs +8 -0
  600. package/es/node_modules/khroma/dist/methods/darken.mjs +7 -0
  601. package/es/node_modules/khroma/dist/methods/invert.mjs +12 -0
  602. package/es/node_modules/khroma/dist/methods/is_dark.mjs +7 -0
  603. package/es/node_modules/khroma/dist/methods/is_light.mjs +7 -0
  604. package/es/node_modules/khroma/dist/methods/lighten.mjs +7 -0
  605. package/es/node_modules/khroma/dist/methods/luminance.mjs +10 -0
  606. package/es/node_modules/khroma/dist/methods/mix.mjs +20 -0
  607. package/es/node_modules/khroma/dist/methods/rgba.mjs +18 -0
  608. package/es/node_modules/khroma/dist/methods/transparentize.mjs +7 -0
  609. package/es/node_modules/khroma/dist/utils/channel.mjs +95 -0
  610. package/es/node_modules/khroma/dist/utils/index.mjs +11 -0
  611. package/es/node_modules/khroma/dist/utils/lang.mjs +14 -0
  612. package/es/node_modules/khroma/dist/utils/unit.mjs +10 -0
  613. package/es/node_modules/linkify-it/index.mjs +388 -0
  614. package/es/node_modules/linkify-it/lib/re.mjs +47 -0
  615. package/es/node_modules/lodash-es/_arrayReduce.mjs +13 -0
  616. package/es/node_modules/lodash-es/_baseExtremum.mjs +14 -0
  617. package/es/node_modules/lodash-es/_baseFilter.mjs +13 -0
  618. package/es/node_modules/lodash-es/_baseGt.mjs +6 -0
  619. package/es/node_modules/lodash-es/_baseHas.mjs +8 -0
  620. package/es/node_modules/lodash-es/_baseLt.mjs +6 -0
  621. package/es/node_modules/lodash-es/_baseOrderBy.mjs +37 -0
  622. package/es/node_modules/lodash-es/_baseRange.mjs +12 -0
  623. package/es/node_modules/lodash-es/_baseReduce.mjs +9 -0
  624. package/es/node_modules/lodash-es/_baseSortBy.mjs +11 -0
  625. package/es/node_modules/lodash-es/_baseValues.mjs +9 -0
  626. package/es/node_modules/lodash-es/_baseZipObject.mjs +11 -0
  627. package/es/node_modules/lodash-es/_castFunction.mjs +7 -0
  628. package/es/node_modules/lodash-es/_compareAscending.mjs +17 -0
  629. package/es/node_modules/lodash-es/_compareMultiple.mjs +18 -0
  630. package/es/node_modules/lodash-es/_createFind.mjs +20 -0
  631. package/es/node_modules/lodash-es/_createRange.mjs +22 -0
  632. package/es/node_modules/lodash-es/clone.mjs +8 -0
  633. package/es/node_modules/lodash-es/defaults.mjs +32 -0
  634. package/es/node_modules/lodash-es/filter.mjs +11 -0
  635. package/es/node_modules/lodash-es/find.mjs +6 -0
  636. package/es/node_modules/lodash-es/findIndex.mjs +18 -0
  637. package/es/node_modules/lodash-es/forEach.mjs +11 -0
  638. package/es/node_modules/lodash-es/forIn.mjs +9 -0
  639. package/es/node_modules/lodash-es/forOwn.mjs +8 -0
  640. package/es/node_modules/lodash-es/has.mjs +8 -0
  641. package/es/node_modules/lodash-es/isEmpty.mjs +35 -0
  642. package/es/node_modules/lodash-es/mapValues.mjs +14 -0
  643. package/es/node_modules/lodash-es/max.mjs +9 -0
  644. package/es/node_modules/lodash-es/min.mjs +9 -0
  645. package/es/node_modules/lodash-es/minBy.mjs +9 -0
  646. package/es/node_modules/lodash-es/range.mjs +5 -0
  647. package/es/node_modules/lodash-es/reduce.mjs +12 -0
  648. package/es/node_modules/lodash-es/sortBy.mjs +19 -0
  649. package/es/node_modules/lodash-es/toFinite.mjs +16 -0
  650. package/es/node_modules/lodash-es/toInteger.mjs +8 -0
  651. package/es/node_modules/lodash-es/uniqueId.mjs +9 -0
  652. package/es/node_modules/lodash-es/values.mjs +8 -0
  653. package/es/node_modules/lodash-es/zipObject.mjs +8 -0
  654. package/es/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
  655. package/es/node_modules/markdown-it/lib/common/html_re.mjs +18 -0
  656. package/es/node_modules/markdown-it/lib/common/utils.mjs +249 -0
  657. package/es/node_modules/markdown-it/lib/helpers/index.mjs +8 -0
  658. package/es/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
  659. package/es/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +36 -0
  660. package/es/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +55 -0
  661. package/es/node_modules/markdown-it/lib/index.mjs +173 -0
  662. package/es/node_modules/markdown-it/lib/parser_block.mjs +87 -0
  663. package/es/node_modules/markdown-it/lib/parser_core.mjs +36 -0
  664. package/es/node_modules/markdown-it/lib/parser_inline.mjs +123 -0
  665. package/es/node_modules/markdown-it/lib/presets/commonmark.mjs +78 -0
  666. package/es/node_modules/markdown-it/lib/presets/default.mjs +40 -0
  667. package/es/node_modules/markdown-it/lib/presets/zero.mjs +59 -0
  668. package/es/node_modules/markdown-it/lib/renderer.mjs +165 -0
  669. package/es/node_modules/markdown-it/lib/ruler.mjs +143 -0
  670. package/es/node_modules/markdown-it/lib/rules_block/blockquote.mjs +127 -0
  671. package/es/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
  672. package/es/node_modules/markdown-it/lib/rules_block/fence.mjs +70 -0
  673. package/es/node_modules/markdown-it/lib/rules_block/heading.mjs +43 -0
  674. package/es/node_modules/markdown-it/lib/rules_block/hr.mjs +36 -0
  675. package/es/node_modules/markdown-it/lib/rules_block/html_block.mjs +65 -0
  676. package/es/node_modules/markdown-it/lib/rules_block/lheading.mjs +65 -0
  677. package/es/node_modules/markdown-it/lib/rules_block/list.mjs +226 -0
  678. package/es/node_modules/markdown-it/lib/rules_block/paragraph.mjs +39 -0
  679. package/es/node_modules/markdown-it/lib/rules_block/reference.mjs +177 -0
  680. package/es/node_modules/markdown-it/lib/rules_block/state_block.mjs +159 -0
  681. package/es/node_modules/markdown-it/lib/rules_block/table.mjs +192 -0
  682. package/es/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
  683. package/es/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
  684. package/es/node_modules/markdown-it/lib/rules_core/linkify.mjs +99 -0
  685. package/es/node_modules/markdown-it/lib/rules_core/normalize.mjs +11 -0
  686. package/es/node_modules/markdown-it/lib/rules_core/replacements.mjs +63 -0
  687. package/es/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +160 -0
  688. package/es/node_modules/markdown-it/lib/rules_core/state_core.mjs +12 -0
  689. package/es/node_modules/markdown-it/lib/rules_core/text_join.mjs +31 -0
  690. package/es/node_modules/markdown-it/lib/rules_inline/autolink.mjs +59 -0
  691. package/es/node_modules/markdown-it/lib/rules_inline/backticks.mjs +46 -0
  692. package/es/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +65 -0
  693. package/es/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +88 -0
  694. package/es/node_modules/markdown-it/lib/rules_inline/entity.mjs +44 -0
  695. package/es/node_modules/markdown-it/lib/rules_inline/escape.mjs +63 -0
  696. package/es/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +25 -0
  697. package/es/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +40 -0
  698. package/es/node_modules/markdown-it/lib/rules_inline/image.mjs +115 -0
  699. package/es/node_modules/markdown-it/lib/rules_inline/link.mjs +110 -0
  700. package/es/node_modules/markdown-it/lib/rules_inline/linkify.mjs +44 -0
  701. package/es/node_modules/markdown-it/lib/rules_inline/newline.mjs +33 -0
  702. package/es/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +96 -0
  703. package/es/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +97 -0
  704. package/es/node_modules/markdown-it/lib/rules_inline/text.mjs +47 -0
  705. package/es/node_modules/markdown-it/lib/token.mjs +62 -0
  706. package/es/node_modules/marked/lib/marked.esm.mjs +1118 -0
  707. package/es/node_modules/mdurl/index.mjs +10 -0
  708. package/es/node_modules/mdurl/lib/decode.mjs +83 -0
  709. package/es/node_modules/mdurl/lib/encode.mjs +64 -0
  710. package/es/node_modules/mdurl/lib/format.mjs +19 -0
  711. package/es/node_modules/mdurl/lib/parse.mjs +182 -0
  712. package/es/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VRR7QNED.mjs +123 -0
  713. package/es/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-ZJ3FMSHR.mjs +1261 -0
  714. package/es/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-677ZJIJ3.mjs +3688 -0
  715. package/es/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.mjs +2485 -0
  716. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs +17 -0
  717. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.mjs +121 -0
  718. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.mjs +1050 -0
  719. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs +19 -0
  720. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7BUUIJ7U.mjs +126 -0
  721. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C7G6YPKG.mjs +105 -0
  722. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EX3LRPZG.mjs +2004 -0
  723. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FWX5IMBZ.mjs +91 -0
  724. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HOUHSVGY.mjs +92 -0
  725. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.mjs +571 -0
  726. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JWPE2WC7.mjs +17 -0
  727. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MOJQB5TN.mjs +858 -0
  728. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OGEWGWER.mjs +57 -0
  729. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PUDLZKDR.mjs +2359 -0
  730. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Q4XR5HBZ.mjs +399 -0
  731. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RYQCIY6F.mjs +430 -0
  732. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-V7JOEXUC.mjs +2030 -0
  733. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VAUOI2AC.mjs +20 -0
  734. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VR4S4FIN.mjs +27 -0
  735. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WYO6CB5R.mjs +5448 -0
  736. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.mjs +72 -0
  737. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XXDRQBXY.mjs +16 -0
  738. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.mjs +10 -0
  739. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZGVPDNZ5.mjs +5723 -0
  740. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.mjs +2700 -0
  741. package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.mjs +31 -0
  742. package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.mjs +31 -0
  743. package/es/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-JH36ORCC.mjs +295 -0
  744. package/es/node_modules/mermaid/dist/chunks/mermaid.core/cynefinDiagram-TSTJHNR4.mjs +457 -0
  745. package/es/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VKFMJZFB.mjs +534 -0
  746. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-FQU43EPY.mjs +642 -0
  747. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G47NLZAW.mjs +539 -0
  748. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-NH7WQ7WH.mjs +215 -0
  749. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OA4YK3LP.mjs +496 -0
  750. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-WEI45ONY.mjs +312 -0
  751. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-CCIWWBDH.mjs +143 -0
  752. package/es/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q63AITRT.mjs +1250 -0
  753. package/es/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.mjs +18 -0
  754. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.mjs +2247 -0
  755. package/es/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-IHSO6WYX.mjs +1390 -0
  756. package/es/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-FWYZ7A6U.mjs +34 -0
  757. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-FXEZZL3T.mjs +971 -0
  758. package/es/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-5HDEW3XC.mjs +1260 -0
  759. package/es/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-HUTT4EX6.mjs +1065 -0
  760. package/es/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.mjs +1167 -0
  761. package/es/node_modules/mermaid/dist/chunks/mermaid.core/pegDiagram-2B236MQR.mjs +131 -0
  762. package/es/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ENE6RG2P.mjs +270 -0
  763. package/es/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-ABIIQ3AL.mjs +1343 -0
  764. package/es/node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-RFXS5EU6.mjs +97 -0
  765. package/es/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-TGXJPOKE.mjs +1213 -0
  766. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-HTMAVEWB.mjs +744 -0
  767. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.mjs +4530 -0
  768. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs +63 -0
  769. package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.mjs +464 -0
  770. package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.mjs +31 -0
  771. package/es/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-5IMT3BWC.mjs +8577 -0
  772. package/es/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.mjs +28 -0
  773. package/es/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-FHXFAJF6.mjs +1615 -0
  774. package/es/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-L72KCM5P.mjs +1091 -0
  775. package/es/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-EHGQE667.mjs +981 -0
  776. package/es/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-FW5EYKEG.mjs +1919 -0
  777. package/es/node_modules/mermaid/dist/mermaid.core.mjs +1468 -0
  778. package/es/node_modules/object-refs/index.mjs +1 -1
  779. package/es/node_modules/punycode.js/punycode.es6.mjs +240 -0
  780. package/es/node_modules/roughjs/bundled/rough.esm.mjs +1001 -0
  781. package/es/node_modules/stylis/src/Enum.mjs +22 -0
  782. package/es/node_modules/stylis/src/Middleware.mjs +13 -0
  783. package/es/node_modules/stylis/src/Parser.mjs +176 -0
  784. package/es/node_modules/stylis/src/Serializer.mjs +29 -0
  785. package/es/node_modules/stylis/src/Tokenizer.mjs +156 -0
  786. package/es/node_modules/stylis/src/Utility.mjs +34 -0
  787. package/es/node_modules/ts-dedent/esm/index.mjs +42 -0
  788. package/es/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
  789. package/es/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
  790. package/es/node_modules/uc.micro/categories/P/regex.mjs +4 -0
  791. package/es/node_modules/uc.micro/categories/S/regex.mjs +4 -0
  792. package/es/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
  793. package/es/node_modules/uc.micro/index.mjs +14 -0
  794. package/es/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
  795. package/es/node_modules/uuid/dist/native.mjs +5 -0
  796. package/es/node_modules/uuid/dist/rng.mjs +14 -0
  797. package/es/node_modules/uuid/dist/stringify.mjs +10 -0
  798. package/es/node_modules/uuid/dist/v4.mjs +23 -0
  799. package/es/node_modules/vant/es/action-bar-button/ActionBarButton.mjs +1 -1
  800. package/es/node_modules/vant/es/button/Button.mjs +2 -2
  801. package/es/node_modules/vant/es/dialog/Dialog.mjs +2 -2
  802. package/es/node_modules/vant/es/loading/Loading.mjs +1 -1
  803. package/es/node_modules/vant/es/swipe-cell/SwipeCell.mjs +1 -1
  804. package/es/packages/mobile/index.mjs +2 -0
  805. package/es/packages/mobile/src/components/ai/AiChat/AiChat.vue.mjs +218 -0
  806. package/es/packages/mobile/src/components/ai/AiChat/index.mjs +7 -0
  807. package/es/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.mjs +211 -0
  808. package/es/packages/mobile/src/components/ai/ChatInput/index.mjs +7 -0
  809. package/es/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.mjs +232 -0
  810. package/es/packages/mobile/src/components/ai/ChatPanel/index.mjs +7 -0
  811. package/es/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.mjs +129 -0
  812. package/es/packages/mobile/src/components/ai/MarkdownRenderer/index.mjs +7 -0
  813. package/es/packages/mobile/src/components/ai/RecordOverlay/RecordOverlay.vue.mjs +98 -0
  814. package/es/packages/mobile/src/components/ai/RecordOverlay/index.mjs +7 -0
  815. package/es/packages/mobile/src/components/all.mjs +2 -0
  816. package/es/packages/mobile/src/components/dataDisplay/mine/Mine.vue.mjs +3 -5
  817. package/es/packages/mobile/src/composables/useAI/adapters/detector.mjs +77 -0
  818. package/es/packages/mobile/src/composables/useAI/adapters/index.mjs +34 -0
  819. package/es/packages/mobile/src/composables/useAI/adapters/miniprogram.mjs +163 -0
  820. package/es/packages/mobile/src/composables/useAI/adapters/mock.mjs +179 -0
  821. package/es/packages/mobile/src/composables/useAI/adapters/wecom.mjs +212 -0
  822. package/es/packages/mobile/src/composables/useAI/types.mjs +92 -0
  823. package/es/packages/mobile/src/composables/useAI/useChat.mjs +197 -0
  824. package/es/packages/mobile/src/composables/useAI/useVoice.mjs +168 -0
  825. package/es/packages/mobile/src/composables/useVoiceTouch.mjs +101 -0
  826. package/es/packages/mobile/src/index.vue.mjs +111 -27
  827. package/es/packages/mobile/src/utils/eventFlow/actionHandlers.mjs +2 -1
  828. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +30 -2
  829. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +100 -3
  830. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +6 -2
  831. package/es/packages/vue/src/components/table/Table.vue.mjs +5 -111
  832. package/es/packages/vue/src/utils/formatCellValue.mjs +104 -0
  833. package/es/packages/vue/src/utils/importantDataChange.mjs +181 -0
  834. package/lib/_virtual/advancedFormat.js +4 -4
  835. package/lib/_virtual/constants.js +4 -0
  836. package/lib/_virtual/cose-base.js +4 -0
  837. package/lib/_virtual/cose-base2.js +4 -0
  838. package/lib/_virtual/customParseFormat.js +4 -4
  839. package/lib/_virtual/cytoscape-cose-bilkent.js +7 -0
  840. package/lib/_virtual/cytoscape-cose-bilkent2.js +4 -0
  841. package/lib/_virtual/cytoscape-fcose.js +7 -0
  842. package/lib/_virtual/cytoscape-fcose2.js +4 -0
  843. package/lib/_virtual/dayjs.min.js +2 -2
  844. package/lib/_virtual/duration.js +7 -0
  845. package/lib/_virtual/duration2.js +4 -0
  846. package/lib/_virtual/index.js +4 -4
  847. package/lib/_virtual/index2.js +3 -2
  848. package/lib/_virtual/index3.js +7 -0
  849. package/lib/_virtual/index4.js +4 -0
  850. package/lib/_virtual/index5.js +4 -0
  851. package/lib/_virtual/isoWeek.js +7 -0
  852. package/lib/_virtual/isoWeek2.js +4 -0
  853. package/lib/_virtual/layout-base.js +4 -0
  854. package/lib/_virtual/layout-base2.js +4 -0
  855. package/lib/designer/package.json.js +1 -1
  856. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  857. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  858. package/lib/designer/src/components/ValueSelector.vue2.js +5 -7
  859. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  860. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  861. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  862. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  863. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  864. package/lib/designer/src/packages/form/headerBtn.vue.js +46 -24
  865. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  866. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  867. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  868. package/lib/designer/src/packages/importantDataChange/index.vue.js +184 -0
  869. package/lib/designer/src/packages/importantDataChange/useImportantDataChangeDialog.js +16 -0
  870. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  871. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  872. package/lib/designer.css +968 -112
  873. package/lib/node_modules/@braintree/sanitize-url/dist/constants.js +20 -0
  874. package/lib/node_modules/@braintree/sanitize-url/dist/index.js +75 -0
  875. package/lib/node_modules/@element-plus/icons-vue/dist/index.js +32 -0
  876. package/lib/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  877. package/lib/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  878. package/lib/node_modules/@iconify/utils/lib/icon/merge.js +13 -0
  879. package/lib/node_modules/@iconify/utils/lib/icon/name.js +45 -0
  880. package/lib/node_modules/@iconify/utils/lib/icon/transformations.js +11 -0
  881. package/lib/node_modules/@iconify/utils/lib/icon-set/get-icon.js +22 -0
  882. package/lib/node_modules/@iconify/utils/lib/icon-set/tree.js +20 -0
  883. package/lib/node_modules/@iconify/utils/lib/svg/build.js +103 -0
  884. package/lib/node_modules/@iconify/utils/lib/svg/defs.js +29 -0
  885. package/lib/node_modules/@iconify/utils/lib/svg/html.js +8 -0
  886. package/lib/node_modules/@iconify/utils/lib/svg/id.js +25 -0
  887. package/lib/node_modules/@iconify/utils/lib/svg/size.js +26 -0
  888. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-TIHT7OUA.js +6 -0
  889. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5FCAYU7R.js +35 -0
  890. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5HE753X5.js +49 -0
  891. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5JV3BV7I.js +88 -0
  892. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5TONJI2A.js +76 -0
  893. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BIQX33UG.js +31 -0
  894. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CQNSW5MT.js +57 -0
  895. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CYSBUYHQ.js +31 -0
  896. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EMLP6XTP.js +31 -0
  897. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JG7HCLWE.js +76 -0
  898. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KEIR6QF5.js +30695 -0
  899. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MOZMSUNE.js +48 -0
  900. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OSBZ3O6U.js +31 -0
  901. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-QBLGF6JB.js +31 -0
  902. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R7FJI6CG.js +102 -0
  903. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-U6XO7XAA.js +79 -0
  904. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-YOTPTUD7.js +39 -0
  905. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-VYW2F7L2.js +6 -0
  906. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-45OFAUF4.js +6 -0
  907. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-TEB2WS4Q.js +6 -0
  908. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-DKCQHKI2.js +6 -0
  909. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-7NZHBO7P.js +6 -0
  910. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-RZYD4A2V.js +6 -0
  911. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-I7S5WNFK.js +6 -0
  912. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-3IZDKUUU.js +6 -0
  913. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-AHOZXSZD.js +6 -0
  914. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-EBAXGLYW.js +6 -0
  915. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-LSFZ7HO6.js +6 -0
  916. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-QDETBFTQ.js +6 -0
  917. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-6X3UGDF4.js +6 -0
  918. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-OPB4EBWU.js +6 -0
  919. package/lib/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +275 -0
  920. package/lib/node_modules/@upsetjs/venn.js/build/venn.esm.js +1465 -0
  921. package/lib/node_modules/cytoscape/dist/cytoscape.esm.js +30346 -0
  922. package/lib/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +374 -0
  923. package/lib/node_modules/cytoscape-cose-bilkent/node_modules/cose-base/cose-base.js +1090 -0
  924. package/lib/node_modules/cytoscape-cose-bilkent/node_modules/layout-base/layout-base.js +3197 -0
  925. package/lib/node_modules/cytoscape-fcose/cytoscape-fcose.js +1278 -0
  926. package/lib/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +2555 -0
  927. package/lib/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +3745 -0
  928. package/lib/node_modules/d3/node_modules/d3-shape/src/arc.js +133 -0
  929. package/lib/node_modules/d3/node_modules/d3-shape/src/array.js +6 -0
  930. package/lib/node_modules/d3/node_modules/d3-shape/src/constant.js +8 -0
  931. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basis.js +66 -0
  932. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basisClosed.js +63 -0
  933. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basisOpen.js +50 -0
  934. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/bump.js +49 -0
  935. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/bundle.js +43 -0
  936. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinal.js +73 -0
  937. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinalClosed.js +69 -0
  938. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinalOpen.js +57 -0
  939. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRom.js +83 -0
  940. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomClosed.js +75 -0
  941. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomOpen.js +63 -0
  942. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/linear.js +39 -0
  943. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
  944. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/monotone.js +99 -0
  945. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/natural.js +54 -0
  946. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/step.js +59 -0
  947. package/lib/node_modules/d3/node_modules/d3-shape/src/descending.js +6 -0
  948. package/lib/node_modules/d3/node_modules/d3-shape/src/identity.js +6 -0
  949. package/lib/node_modules/d3/node_modules/d3-shape/src/line.js +41 -0
  950. package/lib/node_modules/d3/node_modules/d3-shape/src/math.js +32 -0
  951. package/lib/node_modules/d3/node_modules/d3-shape/src/noop.js +5 -0
  952. package/lib/node_modules/d3/node_modules/d3-shape/src/path.js +19 -0
  953. package/lib/node_modules/d3/node_modules/d3-shape/src/pie.js +55 -0
  954. package/lib/node_modules/d3/node_modules/d3-shape/src/point.js +10 -0
  955. package/lib/node_modules/d3-array/node_modules/internmap/src/index.js +43 -0
  956. package/lib/node_modules/d3-array/src/ascending.js +6 -0
  957. package/lib/node_modules/d3-array/src/bisect.js +10 -0
  958. package/lib/node_modules/d3-array/src/bisector.js +47 -0
  959. package/lib/node_modules/d3-array/src/descending.js +6 -0
  960. package/lib/node_modules/d3-array/src/max.js +21 -0
  961. package/lib/node_modules/d3-array/src/min.js +21 -0
  962. package/lib/node_modules/d3-array/src/number.js +6 -0
  963. package/lib/node_modules/d3-array/src/range.js +11 -0
  964. package/lib/node_modules/d3-array/src/ticks.js +51 -0
  965. package/lib/node_modules/d3-axis/src/axis.js +94 -0
  966. package/lib/node_modules/d3-axis/src/identity.js +6 -0
  967. package/lib/node_modules/d3-color/src/color.js +338 -0
  968. package/lib/node_modules/d3-color/src/define.js +13 -0
  969. package/lib/node_modules/d3-color/src/lab.js +95 -0
  970. package/lib/node_modules/d3-color/src/math.js +6 -0
  971. package/lib/node_modules/d3-dispatch/src/dispatch.js +70 -0
  972. package/lib/node_modules/d3-ease/src/cubic.js +6 -0
  973. package/lib/node_modules/d3-format/src/defaultLocale.js +18 -0
  974. package/lib/node_modules/d3-format/src/exponent.js +7 -0
  975. package/lib/node_modules/d3-format/src/formatDecimal.js +15 -0
  976. package/lib/node_modules/d3-format/src/formatGroup.js +15 -0
  977. package/lib/node_modules/d3-format/src/formatNumerals.js +10 -0
  978. package/lib/node_modules/d3-format/src/formatPrefixAuto.js +11 -0
  979. package/lib/node_modules/d3-format/src/formatRounded.js +10 -0
  980. package/lib/node_modules/d3-format/src/formatSpecifier.js +37 -0
  981. package/lib/node_modules/d3-format/src/formatTrim.js +21 -0
  982. package/lib/node_modules/d3-format/src/formatTypes.js +21 -0
  983. package/lib/node_modules/d3-format/src/identity.js +6 -0
  984. package/lib/node_modules/d3-format/src/locale.js +82 -0
  985. package/lib/node_modules/d3-format/src/precisionFixed.js +7 -0
  986. package/lib/node_modules/d3-format/src/precisionPrefix.js +7 -0
  987. package/lib/node_modules/d3-format/src/precisionRound.js +8 -0
  988. package/lib/node_modules/d3-hierarchy/src/accessors.js +7 -0
  989. package/lib/node_modules/d3-hierarchy/src/constant.js +12 -0
  990. package/lib/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +10 -0
  991. package/lib/node_modules/d3-hierarchy/src/hierarchy/count.js +12 -0
  992. package/lib/node_modules/d3-hierarchy/src/hierarchy/descendants.js +6 -0
  993. package/lib/node_modules/d3-hierarchy/src/hierarchy/each.js +10 -0
  994. package/lib/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +18 -0
  995. package/lib/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +15 -0
  996. package/lib/node_modules/d3-hierarchy/src/hierarchy/find.js +11 -0
  997. package/lib/node_modules/d3-hierarchy/src/hierarchy/index.js +79 -0
  998. package/lib/node_modules/d3-hierarchy/src/hierarchy/iterator.js +17 -0
  999. package/lib/node_modules/d3-hierarchy/src/hierarchy/leaves.js +12 -0
  1000. package/lib/node_modules/d3-hierarchy/src/hierarchy/links.js +12 -0
  1001. package/lib/node_modules/d3-hierarchy/src/hierarchy/path.js +28 -0
  1002. package/lib/node_modules/d3-hierarchy/src/hierarchy/sort.js +10 -0
  1003. package/lib/node_modules/d3-hierarchy/src/hierarchy/sum.js +10 -0
  1004. package/lib/node_modules/d3-hierarchy/src/treemap/dice.js +10 -0
  1005. package/lib/node_modules/d3-hierarchy/src/treemap/index.js +69 -0
  1006. package/lib/node_modules/d3-hierarchy/src/treemap/round.js +9 -0
  1007. package/lib/node_modules/d3-hierarchy/src/treemap/slice.js +10 -0
  1008. package/lib/node_modules/d3-hierarchy/src/treemap/squarify.js +47 -0
  1009. package/lib/node_modules/d3-interpolate/src/array.js +13 -0
  1010. package/lib/node_modules/d3-interpolate/src/color.js +29 -0
  1011. package/lib/node_modules/d3-interpolate/src/constant.js +4 -0
  1012. package/lib/node_modules/d3-interpolate/src/date.js +9 -0
  1013. package/lib/node_modules/d3-interpolate/src/hcl.js +18 -0
  1014. package/lib/node_modules/d3-interpolate/src/number.js +8 -0
  1015. package/lib/node_modules/d3-interpolate/src/numberArray.js +15 -0
  1016. package/lib/node_modules/d3-interpolate/src/object.js +20 -0
  1017. package/lib/node_modules/d3-interpolate/src/rgb.js +20 -0
  1018. package/lib/node_modules/d3-interpolate/src/round.js +8 -0
  1019. package/lib/node_modules/d3-interpolate/src/string.js +43 -0
  1020. package/lib/node_modules/d3-interpolate/src/transform/decompose.js +28 -0
  1021. package/lib/node_modules/d3-interpolate/src/transform/index.js +59 -0
  1022. package/lib/node_modules/d3-interpolate/src/transform/parse.js +18 -0
  1023. package/lib/node_modules/d3-interpolate/src/value.js +16 -0
  1024. package/lib/node_modules/d3-path/src/path.js +88 -0
  1025. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/max.js +21 -0
  1026. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/min.js +21 -0
  1027. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +21 -0
  1028. package/lib/node_modules/d3-sankey/src/align.js +22 -0
  1029. package/lib/node_modules/d3-sankey/src/constant.js +8 -0
  1030. package/lib/node_modules/d3-sankey/src/sankey.js +326 -0
  1031. package/lib/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +13 -0
  1032. package/lib/node_modules/d3-scale/src/band.js +56 -0
  1033. package/lib/node_modules/d3-scale/src/constant.js +8 -0
  1034. package/lib/node_modules/d3-scale/src/continuous.js +95 -0
  1035. package/lib/node_modules/d3-scale/src/init.js +16 -0
  1036. package/lib/node_modules/d3-scale/src/linear.js +61 -0
  1037. package/lib/node_modules/d3-scale/src/nice.js +14 -0
  1038. package/lib/node_modules/d3-scale/src/number.js +6 -0
  1039. package/lib/node_modules/d3-scale/src/ordinal.js +38 -0
  1040. package/lib/node_modules/d3-scale/src/tickFormat.js +34 -0
  1041. package/lib/node_modules/d3-scale/src/time.js +54 -0
  1042. package/lib/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -0
  1043. package/lib/node_modules/d3-scale-chromatic/src/colors.js +8 -0
  1044. package/lib/node_modules/d3-selection/src/array.js +6 -0
  1045. package/lib/node_modules/d3-selection/src/constant.js +8 -0
  1046. package/lib/node_modules/d3-selection/src/creator.js +20 -0
  1047. package/lib/node_modules/d3-selection/src/matcher.js +14 -0
  1048. package/lib/node_modules/d3-selection/src/namespace.js +9 -0
  1049. package/lib/node_modules/d3-selection/src/namespaces.js +12 -0
  1050. package/lib/node_modules/d3-selection/src/select.js +7 -0
  1051. package/lib/node_modules/d3-selection/src/selection/append.js +10 -0
  1052. package/lib/node_modules/d3-selection/src/selection/attr.js +46 -0
  1053. package/lib/node_modules/d3-selection/src/selection/call.js +9 -0
  1054. package/lib/node_modules/d3-selection/src/selection/classed.js +64 -0
  1055. package/lib/node_modules/d3-selection/src/selection/clone.js +14 -0
  1056. package/lib/node_modules/d3-selection/src/selection/data.js +76 -0
  1057. package/lib/node_modules/d3-selection/src/selection/datum.js +6 -0
  1058. package/lib/node_modules/d3-selection/src/selection/dispatch.js +28 -0
  1059. package/lib/node_modules/d3-selection/src/selection/each.js +11 -0
  1060. package/lib/node_modules/d3-selection/src/selection/empty.js +6 -0
  1061. package/lib/node_modules/d3-selection/src/selection/enter.js +31 -0
  1062. package/lib/node_modules/d3-selection/src/selection/exit.js +8 -0
  1063. package/lib/node_modules/d3-selection/src/selection/filter.js +16 -0
  1064. package/lib/node_modules/d3-selection/src/selection/html.js +20 -0
  1065. package/lib/node_modules/d3-selection/src/selection/index.js +88 -0
  1066. package/lib/node_modules/d3-selection/src/selection/insert.js +14 -0
  1067. package/lib/node_modules/d3-selection/src/selection/iterator.js +10 -0
  1068. package/lib/node_modules/d3-selection/src/selection/join.js +19 -0
  1069. package/lib/node_modules/d3-selection/src/selection/lower.js +9 -0
  1070. package/lib/node_modules/d3-selection/src/selection/merge.js +18 -0
  1071. package/lib/node_modules/d3-selection/src/selection/node.js +12 -0
  1072. package/lib/node_modules/d3-selection/src/selection/nodes.js +6 -0
  1073. package/lib/node_modules/d3-selection/src/selection/on.js +64 -0
  1074. package/lib/node_modules/d3-selection/src/selection/order.js +14 -0
  1075. package/lib/node_modules/d3-selection/src/selection/property.js +23 -0
  1076. package/lib/node_modules/d3-selection/src/selection/raise.js +9 -0
  1077. package/lib/node_modules/d3-selection/src/selection/remove.js +10 -0
  1078. package/lib/node_modules/d3-selection/src/selection/select.js +17 -0
  1079. package/lib/node_modules/d3-selection/src/selection/selectAll.js +24 -0
  1080. package/lib/node_modules/d3-selection/src/selection/selectChild.js +16 -0
  1081. package/lib/node_modules/d3-selection/src/selection/selectChildren.js +16 -0
  1082. package/lib/node_modules/d3-selection/src/selection/size.js +8 -0
  1083. package/lib/node_modules/d3-selection/src/selection/sort.js +22 -0
  1084. package/lib/node_modules/d3-selection/src/selection/sparse.js +6 -0
  1085. package/lib/node_modules/d3-selection/src/selection/style.js +28 -0
  1086. package/lib/node_modules/d3-selection/src/selection/text.js +20 -0
  1087. package/lib/node_modules/d3-selection/src/selector.js +10 -0
  1088. package/lib/node_modules/d3-selection/src/selectorAll.js +11 -0
  1089. package/lib/node_modules/d3-selection/src/window.js +6 -0
  1090. package/lib/node_modules/d3-shape/node_modules/d3-path/src/path.js +73 -0
  1091. package/lib/node_modules/d3-shape/src/array.js +4 -0
  1092. package/lib/node_modules/d3-shape/src/constant.js +8 -0
  1093. package/lib/node_modules/d3-shape/src/link/index.js +45 -0
  1094. package/lib/node_modules/d3-shape/src/point.js +10 -0
  1095. package/lib/node_modules/d3-time/src/day.js +34 -0
  1096. package/lib/node_modules/d3-time/src/duration.js +16 -0
  1097. package/lib/node_modules/d3-time/src/hour.js +26 -0
  1098. package/lib/node_modules/d3-time/src/interval.js +61 -0
  1099. package/lib/node_modules/d3-time/src/millisecond.js +23 -0
  1100. package/lib/node_modules/d3-time/src/minute.js +26 -0
  1101. package/lib/node_modules/d3-time/src/month.js +27 -0
  1102. package/lib/node_modules/d3-time/src/second.js +15 -0
  1103. package/lib/node_modules/d3-time/src/ticks.js +54 -0
  1104. package/lib/node_modules/d3-time/src/week.js +66 -0
  1105. package/lib/node_modules/d3-time/src/year.js +45 -0
  1106. package/lib/node_modules/d3-time-format/src/defaultLocale.js +24 -0
  1107. package/lib/node_modules/d3-time-format/src/locale.js +542 -0
  1108. package/lib/node_modules/d3-timer/src/timeout.js +13 -0
  1109. package/lib/node_modules/d3-timer/src/timer.js +96 -0
  1110. package/lib/node_modules/d3-transition/src/interrupt.js +21 -0
  1111. package/lib/node_modules/d3-transition/src/selection/index.js +6 -0
  1112. package/lib/node_modules/d3-transition/src/selection/interrupt.js +9 -0
  1113. package/lib/node_modules/d3-transition/src/selection/transition.js +39 -0
  1114. package/lib/node_modules/d3-transition/src/transition/attr.js +55 -0
  1115. package/lib/node_modules/d3-transition/src/transition/attrTween.js +42 -0
  1116. package/lib/node_modules/d3-transition/src/transition/delay.js +18 -0
  1117. package/lib/node_modules/d3-transition/src/transition/duration.js +18 -0
  1118. package/lib/node_modules/d3-transition/src/transition/ease.js +14 -0
  1119. package/lib/node_modules/d3-transition/src/transition/easeVarying.js +15 -0
  1120. package/lib/node_modules/d3-transition/src/transition/end.js +23 -0
  1121. package/lib/node_modules/d3-transition/src/transition/filter.js +16 -0
  1122. package/lib/node_modules/d3-transition/src/transition/index.js +68 -0
  1123. package/lib/node_modules/d3-transition/src/transition/interpolate.js +11 -0
  1124. package/lib/node_modules/d3-transition/src/transition/merge.js +18 -0
  1125. package/lib/node_modules/d3-transition/src/transition/on.js +23 -0
  1126. package/lib/node_modules/d3-transition/src/transition/remove.js +13 -0
  1127. package/lib/node_modules/d3-transition/src/transition/schedule.js +125 -0
  1128. package/lib/node_modules/d3-transition/src/transition/select.js +20 -0
  1129. package/lib/node_modules/d3-transition/src/transition/selectAll.js +24 -0
  1130. package/lib/node_modules/d3-transition/src/transition/selection.js +8 -0
  1131. package/lib/node_modules/d3-transition/src/transition/style.js +47 -0
  1132. package/lib/node_modules/d3-transition/src/transition/styleTween.js +25 -0
  1133. package/lib/node_modules/d3-transition/src/transition/text.js +18 -0
  1134. package/lib/node_modules/d3-transition/src/transition/textTween.js +25 -0
  1135. package/lib/node_modules/d3-transition/src/transition/transition.js +22 -0
  1136. package/lib/node_modules/d3-transition/src/transition/tween.js +64 -0
  1137. package/lib/node_modules/d3-zoom/src/transform.js +45 -0
  1138. package/lib/node_modules/dagre-d3-es/src/dagre/acyclic.js +56 -0
  1139. package/lib/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +33 -0
  1140. package/lib/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +66 -0
  1141. package/lib/node_modules/dagre-d3-es/src/dagre/data/list.js +49 -0
  1142. package/lib/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +101 -0
  1143. package/lib/node_modules/dagre-d3-es/src/dagre/layout.js +350 -0
  1144. package/lib/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +97 -0
  1145. package/lib/node_modules/dagre-d3-es/src/dagre/normalize.js +69 -0
  1146. package/lib/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +25 -0
  1147. package/lib/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +30 -0
  1148. package/lib/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +35 -0
  1149. package/lib/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +58 -0
  1150. package/lib/node_modules/dagre-d3-es/src/dagre/order/index.js +54 -0
  1151. package/lib/node_modules/dagre-d3-es/src/dagre/order/init-order.js +36 -0
  1152. package/lib/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +88 -0
  1153. package/lib/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +69 -0
  1154. package/lib/node_modules/dagre-d3-es/src/dagre/order/sort.js +50 -0
  1155. package/lib/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +66 -0
  1156. package/lib/node_modules/dagre-d3-es/src/dagre/position/bk.js +319 -0
  1157. package/lib/node_modules/dagre-d3-es/src/dagre/position/index.js +32 -0
  1158. package/lib/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +46 -0
  1159. package/lib/node_modules/dagre-d3-es/src/dagre/rank/index.js +29 -0
  1160. package/lib/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +149 -0
  1161. package/lib/node_modules/dagre-d3-es/src/dagre/rank/util.js +32 -0
  1162. package/lib/node_modules/dagre-d3-es/src/dagre/util.js +171 -0
  1163. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +34 -0
  1164. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +7 -0
  1165. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +7 -0
  1166. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +6 -0
  1167. package/lib/node_modules/dagre-d3-es/src/graphlib/graph.js +786 -0
  1168. package/lib/node_modules/dagre-d3-es/src/graphlib/json.js +49 -0
  1169. package/lib/node_modules/dayjs/plugin/duration.js +140 -0
  1170. package/lib/node_modules/dayjs/plugin/isoWeek.js +37 -0
  1171. package/lib/node_modules/diagram-js/lib/model/index.js +1 -1
  1172. package/lib/node_modules/dompurify/dist/purify.es.js +1503 -0
  1173. package/lib/node_modules/entities/lib/esm/decode.js +381 -0
  1174. package/lib/node_modules/entities/lib/esm/decode_codepoint.js +56 -0
  1175. package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  1176. package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  1177. package/lib/node_modules/es-toolkit/dist/_internal/globalThis.js +6 -0
  1178. package/lib/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
  1179. package/lib/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +6 -0
  1180. package/lib/node_modules/es-toolkit/dist/compat/_internal/getTag.js +7 -0
  1181. package/lib/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +7 -0
  1182. package/lib/node_modules/es-toolkit/dist/compat/_internal/tags.js +46 -0
  1183. package/lib/node_modules/es-toolkit/dist/compat/function/memoize.js +17 -0
  1184. package/lib/node_modules/es-toolkit/dist/compat/object/clone.js +130 -0
  1185. package/lib/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +7 -0
  1186. package/lib/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +35 -0
  1187. package/lib/node_modules/es-toolkit/dist/compat/object/merge.js +8 -0
  1188. package/lib/node_modules/es-toolkit/dist/compat/object/mergeWith.js +65 -0
  1189. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +7 -0
  1190. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArray.js +6 -0
  1191. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
  1192. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +8 -0
  1193. package/lib/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +22 -0
  1194. package/lib/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +6 -0
  1195. package/lib/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +18 -0
  1196. package/lib/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +7 -0
  1197. package/lib/node_modules/es-toolkit/dist/function/noop.js +5 -0
  1198. package/lib/node_modules/es-toolkit/dist/object/clone.js +33 -0
  1199. package/lib/node_modules/es-toolkit/dist/object/cloneDeepWith.js +145 -0
  1200. package/lib/node_modules/es-toolkit/dist/predicate/isBuffer.js +7 -0
  1201. package/lib/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
  1202. package/lib/node_modules/es-toolkit/dist/predicate/isPrimitive.js +6 -0
  1203. package/lib/node_modules/es-toolkit/dist/predicate/isTypedArray.js +6 -0
  1204. package/lib/node_modules/highlight.js/es/index.js +5 -0
  1205. package/lib/node_modules/highlight.js/lib/core.js +1542 -0
  1206. package/lib/node_modules/highlight.js/lib/index.js +399 -0
  1207. package/lib/node_modules/highlight.js/lib/languages/1c.js +157 -0
  1208. package/lib/node_modules/highlight.js/lib/languages/abnf.js +74 -0
  1209. package/lib/node_modules/highlight.js/lib/languages/accesslog.js +90 -0
  1210. package/lib/node_modules/highlight.js/lib/languages/actionscript.js +151 -0
  1211. package/lib/node_modules/highlight.js/lib/languages/ada.js +231 -0
  1212. package/lib/node_modules/highlight.js/lib/languages/angelscript.js +175 -0
  1213. package/lib/node_modules/highlight.js/lib/languages/apache.js +103 -0
  1214. package/lib/node_modules/highlight.js/lib/languages/applescript.js +130 -0
  1215. package/lib/node_modules/highlight.js/lib/languages/arcade.js +431 -0
  1216. package/lib/node_modules/highlight.js/lib/languages/arduino.js +942 -0
  1217. package/lib/node_modules/highlight.js/lib/languages/armasm.js +97 -0
  1218. package/lib/node_modules/highlight.js/lib/languages/asciidoc.js +257 -0
  1219. package/lib/node_modules/highlight.js/lib/languages/aspectj.js +229 -0
  1220. package/lib/node_modules/highlight.js/lib/languages/autohotkey.js +76 -0
  1221. package/lib/node_modules/highlight.js/lib/languages/autoit.js +163 -0
  1222. package/lib/node_modules/highlight.js/lib/languages/avrasm.js +67 -0
  1223. package/lib/node_modules/highlight.js/lib/languages/awk.js +68 -0
  1224. package/lib/node_modules/highlight.js/lib/languages/axapta.js +183 -0
  1225. package/lib/node_modules/highlight.js/lib/languages/bash.js +403 -0
  1226. package/lib/node_modules/highlight.js/lib/languages/basic.js +235 -0
  1227. package/lib/node_modules/highlight.js/lib/languages/bnf.js +40 -0
  1228. package/lib/node_modules/highlight.js/lib/languages/brainfuck.js +56 -0
  1229. package/lib/node_modules/highlight.js/lib/languages/c.js +303 -0
  1230. package/lib/node_modules/highlight.js/lib/languages/cal.js +157 -0
  1231. package/lib/node_modules/highlight.js/lib/languages/capnproto.js +99 -0
  1232. package/lib/node_modules/highlight.js/lib/languages/ceylon.js +137 -0
  1233. package/lib/node_modules/highlight.js/lib/languages/clean.js +68 -0
  1234. package/lib/node_modules/highlight.js/lib/languages/clojure-repl.js +26 -0
  1235. package/lib/node_modules/highlight.js/lib/languages/clojure.js +164 -0
  1236. package/lib/node_modules/highlight.js/lib/languages/cmake.js +33 -0
  1237. package/lib/node_modules/highlight.js/lib/languages/coffeescript.js +359 -0
  1238. package/lib/node_modules/highlight.js/lib/languages/coq.js +448 -0
  1239. package/lib/node_modules/highlight.js/lib/languages/cos.js +100 -0
  1240. package/lib/node_modules/highlight.js/lib/languages/cpp.js +552 -0
  1241. package/lib/node_modules/highlight.js/lib/languages/crmsh.js +95 -0
  1242. package/lib/node_modules/highlight.js/lib/languages/crystal.js +307 -0
  1243. package/lib/node_modules/highlight.js/lib/languages/csharp.js +409 -0
  1244. package/lib/node_modules/highlight.js/lib/languages/csp.js +56 -0
  1245. package/lib/node_modules/highlight.js/lib/languages/css.js +946 -0
  1246. package/lib/node_modules/highlight.js/lib/languages/d.js +121 -0
  1247. package/lib/node_modules/highlight.js/lib/languages/dart.js +263 -0
  1248. package/lib/node_modules/highlight.js/lib/languages/delphi.js +254 -0
  1249. package/lib/node_modules/highlight.js/lib/languages/diff.js +62 -0
  1250. package/lib/node_modules/highlight.js/lib/languages/django.js +55 -0
  1251. package/lib/node_modules/highlight.js/lib/languages/dns.js +79 -0
  1252. package/lib/node_modules/highlight.js/lib/languages/dockerfile.js +43 -0
  1253. package/lib/node_modules/highlight.js/lib/languages/dos.js +166 -0
  1254. package/lib/node_modules/highlight.js/lib/languages/dsconfig.js +66 -0
  1255. package/lib/node_modules/highlight.js/lib/languages/dts.js +144 -0
  1256. package/lib/node_modules/highlight.js/lib/languages/dust.js +46 -0
  1257. package/lib/node_modules/highlight.js/lib/languages/ebnf.js +51 -0
  1258. package/lib/node_modules/highlight.js/lib/languages/elixir.js +281 -0
  1259. package/lib/node_modules/highlight.js/lib/languages/elm.js +137 -0
  1260. package/lib/node_modules/highlight.js/lib/languages/erb.js +27 -0
  1261. package/lib/node_modules/highlight.js/lib/languages/erlang-repl.js +54 -0
  1262. package/lib/node_modules/highlight.js/lib/languages/erlang.js +226 -0
  1263. package/lib/node_modules/highlight.js/lib/languages/excel.js +583 -0
  1264. package/lib/node_modules/highlight.js/lib/languages/fix.js +42 -0
  1265. package/lib/node_modules/highlight.js/lib/languages/flix.js +76 -0
  1266. package/lib/node_modules/highlight.js/lib/languages/fortran.js +569 -0
  1267. package/lib/node_modules/highlight.js/lib/languages/fsharp.js +575 -0
  1268. package/lib/node_modules/highlight.js/lib/languages/gams.js +162 -0
  1269. package/lib/node_modules/highlight.js/lib/languages/gauss.js +196 -0
  1270. package/lib/node_modules/highlight.js/lib/languages/gcode.js +171 -0
  1271. package/lib/node_modules/highlight.js/lib/languages/gherkin.js +51 -0
  1272. package/lib/node_modules/highlight.js/lib/languages/glsl.js +39 -0
  1273. package/lib/node_modules/highlight.js/lib/languages/gml.js +3132 -0
  1274. package/lib/node_modules/highlight.js/lib/languages/go.js +163 -0
  1275. package/lib/node_modules/highlight.js/lib/languages/golo.js +81 -0
  1276. package/lib/node_modules/highlight.js/lib/languages/gradle.js +190 -0
  1277. package/lib/node_modules/highlight.js/lib/languages/graphql.js +79 -0
  1278. package/lib/node_modules/highlight.js/lib/languages/groovy.js +189 -0
  1279. package/lib/node_modules/highlight.js/lib/languages/haml.js +113 -0
  1280. package/lib/node_modules/highlight.js/lib/languages/handlebars.js +239 -0
  1281. package/lib/node_modules/highlight.js/lib/languages/haskell.js +199 -0
  1282. package/lib/node_modules/highlight.js/lib/languages/haxe.js +169 -0
  1283. package/lib/node_modules/highlight.js/lib/languages/hsp.js +56 -0
  1284. package/lib/node_modules/highlight.js/lib/languages/http.js +97 -0
  1285. package/lib/node_modules/highlight.js/lib/languages/hy.js +107 -0
  1286. package/lib/node_modules/highlight.js/lib/languages/inform7.js +66 -0
  1287. package/lib/node_modules/highlight.js/lib/languages/ini.js +125 -0
  1288. package/lib/node_modules/highlight.js/lib/languages/irpf90.js +63 -0
  1289. package/lib/node_modules/highlight.js/lib/languages/isbl.js +266 -0
  1290. package/lib/node_modules/highlight.js/lib/languages/java.js +263 -0
  1291. package/lib/node_modules/highlight.js/lib/languages/javascript.js +710 -0
  1292. package/lib/node_modules/highlight.js/lib/languages/jboss-cli.js +62 -0
  1293. package/lib/node_modules/highlight.js/lib/languages/json.js +49 -0
  1294. package/lib/node_modules/highlight.js/lib/languages/julia-repl.js +35 -0
  1295. package/lib/node_modules/highlight.js/lib/languages/julia.js +378 -0
  1296. package/lib/node_modules/highlight.js/lib/languages/kotlin.js +264 -0
  1297. package/lib/node_modules/highlight.js/lib/languages/lasso.js +154 -0
  1298. package/lib/node_modules/highlight.js/lib/languages/latex.js +280 -0
  1299. package/lib/node_modules/highlight.js/lib/languages/ldif.js +32 -0
  1300. package/lib/node_modules/highlight.js/lib/languages/leaf.js +99 -0
  1301. package/lib/node_modules/highlight.js/lib/languages/less.js +1027 -0
  1302. package/lib/node_modules/highlight.js/lib/languages/lisp.js +141 -0
  1303. package/lib/node_modules/highlight.js/lib/languages/livecodeserver.js +103 -0
  1304. package/lib/node_modules/highlight.js/lib/languages/livescript.js +370 -0
  1305. package/lib/node_modules/highlight.js/lib/languages/llvm.js +98 -0
  1306. package/lib/node_modules/highlight.js/lib/languages/lsl.js +72 -0
  1307. package/lib/node_modules/highlight.js/lib/languages/lua.js +70 -0
  1308. package/lib/node_modules/highlight.js/lib/languages/makefile.js +80 -0
  1309. package/lib/node_modules/highlight.js/lib/languages/markdown.js +241 -0
  1310. package/lib/node_modules/highlight.js/lib/languages/mathematica.js +7341 -0
  1311. package/lib/node_modules/highlight.js/lib/languages/matlab.js +85 -0
  1312. package/lib/node_modules/highlight.js/lib/languages/maxima.js +63 -0
  1313. package/lib/node_modules/highlight.js/lib/languages/mel.js +35 -0
  1314. package/lib/node_modules/highlight.js/lib/languages/mercury.js +87 -0
  1315. package/lib/node_modules/highlight.js/lib/languages/mipsasm.js +85 -0
  1316. package/lib/node_modules/highlight.js/lib/languages/mizar.js +18 -0
  1317. package/lib/node_modules/highlight.js/lib/languages/mojolicious.js +37 -0
  1318. package/lib/node_modules/highlight.js/lib/languages/monkey.js +184 -0
  1319. package/lib/node_modules/highlight.js/lib/languages/moonscript.js +144 -0
  1320. package/lib/node_modules/highlight.js/lib/languages/n1ql.js +360 -0
  1321. package/lib/node_modules/highlight.js/lib/languages/nestedtext.js +85 -0
  1322. package/lib/node_modules/highlight.js/lib/languages/nginx.js +152 -0
  1323. package/lib/node_modules/highlight.js/lib/languages/nim.js +190 -0
  1324. package/lib/node_modules/highlight.js/lib/languages/nix.js +356 -0
  1325. package/lib/node_modules/highlight.js/lib/languages/node-repl.js +34 -0
  1326. package/lib/node_modules/highlight.js/lib/languages/nsis.js +539 -0
  1327. package/lib/node_modules/highlight.js/lib/languages/objectivec.js +252 -0
  1328. package/lib/node_modules/highlight.js/lib/languages/ocaml.js +75 -0
  1329. package/lib/node_modules/highlight.js/lib/languages/openscad.js +78 -0
  1330. package/lib/node_modules/highlight.js/lib/languages/oxygene.js +78 -0
  1331. package/lib/node_modules/highlight.js/lib/languages/parser3.js +56 -0
  1332. package/lib/node_modules/highlight.js/lib/languages/perl.js +494 -0
  1333. package/lib/node_modules/highlight.js/lib/languages/pf.js +45 -0
  1334. package/lib/node_modules/highlight.js/lib/languages/pgsql.js +289 -0
  1335. package/lib/node_modules/highlight.js/lib/languages/php-template.js +55 -0
  1336. package/lib/node_modules/highlight.js/lib/languages/php.js +610 -0
  1337. package/lib/node_modules/highlight.js/lib/languages/plaintext.js +21 -0
  1338. package/lib/node_modules/highlight.js/lib/languages/pony.js +65 -0
  1339. package/lib/node_modules/highlight.js/lib/languages/powershell.js +265 -0
  1340. package/lib/node_modules/highlight.js/lib/languages/processing.js +435 -0
  1341. package/lib/node_modules/highlight.js/lib/languages/profile.js +46 -0
  1342. package/lib/node_modules/highlight.js/lib/languages/prolog.js +86 -0
  1343. package/lib/node_modules/highlight.js/lib/languages/properties.js +65 -0
  1344. package/lib/node_modules/highlight.js/lib/languages/protobuf.js +81 -0
  1345. package/lib/node_modules/highlight.js/lib/languages/puppet.js +120 -0
  1346. package/lib/node_modules/highlight.js/lib/languages/purebasic.js +68 -0
  1347. package/lib/node_modules/highlight.js/lib/languages/python-repl.js +34 -0
  1348. package/lib/node_modules/highlight.js/lib/languages/python.js +424 -0
  1349. package/lib/node_modules/highlight.js/lib/languages/q.js +33 -0
  1350. package/lib/node_modules/highlight.js/lib/languages/qml.js +157 -0
  1351. package/lib/node_modules/highlight.js/lib/languages/r.js +219 -0
  1352. package/lib/node_modules/highlight.js/lib/languages/reasonml.js +148 -0
  1353. package/lib/node_modules/highlight.js/lib/languages/rib.js +24 -0
  1354. package/lib/node_modules/highlight.js/lib/languages/roboconf.js +78 -0
  1355. package/lib/node_modules/highlight.js/lib/languages/routeros.js +155 -0
  1356. package/lib/node_modules/highlight.js/lib/languages/rsl.js +146 -0
  1357. package/lib/node_modules/highlight.js/lib/languages/ruby.js +422 -0
  1358. package/lib/node_modules/highlight.js/lib/languages/ruleslanguage.js +38 -0
  1359. package/lib/node_modules/highlight.js/lib/languages/rust.js +322 -0
  1360. package/lib/node_modules/highlight.js/lib/languages/sas.js +552 -0
  1361. package/lib/node_modules/highlight.js/lib/languages/scala.js +200 -0
  1362. package/lib/node_modules/highlight.js/lib/languages/scheme.js +148 -0
  1363. package/lib/node_modules/highlight.js/lib/languages/scilab.js +67 -0
  1364. package/lib/node_modules/highlight.js/lib/languages/scss.js +931 -0
  1365. package/lib/node_modules/highlight.js/lib/languages/shell.js +33 -0
  1366. package/lib/node_modules/highlight.js/lib/languages/smali.js +127 -0
  1367. package/lib/node_modules/highlight.js/lib/languages/smalltalk.js +70 -0
  1368. package/lib/node_modules/highlight.js/lib/languages/sml.js +77 -0
  1369. package/lib/node_modules/highlight.js/lib/languages/sqf.js +2619 -0
  1370. package/lib/node_modules/highlight.js/lib/languages/sql.js +652 -0
  1371. package/lib/node_modules/highlight.js/lib/languages/stan.js +504 -0
  1372. package/lib/node_modules/highlight.js/lib/languages/stata.js +47 -0
  1373. package/lib/node_modules/highlight.js/lib/languages/step21.js +68 -0
  1374. package/lib/node_modules/highlight.js/lib/languages/stylus.js +980 -0
  1375. package/lib/node_modules/highlight.js/lib/languages/subunit.js +46 -0
  1376. package/lib/node_modules/highlight.js/lib/languages/swift.js +884 -0
  1377. package/lib/node_modules/highlight.js/lib/languages/taggerscript.js +56 -0
  1378. package/lib/node_modules/highlight.js/lib/languages/tap.js +48 -0
  1379. package/lib/node_modules/highlight.js/lib/languages/tcl.js +189 -0
  1380. package/lib/node_modules/highlight.js/lib/languages/thrift.js +79 -0
  1381. package/lib/node_modules/highlight.js/lib/languages/tp.js +173 -0
  1382. package/lib/node_modules/highlight.js/lib/languages/twig.js +248 -0
  1383. package/lib/node_modules/highlight.js/lib/languages/typescript.js +823 -0
  1384. package/lib/node_modules/highlight.js/lib/languages/vala.js +50 -0
  1385. package/lib/node_modules/highlight.js/lib/languages/vbnet.js +142 -0
  1386. package/lib/node_modules/highlight.js/lib/languages/vbscript-html.js +24 -0
  1387. package/lib/node_modules/highlight.js/lib/languages/vbscript.js +215 -0
  1388. package/lib/node_modules/highlight.js/lib/languages/verilog.js +550 -0
  1389. package/lib/node_modules/highlight.js/lib/languages/vhdl.js +210 -0
  1390. package/lib/node_modules/highlight.js/lib/languages/vim.js +80 -0
  1391. package/lib/node_modules/highlight.js/lib/languages/wasm.js +130 -0
  1392. package/lib/node_modules/highlight.js/lib/languages/wren.js +288 -0
  1393. package/lib/node_modules/highlight.js/lib/languages/x86asm.js +96 -0
  1394. package/lib/node_modules/highlight.js/lib/languages/xl.js +206 -0
  1395. package/lib/node_modules/highlight.js/lib/languages/xml.js +235 -0
  1396. package/lib/node_modules/highlight.js/lib/languages/xquery.js +336 -0
  1397. package/lib/node_modules/highlight.js/lib/languages/yaml.js +210 -0
  1398. package/lib/node_modules/highlight.js/lib/languages/zephir.js +108 -0
  1399. package/lib/node_modules/katex/dist/katex.js +14498 -0
  1400. package/lib/node_modules/khroma/dist/channels/index.js +131 -0
  1401. package/lib/node_modules/khroma/dist/channels/reusable.js +5 -0
  1402. package/lib/node_modules/khroma/dist/channels/type.js +24 -0
  1403. package/lib/node_modules/khroma/dist/color/hex.js +40 -0
  1404. package/lib/node_modules/khroma/dist/color/hsl.js +50 -0
  1405. package/lib/node_modules/khroma/dist/color/index.js +39 -0
  1406. package/lib/node_modules/khroma/dist/color/keyword.js +172 -0
  1407. package/lib/node_modules/khroma/dist/color/rgb.js +33 -0
  1408. package/lib/node_modules/khroma/dist/constants.js +13 -0
  1409. package/lib/node_modules/khroma/dist/methods/adjust.js +15 -0
  1410. package/lib/node_modules/khroma/dist/methods/adjust_channel.js +13 -0
  1411. package/lib/node_modules/khroma/dist/methods/change.js +12 -0
  1412. package/lib/node_modules/khroma/dist/methods/channel.js +8 -0
  1413. package/lib/node_modules/khroma/dist/methods/darken.js +7 -0
  1414. package/lib/node_modules/khroma/dist/methods/invert.js +12 -0
  1415. package/lib/node_modules/khroma/dist/methods/is_dark.js +7 -0
  1416. package/lib/node_modules/khroma/dist/methods/is_light.js +7 -0
  1417. package/lib/node_modules/khroma/dist/methods/lighten.js +7 -0
  1418. package/lib/node_modules/khroma/dist/methods/luminance.js +10 -0
  1419. package/lib/node_modules/khroma/dist/methods/mix.js +20 -0
  1420. package/lib/node_modules/khroma/dist/methods/rgba.js +18 -0
  1421. package/lib/node_modules/khroma/dist/methods/transparentize.js +7 -0
  1422. package/lib/node_modules/khroma/dist/utils/channel.js +95 -0
  1423. package/lib/node_modules/khroma/dist/utils/index.js +11 -0
  1424. package/lib/node_modules/khroma/dist/utils/lang.js +14 -0
  1425. package/lib/node_modules/khroma/dist/utils/unit.js +10 -0
  1426. package/lib/node_modules/linkify-it/index.js +388 -0
  1427. package/lib/node_modules/linkify-it/lib/re.js +47 -0
  1428. package/lib/node_modules/lodash-es/_arrayReduce.js +13 -0
  1429. package/lib/node_modules/lodash-es/_baseExtremum.js +14 -0
  1430. package/lib/node_modules/lodash-es/_baseFilter.js +13 -0
  1431. package/lib/node_modules/lodash-es/_baseGt.js +6 -0
  1432. package/lib/node_modules/lodash-es/_baseHas.js +8 -0
  1433. package/lib/node_modules/lodash-es/_baseLt.js +6 -0
  1434. package/lib/node_modules/lodash-es/_baseOrderBy.js +37 -0
  1435. package/lib/node_modules/lodash-es/_baseRange.js +12 -0
  1436. package/lib/node_modules/lodash-es/_baseReduce.js +9 -0
  1437. package/lib/node_modules/lodash-es/_baseSortBy.js +11 -0
  1438. package/lib/node_modules/lodash-es/_baseValues.js +9 -0
  1439. package/lib/node_modules/lodash-es/_baseZipObject.js +11 -0
  1440. package/lib/node_modules/lodash-es/_castFunction.js +7 -0
  1441. package/lib/node_modules/lodash-es/_compareAscending.js +17 -0
  1442. package/lib/node_modules/lodash-es/_compareMultiple.js +18 -0
  1443. package/lib/node_modules/lodash-es/_createFind.js +20 -0
  1444. package/lib/node_modules/lodash-es/_createRange.js +22 -0
  1445. package/lib/node_modules/lodash-es/clone.js +8 -0
  1446. package/lib/node_modules/lodash-es/defaults.js +32 -0
  1447. package/lib/node_modules/lodash-es/filter.js +11 -0
  1448. package/lib/node_modules/lodash-es/find.js +6 -0
  1449. package/lib/node_modules/lodash-es/findIndex.js +18 -0
  1450. package/lib/node_modules/lodash-es/forEach.js +11 -0
  1451. package/lib/node_modules/lodash-es/forIn.js +9 -0
  1452. package/lib/node_modules/lodash-es/forOwn.js +8 -0
  1453. package/lib/node_modules/lodash-es/has.js +8 -0
  1454. package/lib/node_modules/lodash-es/isEmpty.js +35 -0
  1455. package/lib/node_modules/lodash-es/mapValues.js +14 -0
  1456. package/lib/node_modules/lodash-es/max.js +9 -0
  1457. package/lib/node_modules/lodash-es/min.js +9 -0
  1458. package/lib/node_modules/lodash-es/minBy.js +9 -0
  1459. package/lib/node_modules/lodash-es/range.js +5 -0
  1460. package/lib/node_modules/lodash-es/reduce.js +12 -0
  1461. package/lib/node_modules/lodash-es/sortBy.js +19 -0
  1462. package/lib/node_modules/lodash-es/toFinite.js +16 -0
  1463. package/lib/node_modules/lodash-es/toInteger.js +8 -0
  1464. package/lib/node_modules/lodash-es/uniqueId.js +9 -0
  1465. package/lib/node_modules/lodash-es/values.js +8 -0
  1466. package/lib/node_modules/lodash-es/zipObject.js +8 -0
  1467. package/lib/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  1468. package/lib/node_modules/markdown-it/lib/common/html_re.js +18 -0
  1469. package/lib/node_modules/markdown-it/lib/common/utils.js +249 -0
  1470. package/lib/node_modules/markdown-it/lib/helpers/index.js +8 -0
  1471. package/lib/node_modules/markdown-it/lib/helpers/parse_link_destination.js +77 -0
  1472. package/lib/node_modules/markdown-it/lib/helpers/parse_link_label.js +36 -0
  1473. package/lib/node_modules/markdown-it/lib/helpers/parse_link_title.js +55 -0
  1474. package/lib/node_modules/markdown-it/lib/index.js +172 -0
  1475. package/lib/node_modules/markdown-it/lib/parser_block.js +87 -0
  1476. package/lib/node_modules/markdown-it/lib/parser_core.js +36 -0
  1477. package/lib/node_modules/markdown-it/lib/parser_inline.js +123 -0
  1478. package/lib/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  1479. package/lib/node_modules/markdown-it/lib/presets/default.js +40 -0
  1480. package/lib/node_modules/markdown-it/lib/presets/zero.js +59 -0
  1481. package/lib/node_modules/markdown-it/lib/renderer.js +165 -0
  1482. package/lib/node_modules/markdown-it/lib/ruler.js +143 -0
  1483. package/lib/node_modules/markdown-it/lib/rules_block/blockquote.js +127 -0
  1484. package/lib/node_modules/markdown-it/lib/rules_block/code.js +27 -0
  1485. package/lib/node_modules/markdown-it/lib/rules_block/fence.js +70 -0
  1486. package/lib/node_modules/markdown-it/lib/rules_block/heading.js +43 -0
  1487. package/lib/node_modules/markdown-it/lib/rules_block/hr.js +36 -0
  1488. package/lib/node_modules/markdown-it/lib/rules_block/html_block.js +65 -0
  1489. package/lib/node_modules/markdown-it/lib/rules_block/lheading.js +65 -0
  1490. package/lib/node_modules/markdown-it/lib/rules_block/list.js +226 -0
  1491. package/lib/node_modules/markdown-it/lib/rules_block/paragraph.js +39 -0
  1492. package/lib/node_modules/markdown-it/lib/rules_block/reference.js +177 -0
  1493. package/lib/node_modules/markdown-it/lib/rules_block/state_block.js +159 -0
  1494. package/lib/node_modules/markdown-it/lib/rules_block/table.js +192 -0
  1495. package/lib/node_modules/markdown-it/lib/rules_core/block.js +15 -0
  1496. package/lib/node_modules/markdown-it/lib/rules_core/inline.js +12 -0
  1497. package/lib/node_modules/markdown-it/lib/rules_core/linkify.js +99 -0
  1498. package/lib/node_modules/markdown-it/lib/rules_core/normalize.js +11 -0
  1499. package/lib/node_modules/markdown-it/lib/rules_core/replacements.js +63 -0
  1500. package/lib/node_modules/markdown-it/lib/rules_core/smartquotes.js +160 -0
  1501. package/lib/node_modules/markdown-it/lib/rules_core/state_core.js +12 -0
  1502. package/lib/node_modules/markdown-it/lib/rules_core/text_join.js +31 -0
  1503. package/lib/node_modules/markdown-it/lib/rules_inline/autolink.js +59 -0
  1504. package/lib/node_modules/markdown-it/lib/rules_inline/backticks.js +46 -0
  1505. package/lib/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +65 -0
  1506. package/lib/node_modules/markdown-it/lib/rules_inline/emphasis.js +88 -0
  1507. package/lib/node_modules/markdown-it/lib/rules_inline/entity.js +44 -0
  1508. package/lib/node_modules/markdown-it/lib/rules_inline/escape.js +63 -0
  1509. package/lib/node_modules/markdown-it/lib/rules_inline/fragments_join.js +25 -0
  1510. package/lib/node_modules/markdown-it/lib/rules_inline/html_inline.js +40 -0
  1511. package/lib/node_modules/markdown-it/lib/rules_inline/image.js +115 -0
  1512. package/lib/node_modules/markdown-it/lib/rules_inline/link.js +110 -0
  1513. package/lib/node_modules/markdown-it/lib/rules_inline/linkify.js +44 -0
  1514. package/lib/node_modules/markdown-it/lib/rules_inline/newline.js +33 -0
  1515. package/lib/node_modules/markdown-it/lib/rules_inline/state_inline.js +96 -0
  1516. package/lib/node_modules/markdown-it/lib/rules_inline/strikethrough.js +97 -0
  1517. package/lib/node_modules/markdown-it/lib/rules_inline/text.js +47 -0
  1518. package/lib/node_modules/markdown-it/lib/token.js +62 -0
  1519. package/lib/node_modules/marked/lib/marked.esm.js +1117 -0
  1520. package/lib/node_modules/mdurl/index.js +10 -0
  1521. package/lib/node_modules/mdurl/lib/decode.js +83 -0
  1522. package/lib/node_modules/mdurl/lib/encode.js +64 -0
  1523. package/lib/node_modules/mdurl/lib/format.js +19 -0
  1524. package/lib/node_modules/mdurl/lib/parse.js +182 -0
  1525. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VRR7QNED.js +123 -0
  1526. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-ZJ3FMSHR.js +1261 -0
  1527. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-677ZJIJ3.js +3688 -0
  1528. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.js +2485 -0
  1529. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.js +17 -0
  1530. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.js +121 -0
  1531. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.js +1050 -0
  1532. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.js +19 -0
  1533. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7BUUIJ7U.js +126 -0
  1534. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C7G6YPKG.js +105 -0
  1535. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EX3LRPZG.js +2004 -0
  1536. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FWX5IMBZ.js +91 -0
  1537. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HOUHSVGY.js +92 -0
  1538. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.js +571 -0
  1539. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JWPE2WC7.js +17 -0
  1540. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MOJQB5TN.js +858 -0
  1541. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OGEWGWER.js +57 -0
  1542. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PUDLZKDR.js +2359 -0
  1543. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Q4XR5HBZ.js +399 -0
  1544. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RYQCIY6F.js +430 -0
  1545. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-V7JOEXUC.js +2030 -0
  1546. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VAUOI2AC.js +20 -0
  1547. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VR4S4FIN.js +27 -0
  1548. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WYO6CB5R.js +5448 -0
  1549. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.js +72 -0
  1550. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XXDRQBXY.js +16 -0
  1551. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.js +10 -0
  1552. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZGVPDNZ5.js +5723 -0
  1553. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.js +2700 -0
  1554. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.js +31 -0
  1555. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.js +31 -0
  1556. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-JH36ORCC.js +295 -0
  1557. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/cynefinDiagram-TSTJHNR4.js +457 -0
  1558. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VKFMJZFB.js +534 -0
  1559. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-FQU43EPY.js +642 -0
  1560. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G47NLZAW.js +539 -0
  1561. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-NH7WQ7WH.js +215 -0
  1562. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OA4YK3LP.js +496 -0
  1563. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-WEI45ONY.js +312 -0
  1564. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-CCIWWBDH.js +143 -0
  1565. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q63AITRT.js +1250 -0
  1566. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.js +18 -0
  1567. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.js +2247 -0
  1568. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-IHSO6WYX.js +1390 -0
  1569. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-FWYZ7A6U.js +34 -0
  1570. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-FXEZZL3T.js +971 -0
  1571. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-5HDEW3XC.js +1260 -0
  1572. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-HUTT4EX6.js +1065 -0
  1573. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.js +1167 -0
  1574. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/pegDiagram-2B236MQR.js +131 -0
  1575. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ENE6RG2P.js +270 -0
  1576. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-ABIIQ3AL.js +1343 -0
  1577. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-RFXS5EU6.js +97 -0
  1578. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-TGXJPOKE.js +1213 -0
  1579. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-HTMAVEWB.js +744 -0
  1580. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.js +4530 -0
  1581. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.js +63 -0
  1582. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.js +464 -0
  1583. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.js +31 -0
  1584. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-5IMT3BWC.js +8577 -0
  1585. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.js +28 -0
  1586. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-FHXFAJF6.js +1615 -0
  1587. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-L72KCM5P.js +1091 -0
  1588. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-EHGQE667.js +981 -0
  1589. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-FW5EYKEG.js +1919 -0
  1590. package/lib/node_modules/mermaid/dist/mermaid.core.js +1468 -0
  1591. package/lib/node_modules/object-refs/index.js +1 -1
  1592. package/lib/node_modules/punycode.js/punycode.es6.js +240 -0
  1593. package/lib/node_modules/roughjs/bundled/rough.esm.js +1001 -0
  1594. package/lib/node_modules/stylis/src/Enum.js +22 -0
  1595. package/lib/node_modules/stylis/src/Middleware.js +13 -0
  1596. package/lib/node_modules/stylis/src/Parser.js +176 -0
  1597. package/lib/node_modules/stylis/src/Serializer.js +29 -0
  1598. package/lib/node_modules/stylis/src/Tokenizer.js +150 -0
  1599. package/lib/node_modules/stylis/src/Utility.js +34 -0
  1600. package/lib/node_modules/ts-dedent/esm/index.js +42 -0
  1601. package/lib/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  1602. package/lib/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  1603. package/lib/node_modules/uc.micro/categories/P/regex.js +4 -0
  1604. package/lib/node_modules/uc.micro/categories/S/regex.js +4 -0
  1605. package/lib/node_modules/uc.micro/categories/Z/regex.js +4 -0
  1606. package/lib/node_modules/uc.micro/index.js +14 -0
  1607. package/lib/node_modules/uc.micro/properties/Any/regex.js +4 -0
  1608. package/lib/node_modules/uuid/dist/native.js +5 -0
  1609. package/lib/node_modules/uuid/dist/rng.js +14 -0
  1610. package/lib/node_modules/uuid/dist/stringify.js +10 -0
  1611. package/lib/node_modules/uuid/dist/v4.js +23 -0
  1612. package/lib/node_modules/vant/es/button/Button.js +1 -1
  1613. package/lib/node_modules/vant/es/dialog/Dialog.js +1 -1
  1614. package/lib/node_modules/vant/es/swipe-cell/SwipeCell.js +1 -1
  1615. package/lib/packages/mobile/index.js +158 -156
  1616. package/lib/packages/mobile/src/components/ai/AiChat/AiChat.vue.js +218 -0
  1617. package/lib/packages/mobile/src/components/ai/AiChat/index.js +7 -0
  1618. package/lib/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.js +211 -0
  1619. package/lib/packages/mobile/src/components/ai/ChatInput/index.js +7 -0
  1620. package/lib/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.js +232 -0
  1621. package/lib/packages/mobile/src/components/ai/ChatPanel/index.js +7 -0
  1622. package/lib/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.js +129 -0
  1623. package/lib/packages/mobile/src/components/ai/MarkdownRenderer/index.js +7 -0
  1624. package/lib/packages/mobile/src/components/ai/RecordOverlay/RecordOverlay.vue.js +98 -0
  1625. package/lib/packages/mobile/src/components/ai/RecordOverlay/index.js +7 -0
  1626. package/lib/packages/mobile/src/components/all.js +156 -154
  1627. package/lib/packages/mobile/src/components/dataDisplay/mine/Mine.vue.js +3 -5
  1628. package/lib/packages/mobile/src/composables/useAI/adapters/detector.js +77 -0
  1629. package/lib/packages/mobile/src/composables/useAI/adapters/index.js +33 -0
  1630. package/lib/packages/mobile/src/composables/useAI/adapters/miniprogram.js +163 -0
  1631. package/lib/packages/mobile/src/composables/useAI/adapters/mock.js +179 -0
  1632. package/lib/packages/mobile/src/composables/useAI/adapters/wecom.js +212 -0
  1633. package/lib/packages/mobile/src/composables/useAI/types.js +92 -0
  1634. package/lib/packages/mobile/src/composables/useAI/useChat.js +197 -0
  1635. package/lib/packages/mobile/src/composables/useAI/useVoice.js +168 -0
  1636. package/lib/packages/mobile/src/composables/useVoiceTouch.js +101 -0
  1637. package/lib/packages/mobile/src/index.vue.js +114 -30
  1638. package/lib/packages/mobile/src/utils/eventFlow/actionHandlers.js +2 -1
  1639. package/lib/packages/vue/src/components/forms/form/Form.vue.js +30 -2
  1640. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +99 -2
  1641. package/lib/packages/vue/src/components/forms/text/Text.vue.js +6 -2
  1642. package/lib/packages/vue/src/components/table/Table.vue.js +5 -111
  1643. package/lib/packages/vue/src/utils/formatCellValue.js +104 -0
  1644. package/lib/packages/vue/src/utils/importantDataChange.js +181 -0
  1645. package/package.json +1 -1
@@ -0,0 +1,4530 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const chunk2Q5K7J3B = require("./chunk-2Q5K7J3B.js");
5
+ const chunkZIRB5QZD = require("./chunk-ZIRB5QZD.js");
6
+ const chunk32BRIVSS = require("./chunk-32BRIVSS.js");
7
+ const chunkICXQ74PX = require("./chunk-ICXQ74PX.js");
8
+ const chunkWYO6CB5R = require("./chunk-WYO6CB5R.js");
9
+ const chunkX3CZISLH = require("./chunk-X3CZISLH.js");
10
+ const chunkY2CYZVJY = require("./chunk-Y2CYZVJY.js");
11
+ require("../../../../d3-transition/src/selection/index.js");
12
+ require("../../../../d3-zoom/src/transform.js");
13
+ const index = require("../../../../../_virtual/index2.js");
14
+ const select = require("../../../../d3-selection/src/select.js");
15
+ var parser = function() {
16
+ var o = /* @__PURE__ */ chunkY2CYZVJY.__name(function(k, v, o2, l) {
17
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
18
+ return o2;
19
+ }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 12], $V7 = [1, 14], $V8 = [1, 15], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 19], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 40], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 47], $Vy = [1, 4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 49, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], $Vz = [1, 74], $VA = [1, 80], $VB = [1, 81], $VC = [1, 82], $VD = [1, 83], $VE = [1, 84], $VF = [1, 85], $VG = [1, 86], $VH = [1, 87], $VI = [1, 88], $VJ = [1, 89], $VK = [1, 90], $VL = [1, 91], $VM = [1, 92], $VN = [1, 93], $VO = [1, 94], $VP = [1, 95], $VQ = [1, 96], $VR = [1, 97], $VS = [1, 98], $VT = [1, 99], $VU = [1, 100], $VV = [1, 101], $VW = [1, 102], $VX = [1, 103], $VY = [1, 104], $VZ = [1, 105], $V_ = [2, 78], $V$ = [4, 5, 17, 51, 53, 54], $V01 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V11 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V21 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 49, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V31 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V41 = [5, 52], $V51 = [70, 71, 72, 73], $V61 = [1, 151];
20
+ var parser2 = {
21
+ trace: /* @__PURE__ */ chunkY2CYZVJY.__name(function trace() {
22
+ }, "trace"),
23
+ yy: {},
24
+ symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "INVALID": 10, "box_section": 11, "box_line": 12, "participant_statement": 13, "create": 14, "box": 15, "restOfLine": 16, "end": 17, "signal": 18, "autonumber": 19, "NUM": 20, "off": 21, "activate": 22, "actor": 23, "deactivate": 24, "note_statement": 25, "links_statement": 26, "link_statement": 27, "properties_statement": 28, "details_statement": 29, "title": 30, "legacy_title": 31, "acc_title": 32, "acc_title_value": 33, "acc_descr": 34, "acc_descr_value": 35, "acc_descr_multiline_value": 36, "loop": 37, "rect": 38, "opt": 39, "alt": 40, "else_sections": 41, "par": 42, "par_sections": 43, "par_over": 44, "critical": 45, "option_sections": 46, "break": 47, "option": 48, "and": 49, "else": 50, "participant": 51, "AS": 52, "participant_actor": 53, "destroy": 54, "actor_with_config": 55, "note": 56, "placement": 57, "text2": 58, "over": 59, "actor_pair": 60, "links": 61, "link": 62, "properties": 63, "details": 64, "spaceList": 65, ",": 66, "left_of": 67, "right_of": 68, "signaltype": 69, "+": 70, "-": 71, "()": 72, "ACTOR": 73, "config_object": 74, "CONFIG_START": 75, "CONFIG_CONTENT": 76, "CONFIG_END": 77, "SOLID_OPEN_ARROW": 78, "DOTTED_OPEN_ARROW": 79, "SOLID_ARROW": 80, "SOLID_ARROW_TOP": 81, "SOLID_ARROW_BOTTOM": 82, "STICK_ARROW_TOP": 83, "STICK_ARROW_BOTTOM": 84, "SOLID_ARROW_TOP_DOTTED": 85, "SOLID_ARROW_BOTTOM_DOTTED": 86, "STICK_ARROW_TOP_DOTTED": 87, "STICK_ARROW_BOTTOM_DOTTED": 88, "SOLID_ARROW_TOP_REVERSE": 89, "SOLID_ARROW_BOTTOM_REVERSE": 90, "STICK_ARROW_TOP_REVERSE": 91, "STICK_ARROW_BOTTOM_REVERSE": 92, "SOLID_ARROW_TOP_REVERSE_DOTTED": 93, "SOLID_ARROW_BOTTOM_REVERSE_DOTTED": 94, "STICK_ARROW_TOP_REVERSE_DOTTED": 95, "STICK_ARROW_BOTTOM_REVERSE_DOTTED": 96, "BIDIRECTIONAL_SOLID_ARROW": 97, "DOTTED_ARROW": 98, "BIDIRECTIONAL_DOTTED_ARROW": 99, "SOLID_CROSS": 100, "DOTTED_CROSS": 101, "SOLID_POINT": 102, "DOTTED_POINT": 103, "TXT": 104, "$accept": 0, "$end": 1 },
25
+ terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 10: "INVALID", 14: "create", 15: "box", 16: "restOfLine", 17: "end", 19: "autonumber", 20: "NUM", 21: "off", 22: "activate", 24: "deactivate", 30: "title", 31: "legacy_title", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "loop", 38: "rect", 39: "opt", 40: "alt", 42: "par", 44: "par_over", 45: "critical", 47: "break", 48: "option", 49: "and", 50: "else", 51: "participant", 52: "AS", 53: "participant_actor", 54: "destroy", 56: "note", 59: "over", 61: "links", 62: "link", 63: "properties", 64: "details", 66: ",", 67: "left_of", 68: "right_of", 70: "+", 71: "-", 72: "()", 73: "ACTOR", 75: "CONFIG_START", 76: "CONFIG_CONTENT", 77: "CONFIG_END", 78: "SOLID_OPEN_ARROW", 79: "DOTTED_OPEN_ARROW", 80: "SOLID_ARROW", 81: "SOLID_ARROW_TOP", 82: "SOLID_ARROW_BOTTOM", 83: "STICK_ARROW_TOP", 84: "STICK_ARROW_BOTTOM", 85: "SOLID_ARROW_TOP_DOTTED", 86: "SOLID_ARROW_BOTTOM_DOTTED", 87: "STICK_ARROW_TOP_DOTTED", 88: "STICK_ARROW_BOTTOM_DOTTED", 89: "SOLID_ARROW_TOP_REVERSE", 90: "SOLID_ARROW_BOTTOM_REVERSE", 91: "STICK_ARROW_TOP_REVERSE", 92: "STICK_ARROW_BOTTOM_REVERSE", 93: "SOLID_ARROW_TOP_REVERSE_DOTTED", 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED", 95: "STICK_ARROW_TOP_REVERSE_DOTTED", 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED", 97: "BIDIRECTIONAL_SOLID_ARROW", 98: "DOTTED_ARROW", 99: "BIDIRECTIONAL_DOTTED_ARROW", 100: "SOLID_CROSS", 101: "DOTTED_CROSS", 102: "SOLID_POINT", 103: "DOTTED_POINT", 104: "TXT" },
26
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [8, 1], [11, 0], [11, 2], [12, 2], [12, 1], [12, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [46, 1], [46, 4], [43, 1], [43, 4], [41, 1], [41, 4], [13, 5], [13, 3], [13, 5], [13, 3], [13, 3], [13, 5], [13, 3], [13, 5], [13, 3], [25, 4], [25, 4], [26, 3], [27, 3], [28, 3], [29, 3], [65, 2], [65, 1], [60, 3], [60, 1], [57, 1], [57, 1], [18, 5], [18, 5], [18, 5], [18, 5], [18, 6], [18, 4], [55, 2], [74, 3], [23, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [58, 1]],
27
+ performAction: /* @__PURE__ */ chunkY2CYZVJY.__name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
28
+ var $0 = $$.length - 1;
29
+ switch (yystate) {
30
+ case 3:
31
+ yy.apply($$[$0]);
32
+ return $$[$0];
33
+ case 4:
34
+ case 10:
35
+ this.$ = [];
36
+ break;
37
+ case 5:
38
+ case 11:
39
+ $$[$0 - 1].push($$[$0]);
40
+ this.$ = $$[$0 - 1];
41
+ break;
42
+ case 6:
43
+ case 7:
44
+ case 12:
45
+ case 13:
46
+ this.$ = $$[$0];
47
+ break;
48
+ case 8:
49
+ case 9:
50
+ case 14:
51
+ this.$ = [];
52
+ break;
53
+ case 16:
54
+ $$[$0].type = "createParticipant";
55
+ this.$ = $$[$0];
56
+ break;
57
+ case 17:
58
+ $$[$0 - 1].unshift({ type: "boxStart", boxData: yy.parseBoxData($$[$0 - 2]) });
59
+ $$[$0 - 1].push({ type: "boxEnd", boxText: $$[$0 - 2] });
60
+ this.$ = $$[$0 - 1];
61
+ break;
62
+ case 19:
63
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 2]), sequenceIndexStep: Number($$[$0 - 1]), sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
64
+ break;
65
+ case 20:
66
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 1]), sequenceIndexStep: 1, sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
67
+ break;
68
+ case 21:
69
+ this.$ = { type: "sequenceIndex", sequenceVisible: false, signalType: yy.LINETYPE.AUTONUMBER };
70
+ break;
71
+ case 22:
72
+ this.$ = { type: "sequenceIndex", sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
73
+ break;
74
+ case 23:
75
+ this.$ = { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor };
76
+ break;
77
+ case 24:
78
+ this.$ = { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 1].actor };
79
+ break;
80
+ case 30:
81
+ yy.setDiagramTitle($$[$0].substring(6));
82
+ this.$ = $$[$0].substring(6);
83
+ break;
84
+ case 31:
85
+ yy.setDiagramTitle($$[$0].substring(7));
86
+ this.$ = $$[$0].substring(7);
87
+ break;
88
+ case 32:
89
+ this.$ = $$[$0].trim();
90
+ yy.setAccTitle(this.$);
91
+ break;
92
+ case 33:
93
+ case 34:
94
+ this.$ = $$[$0].trim();
95
+ yy.setAccDescription(this.$);
96
+ break;
97
+ case 35:
98
+ $$[$0 - 1].unshift({ type: "loopStart", loopText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.LOOP_START });
99
+ $$[$0 - 1].push({ type: "loopEnd", loopText: $$[$0 - 2], signalType: yy.LINETYPE.LOOP_END });
100
+ this.$ = $$[$0 - 1];
101
+ break;
102
+ case 36:
103
+ $$[$0 - 1].unshift({ type: "rectStart", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_START });
104
+ $$[$0 - 1].push({ type: "rectEnd", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_END });
105
+ this.$ = $$[$0 - 1];
106
+ break;
107
+ case 37:
108
+ $$[$0 - 1].unshift({ type: "optStart", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_START });
109
+ $$[$0 - 1].push({ type: "optEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_END });
110
+ this.$ = $$[$0 - 1];
111
+ break;
112
+ case 38:
113
+ $$[$0 - 1].unshift({ type: "altStart", altText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.ALT_START });
114
+ $$[$0 - 1].push({ type: "altEnd", signalType: yy.LINETYPE.ALT_END });
115
+ this.$ = $$[$0 - 1];
116
+ break;
117
+ case 39:
118
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_START });
119
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
120
+ this.$ = $$[$0 - 1];
121
+ break;
122
+ case 40:
123
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_OVER_START });
124
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
125
+ this.$ = $$[$0 - 1];
126
+ break;
127
+ case 41:
128
+ $$[$0 - 1].unshift({ type: "criticalStart", criticalText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.CRITICAL_START });
129
+ $$[$0 - 1].push({ type: "criticalEnd", signalType: yy.LINETYPE.CRITICAL_END });
130
+ this.$ = $$[$0 - 1];
131
+ break;
132
+ case 42:
133
+ $$[$0 - 1].unshift({ type: "breakStart", breakText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_START });
134
+ $$[$0 - 1].push({ type: "breakEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_END });
135
+ this.$ = $$[$0 - 1];
136
+ break;
137
+ case 44:
138
+ this.$ = $$[$0 - 3].concat([{ type: "option", optionText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.CRITICAL_OPTION }, $$[$0]]);
139
+ break;
140
+ case 46:
141
+ this.$ = $$[$0 - 3].concat([{ type: "and", parText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.PAR_AND }, $$[$0]]);
142
+ break;
143
+ case 48:
144
+ this.$ = $$[$0 - 3].concat([{ type: "else", altText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.ALT_ELSE }, $$[$0]]);
145
+ break;
146
+ case 49:
147
+ $$[$0 - 3].draw = "participant";
148
+ $$[$0 - 3].type = "addParticipant";
149
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
150
+ this.$ = $$[$0 - 3];
151
+ break;
152
+ case 50:
153
+ $$[$0 - 1].draw = "participant";
154
+ $$[$0 - 1].type = "addParticipant";
155
+ this.$ = $$[$0 - 1];
156
+ break;
157
+ case 51:
158
+ $$[$0 - 3].draw = "actor";
159
+ $$[$0 - 3].type = "addParticipant";
160
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
161
+ this.$ = $$[$0 - 3];
162
+ break;
163
+ case 52:
164
+ case 57:
165
+ $$[$0 - 1].draw = "actor";
166
+ $$[$0 - 1].type = "addParticipant";
167
+ this.$ = $$[$0 - 1];
168
+ break;
169
+ case 53:
170
+ $$[$0 - 1].type = "destroyParticipant";
171
+ this.$ = $$[$0 - 1];
172
+ break;
173
+ case 54:
174
+ $$[$0 - 3].draw = "participant";
175
+ $$[$0 - 3].type = "addParticipant";
176
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
177
+ this.$ = $$[$0 - 3];
178
+ break;
179
+ case 55:
180
+ $$[$0 - 1].draw = "participant";
181
+ $$[$0 - 1].type = "addParticipant";
182
+ this.$ = $$[$0 - 1];
183
+ break;
184
+ case 56:
185
+ $$[$0 - 3].draw = "actor";
186
+ $$[$0 - 3].type = "addParticipant";
187
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
188
+ this.$ = $$[$0 - 3];
189
+ break;
190
+ case 58:
191
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
192
+ break;
193
+ case 59:
194
+ $$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
195
+ $$[$0 - 2][0] = $$[$0 - 2][0].actor;
196
+ $$[$0 - 2][1] = $$[$0 - 2][1].actor;
197
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
198
+ break;
199
+ case 60:
200
+ this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
201
+ break;
202
+ case 61:
203
+ this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
204
+ break;
205
+ case 62:
206
+ this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
207
+ break;
208
+ case 63:
209
+ this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
210
+ break;
211
+ case 66:
212
+ this.$ = [$$[$0 - 2], $$[$0]];
213
+ break;
214
+ case 67:
215
+ this.$ = $$[$0];
216
+ break;
217
+ case 68:
218
+ this.$ = yy.PLACEMENT.LEFTOF;
219
+ break;
220
+ case 69:
221
+ this.$ = yy.PLACEMENT.RIGHTOF;
222
+ break;
223
+ case 70:
224
+ this.$ = [
225
+ $$[$0 - 4],
226
+ $$[$0 - 1],
227
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true },
228
+ { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
229
+ ];
230
+ break;
231
+ case 71:
232
+ this.$ = [
233
+ $$[$0 - 4],
234
+ $$[$0 - 1],
235
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0] },
236
+ { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
237
+ ];
238
+ break;
239
+ case 72:
240
+ this.$ = [
241
+ $$[$0 - 4],
242
+ $$[$0 - 1],
243
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION },
244
+ { type: "centralConnection", signalType: yy.LINETYPE.CENTRAL_CONNECTION, actor: $$[$0 - 1].actor }
245
+ ];
246
+ break;
247
+ case 73:
248
+ this.$ = [
249
+ $$[$0 - 4],
250
+ $$[$0 - 1],
251
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0], activate: false, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE },
252
+ { type: "centralConnectionReverse", signalType: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: $$[$0 - 4].actor }
253
+ ];
254
+ break;
255
+ case 74:
256
+ this.$ = [
257
+ $$[$0 - 5],
258
+ $$[$0 - 1],
259
+ { type: "addMessage", from: $$[$0 - 5].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION_DUAL },
260
+ { type: "centralConnection", signalType: yy.LINETYPE.CENTRAL_CONNECTION, actor: $$[$0 - 1].actor },
261
+ { type: "centralConnectionReverse", signalType: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: $$[$0 - 5].actor }
262
+ ];
263
+ break;
264
+ case 75:
265
+ this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
266
+ break;
267
+ case 76:
268
+ this.$ = {
269
+ type: "addParticipant",
270
+ actor: $$[$0 - 1],
271
+ config: $$[$0]
272
+ };
273
+ break;
274
+ case 77:
275
+ this.$ = $$[$0 - 1].trim();
276
+ break;
277
+ case 78:
278
+ this.$ = { type: "addParticipant", actor: $$[$0] };
279
+ break;
280
+ case 79:
281
+ this.$ = yy.LINETYPE.SOLID_OPEN;
282
+ break;
283
+ case 80:
284
+ this.$ = yy.LINETYPE.DOTTED_OPEN;
285
+ break;
286
+ case 81:
287
+ this.$ = yy.LINETYPE.SOLID;
288
+ break;
289
+ case 82:
290
+ this.$ = yy.LINETYPE.SOLID_TOP;
291
+ break;
292
+ case 83:
293
+ this.$ = yy.LINETYPE.SOLID_BOTTOM;
294
+ break;
295
+ case 84:
296
+ this.$ = yy.LINETYPE.STICK_TOP;
297
+ break;
298
+ case 85:
299
+ this.$ = yy.LINETYPE.STICK_BOTTOM;
300
+ break;
301
+ case 86:
302
+ this.$ = yy.LINETYPE.SOLID_TOP_DOTTED;
303
+ break;
304
+ case 87:
305
+ this.$ = yy.LINETYPE.SOLID_BOTTOM_DOTTED;
306
+ break;
307
+ case 88:
308
+ this.$ = yy.LINETYPE.STICK_TOP_DOTTED;
309
+ break;
310
+ case 89:
311
+ this.$ = yy.LINETYPE.STICK_BOTTOM_DOTTED;
312
+ break;
313
+ case 90:
314
+ this.$ = yy.LINETYPE.SOLID_ARROW_TOP_REVERSE;
315
+ break;
316
+ case 91:
317
+ this.$ = yy.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
318
+ break;
319
+ case 92:
320
+ this.$ = yy.LINETYPE.STICK_ARROW_TOP_REVERSE;
321
+ break;
322
+ case 93:
323
+ this.$ = yy.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
324
+ break;
325
+ case 94:
326
+ this.$ = yy.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
327
+ break;
328
+ case 95:
329
+ this.$ = yy.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
330
+ break;
331
+ case 96:
332
+ this.$ = yy.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
333
+ break;
334
+ case 97:
335
+ this.$ = yy.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
336
+ break;
337
+ case 98:
338
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
339
+ break;
340
+ case 99:
341
+ this.$ = yy.LINETYPE.DOTTED;
342
+ break;
343
+ case 100:
344
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
345
+ break;
346
+ case 101:
347
+ this.$ = yy.LINETYPE.SOLID_CROSS;
348
+ break;
349
+ case 102:
350
+ this.$ = yy.LINETYPE.DOTTED_CROSS;
351
+ break;
352
+ case 103:
353
+ this.$ = yy.LINETYPE.SOLID_POINT;
354
+ break;
355
+ case 104:
356
+ this.$ = yy.LINETYPE.DOTTED_POINT;
357
+ break;
358
+ case 105:
359
+ this.$ = yy.parseMessage($$[$0].trim().substring(1));
360
+ break;
361
+ }
362
+ }, "anonymous"),
363
+ table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 10, 14, 15, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, o($Vy, [2, 5]), { 9: 48, 13: 13, 14: $V7, 15: $V8, 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, o($Vy, [2, 7]), o($Vy, [2, 8]), o($Vy, [2, 9]), o($Vy, [2, 15]), { 13: 49, 51: $Vp, 53: $Vq, 54: $Vr }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: $Vx }, { 23: 56, 73: $Vx }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, o($Vy, [2, 30]), o($Vy, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, o($Vy, [2, 34]), { 16: [1, 64] }, { 16: [1, 65] }, { 16: [1, 66] }, { 16: [1, 67] }, { 16: [1, 68] }, { 16: [1, 69] }, { 16: [1, 70] }, { 16: [1, 71] }, { 23: 72, 55: 73, 73: $Vz }, { 23: 75, 55: 76, 73: $Vz }, { 23: 77, 73: $Vx }, { 69: 78, 72: [1, 79], 78: $VA, 79: $VB, 80: $VC, 81: $VD, 82: $VE, 83: $VF, 84: $VG, 85: $VH, 86: $VI, 87: $VJ, 88: $VK, 89: $VL, 90: $VM, 91: $VN, 92: $VO, 93: $VP, 94: $VQ, 95: $VR, 96: $VS, 97: $VT, 98: $VU, 99: $VV, 100: $VW, 101: $VX, 102: $VY, 103: $VZ }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: $Vx }, { 23: 111, 73: $Vx }, { 23: 112, 73: $Vx }, { 23: 113, 73: $Vx }, o([5, 66, 72, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], $V_), o($Vy, [2, 6]), o($Vy, [2, 16]), o($V$, [2, 10], { 11: 114 }), o($Vy, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, o($Vy, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, o($Vy, [2, 25]), o($Vy, [2, 26]), o($Vy, [2, 27]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 32]), o($Vy, [2, 33]), o($V01, $V3, { 7: 120 }), o($V01, $V3, { 7: 121 }), o($V01, $V3, { 7: 122 }), o($V11, $V3, { 41: 123, 7: 124 }), o($V21, $V3, { 43: 125, 7: 126 }), o($V21, $V3, { 7: 126, 43: 127 }), o($V31, $V3, { 46: 128, 7: 129 }), o($V01, $V3, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, o($V41, $V_, { 74: 135, 75: [1, 136] }), { 5: [1, 138], 52: [1, 137] }, { 5: [1, 140], 52: [1, 139] }, { 5: [1, 141] }, { 23: 145, 70: [1, 142], 71: [1, 143], 72: [1, 144], 73: $Vx }, { 69: 146, 78: $VA, 79: $VB, 80: $VC, 81: $VD, 82: $VE, 83: $VF, 84: $VG, 85: $VH, 86: $VI, 87: $VJ, 88: $VK, 89: $VL, 90: $VM, 91: $VN, 92: $VO, 93: $VP, 94: $VQ, 95: $VR, 96: $VS, 97: $VT, 98: $VU, 99: $VV, 100: $VW, 101: $VX, 102: $VY, 103: $VZ }, o($V51, [2, 79]), o($V51, [2, 80]), o($V51, [2, 81]), o($V51, [2, 82]), o($V51, [2, 83]), o($V51, [2, 84]), o($V51, [2, 85]), o($V51, [2, 86]), o($V51, [2, 87]), o($V51, [2, 88]), o($V51, [2, 89]), o($V51, [2, 90]), o($V51, [2, 91]), o($V51, [2, 92]), o($V51, [2, 93]), o($V51, [2, 94]), o($V51, [2, 95]), o($V51, [2, 96]), o($V51, [2, 97]), o($V51, [2, 98]), o($V51, [2, 99]), o($V51, [2, 100]), o($V51, [2, 101]), o($V51, [2, 102]), o($V51, [2, 103]), o($V51, [2, 104]), { 23: 147, 73: $Vx }, { 23: 149, 60: 148, 73: $Vx }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: $V61 }, { 58: 152, 104: $V61 }, { 58: 153, 104: $V61 }, { 58: 154, 104: $V61 }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: $Vp, 53: $Vq, 54: $Vr }, { 5: [1, 160] }, o($Vy, [2, 20]), o($Vy, [2, 21]), o($Vy, [2, 23]), o($Vy, [2, 24]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 161], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 162], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 163], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 164] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 47], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 50: [1, 165], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 166] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 45], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 49: [1, 167], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 43], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 48: [1, 170], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 171], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 16: [1, 172] }, o($Vy, [2, 50]), { 16: [1, 173] }, o($Vy, [2, 55]), o($V41, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, o($Vy, [2, 52]), { 16: [1, 176] }, o($Vy, [2, 57]), o($Vy, [2, 53]), { 23: 177, 73: $Vx }, { 23: 178, 73: $Vx }, { 23: 179, 73: $Vx }, { 58: 180, 104: $V61 }, { 23: 181, 72: [1, 182], 73: $Vx }, { 58: 183, 104: $V61 }, { 58: 184, 104: $V61 }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, o($Vy, [2, 17]), o($V$, [2, 11]), { 13: 186, 51: $Vp, 53: $Vq, 54: $Vr }, o($V$, [2, 13]), o($V$, [2, 14]), o($Vy, [2, 19]), o($Vy, [2, 35]), o($Vy, [2, 36]), o($Vy, [2, 37]), o($Vy, [2, 38]), { 16: [1, 187] }, o($Vy, [2, 39]), { 16: [1, 188] }, o($Vy, [2, 40]), o($Vy, [2, 41]), { 16: [1, 189] }, o($Vy, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: $V61 }, { 58: 196, 104: $V61 }, { 58: 197, 104: $V61 }, { 5: [2, 75] }, { 58: 198, 104: $V61 }, { 23: 199, 73: $Vx }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: $Vx }, o($V$, [2, 12]), o($V11, $V3, { 7: 124, 41: 201 }), o($V21, $V3, { 7: 126, 43: 202 }), o($V31, $V3, { 7: 129, 46: 203 }), o($Vy, [2, 49]), o($Vy, [2, 54]), o($V41, [2, 77]), o($Vy, [2, 51]), o($Vy, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: $V61 }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }],
364
+ defaultActions: { 5: [2, 1], 6: [2, 2], 108: [2, 68], 109: [2, 69], 150: [2, 60], 151: [2, 105], 152: [2, 61], 153: [2, 62], 154: [2, 63], 180: [2, 75], 183: [2, 58], 184: [2, 59], 195: [2, 70], 196: [2, 71], 197: [2, 72], 198: [2, 73], 200: [2, 66], 201: [2, 48], 202: [2, 46], 203: [2, 44], 204: [2, 74] },
365
+ parseError: /* @__PURE__ */ chunkY2CYZVJY.__name(function parseError(str, hash) {
366
+ if (hash.recoverable) {
367
+ this.trace(str);
368
+ } else {
369
+ var error = new Error(str);
370
+ error.hash = hash;
371
+ throw error;
372
+ }
373
+ }, "parseError"),
374
+ parse: /* @__PURE__ */ chunkY2CYZVJY.__name(function parse(input) {
375
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
376
+ var args = lstack.slice.call(arguments, 1);
377
+ var lexer2 = Object.create(this.lexer);
378
+ var sharedState = { yy: {} };
379
+ for (var k in this.yy) {
380
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
381
+ sharedState.yy[k] = this.yy[k];
382
+ }
383
+ }
384
+ lexer2.setInput(input, sharedState.yy);
385
+ sharedState.yy.lexer = lexer2;
386
+ sharedState.yy.parser = this;
387
+ if (typeof lexer2.yylloc == "undefined") {
388
+ lexer2.yylloc = {};
389
+ }
390
+ var yyloc = lexer2.yylloc;
391
+ lstack.push(yyloc);
392
+ var ranges = lexer2.options && lexer2.options.ranges;
393
+ if (typeof sharedState.yy.parseError === "function") {
394
+ this.parseError = sharedState.yy.parseError;
395
+ } else {
396
+ this.parseError = Object.getPrototypeOf(this).parseError;
397
+ }
398
+ function popStack(n) {
399
+ stack.length = stack.length - 2 * n;
400
+ vstack.length = vstack.length - n;
401
+ lstack.length = lstack.length - n;
402
+ }
403
+ chunkY2CYZVJY.__name(popStack, "popStack");
404
+ function lex() {
405
+ var token;
406
+ token = tstack.pop() || lexer2.lex() || EOF;
407
+ if (typeof token !== "number") {
408
+ if (token instanceof Array) {
409
+ tstack = token;
410
+ token = tstack.pop();
411
+ }
412
+ token = self.symbols_[token] || token;
413
+ }
414
+ return token;
415
+ }
416
+ chunkY2CYZVJY.__name(lex, "lex");
417
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
418
+ while (true) {
419
+ state = stack[stack.length - 1];
420
+ if (this.defaultActions[state]) {
421
+ action = this.defaultActions[state];
422
+ } else {
423
+ if (symbol === null || typeof symbol == "undefined") {
424
+ symbol = lex();
425
+ }
426
+ action = table[state] && table[state][symbol];
427
+ }
428
+ if (typeof action === "undefined" || !action.length || !action[0]) {
429
+ var errStr = "";
430
+ expected = [];
431
+ for (p in table[state]) {
432
+ if (this.terminals_[p] && p > TERROR) {
433
+ expected.push("'" + this.terminals_[p] + "'");
434
+ }
435
+ }
436
+ if (lexer2.showPosition) {
437
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
438
+ } else {
439
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
440
+ }
441
+ this.parseError(errStr, {
442
+ text: lexer2.match,
443
+ token: this.terminals_[symbol] || symbol,
444
+ line: lexer2.yylineno,
445
+ loc: yyloc,
446
+ expected
447
+ });
448
+ }
449
+ if (action[0] instanceof Array && action.length > 1) {
450
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
451
+ }
452
+ switch (action[0]) {
453
+ case 1:
454
+ stack.push(symbol);
455
+ vstack.push(lexer2.yytext);
456
+ lstack.push(lexer2.yylloc);
457
+ stack.push(action[1]);
458
+ symbol = null;
459
+ {
460
+ yyleng = lexer2.yyleng;
461
+ yytext = lexer2.yytext;
462
+ yylineno = lexer2.yylineno;
463
+ yyloc = lexer2.yylloc;
464
+ }
465
+ break;
466
+ case 2:
467
+ len = this.productions_[action[1]][1];
468
+ yyval.$ = vstack[vstack.length - len];
469
+ yyval._$ = {
470
+ first_line: lstack[lstack.length - (len || 1)].first_line,
471
+ last_line: lstack[lstack.length - 1].last_line,
472
+ first_column: lstack[lstack.length - (len || 1)].first_column,
473
+ last_column: lstack[lstack.length - 1].last_column
474
+ };
475
+ if (ranges) {
476
+ yyval._$.range = [
477
+ lstack[lstack.length - (len || 1)].range[0],
478
+ lstack[lstack.length - 1].range[1]
479
+ ];
480
+ }
481
+ r = this.performAction.apply(yyval, [
482
+ yytext,
483
+ yyleng,
484
+ yylineno,
485
+ sharedState.yy,
486
+ action[1],
487
+ vstack,
488
+ lstack
489
+ ].concat(args));
490
+ if (typeof r !== "undefined") {
491
+ return r;
492
+ }
493
+ if (len) {
494
+ stack = stack.slice(0, -1 * len * 2);
495
+ vstack = vstack.slice(0, -1 * len);
496
+ lstack = lstack.slice(0, -1 * len);
497
+ }
498
+ stack.push(this.productions_[action[1]][0]);
499
+ vstack.push(yyval.$);
500
+ lstack.push(yyval._$);
501
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
502
+ stack.push(newState);
503
+ break;
504
+ case 3:
505
+ return true;
506
+ }
507
+ }
508
+ return true;
509
+ }, "parse")
510
+ };
511
+ var lexer = /* @__PURE__ */ function() {
512
+ var lexer2 = {
513
+ EOF: 1,
514
+ parseError: /* @__PURE__ */ chunkY2CYZVJY.__name(function parseError(str, hash) {
515
+ if (this.yy.parser) {
516
+ this.yy.parser.parseError(str, hash);
517
+ } else {
518
+ throw new Error(str);
519
+ }
520
+ }, "parseError"),
521
+ // resets the lexer, sets new input
522
+ setInput: /* @__PURE__ */ chunkY2CYZVJY.__name(function(input, yy) {
523
+ this.yy = yy || this.yy || {};
524
+ this._input = input;
525
+ this._more = this._backtrack = this.done = false;
526
+ this.yylineno = this.yyleng = 0;
527
+ this.yytext = this.matched = this.match = "";
528
+ this.conditionStack = ["INITIAL"];
529
+ this.yylloc = {
530
+ first_line: 1,
531
+ first_column: 0,
532
+ last_line: 1,
533
+ last_column: 0
534
+ };
535
+ if (this.options.ranges) {
536
+ this.yylloc.range = [0, 0];
537
+ }
538
+ this.offset = 0;
539
+ return this;
540
+ }, "setInput"),
541
+ // consumes and returns one char from the input
542
+ input: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
543
+ var ch = this._input[0];
544
+ this.yytext += ch;
545
+ this.yyleng++;
546
+ this.offset++;
547
+ this.match += ch;
548
+ this.matched += ch;
549
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
550
+ if (lines) {
551
+ this.yylineno++;
552
+ this.yylloc.last_line++;
553
+ } else {
554
+ this.yylloc.last_column++;
555
+ }
556
+ if (this.options.ranges) {
557
+ this.yylloc.range[1]++;
558
+ }
559
+ this._input = this._input.slice(1);
560
+ return ch;
561
+ }, "input"),
562
+ // unshifts one char (or a string) into the input
563
+ unput: /* @__PURE__ */ chunkY2CYZVJY.__name(function(ch) {
564
+ var len = ch.length;
565
+ var lines = ch.split(/(?:\r\n?|\n)/g);
566
+ this._input = ch + this._input;
567
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
568
+ this.offset -= len;
569
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
570
+ this.match = this.match.substr(0, this.match.length - 1);
571
+ this.matched = this.matched.substr(0, this.matched.length - 1);
572
+ if (lines.length - 1) {
573
+ this.yylineno -= lines.length - 1;
574
+ }
575
+ var r = this.yylloc.range;
576
+ this.yylloc = {
577
+ first_line: this.yylloc.first_line,
578
+ last_line: this.yylineno + 1,
579
+ first_column: this.yylloc.first_column,
580
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
581
+ };
582
+ if (this.options.ranges) {
583
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
584
+ }
585
+ this.yyleng = this.yytext.length;
586
+ return this;
587
+ }, "unput"),
588
+ // When called from action, caches matched text and appends it on next action
589
+ more: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
590
+ this._more = true;
591
+ return this;
592
+ }, "more"),
593
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
594
+ reject: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
595
+ if (this.options.backtrack_lexer) {
596
+ this._backtrack = true;
597
+ } else {
598
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
599
+ text: "",
600
+ token: null,
601
+ line: this.yylineno
602
+ });
603
+ }
604
+ return this;
605
+ }, "reject"),
606
+ // retain first n characters of the match
607
+ less: /* @__PURE__ */ chunkY2CYZVJY.__name(function(n) {
608
+ this.unput(this.match.slice(n));
609
+ }, "less"),
610
+ // displays already matched input, i.e. for error messages
611
+ pastInput: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
612
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
613
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
614
+ }, "pastInput"),
615
+ // displays upcoming input, i.e. for error messages
616
+ upcomingInput: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
617
+ var next = this.match;
618
+ if (next.length < 20) {
619
+ next += this._input.substr(0, 20 - next.length);
620
+ }
621
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
622
+ }, "upcomingInput"),
623
+ // displays the character position where the lexing error occurred, i.e. for error messages
624
+ showPosition: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
625
+ var pre = this.pastInput();
626
+ var c = new Array(pre.length + 1).join("-");
627
+ return pre + this.upcomingInput() + "\n" + c + "^";
628
+ }, "showPosition"),
629
+ // test the lexed token: return FALSE when not a match, otherwise return token
630
+ test_match: /* @__PURE__ */ chunkY2CYZVJY.__name(function(match, indexed_rule) {
631
+ var token, lines, backup;
632
+ if (this.options.backtrack_lexer) {
633
+ backup = {
634
+ yylineno: this.yylineno,
635
+ yylloc: {
636
+ first_line: this.yylloc.first_line,
637
+ last_line: this.last_line,
638
+ first_column: this.yylloc.first_column,
639
+ last_column: this.yylloc.last_column
640
+ },
641
+ yytext: this.yytext,
642
+ match: this.match,
643
+ matches: this.matches,
644
+ matched: this.matched,
645
+ yyleng: this.yyleng,
646
+ offset: this.offset,
647
+ _more: this._more,
648
+ _input: this._input,
649
+ yy: this.yy,
650
+ conditionStack: this.conditionStack.slice(0),
651
+ done: this.done
652
+ };
653
+ if (this.options.ranges) {
654
+ backup.yylloc.range = this.yylloc.range.slice(0);
655
+ }
656
+ }
657
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
658
+ if (lines) {
659
+ this.yylineno += lines.length;
660
+ }
661
+ this.yylloc = {
662
+ first_line: this.yylloc.last_line,
663
+ last_line: this.yylineno + 1,
664
+ first_column: this.yylloc.last_column,
665
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
666
+ };
667
+ this.yytext += match[0];
668
+ this.match += match[0];
669
+ this.matches = match;
670
+ this.yyleng = this.yytext.length;
671
+ if (this.options.ranges) {
672
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
673
+ }
674
+ this._more = false;
675
+ this._backtrack = false;
676
+ this._input = this._input.slice(match[0].length);
677
+ this.matched += match[0];
678
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
679
+ if (this.done && this._input) {
680
+ this.done = false;
681
+ }
682
+ if (token) {
683
+ return token;
684
+ } else if (this._backtrack) {
685
+ for (var k in backup) {
686
+ this[k] = backup[k];
687
+ }
688
+ return false;
689
+ }
690
+ return false;
691
+ }, "test_match"),
692
+ // return next match in input
693
+ next: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
694
+ if (this.done) {
695
+ return this.EOF;
696
+ }
697
+ if (!this._input) {
698
+ this.done = true;
699
+ }
700
+ var token, match, tempMatch, index2;
701
+ if (!this._more) {
702
+ this.yytext = "";
703
+ this.match = "";
704
+ }
705
+ var rules = this._currentRules();
706
+ for (var i = 0; i < rules.length; i++) {
707
+ tempMatch = this._input.match(this.rules[rules[i]]);
708
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
709
+ match = tempMatch;
710
+ index2 = i;
711
+ if (this.options.backtrack_lexer) {
712
+ token = this.test_match(tempMatch, rules[i]);
713
+ if (token !== false) {
714
+ return token;
715
+ } else if (this._backtrack) {
716
+ match = false;
717
+ continue;
718
+ } else {
719
+ return false;
720
+ }
721
+ } else if (!this.options.flex) {
722
+ break;
723
+ }
724
+ }
725
+ }
726
+ if (match) {
727
+ token = this.test_match(match, rules[index2]);
728
+ if (token !== false) {
729
+ return token;
730
+ }
731
+ return false;
732
+ }
733
+ if (this._input === "") {
734
+ return this.EOF;
735
+ } else {
736
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
737
+ text: "",
738
+ token: null,
739
+ line: this.yylineno
740
+ });
741
+ }
742
+ }, "next"),
743
+ // return next match that has a token
744
+ lex: /* @__PURE__ */ chunkY2CYZVJY.__name(function lex() {
745
+ var r = this.next();
746
+ if (r) {
747
+ return r;
748
+ } else {
749
+ return this.lex();
750
+ }
751
+ }, "lex"),
752
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
753
+ begin: /* @__PURE__ */ chunkY2CYZVJY.__name(function begin(condition) {
754
+ this.conditionStack.push(condition);
755
+ }, "begin"),
756
+ // pop the previously active lexer condition state off the condition stack
757
+ popState: /* @__PURE__ */ chunkY2CYZVJY.__name(function popState() {
758
+ var n = this.conditionStack.length - 1;
759
+ if (n > 0) {
760
+ return this.conditionStack.pop();
761
+ } else {
762
+ return this.conditionStack[0];
763
+ }
764
+ }, "popState"),
765
+ // produce the lexer rule set which is active for the currently active lexer condition state
766
+ _currentRules: /* @__PURE__ */ chunkY2CYZVJY.__name(function _currentRules() {
767
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
768
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
769
+ } else {
770
+ return this.conditions["INITIAL"].rules;
771
+ }
772
+ }, "_currentRules"),
773
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
774
+ topState: /* @__PURE__ */ chunkY2CYZVJY.__name(function topState(n) {
775
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
776
+ if (n >= 0) {
777
+ return this.conditionStack[n];
778
+ } else {
779
+ return "INITIAL";
780
+ }
781
+ }, "topState"),
782
+ // alias for begin(condition)
783
+ pushState: /* @__PURE__ */ chunkY2CYZVJY.__name(function pushState(condition) {
784
+ this.begin(condition);
785
+ }, "pushState"),
786
+ // return the number of states currently on the stack
787
+ stateStackSize: /* @__PURE__ */ chunkY2CYZVJY.__name(function stateStackSize() {
788
+ return this.conditionStack.length;
789
+ }, "stateStackSize"),
790
+ options: { "case-insensitive": true },
791
+ performAction: /* @__PURE__ */ chunkY2CYZVJY.__name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
792
+ switch ($avoiding_name_collisions) {
793
+ case 0:
794
+ return 5;
795
+ case 1:
796
+ break;
797
+ case 2:
798
+ break;
799
+ case 3:
800
+ break;
801
+ case 4:
802
+ break;
803
+ case 5:
804
+ break;
805
+ case 6:
806
+ return 20;
807
+ case 7:
808
+ this.begin("CONFIG");
809
+ return 75;
810
+ case 8:
811
+ return 76;
812
+ case 9:
813
+ this.popState();
814
+ this.begin("ALIAS");
815
+ return 77;
816
+ case 10:
817
+ this.popState();
818
+ this.popState();
819
+ return 77;
820
+ case 11:
821
+ yy_.yytext = yy_.yytext.trim();
822
+ return 73;
823
+ case 12:
824
+ yy_.yytext = yy_.yytext.trim();
825
+ this.begin("ALIAS");
826
+ return 73;
827
+ case 13:
828
+ yy_.yytext = yy_.yytext.trim();
829
+ this.popState();
830
+ return 73;
831
+ case 14:
832
+ this.popState();
833
+ return 10;
834
+ case 15:
835
+ yy_.yytext = yy_.yytext.trim();
836
+ this.popState();
837
+ return 10;
838
+ case 16:
839
+ this.begin("LINE");
840
+ return 15;
841
+ case 17:
842
+ this.begin("ID");
843
+ return 51;
844
+ case 18:
845
+ this.begin("ID");
846
+ return 53;
847
+ case 19:
848
+ return 14;
849
+ case 20:
850
+ this.begin("ID");
851
+ return 54;
852
+ case 21:
853
+ this.popState();
854
+ this.popState();
855
+ this.begin("LINE");
856
+ return 52;
857
+ case 22:
858
+ this.popState();
859
+ this.popState();
860
+ return 5;
861
+ case 23:
862
+ this.begin("LINE");
863
+ return 37;
864
+ case 24:
865
+ this.begin("LINE");
866
+ return 38;
867
+ case 25:
868
+ this.begin("LINE");
869
+ return 39;
870
+ case 26:
871
+ this.begin("LINE");
872
+ return 40;
873
+ case 27:
874
+ this.begin("LINE");
875
+ return 50;
876
+ case 28:
877
+ this.begin("LINE");
878
+ return 42;
879
+ case 29:
880
+ this.begin("LINE");
881
+ return 44;
882
+ case 30:
883
+ this.begin("LINE");
884
+ return 49;
885
+ case 31:
886
+ this.begin("LINE");
887
+ return 45;
888
+ case 32:
889
+ this.begin("LINE");
890
+ return 48;
891
+ case 33:
892
+ this.begin("LINE");
893
+ return 47;
894
+ case 34:
895
+ this.popState();
896
+ return 16;
897
+ case 35:
898
+ return 17;
899
+ case 36:
900
+ return 67;
901
+ case 37:
902
+ return 68;
903
+ case 38:
904
+ return 61;
905
+ case 39:
906
+ return 62;
907
+ case 40:
908
+ return 63;
909
+ case 41:
910
+ return 64;
911
+ case 42:
912
+ return 59;
913
+ case 43:
914
+ return 56;
915
+ case 44:
916
+ this.begin("ID");
917
+ return 22;
918
+ case 45:
919
+ this.begin("ID");
920
+ return 24;
921
+ case 46:
922
+ return 30;
923
+ case 47:
924
+ return 31;
925
+ case 48:
926
+ this.begin("acc_title");
927
+ return 32;
928
+ case 49:
929
+ this.popState();
930
+ return "acc_title_value";
931
+ case 50:
932
+ this.begin("acc_descr");
933
+ return 34;
934
+ case 51:
935
+ this.popState();
936
+ return "acc_descr_value";
937
+ case 52:
938
+ this.begin("acc_descr_multiline");
939
+ break;
940
+ case 53:
941
+ this.popState();
942
+ break;
943
+ case 54:
944
+ return "acc_descr_multiline_value";
945
+ case 55:
946
+ return 6;
947
+ case 56:
948
+ return 19;
949
+ case 57:
950
+ return 21;
951
+ case 58:
952
+ return 66;
953
+ case 59:
954
+ return 5;
955
+ case 60:
956
+ yy_.yytext = yy_.yytext.trim();
957
+ return 73;
958
+ case 61:
959
+ return 80;
960
+ case 62:
961
+ return 97;
962
+ case 63:
963
+ return 98;
964
+ case 64:
965
+ return 99;
966
+ case 65:
967
+ return 78;
968
+ case 66:
969
+ return 79;
970
+ case 67:
971
+ return 100;
972
+ case 68:
973
+ return 101;
974
+ case 69:
975
+ return 102;
976
+ case 70:
977
+ return 103;
978
+ case 71:
979
+ return 85;
980
+ case 72:
981
+ return 86;
982
+ case 73:
983
+ return 87;
984
+ case 74:
985
+ return 88;
986
+ case 75:
987
+ return 93;
988
+ case 76:
989
+ return 94;
990
+ case 77:
991
+ return 95;
992
+ case 78:
993
+ return 96;
994
+ case 79:
995
+ return 81;
996
+ case 80:
997
+ return 82;
998
+ case 81:
999
+ return 83;
1000
+ case 82:
1001
+ return 84;
1002
+ case 83:
1003
+ return 89;
1004
+ case 84:
1005
+ return 90;
1006
+ case 85:
1007
+ return 91;
1008
+ case 86:
1009
+ return 92;
1010
+ case 87:
1011
+ return 104;
1012
+ case 88:
1013
+ return 104;
1014
+ case 89:
1015
+ return 70;
1016
+ case 90:
1017
+ return 71;
1018
+ case 91:
1019
+ return 72;
1020
+ case 92:
1021
+ return 5;
1022
+ case 93:
1023
+ return 10;
1024
+ }
1025
+ }, "anonymous"),
1026
+ rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\}(?=\s+as\s))/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i, /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i, /^(?:[^<>:\n,;@]*<[^\n]*)/i, /^(?:[^\n]+)/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?:--\|\\)/i, /^(?:--\|\/)/i, /^(?:--\\\\)/i, /^(?:--\/\/)/i, /^(?:\/\|--)/i, /^(?:\\\|--)/i, /^(?:\/\/--)/i, /^(?:\\\\--)/i, /^(?:-\|\\)/i, /^(?:-\|\/)/i, /^(?:-\\\\)/i, /^(?:-\/\/)/i, /^(?:\/\|-)/i, /^(?:\\\|-)/i, /^(?:\/\/-)/i, /^(?:\\\\-)/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:\(\))/i, /^(?:$)/i, /^(?:.)/i],
1027
+ conditions: { "acc_descr_multiline": { "rules": [53, 54], "inclusive": false }, "acc_descr": { "rules": [51], "inclusive": false }, "acc_title": { "rules": [49], "inclusive": false }, "ID": { "rules": [2, 3, 7, 11, 12, 13, 14, 15], "inclusive": false }, "ALIAS": { "rules": [2, 3, 21, 22], "inclusive": false }, "LINE": { "rules": [2, 3, 34], "inclusive": false }, "CONFIG": { "rules": [8, 9, 10], "inclusive": false }, "CONFIG_DATA": { "rules": [], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 16, 17, 18, 19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 52, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93], "inclusive": true } }
1028
+ };
1029
+ return lexer2;
1030
+ }();
1031
+ parser2.lexer = lexer;
1032
+ function Parser() {
1033
+ this.yy = {};
1034
+ }
1035
+ chunkY2CYZVJY.__name(Parser, "Parser");
1036
+ Parser.prototype = parser2;
1037
+ parser2.Parser = Parser;
1038
+ return new Parser();
1039
+ }();
1040
+ parser.parser = parser;
1041
+ var sequenceDiagram_default = parser;
1042
+ var LINETYPE = {
1043
+ SOLID: 0,
1044
+ DOTTED: 1,
1045
+ NOTE: 2,
1046
+ SOLID_CROSS: 3,
1047
+ DOTTED_CROSS: 4,
1048
+ SOLID_OPEN: 5,
1049
+ DOTTED_OPEN: 6,
1050
+ LOOP_START: 10,
1051
+ LOOP_END: 11,
1052
+ ALT_START: 12,
1053
+ ALT_ELSE: 13,
1054
+ ALT_END: 14,
1055
+ OPT_START: 15,
1056
+ OPT_END: 16,
1057
+ ACTIVE_START: 17,
1058
+ ACTIVE_END: 18,
1059
+ PAR_START: 19,
1060
+ PAR_AND: 20,
1061
+ PAR_END: 21,
1062
+ RECT_START: 22,
1063
+ RECT_END: 23,
1064
+ SOLID_POINT: 24,
1065
+ DOTTED_POINT: 25,
1066
+ AUTONUMBER: 26,
1067
+ CRITICAL_START: 27,
1068
+ CRITICAL_OPTION: 28,
1069
+ CRITICAL_END: 29,
1070
+ BREAK_START: 30,
1071
+ BREAK_END: 31,
1072
+ PAR_OVER_START: 32,
1073
+ BIDIRECTIONAL_SOLID: 33,
1074
+ BIDIRECTIONAL_DOTTED: 34,
1075
+ SOLID_TOP: 41,
1076
+ SOLID_BOTTOM: 42,
1077
+ STICK_TOP: 43,
1078
+ STICK_BOTTOM: 44,
1079
+ SOLID_ARROW_TOP_REVERSE: 45,
1080
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
1081
+ STICK_ARROW_TOP_REVERSE: 47,
1082
+ STICK_ARROW_BOTTOM_REVERSE: 48,
1083
+ SOLID_TOP_DOTTED: 51,
1084
+ SOLID_BOTTOM_DOTTED: 52,
1085
+ STICK_TOP_DOTTED: 53,
1086
+ STICK_BOTTOM_DOTTED: 54,
1087
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
1088
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
1089
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
1090
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
1091
+ CENTRAL_CONNECTION: 59,
1092
+ CENTRAL_CONNECTION_REVERSE: 60,
1093
+ CENTRAL_CONNECTION_DUAL: 61
1094
+ };
1095
+ var ARROWTYPE = {
1096
+ FILLED: 0,
1097
+ OPEN: 1
1098
+ };
1099
+ var PLACEMENT = {
1100
+ LEFTOF: 0,
1101
+ RIGHTOF: 1,
1102
+ OVER: 2
1103
+ };
1104
+ var PARTICIPANT_TYPE = {
1105
+ ACTOR: "actor",
1106
+ CONTROL: "control",
1107
+ DATABASE: "database",
1108
+ ENTITY: "entity"
1109
+ };
1110
+ var SequenceDB = (_a = class {
1111
+ constructor() {
1112
+ this.state = new chunk2Q5K7J3B.ImperativeState(() => ({
1113
+ prevActor: void 0,
1114
+ actors: /* @__PURE__ */ new Map(),
1115
+ createdActors: /* @__PURE__ */ new Map(),
1116
+ destroyedActors: /* @__PURE__ */ new Map(),
1117
+ boxes: [],
1118
+ messages: [],
1119
+ notes: [],
1120
+ sequenceNumbersEnabled: false,
1121
+ wrapEnabled: void 0,
1122
+ currentBox: void 0,
1123
+ lastCreated: void 0,
1124
+ lastDestroyed: void 0
1125
+ }));
1126
+ this.setAccTitle = chunkWYO6CB5R.setAccTitle;
1127
+ this.setAccDescription = chunkWYO6CB5R.setAccDescription;
1128
+ this.setDiagramTitle = chunkWYO6CB5R.setDiagramTitle;
1129
+ this.getAccTitle = chunkWYO6CB5R.getAccTitle;
1130
+ this.getAccDescription = chunkWYO6CB5R.getAccDescription;
1131
+ this.getDiagramTitle = chunkWYO6CB5R.getDiagramTitle;
1132
+ this.apply = this.apply.bind(this);
1133
+ this.parseBoxData = this.parseBoxData.bind(this);
1134
+ this.parseMessage = this.parseMessage.bind(this);
1135
+ this.clear();
1136
+ this.setWrap(chunkWYO6CB5R.getConfig2().wrap);
1137
+ this.LINETYPE = LINETYPE;
1138
+ this.ARROWTYPE = ARROWTYPE;
1139
+ this.PLACEMENT = PLACEMENT;
1140
+ }
1141
+ addBox(data) {
1142
+ this.state.records.boxes.push({
1143
+ name: data.text,
1144
+ wrap: data.wrap ?? this.autoWrap(),
1145
+ fill: data.color,
1146
+ actorKeys: []
1147
+ });
1148
+ this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
1149
+ }
1150
+ addActor(id, name, description, type, metadata) {
1151
+ let assignedBox = this.state.records.currentBox;
1152
+ let doc;
1153
+ if (metadata !== void 0) {
1154
+ let yamlData;
1155
+ if (!metadata.includes("\n")) {
1156
+ yamlData = "{\n" + metadata + "\n}";
1157
+ } else {
1158
+ yamlData = metadata + "\n";
1159
+ }
1160
+ doc = chunkZIRB5QZD.load(yamlData, { schema: chunkZIRB5QZD.JSON_SCHEMA });
1161
+ }
1162
+ type = (doc == null ? void 0 : doc.type) ?? type;
1163
+ if ((doc == null ? void 0 : doc.alias) && (!description || description.text === name)) {
1164
+ description = { text: doc.alias, wrap: description == null ? void 0 : description.wrap, type };
1165
+ }
1166
+ const old = this.state.records.actors.get(id);
1167
+ if (old) {
1168
+ if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
1169
+ throw new Error(
1170
+ `A same participant should only be defined in one Box: ${old.name} can't be in '${old.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
1171
+ );
1172
+ }
1173
+ assignedBox = old.box ? old.box : this.state.records.currentBox;
1174
+ old.box = assignedBox;
1175
+ if (old && name === old.name && description == null) {
1176
+ return;
1177
+ }
1178
+ }
1179
+ if ((description == null ? void 0 : description.text) == null) {
1180
+ description = { text: name, type };
1181
+ }
1182
+ if (type == null || description.text == null) {
1183
+ description = { text: name, type };
1184
+ }
1185
+ this.state.records.actors.set(id, {
1186
+ box: assignedBox,
1187
+ name,
1188
+ description: description.text,
1189
+ wrap: description.wrap ?? this.autoWrap(),
1190
+ prevActor: this.state.records.prevActor,
1191
+ links: {},
1192
+ properties: {},
1193
+ actorCnt: null,
1194
+ rectData: null,
1195
+ type: type ?? "participant"
1196
+ });
1197
+ if (this.state.records.prevActor) {
1198
+ const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
1199
+ if (prevActorInRecords) {
1200
+ prevActorInRecords.nextActor = id;
1201
+ }
1202
+ }
1203
+ if (this.state.records.currentBox) {
1204
+ this.state.records.currentBox.actorKeys.push(id);
1205
+ }
1206
+ this.state.records.prevActor = id;
1207
+ }
1208
+ activationCount(part) {
1209
+ let i;
1210
+ let count = 0;
1211
+ if (!part) {
1212
+ return 0;
1213
+ }
1214
+ for (i = 0; i < this.state.records.messages.length; i++) {
1215
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1216
+ count++;
1217
+ }
1218
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1219
+ count--;
1220
+ }
1221
+ }
1222
+ return count;
1223
+ }
1224
+ addMessage(idFrom, idTo, message, answer) {
1225
+ this.state.records.messages.push({
1226
+ id: this.state.records.messages.length.toString(),
1227
+ from: idFrom,
1228
+ to: idTo,
1229
+ message: message.text,
1230
+ wrap: message.wrap ?? this.autoWrap(),
1231
+ answer
1232
+ });
1233
+ }
1234
+ addSignal(idFrom, idTo, message, messageType, activate = false, centralConnection) {
1235
+ if (messageType === this.LINETYPE.ACTIVE_END) {
1236
+ const cnt = this.activationCount(idFrom ?? "");
1237
+ if (cnt < 1) {
1238
+ const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1239
+ error.hash = {
1240
+ text: "->>-",
1241
+ token: "->>-",
1242
+ line: "1",
1243
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1244
+ expected: ["'ACTIVE_PARTICIPANT'"]
1245
+ };
1246
+ throw error;
1247
+ }
1248
+ }
1249
+ this.state.records.messages.push({
1250
+ id: this.state.records.messages.length.toString(),
1251
+ from: idFrom,
1252
+ to: idTo,
1253
+ message: (message == null ? void 0 : message.text) ?? "",
1254
+ wrap: (message == null ? void 0 : message.wrap) ?? this.autoWrap(),
1255
+ type: messageType,
1256
+ activate,
1257
+ centralConnection: centralConnection ?? 0
1258
+ });
1259
+ return true;
1260
+ }
1261
+ hasAtLeastOneBox() {
1262
+ return this.state.records.boxes.length > 0;
1263
+ }
1264
+ hasAtLeastOneBoxWithTitle() {
1265
+ return this.state.records.boxes.some((b) => b.name);
1266
+ }
1267
+ getMessages() {
1268
+ return this.state.records.messages;
1269
+ }
1270
+ getBoxes() {
1271
+ return this.state.records.boxes;
1272
+ }
1273
+ getActors() {
1274
+ return this.state.records.actors;
1275
+ }
1276
+ getCreatedActors() {
1277
+ return this.state.records.createdActors;
1278
+ }
1279
+ getDestroyedActors() {
1280
+ return this.state.records.destroyedActors;
1281
+ }
1282
+ getActor(id) {
1283
+ return this.state.records.actors.get(id);
1284
+ }
1285
+ getActorKeys() {
1286
+ return [...this.state.records.actors.keys()];
1287
+ }
1288
+ enableSequenceNumbers() {
1289
+ this.state.records.sequenceNumbersEnabled = true;
1290
+ }
1291
+ disableSequenceNumbers() {
1292
+ this.state.records.sequenceNumbersEnabled = false;
1293
+ }
1294
+ showSequenceNumbers() {
1295
+ return this.state.records.sequenceNumbersEnabled;
1296
+ }
1297
+ setWrap(wrapSetting) {
1298
+ this.state.records.wrapEnabled = wrapSetting;
1299
+ }
1300
+ extractWrap(text) {
1301
+ if (text === void 0) {
1302
+ return {};
1303
+ }
1304
+ text = text.trim();
1305
+ const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1306
+ const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1307
+ return { cleanedText, wrap };
1308
+ }
1309
+ autoWrap() {
1310
+ var _a2;
1311
+ if (this.state.records.wrapEnabled !== void 0) {
1312
+ return this.state.records.wrapEnabled;
1313
+ }
1314
+ return ((_a2 = chunkWYO6CB5R.getConfig2().sequence) == null ? void 0 : _a2.wrap) ?? false;
1315
+ }
1316
+ clear() {
1317
+ this.state.reset();
1318
+ chunkWYO6CB5R.clear();
1319
+ }
1320
+ parseMessage(str) {
1321
+ const trimmedStr = str.trim();
1322
+ const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1323
+ const message = {
1324
+ text: cleanedText,
1325
+ wrap
1326
+ };
1327
+ chunkX3CZISLH.log.debug(`parseMessage: ${JSON.stringify(message)}`);
1328
+ return message;
1329
+ }
1330
+ // We expect the box statement to be color first then description
1331
+ // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
1332
+ // We extract first segment as color, the rest of the line is considered as text
1333
+ parseBoxData(str) {
1334
+ const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1335
+ let color = (match == null ? void 0 : match[1]) ? match[1].trim() : "transparent";
1336
+ let title = (match == null ? void 0 : match[2]) ? match[2].trim() : void 0;
1337
+ if (window == null ? void 0 : window.CSS) {
1338
+ if (!window.CSS.supports("color", color)) {
1339
+ color = "transparent";
1340
+ title = str.trim();
1341
+ }
1342
+ } else {
1343
+ const style = new Option().style;
1344
+ style.color = color;
1345
+ if (style.color !== color) {
1346
+ color = "transparent";
1347
+ title = str.trim();
1348
+ }
1349
+ }
1350
+ const { wrap, cleanedText } = this.extractWrap(title);
1351
+ return {
1352
+ text: cleanedText ? chunkWYO6CB5R.sanitizeText(cleanedText, chunkWYO6CB5R.getConfig2()) : void 0,
1353
+ color,
1354
+ wrap
1355
+ };
1356
+ }
1357
+ addNote(actor, placement, message) {
1358
+ const note = {
1359
+ actor,
1360
+ placement,
1361
+ message: message.text,
1362
+ wrap: message.wrap ?? this.autoWrap()
1363
+ };
1364
+ const actors = [].concat(actor, actor);
1365
+ this.state.records.notes.push(note);
1366
+ this.state.records.messages.push({
1367
+ id: this.state.records.messages.length.toString(),
1368
+ from: actors[0],
1369
+ to: actors[1],
1370
+ message: message.text,
1371
+ wrap: message.wrap ?? this.autoWrap(),
1372
+ type: this.LINETYPE.NOTE,
1373
+ placement
1374
+ });
1375
+ }
1376
+ addLinks(actorId, text) {
1377
+ const actor = this.getActor(actorId);
1378
+ try {
1379
+ let sanitizedText = chunkWYO6CB5R.sanitizeText(text.text, chunkWYO6CB5R.getConfig2());
1380
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1381
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1382
+ const links = JSON.parse(sanitizedText);
1383
+ this.insertLinks(actor, links);
1384
+ } catch (e) {
1385
+ chunkX3CZISLH.log.error("error while parsing actor link text", e);
1386
+ }
1387
+ }
1388
+ addALink(actorId, text) {
1389
+ const actor = this.getActor(actorId);
1390
+ try {
1391
+ const links = {};
1392
+ let sanitizedText = chunkWYO6CB5R.sanitizeText(text.text, chunkWYO6CB5R.getConfig2());
1393
+ const sep = sanitizedText.indexOf("@");
1394
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1395
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1396
+ const label = sanitizedText.slice(0, sep - 1).trim();
1397
+ const link = sanitizedText.slice(sep + 1).trim();
1398
+ links[label] = link;
1399
+ this.insertLinks(actor, links);
1400
+ } catch (e) {
1401
+ chunkX3CZISLH.log.error("error while parsing actor link text", e);
1402
+ }
1403
+ }
1404
+ insertLinks(actor, links) {
1405
+ if (actor.links == null) {
1406
+ actor.links = links;
1407
+ } else {
1408
+ for (const key in links) {
1409
+ actor.links[key] = links[key];
1410
+ }
1411
+ }
1412
+ }
1413
+ addProperties(actorId, text) {
1414
+ const actor = this.getActor(actorId);
1415
+ try {
1416
+ const sanitizedText = chunkWYO6CB5R.sanitizeText(text.text, chunkWYO6CB5R.getConfig2());
1417
+ const properties = JSON.parse(sanitizedText);
1418
+ this.insertProperties(actor, properties);
1419
+ } catch (e) {
1420
+ chunkX3CZISLH.log.error("error while parsing actor properties text", e);
1421
+ }
1422
+ }
1423
+ insertProperties(actor, properties) {
1424
+ if (actor.properties == null) {
1425
+ actor.properties = properties;
1426
+ } else {
1427
+ for (const key in properties) {
1428
+ actor.properties[key] = properties[key];
1429
+ }
1430
+ }
1431
+ }
1432
+ boxEnd() {
1433
+ this.state.records.currentBox = void 0;
1434
+ }
1435
+ addDetails(actorId, text) {
1436
+ const actor = this.getActor(actorId);
1437
+ const elem = document.getElementById(text.text);
1438
+ try {
1439
+ const text2 = elem.innerHTML;
1440
+ const details = JSON.parse(text2);
1441
+ if (details.properties) {
1442
+ this.insertProperties(actor, details.properties);
1443
+ }
1444
+ if (details.links) {
1445
+ this.insertLinks(actor, details.links);
1446
+ }
1447
+ } catch (e) {
1448
+ chunkX3CZISLH.log.error("error while parsing actor details text", e);
1449
+ }
1450
+ }
1451
+ getActorProperty(actor, key) {
1452
+ if ((actor == null ? void 0 : actor.properties) !== void 0) {
1453
+ return actor.properties[key];
1454
+ }
1455
+ return void 0;
1456
+ }
1457
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1458
+ apply(param) {
1459
+ if (Array.isArray(param)) {
1460
+ param.forEach((item) => {
1461
+ this.apply(item);
1462
+ });
1463
+ } else {
1464
+ switch (param.type) {
1465
+ case "sequenceIndex":
1466
+ this.state.records.messages.push({
1467
+ id: this.state.records.messages.length.toString(),
1468
+ from: void 0,
1469
+ to: void 0,
1470
+ message: {
1471
+ start: param.sequenceIndex,
1472
+ step: param.sequenceIndexStep,
1473
+ visible: param.sequenceVisible
1474
+ },
1475
+ wrap: false,
1476
+ type: param.signalType
1477
+ });
1478
+ break;
1479
+ case "addParticipant":
1480
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1481
+ break;
1482
+ case "createParticipant":
1483
+ if (this.state.records.actors.has(param.actor)) {
1484
+ throw new Error(
1485
+ "It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior"
1486
+ );
1487
+ }
1488
+ this.state.records.lastCreated = param.actor;
1489
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1490
+ this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1491
+ break;
1492
+ case "destroyParticipant":
1493
+ this.state.records.lastDestroyed = param.actor;
1494
+ this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1495
+ break;
1496
+ case "activeStart":
1497
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1498
+ break;
1499
+ case "centralConnection":
1500
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1501
+ break;
1502
+ case "centralConnectionReverse":
1503
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1504
+ break;
1505
+ case "activeEnd":
1506
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1507
+ break;
1508
+ case "addNote":
1509
+ this.addNote(param.actor, param.placement, param.text);
1510
+ break;
1511
+ case "addLinks":
1512
+ this.addLinks(param.actor, param.text);
1513
+ break;
1514
+ case "addALink":
1515
+ this.addALink(param.actor, param.text);
1516
+ break;
1517
+ case "addProperties":
1518
+ this.addProperties(param.actor, param.text);
1519
+ break;
1520
+ case "addDetails":
1521
+ this.addDetails(param.actor, param.text);
1522
+ break;
1523
+ case "addMessage":
1524
+ if (this.state.records.lastCreated) {
1525
+ if (param.to !== this.state.records.lastCreated) {
1526
+ throw new Error(
1527
+ "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1528
+ );
1529
+ } else {
1530
+ this.state.records.lastCreated = void 0;
1531
+ }
1532
+ } else if (this.state.records.lastDestroyed) {
1533
+ if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1534
+ throw new Error(
1535
+ "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1536
+ );
1537
+ } else {
1538
+ this.state.records.lastDestroyed = void 0;
1539
+ }
1540
+ }
1541
+ this.addSignal(
1542
+ param.from,
1543
+ param.to,
1544
+ param.msg,
1545
+ param.signalType,
1546
+ param.activate,
1547
+ param.centralConnection
1548
+ );
1549
+ break;
1550
+ case "boxStart":
1551
+ this.addBox(param.boxData);
1552
+ break;
1553
+ case "boxEnd":
1554
+ this.boxEnd();
1555
+ break;
1556
+ case "loopStart":
1557
+ this.addSignal(void 0, void 0, param.loopText, param.signalType);
1558
+ break;
1559
+ case "loopEnd":
1560
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1561
+ break;
1562
+ case "rectStart":
1563
+ this.addSignal(void 0, void 0, param.color, param.signalType);
1564
+ break;
1565
+ case "rectEnd":
1566
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1567
+ break;
1568
+ case "optStart":
1569
+ this.addSignal(void 0, void 0, param.optText, param.signalType);
1570
+ break;
1571
+ case "optEnd":
1572
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1573
+ break;
1574
+ case "altStart":
1575
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1576
+ break;
1577
+ case "else":
1578
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1579
+ break;
1580
+ case "altEnd":
1581
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1582
+ break;
1583
+ case "setAccTitle":
1584
+ chunkWYO6CB5R.setAccTitle(param.text);
1585
+ break;
1586
+ case "parStart":
1587
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1588
+ break;
1589
+ case "and":
1590
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1591
+ break;
1592
+ case "parEnd":
1593
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1594
+ break;
1595
+ case "criticalStart":
1596
+ this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1597
+ break;
1598
+ case "option":
1599
+ this.addSignal(void 0, void 0, param.optionText, param.signalType);
1600
+ break;
1601
+ case "criticalEnd":
1602
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1603
+ break;
1604
+ case "breakStart":
1605
+ this.addSignal(void 0, void 0, param.breakText, param.signalType);
1606
+ break;
1607
+ case "breakEnd":
1608
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1609
+ break;
1610
+ }
1611
+ }
1612
+ }
1613
+ getConfig() {
1614
+ return chunkWYO6CB5R.getConfig2().sequence;
1615
+ }
1616
+ }, chunkY2CYZVJY.__name(_a, "SequenceDB"), _a);
1617
+ var getStyles = /* @__PURE__ */ chunkY2CYZVJY.__name((options) => {
1618
+ const dropShadow = options.dropShadow ?? "none";
1619
+ const { look } = chunkWYO6CB5R.getConfig2();
1620
+ return `.actor {
1621
+ stroke: ${options.actorBorder};
1622
+ fill: ${options.actorBkg};
1623
+ stroke-width: ${options.strokeWidth ?? 1};
1624
+ }
1625
+
1626
+ rect.actor.outer-path[data-look="neo"] {
1627
+ filter: ${dropShadow};
1628
+ }
1629
+
1630
+ rect.note[data-look="neo"] {
1631
+ stroke:${options.noteBorderColor};
1632
+ fill:${options.noteBkgColor};
1633
+ filter: ${dropShadow};
1634
+ }
1635
+
1636
+ text.actor > tspan {
1637
+ fill: ${options.actorTextColor};
1638
+ stroke: none;
1639
+ }
1640
+
1641
+ .actor-line {
1642
+ stroke: ${options.actorLineColor};
1643
+ }
1644
+
1645
+ .innerArc {
1646
+ stroke-width: 1.5;
1647
+ stroke-dasharray: none;
1648
+ }
1649
+
1650
+ .messageLine0 {
1651
+ stroke-width: 1.5;
1652
+ stroke-dasharray: none;
1653
+ stroke: ${options.signalColor};
1654
+ }
1655
+
1656
+ .messageLine1 {
1657
+ stroke-width: 1.5;
1658
+ stroke-dasharray: 2, 2;
1659
+ stroke: ${options.signalColor};
1660
+ }
1661
+
1662
+ [id$="-arrowhead"] path {
1663
+ fill: ${options.signalColor};
1664
+ stroke: ${options.signalColor};
1665
+ }
1666
+
1667
+ .sequenceNumber {
1668
+ fill: ${options.sequenceNumberColor};
1669
+ }
1670
+
1671
+ [id$="-sequencenumber"] {
1672
+ fill: ${options.signalColor};
1673
+ }
1674
+
1675
+ [id$="-crosshead"] path {
1676
+ fill: ${options.signalColor};
1677
+ stroke: ${options.signalColor};
1678
+ }
1679
+
1680
+ .messageText {
1681
+ fill: ${options.signalTextColor};
1682
+ stroke: none;
1683
+ }
1684
+
1685
+ .labelBox {
1686
+ stroke: ${options.labelBoxBorderColor};
1687
+ fill: ${options.labelBoxBkgColor};
1688
+ filter: ${look === "neo" ? dropShadow : "none"};
1689
+ }
1690
+
1691
+ .labelText, .labelText > tspan {
1692
+ fill: ${options.labelTextColor};
1693
+ stroke: none;
1694
+ }
1695
+
1696
+ .loopText, .loopText > tspan {
1697
+ fill: ${options.loopTextColor};
1698
+ stroke: none;
1699
+ }
1700
+
1701
+ .sectionTitle, .sectionTitle > tspan {
1702
+ fill: ${options.loopTextColor};
1703
+ stroke: none;
1704
+ }
1705
+
1706
+ .loopLine {
1707
+ stroke-width: 2px;
1708
+ stroke-dasharray: 2, 2;
1709
+ stroke: ${options.labelBoxBorderColor};
1710
+ fill: ${options.labelBoxBorderColor};
1711
+ }
1712
+
1713
+ .note {
1714
+ //stroke: #decc93;
1715
+ stroke: ${options.noteBorderColor};
1716
+ fill: ${options.noteBkgColor};
1717
+ }
1718
+
1719
+ .noteText, .noteText > tspan {
1720
+ fill: ${options.noteTextColor};
1721
+ stroke: none;
1722
+ ${options.noteFontWeight ? `font-weight: ${options.noteFontWeight};` : ""}
1723
+ }
1724
+
1725
+ .activation0 {
1726
+ fill: ${options.activationBkgColor};
1727
+ stroke: ${options.activationBorderColor};
1728
+ }
1729
+
1730
+ .activation1 {
1731
+ fill: ${options.activationBkgColor};
1732
+ stroke: ${options.activationBorderColor};
1733
+ }
1734
+
1735
+ .activation2 {
1736
+ fill: ${options.activationBkgColor};
1737
+ stroke: ${options.activationBorderColor};
1738
+ }
1739
+
1740
+ .actorPopupMenu {
1741
+ position: absolute;
1742
+ }
1743
+
1744
+ .actorPopupMenuPanel {
1745
+ position: absolute;
1746
+ fill: ${options.actorBkg};
1747
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1748
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1749
+ }
1750
+ .actor-man circle, line {
1751
+ fill: ${options.actorBkg};
1752
+ stroke-width: 2px;
1753
+ }
1754
+
1755
+ g rect.rect {
1756
+ filter: ${dropShadow};
1757
+ stroke: ${options.nodeBorder};
1758
+ }
1759
+ `;
1760
+ }, "getStyles");
1761
+ var styles_default = getStyles;
1762
+ var ACTOR_TYPE_WIDTH = 18 * 2;
1763
+ var TOP_ACTOR_CLASS = "actor-top";
1764
+ var BOTTOM_ACTOR_CLASS = "actor-bottom";
1765
+ var ACTOR_BOX_CLASS = "actor-box";
1766
+ var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1767
+ var COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
1768
+ var drawRect2 = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, rectData) {
1769
+ const rectElement = chunk32BRIVSS.drawRect(elem, rectData);
1770
+ if (chunkWYO6CB5R.getConfig().look === "neo") {
1771
+ rectElement.attr("data-look", "neo");
1772
+ }
1773
+ return rectElement;
1774
+ }, "drawRect");
1775
+ var drawPopup = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1776
+ if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1777
+ return { height: 0, width: 0 };
1778
+ }
1779
+ const links = actor.links;
1780
+ const actorCnt2 = actor.actorCnt;
1781
+ const rectData = actor.rectData;
1782
+ var displayValue = "none";
1783
+ if (forceMenus) {
1784
+ displayValue = "block !important";
1785
+ }
1786
+ const g = elem.append("g");
1787
+ g.attr("id", "actor" + actorCnt2 + "_popup");
1788
+ g.attr("class", "actorPopupMenu");
1789
+ g.attr("display", displayValue);
1790
+ var actorClass = "";
1791
+ if (rectData.class !== void 0) {
1792
+ actorClass = " " + rectData.class;
1793
+ }
1794
+ let menuWidth = rectData.width > minMenuWidth ? rectData.width : minMenuWidth;
1795
+ const rectElem = g.append("rect");
1796
+ rectElem.attr("class", "actorPopupMenuPanel" + actorClass);
1797
+ rectElem.attr("x", rectData.x);
1798
+ rectElem.attr("y", rectData.height);
1799
+ rectElem.attr("fill", rectData.fill);
1800
+ rectElem.attr("stroke", rectData.stroke);
1801
+ rectElem.attr("width", menuWidth);
1802
+ rectElem.attr("height", rectData.height);
1803
+ rectElem.attr("rx", rectData.rx);
1804
+ rectElem.attr("ry", rectData.ry);
1805
+ if (links != null) {
1806
+ var linkY = 20;
1807
+ for (let key in links) {
1808
+ var linkElem = g.append("a");
1809
+ var sanitizedLink = index.distExports.sanitizeUrl(links[key]);
1810
+ linkElem.attr("xlink:href", sanitizedLink);
1811
+ linkElem.attr("target", "_blank");
1812
+ _drawMenuItemTextCandidateFunc(textAttrs)(
1813
+ key,
1814
+ linkElem,
1815
+ rectData.x + 10,
1816
+ rectData.height + linkY,
1817
+ menuWidth,
1818
+ 20,
1819
+ { class: "actor" },
1820
+ textAttrs
1821
+ );
1822
+ linkY += 30;
1823
+ }
1824
+ }
1825
+ rectElem.attr("height", linkY);
1826
+ return { height: rectData.height + linkY, width: menuWidth };
1827
+ }, "drawPopup");
1828
+ var popupMenuToggle = /* @__PURE__ */ chunkY2CYZVJY.__name(function(popId) {
1829
+ return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1830
+ }, "popupMenuToggle");
1831
+ var drawKatex = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(elem, textData, msgModel = null) {
1832
+ let textElem = elem.append("foreignObject");
1833
+ const linesSanitized = await chunkWYO6CB5R.renderKatexSanitized(textData.text, chunkWYO6CB5R.getConfig());
1834
+ const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(linesSanitized);
1835
+ const dim = divElem.node().getBoundingClientRect();
1836
+ textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
1837
+ if (textData.class === "noteText") {
1838
+ const rectElem = elem.node().firstChild;
1839
+ rectElem.setAttribute("height", dim.height + 2 * textData.textMargin);
1840
+ const rectDim = rectElem.getBBox();
1841
+ textElem.attr("x", Math.round(rectDim.x + rectDim.width / 2 - dim.width / 2)).attr("y", Math.round(rectDim.y + rectDim.height / 2 - dim.height / 2));
1842
+ } else if (msgModel) {
1843
+ let { startx, stopx, starty } = msgModel;
1844
+ if (startx > stopx) {
1845
+ const temp = startx;
1846
+ startx = stopx;
1847
+ stopx = temp;
1848
+ }
1849
+ textElem.attr("x", Math.round(startx + Math.abs(startx - stopx) / 2 - dim.width / 2));
1850
+ if (textData.class === "loopText") {
1851
+ textElem.attr("y", Math.round(starty));
1852
+ } else {
1853
+ textElem.attr("y", Math.round(starty - dim.height));
1854
+ }
1855
+ }
1856
+ return [textElem];
1857
+ }, "drawKatex");
1858
+ var drawText = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, textData) {
1859
+ let prevTextHeight = 0;
1860
+ let textHeight = 0;
1861
+ const lines = textData.text.split(chunkWYO6CB5R.common_default.lineBreakRegex);
1862
+ const [_textFontSize, _textFontSizePx] = chunkICXQ74PX.parseFontSize(textData.fontSize);
1863
+ let textElems = [];
1864
+ let dy = 0;
1865
+ let yfunc = /* @__PURE__ */ chunkY2CYZVJY.__name(() => textData.y, "yfunc");
1866
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1867
+ switch (textData.valign) {
1868
+ case "top":
1869
+ case "start":
1870
+ yfunc = /* @__PURE__ */ chunkY2CYZVJY.__name(() => Math.round(textData.y + textData.textMargin), "yfunc");
1871
+ break;
1872
+ case "middle":
1873
+ case "center":
1874
+ yfunc = /* @__PURE__ */ chunkY2CYZVJY.__name(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1875
+ break;
1876
+ case "bottom":
1877
+ case "end":
1878
+ yfunc = /* @__PURE__ */ chunkY2CYZVJY.__name(() => Math.round(
1879
+ textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1880
+ ), "yfunc");
1881
+ break;
1882
+ }
1883
+ }
1884
+ if (textData.anchor !== void 0 && textData.textMargin !== void 0 && textData.width !== void 0) {
1885
+ switch (textData.anchor) {
1886
+ case "left":
1887
+ case "start":
1888
+ textData.x = Math.round(textData.x + textData.textMargin);
1889
+ textData.anchor = "start";
1890
+ textData.dominantBaseline = "middle";
1891
+ textData.alignmentBaseline = "middle";
1892
+ break;
1893
+ case "middle":
1894
+ case "center":
1895
+ textData.x = Math.round(textData.x + textData.width / 2);
1896
+ textData.anchor = "middle";
1897
+ textData.dominantBaseline = "middle";
1898
+ textData.alignmentBaseline = "middle";
1899
+ break;
1900
+ case "right":
1901
+ case "end":
1902
+ textData.x = Math.round(textData.x + textData.width - textData.textMargin);
1903
+ textData.anchor = "end";
1904
+ textData.dominantBaseline = "middle";
1905
+ textData.alignmentBaseline = "middle";
1906
+ break;
1907
+ }
1908
+ }
1909
+ for (let [i, line] of lines.entries()) {
1910
+ if (textData.textMargin !== void 0 && textData.textMargin === 0 && _textFontSize !== void 0) {
1911
+ dy = i * _textFontSize;
1912
+ }
1913
+ const textElem = elem.append("text");
1914
+ textElem.attr("x", textData.x);
1915
+ textElem.attr("y", yfunc());
1916
+ if (textData.anchor !== void 0) {
1917
+ textElem.attr("text-anchor", textData.anchor).attr("dominant-baseline", textData.dominantBaseline).attr("alignment-baseline", textData.alignmentBaseline);
1918
+ }
1919
+ if (textData.fontFamily !== void 0) {
1920
+ textElem.style("font-family", textData.fontFamily);
1921
+ }
1922
+ if (_textFontSizePx !== void 0) {
1923
+ textElem.style("font-size", _textFontSizePx);
1924
+ }
1925
+ if (textData.fontWeight !== void 0) {
1926
+ textElem.style("font-weight", textData.fontWeight);
1927
+ }
1928
+ if (textData.fill !== void 0) {
1929
+ textElem.attr("fill", textData.fill);
1930
+ }
1931
+ if (textData.class !== void 0) {
1932
+ textElem.attr("class", textData.class);
1933
+ }
1934
+ if (textData.dy !== void 0) {
1935
+ textElem.attr("dy", textData.dy);
1936
+ } else if (dy !== 0) {
1937
+ textElem.attr("dy", dy);
1938
+ }
1939
+ const text = line || chunkICXQ74PX.ZERO_WIDTH_SPACE;
1940
+ if (textData.tspan) {
1941
+ const span = textElem.append("tspan");
1942
+ span.attr("x", textData.x);
1943
+ if (textData.fill !== void 0) {
1944
+ span.attr("fill", textData.fill);
1945
+ }
1946
+ span.text(text);
1947
+ } else {
1948
+ textElem.text(text);
1949
+ }
1950
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1951
+ textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
1952
+ prevTextHeight = textHeight;
1953
+ }
1954
+ textElems.push(textElem);
1955
+ }
1956
+ return textElems;
1957
+ }, "drawText");
1958
+ var drawLabel = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, txtObject) {
1959
+ function genPoints(x, y, width, height, cut) {
1960
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1961
+ }
1962
+ chunkY2CYZVJY.__name(genPoints, "genPoints");
1963
+ const polygon = elem.append("polygon");
1964
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1965
+ polygon.attr("class", "labelBox");
1966
+ txtObject.y = txtObject.y + txtObject.height / 2;
1967
+ drawText(elem, txtObject);
1968
+ return polygon;
1969
+ }, "drawLabel");
1970
+ var actorCnt = -1;
1971
+ var fixLifeLineHeights = /* @__PURE__ */ chunkY2CYZVJY.__name((diagram2, actors, actorKeys, conf2) => {
1972
+ if (!diagram2.select) {
1973
+ return;
1974
+ }
1975
+ actorKeys.forEach((actorKey) => {
1976
+ const actor = actors.get(actorKey);
1977
+ const actorDOM = diagram2.select("#actor" + actor.actorCnt);
1978
+ if (!conf2.mirrorActors && actor.stopy) {
1979
+ actorDOM.attr("y2", actor.stopy + actor.height / 2);
1980
+ } else if (conf2.mirrorActors) {
1981
+ actorDOM.attr("y2", actor.stopy);
1982
+ }
1983
+ });
1984
+ }, "fixLifeLineHeights");
1985
+ var drawActorTypeParticipant = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
1986
+ var _a2, _b;
1987
+ const actorY = isFooter ? actor.stopy : actor.starty;
1988
+ const center = actor.x + actor.width / 2;
1989
+ const centerY = actorY + actor.height;
1990
+ const { look, theme, themeVariables } = conf2;
1991
+ const { bkgColorArray, borderColorArray } = themeVariables;
1992
+ const boxplusLineGroup = elem.append("g").lower();
1993
+ var g = boxplusLineGroup;
1994
+ if (!isFooter) {
1995
+ actorCnt++;
1996
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1997
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1998
+ }
1999
+ g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2000
+ g = boxplusLineGroup.append("g");
2001
+ actor.actorCnt = actorCnt;
2002
+ if (actor.links != null) {
2003
+ g.attr("id", "root-" + actorCnt);
2004
+ }
2005
+ if (look === "neo") {
2006
+ g.attr("data-look", "neo");
2007
+ }
2008
+ }
2009
+ const rect = chunk32BRIVSS.getNoteRect();
2010
+ var cssclass = "actor";
2011
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2012
+ cssclass = actor.properties.class;
2013
+ } else {
2014
+ rect.fill = "#eaeaea";
2015
+ }
2016
+ if (isFooter) {
2017
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2018
+ } else {
2019
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2020
+ }
2021
+ rect.x = actor.x;
2022
+ rect.y = actorY;
2023
+ rect.width = actor.width;
2024
+ rect.height = actor.height;
2025
+ rect.class = cssclass;
2026
+ rect.rx = 3;
2027
+ rect.ry = 3;
2028
+ rect.name = actor.name;
2029
+ if (look === "neo") {
2030
+ rect.rx = 6;
2031
+ rect.ry = 6;
2032
+ }
2033
+ const rectElem = drawRect2(g, rect);
2034
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2035
+ if (COLOR_THEMES.has(theme)) {
2036
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2037
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2038
+ }
2039
+ if (look === "neo") {
2040
+ rectElem.attr("filter", "url(#drop-shadow)");
2041
+ }
2042
+ actor.rectData = rect;
2043
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2044
+ const iconSrc = actor.properties.icon.trim();
2045
+ if (iconSrc.charAt(0) === "@") {
2046
+ chunk32BRIVSS.drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2047
+ } else {
2048
+ chunk32BRIVSS.drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2049
+ }
2050
+ }
2051
+ if (!isFooter) {
2052
+ g.attr("data-et", "participant");
2053
+ g.attr("data-type", "participant");
2054
+ g.attr("data-id", actor.name);
2055
+ }
2056
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2057
+ actor.description,
2058
+ g,
2059
+ rect.x,
2060
+ rect.y,
2061
+ rect.width,
2062
+ rect.height,
2063
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2064
+ conf2
2065
+ );
2066
+ let height = actor.height;
2067
+ if (rectElem.node) {
2068
+ const bounds2 = rectElem.node().getBBox();
2069
+ actor.height = bounds2.height;
2070
+ height = bounds2.height;
2071
+ }
2072
+ return height;
2073
+ }, "drawActorTypeParticipant");
2074
+ var drawActorTypeCollections = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2075
+ var _a2, _b;
2076
+ const actorY = isFooter ? actor.stopy : actor.starty;
2077
+ const center = actor.x + actor.width / 2;
2078
+ const centerY = actorY + actor.height;
2079
+ const { look, theme, themeVariables } = conf2;
2080
+ const { bkgColorArray, borderColorArray } = themeVariables;
2081
+ const boxplusLineGroup = elem.append("g").lower();
2082
+ var g = boxplusLineGroup;
2083
+ if (!isFooter) {
2084
+ actorCnt++;
2085
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2086
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2087
+ }
2088
+ g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2089
+ g = boxplusLineGroup.append("g");
2090
+ actor.actorCnt = actorCnt;
2091
+ if (actor.links != null) {
2092
+ g.attr("id", "root-" + actorCnt);
2093
+ }
2094
+ if (look === "neo") {
2095
+ g.attr("data-look", "neo");
2096
+ }
2097
+ }
2098
+ const rect = chunk32BRIVSS.getNoteRect();
2099
+ var cssclass = "actor";
2100
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2101
+ cssclass = actor.properties.class;
2102
+ } else {
2103
+ rect.fill = "#eaeaea";
2104
+ }
2105
+ if (isFooter) {
2106
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2107
+ } else {
2108
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2109
+ }
2110
+ rect.x = actor.x;
2111
+ rect.y = actorY;
2112
+ rect.width = actor.width;
2113
+ rect.height = actor.height;
2114
+ rect.class = cssclass;
2115
+ rect.name = actor.name;
2116
+ const offset = 6;
2117
+ const shadowRect = {
2118
+ ...rect,
2119
+ x: rect.x + (isFooter ? -6 : -6),
2120
+ y: rect.y + (isFooter ? 6 : 6),
2121
+ class: "actor"
2122
+ };
2123
+ const rectElem = drawRect2(g, rect);
2124
+ const stackedRect = drawRect2(g, shadowRect);
2125
+ actor.rectData = rect;
2126
+ if (look === "neo") {
2127
+ g.attr("filter", "url(#drop-shadow)");
2128
+ }
2129
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2130
+ if (COLOR_THEMES.has(theme)) {
2131
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2132
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2133
+ stackedRect.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2134
+ stackedRect.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2135
+ }
2136
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2137
+ const iconSrc = actor.properties.icon.trim();
2138
+ if (iconSrc.charAt(0) === "@") {
2139
+ chunk32BRIVSS.drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2140
+ } else {
2141
+ chunk32BRIVSS.drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2142
+ }
2143
+ }
2144
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2145
+ actor.description,
2146
+ g,
2147
+ rect.x - offset,
2148
+ rect.y + offset,
2149
+ rect.width,
2150
+ rect.height,
2151
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2152
+ conf2
2153
+ );
2154
+ let height = actor.height;
2155
+ if (rectElem.node) {
2156
+ const bounds2 = rectElem.node().getBBox();
2157
+ actor.height = bounds2.height;
2158
+ height = bounds2.height;
2159
+ }
2160
+ if (!isFooter) {
2161
+ g.attr("data-et", "participant");
2162
+ g.attr("data-type", "collections");
2163
+ g.attr("data-id", actor.name);
2164
+ }
2165
+ return height;
2166
+ }, "drawActorTypeCollections");
2167
+ var drawActorTypeQueue = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2168
+ var _a2, _b;
2169
+ const actorY = isFooter ? actor.stopy : actor.starty;
2170
+ const center = actor.x + actor.width / 2;
2171
+ const centerY = actorY + actor.height;
2172
+ const { look, theme, themeVariables } = conf2;
2173
+ const { bkgColorArray, borderColorArray } = themeVariables;
2174
+ const boxplusLineGroup = elem.append("g").lower();
2175
+ let g = boxplusLineGroup;
2176
+ if (!isFooter) {
2177
+ actorCnt++;
2178
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2179
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2180
+ }
2181
+ g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2182
+ g = boxplusLineGroup.append("g");
2183
+ actor.actorCnt = actorCnt;
2184
+ if (actor.links != null) {
2185
+ g.attr("id", "root-" + actorCnt);
2186
+ }
2187
+ if (look === "neo") {
2188
+ g.attr("data-look", "neo");
2189
+ }
2190
+ }
2191
+ const rect = chunk32BRIVSS.getNoteRect();
2192
+ let cssclass = "actor";
2193
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2194
+ cssclass = actor.properties.class;
2195
+ } else {
2196
+ rect.fill = "#eaeaea";
2197
+ }
2198
+ if (isFooter) {
2199
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2200
+ } else {
2201
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2202
+ }
2203
+ g.attr("class", cssclass);
2204
+ rect.x = actor.x;
2205
+ rect.y = actorY;
2206
+ rect.width = actor.width;
2207
+ rect.height = actor.height;
2208
+ rect.name = actor.name;
2209
+ const ry = rect.height / 2;
2210
+ const rx = ry / (2.5 + rect.height / 50);
2211
+ const cylinderGroup = g.append("g");
2212
+ const cylinderArc = g.append("g");
2213
+ const cylinderPath = `M ${rect.x},${rect.y + ry}
2214
+ a ${rx},${ry} 0 0 0 0,${rect.height}
2215
+ h ${rect.width - 2 * rx}
2216
+ a ${rx},${ry} 0 0 0 0,-${rect.height}
2217
+ Z
2218
+ `;
2219
+ cylinderGroup.append("path").attr("d", cylinderPath);
2220
+ cylinderArc.append("path").attr(
2221
+ "d",
2222
+ `M ${rect.x},${rect.y + ry}
2223
+ a ${rx},${ry} 0 0 0 0,${rect.height}`
2224
+ );
2225
+ cylinderGroup.attr("transform", `translate(${rx}, ${-(rect.height / 2)})`);
2226
+ cylinderArc.attr("transform", `translate(${rect.width - rx}, ${-rect.height / 2})`);
2227
+ actor.rectData = rect;
2228
+ if (look === "neo") {
2229
+ cylinderGroup.attr("filter", "url(#drop-shadow)");
2230
+ }
2231
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2232
+ if (COLOR_THEMES.has(theme)) {
2233
+ cylinderGroup.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2234
+ cylinderGroup.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2235
+ cylinderArc.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2236
+ cylinderArc.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2237
+ }
2238
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2239
+ const iconSrc = actor.properties.icon.trim();
2240
+ const iconX = rect.x + rect.width - 20;
2241
+ const iconY = rect.y + 10;
2242
+ if (iconSrc.charAt(0) === "@") {
2243
+ chunk32BRIVSS.drawEmbeddedImage(g, iconX, iconY, iconSrc.substr(1));
2244
+ } else {
2245
+ chunk32BRIVSS.drawImage(g, iconX, iconY, iconSrc);
2246
+ }
2247
+ }
2248
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2249
+ actor.description,
2250
+ g,
2251
+ rect.x,
2252
+ rect.y,
2253
+ rect.width,
2254
+ rect.height,
2255
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2256
+ conf2
2257
+ );
2258
+ let height = actor.height;
2259
+ const lastPath = cylinderGroup.select("path:last-child");
2260
+ if (lastPath.node()) {
2261
+ const bounds2 = lastPath.node().getBBox();
2262
+ actor.height = bounds2.height;
2263
+ height = bounds2.height;
2264
+ }
2265
+ if (!isFooter) {
2266
+ g.attr("data-et", "participant");
2267
+ g.attr("data-type", "queue");
2268
+ g.attr("data-id", actor.name);
2269
+ }
2270
+ return height;
2271
+ }, "drawActorTypeQueue");
2272
+ var drawActorTypeControl = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, diagramId, actorIndexMap) {
2273
+ var _a2;
2274
+ const actorY = isFooter ? actor.stopy : actor.starty;
2275
+ const center = actor.x + actor.width / 2;
2276
+ const centerY = actorY + 75;
2277
+ const { look, theme, themeVariables } = conf2;
2278
+ const { bkgColorArray, borderColorArray, actorBorder, actorBkg } = themeVariables;
2279
+ const line = elem.append("g").lower();
2280
+ if (!isFooter) {
2281
+ actorCnt++;
2282
+ line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2283
+ actor.actorCnt = actorCnt;
2284
+ }
2285
+ const actElem = elem.append("g");
2286
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2287
+ if (isFooter) {
2288
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2289
+ } else {
2290
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2291
+ }
2292
+ actElem.attr("class", cssClass);
2293
+ actElem.attr("name", actor.name);
2294
+ const rect = chunk32BRIVSS.getNoteRect();
2295
+ rect.x = actor.x;
2296
+ rect.y = actorY;
2297
+ rect.fill = "#eaeaea";
2298
+ rect.width = actor.width;
2299
+ rect.height = actor.height;
2300
+ rect.class = "actor";
2301
+ const cx = actor.x + actor.width / 2;
2302
+ const cy = actorY + 32;
2303
+ const r = 22;
2304
+ actElem.append("defs").append("marker").attr("id", diagramId + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z");
2305
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("filter", `${look === "neo" ? "url(#drop-shadow)" : ""}`);
2306
+ actElem.append("line").attr("marker-end", "url(#" + diagramId + "-filled-head-control)").attr("transform", `translate(${cx}, ${cy - r})`);
2307
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2308
+ if (COLOR_THEMES.has(theme)) {
2309
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2310
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2311
+ } else {
2312
+ actElem.style("stroke", actorBorder);
2313
+ actElem.style("fill", actorBkg);
2314
+ }
2315
+ const bounds2 = actElem.node().getBBox();
2316
+ actor.height = bounds2.height + 2 * (((_a2 = conf2 == null ? void 0 : conf2.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0);
2317
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2318
+ actor.description,
2319
+ actElem,
2320
+ rect.x,
2321
+ rect.y + r + (!isFooter ? 12 : 5),
2322
+ rect.width,
2323
+ rect.height,
2324
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2325
+ conf2
2326
+ );
2327
+ if (!isFooter) {
2328
+ actElem.attr("data-et", "participant");
2329
+ actElem.attr("data-type", "control");
2330
+ actElem.attr("data-id", actor.name);
2331
+ }
2332
+ return actor.height;
2333
+ }, "drawActorTypeControl");
2334
+ var drawActorTypeEntity = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2335
+ var _a2;
2336
+ const actorY = isFooter ? actor.stopy : actor.starty;
2337
+ const center = actor.x + actor.width / 2;
2338
+ const centerY = actorY + 75;
2339
+ const { look, theme, themeVariables } = conf2;
2340
+ const { bkgColorArray, borderColorArray } = themeVariables;
2341
+ const line = elem.append("g").lower();
2342
+ const actElem = elem.append("g");
2343
+ let cssClass = "actor";
2344
+ if (isFooter) {
2345
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2346
+ } else {
2347
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2348
+ }
2349
+ actElem.attr("class", cssClass);
2350
+ actElem.attr("name", actor.name);
2351
+ const rect = chunk32BRIVSS.getNoteRect();
2352
+ rect.x = actor.x;
2353
+ rect.y = actorY;
2354
+ rect.fill = "#eaeaea";
2355
+ rect.width = actor.width;
2356
+ rect.height = actor.height;
2357
+ rect.class = "actor";
2358
+ const cx = actor.x + actor.width / 2;
2359
+ const cy = actorY + (!isFooter ? 25 : 10);
2360
+ const r = 22;
2361
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("width", actor.width).attr("height", actor.height);
2362
+ actElem.append("line").attr("x1", cx - r).attr("x2", cx + r).attr("y1", cy + r).attr("y2", cy + r).attr("stroke-width", 2);
2363
+ if (look === "neo") {
2364
+ actElem.attr("filter", "url(#drop-shadow)");
2365
+ }
2366
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2367
+ if (COLOR_THEMES.has(theme)) {
2368
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2369
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2370
+ }
2371
+ const bounds2 = actElem.node().getBBox();
2372
+ actor.height = bounds2.height + (((_a2 = conf2 == null ? void 0 : conf2.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0);
2373
+ if (!isFooter) {
2374
+ actorCnt++;
2375
+ line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2376
+ actor.actorCnt = actorCnt;
2377
+ }
2378
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2379
+ actor.description,
2380
+ actElem,
2381
+ rect.x,
2382
+ rect.y + (!isFooter ? 30 : 15),
2383
+ rect.width,
2384
+ rect.height,
2385
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2386
+ conf2
2387
+ );
2388
+ if (!isFooter) {
2389
+ actElem.attr("transform", `translate(${0}, ${r / 2 - 5})`);
2390
+ actElem.attr("data-et", "participant");
2391
+ actElem.attr("data-type", "entity");
2392
+ actElem.attr("data-id", actor.name);
2393
+ } else {
2394
+ actElem.attr("transform", `translate(${0}, ${r})`);
2395
+ }
2396
+ return actor.height;
2397
+ }, "drawActorTypeEntity");
2398
+ var drawActorTypeDatabase = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2399
+ var _a2;
2400
+ const actorY = isFooter ? actor.stopy : actor.starty;
2401
+ const center = actor.x + actor.width / 2;
2402
+ const centerY = actorY + actor.height + 2 * conf2.boxTextMargin;
2403
+ const { theme, themeVariables, look } = conf2;
2404
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2405
+ const boxplusLineGroup = elem.append("g").lower();
2406
+ let g = boxplusLineGroup;
2407
+ if (!isFooter) {
2408
+ actorCnt++;
2409
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2410
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2411
+ }
2412
+ g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2413
+ g = boxplusLineGroup.append("g");
2414
+ actor.actorCnt = actorCnt;
2415
+ if (actor.links != null) {
2416
+ g.attr("id", "root-" + actorCnt);
2417
+ }
2418
+ if (look === "neo") {
2419
+ g.attr("data-look", "neo");
2420
+ }
2421
+ }
2422
+ const rect = chunk32BRIVSS.getNoteRect();
2423
+ let cssclass = "actor";
2424
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2425
+ cssclass = actor.properties.class;
2426
+ } else {
2427
+ rect.fill = "#eaeaea";
2428
+ }
2429
+ if (isFooter) {
2430
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2431
+ } else {
2432
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2433
+ }
2434
+ rect.x = actor.x;
2435
+ rect.y = actorY;
2436
+ rect.width = actor.width;
2437
+ rect.height = actor.height;
2438
+ rect.class = cssclass;
2439
+ rect.name = actor.name;
2440
+ rect.x = actor.x;
2441
+ rect.y = actorY;
2442
+ const w = rect.width / 3;
2443
+ const h = rect.width / 3;
2444
+ const rx = w / 2;
2445
+ const ry = rx / (2.5 + w / 50);
2446
+ const cylinderGroup = g.append("g");
2447
+ cylinderGroup.attr("class", cssclass);
2448
+ const d = `
2449
+ M ${rect.x},${rect.y + ry}
2450
+ a ${rx},${ry} 0 0 0 ${w},0
2451
+ a ${rx},${ry} 0 0 0 -${w},0
2452
+ l 0,${h - 2 * ry}
2453
+ a ${rx},${ry} 0 0 0 ${w},0
2454
+ l 0,-${h - 2 * ry}
2455
+ `;
2456
+ cylinderGroup.append("path").attr("d", d);
2457
+ if (look === "neo") {
2458
+ cylinderGroup.attr("filter", "url(#drop-shadow)");
2459
+ }
2460
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2461
+ if (COLOR_THEMES.has(theme)) {
2462
+ cylinderGroup.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2463
+ cylinderGroup.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2464
+ } else {
2465
+ cylinderGroup.style("stroke", actorBorder);
2466
+ }
2467
+ cylinderGroup.attr("transform", `translate(${w}, ${ry})`);
2468
+ actor.rectData = rect;
2469
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2470
+ actor.description,
2471
+ g,
2472
+ rect.x,
2473
+ rect.y + 35,
2474
+ rect.width,
2475
+ rect.height,
2476
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2477
+ conf2
2478
+ );
2479
+ const lastPath = cylinderGroup.select("path:last-child");
2480
+ if (lastPath.node()) {
2481
+ const bounds2 = lastPath.node().getBBox();
2482
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2483
+ }
2484
+ if (!isFooter) {
2485
+ g.attr("data-et", "participant");
2486
+ g.attr("data-type", "database");
2487
+ g.attr("data-id", actor.name);
2488
+ }
2489
+ return actor.height;
2490
+ }, "drawActorTypeDatabase");
2491
+ var drawActorTypeBoundary = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2492
+ const actorY = isFooter ? actor.stopy : actor.starty;
2493
+ const center = actor.x + actor.width / 2;
2494
+ const centerY = actorY + 80;
2495
+ const radius = 22;
2496
+ const line = elem.append("g").lower();
2497
+ const { look, theme, themeVariables } = conf2;
2498
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2499
+ if (!isFooter) {
2500
+ actorCnt++;
2501
+ line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2502
+ actor.actorCnt = actorCnt;
2503
+ }
2504
+ const actElem = elem.append("g");
2505
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2506
+ if (isFooter) {
2507
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2508
+ } else {
2509
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2510
+ }
2511
+ actElem.attr("class", cssClass);
2512
+ actElem.attr("name", actor.name);
2513
+ const rect = chunk32BRIVSS.getNoteRect();
2514
+ rect.x = actor.x;
2515
+ rect.y = actorY;
2516
+ rect.fill = "#eaeaea";
2517
+ rect.width = actor.width;
2518
+ rect.height = actor.height;
2519
+ rect.class = "actor";
2520
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 12).attr("x2", actor.x + actor.width / 2 - 15).attr("y2", actorY + 12);
2521
+ actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 2).attr("x2", actor.x + actor.width / 2 - radius * 2.5).attr("y2", actorY + 22);
2522
+ actElem.append("circle").attr("cx", actor.x + actor.width / 2).attr("cy", actorY + 12).attr("r", radius);
2523
+ if (look === "neo") {
2524
+ actElem.attr("filter", "url(#drop-shadow)");
2525
+ }
2526
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2527
+ if (COLOR_THEMES.has(theme)) {
2528
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2529
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2530
+ } else {
2531
+ actElem.style("stroke", actorBorder);
2532
+ }
2533
+ const bounds2 = actElem.node().getBBox();
2534
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2535
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2536
+ actor.description,
2537
+ actElem,
2538
+ rect.x,
2539
+ rect.y + 15,
2540
+ rect.width,
2541
+ rect.height,
2542
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2543
+ conf2
2544
+ );
2545
+ actElem.attr("transform", `translate(0,${radius / 2 + 10})`);
2546
+ if (!isFooter) {
2547
+ actElem.attr("data-et", "participant");
2548
+ actElem.attr("data-type", "boundary");
2549
+ actElem.attr("data-id", actor.name);
2550
+ }
2551
+ return actor.height;
2552
+ }, "drawActorTypeBoundary");
2553
+ var drawActorTypeActor = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2554
+ const actorY = isFooter ? actor.stopy : actor.starty;
2555
+ const center = actor.x + actor.width / 2;
2556
+ const centerY = actorY + 80;
2557
+ const { look, theme, themeVariables } = conf2;
2558
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2559
+ const line = elem.append("g").lower();
2560
+ if (!isFooter) {
2561
+ actorCnt++;
2562
+ line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name).attr("data-et", "life-line").attr("data-id", actor.name);
2563
+ actor.actorCnt = actorCnt;
2564
+ }
2565
+ const actElem = elem.append("g");
2566
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2567
+ if (isFooter) {
2568
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2569
+ } else {
2570
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2571
+ }
2572
+ actElem.attr("class", cssClass);
2573
+ actElem.attr("name", actor.name);
2574
+ if (!isFooter) {
2575
+ actElem.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", actor.name);
2576
+ }
2577
+ const scale = look === "neo" ? 0.5 : 1;
2578
+ const adjustedActorY = look === "neo" ? actorY + (1 - scale) * 30 : actorY;
2579
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", center).attr("y1", adjustedActorY + 25 * scale).attr("x2", center).attr("y2", adjustedActorY + 45 * scale);
2580
+ actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", center - ACTOR_TYPE_WIDTH / 2 * scale).attr("y1", adjustedActorY + 33 * scale).attr("x2", center + ACTOR_TYPE_WIDTH / 2 * scale).attr("y2", adjustedActorY + 33 * scale);
2581
+ actElem.append("line").attr("x1", center - ACTOR_TYPE_WIDTH / 2 * scale).attr("y1", adjustedActorY + 60 * scale).attr("x2", center).attr("y2", adjustedActorY + 45 * scale);
2582
+ actElem.append("line").attr("x1", center).attr("y1", adjustedActorY + 45 * scale).attr("x2", center + (ACTOR_TYPE_WIDTH / 2 - 2) * scale).attr("y2", adjustedActorY + 60 * scale);
2583
+ const circle = actElem.append("circle");
2584
+ circle.attr("cx", actor.x + actor.width / 2);
2585
+ circle.attr("cy", adjustedActorY + 10 * scale);
2586
+ circle.attr("r", 15 * scale);
2587
+ circle.attr("width", actor.width * scale);
2588
+ circle.attr("height", actor.height * scale);
2589
+ const bounds2 = actElem.node().getBBox();
2590
+ actor.height = bounds2.height;
2591
+ const rect = chunk32BRIVSS.getNoteRect();
2592
+ rect.x = actor.x;
2593
+ rect.y = adjustedActorY;
2594
+ rect.fill = "#eaeaea";
2595
+ rect.width = actor.width;
2596
+ rect.height = actor.height / scale;
2597
+ rect.class = "actor";
2598
+ rect.rx = 3;
2599
+ rect.ry = 3;
2600
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2601
+ if (COLOR_THEMES.has(theme)) {
2602
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2603
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2604
+ } else {
2605
+ actElem.style("stroke", actorBorder);
2606
+ }
2607
+ _drawTextCandidateFunc(conf2, chunkWYO6CB5R.hasKatex(actor.description))(
2608
+ actor.description,
2609
+ actElem,
2610
+ rect.x,
2611
+ adjustedActorY + 35 * scale - (look === "neo" ? 10 : 0),
2612
+ rect.width,
2613
+ rect.height,
2614
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2615
+ conf2
2616
+ );
2617
+ return actor.height;
2618
+ }, "drawActorTypeActor");
2619
+ var drawActor = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(elem, actor, conf2, isFooter, diagramId, diagObj, actorIndexMap) {
2620
+ const resolvedActorIndexMap = actorIndexMap ?? new Map(
2621
+ [...diagObj.db.getActors().values()].map((participant, index2) => [participant.name, index2])
2622
+ );
2623
+ switch (actor.type) {
2624
+ case "actor":
2625
+ return await drawActorTypeActor(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2626
+ case "participant":
2627
+ return await drawActorTypeParticipant(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2628
+ case "boundary":
2629
+ return await drawActorTypeBoundary(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2630
+ case "control":
2631
+ return await drawActorTypeControl(
2632
+ elem,
2633
+ actor,
2634
+ conf2,
2635
+ isFooter,
2636
+ diagramId,
2637
+ resolvedActorIndexMap
2638
+ );
2639
+ case "entity":
2640
+ return await drawActorTypeEntity(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2641
+ case "database":
2642
+ return await drawActorTypeDatabase(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2643
+ case "collections":
2644
+ return await drawActorTypeCollections(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2645
+ case "queue":
2646
+ return await drawActorTypeQueue(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2647
+ }
2648
+ }, "drawActor");
2649
+ var drawBox = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, box, conf2) {
2650
+ const boxplusTextGroup = elem.append("g");
2651
+ const g = boxplusTextGroup;
2652
+ drawBackgroundRect2(g, box);
2653
+ if (box.name) {
2654
+ _drawTextCandidateFunc(conf2)(
2655
+ box.name,
2656
+ g,
2657
+ box.x,
2658
+ box.y + conf2.boxTextMargin + (box.textMaxHeight || 0) / 2,
2659
+ box.width,
2660
+ 0,
2661
+ { class: "text" },
2662
+ conf2
2663
+ );
2664
+ }
2665
+ g.lower();
2666
+ }, "drawBox");
2667
+ var anchorElement = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem) {
2668
+ return elem.append("g");
2669
+ }, "anchorElement");
2670
+ var drawActivation = /* @__PURE__ */ chunkY2CYZVJY.__name(function(_elem, bounds2, verticalPos, conf2, actorActivations2, diagObj, actorIndexMap) {
2671
+ const { theme, themeVariables } = conf2;
2672
+ const { bkgColorArray, borderColorArray, mainBkg } = themeVariables;
2673
+ const rect = chunk32BRIVSS.getNoteRect();
2674
+ const g = bounds2.anchored;
2675
+ const actor = bounds2.actor;
2676
+ rect.x = bounds2.startx;
2677
+ rect.y = bounds2.starty;
2678
+ rect.class = "activation" + actorActivations2 % 3;
2679
+ rect.width = bounds2.stopx - bounds2.startx;
2680
+ rect.height = verticalPos - bounds2.starty;
2681
+ const rectElem = drawRect2(g, rect);
2682
+ const resolvedActorIndexMap = actorIndexMap ?? new Map(
2683
+ [...diagObj.db.getActors().values()].map((participant, index2) => [participant.name, index2])
2684
+ );
2685
+ const actorCount = resolvedActorIndexMap.get(actor) ?? 0;
2686
+ if (COLOR_THEMES.has(theme)) {
2687
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2688
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length] ?? mainBkg);
2689
+ }
2690
+ }, "drawActivation");
2691
+ var drawLoop = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(elem, loopModel, labelText, conf2, msg) {
2692
+ const {
2693
+ boxMargin,
2694
+ boxTextMargin,
2695
+ labelBoxHeight,
2696
+ labelBoxWidth,
2697
+ messageFontFamily: fontFamily,
2698
+ messageFontSize: fontSize,
2699
+ messageFontWeight: fontWeight
2700
+ } = conf2;
2701
+ const g = elem.append("g").attr("data-et", "control-structure").attr("data-id", "i" + msg.id);
2702
+ const drawLoopLine = /* @__PURE__ */ chunkY2CYZVJY.__name(function(startx, starty, stopx, stopy) {
2703
+ return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
2704
+ }, "drawLoopLine");
2705
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
2706
+ drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
2707
+ drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
2708
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
2709
+ if (loopModel.sections !== void 0) {
2710
+ loopModel.sections.forEach(function(item) {
2711
+ drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(
2712
+ "stroke-dasharray",
2713
+ "3, 3"
2714
+ );
2715
+ });
2716
+ }
2717
+ let txt = chunk32BRIVSS.getTextObj();
2718
+ txt.text = labelText;
2719
+ txt.x = loopModel.startx;
2720
+ txt.y = loopModel.starty;
2721
+ txt.fontFamily = fontFamily;
2722
+ txt.fontSize = fontSize;
2723
+ txt.fontWeight = fontWeight;
2724
+ txt.anchor = "middle";
2725
+ txt.valign = "middle";
2726
+ txt.tspan = false;
2727
+ txt.width = Math.max(labelBoxWidth ?? 0, 50);
2728
+ txt.height = labelBoxHeight + (conf2.look === "neo" ? 15 : 0) || 20;
2729
+ txt.textMargin = boxTextMargin;
2730
+ txt.class = "labelText";
2731
+ drawLabel(g, txt);
2732
+ txt = getTextObj2();
2733
+ txt.text = loopModel.title;
2734
+ txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
2735
+ txt.y = loopModel.starty + boxMargin + boxTextMargin;
2736
+ txt.anchor = "middle";
2737
+ txt.valign = "middle";
2738
+ txt.textMargin = boxTextMargin;
2739
+ txt.class = "loopText";
2740
+ txt.fontFamily = fontFamily;
2741
+ txt.fontSize = fontSize;
2742
+ txt.fontWeight = fontWeight;
2743
+ txt.wrap = true;
2744
+ let textElem = chunkWYO6CB5R.hasKatex(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2745
+ if (loopModel.sectionTitles !== void 0) {
2746
+ for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
2747
+ if (item.message) {
2748
+ txt.text = item.message;
2749
+ txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
2750
+ txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
2751
+ txt.class = "sectionTitle";
2752
+ txt.anchor = "middle";
2753
+ txt.valign = "middle";
2754
+ txt.tspan = false;
2755
+ txt.fontFamily = fontFamily;
2756
+ txt.fontSize = fontSize;
2757
+ txt.fontWeight = fontWeight;
2758
+ txt.wrap = loopModel.wrap;
2759
+ if (chunkWYO6CB5R.hasKatex(txt.text)) {
2760
+ loopModel.starty = loopModel.sections[idx].y;
2761
+ await drawKatex(g, txt, loopModel);
2762
+ } else {
2763
+ drawText(g, txt);
2764
+ }
2765
+ let sectionHeight = Math.round(
2766
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2767
+ );
2768
+ loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
2769
+ }
2770
+ }
2771
+ }
2772
+ loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
2773
+ return g;
2774
+ }, "drawLoop");
2775
+ var drawBackgroundRect2 = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, bounds2) {
2776
+ chunk32BRIVSS.drawBackgroundRect(elem, bounds2);
2777
+ }, "drawBackgroundRect");
2778
+ var insertDatabaseIcon = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2779
+ elem.append("defs").append("symbol").attr("id", id + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
2780
+ "d",
2781
+ "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
2782
+ );
2783
+ }, "insertDatabaseIcon");
2784
+ var insertComputerIcon = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2785
+ elem.append("defs").append("symbol").attr("id", id + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2786
+ "d",
2787
+ "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
2788
+ );
2789
+ }, "insertComputerIcon");
2790
+ var insertClockIcon = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2791
+ elem.append("defs").append("symbol").attr("id", id + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2792
+ "d",
2793
+ "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
2794
+ );
2795
+ }, "insertClockIcon");
2796
+ var insertArrowHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2797
+ elem.append("defs").append("marker").attr("id", id + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
2798
+ }, "insertArrowHead");
2799
+ var insertArrowFilledHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2800
+ elem.append("defs").append("marker").attr("id", id + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2801
+ }, "insertArrowFilledHead");
2802
+ var insertSequenceNumber = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2803
+ elem.append("defs").append("marker").attr("id", id + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
2804
+ }, "insertSequenceNumber");
2805
+ var insertArrowCrossHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2806
+ const defs = elem.append("defs");
2807
+ const marker = defs.append("marker").attr("id", id + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2808
+ marker.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
2809
+ }, "insertArrowCrossHead");
2810
+ var insertDropShadow = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, conf2) {
2811
+ const { theme } = conf2;
2812
+ elem.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${theme === "redux" || theme === "redux-color" ? "#000000" : "#FFFFFF"}`);
2813
+ }, "insertDropShadow");
2814
+ var getTextObj2 = /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
2815
+ return {
2816
+ x: 0,
2817
+ y: 0,
2818
+ fill: void 0,
2819
+ anchor: void 0,
2820
+ style: "#666",
2821
+ width: void 0,
2822
+ height: void 0,
2823
+ textMargin: 0,
2824
+ rx: 0,
2825
+ ry: 0,
2826
+ tspan: true,
2827
+ valign: void 0
2828
+ };
2829
+ }, "getTextObj");
2830
+ var getNoteRect2 = /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
2831
+ return {
2832
+ x: 0,
2833
+ y: 0,
2834
+ fill: "#EDF2AE",
2835
+ stroke: "#666",
2836
+ width: 100,
2837
+ anchor: "start",
2838
+ height: 100,
2839
+ rx: 0,
2840
+ ry: 0
2841
+ };
2842
+ }, "getNoteRect");
2843
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2844
+ function byText(content, g, x, y, width, height, textAttrs) {
2845
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2846
+ _setTextAttrs(text, textAttrs);
2847
+ }
2848
+ chunkY2CYZVJY.__name(byText, "byText");
2849
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2850
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2851
+ const [_actorFontSize, _actorFontSizePx] = chunkICXQ74PX.parseFontSize(actorFontSize);
2852
+ const lines = content.split(chunkWYO6CB5R.common_default.lineBreakRegex);
2853
+ for (let i = 0; i < lines.length; i++) {
2854
+ const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2855
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").style("font-size", _actorFontSizePx).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2856
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
2857
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2858
+ _setTextAttrs(text, textAttrs);
2859
+ }
2860
+ }
2861
+ chunkY2CYZVJY.__name(byTspan, "byTspan");
2862
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2863
+ const s = g.append("switch");
2864
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2865
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2866
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2867
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2868
+ _setTextAttrs(text, textAttrs);
2869
+ }
2870
+ chunkY2CYZVJY.__name(byFo, "byFo");
2871
+ async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2872
+ const dim = await chunkWYO6CB5R.calculateMathMLDimensions(content, chunkWYO6CB5R.getConfig());
2873
+ const s = g.append("switch");
2874
+ const f = s.append("foreignObject").attr("x", x + width / 2 - dim.width / 2).attr("y", y + height / 2 - dim.height / 2).attr("width", dim.width).attr("height", dim.height);
2875
+ const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2876
+ text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await chunkWYO6CB5R.renderKatexSanitized(content, chunkWYO6CB5R.getConfig()));
2877
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2878
+ _setTextAttrs(text, textAttrs);
2879
+ }
2880
+ chunkY2CYZVJY.__name(byKatex, "byKatex");
2881
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2882
+ for (const key in fromTextAttrsDict) {
2883
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2884
+ toText.attr(key, fromTextAttrsDict[key]);
2885
+ }
2886
+ }
2887
+ }
2888
+ chunkY2CYZVJY.__name(_setTextAttrs, "_setTextAttrs");
2889
+ return function(conf2, hasKatex2 = false) {
2890
+ if (hasKatex2) {
2891
+ return byKatex;
2892
+ }
2893
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2894
+ };
2895
+ }();
2896
+ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2897
+ function byText(content, g, x, y, width, height, textAttrs) {
2898
+ const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2899
+ _setTextAttrs(text, textAttrs);
2900
+ }
2901
+ chunkY2CYZVJY.__name(byText, "byText");
2902
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2903
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2904
+ const lines = content.split(chunkWYO6CB5R.common_default.lineBreakRegex);
2905
+ for (let i = 0; i < lines.length; i++) {
2906
+ const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2907
+ const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").style("font-size", actorFontSize).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2908
+ text.append("tspan").attr("x", x).attr("dy", dy).text(lines[i]);
2909
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2910
+ _setTextAttrs(text, textAttrs);
2911
+ }
2912
+ }
2913
+ chunkY2CYZVJY.__name(byTspan, "byTspan");
2914
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2915
+ const s = g.append("switch");
2916
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2917
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2918
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2919
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2920
+ _setTextAttrs(text, textAttrs);
2921
+ }
2922
+ chunkY2CYZVJY.__name(byFo, "byFo");
2923
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2924
+ for (const key in fromTextAttrsDict) {
2925
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2926
+ toText.attr(key, fromTextAttrsDict[key]);
2927
+ }
2928
+ }
2929
+ }
2930
+ chunkY2CYZVJY.__name(_setTextAttrs, "_setTextAttrs");
2931
+ return function(conf2) {
2932
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2933
+ };
2934
+ }();
2935
+ var insertSolidTopArrowHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2936
+ elem.append("defs").append("marker").attr("id", id + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
2937
+ }, "insertSolidTopArrowHead");
2938
+ var insertSolidBottomArrowHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2939
+ elem.append("defs").append("marker").attr("id", id + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", 0.75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
2940
+ }, "insertSolidBottomArrowHead");
2941
+ var insertStickTopArrowHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2942
+ elem.append("defs").append("marker").attr("id", id + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
2943
+ }, "insertStickTopArrowHead");
2944
+ var insertStickBottomArrowHead = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, id) {
2945
+ elem.append("defs").append("marker").attr("id", id + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
2946
+ }, "insertStickBottomArrowHead");
2947
+ var svgDraw_default = {
2948
+ drawRect: drawRect2,
2949
+ drawText,
2950
+ drawLabel,
2951
+ drawActor,
2952
+ drawBox,
2953
+ drawPopup,
2954
+ anchorElement,
2955
+ drawActivation,
2956
+ drawLoop,
2957
+ drawBackgroundRect: drawBackgroundRect2,
2958
+ insertArrowHead,
2959
+ insertArrowFilledHead,
2960
+ insertSequenceNumber,
2961
+ insertArrowCrossHead,
2962
+ insertDatabaseIcon,
2963
+ insertComputerIcon,
2964
+ insertClockIcon,
2965
+ getTextObj: getTextObj2,
2966
+ getNoteRect: getNoteRect2,
2967
+ fixLifeLineHeights,
2968
+ sanitizeUrl: index.distExports.sanitizeUrl,
2969
+ insertDropShadow,
2970
+ insertSolidTopArrowHead,
2971
+ insertSolidBottomArrowHead,
2972
+ insertStickTopArrowHead,
2973
+ insertStickBottomArrowHead
2974
+ };
2975
+ var conf = {};
2976
+ var bounds = {
2977
+ data: {
2978
+ startx: void 0,
2979
+ stopx: void 0,
2980
+ starty: void 0,
2981
+ stopy: void 0
2982
+ },
2983
+ verticalPos: 0,
2984
+ sequenceItems: [],
2985
+ activations: [],
2986
+ models: {
2987
+ getHeight: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
2988
+ return Math.max.apply(
2989
+ null,
2990
+ this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2991
+ ) + (this.loops.length === 0 ? 0 : this.loops.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.messages.length === 0 ? 0 : this.messages.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.notes.length === 0 ? 0 : this.notes.map((it) => it.height || 0).reduce((acc, h) => acc + h));
2992
+ }, "getHeight"),
2993
+ clear: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
2994
+ this.actors = [];
2995
+ this.boxes = [];
2996
+ this.loops = [];
2997
+ this.messages = [];
2998
+ this.notes = [];
2999
+ }, "clear"),
3000
+ addBox: /* @__PURE__ */ chunkY2CYZVJY.__name(function(boxModel) {
3001
+ this.boxes.push(boxModel);
3002
+ }, "addBox"),
3003
+ addActor: /* @__PURE__ */ chunkY2CYZVJY.__name(function(actorModel) {
3004
+ this.actors.push(actorModel);
3005
+ }, "addActor"),
3006
+ addLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function(loopModel) {
3007
+ this.loops.push(loopModel);
3008
+ }, "addLoop"),
3009
+ addMessage: /* @__PURE__ */ chunkY2CYZVJY.__name(function(msgModel) {
3010
+ this.messages.push(msgModel);
3011
+ }, "addMessage"),
3012
+ addNote: /* @__PURE__ */ chunkY2CYZVJY.__name(function(noteModel) {
3013
+ this.notes.push(noteModel);
3014
+ }, "addNote"),
3015
+ lastActor: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3016
+ return this.actors[this.actors.length - 1];
3017
+ }, "lastActor"),
3018
+ lastLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3019
+ return this.loops[this.loops.length - 1];
3020
+ }, "lastLoop"),
3021
+ lastMessage: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3022
+ return this.messages[this.messages.length - 1];
3023
+ }, "lastMessage"),
3024
+ lastNote: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3025
+ return this.notes[this.notes.length - 1];
3026
+ }, "lastNote"),
3027
+ actors: [],
3028
+ boxes: [],
3029
+ loops: [],
3030
+ messages: [],
3031
+ notes: []
3032
+ },
3033
+ init: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3034
+ this.sequenceItems = [];
3035
+ this.activations = [];
3036
+ this.models.clear();
3037
+ this.data = {
3038
+ startx: void 0,
3039
+ stopx: void 0,
3040
+ starty: void 0,
3041
+ stopy: void 0
3042
+ };
3043
+ this.verticalPos = 0;
3044
+ setConf(chunkWYO6CB5R.getConfig2());
3045
+ }, "init"),
3046
+ updateVal: /* @__PURE__ */ chunkY2CYZVJY.__name(function(obj, key, val, fun) {
3047
+ if (obj[key] === void 0) {
3048
+ obj[key] = val;
3049
+ } else {
3050
+ obj[key] = fun(val, obj[key]);
3051
+ }
3052
+ }, "updateVal"),
3053
+ updateBounds: /* @__PURE__ */ chunkY2CYZVJY.__name(function(startx, starty, stopx, stopy) {
3054
+ const _self = this;
3055
+ let cnt = 0;
3056
+ function updateFn(type) {
3057
+ return /* @__PURE__ */ chunkY2CYZVJY.__name(function updateItemBounds(item) {
3058
+ cnt++;
3059
+ const n = _self.sequenceItems.length - cnt + 1;
3060
+ _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
3061
+ _self.updateVal(item, "stopy", stopy + n * conf.boxMargin, Math.max);
3062
+ _self.updateVal(bounds.data, "startx", startx - n * conf.boxMargin, Math.min);
3063
+ _self.updateVal(bounds.data, "stopx", stopx + n * conf.boxMargin, Math.max);
3064
+ if (!(type === "activation")) {
3065
+ _self.updateVal(item, "startx", startx - n * conf.boxMargin, Math.min);
3066
+ _self.updateVal(item, "stopx", stopx + n * conf.boxMargin, Math.max);
3067
+ _self.updateVal(bounds.data, "starty", starty - n * conf.boxMargin, Math.min);
3068
+ _self.updateVal(bounds.data, "stopy", stopy + n * conf.boxMargin, Math.max);
3069
+ }
3070
+ }, "updateItemBounds");
3071
+ }
3072
+ chunkY2CYZVJY.__name(updateFn, "updateFn");
3073
+ this.sequenceItems.forEach(updateFn());
3074
+ this.activations.forEach(updateFn("activation"));
3075
+ }, "updateBounds"),
3076
+ insert: /* @__PURE__ */ chunkY2CYZVJY.__name(function(startx, starty, stopx, stopy) {
3077
+ const _startx = chunkWYO6CB5R.common_default.getMin(startx, stopx);
3078
+ const _stopx = chunkWYO6CB5R.common_default.getMax(startx, stopx);
3079
+ const _starty = chunkWYO6CB5R.common_default.getMin(starty, stopy);
3080
+ const _stopy = chunkWYO6CB5R.common_default.getMax(starty, stopy);
3081
+ this.updateVal(bounds.data, "startx", _startx, Math.min);
3082
+ this.updateVal(bounds.data, "starty", _starty, Math.min);
3083
+ this.updateVal(bounds.data, "stopx", _stopx, Math.max);
3084
+ this.updateVal(bounds.data, "stopy", _stopy, Math.max);
3085
+ this.updateBounds(_startx, _starty, _stopx, _stopy);
3086
+ }, "insert"),
3087
+ newActivation: /* @__PURE__ */ chunkY2CYZVJY.__name(function(message, diagram2, actors) {
3088
+ const actorRect = actors.get(message.from);
3089
+ const stackedSize = actorActivations(message.from).length || 0;
3090
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
3091
+ this.activations.push({
3092
+ startx: x,
3093
+ starty: this.verticalPos + 2,
3094
+ stopx: x + conf.activationWidth,
3095
+ stopy: void 0,
3096
+ actor: message.from,
3097
+ anchored: svgDraw_default.anchorElement(diagram2)
3098
+ });
3099
+ }, "newActivation"),
3100
+ endActivation: /* @__PURE__ */ chunkY2CYZVJY.__name(function(message) {
3101
+ const lastActorActivationIdx = this.activations.map(function(activation) {
3102
+ return activation.actor;
3103
+ }).lastIndexOf(message.from);
3104
+ return this.activations.splice(lastActorActivationIdx, 1)[0];
3105
+ }, "endActivation"),
3106
+ createLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
3107
+ return {
3108
+ startx: void 0,
3109
+ starty: this.verticalPos,
3110
+ stopx: void 0,
3111
+ stopy: void 0,
3112
+ title: title.message,
3113
+ wrap: title.wrap,
3114
+ width: title.width,
3115
+ height: 0,
3116
+ fill
3117
+ };
3118
+ }, "createLoop"),
3119
+ newLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
3120
+ this.sequenceItems.push(this.createLoop(title, fill));
3121
+ }, "newLoop"),
3122
+ endLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3123
+ return this.sequenceItems.pop();
3124
+ }, "endLoop"),
3125
+ isLoopOverlap: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3126
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
3127
+ }, "isLoopOverlap"),
3128
+ addSectionToLoop: /* @__PURE__ */ chunkY2CYZVJY.__name(function(message) {
3129
+ const loop = this.sequenceItems.pop();
3130
+ loop.sections = loop.sections || [];
3131
+ loop.sectionTitles = loop.sectionTitles || [];
3132
+ loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });
3133
+ loop.sectionTitles.push(message);
3134
+ this.sequenceItems.push(loop);
3135
+ }, "addSectionToLoop"),
3136
+ saveVerticalPos: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3137
+ if (this.isLoopOverlap()) {
3138
+ this.savedVerticalPos = this.verticalPos;
3139
+ }
3140
+ }, "saveVerticalPos"),
3141
+ resetVerticalPos: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3142
+ if (this.isLoopOverlap()) {
3143
+ this.verticalPos = this.savedVerticalPos;
3144
+ }
3145
+ }, "resetVerticalPos"),
3146
+ bumpVerticalPos: /* @__PURE__ */ chunkY2CYZVJY.__name(function(bump) {
3147
+ this.verticalPos = this.verticalPos + bump;
3148
+ this.data.stopy = chunkWYO6CB5R.common_default.getMax(this.data.stopy, this.verticalPos);
3149
+ }, "bumpVerticalPos"),
3150
+ getVerticalPos: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3151
+ return this.verticalPos;
3152
+ }, "getVerticalPos"),
3153
+ getBounds: /* @__PURE__ */ chunkY2CYZVJY.__name(function() {
3154
+ return { bounds: this.data, models: this.models };
3155
+ }, "getBounds")
3156
+ };
3157
+ var drawNote = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(elem, noteModel, id) {
3158
+ bounds.bumpVerticalPos(conf.boxMargin);
3159
+ noteModel.height = conf.boxMargin;
3160
+ noteModel.starty = bounds.getVerticalPos();
3161
+ const rect = chunk32BRIVSS.getNoteRect();
3162
+ rect.x = noteModel.startx;
3163
+ rect.y = noteModel.starty;
3164
+ rect.width = noteModel.width || conf.width;
3165
+ rect.class = "note";
3166
+ const g = elem.append("g");
3167
+ g.attr("data-et", "note");
3168
+ g.attr("data-id", "i" + id);
3169
+ const rectElem = svgDraw_default.drawRect(g, rect);
3170
+ const textObj = chunk32BRIVSS.getTextObj();
3171
+ textObj.x = noteModel.startx;
3172
+ textObj.y = noteModel.starty;
3173
+ textObj.width = rect.width;
3174
+ textObj.dy = "1em";
3175
+ textObj.text = noteModel.message;
3176
+ textObj.class = "noteText";
3177
+ textObj.fontFamily = conf.noteFontFamily;
3178
+ textObj.fontSize = conf.noteFontSize;
3179
+ textObj.fontWeight = conf.noteFontWeight;
3180
+ textObj.anchor = conf.noteAlign;
3181
+ textObj.textMargin = conf.noteMargin;
3182
+ textObj.valign = "center";
3183
+ const textElem = chunkWYO6CB5R.hasKatex(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
3184
+ const textHeight = Math.round(
3185
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
3186
+ );
3187
+ rectElem.attr("height", textHeight + 2 * conf.noteMargin);
3188
+ noteModel.height += textHeight + 2 * conf.noteMargin;
3189
+ bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
3190
+ noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
3191
+ noteModel.stopx = noteModel.startx + rect.width;
3192
+ bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
3193
+ bounds.models.addNote(noteModel);
3194
+ }, "drawNote");
3195
+ var drawCentralConnection = /* @__PURE__ */ chunkY2CYZVJY.__name(function(elem, msg, msgModel, diagObj, startx, stopx, lineStartY) {
3196
+ const actors = diagObj.db.getActors();
3197
+ const fromActor = actors.get(msg.from);
3198
+ const toActor = actors.get(msg.to);
3199
+ const isAutoNumberOn = msgModel.sequenceVisible;
3200
+ let fromCenter = fromActor.x + fromActor.width / 2;
3201
+ let toCenter = toActor.x + toActor.width / 2;
3202
+ const isLeftToRight = fromCenter <= toCenter;
3203
+ const isReverse = isReverseArrowType(msg, diagObj);
3204
+ const g = elem.append("g");
3205
+ const CENTRAL_CONNECTION_CIRCLE_OFFSET = 16.5;
3206
+ const getCircleOffset = /* @__PURE__ */ chunkY2CYZVJY.__name((isLeftToRight2, isReverse2) => {
3207
+ const baseOffset = isLeftToRight2 ? CENTRAL_CONNECTION_CIRCLE_OFFSET : -16.5;
3208
+ return isReverse2 ? -baseOffset : baseOffset;
3209
+ }, "getCircleOffset");
3210
+ const drawCircle = /* @__PURE__ */ chunkY2CYZVJY.__name((cx) => {
3211
+ g.append("circle").attr("cx", cx).attr("cy", lineStartY).attr("r", 5).attr("width", 10).attr("height", 10);
3212
+ }, "drawCircle");
3213
+ const { CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL } = diagObj.db.LINETYPE;
3214
+ if (isAutoNumberOn) {
3215
+ switch (msg.centralConnection) {
3216
+ case CENTRAL_CONNECTION:
3217
+ if (isReverse) {
3218
+ toCenter += getCircleOffset(isLeftToRight, true);
3219
+ }
3220
+ break;
3221
+ case CENTRAL_CONNECTION_REVERSE:
3222
+ if (!isReverse) {
3223
+ fromCenter += getCircleOffset(isLeftToRight, false);
3224
+ }
3225
+ break;
3226
+ case CENTRAL_CONNECTION_DUAL:
3227
+ if (isReverse) {
3228
+ toCenter += getCircleOffset(isLeftToRight, true);
3229
+ } else {
3230
+ fromCenter += getCircleOffset(isLeftToRight, false);
3231
+ }
3232
+ break;
3233
+ }
3234
+ }
3235
+ switch (msg.centralConnection) {
3236
+ case CENTRAL_CONNECTION:
3237
+ drawCircle(toCenter);
3238
+ break;
3239
+ case CENTRAL_CONNECTION_REVERSE:
3240
+ drawCircle(fromCenter);
3241
+ break;
3242
+ case CENTRAL_CONNECTION_DUAL:
3243
+ drawCircle(fromCenter);
3244
+ drawCircle(toCenter);
3245
+ break;
3246
+ }
3247
+ }, "drawCentralConnection");
3248
+ var messageFont = /* @__PURE__ */ chunkY2CYZVJY.__name((cnf) => {
3249
+ return {
3250
+ fontFamily: cnf.messageFontFamily,
3251
+ fontSize: cnf.messageFontSize,
3252
+ fontWeight: cnf.messageFontWeight
3253
+ };
3254
+ }, "messageFont");
3255
+ var noteFont = /* @__PURE__ */ chunkY2CYZVJY.__name((cnf) => {
3256
+ return {
3257
+ fontFamily: cnf.noteFontFamily,
3258
+ fontSize: cnf.noteFontSize,
3259
+ fontWeight: cnf.noteFontWeight
3260
+ };
3261
+ }, "noteFont");
3262
+ var actorFont = /* @__PURE__ */ chunkY2CYZVJY.__name((cnf) => {
3263
+ return {
3264
+ fontFamily: cnf.actorFontFamily,
3265
+ fontSize: cnf.actorFontSize,
3266
+ fontWeight: cnf.actorFontWeight
3267
+ };
3268
+ }, "actorFont");
3269
+ async function boundMessage(_diagram, msgModel) {
3270
+ bounds.bumpVerticalPos(10);
3271
+ const { startx, stopx, message } = msgModel;
3272
+ const lines = chunkWYO6CB5R.common_default.splitBreaks(message).length;
3273
+ const isKatexMsg = chunkWYO6CB5R.hasKatex(message);
3274
+ const textDims = isKatexMsg ? await chunkWYO6CB5R.calculateMathMLDimensions(message, chunkWYO6CB5R.getConfig2()) : chunkICXQ74PX.utils_default.calculateTextDimensions(message, messageFont(conf));
3275
+ if (!isKatexMsg) {
3276
+ const lineHeight = textDims.height / lines;
3277
+ msgModel.height += lineHeight;
3278
+ bounds.bumpVerticalPos(lineHeight);
3279
+ }
3280
+ let lineStartY;
3281
+ let totalOffset = textDims.height - 10;
3282
+ const textWidth = textDims.width;
3283
+ if (startx === stopx) {
3284
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3285
+ if (!conf.rightAngles) {
3286
+ totalOffset += conf.boxMargin;
3287
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3288
+ }
3289
+ totalOffset += 30;
3290
+ const dx = chunkWYO6CB5R.common_default.getMax(textWidth / 2, conf.width / 2);
3291
+ bounds.insert(
3292
+ startx - dx,
3293
+ bounds.getVerticalPos() - 10 + totalOffset,
3294
+ stopx + dx,
3295
+ bounds.getVerticalPos() + 30 + totalOffset
3296
+ );
3297
+ } else {
3298
+ totalOffset += conf.boxMargin;
3299
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3300
+ bounds.insert(startx, lineStartY - 10, stopx, lineStartY);
3301
+ }
3302
+ bounds.bumpVerticalPos(totalOffset);
3303
+ msgModel.height += totalOffset;
3304
+ msgModel.stopy = msgModel.starty + msgModel.height;
3305
+ bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
3306
+ return lineStartY;
3307
+ }
3308
+ chunkY2CYZVJY.__name(boundMessage, "boundMessage");
3309
+ var drawMessage = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(diagram2, msgModel, lineStartY, diagObj, msg, diagramId) {
3310
+ const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
3311
+ const textDims = chunkICXQ74PX.utils_default.calculateTextDimensions(message, messageFont(conf));
3312
+ const textObj = chunk32BRIVSS.getTextObj();
3313
+ textObj.x = Math.min(startx, stopx);
3314
+ textObj.y = starty + 10;
3315
+ textObj.width = Math.abs(stopx - startx);
3316
+ textObj.class = "messageText";
3317
+ textObj.dy = "1em";
3318
+ textObj.text = message;
3319
+ textObj.fontFamily = conf.messageFontFamily;
3320
+ textObj.fontSize = conf.messageFontSize;
3321
+ textObj.fontWeight = conf.messageFontWeight;
3322
+ textObj.anchor = conf.messageAlign;
3323
+ textObj.valign = "center";
3324
+ textObj.textMargin = conf.wrapPadding;
3325
+ textObj.tspan = false;
3326
+ if (chunkWYO6CB5R.hasKatex(textObj.text)) {
3327
+ await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
3328
+ } else {
3329
+ drawText(diagram2, textObj);
3330
+ }
3331
+ const textWidth = textDims.width;
3332
+ let line;
3333
+ if (startx === stopx) {
3334
+ const isAutoNumberOn = sequenceVisible || conf.showSequenceNumbers;
3335
+ const isReverse = isReverseArrowType(msg, diagObj);
3336
+ const isBidirectional = isBidirectionalArrowType(msg, diagObj);
3337
+ const lineStartX = startx + (isAutoNumberOn && (isReverse || isBidirectional) ? 10 : 0);
3338
+ if (conf.rightAngles) {
3339
+ line = diagram2.append("path").attr(
3340
+ "d",
3341
+ `M ${lineStartX},${lineStartY} H ${startx + chunkWYO6CB5R.common_default.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
3342
+ );
3343
+ } else {
3344
+ line = diagram2.append("path").attr(
3345
+ "d",
3346
+ "M " + lineStartX + "," + lineStartY + " C " + (lineStartX + 60) + "," + (lineStartY - 10) + " " + (startx + 60) + "," + (lineStartY + 30) + " " + startx + "," + (lineStartY + 20)
3347
+ );
3348
+ }
3349
+ if (hasCentralConnection(msg, diagObj)) {
3350
+ drawCentralConnection(diagram2, msg, msgModel, diagObj, startx, stopx, lineStartY);
3351
+ }
3352
+ } else {
3353
+ line = diagram2.append("line");
3354
+ line.attr("x1", startx);
3355
+ line.attr("y1", lineStartY);
3356
+ line.attr("x2", stopx);
3357
+ line.attr("y2", lineStartY);
3358
+ if (hasCentralConnection(msg, diagObj)) {
3359
+ drawCentralConnection(diagram2, msg, msgModel, diagObj, startx, stopx, lineStartY);
3360
+ }
3361
+ }
3362
+ if (type === diagObj.db.LINETYPE.DOTTED || type === diagObj.db.LINETYPE.DOTTED_CROSS || type === diagObj.db.LINETYPE.DOTTED_POINT || type === diagObj.db.LINETYPE.DOTTED_OPEN || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED || type === diagObj.db.LINETYPE.SOLID_TOP_DOTTED || type === diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED || type === diagObj.db.LINETYPE.STICK_TOP_DOTTED || type === diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) {
3363
+ line.style("stroke-dasharray", "3, 3");
3364
+ line.attr("class", "messageLine1");
3365
+ } else {
3366
+ line.attr("class", "messageLine0");
3367
+ }
3368
+ line.attr("data-et", "message");
3369
+ line.attr("data-id", "i" + msgModel.id);
3370
+ line.attr("data-from", msgModel.from);
3371
+ line.attr("data-to", msgModel.to);
3372
+ let url = "";
3373
+ if (conf.arrowMarkerAbsolute) {
3374
+ url = chunkWYO6CB5R.getUrl(true);
3375
+ }
3376
+ line.attr("stroke-width", 2);
3377
+ line.attr("stroke", "none");
3378
+ line.style("fill", "none");
3379
+ if (type === diagObj.db.LINETYPE.SOLID_TOP || type === diagObj.db.LINETYPE.SOLID_TOP_DOTTED) {
3380
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-solidTopArrowHead)");
3381
+ }
3382
+ if (type === diagObj.db.LINETYPE.SOLID_BOTTOM || type === diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED) {
3383
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-solidBottomArrowHead)");
3384
+ }
3385
+ if (type === diagObj.db.LINETYPE.STICK_TOP || type === diagObj.db.LINETYPE.STICK_TOP_DOTTED) {
3386
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-stickTopArrowHead)");
3387
+ }
3388
+ if (type === diagObj.db.LINETYPE.STICK_BOTTOM || type === diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED) {
3389
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-stickBottomArrowHead)");
3390
+ }
3391
+ if (type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) {
3392
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-solidBottomArrowHead)");
3393
+ }
3394
+ if (type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) {
3395
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-solidTopArrowHead)");
3396
+ }
3397
+ if (type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) {
3398
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-stickBottomArrowHead)");
3399
+ }
3400
+ if (type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) {
3401
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-stickTopArrowHead)");
3402
+ }
3403
+ if (type === diagObj.db.LINETYPE.SOLID || type === diagObj.db.LINETYPE.DOTTED) {
3404
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3405
+ }
3406
+ if (type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
3407
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-arrowhead)");
3408
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3409
+ }
3410
+ if (type === diagObj.db.LINETYPE.SOLID_POINT || type === diagObj.db.LINETYPE.DOTTED_POINT) {
3411
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-filled-head)");
3412
+ }
3413
+ if (type === diagObj.db.LINETYPE.SOLID_CROSS || type === diagObj.db.LINETYPE.DOTTED_CROSS) {
3414
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-crosshead)");
3415
+ }
3416
+ if (sequenceVisible || conf.showSequenceNumbers) {
3417
+ const isBidirectional = type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED;
3418
+ const isReverseArrowType2 = type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
3419
+ const SEQUENCE_NUMBER_RADIUS = 6;
3420
+ const hasCentralConn = hasCentralConnection(msg, diagObj);
3421
+ let lineStartX = startx;
3422
+ let lineStopX = stopx;
3423
+ if (isBidirectional) {
3424
+ if (startx < stopx) {
3425
+ lineStartX = startx + SEQUENCE_NUMBER_RADIUS * 2;
3426
+ } else {
3427
+ lineStartX = startx - SEQUENCE_NUMBER_RADIUS + (hasCentralConn ? -5 : 0);
3428
+ lineStartX += (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0;
3429
+ }
3430
+ line.attr("x1", lineStartX);
3431
+ } else if (isReverseArrowType2) {
3432
+ if (stopx > startx) {
3433
+ lineStopX = stopx - 2 * SEQUENCE_NUMBER_RADIUS;
3434
+ } else {
3435
+ lineStopX = stopx - SEQUENCE_NUMBER_RADIUS;
3436
+ lineStartX += (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0;
3437
+ }
3438
+ lineStopX += hasCentralConn ? 15 : 0;
3439
+ line.attr("x2", lineStopX);
3440
+ line.attr("x1", lineStartX);
3441
+ } else {
3442
+ line.attr("x1", startx + SEQUENCE_NUMBER_RADIUS);
3443
+ }
3444
+ let autonumberX = 0;
3445
+ const isSelfMessage = startx === stopx;
3446
+ const isLeftToRight = startx <= stopx;
3447
+ if (isSelfMessage) {
3448
+ autonumberX = msgModel.fromBounds + 1;
3449
+ } else if (isReverseArrowType2) {
3450
+ autonumberX = isLeftToRight ? msgModel.toBounds - 1 : msgModel.fromBounds + 1;
3451
+ } else {
3452
+ autonumberX = isLeftToRight ? msgModel.fromBounds + 1 : msgModel.toBounds - 1;
3453
+ }
3454
+ let fontSize = "12px";
3455
+ const sequenceIndexLength = sequenceIndex.toString().length;
3456
+ if (sequenceIndexLength > 5) {
3457
+ fontSize = "7px";
3458
+ } else if (sequenceIndexLength > 3) {
3459
+ fontSize = "9px";
3460
+ }
3461
+ diagram2.append("line").attr("x1", autonumberX).attr("y1", lineStartY).attr("x2", autonumberX).attr("y2", lineStartY).attr("stroke-width", 0).attr("marker-start", "url(" + url + "#" + diagramId + "-sequencenumber)");
3462
+ diagram2.append("text").attr("x", autonumberX).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", fontSize).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
3463
+ }
3464
+ }, "drawMessage");
3465
+ var addActorRenderingData = /* @__PURE__ */ chunkY2CYZVJY.__name(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
3466
+ let prevWidth = 0;
3467
+ let prevMargin = 0;
3468
+ let prevBox = void 0;
3469
+ let maxHeight = 0;
3470
+ for (const actorKey of actorKeys) {
3471
+ const actor = actors.get(actorKey);
3472
+ const box = actor.box;
3473
+ if (prevBox && prevBox != box) {
3474
+ if (!isFooter) {
3475
+ bounds.models.addBox(prevBox);
3476
+ }
3477
+ prevMargin += conf.boxMargin + prevBox.margin;
3478
+ }
3479
+ if (box && box != prevBox) {
3480
+ if (!isFooter) {
3481
+ box.x = prevWidth + prevMargin;
3482
+ box.y = verticalPos;
3483
+ }
3484
+ prevMargin += box.margin;
3485
+ }
3486
+ actor.width = chunkWYO6CB5R.common_default.getMax(actor.width || conf.width, conf.width);
3487
+ actor.height = chunkWYO6CB5R.common_default.getMax(actor.height || conf.height, conf.height);
3488
+ actor.margin = actor.margin || conf.actorMargin;
3489
+ maxHeight = chunkWYO6CB5R.common_default.getMax(maxHeight, actor.height);
3490
+ if (createdActors.get(actor.name)) {
3491
+ prevMargin += actor.width / 2;
3492
+ }
3493
+ actor.x = prevWidth + prevMargin;
3494
+ actor.starty = bounds.getVerticalPos();
3495
+ bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
3496
+ prevWidth += actor.width + prevMargin;
3497
+ if (actor.box) {
3498
+ actor.box.width = prevWidth + box.margin - actor.box.x;
3499
+ }
3500
+ prevMargin = actor.margin;
3501
+ prevBox = actor.box;
3502
+ bounds.models.addActor(actor);
3503
+ }
3504
+ if (prevBox && !isFooter) {
3505
+ bounds.models.addBox(prevBox);
3506
+ }
3507
+ bounds.bumpVerticalPos(maxHeight);
3508
+ }, "addActorRenderingData");
3509
+ var drawActors = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(diagram2, actors, actorKeys, isFooter, diagramId, diagObj, actorIndexMap) {
3510
+ if (!isFooter) {
3511
+ for (const actorKey of actorKeys) {
3512
+ const actor = actors.get(actorKey);
3513
+ await svgDraw_default.drawActor(diagram2, actor, conf, false, diagramId, diagObj, actorIndexMap);
3514
+ }
3515
+ } else {
3516
+ let maxHeight = 0;
3517
+ bounds.bumpVerticalPos(conf.boxMargin * 2);
3518
+ for (const actorKey of actorKeys) {
3519
+ const actor = actors.get(actorKey);
3520
+ if (!actor.stopy) {
3521
+ actor.stopy = bounds.getVerticalPos();
3522
+ }
3523
+ const height = await svgDraw_default.drawActor(
3524
+ diagram2,
3525
+ actor,
3526
+ conf,
3527
+ true,
3528
+ diagramId,
3529
+ diagObj,
3530
+ actorIndexMap
3531
+ );
3532
+ maxHeight = chunkWYO6CB5R.common_default.getMax(maxHeight, height);
3533
+ }
3534
+ bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
3535
+ }
3536
+ }, "drawActors");
3537
+ var drawActorsPopup = /* @__PURE__ */ chunkY2CYZVJY.__name(function(diagram2, actors, actorKeys, doc) {
3538
+ let maxHeight = 0;
3539
+ let maxWidth = 0;
3540
+ for (const actorKey of actorKeys) {
3541
+ const actor = actors.get(actorKey);
3542
+ const minMenuWidth = getRequiredPopupWidth(actor);
3543
+ const menuDimensions = svgDraw_default.drawPopup(
3544
+ diagram2,
3545
+ actor,
3546
+ minMenuWidth,
3547
+ conf,
3548
+ conf.forceMenus,
3549
+ doc
3550
+ );
3551
+ if (menuDimensions.height > maxHeight) {
3552
+ maxHeight = menuDimensions.height;
3553
+ }
3554
+ if (menuDimensions.width + actor.x > maxWidth) {
3555
+ maxWidth = menuDimensions.width + actor.x;
3556
+ }
3557
+ }
3558
+ return { maxHeight, maxWidth };
3559
+ }, "drawActorsPopup");
3560
+ var setConf = /* @__PURE__ */ chunkY2CYZVJY.__name(function(cnf) {
3561
+ chunkWYO6CB5R.assignWithDepth_default(conf, cnf);
3562
+ if (cnf.fontFamily) {
3563
+ conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
3564
+ }
3565
+ if (cnf.fontSize) {
3566
+ conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
3567
+ }
3568
+ if (cnf.fontWeight) {
3569
+ conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
3570
+ }
3571
+ }, "setConf");
3572
+ var actorActivations = /* @__PURE__ */ chunkY2CYZVJY.__name(function(actor) {
3573
+ return bounds.activations.filter(function(activation) {
3574
+ return activation.actor === actor;
3575
+ });
3576
+ }, "actorActivations");
3577
+ var activationBounds = /* @__PURE__ */ chunkY2CYZVJY.__name(function(actor, actors) {
3578
+ const actorObj = actors.get(actor);
3579
+ const activations = actorActivations(actor);
3580
+ const left = activations.reduce(
3581
+ function(acc, activation) {
3582
+ return chunkWYO6CB5R.common_default.getMin(acc, activation.startx);
3583
+ },
3584
+ actorObj.x + actorObj.width / 2 - 1
3585
+ );
3586
+ const right = activations.reduce(
3587
+ function(acc, activation) {
3588
+ return chunkWYO6CB5R.common_default.getMax(acc, activation.stopx);
3589
+ },
3590
+ actorObj.x + actorObj.width / 2 + 1
3591
+ );
3592
+ return [left, right];
3593
+ }, "activationBounds");
3594
+ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
3595
+ bounds.bumpVerticalPos(preMargin);
3596
+ let heightAdjust = postMargin;
3597
+ if (msg.id && msg.message && loopWidths[msg.id]) {
3598
+ const loopWidth = loopWidths[msg.id].width;
3599
+ const textConf = messageFont(conf);
3600
+ msg.message = chunkICXQ74PX.utils_default.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
3601
+ msg.width = loopWidth;
3602
+ msg.wrap = true;
3603
+ const textDims = chunkICXQ74PX.utils_default.calculateTextDimensions(msg.message, textConf);
3604
+ const totalOffset = chunkWYO6CB5R.common_default.getMax(textDims.height, conf.labelBoxHeight);
3605
+ heightAdjust = postMargin + totalOffset;
3606
+ chunkX3CZISLH.log.debug(`${totalOffset} - ${msg.message}`);
3607
+ }
3608
+ addLoopFn(msg);
3609
+ bounds.bumpVerticalPos(heightAdjust);
3610
+ }
3611
+ chunkY2CYZVJY.__name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3612
+ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index2, actors, createdActors, destroyedActors) {
3613
+ function receiverAdjustment(actor, adjustment) {
3614
+ if (actor.x < actors.get(msg.from).x) {
3615
+ bounds.insert(
3616
+ msgModel.stopx - adjustment,
3617
+ msgModel.starty,
3618
+ msgModel.startx,
3619
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3620
+ );
3621
+ msgModel.stopx = msgModel.stopx + adjustment;
3622
+ } else {
3623
+ bounds.insert(
3624
+ msgModel.startx,
3625
+ msgModel.starty,
3626
+ msgModel.stopx + adjustment,
3627
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3628
+ );
3629
+ msgModel.stopx = msgModel.stopx - adjustment;
3630
+ }
3631
+ }
3632
+ chunkY2CYZVJY.__name(receiverAdjustment, "receiverAdjustment");
3633
+ function senderAdjustment(actor, adjustment) {
3634
+ if (actor.x < actors.get(msg.to).x) {
3635
+ bounds.insert(
3636
+ msgModel.startx - adjustment,
3637
+ msgModel.starty,
3638
+ msgModel.stopx,
3639
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3640
+ );
3641
+ msgModel.startx = msgModel.startx + adjustment;
3642
+ } else {
3643
+ bounds.insert(
3644
+ msgModel.stopx,
3645
+ msgModel.starty,
3646
+ msgModel.startx + adjustment,
3647
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3648
+ );
3649
+ msgModel.startx = msgModel.startx - adjustment;
3650
+ }
3651
+ }
3652
+ chunkY2CYZVJY.__name(senderAdjustment, "senderAdjustment");
3653
+ const actorArray = [
3654
+ PARTICIPANT_TYPE.ACTOR,
3655
+ PARTICIPANT_TYPE.CONTROL,
3656
+ PARTICIPANT_TYPE.ENTITY,
3657
+ PARTICIPANT_TYPE.DATABASE
3658
+ ];
3659
+ if (createdActors.get(msg.to) == index2) {
3660
+ const actor = actors.get(msg.to);
3661
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3662
+ receiverAdjustment(actor, adjustment);
3663
+ actor.starty = lineStartY - actor.height / 2;
3664
+ bounds.bumpVerticalPos(actor.height / 2);
3665
+ } else if (destroyedActors.get(msg.from) == index2) {
3666
+ const actor = actors.get(msg.from);
3667
+ if (conf.mirrorActors) {
3668
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
3669
+ senderAdjustment(actor, adjustment);
3670
+ }
3671
+ actor.stopy = lineStartY - actor.height / 2;
3672
+ bounds.bumpVerticalPos(actor.height / 2);
3673
+ } else if (destroyedActors.get(msg.to) == index2) {
3674
+ const actor = actors.get(msg.to);
3675
+ if (conf.mirrorActors) {
3676
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3677
+ receiverAdjustment(actor, adjustment);
3678
+ }
3679
+ actor.stopy = lineStartY - actor.height / 2;
3680
+ bounds.bumpVerticalPos(actor.height / 2);
3681
+ }
3682
+ }
3683
+ chunkY2CYZVJY.__name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3684
+ var draw = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(_text, id, _version, diagObj) {
3685
+ const { securityLevel, sequence, look, themeVariables } = chunkWYO6CB5R.getConfig2();
3686
+ conf = sequence;
3687
+ let sandboxElement;
3688
+ if (securityLevel === "sandbox") {
3689
+ sandboxElement = select.default("#i" + id);
3690
+ }
3691
+ const root = securityLevel === "sandbox" ? select.default(sandboxElement.nodes()[0].contentDocument.body) : select.default("body");
3692
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
3693
+ bounds.init();
3694
+ chunkX3CZISLH.log.debug(diagObj.db);
3695
+ const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select.default(`[id="${id}"]`);
3696
+ const actors = diagObj.db.getActors();
3697
+ const createdActors = diagObj.db.getCreatedActors();
3698
+ const destroyedActors = diagObj.db.getDestroyedActors();
3699
+ const boxes = diagObj.db.getBoxes();
3700
+ let actorKeys = diagObj.db.getActorKeys();
3701
+ const messages = diagObj.db.getMessages();
3702
+ const title = diagObj.db.getDiagramTitle();
3703
+ const hasBoxes = diagObj.db.hasAtLeastOneBox();
3704
+ const hasBoxTitles = diagObj.db.hasAtLeastOneBoxWithTitle();
3705
+ const maxMessageWidthPerActor = await getMaxMessageWidthPerActor(actors, messages, diagObj);
3706
+ conf.height = await calculateActorMargins(actors, maxMessageWidthPerActor, boxes);
3707
+ svgDraw_default.insertComputerIcon(diagram2, id);
3708
+ svgDraw_default.insertDatabaseIcon(diagram2, id);
3709
+ svgDraw_default.insertClockIcon(diagram2, id);
3710
+ if (hasBoxes) {
3711
+ bounds.bumpVerticalPos(conf.boxMargin);
3712
+ if (hasBoxTitles) {
3713
+ bounds.bumpVerticalPos(boxes[0].textMaxHeight);
3714
+ }
3715
+ }
3716
+ if (conf.hideUnusedParticipants === true) {
3717
+ const newActors = /* @__PURE__ */ new Set();
3718
+ messages.forEach((message) => {
3719
+ newActors.add(message.from);
3720
+ newActors.add(message.to);
3721
+ });
3722
+ actorKeys = actorKeys.filter((actorKey) => newActors.has(actorKey));
3723
+ }
3724
+ const actorIndexMap = new Map(
3725
+ actorKeys.map((actorKey, index22) => {
3726
+ var _a2;
3727
+ return [((_a2 = actors.get(actorKey)) == null ? void 0 : _a2.name) ?? actorKey, index22];
3728
+ })
3729
+ );
3730
+ addActorRenderingData(diagram2, actors, createdActors, actorKeys, 0, messages, false);
3731
+ const loopWidths = await calculateLoopBounds(messages, actors, maxMessageWidthPerActor, diagObj);
3732
+ svgDraw_default.insertArrowHead(diagram2, id);
3733
+ svgDraw_default.insertArrowCrossHead(diagram2, id);
3734
+ svgDraw_default.insertArrowFilledHead(diagram2, id);
3735
+ svgDraw_default.insertSequenceNumber(diagram2, id);
3736
+ svgDraw_default.insertSolidTopArrowHead(diagram2, id);
3737
+ svgDraw_default.insertSolidBottomArrowHead(diagram2, id);
3738
+ svgDraw_default.insertStickTopArrowHead(diagram2, id);
3739
+ svgDraw_default.insertStickBottomArrowHead(diagram2, id);
3740
+ if (look === "neo") {
3741
+ svgDraw_default.insertDropShadow(diagram2, conf);
3742
+ }
3743
+ function activeEnd(msg, verticalPos) {
3744
+ const activationData = bounds.endActivation(msg);
3745
+ if (activationData.starty + 18 > verticalPos) {
3746
+ activationData.starty = verticalPos - 6;
3747
+ verticalPos += 12;
3748
+ }
3749
+ svgDraw_default.drawActivation(
3750
+ diagram2,
3751
+ activationData,
3752
+ verticalPos,
3753
+ conf,
3754
+ actorActivations(msg.from).length,
3755
+ diagObj,
3756
+ actorIndexMap
3757
+ );
3758
+ bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
3759
+ }
3760
+ chunkY2CYZVJY.__name(activeEnd, "activeEnd");
3761
+ let sequenceIndex = 1;
3762
+ let sequenceIndexStep = 1;
3763
+ const messagesToDraw = [];
3764
+ const backgrounds = [];
3765
+ let index2 = 0;
3766
+ for (const msg of messages) {
3767
+ let loopModel, noteModel, msgModel;
3768
+ switch (msg.type) {
3769
+ case diagObj.db.LINETYPE.NOTE:
3770
+ bounds.resetVerticalPos();
3771
+ noteModel = msg.noteModel;
3772
+ await drawNote(diagram2, noteModel, msg.id);
3773
+ break;
3774
+ case diagObj.db.LINETYPE.ACTIVE_START:
3775
+ bounds.newActivation(msg, diagram2, actors);
3776
+ break;
3777
+ case diagObj.db.LINETYPE.CENTRAL_CONNECTION:
3778
+ bounds.newActivation(msg, diagram2, actors);
3779
+ break;
3780
+ case diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3781
+ bounds.newActivation(msg, diagram2, actors);
3782
+ break;
3783
+ case diagObj.db.LINETYPE.ACTIVE_END:
3784
+ activeEnd(msg, bounds.getVerticalPos());
3785
+ break;
3786
+ case diagObj.db.LINETYPE.LOOP_START:
3787
+ adjustLoopHeightForWrap(
3788
+ loopWidths,
3789
+ msg,
3790
+ conf.boxMargin,
3791
+ conf.boxMargin + conf.boxTextMargin,
3792
+ (message) => bounds.newLoop(message)
3793
+ );
3794
+ break;
3795
+ case diagObj.db.LINETYPE.LOOP_END:
3796
+ loopModel = bounds.endLoop();
3797
+ await svgDraw_default.drawLoop(diagram2, loopModel, "loop", conf, msg);
3798
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3799
+ bounds.models.addLoop(loopModel);
3800
+ break;
3801
+ case diagObj.db.LINETYPE.RECT_START:
3802
+ adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, (message) => {
3803
+ let fill = message.message;
3804
+ if (!fill) {
3805
+ fill = (themeVariables == null ? void 0 : themeVariables.rectBkgColor) || (themeVariables == null ? void 0 : themeVariables.actorBkg) || "rgba(128, 128, 128, 0.5)";
3806
+ }
3807
+ bounds.newLoop(void 0, fill);
3808
+ });
3809
+ break;
3810
+ case diagObj.db.LINETYPE.RECT_END:
3811
+ loopModel = bounds.endLoop();
3812
+ backgrounds.push(loopModel);
3813
+ bounds.models.addLoop(loopModel);
3814
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3815
+ break;
3816
+ case diagObj.db.LINETYPE.OPT_START:
3817
+ adjustLoopHeightForWrap(
3818
+ loopWidths,
3819
+ msg,
3820
+ conf.boxMargin,
3821
+ conf.boxMargin + conf.boxTextMargin,
3822
+ (message) => bounds.newLoop(message)
3823
+ );
3824
+ break;
3825
+ case diagObj.db.LINETYPE.OPT_END:
3826
+ loopModel = bounds.endLoop();
3827
+ await svgDraw_default.drawLoop(diagram2, loopModel, "opt", conf, msg);
3828
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3829
+ bounds.models.addLoop(loopModel);
3830
+ break;
3831
+ case diagObj.db.LINETYPE.ALT_START:
3832
+ adjustLoopHeightForWrap(
3833
+ loopWidths,
3834
+ msg,
3835
+ conf.boxMargin,
3836
+ conf.boxMargin + conf.boxTextMargin,
3837
+ (message) => bounds.newLoop(message)
3838
+ );
3839
+ break;
3840
+ case diagObj.db.LINETYPE.ALT_ELSE:
3841
+ adjustLoopHeightForWrap(
3842
+ loopWidths,
3843
+ msg,
3844
+ conf.boxMargin + conf.boxTextMargin,
3845
+ conf.boxMargin,
3846
+ (message) => bounds.addSectionToLoop(message)
3847
+ );
3848
+ break;
3849
+ case diagObj.db.LINETYPE.ALT_END:
3850
+ loopModel = bounds.endLoop();
3851
+ await svgDraw_default.drawLoop(diagram2, loopModel, "alt", conf, msg);
3852
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3853
+ bounds.models.addLoop(loopModel);
3854
+ break;
3855
+ case diagObj.db.LINETYPE.PAR_START:
3856
+ case diagObj.db.LINETYPE.PAR_OVER_START:
3857
+ adjustLoopHeightForWrap(
3858
+ loopWidths,
3859
+ msg,
3860
+ conf.boxMargin,
3861
+ conf.boxMargin + conf.boxTextMargin,
3862
+ (message) => bounds.newLoop(message)
3863
+ );
3864
+ bounds.saveVerticalPos();
3865
+ break;
3866
+ case diagObj.db.LINETYPE.PAR_AND:
3867
+ adjustLoopHeightForWrap(
3868
+ loopWidths,
3869
+ msg,
3870
+ conf.boxMargin + conf.boxTextMargin,
3871
+ conf.boxMargin,
3872
+ (message) => bounds.addSectionToLoop(message)
3873
+ );
3874
+ break;
3875
+ case diagObj.db.LINETYPE.PAR_END:
3876
+ loopModel = bounds.endLoop();
3877
+ await svgDraw_default.drawLoop(diagram2, loopModel, "par", conf, msg);
3878
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3879
+ bounds.models.addLoop(loopModel);
3880
+ break;
3881
+ case diagObj.db.LINETYPE.AUTONUMBER:
3882
+ sequenceIndex = msg.message.start || sequenceIndex;
3883
+ sequenceIndexStep = msg.message.step || sequenceIndexStep;
3884
+ if (msg.message.visible) {
3885
+ diagObj.db.enableSequenceNumbers();
3886
+ } else {
3887
+ diagObj.db.disableSequenceNumbers();
3888
+ }
3889
+ break;
3890
+ case diagObj.db.LINETYPE.CRITICAL_START:
3891
+ adjustLoopHeightForWrap(
3892
+ loopWidths,
3893
+ msg,
3894
+ conf.boxMargin,
3895
+ conf.boxMargin + conf.boxTextMargin,
3896
+ (message) => bounds.newLoop(message)
3897
+ );
3898
+ break;
3899
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
3900
+ adjustLoopHeightForWrap(
3901
+ loopWidths,
3902
+ msg,
3903
+ conf.boxMargin + conf.boxTextMargin,
3904
+ conf.boxMargin,
3905
+ (message) => bounds.addSectionToLoop(message)
3906
+ );
3907
+ break;
3908
+ case diagObj.db.LINETYPE.CRITICAL_END:
3909
+ loopModel = bounds.endLoop();
3910
+ await svgDraw_default.drawLoop(diagram2, loopModel, "critical", conf, msg);
3911
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3912
+ bounds.models.addLoop(loopModel);
3913
+ break;
3914
+ case diagObj.db.LINETYPE.BREAK_START:
3915
+ adjustLoopHeightForWrap(
3916
+ loopWidths,
3917
+ msg,
3918
+ conf.boxMargin,
3919
+ conf.boxMargin + conf.boxTextMargin,
3920
+ (message) => bounds.newLoop(message)
3921
+ );
3922
+ break;
3923
+ case diagObj.db.LINETYPE.BREAK_END:
3924
+ loopModel = bounds.endLoop();
3925
+ await svgDraw_default.drawLoop(diagram2, loopModel, "break", conf, msg);
3926
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3927
+ bounds.models.addLoop(loopModel);
3928
+ break;
3929
+ default:
3930
+ try {
3931
+ msgModel = msg.msgModel;
3932
+ msgModel.starty = bounds.getVerticalPos();
3933
+ msgModel.sequenceIndex = sequenceIndex;
3934
+ msgModel.sequenceVisible = diagObj.db.showSequenceNumbers();
3935
+ msgModel.id = msg.id;
3936
+ msgModel.from = msg.from;
3937
+ msgModel.to = msg.to;
3938
+ const lineStartY = await boundMessage(diagram2, msgModel);
3939
+ adjustCreatedDestroyedData(
3940
+ msg,
3941
+ msgModel,
3942
+ lineStartY,
3943
+ index2,
3944
+ actors,
3945
+ createdActors,
3946
+ destroyedActors
3947
+ );
3948
+ messagesToDraw.push({ messageModel: msgModel, lineStartY, msg });
3949
+ bounds.models.addMessage(msgModel);
3950
+ } catch (e) {
3951
+ chunkX3CZISLH.log.error("error while drawing message", e);
3952
+ }
3953
+ }
3954
+ if ([
3955
+ diagObj.db.LINETYPE.SOLID_OPEN,
3956
+ diagObj.db.LINETYPE.DOTTED_OPEN,
3957
+ diagObj.db.LINETYPE.SOLID,
3958
+ diagObj.db.LINETYPE.SOLID_TOP,
3959
+ diagObj.db.LINETYPE.SOLID_BOTTOM,
3960
+ diagObj.db.LINETYPE.STICK_TOP,
3961
+ diagObj.db.LINETYPE.STICK_BOTTOM,
3962
+ diagObj.db.LINETYPE.SOLID_TOP_DOTTED,
3963
+ diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3964
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
3965
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
3966
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3967
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3968
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3969
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3970
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3971
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3972
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3973
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3974
+ diagObj.db.LINETYPE.DOTTED,
3975
+ diagObj.db.LINETYPE.SOLID_CROSS,
3976
+ diagObj.db.LINETYPE.DOTTED_CROSS,
3977
+ diagObj.db.LINETYPE.SOLID_POINT,
3978
+ diagObj.db.LINETYPE.DOTTED_POINT,
3979
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3980
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3981
+ ].includes(msg.type)) {
3982
+ sequenceIndex = Math.round((sequenceIndex + sequenceIndexStep) * 100) / 100;
3983
+ }
3984
+ index2++;
3985
+ }
3986
+ chunkX3CZISLH.log.debug("createdActors", createdActors);
3987
+ chunkX3CZISLH.log.debug("destroyedActors", destroyedActors);
3988
+ await drawActors(diagram2, actors, actorKeys, false, id, diagObj, actorIndexMap);
3989
+ for (const e of messagesToDraw) {
3990
+ await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj, e.msg, id);
3991
+ }
3992
+ if (conf.mirrorActors) {
3993
+ await drawActors(diagram2, actors, actorKeys, true, id, diagObj, actorIndexMap);
3994
+ }
3995
+ backgrounds.forEach((e) => svgDraw_default.drawBackgroundRect(diagram2, e));
3996
+ fixLifeLineHeights(diagram2, actors, actorKeys, conf);
3997
+ for (const box2 of bounds.models.boxes) {
3998
+ box2.height = bounds.getVerticalPos() - box2.y;
3999
+ bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
4000
+ const boxPadding = conf.boxMargin * 2;
4001
+ box2.startx = box2.x - boxPadding;
4002
+ box2.starty = box2.y - boxPadding * 0.25;
4003
+ box2.stopx = box2.startx + box2.width + 2 * boxPadding;
4004
+ box2.stopy = box2.starty + box2.height + boxPadding * 0.75;
4005
+ box2.stroke = "rgb(0,0,0, 0.5)";
4006
+ svgDraw_default.drawBox(diagram2, box2, conf);
4007
+ }
4008
+ if (hasBoxes) {
4009
+ bounds.bumpVerticalPos(conf.boxMargin);
4010
+ }
4011
+ const requiredBoxSize = drawActorsPopup(diagram2, actors, actorKeys, doc);
4012
+ const { bounds: box } = bounds.getBounds();
4013
+ if (box.startx === void 0) {
4014
+ box.startx = 0;
4015
+ }
4016
+ if (box.starty === void 0) {
4017
+ box.starty = 0;
4018
+ }
4019
+ if (box.stopx === void 0) {
4020
+ box.stopx = 0;
4021
+ }
4022
+ if (box.stopy === void 0) {
4023
+ box.stopy = 0;
4024
+ }
4025
+ let boxHeight = box.stopy - box.starty;
4026
+ if (boxHeight < requiredBoxSize.maxHeight) {
4027
+ boxHeight = requiredBoxSize.maxHeight;
4028
+ }
4029
+ let height = boxHeight + 2 * conf.diagramMarginY;
4030
+ if (conf.mirrorActors) {
4031
+ height = height - conf.boxMargin + conf.bottomMarginAdj;
4032
+ }
4033
+ let boxWidth = box.stopx - box.startx;
4034
+ if (boxWidth < requiredBoxSize.maxWidth) {
4035
+ boxWidth = requiredBoxSize.maxWidth;
4036
+ }
4037
+ const width = boxWidth + 2 * conf.diagramMarginX;
4038
+ if (title) {
4039
+ diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
4040
+ }
4041
+ chunkWYO6CB5R.configureSvgSize(diagram2, height, width, conf.useMaxWidth);
4042
+ const extraVertForTitle = title ? 40 : 0;
4043
+ const extraHeightForNeoActors = actors.size && look === "neo" ? 30 : 0;
4044
+ diagram2.attr(
4045
+ "viewBox",
4046
+ box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle + extraHeightForNeoActors)
4047
+ );
4048
+ chunkX3CZISLH.log.debug(`models:`, bounds.models);
4049
+ }, "draw");
4050
+ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
4051
+ const maxMessageWidthPerActor = {};
4052
+ for (const msg of messages) {
4053
+ if (actors.get(msg.to) && actors.get(msg.from)) {
4054
+ const actor = actors.get(msg.to);
4055
+ if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
4056
+ continue;
4057
+ }
4058
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
4059
+ continue;
4060
+ }
4061
+ const isNote = msg.placement !== void 0;
4062
+ const isMessage = !isNote;
4063
+ const textFont = isNote ? noteFont(conf) : messageFont(conf);
4064
+ const wrappedMessage = msg.wrap ? chunkICXQ74PX.utils_default.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
4065
+ const messageDimensions = chunkWYO6CB5R.hasKatex(wrappedMessage) ? await chunkWYO6CB5R.calculateMathMLDimensions(msg.message, chunkWYO6CB5R.getConfig2()) : chunkICXQ74PX.utils_default.calculateTextDimensions(wrappedMessage, textFont);
4066
+ const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
4067
+ if (isMessage && msg.from === actor.nextActor) {
4068
+ maxMessageWidthPerActor[msg.to] = chunkWYO6CB5R.common_default.getMax(
4069
+ maxMessageWidthPerActor[msg.to] || 0,
4070
+ messageWidth
4071
+ );
4072
+ } else if (isMessage && msg.from === actor.prevActor) {
4073
+ maxMessageWidthPerActor[msg.from] = chunkWYO6CB5R.common_default.getMax(
4074
+ maxMessageWidthPerActor[msg.from] || 0,
4075
+ messageWidth
4076
+ );
4077
+ } else if (isMessage && msg.from === msg.to) {
4078
+ maxMessageWidthPerActor[msg.from] = chunkWYO6CB5R.common_default.getMax(
4079
+ maxMessageWidthPerActor[msg.from] || 0,
4080
+ messageWidth / 2
4081
+ );
4082
+ maxMessageWidthPerActor[msg.to] = chunkWYO6CB5R.common_default.getMax(
4083
+ maxMessageWidthPerActor[msg.to] || 0,
4084
+ messageWidth / 2
4085
+ );
4086
+ } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
4087
+ maxMessageWidthPerActor[msg.from] = chunkWYO6CB5R.common_default.getMax(
4088
+ maxMessageWidthPerActor[msg.from] || 0,
4089
+ messageWidth
4090
+ );
4091
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
4092
+ maxMessageWidthPerActor[actor.prevActor] = chunkWYO6CB5R.common_default.getMax(
4093
+ maxMessageWidthPerActor[actor.prevActor] || 0,
4094
+ messageWidth
4095
+ );
4096
+ } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
4097
+ if (actor.prevActor) {
4098
+ maxMessageWidthPerActor[actor.prevActor] = chunkWYO6CB5R.common_default.getMax(
4099
+ maxMessageWidthPerActor[actor.prevActor] || 0,
4100
+ messageWidth / 2
4101
+ );
4102
+ }
4103
+ if (actor.nextActor) {
4104
+ maxMessageWidthPerActor[msg.from] = chunkWYO6CB5R.common_default.getMax(
4105
+ maxMessageWidthPerActor[msg.from] || 0,
4106
+ messageWidth / 2
4107
+ );
4108
+ }
4109
+ }
4110
+ }
4111
+ }
4112
+ chunkX3CZISLH.log.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
4113
+ return maxMessageWidthPerActor;
4114
+ }
4115
+ chunkY2CYZVJY.__name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
4116
+ var getRequiredPopupWidth = /* @__PURE__ */ chunkY2CYZVJY.__name(function(actor) {
4117
+ let requiredPopupWidth = 0;
4118
+ const textFont = actorFont(conf);
4119
+ for (const key in actor.links) {
4120
+ const labelDimensions = chunkICXQ74PX.utils_default.calculateTextDimensions(key, textFont);
4121
+ const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
4122
+ if (requiredPopupWidth < labelWidth) {
4123
+ requiredPopupWidth = labelWidth;
4124
+ }
4125
+ }
4126
+ return requiredPopupWidth;
4127
+ }, "getRequiredPopupWidth");
4128
+ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
4129
+ let maxHeight = 0;
4130
+ for (const prop of actors.keys()) {
4131
+ const actor = actors.get(prop);
4132
+ if (actor.wrap) {
4133
+ actor.description = chunkICXQ74PX.utils_default.wrapLabel(
4134
+ actor.description,
4135
+ conf.width - 2 * conf.wrapPadding,
4136
+ actorFont(conf)
4137
+ );
4138
+ }
4139
+ const actDims = chunkWYO6CB5R.hasKatex(actor.description) ? await chunkWYO6CB5R.calculateMathMLDimensions(actor.description, chunkWYO6CB5R.getConfig2()) : chunkICXQ74PX.utils_default.calculateTextDimensions(actor.description, actorFont(conf));
4140
+ actor.width = actor.wrap ? conf.width : chunkWYO6CB5R.common_default.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
4141
+ actor.height = actor.wrap ? chunkWYO6CB5R.common_default.getMax(actDims.height, conf.height) : conf.height;
4142
+ maxHeight = chunkWYO6CB5R.common_default.getMax(maxHeight, actor.height);
4143
+ }
4144
+ for (const actorKey in actorToMessageWidth) {
4145
+ const actor = actors.get(actorKey);
4146
+ if (!actor) {
4147
+ continue;
4148
+ }
4149
+ const nextActor = actors.get(actor.nextActor);
4150
+ if (!nextActor) {
4151
+ const messageWidth2 = actorToMessageWidth[actorKey];
4152
+ const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
4153
+ actor.margin = chunkWYO6CB5R.common_default.getMax(actorWidth2, conf.actorMargin);
4154
+ continue;
4155
+ }
4156
+ const messageWidth = actorToMessageWidth[actorKey];
4157
+ const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
4158
+ actor.margin = chunkWYO6CB5R.common_default.getMax(actorWidth, conf.actorMargin);
4159
+ }
4160
+ let maxBoxHeight = 0;
4161
+ boxes.forEach((box) => {
4162
+ const textFont = messageFont(conf);
4163
+ let totalWidth = box.actorKeys.reduce((total, aKey) => {
4164
+ return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
4165
+ }, 0);
4166
+ const standardBoxPadding = conf.boxMargin * 8;
4167
+ totalWidth += standardBoxPadding;
4168
+ totalWidth -= 2 * conf.boxTextMargin;
4169
+ if (box.wrap) {
4170
+ box.name = chunkICXQ74PX.utils_default.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
4171
+ }
4172
+ const boxMsgDimensions = chunkICXQ74PX.utils_default.calculateTextDimensions(box.name, textFont);
4173
+ maxBoxHeight = chunkWYO6CB5R.common_default.getMax(boxMsgDimensions.height, maxBoxHeight);
4174
+ const minWidth = chunkWYO6CB5R.common_default.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
4175
+ box.margin = conf.boxTextMargin;
4176
+ if (totalWidth < minWidth) {
4177
+ const missing = (minWidth - totalWidth) / 2;
4178
+ box.margin += missing;
4179
+ }
4180
+ });
4181
+ boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
4182
+ return chunkWYO6CB5R.common_default.getMax(maxHeight, conf.height);
4183
+ }
4184
+ chunkY2CYZVJY.__name(calculateActorMargins, "calculateActorMargins");
4185
+ var buildNoteModel = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(msg, actors, diagObj) {
4186
+ const fromActor = actors.get(msg.from);
4187
+ const toActor = actors.get(msg.to);
4188
+ const startx = fromActor.x;
4189
+ const stopx = toActor.x;
4190
+ const shouldWrap = msg.wrap && msg.message;
4191
+ let textDimensions = chunkWYO6CB5R.hasKatex(msg.message) ? await chunkWYO6CB5R.calculateMathMLDimensions(msg.message, chunkWYO6CB5R.getConfig2()) : chunkICXQ74PX.utils_default.calculateTextDimensions(
4192
+ shouldWrap ? chunkICXQ74PX.utils_default.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
4193
+ noteFont(conf)
4194
+ );
4195
+ const noteModel = {
4196
+ width: shouldWrap ? conf.width : chunkWYO6CB5R.common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
4197
+ height: 0,
4198
+ startx: fromActor.x,
4199
+ stopx: 0,
4200
+ starty: 0,
4201
+ stopy: 0,
4202
+ message: msg.message
4203
+ };
4204
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
4205
+ noteModel.width = shouldWrap ? chunkWYO6CB5R.common_default.getMax(conf.width, textDimensions.width) : chunkWYO6CB5R.common_default.getMax(
4206
+ fromActor.width / 2 + toActor.width / 2,
4207
+ textDimensions.width + 2 * conf.noteMargin
4208
+ );
4209
+ noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
4210
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
4211
+ noteModel.width = shouldWrap ? chunkWYO6CB5R.common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : chunkWYO6CB5R.common_default.getMax(
4212
+ fromActor.width / 2 + toActor.width / 2,
4213
+ textDimensions.width + 2 * conf.noteMargin
4214
+ );
4215
+ noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
4216
+ } else if (msg.to === msg.from) {
4217
+ textDimensions = chunkICXQ74PX.utils_default.calculateTextDimensions(
4218
+ shouldWrap ? chunkICXQ74PX.utils_default.wrapLabel(msg.message, chunkWYO6CB5R.common_default.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
4219
+ noteFont(conf)
4220
+ );
4221
+ noteModel.width = shouldWrap ? chunkWYO6CB5R.common_default.getMax(conf.width, fromActor.width) : chunkWYO6CB5R.common_default.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
4222
+ noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
4223
+ } else {
4224
+ noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
4225
+ noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
4226
+ }
4227
+ if (shouldWrap) {
4228
+ noteModel.message = chunkICXQ74PX.utils_default.wrapLabel(
4229
+ msg.message,
4230
+ noteModel.width - 2 * conf.wrapPadding,
4231
+ noteFont(conf)
4232
+ );
4233
+ }
4234
+ chunkX3CZISLH.log.debug(
4235
+ `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
4236
+ );
4237
+ return noteModel;
4238
+ }, "buildNoteModel");
4239
+ var CENTRAL_CONNECTION_BASE_OFFSET = 4;
4240
+ var hasCentralConnection = /* @__PURE__ */ chunkY2CYZVJY.__name(function(msg, diagObj) {
4241
+ const { CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL } = diagObj.db.LINETYPE;
4242
+ return [CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL].includes(
4243
+ msg.centralConnection
4244
+ );
4245
+ }, "hasCentralConnection");
4246
+ var calculateCentralConnectionOffset = /* @__PURE__ */ chunkY2CYZVJY.__name(function(msg, diagObj, isArrowToRight) {
4247
+ const {
4248
+ CENTRAL_CONNECTION_REVERSE,
4249
+ CENTRAL_CONNECTION_DUAL,
4250
+ BIDIRECTIONAL_SOLID,
4251
+ BIDIRECTIONAL_DOTTED
4252
+ } = diagObj.db.LINETYPE;
4253
+ let offset = 0;
4254
+ if (msg.centralConnection === CENTRAL_CONNECTION_REVERSE || msg.centralConnection === CENTRAL_CONNECTION_DUAL) {
4255
+ offset += CENTRAL_CONNECTION_BASE_OFFSET;
4256
+ }
4257
+ if ((msg.centralConnection === CENTRAL_CONNECTION_REVERSE || msg.centralConnection === CENTRAL_CONNECTION_DUAL) && (msg.type === BIDIRECTIONAL_SOLID || msg.type === BIDIRECTIONAL_DOTTED)) {
4258
+ offset += isArrowToRight ? 0 : -6;
4259
+ }
4260
+ return offset;
4261
+ }, "calculateCentralConnectionOffset");
4262
+ var isReverseArrowType = /* @__PURE__ */ chunkY2CYZVJY.__name(function(msg, diagObj) {
4263
+ const {
4264
+ SOLID_ARROW_TOP_REVERSE,
4265
+ SOLID_ARROW_TOP_REVERSE_DOTTED,
4266
+ SOLID_ARROW_BOTTOM_REVERSE,
4267
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4268
+ STICK_ARROW_TOP_REVERSE,
4269
+ STICK_ARROW_TOP_REVERSE_DOTTED,
4270
+ STICK_ARROW_BOTTOM_REVERSE,
4271
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED
4272
+ } = diagObj.db.LINETYPE;
4273
+ return [
4274
+ SOLID_ARROW_TOP_REVERSE,
4275
+ SOLID_ARROW_TOP_REVERSE_DOTTED,
4276
+ SOLID_ARROW_BOTTOM_REVERSE,
4277
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4278
+ STICK_ARROW_TOP_REVERSE,
4279
+ STICK_ARROW_TOP_REVERSE_DOTTED,
4280
+ STICK_ARROW_BOTTOM_REVERSE,
4281
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED
4282
+ ].includes(msg.type);
4283
+ }, "isReverseArrowType");
4284
+ var isBidirectionalArrowType = /* @__PURE__ */ chunkY2CYZVJY.__name(function(msg, diagObj) {
4285
+ const { BIDIRECTIONAL_SOLID, BIDIRECTIONAL_DOTTED } = diagObj.db.LINETYPE;
4286
+ return [BIDIRECTIONAL_SOLID, BIDIRECTIONAL_DOTTED].includes(msg.type);
4287
+ }, "isBidirectionalArrowType");
4288
+ var buildMessageModel = /* @__PURE__ */ chunkY2CYZVJY.__name(function(msg, actors, diagObj) {
4289
+ const { look } = chunkWYO6CB5R.getConfig2();
4290
+ if (![
4291
+ diagObj.db.LINETYPE.SOLID_OPEN,
4292
+ diagObj.db.LINETYPE.DOTTED_OPEN,
4293
+ diagObj.db.LINETYPE.SOLID,
4294
+ diagObj.db.LINETYPE.SOLID_TOP,
4295
+ diagObj.db.LINETYPE.SOLID_BOTTOM,
4296
+ diagObj.db.LINETYPE.STICK_TOP,
4297
+ diagObj.db.LINETYPE.STICK_BOTTOM,
4298
+ diagObj.db.LINETYPE.SOLID_TOP_DOTTED,
4299
+ diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4300
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
4301
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
4302
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4303
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4304
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4305
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4306
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4307
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4308
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4309
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4310
+ diagObj.db.LINETYPE.DOTTED,
4311
+ diagObj.db.LINETYPE.SOLID_CROSS,
4312
+ diagObj.db.LINETYPE.DOTTED_CROSS,
4313
+ diagObj.db.LINETYPE.SOLID_POINT,
4314
+ diagObj.db.LINETYPE.DOTTED_POINT,
4315
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
4316
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
4317
+ ].includes(msg.type)) {
4318
+ return {};
4319
+ }
4320
+ const [fromLeft, fromRight] = activationBounds(msg.from, actors);
4321
+ const [toLeft, toRight] = activationBounds(msg.to, actors);
4322
+ const isArrowToRight = fromLeft <= toLeft;
4323
+ let startx = isArrowToRight ? fromRight : fromLeft;
4324
+ let stopx = isArrowToRight ? toLeft : toRight;
4325
+ if (look === "neo") {
4326
+ const offset = 3;
4327
+ if (msg.type !== diagObj.db.LINETYPE.SOLID_OPEN) {
4328
+ stopx += isArrowToRight ? -3 : offset;
4329
+ }
4330
+ if (msg.type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || msg.type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
4331
+ startx += isArrowToRight ? offset : -3;
4332
+ }
4333
+ }
4334
+ startx += calculateCentralConnectionOffset(msg, diagObj, isArrowToRight);
4335
+ const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
4336
+ const adjustValue = /* @__PURE__ */ chunkY2CYZVJY.__name((value) => {
4337
+ return isArrowToRight ? -value : value;
4338
+ }, "adjustValue");
4339
+ if (msg.from === msg.to) {
4340
+ stopx = startx;
4341
+ } else {
4342
+ if (msg.activate && !isArrowToActivation) {
4343
+ stopx += adjustValue(conf.activationWidth / 2 - 1);
4344
+ }
4345
+ if (![
4346
+ diagObj.db.LINETYPE.SOLID_OPEN,
4347
+ diagObj.db.LINETYPE.DOTTED_OPEN,
4348
+ diagObj.db.LINETYPE.STICK_TOP,
4349
+ diagObj.db.LINETYPE.STICK_BOTTOM,
4350
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
4351
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
4352
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4353
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4354
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4355
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4356
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4357
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4358
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4359
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4360
+ ].includes(msg.type)) {
4361
+ stopx += adjustValue(3);
4362
+ }
4363
+ if ([
4364
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
4365
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4366
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4367
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4368
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4369
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4370
+ ].includes(msg.type)) {
4371
+ startx -= adjustValue(3);
4372
+ }
4373
+ }
4374
+ const allBounds = [fromLeft, fromRight, toLeft, toRight];
4375
+ const boundedWidth = Math.abs(startx - stopx);
4376
+ if (msg.wrap && msg.message) {
4377
+ msg.message = chunkICXQ74PX.utils_default.wrapLabel(
4378
+ msg.message,
4379
+ chunkWYO6CB5R.common_default.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
4380
+ messageFont(conf)
4381
+ );
4382
+ }
4383
+ const msgDims = chunkICXQ74PX.utils_default.calculateTextDimensions(msg.message, messageFont(conf));
4384
+ return {
4385
+ width: chunkWYO6CB5R.common_default.getMax(
4386
+ msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
4387
+ boundedWidth + 2 * conf.wrapPadding,
4388
+ conf.width
4389
+ ),
4390
+ height: 0,
4391
+ startx,
4392
+ stopx,
4393
+ starty: 0,
4394
+ stopy: 0,
4395
+ message: msg.message,
4396
+ type: msg.type,
4397
+ wrap: msg.wrap,
4398
+ fromBounds: Math.min.apply(null, allBounds),
4399
+ toBounds: Math.max.apply(null, allBounds)
4400
+ };
4401
+ }, "buildMessageModel");
4402
+ var calculateLoopBounds = /* @__PURE__ */ chunkY2CYZVJY.__name(async function(messages, actors, _maxWidthPerActor, diagObj) {
4403
+ const loops = {};
4404
+ const stack = [];
4405
+ let current, noteModel, msgModel;
4406
+ for (const msg of messages) {
4407
+ switch (msg.type) {
4408
+ case diagObj.db.LINETYPE.LOOP_START:
4409
+ case diagObj.db.LINETYPE.ALT_START:
4410
+ case diagObj.db.LINETYPE.OPT_START:
4411
+ case diagObj.db.LINETYPE.PAR_START:
4412
+ case diagObj.db.LINETYPE.PAR_OVER_START:
4413
+ case diagObj.db.LINETYPE.CRITICAL_START:
4414
+ case diagObj.db.LINETYPE.BREAK_START:
4415
+ stack.push({
4416
+ id: msg.id,
4417
+ msg: msg.message,
4418
+ from: Number.MAX_SAFE_INTEGER,
4419
+ to: Number.MIN_SAFE_INTEGER,
4420
+ width: 0
4421
+ });
4422
+ break;
4423
+ case diagObj.db.LINETYPE.ALT_ELSE:
4424
+ case diagObj.db.LINETYPE.PAR_AND:
4425
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
4426
+ if (msg.message) {
4427
+ current = stack.pop();
4428
+ loops[current.id] = current;
4429
+ loops[msg.id] = current;
4430
+ stack.push(current);
4431
+ }
4432
+ break;
4433
+ case diagObj.db.LINETYPE.LOOP_END:
4434
+ case diagObj.db.LINETYPE.ALT_END:
4435
+ case diagObj.db.LINETYPE.OPT_END:
4436
+ case diagObj.db.LINETYPE.PAR_END:
4437
+ case diagObj.db.LINETYPE.CRITICAL_END:
4438
+ case diagObj.db.LINETYPE.BREAK_END:
4439
+ current = stack.pop();
4440
+ loops[current.id] = current;
4441
+ break;
4442
+ case diagObj.db.LINETYPE.ACTIVE_START:
4443
+ {
4444
+ const actorRect = actors.get(msg.from ? msg.from : msg.to.actor);
4445
+ const stackedSize = actorActivations(msg.from ? msg.from : msg.to.actor).length;
4446
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
4447
+ const toAdd = {
4448
+ startx: x,
4449
+ stopx: x + conf.activationWidth,
4450
+ actor: msg.from,
4451
+ enabled: true
4452
+ };
4453
+ bounds.activations.push(toAdd);
4454
+ }
4455
+ break;
4456
+ case diagObj.db.LINETYPE.ACTIVE_END:
4457
+ {
4458
+ const lastActorActivationIdx = bounds.activations.map((a) => a.actor).lastIndexOf(msg.from);
4459
+ bounds.activations.splice(lastActorActivationIdx, 1).splice(0, 1);
4460
+ }
4461
+ break;
4462
+ }
4463
+ const isNote = msg.placement !== void 0;
4464
+ if (isNote) {
4465
+ noteModel = await buildNoteModel(msg, actors, diagObj);
4466
+ msg.noteModel = noteModel;
4467
+ stack.forEach((stk) => {
4468
+ current = stk;
4469
+ current.from = chunkWYO6CB5R.common_default.getMin(current.from, noteModel.startx);
4470
+ current.to = chunkWYO6CB5R.common_default.getMax(current.to, noteModel.startx + noteModel.width);
4471
+ current.width = chunkWYO6CB5R.common_default.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
4472
+ });
4473
+ } else {
4474
+ msgModel = buildMessageModel(msg, actors, diagObj);
4475
+ msg.msgModel = msgModel;
4476
+ if (msgModel.startx && msgModel.stopx && stack.length > 0) {
4477
+ stack.forEach((stk) => {
4478
+ current = stk;
4479
+ if (msgModel.startx === msgModel.stopx) {
4480
+ const from = actors.get(msg.from);
4481
+ const to = actors.get(msg.to);
4482
+ current.from = chunkWYO6CB5R.common_default.getMin(
4483
+ from.x - msgModel.width / 2,
4484
+ from.x - from.width / 2,
4485
+ current.from
4486
+ );
4487
+ current.to = chunkWYO6CB5R.common_default.getMax(
4488
+ to.x + msgModel.width / 2,
4489
+ to.x + from.width / 2,
4490
+ current.to
4491
+ );
4492
+ current.width = chunkWYO6CB5R.common_default.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
4493
+ } else {
4494
+ current.from = chunkWYO6CB5R.common_default.getMin(msgModel.startx, current.from);
4495
+ current.to = chunkWYO6CB5R.common_default.getMax(msgModel.stopx, current.to);
4496
+ current.width = chunkWYO6CB5R.common_default.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
4497
+ }
4498
+ });
4499
+ }
4500
+ }
4501
+ }
4502
+ bounds.activations = [];
4503
+ chunkX3CZISLH.log.debug("Loop type widths:", loops);
4504
+ return loops;
4505
+ }, "calculateLoopBounds");
4506
+ var sequenceRenderer_default = {
4507
+ bounds,
4508
+ drawActors,
4509
+ drawActorsPopup,
4510
+ setConf,
4511
+ draw
4512
+ };
4513
+ var diagram = {
4514
+ parser: sequenceDiagram_default,
4515
+ get db() {
4516
+ return new SequenceDB();
4517
+ },
4518
+ renderer: sequenceRenderer_default,
4519
+ styles: styles_default,
4520
+ init: /* @__PURE__ */ chunkY2CYZVJY.__name((cnf) => {
4521
+ if (!cnf.sequence) {
4522
+ cnf.sequence = {};
4523
+ }
4524
+ if (cnf.wrap) {
4525
+ cnf.sequence.wrap = cnf.wrap;
4526
+ chunkWYO6CB5R.setConfig2({ sequence: { wrap: cnf.wrap } });
4527
+ }
4528
+ }, "init")
4529
+ };
4530
+ exports.diagram = diagram;