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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +66897 -23165
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2822 -2224
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +6106 -4931
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -18
  53. package/dist/chatbotV2/index.js +91 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +101 -101
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +101 -6
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1302 -1309
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +150 -150
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +11 -8
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/stylus.js +6 -0
  349. package/dist/svelte.js +14 -0
  350. package/dist/swift.js +6 -0
  351. package/dist/synthwave-84.js +4 -0
  352. package/dist/system-verilog.js +6 -0
  353. package/dist/systemd.js +6 -0
  354. package/dist/talonscript.js +6 -0
  355. package/dist/tasl.js +6 -0
  356. package/dist/tcl.js +6 -0
  357. package/dist/templ.js +12 -0
  358. package/dist/terraform.js +6 -0
  359. package/dist/tex.js +8 -0
  360. package/dist/time.js +900 -0
  361. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  362. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  363. package/dist/tokyo-night.js +4 -0
  364. package/dist/toml.js +6 -0
  365. package/dist/ts-tags.js +41 -0
  366. package/dist/tsv.js +6 -0
  367. package/dist/tsx.js +6 -0
  368. package/dist/turtle.js +6 -0
  369. package/dist/twig.js +18 -0
  370. package/dist/{types-ByRPUpXR.d.ts → types-UHJCpYj0.d.ts} +25 -116
  371. package/dist/typescript.js +6 -0
  372. package/dist/typespec.js +6 -0
  373. package/dist/typst.js +6 -0
  374. package/dist/union.js +8 -0
  375. package/dist/v.js +6 -0
  376. package/dist/vala.js +6 -0
  377. package/dist/vb.js +6 -0
  378. package/dist/verilog.js +6 -0
  379. package/dist/vesper.js +4 -0
  380. package/dist/vhdl.js +6 -0
  381. package/dist/viml.js +6 -0
  382. package/dist/vitesse-black.js +4 -0
  383. package/dist/vitesse-dark.js +4 -0
  384. package/dist/vitesse-light.js +4 -0
  385. package/dist/vue-html.js +8 -0
  386. package/dist/vue-vine.js +18 -0
  387. package/dist/vue.js +31 -0
  388. package/dist/vyper.js +6 -0
  389. package/dist/wasm.js +7 -0
  390. package/dist/wasm2.js +6 -0
  391. package/dist/wenyan.js +6 -0
  392. package/dist/wgsl.js +6 -0
  393. package/dist/wikitext.js +6 -0
  394. package/dist/wit.js +6 -0
  395. package/dist/wolfram.js +6 -0
  396. package/dist/xml.js +8 -0
  397. package/dist/xsl.js +8 -0
  398. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  399. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  400. package/dist/yaml.js +6 -0
  401. package/dist/zenscript.js +6 -0
  402. package/dist/zig.js +6 -0
  403. package/dist/zipObject.js +128 -0
  404. package/package.json +1 -1
@@ -0,0 +1,1299 @@
1
+ import { aG as n, bf as gi, aS as Xt, N as Bt, be as xi, b8 as Ct, b7 as Nt, b6 as di, aR as pi, aW as Yt, aI as fi, aJ as yi, aV as mi, aK as bi, aL as Ai, b0 as wi, bb as Ci, aT as Si } from "./CoachForm.js";
2
+ import "./redux-toolkit.modern.js";
3
+ import { b as Wt } from "./band.js";
4
+ 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) ;
8
+ 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() {
11
+ }, "trace"),
12
+ yy: {},
13
+ 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
+ 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
+ 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) {
19
+ case 5:
20
+ x.setOrientation(o[p]);
21
+ break;
22
+ case 9:
23
+ x.setDiagramTitle(o[p].text.trim());
24
+ break;
25
+ case 12:
26
+ x.setLineData({ text: "", type: "text" }, o[p]);
27
+ break;
28
+ case 13:
29
+ x.setLineData(o[p - 1], o[p]);
30
+ break;
31
+ case 14:
32
+ x.setBarData({ text: "", type: "text" }, o[p]);
33
+ break;
34
+ case 15:
35
+ x.setBarData(o[p - 1], o[p]);
36
+ break;
37
+ case 16:
38
+ this.$ = o[p].trim(), x.setAccTitle(this.$);
39
+ break;
40
+ case 17:
41
+ case 18:
42
+ this.$ = o[p].trim(), x.setAccDescription(this.$);
43
+ break;
44
+ case 19:
45
+ this.$ = o[p - 1];
46
+ break;
47
+ case 20:
48
+ this.$ = [Number(o[p - 2]), ...o[p]];
49
+ break;
50
+ case 21:
51
+ this.$ = [Number(o[p])];
52
+ break;
53
+ case 22:
54
+ x.setXAxisTitle(o[p]);
55
+ break;
56
+ case 23:
57
+ x.setXAxisTitle(o[p - 1]);
58
+ break;
59
+ case 24:
60
+ x.setXAxisTitle({ type: "text", text: "" });
61
+ break;
62
+ case 25:
63
+ x.setXAxisBand(o[p]);
64
+ break;
65
+ case 26:
66
+ x.setXAxisRangeData(Number(o[p - 2]), Number(o[p]));
67
+ break;
68
+ case 27:
69
+ this.$ = o[p - 1];
70
+ break;
71
+ case 28:
72
+ this.$ = [o[p - 2], ...o[p]];
73
+ break;
74
+ case 29:
75
+ this.$ = [o[p]];
76
+ break;
77
+ case 30:
78
+ x.setYAxisTitle(o[p]);
79
+ break;
80
+ case 31:
81
+ x.setYAxisTitle(o[p - 1]);
82
+ break;
83
+ case 32:
84
+ x.setYAxisTitle({ type: "text", text: "" });
85
+ break;
86
+ case 33:
87
+ x.setYAxisRangeData(Number(o[p - 2]), Number(o[p]));
88
+ break;
89
+ case 37:
90
+ this.$ = { text: o[p], type: "text" };
91
+ break;
92
+ case 38:
93
+ this.$ = { text: o[p], type: "text" };
94
+ break;
95
+ case 39:
96
+ this.$ = { text: o[p], type: "markdown" };
97
+ break;
98
+ case 40:
99
+ this.$ = o[p];
100
+ break;
101
+ case 41:
102
+ this.$ = o[p - 1] + "" + o[p];
103
+ break;
104
+ }
105
+ }, "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] }],
107
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
108
+ parseError: /* @__PURE__ */ n(function(r, u) {
109
+ if (u.recoverable)
110
+ this.trace(r);
111
+ else {
112
+ var g = new Error(r);
113
+ throw g.hash = u, g;
114
+ }
115
+ }, "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: {} };
118
+ for (var dt in this.yy)
119
+ 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;
124
+ 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;
127
+ }
128
+ n(ui, "popStack");
129
+ 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;
132
+ }
133
+ n(Vt, "lex");
134
+ for (var T, H, E, ft, G = {}, 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 = "";
137
+ ut = [];
138
+ for (ct in nt[H])
139
+ 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,
147
+ expected: ut
148
+ });
149
+ }
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]) {
153
+ 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;
155
+ break;
156
+ case 2:
157
+ if (O = this.productions_[E[1]][1], G.$ = A[A.length - O], G._$ = {
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 && (G._$.range = [
163
+ o[o.length - (O || 1)].range[0],
164
+ o[o.length - 1].range[1]
165
+ ]), ft = this.performAction.apply(G, [
166
+ p,
167
+ Et,
168
+ lt,
169
+ 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(G.$), o.push(G._$), Mt = nt[g[g.length - 2]][g[g.length - 1]], g.push(Mt);
176
+ break;
177
+ case 3:
178
+ return !0;
179
+ }
180
+ }
181
+ return !0;
182
+ }, "parse")
183
+ }, Lt = /* @__PURE__ */ function() {
184
+ var W = {
185
+ EOF: 1,
186
+ parseError: /* @__PURE__ */ n(function(u, g) {
187
+ if (this.yy.parser)
188
+ this.yy.parser.parseError(u, g);
189
+ else
190
+ throw new Error(u);
191
+ }, "parseError"),
192
+ // 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 = {
195
+ first_line: 1,
196
+ first_column: 0,
197
+ last_line: 1,
198
+ last_column: 0
199
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
200
+ }, "setInput"),
201
+ // 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;
207
+ }, "input"),
208
+ // 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;
215
+ return this.yylloc = {
216
+ first_line: this.yylloc.first_line,
217
+ last_line: this.yylineno + 1,
218
+ 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;
221
+ }, "unput"),
222
+ // When called from action, caches matched text and appends it on next action
223
+ more: /* @__PURE__ */ n(function() {
224
+ return this._more = !0, this;
225
+ }, "more"),
226
+ // 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() {
228
+ if (this.options.backtrack_lexer)
229
+ this._backtrack = !0;
230
+ else
231
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
232
+ ` + this.showPosition(), {
233
+ text: "",
234
+ token: null,
235
+ line: this.yylineno
236
+ });
237
+ return this;
238
+ }, "reject"),
239
+ // retain first n characters of the match
240
+ less: /* @__PURE__ */ n(function(r) {
241
+ this.unput(this.match.slice(r));
242
+ }, "less"),
243
+ // 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, "");
247
+ }, "pastInput"),
248
+ // 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, "");
252
+ }, "upcomingInput"),
253
+ // 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() + `
257
+ ` + u + "^";
258
+ }, "showPosition"),
259
+ // 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 = {
263
+ yylineno: this.yylineno,
264
+ yylloc: {
265
+ first_line: this.yylloc.first_line,
266
+ last_line: this.last_line,
267
+ first_column: this.yylloc.first_column,
268
+ last_column: this.yylloc.last_column
269
+ },
270
+ yytext: this.yytext,
271
+ match: this.match,
272
+ matches: this.matches,
273
+ matched: this.matched,
274
+ yyleng: this.yyleng,
275
+ offset: this.offset,
276
+ _more: this._more,
277
+ _input: this._input,
278
+ yy: this.yy,
279
+ conditionStack: this.conditionStack.slice(0),
280
+ 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 = {
282
+ first_line: this.yylloc.last_line,
283
+ last_line: this.yylineno + 1,
284
+ 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;
288
+ if (this._backtrack) {
289
+ for (var o in A)
290
+ this[o] = A[o];
291
+ return !1;
292
+ }
293
+ return !1;
294
+ }, "test_match"),
295
+ // return next match in input
296
+ next: /* @__PURE__ */ n(function() {
297
+ if (this.done)
298
+ return this.EOF;
299
+ this._input || (this.done = !0);
300
+ var r, u, g, x;
301
+ 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;
307
+ if (this._backtrack) {
308
+ u = !1;
309
+ continue;
310
+ } else
311
+ return !1;
312
+ } else if (!this.options.flex)
313
+ break;
314
+ }
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.
316
+ ` + this.showPosition(), {
317
+ text: "",
318
+ token: null,
319
+ line: this.yylineno
320
+ });
321
+ }, "next"),
322
+ // return next match that has a token
323
+ lex: /* @__PURE__ */ n(function() {
324
+ var u = this.next();
325
+ return u || this.lex();
326
+ }, "lex"),
327
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
328
+ begin: /* @__PURE__ */ n(function(u) {
329
+ this.conditionStack.push(u);
330
+ }, "begin"),
331
+ // pop the previously active lexer condition state off the condition stack
332
+ popState: /* @__PURE__ */ n(function() {
333
+ var u = this.conditionStack.length - 1;
334
+ return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
335
+ }, "popState"),
336
+ // produce the lexer rule set which is active for the currently active lexer condition state
337
+ _currentRules: /* @__PURE__ */ n(function() {
338
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
339
+ }, "_currentRules"),
340
+ // 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) {
342
+ return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
343
+ }, "topState"),
344
+ // alias for begin(condition)
345
+ pushState: /* @__PURE__ */ n(function(u) {
346
+ this.begin(u);
347
+ }, "pushState"),
348
+ // return the number of states currently on the stack
349
+ stateStackSize: /* @__PURE__ */ n(function() {
350
+ return this.conditionStack.length;
351
+ }, "stateStackSize"),
352
+ options: { "case-insensitive": !0 },
353
+ performAction: /* @__PURE__ */ n(function(u, g, x, A) {
354
+ switch (x) {
355
+ case 0:
356
+ break;
357
+ case 1:
358
+ break;
359
+ case 2:
360
+ return this.popState(), 34;
361
+ case 3:
362
+ return this.popState(), 34;
363
+ case 4:
364
+ return 34;
365
+ case 5:
366
+ break;
367
+ case 6:
368
+ return 10;
369
+ case 7:
370
+ return this.pushState("acc_title"), 19;
371
+ case 8:
372
+ return this.popState(), "acc_title_value";
373
+ case 9:
374
+ return this.pushState("acc_descr"), 21;
375
+ case 10:
376
+ return this.popState(), "acc_descr_value";
377
+ case 11:
378
+ this.pushState("acc_descr_multiline");
379
+ break;
380
+ case 12:
381
+ this.popState();
382
+ break;
383
+ case 13:
384
+ return "acc_descr_multiline_value";
385
+ case 14:
386
+ return 5;
387
+ case 15:
388
+ return 5;
389
+ case 16:
390
+ return 8;
391
+ case 17:
392
+ return this.pushState("axis_data"), "X_AXIS";
393
+ case 18:
394
+ return this.pushState("axis_data"), "Y_AXIS";
395
+ case 19:
396
+ return this.pushState("axis_band_data"), 24;
397
+ case 20:
398
+ return 31;
399
+ case 21:
400
+ return this.pushState("data"), 16;
401
+ case 22:
402
+ return this.pushState("data"), 18;
403
+ case 23:
404
+ return this.pushState("data_inner"), 24;
405
+ case 24:
406
+ return 27;
407
+ case 25:
408
+ return this.popState(), 26;
409
+ case 26:
410
+ this.popState();
411
+ break;
412
+ case 27:
413
+ this.pushState("string");
414
+ break;
415
+ case 28:
416
+ this.popState();
417
+ break;
418
+ case 29:
419
+ return "STR";
420
+ case 30:
421
+ return 24;
422
+ case 31:
423
+ return 26;
424
+ case 32:
425
+ return 43;
426
+ case 33:
427
+ return "COLON";
428
+ case 34:
429
+ return 44;
430
+ case 35:
431
+ return 28;
432
+ case 36:
433
+ return 45;
434
+ case 37:
435
+ return 46;
436
+ case 38:
437
+ return 48;
438
+ case 39:
439
+ return 50;
440
+ case 40:
441
+ return 47;
442
+ case 41:
443
+ return 41;
444
+ case 42:
445
+ return 49;
446
+ case 43:
447
+ return 42;
448
+ case 44:
449
+ break;
450
+ case 45:
451
+ return 35;
452
+ case 46:
453
+ return 36;
454
+ }
455
+ }, "anonymous"),
456
+ 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
+ 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
+ };
459
+ return W;
460
+ }();
461
+ $.lexer = Lt;
462
+ function N() {
463
+ this.yy = {};
464
+ }
465
+ return n(N, "Parser"), N.prototype = $, $.Parser = N, new N();
466
+ }();
467
+ mt.parser = mt;
468
+ var _i = mt;
469
+ function bt(s) {
470
+ return s.type === "bar";
471
+ }
472
+ n(bt, "isBarPlot");
473
+ function St(s) {
474
+ return s.type === "band";
475
+ }
476
+ n(St, "isBandAxisData");
477
+ function q(s) {
478
+ return s.type === "linear";
479
+ }
480
+ n(q, "isLinearAxisData");
481
+ var j, Ht = (j = class {
482
+ constructor(t) {
483
+ this.parentGroup = t;
484
+ }
485
+ getMaxDimension(t, i) {
486
+ if (!this.parentGroup)
487
+ return {
488
+ width: t.reduce((c, d) => Math.max(d.length, c), 0) * i,
489
+ height: i
490
+ };
491
+ const e = {
492
+ width: 0,
493
+ 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);
498
+ }
499
+ return a.remove(), e;
500
+ }
501
+ }, n(j, "TextDimensionCalculatorWithFont"), j), 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";
504
+ }
505
+ setRange(t) {
506
+ 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();
507
+ }
508
+ getRange() {
509
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
510
+ }
511
+ setAxisPosition(t) {
512
+ this.axisPosition = t, this.setRange(this.range);
513
+ }
514
+ getTickDistance() {
515
+ const t = this.getRange();
516
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
517
+ }
518
+ getAxisOuterPadding() {
519
+ return this.outerPadding;
520
+ }
521
+ getLabelDimension() {
522
+ return this.textDimensionCalculator.getMaxDimension(
523
+ this.getTickValues().map((t) => t.toString()),
524
+ this.axisConfig.labelFontSize
525
+ );
526
+ }
527
+ recalculateOuterPaddingToDrawBar() {
528
+ Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
529
+ }
530
+ calculateSpaceIfDrawnHorizontally(t) {
531
+ let i = t.height;
532
+ 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);
537
+ }
538
+ 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(
540
+ [this.title],
541
+ this.axisConfig.titleFontSize
542
+ ), a = e.height + this.axisConfig.titlePadding * 2;
543
+ this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
544
+ }
545
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
546
+ }
547
+ calculateSpaceIfDrawnVertical(t) {
548
+ let i = t.width;
549
+ 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);
554
+ }
555
+ 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(
557
+ [this.title],
558
+ this.axisConfig.titleFontSize
559
+ ), a = e.height + this.axisConfig.titlePadding * 2;
560
+ this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
561
+ }
562
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
563
+ }
564
+ calculateSpace(t) {
565
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
566
+ width: this.boundingRect.width,
567
+ height: this.boundingRect.height
568
+ };
569
+ }
570
+ setBoundingBoxXY(t) {
571
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
572
+ }
573
+ getDrawableElementsForLeftAxis() {
574
+ const t = [];
575
+ if (this.showAxisLine) {
576
+ const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
577
+ t.push({
578
+ type: "path",
579
+ groupTexts: ["left-axis", "axisl-line"],
580
+ data: [
581
+ {
582
+ path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
583
+ strokeFill: this.axisThemeConfig.axisLineColor,
584
+ strokeWidth: this.axisConfig.axisLineWidth
585
+ }
586
+ ]
587
+ });
588
+ }
589
+ if (this.showLabel && t.push({
590
+ type: "text",
591
+ groupTexts: ["left-axis", "label"],
592
+ data: this.getTickValues().map((i) => ({
593
+ text: i.toString(),
594
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
595
+ y: this.getScaleValue(i),
596
+ fill: this.axisThemeConfig.labelColor,
597
+ fontSize: this.axisConfig.labelFontSize,
598
+ rotation: 0,
599
+ verticalPos: "middle",
600
+ horizontalPos: "right"
601
+ }))
602
+ }), this.showTick) {
603
+ const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
604
+ t.push({
605
+ type: "path",
606
+ 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)}`,
609
+ strokeFill: this.axisThemeConfig.tickColor,
610
+ strokeWidth: this.axisConfig.tickWidth
611
+ }))
612
+ });
613
+ }
614
+ return this.showTitle && t.push({
615
+ type: "text",
616
+ groupTexts: ["left-axis", "title"],
617
+ data: [
618
+ {
619
+ text: this.title,
620
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
621
+ y: this.boundingRect.y + this.boundingRect.height / 2,
622
+ fill: this.axisThemeConfig.titleColor,
623
+ fontSize: this.axisConfig.titleFontSize,
624
+ rotation: 270,
625
+ verticalPos: "top",
626
+ horizontalPos: "center"
627
+ }
628
+ ]
629
+ }), t;
630
+ }
631
+ getDrawableElementsForBottomAxis() {
632
+ const t = [];
633
+ if (this.showAxisLine) {
634
+ const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
635
+ t.push({
636
+ type: "path",
637
+ groupTexts: ["bottom-axis", "axis-line"],
638
+ data: [
639
+ {
640
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
641
+ strokeFill: this.axisThemeConfig.axisLineColor,
642
+ strokeWidth: this.axisConfig.axisLineWidth
643
+ }
644
+ ]
645
+ });
646
+ }
647
+ if (this.showLabel && t.push({
648
+ type: "text",
649
+ groupTexts: ["bottom-axis", "label"],
650
+ data: this.getTickValues().map((i) => ({
651
+ text: i.toString(),
652
+ x: this.getScaleValue(i),
653
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
654
+ fill: this.axisThemeConfig.labelColor,
655
+ fontSize: this.axisConfig.labelFontSize,
656
+ rotation: 0,
657
+ verticalPos: "top",
658
+ horizontalPos: "center"
659
+ }))
660
+ }), this.showTick) {
661
+ const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
662
+ t.push({
663
+ type: "path",
664
+ 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}`,
667
+ strokeFill: this.axisThemeConfig.tickColor,
668
+ strokeWidth: this.axisConfig.tickWidth
669
+ }))
670
+ });
671
+ }
672
+ return this.showTitle && t.push({
673
+ type: "text",
674
+ groupTexts: ["bottom-axis", "title"],
675
+ data: [
676
+ {
677
+ text: this.title,
678
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
679
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
680
+ fill: this.axisThemeConfig.titleColor,
681
+ fontSize: this.axisConfig.titleFontSize,
682
+ rotation: 0,
683
+ verticalPos: "top",
684
+ horizontalPos: "center"
685
+ }
686
+ ]
687
+ }), t;
688
+ }
689
+ getDrawableElementsForTopAxis() {
690
+ const t = [];
691
+ if (this.showAxisLine) {
692
+ const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
693
+ t.push({
694
+ type: "path",
695
+ groupTexts: ["top-axis", "axis-line"],
696
+ data: [
697
+ {
698
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
699
+ strokeFill: this.axisThemeConfig.axisLineColor,
700
+ strokeWidth: this.axisConfig.axisLineWidth
701
+ }
702
+ ]
703
+ });
704
+ }
705
+ if (this.showLabel && t.push({
706
+ type: "text",
707
+ groupTexts: ["top-axis", "label"],
708
+ data: this.getTickValues().map((i) => ({
709
+ text: i.toString(),
710
+ x: this.getScaleValue(i),
711
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
712
+ fill: this.axisThemeConfig.labelColor,
713
+ fontSize: this.axisConfig.labelFontSize,
714
+ rotation: 0,
715
+ verticalPos: "top",
716
+ horizontalPos: "center"
717
+ }))
718
+ }), this.showTick) {
719
+ const i = this.boundingRect.y;
720
+ t.push({
721
+ type: "path",
722
+ 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)}`,
725
+ strokeFill: this.axisThemeConfig.tickColor,
726
+ strokeWidth: this.axisConfig.tickWidth
727
+ }))
728
+ });
729
+ }
730
+ return this.showTitle && t.push({
731
+ type: "text",
732
+ groupTexts: ["top-axis", "title"],
733
+ data: [
734
+ {
735
+ text: this.title,
736
+ x: this.boundingRect.x + this.boundingRect.width / 2,
737
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
738
+ fill: this.axisThemeConfig.titleColor,
739
+ fontSize: this.axisConfig.titleFontSize,
740
+ rotation: 0,
741
+ verticalPos: "top",
742
+ horizontalPos: "center"
743
+ }
744
+ ]
745
+ }), t;
746
+ }
747
+ getDrawableElements() {
748
+ if (this.axisPosition === "left")
749
+ return this.getDrawableElementsForLeftAxis();
750
+ if (this.axisPosition === "right")
751
+ throw Error("Drawing of right axis is not implemented");
752
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
753
+ }
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());
757
+ }
758
+ setRange(t) {
759
+ super.setRange(t);
760
+ }
761
+ 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());
763
+ }
764
+ getTickValues() {
765
+ return this.categories;
766
+ }
767
+ getScaleValue(t) {
768
+ return this.scale(t) ?? this.getRange()[0];
769
+ }
770
+ }, n(K, "BandAxis"), K), J, Ti = (J = 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());
773
+ }
774
+ getTickValues() {
775
+ return this.scale.ticks();
776
+ }
777
+ recalculateScale() {
778
+ const t = [...this.domain];
779
+ this.axisPosition === "left" && t.reverse(), this.scale = zt().domain(t).range(this.getRange());
780
+ }
781
+ getScaleValue(t) {
782
+ return this.scale(t);
783
+ }
784
+ }, n(J, "LinearAxis"), J);
785
+ function At(s, t, i, e) {
786
+ const a = new Ht(e);
787
+ return St(s) ? new ki(
788
+ t,
789
+ i,
790
+ s.categories,
791
+ s.title,
792
+ a
793
+ ) : new Ti(
794
+ t,
795
+ i,
796
+ [s.min, s.max],
797
+ s.title,
798
+ a
799
+ );
800
+ }
801
+ n(At, "getAxis");
802
+ var Z, Ri = (Z = class {
803
+ constructor(t, i, e, a) {
804
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = a, this.boundingRect = {
805
+ x: 0,
806
+ y: 0,
807
+ width: 0,
808
+ height: 0
809
+ }, this.showChartTitle = !1;
810
+ }
811
+ setBoundingBoxXY(t) {
812
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
813
+ }
814
+ calculateSpace(t) {
815
+ const i = this.textDimensionCalculator.getMaxDimension(
816
+ [this.chartData.title],
817
+ 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), {
820
+ width: this.boundingRect.width,
821
+ height: this.boundingRect.height
822
+ };
823
+ }
824
+ getDrawableElements() {
825
+ const t = [];
826
+ return this.showChartTitle && t.push({
827
+ groupTexts: ["chart-title"],
828
+ type: "text",
829
+ data: [
830
+ {
831
+ fontSize: this.chartConfig.titleFontSize,
832
+ text: this.chartData.title,
833
+ verticalPos: "middle",
834
+ horizontalPos: "center",
835
+ x: this.boundingRect.x + this.boundingRect.width / 2,
836
+ y: this.boundingRect.y + this.boundingRect.height / 2,
837
+ fill: this.chartThemeConfig.titleColor,
838
+ rotation: 0
839
+ }
840
+ ]
841
+ }), t;
842
+ }
843
+ }, n(Z, "ChartTitle"), Z);
844
+ function $t(s, t, i, e) {
845
+ const a = new Ht(e);
846
+ return new Ri(a, s, t, i);
847
+ }
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;
852
+ }
853
+ getDrawableElement() {
854
+ const t = this.plotData.data.map((e) => [
855
+ this.xAxis.getScaleValue(e[0]),
856
+ this.yAxis.getScaleValue(e[1])
857
+ ]);
858
+ 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 ? [
860
+ {
861
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
862
+ type: "path",
863
+ data: [
864
+ {
865
+ path: i,
866
+ strokeFill: this.plotData.strokeFill,
867
+ strokeWidth: this.plotData.strokeWidth
868
+ }
869
+ ]
870
+ }
871
+ ] : [];
872
+ }
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;
876
+ }
877
+ 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;
882
+ return this.orientation === "horizontal" ? [
883
+ {
884
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
885
+ type: "rect",
886
+ data: t.map((c) => ({
887
+ x: this.boundingRect.x,
888
+ y: c[0] - a,
889
+ height: e,
890
+ width: c[1] - this.boundingRect.x,
891
+ fill: this.barData.fill,
892
+ strokeWidth: 0,
893
+ strokeFill: this.barData.fill
894
+ }))
895
+ }
896
+ ] : [
897
+ {
898
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
899
+ 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],
905
+ fill: this.barData.fill,
906
+ strokeWidth: 0,
907
+ strokeFill: this.barData.fill
908
+ }))
909
+ }
910
+ ];
911
+ }
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 = {
915
+ x: 0,
916
+ y: 0,
917
+ width: 0,
918
+ height: 0
919
+ };
920
+ }
921
+ setAxes(t, i) {
922
+ this.xAxis = t, this.yAxis = i;
923
+ }
924
+ setBoundingBoxXY(t) {
925
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
926
+ }
927
+ calculateSpace(t) {
928
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
929
+ width: this.boundingRect.width,
930
+ height: this.boundingRect.height
931
+ };
932
+ }
933
+ getDrawableElements() {
934
+ if (!(this.xAxis && this.yAxis))
935
+ throw Error("Axes must be passed to render Plots");
936
+ const t = [];
937
+ for (const [i, e] of this.chartData.plots.entries())
938
+ switch (e.type) {
939
+ case "line":
940
+ {
941
+ const a = new Di(
942
+ e,
943
+ this.xAxis,
944
+ this.yAxis,
945
+ this.chartConfig.chartOrientation,
946
+ i
947
+ );
948
+ t.push(...a.getDrawableElement());
949
+ }
950
+ break;
951
+ case "bar":
952
+ {
953
+ const a = new vi(
954
+ e,
955
+ this.boundingRect,
956
+ this.xAxis,
957
+ this.yAxis,
958
+ this.chartConfig.chartOrientation,
959
+ i
960
+ );
961
+ t.push(...a.getDrawableElement());
962
+ }
963
+ break;
964
+ }
965
+ return t;
966
+ }
967
+ }, n(et, "BasePlot"), et);
968
+ function Gt(s, t, i) {
969
+ return new Pi(s, t, i);
970
+ }
971
+ n(Gt, "getPlotComponent");
972
+ var st, Li = (st = class {
973
+ constructor(t, i, e, a) {
974
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
975
+ title: $t(t, i, e, a),
976
+ plot: Gt(t, i, e),
977
+ xAxis: At(
978
+ i.xAxis,
979
+ t.xAxis,
980
+ {
981
+ titleColor: e.xAxisTitleColor,
982
+ labelColor: e.xAxisLabelColor,
983
+ tickColor: e.xAxisTickColor,
984
+ axisLineColor: e.xAxisLineColor
985
+ },
986
+ a
987
+ ),
988
+ yAxis: At(
989
+ i.yAxis,
990
+ t.yAxis,
991
+ {
992
+ titleColor: e.yAxisTitleColor,
993
+ labelColor: e.yAxisLabelColor,
994
+ tickColor: e.yAxisTickColor,
995
+ axisLineColor: e.yAxisLineColor
996
+ },
997
+ a
998
+ )
999
+ };
1000
+ }
1001
+ 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(
1003
+ i * this.chartConfig.plotReservedSpacePercent / 100
1004
+ ), m = this.componentStore.plot.calculateSpace({
1005
+ width: c,
1006
+ height: d
1007
+ });
1008
+ t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1009
+ width: this.chartConfig.width,
1010
+ height: i
1011
+ }), a = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1012
+ width: t,
1013
+ height: i
1014
+ }), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
1015
+ width: t,
1016
+ 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();
1021
+ }
1022
+ 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(
1024
+ i * this.chartConfig.plotReservedSpacePercent / 100
1025
+ ), b = this.componentStore.plot.calculateSpace({
1026
+ width: d,
1027
+ height: m
1028
+ });
1029
+ t -= b.width, i -= b.height, b = this.componentStore.title.calculateSpace({
1030
+ width: this.chartConfig.width,
1031
+ height: i
1032
+ }), e = b.height, i -= b.height, this.componentStore.xAxis.setAxisPosition("left"), b = this.componentStore.xAxis.calculateSpace({
1033
+ width: t,
1034
+ height: i
1035
+ }), t -= b.width, a = b.width, this.componentStore.yAxis.setAxisPosition("top"), b = this.componentStore.yAxis.calculateSpace({
1036
+ width: t,
1037
+ 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,
1040
+ 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();
1042
+ }
1043
+ calculateSpace() {
1044
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1045
+ }
1046
+ getDrawableElement() {
1047
+ this.calculateSpace();
1048
+ const t = [];
1049
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1050
+ for (const i of Object.values(this.componentStore))
1051
+ t.push(...i.getDrawableElements());
1052
+ return t;
1053
+ }
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();
1057
+ }
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);
1062
+ }
1063
+ n(kt, "getChartDefaultThemeConfig");
1064
+ function Tt() {
1065
+ const s = Ct();
1066
+ return Nt(
1067
+ di.xyChart,
1068
+ s.xyChart
1069
+ );
1070
+ }
1071
+ n(Tt, "getChartDefaultConfig");
1072
+ function Rt() {
1073
+ return {
1074
+ yAxis: {
1075
+ type: "linear",
1076
+ title: "",
1077
+ min: 1 / 0,
1078
+ max: -1 / 0
1079
+ },
1080
+ xAxis: {
1081
+ type: "band",
1082
+ title: "",
1083
+ categories: []
1084
+ },
1085
+ title: "",
1086
+ plots: []
1087
+ };
1088
+ }
1089
+ n(Rt, "getChartDefaultData");
1090
+ function xt(s) {
1091
+ const t = Ct();
1092
+ return pi(s.trim(), t);
1093
+ }
1094
+ n(xt, "textSanitizer");
1095
+ function jt(s) {
1096
+ qt = s;
1097
+ }
1098
+ n(jt, "setTmpSVGG");
1099
+ function Qt(s) {
1100
+ s === "horizontal" ? rt.chartOrientation = "horizontal" : rt.chartOrientation = "vertical";
1101
+ }
1102
+ n(Qt, "setOrientation");
1103
+ function Kt(s) {
1104
+ y.xAxis.title = xt(s.text);
1105
+ }
1106
+ n(Kt, "setXAxisTitle");
1107
+ function Dt(s, t) {
1108
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: s, max: t }, gt = !0;
1109
+ }
1110
+ n(Dt, "setXAxisRangeData");
1111
+ function Jt(s) {
1112
+ y.xAxis = {
1113
+ type: "band",
1114
+ title: y.xAxis.title,
1115
+ categories: s.map((t) => xt(t.text))
1116
+ }, gt = !0;
1117
+ }
1118
+ n(Jt, "setXAxisBand");
1119
+ function Zt(s) {
1120
+ y.yAxis.title = xt(s.text);
1121
+ }
1122
+ n(Zt, "setYAxisTitle");
1123
+ function ti(s, t) {
1124
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: s, max: t }, _t = !0;
1125
+ }
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 = {
1130
+ type: "linear",
1131
+ title: y.yAxis.title,
1132
+ min: Math.min(e, t),
1133
+ max: Math.max(a, i)
1134
+ };
1135
+ }
1136
+ n(ii, "setYAxisRangeFromPlotData");
1137
+ function vt(s) {
1138
+ let t = [];
1139
+ if (s.length === 0)
1140
+ return t;
1141
+ 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));
1144
+ }
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]]);
1150
+ }
1151
+ return t;
1152
+ }
1153
+ n(vt, "transformDataWithoutCategory");
1154
+ function Pt(s) {
1155
+ return wt[s === 0 ? 0 : s % wt.length];
1156
+ }
1157
+ n(Pt, "getPlotColorFromPalette");
1158
+ function ei(s, t) {
1159
+ const i = vt(t);
1160
+ y.plots.push({
1161
+ type: "line",
1162
+ strokeFill: Pt(ot),
1163
+ strokeWidth: 2,
1164
+ data: i
1165
+ }), ot++;
1166
+ }
1167
+ n(ei, "setLineData");
1168
+ function si(s, t) {
1169
+ const i = vt(t);
1170
+ y.plots.push({
1171
+ type: "bar",
1172
+ fill: Pt(ot),
1173
+ data: i
1174
+ }), ot++;
1175
+ }
1176
+ n(si, "setBarData");
1177
+ function ai() {
1178
+ if (y.plots.length === 0)
1179
+ throw Error("No Plot to render, please provide a plot with some data");
1180
+ return y.title = Yt(), Ei.build(rt, y, ht, qt);
1181
+ }
1182
+ n(ai, "getDrawableElem");
1183
+ function ni() {
1184
+ return ht;
1185
+ }
1186
+ n(ni, "getChartThemeConfig");
1187
+ function oi() {
1188
+ return rt;
1189
+ }
1190
+ n(oi, "getChartConfig");
1191
+ function ri() {
1192
+ return y;
1193
+ }
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,
1203
+ getDiagramTitle: Yt,
1204
+ getAccDescription: bi,
1205
+ setAccDescription: Ai,
1206
+ setOrientation: Qt,
1207
+ setXAxisTitle: Kt,
1208
+ setXAxisRangeData: Dt,
1209
+ setXAxisBand: Jt,
1210
+ setYAxisTitle: Zt,
1211
+ setYAxisRangeData: ti,
1212
+ setLineData: ei,
1213
+ setBarData: si,
1214
+ setTmpSVGG: jt,
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";
1222
+ }
1223
+ n(b, "getDominantBaseLine");
1224
+ function P(f) {
1225
+ return f === "left" ? "start" : f === "right" ? "end" : "middle";
1226
+ }
1227
+ n(P, "getTextAnchor");
1228
+ function I(f) {
1229
+ return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1230
+ }
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]));
1241
+ }
1242
+ return C;
1243
+ }
1244
+ n(V, "getGroup");
1245
+ for (const f of F) {
1246
+ if (f.data.length === 0)
1247
+ continue;
1248
+ const C = V(f.groupTexts);
1249
+ switch (f.type) {
1250
+ 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;
1256
+ };
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;
1264
+ }), 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);
1266
+ } 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;
1270
+ };
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;
1278
+ }), 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);
1280
+ }
1281
+ break;
1282
+ 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);
1284
+ break;
1285
+ 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);
1287
+ break;
1288
+ }
1289
+ }
1290
+ }, "draw"), Bi = {
1291
+ draw: Mi
1292
+ }, Xi = {
1293
+ parser: _i,
1294
+ db: Vi,
1295
+ renderer: Bi
1296
+ };
1297
+ export {
1298
+ Xi as diagram
1299
+ };