@juki-team/base-ui 1.4.131 → 1.5.0

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 (748) hide show
  1. package/dist/esm/ArrowForwardIcon-B6qJaqxW.js +1 -0
  2. package/dist/esm/BarChart-DGvfKEbJ.js +1 -0
  3. package/dist/esm/CartesianChart-BLpd_e8l.js +47 -0
  4. package/dist/esm/ChangePasswordModal-8aYa6mTN.js +1 -0
  5. package/dist/esm/CodeEditor-BKMFVmPO.js +1 -0
  6. package/dist/esm/CodeViewer-DqO18gks.js +1 -0
  7. package/dist/esm/Collapse-DMLYcciz.js +1 -0
  8. package/dist/esm/DataGrid-C-Gco96b.js +272 -0
  9. package/dist/esm/DataViewer-DIROui4g.js +1 -0
  10. package/dist/esm/DrawerView-Be_ckf6D.js +1 -0
  11. package/dist/esm/ExcalidrawButton-DWRJMohJ.js +1 -0
  12. package/dist/esm/GraphvizViewer-DUIJSiDq.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-O3UDeKd5.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-ByG_R6dr.js +1 -0
  15. package/dist/esm/InputColor-C_JNgwYl.js +14 -0
  16. package/dist/esm/LineChart-BkCo4cnj.js +1 -0
  17. package/dist/esm/LoaderLayer-D9O7WqFD.js +1 -0
  18. package/dist/esm/MdMath-C38RmN3O.js +1 -0
  19. package/dist/esm/MdMathEditor-C7surRiM.js +28 -0
  20. package/dist/esm/{Popover-Dd5soClw.js → Popover-BaP7hJ0J.js} +2 -2
  21. package/dist/esm/ReplyIcon-CPGYEALJ.js +1 -0
  22. package/dist/esm/SettingsIcon-Dk27Vz1G.js +1 -0
  23. package/dist/esm/SlideDeck-CpWGHFVE.js +1 -0
  24. package/dist/esm/TableEyeIcon-D74isCSR.js +1 -0
  25. package/dist/esm/TableOfContents-888D-B0V.js +1 -0
  26. package/dist/esm/Tooltip-CNWDFJKv.js +13 -0
  27. package/dist/esm/UserCodeEditor-C0MyUL5-.js +28 -0
  28. package/dist/esm/VirtualizedRowsFixed-CYPaWB5L.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-BNOZBoQY.js +1 -0
  30. package/dist/esm/WorksheetBodies-CHTN-wn9.js +1 -0
  31. package/dist/esm/WorksheetContents-IN63vuWT.js +1 -0
  32. package/dist/esm/WorksheetEditor-Hs_sWk7j.js +1 -0
  33. package/dist/esm/WorksheetNode-DGuKOPTt.js +1 -0
  34. package/dist/esm/WorksheetViewer-Bt_jqHdh.js +1 -0
  35. package/dist/esm/_baseIteratee-DJNkOVK7.js +1 -0
  36. package/dist/esm/_baseUniq-BJKKUJ6e.js +1 -0
  37. package/dist/esm/arc-BqJSq9Se.js +1 -0
  38. package/dist/esm/architecture-YZFGNWBL-BExtdnEH.js +1 -0
  39. package/dist/esm/architectureDiagram-Q4EWVU46-CUhUPzlC.js +1 -0
  40. package/dist/esm/{band-sgKLmfhd.js → band-D2afako6.js} +1 -1
  41. package/dist/esm/basic-setup-UGhpl5jF.js +1 -0
  42. package/dist/esm/blockDiagram-DXYQGD6D-DwW8YrKx.js +1 -0
  43. package/dist/esm/c4Diagram-AHTNJAMY-DUUpakLg.js +1 -0
  44. package/dist/esm/channel-a8NrvAcc.js +1 -0
  45. package/dist/esm/{chunk-4BX2VUAB-CEdoBw7_.js → chunk-4BX2VUAB-BwFNstmG.js} +1 -1
  46. package/dist/esm/chunk-4TB4RGXK-DV5sTBnv.js +1 -0
  47. package/dist/esm/chunk-55IACEB6-BPJEY6mM.js +1 -0
  48. package/dist/esm/chunk-EDXVE4YY-9L7nz82K.js +1 -0
  49. package/dist/esm/{chunk-FMBD7UC4-a15wpTbq.js → chunk-FMBD7UC4-BZMcHvFk.js} +1 -1
  50. package/dist/esm/chunk-OYMX7WX6-COWCWylB.js +1 -0
  51. package/dist/esm/{chunk-QZHKN3VN-BQxiWiUu.js → chunk-QZHKN3VN-D2pIW1ss.js} +1 -1
  52. package/dist/esm/chunk-YZCP3GAM-D9GadUwL.js +1 -0
  53. package/dist/esm/classDiagram-6PBFFD2Q-Cr8ipQ5w.js +1 -0
  54. package/dist/esm/classDiagram-v2-HSJHXN6E-Cr8ipQ5w.js +1 -0
  55. package/dist/esm/clone-1ULLnhdV.js +1 -0
  56. package/dist/esm/commons-B_OozOv-.js +1 -0
  57. package/dist/esm/constants.js +1 -1
  58. package/dist/esm/cose-bilkent-S5V4N54A-Dg1f2q8q.js +1 -0
  59. package/dist/esm/cytoscape.esm-D5qQrGhU.js +9 -0
  60. package/dist/esm/dagre-KV5264BT-Drwedjf_.js +1 -0
  61. package/dist/esm/{defaultLocale-BAKTrQtR.js → defaultLocale-HOdfsG1x.js} +1 -1
  62. package/dist/esm/diagram-5BDNPKRD-BUvinU3I.js +1 -0
  63. package/dist/esm/diagram-G4DWMVQ6-D60Wox58.js +1 -0
  64. package/dist/esm/diagram-MMDJMWI5-C60GB5LZ.js +1 -0
  65. package/dist/esm/diagram-TYMM5635-CMF-zVic.js +1 -0
  66. package/dist/esm/erDiagram-SMLLAGMA-BmCfxmBR.js +1 -0
  67. package/dist/esm/{floating-ui.dom-D1Wb0QDy.js → floating-ui.dom-BKnkJW47.js} +1 -1
  68. package/dist/esm/flowDiagram-DWJPFMVM-CVOjnh-h.js +1 -0
  69. package/dist/esm/ganttDiagram-T4ZO3ILL-Cay-LcBr.js +1 -0
  70. package/dist/esm/gitGraph-7Q5UKJZL-BIhofRTU.js +1 -0
  71. package/dist/esm/gitGraphDiagram-UUTBAWPF-BN1EkaA3.js +1 -0
  72. package/dist/esm/graph-XFLEVMvo.js +1 -0
  73. package/dist/esm/helpers.js +1 -1
  74. package/dist/esm/index--PWk-3Ol.js +1 -0
  75. package/dist/esm/index-A0sdG_JC.js +1 -0
  76. package/dist/esm/index-B3fb7Ita.js +1 -0
  77. package/dist/esm/index-BR16hIbn.js +1 -0
  78. package/dist/esm/index-Bp7rYslS.js +1 -0
  79. package/dist/esm/index-Bw2EofiE.js +1 -0
  80. package/dist/esm/index-BzjjAmh3.js +1 -0
  81. package/dist/esm/{index-XKEYn2Wr.js → index-C9_5xd3V.js} +1 -1
  82. package/dist/esm/index-CB1_GL3t.js +1 -0
  83. package/dist/esm/index-CODLgwqm.js +1 -0
  84. package/dist/esm/index-CQbc3KUq.js +1 -0
  85. package/dist/esm/index-CRfRlH9U.js +1 -0
  86. package/dist/esm/index-Ccq-5wm6.js +1 -0
  87. package/dist/esm/index-Cj5SSv5l.js +1 -0
  88. package/dist/esm/index-Ck9BxS1f.js +1 -0
  89. package/dist/esm/index-CpRfyO85.js +1 -0
  90. package/dist/esm/index-CtTbnbzM.js +1 -0
  91. package/dist/esm/index-CtWPxOcn.js +1 -0
  92. package/dist/esm/index-D2mDsVm5.js +1 -0
  93. package/dist/esm/index-D4D24Np7.js +1 -0
  94. package/dist/esm/index-D5NvcxPc.js +1 -0
  95. package/dist/esm/index-D8zPYs0m.js +1 -0
  96. package/dist/esm/index-DAJdettS.js +1 -0
  97. package/dist/esm/index-DSGuayJy.js +1 -0
  98. package/dist/esm/index-DVFv6Eth.js +1 -0
  99. package/dist/esm/index-D_AOS7Yx.js +1 -0
  100. package/dist/esm/index-EPJhFLhN.js +1 -0
  101. package/dist/esm/index-GoUUn3QE.js +1 -0
  102. package/dist/esm/index-QhLowdpF.js +1 -0
  103. package/dist/esm/index-Y09lLL_e.js +1 -0
  104. package/dist/esm/index-xaEdDd13.js +1 -0
  105. package/dist/esm/info-OMHHGYJF-DMKJgJ3s.js +1 -0
  106. package/dist/esm/infoDiagram-42DDH7IO-kAZbkK9S.js +1 -0
  107. package/dist/esm/{init-DWDD0M30.js → init-DLRA0X12.js} +1 -1
  108. package/dist/esm/isSymbol-CATEdeai.js +1 -0
  109. package/dist/esm/isUndefined-DgmxjSXK.js +1 -0
  110. package/dist/esm/ishikawaDiagram-UXIWVN3A-MtQmxrIE.js +1 -0
  111. package/dist/esm/journeyDiagram-VCZTEJTY-BuKFXeHL.js +1 -0
  112. package/dist/esm/kanban-definition-6JOO6SKY-pGcXhhi7.js +1 -0
  113. package/dist/esm/layout-D9uGd7GO.js +1 -0
  114. package/dist/esm/{lib-mG56Y3Rb.js → lib-DdKR2uQv.js} +1 -1
  115. package/dist/esm/{linear-L30X52KW.js → linear-BnXjbO66.js} +1 -1
  116. package/dist/esm/{lua-BvgfYBhq.js → lua-8DXOpKDz.js} +1 -1
  117. package/dist/esm/main.js +1 -1
  118. package/dist/esm/map-BvlAjF4J.js +1 -0
  119. package/dist/esm/memoize-CPUrcYQl.js +1 -0
  120. package/dist/esm/mermaid-parser.core-Crc-QLCi.js +1 -0
  121. package/dist/esm/mermaid.core-C2hrg85i.js +1 -0
  122. package/dist/esm/min-Dc9VrJ6M.js +1 -0
  123. package/dist/esm/mindmap-definition-QFDTVHPH-CtfxHH9N.js +1 -0
  124. package/dist/esm/{ordinal-UuA5o140.js → ordinal-zwWoQKz9.js} +1 -1
  125. package/dist/esm/packet-4T2RLAQJ-BD2Ad6jE.js +1 -0
  126. package/dist/esm/pie-ZZUOXDRM-Bf017PqT.js +1 -0
  127. package/dist/esm/pieDiagram-DEJITSTG-ChBbMYd8.js +1 -0
  128. package/dist/esm/purify.es-DBOWJxv3.js +2 -0
  129. package/dist/esm/quadrantDiagram-34T5L4WZ-BNmMB-pp.js +1 -0
  130. package/dist/esm/radar-PYXPWWZC-DvvZel7z.js +1 -0
  131. package/dist/esm/requirementDiagram-MS252O5E-B1RjmS2l.js +1 -0
  132. package/dist/esm/sankeyDiagram-XADWPNL6-DSuRDDHI.js +1 -0
  133. package/dist/esm/sequenceDiagram-FGHM5R23-ByfYuCTD.js +1 -0
  134. package/dist/esm/server.js +1 -1
  135. package/dist/esm/settings-BIQ7IqJl.js +1 -0
  136. package/dist/esm/settings.js +1 -1
  137. package/dist/esm/stateDiagram-FHFEXIEX-CMjgjvak.js +1 -0
  138. package/dist/esm/stateDiagram-v2-QKLJ7IA2-htYMk5r5.js +1 -0
  139. package/dist/esm/{string-CQk_HvWX.js → string-LeDn2fkG.js} +1 -1
  140. package/dist/esm/throttle-BsCMUG1-.js +1 -0
  141. package/dist/esm/time-PiK_t_Re.js +1 -0
  142. package/dist/esm/timeline-definition-GMOUNBTQ-COFLk0ve.js +1 -0
  143. package/dist/esm/toNumber-Bh_HTlSx.js +1 -0
  144. package/dist/esm/treeView-SZITEDCU-Ck6yPSxL.js +1 -0
  145. package/dist/esm/treemap-W4RFUUIX-ErJXCLFJ.js +1 -0
  146. package/dist/esm/types-rkDjePoL.js +1 -0
  147. package/dist/esm/vennDiagram-DHZGUBPP-xxvi147V.js +1 -0
  148. package/dist/esm/viz-CFEjElvl.js +9 -0
  149. package/dist/esm/wardley-RL74JXVD-B3jC7s0b.js +1 -0
  150. package/dist/esm/wardleyDiagram-NUSXRM2D-CIYzWE9T.js +1 -0
  151. package/dist/esm/websocket-CxbYBjHT.js +1 -0
  152. package/dist/esm/worksheet-CQgex79V.js +1 -0
  153. package/dist/esm/xychartDiagram-5P7HB3ND-CHfEshBW.js +1 -0
  154. package/dist/module-types/src/components/atoms/Button/Button.d.ts +3 -3
  155. package/dist/module-types/src/components/atoms/Client/types.d.ts +1 -1
  156. package/dist/module-types/src/components/atoms/CopyToClipboard/types.d.ts +2 -2
  157. package/dist/module-types/src/components/atoms/{server/DateLiteral → DateLiteral}/types.d.ts +2 -2
  158. package/dist/module-types/src/components/atoms/DetectRequestAnimationFrame/DetectRequestAnimationFrame.d.ts +1 -1
  159. package/dist/module-types/src/components/atoms/Div/Div.d.ts +1 -1
  160. package/dist/module-types/src/components/atoms/Div/types.d.ts +1 -1
  161. package/dist/module-types/src/components/atoms/Input/Input.d.ts +6 -8
  162. package/dist/module-types/src/components/atoms/Input/types.d.ts +4 -4
  163. package/dist/module-types/src/components/atoms/Modal/types.d.ts +3 -3
  164. package/dist/module-types/src/components/atoms/Portal/Portal.d.ts +1 -1
  165. package/dist/module-types/src/components/atoms/Portal/types.d.ts +1 -1
  166. package/dist/module-types/src/components/atoms/T/types.d.ts +1 -12
  167. package/dist/module-types/src/components/atoms/TextArea/TextArea.d.ts +4 -4
  168. package/dist/module-types/src/components/atoms/_lazy_/Collapse/types.d.ts +2 -2
  169. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/types.d.ts +1 -1
  170. package/dist/module-types/src/components/atoms/_lazy_/Popover/types.d.ts +2 -2
  171. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/types.d.ts +1 -1
  172. package/dist/module-types/src/components/atoms/index.d.ts +6 -6
  173. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/Spin.d.ts +1 -1
  174. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/types.d.ts +2 -2
  175. package/dist/module-types/src/components/atoms/server/icons/google/_group.d.ts +1 -1
  176. package/dist/module-types/src/components/atoms/server/icons/google/index.d.ts +1 -1
  177. package/dist/module-types/src/components/atoms/server/icons/index.d.ts +1 -1
  178. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/index.d.ts +1 -1
  179. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/types.d.ts +2 -2
  180. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/types.d.ts +2 -2
  181. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/types.d.ts +2 -2
  182. package/dist/module-types/src/components/atoms/server/icons/specials/SortIcon/types.d.ts +2 -2
  183. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/types.d.ts +2 -2
  184. package/dist/module-types/src/components/atoms/server/icons/specials/types.d.ts +6 -5
  185. package/dist/module-types/src/components/atoms/server/icons/types.d.ts +16 -16
  186. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFilledFrame.d.ts +1 -1
  187. package/dist/module-types/src/components/atoms/server/icons/utils/CirclePath.d.ts +1 -1
  188. package/dist/module-types/src/components/atoms/server/icons/utils/functions.d.ts +3 -3
  189. package/dist/module-types/src/components/atoms/server/icons/utils/index.d.ts +2 -2
  190. package/dist/module-types/src/components/atoms/server/icons/utils/renderBasicIcon.d.ts +1 -1
  191. package/dist/module-types/src/components/atoms/server/icons/utils/renderSignIcon.d.ts +2 -2
  192. package/dist/module-types/src/components/atoms/server/index.d.ts +0 -2
  193. package/dist/module-types/src/components/atoms/server/loaders/LoaderLayer.d.ts +2 -2
  194. package/dist/module-types/src/components/atoms/server/loaders/index.d.ts +1 -1
  195. package/dist/module-types/src/components/atoms/server/loaders/line-loader/LineLoader.d.ts +1 -1
  196. package/dist/module-types/src/components/atoms/types.d.ts +11 -10
  197. package/dist/module-types/src/components/helpers/commons.d.ts +4 -4
  198. package/dist/module-types/src/components/helpers/contest.d.ts +1 -1
  199. package/dist/module-types/src/components/helpers/date.d.ts +4 -3
  200. package/dist/module-types/src/components/helpers/fetch.d.ts +7 -7
  201. package/dist/module-types/src/components/helpers/layout.d.ts +2 -2
  202. package/dist/module-types/src/components/helpers/problem.d.ts +4 -15
  203. package/dist/module-types/src/components/helpers/render.d.ts +1 -1
  204. package/dist/module-types/src/components/helpers/router.d.ts +1 -1
  205. package/dist/module-types/src/components/helpers/submission.d.ts +2 -2
  206. package/dist/module-types/src/components/helpers/time.d.ts +1 -1
  207. package/dist/module-types/src/components/helpers/websocket.d.ts +40 -2
  208. package/dist/module-types/src/components/hooks/useClickOutside.d.ts +1 -1
  209. package/dist/module-types/src/components/hooks/useDataViewerRequester.d.ts +3 -3
  210. package/dist/module-types/src/components/hooks/useFetcher.d.ts +4 -4
  211. package/dist/module-types/src/components/hooks/useHandleState.d.ts +1 -1
  212. package/dist/module-types/src/components/hooks/useInjectTheme.d.ts +1 -1
  213. package/dist/module-types/src/components/hooks/useJudge.d.ts +3 -4
  214. package/dist/module-types/src/components/hooks/useJukiNotification.d.ts +1 -1
  215. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +10 -12
  216. package/dist/module-types/src/components/hooks/useLoaderStatusSync.d.ts +1 -1
  217. package/dist/module-types/src/components/hooks/useOverflowDetector.d.ts +1 -1
  218. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  219. package/dist/module-types/src/components/hooks/useSyncedState.d.ts +1 -1
  220. package/dist/module-types/src/components/hooks/useTrackCursor.d.ts +1 -1
  221. package/dist/module-types/src/components/index.d.ts +1 -1
  222. package/dist/module-types/src/components/mockup/MockupJukiProvider.d.ts +1 -1
  223. package/dist/module-types/src/components/mockup/index.d.ts +4 -0
  224. package/dist/module-types/src/components/molecules/Breadcrumbs/types.d.ts +1 -1
  225. package/dist/module-types/src/components/molecules/ButtonLoader/types.d.ts +1 -1
  226. package/dist/module-types/src/components/molecules/CheckboxList/types.d.ts +1 -1
  227. package/dist/module-types/src/components/molecules/{server/CircularProgress → CircularProgress}/CircularProgress.d.ts +1 -1
  228. package/dist/module-types/src/components/molecules/DatePicker/DatePicker.d.ts +1 -4
  229. package/dist/module-types/src/components/molecules/DatePicker/types.d.ts +17 -17
  230. package/dist/module-types/src/components/molecules/Drawer/types.d.ts +1 -1
  231. package/dist/module-types/src/components/molecules/FetcherLayer/FetcherLayer.d.ts +2 -2
  232. package/dist/module-types/src/components/molecules/FetcherLayer/types.d.ts +8 -8
  233. package/dist/module-types/src/components/molecules/FirstLoginWrapper/types.d.ts +1 -1
  234. package/dist/module-types/src/components/molecules/FloatToolbar/types.d.ts +2 -2
  235. package/dist/module-types/src/components/molecules/HomeLink/types.d.ts +2 -0
  236. package/dist/module-types/src/components/molecules/InformationPopover/FrozenInformation.d.ts +1 -1
  237. package/dist/module-types/src/components/molecules/InformationPopover/InformationPopover.d.ts +2 -2
  238. package/dist/module-types/src/components/molecules/InformationPopover/NewlineInfo.d.ts +3 -0
  239. package/dist/module-types/src/components/molecules/InformationPopover/QuietInformation.d.ts +1 -1
  240. package/dist/module-types/src/components/molecules/InformationPopover/UpsolvingInformation.d.ts +1 -1
  241. package/dist/module-types/src/components/molecules/InformationPopover/types.d.ts +1 -1
  242. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +2 -2
  243. package/dist/module-types/src/components/molecules/MultiSelectSearchable/types.d.ts +1 -1
  244. package/dist/module-types/src/components/molecules/Pagination/Pagination.d.ts +1 -1
  245. package/dist/module-types/src/components/molecules/ProgressMultiBar/types.d.ts +5 -1
  246. package/dist/module-types/src/components/molecules/ProgressSlide/ProgressSlide.d.ts +1 -1
  247. package/dist/module-types/src/components/molecules/SplitModal/types.d.ts +1 -1
  248. package/dist/module-types/src/components/molecules/SplitPane/types.d.ts +1 -1
  249. package/dist/module-types/src/components/molecules/Tabs/types.d.ts +1 -1
  250. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.deprecated.d.ts +2 -0
  251. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  252. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  253. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.deprecated.d.ts +2 -0
  254. package/dist/module-types/src/components/molecules/ThemeColorPalette/types.d.ts +2 -0
  255. package/dist/module-types/src/components/molecules/{server/TimerDisplay → Timer}/TimerDisplay.d.ts +1 -1
  256. package/dist/module-types/src/components/molecules/Timer/types.d.ts +13 -2
  257. package/dist/module-types/src/components/molecules/TimerLabeled/types.d.ts +2 -2
  258. package/dist/module-types/src/components/molecules/TwoActionModal/types.d.ts +1 -1
  259. package/dist/module-types/src/components/molecules/TwoContentSection/types.d.ts +1 -1
  260. package/dist/module-types/src/components/molecules/_lazy_/BarChart/types.d.ts +3 -3
  261. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/CodeEditor.d.ts +1 -1
  262. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/ReactCodeMirror.d.ts +2 -8
  263. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/extensions/basic-setup.d.ts +1 -1
  264. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/timeoutLatch.d.ts +1 -1
  265. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/types.d.ts +1 -1
  266. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/useCodeMirror.d.ts +1 -1
  267. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/index.d.ts +1 -1
  268. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/types.d.ts +1 -1
  269. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/types.d.ts +2 -2
  270. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/DataGrid.d.ts +1 -1
  271. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/DrawerView.d.ts +1 -1
  272. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/types.d.ts +1 -1
  273. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/canvasPreview.d.ts +1 -1
  274. package/dist/module-types/src/components/molecules/_lazy_/InputColor/types.d.ts +1 -1
  275. package/dist/module-types/src/components/molecules/_lazy_/LineChart/types.d.ts +4 -4
  276. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/pdfexport.d.ts +1 -1
  277. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/types.d.ts +2 -2
  278. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/SortableItems.d.ts +1 -1
  279. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/types.d.ts +5 -5
  280. package/dist/module-types/src/components/molecules/index.d.ts +22 -17
  281. package/dist/module-types/src/components/molecules/layouts/types.d.ts +1 -1
  282. package/dist/module-types/src/components/molecules/types.d.ts +14 -12
  283. package/dist/module-types/src/components/organisms/AiChatPanel/types.d.ts +2 -2
  284. package/dist/module-types/src/components/organisms/CardNotification/types.d.ts +2 -2
  285. package/dist/module-types/src/components/organisms/CheckUnsavedChanges/types.d.ts +1 -1
  286. package/dist/module-types/src/components/organisms/HorizontalMenu/types.d.ts +1 -1
  287. package/dist/module-types/src/components/organisms/LoginUser/types.d.ts +1 -1
  288. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMathViewer.deprecated.d.ts +1 -1
  289. package/dist/module-types/src/components/organisms/MdMathViewer/types.d.ts +2 -2
  290. package/dist/module-types/src/components/organisms/PageNotFound/types.d.ts +1 -1
  291. package/dist/module-types/src/components/organisms/PresentationToolButtons/PresentationToolButtons.d.ts +1 -1
  292. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/Pencil.deprecated.d.ts +0 -0
  293. package/dist/module-types/src/components/organisms/PresentationToolButtons/types.d.ts +2 -0
  294. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  295. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +2 -2
  296. package/dist/module-types/src/components/organisms/ProblemVerdictTag/types.d.ts +1 -1
  297. package/dist/module-types/src/components/organisms/SubmitView/SubmitView.d.ts +1 -1
  298. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionGroupInfo.d.ts +1 -2
  299. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +1 -1
  300. package/dist/module-types/src/components/organisms/{server/SubmissionMemory → SubmitView/commons}/SubmissionMemory.d.ts +1 -1
  301. package/dist/module-types/src/components/organisms/{server/SubmissionTime → SubmitView/commons}/SubmissionTime.d.ts +1 -1
  302. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +1 -2
  303. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +1 -1
  304. package/dist/module-types/src/components/organisms/SubmitView/types.d.ts +1 -1
  305. package/dist/module-types/src/components/organisms/{server/TextHeadCell → TextHeadCell}/TextHeadCell.d.ts +1 -1
  306. package/dist/module-types/src/components/organisms/UserChip/UserChip.d.ts +2 -5
  307. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +3 -3
  308. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  309. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +2 -2
  310. package/dist/module-types/src/components/organisms/VerticalMenu/types.d.ts +1 -1
  311. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/index.d.ts +1 -1
  312. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/types.d.ts +1 -1
  313. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/types.d.ts +1 -1
  314. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +1 -1
  315. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +1 -1
  316. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +1 -1
  317. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkUserTableTest/MockJkUserTable.d.ts +1 -1
  318. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/Filter.d.ts +1 -1
  319. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDate.d.ts +1 -1
  320. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDateRange.d.ts +1 -1
  321. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterText.d.ts +1 -1
  322. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/index.d.ts +2 -2
  323. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/types.d.ts +2 -2
  324. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/ViewContainerRows.d.ts +1 -1
  325. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DisplayDataViewer.d.ts +1 -1
  326. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/utils.d.ts +6 -5
  327. package/dist/module-types/src/components/organisms/_layz_/DataViewer/types.d.ts +11 -10
  328. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/GraphvizViewer.d.ts +1 -1
  329. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/index.d.ts +1 -1
  330. package/dist/module-types/src/components/organisms/_layz_/MdMath/MdMath.d.ts +1 -1
  331. package/dist/module-types/src/components/organisms/_layz_/MdMath/index.d.ts +1 -1
  332. package/dist/module-types/src/components/organisms/_layz_/MdMath/types.d.ts +1 -1
  333. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.d.ts +1 -4
  334. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.deprecated.d.ts +1 -1
  335. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.tiptap.deprecated.d.ts +0 -0
  336. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MilkdownEditorContent/MilkdownEditorContent.d.ts +4 -5
  337. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/index.d.ts +2 -5
  338. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/TiptapEditorContent.d.ts +0 -0
  339. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/BlockImage.d.ts +0 -0
  340. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/ClearMarksOnEnter.d.ts +0 -0
  341. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CurrentNodeHighlighter.d.ts +0 -0
  342. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CustomCodeBlockLowlight.d.ts +0 -0
  343. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/CustomLink.d.ts +0 -0
  344. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/SmartHeadingBackspace.d.ts +0 -0
  345. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/SmartPasteMarkdown.d.ts +0 -0
  346. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/tip-tap.deprecated/extensions/index.d.ts +0 -0
  347. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/CodeRunnerEditor.d.ts +1 -1
  348. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/types.d.ts +2 -2
  349. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FirstPane.d.ts +3 -4
  350. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/RunCodeButton.d.ts +3 -3
  351. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/MermaidViewer.d.ts +1 -1
  352. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/SettingsModal/index.d.ts +1 -1
  353. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/types.d.ts +8 -9
  354. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/UserCodeEditor.d.ts +4 -5
  355. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/code-editor-file.d.ts +7 -0
  356. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/index.d.ts +2 -4
  357. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/types.d.ts +4 -4
  358. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/index.d.ts +1 -1
  359. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +1 -1
  360. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/index.d.ts +1 -1
  361. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/types.d.ts +2 -2
  362. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/index.d.ts +1 -1
  363. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/AddNewChild.d.ts +3 -3
  364. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ChunkTitle.d.ts +1 -1
  365. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSection.d.ts +2 -2
  366. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditor.d.ts +2 -2
  367. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditorModal.d.ts +10 -0
  368. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionView.d.ts +2 -2
  369. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/EditSheetModal.d.ts +2 -2
  370. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSection.d.ts +2 -2
  371. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditor.d.ts +2 -2
  372. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditorModal.d.ts +10 -0
  373. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionView.d.ts +2 -2
  374. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.d.ts +2 -2
  375. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.old.d.ts +6 -0
  376. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditor.d.ts +2 -2
  377. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditorModal.d.ts +10 -0
  378. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetRecursiveSection.d.ts +9 -0
  379. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetSection.d.ts +7 -0
  380. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/index.d.ts +1 -0
  381. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSection.d.ts +2 -2
  382. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditor.d.ts +1 -1
  383. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditorModal.d.ts +10 -0
  384. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionView.d.ts +2 -2
  385. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSection.d.ts +2 -2
  386. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditor.d.ts +2 -2
  387. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.d.ts +10 -0
  388. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.old.d.ts +0 -0
  389. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.d.ts +1 -1
  390. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.old.d.ts +0 -0
  391. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  392. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContents.d.ts +2 -2
  393. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContentsModal.d.ts +3 -3
  394. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/UpRemoveDownButtons.d.ts +7 -0
  395. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetBody.d.ts +4 -5
  396. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetNode.d.ts +1 -1
  397. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/getActionButtons.d.ts +5 -6
  398. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/logos.d.ts +4 -4
  399. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/types.d.ts +2 -2
  400. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/upRemoveDownActions.d.ts +2 -2
  401. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/types.d.ts +3 -3
  402. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/WorksheetViewer.d.ts +1 -1
  403. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  404. package/dist/module-types/src/components/organisms/index.d.ts +14 -13
  405. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +3 -3
  406. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/index.d.ts +2 -2
  407. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/UploadNewImageTab/index.d.ts +2 -2
  408. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/types.d.ts +5 -5
  409. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +2 -2
  410. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/types.d.ts +1 -1
  411. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/index.d.ts +1 -1
  412. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +4 -4
  413. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +2 -2
  414. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModalTemplate/types.d.ts +2 -2
  415. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  416. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/types.d.ts +2 -0
  417. package/dist/module-types/src/components/organisms/modals/WelcomeModal/types.d.ts +1 -1
  418. package/dist/module-types/src/components/organisms/modals/index.d.ts +1 -1
  419. package/dist/module-types/src/components/organisms/types.d.ts +10 -9
  420. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  421. package/dist/module-types/src/components/providers/JukiI18nInitializer/JukiI18nInitializer.d.ts +1 -0
  422. package/dist/module-types/src/components/providers/JukiI18nInitializer/index.d.ts +1 -0
  423. package/dist/module-types/src/components/providers/JukiLastPathInitializer/types.d.ts +1 -1
  424. package/dist/module-types/src/components/providers/JukiPageInitializer/useMouseInsidePage.d.ts +1 -0
  425. package/dist/module-types/src/components/providers/JukiProviders.d.ts +2 -2
  426. package/dist/module-types/src/components/providers/JukiRouterInitializer/JukiRouterInitializer.d.ts +1 -1
  427. package/dist/module-types/src/components/providers/JukiRouterInitializer/types.d.ts +2 -2
  428. package/dist/module-types/src/components/providers/{server/Image → JukiUIProvider}/Image.d.ts +1 -1
  429. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  430. package/dist/module-types/src/components/providers/JukiUIProvider/Link.d.ts +1 -1
  431. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +24 -6
  432. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +9 -8
  433. package/dist/module-types/src/components/providers/NotificationProvider/NotificationProvider.d.ts +1 -1
  434. package/dist/module-types/src/components/providers/index.d.ts +1 -1
  435. package/dist/module-types/src/components/providers/types.d.ts +3 -2
  436. package/dist/module-types/src/components/server/index.d.ts +0 -4
  437. package/dist/module-types/src/components/server/types.d.ts +0 -4
  438. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +2 -2
  439. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  440. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +4 -5
  441. package/dist/module-types/src/components/templates/EntityCreateLayout/types.d.ts +1 -1
  442. package/dist/module-types/src/components/templates/EntityUpdateLayout/types.d.ts +1 -1
  443. package/dist/module-types/src/components/templates/ErrorBoundary/types.d.ts +1 -1
  444. package/dist/module-types/src/components/templates/HelpSection/types.d.ts +2 -0
  445. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/DrawerViewMenuMobile.d.ts +2 -2
  446. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/index.d.ts +1 -0
  447. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  448. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +5 -5
  449. package/dist/module-types/src/components/templates/ProblemView/ProblemInfo.d.ts +1 -1
  450. package/dist/module-types/src/components/templates/ProblemView/ProblemView.d.ts +1 -1
  451. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  452. package/dist/module-types/src/components/templates/ProblemView/commons/SampleTest.d.ts +1 -1
  453. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +4 -4
  454. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  455. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +2 -2
  456. package/dist/module-types/src/components/templates/UserActiveSessions/UserMyActiveSessions.d.ts +2 -1
  457. package/dist/module-types/src/components/templates/UserActiveSessions/types.d.ts +2 -0
  458. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +1 -1
  459. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +1 -1
  460. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +2 -1
  461. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +5 -3
  462. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +3 -0
  463. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +3 -0
  464. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +1 -1
  465. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +1 -1
  466. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +1 -1
  467. package/dist/module-types/src/components/templates/columns/contest-columns/index.d.ts +2 -2
  468. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +1 -1
  469. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +1 -1
  470. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +1 -1
  471. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +1 -1
  472. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +1 -1
  473. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +1 -1
  474. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +1 -1
  475. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +1 -1
  476. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +1 -1
  477. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +1 -1
  478. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +1 -2
  479. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +1 -1
  480. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  481. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +1 -1
  482. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +1 -1
  483. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +1 -1
  484. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +1 -1
  485. package/dist/module-types/src/components/templates/index.d.ts +17 -14
  486. package/dist/module-types/src/components/templates/members/DocumentMembersButton.d.ts +1 -1
  487. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +1 -1
  488. package/dist/module-types/src/components/templates/members/types.d.ts +5 -6
  489. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  490. package/dist/module-types/src/components/templates/problem/ProblemModeField.d.ts +1 -1
  491. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  492. package/dist/module-types/src/components/templates/problem/ProblemTypeField.d.ts +1 -1
  493. package/dist/module-types/src/components/templates/{server/problem → problem}/TagsField.d.ts +1 -1
  494. package/dist/module-types/src/components/templates/problem/types.d.ts +8 -2
  495. package/dist/module-types/src/components/templates/{server/submission → submission}/SubmissionDateField.d.ts +1 -1
  496. package/dist/module-types/src/components/templates/submission/SubmissionLanguageField.d.ts +1 -1
  497. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  498. package/dist/module-types/src/components/templates/submission/types.d.ts +2 -2
  499. package/dist/module-types/src/components/templates/types.d.ts +15 -12
  500. package/dist/module-types/src/components/types/index.d.ts +10 -12
  501. package/dist/module-types/src/constants/index.d.ts +3 -3
  502. package/dist/module-types/src/constants/settings.d.ts +1 -1
  503. package/dist/module-types/src/constants/worksheet.d.ts +1 -1
  504. package/dist/module-types/src/helpers/index.d.ts +1 -1
  505. package/dist/module-types/src/hooks/index.d.ts +13 -12
  506. package/dist/module-types/src/settings/ApiManager.d.ts +245 -370
  507. package/dist/module-types/src/settings/AppRoutes.d.ts +4 -4
  508. package/dist/module-types/src/stores/ably/useAblyStore.d.ts +2 -2
  509. package/dist/module-types/src/stores/i18n/i18n.d.ts +2 -0
  510. package/dist/module-types/src/stores/i18n/i18nConfig.d.ts +7 -0
  511. package/dist/module-types/src/stores/i18n/useI18nStore.d.ts +8 -0
  512. package/dist/module-types/src/stores/lastPath/useLastPath.d.ts +1 -1
  513. package/dist/module-types/src/stores/router/useRouterStore.d.ts +2 -2
  514. package/dist/module-types/src/stores/sound/useSoundStore.d.ts +1 -1
  515. package/dist/module-types/src/stores/ui/useUIStore.d.ts +2 -2
  516. package/dist/module-types/src/stores/user/useUserStore.d.ts +2 -2
  517. package/dist/module-types/src/stores/websocket/types.d.ts +2 -2
  518. package/dist/module-types/src/stores/websocket/useWebsocketStore.d.ts +1 -1
  519. package/dist/module-types/src/types/index.d.ts +1 -1
  520. package/package.json +70 -76
  521. package/src/styles/components/atoms/_button.scss +7 -7
  522. package/src/styles/components/atoms/_data-viewer.scss +3 -3
  523. package/src/styles/components/atoms/_modal.scss +0 -9
  524. package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +0 -14
  525. package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +0 -2
  526. package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +0 -14
  527. package/src/vendor/@milkdown/crepe/src/theme/common/style.css +0 -2
  528. package/src/vendor/fumadocs-ui/css/generated/docs.css +281 -3
  529. package/src/vendor/fumadocs-ui/css/generated/flux.css +264 -2
  530. package/src/vendor/fumadocs-ui/css/generated/home.css +161 -1
  531. package/src/vendor/fumadocs-ui/css/generated/notebook.css +288 -6
  532. package/src/vendor/fumadocs-ui/css/generated/shared.css +103 -80
  533. package/src/vendor/fumadocs-ui/css/lib/base.css +1 -78
  534. package/src/vendor/fumadocs-ui/css/lib/shiki.css +2 -2
  535. package/src/vendor/fumadocs-ui/css/preset.css +80 -0
  536. package/src/vendor/fumadocs-ui/dist/style.css +47 -63
  537. package/src/vendor/handsontable/styles/handsontable.css +82 -335
  538. package/src/vendor/handsontable/styles/handsontable.min.css +3 -4
  539. package/src/vendor/handsontable/styles/ht-icons-horizon.css +3 -11
  540. package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +3 -4
  541. package/src/vendor/handsontable/styles/ht-icons-main.css +3 -11
  542. package/src/vendor/handsontable/styles/ht-icons-main.min.css +3 -4
  543. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +2 -21
  544. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +3 -4
  545. package/src/vendor/handsontable/styles/ht-theme-classic.css +5 -32
  546. package/src/vendor/handsontable/styles/ht-theme-classic.min.css +3 -4
  547. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +1 -20
  548. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +3 -4
  549. package/src/vendor/handsontable/styles/ht-theme-horizon.css +4 -31
  550. package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +3 -4
  551. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +2 -21
  552. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +3 -4
  553. package/src/vendor/handsontable/styles/ht-theme-main.css +5 -32
  554. package/src/vendor/handsontable/styles/ht-theme-main.min.css +3 -4
  555. package/src/vendor/katex/dist/katex-swap.css +2 -5
  556. package/src/vendor/katex/dist/katex-swap.min.css +1 -1
  557. package/src/vendor/katex/dist/katex.css +2 -5
  558. package/src/vendor/katex/dist/katex.min.css +1 -1
  559. package/src/vendor/katex/src/styles/katex.scss +1 -3
  560. package/dist/esm/ArrowForwardIcon-IN9agpuQ.js +0 -1
  561. package/dist/esm/BarChart-BrncFZqv.js +0 -1
  562. package/dist/esm/CartesianChart-DiEsv39t.js +0 -47
  563. package/dist/esm/ChangePasswordModal-CvWtkjrN.js +0 -1
  564. package/dist/esm/CodeEditor-DACpjrsU.js +0 -1
  565. package/dist/esm/DataGrid-JAYAjywD.js +0 -277
  566. package/dist/esm/DataViewer-Dlia2oSB.js +0 -1
  567. package/dist/esm/DrawerView-BblFUJEi.js +0 -1
  568. package/dist/esm/ExcalidrawButton-Bd8SBhas.js +0 -1
  569. package/dist/esm/GraphvizViewer-C1mAE7rX.js +0 -1
  570. package/dist/esm/ImageLoaderCropper-C3Cx6O53.js +0 -1
  571. package/dist/esm/InputCellPhoneNumber-CKYa10bN.js +0 -1
  572. package/dist/esm/InputColor-Z0jOOs3H.js +0 -14
  573. package/dist/esm/LineChart-EhYBGR13.js +0 -1
  574. package/dist/esm/MdMath-nccHUbMO.js +0 -1
  575. package/dist/esm/MdMathEditor-CqVpGAmF.js +0 -28
  576. package/dist/esm/ReplyIcon-DrZrr78M.js +0 -1
  577. package/dist/esm/SettingsIcon-DM1F7UIb.js +0 -1
  578. package/dist/esm/SlideDeck-ls4Av4B6.js +0 -1
  579. package/dist/esm/TableOfContents-s2uXSPqs.js +0 -1
  580. package/dist/esm/TextHeadCell-CtlRYJ1U.js +0 -1
  581. package/dist/esm/Tooltip-DkuB7dhH.js +0 -7
  582. package/dist/esm/UserCodeEditor-ouwZZtsS.js +0 -30
  583. package/dist/esm/ViewModuleIcon-CBJGd2NB.js +0 -1
  584. package/dist/esm/VirtualizedRowsFixed-B2F4OHWB.js +0 -1
  585. package/dist/esm/WorksheetAsSlides-DERDrU2H.js +0 -1
  586. package/dist/esm/WorksheetBodies-CV7eAr61.js +0 -1
  587. package/dist/esm/WorksheetContents-Lm-_CdZ2.js +0 -1
  588. package/dist/esm/WorksheetEditor-bWlxdb29.js +0 -1
  589. package/dist/esm/WorksheetNode-DEOXUEQe.js +0 -1
  590. package/dist/esm/WorksheetViewer-lBAniTnA.js +0 -1
  591. package/dist/esm/arc-BalHlvik.js +0 -1
  592. package/dist/esm/architectureDiagram-3BPJPVTR-CTb5ayIp.js +0 -1
  593. package/dist/esm/blockDiagram-GPEHLZMM-D4uFUU-G.js +0 -1
  594. package/dist/esm/c4Diagram-AAUBKEIU-CAZLWuPq.js +0 -1
  595. package/dist/esm/channel-D5EOmDMD.js +0 -1
  596. package/dist/esm/chunk-2J33WTMH-HhOFj0bf.js +0 -1
  597. package/dist/esm/chunk-55IACEB6-aJ-Std67.js +0 -1
  598. package/dist/esm/chunk-727SXJPM-CR7TtBVZ.js +0 -1
  599. package/dist/esm/chunk-AQP2D5EJ-K2Leo-fb.js +0 -1
  600. package/dist/esm/chunk-ND2GUHAM-3yBxVPAC.js +0 -1
  601. package/dist/esm/classDiagram-4FO5ZUOK-Bp3azMO2.js +0 -1
  602. package/dist/esm/classDiagram-v2-Q7XG4LA2-Bp3azMO2.js +0 -1
  603. package/dist/esm/contest-D0dFHHYS.js +0 -1
  604. package/dist/esm/cose-bilkent-S5V4N54A-CF9x8P1X.js +0 -1
  605. package/dist/esm/cytoscape.esm-ym4YJMee.js +0 -9
  606. package/dist/esm/dagre-BM42HDAG-oa0J1DaE.js +0 -1
  607. package/dist/esm/date-D28INXpp.js +0 -1
  608. package/dist/esm/diagram-2AECGRRQ-BuuG-RoB.js +0 -1
  609. package/dist/esm/diagram-5GNKFQAL-CZujtOen.js +0 -1
  610. package/dist/esm/diagram-KO2AKTUF-0KbELqZI.js +0 -1
  611. package/dist/esm/diagram-LMA3HP47-DVhy52x2.js +0 -1
  612. package/dist/esm/diagram-OG6HWLK6-BBVpceTq.js +0 -1
  613. package/dist/esm/erDiagram-TEJ5UH35-BHbfbqIk.js +0 -1
  614. package/dist/esm/flowDiagram-I6XJVG4X-BaMVJs2u.js +0 -1
  615. package/dist/esm/ganttDiagram-6RSMTGT7-DOUe8voF.js +0 -1
  616. package/dist/esm/gitGraphDiagram-PVQCEYII-Dyj0XEJk.js +0 -1
  617. package/dist/esm/graph-ByvXLzfz.js +0 -1
  618. package/dist/esm/index-3RT03X12.js +0 -1
  619. package/dist/esm/index-4xl-oI83.js +0 -1
  620. package/dist/esm/index-8NOL5jJy.js +0 -1
  621. package/dist/esm/index-B8r5j97Z.js +0 -1
  622. package/dist/esm/index-BCzXl-MX.js +0 -1
  623. package/dist/esm/index-BozcvZKO.js +0 -1
  624. package/dist/esm/index-C7UTkWm2.js +0 -1
  625. package/dist/esm/index-CCC14puG.js +0 -1
  626. package/dist/esm/index-CHdwVvPu.js +0 -1
  627. package/dist/esm/index-CQTsT8Zj.js +0 -1
  628. package/dist/esm/index-CU5b90xS.js +0 -1
  629. package/dist/esm/index-CWWVtFL-.js +0 -1
  630. package/dist/esm/index-CYal7RVq.js +0 -1
  631. package/dist/esm/index-CZHb8PSE.js +0 -1
  632. package/dist/esm/index-C_iDYl6D.js +0 -1
  633. package/dist/esm/index-Ci0TIrsP.js +0 -1
  634. package/dist/esm/index-CncjGRa9.js +0 -1
  635. package/dist/esm/index-CoD0BG11.js +0 -1
  636. package/dist/esm/index-CroDROK5.js +0 -1
  637. package/dist/esm/index-D2MvgUx2.js +0 -1
  638. package/dist/esm/index-DGfNHv1x.js +0 -2
  639. package/dist/esm/index-DI4w9v5q.js +0 -1
  640. package/dist/esm/index-DO5jS6VE.js +0 -1
  641. package/dist/esm/index-DPqNWk5z.js +0 -1
  642. package/dist/esm/index-DQ_RDg2x.js +0 -1
  643. package/dist/esm/index-DklIqAi8.js +0 -1
  644. package/dist/esm/index-Dwi3ag-n.js +0 -1
  645. package/dist/esm/index-P3Cb0cjc.js +0 -1
  646. package/dist/esm/index-mPuca8dy.js +0 -1
  647. package/dist/esm/index-uScqGt-h.js +0 -1
  648. package/dist/esm/index-wgkxcuUd.js +0 -1
  649. package/dist/esm/infoDiagram-5YYISTIA-Boua4Tr8.js +0 -1
  650. package/dist/esm/isSymbol-BuOnvf7n.js +0 -1
  651. package/dist/esm/isUndefined-DFy0_ZQT.js +0 -1
  652. package/dist/esm/ishikawaDiagram-YF4QCWOH-BS_A_XBz.js +0 -1
  653. package/dist/esm/journeyDiagram-JHISSGLW-YyjHX0yV.js +0 -1
  654. package/dist/esm/kanban-definition-UN3LZRKU-CcKCIal8.js +0 -1
  655. package/dist/esm/layout-C8ygm6VF.js +0 -1
  656. package/dist/esm/light-CK5396YO.js +0 -1
  657. package/dist/esm/map-CkaOHTqG.js +0 -1
  658. package/dist/esm/mermaid.core-QpTfboNw.js +0 -1
  659. package/dist/esm/mindmap-definition-RKZ34NQL-DjxxY08j.js +0 -1
  660. package/dist/esm/pieDiagram-4H26LBE5-Bu-BmZ8n.js +0 -1
  661. package/dist/esm/purify.es-J-_UhghA.js +0 -2
  662. package/dist/esm/quadrantDiagram-W4KKPZXB-fK1bxThQ.js +0 -1
  663. package/dist/esm/requirementDiagram-4Y6WPE33-D-96v_3q.js +0 -1
  664. package/dist/esm/sankeyDiagram-5OEKKPKP-ZTvdQYzE.js +0 -1
  665. package/dist/esm/sequenceDiagram-3UESZ5HK-BFEtohrX.js +0 -1
  666. package/dist/esm/settings-DgLs6IK_.js +0 -1
  667. package/dist/esm/stateDiagram-AJRCARHV-DWxVmIWt.js +0 -1
  668. package/dist/esm/stateDiagram-v2-BHNVJYJU-DnOatqpE.js +0 -1
  669. package/dist/esm/throttle-_MCmQvyw.js +0 -1
  670. package/dist/esm/time-BHcZPeyw.js +0 -1
  671. package/dist/esm/time-BJsLnFy1.js +0 -1
  672. package/dist/esm/timeline-definition-PNZ67QCA-FvMo_PxT.js +0 -1
  673. package/dist/esm/toNumber-DP6YK8S3.js +0 -1
  674. package/dist/esm/types-DG_vw3We.js +0 -1
  675. package/dist/esm/vennDiagram-CIIHVFJN-DzI_A9Cl.js +0 -1
  676. package/dist/esm/viz-BjPw9uNj.js +0 -9
  677. package/dist/esm/wardley-L42UT6IY-Bn2xZ99U.js +0 -15
  678. package/dist/esm/wardleyDiagram-YWT4CUSO-ClMyoKY9.js +0 -1
  679. package/dist/esm/worksheet-BBAH_yZC.js +0 -1
  680. package/dist/esm/worksheet-DTRmzBjG.js +0 -1
  681. package/dist/esm/worksheet-GN3yGKYw.js +0 -1
  682. package/dist/esm/xychartDiagram-2RQKCTM6-Cy92WO7L.js +0 -1
  683. 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 +0 -1
  684. 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 +0 -1
  685. 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 +0 -1
  686. 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 +0 -1
  687. package/dist/module-types/src/components/atoms/T/T.server.d.ts +0 -2
  688. package/dist/module-types/src/components/atoms/T/cache.d.ts +0 -4
  689. package/dist/module-types/src/components/atoms/T/client.d.ts +0 -7
  690. package/dist/module-types/src/components/atoms/T/server.d.ts +0 -12
  691. package/dist/module-types/src/components/atoms/T/shared.d.ts +0 -2
  692. package/dist/module-types/src/components/atoms/server/T/index.d.ts +0 -3
  693. package/dist/module-types/src/components/molecules/server/CircularProgress/types.d.ts +0 -4
  694. package/dist/module-types/src/components/molecules/server/NewlineInfo/NewlineInfo.d.ts +0 -2
  695. package/dist/module-types/src/components/molecules/server/NewlineInfo/types.d.ts +0 -3
  696. package/dist/module-types/src/components/molecules/server/TimerDisplay/types.d.ts +0 -13
  697. package/dist/module-types/src/components/molecules/server/index.d.ts +0 -5
  698. package/dist/module-types/src/components/molecules/server/types.d.ts +0 -3
  699. package/dist/module-types/src/components/organisms/server/index.d.ts +0 -3
  700. package/dist/module-types/src/components/organisms/server/types.d.ts +0 -1
  701. package/dist/module-types/src/components/providers/JukiI18nBridge/JukiI18nBridge.d.ts +0 -23
  702. package/dist/module-types/src/components/providers/JukiI18nBridge/index.d.ts +0 -1
  703. package/dist/module-types/src/components/providers/server/Image/types.d.ts +0 -20
  704. package/dist/module-types/src/components/providers/server/index.d.ts +0 -1
  705. package/dist/module-types/src/components/providers/server/types.d.ts +0 -1
  706. package/dist/module-types/src/components/templates/server/ProblemStatus/types.d.ts +0 -6
  707. package/dist/module-types/src/components/templates/server/columns/contest-columns/getContestContestantsHeader.d.ts +0 -3
  708. package/dist/module-types/src/components/templates/server/columns/contest-columns/getContestDateHeader.d.ts +0 -3
  709. package/dist/module-types/src/components/templates/server/index.d.ts +0 -5
  710. package/dist/module-types/src/components/templates/server/types.d.ts +0 -1
  711. package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +0 -446
  712. package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +0 -177
  713. package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +0 -430
  714. package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +0 -196
  715. package/src/vendor/fumadocs-ui/css/preset-legacy.css +0 -38
  716. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
  717. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
  718. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
  719. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
  720. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
  721. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
  722. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
  723. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
  724. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
  725. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
  726. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
  727. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
  728. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
  729. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
  730. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
  731. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
  732. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
  733. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
  734. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
  735. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
  736. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
  737. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
  738. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
  739. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
  740. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
  741. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
  742. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
  743. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
  744. /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 → @milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
  745. /package/dist/module-types/src/components/atoms/{server/DateLiteral → DateLiteral}/DateLiteral.d.ts +0 -0
  746. /package/dist/module-types/src/components/molecules/{server/ThemeColorPalette → ThemeColorPalette}/ThemeColorPalette.d.ts +0 -0
  747. /package/dist/module-types/src/components/molecules/{server/layouts → layouts}/ApplicationLoaderLayout.d.ts +0 -0
  748. /package/dist/module-types/src/components/templates/{server/ProblemStatus → problem}/ProblemStatus.d.ts +0 -0
@@ -1 +0,0 @@
1
- import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useRef as a,useState as r,useCallback as s,Children as n,useEffect as l,memo as o,useMemo as d}from"react";import{S as c,e as h,i as p,E as m}from"./index-Dwi3ag-n.js";import{d9 as u,cs as g,cl as f,co as y,cm as w,ck as b,cj as v,cn as k,cp as x,ct as N,cd as j,cq as D,cf as R,cb as S,c9 as C,ch as F,cu as O,ce as I,cr as T,cg as z,cc as M,ca as H,ci as L,cv as W,a2 as V,b as P,b4 as A,g as K,Z as $,aw as E,r as J,dd as B,d8 as Q,dg as U,w as Y,d5 as q,cW as _,da as G,db as X,au as Z,aQ as ee,an as te,dk as ie,bM as ae,cA as re,bJ as se,cx as ne,bK as le,cy as oe,bL as de,cz as ce,bN as he,cB as pe}from"./index-DGfNHv1x.js";import{d as me,F as ue,w as ge,s as fe,m as ye,h as we}from"./index-P3Cb0cjc.js";import{s as be}from"./time-BHcZPeyw.js";import{K as ve,O as ke,S as xe,J as Ne,g as je,k as De,F as Re}from"./contest-D0dFHHYS.js";import{d as Se,an as Ce,ad as Fe,t as Oe,aC as Ie,R as Te}from"./ViewModuleIcon-CBJGd2NB.js";import{u as ze}from"./index-CHdwVvPu.js";import{motion as Me}from"motion/react";import{A as He,S as Le}from"./index-CroDROK5.js";import{a as We,F as Ve,T as Pe,C as Ae,M as Ke}from"./TextHeadCell-CtlRYJ1U.js";import{TriggerAction as $e}from"./enums.js";import"./settings-DgLs6IK_.js";import"./worksheet-BBAH_yZC.js";import"./date-D28INXpp.js";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";const Ee=i=>{const{cardWidth:a,index:r,data:s,headers:n,fake:l,cardStyle:o,cardClassName:d,onCardClick:c,onCardHover:h}=i,{height:p,ref:m}=u(),{height:g,ref:f}=u(),{height:y,ref:w}=u(),b=Math.max(p||0,g||0,y||0),{height:v,ref:k}=u(),{height:x,ref:N}=u(),{height:j,ref:D}=u(),R=Math.max(v||0,x||0,j||0),{height:S,ref:C}=u(),{height:F,ref:O}=u(),{height:I,ref:T}=u(),z=Math.max(S||0,F||0,I||0),{height:M,ref:H}=u(),{height:L,ref:W}=u(),{height:V,ref:P}=u(),A=Math.max(M||0,L||0,V||0),{height:K,ref:$}=u(),{height:E,ref:J}=u(),{height:B,ref:Q}=u(),U=Math.max(K||0,E||0,B||0);if(l)return e("div",{className:"jk-list-card",style:{width:a,opacity:0}});const Y={};for(const e of n){const t=e.cardPosition||"center";Y[t]||(Y[t]=[]),Y[t].push(e)}const q=({index:t,Field:i})=>e("div",{children:s[r]&&e(i,{record:s[r],columnIndex:t,recordIndex:r,isCard:!0})},t);return t("div",{className:me("jk-list-card jk-br",d),style:{...o,width:a},onClick:c,onMouseEnter:h,children:[(!!Y.topLeft?.length||!!Y.top?.length||!!Y.topRight?.length)&&t("div",{className:me("top-container",{"no-middle":!Y.topi?.length}),style:{height:b},children:[e("div",{className:"top-left jk-col stretch",ref:m,children:Y.topLeft?.map(q)}),e("div",{className:"top jk-col stretch",ref:f,children:Y.top?.map(q)}),e("div",{className:"top-right jk-col stretch",ref:w,children:Y.topRight?.map(q)})]}),(!!Y.upperLeft?.length||!!Y.upper?.length||!!Y.upperRight?.length)&&t("div",{className:me("upper-container",{"no-middle":!Y.upper?.length}),style:{height:R},children:[e("div",{className:"upper-left jk-col stretch",ref:k,children:Y.upperLeft?.map(q)}),e("div",{className:"upper jk-col stretch",ref:N,children:Y.upper?.map(q)}),e("div",{className:"upper-right jk-col stretch",ref:D,children:Y.upperRight?.map(q)})]}),(!!Y.centerLeft?.length||!!Y.center?.length||!!Y.centerRight?.length)&&t("div",{className:me("center-container",{"no-middle":!Y.center?.length}),style:{height:z},children:[e("div",{className:"center-left jk-col stretch",ref:C,children:Y.centerLeft?.map(q)}),e("div",{className:"center jk-col stretch",ref:O,children:Y.center?.map(q)}),e("div",{className:"center-right jk-col stretch",ref:T,children:Y.centerRight?.map(q)})]}),(!!Y.lowerLeft?.length||!!Y.lower?.length||!!Y.lowerRight?.length)&&t("div",{className:me("lower-container",{"no-middle":!Y.lower?.length}),style:{height:A},children:[e("div",{className:"lower-left jk-col stretch",ref:H,children:Y.lowerLeft?.map(q)}),e("div",{className:"lower jk-col stretch",ref:W,children:Y.lower?.map(q)}),e("div",{className:"lower-right jk-col stretch",ref:P,children:Y.lowerRight?.map(q)})]}),(!!Y.bottomLeft?.length||!!Y.bottom?.length||!!Y.bottomRight?.length)&&t("div",{className:me("bottom-container",{"no-middle":!Y.bottom?.length}),style:{height:U},children:[e("div",{className:"bottom-left jk-col stretch",ref:$,children:Y.bottomLeft?.map(q)}),e("div",{className:"bottom jk-col stretch",ref:J,children:Y.bottom?.map(q)}),e("div",{className:"bottom-right jk-col stretch",ref:Q,children:Y.bottomRight?.map(q)})]})]})},Je=t=>{const{headers:i,data:l,cardHeight:o,cardWidth:d,rowWidth:c,getRecordStyle:h,onRecordClick:p,onRecordHover:m,getRecordClassName:u,expandedCards:g}=t,f=a(null),[y,w]=r(!1),[b,v]=r(!1),k=Math.max(Math.floor((c-16)/(d+16)),1),x=ze({count:Math.ceil(l.length/k),getScrollElement:s(()=>f.current,[]),estimateSize:s(()=>o+40,[o]),overscan:2});let N=Math.min(d,c-16-16);return g&&(N=(c-16*(k+1))/k),e("div",{ref:f,className:me("jk-list-card-rows-container",{"scroll-on-top":!y,"scroll-on-bottom":!b}),onScroll:({currentTarget:e})=>{const t=e.scrollTop||0;v(!!(e.scrollHeight-e.clientHeight-t)),w(!!t)},children:e("div",{className:"jk-list-card-rows-box",style:{height:`${x.getTotalSize()}px`,zIndex:0},children:x.getVirtualItems().map(t=>e("div",{style:{height:`${t.size}px`,transform:`translateY(${t.start}px)`},className:"jk-row jk-list-card-row",children:n.toArray(new Array(k).fill("").map((a,r)=>{const s=t.index*k+r;return e(Ee,{fake:t.index*k+r>=l.length,cardWidth:N,headers:i,data:l,index:s,cardClassName:u?.({data:l,index:s,isCard:!0,isStickySection:!1})||"",cardStyle:h?.({data:l,index:s,isCard:!0,isStickySection:!1})||{},onCardClick:()=>p?.({data:l,index:s,isCard:!0}),onCardHover:()=>m?.({data:l,index:s,isCard:!0})},s)}))},t.index))})})},Be="text",Qe="text-auto",Ue="select",Ye="select-auto",qe="date",_e="date-auto",Ge="date-range",Xe="date-range-auto",Ze=e=>!("object"!=typeof e||!e?.compareFn),et=e=>!0===e,tt=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===Be,it=e=>!(!e||!Object.hasOwn(e,"callbackFn"))&&e?.type===Be,at=e=>e?.type===Qe,rt=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===Ue,st=e=>!(!e||!Object.hasOwn(e,"callbackFn"))&&e?.type===Ue,nt=e=>e?.type===Ye,lt=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===qe,ot=e=>!(!e||!Object.hasOwn(e,"callbackFn"))&&e?.type===qe,dt=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===_e,ct=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===Ge,ht=e=>!(!e||!Object.hasOwn(e,"callbackFn"))&&e?.type===Ge,pt=e=>!(e&&Object.hasOwn(e,"callbackFn"))&&e?.type===Xe,mt=e=>e?.type===Be,ut=e=>e?.type===Ue,gt=e=>e?.type===qe,ft=e=>e?.type===Ge,yt=({header:t,columnIndex:i,className:a})=>"string"==typeof t.head?e(We,{text:t.head,className:a}):t.head?ve(t.head,{header:t,data:[]}):e(We,{text:i,className:a}),wt=e=>t=>({year:!!e&&x(t,e),month:!!e&&k(t,e),day:!!e&&v(t,e),hours:!!e&&b(t,e),minutes:!!e&&w(t,e),seconds:!!e&&y(t,e),milliseconds:!!e&&f(t,e)}),bt=(e,t)=>i=>({year:!!e&&!!t&&(x(i,e)||x(i,t)||N(i,{start:e,end:t})),month:!!e&&!!t&&(k(i,e)||k(i,t)||N(i,{start:e,end:t})),day:!!e&&!!t&&(v(i,e)||v(i,t)||N(i,{start:e,end:t})),hours:!!e&&!!t&&(b(i,e)||b(i,t)||N(i,{start:e,end:t})),minutes:!!e&&!!t&&(w(i,e)||w(i,t)||N(i,{start:e,end:t})),seconds:!!e&&!!t&&(y(i,e)||y(i,t)||N(i,{start:e,end:t})),milliseconds:!!e&&!!t&&(f(i,e)||f(i,t)||N(i,{start:e,end:t}))}),vt=e=>t=>({year:!!e&&W(t,e),month:!!e&&L(t,e),day:!!e&&H(t,e),hours:!!e&&M(t,e),minutes:!!e&&z(t,e),seconds:!!e&&T(t,e),milliseconds:!!e&&I(t,e)}),kt=(e,t)=>i=>{const a=e(i),r=t(i);return{year:a.year||r.year,month:a.month||r.month,day:a.day||r.day,hours:a.hours||r.hours,minutes:a.minutes||r.minutes,seconds:a.seconds||r.seconds,milliseconds:a.milliseconds||r.milliseconds}},xt=e=>t=>({year:!!e&&O(t,e),month:!!e&&F(t,e),day:!!e&&C(t,e),hours:!!e&&S(t,e),minutes:!!e&&R(t,e),seconds:!!e&&D(t,e),milliseconds:!!e&&j(t,e)}),Nt=e=>{let t=!1;const i={};for(const{index:a,filter:r}of e)if(mt(r))r.getFilter?.()&&(i[a]=r.getFilter(),t=!0);else if(ut(r))r.getFilter?.()?.length&&(i[a]=r.getFilter(),t=!0);else if(gt(r)){const e=r.getFilter?.();e&&g(e)&&(i[a]=e,t=!0)}else if(ft(r)){const e=r.getFilter?.();e?.[0]&&g(e[0])&&e?.[1]&&g(e[1])&&(i[a]=e,t=!0)}return{filtered:t,values:i}},jt=e=>e?`${e}.page`:"page",Dt=e=>e?`${e}.pageSize`:"pageSize",Rt=e=>e?`${e}.sort`:"sort",St=e=>e?`${e}.filter`:"filter",Ct=e=>e?`${e}.viewMode`:"viewMode",Ft=e=>e?`${e}.showFilterDrawer`:"showFilterDrawer",Ot=e=>e?`${e}.visibles`:"visibles",It=e=>{let t=0;const i=[...e];return e.forEach((e,a)=>{e.visible?.getVisible()&&(i[a]={...e,accumulatedWidth:t},t+=e.width)}),i},Tt=new Map;function zt(e,t){const i=`${e}-${t}`;if(Tt.has(i))return Tt.get(i);if("undefined"!=typeof document){zt.canvas||(zt.canvas=document.createElement("canvas"));const a=zt.canvas.getContext("2d");if(a){a.font=t;const r=a.measureText(e).width;return Tt.set(i,r),r}}return 0}const Mt="year-month-day-hours-minutes-seconds",Ht=e=>!!Object.values(e).filter(e=>!!e&&(!Array.isArray(e)||e.length)).length,Lt=(e,t,i,a)=>()=>{const r={...t.current};r[e]="",Ht(r)?i(JSON.stringify(r)):a()},Wt=(e,t,i,a,r)=>{const s={...i.current};JSON.stringify(s[e])!==JSON.stringify(t)&&(s[e]=t,Ht(s)?a(JSON.stringify(s)):r())},Vt=(e,t,i,a,r,s,n,l,o,d)=>{const c=e.map(({sort:e,filter:c,...h},p)=>{const m=()=>ue(t).includes(h.index),u={...h,minWidth:h.minWidth??0,width:0,accumulatedWidth:0,headIndex:p,visible:{getVisible:m,onToggle(){const e=m();s(ge(e?ue(t).filter(e=>e!==h.index):[...ue(t),h.index]))}}},f=h.index;let y=c?28:0;if(e){y+=28;const t=h.index,i=`-${h.index}`,a=()=>ue(r.current).includes(t)?1:ue(r.current).includes(i)?-1:0;u.sort={getOrder:a,onSort:()=>{const e=1===a()?i:-1===a()?"":t;e?n(e):l()},online:et(e)}}c?.type===Be||c?.type===Qe?u.filter={type:Be,onFilter:({text:e})=>Wt(f,e,a,o,d),onReset:Lt(f,a,o,d),getFilter:()=>a.current[f]||"",online:tt(c)}:c?.type===Ue||c?.type===Ye?u.filter={type:Ue,onFilter:({selectedOptions:e})=>{Wt(f,ge(e.filter(({value:e})=>!!c.options.find(t=>t.value===e)).map(({value:e})=>e)),a,o,d)},onReset:Lt(f,a,o,d),options:c.options,getFilter:()=>a.current[f]?ue(a.current[f]).map(e=>({value:e,label:""})):[],online:rt(c)}:c?.type===qe||c?.type===_e?u.filter={type:qe,pickerType:c.pickerType||Mt,onFilter:({selectedDate:e})=>Wt(f,`${e.getTime()}`,a,o,d),isDisabled:c.isDisabled||(()=>({})),onReset:Lt(f,a,o,d),getFilter:()=>a.current[f]&&g(new Date(+a.current[f]))?new Date(+a.current[f]):null,baseDate:c.baseDate||new Date,online:lt(c)}:c?.type!==Ge&&c?.type!==Xe||(u.filter={type:Ge,pickerType:c.pickerType||Mt,onFilter:({startSelectedDate:e,endSelectedDate:t})=>Wt(f,ge([`${e.getTime()}`,`${t.getTime()}`]),a,o,d),onReset:Lt(f,a,o,d),isDisabled:c.isDisabled||(()=>({})),getFilter:()=>{const[e,t]=a.current[f]?ue(a.current[f]):[];return[e&&g(new Date(+e))?new Date(+e):null,t&&g(new Date(+t))?new Date(+t):null]},baseStartDate:c.baseStartDate||new Date,baseEndDate:c.baseEndDate||new Date,online:ct(c)});const w=h.head||h.index;if("string"==typeof w){const e=Math.ceil(zt(i(w.toUpperCase()),"400 14px / 14px Inter, sans-serif"))+4;u.minWidth=Math.max(h.minWidth||0,y+e+16+4)}return u});return It(c)},Pt=i=>{const{onFilter:s,onReset:n,isDisabled:o,columnIndex:d,initialSelectedDate:c,pickerType:h,visible:p,baseDate:m}=i,[u,N]=r(c),j=a(null);return l(()=>{p&&j.current?.focus()},[p]),t("div",{className:"jk-col gap jk-table-head-cell-filter-date jk-pg-sm",children:[e(V,{type:h,date:u,onDatePick:e=>N(e),onDateClean:()=>N(null),inline:!0,isDisabled:o,isSelected:e=>({year:!!u&&x(e,u),month:!!u&&k(e,u),date:!!u&&v(e,u),hours:!!u&&b(e,u),minutes:!!u&&w(e,u),seconds:!!u&&y(e,u),milliseconds:!!u&&f(e,u)}),baseDate:m,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===h||"year-month-day-hours-minutes-seconds"===h||"year-month-day-hours-minutes"===h||"year-month-day-hours"===h}),t("div",{className:"jk-row right gap buttons wh-100",children:[e(P,{size:"tiny",type:"secondary",onClick:n,disabled:!(c&&g(c)),children:e(A,{className:"tt-se",children:"reset"})}),e(P,{size:"tiny",onClick:()=>u&&s({columnIndex:d,selectedDate:u}),disabled:!(u&&g(u)),ref:j,children:e(A,{className:"tt-se",children:"filter"})})]})]})},At=i=>{const{onFilter:s,onReset:n,isDisabled:o,columnIndex:d,initialStartSelectedDate:c,initialEndSelectedDate:h,pickerType:p,visible:m,baseStartDate:u,baseEndDate:f}=i,[y,w]=r(c),[b,v]=r(h),k=a(null);return l(()=>{m&&k.current?.focus()},[m]),t("div",{className:"jk-col gap jk-table-head-cell-filter-date-range jk-pg-sm",children:[t("div",{className:"jk-row gap date-range nowrap",children:[t("div",{children:[t("div",{className:"jk-row center fw-bd",children:[e(A,{className:"tt-se",children:"from"})," :"]}),e(V,{type:p,date:y,onDatePick:w,onDateClean:()=>w(null),inline:!0,isDisabled:kt(o,xt(b)),isSelected:kt(wt(y),bt(y,b)),baseDate:u,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===p||"year-month-day-hours-minutes-seconds"===p||"year-month-day-hours-minutes"===p||"year-month-day-hours"===p})]}),t("div",{children:[t("div",{className:"jk-row center fw-bd",children:[e(A,{className:"tt-se",children:"to"})," :"]}),e(V,{type:p,date:b,onDatePick:v,onDateClean:()=>v(null),inline:!0,isDisabled:kt(o,vt(y)),isSelected:kt(wt(b),bt(y,b)),baseDate:f,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===p||"year-month-day-hours-minutes-seconds"===p||"year-month-day-hours-minutes"===p||"year-month-day-hours"===p})]})]}),t("div",{className:"jk-row gap right buttons wh-100",children:[e(P,{size:"tiny",type:"secondary",onClick:n,disabled:!(c&&h&&g(c)&&g(h)),children:e(A,{className:"tt-se",children:"reset"})}),e(P,{size:"tiny",onClick:()=>y&&b&&g(y)&&g(b)&&s({columnIndex:d,startSelectedDate:y,endSelectedDate:b}),disabled:!(y&&b&&g(y)&&g(b)),ref:k,children:e(A,{className:"tt-se",children:"filter"})})]})]})},Kt=i=>{const{onFilter:s,onReset:n,columnIndex:o,options:d,initialSelectedOptions:c,visible:h}=i,[p,m]=r(c),u=a(null);return l(()=>{h&&u.current?.focus(),m(c)},[c,h]),t("div",{className:"jk-col gap stretch jk-table-head-cell-filter-select jk-pg-sm",children:[e("div",{className:"checkbox-list",children:e(K,{options:d.map(t=>({...t,label:"string"==typeof t.label?e(A,{className:"tt-se",children:t.label}):t.label})),selectedOptions:p,onSelectOptions:m})}),t("div",{className:"jk-row right gap",children:[e(P,{size:"tiny",type:"secondary",onClick:n,disabled:!c.length,children:e(A,{className:"tt-se",children:"reset"})}),e(P,{size:"tiny",onClick:()=>s({columnIndex:o,selectedOptions:p}),disabled:JSON.stringify(c.map(({value:e})=>e))===JSON.stringify(p.map(({value:e})=>e)),ref:u,children:e(A,{className:"tt-se",children:"filter"})})]})]})},$t=i=>{const{onFilter:s,onReset:n,columnIndex:o,initialText:d,visible:c}=i,[h,p]=r(d),m=a(null);return l(()=>{c&&m.current?.focus()},[c]),t("div",{className:"jk-col gap stretch jk-table-head-cell-filter-text jk-pg-sm",onKeyDown:e=>{"Enter"===e.code&&(e.preventDefault(),s({columnIndex:o,text:h}))},children:[e($,{onChange:e=>p(e),value:h,expand:!0,autoFocus:!0,ref:m}),t("div",{className:"jk-row right gap",children:[e(P,{size:"tiny",type:"secondary",onClick:n,disabled:""===d,children:e(A,{className:"tt-se",children:"reset"})}),e(P,{size:"tiny",onClick:()=>s({columnIndex:o,text:h}),disabled:d===h,children:e(A,{className:"tt-se",children:"filter"})})]})]})},Et=({filter:t,columnIndex:i})=>{const[a,s]=r(!1),n=mt(t)?!!t.getFilter():ut(t)?!!t.getFilter().length:gt(t)?(()=>{const e=t.getFilter();return!(!e||!g(e))})():!!ft(t)&&(()=>{const[e,i]=t.getFilter()??[];return!!(e&&g(e)&&i&&g(i))})();return e(E,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1",onOpenChange:s,content:({isOpen:a})=>{const r=()=>{t?.onReset(),s(!1)};return mt(t)?e($t,{columnIndex:i,initialText:t.getFilter(),onFilter:e=>{t.onFilter(e),s(!1)},onReset:r,visible:a}):ut(t)?e(Kt,{visible:a,columnIndex:i,options:t.options,initialSelectedOptions:t.getFilter(),onFilter:e=>{t.onFilter(e),s(!1)},onReset:r}):gt(t)?e(Pt,{visible:a,pickerType:t.pickerType,columnIndex:i,isDisabled:t.isDisabled,initialSelectedDate:t.getFilter(),onFilter:e=>{t.onFilter(e),s(!1)},onReset:r,baseDate:t.baseDate}):ft(t)?e(At,{visible:a,pickerType:t.pickerType,columnIndex:i,isDisabled:t.isDisabled,initialStartSelectedDate:t.getFilter()[0],initialEndSelectedDate:t.getFilter()[1],onFilter:e=>{t.onFilter(e),s(!1)},onReset:r,baseStartDate:t.baseStartDate,baseEndDate:t.baseEndDate}):e("div",{children:"FILTER"})},placement:"bottom",triggerOn:$e.CLICK,offset:4,children:e("div",{className:me("tool jk-row jk-br-ie",{"bc-at-lt cr-at-it active":n,"cr-hd":!n,visible:a}),children:e(Ve,{size:"small"})})})},Jt=i=>{const{header:a,onMouseHoldUp:r,onMouseHoldDown:s,loading:n,headers:l,withTools:o,withRightBorder:d,borderTopLeftRadius:c,borderTopRightRadius:h,borderBottomLeftRadius:p,borderBottomRightRadius:m}=i,{index:u,width:g,filter:f,sort:y,sticky:w,headClassName:b,headIndex:v,accumulatedWidth:k}=a,{onSort:x,getOrder:N}=y||{},j=N?.();return e("div",{style:{width:g,minWidth:g,left:w?k:void 0,top:0,zIndex:w?3:2,borderTopLeftRadius:c?"var(--border-radius-inline)":void 0,borderTopRightRadius:h?"var(--border-radius-inline)":void 0,borderBottomLeftRadius:p?"var(--border-radius-inline)":void 0,borderBottomRightRadius:m?"var(--border-radius-inline)":void 0},className:me({"with-right-border":d},"sticky jk-table-row-head"),"data-testid":`${u}_head`,children:t("div",{className:me("jk-row nowrap jk-table-head-cell jk-pg-sm",{"with-sort":!!y,"with-filter":!!f?.onFilter,sticky:!!w}),onMouseUp:r,style:{width:`${g}px`,...a.style},children:[e("div",{className:"jk-table-head-field flex-1 ht-100",children:yt({header:a,columnIndex:u,className:b})}),o&&t("div",{className:"jk-row jk-table-head-tools",children:[y&&e(J,{className:me("tool jk-row jk-br-ie",{"bc-at-lt cr-at-it active":!!j,"cr-hd":!j}),onClick:()=>x({columnIndex:u}),onKeyDownClick:!0,children:j?e(j>0?He:Se,{size:"small"}):e(Le,{up:!0,down:!0,size:"small"})}),f?.onFilter&&e(Et,{columnIndex:u,filter:f,disabled:n})]}),o&&v<l.length&&e("div",{className:"jk-table-head-drag",onMouseDown:s(v),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:e("div",{})})]},u)},`${u}_head`)},Bt=o(i=>{const{headers:l,setHeaders:o,loading:d,gap:c,headerRef:h,topHeaders:p,rightBorders:m,hasScrollTop:u}=i,[g,f]=r(-1),y=a(0),w=s(e=>t=>{f(e),y.current=t.clientX},[]),b=s(()=>{f(-1),y.current=0},[]),v=e=>{const t=g;if(!y.current||-1===t)return;const i=e.clientX-(y.current||0);y.current=e.clientX;const a=[...l];a[t]&&(a[t]={...a[t],width:Math.max(a[t].width+i,a[t].minWidth)},o(It(a)))},k=!!m.length,x=l.reduce((e,t)=>e+(t.visible?.getVisible?.()?t.width:0),0);return t("div",{className:"jk-table-head-container",ref:h,onMouseMove:v,style:{paddingBottom:c},children:[k&&e("div",{className:me("jk-table-head",{"elevation-1":u}),style:{width:x},children:n.toArray(p.map((t,i)=>e(Jt,{header:t,onMouseHoldMove:v,onMouseHoldUp:b,onMouseHoldDown:w,loading:d,headers:l,withTools:!1,withRightBorder:!(""===t.head&&""===p[i+1]?.head)&&i!==p.length-1,borderTopLeftRadius:0===i,borderTopRightRadius:i===p.length-1},t.headIndex)))}),e("div",{className:me("jk-table-head jk-br-ie",{"elevation-1":u}),onMouseLeave:b,style:{width:x},children:n.toArray(l.filter(({visible:e})=>e?.getVisible?.()).map((t,i,a)=>e(Jt,{header:t,onMouseHoldMove:v,onMouseHoldUp:b,onMouseHoldDown:w,loading:d,headers:l,withTools:!0,withRightBorder:!1,borderTopLeftRadius:!k&&0===i,borderTopRightRadius:!k&&i===p.length-1,borderBottomLeftRadius:0===i,borderBottomRightRadius:i===a.length-1},t.headIndex)))})]})}),Qt=i=>{const{data:r,headers:n,rowHeight:o,getRecordStyle:c,getRecordClassName:h,getRecordKey:p,onRecordClick:m,onRecordHover:g,gap:f,loading:y,setHeaders:w,groups:b,virtualizerOverscan:v,focusRowKey:k}=i,x=a(null),{height:N=0,ref:j}=u(),D=B(r),R=B(p),S=ze({count:r.length,estimateSize:s(()=>o+2*f,[o,f]),overscan:v,getScrollElement:s(()=>x.current,[]),getItemKey:s(e=>{const t=R.current;return t?t({data:D.current,index:e}):e},[D,R])}),C=d(()=>n.filter(e=>e.visible?.getVisible?.()),[n]);l(()=>{const e=R.current;if(!k||!e)return;const t=D.current.findIndex((t,i)=>e({data:D.current,index:i})===k);t<0||S.scrollToIndex(t,{align:"center",behavior:"smooth"})},[D,k,R,S]);const F=S.getTotalSize(),O=S.scrollElement,I=S.scrollOffset??0,T=I>0,z=!!O&&I+O.clientHeight<F+N+f,M=!!O&&O.scrollLeft>0,H=!!O&&O.scrollWidth-O.clientWidth-O.scrollLeft>1,L=S.getVirtualItems(),W=T||z,{topHeaders:V,rightBorders:P,headersWidth:A,headersStickyWidth:K}=d(()=>{const e=[],t=[];let i=0;for(const a of C){const r=b.find(e=>e.value===a.group),s=e[e.length-1];r?(s?.group===r.value?(s.width+=a.width,s.sticky&&(s.sticky=a.sticky)):(t.length&&""!==e[e.length-1]?.head||t.push(i-1),t.push(i),e.push({...a,head:r.label,style:r.style})),t[t.length-1]=i):e.push({...a,head:"",style:{}}),i++}const a=C.reduce((e,t)=>e+(t.sticky?t.width:0),0);return{topHeaders:e,rightBorders:t,headersWidth:C.reduce((e,t)=>e+t.width,0),headersStickyWidth:a}},[b,C]);return t("div",{ref:x,style:{height:"100%",overflow:"scroll"},className:"jk-table-rows-container",children:[e(Bt,{headers:n,setHeaders:w,loading:y,gap:f,headerRef:j,topHeaders:V,rightBorders:P,hasScrollTop:T}),M&&e("div",{className:"expand-absolute pe-ne",style:{width:K,zIndex:3,background:"transparent",boxShadow:"0 0px 4px 0 var(--cr-ht), 0 0px 4px 1px var(--cr-ht)"}}),H&&e("div",{className:"expand-absolute pe-ne",style:{width:W?16:2,left:"unset",right:W?-8:-1,zIndex:3,background:"transparent",boxShadow:"0 0px 4px 0 var(--cr-ht), 0 0px 4px 1px var(--cr-ht)"}}),z&&e("div",{className:"expand-absolute pe-ne",style:{height:1,top:"unset",bottom:-1,zIndex:3,background:"transparent",boxShadow:"0 0px 4px 0 var(--cr-ht), 0 0px 4px 1px var(--cr-ht)"}}),t("div",{className:"jk-table-rows-box",style:{height:F},children:[!r.length&&e("div",{style:{position:"absolute",top:0,left:0,width:A,height:"1px",transform:"translateY(0px)"},className:"jk-table-row",children:C.map(({index:t,width:i,sticky:a})=>e("div",{style:{width:i,minWidth:i},className:me({sticky:!!a})},t))}),L.map(t=>e(Me.div,{"jk-data-virtual-row-key":t.key,layoutId:t.key||void 0,style:{...c?.({data:r,index:t.index,isCard:!1,isStickySection:!1})||{},position:null!==t.start?"absolute":void 0,top:null!==t.start?t.start+f:0,left:0,width:A,height:t.size-2*f+"px"},className:me("jk-table-row",h?.({data:r,index:t.index,isCard:!1,isStickySection:!0})||""),onClick:()=>m?.({data:r,index:t.index,isCard:!1}),onMouseEnter:()=>g?.({data:r,index:t.index,isCard:!1}),children:C.map(({Field:i,index:a,width:s,sticky:n,accumulatedWidth:l},o)=>e("div",{style:{width:s,minWidth:s,left:n?l:void 0},className:me({sticky:!!n,"with-right-border":P.includes(o)},"jk-table-row-field bc-sf-md"),"data-testid":`${t.key}_${a}`,children:null!=r[t.index]&&e(i,{record:r[t.index],columnIndex:a,recordIndex:t.index,isCard:!1})},`${t.key}_${a}`))},t.key))]})]})},Ut=e=>e.map(e=>e.minWidth||100),Yt=t=>{const{headers:i,setHeaders:r,viewContainerWidth:s,rowHeight:n,loading:o,data:d,getRecordKey:h,getRecordStyle:p,getRecordClassName:m,onRecordClick:u,onRecordHover:g,groups:f,virtualizerOverscan:y,focusRowKey:w}=t,b=Q(s),v=a(JSON.stringify(Ut(i))),k=a(0);return l(()=>{const e=(s||0)-c,[t,a,n]=i.reduce(([e,t,i],{minWidth:a=100,visible:r,width:s})=>[e+(r?1:0),t+(r?a:0),i+(r?s:0)],[0,0,0]),l=e>a?e-a:0;if(s!==b||v.current!==JSON.stringify(Ut(i))||l!==k.current||t&&0===n){const e=[...i];let t=0;i.forEach(({minWidth:i=100,...r},s)=>{if(r.visible?.getVisible()){const n=i/a;e[s]={...r,width:Math.floor(i+l*n),minWidth:i,accumulatedWidth:t},t+=e[s].width}}),r(e),v.current=JSON.stringify(Ut(i)),k.current=l}},[i,b,r,s]),e(Qt,{data:d,headers:i,rowHeight:n,getRecordKey:h,getRecordClassName:m,getRecordStyle:p,onRecordClick:u,onRecordHover:g,gap:4,loading:o,setHeaders:r,groups:f,virtualizerOverscan:y,focusRowKey:w})},qt=({header:i,columnIndex:a,onSort:r,order:s})=>t("div",{className:"jk-row space-between",children:[e("div",{className:"jk-row gap",children:e("div",{className:"fw-bd",children:yt({header:i,columnIndex:a})})}),r?t(J,{className:me("jk-row nowrap jk-tag tx-s cr-pr",{"bc-at-lt cr-at-it":!!s,"bc-ht-lt":!s}),onClick:()=>r({columnIndex:a}),onKeyDownClick:!0,children:[e(A,{className:"tt-se",children:"sort"})," ",e(0===s?Le:s>0?He:Se,{})]}):e("div",{})]}),_t=e=>Object.values(e).map(e=>Array.isArray(e)?e.map(e=>e?.value||e):e),Gt=a=>{const{headers:s,isOpen:n,onClose:o,onFilter:d,onResetFilters:c}=a,[h,p]=r({}),[m,u]=r({}),[f,y]=r(!1);l(()=>{const{filtered:e,values:t}=Nt(s);p(_t(t)),u(t),y(e)},[s,n]);const w=U();return e(Y,{isOpen:n,onClose:o,closeWhenKeyEscape:!0,closeWhenClickOutside:!0,children:t("div",{className:"jk-drawer-filters jk-col nowrap extend stretch",children:[t("div",{className:"jk-row left gap title cr-tx-ht jk-pg-sm",children:[e("div",{className:me({active:!0},"jk-row"),children:e(Ve,{})}),e(A,{children:"order and filters"})]}),e("div",{className:"jk-col top nowrap stretch space-between filter-drawer-columns flex-1",children:s.map((a,r)=>{const{index:s,filter:n,sort:{onSort:l,getOrder:o=()=>0}={}}=a;let d=null;if(mt(n))d=e($,{onChange:e=>u(t=>({...t,[s]:e})),value:m[s]||"",expand:!0,placeholder:ke(w("search..."))});else if(ut(n))d=e(K,{options:n.options,selectedOptions:m[s]||[],onSelectOptions:e=>u(t=>({...t,[s]:e}))});else if(gt(n))d=e(V,{type:n.pickerType,date:m[s]instanceof Date&&g(m[s])?m[s]:null,onDatePick:e=>u(t=>({...t,[s]:e})),onDateClean:()=>u(e=>({...e,[s]:""})),isDisabled:n.isDisabled,isSelected:wt(m[s]),baseDate:n.baseDate,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===n.pickerType||"year-month-day-hours-minutes-seconds"===n.pickerType||"year-month-day-hours-minutes"===n.pickerType||"year-month-day-hours"===n.pickerType});else if(ft(n)){const[a,r]=Array.isArray(m?.[s])?m?.[s]:[null,null];d=t(i,{children:[t("div",{children:[t("div",{className:"jk-row left fw-bd",children:[e(A,{className:"tt-se",children:"from"})," :"]}),e(V,{type:n.pickerType,date:a,onDatePick:e=>{r&&g(r)?u(t=>({...t,[s]:[e,r]})):u(t=>({...t,[s]:[e,e]}))},onDateClean:()=>u(e=>({...e,[s]:""})),isDisabled:kt(n.isDisabled,xt(r)),isSelected:kt(wt(a),bt(a,r)),baseDate:n.baseStartDate,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===n.pickerType||"year-month-day-hours-minutes-seconds"===n.pickerType||"year-month-day-hours-minutes"===n.pickerType||"year-month-day-hours"===n.pickerType})]}),t("div",{children:[t("div",{className:"jk-row left fw-bd",children:[e(A,{className:"tt-se",children:"to"})," :"]}),e(V,{type:n.pickerType,date:r,onDatePick:e=>{a&&g(a)?u(t=>({...t,[s]:[a,e]})):u(t=>({...t,[s]:[e,e]}))},onDateClean:()=>u(e=>({...e,[s]:""})),isDisabled:kt(n.isDisabled,vt(a)),isSelected:kt(wt(r),bt(a,r)),baseDate:n.baseEndDate,twoLines:"year-month-day-hours-minutes-seconds-milliseconds"===n.pickerType||"year-month-day-hours-minutes-seconds"===n.pickerType||"year-month-day-hours-minutes"===n.pickerType||"year-month-day-hours"===n.pickerType})]})]})}return t("div",{className:"jk-col gap stretch jk-pg-sm-trl jk-pg-b",style:r?{borderTop:"1px solid var(--cr-ht)"}:{},children:[e(qt,{header:a,columnIndex:s,onSort:l,order:o()}),d]},s)})}),t("div",{className:"jk-row-col space-between gap block jk-pg-sm filter-drawer-buttons",children:[e(P,{type:"secondary",size:"small",onClick:()=>{c(),o()},disabled:!f,children:e(A,{className:"tt-se",children:"reset all filters"})}),e(P,{size:"small",onClick:()=>{d(m),o()},disabled:JSON.stringify(_t(m))===JSON.stringify(h),children:e(A,{className:"tt-se",children:"apply filters"})})]})]})})},Xt=e=>me({"bc-at-lt cr-at-it":e,"bc-sf-md":!e,active:e},"jk-row jk-data-viewer-tools-filter jk-br-ie cr-pr jk-row nowrap"),Zt=({Icon:i,active:a,onClick:r,tooltipContent:s,className:n="",children:l,rotate:o,disabled:d=!1})=>t("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":s,className:me(Xt(!!a),n,{disabled:d}),onClick:r,children:[e(i,{className:"jk-br-ie",size:"small",rotate:o}),l]}),ei=o(n=>{const{extraNodes:o,setViewMode:d,headers:c,toolbarRef:p,viewMode:m,dataLength:u,rowsView:g,cardsView:f,loading:y,initializing:w,onReload:b,onAllFilters:v,pagination:k,extraNodesFloating:x,showFilterDrawerKey:N,filterKey:j,filters:D,downloads:R,requestProps:S}=n,{filtered:C,values:F}=Nt(c),[O,I]=r(!1),T=q(e=>e.viewPort.isSmallScreen),{notifyResponse:z}=_(),M=G(e=>e.searchParams),H=a(void 0),[L,W]=X(N,"open"===M.get(N)?"open":"close"),V=s(e=>{W(e?"open":"close")},[W]),P=!(T&&(!g||!f)),A=!!c.filter(e=>e.filter||e.sort).length;l(()=>{y?H.current?.(xe.LOADING):H.current?.(xe.NONE)},[y]);new URL(fe()&&window.location?.href||"").searchParams.set(j,JSON.stringify(D));const K=c.filter(e=>e.visible?.getVisible()).length;return t("div",{className:me("jk-data-viewer-toolbar with-vertical-scroll pn-re jk-row space-between nowrap jk-br-ie jk-pg-xsm-rl",m.toLowerCase()),ref:p,children:[e(Gt,{isOpen:"open"===L,headers:c,onClose:()=>V(!1),onFilter:e=>v(e),onResetFilters:()=>v({})}),!T&&e("div",{className:"jk-table-view-extra-nodes jk-row left gap",children:o.map(Ne)}),t("div",{className:"jk-table-view-tools jk-br-ie jk-pg-xsm-tb jk-row-col gap stretch",children:[t("div",{className:"jk-row nowrap gap",children:[b&&e(Zt,{Icon:y?Ce:Fe,tooltipContent:y?"reloading data":"reload data",active:y,onClick:b,className:"jk-input-select"},"reload-button-icon"),k.withPagination&&e(Z,{dataLength:u,loading:y,initializing:w,pageSizeOptions:T?[20]:k.pageSizeOptions,total:k.total,page:k.page,pageSize:k.pageSize,jumpToPage:k.jumpToPage,onPageSizeChange:k.onPageSizeChange,isOnToolbar:!0},"first-row-pagination")]}),t("div",{className:"jk-row nowrap gap",children:[A&&e(Zt,{Icon:Ve,tooltipContent:"open filters",onClick:()=>V(!0),active:C,className:"jk-input-select",children:!!Object.values(F).length&&t(i,{children:[" ",e("span",{className:"bc-ht-lt jk-br-ie",style:{lineHeight:1,padding:"0 4px"},children:Object.values(F).length})," "]})}),!!R.length&&e(ee,{options:R,onChange:async({value:e})=>{I(!0);const t=R.find(t=>e===t.value),i=t?.getUrl(S)??"",a=t?.getFilename(S)??"",r=je(await De(i));r.success&&(await ye(r.content.urlExportedFile,a),z(r)),I(!1)},selectedOption:{value:""},style:{width:"auto"},children:e(Zt,{Icon:O?Ce:Oe,tooltipContent:O?"downloading":"download",className:"jk-input-select",onClick:O?e=>e.stopPropagation():void 0})}),e(te,{options:c.map(e=>({label:yt({header:e,columnIndex:e.index}),value:e.index})),selectedOptions:c.filter(({visible:e})=>e?.getVisible?.()).map(({index:e})=>({value:e})),containerWidth:"child",onChange:(e,t)=>{const i=c.find(e=>e.index===t?.value);i?.visible.onToggle()},className:"bc-sf-md",children:t(Zt,{Icon:Pe,tooltipContent:"visibility of columns",className:"jk-input-select",active:K!==c.length,children:[" ",t("span",{className:"bc-ht-lt jk-br-ie ws-np",style:{lineHeight:1,padding:"0 4px"},children:[K," / ",c.length]})," "]})}),P&&(g||f)&&t(i,{children:[e("div",{className:"jk-divider horizontal"}),t("div",{className:me("jk-row nowrap jk-table-view-tools-view-mode",{rowsView:g,cardsView:f}),children:[g&&e(Zt,{Icon:Ae,tooltipContent:"list view",className:"rows",active:m===h.ROWS,onClick:()=>d(h.ROWS,!0),rotate:90}),f&&e(Zt,{Icon:Ie,tooltipContent:"cards view","data-tooltip-place":"top-end",className:"cards",active:m===h.CARDS,onClick:()=>d(h.CARDS,!0)})]})]}),!!o.length&&T&&!x&&t(i,{children:[e("div",{className:"jk-divider horizontal"}),e("div",{children:e(E,{popoverClassName:"bc-sf-hi jk-br-ie elevation-1",content:e("div",{className:"jk-pg-sm jk-col stretch gap",children:o.map(Ne)}),triggerOn:$e.CLICK,placement:"bottom",children:e("div",{className:"jk-row",children:e(Ke,{})})})})]})]})]})]})}),ti=i=>{const{viewPortSize:r,cards:{height:s=300,width:l=256,expanded:o=!1}={height:300,width:256,expanded:!1},cardsView:d,data:p,extraNodes:m,headers:g,setHeaders:f,loading:y,initializing:w,onAllFilters:b,onReload:v,rows:{height:k=56}={height:56},rowsView:x,viewMode:N,setViewMode:j,getRecordKey:D,pagination:R,getRecordStyle:S,getRecordClassName:C,onRecordClick:F,onRecordHover:O,extraNodesFloating:I=!1,showFilterDrawerKey:T,filterKey:z,filters:M,groups:H,downloads:L,requestProps:W,virtualizerOverscan:V,focusRowKey:P}=i,{width:K,ref:$}=u(),E=a(null),{height:J=0}=u({targetRef:E}),B="sm"===r;return t("div",{className:"jk-data-viewer-content jk-br-ie",style:{"--jk-table-toolbar-height":`${J}px`,position:"relative"},children:[e(ei,{setViewMode:j,extraNodes:m,headers:g,toolbarRef:E,dataLength:p.length,viewMode:N,rowsView:x,cardsView:d,loading:y,initializing:w,onReload:v,onAllFilters:b,pagination:R,extraNodesFloating:I,showFilterDrawerKey:T,filterKey:z,filters:M,downloads:L,requestProps:W}),I&&B&&e("div",{className:"jk-col gap nowrap",style:{position:"absolute",bottom:"var(--pad-t)",right:"var(--pad-t)",zIndex:1},children:n.toArray(m.map((e,t)=>Ne(e,t)))}),t("div",{className:me("jk-view-container",N.toLowerCase()),ref:$,children:[p.length>0&&y&&e(Te,{}),t("div",{className:me("jk-data-viewer-body",N.toLowerCase()),style:{width:K||0},children:[0===p.length&&y&&e("div",{className:"jk-row center expand-absolute pe-ne",style:{height:"100%"},children:t("div",{className:"jk-row",style:{alignItems:"baseline"},children:[e(A,{className:"tt-se",children:"loading data"})," ",e("div",{className:"dot-flashing"})]})}),N===h.ROWS?e(Yt,{headers:g,setHeaders:f,viewContainerWidth:K||0,rowHeight:k,data:p,loading:y,getRecordKey:D,getRecordStyle:S,getRecordClassName:C,onRecordClick:F,onRecordHover:O,groups:H,virtualizerOverscan:V,focusRowKey:P}):e(Je,{headers:g,data:p,cardHeight:s,cardWidth:l,rowWidth:(K||0)-c,getRecordClassName:C,getRecordStyle:S,onRecordClick:F,onRecordHover:O,expandedCards:o})]})]})]})};function ii(t){const{cards:i,cardsView:n=!0,className:o="",data:c,extraNodes:u,headers:j,initialViewMode:D,name:R="",requestRef:S,rows:C,rowsView:F=!0,totalData:O,pageSizeOptions:I,getRecordKey:T,getPageQueryParam:z=jt,getPageSizeQueryParam:M=Dt,getSortQueryParam:H=Rt,getFilterQueryParam:L=St,getViewModeQueryParam:W=Ct,getShowFilterDrawerQueryParam:V=Ft,getVisiblesQueryParam:P=Ot,getRecordStyle:A,getRecordClassName:K,onRecordClick:$,onRecordHover:E,extraNodesFloating:J,setLoaderStatusRef:Q,setDataTableRef:Y,initializing:_=!1,downloads:Z,groups:ee,deps:te=[],virtualizerOverscan:fe=4,focusRowKey:ye}=t,ve=q(e=>e.viewPort.screen),ke=ie(e=>e.user.settings[p.DATA_VIEW_MODE]),Ne=G(e=>e.searchParams),je=U(),De=z(R),Se=M(R),Ce=H(R),Fe=L(R),Oe=W(R),Ie=V(R),Te=P(R),ze=!!I,[Me,He]=r(xe.LOADING),Le=Me===xe.LOADING||_,We=Ne.get(Ce),[Ve,Pe,Ae]=X(Ce,We),Ke=B(Ve),[$e,Ee]=X(Te,Ne.get(Te),ge(j.map(({index:e})=>e))),Je=Ne.get(Fe)||"",[et,tt,rt]=X(Fe,Re(Je)?Je:null),lt=d(()=>{const e=Re(et)?JSON.parse(et):{},t={};for(const i of j)t[i.index]=e[i.index];return t},[et,j]),ct=B(lt),mt=JSON.stringify(I??[25,50,100]),ut=d(()=>JSON.parse(mt),[mt]),[gt,ft]=X(De,Ne.get(De)),yt=+gt||1,[wt,bt]=X(Se,Ne.get(Se)),vt=+wt||ut[0],kt=d(()=>{const e={},t=j.find(({index:e})=>e===Ve||`-${e}`===Ve);return t?.sort&&(e[t.index]=t.index===Ve?1:-1),JSON.stringify({sort:e,filter:lt,pagination:ze?{page:yt,pageSize:vt}:{page:0,pageSize:0}})},[lt,j,yt,vt,Ve,ze]),xt=d(()=>JSON.parse(kt),[kt]),Nt=JSON.stringify(te),It=B(S),Tt=s(()=>It.current?.(xt),[It,xt]);l(()=>{Tt()},[Tt,Nt]);const zt=d(()=>((e,t,i,a)=>{let r=[...e];for(const e of t){const t=e.index;if(i[t]){const a=e.index;if(it(e?.filter))r=r.filter(e.filter.callbackFn({columnIndex:e.index,text:i[t]}));else if(at(e?.filter)){const s=new RegExp(i[t],"gi");r=r.filter(t=>{if(at(e?.filter)){const i=e.filter.getValue?e.filter.getValue({record:t}):a in t?t[a]:null;return"string"==typeof i&&!!i?.match?.(s)}return!1})}else if(st(e?.filter)){const a=ue(i[t]).map(t=>{if(st(e?.filter))return e.filter.options.find(({value:e})=>e===t)}).filter(Boolean);r=r.filter(e.filter.callbackFn({columnIndex:e.index,selectedOptions:a}))}else if(nt(e?.filter)){const s=ue(i[t]).map(t=>{if(nt(e?.filter))return e.filter.options.find(({value:e})=>e===t)}).filter(Boolean);r=r.filter(t=>{if(nt(e?.filter)){const i=e.filter.getValue?e.filter.getValue({record:t}):a in t?t[a]:null;return!!s.find(e=>e.value===i)}return!1})}else if(ot(e?.filter))r=r.filter(e.filter.callbackFn({columnIndex:e.index,selectedDate:new Date(+i[t])}));else if(dt(e?.filter)){const{showYears:s,showMonths:n,showDays:l,showHours:o,showMinutes:d,showSeconds:c,showMilliseconds:h}=be(e.filter.pickerType||Mt);if(i[t]&&g(new Date(+i[t]))){const p=new Date(+i[t]);r=r.filter(t=>{if(dt(e?.filter)){const i=e.filter.getValue?e.filter.getValue({record:t}):a in t?t[a]:null;if(i instanceof Date&&g(i)){if(h)return f(p,i);if(c)return y(p,i);if(d)return w(p,i);if(o)return b(p,i);if(l)return v(p,i);if(n)return k(p,i);if(s)return x(p,i)}else we("datum no filtered",{datum:t,searchDate:p,index:e.index,head:e})}return!0})}else we("data no filtered, filter not a valid time date",{search:i[t],searchFilter:i})}else if(ht(e?.filter)){const[a,s]=ue(i[t]);a&&g(new Date(+a))&&s&&g(new Date(+s))?r=r.filter(e.filter.callbackFn({columnIndex:e.index,startSelectedDate:new Date(+a),endSelectedDate:new Date(+s)})):we("data no filtered, filter not a valid range times date",{search:i[t],searchFilter:i})}else if(pt(e?.filter)){const[s,n]=ue(i[t]);if(s&&g(new Date(+s))&&n&&g(new Date(+n))){const t=new Date(+s),i=new Date(+n),{showMonths:l,showDays:o,showHours:d,showMinutes:c,showSeconds:h,showMilliseconds:p}=be(e.filter.pickerType||Mt);r=r.filter(r=>{if(pt(e?.filter)){const s=e.filter.getValue?e.filter.getValue({record:r}):a in r?r[a]:null;if(s instanceof Date&&g(s)){let e=t.getFullYear()<=s.getFullYear()&&s.getFullYear()<=i.getFullYear();return l&&(e=e&&N(s,{start:re(t),end:ae(i)})),o&&(e=e&&N(s,{start:ne(t),end:se(i)})),d&&(e=e&&N(s,{start:oe(t),end:le(i)})),c&&(e=e&&N(s,{start:ce(t),end:de(i)})),h&&(e=e&&N(s,{start:pe(t),end:he(i)})),p&&(e=N(s,{start:t,end:i})),e}we("datum no filtered",{datum:r,startSelectedDate:t,endSelectedDate:i,index:e.index,head:e})}return!0})}else we("data no filtered, filter not a valid range times date",{search:i[t],searchFilter:i})}}}const s=r.length!==e.length;let n=!1;for(const e of ue(a)){const i=t.find(({index:t})=>t===e||`-${t}`===e);i?.sort&&Ze(i?.sort)&&(i.index===e?(r.sort(i.sort.compareFn({columnIndex:i.index})),n=!0):`-${i.index}`===e&&(r.sort((e,t)=>Ze(i?.sort)?-1*i.sort.compareFn({columnIndex:i.index})(e,t):0),n=!0))}return s||n?r:e})(c,j,lt,Ve),[c,j,lt,Ve]),Lt=B(Y);l(()=>{Lt.current?.(zt)},[zt,Lt]);const Wt=B(Q);l(()=>{Wt.current?.(e=>{He("function"==typeof e?t=>e(t):e)})},[Wt]);const[Pt,At]=r(()=>Vt(j,$e,je,ct,Ke,Ee,Pe,Ae,tt,rt));l(()=>{At(Vt(j,$e,je,ct,Ke,Ee,Pe,Ae,tt,rt))},[rt,Ae,j,tt,Pe,je,ct,Ke,Ee,$e]);const Kt=s(e=>{const t={...lt};for(const{filter:i,index:a}of j){const r=e[a];if(i?.type===Be||i?.type===Qe)t[a]=r;else if(i?.type===Ue||i?.type===Ye)t[a]=ge((e[a]||[]).filter(({value:e})=>!!i.options.find(t=>t.value===e)).map(({value:e})=>e));else if(i?.type===qe||i?.type===_e)e[a]instanceof Date?t[a]=`${e[a].getTime()}`:t[a]="";else if(i?.type===Ge||i?.type===Xe){const[i,r]=e[a]?e[a]:[null,null];i&&g(i)&&r&&g(r)?t[a]=ge([`${i.getTime()}`,`${r.getTime()}`]):t[a]=""}}Ht(t)?tt(JSON.stringify(t)):rt()},[rt,j,lt,tt]),$t=D||(ke===h.CARDS?h.CARDS:h.ROWS),[Et,Jt]=X(Oe,Ne.get(Oe)?Ne.get(Oe)?.toUpperCase()===h.CARDS?h.CARDS:h.ROWS:$t);l(()=>{!n&&F?Jt(h.ROWS):!F&&n&&Jt(h.CARDS)},[n,F,Jt]);const Bt=a("");l(()=>{Bt.current!==ve&&n&&"sm"===ve&&Jt(h.CARDS),Bt.current=ve},[ve,n,Jt]);const Qt=O??c.length,Ut=d(()=>({withPagination:ze,total:Qt,pageSizeOptions:ut,page:yt,pageSize:vt,jumpToPage:ft,onPageSizeChange:bt}),[ze,Qt,ut,yt,vt,ft,bt]),Yt=d(()=>(u||[]).filter(Boolean),[u]);return e("div",{className:me(o,"jk-data-viewer-layout ht-100",{"with-pagination":ze}),children:e(ti,{viewPortSize:ve,cards:i,data:zt,extraNodes:Yt,extraNodesFloating:J,headers:Pt,groups:ee||m,setHeaders:At,loading:Me===xe.LOADING,initializing:Le,onAllFilters:Kt,onReload:It.current?Tt:null,rows:C,showFilterDrawerKey:Ie,rowsView:F,cardsView:n,setViewMode:Jt,viewMode:Et,getRecordKey:T,getRecordStyle:A,getRecordClassName:K,onRecordClick:$,onRecordHover:E,pagination:Ut,filterKey:Fe,filters:lt,downloads:Z??m,requestProps:xt,virtualizerOverscan:fe,focusRowKey:ye})})}export{ii as default};
@@ -1 +0,0 @@
1
- import{jsxs as e,jsx as i}from"react/jsx-runtime";import{AnimatePresence as o,motion as r}from"motion/react";import{memo as t,useRef as s}from"react";import{cZ as a,ax as c,b as n}from"./index-DGfNHv1x.js";import{d as m}from"./index-P3Cb0cjc.js";import{K as l}from"./contest-D0dFHHYS.js";import{j as p}from"./ViewModuleIcon-CBJGd2NB.js";import"./enums.js";import"./worksheet-BBAH_yZC.js";import"./date-D28INXpp.js";import"./settings-DgLs6IK_.js";import"react-dom";import"./index-Dwi3ag-n.js";import"./time-BHcZPeyw.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";const d=t(function(t){const{children:d,position:j="right",isOpen:y,onClose:f,closeWhenKeyEscape:v,closeWhenClickOutside:b,closeIcon:h}=t,u=s(null),w=()=>{y&&f?.(!1)};return a(e=>{v&&y&&"Escape"===e.code&&w()}),e(c,{children:[i(o,{children:y&&i(r.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"jk-drawer-overlay",onClick:b?w:void 0},"jk-drawer-overlay")}),i(o,{children:y&&e(r.div,{initial:{x:"100vw"},animate:{x:0,transition:{stiffness:0}},exit:{x:"100vw"},ref:u,className:m("jk-drawer-layout elevation-2",j,{open:y}),children:[void 0===h?i("div",{className:"jk-drawer-close-button",children:i(n,{icon:i(p,{}),type:"secondary",onClick:w})}):l(h,{isOpen:y,close:w}),i("div",{className:"jk-drawer-body",children:d})]},"jk-drawer-layout")})]})},({isOpen:e},{isOpen:i})=>e===i&&!e);export{d as default};
@@ -1 +0,0 @@
1
- import{jsxs as t,jsx as e,Fragment as a}from"react/jsx-runtime";import{Excalidraw as i,MainMenu as r}from"@excalidraw/excalidraw";import{useState as o,useEffect as n}from"react";import{b4 as s,a7 as c,c as l,b as p,ax as d}from"./index-DGfNHv1x.js";import{E as m}from"./ViewModuleIcon-CBJGd2NB.js";import"./enums.js";import"./index-P3Cb0cjc.js";import"./settings-DgLs6IK_.js";import"./contest-D0dFHHYS.js";import"./date-D28INXpp.js";import"./worksheet-BBAH_yZC.js";import"motion/react";import"react-dom";import"./index-Dwi3ag-n.js";import"./time-BHcZPeyw.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";const g="jk-excalidraw-data";function h(){const[h,b]=o(!1),[x,u]=o((()=>{const t=sessionStorage.getItem(g);if(t)try{const e=JSON.parse(t);return e?.viewBackgroundColor||"transparent"}catch(t){console.error("Failed to parse Excalidraw data:",t)}return"transparent"})()),[w,k]=o({elements:[],appState:{viewBackgroundColor:"transparent"}}),[y,j]=o(null);n(()=>{const t=sessionStorage.getItem(g);if(t)try{const e=JSON.parse(t);k({appState:{...e?.appState,collaborators:void 0},elements:e?.elements??[]})}catch(t){console.error("Failed to parse Excalidraw data:",t)}},[h]),n(()=>{y?.updateScene({appState:{viewBackgroundColor:x}})},[y,x]);const f=t("div",{className:"jk-col gap bc-sf-hi elevation-1 jk-br-ie",style:{padding:2},children:[e(s,{className:"tt-se tx-t",children:"background"}),e(c,{size:"tiny",leftLabel:e("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"white","data-tooltip-place":"bottom-end",className:"br-50-pc br-hl",style:{background:"white",width:12,height:12}}),rightLabel:e("div",{"data-tooltip-id":"jk-tooltip","data-tooltip-content":"transparent","data-tooltip-place":"bottom-end",className:"br-50-pc br-hl",style:{background:"white",width:12,height:12,backgroundImage:"linear-gradient(45deg, #ccc 25%, transparent 25%),linear-gradient(-45deg, #ccc 25%, transparent 25%),linear-gradient(45deg, transparent 75%, #ccc 75%),linear-gradient(-45deg, transparent 75%, #ccc 75%)",backgroundSize:"6px 6px",backgroundPosition:"0 0, 0 3px, 3px -3px, -3px 0px"}}),checked:"transparent"===x,onChange:()=>{u("transparent"===x?"#FFFFFF":"transparent")}})]});return t(a,{children:[h?e(l,{offset:8,className:"is-active right",icon:e(m,{}),size:"tiny",buttons:[{icon:e(m,{}),label:e(s,{className:"tt-se",children:"exit"}),size:"tiny",onClick:()=>b(!1)},{children:f}]}):e("div",{className:"jk-row right",children:e(p,{tooltipContent:"active excalidraw",type:"secondary",size:"tiny",icon:e(m,{}),onClick:()=>b(!0)})}),e(d,{children:h&&e("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:h?void 0:"none",opacity:h?1:0,zIndex:"var(--zi-excalidraw)"},children:e(i,{excalidrawAPI:t=>j(t),initialData:w,onChange:(t,e)=>{const a={elements:t,appState:e,viewBackgroundColor:x};sessionStorage.setItem(g,JSON.stringify(a))},renderTopRightUI:()=>t("div",{className:"jk-row gap",style:{marginRight:16},children:[f,e(p,{size:"tiny",onClick:()=>b(!1),children:e(s,{className:"tt-se",children:"exit"})})]}),children:t(r,{children:[e(r.DefaultItems.Export,{}),e(r.DefaultItems.SaveAsImage,{}),e(r.DefaultItems.ToggleTheme,{})]})})})})]})}export{h as default};
@@ -1 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{i as r}from"./viz-BjPw9uNj.js";import{useRef as t,useEffect as i}from"react";import{bF as o,dg as s}from"./index-DGfNHv1x.js";import{h as n,d as a}from"./index-P3Cb0cjc.js";import"./ViewModuleIcon-CBJGd2NB.js";import"./date-D28INXpp.js";import"./time-BHcZPeyw.js";import"./enums.js";import"./contest-D0dFHHYS.js";import"./settings-DgLs6IK_.js";import"./worksheet-BBAH_yZC.js";import"motion/react";import"react-dom";import"./index-Dwi3ag-n.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";const m=o(e=>({shouldRerender:0,triggerRerender:()=>e(()=>({shouldRerender:Date.now()}))}));function p({dot:o,className:p}){const c=t(null),d=s(),l=m(e=>e.shouldRerender);return i(()=>{const e=c.current;e&&r().then(r=>{const t=e.getBoundingClientRect().height;e.innerHTML="",e.style.minHeight=t?`${t}px`:"";try{const t=r.renderSVGElement(o,{});e.appendChild(t),e.style.minHeight=""}catch(r){n("error on drawing Graphviz",r),e.innerHTML="",e.style.minHeight="";const t=document.createElement("div");t.textContent=`${d("error rendering graph")}: ${r?.message||String(r)}`,t.style.color="red",t.style.whiteSpace="pre-wrap",e.appendChild(t)}})},[o,l,d]),e("div",{className:a("jk-graphviz-viewer-container",p),children:e("div",{className:"jk-graphviz-viewer",ref:c})})}export{p as default,m as useGraphvizStore};
@@ -1 +0,0 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import i,{PureComponent as n,createRef as r,useState as o,useRef as a,useEffect as h}from"react";import{cO as s,cI as d,Z as c,b4 as l}from"./index-DGfNHv1x.js";import{s as p}from"./index-P3Cb0cjc.js";import"./ViewModuleIcon-CBJGd2NB.js";import"./date-D28INXpp.js";import"./time-BHcZPeyw.js";import"./enums.js";import"./contest-D0dFHHYS.js";import"./settings-DgLs6IK_.js";import"./worksheet-BBAH_yZC.js";import"motion/react";import"react-dom";import"./index-Dwi3ag-n.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";var w=Object.defineProperty,g=(t,e,i)=>((t,e,i)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i)(t,"symbol"!=typeof e?e+"":e,i);const m={x:0,y:0,width:0,height:0,unit:"px"},u=(t,e,i)=>Math.min(Math.max(t,e),i),y=(t,e)=>t===e||t.width===e.width&&t.height===e.height&&t.x===e.x&&t.y===e.y&&t.unit===e.unit;function x(t,e,i){return"%"===t.unit?{...m,...t,unit:"%"}:{unit:"%",x:t.x?t.x/e*100:0,y:t.y?t.y/i*100:0,width:t.width?t.width/e*100:0,height:t.height?t.height/i*100:0}}function C(t,e,i){return t.unit?"px"===t.unit?{...m,...t,unit:"px"}:{unit:"px",x:t.x?t.x*e/100:0,y:t.y?t.y*i/100:0,width:t.width?t.width*e/100:0,height:t.height?t.height*i/100:0}:{...m,...t,unit:"px"}}function v(t,e,i,n,r,o=0,a=0,h=n,s=r){const d={...t};let c=Math.min(o,n),l=Math.min(a,r),p=Math.min(h,n),w=Math.min(s,r);e&&(e>1?(c=a?a*e:c,l=c/e,p=h*e):(l=o?o/e:l,c=l*e,w=s/e)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const g=n-(d.x+d.width);g<0&&(d.x=Math.min(d.x,n-c),d.width+=g);const m=r-(d.y+d.height);if(m<0&&(d.y=Math.min(d.y,r-l),d.height+=m),d.width<c&&(("sw"===i||"nw"==i)&&(d.x-=c-d.width),d.width=c),d.height<l&&(("nw"===i||"ne"==i)&&(d.y-=l-d.height),d.height=l),d.width>p&&(("sw"===i||"nw"==i)&&(d.x-=p-d.width),d.width=p),d.height>w&&(("nw"===i||"ne"==i)&&(d.y-=w-d.height),d.height=w),e){const t=d.width/d.height;if(t<e){const t=Math.max(d.width/e,l);("nw"===i||"ne"==i)&&(d.y-=t-d.height),d.height=t}else if(t>e){const t=Math.max(d.height*e,c);("sw"===i||"nw"==i)&&(d.x-=t-d.width),d.width=t}}return d}const f={capture:!0,passive:!1};let D=0;const b=class t extends n{constructor(){super(...arguments),g(this,"docMoveBound",!1),g(this,"mouseDownOnCrop",!1),g(this,"dragStarted",!1),g(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),g(this,"componentRef",r()),g(this,"mediaRef",r()),g(this,"resizeObserver"),g(this,"initChangeCalled",!1),g(this,"instanceId","rc-"+D++),g(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),g(this,"onCropPointerDown",t=>{const{crop:e,disabled:i}=this.props,n=this.getBox();if(!e)return;const r=C(e,n.width,n.height);if(i)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=t.target.dataset.ord,a=!!o;let h=t.clientX,s=t.clientY,d=r.x,c=r.y;if(o){const e=t.clientX-n.x,i=t.clientY-n.y;let a=0,l=0;"ne"===o||"e"==o?(a=e-(r.x+r.width),l=i-r.y,d=r.x,c=r.y+r.height):"se"===o||"s"===o?(a=e-(r.x+r.width),l=i-(r.y+r.height),d=r.x,c=r.y):"sw"===o||"w"==o?(a=e-r.x,l=i-(r.y+r.height),d=r.x+r.width,c=r.y):("nw"===o||"n"==o)&&(a=e-r.x,l=i-r.y,d=r.x+r.width,c=r.y+r.height),h=d+n.x+a,s=c+n.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:t.clientX,clientY:t.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),g(this,"onComponentPointerDown",t=>{const{crop:e,disabled:i,locked:n,keepSelection:r,onChange:o}=this.props,a=this.getBox();if(i||n||r&&e)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=t.clientX-a.x,s=t.clientY-a.y,d={unit:"px",x:h,y:s,width:0,height:0};this.evData={startClientX:t.clientX,startClientY:t.clientY,startCropX:h,startCropY:s,clientX:t.clientX,clientY:t.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(C(d,a.width,a.height),x(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),g(this,"onDocPointerMove",t=>{const{crop:e,disabled:i,onChange:n,onDragStart:r}=this.props,o=this.getBox();if(i||!e||!this.mouseDownOnCrop)return;t.cancelable&&t.preventDefault(),this.dragStarted||(this.dragStarted=!0,r&&r(t));const{evData:a}=this;let h;a.clientX=t.clientX,a.clientY=t.clientY,h=a.isResize?this.resizeCrop():this.dragCrop(),y(e,h)||n(C(h,o.width,o.height),x(h,o.width,o.height))}),g(this,"onComponentKeyDown",e=>{const{crop:i,disabled:n,onChange:r,onComplete:o}=this.props;if(n)return;const a=e.key;let h=!1;if(!i)return;const s=this.getBox(),d=this.makePixelCrop(s),c=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?t.nudgeStepLarge:e.shiftKey?t.nudgeStepMedium:t.nudgeStep;if("ArrowLeft"===a?(d.x-=c,h=!0):"ArrowRight"===a?(d.x+=c,h=!0):"ArrowUp"===a?(d.y-=c,h=!0):"ArrowDown"===a&&(d.y+=c,h=!0),h){e.cancelable&&e.preventDefault(),d.x=u(d.x,0,s.width-d.width),d.y=u(d.y,0,s.height-d.height);const t=C(d,s.width,s.height),i=x(d,s.width,s.height);r(t,i),o&&o(t,i)}}),g(this,"onHandlerKeyDown",(e,i)=>{const{aspect:n=0,crop:r,disabled:o,minWidth:a=0,minHeight:h=0,maxWidth:s,maxHeight:d,onChange:c,onComplete:l}=this.props,p=this.getBox();if(o||!r)return;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();const w=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?t.nudgeStepLarge:e.shiftKey?t.nudgeStepMedium:t.nudgeStep,g=function(t,e,i,n){const r={...t};return"ArrowLeft"===e?"nw"===n?(r.x-=i,r.y-=i,r.width+=i,r.height+=i):"w"===n?(r.x-=i,r.width+=i):"sw"===n?(r.x-=i,r.width+=i,r.height+=i):"ne"===n?(r.y+=i,r.width-=i,r.height-=i):"e"===n?r.width-=i:"se"===n&&(r.width-=i,r.height-=i):"ArrowRight"===e&&("nw"===n?(r.x+=i,r.y+=i,r.width-=i,r.height-=i):"w"===n?(r.x+=i,r.width-=i):"sw"===n?(r.x+=i,r.width-=i,r.height-=i):"ne"===n?(r.y-=i,r.width+=i,r.height+=i):"e"===n?r.width+=i:"se"===n&&(r.width+=i,r.height+=i)),"ArrowUp"===e?"nw"===n?(r.x-=i,r.y-=i,r.width+=i,r.height+=i):"n"===n?(r.y-=i,r.height+=i):"ne"===n?(r.y-=i,r.width+=i,r.height+=i):"sw"===n?(r.x+=i,r.width-=i,r.height-=i):"s"===n?r.height-=i:"se"===n&&(r.width-=i,r.height-=i):"ArrowDown"===e&&("nw"===n?(r.x+=i,r.y+=i,r.width-=i,r.height-=i):"n"===n?(r.y+=i,r.height-=i):"ne"===n?(r.y+=i,r.width-=i,r.height-=i):"sw"===n?(r.x-=i,r.width+=i,r.height+=i):"s"===n?r.height+=i:"se"===n&&(r.width+=i,r.height+=i)),r}(C(r,p.width,p.height),e.key,w,i),m=v(g,n,i,p.width,p.height,a,h,s,d);if(!y(r,m)){const t=x(m,p.width,p.height);c(m,t),l&&l(m,t)}}),g(this,"onDocPointerDone",t=>{const{crop:e,disabled:i,onComplete:n,onDragEnd:r}=this.props,o=this.getBox();this.unbindDocMove(),!i&&e&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,r&&r(t),n&&n(C(e,o.width,o.height),x(e,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),g(this,"onDragFocus",()=>{var t;null==(t=this.componentRef.current)||t.scrollTo(0,0)})}get document(){return document}getBox(){const t=this.mediaRef.current;if(!t)return{x:0,y:0,width:0,height:0};const{x:e,y:i,width:n,height:r}=t.getBoundingClientRect();return{x:e,y:i,width:n,height:r}}componentDidUpdate(t){const{crop:e,onComplete:i}=this.props;if(i&&!t.crop&&e){const{width:t,height:n}=this.getBox();t&&n&&i(C(e,t,n),x(e,t,n))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,f),this.document.addEventListener("pointerup",this.onDocPointerDone,f),this.document.addEventListener("pointercancel",this.onDocPointerDone,f),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,f),this.document.removeEventListener("pointerup",this.onDocPointerDone,f),this.document.removeEventListener("pointercancel",this.onDocPointerDone,f),this.docMoveBound=!1)}getCropStyle(){const{crop:t}=this.props;if(t)return{top:`${t.y}${t.unit}`,left:`${t.x}${t.unit}`,width:`${t.width}${t.unit}`,height:`${t.height}${t.unit}`}}dragCrop(){const{evData:t}=this,e=this.getBox(),i=this.makePixelCrop(e),n=t.clientX-t.startClientX,r=t.clientY-t.startClientY;return i.x=u(t.startCropX+n,0,e.width-i.width),i.y=u(t.startCropY+r,0,e.height-i.height),i}getPointRegion(t,e,i,n){const{evData:r}=this,o=r.clientX-t.x,a=r.clientY-t.y;let h,s;return h=n&&e?"nw"===e||"n"===e||"ne"===e:a<r.startCropY,s=i&&e?"nw"===e||"w"===e||"sw"===e:o<r.startCropX,s?h?"nw":"sw":h?"ne":"se"}resolveMinDimensions(t,e,i=0,n=0){const r=Math.min(i,t.width),o=Math.min(n,t.height);return e&&(r||o)?e>1?r?[r,r/e]:[o*e,o]:o?[o*e,o]:[r,r/e]:[r,o]}resizeCrop(){const{evData:e}=this,{aspect:i=0,maxWidth:n,maxHeight:r}=this.props,o=this.getBox(),[a,h]=this.resolveMinDimensions(o,i,this.props.minWidth,this.props.minHeight);let s=this.makePixelCrop(o);const d=this.getPointRegion(o,e.ord,a,h),c=e.ord||d;let l=e.clientX-e.startClientX,p=e.clientY-e.startClientY;(a&&"nw"===c||"w"===c||"sw"===c)&&(l=Math.min(l,-a)),(h&&"nw"===c||"n"===c||"ne"===c)&&(p=Math.min(p,-h));const w={unit:"px",x:0,y:0,width:0,height:0};"ne"===d?(w.x=e.startCropX,w.width=l,i?(w.height=w.width/i,w.y=e.startCropY-w.height):(w.height=Math.abs(p),w.y=e.startCropY-w.height)):"se"===d?(w.x=e.startCropX,w.y=e.startCropY,w.width=l,w.height=i?w.width/i:p):"sw"===d?(w.x=e.startCropX+l,w.y=e.startCropY,w.width=Math.abs(l),w.height=i?w.width/i:p):"nw"===d&&(w.x=e.startCropX+l,w.width=Math.abs(l),i?(w.height=w.width/i,w.y=e.startCropY-w.height):(w.height=Math.abs(p),w.y=e.startCropY+p));const g=v(w,i,d,o.width,o.height,a,h,n,r);return i||t.xyOrds.indexOf(c)>-1?s=g:t.xOrds.indexOf(c)>-1?(s.x=g.x,s.width=g.width):t.yOrds.indexOf(c)>-1&&(s.y=g.y,s.height=g.height),s.x=u(s.x,0,o.width-s.width),s.y=u(s.y,0,o.height-s.height),s}renderCropSelection(){const{ariaLabels:e=t.defaultProps.ariaLabels,disabled:n,locked:r,renderSelectionAddon:o,ruleOfThirds:a,crop:h}=this.props,s=this.getCropStyle();if(h)return i.createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!r&&i.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},i.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),i.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),i.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),i.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"nw"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"n"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"ne"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"e"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"se"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"s"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"sw"),role:"button"}),i.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"w"),role:"button"})),o&&i.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:t=>t.stopPropagation()},o(this.state)),a&&i.createElement(i.Fragment,null,i.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),i.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(t){return C({...m,...this.props.crop||{}},t.width,t.height)}render(){const{aspect:t,children:e,circularCrop:n,className:r,crop:o,disabled:a,locked:h,style:s,ruleOfThirds:d}=this.props,{cropIsActive:c,newCropIsBeingDrawn:l}=this.state,p=o?this.renderCropSelection():null,w=((...t)=>t.filter(t=>t&&"string"==typeof t).join(" "))("ReactCrop",r,c&&"ReactCrop--active",a&&"ReactCrop--disabled",h&&"ReactCrop--locked",l&&"ReactCrop--new-crop",o&&t&&"ReactCrop--fixed-aspect",o&&n&&"ReactCrop--circular-crop",o&&d&&"ReactCrop--rule-of-thirds",!this.dragStarted&&o&&!o.width&&!o.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return i.createElement("div",{ref:this.componentRef,className:w,style:s},i.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},e),o?i.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},i.createElement("defs",null,i.createElement("mask",{id:`hole-${this.instanceId}`},i.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?i.createElement("ellipse",{cx:`${o.x+o.width/2}${o.unit}`,cy:`${o.y+o.height/2}${o.unit}`,rx:`${o.width/2}${o.unit}`,ry:`${o.height/2}${o.unit}`,fill:"black"}):i.createElement("rect",{x:`${o.x}${o.unit}`,y:`${o.y}${o.unit}`,width:`${o.width}${o.unit}`,height:`${o.height}${o.unit}`,fill:"black"}))),i.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,p)}};g(b,"xOrds",["e","w"]),g(b,"yOrds",["n","s"]),g(b,"xyOrds",["nw","ne","se","sw"]),g(b,"nudgeStep",1),g(b,"nudgeStepMedium",10),g(b,"nudgeStepLarge",100),g(b,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});let R=b;const M=Math.PI/180;function _(t,e,i){return function(t,e,i){const n=C(t,e,i);return n.x=(e-n.width)/2,n.y=(i-n.height)/2,"%"===t.unit?x(n,e,i):n}(function(t,e,i,n){const r=C(t,i,n);return t.width&&(r.height=r.width/e),t.height&&(r.width=r.height*e),r.y+r.height>n&&(r.height=n-r.y,r.width=r.height*e),r.x+r.width>i&&(r.width=i-r.x,r.height=r.width/e),"%"===t.unit?x(r,i,n):r}({unit:"%",width:90},i,t,e),t,e)}function E(i){const{defaultCrop:n,onCropChange:r,aspect:w,scale:g,rotate:m,circularCrop:u,withAspect:y,withRotate:v,withScale:f}=i,[D,b]=o(""),E=a(null),k=a(null),[H,P]=o(n),[N,Y]=o(),[$,S]=s(1,g),[X,K]=s(0,m),[I,O]=o(w||void 0),[A,B]=o(`${I||""}`),L=t=>{if(t){if(k.current){const{width:e,height:i}=k.current;O(t);const n=_(e,i,t);P(n),Y(C(n,e,i))}}else O(void 0)};return h(()=>{L(w),B(`${w||""}`)},[w]),h(()=>L(I),[I]),d(async()=>{N?.width&&N?.height&&k.current&&E.current&&await function(t,e,i,n=1,r=0){const o=e.getContext("2d");if(!o)throw new Error("No 2d context");const a=t.naturalWidth/t.width,h=t.naturalHeight/t.height,s=p()?window.devicePixelRatio:1;e.width=Math.floor(i.width*a*s),e.height=Math.floor(i.height*h*s),o.scale(s,s),o.imageSmoothingQuality="high";const d=i.x*a,c=i.y*h,l=r*M,w=t.naturalWidth/2,g=t.naturalHeight/2;o.save(),o.translate(-d,-c),o.translate(w,g),o.rotate(l),o.scale(n,n),o.translate(-w,-g),o.drawImage(t,0,0,t.naturalWidth,t.naturalHeight,0,0,t.naturalWidth,t.naturalHeight),o.globalCompositeOperation="destination-in",o.beginPath(),o.restore()}(k.current,E.current,N,$,X)},100,[N,$,X]),h(()=>{if(E.current&&N&&k.current){const{width:t,height:e}=k.current;r?.({percentCrop:x(N,t,e),pixelCrop:N,previewCanvasRef:E,scale:$,rotate:X,circularCrop:!!u,aspect:I})}},[N,$,X,r,u,I]),t("div",{className:"image-loader-cropper-layout jk-col gap",children:[t("div",{className:"jk-row space-between gap nowrap",children:[e(c,{type:"file",accept:"image/*",onChange:function(t){if(t?.length>0&&t[0]){P(void 0);const e=new FileReader;e.addEventListener("load",()=>b(e.result?.toString()||"")),e.readAsDataURL(t[0])}}}),f&&e(c,{labelPlacement:"left",label:e(l,{className:"tt-se",children:"scale"}),type:"number",step:.1,value:$,disabled:!D,size:"auto",onChange:S}),v&&e(c,{labelPlacement:"left",label:e(l,{className:"tt-se",children:"rotate"}),type:"number",value:X,disabled:!D,size:"auto",onChange:t=>K(Math.min(180,Math.max(-180,t)))}),y&&e(c,{labelPlacement:"left",label:e(l,{className:"tt-se",children:"aspect"}),type:"text",value:A,disabled:!D,size:"auto",onChange:t=>{B(t);const e=t?.split("/"),i=+(e[0]??0)/+(e[1]??1);Number.isNaN(i)||O(i)}})]}),Boolean(D)&&e(R,{crop:H,onChange:(t,e)=>P(e),onComplete:t=>Y(t),aspect:I,circularCrop:u,children:e("img",{ref:k,alt:"Crop me",src:D,style:{transform:`scale(${$}) rotate(${X}deg)`},onLoad:function(t){const{width:e,height:i}=t.currentTarget;P(I?_(e,i,I):{width:100,height:100,y:0,x:0,unit:"%"})}})}),e("div",{style:{display:"none"},children:!!N&&e("canvas",{ref:E})})]})}export{E as default};