@juki-team/base-ui 1.4.121 → 1.4.127

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 (343) hide show
  1. package/dist/esm/ArrowForwardIcon-C60hznwq.js +1 -0
  2. package/dist/esm/BarChart-Y665GO2I.js +1 -0
  3. package/dist/esm/{CartesianChart-tXHM9yHp.js → CartesianChart-BSvx15yS.js} +5 -5
  4. package/dist/esm/ChangePasswordModal-k-lMf3KZ.js +1 -0
  5. package/dist/esm/CodeEditor-Dzi2v961.js +1 -0
  6. package/dist/esm/CodeViewer-BdmCvDHi.js +1 -0
  7. package/dist/esm/Collapse-DT9m5JSq.js +1 -0
  8. package/dist/esm/DataGrid-BMin2rBG.js +277 -0
  9. package/dist/esm/DataViewer-DFjt8Z2T.js +1 -0
  10. package/dist/esm/DrawerView-DnA_hA_o.js +1 -0
  11. package/dist/esm/ExcalidrawButton-BIpwsxPt.js +1 -0
  12. package/dist/esm/GraphvizViewer-BcJ7nToT.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-05YcRQBj.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-BMf06bCT.js +1 -0
  15. package/dist/esm/{InputColor-D_uAIBKY.js → InputColor-D4iKI1yK.js} +3 -3
  16. package/dist/esm/LineChart-BIIgUvoc.js +1 -0
  17. package/dist/esm/MdMath-DQTMZaLV.js +1 -0
  18. package/dist/esm/MdMathEditor-BNc7OJyC.js +28 -0
  19. package/dist/esm/{Popover-myjbsRtv.js → Popover-3_hEGjKj.js} +1 -1
  20. package/dist/esm/ReplyIcon-DHT60m5d.js +1 -0
  21. package/dist/esm/SettingsIcon-CwPMEnlj.js +1 -0
  22. package/dist/esm/SlideDeck-CeJiattp.js +1 -0
  23. package/dist/esm/{ProblemStatus-C5CR0Z8d.js → SubmissionDateField-BrmGyMm3.js} +1 -1
  24. package/dist/esm/TableOfContents-CuG8yYpo.js +1 -0
  25. package/dist/esm/TextHeadCell-SVbfF_eL.js +1 -0
  26. package/dist/esm/Tooltip-DDKwIA6e.js +7 -0
  27. package/dist/esm/{UserCodeEditor-BwNoHEIy.js → UserCodeEditor-B03D6M_j.js} +9 -9
  28. package/dist/esm/VirtualizedRowsFixed-CmXcLfyc.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-DAW1vFDM.js +1 -0
  30. package/dist/esm/WorksheetBodies-CoKyyPAM.js +1 -0
  31. package/dist/esm/WorksheetContents-3MJ6QvVj.js +1 -0
  32. package/dist/esm/WorksheetEditor-MJcu6NAp.js +1 -0
  33. package/dist/esm/WorksheetNode-CNdvC8qa.js +1 -0
  34. package/dist/esm/WorksheetViewer-Csl3IhGA.js +1 -0
  35. package/dist/esm/arc-BNZ5pIhU.js +1 -0
  36. package/dist/esm/architectureDiagram-3BPJPVTR-EGo92Js8.js +1 -0
  37. package/dist/esm/{band-D2afako6.js → band-DVHgMxOa.js} +1 -1
  38. package/dist/esm/basic-setup-Uxna1ORW.js +1 -0
  39. package/dist/esm/blockDiagram-GPEHLZMM-YEwStt0q.js +1 -0
  40. package/dist/esm/c4Diagram-AAUBKEIU-6qLMKLHQ.js +1 -0
  41. package/dist/esm/channel-DuJyewAO.js +1 -0
  42. package/dist/esm/chunk-2J33WTMH-CSNy6D0K.js +1 -0
  43. package/dist/esm/{chunk-4BX2VUAB-COJYrArq.js → chunk-4BX2VUAB-BG00Pq3P.js} +1 -1
  44. package/dist/esm/chunk-55IACEB6-_KG92tYv.js +1 -0
  45. package/dist/esm/chunk-727SXJPM-1yPcPicj.js +1 -0
  46. package/dist/esm/chunk-AQP2D5EJ-B6rE4s-L.js +1 -0
  47. package/dist/esm/{chunk-FMBD7UC4-PcmGZaXU.js → chunk-FMBD7UC4-B30SBvYv.js} +1 -1
  48. package/dist/esm/chunk-ND2GUHAM-Dew5vqZ7.js +1 -0
  49. package/dist/esm/{chunk-QZHKN3VN-D5wczz_U.js → chunk-QZHKN3VN-DBZ0ofQY.js} +1 -1
  50. package/dist/esm/classDiagram-4FO5ZUOK-D95DEj2F.js +1 -0
  51. package/dist/esm/classDiagram-v2-Q7XG4LA2-D95DEj2F.js +1 -0
  52. package/dist/esm/constants.js +1 -1
  53. package/dist/esm/cose-bilkent-S5V4N54A-DvdEsdgg.js +1 -0
  54. package/dist/esm/dagre-BM42HDAG-CAK4m8n4.js +1 -0
  55. package/dist/esm/{date-DabTuCYQ.js → date-CmFU6v8V.js} +1 -1
  56. package/dist/esm/{defaultLocale-HOdfsG1x.js → defaultLocale-BAKTrQtR.js} +1 -1
  57. package/dist/esm/diagram-2AECGRRQ-CSqNVFb4.js +1 -0
  58. package/dist/esm/diagram-5GNKFQAL-BWzWwjF5.js +1 -0
  59. package/dist/esm/diagram-KO2AKTUF-D2-JeanM.js +1 -0
  60. package/dist/esm/diagram-LMA3HP47-DS2R1tWs.js +1 -0
  61. package/dist/esm/diagram-OG6HWLK6-DTxKf0Qv.js +1 -0
  62. package/dist/esm/erDiagram-TEJ5UH35-WtYIPbRt.js +1 -0
  63. package/dist/esm/{floating-ui.dom-BBZn3WzR.js → floating-ui.dom-D1Wb0QDy.js} +1 -1
  64. package/dist/esm/flowDiagram-I6XJVG4X-Dy8OXjRp.js +1 -0
  65. package/dist/esm/ganttDiagram-6RSMTGT7-EDpgQ3lf.js +1 -0
  66. package/dist/esm/gitGraphDiagram-PVQCEYII-B46XqY2u.js +1 -0
  67. package/dist/esm/graph-CBbILnwM.js +1 -0
  68. package/dist/esm/helpers.js +1 -1
  69. package/dist/esm/index-6wuMZC45.js +1 -0
  70. package/dist/esm/index-7ZeiemAy.js +1 -0
  71. package/dist/esm/index-93zckEk3.js +1 -0
  72. package/dist/esm/{index-BD_n8l03.js → index-9FCB1eYq.js} +1 -1
  73. package/dist/esm/index-B62yhWOD.js +1 -0
  74. package/dist/esm/index-BGOJy6XN.js +1 -0
  75. package/dist/esm/index-BLeJ2vIS.js +1 -0
  76. package/dist/esm/index-BNfTE7vw.js +1 -0
  77. package/dist/esm/index-BP3Q2zrN.js +1 -0
  78. package/dist/esm/index-BP3zM0tT.js +1 -0
  79. package/dist/esm/index-BRtSnjHY.js +1 -0
  80. package/dist/esm/index-BqzjQnaK.js +1 -0
  81. package/dist/esm/{index-BWbfbDmw.js → index-BwuVfyt_.js} +1 -1
  82. package/dist/esm/index-C5ILZmlq.js +1 -0
  83. package/dist/esm/index-C78By0NM.js +1 -0
  84. package/dist/esm/index-CR8iXDSF.js +1 -0
  85. package/dist/esm/index-CiR06WNd.js +1 -0
  86. package/dist/esm/index-CjLxDzml.js +1 -0
  87. package/dist/esm/index-Cp9n6f_0.js +2 -0
  88. package/dist/esm/index-CscbTRs5.js +1 -0
  89. package/dist/esm/index-Cub1smTw.js +1 -0
  90. package/dist/esm/index-DazVIYP8.js +1 -0
  91. package/dist/esm/index-De9_SWGB.js +1 -0
  92. package/dist/esm/index-Dg7y6UO5.js +1 -0
  93. package/dist/esm/index-DntVU4z9.js +1 -0
  94. package/dist/esm/index-DpJxGesA.js +1 -0
  95. package/dist/esm/index-FHXK2zWb.js +1 -0
  96. package/dist/esm/index-LpQq9PxO.js +1 -0
  97. package/dist/esm/index-QDPpqsGj.js +1 -0
  98. package/dist/esm/{index-DDs-O4vd.js → index-_4A5sEHw.js} +1 -1
  99. package/dist/esm/index-cKVkCxcy.js +1 -0
  100. package/dist/esm/index-uJKDC6Vv.js +1 -0
  101. package/dist/esm/infoDiagram-5YYISTIA-CY7j_JnA.js +1 -0
  102. package/dist/esm/{init-DLRA0X12.js → init-DWDD0M30.js} +1 -1
  103. package/dist/esm/isSymbol-BuOnvf7n.js +1 -0
  104. package/dist/esm/isUndefined-CFeFfF_Q.js +1 -0
  105. package/dist/esm/ishikawaDiagram-YF4QCWOH-D6o2nQHa.js +1 -0
  106. package/dist/esm/journeyDiagram-JHISSGLW-DdFME4_e.js +1 -0
  107. package/dist/esm/kanban-definition-UN3LZRKU-DVq4JZWr.js +1 -0
  108. package/dist/esm/layout-B7iAeCjH.js +1 -0
  109. package/dist/esm/{linear-BRlKh6eb.js → linear-BqR6NtXG.js} +1 -1
  110. package/dist/esm/{lua-8DXOpKDz.js → lua-BvgfYBhq.js} +1 -1
  111. package/dist/esm/main.js +1 -1
  112. package/dist/esm/map-CUEN-iGA.js +1 -0
  113. package/dist/esm/mermaid.core-BJ63Ijjp.js +1 -0
  114. package/dist/esm/mindmap-definition-RKZ34NQL-jgbgERyG.js +1 -0
  115. package/dist/esm/{ordinal-zwWoQKz9.js → ordinal-UuA5o140.js} +1 -1
  116. package/dist/esm/pieDiagram-4H26LBE5-Kk7ovyMv.js +1 -0
  117. package/dist/esm/quadrantDiagram-W4KKPZXB-DiMCYk-T.js +1 -0
  118. package/dist/esm/requirementDiagram-4Y6WPE33-DZBXo7zD.js +1 -0
  119. package/dist/esm/sankeyDiagram-5OEKKPKP-CJp9Tkkm.js +1 -0
  120. package/dist/esm/sequenceDiagram-3UESZ5HK-D76l6Rd4.js +1 -0
  121. package/dist/esm/server.js +1 -1
  122. package/dist/esm/settings.js +1 -1
  123. package/dist/esm/stateDiagram-AJRCARHV-CesXVS_W.js +1 -0
  124. package/dist/esm/stateDiagram-v2-BHNVJYJU-DqWSoWM6.js +1 -0
  125. package/dist/esm/{string-LeDn2fkG.js → string-CQk_HvWX.js} +1 -1
  126. package/dist/esm/throttle-omWozCTR.js +1 -0
  127. package/dist/esm/{time-BPMFfIa-.js → time-BgcLBBP-.js} +1 -1
  128. package/dist/esm/time-BhHpEZFB.js +1 -0
  129. package/dist/esm/timeline-definition-PNZ67QCA-CDn8cvlq.js +1 -0
  130. package/dist/esm/toNumber-DDd3oWg0.js +1 -0
  131. package/dist/esm/types-Bp4jYQko.js +1 -0
  132. package/dist/esm/vennDiagram-CIIHVFJN-DlZtAp7y.js +1 -0
  133. package/dist/esm/viz-BjPw9uNj.js +9 -0
  134. package/dist/esm/wardley-L42UT6IY-Bn2xZ99U.js +15 -0
  135. package/dist/esm/wardleyDiagram-YWT4CUSO-DG4_85tj.js +1 -0
  136. package/dist/esm/{websocket-Nx7WdiK7.js → websocket-BXbChnc8.js} +1 -1
  137. package/dist/esm/{worksheet-BxUIsAEo.js → worksheet-BfayCMey.js} +1 -1
  138. package/dist/esm/{worksheet-D1AAXRU9.js → worksheet-JNPwhsnI.js} +1 -1
  139. package/dist/esm/{worksheet-ClM0CaBH.js → worksheet-KMCQx4-g.js} +1 -1
  140. package/dist/esm/xychartDiagram-2RQKCTM6-BYf7oiMn.js +1 -0
  141. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/component/diff.d.ts +1 -0
  142. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/exception.d.ts +1 -0
  143. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +1 -0
  144. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +1 -0
  145. package/dist/module-types/src/components/templates/columns/contest-columns/index.d.ts +2 -2
  146. package/dist/module-types/src/components/templates/index.d.ts +0 -2
  147. package/dist/module-types/src/components/templates/{columns → server/columns}/contest-columns/getContestContestantsHeader.d.ts +1 -1
  148. package/dist/module-types/src/components/templates/{columns → server/columns}/contest-columns/getContestDateHeader.d.ts +1 -1
  149. package/dist/module-types/src/components/templates/server/index.d.ts +4 -0
  150. package/dist/module-types/src/components/templates/{problem → server/problem}/TagsField.d.ts +1 -1
  151. package/dist/module-types/src/components/templates/{submission → server/submission}/SubmissionDateField.d.ts +1 -1
  152. package/package.json +55 -60
  153. package/src/styles/components/atoms/_button.scss +7 -7
  154. package/src/styles/components/atoms/_data-viewer.scss +3 -3
  155. package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +446 -0
  156. package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +14 -0
  157. package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +177 -0
  158. package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +2 -0
  159. package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +430 -0
  160. package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +14 -0
  161. package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +196 -0
  162. package/src/vendor/@milkdown/crepe/src/theme/common/style.css +2 -0
  163. package/src/vendor/fumadocs-ui/css/generated/docs.css +0 -2
  164. package/src/vendor/fumadocs-ui/css/generated/flux.css +0 -2
  165. package/src/vendor/fumadocs-ui/css/generated/home.css +0 -8
  166. package/src/vendor/fumadocs-ui/css/generated/notebook.css +0 -2
  167. package/src/vendor/fumadocs-ui/css/generated/shared.css +81 -16
  168. package/src/vendor/fumadocs-ui/dist/style.css +56 -34
  169. package/src/vendor/handsontable/styles/handsontable.css +335 -82
  170. package/src/vendor/handsontable/styles/handsontable.min.css +4 -3
  171. package/src/vendor/handsontable/styles/ht-icons-horizon.css +11 -3
  172. package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +4 -3
  173. package/src/vendor/handsontable/styles/ht-icons-main.css +11 -3
  174. package/src/vendor/handsontable/styles/ht-icons-main.min.css +4 -3
  175. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +21 -2
  176. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +4 -3
  177. package/src/vendor/handsontable/styles/ht-theme-classic.css +32 -5
  178. package/src/vendor/handsontable/styles/ht-theme-classic.min.css +4 -3
  179. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +20 -1
  180. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +4 -3
  181. package/src/vendor/handsontable/styles/ht-theme-horizon.css +31 -4
  182. package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +4 -3
  183. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +21 -2
  184. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +4 -3
  185. package/src/vendor/handsontable/styles/ht-theme-main.css +32 -5
  186. package/src/vendor/handsontable/styles/ht-theme-main.min.css +4 -3
  187. package/src/vendor/katex/dist/katex-swap.css +5 -2
  188. package/src/vendor/katex/dist/katex-swap.min.css +1 -1
  189. package/src/vendor/katex/dist/katex.css +5 -2
  190. package/src/vendor/katex/dist/katex.min.css +1 -1
  191. package/src/vendor/katex/src/styles/katex.scss +3 -1
  192. package/dist/esm/ArrowForwardIcon-CVIKnzmu.js +0 -1
  193. package/dist/esm/BarChart-C4j466sV.js +0 -1
  194. package/dist/esm/ChangePasswordModal-DAn7XeyD.js +0 -1
  195. package/dist/esm/CodeEditor-CFWIRByc.js +0 -1
  196. package/dist/esm/CodeViewer-C6XCe0GT.js +0 -1
  197. package/dist/esm/Collapse-DpriDerh.js +0 -1
  198. package/dist/esm/DataGrid-CD44fkam.js +0 -272
  199. package/dist/esm/DataViewer-B1l0B0-d.js +0 -1
  200. package/dist/esm/DrawerView-hvnlPQq6.js +0 -1
  201. package/dist/esm/ExcalidrawButton-COXAKOpn.js +0 -1
  202. package/dist/esm/GraphvizViewer-BK4ypl3L.js +0 -1
  203. package/dist/esm/ImageLoaderCropper-DEt5ge51.js +0 -1
  204. package/dist/esm/InputCellPhoneNumber-CbFB6H2i.js +0 -1
  205. package/dist/esm/LineChart-B3nrTHaA.js +0 -1
  206. package/dist/esm/MdMath-Mf8WxhKy.js +0 -1
  207. package/dist/esm/MdMathEditor-BUf36EaT.js +0 -28
  208. package/dist/esm/ReplyIcon-DJFT1Tjl.js +0 -1
  209. package/dist/esm/SettingsIcon-CaFHSleq.js +0 -1
  210. package/dist/esm/SlideDeck-DvVHz3uy.js +0 -1
  211. package/dist/esm/TableOfContents-I1zUQZlM.js +0 -1
  212. package/dist/esm/TextHeadCell-CDT516Nd.js +0 -1
  213. package/dist/esm/Tooltip-CHc2LM3e.js +0 -7
  214. package/dist/esm/VirtualizedRowsFixed-SmGRufd0.js +0 -1
  215. package/dist/esm/WorksheetAsSlides-BQVnbTDc.js +0 -1
  216. package/dist/esm/WorksheetBodies-kphWX0g5.js +0 -1
  217. package/dist/esm/WorksheetContents-CI8UrxIy.js +0 -1
  218. package/dist/esm/WorksheetEditor-CHC4ormG.js +0 -1
  219. package/dist/esm/WorksheetNode-C9ioDzE-.js +0 -1
  220. package/dist/esm/WorksheetViewer-Drg2e9_6.js +0 -1
  221. package/dist/esm/_baseIteratee-DJNkOVK7.js +0 -1
  222. package/dist/esm/_baseUniq-BJKKUJ6e.js +0 -1
  223. package/dist/esm/arc-CpSlG_nw.js +0 -1
  224. package/dist/esm/architecture-YZFGNWBL-DHLZLvJj.js +0 -1
  225. package/dist/esm/architectureDiagram-Q4EWVU46-DO8F0qz7.js +0 -1
  226. package/dist/esm/basic-setup-Cz3rV4Fo.js +0 -1
  227. package/dist/esm/blockDiagram-DXYQGD6D-DNKe0cgR.js +0 -1
  228. package/dist/esm/c4Diagram-AHTNJAMY-DN5fuFmb.js +0 -1
  229. package/dist/esm/channel-4mHTJV-N.js +0 -1
  230. package/dist/esm/chunk-4TB4RGXK-BgOhjp4u.js +0 -1
  231. package/dist/esm/chunk-55IACEB6-BlGeNxvg.js +0 -1
  232. package/dist/esm/chunk-EDXVE4YY-CrsJ2Hnl.js +0 -1
  233. package/dist/esm/chunk-OYMX7WX6-Dd_OySsr.js +0 -1
  234. package/dist/esm/chunk-YZCP3GAM-J0il8D93.js +0 -1
  235. package/dist/esm/classDiagram-6PBFFD2Q-BudcHsyy.js +0 -1
  236. package/dist/esm/classDiagram-v2-HSJHXN6E-BudcHsyy.js +0 -1
  237. package/dist/esm/clone-Bdky4iBO.js +0 -1
  238. package/dist/esm/cose-bilkent-S5V4N54A-ZsIi3T0h.js +0 -1
  239. package/dist/esm/dagre-KV5264BT-Ps6KiA13.js +0 -1
  240. package/dist/esm/diagram-5BDNPKRD-CmcDSDfS.js +0 -1
  241. package/dist/esm/diagram-G4DWMVQ6-MRapKKyA.js +0 -1
  242. package/dist/esm/diagram-MMDJMWI5--Lf_QB5P.js +0 -1
  243. package/dist/esm/diagram-TYMM5635-CfbzkptG.js +0 -1
  244. package/dist/esm/erDiagram-SMLLAGMA-DmAtzyw1.js +0 -1
  245. package/dist/esm/flowDiagram-DWJPFMVM-Cd5g_eEq.js +0 -1
  246. package/dist/esm/ganttDiagram-T4ZO3ILL-O3kXJMuu.js +0 -1
  247. package/dist/esm/gitGraph-7Q5UKJZL-w9fSBFuS.js +0 -1
  248. package/dist/esm/gitGraphDiagram-UUTBAWPF-XLFtNk0y.js +0 -1
  249. package/dist/esm/graph-Bh_6Hxf_.js +0 -1
  250. package/dist/esm/index-B8o5x2RR.js +0 -1
  251. package/dist/esm/index-BXwIVJ1i.js +0 -1
  252. package/dist/esm/index-B_SR88hF.js +0 -1
  253. package/dist/esm/index-BdEuQrE0.js +0 -1
  254. package/dist/esm/index-Bp7rYslS.js +0 -1
  255. package/dist/esm/index-Buo8u5Rd.js +0 -1
  256. package/dist/esm/index-Bx0ktss6.js +0 -1
  257. package/dist/esm/index-BypZQ30J.js +0 -1
  258. package/dist/esm/index-CG-nC_T_.js +0 -1
  259. package/dist/esm/index-CG5i3mPd.js +0 -1
  260. package/dist/esm/index-CLMLLwc9.js +0 -1
  261. package/dist/esm/index-CUjyY2a3.js +0 -1
  262. package/dist/esm/index-C__8JPAk.js +0 -1
  263. package/dist/esm/index-CoedJ1ql.js +0 -1
  264. package/dist/esm/index-CueeU9Hx.js +0 -1
  265. package/dist/esm/index-D1ky-z91.js +0 -1
  266. package/dist/esm/index-DEH449Hc.js +0 -1
  267. package/dist/esm/index-DFMzt8xL.js +0 -1
  268. package/dist/esm/index-DI-7QOUe.js +0 -1
  269. package/dist/esm/index-DUtxMiYq.js +0 -1
  270. package/dist/esm/index-DdRpaNiN.js +0 -1
  271. package/dist/esm/index-DquUMjcv.js +0 -1
  272. package/dist/esm/index-MkWt_kX0.js +0 -1
  273. package/dist/esm/index-USryHMlL.js +0 -1
  274. package/dist/esm/index-_eiBoCQ6.js +0 -1
  275. package/dist/esm/index-a79hibwg.js +0 -1
  276. package/dist/esm/index-iowlALIm.js +0 -1
  277. package/dist/esm/index-tDMZSRa9.js +0 -2
  278. package/dist/esm/index-tGGDvGCv.js +0 -1
  279. package/dist/esm/info-OMHHGYJF-6icJTSRL.js +0 -1
  280. package/dist/esm/infoDiagram-42DDH7IO-DiPK6iLZ.js +0 -1
  281. package/dist/esm/isSymbol-CATEdeai.js +0 -1
  282. package/dist/esm/isUndefined-DgmxjSXK.js +0 -1
  283. package/dist/esm/ishikawaDiagram-UXIWVN3A-DNCSSMvk.js +0 -1
  284. package/dist/esm/journeyDiagram-VCZTEJTY-BxyeAOhI.js +0 -1
  285. package/dist/esm/kanban-definition-6JOO6SKY-BR8Xd4RY.js +0 -1
  286. package/dist/esm/layout-BsYGzjO0.js +0 -1
  287. package/dist/esm/map-BvlAjF4J.js +0 -1
  288. package/dist/esm/memoize-CPUrcYQl.js +0 -1
  289. package/dist/esm/mermaid-parser.core-DxB6tfwM.js +0 -2
  290. package/dist/esm/mermaid.core-DmkzFmrK.js +0 -1
  291. package/dist/esm/min-Dc9VrJ6M.js +0 -1
  292. package/dist/esm/mindmap-definition-QFDTVHPH-BUmIu9eO.js +0 -1
  293. package/dist/esm/packet-4T2RLAQJ-jB8585_W.js +0 -1
  294. package/dist/esm/pie-ZZUOXDRM-BKLoVTcY.js +0 -1
  295. package/dist/esm/pieDiagram-DEJITSTG-CJQonP9T.js +0 -1
  296. package/dist/esm/quadrantDiagram-34T5L4WZ-o3IEMDUC.js +0 -1
  297. package/dist/esm/radar-PYXPWWZC-BBal7TH8.js +0 -1
  298. package/dist/esm/requirementDiagram-MS252O5E-CSBSz0_J.js +0 -1
  299. package/dist/esm/sankeyDiagram-XADWPNL6-Dd0d-7E4.js +0 -1
  300. package/dist/esm/sequenceDiagram-FGHM5R23-DEPMVZxI.js +0 -1
  301. package/dist/esm/stateDiagram-FHFEXIEX-B_eljgWF.js +0 -1
  302. package/dist/esm/stateDiagram-v2-QKLJ7IA2-D9FCD1lO.js +0 -1
  303. package/dist/esm/throttle-BsCMUG1-.js +0 -1
  304. package/dist/esm/time-CyaZFqIA.js +0 -1
  305. package/dist/esm/timeline-definition-GMOUNBTQ-Cg4NUF_H.js +0 -1
  306. package/dist/esm/toNumber-Bh_HTlSx.js +0 -1
  307. package/dist/esm/treeView-SZITEDCU-S-ba_Q_y.js +0 -1
  308. package/dist/esm/treemap-W4RFUUIX-CnmNi6qL.js +0 -1
  309. package/dist/esm/types-NAGOQCyQ.js +0 -1
  310. package/dist/esm/vennDiagram-DHZGUBPP-B0vBQEXk.js +0 -1
  311. package/dist/esm/viz-CFEjElvl.js +0 -9
  312. package/dist/esm/wardley-RL74JXVD-CQrog0ka.js +0 -1
  313. package/dist/esm/wardleyDiagram-NUSXRM2D-BxnrOeU9.js +0 -1
  314. package/dist/esm/xychartDiagram-5P7HB3ND-B6KmAHYz.js +0 -1
  315. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
  316. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
  317. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
  318. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
  319. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
  320. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
  321. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
  322. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
  323. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
  324. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
  325. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
  326. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
  327. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
  328. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
  329. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
  330. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
  331. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
  332. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
  333. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
  334. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
  335. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
  336. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
  337. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
  338. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
  339. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
  340. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
  341. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
  342. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
  343. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{aC as t,L as e,P as a,aF as r,M as n,aD as o,a as i,$ as s,N as l,m as d,ai as c,aB as p,w as x,n as h,O as y}from"./mermaid.core-BJ63Ijjp.js";import{p as g}from"./chunk-4BX2VUAB-BG00Pq3P.js";import{p as f}from"./wardley-L42UT6IY-Bn2xZ99U.js";import"./index-Cp9n6f_0.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-BrmGyMm3.js";import"./index-BwuVfyt_.js";import"./enums.js";import"./date-CmFU6v8V.js";import"./time-BgcLBBP-.js";import"./websocket-BXbChnc8.js";import"./worksheet-KMCQx4-g.js";import"motion/react";import"react-dom";import"./index-9FCB1eYq.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-CQk_HvWX.js";var m=i((t,e)=>{const a=t<=1?100*t:t;if(a<0||a>100)throw new Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return a},"toPercent"),u=i((t,e,a)=>({x:m(e,`${a} evolution`),y:m(t,`${a} visibility`)}),"toCoordinates"),w=i(t=>{if(t)return"+<>"===t?"bidirectional":"+<"===t?"backward":"+>"===t?"forward":void 0},"getFlowFromPort"),k=i(t=>{if(!t?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(t),a=e?.[1];return t.includes("<>")?{flow:"bidirectional",label:a}:t.includes("<")?{flow:"backward",label:a}:t.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),b=i((t,e)=>{if(g(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const a=t.evolution.stages.map(t=>t.secondName?`${t.name.trim()} / ${t.secondName.trim()}`:t.name.trim()),r=t.evolution.stages.filter(t=>void 0!==t.boundary).map(t=>t.boundary);e.updateAxes({stages:a,stageBoundaries:r})}if(t.anchors.forEach(t=>{const a=u(t.visibility,t.evolution,`Anchor "${t.name}"`);e.addNode(t.name,t.name,a.x,a.y,"anchor")}),t.components.forEach(t=>{const a=u(t.visibility,t.evolution,`Component "${t.name}"`),r=t.label?(t.label.negX?-1:1)*t.label.offsetX:void 0,n=t.label?(t.label.negY?-1:1)*t.label.offsetY:void 0,o=t.decorator?.strategy;e.addNode(t.name,t.name,a.x,a.y,"component",r,n,t.inertia,o)}),t.notes.forEach(t=>{const a=u(t.visibility,t.evolution,`Note "${t.text}"`);e.addNote(t.text,a.x,a.y)}),t.pipelines.forEach(t=>{const a=e.getNode(t.parent);if(!a||"number"!=typeof a.y)throw new Error(`Pipeline "${t.parent}" must reference an existing component with coordinates.`);const r=a.y;e.startPipeline(t.parent),t.components.forEach(a=>{const n=`${t.parent}_${a.name}`,o=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,i=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,s=m(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(n,a.name,s,r,"pipeline-component",o,i),e.addPipelineComponent(t.parent,n)})}),t.links.forEach(t=>{const a=!!t.arrow&&(t.arrow.includes("-.->")||t.arrow.includes(".-."));let r=w(t.fromPort)??w(t.toPort);const{flow:n,label:o}=k(t.arrow);!r&&n&&(r=n);const i=t.linkLabel,s=o??i;e.addLink(e.resolveNodeId(t.from),e.resolveNodeId(t.to),a,s,r)}),t.evolves.forEach(t=>{const a=e.getNode(t.component);if(void 0!==a?.y){const r=m(t.target,`Evolve target for "${t.component}"`);e.addTrend(t.component,r,a.y)}}),t.annotations.length>0){const a=t.annotations[0],r=u(a.x,a.y,"Annotations box");e.setAnnotationsBox(r.x,r.y)}t.annotation.forEach(t=>{const a=u(t.x,t.y,`Annotation ${t.number}`);e.addAnnotation(t.number,[{x:a.x,y:a.y}],t.text)}),t.accelerators.forEach(t=>{const a=u(t.x,t.y,`Accelerator "${t.name}"`);e.addAccelerator(t.name,a.x,a.y)}),t.deaccelerators.forEach(t=>{const a=u(t.x,t.y,`Deaccelerator "${t.name}"`);e.addDeaccelerator(t.name,a.x,a.y)})},"populateDb"),$={parser:{yy:void 0},parse:i(async t=>{const e=await f("wardley",t);c.debug(e);const a=$.parser?.yy;if(!a||"function"!=typeof a.addNode)throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");b(e,a)},"parse")},v=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{i(this,"WardleyBuilder")}addNode(t){const e=this.nodes.get(t.id)??{id:t.id,label:t.label},a={...e,...t,className:t.className??e.className,labelOffsetX:t.labelOffsetX??e.labelOffsetX,labelOffsetY:t.labelOffsetY??e.labelOffsetY};this.nodes.set(t.id,a)}addLink(t){this.links.push(t)}addTrend(t){this.trends.set(t.nodeId,t)}startPipeline(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});const e=this.nodes.get(t);e&&(e.isPipelineParent=!0)}addPipelineComponent(t,e){const a=this.pipelines.get(t);a&&a.componentIds.push(e);const r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(t){this.annotations.push(t)}addNote(t){this.notes.push(t)}addAccelerator(t){this.accelerators.push(t)}addDeaccelerator(t){this.deaccelerators.push(t)}setAnnotationsBox(t,e){this.annotationsBox={x:t,y:e}}setAxes(t){this.axes={...this.axes,...t}}setSize(t,e){this.size={width:t,height:e}}getNode(t){return this.nodes.get(t)}resolveNodeId(t){if(this.nodes.has(t))return t;for(const[e,a]of this.nodes)if(a.label===t)return e;return t}build(){const t=[];for(const e of this.nodes.values()){if("number"!=typeof e.x||"number"!=typeof e.y)throw new Error(`Node "${e.label}" is missing coordinates`);t.push(e)}return{nodes:t,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function S(){return y()["wardley-beta"]}function M(t,e,a,r,n,o,i,s,l){v.addNode({id:t,label:e,x:a,y:r,className:n,labelOffsetX:o,labelOffsetY:i,inertia:s,sourceStrategy:l})}function C(t,e,a=!1,r,n){v.addLink({source:t,target:e,dashed:a,label:r,flow:n})}function P(t,e,a){v.addTrend({nodeId:t,targetX:e,targetY:a})}function N(t,e,a){v.addAnnotation({number:t,coordinates:e,text:a})}function z(t,e,a){v.addNote({text:t,x:e,y:a})}function L(t,e,a){v.addAccelerator({name:t,x:e,y:a})}function T(t,e,a){v.addDeaccelerator({name:t,x:e,y:a})}function A(t,e){v.setAnnotationsBox(t,e)}function I(t,e){v.setSize(t,e)}function E(t){v.startPipeline(t)}function j(t,e){v.addPipelineComponent(t,e)}function B(t){v.setAxes(t)}function F(t){return v.getNode(t)}function R(t){return v.resolveNodeId(t)}function X(){return v.build()}function Y(){v.clear(),h()}i(S,"getConfig"),i(M,"addNode"),i(C,"addLink"),i(P,"addTrend"),i(N,"addAnnotation"),i(z,"addNote"),i(L,"addAccelerator"),i(T,"addDeaccelerator"),i(A,"setAnnotationsBox"),i(I,"setSize"),i(E,"startPipeline"),i(j,"addPipelineComponent"),i(B,"updateAxes"),i(F,"getNode"),i(R,"resolveNodeId"),i(X,"getWardleyData"),i(Y,"clear");var O={getConfig:S,addNode:M,addLink:C,addTrend:P,addAnnotation:N,addNote:z,addAccelerator:L,addDeaccelerator:T,setAnnotationsBox:A,setSize:I,startPipeline:E,addPipelineComponent:j,updateAxes:B,getNode:F,resolveNodeId:R,getWardleyData:X,clear:Y,setAccTitle:o,getAccTitle:n,setDiagramTitle:r,getDiagramTitle:a,getAccDescription:e,setAccDescription:t},D=["Genesis","Custom Built","Product","Commodity"],W=i(()=>{const{themeVariables:t}=y();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),q=i(()=>{const t=y()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),V={parser:$,db:O,renderer:{draw:i((t,e,a,r)=>{c.debug("Rendering Wardley map\n"+t);const n=q(),o=W(),s=1.6*n.nodeRadius,l=r.db,d=l.getWardleyData(),h=l.getDiagramTitle(),y=d.size?.width??n.width,g=d.size?.height??n.height,f=p(e);f.selectAll("*").remove(),x(f,g,y,n.useMaxWidth),f.attr("viewBox",`0 0 ${y} ${g}`);const m=f.append("g").attr("class","wardley-map"),u=f.append("defs");u.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",o.evolutionStroke).attr("stroke","none"),u.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",o.linkStroke).attr("stroke","none"),u.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",o.linkStroke).attr("stroke","none"),m.append("rect").attr("class","wardley-background").attr("width",y).attr("height",g).attr("fill",o.backgroundColor);const w=y-2*n.padding,k=g-2*n.padding;h&&m.append("text").attr("class","wardley-title").attr("x",y/2).attr("y",n.padding/2).attr("fill",o.axisTextColor).attr("font-size",1.05*n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const b=i(t=>n.padding+t/100*w,"projectX"),$=i(t=>g-n.padding-t/100*k,"projectY"),v=m.append("g").attr("class","wardley-axes");v.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",g-n.padding).attr("y2",g-n.padding).attr("stroke",o.axisColor).attr("stroke-width",1),v.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke",o.axisColor).attr("stroke-width",1);const S=d.axes.xLabel??"Evolution",M=d.axes.yLabel??"Visibility";v.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+w/2).attr("y",g-n.padding/4).attr("fill",o.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(S),v.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+k/2).attr("fill",o.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+k/2})`).text(M);const C=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:D;if(C.length>0){const t=m.append("g").attr("class","wardley-stages"),e=d.axes.stageBoundaries,a=[];if(e&&e.length===C.length){let t=0;e.forEach(e=>{a.push({start:t,end:e}),t=e})}else{const t=1/C.length;C.forEach((e,r)=>{a.push({start:r*t,end:(r+1)*t})})}C.forEach((e,r)=>{const i=a[r],s=n.padding+i.start*w,l=(s+(n.padding+i.end*w))/2;r>0&&t.append("line").attr("x1",s).attr("x2",s).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",l).attr("y",g-n.padding/1.5).attr("fill",o.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(e)})}if(n.showGrid){const t=m.append("g").attr("class","wardley-grid");for(let e=1;e<4;e++){const a=e/4,r=n.padding+w*a;t.append("line").attr("x1",r).attr("x2",r).attr("y1",n.padding).attr("y2",g-n.padding).attr("stroke",o.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",g-n.padding-k*a).attr("y2",g-n.padding-k*a).attr("stroke",o.gridColor).attr("stroke-dasharray","2 6")}}const P=new Map;if(d.nodes.forEach(t=>{P.set(t.id,{x:b(t.x),y:$(t.y),node:t})}),d.pipelines.length>0){const t=m.append("g").attr("class","wardley-pipelines"),e=m.append("g").attr("class","wardley-pipeline-links");d.pipelines.forEach(a=>{if(0===a.componentIds.length)return;const r=a.componentIds.map(t=>({id:t,pos:P.get(t),node:d.nodes.find(e=>e.id===t)})).filter(t=>t.pos&&t.node).sort((t,e)=>t.node.x-e.node.x);for(let t=0;t<r.length-1;t++){const a=r[t],n=r[t+1];e.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",a.pos.x).attr("y1",a.pos.y).attr("x2",n.pos.x).attr("y2",n.pos.y).attr("stroke",o.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let i=1/0,l=-1/0,c=0;if(a.componentIds.forEach(t=>{const e=P.get(t);e&&(i=Math.min(i,e.x),l=Math.max(l,e.x),c=e.y)}),i!==1/0&&l!==-1/0){const e=15,r=4*n.nodeRadius,d=c-r/2,p=P.get(a.nodeId);if(p){const t=(i+l)/2;p.x=t,p.y=d-s/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",i-e).attr("y",d).attr("width",l-i+2*e).attr("height",r).attr("fill","none").attr("stroke",o.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const N=m.append("g").attr("class","wardley-links"),z=new Map;d.pipelines.forEach(t=>{z.set(t.nodeId,new Set(t.componentIds))});const L=d.links.filter(t=>{if(!P.has(t.source)||!P.has(t.target))return!1;const e=z.get(t.target);return!e?.has(t.source)});N.selectAll("line").data(L).enter().append("line").attr("class",t=>"wardley-link"+(t.dashed?" wardley-link--dashed":"")).attr("x1",t=>{const e=P.get(t.source),a=P.get(t.target),r=d.nodes.find(e=>e.id===t.source).isPipelineParent?s/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.x+o/l*r}).attr("y1",t=>{const e=P.get(t.source),a=P.get(t.target),r=d.nodes.find(e=>e.id===t.source).isPipelineParent?s/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.y+i/l*r}).attr("x2",t=>{const e=P.get(t.source),a=P.get(t.target),r=d.nodes.find(e=>e.id===t.target).isPipelineParent?s/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.x+o/l*r}).attr("y2",t=>{const e=P.get(t.source),a=P.get(t.target),r=d.nodes.find(e=>e.id===t.target).isPipelineParent?s/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.y+i/l*r}).attr("stroke",o.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>"forward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-end-${e})`:null).attr("marker-start",t=>"backward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-start-${e})`:null),N.selectAll("text").data(L.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,n=a.y-e.y,o=a.x-e.x;return r+8*(n/Math.sqrt(o*o+n*n))}).attr("y",t=>{const e=P.get(t.source),a=P.get(t.target),r=(e.y+a.y)/2,n=a.x-e.x,o=a.y-e.y;return r+8*(-n/Math.sqrt(n*n+o*o))}).attr("fill",o.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,n=(e.y+a.y)/2,o=a.x-e.x,i=a.y-e.y,s=Math.sqrt(o*o+i*i),l=r+8*(i/s),d=n+8*(-o/s);let c=180*Math.atan2(i,o)/Math.PI;return(c>90||c<-90)&&(c+=180),`rotate(${c} ${l} ${d})`}).text(t=>t.label);const T=m.append("g").attr("class","wardley-trends"),A=d.trends.map(t=>{const e=P.get(t.nodeId);if(!e)return null;const a=b(t.targetX),r=$(t.targetY),o=a-e.x,i=r-e.y,s=Math.sqrt(o*o+i*i),l=n.nodeRadius+2;return{origin:e,targetX:a,targetY:r,adjustedX2:s>l?a-o/s*l:a,adjustedY2:s>l?r-i/s*l:r}}).filter(t=>null!==t);T.selectAll("line").data(A).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",o.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);const I=m.append("g").attr("class","wardley-nodes").selectAll("g").data(d.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));I.filter(t=>"outsource"===t.sourceStrategy).append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#666").attr("stroke",o.componentStroke).attr("stroke-width",1),I.filter(t=>"buy"===t.sourceStrategy).append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#ccc").attr("stroke",o.componentStroke).attr("stroke-width",1),I.filter(t=>"build"===t.sourceStrategy).append("circle").attr("class","wardley-build-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const E=I.filter(t=>"market"===t.sourceStrategy);E.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",1),I.filter(t=>!t.isPipelineParent&&"market"!==t.sourceStrategy&&"anchor"!==t.className).append("circle").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",n.nodeRadius).attr("fill",o.componentFill).attr("stroke",o.componentStroke).attr("stroke-width",1);const j=.7*n.nodeRadius,B=1.2*n.nodeRadius;if(E.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x).attr("y1",t=>P.get(t.id).y-B).attr("x2",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",o.componentStroke).attr("stroke-width",1),E.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",o.componentStroke).attr("stroke-width",1),E.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x).attr("y2",t=>P.get(t.id).y-B).attr("stroke",o.componentStroke).attr("stroke-width",1),E.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y-B).attr("r",j).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",2),E.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",2),E.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",2),I.filter(t=>!0===t.isPipelineParent).append("rect").attr("x",t=>P.get(t.id).x-s/2).attr("y",t=>P.get(t.id).y-s/2).attr("width",s).attr("height",s).attr("fill",o.componentFill).attr("stroke",o.componentStroke).attr("stroke-width",1),I.filter(t=>!0===t.inertia).append("line").attr("class","wardley-inertia").attr("x1",t=>{const e=P.get(t.id);let a=t.isPipelineParent?s/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y1",t=>{const e=P.get(t.id),a=t.isPipelineParent?s:2*n.nodeRadius;return e.y-a/2}).attr("x2",t=>{const e=P.get(t.id);let a=t.isPipelineParent?s/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y2",t=>{const e=P.get(t.id),a=t.isPipelineParent?s:2*n.nodeRadius;return e.y+a/2}).attr("stroke",o.componentStroke).attr("stroke-width",6),I.append("text").attr("x",t=>{const e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetX?e.x+t.labelOffsetX:e.x;let a=n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetX&&(a+=10);const r=t.labelOffsetX??a;return e.x+r}).attr("y",t=>{const e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetY?e.y+t.labelOffsetY:e.y-3;let a=-n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetY&&(a-=10);const r=t.labelOffsetY??a;return e.y+r}).attr("class","wardley-node-label").attr("fill",t=>"evolved"===t.className?o.evolutionStroke:"anchor"===t.className?"#000":o.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>"anchor"===t.className?"bold":"normal").attr("text-anchor",t=>"anchor"===t.className?"middle":"start").attr("dominant-baseline",t=>"anchor"===t.className?"middle":"auto").text(t=>t.label),d.annotations.length>0){const t=m.append("g").attr("class","wardley-annotations");if(d.annotations.forEach(e=>{const a=e.coordinates.map(t=>({x:b(t.x),y:$(t.y)}));if(a.length>1)for(let e=0;e<a.length-1;e++)t.append("line").attr("class","wardley-annotation-line").attr("x1",a[e].x).attr("y1",a[e].y).attr("x2",a[e+1].x).attr("y2",a[e+1].y).attr("stroke",o.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");a.forEach(a=>{const r=t.append("g").attr("class","wardley-annotation");r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("fill","white").attr("stroke",o.axisColor).attr("stroke-width",1.5),r.append("text").attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",o.axisTextColor).attr("font-weight","bold").text(e.number)})}),d.annotationsBox){let e=b(d.annotationsBox.x),a=$(d.annotationsBox.y);const r=10,i=16,s=11,l=t.append("g").attr("class","wardley-annotations-box"),c=[...d.annotations].filter(t=>t.text).sort((t,e)=>t.number-e.number),p=[];if(c.forEach((t,n)=>{const d=l.append("text").attr("x",e+r).attr("y",a+r+(n+1)*i).attr("font-size",s).attr("fill",o.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${t.number}. ${t.text}`);p.push(d)}),p.length>0){let t=0,s=0;p.forEach(e=>{const a=e.node(),r=a.getComputedTextLength();t=Math.max(t,r);const n=a.getBBox();s=Math.max(s,n.height)});const d=t+2*r+105,x=c.length*i+2*r+s/2,h=n.padding,f=y-n.padding-d,m=n.padding,u=g-n.padding-x;e=Math.max(h,Math.min(e,f)),a=Math.max(m,Math.min(a,u)),p.forEach((t,n)=>{t.attr("x",e+r).attr("y",a+r+(n+1)*i)}),l.insert("rect","text").attr("x",e).attr("y",a).attr("width",d).attr("height",x).attr("fill","white").attr("stroke",o.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(d.notes.length>0){const t=m.append("g").attr("class","wardley-notes");d.notes.forEach(e=>{const a=b(e.x),r=$(e.y);t.append("text").attr("x",a).attr("y",r).attr("text-anchor","start").attr("font-size",11).attr("fill",o.axisTextColor).attr("font-weight","bold").text(e.text)})}if(d.accelerators.length>0){const t=m.append("g").attr("class","wardley-accelerators");d.accelerators.forEach(e=>{const a=b(e.x),r=$(e.y),n=60,i=`\n M ${a} ${r-15}\n L ${a+n-20} ${r-15}\n L ${a+n-20} ${r-15-8}\n L ${a+n} ${r}\n L ${a+n-20} ${r+15+8}\n L ${a+n-20} ${r+15}\n L ${a} ${r+15}\n Z\n `;t.append("path").attr("d",i).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",o.axisTextColor).attr("font-weight","bold").text(e.name)})}if(d.deaccelerators.length>0){const t=m.append("g").attr("class","wardley-deaccelerators");d.deaccelerators.forEach(e=>{const a=b(e.x),r=$(e.y),n=`\n M ${a+60} ${r-15}\n L ${a+20} ${r-15}\n L ${a+20} ${r-15-8}\n L ${a} ${r}\n L ${a+20} ${r+15+8}\n L ${a+20} ${r+15}\n L ${a+60} ${r+15}\n Z\n `;t.append("path").attr("d",n).attr("fill","white").attr("stroke",o.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",o.axisTextColor).attr("font-weight","bold").text(e.name)})}},"draw")},styles:i(({wardley:t}={})=>{const e=s(),a=l(),r=d(e,a.themeVariables),n=d(r.wardley,t);return`\n .wardley-background {\n fill: ${n.backgroundColor};\n }\n .wardley-axes line, .wardley-axes path {\n stroke: ${n.axisColor};\n }\n .wardley-axis-label {\n fill: ${n.axisTextColor};\n }\n .wardley-stage-label {\n fill: ${n.axisTextColor};\n }\n .wardley-grid line {\n stroke: ${n.gridColor};\n }\n .wardley-node circle {\n fill: ${n.componentFill};\n stroke: ${n.componentStroke};\n }\n .wardley-node-label {\n fill: ${n.componentLabelColor};\n }\n .wardley-link {\n stroke: ${n.linkStroke};\n }\n .wardley-link--dashed {\n stroke-dasharray: 4 4;\n }\n .wardley-link-label {\n fill: ${n.axisTextColor};\n }\n .wardley-trend line {\n stroke: ${n.evolutionStroke};\n }\n .wardley-annotation-line {\n stroke: ${n.annotationStroke};\n }\n .wardley-annotation circle {\n fill: ${n.annotationFill};\n stroke: ${n.annotationStroke};\n }\n .wardley-annotation text {\n fill: ${n.annotationTextColor};\n }\n .wardley-annotations-box rect {\n fill: ${n.annotationFill};\n stroke: ${n.annotationStroke};\n }\n .wardley-annotations-box text {\n fill: ${n.annotationTextColor};\n }\n .wardley-pipeline-box {\n stroke: ${n.componentStroke};\n }\n .wardley-notes text {\n fill: ${n.axisTextColor};\n }\n `},"styles")};export{V as diagram};
@@ -1 +1 @@
1
- import{a as e}from"./settings-DgLs6IK_.js";import{QueryParamKey as t}from"./enums.js";import{y as s,H as r,m as n,z as o,A as a,a as i,j as S,B as c,d as u,i as E,C as T,D as l,S as I,x as _}from"./index-BWbfbDmw.js";import{P as d,L as p}from"./date-DabTuCYQ.js";import{jsx as N}from"react/jsx-runtime";import{Fragment as R}from"react";import{S as C}from"./worksheet-ClM0CaBH.js";const A={ABORTED_REQUEST:"ABORTED_REQUEST",ERROR_ON_RESPONSE:"ERROR_ON_RESPONSE",SERVICE_NOT_FOUND:"SERVICE_NOT_FOUND"},U={SUCCESS:"SUCCESS",ERROR:"ERROR",LOADING:"LOADING",NONE:"NONE"},m={PING:"PING",CLIENT_TRACK_LOCATION:"CLIENT_TRACK_LOCATION",CLIENT_TRACK_SCREENSHOT:"CLIENT_TRACK_SCREENSHOT",CLIENT_TRACK_DEVICE:"CLIENT_TRACK_DEVICE",CHAT_COMPLETIONS:"CHAT_COMPLETIONS"},O={PONG:"PONG",CODE_RUN_STATUS:"CODE_RUN_STATUS",SUBMISSION_RUN_STATUS:"SUBMISSION_RUN_STATUS",USER_MESSAGE:"USER_MESSAGE",SEND_DATA:"SEND_DATA",SEND_DATA_ECS_TASK_DEFINITIONS_LIST:"SEND_DATA_ECS_TASK_DEFINITIONS_LIST",SEND_DATA_ECS_TASKS_LIST:"SEND_DATA_ECS_TASKS_LIST",SEND_DATA_EC2_INSTANCES_LIST:"SEND_DATA_EC2_INSTANCES_LIST",SEND_DATA_SSM_SESSIONS_LIST:"SEND_DATA_SSM_SESSIONS_LIST",SEND_DATA_RUN_COMMAND:"SEND_DATA_RUN_COMMAND",SEND_DATA_CLIENT_TRACK:"SEND_DATA_CLIENT_TRACK",SEND_DATA_CHAT_COMPLETIONS:"SEND_DATA_CHAT_COMPLETIONS",PROBLEM_CRAWLED:"PROBLEM_CRAWLED",SUBMISSIONS_CRAWL:"SUBMISSIONS_CRAWL",CONTEST_CHANGES:"CONTEST_CHANGES",CLIENT_TRACK:"CLIENT_TRACK",USER_NOTIFICATION:"USER_NOTIFICATION",USER_NOTIFICATION_SUBMISSION:"USER_NOTIFICATION_SUBMISSION",USER_NOTIFICATION_CONTEST_CLARIFICATION:"USER_NOTIFICATION_CONTEST_CLARIFICATION"},g={SUBSCRIBE_CODE_RUN_STATUS:"SUBSCRIBE_CODE_RUN_STATUS",UNSUBSCRIBE_CODE_RUN_STATUS:"UNSUBSCRIBE_CODE_RUN_STATUS",SUBSCRIBE_SUBMISSION_RUN_STATUS:"SUBSCRIBE_SUBMISSION_RUN_STATUS",UNSUBSCRIBE_SUBMISSION_RUN_STATUS:"UNSUBSCRIBE_SUBMISSION_RUN_STATUS",SUBSCRIBE_GET_DATA:"SUBSCRIBE_GET_DATA",UNSUBSCRIBE_GET_DATA:"SUBSCRIBE_GET_DATA",SUBSCRIBE_PROBLEM_CRAWLED:"SUBSCRIBE_PROBLEM_CRAWLED",UNSUBSCRIBE_PROBLEM_CRAWLED:"UNSUBSCRIBE_PROBLEM_CRAWLED",SUBSCRIBE_SUBMISSIONS_CRAWL:"SUBSCRIBE_SUBMISSIONS_CRAWL",UNSUBSCRIBE_SUBMISSIONS_CRAWL:"UNSUBSCRIBE_SUBMISSIONS_CRAWL",SUBSCRIBE_CONTEST_CHANGES:"SUBSCRIBE_CONTEST_CHANGES",UNSUBSCRIBE_CONTEST_CHANGES:"UNSUBSCRIBE_CONTEST_CHANGES",SUBSCRIBE_CLIENT_TRACK:"SUBSCRIBE_CLIENT_TRACK",UNSUBSCRIBE_CLIENT_TRACK:"UNSUBSCRIBE_CLIENT_TRACK",SUBSCRIBE_USER_NOTIFICATION:"SUBSCRIBE_USER_NOTIFICATION",UNSUBSCRIBE_USER_NOTIFICATION:"UNSUBSCRIBE_USER_NOTIFICATION"},B={SUBTASK:"SUBTASK",TOTAL:"TOTAL",PARTIAL:"PARTIAL"},f={STANDARD:"STANDARD",DYNAMIC:"DYNAMIC",INTERACTIVE:"INTERACTIVE"},h=e=>e.toLowerCase().replace(/_/g," ");class b extends Error{code;data;constructor(e,t){const s=t?.message||h(e);super(s),this.message=s,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}const D=e=>{try{if("string"==typeof e)return JSON.parse(e),!0}catch{return!1}return!1},L=e=>{try{return"string"==typeof JSON.stringify(e)}catch{return!1}};function y(e,...t){return{success:!1,message:e,errors:t.map(e=>({code:e.code,message:e.message,detail:e.stack||(new Error).stack||"",data:e.data}))}}const w=e=>{if(!D(e)){const t=y(h(A.SERVICE_NOT_FOUND),new b(A.SERVICE_NOT_FOUND));return s({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){const r=function(e){if(!0===e.success&&"string"==typeof e.message){if(e.content)return{success:!0,message:e.message,content:e.content};if(Array.isArray(e.contents)&&e.meta)return{success:!0,message:e.message,contents:e.contents,meta:e.meta}}return null}(t);if(r)return r;if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const r={success:!1,message:t.message,errors:t.errors};return s({message:"success false on cleaning request",responseText:e,response:r}),r}}const r=y(h(A.ERROR_ON_RESPONSE),new b(A.ERROR_ON_RESPONSE));return s({message:"success false on cleaning request",responseText:e,response:r}),r},v=e=>{if("object"!=typeof e||null===e)return!1;const t=e;return(Object.values(g).includes(t.event)||Object.values(m).includes(t.event))&&"string"==typeof t.clientId&&!!t.clientId},$=e=>{if(!v(e))return!1;const t=e;return e.event===g.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId},M=e=>{if(!v(e))return!1;const t=e;return e.event===g.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId},j=e=>v(e)&&e.event===g.SUBSCRIBE_GET_DATA,P=e=>v(e)&&e.event===g.SUBSCRIBE_PROBLEM_CRAWLED,K=e=>v(e)&&e.event===g.SUBSCRIBE_SUBMISSIONS_CRAWL,F=e=>v(e)&&e.event===g.SUBSCRIBE_CONTEST_CHANGES,k=e=>v(e)&&e.event===g.SUBSCRIBE_CLIENT_TRACK,G=e=>v(e)&&e.event===g.SUBSCRIBE_USER_NOTIFICATION,x=e=>{if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(O).includes(t.event)&&"string"==typeof t.key&&"string"==typeof t.connectionId&&"number"==typeof t.messageTimestamp&&!!t.messageTimestamp},W=e=>{if(!x(e))return!1;const t=e;return e.event===O.CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId&&Object.values(C).includes(t.status)},H=e=>{if(!x(e))return!1;const t=e;return e.event===O.SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId&&Object.values(C).includes(t.status)&&Object.values(d).includes(t.verdict)&&"number"==typeof t.points},V=(e,t,s)=>`${e}-${t}-${s}`,J=[B.TOTAL,B.SUBTASK,B.PARTIAL],q={[B.TOTAL]:{value:B.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[B.SUBTASK]:{value:B.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[B.PARTIAL]:{value:B.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}},Q={[f.STANDARD]:{value:f.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[f.INTERACTIVE]:{value:f.INTERACTIVE,label:"interactive",description:"developing.."},[f.DYNAMIC]:{value:f.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (organizationId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}},z=e=>e.isGlobal?{order:0,label:"global",bc:"bc-io"}:e.isEndless?{order:1,label:"endless",bc:"bc-io"}:e.isPast?{order:2,label:"past",bc:"bc-sf-md"}:e.isLive?{order:3,label:"live",bc:"bc-er"}:e.isFuture?{order:4,label:"upcoming",bc:"bc-ss"}:{order:5,label:"-",bc:"bc-sf-md"},Y=async e=>{"undefined"!=typeof navigator&&await navigator.clipboard.writeText(e)},X=/^[0-9a-fA-F]{24}$/;function Z(){let e="";return n()&&(e=new URLSearchParams(window.location.search).get(t.TOKEN)??""),24===(s=e).length&&X.test(s)?e:"";var s}function ee(){return"undefined"!=typeof localStorage?Z()||localStorage.getItem(e)||"":Z()||""}const te=(e,t,s)=>re(e,t,s),se=(e,t,s)=>re(e,t,s),re=async(e,t,s)=>{const{method:S=r.GET,body:c,signal:u,responseType:E,headers:T,cache:l,next:I}=t||{},_=new Headers(T??{});_.set("accept","application/json"),c instanceof FormData||_.set("content-type","application/json"),n()&&_.set(o,window.location?.host);const d=ee();d&&_.set(a,d);try{const t=await fetch(e,{method:S,headers:_,credentials:"include",...c?{body:c}:{},...u?{signal:u}:{},cache:l,next:I});try{return"blob"===E?await t.blob():await t.text()}catch(t){i("error on get data",{url:e,error:t,responseType:E})}return"blob"===E?new Blob:""}catch(t){if(i("error on fetch",{url:e,error:t}),u?.aborted)return"blob"===E?new Blob:JSON.stringify({success:!1,message:A.ABORTED_REQUEST.toLowerCase().replaceAll("_"," "),errors:[{code:A.ABORTED_REQUEST,detail:`[${S}] ${e} \n ${c}`}]});if(!1===s)throw t;return"blob"===E?new Blob:JSON.stringify({success:!1,message:A.ERROR_ON_RESPONSE.toLowerCase().replaceAll("_"," "),errors:[{code:A.ERROR_ON_RESPONSE,detail:`FETCH CATCH ERROR : ${JSON.stringify({method:S,url:e,body:c,error:t})}`}]})}},ne=e=>({origin:n()?window.location.origin:"https://juki.app",referer:n()?`${window.location.origin}/`:"https://juki.app/",[a]:e,[o]:"juki.app"}),oe=()=>({origin:n()?window.location.origin:"https://juki.app",referer:n()?`${window.location.origin}/`:"https://juki.app/",[T]:"true",[o]:"juki.app"}),ae=async e=>{const{url:t,...s}=S.apiV2.note.publish({body:{source:e.trim()}}),r=w(await te(t,s));return r?.success&&r?.content.sourceUrl?r.content.sourceUrl:(i("error on publish note",{request:r}),"")},ie=async(e,t)=>{try{const{url:s,...n}=S.apiV2.image.publish({body:{contentType:e.type,isPublic:t}}),o=w(await te(s,n));return o.success?(await fetch(o.content.signedUrl,{method:r.PUT,headers:{"Content-Type":e.type},body:e}),{status:U.SUCCESS,message:"image uploaded successfully",content:o.content}):(console.error("response not success on handleUploadImage",{response:o}),{status:U.ERROR,message:"Ups, please try again",content:null})}catch(e){return console.error(e),{status:U.ERROR,message:"Ups, please try again",content:null}}},Se=async(e,t)=>{try{const{url:n,...o}=S.apiV2.file.publish({body:{contentType:e.type,folder:t}}),a=w(await te(n,o));return a.success?(await fetch(a.content.signedUrl,{method:r.PUT,headers:{"Content-Type":e.type},body:e}),{status:U.SUCCESS,message:"image uploaded successfully",content:a.content}):(s("response not success on handleUploadImage",{response:a}),{status:U.ERROR,message:"Ups, please try again",content:null})}catch(e){return s(e),{status:U.ERROR,message:"Ups, please try again",content:null}}},ce=async(e,t,s)=>{const{url:r,...n}=S.apiV2.export.websiteToPdf({params:{url:e,footerTemplate:s?.footerTemplate?.split("\n").join(""),headerTemplate:s?.headerTemplate?.split("\n").join(""),format:s?.format,margin:s?.margin}}),o=w(await te(r,n));if(!o.success)throw new Error("error on download pdf");await E(`https://${o.content.urlExportedPDF}`,t)},ue=async(e,t,s)=>{const{url:r,...n}=S.apiV2.note.createPdf({body:{source:e,theme:t}}),o=await te(r,{responseType:"blob",...n});if("string"==typeof o){if(L(o)){const e=JSON.parse(o).errors[0];if(e)throw new b(e.code,{message:e.detail})}throw new b(A.ABORTED_REQUEST,{message:"error generating the pdf"})}u(o,s)},Ee=async(e,t,r)=>{const o=ee(),a=n()?window.location:new Location;s("Error to report",{error:e,errorInfo:t,location:a,visitorSessionId:o,data:r});try{const{url:n,...i}=S.apiV2.log.error({body:{location:a,visitorSessionId:o,errorName:e?.name||"",errorMessage:e?.message||"",errorStack:e?.stack||"",errorInfo:t,data:{error:e,...r||{}}}}),u=w(await te(n,i));u.success?c("Error reported"):s("Error reported failed",{error:e,errorInfo:t,location:a,visitorSessionId:o,response:u})}catch(r){s("error on log error",{error:e,errorInfo:t,location:a,visitorSessionId:o,errorOnLog:r})}},Te=e=>`jk-editor-settings-store/${e}`,le=e=>`jk-problem-storage/${e}`,Ie=e=>`jk-sources-storage/${e}`,_e=e=>`jk-code-editor-settings-storage/${e}`,de=e=>`jk-test-cases-storage/${e}`,pe=(e,{statement:t,settings:s},r,n)=>{const o=(t?.description?.[r]||t?.description?.[p.EN]||t?.description?.[p.ES]||"").trim(),a=(t?.input[r]||t?.input[p.EN]||t?.input[p.ES]||"").trim(),i=(t?.output[r]||t?.output[p.EN]||t?.output[p.ES]||"").trim(),S=(t?.note?.[r]||t?.note?.[p.EN]||t?.note?.[p.ES]||"").trim(),c=t?.sampleCases||[],u=Object.values(s?.byProgrammingLanguage||{});return{statementDescription:o,statementInput:a,statementOutput:i,statementNote:S,mdStatement:`\n# \\textAlign=center ${n}\n\n\\textAlign=center **${e("type")}:** ${Q[s?.type]?.label}, **${e("mode")}:** ${q[s?.scoringMode]?.label}\n\n|${e("language")}|${e("time limit")}|${e("memory limit")}|\n|--|--|--|\n| ${e("general")} | ${(s?.timeLimit/1e3).toFixed(1)} ${e("seconds")} | ${(s?.memoryLimit/1e3).toFixed(1)} ${e("MB")} |\n${u.map(t=>`| ${l[t.language]?.label} | ${(t?.timeLimit/1e3).toFixed(1)} ${e("seconds")} | ${(t?.memoryLimit/1e3).toFixed(1)} ${e("MB")}|`).join("\n")}\n\n# ${e("description")}\n\n${o}\n\n# ${e("input")}\n\n${a}\n\n# ${e("output")}\n\n${i}\n\n# ${e("subtasks description")}\n\n${s.scoringMode===B.SUBTASK?Object.values(s.pointsByGroups).map(t=>`### ${e("group")} ${t.group} (${t.points} ${e("points")})\n\n${t.description?.[r]}\n `).join("\n"):""}\n\n${c.map((t,s)=>`### ${e("input sample")} ${s+1}\n\`\`\`\n${t.input}\n\`\`\`\n### ${e("output sample")} ${s+1}\n\`\`\`\n${t.output}\n\`\`\`\n`).join("")}\n\n# ${e("note")}\n\n${S}\n`,shouldViewPDF:!(""!==o.trim()||""!==a.trim()||""!==i.trim()||""!==S.trim()||!t.pdfUrl[p.ES]&&!t.pdfUrl[p.EN])}},Ne=()=>n()&&("https://judge.juki.app"===window.location.origin||window.location.origin.endsWith(".jukijudge.com")||"http://localhost:3070"===window.location.origin),Re=(e,t)=>{if(Ne()||t===e)return"";let s=`https://${e}.jukijudge.com`;return"juki-app"===e&&(s="https://judge.juki.app"),s},Ce=(e,t)=>{const s="function"==typeof e?e():e;return void 0!==t?N(R,{children:s},t):s},Ae=(e,t,s)=>{const r="function"==typeof e?e(t):e;return void 0!==s?N(R,{children:r},s):r},Ue=e=>{let t="";for(const[s,r]of Object.entries(e))r&&(t&&(t+="&"),t+=`${s}=${encodeURIComponent(r.toString())}`);return t},me=e=>{let t="";for(const[s,r]of Object.entries(e))!t||-1!==r&&1!==r||(t+=I),-1===r&&(t+=encodeURIComponent(`-${s}`)),1===r&&(t+=encodeURIComponent(`+${s}`));return t?`sort=${t}`:""},Oe=e=>{let t,s;if("string"==typeof e){const[r,n]=e.split("?");t=r||"",s=new URLSearchParams(n||"")}else t=e?.pathname||"",s=e?.searchParams||new URLSearchParams;const r=s.toString();return{pathname:t,searchParams:s,path:`${t}${r?`?${r}`:""}`}},ge=e=>"string"==typeof e?"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)):"";function Be(e){return $(e)||(e=>{if(!v(e))return!1;const t=e;return e.event===g.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId})(e)?V(O.CODE_RUN_STATUS,e.clientId,e.runId):M(e)||(e=>{if(!v(e))return!1;const t=e;return e.event===g.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId})(e)?V(O.SUBMISSION_RUN_STATUS,e.clientId,e.submitId):j(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_GET_DATA)(e)?V(O.SEND_DATA,e.clientId,e.dataId):G(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_USER_NOTIFICATION)(e)?V(O.USER_NOTIFICATION,e.clientId,"*"):P(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_PROBLEM_CRAWLED)(e)?V(O.PROBLEM_CRAWLED,e.clientId,e.problemKey):K(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_SUBMISSIONS_CRAWL)(e)?V(O.SUBMISSIONS_CRAWL,e.clientId,_([e.contestKey,e.problemKeys])):F(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_CONTEST_CHANGES)(e)?V(O.CONTEST_CHANGES,e.clientId,e.contestKey):k(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_CLIENT_TRACK)(e)?V(O.CLIENT_TRACK,e.clientId,"*"):""}function fe(e){return $(e)?{...e,event:g.UNSUBSCRIBE_CODE_RUN_STATUS}:M(e)?{...e,event:g.UNSUBSCRIBE_SUBMISSION_RUN_STATUS}:j(e)?{...e,event:g.UNSUBSCRIBE_GET_DATA}:P(e)?{...e,event:g.UNSUBSCRIBE_PROBLEM_CRAWLED}:K(e)?{...e,event:g.UNSUBSCRIBE_SUBMISSIONS_CRAWL}:F(e)?{...e,event:g.UNSUBSCRIBE_CONTEST_CHANGES}:k(e)?{...e,event:g.UNSUBSCRIBE_CLIENT_TRACK}:G(e)?{...e,event:g.UNSUBSCRIBE_USER_NOTIFICATION}:e}export{Ee as A,Ue as B,me as C,ge as D,D as E,w as F,L as G,q as H,W as I,B as J,H as K,m as L,J as M,f as N,Q as P,U as S,g as W,te as a,ce as b,Y as c,ue as d,se as e,z as f,Z as g,Te as h,ne as i,Oe as j,Re as k,Be as l,oe as m,le as n,_e as o,Ie as p,pe as q,Ae as r,de as s,fe as t,ee as u,Se as v,ie as w,Ne as x,ae as y,Ce as z};
1
+ import{a as e}from"./settings-DgLs6IK_.js";import{QueryParamKey as t}from"./enums.js";import{f as s,c as r,s as n,H as o,b as a,h as i,x as S,g as c,i as u,m as E,a as T,C as l,S as I,w as _}from"./index-BwuVfyt_.js";import{P as d,L as p}from"./date-CmFU6v8V.js";import{jsx as N}from"react/jsx-runtime";import{Fragment as R}from"react";import{f as C}from"./worksheet-KMCQx4-g.js";const A={ABORTED_REQUEST:"ABORTED_REQUEST",ERROR_ON_RESPONSE:"ERROR_ON_RESPONSE",SERVICE_NOT_FOUND:"SERVICE_NOT_FOUND"},U={SUCCESS:"SUCCESS",ERROR:"ERROR",LOADING:"LOADING",NONE:"NONE"},m={PING:"PING",CLIENT_TRACK_LOCATION:"CLIENT_TRACK_LOCATION",CLIENT_TRACK_SCREENSHOT:"CLIENT_TRACK_SCREENSHOT",CLIENT_TRACK_DEVICE:"CLIENT_TRACK_DEVICE",CHAT_COMPLETIONS:"CHAT_COMPLETIONS"},O={PONG:"PONG",CODE_RUN_STATUS:"CODE_RUN_STATUS",SUBMISSION_RUN_STATUS:"SUBMISSION_RUN_STATUS",USER_MESSAGE:"USER_MESSAGE",SEND_DATA:"SEND_DATA",SEND_DATA_ECS_TASK_DEFINITIONS_LIST:"SEND_DATA_ECS_TASK_DEFINITIONS_LIST",SEND_DATA_ECS_TASKS_LIST:"SEND_DATA_ECS_TASKS_LIST",SEND_DATA_EC2_INSTANCES_LIST:"SEND_DATA_EC2_INSTANCES_LIST",SEND_DATA_SSM_SESSIONS_LIST:"SEND_DATA_SSM_SESSIONS_LIST",SEND_DATA_RUN_COMMAND:"SEND_DATA_RUN_COMMAND",SEND_DATA_CLIENT_TRACK:"SEND_DATA_CLIENT_TRACK",SEND_DATA_CHAT_COMPLETIONS:"SEND_DATA_CHAT_COMPLETIONS",PROBLEM_CRAWLED:"PROBLEM_CRAWLED",SUBMISSIONS_CRAWL:"SUBMISSIONS_CRAWL",CONTEST_CHANGES:"CONTEST_CHANGES",CLIENT_TRACK:"CLIENT_TRACK",USER_NOTIFICATION:"USER_NOTIFICATION",USER_NOTIFICATION_SUBMISSION:"USER_NOTIFICATION_SUBMISSION",USER_NOTIFICATION_CONTEST_CLARIFICATION:"USER_NOTIFICATION_CONTEST_CLARIFICATION"},g={SUBSCRIBE_CODE_RUN_STATUS:"SUBSCRIBE_CODE_RUN_STATUS",UNSUBSCRIBE_CODE_RUN_STATUS:"UNSUBSCRIBE_CODE_RUN_STATUS",SUBSCRIBE_SUBMISSION_RUN_STATUS:"SUBSCRIBE_SUBMISSION_RUN_STATUS",UNSUBSCRIBE_SUBMISSION_RUN_STATUS:"UNSUBSCRIBE_SUBMISSION_RUN_STATUS",SUBSCRIBE_GET_DATA:"SUBSCRIBE_GET_DATA",UNSUBSCRIBE_GET_DATA:"SUBSCRIBE_GET_DATA",SUBSCRIBE_PROBLEM_CRAWLED:"SUBSCRIBE_PROBLEM_CRAWLED",UNSUBSCRIBE_PROBLEM_CRAWLED:"UNSUBSCRIBE_PROBLEM_CRAWLED",SUBSCRIBE_SUBMISSIONS_CRAWL:"SUBSCRIBE_SUBMISSIONS_CRAWL",UNSUBSCRIBE_SUBMISSIONS_CRAWL:"UNSUBSCRIBE_SUBMISSIONS_CRAWL",SUBSCRIBE_CONTEST_CHANGES:"SUBSCRIBE_CONTEST_CHANGES",UNSUBSCRIBE_CONTEST_CHANGES:"UNSUBSCRIBE_CONTEST_CHANGES",SUBSCRIBE_CLIENT_TRACK:"SUBSCRIBE_CLIENT_TRACK",UNSUBSCRIBE_CLIENT_TRACK:"UNSUBSCRIBE_CLIENT_TRACK",SUBSCRIBE_USER_NOTIFICATION:"SUBSCRIBE_USER_NOTIFICATION",UNSUBSCRIBE_USER_NOTIFICATION:"UNSUBSCRIBE_USER_NOTIFICATION"},B={SUBTASK:"SUBTASK",TOTAL:"TOTAL",PARTIAL:"PARTIAL"},f={STANDARD:"STANDARD",DYNAMIC:"DYNAMIC",INTERACTIVE:"INTERACTIVE"},h=e=>e.toLowerCase().replace(/_/g," ");class b extends Error{code;data;constructor(e,t){const s=t?.message||h(e);super(s),this.message=s,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}const D=e=>{try{if("string"==typeof e)return JSON.parse(e),!0}catch{return!1}return!1},L=e=>{try{return"string"==typeof JSON.stringify(e)}catch{return!1}};function y(e,...t){return{success:!1,message:e,errors:t.map(e=>({code:e.code,message:e.message,detail:e.stack||(new Error).stack||"",data:e.data}))}}const w=e=>{if(!D(e)){const t=y(h(A.SERVICE_NOT_FOUND),new b(A.SERVICE_NOT_FOUND));return s({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){const r=function(e){if(!0===e.success&&"string"==typeof e.message){if(e.content)return{success:!0,message:e.message,content:e.content};if(Array.isArray(e.contents)&&e.meta)return{success:!0,message:e.message,contents:e.contents,meta:e.meta}}return null}(t);if(r)return r;if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const r={success:!1,message:t.message,errors:t.errors};return s({message:"success false on cleaning request",responseText:e,response:r}),r}}const r=y(h(A.ERROR_ON_RESPONSE),new b(A.ERROR_ON_RESPONSE));return s({message:"success false on cleaning request",responseText:e,response:r}),r},v=e=>{if("object"!=typeof e||null===e)return!1;const t=e;return(Object.values(g).includes(t.event)||Object.values(m).includes(t.event))&&"string"==typeof t.clientId&&!!t.clientId},$=e=>{if(!v(e))return!1;const t=e;return e.event===g.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId},M=e=>{if(!v(e))return!1;const t=e;return e.event===g.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId},j=e=>v(e)&&e.event===g.SUBSCRIBE_GET_DATA,P=e=>v(e)&&e.event===g.SUBSCRIBE_PROBLEM_CRAWLED,K=e=>v(e)&&e.event===g.SUBSCRIBE_SUBMISSIONS_CRAWL,F=e=>v(e)&&e.event===g.SUBSCRIBE_CONTEST_CHANGES,k=e=>v(e)&&e.event===g.SUBSCRIBE_CLIENT_TRACK,G=e=>v(e)&&e.event===g.SUBSCRIBE_USER_NOTIFICATION,x=e=>{if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(O).includes(t.event)&&"string"==typeof t.key&&"string"==typeof t.connectionId&&"number"==typeof t.messageTimestamp&&!!t.messageTimestamp},W=e=>{if(!x(e))return!1;const t=e;return e.event===O.CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId&&Object.values(C).includes(t.status)},H=e=>{if(!x(e))return!1;const t=e;return e.event===O.SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId&&Object.values(C).includes(t.status)&&Object.values(d).includes(t.verdict)&&"number"==typeof t.points},V=(e,t,s)=>`${e}-${t}-${s}`,J=[B.TOTAL,B.SUBTASK,B.PARTIAL],q={[B.TOTAL]:{value:B.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[B.SUBTASK]:{value:B.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[B.PARTIAL]:{value:B.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}},Q={[f.STANDARD]:{value:f.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[f.INTERACTIVE]:{value:f.INTERACTIVE,label:"interactive",description:"developing.."},[f.DYNAMIC]:{value:f.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (organizationId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}},Y=e=>e.isGlobal?{order:0,label:"global",bc:"bc-io"}:e.isEndless?{order:1,label:"endless",bc:"bc-io"}:e.isPast?{order:2,label:"past",bc:"bc-sf-md"}:e.isLive?{order:3,label:"live",bc:"bc-er"}:e.isFuture?{order:4,label:"upcoming",bc:"bc-ss"}:{order:5,label:"-",bc:"bc-sf-md"},z=async e=>{"undefined"!=typeof navigator&&await navigator.clipboard.writeText(e)},X=/^[0-9a-fA-F]{24}$/;function Z(){let e="";return n()&&(e=new URLSearchParams(window.location.search).get(t.TOKEN)??""),24===(s=e).length&&X.test(s)?e:"";var s}function ee(){return"undefined"!=typeof localStorage?Z()||localStorage.getItem(e)||"":Z()||""}const te=(e,t,s)=>re(e,t,s),se=(e,t,s)=>re(e,t,s),re=async(e,t,s)=>{const{method:S=r.GET,body:c,signal:u,responseType:E,headers:T,cache:l,next:I}=t||{},_=new Headers(T??{});_.set("accept","application/json"),c instanceof FormData||_.set("content-type","application/json"),n()&&_.set(o,window.location?.host);const d=ee();d&&_.set(a,d);try{const t=await fetch(e,{method:S,headers:_,credentials:"include",...c?{body:c}:{},...u?{signal:u}:{},cache:l,next:I});try{return"blob"===E?await t.blob():await t.text()}catch(t){i("error on get data",{url:e,error:t,responseType:E})}return"blob"===E?new Blob:""}catch(t){if(i("error on fetch",{url:e,error:t}),u?.aborted)return"blob"===E?new Blob:JSON.stringify({success:!1,message:A.ABORTED_REQUEST.toLowerCase().replaceAll("_"," "),errors:[{code:A.ABORTED_REQUEST,detail:`[${S}] ${e} \n ${c}`}]});if(!1===s)throw t;return"blob"===E?new Blob:JSON.stringify({success:!1,message:A.ERROR_ON_RESPONSE.toLowerCase().replaceAll("_"," "),errors:[{code:A.ERROR_ON_RESPONSE,detail:`FETCH CATCH ERROR : ${JSON.stringify({method:S,url:e,body:c,error:t})}`}]})}},ne=e=>({origin:n()?window.location.origin:"https://juki.app",referer:n()?`${window.location.origin}/`:"https://juki.app/",[a]:e,[o]:"juki.app"}),oe=()=>({origin:n()?window.location.origin:"https://juki.app",referer:n()?`${window.location.origin}/`:"https://juki.app/",[T]:"true",[o]:"juki.app"}),ae=async e=>{const{url:t,...s}=S.apiV2.note.publish({body:{source:e.trim()}}),r=w(await te(t,s));return r?.success&&r?.content.sourceUrl?r.content.sourceUrl:(i("error on publish note",{request:r}),"")},ie=async(e,t)=>{try{const{url:s,...n}=S.apiV2.image.publish({body:{contentType:e.type,isPublic:t}}),o=w(await te(s,n));return o.success?(await fetch(o.content.signedUrl,{method:r.PUT,headers:{"Content-Type":e.type},body:e}),{status:U.SUCCESS,message:"image uploaded successfully",content:o.content}):(console.error("response not success on handleUploadImage",{response:o}),{status:U.ERROR,message:"Ups, please try again",content:null})}catch(e){return console.error(e),{status:U.ERROR,message:"Ups, please try again",content:null}}},Se=async(e,t)=>{try{const{url:n,...o}=S.apiV2.file.publish({body:{contentType:e.type,folder:t}}),a=w(await te(n,o));return a.success?(await fetch(a.content.signedUrl,{method:r.PUT,headers:{"Content-Type":e.type},body:e}),{status:U.SUCCESS,message:"image uploaded successfully",content:a.content}):(s("response not success on handleUploadImage",{response:a}),{status:U.ERROR,message:"Ups, please try again",content:null})}catch(e){return s(e),{status:U.ERROR,message:"Ups, please try again",content:null}}},ce=async(e,t,s)=>{const{url:r,...n}=S.apiV2.export.websiteToPdf({params:{url:e,footerTemplate:s?.footerTemplate?.split("\n").join(""),headerTemplate:s?.headerTemplate?.split("\n").join(""),format:s?.format,margin:s?.margin}}),o=w(await te(r,n));if(!o.success)throw new Error("error on download pdf");await E(`https://${o.content.urlExportedPDF}`,t)},ue=async(e,t,s)=>{const{url:r,...n}=S.apiV2.note.createPdf({body:{source:e,theme:t}}),o=await te(r,{responseType:"blob",...n});if("string"==typeof o){if(L(o)){const e=JSON.parse(o).errors[0];if(e)throw new b(e.code,{message:e.detail})}throw new b(A.ABORTED_REQUEST,{message:"error generating the pdf"})}u(o,s)},Ee=async(e,t,r)=>{const o=ee(),a=n()?window.location:new Location;s("Error to report",{error:e,errorInfo:t,location:a,visitorSessionId:o,data:r});try{const{url:n,...i}=S.apiV2.log.error({body:{location:a,visitorSessionId:o,errorName:e?.name||"",errorMessage:e?.message||"",errorStack:e?.stack||"",errorInfo:t,data:{error:e,...r||{}}}}),u=w(await te(n,i));u.success?c("Error reported"):s("Error reported failed",{error:e,errorInfo:t,location:a,visitorSessionId:o,response:u})}catch(r){s("error on log error",{error:e,errorInfo:t,location:a,visitorSessionId:o,errorOnLog:r})}},Te=e=>`jk-editor-settings-store/${e}`,le=e=>`jk-problem-storage/${e}`,Ie=e=>`jk-sources-storage/${e}`,_e=e=>`jk-code-editor-settings-storage/${e}`,de=e=>`jk-test-cases-storage/${e}`,pe=(e,{statement:t,settings:s},r,n)=>{const o=(t?.description?.[r]||t?.description?.[p.EN]||t?.description?.[p.ES]||"").trim(),a=(t?.input[r]||t?.input[p.EN]||t?.input[p.ES]||"").trim(),i=(t?.output[r]||t?.output[p.EN]||t?.output[p.ES]||"").trim(),S=(t?.note?.[r]||t?.note?.[p.EN]||t?.note?.[p.ES]||"").trim(),c=t?.sampleCases||[],u=Object.values(s?.byProgrammingLanguage||{});return{statementDescription:o,statementInput:a,statementOutput:i,statementNote:S,mdStatement:`\n# \\textAlign=center ${n}\n\n\\textAlign=center **${e("type")}:** ${Q[s?.type]?.label}, **${e("mode")}:** ${q[s?.scoringMode]?.label}\n\n|${e("language")}|${e("time limit")}|${e("memory limit")}|\n|--|--|--|\n| ${e("general")} | ${(s?.timeLimit/1e3).toFixed(1)} ${e("seconds")} | ${(s?.memoryLimit/1e3).toFixed(1)} ${e("MB")} |\n${u.map(t=>`| ${l[t.language]?.label} | ${(t?.timeLimit/1e3).toFixed(1)} ${e("seconds")} | ${(t?.memoryLimit/1e3).toFixed(1)} ${e("MB")}|`).join("\n")}\n\n# ${e("description")}\n\n${o}\n\n# ${e("input")}\n\n${a}\n\n# ${e("output")}\n\n${i}\n\n# ${e("subtasks description")}\n\n${s.scoringMode===B.SUBTASK?Object.values(s.pointsByGroups).map(t=>`### ${e("group")} ${t.group} (${t.points} ${e("points")})\n\n${t.description?.[r]}\n `).join("\n"):""}\n\n${c.map((t,s)=>`### ${e("input sample")} ${s+1}\n\`\`\`\n${t.input}\n\`\`\`\n### ${e("output sample")} ${s+1}\n\`\`\`\n${t.output}\n\`\`\`\n`).join("")}\n\n# ${e("note")}\n\n${S}\n`,shouldViewPDF:!(""!==o.trim()||""!==a.trim()||""!==i.trim()||""!==S.trim()||!t.pdfUrl[p.ES]&&!t.pdfUrl[p.EN])}},Ne=()=>n()&&("https://judge.juki.app"===window.location.origin||window.location.origin.endsWith(".jukijudge.com")||"http://localhost:3070"===window.location.origin),Re=(e,t)=>{if(Ne()||t===e)return"";let s=`https://${e}.jukijudge.com`;return"juki-app"===e&&(s="https://judge.juki.app"),s},Ce=(e,t)=>{const s="function"==typeof e?e():e;return void 0!==t?N(R,{children:s},t):s},Ae=(e,t,s)=>{const r="function"==typeof e?e(t):e;return void 0!==s?N(R,{children:r},s):r},Ue=e=>{let t="";for(const[s,r]of Object.entries(e))r&&(t&&(t+="&"),t+=`${s}=${encodeURIComponent(r.toString())}`);return t},me=e=>{let t="";for(const[s,r]of Object.entries(e))!t||-1!==r&&1!==r||(t+=I),-1===r&&(t+=encodeURIComponent(`-${s}`)),1===r&&(t+=encodeURIComponent(`+${s}`));return t?`sort=${t}`:""},Oe=e=>{let t,s;if("string"==typeof e){const[r,n]=e.split("?");t=r||"",s=new URLSearchParams(n||"")}else t=e?.pathname||"",s=e?.searchParams||new URLSearchParams;const r=s.toString();return{pathname:t,searchParams:s,path:`${t}${r?`?${r}`:""}`}},ge=e=>"string"==typeof e?"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)):"";function Be(e){return $(e)||(e=>{if(!v(e))return!1;const t=e;return e.event===g.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof t.runId&&!!t.runId})(e)?V(O.CODE_RUN_STATUS,e.clientId,e.runId):M(e)||(e=>{if(!v(e))return!1;const t=e;return e.event===g.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof t.submitId&&!!t.submitId})(e)?V(O.SUBMISSION_RUN_STATUS,e.clientId,e.submitId):j(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_GET_DATA)(e)?V(O.SEND_DATA,e.clientId,e.dataId):G(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_USER_NOTIFICATION)(e)?V(O.USER_NOTIFICATION,e.clientId,"*"):P(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_PROBLEM_CRAWLED)(e)?V(O.PROBLEM_CRAWLED,e.clientId,e.problemKey):K(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_SUBMISSIONS_CRAWL)(e)?V(O.SUBMISSIONS_CRAWL,e.clientId,_([e.contestKey,e.problemKeys])):F(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_CONTEST_CHANGES)(e)?V(O.CONTEST_CHANGES,e.clientId,e.contestKey):k(e)||(e=>v(e)&&e.event===g.UNSUBSCRIBE_CLIENT_TRACK)(e)?V(O.CLIENT_TRACK,e.clientId,"*"):""}function fe(e){return $(e)?{...e,event:g.UNSUBSCRIBE_CODE_RUN_STATUS}:M(e)?{...e,event:g.UNSUBSCRIBE_SUBMISSION_RUN_STATUS}:j(e)?{...e,event:g.UNSUBSCRIBE_GET_DATA}:P(e)?{...e,event:g.UNSUBSCRIBE_PROBLEM_CRAWLED}:K(e)?{...e,event:g.UNSUBSCRIBE_SUBMISSIONS_CRAWL}:F(e)?{...e,event:g.UNSUBSCRIBE_CONTEST_CHANGES}:k(e)?{...e,event:g.UNSUBSCRIBE_CLIENT_TRACK}:G(e)?{...e,event:g.UNSUBSCRIBE_USER_NOTIFICATION}:e}export{Se as A,ie as B,W as C,Ne as D,L as E,D as F,H as G,ae as H,Ce as I,Ae as J,Ee as K,Ue as L,me as M,ge as N,q as P,U as S,m as W,J as a,Q as b,B as c,f as d,g as e,te as f,w as g,z as h,ue as i,ce as j,se as k,Y as l,Te as m,ne as n,Oe as o,Re as p,Be as q,oe as r,le as s,Z as t,_e as u,Ie as v,pe as w,de as x,fe as y,ee as z};
@@ -1 +1 @@
1
- import{W as t}from"./worksheet-ClM0CaBH.js";const e=(e,s)=>"number"==typeof e&&!Number.isNaN(e)&&e>t?`${e}px`:Math.max(20*(s?.split("\n").length??0)+60,t);export{e as g};
1
+ import{W as t}from"./worksheet-KMCQx4-g.js";const e=(e,s)=>"number"==typeof e&&!Number.isNaN(e)&&e>t?`${e}px`:Math.max(20*(s?.split("\n").length??0)+60,t);export{e as g};
@@ -1 +1 @@
1
- import{a as e,v as a}from"./worksheet-ClM0CaBH.js";const t="21:9",i="20:9",l="16:9",h="16:10",d="3:2",s="4:3",c="5:4",o="1:1",w=()=>({id:a(),type:e.NEW_PAGE,title:"",points:0}),p={[t]:{aspectRatio:t,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[i]:{aspectRatio:i,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[l]:{aspectRatio:l,width:1920,height:1080,decimal:16/9,label:"widescreen"},[h]:{aspectRatio:h,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[d]:{aspectRatio:d,width:1440,height:960,decimal:1.5,label:"balanced"},[s]:{aspectRatio:s,width:1024,height:768,decimal:4/3,label:"standard"},[c]:{aspectRatio:c,width:1280,height:1024,decimal:5/4,label:"square old"},[o]:{aspectRatio:o,width:1e3,height:1e3,decimal:1,label:"square"}};export{p as A,w as N};
1
+ import{g as e,v as a}from"./worksheet-KMCQx4-g.js";const t="21:9",i="20:9",l="16:9",d="16:10",h="3:2",s="4:3",c="5:4",o="1:1",w=()=>({id:a(),type:e.NEW_PAGE,title:"",points:0}),p={[t]:{aspectRatio:t,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[i]:{aspectRatio:i,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[l]:{aspectRatio:l,width:1920,height:1080,decimal:16/9,label:"widescreen"},[d]:{aspectRatio:d,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[h]:{aspectRatio:h,width:1440,height:960,decimal:1.5,label:"balanced"},[s]:{aspectRatio:s,width:1024,height:768,decimal:4/3,label:"standard"},[c]:{aspectRatio:c,width:1280,height:1024,decimal:5/4,label:"square old"},[o]:{aspectRatio:o,width:1e3,height:1e3,decimal:1,label:"square"}};export{p as A,w as N};
@@ -1 +1 @@
1
- import{P as e}from"./date-DabTuCYQ.js";import{C as l}from"./settings-DgLs6IK_.js";const o={TOTAL:"TOTAL",PARTIAL:"PARTIAL"},E={JK_MD:"JK_MD",CODE_EDITOR:"CODE_EDITOR",LIST:"LIST",GRAPH:"GRAPH",QUIZ_PROBLEM:"QUIZ_PROBLEM",QUIZ_TEXT:"QUIZ_TEXT",QUIZ_OPTIONS:"QUIZ_OPTIONS",NEW_PAGE:"NEW_PAGE"},t="JUKI_JUDGE",a="CODEFORCES",s="CODEFORCES_GYM",r="JV_UMSA",i="UVA_ONLINE_JUDGE",T="AT_CODER",c="CODECHEF",_="TOPCODER",n="LEETCODE",S={NONE:"NONE",RECEIVED:"RECEIVED",COMPILING:"COMPILING",COMPILED:"COMPILED",COMPILATION_ERROR:"COMPILATION_ERROR",FETCHING_TEST_CASES:"FETCHING_TEST_CASES",RUNNING_TEST_CASE:"RUNNING_TEST_CASE",RUNNING_TEST_CASES:"RUNNING_TEST_CASES",RUNNING_SAMPLE_TEST_CASES:"RUNNING_SAMPLE_TEST_CASES",EXECUTED_TEST_CASE:"EXECUTED_TEST_CASE",FAILED_TEST_CASE:"FAILED_TEST_CASE",JUDGING_TEST_CASE:"JUDGING_TEST_CASE",GRADING:"GRADING",FAILED:"FAILED",COMPLETED:"COMPLETED"},u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));const C=new Uint8Array(16);function I(e,l,o){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const l=e.random??e.rng?.()??crypto.getRandomValues(C);if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=15&l[6]|64,l[8]=63&l[8]|128,function(e,l=0){return(u[e[l+0]]+u[e[l+1]]+u[e[l+2]]+u[e[l+3]]+"-"+u[e[l+4]]+u[e[l+5]]+"-"+u[e[l+6]]+u[e[l+7]]+"-"+u[e[l+8]]+u[e[l+9]]+"-"+u[e[l+10]]+u[e[l+11]]+u[e[l+12]]+u[e[l+13]]+u[e[l+14]]+u[e[l+15]]).toLowerCase()}(l)}(e)}const N={[t]:{value:t,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[a]:{value:a,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[s]:{value:s,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[r]:{value:r,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[i]:{value:i,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[T]:{value:T,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[c]:{value:c,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[_]:{value:_,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[n]:{value:n,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}},g=[l.C_11,l.CPP_11,l.CPP_20,l.JAVA_21,l.PYTHON_3,l.PYTHON_PYPY_3,l.JAVASCRIPT_NODE_JS_22,l.PSEUDOCODE_PSEINT],A=[...g],p={[e.NONE]:{value:e.NONE,label:"none",color:"#555555"},[e.PENDING]:{value:e.PENDING,label:"pending",color:"#79B6FD"},[e.HIDDEN]:{value:e.HIDDEN,label:"hidden",color:"#555555"},[e.AC]:{value:e.AC,label:"accepted",color:"#43D787"},[e.PE]:{value:e.PE,label:"presentation error",color:"#55db93"},[e.PA]:{value:e.PA,label:"partial accepted",color:"#55db93"},[e.CE]:{value:e.CE,label:"compilation error",color:"#FE9F9F"},[e.RE]:{value:e.RE,label:"runtime error",color:"#FE9F9F"},[e.TLE]:{value:e.TLE,label:"time limit exceed",color:"#FE9F9F"},[e.MLE]:{value:e.MLE,label:"memory limit exceed",color:"#FE9F9F"},[e.WA]:{value:e.WA,label:"wrong answer",color:"#FE9F9F"}},d={[S.NONE]:{value:S.NONE,label:"none"},[S.RECEIVED]:{value:S.RECEIVED,label:"received"},[S.COMPILING]:{value:S.COMPILING,label:"compiling"},[S.COMPILED]:{value:S.COMPILED,label:"compiled"},[S.COMPILATION_ERROR]:{value:S.COMPILATION_ERROR,label:"compilation error"},[S.FETCHING_TEST_CASES]:{value:S.FETCHING_TEST_CASES,label:"fetching test cases"},[S.RUNNING_TEST_CASE]:{value:S.RUNNING_TEST_CASE,label:"running test case"},[S.RUNNING_TEST_CASES]:{value:S.RUNNING_TEST_CASES,label:"running test cases"},[S.RUNNING_SAMPLE_TEST_CASES]:{value:S.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[S.EXECUTED_TEST_CASE]:{value:S.EXECUTED_TEST_CASE,label:"executed test case"},[S.FAILED_TEST_CASE]:{value:S.FAILED_TEST_CASE,label:"failed test case"},[S.JUDGING_TEST_CASE]:{value:S.JUDGING_TEST_CASE,label:"judging test case"},[S.GRADING]:{value:S.GRADING,label:"grading"},[S.FAILED]:{value:S.FAILED,label:"failed"},[S.COMPLETED]:{value:S.COMPLETED,label:"completed"}},D=320,O=()=>({id:I(),type:E.JK_MD,title:"",points:0,content:""}),b=()=>({id:I(),type:E.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:g,height:0}),P=()=>({id:I(),type:E.GRAPH,title:"",points:0,dots:[v]}),R=()=>({id:I(),type:E.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:g}),G=()=>({id:I(),type:E.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:o.TOTAL}),L=()=>({id:I(),type:E.LIST,title:"",points:0,header:"# header of list",content:[{id:I(),type:E.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),v='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}';export{A,v as D,b as E,N as J,p as P,o as Q,g as R,S,D as W,E as a,P as b,O as c,L as d,G as e,R as f,d as g,I as v};
1
+ import{P as e}from"./date-CmFU6v8V.js";import{C as l}from"./settings-DgLs6IK_.js";const o={TOTAL:"TOTAL",PARTIAL:"PARTIAL"},E={JK_MD:"JK_MD",CODE_EDITOR:"CODE_EDITOR",LIST:"LIST",GRAPH:"GRAPH",QUIZ_PROBLEM:"QUIZ_PROBLEM",QUIZ_TEXT:"QUIZ_TEXT",QUIZ_OPTIONS:"QUIZ_OPTIONS",NEW_PAGE:"NEW_PAGE"},t="JUKI_JUDGE",a="CODEFORCES",s="CODEFORCES_GYM",r="JV_UMSA",i="UVA_ONLINE_JUDGE",T="AT_CODER",c="CODECHEF",_="TOPCODER",n="LEETCODE",S={NONE:"NONE",RECEIVED:"RECEIVED",COMPILING:"COMPILING",COMPILED:"COMPILED",COMPILATION_ERROR:"COMPILATION_ERROR",FETCHING_TEST_CASES:"FETCHING_TEST_CASES",RUNNING_TEST_CASE:"RUNNING_TEST_CASE",RUNNING_TEST_CASES:"RUNNING_TEST_CASES",RUNNING_SAMPLE_TEST_CASES:"RUNNING_SAMPLE_TEST_CASES",EXECUTED_TEST_CASE:"EXECUTED_TEST_CASE",FAILED_TEST_CASE:"FAILED_TEST_CASE",JUDGING_TEST_CASE:"JUDGING_TEST_CASE",GRADING:"GRADING",FAILED:"FAILED",COMPLETED:"COMPLETED"},u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));const C=new Uint8Array(16);function I(e,l,o){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const l=e.random??e.rng?.()??crypto.getRandomValues(C);if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=15&l[6]|64,l[8]=63&l[8]|128,function(e,l=0){return(u[e[l+0]]+u[e[l+1]]+u[e[l+2]]+u[e[l+3]]+"-"+u[e[l+4]]+u[e[l+5]]+"-"+u[e[l+6]]+u[e[l+7]]+"-"+u[e[l+8]]+u[e[l+9]]+"-"+u[e[l+10]]+u[e[l+11]]+u[e[l+12]]+u[e[l+13]]+u[e[l+14]]+u[e[l+15]]).toLowerCase()}(l)}(e)}const N={[t]:{value:t,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[a]:{value:a,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[s]:{value:s,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[r]:{value:r,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[i]:{value:i,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[T]:{value:T,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[c]:{value:c,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[_]:{value:_,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[n]:{value:n,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}},g=[l.C_11,l.CPP_11,l.CPP_20,l.JAVA_21,l.PYTHON_3,l.PYTHON_PYPY_3,l.JAVASCRIPT_NODE_JS_22,l.PSEUDOCODE_PSEINT],A=[...g],p={[e.NONE]:{value:e.NONE,label:"none",color:"#555555"},[e.PENDING]:{value:e.PENDING,label:"pending",color:"#79B6FD"},[e.HIDDEN]:{value:e.HIDDEN,label:"hidden",color:"#555555"},[e.AC]:{value:e.AC,label:"accepted",color:"#43D787"},[e.PE]:{value:e.PE,label:"presentation error",color:"#55db93"},[e.PA]:{value:e.PA,label:"partial accepted",color:"#55db93"},[e.CE]:{value:e.CE,label:"compilation error",color:"#FE9F9F"},[e.RE]:{value:e.RE,label:"runtime error",color:"#FE9F9F"},[e.TLE]:{value:e.TLE,label:"time limit exceed",color:"#FE9F9F"},[e.MLE]:{value:e.MLE,label:"memory limit exceed",color:"#FE9F9F"},[e.WA]:{value:e.WA,label:"wrong answer",color:"#FE9F9F"}},d={[S.NONE]:{value:S.NONE,label:"none"},[S.RECEIVED]:{value:S.RECEIVED,label:"received"},[S.COMPILING]:{value:S.COMPILING,label:"compiling"},[S.COMPILED]:{value:S.COMPILED,label:"compiled"},[S.COMPILATION_ERROR]:{value:S.COMPILATION_ERROR,label:"compilation error"},[S.FETCHING_TEST_CASES]:{value:S.FETCHING_TEST_CASES,label:"fetching test cases"},[S.RUNNING_TEST_CASE]:{value:S.RUNNING_TEST_CASE,label:"running test case"},[S.RUNNING_TEST_CASES]:{value:S.RUNNING_TEST_CASES,label:"running test cases"},[S.RUNNING_SAMPLE_TEST_CASES]:{value:S.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[S.EXECUTED_TEST_CASE]:{value:S.EXECUTED_TEST_CASE,label:"executed test case"},[S.FAILED_TEST_CASE]:{value:S.FAILED_TEST_CASE,label:"failed test case"},[S.JUDGING_TEST_CASE]:{value:S.JUDGING_TEST_CASE,label:"judging test case"},[S.GRADING]:{value:S.GRADING,label:"grading"},[S.FAILED]:{value:S.FAILED,label:"failed"},[S.COMPLETED]:{value:S.COMPLETED,label:"completed"}},D=320,O=()=>({id:I(),type:E.JK_MD,title:"",points:0,content:""}),b=()=>({id:I(),type:E.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:g,height:0}),P=()=>({id:I(),type:E.GRAPH,title:"",points:0,dots:[v]}),R=()=>({id:I(),type:E.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:g}),G=()=>({id:I(),type:E.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:o.TOTAL}),L=()=>({id:I(),type:E.LIST,title:"",points:0,header:"# header of list",content:[{id:I(),type:E.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),v='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}';export{A,v as D,b as E,N as J,p as P,o as Q,g as R,d as S,D as W,P as a,O as b,L as c,G as d,R as e,S as f,E as g,I as v};
@@ -0,0 +1 @@
1
+ import{aC as t,L as i,P as e,aF as s,M as a,aD as n,a as o,ai as h,aB as r,w as l,n as c,N as g,az as u,m as x,F as d,$ as p,t as f}from"./mermaid.core-BJ63Ijjp.js";import{b as m}from"./band-DVHgMxOa.js";import{l as y}from"./linear-BqR6NtXG.js";import{A as b}from"./string-CQk_HvWX.js";import"./index-Cp9n6f_0.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-BrmGyMm3.js";import"./index-BwuVfyt_.js";import"./enums.js";import"./date-CmFU6v8V.js";import"./time-BgcLBBP-.js";import"./websocket-BXbChnc8.js";import"./worksheet-KMCQx4-g.js";import"motion/react";import"react-dom";import"./index-9FCB1eYq.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./init-DWDD0M30.js";import"./ordinal-UuA5o140.js";import"./defaultLocale-BAKTrQtR.js";var A=function(){var t=o(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],h=[1,7],r=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],f=[1,33],m=[1,34],y=[1,35],b=[1,36],A=[1,37],w=[1,43],S=[1,42],C=[1,47],k=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[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],D=[1,64],L={trace:o(function(){},"trace"),yy:{},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},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"},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]],performAction:o(function(t,i,e,s,a,n,o){var h=n.length-1;switch(a){case 5:s.setOrientation(n[h]);break;case 9:s.setDiagramTitle(n[h].text.trim());break;case 12:s.setLineData({text:"",type:"text"},n[h]);break;case 13:s.setLineData(n[h-1],n[h]);break;case 14:s.setBarData({text:"",type:"text"},n[h]);break;case 15:s.setBarData(n[h-1],n[h]);break;case 16:this.$=n[h].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=n[h].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=n[h-1];break;case 20:this.$=[Number(n[h-2]),...n[h]];break;case 21:this.$=[Number(n[h])];break;case 22:s.setXAxisTitle(n[h]);break;case 23:s.setXAxisTitle(n[h-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(n[h]);break;case 26:s.setXAxisRangeData(Number(n[h-2]),Number(n[h]));break;case 28:this.$=[n[h-2],...n[h]];break;case 29:this.$=[n[h]];break;case 30:s.setYAxisTitle(n[h]);break;case 31:s.setYAxisTitle(n[h-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(n[h-2]),Number(n[h]));break;case 37:case 38:this.$={text:n[h],type:"text"};break;case 39:this.$={text:n[h],type:"markdown"};break;case 40:this.$=n[h];break;case 41:this.$=n[h-1]+""+n[h]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:a,35:n,36:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:h}),{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]},t(r,[2,34]),t(r,[2,35]),t(r,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:a,35:n,36:h}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:h}),{11:23,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:39,13:38,24:w,27:S,29:40,30:41,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:45,15:44,27:C,33:46,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:49,17:48,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:52,17:51,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(_,[2,10]),t(_,[2,22],{30:41,29:56,24:w,27:S}),t(_,[2,24]),t(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},t(_,[2,11]),t(_,[2,30],{33:60,27:C}),t(_,[2,32]),{31:[1,61]},t(_,[2,12]),{17:62,24:k},{25:63,27:D},t(_,[2,14]),{17:65,24:k},t(_,[2,16]),t(_,[2,17]),t(R,[2,41]),t(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(_,[2,31]),{27:[1,69]},t(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(_,[2,15]),t(_,[2,26]),t(_,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},t(_,[2,33]),t(_,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:o(function(t,i){if(!i.recoverable){var e=new Error(t);throw e.hash=i,e}this.trace(t)},"parseError"),parse:o(function(t){var i=this,e=[0],s=[],a=[null],n=[],h=this.table,r="",l=0,c=0,g=n.slice.call(arguments,1),u=Object.create(this.lexer),x={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(x.yy[d]=this.yy[d]);u.setInput(t,x.yy),x.yy.lexer=u,x.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var p=u.yylloc;n.push(p);var f=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof x.yy.parseError?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(t){e.length=e.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),o(m,"lex");for(var y,b,A,w,S,C,k,_,T={};;){if(b=e[e.length-1],this.defaultActions[b]?A=this.defaultActions[b]:(null==y&&(y=m()),A=h[b]&&h[b][y]),void 0===A||!A.length||!A[0]){var R="";for(S in _=[],h[b])this.terminals_[S]&&S>2&&_.push("'"+this.terminals_[S]+"'");R=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:p,expected:_})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(A[0]){case 1:e.push(y),a.push(u.yytext),n.push(u.yylloc),e.push(A[1]),y=null,c=u.yyleng,r=u.yytext,l=u.yylineno,p=u.yylloc;break;case 2:if(C=this.productions_[A[1]][1],T.$=a[a.length-C],T._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},f&&(T._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),void 0!==(w=this.performAction.apply(T,[r,c,l,x.yy,A[1],a,n].concat(g))))return w;C&&(e=e.slice(0,-1*C*2),a=a.slice(0,-1*C),n=n.slice(0,-1*C)),e.push(this.productions_[A[1]][0]),a.push(T.$),n.push(T._$),k=h[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0},"parse")},P=function(){return{EOF:1,parseError:o(function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},"parseError"),setInput:o(function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:o(function(t,i){var e,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var t,i,e,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;n<a.length;n++)if((e=this._input.match(this.rules[a[n]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,a[n])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var t=this.next();return t||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),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],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}}}}();function E(){this.yy={}}return L.lexer=P,o(E,"Parser"),E.prototype=L,L.Parser=E,new E}();A.parser=A;var w=A;function S(t){return"bar"===t.type}function C(t){return"band"===t.type}function k(t){return"linear"===t.type}o(S,"isBarPlot"),o(C,"isBandAxisData"),o(k,"isLinearAxisData");var _=class{constructor(t){this.parentGroup=t}static{o(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};const e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const a of t){const t=f(s,1,a),n=t?t.width:a.length*i,o=t?t.height:i;e.width=Math.max(e.width,n),e.height=Math.max(e.height,o)}return s.remove(),e}},T=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,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"}static{o(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);const a=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);const a=e.width+2*this.axisConfig.labelPadding;a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),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),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},R=class extends T{static{o(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.categories=e,this.scale=m().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=m().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),h.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},D=class extends T{static{o(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.domain=e,this.scale=y().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=y().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function L(t,i,e,s){const a=new _(s);return C(t)?new R(i,e,t.categories,t.title,a):new D(i,e,[t.min,t.max],t.title,a)}o(L,"getAxis");var P=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{o(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function E(t,i,e,s){const a=new _(s);return new P(a,t,i,e)}o(E,"getChartTitleComponent");var v=class{constructor(t,i,e,s,a){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=a}static{o(this,"LinePlot")}getDrawableElement(){const t=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);let i;return i="horizontal"===this.orientation?b().y(t=>t[0]).x(t=>t[1])(t):b().x(t=>t[0]).y(t=>t[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},M=class{constructor(t,i,e,s,a,n){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=n}static{o(this,"BarPlot")}getDrawableElement(){const t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},I=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{o(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new v(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new M(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function $(t,i,e){return new I(t,i,e)}o($,"getPlotComponent");var B,z=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:E(t,i,e,s),plot:$(t,i,e),xAxis:L(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:L(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{o(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),n=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:n});t-=o.width,i-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=o.height,i-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=o.height,this.componentStore.yAxis.setAxisPosition("left"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=o.width,t-=o.width,t>0&&(a+=t,t=0),i>0&&(n+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:n}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+a]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+n}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>S(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:n,height:o});t-=h.width,i-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=h.height,i-=h.height,this.componentStore.xAxis.setAxisPosition("left"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=h.width,s=h.width,this.componentStore.yAxis.setAxisPosition("top"),h=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=h.height,a=e+h.height,t>0&&(n+=t,t=0),i>0&&(o+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:o}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(t=>S(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},F=class{static{o(this,"XYChartBuilder")}static build(t,i,e,s){return new z(t,i,e,s).getDrawableElement()}},O=0,W=U(),X=H(),N=G(),V=X.plotColorPalette.split(",").map(t=>t.trim()),j=!1,Y=!1;function H(){const t=p(),i=g();return x(t.xyChart,i.themeVariables.xyChart)}function U(){const t=g();return x(d.xyChart,t.xyChart)}function G(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function Q(t){const i=g();return u(t.trim(),i)}function K(t){B=t}function Z(t){W.chartOrientation="horizontal"===t?"horizontal":"vertical"}function q(t){N.xAxis.title=Q(t.text)}function J(t,i){N.xAxis={type:"linear",title:N.xAxis.title,min:t,max:i},j=!0}function tt(t){N.xAxis={type:"band",title:N.xAxis.title,categories:t.map(t=>Q(t.text))},j=!0}function it(t){N.yAxis.title=Q(t.text)}function et(t,i){N.yAxis={type:"linear",title:N.yAxis.title,min:t,max:i},Y=!0}function st(t){const i=Math.min(...t),e=Math.max(...t),s=k(N.yAxis)?N.yAxis.min:1/0,a=k(N.yAxis)?N.yAxis.max:-1/0;N.yAxis={type:"linear",title:N.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}function at(t){let i=[];if(0===t.length)return i;if(!j){const i=k(N.xAxis)?N.xAxis.min:1/0,e=k(N.xAxis)?N.xAxis.max:-1/0;J(Math.min(i,1),Math.max(e,t.length))}if(Y||st(t),C(N.xAxis)&&(i=N.xAxis.categories.map((i,e)=>[i,t[e]])),k(N.xAxis)){const e=N.xAxis.min,s=N.xAxis.max,a=(s-e)/(t.length-1),n=[];for(let t=e;t<=s;t+=a)n.push(`${t}`);i=n.map((i,e)=>[i,t[e]])}return i}function nt(t){return V[0===t?0:t%V.length]}function ot(t,i){const e=at(i);N.plots.push({type:"line",strokeFill:nt(O),strokeWidth:2,data:e}),O++}function ht(t,i){const e=at(i);N.plots.push({type:"bar",fill:nt(O),data:e}),O++}function rt(){if(0===N.plots.length)throw Error("No Plot to render, please provide a plot with some data");return N.title=e(),F.build(W,N,X,B)}function lt(){return X}function ct(){return W}function gt(){return N}o(H,"getChartDefaultThemeConfig"),o(U,"getChartDefaultConfig"),o(G,"getChartDefaultData"),o(Q,"textSanitizer"),o(K,"setTmpSVGG"),o(Z,"setOrientation"),o(q,"setXAxisTitle"),o(J,"setXAxisRangeData"),o(tt,"setXAxisBand"),o(it,"setYAxisTitle"),o(et,"setYAxisRangeData"),o(st,"setYAxisRangeFromPlotData"),o(at,"transformDataWithoutCategory"),o(nt,"getPlotColorFromPalette"),o(ot,"setLineData"),o(ht,"setBarData"),o(rt,"getDrawableElem"),o(lt,"getChartThemeConfig"),o(ct,"getChartConfig"),o(gt,"getXYChartData");var ut={parser:w,db:{getDrawableElem:rt,clear:o(function(){c(),O=0,W=U(),N={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},X=H(),V=X.plotColorPalette.split(",").map(t=>t.trim()),j=!1,Y=!1},"clear"),setAccTitle:n,getAccTitle:a,setDiagramTitle:s,getDiagramTitle:e,getAccDescription:i,setAccDescription:t,setOrientation:Z,setXAxisTitle:q,setXAxisRangeData:J,setXAxisBand:tt,setYAxisTitle:it,setYAxisRangeData:et,setLineData:ot,setBarData:ht,setTmpSVGG:K,getChartThemeConfig:lt,getChartConfig:ct,getXYChartData:gt},renderer:{draw:o((t,i,e,s)=>{const a=s.db,n=a.getChartThemeConfig(),c=a.getChartConfig(),g=a.getXYChartData().plots[0].data.map(t=>t[1]);function u(t){return"top"===t?"text-before-edge":"middle"}function x(t){return"left"===t?"start":"right"===t?"end":"middle"}function d(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}o(u,"getDominantBaseLine"),o(x,"getTextAnchor"),o(d,"getTextTransformation"),h.debug("Rendering xychart chart\n"+t);const p=r(i),f=p.append("g").attr("class","main"),m=f.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");l(p,c.height,c.width,!0),p.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",n.backgroundColor),a.setTmpSVGG(p.append("g").attr("class","mermaid-tmp-group"));const y=a.getDrawableElem(),b={};function A(t){let i=f,e="";for(const[s]of t.entries()){let a=f;s>0&&b[e]&&(a=b[e]),e+=t[s],i=b[e],i||(i=b[e]=a.append("g").attr("class",t[s]))}return i}o(A,"getGroup");for(const t of y){if(0===t.data.length)continue;const i=A(t.groupTexts);switch(t.type){case"rect":if(i.selectAll("rect").data(t.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),c.showDataLabel){const e=c.showDataLabelOutsideBar;if("horizontal"===c.chartOrientation){let s=function(t,i){const{data:e,label:s}=t;return i*s.length*a<=e.width-h};o(s,"fitsHorizontally");const a=.7,h=10,r=t.data.map((t,i)=>({data:t,label:g[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),l=r.map(t=>{const{data:i}=t;let e=.7*i.height;for(;!s(t,e)&&e>0;)e-=1;return e}),c=Math.floor(Math.min(...l)),u=o(t=>e?t.data.x+t.data.width+h:t.data.x+t.data.width-h,"determineLabelXPosition");i.selectAll("text").data(r).enter().append("text").attr("x",u).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor",e?"start":"end").attr("dominant-baseline","middle").attr("fill",n.dataLabelColor).attr("font-size",`${c}px`).text(t=>t.label)}else{let s=function(t,i,e){const{data:s,label:a}=t,n=i*a.length*.7,o=s.x+s.width/2,h=o+n/2,r=o-n/2>=s.x&&h<=s.x+s.width,l=s.y+e+i<=s.y+s.height;return r&&l};o(s,"fitsInBar");const a=10,h=t.data.map((t,i)=>({data:t,label:g[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),r=h.map(t=>{const{data:i,label:e}=t;let n=i.width/(.7*e.length);for(;!s(t,n,a)&&n>0;)n-=1;return n}),l=Math.floor(Math.min(...r)),c=o(t=>e?t.data.y-a:t.data.y+a,"determineLabelYPosition");i.selectAll("text").data(h).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",c).attr("text-anchor","middle").attr("dominant-baseline",e?"auto":"hanging").attr("fill",n.dataLabelColor).attr("font-size",`${l}px`).text(t=>t.label)}}break;case"text":i.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>u(t.verticalPos)).attr("text-anchor",t=>x(t.horizontalPos)).attr("transform",t=>d(t)).text(t=>t.text);break;case"path":i.selectAll("path").data(t.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}};export{ut as diagram};
@@ -1,5 +1,5 @@
1
- export * from './getContestContestantsHeader';
2
- export * from './getContestDateHeader';
1
+ export * from '../../server/columns/contest-columns/getContestContestantsHeader';
2
+ export * from '../../server/columns/contest-columns/getContestDateHeader';
3
3
  export * from './getContestNameHeader';
4
4
  export * from './getContestStatusHeader';
5
5
  export * from './getContestTagsHeader';
@@ -22,11 +22,9 @@ export { ProblemNameLinkField } from './problem/ProblemNameLinkField';
22
22
  export { ProblemNameModalField } from './problem/ProblemNameModalField';
23
23
  export { ProblemOwnerField } from './problem/ProblemOwnerField';
24
24
  export { ProblemTypeField } from './problem/ProblemTypeField';
25
- export { TagsField } from './problem/TagsField';
26
25
  export { ResetPasswordModal } from './ResetPasswordModal/ResetPasswordModal';
27
26
  export { SubmissionContestField } from './submission/SubmissionContestField';
28
27
  export { SubmissionContestProblemField } from './submission/SubmissionContestProblemField';
29
- export { SubmissionDateField } from './submission/SubmissionDateField';
30
28
  export { SubmissionLanguageField } from './submission/SubmissionLanguageField';
31
29
  export { SubmissionNicknameField } from './submission/SubmissionNicknameField';
32
30
  export { SubmissionProblemField } from './submission/SubmissionProblemField';
@@ -1,3 +1,3 @@
1
1
  import type { ContestSummaryListResponseDTO } from '@juki-team/commons/dto';
2
- import type { DataViewerHeadersType } from '../../../organisms/types';
2
+ import type { DataViewerHeadersType } from '../../../../organisms/types';
3
3
  export declare function getContestContestantsHeader(): DataViewerHeadersType<ContestSummaryListResponseDTO>;
@@ -1,3 +1,3 @@
1
1
  import type { ContestSummaryListResponseDTO } from '@juki-team/commons/dto';
2
- import type { DataViewerHeadersType } from '../../../organisms/types';
2
+ import type { DataViewerHeadersType } from '../../../../organisms/types';
3
3
  export declare function getContestDateHeader(): DataViewerHeadersType<ContestSummaryListResponseDTO>;
@@ -1 +1,5 @@
1
+ export * from './columns/contest-columns/getContestContestantsHeader';
2
+ export * from './columns/contest-columns/getContestDateHeader';
3
+ export * from './problem/TagsField';
1
4
  export * from './ProblemStatus/ProblemStatus';
5
+ export * from './submission/SubmissionDateField';
@@ -1,2 +1,2 @@
1
- import type { TagsFieldProps } from './types';
1
+ import type { TagsFieldProps } from '../../problem/types';
2
2
  export declare function TagsField({ record: { tags }, isCard }: TagsFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import type { SubmissionDateFieldProps } from './types';
1
+ import type { SubmissionDateFieldProps } from '../../submission/types';
2
2
  export declare function SubmissionDateField({ record: { timestamp, contest }, isCard }: SubmissionDateFieldProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juki-team/base-ui",
3
- "version": "1.4.121",
3
+ "version": "1.4.127",
4
4
  "repository": "https://github.com/juki-team/base-ui",
5
5
  "author": "juki-team",
6
6
  "license": "MIT",
@@ -72,8 +72,8 @@
72
72
  "./vendor-styles.scss": "./src/styles/vendor/index.scss"
73
73
  },
74
74
  "dependencies": {
75
- "@ai-sdk/react": "^3.0.176",
76
- "@codemirror/autocomplete": "^6.20.1",
75
+ "@ai-sdk/react": "^3.0.193",
76
+ "@codemirror/autocomplete": "^6.20.2",
77
77
  "@codemirror/commands": "^6.10.3",
78
78
  "@codemirror/lang-cpp": "^6.0.3",
79
79
  "@codemirror/lang-html": "^6.4.11",
@@ -84,56 +84,56 @@
84
84
  "@codemirror/lang-python": "^6.2.1",
85
85
  "@codemirror/language": "^6.12.3",
86
86
  "@codemirror/language-data": "^6.5.2",
87
- "@codemirror/legacy-modes": "^6.5.2",
88
- "@codemirror/lint": "^6.9.5",
87
+ "@codemirror/legacy-modes": "^6.5.3",
88
+ "@codemirror/lint": "^6.9.6",
89
89
  "@codemirror/search": "^6.7.0",
90
90
  "@codemirror/state": "^6.6.0",
91
91
  "@codemirror/theme-one-dark": "^6.1.3",
92
- "@codemirror/view": "^6.41.1",
92
+ "@codemirror/view": "^6.43.0",
93
93
  "@dnd-kit/core": "^6.3.1",
94
94
  "@dnd-kit/sortable": "^10.0.0",
95
95
  "@dnd-kit/utilities": "^3.2.2",
96
96
  "@excalidraw/excalidraw": "^0.18.1",
97
97
  "@floating-ui/react": "^0.27.19",
98
- "@handsontable/react-wrapper": "^17.0.1",
99
- "@hookform/resolvers": "^5.2.2",
98
+ "@handsontable/react-wrapper": "^17.1.0",
99
+ "@hookform/resolvers": "^5.4.0",
100
100
  "@juki-team/commons": "^0.2.6",
101
101
  "@mdx-js/mdx": "^3.1.1",
102
- "@milkdown/components": "^7.20.0",
103
- "@milkdown/core": "^7.20.0",
104
- "@milkdown/crepe": "^7.20.0",
105
- "@milkdown/kit": "^7.20.0",
106
- "@milkdown/react": "^7.20.0",
107
- "@milkdown/utils": "^7.20.0",
102
+ "@milkdown/components": "^7.21.1",
103
+ "@milkdown/core": "^7.21.1",
104
+ "@milkdown/crepe": "^7.21.1",
105
+ "@milkdown/kit": "^7.21.1",
106
+ "@milkdown/react": "^7.21.1",
107
+ "@milkdown/utils": "^7.21.1",
108
108
  "@reactour/tour": "^3.8.0",
109
- "@tanstack/react-virtual": "^3.13.24",
109
+ "@tanstack/react-virtual": "^3.13.25",
110
110
  "@viz-js/lang-dot": "^1.0.5",
111
- "@viz-js/viz": "^3.26.0",
112
- "ai": "^6.0.174",
111
+ "@viz-js/viz": "^3.27.0",
112
+ "ai": "^6.0.191",
113
113
  "codemirror": "^6.0.2",
114
114
  "codemirror-lang-mermaid": "^0.5.0",
115
115
  "countries-and-timezones": "^3.9.0",
116
116
  "diff": "^9.0.0",
117
117
  "diff2html": "^3.4.56",
118
118
  "dom-to-image-more": "^3.7.2",
119
- "fumadocs-ui": "^16.8.5",
120
- "handsontable": "^17.0.1",
119
+ "fumadocs-ui": "^16.9.1",
120
+ "handsontable": "^17.1.0",
121
121
  "highlight.js": "^11.11.1",
122
122
  "i18n-iso-countries": "^7.14.0",
123
- "katex": "^0.16.45",
124
- "libphonenumber-js": "^1.12.42",
125
- "mermaid": "^11.14.0",
123
+ "katex": "^0.17.0",
124
+ "libphonenumber-js": "^1.13.3",
125
+ "mermaid": "^11.15.0",
126
126
  "microdiff": "^1.5.0",
127
- "motion": "^12.38.0",
127
+ "motion": "^12.40.0",
128
128
  "prosemirror-view": "^1.41.8",
129
129
  "prosemirror-virtual-cursor": "^0.4.2",
130
130
  "react-color": "^2.19.3",
131
131
  "react-device-detect": "^2.2.3",
132
- "react-hook-form": "^7.75.0",
132
+ "react-hook-form": "^7.76.1",
133
133
  "react-image-crop": "^11.0.10",
134
134
  "react-markdown": "^10.1.0",
135
135
  "react-resize-detector": "^12.3.0",
136
- "react-tooltip": "^6.0.0",
136
+ "react-tooltip": "^6.0.4",
137
137
  "recharts": "^3.8.1",
138
138
  "rehype-katex": "^7.0.1",
139
139
  "rehype-raw": "^7.0.0",
@@ -145,56 +145,51 @@
145
145
  "uuid": "^14.0.0",
146
146
  "xlsx": "^0.18.5",
147
147
  "yup": "^1.7.1",
148
- "zustand": "^5.0.12"
148
+ "zustand": "^5.0.13"
149
149
  },
150
150
  "devDependencies": {
151
- "@ably/spaces": "^0.5.2",
152
- "@biomejs/biome": "^2.4.14",
151
+ "@ably/spaces": "latest",
152
+ "@biomejs/biome": "^2.4.15",
153
153
  "@eslint/css": "latest",
154
- "@eslint/js": "^10.0.1",
155
- "@eslint/json": "^1.2.0",
156
- "@eslint/markdown": "^8.0.1",
154
+ "@eslint/markdown": "^8.0.2",
157
155
  "@rollup/plugin-alias": "^6.0.0",
158
156
  "@rollup/plugin-commonjs": "^29.0.2",
159
157
  "@rollup/plugin-json": "^6.1.0",
160
158
  "@rollup/plugin-node-resolve": "^16.0.3",
161
159
  "@rollup/plugin-replace": "^6.0.3",
162
160
  "@rollup/plugin-terser": "^1.0.0",
163
- "@storybook/addon-a11y": "^10.3.6",
164
- "@storybook/addon-docs": "^10.3.6",
165
- "@storybook/addon-links": "^10.3.6",
166
- "@storybook/addon-themes": "^10.3.6",
167
- "@storybook/addon-vitest": "^10.3.6",
161
+ "@storybook/addon-a11y": "^10.4.1",
162
+ "@storybook/addon-docs": "^10.4.1",
163
+ "@storybook/addon-links": "^10.4.1",
164
+ "@storybook/addon-themes": "^10.4.1",
165
+ "@storybook/addon-vitest": "^10.4.1",
168
166
  "@storybook/preset-scss": "^1.0.3",
169
- "@storybook/react-vite": "^10.3.6",
170
- "@swc/core": "^1.15.32",
167
+ "@storybook/react-vite": "^10.4.1",
168
+ "@swc/core": "^1.15.40",
171
169
  "@types/codemirror": "^5.60.17",
172
170
  "@types/d3-graphviz": "^2.6.10",
173
171
  "@types/graphlib-dot": "^0.6.4",
174
172
  "@types/hast": "^3.0.4",
175
173
  "@types/jest": "^30.0.0",
176
- "@types/node": "^25.6.0",
177
- "@types/react": "^19.2.14",
174
+ "@types/node": "^25.9.1",
175
+ "@types/react": "^19.2.15",
178
176
  "@types/react-color": "^3.0.13",
179
177
  "@types/react-dom": "^19.2.3",
180
- "@vitest/browser-playwright": "^4.1.5",
181
- "@vitest/coverage-v8": "^4.1.5",
178
+ "@vitest/browser-playwright": "^4.1.7",
179
+ "@vitest/coverage-v8": "^4.1.7",
182
180
  "ably": "^2.21.0",
183
181
  "css-loader": "^7.1.4",
184
182
  "dotenv-cli": "^11.0.0",
185
- "eslint": "^10.3.0",
186
- "eslint-plugin-react": "^7.37.5",
183
+ "eslint": "^10.4.0",
187
184
  "eslint-plugin-react-hooks": "^7.1.1",
188
- "eslint-plugin-storybook": "^10.3.6",
189
- "globals": "^17.6.0",
190
- "jiti": "^2.6.1",
191
- "playwright": "^1.59.1",
192
- "postcss": "^8.5.13",
193
- "prettier": "^3.8.3",
194
- "react": "^19.2.5",
195
- "react-dom": "^19.2.5",
196
- "react-router-dom": "^7.14.2",
197
- "rollup": "^4.60.2",
185
+ "eslint-plugin-storybook": "^10.4.1",
186
+ "jiti": "^2.7.0",
187
+ "playwright": "^1.60.0",
188
+ "postcss": "^8.5.15",
189
+ "react": "^19.2.6",
190
+ "react-dom": "^19.2.6",
191
+ "react-router-dom": "^7.15.1",
192
+ "rollup": "^4.60.4",
198
193
  "rollup-plugin-copy": "^3.5.0",
199
194
  "rollup-plugin-node-polyfills": "^0.2.1",
200
195
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -202,15 +197,15 @@
202
197
  "rollup-plugin-typescript2": "^0.37.0",
203
198
  "rollup-plugin-visualizer": "^7.0.1",
204
199
  "rollup-preserve-directives": "^1.1.3",
205
- "sass": "^1.99.0",
206
- "sass-loader": "^16.0.7",
207
- "storybook": "^10.3.6",
200
+ "sass": "^1.100.0",
201
+ "sass-loader": "^17.0.0",
202
+ "storybook": "^10.4.1",
208
203
  "style-loader": "^4.0.0",
209
204
  "swc-loader": "^0.2.7",
210
205
  "typescript": "^6.0.3",
211
- "typescript-eslint": "^8.59.1",
212
- "vite": "^8.0.10",
213
- "vitest": "^4.1.5"
206
+ "typescript-eslint": "^8.59.4",
207
+ "vite": "^8.0.14",
208
+ "vitest": "^4.1.7"
214
209
  },
215
210
  "peerDependencies": {
216
211
  "@ably/spaces": "^0.5.2",