@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,1025 +0,0 @@
1
- import { aG as o, be as _e, b6 as D, aS as At, aM as wt, aR as Ae, aW as ie, aI as ke, aJ as Fe, aV as Pe, aK as ve, aL as Ce, b0 as Le, aT as Ee } from "./CoachForm.js";
2
- import { s as zt } from "./redux-toolkit.modern.js";
3
- import { l as ee } from "./linear.js";
4
- var Vt = function() {
5
- var t = /* @__PURE__ */ o(function(j, r, l, g) {
6
- for (l = l || {}, g = j.length; g--; l[j[g]] = r) ;
7
- return l;
8
- }, "o"), n = [1, 3], u = [1, 4], c = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], S = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], A = [2, 36], d = [1, 37], T = [1, 36], q = [1, 38], m = [1, 35], b = [1, 43], x = [1, 41], O = [1, 14], Y = [1, 23], G = [1, 18], yt = [1, 19], Tt = [1, 20], dt = [1, 21], Ft = [1, 22], ut = [1, 24], xt = [1, 25], ft = [1, 26], gt = [1, 27], i = [1, 28], Rt = [1, 29], W = [1, 32], U = [1, 33], k = [1, 34], F = [1, 39], P = [1, 40], v = [1, 42], C = [1, 44], H = [1, 62], X = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Bt = [1, 65], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], I = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], Z = [1, 90], $ = [1, 91], tt = [1, 92], et = [1, 99], it = [1, 93], at = [1, 96], nt = [1, 94], st = [1, 95], rt = [1, 97], ot = [1, 98], Pt = [1, 102], Kt = [10, 55, 56, 57], B = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], vt = {
9
- trace: /* @__PURE__ */ o(function() {
10
- }, "trace"),
11
- yy: {},
12
- symbols_: { error: 2, idStringToken: 3, ALPHA: 4, NUM: 5, NODE_STRING: 6, DOWN: 7, MINUS: 8, DEFAULT: 9, COMMA: 10, COLON: 11, AMP: 12, BRKT: 13, MULT: 14, UNICODE_TEXT: 15, styleComponent: 16, UNIT: 17, SPACE: 18, STYLE: 19, PCT: 20, idString: 21, style: 22, stylesOpt: 23, classDefStatement: 24, CLASSDEF: 25, start: 26, eol: 27, QUADRANT: 28, document: 29, line: 30, statement: 31, axisDetails: 32, quadrantDetails: 33, points: 34, title: 35, title_value: 36, acc_title: 37, acc_title_value: 38, acc_descr: 39, acc_descr_value: 40, acc_descr_multiline_value: 41, section: 42, text: 43, point_start: 44, point_x: 45, point_y: 46, class_name: 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, QUADRANT_1: 51, QUADRANT_2: 52, QUADRANT_3: 53, QUADRANT_4: 54, NEWLINE: 55, SEMI: 56, EOF: 57, alphaNumToken: 58, textNoTagsToken: 59, STR: 60, MD_STR: 61, alphaNum: 62, PUNCTUATION: 63, PLUS: 64, EQUALS: 65, DOT: 66, UNDERSCORE: 67, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
14
- productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
15
- performAction: /* @__PURE__ */ o(function(r, l, g, f, _, e, pt) {
16
- var s = e.length - 1;
17
- switch (_) {
18
- case 23:
19
- this.$ = e[s];
20
- break;
21
- case 24:
22
- this.$ = e[s - 1] + "" + e[s];
23
- break;
24
- case 26:
25
- this.$ = e[s - 1] + e[s];
26
- break;
27
- case 27:
28
- this.$ = [e[s].trim()];
29
- break;
30
- case 28:
31
- e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
32
- break;
33
- case 29:
34
- this.$ = e[s - 4], f.addClass(e[s - 2], e[s]);
35
- break;
36
- case 37:
37
- this.$ = [];
38
- break;
39
- case 42:
40
- this.$ = e[s].trim(), f.setDiagramTitle(this.$);
41
- break;
42
- case 43:
43
- this.$ = e[s].trim(), f.setAccTitle(this.$);
44
- break;
45
- case 44:
46
- case 45:
47
- this.$ = e[s].trim(), f.setAccDescription(this.$);
48
- break;
49
- case 46:
50
- f.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
51
- break;
52
- case 47:
53
- f.addPoint(e[s - 3], "", e[s - 1], e[s], []);
54
- break;
55
- case 48:
56
- f.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
57
- break;
58
- case 49:
59
- f.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
60
- break;
61
- case 50:
62
- f.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
63
- break;
64
- case 51:
65
- f.setXAxisLeftText(e[s - 2]), f.setXAxisRightText(e[s]);
66
- break;
67
- case 52:
68
- e[s - 1].text += " ⟶ ", f.setXAxisLeftText(e[s - 1]);
69
- break;
70
- case 53:
71
- f.setXAxisLeftText(e[s]);
72
- break;
73
- case 54:
74
- f.setYAxisBottomText(e[s - 2]), f.setYAxisTopText(e[s]);
75
- break;
76
- case 55:
77
- e[s - 1].text += " ⟶ ", f.setYAxisBottomText(e[s - 1]);
78
- break;
79
- case 56:
80
- f.setYAxisBottomText(e[s]);
81
- break;
82
- case 57:
83
- f.setQuadrant1Text(e[s]);
84
- break;
85
- case 58:
86
- f.setQuadrant2Text(e[s]);
87
- break;
88
- case 59:
89
- f.setQuadrant3Text(e[s]);
90
- break;
91
- case 60:
92
- f.setQuadrant4Text(e[s]);
93
- break;
94
- case 64:
95
- this.$ = { text: e[s], type: "text" };
96
- break;
97
- case 65:
98
- this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
99
- break;
100
- case 66:
101
- this.$ = { text: e[s], type: "text" };
102
- break;
103
- case 67:
104
- this.$ = { text: e[s], type: "markdown" };
105
- break;
106
- case 68:
107
- this.$ = e[s];
108
- break;
109
- case 69:
110
- this.$ = e[s - 1] + "" + e[s];
111
- break;
112
- }
113
- }, "anonymous"),
114
- table: [{ 18: n, 26: 1, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: u, 55: c, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(S, [2, 61]), t(S, [2, 62]), t(S, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, A, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Rt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(y, [2, 34]), { 27: 45, 55: c, 56: h, 57: p }, t(a, [2, 37]), t(a, A, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Rt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 50] }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 51, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 52, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 53, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 54, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 55, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 56, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: k, 64: F, 65: P, 66: v, 67: C }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 64, 4: Bt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 21: 63 }, t(a, [2, 53], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 77], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 56], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 78], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 57], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 58], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 59], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 60], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Bt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 18: [1, 81] }, t(I, [2, 23]), t(I, [2, 1]), t(I, [2, 2]), t(I, [2, 3]), t(I, [2, 4]), t(I, [2, 5]), t(I, [2, 6]), t(I, [2, 7]), t(I, [2, 8]), t(I, [2, 9]), t(I, [2, 10]), t(I, [2, 11]), t(I, [2, 12]), t(a, [2, 52], { 58: 31, 43: 83, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 55], { 58: 31, 43: 84, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 88, 23: 87 }, t(I, [2, 24]), t(a, [2, 51], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 54], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 47], { 22: 88, 16: 89, 23: 100, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 46: [1, 101] }, t(a, [2, 29], { 10: Pt }), t(Kt, [2, 27], { 16: 103, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), t(B, [2, 25]), t(B, [2, 13]), t(B, [2, 14]), t(B, [2, 15]), t(B, [2, 16]), t(B, [2, 17]), t(B, [2, 18]), t(B, [2, 19]), t(B, [2, 20]), t(B, [2, 21]), t(B, [2, 22]), t(a, [2, 49], { 10: Pt }), t(a, [2, 48], { 22: 88, 16: 89, 23: 104, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 105 }, t(B, [2, 26]), t(a, [2, 50], { 10: Pt }), t(Kt, [2, 28], { 16: 103, 4: Z, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot })],
115
- defaultActions: { 8: [2, 30], 9: [2, 31] },
116
- parseError: /* @__PURE__ */ o(function(r, l) {
117
- if (l.recoverable)
118
- this.trace(r);
119
- else {
120
- var g = new Error(r);
121
- throw g.hash = l, g;
122
- }
123
- }, "parseError"),
124
- parse: /* @__PURE__ */ o(function(r) {
125
- var l = this, g = [0], f = [], _ = [null], e = [], pt = this.table, s = "", mt = 0, Jt = 0, qe = 2, Zt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), K = { yy: {} };
126
- for (var Ct in this.yy)
127
- Object.prototype.hasOwnProperty.call(this.yy, Ct) && (K.yy[Ct] = this.yy[Ct]);
128
- E.setInput(r, K.yy), K.yy.lexer = E, K.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
129
- var Lt = E.yylloc;
130
- e.push(Lt);
131
- var be = E.options && E.options.ranges;
132
- typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
133
- function Se(R) {
134
- g.length = g.length - 2 * R, _.length = _.length - R, e.length = e.length - R;
135
- }
136
- o(Se, "popStack");
137
- function $t() {
138
- var R;
139
- return R = f.pop() || E.lex() || Zt, typeof R != "number" && (R instanceof Array && (f = R, R = f.pop()), R = l.symbols_[R] || R), R;
140
- }
141
- o($t, "lex");
142
- for (var w, J, N, Et, lt = {}, bt, M, te, St; ; ) {
143
- if (J = g[g.length - 1], this.defaultActions[J] ? N = this.defaultActions[J] : ((w === null || typeof w > "u") && (w = $t()), N = pt[J] && pt[J][w]), typeof N > "u" || !N.length || !N[0]) {
144
- var Dt = "";
145
- St = [];
146
- for (bt in pt[J])
147
- this.terminals_[bt] && bt > qe && St.push("'" + this.terminals_[bt] + "'");
148
- E.showPosition ? Dt = "Parse error on line " + (mt + 1) + `:
149
- ` + E.showPosition() + `
150
- Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt = "Parse error on line " + (mt + 1) + ": Unexpected " + (w == Zt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Dt, {
151
- text: E.match,
152
- token: this.terminals_[w] || w,
153
- line: E.yylineno,
154
- loc: Lt,
155
- expected: St
156
- });
157
- }
158
- if (N[0] instanceof Array && N.length > 1)
159
- throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + w);
160
- switch (N[0]) {
161
- case 1:
162
- g.push(w), _.push(E.yytext), e.push(E.yylloc), g.push(N[1]), w = null, Jt = E.yyleng, s = E.yytext, mt = E.yylineno, Lt = E.yylloc;
163
- break;
164
- case 2:
165
- if (M = this.productions_[N[1]][1], lt.$ = _[_.length - M], lt._$ = {
166
- first_line: e[e.length - (M || 1)].first_line,
167
- last_line: e[e.length - 1].last_line,
168
- first_column: e[e.length - (M || 1)].first_column,
169
- last_column: e[e.length - 1].last_column
170
- }, be && (lt._$.range = [
171
- e[e.length - (M || 1)].range[0],
172
- e[e.length - 1].range[1]
173
- ]), Et = this.performAction.apply(lt, [
174
- s,
175
- Jt,
176
- mt,
177
- K.yy,
178
- N[1],
179
- _,
180
- e
181
- ].concat(me)), typeof Et < "u")
182
- return Et;
183
- M && (g = g.slice(0, -1 * M * 2), _ = _.slice(0, -1 * M), e = e.slice(0, -1 * M)), g.push(this.productions_[N[1]][0]), _.push(lt.$), e.push(lt._$), te = pt[g[g.length - 2]][g[g.length - 1]], g.push(te);
184
- break;
185
- case 3:
186
- return !0;
187
- }
188
- }
189
- return !0;
190
- }, "parse")
191
- }, Te = /* @__PURE__ */ function() {
192
- var j = {
193
- EOF: 1,
194
- parseError: /* @__PURE__ */ o(function(l, g) {
195
- if (this.yy.parser)
196
- this.yy.parser.parseError(l, g);
197
- else
198
- throw new Error(l);
199
- }, "parseError"),
200
- // resets the lexer, sets new input
201
- setInput: /* @__PURE__ */ o(function(r, l) {
202
- return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
203
- first_line: 1,
204
- first_column: 0,
205
- last_line: 1,
206
- last_column: 0
207
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
208
- }, "setInput"),
209
- // consumes and returns one char from the input
210
- input: /* @__PURE__ */ o(function() {
211
- var r = this._input[0];
212
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
213
- var l = r.match(/(?:\r\n?|\n).*/g);
214
- return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
215
- }, "input"),
216
- // unshifts one char (or a string) into the input
217
- unput: /* @__PURE__ */ o(function(r) {
218
- var l = r.length, g = r.split(/(?:\r\n?|\n)/g);
219
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
220
- var f = this.match.split(/(?:\r\n?|\n)/g);
221
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
222
- var _ = this.yylloc.range;
223
- return this.yylloc = {
224
- first_line: this.yylloc.first_line,
225
- last_line: this.yylineno + 1,
226
- first_column: this.yylloc.first_column,
227
- last_column: g ? (g.length === f.length ? this.yylloc.first_column : 0) + f[f.length - g.length].length - g[0].length : this.yylloc.first_column - l
228
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
229
- }, "unput"),
230
- // When called from action, caches matched text and appends it on next action
231
- more: /* @__PURE__ */ o(function() {
232
- return this._more = !0, this;
233
- }, "more"),
234
- // 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.
235
- reject: /* @__PURE__ */ o(function() {
236
- if (this.options.backtrack_lexer)
237
- this._backtrack = !0;
238
- else
239
- 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).
240
- ` + this.showPosition(), {
241
- text: "",
242
- token: null,
243
- line: this.yylineno
244
- });
245
- return this;
246
- }, "reject"),
247
- // retain first n characters of the match
248
- less: /* @__PURE__ */ o(function(r) {
249
- this.unput(this.match.slice(r));
250
- }, "less"),
251
- // displays already matched input, i.e. for error messages
252
- pastInput: /* @__PURE__ */ o(function() {
253
- var r = this.matched.substr(0, this.matched.length - this.match.length);
254
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
255
- }, "pastInput"),
256
- // displays upcoming input, i.e. for error messages
257
- upcomingInput: /* @__PURE__ */ o(function() {
258
- var r = this.match;
259
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
260
- }, "upcomingInput"),
261
- // displays the character position where the lexing error occurred, i.e. for error messages
262
- showPosition: /* @__PURE__ */ o(function() {
263
- var r = this.pastInput(), l = new Array(r.length + 1).join("-");
264
- return r + this.upcomingInput() + `
265
- ` + l + "^";
266
- }, "showPosition"),
267
- // test the lexed token: return FALSE when not a match, otherwise return token
268
- test_match: /* @__PURE__ */ o(function(r, l) {
269
- var g, f, _;
270
- if (this.options.backtrack_lexer && (_ = {
271
- yylineno: this.yylineno,
272
- yylloc: {
273
- first_line: this.yylloc.first_line,
274
- last_line: this.last_line,
275
- first_column: this.yylloc.first_column,
276
- last_column: this.yylloc.last_column
277
- },
278
- yytext: this.yytext,
279
- match: this.match,
280
- matches: this.matches,
281
- matched: this.matched,
282
- yyleng: this.yyleng,
283
- offset: this.offset,
284
- _more: this._more,
285
- _input: this._input,
286
- yy: this.yy,
287
- conditionStack: this.conditionStack.slice(0),
288
- done: this.done
289
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = r[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
290
- first_line: this.yylloc.last_line,
291
- last_line: this.yylineno + 1,
292
- first_column: this.yylloc.last_column,
293
- last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
294
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
295
- return g;
296
- if (this._backtrack) {
297
- for (var e in _)
298
- this[e] = _[e];
299
- return !1;
300
- }
301
- return !1;
302
- }, "test_match"),
303
- // return next match in input
304
- next: /* @__PURE__ */ o(function() {
305
- if (this.done)
306
- return this.EOF;
307
- this._input || (this.done = !0);
308
- var r, l, g, f;
309
- this._more || (this.yytext = "", this.match = "");
310
- for (var _ = this._currentRules(), e = 0; e < _.length; e++)
311
- if (g = this._input.match(this.rules[_[e]]), g && (!l || g[0].length > l[0].length)) {
312
- if (l = g, f = e, this.options.backtrack_lexer) {
313
- if (r = this.test_match(g, _[e]), r !== !1)
314
- return r;
315
- if (this._backtrack) {
316
- l = !1;
317
- continue;
318
- } else
319
- return !1;
320
- } else if (!this.options.flex)
321
- break;
322
- }
323
- return l ? (r = this.test_match(l, _[f]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
324
- ` + this.showPosition(), {
325
- text: "",
326
- token: null,
327
- line: this.yylineno
328
- });
329
- }, "next"),
330
- // return next match that has a token
331
- lex: /* @__PURE__ */ o(function() {
332
- var l = this.next();
333
- return l || this.lex();
334
- }, "lex"),
335
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
336
- begin: /* @__PURE__ */ o(function(l) {
337
- this.conditionStack.push(l);
338
- }, "begin"),
339
- // pop the previously active lexer condition state off the condition stack
340
- popState: /* @__PURE__ */ o(function() {
341
- var l = this.conditionStack.length - 1;
342
- return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
343
- }, "popState"),
344
- // produce the lexer rule set which is active for the currently active lexer condition state
345
- _currentRules: /* @__PURE__ */ o(function() {
346
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
347
- }, "_currentRules"),
348
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
349
- topState: /* @__PURE__ */ o(function(l) {
350
- return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
351
- }, "topState"),
352
- // alias for begin(condition)
353
- pushState: /* @__PURE__ */ o(function(l) {
354
- this.begin(l);
355
- }, "pushState"),
356
- // return the number of states currently on the stack
357
- stateStackSize: /* @__PURE__ */ o(function() {
358
- return this.conditionStack.length;
359
- }, "stateStackSize"),
360
- options: { "case-insensitive": !0 },
361
- performAction: /* @__PURE__ */ o(function(l, g, f, _) {
362
- switch (f) {
363
- case 0:
364
- break;
365
- case 1:
366
- break;
367
- case 2:
368
- return 55;
369
- case 3:
370
- break;
371
- case 4:
372
- return this.begin("title"), 35;
373
- case 5:
374
- return this.popState(), "title_value";
375
- case 6:
376
- return this.begin("acc_title"), 37;
377
- case 7:
378
- return this.popState(), "acc_title_value";
379
- case 8:
380
- return this.begin("acc_descr"), 39;
381
- case 9:
382
- return this.popState(), "acc_descr_value";
383
- case 10:
384
- this.begin("acc_descr_multiline");
385
- break;
386
- case 11:
387
- this.popState();
388
- break;
389
- case 12:
390
- return "acc_descr_multiline_value";
391
- case 13:
392
- return 48;
393
- case 14:
394
- return 50;
395
- case 15:
396
- return 49;
397
- case 16:
398
- return 51;
399
- case 17:
400
- return 52;
401
- case 18:
402
- return 53;
403
- case 19:
404
- return 54;
405
- case 20:
406
- return 25;
407
- case 21:
408
- this.begin("md_string");
409
- break;
410
- case 22:
411
- return "MD_STR";
412
- case 23:
413
- this.popState();
414
- break;
415
- case 24:
416
- this.begin("string");
417
- break;
418
- case 25:
419
- this.popState();
420
- break;
421
- case 26:
422
- return "STR";
423
- case 27:
424
- this.begin("class_name");
425
- break;
426
- case 28:
427
- return this.popState(), 47;
428
- case 29:
429
- return this.begin("point_start"), 44;
430
- case 30:
431
- return this.begin("point_x"), 45;
432
- case 31:
433
- this.popState();
434
- break;
435
- case 32:
436
- this.popState(), this.begin("point_y");
437
- break;
438
- case 33:
439
- return this.popState(), 46;
440
- case 34:
441
- return 28;
442
- case 35:
443
- return 4;
444
- case 36:
445
- return 11;
446
- case 37:
447
- return 64;
448
- case 38:
449
- return 10;
450
- case 39:
451
- return 65;
452
- case 40:
453
- return 65;
454
- case 41:
455
- return 14;
456
- case 42:
457
- return 13;
458
- case 43:
459
- return 67;
460
- case 44:
461
- return 66;
462
- case 45:
463
- return 12;
464
- case 46:
465
- return 8;
466
- case 47:
467
- return 5;
468
- case 48:
469
- return 18;
470
- case 49:
471
- return 56;
472
- case 50:
473
- return 63;
474
- case 51:
475
- return 57;
476
- }
477
- }, "anonymous"),
478
- rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
479
- conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: !0 } }
480
- };
481
- return j;
482
- }();
483
- vt.lexer = Te;
484
- function qt() {
485
- this.yy = {};
486
- }
487
- return o(qt, "Parser"), qt.prototype = vt, vt.Parser = qt, new qt();
488
- }();
489
- Vt.parser = Vt;
490
- var De = Vt, V = _e(), ht, ze = (ht = class {
491
- constructor() {
492
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
493
- }
494
- getDefaultData() {
495
- return {
496
- titleText: "",
497
- quadrant1Text: "",
498
- quadrant2Text: "",
499
- quadrant3Text: "",
500
- quadrant4Text: "",
501
- xAxisLeftText: "",
502
- xAxisRightText: "",
503
- yAxisBottomText: "",
504
- yAxisTopText: "",
505
- points: []
506
- };
507
- }
508
- getDefaultConfig() {
509
- var n, u, c, h, p, y, S, a, A, d, T, q, m, b, x, O, Y, G;
510
- return {
511
- showXAxis: !0,
512
- showYAxis: !0,
513
- showTitle: !0,
514
- chartHeight: ((n = D.quadrantChart) == null ? void 0 : n.chartWidth) || 500,
515
- chartWidth: ((u = D.quadrantChart) == null ? void 0 : u.chartHeight) || 500,
516
- titlePadding: ((c = D.quadrantChart) == null ? void 0 : c.titlePadding) || 10,
517
- titleFontSize: ((h = D.quadrantChart) == null ? void 0 : h.titleFontSize) || 20,
518
- quadrantPadding: ((p = D.quadrantChart) == null ? void 0 : p.quadrantPadding) || 5,
519
- xAxisLabelPadding: ((y = D.quadrantChart) == null ? void 0 : y.xAxisLabelPadding) || 5,
520
- yAxisLabelPadding: ((S = D.quadrantChart) == null ? void 0 : S.yAxisLabelPadding) || 5,
521
- xAxisLabelFontSize: ((a = D.quadrantChart) == null ? void 0 : a.xAxisLabelFontSize) || 16,
522
- yAxisLabelFontSize: ((A = D.quadrantChart) == null ? void 0 : A.yAxisLabelFontSize) || 16,
523
- quadrantLabelFontSize: ((d = D.quadrantChart) == null ? void 0 : d.quadrantLabelFontSize) || 16,
524
- quadrantTextTopPadding: ((T = D.quadrantChart) == null ? void 0 : T.quadrantTextTopPadding) || 5,
525
- pointTextPadding: ((q = D.quadrantChart) == null ? void 0 : q.pointTextPadding) || 5,
526
- pointLabelFontSize: ((m = D.quadrantChart) == null ? void 0 : m.pointLabelFontSize) || 12,
527
- pointRadius: ((b = D.quadrantChart) == null ? void 0 : b.pointRadius) || 5,
528
- xAxisPosition: ((x = D.quadrantChart) == null ? void 0 : x.xAxisPosition) || "top",
529
- yAxisPosition: ((O = D.quadrantChart) == null ? void 0 : O.yAxisPosition) || "left",
530
- quadrantInternalBorderStrokeWidth: ((Y = D.quadrantChart) == null ? void 0 : Y.quadrantInternalBorderStrokeWidth) || 1,
531
- quadrantExternalBorderStrokeWidth: ((G = D.quadrantChart) == null ? void 0 : G.quadrantExternalBorderStrokeWidth) || 2
532
- };
533
- }
534
- getDefaultThemeConfig() {
535
- return {
536
- quadrant1Fill: V.quadrant1Fill,
537
- quadrant2Fill: V.quadrant2Fill,
538
- quadrant3Fill: V.quadrant3Fill,
539
- quadrant4Fill: V.quadrant4Fill,
540
- quadrant1TextFill: V.quadrant1TextFill,
541
- quadrant2TextFill: V.quadrant2TextFill,
542
- quadrant3TextFill: V.quadrant3TextFill,
543
- quadrant4TextFill: V.quadrant4TextFill,
544
- quadrantPointFill: V.quadrantPointFill,
545
- quadrantPointTextFill: V.quadrantPointTextFill,
546
- quadrantXAxisTextFill: V.quadrantXAxisTextFill,
547
- quadrantYAxisTextFill: V.quadrantYAxisTextFill,
548
- quadrantTitleFill: V.quadrantTitleFill,
549
- quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
550
- quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
551
- };
552
- }
553
- clear() {
554
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), At.info("clear called");
555
- }
556
- setData(n) {
557
- this.data = { ...this.data, ...n };
558
- }
559
- addPoints(n) {
560
- this.data.points = [...n, ...this.data.points];
561
- }
562
- addClass(n, u) {
563
- this.classes.set(n, u);
564
- }
565
- setConfig(n) {
566
- At.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
567
- }
568
- setThemeConfig(n) {
569
- At.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
570
- }
571
- calculateSpace(n, u, c, h) {
572
- const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
573
- top: n === "top" && u ? p : 0,
574
- bottom: n === "bottom" && u ? p : 0
575
- }, S = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
576
- left: this.config.yAxisPosition === "left" && c ? S : 0,
577
- right: this.config.yAxisPosition === "right" && c ? S : 0
578
- }, A = this.config.titleFontSize + this.config.titlePadding * 2, d = {
579
- top: h ? A : 0
580
- }, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top + d.top, m = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - d.top, x = m / 2, O = b / 2;
581
- return {
582
- xAxisSpace: y,
583
- yAxisSpace: a,
584
- titleSpace: d,
585
- quadrantSpace: {
586
- quadrantLeft: T,
587
- quadrantTop: q,
588
- quadrantWidth: m,
589
- quadrantHalfWidth: x,
590
- quadrantHeight: b,
591
- quadrantHalfHeight: O
592
- }
593
- };
594
- }
595
- getAxisLabels(n, u, c, h) {
596
- const { quadrantSpace: p, titleSpace: y } = h, {
597
- quadrantHalfHeight: S,
598
- quadrantHeight: a,
599
- quadrantLeft: A,
600
- quadrantHalfWidth: d,
601
- quadrantTop: T,
602
- quadrantWidth: q
603
- } = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, x = [];
604
- return this.data.xAxisLeftText && u && x.push({
605
- text: this.data.xAxisLeftText,
606
- fill: this.themeConfig.quadrantXAxisTextFill,
607
- x: A + (m ? d / 2 : 0),
608
- y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
609
- fontSize: this.config.xAxisLabelFontSize,
610
- verticalPos: m ? "center" : "left",
611
- horizontalPos: "top",
612
- rotation: 0
613
- }), this.data.xAxisRightText && u && x.push({
614
- text: this.data.xAxisRightText,
615
- fill: this.themeConfig.quadrantXAxisTextFill,
616
- x: A + d + (m ? d / 2 : 0),
617
- y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
618
- fontSize: this.config.xAxisLabelFontSize,
619
- verticalPos: m ? "center" : "left",
620
- horizontalPos: "top",
621
- rotation: 0
622
- }), this.data.yAxisBottomText && c && x.push({
623
- text: this.data.yAxisBottomText,
624
- fill: this.themeConfig.quadrantYAxisTextFill,
625
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
626
- y: T + a - (b ? S / 2 : 0),
627
- fontSize: this.config.yAxisLabelFontSize,
628
- verticalPos: b ? "center" : "left",
629
- horizontalPos: "top",
630
- rotation: -90
631
- }), this.data.yAxisTopText && c && x.push({
632
- text: this.data.yAxisTopText,
633
- fill: this.themeConfig.quadrantYAxisTextFill,
634
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
635
- y: T + S - (b ? S / 2 : 0),
636
- fontSize: this.config.yAxisLabelFontSize,
637
- verticalPos: b ? "center" : "left",
638
- horizontalPos: "top",
639
- rotation: -90
640
- }), x;
641
- }
642
- getQuadrants(n) {
643
- const { quadrantSpace: u } = n, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = u, S = [
644
- {
645
- text: {
646
- text: this.data.quadrant1Text,
647
- fill: this.themeConfig.quadrant1TextFill,
648
- x: 0,
649
- y: 0,
650
- fontSize: this.config.quadrantLabelFontSize,
651
- verticalPos: "center",
652
- horizontalPos: "middle",
653
- rotation: 0
654
- },
655
- x: h + p,
656
- y,
657
- width: p,
658
- height: c,
659
- fill: this.themeConfig.quadrant1Fill
660
- },
661
- {
662
- text: {
663
- text: this.data.quadrant2Text,
664
- fill: this.themeConfig.quadrant2TextFill,
665
- x: 0,
666
- y: 0,
667
- fontSize: this.config.quadrantLabelFontSize,
668
- verticalPos: "center",
669
- horizontalPos: "middle",
670
- rotation: 0
671
- },
672
- x: h,
673
- y,
674
- width: p,
675
- height: c,
676
- fill: this.themeConfig.quadrant2Fill
677
- },
678
- {
679
- text: {
680
- text: this.data.quadrant3Text,
681
- fill: this.themeConfig.quadrant3TextFill,
682
- x: 0,
683
- y: 0,
684
- fontSize: this.config.quadrantLabelFontSize,
685
- verticalPos: "center",
686
- horizontalPos: "middle",
687
- rotation: 0
688
- },
689
- x: h,
690
- y: y + c,
691
- width: p,
692
- height: c,
693
- fill: this.themeConfig.quadrant3Fill
694
- },
695
- {
696
- text: {
697
- text: this.data.quadrant4Text,
698
- fill: this.themeConfig.quadrant4TextFill,
699
- x: 0,
700
- y: 0,
701
- fontSize: this.config.quadrantLabelFontSize,
702
- verticalPos: "center",
703
- horizontalPos: "middle",
704
- rotation: 0
705
- },
706
- x: h + p,
707
- y: y + c,
708
- width: p,
709
- height: c,
710
- fill: this.themeConfig.quadrant4Fill
711
- }
712
- ];
713
- for (const a of S)
714
- a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
715
- return S;
716
- }
717
- getQuadrantPoints(n) {
718
- const { quadrantSpace: u } = n, { quadrantHeight: c, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = u, S = ee().domain([0, 1]).range([h, y + h]), a = ee().domain([0, 1]).range([c + p, p]);
719
- return this.data.points.map((d) => {
720
- const T = this.classes.get(d.className);
721
- return T && (d = { ...T, ...d }), {
722
- x: S(d.x),
723
- y: a(d.y),
724
- fill: d.color ?? this.themeConfig.quadrantPointFill,
725
- radius: d.radius ?? this.config.pointRadius,
726
- text: {
727
- text: d.text,
728
- fill: this.themeConfig.quadrantPointTextFill,
729
- x: S(d.x),
730
- y: a(d.y) + this.config.pointTextPadding,
731
- verticalPos: "center",
732
- horizontalPos: "top",
733
- fontSize: this.config.pointLabelFontSize,
734
- rotation: 0
735
- },
736
- strokeColor: d.strokeColor ?? this.themeConfig.quadrantPointFill,
737
- strokeWidth: d.strokeWidth ?? "0px"
738
- };
739
- });
740
- }
741
- getBorders(n) {
742
- const u = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = n, {
743
- quadrantHalfHeight: h,
744
- quadrantHeight: p,
745
- quadrantLeft: y,
746
- quadrantHalfWidth: S,
747
- quadrantTop: a,
748
- quadrantWidth: A
749
- } = c;
750
- return [
751
- // top border
752
- {
753
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
754
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
755
- x1: y - u,
756
- y1: a,
757
- x2: y + A + u,
758
- y2: a
759
- },
760
- // right border
761
- {
762
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
763
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
764
- x1: y + A,
765
- y1: a + u,
766
- x2: y + A,
767
- y2: a + p - u
768
- },
769
- // bottom border
770
- {
771
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
772
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
773
- x1: y - u,
774
- y1: a + p,
775
- x2: y + A + u,
776
- y2: a + p
777
- },
778
- // left border
779
- {
780
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
781
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
782
- x1: y,
783
- y1: a + u,
784
- x2: y,
785
- y2: a + p - u
786
- },
787
- // vertical inner border
788
- {
789
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
790
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
791
- x1: y + S,
792
- y1: a + u,
793
- x2: y + S,
794
- y2: a + p - u
795
- },
796
- // horizontal inner border
797
- {
798
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
799
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
800
- x1: y + u,
801
- y1: a + h,
802
- x2: y + A - u,
803
- y2: a + h
804
- }
805
- ];
806
- }
807
- getTitle(n) {
808
- if (n)
809
- return {
810
- text: this.data.titleText,
811
- fill: this.themeConfig.quadrantTitleFill,
812
- fontSize: this.config.titleFontSize,
813
- horizontalPos: "top",
814
- verticalPos: "center",
815
- rotation: 0,
816
- y: this.config.titlePadding,
817
- x: this.config.chartWidth / 2
818
- };
819
- }
820
- build() {
821
- const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), u = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, u, c);
822
- return {
823
- points: this.getQuadrantPoints(p),
824
- quadrants: this.getQuadrants(p),
825
- axisLabels: this.getAxisLabels(h, n, u, p),
826
- borderLines: this.getBorders(p),
827
- title: this.getTitle(c)
828
- };
829
- }
830
- }, o(ht, "QuadrantBuilder"), ht), ct, _t = (ct = class extends Error {
831
- constructor(n, u, c) {
832
- super(`value for ${n} ${u} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
833
- }
834
- }, o(ct, "InvalidStyleError"), ct);
835
- function It(t) {
836
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
837
- }
838
- o(It, "validateHexCode");
839
- function ae(t) {
840
- return !/^\d+$/.test(t);
841
- }
842
- o(ae, "validateNumber");
843
- function ne(t) {
844
- return !/^\d+px$/.test(t);
845
- }
846
- o(ne, "validateSizeInPixels");
847
- var Ve = wt();
848
- function Q(t) {
849
- return Ae(t.trim(), Ve);
850
- }
851
- o(Q, "textSanitizer");
852
- var z = new ze();
853
- function se(t) {
854
- z.setData({ quadrant1Text: Q(t.text) });
855
- }
856
- o(se, "setQuadrant1Text");
857
- function re(t) {
858
- z.setData({ quadrant2Text: Q(t.text) });
859
- }
860
- o(re, "setQuadrant2Text");
861
- function oe(t) {
862
- z.setData({ quadrant3Text: Q(t.text) });
863
- }
864
- o(oe, "setQuadrant3Text");
865
- function le(t) {
866
- z.setData({ quadrant4Text: Q(t.text) });
867
- }
868
- o(le, "setQuadrant4Text");
869
- function he(t) {
870
- z.setData({ xAxisLeftText: Q(t.text) });
871
- }
872
- o(he, "setXAxisLeftText");
873
- function ce(t) {
874
- z.setData({ xAxisRightText: Q(t.text) });
875
- }
876
- o(ce, "setXAxisRightText");
877
- function de(t) {
878
- z.setData({ yAxisTopText: Q(t.text) });
879
- }
880
- o(de, "setYAxisTopText");
881
- function ue(t) {
882
- z.setData({ yAxisBottomText: Q(t.text) });
883
- }
884
- o(ue, "setYAxisBottomText");
885
- function kt(t) {
886
- const n = {};
887
- for (const u of t) {
888
- const [c, h] = u.trim().split(/\s*:\s*/);
889
- if (c === "radius") {
890
- if (ae(h))
891
- throw new _t(c, h, "number");
892
- n.radius = parseInt(h);
893
- } else if (c === "color") {
894
- if (It(h))
895
- throw new _t(c, h, "hex code");
896
- n.color = h;
897
- } else if (c === "stroke-color") {
898
- if (It(h))
899
- throw new _t(c, h, "hex code");
900
- n.strokeColor = h;
901
- } else if (c === "stroke-width") {
902
- if (ne(h))
903
- throw new _t(c, h, "number of pixels (eg. 10px)");
904
- n.strokeWidth = h;
905
- } else
906
- throw new Error(`style named ${c} is not supported.`);
907
- }
908
- return n;
909
- }
910
- o(kt, "parseStyles");
911
- function xe(t, n, u, c, h) {
912
- const p = kt(h);
913
- z.addPoints([
914
- {
915
- x: u,
916
- y: c,
917
- text: Q(t.text),
918
- className: n,
919
- ...p
920
- }
921
- ]);
922
- }
923
- o(xe, "addPoint");
924
- function fe(t, n) {
925
- z.addClass(t, kt(n));
926
- }
927
- o(fe, "addClass");
928
- function ge(t) {
929
- z.setConfig({ chartWidth: t });
930
- }
931
- o(ge, "setWidth");
932
- function pe(t) {
933
- z.setConfig({ chartHeight: t });
934
- }
935
- o(pe, "setHeight");
936
- function ye() {
937
- const t = wt(), { themeVariables: n, quadrantChart: u } = t;
938
- return u && z.setConfig(u), z.setThemeConfig({
939
- quadrant1Fill: n.quadrant1Fill,
940
- quadrant2Fill: n.quadrant2Fill,
941
- quadrant3Fill: n.quadrant3Fill,
942
- quadrant4Fill: n.quadrant4Fill,
943
- quadrant1TextFill: n.quadrant1TextFill,
944
- quadrant2TextFill: n.quadrant2TextFill,
945
- quadrant3TextFill: n.quadrant3TextFill,
946
- quadrant4TextFill: n.quadrant4TextFill,
947
- quadrantPointFill: n.quadrantPointFill,
948
- quadrantPointTextFill: n.quadrantPointTextFill,
949
- quadrantXAxisTextFill: n.quadrantXAxisTextFill,
950
- quadrantYAxisTextFill: n.quadrantYAxisTextFill,
951
- quadrantExternalBorderStrokeFill: n.quadrantExternalBorderStrokeFill,
952
- quadrantInternalBorderStrokeFill: n.quadrantInternalBorderStrokeFill,
953
- quadrantTitleFill: n.quadrantTitleFill
954
- }), z.setData({ titleText: ie() }), z.build();
955
- }
956
- o(ye, "getQuadrantData");
957
- var Ie = /* @__PURE__ */ o(function() {
958
- z.clear(), Le();
959
- }, "clear"), we = {
960
- setWidth: ge,
961
- setHeight: pe,
962
- setQuadrant1Text: se,
963
- setQuadrant2Text: re,
964
- setQuadrant3Text: oe,
965
- setQuadrant4Text: le,
966
- setXAxisLeftText: he,
967
- setXAxisRightText: ce,
968
- setYAxisTopText: de,
969
- setYAxisBottomText: ue,
970
- parseStyles: kt,
971
- addPoint: xe,
972
- addClass: fe,
973
- getQuadrantData: ye,
974
- clear: Ie,
975
- setAccTitle: ke,
976
- getAccTitle: Fe,
977
- setDiagramTitle: Pe,
978
- getDiagramTitle: ie,
979
- getAccDescription: ve,
980
- setAccDescription: Ce
981
- }, Re = /* @__PURE__ */ o((t, n, u, c) => {
982
- var xt, ft, gt;
983
- function h(i) {
984
- return i === "top" ? "hanging" : "middle";
985
- }
986
- o(h, "getDominantBaseLine");
987
- function p(i) {
988
- return i === "left" ? "start" : "middle";
989
- }
990
- o(p, "getTextAnchor");
991
- function y(i) {
992
- return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
993
- }
994
- o(y, "getTransformation");
995
- const S = wt();
996
- At.debug(`Rendering quadrant chart
997
- ` + t);
998
- const a = S.securityLevel;
999
- let A;
1000
- a === "sandbox" && (A = zt("#i" + n));
1001
- const T = (a === "sandbox" ? zt(A.nodes()[0].contentDocument.body) : zt("body")).select(`[id="${n}"]`), q = T.append("g").attr("class", "main"), m = ((xt = S.quadrantChart) == null ? void 0 : xt.chartWidth) ?? 500, b = ((ft = S.quadrantChart) == null ? void 0 : ft.chartHeight) ?? 500;
1002
- Ee(T, b, m, ((gt = S.quadrantChart) == null ? void 0 : gt.useMaxWidth) ?? !0), T.attr("viewBox", "0 0 " + m + " " + b), c.db.setHeight(b), c.db.setWidth(m);
1003
- const x = c.db.getQuadrantData(), O = q.append("g").attr("class", "quadrants"), Y = q.append("g").attr("class", "border"), G = q.append("g").attr("class", "data-points"), yt = q.append("g").attr("class", "labels"), Tt = q.append("g").attr("class", "title");
1004
- x.title && Tt.append("text").attr("x", 0).attr("y", 0).attr("fill", x.title.fill).attr("font-size", x.title.fontSize).attr("dominant-baseline", h(x.title.horizontalPos)).attr("text-anchor", p(x.title.verticalPos)).attr("transform", y(x.title)).text(x.title.text), x.borderLines && Y.selectAll("line").data(x.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
1005
- const dt = O.selectAll("g.quadrant").data(x.quadrants).enter().append("g").attr("class", "quadrant");
1006
- dt.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), dt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1007
- "dominant-baseline",
1008
- (i) => h(i.text.horizontalPos)
1009
- ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), yt.selectAll("g.label").data(x.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => p(i.verticalPos)).attr("transform", (i) => y(i));
1010
- const ut = G.selectAll("g.data-point").data(x.points).enter().append("g").attr("class", "data-point");
1011
- ut.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ut.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1012
- "dominant-baseline",
1013
- (i) => h(i.text.horizontalPos)
1014
- ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
1015
- }, "draw"), Be = {
1016
- draw: Re
1017
- }, Qe = {
1018
- parser: De,
1019
- db: we,
1020
- renderer: Be,
1021
- styles: /* @__PURE__ */ o(() => "", "styles")
1022
- };
1023
- export {
1024
- Qe as diagram
1025
- };