@altimateai/ui-components 0.0.77-beta.7 → 0.0.77

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 (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +24114 -67797
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2274 -2824
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +4788 -5963
  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 +1315 -1308
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +151 -151
  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 +40 -24
  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/storybook/Typography.stories.tsx +120 -93
  63. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  64. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  65. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  66. package/package.json +1 -1
  67. package/dist/abap.js +0 -6
  68. package/dist/actionscript-3.js +0 -6
  69. package/dist/ada.js +0 -6
  70. package/dist/andromeeda.js +0 -4
  71. package/dist/angular-html.js +0 -32
  72. package/dist/angular-ts.js +0 -21
  73. package/dist/apache.js +0 -6
  74. package/dist/apex.js +0 -6
  75. package/dist/apl.js +0 -16
  76. package/dist/applescript.js +0 -6
  77. package/dist/ara.js +0 -6
  78. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  79. package/dist/asciidoc.js +0 -6
  80. package/dist/asm.js +0 -6
  81. package/dist/astro.js +0 -18
  82. package/dist/aurora-x.js +0 -4
  83. package/dist/awk.js +0 -6
  84. package/dist/ayu-dark.js +0 -4
  85. package/dist/ballerina.js +0 -6
  86. package/dist/band.js +0 -46
  87. package/dist/bat.js +0 -6
  88. package/dist/beancount.js +0 -6
  89. package/dist/berry.js +0 -6
  90. package/dist/bibtex.js +0 -6
  91. package/dist/bicep.js +0 -6
  92. package/dist/blade.js +0 -20
  93. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  94. package/dist/bsl.js +0 -8
  95. package/dist/c.js +0 -6
  96. package/dist/c3.js +0 -6
  97. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  98. package/dist/cadence.js +0 -6
  99. package/dist/cairo.js +0 -8
  100. package/dist/catppuccin-frappe.js +0 -4
  101. package/dist/catppuccin-latte.js +0 -4
  102. package/dist/catppuccin-macchiato.js +0 -4
  103. package/dist/catppuccin-mocha.js +0 -4
  104. package/dist/chunk-4BX2VUAB2.js +0 -9
  105. package/dist/chunk-55IACEB62.js +0 -9
  106. package/dist/chunk-B4BG7PRW2.js +0 -1377
  107. package/dist/chunk-DI55MBZ52.js +0 -1382
  108. package/dist/chunk-FMBD7UC42.js +0 -19
  109. package/dist/chunk-QN33PNHL2.js +0 -20
  110. package/dist/chunk-QZHKN3VN2.js +0 -15
  111. package/dist/chunk-TZMSLE5B2.js +0 -64
  112. package/dist/clarity.js +0 -6
  113. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  114. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  115. package/dist/clojure.js +0 -6
  116. package/dist/cmake.js +0 -6
  117. package/dist/cobol.js +0 -10
  118. package/dist/code-block-37QAKDTI.js +0 -27
  119. package/dist/codeowners.js +0 -6
  120. package/dist/codeql.js +0 -6
  121. package/dist/coffee.js +0 -8
  122. package/dist/common-lisp.js +0 -6
  123. package/dist/coq.js +0 -6
  124. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  125. package/dist/cpp.js +0 -18
  126. package/dist/crystal.js +0 -18
  127. package/dist/csharp.js +0 -6
  128. package/dist/css.js +0 -6
  129. package/dist/csv.js +0 -6
  130. package/dist/cue.js +0 -6
  131. package/dist/cypher.js +0 -6
  132. package/dist/cytoscape-cose-bilkent.js +0 -2380
  133. package/dist/cytoscape-fcose.js +0 -3840
  134. package/dist/d.js +0 -6
  135. package/dist/dagre-6UL2VRFP2.js +0 -447
  136. package/dist/dark-plus.js +0 -4
  137. package/dist/dart.js +0 -6
  138. package/dist/dax.js +0 -6
  139. package/dist/desktop.js +0 -6
  140. package/dist/diagram-PSM6KHXK2.js +0 -319
  141. package/dist/diagram-QEK2KX5R2.js +0 -221
  142. package/dist/diagram-S2PKOQOG2.js +0 -143
  143. package/dist/diff.js +0 -6
  144. package/dist/docker.js +0 -6
  145. package/dist/dotenv.js +0 -6
  146. package/dist/dracula-soft.js +0 -4
  147. package/dist/dracula.js +0 -4
  148. package/dist/dream-maker.js +0 -6
  149. package/dist/edge.js +0 -12
  150. package/dist/elixir.js +0 -8
  151. package/dist/elm.js +0 -8
  152. package/dist/emacs-lisp.js +0 -6
  153. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  154. package/dist/erb.js +0 -10
  155. package/dist/erlang.js +0 -8
  156. package/dist/everforest-dark.js +0 -4
  157. package/dist/everforest-light.js +0 -4
  158. package/dist/fennel.js +0 -6
  159. package/dist/fish.js +0 -6
  160. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  161. package/dist/fluent.js +0 -6
  162. package/dist/fortran-fixed-form.js +0 -8
  163. package/dist/fortran-free-form.js +0 -6
  164. package/dist/fsharp.js +0 -8
  165. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  166. package/dist/gdresource.js +0 -10
  167. package/dist/gdscript.js +0 -6
  168. package/dist/gdshader.js +0 -6
  169. package/dist/genie.js +0 -6
  170. package/dist/gherkin.js +0 -6
  171. package/dist/git-commit.js +0 -8
  172. package/dist/git-rebase.js +0 -8
  173. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  174. package/dist/github-dark-default.js +0 -4
  175. package/dist/github-dark-dimmed.js +0 -4
  176. package/dist/github-dark-high-contrast.js +0 -4
  177. package/dist/github-dark.js +0 -4
  178. package/dist/github-light-default.js +0 -4
  179. package/dist/github-light-high-contrast.js +0 -4
  180. package/dist/github-light.js +0 -4
  181. package/dist/gleam.js +0 -6
  182. package/dist/glimmer-js.js +0 -14
  183. package/dist/glimmer-ts.js +0 -14
  184. package/dist/glsl.js +0 -8
  185. package/dist/gn.js +0 -6
  186. package/dist/gnuplot.js +0 -6
  187. package/dist/go.js +0 -6
  188. package/dist/graph2.js +0 -246
  189. package/dist/graphql.js +0 -14
  190. package/dist/groovy.js +0 -6
  191. package/dist/gruvbox-dark-hard.js +0 -4
  192. package/dist/gruvbox-dark-medium.js +0 -4
  193. package/dist/gruvbox-dark-soft.js +0 -4
  194. package/dist/gruvbox-light-hard.js +0 -4
  195. package/dist/gruvbox-light-medium.js +0 -4
  196. package/dist/gruvbox-light-soft.js +0 -4
  197. package/dist/hack.js +0 -10
  198. package/dist/haml.js +0 -10
  199. package/dist/handlebars.js +0 -14
  200. package/dist/haskell.js +0 -6
  201. package/dist/haxe.js +0 -6
  202. package/dist/hcl.js +0 -6
  203. package/dist/hjson.js +0 -6
  204. package/dist/hlsl.js +0 -6
  205. package/dist/houston.js +0 -4
  206. package/dist/html-derivative.js +0 -8
  207. package/dist/html.js +0 -10
  208. package/dist/http.js +0 -14
  209. package/dist/hurl.js +0 -12
  210. package/dist/hxml.js +0 -8
  211. package/dist/hy.js +0 -6
  212. package/dist/imba.js +0 -6
  213. package/dist/index3.js +0 -689
  214. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  215. package/dist/ini.js +0 -6
  216. package/dist/java.js +0 -6
  217. package/dist/javascript.js +0 -6
  218. package/dist/jinja.js +0 -11
  219. package/dist/jison.js +0 -8
  220. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  221. package/dist/json.js +0 -6
  222. package/dist/json5.js +0 -6
  223. package/dist/jsonc.js +0 -6
  224. package/dist/jsonl.js +0 -6
  225. package/dist/jsonnet.js +0 -6
  226. package/dist/jssm.js +0 -6
  227. package/dist/jsx.js +0 -6
  228. package/dist/julia.js +0 -16
  229. package/dist/kanagawa-dragon.js +0 -4
  230. package/dist/kanagawa-lotus.js +0 -4
  231. package/dist/kanagawa-wave.js +0 -4
  232. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  233. package/dist/katex2.js +0 -11691
  234. package/dist/kdl.js +0 -6
  235. package/dist/kotlin.js +0 -6
  236. package/dist/kusto.js +0 -6
  237. package/dist/laserwave.js +0 -4
  238. package/dist/latex.js +0 -8
  239. package/dist/layout2.js +0 -1224
  240. package/dist/lean.js +0 -6
  241. package/dist/less.js +0 -6
  242. package/dist/light-plus.js +0 -4
  243. package/dist/liquid.js +0 -14
  244. package/dist/llvm.js +0 -6
  245. package/dist/log.js +0 -6
  246. package/dist/logo.js +0 -6
  247. package/dist/lua.js +0 -8
  248. package/dist/luau.js +0 -6
  249. package/dist/make.js +0 -6
  250. package/dist/markdown.js +0 -6
  251. package/dist/marko.js +0 -14
  252. package/dist/material-theme-darker.js +0 -4
  253. package/dist/material-theme-lighter.js +0 -4
  254. package/dist/material-theme-ocean.js +0 -4
  255. package/dist/material-theme-palenight.js +0 -4
  256. package/dist/material-theme.js +0 -4
  257. package/dist/matlab.js +0 -6
  258. package/dist/mdc.js +0 -12
  259. package/dist/mdx.js +0 -6
  260. package/dist/mermaid-4DMBBIKO.js +0 -4
  261. package/dist/mermaid.js +0 -6
  262. package/dist/min-dark.js +0 -4
  263. package/dist/min-light.js +0 -4
  264. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  265. package/dist/mipsasm.js +0 -6
  266. package/dist/mojo.js +0 -6
  267. package/dist/monokai.js +0 -4
  268. package/dist/moonbit.js +0 -6
  269. package/dist/move.js +0 -6
  270. package/dist/narrat.js +0 -6
  271. package/dist/nextflow.js +0 -6
  272. package/dist/nginx.js +0 -8
  273. package/dist/night-owl.js +0 -4
  274. package/dist/nim.js +0 -20
  275. package/dist/nix.js +0 -9
  276. package/dist/nord.js +0 -4
  277. package/dist/nushell.js +0 -6
  278. package/dist/objective-c.js +0 -6
  279. package/dist/objective-cpp.js +0 -6
  280. package/dist/ocaml.js +0 -6
  281. package/dist/one-dark-pro.js +0 -4
  282. package/dist/one-light.js +0 -4
  283. package/dist/openscad.js +0 -6
  284. package/dist/pascal.js +0 -6
  285. package/dist/perl.js +0 -16
  286. package/dist/php.js +0 -18
  287. package/dist/pie.js +0 -45
  288. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  289. package/dist/pkl.js +0 -6
  290. package/dist/plastic.js +0 -4
  291. package/dist/plsql.js +0 -6
  292. package/dist/po.js +0 -6
  293. package/dist/poimandres.js +0 -4
  294. package/dist/polar.js +0 -6
  295. package/dist/postcss.js +0 -6
  296. package/dist/powerquery.js +0 -6
  297. package/dist/powershell.js +0 -6
  298. package/dist/prisma.js +0 -6
  299. package/dist/prolog.js +0 -6
  300. package/dist/proto.js +0 -6
  301. package/dist/pug.js +0 -12
  302. package/dist/puppet.js +0 -6
  303. package/dist/purescript.js +0 -6
  304. package/dist/python.js +0 -6
  305. package/dist/qml.js +0 -8
  306. package/dist/qmldir.js +0 -6
  307. package/dist/qss.js +0 -6
  308. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  309. package/dist/r.js +0 -6
  310. package/dist/racket.js +0 -6
  311. package/dist/raku.js +0 -6
  312. package/dist/razor.js +0 -10
  313. package/dist/red.js +0 -4
  314. package/dist/reg.js +0 -6
  315. package/dist/regexp.js +0 -6
  316. package/dist/rel.js +0 -6
  317. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  318. package/dist/riscv.js +0 -6
  319. package/dist/rose-pine-dawn.js +0 -4
  320. package/dist/rose-pine-moon.js +0 -4
  321. package/dist/rose-pine.js +0 -4
  322. package/dist/rosmsg.js +0 -6
  323. package/dist/rst.js +0 -22
  324. package/dist/ruby.js +0 -30
  325. package/dist/rust.js +0 -6
  326. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  327. package/dist/sankeyLinkHorizontal.js +0 -403
  328. package/dist/sas.js +0 -8
  329. package/dist/sass.js +0 -6
  330. package/dist/scala.js +0 -6
  331. package/dist/scheme.js +0 -6
  332. package/dist/scss.js +0 -8
  333. package/dist/sdbl.js +0 -6
  334. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  335. package/dist/shaderlab.js +0 -8
  336. package/dist/shellscript.js +0 -6
  337. package/dist/shellsession.js +0 -8
  338. package/dist/slack-dark.js +0 -4
  339. package/dist/slack-ochin.js +0 -4
  340. package/dist/smalltalk.js +0 -6
  341. package/dist/snazzy-light.js +0 -4
  342. package/dist/solarized-dark.js +0 -4
  343. package/dist/solarized-light.js +0 -4
  344. package/dist/solidity.js +0 -6
  345. package/dist/soy.js +0 -8
  346. package/dist/sparql.js +0 -8
  347. package/dist/splunk.js +0 -6
  348. package/dist/sql.js +0 -6
  349. package/dist/ssh-config.js +0 -6
  350. package/dist/stata.js +0 -8
  351. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  352. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  353. package/dist/stylus.js +0 -6
  354. package/dist/svelte.js +0 -14
  355. package/dist/swift.js +0 -6
  356. package/dist/synthwave-84.js +0 -4
  357. package/dist/system-verilog.js +0 -6
  358. package/dist/systemd.js +0 -6
  359. package/dist/talonscript.js +0 -6
  360. package/dist/tasl.js +0 -6
  361. package/dist/tcl.js +0 -6
  362. package/dist/templ.js +0 -12
  363. package/dist/terraform.js +0 -6
  364. package/dist/tex.js +0 -8
  365. package/dist/time.js +0 -900
  366. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  367. package/dist/tokyo-night.js +0 -4
  368. package/dist/toml.js +0 -6
  369. package/dist/ts-tags.js +0 -41
  370. package/dist/tsv.js +0 -6
  371. package/dist/tsx.js +0 -6
  372. package/dist/turtle.js +0 -6
  373. package/dist/twig.js +0 -18
  374. package/dist/typescript.js +0 -6
  375. package/dist/typespec.js +0 -6
  376. package/dist/typst.js +0 -6
  377. package/dist/union.js +0 -8
  378. package/dist/v.js +0 -6
  379. package/dist/vala.js +0 -6
  380. package/dist/vb.js +0 -6
  381. package/dist/verilog.js +0 -6
  382. package/dist/vesper.js +0 -4
  383. package/dist/vhdl.js +0 -6
  384. package/dist/viml.js +0 -6
  385. package/dist/vitesse-black.js +0 -4
  386. package/dist/vitesse-dark.js +0 -4
  387. package/dist/vitesse-light.js +0 -4
  388. package/dist/vue-html.js +0 -8
  389. package/dist/vue-vine.js +0 -18
  390. package/dist/vue.js +0 -31
  391. package/dist/vyper.js +0 -6
  392. package/dist/wasm.js +0 -7
  393. package/dist/wasm2.js +0 -6
  394. package/dist/wenyan.js +0 -6
  395. package/dist/wgsl.js +0 -6
  396. package/dist/wikitext.js +0 -6
  397. package/dist/wit.js +0 -6
  398. package/dist/wolfram.js +0 -6
  399. package/dist/xml.js +0 -8
  400. package/dist/xsl.js +0 -8
  401. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  402. package/dist/yaml.js +0 -6
  403. package/dist/zenscript.js +0 -6
  404. package/dist/zig.js +0 -6
  405. package/dist/zipObject.js +0 -128
@@ -1,178 +1,220 @@
1
- import { _ as n, M as gi, l as Xt, N as Bt, L as xi, E as Ct, D as Nt, C as di, i as pi, n as Yt, s as fi, g as yi, m as mi, b as bi, c as Ai, r as wi, H as Ci, j as Si } from "./CoachForm.js";
1
+ import { a1 as a, bv as gi, ad as Xt, aJ as Wt, aB as xi, aw as St, av as Nt, au as di, ac as fi, ah as Yt, a3 as pi, a4 as mi, ag as yi, a5 as bi, a6 as Ai, an as wi, az as Ci, ae as Si } from "./CoachForm.js";
2
2
  import "./redux-toolkit.modern.js";
3
- import { b as Wt } from "./band.js";
3
+ import { i as _i } from "./init.js";
4
+ import { o as ki } from "./ordinal.js";
4
5
  import { l as zt } from "./linear.js";
5
- var mt = function() {
6
- var s = /* @__PURE__ */ n(function(W, r, u, g) {
7
- for (u = u || {}, g = W.length; g--; u[W[g]] = r) ;
6
+ function Ri(e, t, i) {
7
+ e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
8
+ for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
9
+ o[s] = e + s * i;
10
+ return o;
11
+ }
12
+ function yt() {
13
+ var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, g, m = !1, p = 0, k = 0, v = 0.5;
14
+ delete e.unknown;
15
+ function C() {
16
+ var b = t().length, E = n < s, D = E ? n : s, P = E ? s : n;
17
+ o = (P - D) / Math.max(1, b - p + k * 2), m && (o = Math.floor(o)), D += (P - D - o * (b - p)) * v, g = o * (1 - p), m && (D = Math.round(D), g = Math.round(g));
18
+ var I = Ri(b).map(function(y) {
19
+ return D + o * y;
20
+ });
21
+ return i(E ? I.reverse() : I);
22
+ }
23
+ return e.domain = function(b) {
24
+ return arguments.length ? (t(b), C()) : t();
25
+ }, e.range = function(b) {
26
+ return arguments.length ? ([s, n] = b, s = +s, n = +n, C()) : [s, n];
27
+ }, e.rangeRound = function(b) {
28
+ return [s, n] = b, s = +s, n = +n, m = !0, C();
29
+ }, e.bandwidth = function() {
30
+ return g;
31
+ }, e.step = function() {
32
+ return o;
33
+ }, e.round = function(b) {
34
+ return arguments.length ? (m = !!b, C()) : m;
35
+ }, e.padding = function(b) {
36
+ return arguments.length ? (p = Math.min(1, k = +b), C()) : p;
37
+ }, e.paddingInner = function(b) {
38
+ return arguments.length ? (p = Math.min(1, b), C()) : p;
39
+ }, e.paddingOuter = function(b) {
40
+ return arguments.length ? (k = +b, C()) : k;
41
+ }, e.align = function(b) {
42
+ return arguments.length ? (v = Math.max(0, Math.min(1, b)), C()) : v;
43
+ }, e.copy = function() {
44
+ return yt(t(), [s, n]).round(m).paddingInner(p).paddingOuter(k).align(v);
45
+ }, _i.apply(C(), arguments);
46
+ }
47
+ var bt = function() {
48
+ var e = /* @__PURE__ */ a(function(O, h, u, x) {
49
+ for (u = u || {}, x = O.length; x--; u[O[x]] = h) ;
8
50
  return u;
9
- }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], e = [1, 3], a = [1, 5], c = [1, 6], d = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], b = [1, 25], P = [1, 26], I = [1, 28], R = [1, 29], L = [1, 30], z = [1, 31], F = [1, 32], D = [1, 33], V = [1, 34], f = [1, 35], C = [1, 36], l = [1, 37], M = [1, 43], B = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], S = [1, 64], $ = {
10
- trace: /* @__PURE__ */ n(function() {
51
+ }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], p = [1, 25], k = [1, 26], v = [1, 28], C = [1, 29], b = [1, 30], E = [1, 31], D = [1, 32], P = [1, 33], I = [1, 34], y = [1, 35], _ = [1, 36], c = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], l = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], S = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], R = [1, 64], $ = {
52
+ trace: /* @__PURE__ */ a(function() {
11
53
  }, "trace"),
12
54
  yy: {},
13
55
  symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
14
56
  terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
15
57
  productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
16
- performAction: /* @__PURE__ */ n(function(r, u, g, x, A, o, nt) {
17
- var p = o.length - 1;
18
- switch (A) {
58
+ performAction: /* @__PURE__ */ a(function(h, u, x, d, w, r, at) {
59
+ var f = r.length - 1;
60
+ switch (w) {
19
61
  case 5:
20
- x.setOrientation(o[p]);
62
+ d.setOrientation(r[f]);
21
63
  break;
22
64
  case 9:
23
- x.setDiagramTitle(o[p].text.trim());
65
+ d.setDiagramTitle(r[f].text.trim());
24
66
  break;
25
67
  case 12:
26
- x.setLineData({ text: "", type: "text" }, o[p]);
68
+ d.setLineData({ text: "", type: "text" }, r[f]);
27
69
  break;
28
70
  case 13:
29
- x.setLineData(o[p - 1], o[p]);
71
+ d.setLineData(r[f - 1], r[f]);
30
72
  break;
31
73
  case 14:
32
- x.setBarData({ text: "", type: "text" }, o[p]);
74
+ d.setBarData({ text: "", type: "text" }, r[f]);
33
75
  break;
34
76
  case 15:
35
- x.setBarData(o[p - 1], o[p]);
77
+ d.setBarData(r[f - 1], r[f]);
36
78
  break;
37
79
  case 16:
38
- this.$ = o[p].trim(), x.setAccTitle(this.$);
80
+ this.$ = r[f].trim(), d.setAccTitle(this.$);
39
81
  break;
40
82
  case 17:
41
83
  case 18:
42
- this.$ = o[p].trim(), x.setAccDescription(this.$);
84
+ this.$ = r[f].trim(), d.setAccDescription(this.$);
43
85
  break;
44
86
  case 19:
45
- this.$ = o[p - 1];
87
+ this.$ = r[f - 1];
46
88
  break;
47
89
  case 20:
48
- this.$ = [Number(o[p - 2]), ...o[p]];
90
+ this.$ = [Number(r[f - 2]), ...r[f]];
49
91
  break;
50
92
  case 21:
51
- this.$ = [Number(o[p])];
93
+ this.$ = [Number(r[f])];
52
94
  break;
53
95
  case 22:
54
- x.setXAxisTitle(o[p]);
96
+ d.setXAxisTitle(r[f]);
55
97
  break;
56
98
  case 23:
57
- x.setXAxisTitle(o[p - 1]);
99
+ d.setXAxisTitle(r[f - 1]);
58
100
  break;
59
101
  case 24:
60
- x.setXAxisTitle({ type: "text", text: "" });
102
+ d.setXAxisTitle({ type: "text", text: "" });
61
103
  break;
62
104
  case 25:
63
- x.setXAxisBand(o[p]);
105
+ d.setXAxisBand(r[f]);
64
106
  break;
65
107
  case 26:
66
- x.setXAxisRangeData(Number(o[p - 2]), Number(o[p]));
108
+ d.setXAxisRangeData(Number(r[f - 2]), Number(r[f]));
67
109
  break;
68
110
  case 27:
69
- this.$ = o[p - 1];
111
+ this.$ = r[f - 1];
70
112
  break;
71
113
  case 28:
72
- this.$ = [o[p - 2], ...o[p]];
114
+ this.$ = [r[f - 2], ...r[f]];
73
115
  break;
74
116
  case 29:
75
- this.$ = [o[p]];
117
+ this.$ = [r[f]];
76
118
  break;
77
119
  case 30:
78
- x.setYAxisTitle(o[p]);
120
+ d.setYAxisTitle(r[f]);
79
121
  break;
80
122
  case 31:
81
- x.setYAxisTitle(o[p - 1]);
123
+ d.setYAxisTitle(r[f - 1]);
82
124
  break;
83
125
  case 32:
84
- x.setYAxisTitle({ type: "text", text: "" });
126
+ d.setYAxisTitle({ type: "text", text: "" });
85
127
  break;
86
128
  case 33:
87
- x.setYAxisRangeData(Number(o[p - 2]), Number(o[p]));
129
+ d.setYAxisRangeData(Number(r[f - 2]), Number(r[f]));
88
130
  break;
89
131
  case 37:
90
- this.$ = { text: o[p], type: "text" };
132
+ this.$ = { text: r[f], type: "text" };
91
133
  break;
92
134
  case 38:
93
- this.$ = { text: o[p], type: "text" };
135
+ this.$ = { text: r[f], type: "text" };
94
136
  break;
95
137
  case 39:
96
- this.$ = { text: o[p], type: "markdown" };
138
+ this.$ = { text: r[f], type: "markdown" };
97
139
  break;
98
140
  case 40:
99
- this.$ = o[p];
141
+ this.$ = r[f];
100
142
  break;
101
143
  case 41:
102
- this.$ = o[p - 1] + "" + o[p];
144
+ this.$ = r[f - 1] + "" + r[f];
103
145
  break;
104
146
  }
105
147
  }, "anonymous"),
106
- table: [s(t, i, { 3: 1, 4: 2, 7: 4, 5: e, 34: a, 35: c, 36: d }), { 1: [3] }, s(t, i, { 4: 2, 7: 4, 3: 8, 5: e, 34: a, 35: c, 36: d }), s(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: e, 8: [1, 11], 34: a, 35: c, 36: d }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, s(m, [2, 34]), s(m, [2, 35]), s(m, [2, 36]), { 1: [2, 1] }, s(t, i, { 4: 2, 7: 4, 3: 21, 5: e, 34: a, 35: c, 36: d }), { 1: [2, 3] }, s(m, [2, 5]), s(t, [2, 7], { 4: 22, 34: a, 35: c, 36: d }), { 11: 23, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 39, 13: 38, 24: M, 27: B, 29: 40, 30: 41, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, s(h, [2, 18]), { 1: [2, 2] }, s(h, [2, 8]), s(h, [2, 9]), s(k, [2, 37], { 40: 55, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }), s(k, [2, 38]), s(k, [2, 39]), s(w, [2, 40]), s(w, [2, 42]), s(w, [2, 43]), s(w, [2, 44]), s(w, [2, 45]), s(w, [2, 46]), s(w, [2, 47]), s(w, [2, 48]), s(w, [2, 49]), s(w, [2, 50]), s(w, [2, 51]), s(h, [2, 10]), s(h, [2, 22], { 30: 41, 29: 56, 24: M, 27: B }), s(h, [2, 24]), s(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 11]), s(h, [2, 30], { 33: 60, 27: U }), s(h, [2, 32]), { 31: [1, 61] }, s(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: S }, s(h, [2, 14]), { 17: 65, 24: X }, s(h, [2, 16]), s(h, [2, 17]), s(w, [2, 41]), s(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, s(h, [2, 31]), { 27: [1, 69] }, s(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, s(h, [2, 15]), s(h, [2, 26]), s(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 33]), s(h, [2, 19]), { 25: 73, 27: S }, { 26: [2, 28] }, { 26: [2, 20] }],
148
+ table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: o, 36: g }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: o, 36: g }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: o, 36: g }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, e(m, [2, 34]), e(m, [2, 35]), e(m, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: o, 36: g }), { 1: [2, 3] }, e(m, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: o, 36: g }), { 11: 23, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 39, 13: 38, 24: W, 27: z, 29: 40, 30: 41, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 49, 17: 48, 24: X, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 52, 17: 51, 24: X, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 20: [1, 53] }, { 22: [1, 54] }, e(l, [2, 18]), { 1: [2, 2] }, e(l, [2, 8]), e(l, [2, 9]), e(L, [2, 37], { 40: 55, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }), e(L, [2, 38]), e(L, [2, 39]), e(S, [2, 40]), e(S, [2, 42]), e(S, [2, 43]), e(S, [2, 44]), e(S, [2, 45]), e(S, [2, 46]), e(S, [2, 47]), e(S, [2, 48]), e(S, [2, 49]), e(S, [2, 50]), e(S, [2, 51]), e(l, [2, 10]), e(l, [2, 22], { 30: 41, 29: 56, 24: W, 27: z }), e(l, [2, 24]), e(l, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 11]), e(l, [2, 30], { 33: 60, 27: U }), e(l, [2, 32]), { 31: [1, 61] }, e(l, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: R }, e(l, [2, 14]), { 17: 65, 24: X }, e(l, [2, 16]), e(l, [2, 17]), e(S, [2, 41]), e(l, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(l, [2, 31]), { 27: [1, 69] }, e(l, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(l, [2, 15]), e(l, [2, 26]), e(l, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: p, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 33]), e(l, [2, 19]), { 25: 73, 27: R }, { 26: [2, 28] }, { 26: [2, 20] }],
107
149
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
108
- parseError: /* @__PURE__ */ n(function(r, u) {
150
+ parseError: /* @__PURE__ */ a(function(h, u) {
109
151
  if (u.recoverable)
110
- this.trace(r);
152
+ this.trace(h);
111
153
  else {
112
- var g = new Error(r);
113
- throw g.hash = u, g;
154
+ var x = new Error(h);
155
+ throw x.hash = u, x;
114
156
  }
115
157
  }, "parseError"),
116
- parse: /* @__PURE__ */ n(function(r) {
117
- var u = this, g = [0], x = [], A = [null], o = [], nt = this.table, p = "", lt = 0, Et = 0, hi = 2, It = 1, li = o.slice.call(arguments, 1), _ = Object.create(this.lexer), Y = { yy: {} };
158
+ parse: /* @__PURE__ */ a(function(h) {
159
+ var u = this, x = [0], d = [], w = [null], r = [], at = this.table, f = "", lt = 0, It = 0, hi = 2, Mt = 1, li = r.slice.call(arguments, 1), T = Object.create(this.lexer), Y = { yy: {} };
118
160
  for (var dt in this.yy)
119
161
  Object.prototype.hasOwnProperty.call(this.yy, dt) && (Y.yy[dt] = this.yy[dt]);
120
- _.setInput(r, Y.yy), Y.yy.lexer = _, Y.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
121
- var pt = _.yylloc;
122
- o.push(pt);
123
- var ci = _.options && _.options.ranges;
162
+ T.setInput(h, Y.yy), Y.yy.lexer = T, Y.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
163
+ var ft = T.yylloc;
164
+ r.push(ft);
165
+ var ci = T.options && T.options.ranges;
124
166
  typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
125
- function ui(v) {
126
- g.length = g.length - 2 * v, A.length = A.length - v, o.length = o.length - v;
167
+ function ui(V) {
168
+ x.length = x.length - 2 * V, w.length = w.length - V, r.length = r.length - V;
127
169
  }
128
- n(ui, "popStack");
170
+ a(ui, "popStack");
129
171
  function Vt() {
130
- var v;
131
- return v = x.pop() || _.lex() || It, typeof v != "number" && (v instanceof Array && (x = v, v = x.pop()), v = u.symbols_[v] || v), v;
172
+ var V;
173
+ return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
132
174
  }
133
- n(Vt, "lex");
134
- for (var T, H, E, ft, j = {}, ct, O, Mt, ut; ; ) {
135
- if (H = g[g.length - 1], this.defaultActions[H] ? E = this.defaultActions[H] : ((T === null || typeof T > "u") && (T = Vt()), E = nt[H] && nt[H][T]), typeof E > "u" || !E.length || !E[0]) {
136
- var yt = "";
175
+ a(Vt, "lex");
176
+ for (var M, H, B, pt, q = {}, ct, F, Bt, ut; ; ) {
177
+ if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = at[H] && at[H][M]), typeof B > "u" || !B.length || !B[0]) {
178
+ var mt = "";
137
179
  ut = [];
138
- for (ct in nt[H])
180
+ for (ct in at[H])
139
181
  this.terminals_[ct] && ct > hi && ut.push("'" + this.terminals_[ct] + "'");
140
- _.showPosition ? yt = "Parse error on line " + (lt + 1) + `:
141
- ` + _.showPosition() + `
142
- Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt = "Parse error on line " + (lt + 1) + ": Unexpected " + (T == It ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(yt, {
143
- text: _.match,
144
- token: this.terminals_[T] || T,
145
- line: _.yylineno,
146
- loc: pt,
182
+ T.showPosition ? mt = "Parse error on line " + (lt + 1) + `:
183
+ ` + T.showPosition() + `
184
+ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt = "Parse error on line " + (lt + 1) + ": Unexpected " + (M == Mt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(mt, {
185
+ text: T.match,
186
+ token: this.terminals_[M] || M,
187
+ line: T.yylineno,
188
+ loc: ft,
147
189
  expected: ut
148
190
  });
149
191
  }
150
- if (E[0] instanceof Array && E.length > 1)
151
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + T);
152
- switch (E[0]) {
192
+ if (B[0] instanceof Array && B.length > 1)
193
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + M);
194
+ switch (B[0]) {
153
195
  case 1:
154
- g.push(T), A.push(_.yytext), o.push(_.yylloc), g.push(E[1]), T = null, Et = _.yyleng, p = _.yytext, lt = _.yylineno, pt = _.yylloc;
196
+ x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, f = T.yytext, lt = T.yylineno, ft = T.yylloc;
155
197
  break;
156
198
  case 2:
157
- if (O = this.productions_[E[1]][1], j.$ = A[A.length - O], j._$ = {
158
- first_line: o[o.length - (O || 1)].first_line,
159
- last_line: o[o.length - 1].last_line,
160
- first_column: o[o.length - (O || 1)].first_column,
161
- last_column: o[o.length - 1].last_column
162
- }, ci && (j._$.range = [
163
- o[o.length - (O || 1)].range[0],
164
- o[o.length - 1].range[1]
165
- ]), ft = this.performAction.apply(j, [
166
- p,
167
- Et,
199
+ if (F = this.productions_[B[1]][1], q.$ = w[w.length - F], q._$ = {
200
+ first_line: r[r.length - (F || 1)].first_line,
201
+ last_line: r[r.length - 1].last_line,
202
+ first_column: r[r.length - (F || 1)].first_column,
203
+ last_column: r[r.length - 1].last_column
204
+ }, ci && (q._$.range = [
205
+ r[r.length - (F || 1)].range[0],
206
+ r[r.length - 1].range[1]
207
+ ]), pt = this.performAction.apply(q, [
208
+ f,
209
+ It,
168
210
  lt,
169
211
  Y.yy,
170
- E[1],
171
- A,
172
- o
173
- ].concat(li)), typeof ft < "u")
174
- return ft;
175
- O && (g = g.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), g.push(this.productions_[E[1]][0]), A.push(j.$), o.push(j._$), Mt = nt[g[g.length - 2]][g[g.length - 1]], g.push(Mt);
212
+ B[1],
213
+ w,
214
+ r
215
+ ].concat(li)), typeof pt < "u")
216
+ return pt;
217
+ F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(q.$), r.push(q._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
176
218
  break;
177
219
  case 3:
178
220
  return !0;
@@ -180,18 +222,18 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
180
222
  }
181
223
  return !0;
182
224
  }, "parse")
183
- }, Lt = /* @__PURE__ */ function() {
184
- var W = {
225
+ }, Et = /* @__PURE__ */ function() {
226
+ var O = {
185
227
  EOF: 1,
186
- parseError: /* @__PURE__ */ n(function(u, g) {
228
+ parseError: /* @__PURE__ */ a(function(u, x) {
187
229
  if (this.yy.parser)
188
- this.yy.parser.parseError(u, g);
230
+ this.yy.parser.parseError(u, x);
189
231
  else
190
232
  throw new Error(u);
191
233
  }, "parseError"),
192
234
  // resets the lexer, sets new input
193
- setInput: /* @__PURE__ */ n(function(r, u) {
194
- return this.yy = u || 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 = {
235
+ setInput: /* @__PURE__ */ a(function(h, u) {
236
+ return this.yy = u || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
195
237
  first_line: 1,
196
238
  first_column: 0,
197
239
  last_line: 1,
@@ -199,32 +241,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
199
241
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
200
242
  }, "setInput"),
201
243
  // consumes and returns one char from the input
202
- input: /* @__PURE__ */ n(function() {
203
- var r = this._input[0];
204
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
205
- var u = r.match(/(?:\r\n?|\n).*/g);
206
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
244
+ input: /* @__PURE__ */ a(function() {
245
+ var h = this._input[0];
246
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
247
+ var u = h.match(/(?:\r\n?|\n).*/g);
248
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
207
249
  }, "input"),
208
250
  // unshifts one char (or a string) into the input
209
- unput: /* @__PURE__ */ n(function(r) {
210
- var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
211
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
212
- var x = this.match.split(/(?:\r\n?|\n)/g);
213
- 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);
214
- var A = this.yylloc.range;
251
+ unput: /* @__PURE__ */ a(function(h) {
252
+ var u = h.length, x = h.split(/(?:\r\n?|\n)/g);
253
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
254
+ var d = this.match.split(/(?:\r\n?|\n)/g);
255
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
256
+ var w = this.yylloc.range;
215
257
  return this.yylloc = {
216
258
  first_line: this.yylloc.first_line,
217
259
  last_line: this.yylineno + 1,
218
260
  first_column: this.yylloc.first_column,
219
- last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - u
220
- }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
261
+ last_column: x ? (x.length === d.length ? this.yylloc.first_column : 0) + d[d.length - x.length].length - x[0].length : this.yylloc.first_column - u
262
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
221
263
  }, "unput"),
222
264
  // When called from action, caches matched text and appends it on next action
223
- more: /* @__PURE__ */ n(function() {
265
+ more: /* @__PURE__ */ a(function() {
224
266
  return this._more = !0, this;
225
267
  }, "more"),
226
268
  // 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.
227
- reject: /* @__PURE__ */ n(function() {
269
+ reject: /* @__PURE__ */ a(function() {
228
270
  if (this.options.backtrack_lexer)
229
271
  this._backtrack = !0;
230
272
  else
@@ -237,29 +279,29 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
237
279
  return this;
238
280
  }, "reject"),
239
281
  // retain first n characters of the match
240
- less: /* @__PURE__ */ n(function(r) {
241
- this.unput(this.match.slice(r));
282
+ less: /* @__PURE__ */ a(function(h) {
283
+ this.unput(this.match.slice(h));
242
284
  }, "less"),
243
285
  // displays already matched input, i.e. for error messages
244
- pastInput: /* @__PURE__ */ n(function() {
245
- var r = this.matched.substr(0, this.matched.length - this.match.length);
246
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
286
+ pastInput: /* @__PURE__ */ a(function() {
287
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
288
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
247
289
  }, "pastInput"),
248
290
  // displays upcoming input, i.e. for error messages
249
- upcomingInput: /* @__PURE__ */ n(function() {
250
- var r = this.match;
251
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
291
+ upcomingInput: /* @__PURE__ */ a(function() {
292
+ var h = this.match;
293
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
252
294
  }, "upcomingInput"),
253
295
  // displays the character position where the lexing error occurred, i.e. for error messages
254
- showPosition: /* @__PURE__ */ n(function() {
255
- var r = this.pastInput(), u = new Array(r.length + 1).join("-");
256
- return r + this.upcomingInput() + `
296
+ showPosition: /* @__PURE__ */ a(function() {
297
+ var h = this.pastInput(), u = new Array(h.length + 1).join("-");
298
+ return h + this.upcomingInput() + `
257
299
  ` + u + "^";
258
300
  }, "showPosition"),
259
301
  // test the lexed token: return FALSE when not a match, otherwise return token
260
- test_match: /* @__PURE__ */ n(function(r, u) {
261
- var g, x, A;
262
- if (this.options.backtrack_lexer && (A = {
302
+ test_match: /* @__PURE__ */ a(function(h, u) {
303
+ var x, d, w;
304
+ if (this.options.backtrack_lexer && (w = {
263
305
  yylineno: this.yylineno,
264
306
  yylloc: {
265
307
  first_line: this.yylloc.first_line,
@@ -278,32 +320,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
278
320
  yy: this.yy,
279
321
  conditionStack: this.conditionStack.slice(0),
280
322
  done: this.done
281
- }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
323
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), d = h[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
282
324
  first_line: this.yylloc.last_line,
283
325
  last_line: this.yylineno + 1,
284
326
  first_column: this.yylloc.last_column,
285
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
286
- }, 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, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
287
- return g;
327
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
328
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], x = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
329
+ return x;
288
330
  if (this._backtrack) {
289
- for (var o in A)
290
- this[o] = A[o];
331
+ for (var r in w)
332
+ this[r] = w[r];
291
333
  return !1;
292
334
  }
293
335
  return !1;
294
336
  }, "test_match"),
295
337
  // return next match in input
296
- next: /* @__PURE__ */ n(function() {
338
+ next: /* @__PURE__ */ a(function() {
297
339
  if (this.done)
298
340
  return this.EOF;
299
341
  this._input || (this.done = !0);
300
- var r, u, g, x;
342
+ var h, u, x, d;
301
343
  this._more || (this.yytext = "", this.match = "");
302
- for (var A = this._currentRules(), o = 0; o < A.length; o++)
303
- if (g = this._input.match(this.rules[A[o]]), g && (!u || g[0].length > u[0].length)) {
304
- if (u = g, x = o, this.options.backtrack_lexer) {
305
- if (r = this.test_match(g, A[o]), r !== !1)
306
- return r;
344
+ for (var w = this._currentRules(), r = 0; r < w.length; r++)
345
+ if (x = this._input.match(this.rules[w[r]]), x && (!u || x[0].length > u[0].length)) {
346
+ if (u = x, d = r, this.options.backtrack_lexer) {
347
+ if (h = this.test_match(x, w[r]), h !== !1)
348
+ return h;
307
349
  if (this._backtrack) {
308
350
  u = !1;
309
351
  continue;
@@ -312,7 +354,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
312
354
  } else if (!this.options.flex)
313
355
  break;
314
356
  }
315
- return u ? (r = this.test_match(u, A[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
357
+ return u ? (h = this.test_match(u, w[d]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
316
358
  ` + this.showPosition(), {
317
359
  text: "",
318
360
  token: null,
@@ -320,38 +362,38 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
320
362
  });
321
363
  }, "next"),
322
364
  // return next match that has a token
323
- lex: /* @__PURE__ */ n(function() {
365
+ lex: /* @__PURE__ */ a(function() {
324
366
  var u = this.next();
325
367
  return u || this.lex();
326
368
  }, "lex"),
327
369
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
328
- begin: /* @__PURE__ */ n(function(u) {
370
+ begin: /* @__PURE__ */ a(function(u) {
329
371
  this.conditionStack.push(u);
330
372
  }, "begin"),
331
373
  // pop the previously active lexer condition state off the condition stack
332
- popState: /* @__PURE__ */ n(function() {
374
+ popState: /* @__PURE__ */ a(function() {
333
375
  var u = this.conditionStack.length - 1;
334
376
  return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
335
377
  }, "popState"),
336
378
  // produce the lexer rule set which is active for the currently active lexer condition state
337
- _currentRules: /* @__PURE__ */ n(function() {
379
+ _currentRules: /* @__PURE__ */ a(function() {
338
380
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
339
381
  }, "_currentRules"),
340
382
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
341
- topState: /* @__PURE__ */ n(function(u) {
383
+ topState: /* @__PURE__ */ a(function(u) {
342
384
  return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
343
385
  }, "topState"),
344
386
  // alias for begin(condition)
345
- pushState: /* @__PURE__ */ n(function(u) {
387
+ pushState: /* @__PURE__ */ a(function(u) {
346
388
  this.begin(u);
347
389
  }, "pushState"),
348
390
  // return the number of states currently on the stack
349
- stateStackSize: /* @__PURE__ */ n(function() {
391
+ stateStackSize: /* @__PURE__ */ a(function() {
350
392
  return this.conditionStack.length;
351
393
  }, "stateStackSize"),
352
394
  options: { "case-insensitive": !0 },
353
- performAction: /* @__PURE__ */ n(function(u, g, x, A) {
354
- switch (x) {
395
+ performAction: /* @__PURE__ */ a(function(u, x, d, w) {
396
+ switch (d) {
355
397
  case 0:
356
398
  break;
357
399
  case 1:
@@ -456,51 +498,51 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt =
456
498
  rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
457
499
  conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
458
500
  };
459
- return W;
501
+ return O;
460
502
  }();
461
- $.lexer = Lt;
503
+ $.lexer = Et;
462
504
  function N() {
463
505
  this.yy = {};
464
506
  }
465
- return n(N, "Parser"), N.prototype = $, $.Parser = N, new N();
507
+ return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
466
508
  }();
467
- mt.parser = mt;
468
- var _i = mt;
469
- function bt(s) {
470
- return s.type === "bar";
509
+ bt.parser = bt;
510
+ var Ti = bt;
511
+ function At(e) {
512
+ return e.type === "bar";
471
513
  }
472
- n(bt, "isBarPlot");
473
- function St(s) {
474
- return s.type === "band";
514
+ a(At, "isBarPlot");
515
+ function _t(e) {
516
+ return e.type === "band";
475
517
  }
476
- n(St, "isBandAxisData");
477
- function q(s) {
478
- return s.type === "linear";
518
+ a(_t, "isBandAxisData");
519
+ function G(e) {
520
+ return e.type === "linear";
479
521
  }
480
- n(q, "isLinearAxisData");
481
- var G, Ht = (G = class {
522
+ a(G, "isLinearAxisData");
523
+ var j, Ht = (j = class {
482
524
  constructor(t) {
483
525
  this.parentGroup = t;
484
526
  }
485
527
  getMaxDimension(t, i) {
486
528
  if (!this.parentGroup)
487
529
  return {
488
- width: t.reduce((c, d) => Math.max(d.length, c), 0) * i,
530
+ width: t.reduce((o, g) => Math.max(g.length, o), 0) * i,
489
531
  height: i
490
532
  };
491
- const e = {
533
+ const s = {
492
534
  width: 0,
493
535
  height: 0
494
- }, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
495
- for (const c of t) {
496
- const d = gi(a, 1, c), m = d ? d.width : c.length * i, b = d ? d.height : i;
497
- e.width = Math.max(e.width, m), e.height = Math.max(e.height, b);
536
+ }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
537
+ for (const o of t) {
538
+ const g = gi(n, 1, o), m = g ? g.width : o.length * i, p = g ? g.height : i;
539
+ s.width = Math.max(s.width, m), s.height = Math.max(s.height, p);
498
540
  }
499
- return a.remove(), e;
541
+ return n.remove(), s;
500
542
  }
501
- }, n(G, "TextDimensionCalculatorWithFont"), G), Ft = 0.7, Ot = 0.2, Q, Ut = (Q = class {
502
- constructor(t, i, e, a) {
503
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = a, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
543
+ }, a(j, "TextDimensionCalculatorWithFont"), j), Ot = 0.7, Ft = 0.2, Q, Ut = (Q = class {
544
+ constructor(t, i, s, n) {
545
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
504
546
  }
505
547
  setRange(t) {
506
548
  this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
@@ -525,39 +567,39 @@ var G, Ht = (G = class {
525
567
  );
526
568
  }
527
569
  recalculateOuterPaddingToDrawBar() {
528
- Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
570
+ Ot * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ot * this.getTickDistance() / 2)), this.recalculateScale();
529
571
  }
530
572
  calculateSpaceIfDrawnHorizontally(t) {
531
573
  let i = t.height;
532
574
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
533
- const e = this.getLabelDimension(), a = Ot * t.width;
534
- this.outerPadding = Math.min(e.width / 2, a);
535
- const c = e.height + this.axisConfig.labelPadding * 2;
536
- this.labelTextHeight = e.height, c <= i && (i -= c, this.showLabel = !0);
575
+ const s = this.getLabelDimension(), n = Ft * t.width;
576
+ this.outerPadding = Math.min(s.width / 2, n);
577
+ const o = s.height + this.axisConfig.labelPadding * 2;
578
+ this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
537
579
  }
538
580
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
539
- const e = this.textDimensionCalculator.getMaxDimension(
581
+ const s = this.textDimensionCalculator.getMaxDimension(
540
582
  [this.title],
541
583
  this.axisConfig.titleFontSize
542
- ), a = e.height + this.axisConfig.titlePadding * 2;
543
- this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
584
+ ), n = s.height + this.axisConfig.titlePadding * 2;
585
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
544
586
  }
545
587
  this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
546
588
  }
547
589
  calculateSpaceIfDrawnVertical(t) {
548
590
  let i = t.width;
549
591
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
550
- const e = this.getLabelDimension(), a = Ot * t.height;
551
- this.outerPadding = Math.min(e.height / 2, a);
552
- const c = e.width + this.axisConfig.labelPadding * 2;
553
- c <= i && (i -= c, this.showLabel = !0);
592
+ const s = this.getLabelDimension(), n = Ft * t.height;
593
+ this.outerPadding = Math.min(s.height / 2, n);
594
+ const o = s.width + this.axisConfig.labelPadding * 2;
595
+ o <= i && (i -= o, this.showLabel = !0);
554
596
  }
555
597
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
556
- const e = this.textDimensionCalculator.getMaxDimension(
598
+ const s = this.textDimensionCalculator.getMaxDimension(
557
599
  [this.title],
558
600
  this.axisConfig.titleFontSize
559
- ), a = e.height + this.axisConfig.titlePadding * 2;
560
- this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
601
+ ), n = s.height + this.axisConfig.titlePadding * 2;
602
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
561
603
  }
562
604
  this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
563
605
  }
@@ -604,8 +646,8 @@ var G, Ht = (G = class {
604
646
  t.push({
605
647
  type: "path",
606
648
  groupTexts: ["left-axis", "ticks"],
607
- data: this.getTickValues().map((e) => ({
608
- path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
649
+ data: this.getTickValues().map((s) => ({
650
+ path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
609
651
  strokeFill: this.axisThemeConfig.tickColor,
610
652
  strokeWidth: this.axisConfig.tickWidth
611
653
  }))
@@ -662,8 +704,8 @@ var G, Ht = (G = class {
662
704
  t.push({
663
705
  type: "path",
664
706
  groupTexts: ["bottom-axis", "ticks"],
665
- data: this.getTickValues().map((e) => ({
666
- path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
707
+ data: this.getTickValues().map((s) => ({
708
+ path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
667
709
  strokeFill: this.axisThemeConfig.tickColor,
668
710
  strokeWidth: this.axisConfig.tickWidth
669
711
  }))
@@ -720,8 +762,8 @@ var G, Ht = (G = class {
720
762
  t.push({
721
763
  type: "path",
722
764
  groupTexts: ["top-axis", "ticks"],
723
- data: this.getTickValues().map((e) => ({
724
- path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
765
+ data: this.getTickValues().map((s) => ({
766
+ path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
725
767
  strokeFill: this.axisThemeConfig.tickColor,
726
768
  strokeWidth: this.axisConfig.tickWidth
727
769
  }))
@@ -751,15 +793,15 @@ var G, Ht = (G = class {
751
793
  throw Error("Drawing of right axis is not implemented");
752
794
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
753
795
  }
754
- }, n(Q, "BaseAxis"), Q), K, ki = (K = class extends Ut {
755
- constructor(t, i, e, a, c) {
756
- super(t, a, c, i), this.categories = e, this.scale = Wt().domain(this.categories).range(this.getRange());
796
+ }, a(Q, "BaseAxis"), Q), K, Di = (K = class extends Ut {
797
+ constructor(t, i, s, n, o) {
798
+ super(t, n, o, i), this.categories = s, this.scale = yt().domain(this.categories).range(this.getRange());
757
799
  }
758
800
  setRange(t) {
759
801
  super.setRange(t);
760
802
  }
761
803
  recalculateScale() {
762
- this.scale = Wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
804
+ this.scale = yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
763
805
  }
764
806
  getTickValues() {
765
807
  return this.categories;
@@ -767,9 +809,9 @@ var G, Ht = (G = class {
767
809
  getScaleValue(t) {
768
810
  return this.scale(t) ?? this.getRange()[0];
769
811
  }
770
- }, n(K, "BandAxis"), K), Z, Ti = (Z = class extends Ut {
771
- constructor(t, i, e, a, c) {
772
- super(t, a, c, i), this.domain = e, this.scale = zt().domain(this.domain).range(this.getRange());
812
+ }, a(K, "BandAxis"), K), J, vi = (J = class extends Ut {
813
+ constructor(t, i, s, n, o) {
814
+ super(t, n, o, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
773
815
  }
774
816
  getTickValues() {
775
817
  return this.scale.ticks();
@@ -781,27 +823,27 @@ var G, Ht = (G = class {
781
823
  getScaleValue(t) {
782
824
  return this.scale(t);
783
825
  }
784
- }, n(Z, "LinearAxis"), Z);
785
- function At(s, t, i, e) {
786
- const a = new Ht(e);
787
- return St(s) ? new ki(
826
+ }, a(J, "LinearAxis"), J);
827
+ function wt(e, t, i, s) {
828
+ const n = new Ht(s);
829
+ return _t(e) ? new Di(
788
830
  t,
789
831
  i,
790
- s.categories,
791
- s.title,
792
- a
793
- ) : new Ti(
832
+ e.categories,
833
+ e.title,
834
+ n
835
+ ) : new vi(
794
836
  t,
795
837
  i,
796
- [s.min, s.max],
797
- s.title,
798
- a
838
+ [e.min, e.max],
839
+ e.title,
840
+ n
799
841
  );
800
842
  }
801
- n(At, "getAxis");
802
- var J, Ri = (J = class {
803
- constructor(t, i, e, a) {
804
- this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = a, this.boundingRect = {
843
+ a(wt, "getAxis");
844
+ var Z, Pi = (Z = class {
845
+ constructor(t, i, s, n) {
846
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
805
847
  x: 0,
806
848
  y: 0,
807
849
  width: 0,
@@ -815,8 +857,8 @@ var J, Ri = (J = class {
815
857
  const i = this.textDimensionCalculator.getMaxDimension(
816
858
  [this.chartData.title],
817
859
  this.chartConfig.titleFontSize
818
- ), e = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
819
- return i.width <= e && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = a, this.showChartTitle = !0), {
860
+ ), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
861
+ return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
820
862
  width: this.boundingRect.width,
821
863
  height: this.boundingRect.height
822
864
  };
@@ -840,23 +882,23 @@ var J, Ri = (J = class {
840
882
  ]
841
883
  }), t;
842
884
  }
843
- }, n(J, "ChartTitle"), J);
844
- function $t(s, t, i, e) {
845
- const a = new Ht(e);
846
- return new Ri(a, s, t, i);
885
+ }, a(Z, "ChartTitle"), Z);
886
+ function $t(e, t, i, s) {
887
+ const n = new Ht(s);
888
+ return new Pi(n, e, t, i);
847
889
  }
848
- n($t, "getChartTitleComponent");
849
- var tt, Di = (tt = class {
850
- constructor(t, i, e, a, c) {
851
- this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = a, this.plotIndex = c;
890
+ a($t, "getChartTitleComponent");
891
+ var tt, Li = (tt = class {
892
+ constructor(t, i, s, n, o) {
893
+ this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
852
894
  }
853
895
  getDrawableElement() {
854
- const t = this.plotData.data.map((e) => [
855
- this.xAxis.getScaleValue(e[0]),
856
- this.yAxis.getScaleValue(e[1])
896
+ const t = this.plotData.data.map((s) => [
897
+ this.xAxis.getScaleValue(s[0]),
898
+ this.yAxis.getScaleValue(s[1])
857
899
  ]);
858
900
  let i;
859
- return this.orientation === "horizontal" ? i = Bt().y((e) => e[0]).x((e) => e[1])(t) : i = Bt().x((e) => e[0]).y((e) => e[1])(t), i ? [
901
+ return this.orientation === "horizontal" ? i = Wt().y((s) => s[0]).x((s) => s[1])(t) : i = Wt().x((s) => s[0]).y((s) => s[1])(t), i ? [
860
902
  {
861
903
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
862
904
  type: "path",
@@ -870,24 +912,24 @@ var tt, Di = (tt = class {
870
912
  }
871
913
  ] : [];
872
914
  }
873
- }, n(tt, "LinePlot"), tt), it, vi = (it = class {
874
- constructor(t, i, e, a, c, d) {
875
- this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = a, this.orientation = c, this.plotIndex = d;
915
+ }, a(tt, "LinePlot"), tt), it, Ei = (it = class {
916
+ constructor(t, i, s, n, o, g) {
917
+ this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = g;
876
918
  }
877
919
  getDrawableElement() {
878
- const t = this.barData.data.map((c) => [
879
- this.xAxis.getScaleValue(c[0]),
880
- this.yAxis.getScaleValue(c[1])
881
- ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), a = e / 2;
920
+ const t = this.barData.data.map((o) => [
921
+ this.xAxis.getScaleValue(o[0]),
922
+ this.yAxis.getScaleValue(o[1])
923
+ ]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), n = s / 2;
882
924
  return this.orientation === "horizontal" ? [
883
925
  {
884
926
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
885
927
  type: "rect",
886
- data: t.map((c) => ({
928
+ data: t.map((o) => ({
887
929
  x: this.boundingRect.x,
888
- y: c[0] - a,
889
- height: e,
890
- width: c[1] - this.boundingRect.x,
930
+ y: o[0] - n,
931
+ height: s,
932
+ width: o[1] - this.boundingRect.x,
891
933
  fill: this.barData.fill,
892
934
  strokeWidth: 0,
893
935
  strokeFill: this.barData.fill
@@ -897,11 +939,11 @@ var tt, Di = (tt = class {
897
939
  {
898
940
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
899
941
  type: "rect",
900
- data: t.map((c) => ({
901
- x: c[0] - a,
902
- y: c[1],
903
- width: e,
904
- height: this.boundingRect.y + this.boundingRect.height - c[1],
942
+ data: t.map((o) => ({
943
+ x: o[0] - n,
944
+ y: o[1],
945
+ width: s,
946
+ height: this.boundingRect.y + this.boundingRect.height - o[1],
905
947
  fill: this.barData.fill,
906
948
  strokeWidth: 0,
907
949
  strokeFill: this.barData.fill
@@ -909,9 +951,9 @@ var tt, Di = (tt = class {
909
951
  }
910
952
  ];
911
953
  }
912
- }, n(it, "BarPlot"), it), et, Pi = (et = class {
913
- constructor(t, i, e) {
914
- this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
954
+ }, a(it, "BarPlot"), it), et, Ii = (et = class {
955
+ constructor(t, i, s) {
956
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
915
957
  x: 0,
916
958
  y: 0,
917
959
  width: 0,
@@ -934,111 +976,111 @@ var tt, Di = (tt = class {
934
976
  if (!(this.xAxis && this.yAxis))
935
977
  throw Error("Axes must be passed to render Plots");
936
978
  const t = [];
937
- for (const [i, e] of this.chartData.plots.entries())
938
- switch (e.type) {
979
+ for (const [i, s] of this.chartData.plots.entries())
980
+ switch (s.type) {
939
981
  case "line":
940
982
  {
941
- const a = new Di(
942
- e,
983
+ const n = new Li(
984
+ s,
943
985
  this.xAxis,
944
986
  this.yAxis,
945
987
  this.chartConfig.chartOrientation,
946
988
  i
947
989
  );
948
- t.push(...a.getDrawableElement());
990
+ t.push(...n.getDrawableElement());
949
991
  }
950
992
  break;
951
993
  case "bar":
952
994
  {
953
- const a = new vi(
954
- e,
995
+ const n = new Ei(
996
+ s,
955
997
  this.boundingRect,
956
998
  this.xAxis,
957
999
  this.yAxis,
958
1000
  this.chartConfig.chartOrientation,
959
1001
  i
960
1002
  );
961
- t.push(...a.getDrawableElement());
1003
+ t.push(...n.getDrawableElement());
962
1004
  }
963
1005
  break;
964
1006
  }
965
1007
  return t;
966
1008
  }
967
- }, n(et, "BasePlot"), et);
968
- function jt(s, t, i) {
969
- return new Pi(s, t, i);
1009
+ }, a(et, "BasePlot"), et);
1010
+ function qt(e, t, i) {
1011
+ return new Ii(e, t, i);
970
1012
  }
971
- n(jt, "getPlotComponent");
972
- var st, Li = (st = class {
973
- constructor(t, i, e, a) {
1013
+ a(qt, "getPlotComponent");
1014
+ var st, Mi = (st = class {
1015
+ constructor(t, i, s, n) {
974
1016
  this.chartConfig = t, this.chartData = i, this.componentStore = {
975
- title: $t(t, i, e, a),
976
- plot: jt(t, i, e),
977
- xAxis: At(
1017
+ title: $t(t, i, s, n),
1018
+ plot: qt(t, i, s),
1019
+ xAxis: wt(
978
1020
  i.xAxis,
979
1021
  t.xAxis,
980
1022
  {
981
- titleColor: e.xAxisTitleColor,
982
- labelColor: e.xAxisLabelColor,
983
- tickColor: e.xAxisTickColor,
984
- axisLineColor: e.xAxisLineColor
1023
+ titleColor: s.xAxisTitleColor,
1024
+ labelColor: s.xAxisLabelColor,
1025
+ tickColor: s.xAxisTickColor,
1026
+ axisLineColor: s.xAxisLineColor
985
1027
  },
986
- a
1028
+ n
987
1029
  ),
988
- yAxis: At(
1030
+ yAxis: wt(
989
1031
  i.yAxis,
990
1032
  t.yAxis,
991
1033
  {
992
- titleColor: e.yAxisTitleColor,
993
- labelColor: e.yAxisLabelColor,
994
- tickColor: e.yAxisTickColor,
995
- axisLineColor: e.yAxisLineColor
1034
+ titleColor: s.yAxisTitleColor,
1035
+ labelColor: s.yAxisLabelColor,
1036
+ tickColor: s.yAxisTickColor,
1037
+ axisLineColor: s.yAxisLineColor
996
1038
  },
997
- a
1039
+ n
998
1040
  )
999
1041
  };
1000
1042
  }
1001
1043
  calculateVerticalSpace() {
1002
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
1044
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1003
1045
  i * this.chartConfig.plotReservedSpacePercent / 100
1004
1046
  ), m = this.componentStore.plot.calculateSpace({
1005
- width: c,
1006
- height: d
1047
+ width: o,
1048
+ height: g
1007
1049
  });
1008
1050
  t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1009
1051
  width: this.chartConfig.width,
1010
1052
  height: i
1011
- }), a = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1053
+ }), n = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1012
1054
  width: t,
1013
1055
  height: i
1014
1056
  }), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
1015
1057
  width: t,
1016
1058
  height: i
1017
- }), e = m.width, t -= m.width, t > 0 && (c += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
1018
- width: c,
1019
- height: d
1020
- }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: a }), this.componentStore.xAxis.setRange([e, e + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: a + d }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((b) => bt(b)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1059
+ }), s = m.width, t -= m.width, t > 0 && (o += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1060
+ width: o,
1061
+ height: g
1062
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + g }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((p) => At(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1021
1063
  }
1022
1064
  calculateHorizontalSpace() {
1023
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1065
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, g = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1024
1066
  i * this.chartConfig.plotReservedSpacePercent / 100
1025
- ), b = this.componentStore.plot.calculateSpace({
1026
- width: d,
1067
+ ), p = this.componentStore.plot.calculateSpace({
1068
+ width: g,
1027
1069
  height: m
1028
1070
  });
1029
- t -= b.width, i -= b.height, b = this.componentStore.title.calculateSpace({
1071
+ t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1030
1072
  width: this.chartConfig.width,
1031
1073
  height: i
1032
- }), e = b.height, i -= b.height, this.componentStore.xAxis.setAxisPosition("left"), b = this.componentStore.xAxis.calculateSpace({
1074
+ }), s = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1033
1075
  width: t,
1034
1076
  height: i
1035
- }), t -= b.width, a = b.width, this.componentStore.yAxis.setAxisPosition("top"), b = this.componentStore.yAxis.calculateSpace({
1077
+ }), t -= p.width, n = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1036
1078
  width: t,
1037
1079
  height: i
1038
- }), i -= b.height, c = e + b.height, t > 0 && (d += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1039
- width: d,
1080
+ }), i -= p.height, o = s + p.height, t > 0 && (g += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1081
+ width: g,
1040
1082
  height: m
1041
- }), this.componentStore.plot.setBoundingBoxXY({ x: a, y: c }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: a, y: e }), this.componentStore.xAxis.setRange([c, c + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: c }), this.chartData.plots.some((P) => bt(P)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1083
+ }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: o }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([o, o + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((k) => At(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1042
1084
  }
1043
1085
  calculateSpace() {
1044
1086
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1051,25 +1093,25 @@ var st, Li = (st = class {
1051
1093
  t.push(...i.getDrawableElements());
1052
1094
  return t;
1053
1095
  }
1054
- }, n(st, "Orchestrator"), st), at, Ei = (at = class {
1055
- static build(t, i, e, a) {
1056
- return new Li(t, i, e, a).getDrawableElement();
1096
+ }, a(st, "Orchestrator"), st), nt, Vi = (nt = class {
1097
+ static build(t, i, s, n) {
1098
+ return new Mi(t, i, s, n).getDrawableElement();
1057
1099
  }
1058
- }, n(at, "XYChartBuilder"), at), ot = 0, qt, rt = Tt(), ht = kt(), y = Rt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1059
- function kt() {
1060
- const s = xi(), t = Ct();
1061
- return Nt(s.xyChart, t.themeVariables.xyChart);
1100
+ }, a(nt, "XYChartBuilder"), nt), rt = 0, Gt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1101
+ function Rt() {
1102
+ const e = xi(), t = St();
1103
+ return Nt(e.xyChart, t.themeVariables.xyChart);
1062
1104
  }
1063
- n(kt, "getChartDefaultThemeConfig");
1105
+ a(Rt, "getChartDefaultThemeConfig");
1064
1106
  function Tt() {
1065
- const s = Ct();
1107
+ const e = St();
1066
1108
  return Nt(
1067
1109
  di.xyChart,
1068
- s.xyChart
1110
+ e.xyChart
1069
1111
  );
1070
1112
  }
1071
- n(Tt, "getChartDefaultConfig");
1072
- function Rt() {
1113
+ a(Tt, "getChartDefaultConfig");
1114
+ function Dt() {
1073
1115
  return {
1074
1116
  yAxis: {
1075
1117
  type: "linear",
@@ -1086,214 +1128,214 @@ function Rt() {
1086
1128
  plots: []
1087
1129
  };
1088
1130
  }
1089
- n(Rt, "getChartDefaultData");
1090
- function xt(s) {
1091
- const t = Ct();
1092
- return pi(s.trim(), t);
1131
+ a(Dt, "getChartDefaultData");
1132
+ function xt(e) {
1133
+ const t = St();
1134
+ return fi(e.trim(), t);
1093
1135
  }
1094
- n(xt, "textSanitizer");
1095
- function Gt(s) {
1096
- qt = s;
1136
+ a(xt, "textSanitizer");
1137
+ function jt(e) {
1138
+ Gt = e;
1097
1139
  }
1098
- n(Gt, "setTmpSVGG");
1099
- function Qt(s) {
1100
- s === "horizontal" ? rt.chartOrientation = "horizontal" : rt.chartOrientation = "vertical";
1140
+ a(jt, "setTmpSVGG");
1141
+ function Qt(e) {
1142
+ e === "horizontal" ? ot.chartOrientation = "horizontal" : ot.chartOrientation = "vertical";
1101
1143
  }
1102
- n(Qt, "setOrientation");
1103
- function Kt(s) {
1104
- y.xAxis.title = xt(s.text);
1144
+ a(Qt, "setOrientation");
1145
+ function Kt(e) {
1146
+ A.xAxis.title = xt(e.text);
1105
1147
  }
1106
- n(Kt, "setXAxisTitle");
1107
- function Dt(s, t) {
1108
- y.xAxis = { type: "linear", title: y.xAxis.title, min: s, max: t }, gt = !0;
1148
+ a(Kt, "setXAxisTitle");
1149
+ function vt(e, t) {
1150
+ A.xAxis = { type: "linear", title: A.xAxis.title, min: e, max: t }, gt = !0;
1109
1151
  }
1110
- n(Dt, "setXAxisRangeData");
1111
- function Zt(s) {
1112
- y.xAxis = {
1152
+ a(vt, "setXAxisRangeData");
1153
+ function Jt(e) {
1154
+ A.xAxis = {
1113
1155
  type: "band",
1114
- title: y.xAxis.title,
1115
- categories: s.map((t) => xt(t.text))
1156
+ title: A.xAxis.title,
1157
+ categories: e.map((t) => xt(t.text))
1116
1158
  }, gt = !0;
1117
1159
  }
1118
- n(Zt, "setXAxisBand");
1119
- function Jt(s) {
1120
- y.yAxis.title = xt(s.text);
1160
+ a(Jt, "setXAxisBand");
1161
+ function Zt(e) {
1162
+ A.yAxis.title = xt(e.text);
1121
1163
  }
1122
- n(Jt, "setYAxisTitle");
1123
- function ti(s, t) {
1124
- y.yAxis = { type: "linear", title: y.yAxis.title, min: s, max: t }, _t = !0;
1164
+ a(Zt, "setYAxisTitle");
1165
+ function ti(e, t) {
1166
+ A.yAxis = { type: "linear", title: A.yAxis.title, min: e, max: t }, kt = !0;
1125
1167
  }
1126
- n(ti, "setYAxisRangeData");
1127
- function ii(s) {
1128
- const t = Math.min(...s), i = Math.max(...s), e = q(y.yAxis) ? y.yAxis.min : 1 / 0, a = q(y.yAxis) ? y.yAxis.max : -1 / 0;
1129
- y.yAxis = {
1168
+ a(ti, "setYAxisRangeData");
1169
+ function ii(e) {
1170
+ const t = Math.min(...e), i = Math.max(...e), s = G(A.yAxis) ? A.yAxis.min : 1 / 0, n = G(A.yAxis) ? A.yAxis.max : -1 / 0;
1171
+ A.yAxis = {
1130
1172
  type: "linear",
1131
- title: y.yAxis.title,
1132
- min: Math.min(e, t),
1133
- max: Math.max(a, i)
1173
+ title: A.yAxis.title,
1174
+ min: Math.min(s, t),
1175
+ max: Math.max(n, i)
1134
1176
  };
1135
1177
  }
1136
- n(ii, "setYAxisRangeFromPlotData");
1137
- function vt(s) {
1178
+ a(ii, "setYAxisRangeFromPlotData");
1179
+ function Pt(e) {
1138
1180
  let t = [];
1139
- if (s.length === 0)
1181
+ if (e.length === 0)
1140
1182
  return t;
1141
1183
  if (!gt) {
1142
- const i = q(y.xAxis) ? y.xAxis.min : 1 / 0, e = q(y.xAxis) ? y.xAxis.max : -1 / 0;
1143
- Dt(Math.min(i, 1), Math.max(e, s.length));
1184
+ const i = G(A.xAxis) ? A.xAxis.min : 1 / 0, s = G(A.xAxis) ? A.xAxis.max : -1 / 0;
1185
+ vt(Math.min(i, 1), Math.max(s, e.length));
1144
1186
  }
1145
- if (_t || ii(s), St(y.xAxis) && (t = y.xAxis.categories.map((i, e) => [i, s[e]])), q(y.xAxis)) {
1146
- const i = y.xAxis.min, e = y.xAxis.max, a = (e - i) / (s.length - 1), c = [];
1147
- for (let d = i; d <= e; d += a)
1148
- c.push(`${d}`);
1149
- t = c.map((d, m) => [d, s[m]]);
1187
+ if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), G(A.xAxis)) {
1188
+ const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
1189
+ for (let g = i; g <= s; g += n)
1190
+ o.push(`${g}`);
1191
+ t = o.map((g, m) => [g, e[m]]);
1150
1192
  }
1151
1193
  return t;
1152
1194
  }
1153
- n(vt, "transformDataWithoutCategory");
1154
- function Pt(s) {
1155
- return wt[s === 0 ? 0 : s % wt.length];
1195
+ a(Pt, "transformDataWithoutCategory");
1196
+ function Lt(e) {
1197
+ return Ct[e === 0 ? 0 : e % Ct.length];
1156
1198
  }
1157
- n(Pt, "getPlotColorFromPalette");
1158
- function ei(s, t) {
1159
- const i = vt(t);
1160
- y.plots.push({
1199
+ a(Lt, "getPlotColorFromPalette");
1200
+ function ei(e, t) {
1201
+ const i = Pt(t);
1202
+ A.plots.push({
1161
1203
  type: "line",
1162
- strokeFill: Pt(ot),
1204
+ strokeFill: Lt(rt),
1163
1205
  strokeWidth: 2,
1164
1206
  data: i
1165
- }), ot++;
1207
+ }), rt++;
1166
1208
  }
1167
- n(ei, "setLineData");
1168
- function si(s, t) {
1169
- const i = vt(t);
1170
- y.plots.push({
1209
+ a(ei, "setLineData");
1210
+ function si(e, t) {
1211
+ const i = Pt(t);
1212
+ A.plots.push({
1171
1213
  type: "bar",
1172
- fill: Pt(ot),
1214
+ fill: Lt(rt),
1173
1215
  data: i
1174
- }), ot++;
1216
+ }), rt++;
1175
1217
  }
1176
- n(si, "setBarData");
1177
- function ai() {
1178
- if (y.plots.length === 0)
1218
+ a(si, "setBarData");
1219
+ function ni() {
1220
+ if (A.plots.length === 0)
1179
1221
  throw Error("No Plot to render, please provide a plot with some data");
1180
- return y.title = Yt(), Ei.build(rt, y, ht, qt);
1222
+ return A.title = Yt(), Vi.build(ot, A, ht, Gt);
1181
1223
  }
1182
- n(ai, "getDrawableElem");
1183
- function ni() {
1224
+ a(ni, "getDrawableElem");
1225
+ function ai() {
1184
1226
  return ht;
1185
1227
  }
1186
- n(ni, "getChartThemeConfig");
1187
- function oi() {
1188
- return rt;
1189
- }
1190
- n(oi, "getChartConfig");
1228
+ a(ai, "getChartThemeConfig");
1191
1229
  function ri() {
1192
- return y;
1230
+ return ot;
1231
+ }
1232
+ a(ri, "getChartConfig");
1233
+ function oi() {
1234
+ return A;
1193
1235
  }
1194
- n(ri, "getXYChartData");
1195
- var Ii = /* @__PURE__ */ n(function() {
1196
- wi(), ot = 0, rt = Tt(), y = Rt(), ht = kt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
1197
- }, "clear"), Vi = {
1198
- getDrawableElem: ai,
1199
- clear: Ii,
1200
- setAccTitle: fi,
1201
- getAccTitle: yi,
1202
- setDiagramTitle: mi,
1236
+ a(oi, "getXYChartData");
1237
+ var Bi = /* @__PURE__ */ a(function() {
1238
+ wi(), rt = 0, ot = Tt(), A = Dt(), ht = Rt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1239
+ }, "clear"), Wi = {
1240
+ getDrawableElem: ni,
1241
+ clear: Bi,
1242
+ setAccTitle: pi,
1243
+ getAccTitle: mi,
1244
+ setDiagramTitle: yi,
1203
1245
  getDiagramTitle: Yt,
1204
1246
  getAccDescription: bi,
1205
1247
  setAccDescription: Ai,
1206
1248
  setOrientation: Qt,
1207
1249
  setXAxisTitle: Kt,
1208
- setXAxisRangeData: Dt,
1209
- setXAxisBand: Zt,
1210
- setYAxisTitle: Jt,
1250
+ setXAxisRangeData: vt,
1251
+ setXAxisBand: Jt,
1252
+ setYAxisTitle: Zt,
1211
1253
  setYAxisRangeData: ti,
1212
1254
  setLineData: ei,
1213
1255
  setBarData: si,
1214
- setTmpSVGG: Gt,
1215
- getChartThemeConfig: ni,
1216
- getChartConfig: oi,
1217
- getXYChartData: ri
1218
- }, Mi = /* @__PURE__ */ n((s, t, i, e) => {
1219
- const a = e.db, c = a.getChartThemeConfig(), d = a.getChartConfig(), m = a.getXYChartData().plots[0].data.map((f) => f[1]);
1220
- function b(f) {
1221
- return f === "top" ? "text-before-edge" : "middle";
1256
+ setTmpSVGG: jt,
1257
+ getChartThemeConfig: ai,
1258
+ getChartConfig: ri,
1259
+ getXYChartData: oi
1260
+ }, zi = /* @__PURE__ */ a((e, t, i, s) => {
1261
+ const n = s.db, o = n.getChartThemeConfig(), g = n.getChartConfig(), m = n.getXYChartData().plots[0].data.map((y) => y[1]);
1262
+ function p(y) {
1263
+ return y === "top" ? "text-before-edge" : "middle";
1222
1264
  }
1223
- n(b, "getDominantBaseLine");
1224
- function P(f) {
1225
- return f === "left" ? "start" : f === "right" ? "end" : "middle";
1265
+ a(p, "getDominantBaseLine");
1266
+ function k(y) {
1267
+ return y === "left" ? "start" : y === "right" ? "end" : "middle";
1226
1268
  }
1227
- n(P, "getTextAnchor");
1228
- function I(f) {
1229
- return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1269
+ a(k, "getTextAnchor");
1270
+ function v(y) {
1271
+ return `translate(${y.x}, ${y.y}) rotate(${y.rotation || 0})`;
1230
1272
  }
1231
- n(I, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1232
- ` + s);
1233
- const R = Ci(t), L = R.append("g").attr("class", "main"), z = L.append("rect").attr("width", d.width).attr("height", d.height).attr("class", "background");
1234
- Si(R, d.height, d.width, !0), R.attr("viewBox", `0 0 ${d.width} ${d.height}`), z.attr("fill", c.backgroundColor), a.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
1235
- const F = a.getDrawableElem(), D = {};
1236
- function V(f) {
1237
- let C = L, l = "";
1238
- for (const [M] of f.entries()) {
1239
- let B = L;
1240
- M > 0 && D[l] && (B = D[l]), l += f[M], C = D[l], C || (C = D[l] = B.append("g").attr("class", f[M]));
1273
+ a(v, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1274
+ ` + e);
1275
+ const C = Ci(t), b = C.append("g").attr("class", "main"), E = b.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
1276
+ Si(C, g.height, g.width, !0), C.attr("viewBox", `0 0 ${g.width} ${g.height}`), E.attr("fill", o.backgroundColor), n.setTmpSVGG(C.append("g").attr("class", "mermaid-tmp-group"));
1277
+ const D = n.getDrawableElem(), P = {};
1278
+ function I(y) {
1279
+ let _ = b, c = "";
1280
+ for (const [W] of y.entries()) {
1281
+ let z = b;
1282
+ W > 0 && P[c] && (z = P[c]), c += y[W], _ = P[c], _ || (_ = P[c] = z.append("g").attr("class", y[W]));
1241
1283
  }
1242
- return C;
1284
+ return _;
1243
1285
  }
1244
- n(V, "getGroup");
1245
- for (const f of F) {
1246
- if (f.data.length === 0)
1286
+ a(I, "getGroup");
1287
+ for (const y of D) {
1288
+ if (y.data.length === 0)
1247
1289
  continue;
1248
- const C = V(f.groupTexts);
1249
- switch (f.type) {
1290
+ const _ = I(y.groupTexts);
1291
+ switch (y.type) {
1250
1292
  case "rect":
1251
- if (C.selectAll("rect").data(f.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), d.showDataLabel)
1252
- if (d.chartOrientation === "horizontal") {
1253
- let l = function(h, k) {
1254
- const { data: w, label: S } = h;
1255
- return k * S.length * M <= w.width - 10;
1293
+ if (_.selectAll("rect").data(y.data).enter().append("rect").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).attr("fill", (c) => c.fill).attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth), g.showDataLabel)
1294
+ if (g.chartOrientation === "horizontal") {
1295
+ let c = function(l, L) {
1296
+ const { data: S, label: R } = l;
1297
+ return L * R.length * W <= S.width - 10;
1256
1298
  };
1257
- n(l, "fitsHorizontally");
1258
- const M = 0.7, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1259
- const { data: k } = h;
1260
- let w = k.height * 0.7;
1261
- for (; !l(h, w) && w > 0; )
1262
- w -= 1;
1263
- return w;
1299
+ a(c, "fitsHorizontally");
1300
+ const W = 0.7, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1301
+ const { data: L } = l;
1302
+ let S = L.height * 0.7;
1303
+ for (; !c(l, S) && S > 0; )
1304
+ S -= 1;
1305
+ return S;
1264
1306
  }), X = Math.floor(Math.min(...U));
1265
- C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1307
+ _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width - 10).attr("y", (l) => l.data.y + l.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1266
1308
  } else {
1267
- let l = function(h, k, w) {
1268
- const { data: S, label: $ } = h, N = k * $.length * 0.7, W = S.x + S.width / 2, r = W - N / 2, u = W + N / 2, g = r >= S.x && u <= S.x + S.width, x = S.y + w + k <= S.y + S.height;
1269
- return g && x;
1309
+ let c = function(l, L, S) {
1310
+ const { data: R, label: $ } = l, N = L * $.length * 0.7, O = R.x + R.width / 2, h = O - N / 2, u = O + N / 2, x = h >= R.x && u <= R.x + R.width, d = R.y + S + L <= R.y + R.height;
1311
+ return x && d;
1270
1312
  };
1271
- n(l, "fitsInBar");
1272
- const M = 10, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
1273
- const { data: k, label: w } = h;
1274
- let S = k.width / (w.length * 0.7);
1275
- for (; !l(h, S, M) && S > 0; )
1276
- S -= 1;
1277
- return S;
1313
+ a(c, "fitsInBar");
1314
+ const W = 10, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1315
+ const { data: L, label: S } = l;
1316
+ let R = L.width / (S.length * 0.7);
1317
+ for (; !c(l, R, W) && R > 0; )
1318
+ R -= 1;
1319
+ return R;
1278
1320
  }), X = Math.floor(Math.min(...U));
1279
- C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + M).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1321
+ _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width / 2).attr("y", (l) => l.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1280
1322
  }
1281
1323
  break;
1282
1324
  case "text":
1283
- C.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => b(l.verticalPos)).attr("text-anchor", (l) => P(l.horizontalPos)).attr("transform", (l) => I(l)).text((l) => l.text);
1325
+ _.selectAll("text").data(y.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (c) => c.fill).attr("font-size", (c) => c.fontSize).attr("dominant-baseline", (c) => p(c.verticalPos)).attr("text-anchor", (c) => k(c.horizontalPos)).attr("transform", (c) => v(c)).text((c) => c.text);
1284
1326
  break;
1285
1327
  case "path":
1286
- C.selectAll("path").data(f.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1328
+ _.selectAll("path").data(y.data).enter().append("path").attr("d", (c) => c.path).attr("fill", (c) => c.fill ? c.fill : "none").attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth);
1287
1329
  break;
1288
1330
  }
1289
1331
  }
1290
- }, "draw"), Bi = {
1291
- draw: Mi
1292
- }, Xi = {
1293
- parser: _i,
1294
- db: Vi,
1295
- renderer: Bi
1332
+ }, "draw"), Oi = {
1333
+ draw: zi
1334
+ }, Ui = {
1335
+ parser: Ti,
1336
+ db: Wi,
1337
+ renderer: Oi
1296
1338
  };
1297
1339
  export {
1298
- Xi as diagram
1340
+ Ui as diagram
1299
1341
  };