@altimateai/ui-components 0.0.78-beta.1 → 0.0.78

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 (404) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +23919 -67654
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2231 -2829
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +5100 -6285
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1309 -1302
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +150 -150
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +8 -11
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  63. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  64. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  65. package/package.json +1 -1
  66. package/dist/abap.js +0 -6
  67. package/dist/actionscript-3.js +0 -6
  68. package/dist/ada.js +0 -6
  69. package/dist/andromeeda.js +0 -4
  70. package/dist/angular-html.js +0 -32
  71. package/dist/angular-ts.js +0 -21
  72. package/dist/apache.js +0 -6
  73. package/dist/apex.js +0 -6
  74. package/dist/apl.js +0 -16
  75. package/dist/applescript.js +0 -6
  76. package/dist/ara.js +0 -6
  77. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  78. package/dist/asciidoc.js +0 -6
  79. package/dist/asm.js +0 -6
  80. package/dist/astro.js +0 -18
  81. package/dist/aurora-x.js +0 -4
  82. package/dist/awk.js +0 -6
  83. package/dist/ayu-dark.js +0 -4
  84. package/dist/ballerina.js +0 -6
  85. package/dist/band.js +0 -46
  86. package/dist/bat.js +0 -6
  87. package/dist/beancount.js +0 -6
  88. package/dist/berry.js +0 -6
  89. package/dist/bibtex.js +0 -6
  90. package/dist/bicep.js +0 -6
  91. package/dist/blade.js +0 -20
  92. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  93. package/dist/bsl.js +0 -8
  94. package/dist/c.js +0 -6
  95. package/dist/c3.js +0 -6
  96. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  97. package/dist/cadence.js +0 -6
  98. package/dist/cairo.js +0 -8
  99. package/dist/catppuccin-frappe.js +0 -4
  100. package/dist/catppuccin-latte.js +0 -4
  101. package/dist/catppuccin-macchiato.js +0 -4
  102. package/dist/catppuccin-mocha.js +0 -4
  103. package/dist/chunk-4BX2VUAB2.js +0 -9
  104. package/dist/chunk-55IACEB62.js +0 -9
  105. package/dist/chunk-B4BG7PRW2.js +0 -1377
  106. package/dist/chunk-DI55MBZ52.js +0 -1382
  107. package/dist/chunk-FMBD7UC42.js +0 -19
  108. package/dist/chunk-QN33PNHL2.js +0 -20
  109. package/dist/chunk-QZHKN3VN2.js +0 -15
  110. package/dist/chunk-TZMSLE5B2.js +0 -64
  111. package/dist/clarity.js +0 -6
  112. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  113. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  114. package/dist/clojure.js +0 -6
  115. package/dist/cmake.js +0 -6
  116. package/dist/cobol.js +0 -10
  117. package/dist/code-block-37QAKDTI.js +0 -27
  118. package/dist/codeowners.js +0 -6
  119. package/dist/codeql.js +0 -6
  120. package/dist/coffee.js +0 -8
  121. package/dist/common-lisp.js +0 -6
  122. package/dist/coq.js +0 -6
  123. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  124. package/dist/cpp.js +0 -18
  125. package/dist/crystal.js +0 -18
  126. package/dist/csharp.js +0 -6
  127. package/dist/css.js +0 -6
  128. package/dist/csv.js +0 -6
  129. package/dist/cue.js +0 -6
  130. package/dist/cypher.js +0 -6
  131. package/dist/cytoscape-cose-bilkent.js +0 -2380
  132. package/dist/cytoscape-fcose.js +0 -3840
  133. package/dist/d.js +0 -6
  134. package/dist/dagre-6UL2VRFP2.js +0 -447
  135. package/dist/dark-plus.js +0 -4
  136. package/dist/dart.js +0 -6
  137. package/dist/dax.js +0 -6
  138. package/dist/desktop.js +0 -6
  139. package/dist/diagram-PSM6KHXK2.js +0 -319
  140. package/dist/diagram-QEK2KX5R2.js +0 -221
  141. package/dist/diagram-S2PKOQOG2.js +0 -143
  142. package/dist/diff.js +0 -6
  143. package/dist/docker.js +0 -6
  144. package/dist/dotenv.js +0 -6
  145. package/dist/dracula-soft.js +0 -4
  146. package/dist/dracula.js +0 -4
  147. package/dist/dream-maker.js +0 -6
  148. package/dist/edge.js +0 -12
  149. package/dist/elixir.js +0 -8
  150. package/dist/elm.js +0 -8
  151. package/dist/emacs-lisp.js +0 -6
  152. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  153. package/dist/erb.js +0 -10
  154. package/dist/erlang.js +0 -8
  155. package/dist/everforest-dark.js +0 -4
  156. package/dist/everforest-light.js +0 -4
  157. package/dist/fennel.js +0 -6
  158. package/dist/fish.js +0 -6
  159. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  160. package/dist/fluent.js +0 -6
  161. package/dist/fortran-fixed-form.js +0 -8
  162. package/dist/fortran-free-form.js +0 -6
  163. package/dist/fsharp.js +0 -8
  164. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  165. package/dist/gdresource.js +0 -10
  166. package/dist/gdscript.js +0 -6
  167. package/dist/gdshader.js +0 -6
  168. package/dist/genie.js +0 -6
  169. package/dist/gherkin.js +0 -6
  170. package/dist/git-commit.js +0 -8
  171. package/dist/git-rebase.js +0 -8
  172. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  173. package/dist/github-dark-default.js +0 -4
  174. package/dist/github-dark-dimmed.js +0 -4
  175. package/dist/github-dark-high-contrast.js +0 -4
  176. package/dist/github-dark.js +0 -4
  177. package/dist/github-light-default.js +0 -4
  178. package/dist/github-light-high-contrast.js +0 -4
  179. package/dist/github-light.js +0 -4
  180. package/dist/gleam.js +0 -6
  181. package/dist/glimmer-js.js +0 -14
  182. package/dist/glimmer-ts.js +0 -14
  183. package/dist/glsl.js +0 -8
  184. package/dist/gn.js +0 -6
  185. package/dist/gnuplot.js +0 -6
  186. package/dist/go.js +0 -6
  187. package/dist/graph2.js +0 -246
  188. package/dist/graphql.js +0 -14
  189. package/dist/groovy.js +0 -6
  190. package/dist/gruvbox-dark-hard.js +0 -4
  191. package/dist/gruvbox-dark-medium.js +0 -4
  192. package/dist/gruvbox-dark-soft.js +0 -4
  193. package/dist/gruvbox-light-hard.js +0 -4
  194. package/dist/gruvbox-light-medium.js +0 -4
  195. package/dist/gruvbox-light-soft.js +0 -4
  196. package/dist/hack.js +0 -10
  197. package/dist/haml.js +0 -10
  198. package/dist/handlebars.js +0 -14
  199. package/dist/haskell.js +0 -6
  200. package/dist/haxe.js +0 -6
  201. package/dist/hcl.js +0 -6
  202. package/dist/hjson.js +0 -6
  203. package/dist/hlsl.js +0 -6
  204. package/dist/houston.js +0 -4
  205. package/dist/html-derivative.js +0 -8
  206. package/dist/html.js +0 -10
  207. package/dist/http.js +0 -14
  208. package/dist/hurl.js +0 -12
  209. package/dist/hxml.js +0 -8
  210. package/dist/hy.js +0 -6
  211. package/dist/imba.js +0 -6
  212. package/dist/index3.js +0 -689
  213. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  214. package/dist/ini.js +0 -6
  215. package/dist/java.js +0 -6
  216. package/dist/javascript.js +0 -6
  217. package/dist/jinja.js +0 -11
  218. package/dist/jison.js +0 -8
  219. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  220. package/dist/json.js +0 -6
  221. package/dist/json5.js +0 -6
  222. package/dist/jsonc.js +0 -6
  223. package/dist/jsonl.js +0 -6
  224. package/dist/jsonnet.js +0 -6
  225. package/dist/jssm.js +0 -6
  226. package/dist/jsx.js +0 -6
  227. package/dist/julia.js +0 -16
  228. package/dist/kanagawa-dragon.js +0 -4
  229. package/dist/kanagawa-lotus.js +0 -4
  230. package/dist/kanagawa-wave.js +0 -4
  231. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  232. package/dist/katex2.js +0 -11691
  233. package/dist/kdl.js +0 -6
  234. package/dist/kotlin.js +0 -6
  235. package/dist/kusto.js +0 -6
  236. package/dist/laserwave.js +0 -4
  237. package/dist/latex.js +0 -8
  238. package/dist/layout2.js +0 -1224
  239. package/dist/lean.js +0 -6
  240. package/dist/less.js +0 -6
  241. package/dist/light-plus.js +0 -4
  242. package/dist/liquid.js +0 -14
  243. package/dist/llvm.js +0 -6
  244. package/dist/log.js +0 -6
  245. package/dist/logo.js +0 -6
  246. package/dist/lua.js +0 -8
  247. package/dist/luau.js +0 -6
  248. package/dist/make.js +0 -6
  249. package/dist/markdown.js +0 -6
  250. package/dist/marko.js +0 -14
  251. package/dist/material-theme-darker.js +0 -4
  252. package/dist/material-theme-lighter.js +0 -4
  253. package/dist/material-theme-ocean.js +0 -4
  254. package/dist/material-theme-palenight.js +0 -4
  255. package/dist/material-theme.js +0 -4
  256. package/dist/matlab.js +0 -6
  257. package/dist/mdc.js +0 -12
  258. package/dist/mdx.js +0 -6
  259. package/dist/mermaid-4DMBBIKO.js +0 -4
  260. package/dist/mermaid.js +0 -6
  261. package/dist/min-dark.js +0 -4
  262. package/dist/min-light.js +0 -4
  263. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  264. package/dist/mipsasm.js +0 -6
  265. package/dist/mojo.js +0 -6
  266. package/dist/monokai.js +0 -4
  267. package/dist/moonbit.js +0 -6
  268. package/dist/move.js +0 -6
  269. package/dist/narrat.js +0 -6
  270. package/dist/nextflow.js +0 -6
  271. package/dist/nginx.js +0 -8
  272. package/dist/night-owl.js +0 -4
  273. package/dist/nim.js +0 -20
  274. package/dist/nix.js +0 -9
  275. package/dist/nord.js +0 -4
  276. package/dist/nushell.js +0 -6
  277. package/dist/objective-c.js +0 -6
  278. package/dist/objective-cpp.js +0 -6
  279. package/dist/ocaml.js +0 -6
  280. package/dist/one-dark-pro.js +0 -4
  281. package/dist/one-light.js +0 -4
  282. package/dist/openscad.js +0 -6
  283. package/dist/pascal.js +0 -6
  284. package/dist/perl.js +0 -16
  285. package/dist/php.js +0 -18
  286. package/dist/pie.js +0 -45
  287. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  288. package/dist/pkl.js +0 -6
  289. package/dist/plastic.js +0 -4
  290. package/dist/plsql.js +0 -6
  291. package/dist/po.js +0 -6
  292. package/dist/poimandres.js +0 -4
  293. package/dist/polar.js +0 -6
  294. package/dist/postcss.js +0 -6
  295. package/dist/powerquery.js +0 -6
  296. package/dist/powershell.js +0 -6
  297. package/dist/prisma.js +0 -6
  298. package/dist/prolog.js +0 -6
  299. package/dist/proto.js +0 -6
  300. package/dist/pug.js +0 -12
  301. package/dist/puppet.js +0 -6
  302. package/dist/purescript.js +0 -6
  303. package/dist/python.js +0 -6
  304. package/dist/qml.js +0 -8
  305. package/dist/qmldir.js +0 -6
  306. package/dist/qss.js +0 -6
  307. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  308. package/dist/r.js +0 -6
  309. package/dist/racket.js +0 -6
  310. package/dist/raku.js +0 -6
  311. package/dist/razor.js +0 -10
  312. package/dist/red.js +0 -4
  313. package/dist/reg.js +0 -6
  314. package/dist/regexp.js +0 -6
  315. package/dist/rel.js +0 -6
  316. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  317. package/dist/riscv.js +0 -6
  318. package/dist/rose-pine-dawn.js +0 -4
  319. package/dist/rose-pine-moon.js +0 -4
  320. package/dist/rose-pine.js +0 -4
  321. package/dist/rosmsg.js +0 -6
  322. package/dist/rst.js +0 -22
  323. package/dist/ruby.js +0 -30
  324. package/dist/rust.js +0 -6
  325. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  326. package/dist/sankeyLinkHorizontal.js +0 -403
  327. package/dist/sas.js +0 -8
  328. package/dist/sass.js +0 -6
  329. package/dist/scala.js +0 -6
  330. package/dist/scheme.js +0 -6
  331. package/dist/scss.js +0 -8
  332. package/dist/sdbl.js +0 -6
  333. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  334. package/dist/shaderlab.js +0 -8
  335. package/dist/shellscript.js +0 -6
  336. package/dist/shellsession.js +0 -8
  337. package/dist/slack-dark.js +0 -4
  338. package/dist/slack-ochin.js +0 -4
  339. package/dist/smalltalk.js +0 -6
  340. package/dist/snazzy-light.js +0 -4
  341. package/dist/solarized-dark.js +0 -4
  342. package/dist/solarized-light.js +0 -4
  343. package/dist/solidity.js +0 -6
  344. package/dist/soy.js +0 -8
  345. package/dist/sparql.js +0 -8
  346. package/dist/splunk.js +0 -6
  347. package/dist/sql.js +0 -6
  348. package/dist/ssh-config.js +0 -6
  349. package/dist/stata.js +0 -8
  350. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  351. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  352. package/dist/stylus.js +0 -6
  353. package/dist/svelte.js +0 -14
  354. package/dist/swift.js +0 -6
  355. package/dist/synthwave-84.js +0 -4
  356. package/dist/system-verilog.js +0 -6
  357. package/dist/systemd.js +0 -6
  358. package/dist/talonscript.js +0 -6
  359. package/dist/tasl.js +0 -6
  360. package/dist/tcl.js +0 -6
  361. package/dist/templ.js +0 -12
  362. package/dist/terraform.js +0 -6
  363. package/dist/tex.js +0 -8
  364. package/dist/time.js +0 -900
  365. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  366. package/dist/tokyo-night.js +0 -4
  367. package/dist/toml.js +0 -6
  368. package/dist/ts-tags.js +0 -41
  369. package/dist/tsv.js +0 -6
  370. package/dist/tsx.js +0 -6
  371. package/dist/turtle.js +0 -6
  372. package/dist/twig.js +0 -18
  373. package/dist/typescript.js +0 -6
  374. package/dist/typespec.js +0 -6
  375. package/dist/typst.js +0 -6
  376. package/dist/union.js +0 -8
  377. package/dist/v.js +0 -6
  378. package/dist/vala.js +0 -6
  379. package/dist/vb.js +0 -6
  380. package/dist/verilog.js +0 -6
  381. package/dist/vesper.js +0 -4
  382. package/dist/vhdl.js +0 -6
  383. package/dist/viml.js +0 -6
  384. package/dist/vitesse-black.js +0 -4
  385. package/dist/vitesse-dark.js +0 -4
  386. package/dist/vitesse-light.js +0 -4
  387. package/dist/vue-html.js +0 -8
  388. package/dist/vue-vine.js +0 -18
  389. package/dist/vue.js +0 -31
  390. package/dist/vyper.js +0 -6
  391. package/dist/wasm.js +0 -7
  392. package/dist/wasm2.js +0 -6
  393. package/dist/wenyan.js +0 -6
  394. package/dist/wgsl.js +0 -6
  395. package/dist/wikitext.js +0 -6
  396. package/dist/wit.js +0 -6
  397. package/dist/wolfram.js +0 -6
  398. package/dist/xml.js +0 -8
  399. package/dist/xsl.js +0 -8
  400. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  401. package/dist/yaml.js +0 -6
  402. package/dist/zenscript.js +0 -6
  403. package/dist/zig.js +0 -6
  404. package/dist/zipObject.js +0 -128
@@ -1,837 +0,0 @@
1
- import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B2.js";
2
- import { g as kt } from "./chunk-FMBD7UC42.js";
3
- import { aG as n, aM as R, aV as _t, aW as vt, aI as bt, aJ as wt, aL as Tt, aK as St, b0 as $t, aT as Mt } from "./CoachForm.js";
4
- import { s as X } from "./redux-toolkit.modern.js";
5
- import { d as et } from "./arc.js";
6
- var U = function() {
7
- var t = /* @__PURE__ */ n(function(h, i, a, l) {
8
- for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
9
- return a;
10
- }, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], s = [1, 9], c = [1, 10], r = [1, 11], f = [1, 12], u = [1, 13], y = [1, 14], g = {
11
- trace: /* @__PURE__ */ n(function() {
12
- }, "trace"),
13
- yy: {},
14
- symbols_: { error: 2, start: 3, journey: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, taskName: 18, taskData: 19, $accept: 0, $end: 1 },
15
- terminals_: { 2: "error", 4: "journey", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 18: "taskName", 19: "taskData" },
16
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2]],
17
- performAction: /* @__PURE__ */ n(function(i, a, l, d, p, o, b) {
18
- var k = o.length - 1;
19
- switch (p) {
20
- case 1:
21
- return o[k - 1];
22
- case 2:
23
- this.$ = [];
24
- break;
25
- case 3:
26
- o[k - 1].push(o[k]), this.$ = o[k - 1];
27
- break;
28
- case 4:
29
- case 5:
30
- this.$ = o[k];
31
- break;
32
- case 6:
33
- case 7:
34
- this.$ = [];
35
- break;
36
- case 8:
37
- d.setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
38
- break;
39
- case 9:
40
- this.$ = o[k].trim(), d.setAccTitle(this.$);
41
- break;
42
- case 10:
43
- case 11:
44
- this.$ = o[k].trim(), d.setAccDescription(this.$);
45
- break;
46
- case 12:
47
- d.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
48
- break;
49
- case 13:
50
- d.addTask(o[k - 1], o[k]), this.$ = "task";
51
- break;
52
- }
53
- }, "anonymous"),
54
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: s, 12: c, 14: r, 16: f, 17: u, 18: y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: s, 12: c, 14: r, 16: f, 17: u, 18: y }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, t(e, [2, 11]), t(e, [2, 12]), { 19: [1, 18] }, t(e, [2, 4]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 13])],
55
- defaultActions: {},
56
- parseError: /* @__PURE__ */ n(function(i, a) {
57
- if (a.recoverable)
58
- this.trace(i);
59
- else {
60
- var l = new Error(i);
61
- throw l.hash = a, l;
62
- }
63
- }, "parseError"),
64
- parse: /* @__PURE__ */ n(function(i) {
65
- var a = this, l = [0], d = [], p = [null], o = [], b = this.table, k = "", C = 0, Z = 0, dt = 2, Q = 1, yt = o.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
66
- for (var O in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, O) && (I.yy[O] = this.yy[O]);
68
- _.setInput(i, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
69
- var Y = _.yylloc;
70
- o.push(Y);
71
- var ft = _.options && _.options.ranges;
72
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function pt(w) {
74
- l.length = l.length - 2 * w, p.length = p.length - w, o.length = o.length - w;
75
- }
76
- n(pt, "popStack");
77
- function D() {
78
- var w;
79
- return w = d.pop() || _.lex() || Q, typeof w != "number" && (w instanceof Array && (d = w, w = d.pop()), w = a.symbols_[w] || w), w;
80
- }
81
- n(D, "lex");
82
- for (var v, A, T, q, F = {}, N, M, tt, W; ; ) {
83
- if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((v === null || typeof v > "u") && (v = D()), T = b[A] && b[A][v]), typeof T > "u" || !T.length || !T[0]) {
84
- var G = "";
85
- W = [];
86
- for (N in b[A])
87
- this.terminals_[N] && N > dt && W.push("'" + this.terminals_[N] + "'");
88
- _.showPosition ? G = "Parse error on line " + (C + 1) + `:
89
- ` + _.showPosition() + `
90
- Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : G = "Parse error on line " + (C + 1) + ": Unexpected " + (v == Q ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(G, {
91
- text: _.match,
92
- token: this.terminals_[v] || v,
93
- line: _.yylineno,
94
- loc: Y,
95
- expected: W
96
- });
97
- }
98
- if (T[0] instanceof Array && T.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + v);
100
- switch (T[0]) {
101
- case 1:
102
- l.push(v), p.push(_.yytext), o.push(_.yylloc), l.push(T[1]), v = null, Z = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
103
- break;
104
- case 2:
105
- if (M = this.productions_[T[1]][1], F.$ = p[p.length - M], F._$ = {
106
- first_line: o[o.length - (M || 1)].first_line,
107
- last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - (M || 1)].first_column,
109
- last_column: o[o.length - 1].last_column
110
- }, ft && (F._$.range = [
111
- o[o.length - (M || 1)].range[0],
112
- o[o.length - 1].range[1]
113
- ]), q = this.performAction.apply(F, [
114
- k,
115
- Z,
116
- C,
117
- I.yy,
118
- T[1],
119
- p,
120
- o
121
- ].concat(yt)), typeof q < "u")
122
- return q;
123
- M && (l = l.slice(0, -1 * M * 2), p = p.slice(0, -1 * M), o = o.slice(0, -1 * M)), l.push(this.productions_[T[1]][0]), p.push(F.$), o.push(F._$), tt = b[l[l.length - 2]][l[l.length - 1]], l.push(tt);
124
- break;
125
- case 3:
126
- return !0;
127
- }
128
- }
129
- return !0;
130
- }, "parse")
131
- }, m = /* @__PURE__ */ function() {
132
- var h = {
133
- EOF: 1,
134
- parseError: /* @__PURE__ */ n(function(a, l) {
135
- if (this.yy.parser)
136
- this.yy.parser.parseError(a, l);
137
- else
138
- throw new Error(a);
139
- }, "parseError"),
140
- // resets the lexer, sets new input
141
- setInput: /* @__PURE__ */ n(function(i, a) {
142
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
- first_line: 1,
144
- first_column: 0,
145
- last_line: 1,
146
- last_column: 0
147
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
- }, "setInput"),
149
- // consumes and returns one char from the input
150
- input: /* @__PURE__ */ n(function() {
151
- var i = this._input[0];
152
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
153
- var a = i.match(/(?:\r\n?|\n).*/g);
154
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
155
- }, "input"),
156
- // unshifts one char (or a string) into the input
157
- unput: /* @__PURE__ */ n(function(i) {
158
- var a = i.length, l = i.split(/(?:\r\n?|\n)/g);
159
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
- var d = this.match.split(/(?:\r\n?|\n)/g);
161
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
162
- var p = this.yylloc.range;
163
- return this.yylloc = {
164
- first_line: this.yylloc.first_line,
165
- last_line: this.yylineno + 1,
166
- first_column: this.yylloc.first_column,
167
- last_column: l ? (l.length === d.length ? this.yylloc.first_column : 0) + d[d.length - l.length].length - l[0].length : this.yylloc.first_column - a
168
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
- }, "unput"),
170
- // When called from action, caches matched text and appends it on next action
171
- more: /* @__PURE__ */ n(function() {
172
- return this._more = !0, this;
173
- }, "more"),
174
- // 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.
175
- reject: /* @__PURE__ */ n(function() {
176
- if (this.options.backtrack_lexer)
177
- this._backtrack = !0;
178
- else
179
- 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).
180
- ` + this.showPosition(), {
181
- text: "",
182
- token: null,
183
- line: this.yylineno
184
- });
185
- return this;
186
- }, "reject"),
187
- // retain first n characters of the match
188
- less: /* @__PURE__ */ n(function(i) {
189
- this.unput(this.match.slice(i));
190
- }, "less"),
191
- // displays already matched input, i.e. for error messages
192
- pastInput: /* @__PURE__ */ n(function() {
193
- var i = this.matched.substr(0, this.matched.length - this.match.length);
194
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
195
- }, "pastInput"),
196
- // displays upcoming input, i.e. for error messages
197
- upcomingInput: /* @__PURE__ */ n(function() {
198
- var i = this.match;
199
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
200
- }, "upcomingInput"),
201
- // displays the character position where the lexing error occurred, i.e. for error messages
202
- showPosition: /* @__PURE__ */ n(function() {
203
- var i = this.pastInput(), a = new Array(i.length + 1).join("-");
204
- return i + this.upcomingInput() + `
205
- ` + a + "^";
206
- }, "showPosition"),
207
- // test the lexed token: return FALSE when not a match, otherwise return token
208
- test_match: /* @__PURE__ */ n(function(i, a) {
209
- var l, d, p;
210
- if (this.options.backtrack_lexer && (p = {
211
- yylineno: this.yylineno,
212
- yylloc: {
213
- first_line: this.yylloc.first_line,
214
- last_line: this.last_line,
215
- first_column: this.yylloc.first_column,
216
- last_column: this.yylloc.last_column
217
- },
218
- yytext: this.yytext,
219
- match: this.match,
220
- matches: this.matches,
221
- matched: this.matched,
222
- yyleng: this.yyleng,
223
- offset: this.offset,
224
- _more: this._more,
225
- _input: this._input,
226
- yy: this.yy,
227
- conditionStack: this.conditionStack.slice(0),
228
- done: this.done
229
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
230
- first_line: this.yylloc.last_line,
231
- last_line: this.yylineno + 1,
232
- first_column: this.yylloc.last_column,
233
- last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
234
- }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
235
- return l;
236
- if (this._backtrack) {
237
- for (var o in p)
238
- this[o] = p[o];
239
- return !1;
240
- }
241
- return !1;
242
- }, "test_match"),
243
- // return next match in input
244
- next: /* @__PURE__ */ n(function() {
245
- if (this.done)
246
- return this.EOF;
247
- this._input || (this.done = !0);
248
- var i, a, l, d;
249
- this._more || (this.yytext = "", this.match = "");
250
- for (var p = this._currentRules(), o = 0; o < p.length; o++)
251
- if (l = this._input.match(this.rules[p[o]]), l && (!a || l[0].length > a[0].length)) {
252
- if (a = l, d = o, this.options.backtrack_lexer) {
253
- if (i = this.test_match(l, p[o]), i !== !1)
254
- return i;
255
- if (this._backtrack) {
256
- a = !1;
257
- continue;
258
- } else
259
- return !1;
260
- } else if (!this.options.flex)
261
- break;
262
- }
263
- return a ? (i = this.test_match(a, p[d]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
- ` + this.showPosition(), {
265
- text: "",
266
- token: null,
267
- line: this.yylineno
268
- });
269
- }, "next"),
270
- // return next match that has a token
271
- lex: /* @__PURE__ */ n(function() {
272
- var a = this.next();
273
- return a || this.lex();
274
- }, "lex"),
275
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
- begin: /* @__PURE__ */ n(function(a) {
277
- this.conditionStack.push(a);
278
- }, "begin"),
279
- // pop the previously active lexer condition state off the condition stack
280
- popState: /* @__PURE__ */ n(function() {
281
- var a = this.conditionStack.length - 1;
282
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
- }, "popState"),
284
- // produce the lexer rule set which is active for the currently active lexer condition state
285
- _currentRules: /* @__PURE__ */ n(function() {
286
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
- }, "_currentRules"),
288
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
- topState: /* @__PURE__ */ n(function(a) {
290
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
- }, "topState"),
292
- // alias for begin(condition)
293
- pushState: /* @__PURE__ */ n(function(a) {
294
- this.begin(a);
295
- }, "pushState"),
296
- // return the number of states currently on the stack
297
- stateStackSize: /* @__PURE__ */ n(function() {
298
- return this.conditionStack.length;
299
- }, "stateStackSize"),
300
- options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ n(function(a, l, d, p) {
302
- switch (d) {
303
- case 0:
304
- break;
305
- case 1:
306
- break;
307
- case 2:
308
- return 10;
309
- case 3:
310
- break;
311
- case 4:
312
- break;
313
- case 5:
314
- return 4;
315
- case 6:
316
- return 11;
317
- case 7:
318
- return this.begin("acc_title"), 12;
319
- case 8:
320
- return this.popState(), "acc_title_value";
321
- case 9:
322
- return this.begin("acc_descr"), 14;
323
- case 10:
324
- return this.popState(), "acc_descr_value";
325
- case 11:
326
- this.begin("acc_descr_multiline");
327
- break;
328
- case 12:
329
- this.popState();
330
- break;
331
- case 13:
332
- return "acc_descr_multiline_value";
333
- case 14:
334
- return 17;
335
- case 15:
336
- return 18;
337
- case 16:
338
- return 19;
339
- case 17:
340
- return ":";
341
- case 18:
342
- return 6;
343
- case 19:
344
- return "INVALID";
345
- }
346
- }, "anonymous"),
347
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\b)/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, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
348
- conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
349
- };
350
- return h;
351
- }();
352
- g.lexer = m;
353
- function x() {
354
- this.yy = {};
355
- }
356
- return n(x, "Parser"), x.prototype = g, g.Parser = x, new x();
357
- }();
358
- U.parser = U;
359
- var Et = U, V = "", J = [], L = [], B = [], Ct = /* @__PURE__ */ n(function() {
360
- J.length = 0, L.length = 0, V = "", B.length = 0, $t();
361
- }, "clear"), Pt = /* @__PURE__ */ n(function(t) {
362
- V = t, J.push(t);
363
- }, "addSection"), It = /* @__PURE__ */ n(function() {
364
- return J;
365
- }, "getSections"), At = /* @__PURE__ */ n(function() {
366
- let t = it();
367
- const e = 100;
368
- let s = 0;
369
- for (; !t && s < e; )
370
- t = it(), s++;
371
- return L.push(...B), L;
372
- }, "getTasks"), Ft = /* @__PURE__ */ n(function() {
373
- const t = [];
374
- return L.forEach((s) => {
375
- s.people && t.push(...s.people);
376
- }), [...new Set(t)].sort();
377
- }, "updateActors"), Vt = /* @__PURE__ */ n(function(t, e) {
378
- const s = e.substr(1).split(":");
379
- let c = 0, r = [];
380
- s.length === 1 ? (c = Number(s[0]), r = []) : (c = Number(s[0]), r = s[1].split(","));
381
- const f = r.map((y) => y.trim()), u = {
382
- section: V,
383
- type: V,
384
- people: f,
385
- task: t,
386
- score: c
387
- };
388
- B.push(u);
389
- }, "addTask"), Rt = /* @__PURE__ */ n(function(t) {
390
- const e = {
391
- section: V,
392
- type: V,
393
- description: t,
394
- task: t,
395
- classes: []
396
- };
397
- L.push(e);
398
- }, "addTaskOrg"), it = /* @__PURE__ */ n(function() {
399
- const t = /* @__PURE__ */ n(function(s) {
400
- return B[s].processed;
401
- }, "compileTask");
402
- let e = !0;
403
- for (const [s, c] of B.entries())
404
- t(s), e = e && c.processed;
405
- return e;
406
- }, "compileTasks"), Lt = /* @__PURE__ */ n(function() {
407
- return Ft();
408
- }, "getActors"), rt = {
409
- getConfig: /* @__PURE__ */ n(() => R().journey, "getConfig"),
410
- clear: Ct,
411
- setDiagramTitle: _t,
412
- getDiagramTitle: vt,
413
- setAccTitle: bt,
414
- getAccTitle: wt,
415
- setAccDescription: Tt,
416
- getAccDescription: St,
417
- addSection: Pt,
418
- getSections: It,
419
- getTasks: At,
420
- addTask: Vt,
421
- addTaskOrg: Rt,
422
- getActors: Lt
423
- }, Bt = /* @__PURE__ */ n((t) => `.label {
424
- font-family: ${t.fontFamily};
425
- color: ${t.textColor};
426
- }
427
- .mouth {
428
- stroke: #666;
429
- }
430
-
431
- line {
432
- stroke: ${t.textColor}
433
- }
434
-
435
- .legend {
436
- fill: ${t.textColor};
437
- font-family: ${t.fontFamily};
438
- }
439
-
440
- .label text {
441
- fill: #333;
442
- }
443
- .label {
444
- color: ${t.textColor}
445
- }
446
-
447
- .face {
448
- ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
449
- stroke: #999;
450
- }
451
-
452
- .node rect,
453
- .node circle,
454
- .node ellipse,
455
- .node polygon,
456
- .node path {
457
- fill: ${t.mainBkg};
458
- stroke: ${t.nodeBorder};
459
- stroke-width: 1px;
460
- }
461
-
462
- .node .label {
463
- text-align: center;
464
- }
465
- .node.clickable {
466
- cursor: pointer;
467
- }
468
-
469
- .arrowheadPath {
470
- fill: ${t.arrowheadColor};
471
- }
472
-
473
- .edgePath .path {
474
- stroke: ${t.lineColor};
475
- stroke-width: 1.5px;
476
- }
477
-
478
- .flowchart-link {
479
- stroke: ${t.lineColor};
480
- fill: none;
481
- }
482
-
483
- .edgeLabel {
484
- background-color: ${t.edgeLabelBackground};
485
- rect {
486
- opacity: 0.5;
487
- }
488
- text-align: center;
489
- }
490
-
491
- .cluster rect {
492
- }
493
-
494
- .cluster text {
495
- fill: ${t.titleColor};
496
- }
497
-
498
- div.mermaidTooltip {
499
- position: absolute;
500
- text-align: center;
501
- max-width: 200px;
502
- padding: 2px;
503
- font-family: ${t.fontFamily};
504
- font-size: 12px;
505
- background: ${t.tertiaryColor};
506
- border: 1px solid ${t.border2};
507
- border-radius: 2px;
508
- pointer-events: none;
509
- z-index: 100;
510
- }
511
-
512
- .task-type-0, .section-type-0 {
513
- ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
514
- }
515
- .task-type-1, .section-type-1 {
516
- ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
517
- }
518
- .task-type-2, .section-type-2 {
519
- ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
520
- }
521
- .task-type-3, .section-type-3 {
522
- ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
523
- }
524
- .task-type-4, .section-type-4 {
525
- ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
526
- }
527
- .task-type-5, .section-type-5 {
528
- ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
529
- }
530
- .task-type-6, .section-type-6 {
531
- ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
532
- }
533
- .task-type-7, .section-type-7 {
534
- ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
535
- }
536
-
537
- .actor-0 {
538
- ${t.actor0 ? `fill: ${t.actor0}` : ""};
539
- }
540
- .actor-1 {
541
- ${t.actor1 ? `fill: ${t.actor1}` : ""};
542
- }
543
- .actor-2 {
544
- ${t.actor2 ? `fill: ${t.actor2}` : ""};
545
- }
546
- .actor-3 {
547
- ${t.actor3 ? `fill: ${t.actor3}` : ""};
548
- }
549
- .actor-4 {
550
- ${t.actor4 ? `fill: ${t.actor4}` : ""};
551
- }
552
- .actor-5 {
553
- ${t.actor5 ? `fill: ${t.actor5}` : ""};
554
- }
555
- ${kt()}
556
- `, "getStyles"), jt = Bt, K = /* @__PURE__ */ n(function(t, e) {
557
- return gt(t, e);
558
- }, "drawRect"), Nt = /* @__PURE__ */ n(function(t, e) {
559
- const c = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = t.append("g");
560
- r.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
561
- function f(g) {
562
- const m = et().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
563
- g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
564
- }
565
- n(f, "smile");
566
- function u(g) {
567
- const m = et().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
568
- g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
569
- }
570
- n(u, "sad");
571
- function y(g) {
572
- g.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
573
- }
574
- return n(y, "ambivalent"), e.score > 3 ? f(r) : e.score < 3 ? u(r) : y(r), c;
575
- }, "drawFace"), ot = /* @__PURE__ */ n(function(t, e) {
576
- const s = t.append("circle");
577
- return s.attr("cx", e.cx), s.attr("cy", e.cy), s.attr("class", "actor-" + e.pos), s.attr("fill", e.fill), s.attr("stroke", e.stroke), s.attr("r", e.r), s.class !== void 0 && s.attr("class", s.class), e.title !== void 0 && s.append("title").text(e.title), s;
578
- }, "drawCircle"), ct = /* @__PURE__ */ n(function(t, e) {
579
- return mt(t, e);
580
- }, "drawText"), Wt = /* @__PURE__ */ n(function(t, e) {
581
- function s(r, f, u, y, g) {
582
- return r + "," + f + " " + (r + u) + "," + f + " " + (r + u) + "," + (f + y - g) + " " + (r + u - g * 1.2) + "," + (f + y) + " " + r + "," + (f + y);
583
- }
584
- n(s, "genPoints");
585
- const c = t.append("polygon");
586
- c.attr("points", s(e.x, e.y, 50, 20, 7)), c.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ct(t, e);
587
- }, "drawLabel"), zt = /* @__PURE__ */ n(function(t, e, s) {
588
- const c = t.append("g"), r = lt();
589
- r.x = e.x, r.y = e.y, r.fill = e.fill, r.width = s.width * e.taskCount + // width of the tasks
590
- s.diagramMarginX * (e.taskCount - 1), r.height = s.height, r.class = "journey-section section-type-" + e.num, r.rx = 3, r.ry = 3, K(c, r), ht(s)(
591
- e.text,
592
- c,
593
- r.x,
594
- r.y,
595
- r.width,
596
- r.height,
597
- { class: "journey-section section-type-" + e.num },
598
- s,
599
- e.colour
600
- );
601
- }, "drawSection"), nt = -1, Ot = /* @__PURE__ */ n(function(t, e, s) {
602
- const c = e.x + s.width / 2, r = t.append("g");
603
- nt++;
604
- const f = 300 + 5 * 30;
605
- r.append("line").attr("id", "task" + nt).attr("x1", c).attr("y1", e.y).attr("x2", c).attr("y2", f).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(r, {
606
- cx: c,
607
- cy: 300 + (5 - e.score) * 30,
608
- score: e.score
609
- });
610
- const u = lt();
611
- u.x = e.x, u.y = e.y, u.fill = e.fill, u.width = s.width, u.height = s.height, u.class = "task task-type-" + e.num, u.rx = 3, u.ry = 3, K(r, u);
612
- let y = e.x + 14;
613
- e.people.forEach((g) => {
614
- const m = e.actors[g].color, x = {
615
- cx: y,
616
- cy: e.y,
617
- r: 7,
618
- fill: m,
619
- stroke: "#000",
620
- title: g,
621
- pos: e.actors[g].position
622
- };
623
- ot(r, x), y += 10;
624
- }), ht(s)(
625
- e.task,
626
- r,
627
- u.x,
628
- u.y,
629
- u.width,
630
- u.height,
631
- { class: "task" },
632
- s,
633
- e.colour
634
- );
635
- }, "drawTask"), Yt = /* @__PURE__ */ n(function(t, e) {
636
- xt(t, e);
637
- }, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
638
- function t(r, f, u, y, g, m, x, h) {
639
- const i = f.append("text").attr("x", u + g / 2).attr("y", y + m / 2 + 5).style("font-color", h).style("text-anchor", "middle").text(r);
640
- c(i, x);
641
- }
642
- n(t, "byText");
643
- function e(r, f, u, y, g, m, x, h, i) {
644
- const { taskFontSize: a, taskFontFamily: l } = h, d = r.split(/<br\s*\/?>/gi);
645
- for (let p = 0; p < d.length; p++) {
646
- const o = p * a - a * (d.length - 1) / 2, b = f.append("text").attr("x", u + g / 2).attr("y", y).attr("fill", i).style("text-anchor", "middle").style("font-size", a).style("font-family", l);
647
- b.append("tspan").attr("x", u + g / 2).attr("dy", o).text(d[p]), b.attr("y", y + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), c(b, x);
648
- }
649
- }
650
- n(e, "byTspan");
651
- function s(r, f, u, y, g, m, x, h) {
652
- const i = f.append("switch"), l = i.append("foreignObject").attr("x", u).attr("y", y).attr("width", g).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
653
- l.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), e(r, i, u, y, g, m, x, h), c(l, x);
654
- }
655
- n(s, "byFo");
656
- function c(r, f) {
657
- for (const u in f)
658
- u in f && r.attr(u, f[u]);
659
- }
660
- return n(c, "_setTextAttrs"), function(r) {
661
- return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? t : e;
662
- };
663
- }(), qt = /* @__PURE__ */ n(function(t) {
664
- t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
665
- }, "initGraphics"), j = {
666
- drawRect: K,
667
- drawCircle: ot,
668
- drawSection: zt,
669
- drawText: ct,
670
- drawLabel: Wt,
671
- drawTask: Ot,
672
- drawBackgroundRect: Yt,
673
- initGraphics: qt
674
- }, Gt = /* @__PURE__ */ n(function(t) {
675
- Object.keys(t).forEach(function(s) {
676
- $[s] = t[s];
677
- });
678
- }, "setConf"), E = {}, z = 0;
679
- function ut(t) {
680
- const e = R().journey, s = e.maxLabelWidth;
681
- z = 0;
682
- let c = 60;
683
- Object.keys(E).forEach((r) => {
684
- const f = E[r].color, u = {
685
- cx: 20,
686
- cy: c,
687
- r: 7,
688
- fill: f,
689
- stroke: "#000",
690
- pos: E[r].position
691
- };
692
- j.drawCircle(t, u);
693
- let y = t.append("text").attr("visibility", "hidden").text(r);
694
- const g = y.node().getBoundingClientRect().width;
695
- y.remove();
696
- let m = [];
697
- if (g <= s)
698
- m = [r];
699
- else {
700
- const x = r.split(" ");
701
- let h = "";
702
- y = t.append("text").attr("visibility", "hidden"), x.forEach((i) => {
703
- const a = h ? `${h} ${i}` : i;
704
- if (y.text(a), y.node().getBoundingClientRect().width > s) {
705
- if (h && m.push(h), h = i, y.text(i), y.node().getBoundingClientRect().width > s) {
706
- let d = "";
707
- for (const p of i)
708
- d += p, y.text(d + "-"), y.node().getBoundingClientRect().width > s && (m.push(d.slice(0, -1) + "-"), d = p);
709
- h = d;
710
- }
711
- } else
712
- h = a;
713
- }), h && m.push(h), y.remove();
714
- }
715
- m.forEach((x, h) => {
716
- const i = {
717
- x: 40,
718
- y: c + 7 + h * 20,
719
- fill: "#666",
720
- text: x,
721
- textMargin: e.boxTextMargin ?? 5
722
- }, l = j.drawText(t, i).node().getBoundingClientRect().width;
723
- l > z && l > e.leftMargin - l && (z = l);
724
- }), c += Math.max(20, m.length * 20);
725
- });
726
- }
727
- n(ut, "drawActorLegend");
728
- var $ = R().journey, P = 0, Xt = /* @__PURE__ */ n(function(t, e, s, c) {
729
- const r = R(), f = r.journey.titleColor, u = r.journey.titleFontSize, y = r.journey.titleFontFamily, g = r.securityLevel;
730
- let m;
731
- g === "sandbox" && (m = X("#i" + e));
732
- const x = g === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
733
- S.init();
734
- const h = x.select("#" + e);
735
- j.initGraphics(h);
736
- const i = c.db.getTasks(), a = c.db.getDiagramTitle(), l = c.db.getActors();
737
- for (const C in E)
738
- delete E[C];
739
- let d = 0;
740
- l.forEach((C) => {
741
- E[C] = {
742
- color: $.actorColours[d % $.actorColours.length],
743
- position: d
744
- }, d++;
745
- }), ut(h), P = $.leftMargin + z, S.insert(0, 0, P, Object.keys(E).length * 50), Ht(h, i, 0);
746
- const p = S.getBounds();
747
- a && h.append("text").text(a).attr("x", P).attr("font-size", u).attr("font-weight", "bold").attr("y", 25).attr("fill", f).attr("font-family", y);
748
- const o = p.stopy - p.starty + 2 * $.diagramMarginY, b = P + p.stopx + 2 * $.diagramMarginX;
749
- Mt(h, o, b, $.useMaxWidth), h.append("line").attr("x1", P).attr("y1", $.height * 4).attr("x2", b - P - 4).attr("y2", $.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
750
- const k = a ? 70 : 0;
751
- h.attr("viewBox", `${p.startx} -25 ${b} ${o + k}`), h.attr("preserveAspectRatio", "xMinYMin meet"), h.attr("height", o + k + 25);
752
- }, "draw"), S = {
753
- data: {
754
- startx: void 0,
755
- stopx: void 0,
756
- starty: void 0,
757
- stopy: void 0
758
- },
759
- verticalPos: 0,
760
- sequenceItems: [],
761
- init: /* @__PURE__ */ n(function() {
762
- this.sequenceItems = [], this.data = {
763
- startx: void 0,
764
- stopx: void 0,
765
- starty: void 0,
766
- stopy: void 0
767
- }, this.verticalPos = 0;
768
- }, "init"),
769
- updateVal: /* @__PURE__ */ n(function(t, e, s, c) {
770
- t[e] === void 0 ? t[e] = s : t[e] = c(s, t[e]);
771
- }, "updateVal"),
772
- updateBounds: /* @__PURE__ */ n(function(t, e, s, c) {
773
- const r = R().journey, f = this;
774
- let u = 0;
775
- function y(g) {
776
- return /* @__PURE__ */ n(function(x) {
777
- u++;
778
- const h = f.sequenceItems.length - u + 1;
779
- f.updateVal(x, "starty", e - h * r.boxMargin, Math.min), f.updateVal(x, "stopy", c + h * r.boxMargin, Math.max), f.updateVal(S.data, "startx", t - h * r.boxMargin, Math.min), f.updateVal(S.data, "stopx", s + h * r.boxMargin, Math.max), g !== "activation" && (f.updateVal(x, "startx", t - h * r.boxMargin, Math.min), f.updateVal(x, "stopx", s + h * r.boxMargin, Math.max), f.updateVal(S.data, "starty", e - h * r.boxMargin, Math.min), f.updateVal(S.data, "stopy", c + h * r.boxMargin, Math.max));
780
- }, "updateItemBounds");
781
- }
782
- n(y, "updateFn"), this.sequenceItems.forEach(y());
783
- }, "updateBounds"),
784
- insert: /* @__PURE__ */ n(function(t, e, s, c) {
785
- const r = Math.min(t, s), f = Math.max(t, s), u = Math.min(e, c), y = Math.max(e, c);
786
- this.updateVal(S.data, "startx", r, Math.min), this.updateVal(S.data, "starty", u, Math.min), this.updateVal(S.data, "stopx", f, Math.max), this.updateVal(S.data, "stopy", y, Math.max), this.updateBounds(r, u, f, y);
787
- }, "insert"),
788
- bumpVerticalPos: /* @__PURE__ */ n(function(t) {
789
- this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
790
- }, "bumpVerticalPos"),
791
- getVerticalPos: /* @__PURE__ */ n(function() {
792
- return this.verticalPos;
793
- }, "getVerticalPos"),
794
- getBounds: /* @__PURE__ */ n(function() {
795
- return this.data;
796
- }, "getBounds")
797
- }, H = $.sectionFills, st = $.sectionColours, Ht = /* @__PURE__ */ n(function(t, e, s) {
798
- const c = R().journey;
799
- let r = "";
800
- const f = c.height * 2 + c.diagramMarginY, u = s + f;
801
- let y = 0, g = "#CCC", m = "black", x = 0;
802
- for (const [h, i] of e.entries()) {
803
- if (r !== i.section) {
804
- g = H[y % H.length], x = y % H.length, m = st[y % st.length];
805
- let l = 0;
806
- const d = i.section;
807
- for (let o = h; o < e.length && e[o].section == d; o++)
808
- l = l + 1;
809
- const p = {
810
- x: h * c.taskMargin + h * c.width + P,
811
- y: 50,
812
- text: i.section,
813
- fill: g,
814
- num: x,
815
- colour: m,
816
- taskCount: l
817
- };
818
- j.drawSection(t, p, c), r = i.section, y++;
819
- }
820
- const a = i.people.reduce((l, d) => (E[d] && (l[d] = E[d]), l), {});
821
- i.x = h * c.taskMargin + h * c.width + P, i.y = u, i.width = c.diagramMarginX, i.height = c.diagramMarginY, i.colour = m, i.fill = g, i.num = x, i.actors = a, j.drawTask(t, i, c), S.insert(i.x, i.y, i.x + i.width + c.taskMargin, 300 + 5 * 30);
822
- }
823
- }, "drawTasks"), at = {
824
- setConf: Gt,
825
- draw: Xt
826
- }, Dt = {
827
- parser: Et,
828
- db: rt,
829
- renderer: at,
830
- styles: jt,
831
- init: /* @__PURE__ */ n((t) => {
832
- at.setConf(t.journey), rt.clear();
833
- }, "init")
834
- };
835
- export {
836
- Dt as diagram
837
- };