@synnaxlabs/pluto 0.12.0 → 0.14.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 (290) hide show
  1. package/dist/Center-8mBjm1cO.js +126 -0
  2. package/dist/{Center-gEKkAkdh.js.map → Center-8mBjm1cO.js.map} +1 -1
  3. package/dist/Center-ER_owvfX.cjs +2 -0
  4. package/dist/{Center-ZAcURh-3.cjs.map → Center-ER_owvfX.cjs.map} +1 -1
  5. package/dist/Header-9CR1VnwV.js +34 -0
  6. package/dist/{Header-7x6367IV.js.map → Header-9CR1VnwV.js.map} +1 -1
  7. package/dist/Header-PpcdP7hn.cjs +2 -0
  8. package/dist/{Header-5YX6FUn6.cjs.map → Header-PpcdP7hn.cjs.map} +1 -1
  9. package/dist/Item--h4UWJZo.js +80 -0
  10. package/dist/{Item-owLU4Xop.js.map → Item--h4UWJZo.js.map} +1 -1
  11. package/dist/Item-EBiM5yGJ.cjs +2 -0
  12. package/dist/{Item-HWzX7RK2.cjs.map → Item-EBiM5yGJ.cjs.map} +1 -1
  13. package/dist/Item-_og4CdwZ.cjs +2 -0
  14. package/dist/{Item-rkSKzZoh.cjs.map → Item-_og4CdwZ.cjs.map} +1 -1
  15. package/dist/Item-kbCoFEj2.js +137 -0
  16. package/dist/{Item-EDdYN2NK.js.map → Item-kbCoFEj2.js.map} +1 -1
  17. package/dist/Keyboard-IWRXgioJ.js +14 -0
  18. package/dist/{Keyboard-mE03PKwA.js.map → Keyboard-IWRXgioJ.js.map} +1 -1
  19. package/dist/Keyboard-bXNOi0bP.cjs +2 -0
  20. package/dist/{Keyboard-w372197S.cjs.map → Keyboard-bXNOi0bP.cjs.map} +1 -1
  21. package/dist/Link-16dbGK7G.cjs +2 -0
  22. package/dist/{Link-xlTZan29.cjs.map → Link-16dbGK7G.cjs.map} +1 -1
  23. package/dist/Link-fRQvqiYx.js +11 -0
  24. package/dist/{Link-laNlv47N.js.map → Link-fRQvqiYx.js.map} +1 -1
  25. package/dist/SelectLevel-DrdlLBOs.cjs +2 -0
  26. package/dist/{SelectLevel-bGb0dRXh.cjs.map → SelectLevel-DrdlLBOs.cjs.map} +1 -1
  27. package/dist/SelectLevel-Uod3Ez6y.js +121 -0
  28. package/dist/{SelectLevel-cewIWtOv.js.map → SelectLevel-Uod3Ez6y.js.map} +1 -1
  29. package/dist/Selector-8rTHUToj.cjs +2 -0
  30. package/dist/{Selector-hQLSIYum.cjs.map → Selector-8rTHUToj.cjs.map} +1 -1
  31. package/dist/Selector-R4SumEUV.js +233 -0
  32. package/dist/{Selector-R3lL41_i.js.map → Selector-R4SumEUV.js.map} +1 -1
  33. package/dist/Swatch--Prmb5q_.cjs +2 -0
  34. package/dist/Swatch--Prmb5q_.cjs.map +1 -0
  35. package/dist/Swatch-IH4OmVdd.js +82 -0
  36. package/dist/Swatch-IH4OmVdd.js.map +1 -0
  37. package/dist/TimeRangeChip-jI9Nn9z8.js +7384 -0
  38. package/dist/TimeRangeChip-jI9Nn9z8.js.map +1 -0
  39. package/dist/TimeRangeChip-jQH9NacG.cjs +50 -0
  40. package/dist/TimeRangeChip-jQH9NacG.cjs.map +1 -0
  41. package/dist/Toggle-HVxv8bv2.js +10648 -0
  42. package/dist/Toggle-HVxv8bv2.js.map +1 -0
  43. package/dist/Toggle-QnKinMl4.cjs +73 -0
  44. package/dist/Toggle-QnKinMl4.cjs.map +1 -0
  45. package/dist/Video-iiPAk_ej.cjs +2 -0
  46. package/dist/{Video-a7BUKvzF.cjs.map → Video-iiPAk_ej.cjs.map} +1 -1
  47. package/dist/Video-vyIORMaH.js +11 -0
  48. package/dist/{Video-Vpwp5ao1.js.map → Video-vyIORMaH.js.map} +1 -1
  49. package/dist/aether.cjs +1 -89
  50. package/dist/aether.cjs.map +1 -1
  51. package/dist/aether.js +76 -80
  52. package/dist/aether.js.map +1 -1
  53. package/dist/align.cjs +1 -9
  54. package/dist/align.cjs.map +1 -1
  55. package/dist/align.js +5 -5
  56. package/dist/button.cjs +1 -14
  57. package/dist/button.cjs.map +1 -1
  58. package/dist/button.js +9 -8
  59. package/dist/button.js.map +1 -1
  60. package/dist/color-9QRifwqk.js +9 -0
  61. package/dist/color-9QRifwqk.js.map +1 -0
  62. package/dist/color-gJTR__ef.cjs +2 -0
  63. package/dist/color-gJTR__ef.cjs.map +1 -0
  64. package/dist/color.cjs +2 -0
  65. package/dist/color.cjs.map +1 -0
  66. package/dist/color.js +16 -0
  67. package/dist/color.js.map +1 -0
  68. package/dist/component-LA8IXGSG.js +17961 -0
  69. package/dist/component-LA8IXGSG.js.map +1 -0
  70. package/dist/component-dgLAEMbt.cjs +23 -0
  71. package/dist/component-dgLAEMbt.cjs.map +1 -0
  72. package/dist/css-5RvvUhjr.js +6414 -0
  73. package/dist/{css-NTD4Xm8x.js.map → css-5RvvUhjr.js.map} +1 -1
  74. package/dist/css-s9KpanYu.cjs +8 -0
  75. package/dist/{css-V3VUT_Js.cjs.map → css-s9KpanYu.cjs.map} +1 -1
  76. package/dist/css.cjs +2 -0
  77. package/dist/css.cjs.map +1 -0
  78. package/dist/css.js +10 -0
  79. package/dist/css.js.map +1 -0
  80. package/dist/dimensions--C45ahLe.js +20 -0
  81. package/dist/{dimensions-guJ5PHmb.js.map → dimensions--C45ahLe.js.map} +1 -1
  82. package/dist/dimensions-HfZjDJQz.cjs +2 -0
  83. package/dist/{dimensions-Sej0Zly9.cjs.map → dimensions-HfZjDJQz.cjs.map} +1 -1
  84. package/dist/dropdown.cjs +1 -12
  85. package/dist/dropdown.cjs.map +1 -1
  86. package/dist/dropdown.js +7 -6
  87. package/dist/dropdown.js.map +1 -1
  88. package/dist/external--jsfNkbo.cjs +2 -0
  89. package/dist/external--jsfNkbo.cjs.map +1 -0
  90. package/dist/external-1DGLK9F2.js +17 -0
  91. package/dist/external-1DGLK9F2.js.map +1 -0
  92. package/dist/external-4h9H4Y_N.js +21 -0
  93. package/dist/external-4h9H4Y_N.js.map +1 -0
  94. package/dist/external-4uqucf0m.js +67 -0
  95. package/dist/{external-QuVTCnGl.js.map → external-4uqucf0m.js.map} +1 -1
  96. package/dist/external-A_eQgT5T.cjs +2 -0
  97. package/dist/external-A_eQgT5T.cjs.map +1 -0
  98. package/dist/external-FCO_hdNr.js +24 -0
  99. package/dist/external-FCO_hdNr.js.map +1 -0
  100. package/dist/external-HZ6f2KvU.cjs +2 -0
  101. package/dist/external-HZ6f2KvU.cjs.map +1 -0
  102. package/dist/external-LPdjowBG.cjs +2 -0
  103. package/dist/external-LPdjowBG.cjs.map +1 -0
  104. package/dist/external-O1b3FJKI.cjs +2 -0
  105. package/dist/external-O1b3FJKI.cjs.map +1 -0
  106. package/dist/external-RGdrJX7y.cjs +2 -0
  107. package/dist/{external-9Ncn2J9B.cjs.map → external-RGdrJX7y.cjs.map} +1 -1
  108. package/dist/external-WiHGqQPA.js +30 -0
  109. package/dist/external-WiHGqQPA.js.map +1 -0
  110. package/dist/external-eWu6hCLU.cjs +2 -0
  111. package/dist/external-eWu6hCLU.cjs.map +1 -0
  112. package/dist/external-kvAz85mu.js +18 -0
  113. package/dist/external-kvAz85mu.js.map +1 -0
  114. package/dist/external-mpVdVPF1.js +88 -0
  115. package/dist/external-mpVdVPF1.js.map +1 -0
  116. package/dist/external-nTDD8IMd.cjs +2 -0
  117. package/dist/external-nTDD8IMd.cjs.map +1 -0
  118. package/dist/external-phknItOL.js +15 -0
  119. package/dist/external-phknItOL.js.map +1 -0
  120. package/dist/external-rGcWjp84.cjs +2 -0
  121. package/dist/{external-zBiIxeDG.cjs.map → external-rGcWjp84.cjs.map} +1 -1
  122. package/dist/external-r_2-tYfC.js +88 -0
  123. package/dist/{external-up1sE3F6.js.map → external-r_2-tYfC.js.map} +1 -1
  124. package/dist/external-sHbzLUrP.js +17 -0
  125. package/dist/external-sHbzLUrP.js.map +1 -0
  126. package/dist/external-tZiYBM94.cjs +2 -0
  127. package/dist/external-tZiYBM94.cjs.map +1 -0
  128. package/dist/external-tnCo64yx.cjs +2 -0
  129. package/dist/external-tnCo64yx.cjs.map +1 -0
  130. package/dist/external-uR-7_68y.js +16 -0
  131. package/dist/external-uR-7_68y.js.map +1 -0
  132. package/dist/external-uSIsCKNG.js +15 -0
  133. package/dist/external-uSIsCKNG.js.map +1 -0
  134. package/dist/external-z6BLlxur.cjs +2 -0
  135. package/dist/external-z6BLlxur.cjs.map +1 -0
  136. package/dist/font-HpLrwPSD.js +16 -0
  137. package/dist/{font-t7KoGNFX.js.map → font-HpLrwPSD.js.map} +1 -1
  138. package/dist/font-yosRgv9n.cjs +2 -0
  139. package/dist/{font-wlgaMRYN.cjs.map → font-yosRgv9n.cjs.map} +1 -1
  140. package/dist/fontString-_dtZSiPk.cjs +2 -0
  141. package/dist/{fontString-i24UxKCQ.cjs.map → fontString-_dtZSiPk.cjs.map} +1 -1
  142. package/dist/fontString-lodjYTYz.js +12 -0
  143. package/dist/{fontString-RKvYIr5H.js.map → fontString-lodjYTYz.js.map} +1 -1
  144. package/dist/header.cjs +1 -14
  145. package/dist/header.cjs.map +1 -1
  146. package/dist/header.js +9 -8
  147. package/dist/header.js.map +1 -1
  148. package/dist/index.cjs +1 -1174
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.js +737 -930
  151. package/dist/index.js.map +1 -1
  152. package/dist/input/Input.stories.d.ts +1 -0
  153. package/dist/input/TextArea.d.ts +20 -0
  154. package/dist/input/external.d.ts +1 -0
  155. package/dist/input/types.d.ts +4 -2
  156. package/dist/input.cjs +1 -14
  157. package/dist/input.cjs.map +1 -1
  158. package/dist/input.js +9 -8
  159. package/dist/input.js.map +1 -1
  160. package/dist/jsx-runtime-NmMXPjeo.js +632 -0
  161. package/dist/{jsx-runtime-rX5tAIG2.js.map → jsx-runtime-NmMXPjeo.js.map} +1 -1
  162. package/dist/jsx-runtime-evvPGacs.cjs +28 -0
  163. package/dist/{jsx-runtime-N1ikfypN.cjs.map → jsx-runtime-evvPGacs.cjs.map} +1 -1
  164. package/dist/list.cjs +1 -26
  165. package/dist/list.cjs.map +1 -1
  166. package/dist/list.js +21 -19
  167. package/dist/list.js.map +1 -1
  168. package/dist/menu.cjs +1 -15
  169. package/dist/menu.cjs.map +1 -1
  170. package/dist/menu.js +10 -9
  171. package/dist/menu.js.map +1 -1
  172. package/dist/style.css +1 -3119
  173. package/dist/table-MJysJcCC.js +10312 -0
  174. package/dist/table-MJysJcCC.js.map +1 -0
  175. package/dist/table-NIrLpFOm.cjs +69 -0
  176. package/dist/table-NIrLpFOm.cjs.map +1 -0
  177. package/dist/tabs.cjs +1 -14
  178. package/dist/tabs.cjs.map +1 -1
  179. package/dist/tabs.js +9 -8
  180. package/dist/tabs.js.map +1 -1
  181. package/dist/text.cjs +1 -16
  182. package/dist/text.cjs.map +1 -1
  183. package/dist/text.js +11 -10
  184. package/dist/text.js.map +1 -1
  185. package/dist/theming.cjs +1 -15
  186. package/dist/theming.cjs.map +1 -1
  187. package/dist/theming.js +10 -9
  188. package/dist/theming.js.map +1 -1
  189. package/dist/tree.cjs +1 -25
  190. package/dist/tree.cjs.map +1 -1
  191. package/dist/tree.js +20 -18
  192. package/dist/tree.js.map +1 -1
  193. package/dist/triggers.cjs +1 -15
  194. package/dist/triggers.cjs.map +1 -1
  195. package/dist/triggers.js +10 -9
  196. package/dist/triggers.js.map +1 -1
  197. package/dist/useDrag-4o21IpGy.js +36 -0
  198. package/dist/{useDrag-rQt5hv4R.js.map → useDrag-4o21IpGy.js.map} +1 -1
  199. package/dist/useDrag-l_moa7e3.cjs +2 -0
  200. package/dist/{useDrag-KRQ7DTg1.cjs.map → useDrag-l_moa7e3.cjs.map} +1 -1
  201. package/dist/video.cjs +1 -9
  202. package/dist/video.cjs.map +1 -1
  203. package/dist/video.js +3 -3
  204. package/package.json +61 -51
  205. package/dist/Center-ZAcURh-3.cjs +0 -148
  206. package/dist/Center-gEKkAkdh.js +0 -149
  207. package/dist/Header-5YX6FUn6.cjs +0 -35
  208. package/dist/Header-7x6367IV.js +0 -36
  209. package/dist/Item-EDdYN2NK.js +0 -171
  210. package/dist/Item-HWzX7RK2.cjs +0 -170
  211. package/dist/Item-owLU4Xop.js +0 -97
  212. package/dist/Item-rkSKzZoh.cjs +0 -96
  213. package/dist/Keyboard-mE03PKwA.js +0 -14
  214. package/dist/Keyboard-w372197S.cjs +0 -13
  215. package/dist/Link-laNlv47N.js +0 -13
  216. package/dist/Link-xlTZan29.cjs +0 -12
  217. package/dist/SelectLevel-bGb0dRXh.cjs +0 -152
  218. package/dist/SelectLevel-cewIWtOv.js +0 -153
  219. package/dist/Selector-R3lL41_i.js +0 -267
  220. package/dist/Selector-hQLSIYum.cjs +0 -266
  221. package/dist/TimeRangeChip-XXXLMCrf.cjs +0 -9316
  222. package/dist/TimeRangeChip-XXXLMCrf.cjs.map +0 -1
  223. package/dist/TimeRangeChip-eDCX5pUC.js +0 -9301
  224. package/dist/TimeRangeChip-eDCX5pUC.js.map +0 -1
  225. package/dist/Toggle-eOKYw1OT.cjs +0 -13664
  226. package/dist/Toggle-eOKYw1OT.cjs.map +0 -1
  227. package/dist/Toggle-kLunfJtR.js +0 -13665
  228. package/dist/Toggle-kLunfJtR.js.map +0 -1
  229. package/dist/Video-Vpwp5ao1.js +0 -12
  230. package/dist/Video-a7BUKvzF.cjs +0 -11
  231. package/dist/component-joFaJiQW.cjs +0 -24719
  232. package/dist/component-joFaJiQW.cjs.map +0 -1
  233. package/dist/component-k78Jq9I7.js +0 -24720
  234. package/dist/component-k78Jq9I7.js.map +0 -1
  235. package/dist/css-NTD4Xm8x.js +0 -9206
  236. package/dist/css-V3VUT_Js.cjs +0 -9204
  237. package/dist/dimensions-Sej0Zly9.cjs +0 -26
  238. package/dist/dimensions-guJ5PHmb.js +0 -27
  239. package/dist/external-2Aicsb3l.js +0 -88
  240. package/dist/external-2Aicsb3l.js.map +0 -1
  241. package/dist/external-9Ncn2J9B.cjs +0 -93
  242. package/dist/external-9RCzxzgZ.js +0 -30
  243. package/dist/external-9RCzxzgZ.js.map +0 -1
  244. package/dist/external-9pS8-DvV.js +0 -15
  245. package/dist/external-9pS8-DvV.js.map +0 -1
  246. package/dist/external-KxlyA74C.js +0 -20
  247. package/dist/external-KxlyA74C.js.map +0 -1
  248. package/dist/external-OSLzuRs1.cjs +0 -14
  249. package/dist/external-OSLzuRs1.cjs.map +0 -1
  250. package/dist/external-PS3nzqUn.cjs +0 -23
  251. package/dist/external-PS3nzqUn.cjs.map +0 -1
  252. package/dist/external-QRmqSjV0.js +0 -18
  253. package/dist/external-QRmqSjV0.js.map +0 -1
  254. package/dist/external-QuVTCnGl.js +0 -71
  255. package/dist/external-U5HRPaDI.cjs +0 -17
  256. package/dist/external-U5HRPaDI.cjs.map +0 -1
  257. package/dist/external-_CtRDtih.js +0 -17
  258. package/dist/external-_CtRDtih.js.map +0 -1
  259. package/dist/external-eQU48hM4.cjs +0 -87
  260. package/dist/external-eQU48hM4.cjs.map +0 -1
  261. package/dist/external-kbDFnfuk.js +0 -24
  262. package/dist/external-kbDFnfuk.js.map +0 -1
  263. package/dist/external-oX1JmOFf.js +0 -17
  264. package/dist/external-oX1JmOFf.js.map +0 -1
  265. package/dist/external-oZe6tF4A.cjs +0 -14
  266. package/dist/external-oZe6tF4A.cjs.map +0 -1
  267. package/dist/external-tVcmKSsT.cjs +0 -19
  268. package/dist/external-tVcmKSsT.cjs.map +0 -1
  269. package/dist/external-up1sE3F6.js +0 -94
  270. package/dist/external-uvx0b-Jw.cjs +0 -16
  271. package/dist/external-uvx0b-Jw.cjs.map +0 -1
  272. package/dist/external-vXBQOmKv.js +0 -15
  273. package/dist/external-vXBQOmKv.js.map +0 -1
  274. package/dist/external-yiqRIIvW.cjs +0 -16
  275. package/dist/external-yiqRIIvW.cjs.map +0 -1
  276. package/dist/external-zBiIxeDG.cjs +0 -70
  277. package/dist/external-zw9fckWT.cjs +0 -29
  278. package/dist/external-zw9fckWT.cjs.map +0 -1
  279. package/dist/font-t7KoGNFX.js +0 -17
  280. package/dist/font-wlgaMRYN.cjs +0 -16
  281. package/dist/fontString-RKvYIr5H.js +0 -13
  282. package/dist/fontString-i24UxKCQ.cjs +0 -12
  283. package/dist/jsx-runtime-N1ikfypN.cjs +0 -931
  284. package/dist/jsx-runtime-rX5tAIG2.js +0 -932
  285. package/dist/table-8MFXzE4C.js +0 -13664
  286. package/dist/table-8MFXzE4C.js.map +0 -1
  287. package/dist/table-VNkSG_Cj.cjs +0 -13661
  288. package/dist/table-VNkSG_Cj.cjs.map +0 -1
  289. package/dist/useDrag-KRQ7DTg1.cjs +0 -48
  290. package/dist/useDrag-rQt5hv4R.js +0 -49
package/dist/index.js CHANGED
@@ -1,694 +1,552 @@
1
- import { j as jsxRuntimeExports } from "./jsx-runtime-rX5tAIG2.js";
2
- import { createElement, useCallback, useState, useEffect } from "react";
3
- import { s as Icon$1, a3 as variantColors, a4 as Aggregator, r as Text, a5 as useAggregator, a6 as useContext, a7 as useNotifications, a8 as Config, a9 as Context, aa as Dialog, ab as formatTip, ac as useConfig, ad as wrap, ae as useUniqueKey, M as MaybeEditable, I as Icon$2, g as Text$1, af as useDrop, ag as filterByType, ah as canDropOfType, ai as useDraggingState, aj as use$5, x as Provider$1, ak as Provider$2, al as Provider$3, am as Provider$4, P as Provider$8, e as DateTime } from "./Toggle-kLunfJtR.js";
4
- import { an, ao, D, ap, aq, au, aD, as, aE, ar, aw, a2, aB, aC, ax, at, av, ay, az, aA } from "./Toggle-kLunfJtR.js";
5
- import { a as Color, Z as ZERO, g as cssString, f as fromHSLA, h as toHex, C as CSS, b as box$1, i as Case, l as location, j as external$h, e as external$1$1, x as xy, T as TimeStamp, k as TimeSpan } from "./css-NTD4Xm8x.js";
6
- import { n } from "./css-NTD4Xm8x.js";
7
- import { B as ButtonTitle, A as Actions } from "./external-up1sE3F6.js";
8
- import { e } from "./external-up1sE3F6.js";
9
- import { H as Header } from "./Header-7x6367IV.js";
10
- import { V as VARIANTS, g as specZ, v as variantZ } from "./component-k78Jq9I7.js";
11
- import { h } from "./component-k78Jq9I7.js";
12
- import { S as Space, P as Pack } from "./Center-gEKkAkdh.js";
13
- import { G } from "./Center-gEKkAkdh.js";
14
- import { d as Picker, e as Swatch, f as Core, M as Multiple, g as Single, h as calculateDiffPercentage, i as useMultiple, j as useContext$1, k as Simple, l as useGridPosition, m as Multiple$1, n as Single$1, o as MODES, D as DEFAULT_TRIGGERS, p as MASK_MODES, q as Mask, r as PAN_DEFAULT_TRIGGERS, s as SELECT_DEFAULT_TRIGGERS, Z as ZOOM_DEFAULT_TRIGGERS, t as use$3, v as Line$1, w as LinePlot$1, V as Viewport, X as XAxis$1, Y as YAxis$1, x as axisFactory, y as selectViewportEl, z as useViewport, A as Tooltip$1, B as Measure, E as HAUL_TYPE, R as Rule, G as AliasInput, I as AliasProvider, J as SelectMultiple, K as SelectSingle, N as useActiveRange, O as useAlias, Q as useAliases, U as useContext$2, W as useName, _ as HAUL_CREATE_TYPE, $ as HAUL_DROP_TYPE, a0 as Mosaic, a1 as Bar, a2 as Drawer, a3 as useDrawer, a4 as Background, a5 as Controls$1, a6 as Diagram, a7 as FitViewControl, a8 as HandleLayout, a9 as NodeLayout, aa as NodeRenderer, ab as ToggleEditControl, ac as selectNode, ad as selectNodeBox, ae as selectNodeLayout, af as use$4, ag as useContext$3, ah as StringTD, ai as TR, aj as Table$1, ak as LabelSpec, al as REGISTRY, am as initialProps, an as corePropsZ, ao as use$6, ap as Chip, aq as Controller, ar as Indicator, as as Legend$1, at as StateProvider, au as useContext$4, av as Provider$5, aw as Provider$6, ax as Provider$7, ay as use$7, az as Tag } from "./TimeRangeChip-eDCX5pUC.js";
15
- import { aC as aC2, aI, aD as aD2, aE as aE2, aG, aF, aA as aA2, aB as aB2, aH, T, aK, aJ, aM, aL } from "./TimeRangeChip-eDCX5pUC.js";
16
- import { ag as streamChannelData, u as channelData, a_ as Table, a$ as tableStateZ } from "./table-8MFXzE4C.js";
17
- import { u as useTypography } from "./font-t7KoGNFX.js";
18
- import { e as e2 } from "./external-vXBQOmKv.js";
19
- import { e as e3 } from "./external-9pS8-DvV.js";
20
- import { e as e4 } from "./external-KxlyA74C.js";
21
- import { e as e5 } from "./external-QRmqSjV0.js";
22
- import { e as e6 } from "./external-oX1JmOFf.js";
23
- import { b as resetSelection, r as rename } from "./Selector-R3lL41_i.js";
24
- import { B as Button$1 } from "./SelectLevel-cewIWtOv.js";
25
- import { e as e7 } from "./external-_CtRDtih.js";
26
- import { e as e8 } from "./external-9RCzxzgZ.js";
27
- import { e as e9 } from "./external-kbDFnfuk.js";
28
- import { T as Text$2 } from "./external-QuVTCnGl.js";
29
- import { e as e10 } from "./external-QuVTCnGl.js";
30
- import { V } from "./Video-Vpwp5ao1.js";
1
+ import { j as n } from "./jsx-runtime-NmMXPjeo.js";
2
+ import { createElement as C, useCallback as ne, useState as Ne, useEffect as De } from "react";
3
+ import { F as x, aa as Ge, ab as re, A as Ae, ac as Re, ad as Ze, ae as He, af as le, ag as Ve, ah as Fe, ai as Xe, aj as Ye, ak as Ue, al as We, M as Ke, I as X, g as Z, am as oe, w as ie, an as Y, v as ce, ao as Je, O as Qe, ap as qe, aq as es, ar as ss, P as ts, e as Q } from "./Toggle-HVxv8bv2.js";
4
+ import { as as tn, at as an, D as nn, au as rn, av as ln, ax as on, aG as cn, aH as un, az as dn, a9 as mn, aE as fn, aF as pn, aA as xn, aw as bn, ay as gn, aB as yn, aC as jn, aD as hn } from "./Toggle-HVxv8bv2.js";
5
+ import { C as p, b as y, i as as, l as P, j as ns, e as rs, x as B, T as N, k as ls } from "./css-5RvvUhjr.js";
6
+ import { n as Tn } from "./css-5RvvUhjr.js";
7
+ import { B as os, A as is } from "./external-r_2-tYfC.js";
8
+ import { e as vn } from "./external-r_2-tYfC.js";
9
+ import { H as cs } from "./Header-9CR1VnwV.js";
10
+ import { V as us, g as ds, v as ms } from "./component-LA8IXGSG.js";
11
+ import { h as zn } from "./component-LA8IXGSG.js";
12
+ import { S as k, P as fs } from "./Center-8mBjm1cO.js";
13
+ import { G as Pn } from "./Center-8mBjm1cO.js";
14
+ import { d as ps, M as ue, e as xs, f as bs, g as de, h as H, i as gs, j as me, k as fe, l as ys, m as z, D as js, n as hs, o as Ss, p as Ts, q as _s, Z as vs, r as ws, s as U, t as pe, V as xe, X as be, Y as ge, v as zs, w as Ms, x as Ps, y as Ls, z as Os, A as w, R as ye, B as Es, E as je, G as Cs, I as ks, J as Is, K as $s, N as Bs, O as Ns, Q as Ds, U as Gs, W as As, _ as Rs, $ as Zs, a0 as Hs, a1 as Vs, a2 as Fs, a3 as Xs, a4 as Ys, a5 as Us, a6 as Ws, a7 as Ks, a8 as Js, a9 as Qs, aa as qs, ab as et, ac as st, ad as tt, ae as at, af as nt, ag as rt, ah as lt, ai as ot, aj as it, ak as ct, al as ut, am as dt, an as mt, ao as ft, ap as pt, aq as xt, ar as he, as as bt, at as gt, au as yt, av as jt, aw as ht, ax as St } from "./TimeRangeChip-jI9Nn9z8.js";
15
+ import { aA as On, aG as En, aB as Cn, aC as kn, aE as In, aD as $n, ay as Bn, az as Nn, aF as Dn, T as Gn, aI as An, aH as Rn, aK as Zn, aJ as Hn } from "./TimeRangeChip-jI9Nn9z8.js";
16
+ import { ag as q, u as ee, a_ as Tt, a$ as _t } from "./table-MJysJcCC.js";
17
+ import { u as vt } from "./font-HpLrwPSD.js";
18
+ import { e as Fn } from "./external-uSIsCKNG.js";
19
+ import { e as Yn } from "./external-phknItOL.js";
20
+ import { e as Wn } from "./external-uR-7_68y.js";
21
+ import { c as Jn, u as Qn } from "./color-9QRifwqk.js";
22
+ import { e as er } from "./external-4h9H4Y_N.js";
23
+ import { e as tr } from "./external-kvAz85mu.js";
24
+ import { e as nr } from "./external-sHbzLUrP.js";
25
+ import { b as Se, r as wt } from "./Selector-R4SumEUV.js";
26
+ import { B as W } from "./SelectLevel-Uod3Ez6y.js";
27
+ import { e as lr } from "./external-1DGLK9F2.js";
28
+ import { e as ir } from "./external-WiHGqQPA.js";
29
+ import { e as ur } from "./external-FCO_hdNr.js";
30
+ import { T as zt } from "./external-4uqucf0m.js";
31
+ import { e as mr } from "./external-4uqucf0m.js";
32
+ import { V as pr } from "./Video-vyIORMaH.js";
31
33
  import "react-hook-form";
32
- import "./Item-EDdYN2NK.js";
33
- import { e as e11 } from "./external-2Aicsb3l.js";
34
+ import "./Item-kbCoFEj2.js";
35
+ import { e as br } from "./external-mpVdVPF1.js";
34
36
  import "react-dom";
35
37
  import "zod";
36
- import "./useDrag-rQt5hv4R.js";
37
- import "./Item-owLU4Xop.js";
38
- import "./dimensions-guJ5PHmb.js";
39
- import "./Link-laNlv47N.js";
38
+ import "./Swatch-IH4OmVdd.js";
39
+ import "./useDrag-4o21IpGy.js";
40
+ import "./Item--h4UWJZo.js";
41
+ import "./dimensions--C45ahLe.js";
42
+ import "./Link-fRQvqiYx.js";
40
43
  import "./Video-w40geAFS.js";
41
- import "./fontString-RKvYIr5H.js";
42
- import "./Keyboard-mE03PKwA.js";
43
- const Circle = ({ variant }) => {
44
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Circle, { color: variantColors[variant] });
45
- };
46
- const external$g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ import "./fontString-lodjYTYz.js";
45
+ import "./Keyboard-IWRXgioJ.js";
46
+ const Mt = ({ variant: e }) => /* @__PURE__ */ n.jsx(x.Circle, { color: Ge[e] }), Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
47
  __proto__: null,
48
- Aggregator,
49
- Circle,
50
- Text,
51
- VARIANTS,
52
- specZ,
53
- useAggregator,
54
- useContext,
55
- useNotifications,
56
- variantZ
57
- }, Symbol.toStringTag, { value: "Module" }));
58
- const external$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48
+ Aggregator: re,
49
+ Circle: Mt,
50
+ Text: Ae,
51
+ VARIANTS: us,
52
+ specZ: ds,
53
+ useAggregator: Re,
54
+ useContext: Ze,
55
+ useNotifications: He,
56
+ variantZ: ms
57
+ }, Symbol.toStringTag, { value: "Module" })), Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
59
58
  __proto__: null,
60
- Color,
61
- Picker,
62
- Swatch,
63
- ZERO,
64
- cssString,
65
- fromHSLA,
66
- toHex
67
- }, Symbol.toStringTag, { value: "Module" }));
68
- const external$e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
- __proto__: null,
70
- Config,
71
- Context,
72
- Dialog,
73
- formatTip,
74
- useConfig,
75
- wrap
76
- }, Symbol.toStringTag, { value: "Module" }));
77
- const external$d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
59
+ Config: le,
60
+ Context: Ve,
61
+ Dialog: Fe,
62
+ formatTip: Xe,
63
+ useConfig: Ye,
64
+ wrap: Ue
65
+ }, Symbol.toStringTag, { value: "Module" })), Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78
66
  __proto__: null,
79
- Core,
80
- Multiple,
81
- Single,
82
- calculateDiffPercentage,
83
- useMultiple
84
- }, Symbol.toStringTag, { value: "Module" }));
85
- const DIRECTION = "y";
86
- const MIN_SIZE = 28;
87
- const COLLAPSED_THRESHOLD = 32;
88
- const EXPAND_THRESHOLD = 40;
89
- const DEFAULT_EXPAND_SIZE = 0.5;
90
- const Accordion = ({ data, ...props }) => {
67
+ Core: ps,
68
+ Multiple: ue,
69
+ Single: xs,
70
+ calculateDiffPercentage: bs,
71
+ useMultiple: de
72
+ }, Symbol.toStringTag, { value: "Module" })), M = "y", se = 28, Pt = 32, Lt = 40, Ot = 0.5, Et = ({ data: e, ...s }) => {
91
73
  const {
92
- setSize,
93
- props: { sizeDistribution: sizes, ref, ...resizeProps }
94
- } = useMultiple({
95
- direction: DIRECTION,
96
- count: data.length,
97
- minSize: MIN_SIZE
98
- });
99
- const onExpand = (index) => {
100
- if (ref.current == null)
74
+ setSize: t,
75
+ props: { sizeDistribution: a, ref: r, ...l }
76
+ } = de({
77
+ direction: M,
78
+ count: e.length,
79
+ minSize: se
80
+ }), o = (i) => {
81
+ if (r.current == null)
101
82
  return;
102
- const parentSize = box$1.dim(box$1.construct(ref.current), DIRECTION);
103
- if (sizes[index] < EXPAND_THRESHOLD / parentSize)
104
- setSize(index, data[index].initialSize ?? DEFAULT_EXPAND_SIZE);
105
- else
106
- setSize(index, MIN_SIZE + 1);
83
+ const u = y.dim(y.construct(r.current), M);
84
+ a[i] < Lt / u ? t(i, e[i].initialSize ?? Ot) : t(i, se + 1);
107
85
  };
108
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
109
- Multiple,
86
+ return /* @__PURE__ */ n.jsx(
87
+ ue,
110
88
  {
111
- empty: true,
112
- className: CSS.B("accordion"),
113
- sizeDistribution: sizes,
114
- ref,
115
- ...props,
116
- ...resizeProps,
117
- children: data.map((entry, i) => /* @__PURE__ */ createElement(
118
- EntryC,
89
+ empty: !0,
90
+ className: p.B("accordion"),
91
+ sizeDistribution: a,
92
+ ref: r,
93
+ ...s,
94
+ ...l,
95
+ children: e.map((i, u) => /* @__PURE__ */ C(
96
+ It,
119
97
  {
120
- ...entry,
121
- key: entry.key,
122
- index: i,
123
- direction: DIRECTION,
124
- onExpand,
125
- parent: ref,
126
- size: sizes[i]
98
+ ...i,
99
+ key: i.key,
100
+ index: u,
101
+ direction: M,
102
+ onExpand: o,
103
+ parent: r,
104
+ size: a[u]
127
105
  }
128
106
  ))
129
107
  }
130
108
  );
131
- };
132
- const expandedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Caret.Down, { "aria-label": "contract" });
133
- const collapsedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Caret.Right, { "aria-label": "expand" });
134
- const EntryC = ({
135
- index,
136
- name,
137
- content,
138
- actions,
139
- size,
140
- parent,
141
- onExpand
109
+ }, Ct = /* @__PURE__ */ n.jsx(x.Caret.Down, { "aria-label": "contract" }), kt = /* @__PURE__ */ n.jsx(x.Caret.Right, { "aria-label": "expand" }), It = ({
110
+ index: e,
111
+ name: s,
112
+ content: t,
113
+ actions: a,
114
+ size: r,
115
+ parent: l,
116
+ onExpand: o
142
117
  }) => {
143
- let expanded = true;
144
- if (parent.current != null) {
145
- const parentSize = box$1.dim(box$1.construct(parent.current), DIRECTION);
146
- expanded = size * parentSize > COLLAPSED_THRESHOLD;
118
+ let i = !0;
119
+ if (l.current != null) {
120
+ const d = y.dim(y.construct(l.current), M);
121
+ i = r * d > Pt;
147
122
  }
148
- const icon = expanded ? expandedIcon : collapsedIcon;
149
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
150
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Header, { level: "p", className: CSS.expanded(expanded), empty: true, children: [
151
- /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonTitle, { startIcon: icon, onClick: () => onExpand(index), children: name }),
152
- actions != null && /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { children: actions })
123
+ const u = i ? Ct : kt;
124
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
125
+ /* @__PURE__ */ n.jsxs(cs, { level: "p", className: p.expanded(i), empty: !0, children: [
126
+ /* @__PURE__ */ n.jsx(os, { startIcon: u, onClick: () => o(e), children: s }),
127
+ a != null && /* @__PURE__ */ n.jsx(is, { children: a })
153
128
  ] }),
154
- content
129
+ t
155
130
  ] });
156
- };
157
- const Accordion$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
131
+ }, Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
158
132
  __proto__: null,
159
- Accordion
160
- }, Symbol.toStringTag, { value: "Module" }));
161
- const Legend = ({
162
- className,
163
- style,
164
- onLineChange,
165
- ...props
133
+ Accordion: Et
134
+ }, Symbol.toStringTag, { value: "Module" })), Te = ({
135
+ className: e,
136
+ style: s,
137
+ onLineChange: t,
138
+ ...a
166
139
  }) => {
167
- const { lines } = useContext$1("Legend");
168
- useContext$1("Legend");
169
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Simple, { data: lines, onEntryChange: onLineChange, ...props });
170
- };
171
- const Title = ({
172
- level = "h2",
173
- ...props
140
+ const { lines: r } = H("Legend");
141
+ return H("Legend"), /* @__PURE__ */ n.jsx(gs, { data: r, onEntryChange: t, ...a });
142
+ }, _e = ({
143
+ level: e = "h2",
144
+ ...s
174
145
  }) => {
175
- const key = useUniqueKey();
176
- const font = useTypography(level);
177
- const gridStyle = useGridPosition(
146
+ const t = We(), a = vt(e), r = me(
178
147
  {
179
- key,
180
- size: (font.lineHeight + 2) * font.baseSize,
148
+ key: t,
149
+ size: (a.lineHeight + 2) * a.baseSize,
181
150
  loc: "top",
182
151
  order: "first"
183
152
  },
184
153
  "Title"
185
154
  );
186
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Space, { justify: "center", align: "center", style: gridStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MaybeEditable, { ...props, level }) });
187
- };
188
- const DATA = [
155
+ return /* @__PURE__ */ n.jsx(k, { justify: "center", align: "center", style: r, children: /* @__PURE__ */ n.jsx(Ke, { ...s, level: e }) });
156
+ }, $t = [
189
157
  {
190
158
  key: "x",
191
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Right, {})
159
+ icon: /* @__PURE__ */ n.jsx(x.Arrow.Right, {})
192
160
  },
193
161
  {
194
162
  key: "y",
195
- icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Down, {})
163
+ icon: /* @__PURE__ */ n.jsx(x.Arrow.Down, {})
196
164
  }
197
- ];
198
- const defaultSelectDirectionButton = ({
199
- key,
200
- entry,
201
- onClick,
202
- selected
203
- }) => {
204
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
205
- Icon$2,
206
- {
207
- variant: selected ? "filled" : "outlined",
208
- onClick,
209
- children: entry.icon
210
- },
211
- key
212
- );
213
- };
214
- const Direction = ({
215
- children = defaultSelectDirectionButton,
216
- ...props
217
- }) => {
218
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props, data: DATA, children });
219
- };
220
- const external$c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
165
+ ], Bt = ({
166
+ key: e,
167
+ entry: s,
168
+ onClick: t,
169
+ selected: a
170
+ }) => /* @__PURE__ */ n.jsx(
171
+ X,
172
+ {
173
+ variant: a ? "filled" : "outlined",
174
+ onClick: t,
175
+ children: s.icon
176
+ },
177
+ e
178
+ ), Nt = ({
179
+ children: e = Bt,
180
+ ...s
181
+ }) => /* @__PURE__ */ n.jsx(W, { ...s, data: $t, children: e }), Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
221
182
  __proto__: null,
222
- Button: Button$1,
223
- Direction,
224
- Multiple: Multiple$1,
225
- Single: Single$1
226
- }, Symbol.toStringTag, { value: "Module" }));
227
- const Tooltip = ({ mode, triggers }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { direction: "x", align: "center", children: [
228
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: Case.capitalize(mode) }),
229
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text$2, { trigger: triggers[0], level: "small" })
230
- ] });
231
- const MODE_ICONS = {
232
- zoom: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Zoom, {}),
233
- pan: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Pan, {}),
234
- select: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Selection, {}),
235
- zoomReset: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Expand, {}),
236
- click: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Bolt, {})
237
- };
238
- const SelectMode = ({
239
- triggers,
240
- disable = ["zoomReset", "click"],
241
- ...props
183
+ Button: W,
184
+ Direction: Nt,
185
+ Multiple: fe,
186
+ Single: ys
187
+ }, Symbol.toStringTag, { value: "Module" })), Dt = ({ mode: e, triggers: s }) => /* @__PURE__ */ n.jsxs(k, { direction: "x", align: "center", children: [
188
+ /* @__PURE__ */ n.jsx(Z, { level: "small", children: as.capitalize(e) }),
189
+ /* @__PURE__ */ n.jsx(zt, { trigger: s[0], level: "small" })
190
+ ] }), Gt = {
191
+ zoom: /* @__PURE__ */ n.jsx(x.Zoom, {}),
192
+ pan: /* @__PURE__ */ n.jsx(x.Pan, {}),
193
+ select: /* @__PURE__ */ n.jsx(x.Selection, {}),
194
+ zoomReset: /* @__PURE__ */ n.jsx(x.Expand, {}),
195
+ click: /* @__PURE__ */ n.jsx(x.Bolt, {})
196
+ }, At = ({
197
+ triggers: e,
198
+ disable: s = ["zoomReset", "click"],
199
+ ...t
242
200
  }) => {
243
- const data = Object.entries(triggers).filter(([key]) => !disable.includes(key) && MODES.includes(key)).map(([key, value]) => ({
244
- key,
245
- icon: MODE_ICONS[key],
246
- tooltip: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { mode: key, triggers: value })
247
- })).sort((a, b) => MODES.indexOf(a.key) - MODES.indexOf(b.key));
248
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props, data, entryRenderKey: "icon", children: ({ title: _, entry, ...props2 }) => /* @__PURE__ */ createElement(
249
- Icon$2,
201
+ const a = Object.entries(e).filter(([r]) => !s.includes(r) && z.includes(r)).map(([r, l]) => ({
202
+ key: r,
203
+ icon: Gt[r],
204
+ tooltip: /* @__PURE__ */ n.jsx(Dt, { mode: r, triggers: l })
205
+ })).sort((r, l) => z.indexOf(r.key) - z.indexOf(l.key));
206
+ return /* @__PURE__ */ n.jsx(W, { ...t, data: a, entryRenderKey: "icon", children: ({ title: r, entry: l, ...o }) => /* @__PURE__ */ C(
207
+ X,
250
208
  {
251
- ...props2,
252
- key: entry.key,
253
- variant: props2.selected ? "filled" : "text",
209
+ ...o,
210
+ key: l.key,
211
+ variant: o.selected ? "filled" : "text",
254
212
  size: "medium",
255
- tooltip: entry.tooltip,
213
+ tooltip: l.tooltip,
256
214
  tooltipLocation: { x: "right", y: "top" }
257
215
  },
258
- entry.icon
216
+ l.icon
259
217
  ) });
260
- };
261
- const external$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
218
+ }, Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
262
219
  __proto__: null,
263
- DEFAULT_TRIGGERS,
264
- MASK_MODES,
265
- MODES,
266
- Mask,
267
- PAN_DEFAULT_TRIGGERS,
268
- SELECT_DEFAULT_TRIGGERS,
269
- SelectMode,
270
- ZOOM_DEFAULT_TRIGGERS,
271
- use: use$3
272
- }, Symbol.toStringTag, { value: "Module" }));
273
- const external$a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
220
+ DEFAULT_TRIGGERS: js,
221
+ MASK_MODES: hs,
222
+ MODES: z,
223
+ Mask: Ss,
224
+ PAN_DEFAULT_TRIGGERS: Ts,
225
+ SELECT_DEFAULT_TRIGGERS: _s,
226
+ SelectMode: At,
227
+ ZOOM_DEFAULT_TRIGGERS: vs,
228
+ use: ws
229
+ }, Symbol.toStringTag, { value: "Module" })), Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
274
230
  __proto__: null,
275
- Legend,
276
- Line: Line$1,
277
- LinePlot: LinePlot$1,
278
- Title,
279
- Viewport,
280
- XAxis: XAxis$1,
281
- YAxis: YAxis$1,
282
- axisFactory,
283
- selectViewportEl,
284
- useContext: useContext$1,
285
- useGridPosition,
286
- useViewport
287
- }, Symbol.toStringTag, { value: "Module" }));
288
- const canDrop = canDropOfType(HAUL_TYPE);
289
- const LinePlot = ({
290
- lines,
291
- axes,
292
- showTitle = true,
293
- title = "",
294
- onTitleChange,
295
- showLegend = true,
296
- titleLevel = "h4",
297
- onLineChange,
298
- onRuleChange,
299
- onAxisChannelDrop,
300
- onAxisChange,
301
- rules,
302
- enableTooltip = true,
303
- enableMeasure = false,
304
- initialViewport = box$1.DECIMAL,
305
- onViewportChange,
306
- viewportTriggers,
307
- ...restProps
231
+ Legend: Te,
232
+ Line: U,
233
+ LinePlot: pe,
234
+ Title: _e,
235
+ Viewport: xe,
236
+ XAxis: be,
237
+ YAxis: ge,
238
+ axisFactory: zs,
239
+ selectViewportEl: Ms,
240
+ useContext: H,
241
+ useGridPosition: me,
242
+ useViewport: Ps
243
+ }, Symbol.toStringTag, { value: "Module" })), ve = Y(w), Rt = ({
244
+ lines: e,
245
+ axes: s,
246
+ showTitle: t = !0,
247
+ title: a = "",
248
+ onTitleChange: r,
249
+ showLegend: l = !0,
250
+ titleLevel: o = "h4",
251
+ onLineChange: i,
252
+ onRuleChange: u,
253
+ onAxisChannelDrop: d,
254
+ onAxisChange: c,
255
+ rules: m,
256
+ enableTooltip: b = !0,
257
+ enableMeasure: f = !1,
258
+ initialViewport: g = y.DECIMAL,
259
+ onViewportChange: T,
260
+ viewportTriggers: $,
261
+ ..._
308
262
  }) => {
309
- const xAxes = axes.filter(({ location: l }) => location.isY(l));
310
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(LinePlot$1, { ...restProps, children: [
311
- xAxes.map((a, i) => {
312
- const axisLines = lines.filter((l) => l.axes.x === a.key);
313
- const yAxes = axes.filter(({ location: l }) => location.isX(l));
314
- const axisRules = rules == null ? void 0 : rules.filter(
315
- (r) => [...yAxes.map(({ key: id }) => id), a.key].includes(r.axis)
263
+ const Ce = s.filter(({ location: h }) => P.isY(h));
264
+ return /* @__PURE__ */ n.jsxs(pe, { ..._, children: [
265
+ Ce.map((h, ke) => {
266
+ const Ie = e.filter((v) => v.axes.x === h.key), J = s.filter(({ location: v }) => P.isX(v)), $e = m == null ? void 0 : m.filter(
267
+ (v) => [...J.map(({ key: Be }) => Be), h.key].includes(v.axis)
316
268
  );
317
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
318
- XAxis,
269
+ return /* @__PURE__ */ n.jsx(
270
+ Zt,
319
271
  {
320
- axis: a,
321
- index: i,
322
- lines: axisLines,
323
- yAxes,
324
- rules: axisRules,
325
- onAxisChannelDrop,
326
- onAxisChange
272
+ axis: h,
273
+ index: ke,
274
+ lines: Ie,
275
+ yAxes: J,
276
+ rules: $e,
277
+ onAxisChannelDrop: d,
278
+ onAxisChange: c
327
279
  },
328
- a.key
280
+ h.key
329
281
  );
330
282
  }),
331
- showLegend && /* @__PURE__ */ jsxRuntimeExports.jsx(Legend, { onLineChange }),
332
- showTitle && /* @__PURE__ */ jsxRuntimeExports.jsx(Title, { value: title, onChange: onTitleChange, level: titleLevel }),
333
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
334
- Viewport,
283
+ l && /* @__PURE__ */ n.jsx(Te, { onLineChange: i }),
284
+ t && /* @__PURE__ */ n.jsx(_e, { value: a, onChange: r, level: o }),
285
+ /* @__PURE__ */ n.jsxs(
286
+ xe,
335
287
  {
336
- initial: initialViewport,
337
- onChange: onViewportChange,
338
- triggers: viewportTriggers,
288
+ initial: g,
289
+ onChange: T,
290
+ triggers: $,
339
291
  children: [
340
- enableTooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, {}),
341
- enableMeasure && /* @__PURE__ */ jsxRuntimeExports.jsx(Measure, {})
292
+ b && /* @__PURE__ */ n.jsx(Ls, {}),
293
+ f && /* @__PURE__ */ n.jsx(Os, {})
342
294
  ]
343
295
  }
344
296
  )
345
297
  ] });
346
- };
347
- const XAxis = ({
348
- yAxes,
349
- lines,
350
- index,
351
- rules,
352
- onRuleChange,
353
- onAxisChannelDrop,
354
- onAxisChange,
355
- axis: { location: location2, key, showGrid, ...axis }
298
+ }, Zt = ({
299
+ yAxes: e,
300
+ lines: s,
301
+ index: t,
302
+ rules: a,
303
+ onRuleChange: r,
304
+ onAxisChannelDrop: l,
305
+ onAxisChange: o,
306
+ axis: { location: i, key: u, showGrid: d, ...c }
356
307
  }) => {
357
- const dropProps = useDrop({
308
+ const m = oe({
358
309
  type: "Channel.LinePlot.XAxis",
359
- canDrop,
360
- onDrop: useCallback(
361
- ({ items }) => {
362
- const dropped = filterByType(HAUL_TYPE, items);
363
- onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
364
- key,
365
- dropped.map(({ key: key2 }) => key2)
366
- );
367
- return dropped;
310
+ canDrop: ve,
311
+ onDrop: ne(
312
+ ({ items: f }) => {
313
+ const g = ie(w, f);
314
+ return l == null || l(
315
+ u,
316
+ g.map(({ key: T }) => T)
317
+ ), g;
368
318
  },
369
- [key, onAxisChannelDrop]
319
+ [u, l]
370
320
  )
371
- });
372
- const xRules = rules == null ? void 0 : rules.filter((r) => r.axis === key);
373
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
374
- XAxis$1,
321
+ }), b = a == null ? void 0 : a.filter((f) => f.axis === u);
322
+ return /* @__PURE__ */ n.jsxs(
323
+ be,
375
324
  {
376
- ...axis,
377
- ...dropProps,
378
- location: location2,
379
- showGrid: showGrid ?? index === 0,
380
- className: CSS(
381
- CSS.dropRegion(canDropOfType(HAUL_TYPE)(useDraggingState()))
325
+ ...c,
326
+ ...m,
327
+ location: i,
328
+ showGrid: d ?? t === 0,
329
+ className: p(
330
+ p.dropRegion(Y(w)(ce()))
382
331
  ),
383
- onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
332
+ onAutoBoundsChange: (f) => o == null ? void 0 : o({ key: u, bounds: f }),
384
333
  children: [
385
- yAxes.map((a, i) => {
386
- const yLines = lines.filter((l) => l.axes.y === a.key);
387
- const yRules = rules == null ? void 0 : rules.filter((r) => r.axis === a.key);
388
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
389
- YAxis,
334
+ e.map((f, g) => {
335
+ const T = s.filter((_) => _.axes.y === f.key), $ = a == null ? void 0 : a.filter((_) => _.axis === f.key);
336
+ return /* @__PURE__ */ n.jsx(
337
+ Vt,
390
338
  {
391
339
  axis: {
392
- ...a,
393
- showGrid: showGrid ?? (index === 0 && i === 0)
340
+ ...f,
341
+ showGrid: d ?? (t === 0 && g === 0)
394
342
  },
395
- lines: yLines,
396
- rules: yRules,
397
- onRuleChange,
398
- onAxisChannelDrop,
399
- onAxisChange
343
+ lines: T,
344
+ rules: $,
345
+ onRuleChange: r,
346
+ onAxisChannelDrop: l,
347
+ onAxisChange: o
400
348
  },
401
- a.key
349
+ f.key
402
350
  );
403
351
  }),
404
- xRules == null ? void 0 : xRules.map((rule) => /* @__PURE__ */ createElement(
405
- Rule,
352
+ b == null ? void 0 : b.map((f) => /* @__PURE__ */ C(
353
+ ye,
406
354
  {
407
- aetherKey: rule.key,
408
- ...rule,
409
- key: rule.key,
410
- onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, label: value }),
411
- onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: rule.key, position: value })
355
+ aetherKey: f.key,
356
+ ...f,
357
+ key: f.key,
358
+ onLabelChange: (g) => r == null ? void 0 : r({ key: f.key, label: g }),
359
+ onPositionChange: (g) => r == null ? void 0 : r({ key: f.key, position: g })
412
360
  }
413
361
  ))
414
362
  ]
415
363
  }
416
364
  );
417
- };
418
- const lineKey = ({ channels: { x, y } }) => `${x ?? 0}-${y}`;
419
- const YAxis = ({
420
- lines,
421
- rules,
422
- onRuleChange,
423
- onAxisChannelDrop,
424
- onAxisChange,
425
- axis: { key, location: loc2, ...props }
365
+ }, Ht = ({ channels: { x: e, y: s } }) => `${e ?? 0}-${s}`, Vt = ({
366
+ lines: e,
367
+ rules: s,
368
+ onRuleChange: t,
369
+ onAxisChannelDrop: a,
370
+ onAxisChange: r,
371
+ axis: { key: l, location: o, ...i }
426
372
  }) => {
427
- const dropProps = useDrop({
373
+ const u = oe({
428
374
  type: "Channel.LinePlot.YAxis",
429
- canDrop,
430
- onDrop: useCallback(
431
- ({ items }) => {
432
- const dropped = filterByType(HAUL_TYPE, items);
433
- onAxisChannelDrop == null ? void 0 : onAxisChannelDrop(
434
- key,
435
- dropped.map(({ key: key2 }) => key2)
436
- );
437
- return dropped;
375
+ canDrop: ve,
376
+ onDrop: ne(
377
+ ({ items: c }) => {
378
+ const m = ie(w, c);
379
+ return a == null || a(
380
+ l,
381
+ m.map(({ key: b }) => b)
382
+ ), m;
438
383
  },
439
- [key, onAxisChannelDrop]
384
+ [l, a]
440
385
  )
441
- });
442
- const dragging = useDraggingState();
443
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
444
- YAxis$1,
386
+ }), d = ce();
387
+ return /* @__PURE__ */ n.jsxs(
388
+ ge,
445
389
  {
446
- ...props,
447
- ...dropProps,
448
- location: loc2,
449
- className: CSS(CSS.dropRegion(canDropOfType(HAUL_TYPE)(dragging))),
450
- onAutoBoundsChange: (bounds) => onAxisChange == null ? void 0 : onAxisChange({ key, bounds }),
390
+ ...i,
391
+ ...u,
392
+ location: o,
393
+ className: p(p.dropRegion(Y(w)(d))),
394
+ onAutoBoundsChange: (c) => r == null ? void 0 : r({ key: l, bounds: c }),
451
395
  children: [
452
- lines.map((l) => /* @__PURE__ */ jsxRuntimeExports.jsx(Line, { line: l }, lineKey(l))),
453
- rules == null ? void 0 : rules.map((r) => /* @__PURE__ */ createElement(
454
- Rule,
396
+ e.map((c) => /* @__PURE__ */ n.jsx(Ft, { line: c }, Ht(c))),
397
+ s == null ? void 0 : s.map((c) => /* @__PURE__ */ C(
398
+ ye,
455
399
  {
456
- aetherKey: r.key,
457
- ...r,
458
- key: r.key,
459
- onLabelChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, label: value }),
460
- onPositionChange: (value) => onRuleChange == null ? void 0 : onRuleChange({ key: r.key, position: value })
400
+ aetherKey: c.key,
401
+ ...c,
402
+ key: c.key,
403
+ onLabelChange: (m) => t == null ? void 0 : t({ key: c.key, label: m }),
404
+ onPositionChange: (m) => t == null ? void 0 : t({ key: c.key, position: m })
461
405
  }
462
406
  ))
463
407
  ]
464
408
  }
465
409
  );
466
- };
467
- const Line = ({ line }) => line.variant === "static" ? /* @__PURE__ */ jsxRuntimeExports.jsx(StaticLine, { line }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicLine, { line });
468
- const DynamicLine = ({
410
+ }, Ft = ({ line: e }) => e.variant === "static" ? /* @__PURE__ */ n.jsx(Yt, { line: e }) : /* @__PURE__ */ n.jsx(Xt, { line: e }), Xt = ({
469
411
  line: {
470
- key,
471
- timeSpan,
472
- channels: { x, y },
473
- ...props
412
+ key: e,
413
+ timeSpan: s,
414
+ channels: { x: t, y: a },
415
+ ...r
474
416
  }
475
417
  }) => {
476
- const yTelem = streamChannelData({ timeSpan, channel: y });
477
- const hasX = x != null && x !== 0;
478
- const xTelem = streamChannelData({
479
- timeSpan,
480
- channel: hasX ? x : y,
481
- index: !hasX
418
+ const l = q({ timeSpan: s, channel: a }), o = t != null && t !== 0, i = q({
419
+ timeSpan: s,
420
+ channel: o ? t : a,
421
+ index: !o
482
422
  });
483
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Line$1, { aetherKey: key, y: yTelem, x: xTelem, ...props });
484
- };
485
- const StaticLine = ({
423
+ return /* @__PURE__ */ n.jsx(U, { aetherKey: e, y: l, x: i, ...r });
424
+ }, Yt = ({
486
425
  line: {
487
- timeRange,
488
- key,
489
- channels: { x, y },
490
- ...props
426
+ timeRange: e,
427
+ key: s,
428
+ channels: { x: t, y: a },
429
+ ...r
491
430
  }
492
431
  }) => {
493
- const yTelem = channelData({ timeRange, channel: y });
494
- const hasX = x != null && x !== 0;
495
- const xTelem = channelData({
496
- timeRange,
497
- channel: hasX ? x : y,
498
- index: !hasX
432
+ const l = ee({ timeRange: e, channel: a }), o = t != null && t !== 0, i = ee({
433
+ timeRange: e,
434
+ channel: o ? t : a,
435
+ index: !o
499
436
  });
500
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Line$1, { aetherKey: key, y: yTelem, x: xTelem, ...props });
501
- };
502
- const external$9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
437
+ return /* @__PURE__ */ n.jsx(U, { aetherKey: s, y: l, x: i, ...r });
438
+ }, Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
439
  __proto__: null,
504
- AliasInput,
505
- AliasProvider,
506
- LinePlot,
507
- SelectMultiple,
508
- SelectSingle,
509
- useActiveRange,
510
- useAlias,
511
- useAliases,
512
- useContext: useContext$2,
513
- useName
514
- }, Symbol.toStringTag, { value: "Module" }));
515
- const TabNotFound = new Error("Tab not found");
516
- const InvalidMosaic = new Error("Invalid Mosaic");
517
- const insertTab = (root, tab, loc = "center", key) => {
518
- var _a;
519
- root = shallowCopyNode(root);
520
- if (key === void 0)
521
- return insertAnywhere(root, tab);
522
- const node = findNodeOrAncestor(root, key);
523
- if (loc === "center") {
524
- (_a = node.tabs) == null ? void 0 : _a.push(tab);
525
- node.selected = tab.tabKey;
526
- return root;
527
- }
528
- if (node.tabs == null || node.tabs.length === 0)
529
- return root;
530
- const [insertOrder, siblingOrder, dir] = splitArrangement(loc);
531
- node.direction = dir;
532
- node[insertOrder] = { key: 0, tabs: [tab], selected: tab.tabKey };
533
- node[siblingOrder] = { key: 0, tabs: node.tabs, selected: node.selected };
534
- if (node.first == null || node.last == null)
535
- throw InvalidMosaic;
536
- node.first.key = node.key * 2;
537
- node.last.key = node.key * 2 + 1;
538
- node.tabs = void 0;
539
- node.size = void 0;
540
- node.selected = void 0;
541
- return root;
542
- };
543
- const insertAnywhere = (root, tab) => {
544
- root = shallowCopyNode(root);
545
- if (root.tabs != null) {
546
- root.tabs.push(tab);
547
- root.selected = tab.tabKey;
548
- return root;
549
- }
550
- if (root.first != null)
551
- root.first = insertAnywhere(root.first, tab);
552
- else if (root.last != null)
553
- root.last = insertAnywhere(root.last, tab);
554
- return root;
555
- };
556
- const autoSelectTabs = (root) => {
557
- root = shallowCopyNode(root);
558
- const selected = [];
559
- if (root.tabs != null) {
560
- root.selected = resetSelection(root.selected, root.tabs);
561
- if (root.selected != null)
562
- selected.push(root.selected);
563
- }
564
- if (root.first != null) {
565
- const [f, s] = autoSelectTabs(root.first);
566
- root.first = f;
567
- selected.push(...s);
440
+ AliasInput: Es,
441
+ AliasProvider: je,
442
+ LinePlot: Rt,
443
+ SelectMultiple: Cs,
444
+ SelectSingle: ks,
445
+ useActiveRange: Is,
446
+ useAlias: $s,
447
+ useAliases: Bs,
448
+ useContext: Ns,
449
+ useName: Ds
450
+ }, Symbol.toStringTag, { value: "Module" })), I = new Error("Tab not found"), Ut = new Error("Invalid Mosaic"), we = (e, s, t = "center", a) => {
451
+ var u;
452
+ if (e = j(e), a === void 0)
453
+ return V(e, s);
454
+ const r = Oe(e, a);
455
+ if (t === "center")
456
+ return (u = r.tabs) == null || u.push(s), r.selected = s.tabKey, e;
457
+ if (r.tabs == null || r.tabs.length === 0)
458
+ return e;
459
+ const [l, o, i] = Jt(t);
460
+ if (r.direction = i, r[l] = { key: 0, tabs: [s], selected: s.tabKey }, r[o] = { key: 0, tabs: r.tabs, selected: r.selected }, r.first == null || r.last == null)
461
+ throw Ut;
462
+ return r.first.key = r.key * 2, r.last.key = r.key * 2 + 1, r.tabs = void 0, r.size = void 0, r.selected = void 0, e;
463
+ }, V = (e, s) => (e = j(e), e.tabs != null ? (e.tabs.push(s), e.selected = s.tabKey, e) : (e.first != null ? e.first = V(e.first, s) : e.last != null && (e.last = V(e.last, s)), e)), L = (e) => {
464
+ e = j(e);
465
+ const s = [];
466
+ if (e.tabs != null && (e.selected = Se(e.selected, e.tabs), e.selected != null && s.push(e.selected)), e.first != null) {
467
+ const [t, a] = L(e.first);
468
+ e.first = t, s.push(...a);
568
469
  }
569
- if (root.last != null) {
570
- const [r, l] = autoSelectTabs(root.last);
571
- root.last = r;
572
- selected.push(...l);
470
+ if (e.last != null) {
471
+ const [t, a] = L(e.last);
472
+ e.last = t, s.push(...a);
573
473
  }
574
- return [root, selected];
575
- };
576
- const removeTab = (root, tabKey) => {
577
- var _a;
578
- root = shallowCopyNode(root);
579
- const [, node] = findMosaicTab(root, tabKey);
580
- if (node == null)
581
- throw TabNotFound;
582
- node.tabs = (_a = node.tabs) == null ? void 0 : _a.filter((t) => t.tabKey !== tabKey);
583
- node.selected = resetSelection(node.selected, node.tabs);
584
- const gced = gc(root);
585
- const selected = node.selected ?? findSelected(gced);
586
- return [gced, selected];
587
- };
588
- const findSelected = (root) => {
589
- if (root.selected != null)
590
- return root.selected;
591
- if (root.first != null)
592
- return findSelected(root.first);
593
- if (root.last != null)
594
- return findSelected(root.last);
595
- return null;
596
- };
597
- const selectTab = (root, tabKey) => {
598
- root = shallowCopyNode(root);
599
- const [tab, entry] = findMosaicTab(root, tabKey);
600
- if (tab == null || entry == null)
601
- throw TabNotFound;
602
- entry.selected = tabKey;
603
- return root;
604
- };
605
- const moveTab = (root, tabKey, loc, to) => {
606
- root = shallowCopyNode(root);
607
- const [tab, entry] = findMosaicTab(root, tabKey);
608
- if (tab == null || entry == null)
609
- throw TabNotFound;
610
- const [r2, selected] = removeTab(root, tabKey);
611
- const r3 = insertTab(r2, tab, loc, to);
612
- return [r3, selected];
613
- };
614
- const resizeNode = (root, key, size) => {
615
- const node = findMosaicNode(root, key);
616
- if (node == null)
474
+ return [e, s];
475
+ }, K = (e, s) => {
476
+ var l;
477
+ e = j(e);
478
+ const [, t] = S(e, s);
479
+ if (t == null)
480
+ throw I;
481
+ t.tabs = (l = t.tabs) == null ? void 0 : l.filter((o) => o.tabKey !== s), t.selected = Se(t.selected, t.tabs);
482
+ const a = Kt(e), r = t.selected ?? O(a);
483
+ return [a, r];
484
+ }, O = (e) => e.selected != null ? e.selected : e.first != null ? O(e.first) : e.last != null ? O(e.last) : null, ze = (e, s) => {
485
+ e = j(e);
486
+ const [t, a] = S(e, s);
487
+ if (t == null || a == null)
488
+ throw I;
489
+ return a.selected = s, e;
490
+ }, Me = (e, s, t, a) => {
491
+ e = j(e);
492
+ const [r, l] = S(e, s);
493
+ if (r == null || l == null)
494
+ throw I;
495
+ const [o, i] = K(e, s);
496
+ return [we(o, r, t, a), i];
497
+ }, Pe = (e, s, t) => {
498
+ const a = E(e, s);
499
+ if (a == null)
617
500
  throw new Error("Node not found");
618
- else
619
- node.size = size;
620
- return root;
621
- };
622
- const renameTab = (root, tabKey, name) => {
623
- root = shallowCopyNode(root);
624
- const [, leaf] = findMosaicTab(root, tabKey);
625
- if ((leaf == null ? void 0 : leaf.tabs) == null)
626
- throw TabNotFound;
627
- leaf.tabs = rename(tabKey, name, (leaf == null ? void 0 : leaf.tabs) ?? []);
628
- return root;
629
- };
630
- const isEmpty = (root) => {
631
- if (root.tabs != null)
632
- return root.tabs.length === 0;
633
- return root.first == null && root.last == null;
634
- };
635
- const findNodeOrAncestor = (root, key) => {
636
- const node = findMosaicNode(root, key);
637
- if (node != null)
638
- return node;
639
- const next = Math.floor(key / 2);
640
- return next === 0 ? root : findNodeOrAncestor(root, next);
641
- };
642
- const gc = (root) => {
643
- let gced = true;
644
- while (gced)
645
- [root, gced] = _gc(root);
646
- return root;
647
- };
648
- const _gc = (node) => {
649
- if (node.first == null || node.last == null)
650
- return [node, false];
651
- if (shouldGc(node.first))
652
- return [liftUp(node.last, true), true];
653
- if (shouldGc(node.last))
654
- return [liftUp(node.first, false), true];
655
- let [sGC, eGC] = [false, false];
656
- [node.first, sGC] = _gc(node.first);
657
- [node.last, eGC] = _gc(node.last);
658
- return [node, sGC || eGC];
659
- };
660
- const liftUp = (node, isLast) => {
661
- node.size = void 0;
662
- node.key = (node.key - Number(isLast)) / 2;
663
- return node;
664
- };
665
- const shouldGc = (node) => node.first == null && node.last == null && (node.tabs == null || node.tabs.length === 0);
666
- const findMosaicTab = (node, tabKey) => {
667
- if (node.tabs != null) {
668
- const tab = node.tabs.find((t) => t.tabKey === tabKey);
669
- if (tab != null)
670
- return [tab, node];
501
+ return a.size = t, e;
502
+ }, Le = (e, s, t) => {
503
+ e = j(e);
504
+ const [, a] = S(e, s);
505
+ if ((a == null ? void 0 : a.tabs) == null)
506
+ throw I;
507
+ return a.tabs = wt(s, t, (a == null ? void 0 : a.tabs) ?? []), e;
508
+ }, Wt = (e) => e.tabs != null ? e.tabs.length === 0 : e.first == null && e.last == null, Oe = (e, s) => {
509
+ const t = E(e, s);
510
+ if (t != null)
511
+ return t;
512
+ const a = Math.floor(s / 2);
513
+ return a === 0 ? e : Oe(e, a);
514
+ }, Kt = (e) => {
515
+ let s = !0;
516
+ for (; s; )
517
+ [e, s] = F(e);
518
+ return e;
519
+ }, F = (e) => {
520
+ if (e.first == null || e.last == null)
521
+ return [e, !1];
522
+ if (ae(e.first))
523
+ return [te(e.last, !0), !0];
524
+ if (ae(e.last))
525
+ return [te(e.first, !1), !0];
526
+ let [s, t] = [!1, !1];
527
+ return [e.first, s] = F(e.first), [e.last, t] = F(e.last), [e, s || t];
528
+ }, te = (e, s) => (e.size = void 0, e.key = (e.key - Number(s)) / 2, e), ae = (e) => e.first == null && e.last == null && (e.tabs == null || e.tabs.length === 0), S = (e, s) => {
529
+ if (e.tabs != null) {
530
+ const o = e.tabs.find((i) => i.tabKey === s);
531
+ if (o != null)
532
+ return [o, e];
671
533
  }
672
- if (node.first == null || node.last == null)
534
+ if (e.first == null || e.last == null)
673
535
  return [void 0, void 0];
674
- const [t1Tab, t2Tree] = findMosaicTab(node.first, tabKey);
675
- if (t1Tab != null && t2Tree != null)
676
- return [t1Tab, t2Tree];
677
- const [t2Tab, t2Tree2] = findMosaicTab(node.last, tabKey);
678
- return [t2Tab, t2Tree2];
679
- };
680
- const findMosaicNode = (node, key) => {
681
- if (node.key === key)
682
- return node;
683
- if (node.first == null || node.last == null)
684
- return void 0;
685
- const n1 = findMosaicNode(node.first, key);
686
- if (n1 != null)
687
- return n1;
688
- return findMosaicNode(node.last, key);
689
- };
690
- const splitArrangement = (insertPosition) => {
691
- switch (insertPosition) {
536
+ const [t, a] = S(e.first, s);
537
+ if (t != null && a != null)
538
+ return [t, a];
539
+ const [r, l] = S(e.last, s);
540
+ return [r, l];
541
+ }, E = (e, s) => {
542
+ if (e.key === s)
543
+ return e;
544
+ if (e.first == null || e.last == null)
545
+ return;
546
+ const t = E(e.first, s);
547
+ return t ?? E(e.last, s);
548
+ }, Jt = (e) => {
549
+ switch (e) {
692
550
  case "top":
693
551
  return ["first", "last", "y"];
694
552
  case "left":
@@ -700,49 +558,38 @@ const splitArrangement = (insertPosition) => {
700
558
  case "center":
701
559
  throw new Error("cannot split a center placed tab");
702
560
  }
703
- };
704
- const shallowCopyNode = (node) => external$h.copy(node);
705
- const use$2 = ({ allowRename = false, initialTree }) => {
706
- const [root, setRoot] = useState(initialTree);
707
- useEffect(() => setRoot(autoSelectTabs(initialTree)[0]), [initialTree]);
708
- const handleDrop = (key, tabKey, loc) => setRoot((r) => moveTab(r, tabKey, loc, key)[0]);
709
- const handleClose = (tabKey) => setRoot((r) => removeTab(r, tabKey)[0]);
710
- const handleSelect = (tabKey) => setRoot((r) => selectTab(r, tabKey));
711
- const handleResize = (key, size) => setRoot((r) => resizeNode(r, key, size));
712
- const handleRename = (tabKey, title) => setRoot((r) => renameTab(r, tabKey, title));
713
- return {
714
- root,
715
- onDrop: handleDrop,
716
- onClose: handleClose,
717
- onSelect: handleSelect,
718
- onResize: handleResize,
719
- onRename: allowRename ? handleRename : void 0
561
+ }, j = (e) => ns.copy(e), Qt = ({ allowRename: e = !1, initialTree: s }) => {
562
+ const [t, a] = Ne(s);
563
+ return De(() => a(L(s)[0]), [s]), {
564
+ root: t,
565
+ onDrop: (d, c, m) => a((b) => Me(b, c, m, d)[0]),
566
+ onClose: (d) => a((c) => K(c, d)[0]),
567
+ onSelect: (d) => a((c) => ze(c, d)),
568
+ onResize: (d, c) => a((m) => Pe(m, d, c)),
569
+ onRename: e ? (d, c) => a((m) => Le(m, d, c)) : void 0
720
570
  };
721
- };
722
- const external$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
571
+ }, Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
723
572
  __proto__: null,
724
- HAUL_CREATE_TYPE,
725
- HAUL_DROP_TYPE,
726
- Mosaic,
727
- autoSelectTabs,
728
- findSelected,
729
- insertTab,
730
- isEmpty,
731
- moveTab,
732
- removeTab,
733
- renameTab,
734
- resizeNode,
735
- selectTab,
736
- use: use$2
737
- }, Symbol.toStringTag, { value: "Module" }));
738
- const external$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
573
+ HAUL_CREATE_TYPE: Gs,
574
+ HAUL_DROP_TYPE: As,
575
+ Mosaic: Rs,
576
+ autoSelectTabs: L,
577
+ findSelected: O,
578
+ insertTab: we,
579
+ isEmpty: Wt,
580
+ moveTab: Me,
581
+ removeTab: K,
582
+ renameTab: Le,
583
+ resizeNode: Pe,
584
+ selectTab: ze,
585
+ use: Qt
586
+ }, Symbol.toStringTag, { value: "Module" })), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
739
587
  __proto__: null,
740
- Bar,
741
- Drawer,
742
- useDrawer
743
- }, Symbol.toStringTag, { value: "Module" }));
744
- const Icon = {
745
- Close: /* @__PURE__ */ jsxRuntimeExports.jsxs(
588
+ Bar: Zs,
589
+ Drawer: Hs,
590
+ useDrawer: Vs
591
+ }, Symbol.toStringTag, { value: "Module" })), D = {
592
+ Close: /* @__PURE__ */ n.jsxs(
746
593
  "svg",
747
594
  {
748
595
  width: "124",
@@ -751,7 +598,7 @@ const Icon = {
751
598
  fill: "none",
752
599
  xmlns: "http://www.w3.org/2000/svg",
753
600
  children: [
754
- /* @__PURE__ */ jsxRuntimeExports.jsx(
601
+ /* @__PURE__ */ n.jsx(
755
602
  "rect",
756
603
  {
757
604
  x: "26.8701",
@@ -762,7 +609,7 @@ const Icon = {
762
609
  fill: "#7E0508"
763
610
  }
764
611
  ),
765
- /* @__PURE__ */ jsxRuntimeExports.jsx(
612
+ /* @__PURE__ */ n.jsx(
766
613
  "rect",
767
614
  {
768
615
  x: "26.8701",
@@ -776,7 +623,7 @@ const Icon = {
776
623
  ]
777
624
  }
778
625
  ),
779
- Minimize: /* @__PURE__ */ jsxRuntimeExports.jsx(
626
+ Minimize: /* @__PURE__ */ n.jsx(
780
627
  "svg",
781
628
  {
782
629
  width: "87",
@@ -784,10 +631,10 @@ const Icon = {
784
631
  viewBox: "0 0 87 11",
785
632
  fill: "none",
786
633
  xmlns: "http://www.w3.org/2000/svg",
787
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "15", width: "60", height: "11", fill: "#985712" })
634
+ children: /* @__PURE__ */ n.jsx("rect", { x: "15", width: "60", height: "11", fill: "#985712" })
788
635
  }
789
636
  ),
790
- Maximize: /* @__PURE__ */ jsxRuntimeExports.jsxs(
637
+ Maximize: /* @__PURE__ */ n.jsxs(
791
638
  "svg",
792
639
  {
793
640
  width: "143",
@@ -796,14 +643,14 @@ const Icon = {
796
643
  fill: "none",
797
644
  xmlns: "http://www.w3.org/2000/svg",
798
645
  children: [
799
- /* @__PURE__ */ jsxRuntimeExports.jsx(
646
+ /* @__PURE__ */ n.jsx(
800
647
  "path",
801
648
  {
802
649
  d: "M108.242 32.8833C108.797 32.8817 109.247 33.3317 109.245 33.8862L109.092 87.5891C109.09 88.4786 108.014 88.9223 107.385 88.2933L53.8351 34.7432C53.2061 34.1142 53.6499 33.0387 54.5394 33.0361L108.242 32.8833Z",
803
650
  fill: "#0B650D"
804
651
  }
805
652
  ),
806
- /* @__PURE__ */ jsxRuntimeExports.jsx(
653
+ /* @__PURE__ */ n.jsx(
807
654
  "path",
808
655
  {
809
656
  d: "M33.8862 109.245C33.3317 109.247 32.8818 108.797 32.8833 108.242L33.0361 54.5394C33.0387 53.6499 34.1142 53.2061 34.7432 53.8351L88.2934 107.385C88.9223 108.014 88.4786 109.09 87.5891 109.092L33.8862 109.245Z",
@@ -813,276 +660,238 @@ const Icon = {
813
660
  ]
814
661
  }
815
662
  )
816
- };
817
- const MacOS = ({
818
- disabled = [],
819
- className,
820
- focused = true,
821
- onMinimize,
822
- onMaximize,
823
- onFullscreen,
824
- onClose,
825
- ...props
826
- }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
827
- Space,
663
+ }, qt = ({
664
+ disabled: e = [],
665
+ className: s,
666
+ focused: t = !0,
667
+ onMinimize: a,
668
+ onMaximize: r,
669
+ onFullscreen: l,
670
+ onClose: o,
671
+ ...i
672
+ }) => /* @__PURE__ */ n.jsxs(
673
+ k,
828
674
  {
829
675
  size: 1.5,
830
676
  direction: "x",
831
- className: CSS(
832
- CSS.B("macos-controls"),
833
- !focused && CSS.BM("macos-controls", "blurred"),
834
- className
677
+ className: p(
678
+ p.B("macos-controls"),
679
+ !t && p.BM("macos-controls", "blurred"),
680
+ s
835
681
  ),
836
- ...props,
682
+ ...i,
837
683
  children: [
838
- /* @__PURE__ */ jsxRuntimeExports.jsx(
839
- TrafficLight,
684
+ /* @__PURE__ */ n.jsx(
685
+ G,
840
686
  {
841
- onClick: onClose,
842
- className: CSS.BM("macos-control", "close"),
843
- disabled: disabled.includes("close"),
844
- children: Icon.Close
687
+ onClick: o,
688
+ className: p.BM("macos-control", "close"),
689
+ disabled: e.includes("close"),
690
+ children: D.Close
845
691
  }
846
692
  ),
847
- /* @__PURE__ */ jsxRuntimeExports.jsx(
848
- TrafficLight,
693
+ /* @__PURE__ */ n.jsx(
694
+ G,
849
695
  {
850
- onClick: onMinimize,
851
- className: CSS.BM("macos-control", "minimize"),
852
- disabled: disabled.includes("minimize"),
853
- children: Icon.Minimize
696
+ onClick: a,
697
+ className: p.BM("macos-control", "minimize"),
698
+ disabled: e.includes("minimize"),
699
+ children: D.Minimize
854
700
  }
855
701
  ),
856
- /* @__PURE__ */ jsxRuntimeExports.jsx(
857
- TrafficLight,
702
+ /* @__PURE__ */ n.jsx(
703
+ G,
858
704
  {
859
- onClick: onFullscreen,
860
- className: CSS.BM("macos-control", "maximize"),
861
- disabled: disabled.includes("maximize"),
862
- children: Icon.Maximize
705
+ onClick: l,
706
+ className: p.BM("macos-control", "maximize"),
707
+ disabled: e.includes("maximize"),
708
+ children: D.Maximize
863
709
  }
864
710
  )
865
711
  ]
866
712
  }
867
- );
868
- const TrafficLight = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
713
+ ), G = ({ className: e, ...s }) => /* @__PURE__ */ n.jsx(
869
714
  "button",
870
715
  {
871
- className: CSS(CSS.B("macos-control"), className),
716
+ className: p(p.B("macos-control"), e),
872
717
  tabIndex: -1,
873
718
  size: "",
874
- ...props
719
+ ...s
875
720
  }
876
- );
877
- const Windows = ({
878
- disabled = [],
879
- onMinimize,
880
- onMaximize,
881
- onClose,
721
+ ), A = ({
722
+ disabled: e = [],
723
+ onMinimize: s,
724
+ onMaximize: t,
725
+ onClose: a,
882
726
  // no-op on windows
883
- onFullscreen: _,
884
- ...props
885
- }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Pack, { ...props, children: [
886
- /* @__PURE__ */ jsxRuntimeExports.jsx(
887
- Button,
727
+ onFullscreen: r,
728
+ ...l
729
+ }) => /* @__PURE__ */ n.jsxs(fs, { ...l, children: [
730
+ /* @__PURE__ */ n.jsx(
731
+ R,
888
732
  {
889
- className: CSS.BM("windows-control", "minimize"),
890
- onClick: onMinimize,
891
- disabled: disabled.includes("minimize"),
892
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Subtract, {})
733
+ className: p.BM("windows-control", "minimize"),
734
+ onClick: s,
735
+ disabled: e.includes("minimize"),
736
+ children: /* @__PURE__ */ n.jsx(x.Subtract, {})
893
737
  }
894
738
  ),
895
- /* @__PURE__ */ jsxRuntimeExports.jsx(
896
- Button,
739
+ /* @__PURE__ */ n.jsx(
740
+ R,
897
741
  {
898
- className: CSS.BM("windows-control", "maximize"),
899
- onClick: onMaximize,
900
- disabled: disabled.includes("maximize"),
901
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Box, {})
742
+ className: p.BM("windows-control", "maximize"),
743
+ onClick: t,
744
+ disabled: e.includes("maximize"),
745
+ children: /* @__PURE__ */ n.jsx(x.Box, {})
902
746
  }
903
747
  ),
904
- /* @__PURE__ */ jsxRuntimeExports.jsx(
905
- Button,
748
+ /* @__PURE__ */ n.jsx(
749
+ R,
906
750
  {
907
- onClick: onClose,
908
- className: CSS.BM("windows-control", "close"),
909
- disabled: disabled.includes("close"),
910
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Close, {})
751
+ onClick: a,
752
+ className: p.BM("windows-control", "close"),
753
+ disabled: e.includes("close"),
754
+ children: /* @__PURE__ */ n.jsx(x.Close, {})
911
755
  }
912
756
  )
913
- ] });
914
- const Button = ({
915
- disabled = false,
916
- className,
917
- ...props
918
- }) => !disabled ? /* @__PURE__ */ jsxRuntimeExports.jsx(
919
- Icon$2,
757
+ ] }), R = ({
758
+ disabled: e = !1,
759
+ className: s,
760
+ ...t
761
+ }) => e ? null : /* @__PURE__ */ n.jsx(
762
+ X,
920
763
  {
921
- className: CSS(CSS.B("windows-control"), className),
764
+ className: p(p.B("windows-control"), s),
922
765
  tabIndex: -1,
923
- ...props
766
+ ...t
924
767
  }
925
- ) : null;
926
- const use$1 = (props) => external$1$1.getOS(props);
927
- const Variants = {
928
- MacOS,
929
- Windows,
930
- Linux: Windows,
931
- Docker: Windows
932
- };
933
- const DEFAULT_OS = "Windows";
934
- const Controls = ({
935
- forceOS,
936
- visibleIfOS,
937
- ...props
768
+ ), Ee = (e) => rs.getOS(e), ea = {
769
+ MacOS: qt,
770
+ Windows: A,
771
+ Linux: A,
772
+ Docker: A
773
+ }, sa = "Windows", ta = ({
774
+ forceOS: e,
775
+ visibleIfOS: s,
776
+ ...t
938
777
  }) => {
939
- const os = use$1({ force: forceOS, default: DEFAULT_OS });
940
- const C = Variants[os];
941
- if (visibleIfOS != null && visibleIfOS !== os)
942
- return null;
943
- return /* @__PURE__ */ jsxRuntimeExports.jsx(C, { ...props });
944
- };
945
- const external$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
778
+ const a = Ee({ force: e, default: sa }), r = ea[a];
779
+ return s != null && s !== a ? null : /* @__PURE__ */ n.jsx(r, { ...t });
780
+ }, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
946
781
  __proto__: null,
947
- Controls,
948
- use: use$1
949
- }, Symbol.toStringTag, { value: "Module" }));
950
- const alignNodes = (layouts, dir = "x") => {
951
- if (layouts.length === 0)
782
+ Controls: ta,
783
+ use: Ee
784
+ }, Symbol.toStringTag, { value: "Module" })), aa = (e, s = "x") => {
785
+ if (e.length === 0)
952
786
  return [];
953
- const loc = location.construct(dir);
954
- const oppositeLoc = location.swap(loc);
955
- layouts.sort((a, b) => box$1.loc(a.box, loc) - box$1.loc(b.box, loc));
956
- layouts.forEach((layout, i) => {
957
- if (i === 0)
787
+ const t = P.construct(s), a = P.swap(t);
788
+ return e.sort((r, l) => y.loc(r.box, t) - y.loc(l.box, t)), e.forEach((r, l) => {
789
+ if (l === 0)
958
790
  return;
959
- const prev = layouts[i - 1];
960
- const prevRightHandle = prev.handles.find((h2) => h2.orientation === oppositeLoc);
961
- const leftHandle = layout.handles.find((h2) => h2.orientation === loc);
962
- if (prevRightHandle == null || leftHandle == null)
791
+ const i = e[l - 1].handles.find((f) => f.orientation === a), u = r.handles.find((f) => f.orientation === t);
792
+ if (i == null || u == null)
963
793
  return;
964
- const prevHandleAbsPos = prevRightHandle.absolutePosition;
965
- const leftHandleAbsPos = leftHandle.absolutePosition;
966
- const dist = xy.set(xy.translation(leftHandleAbsPos, prevHandleAbsPos), dir, 0);
967
- const newPos = xy.translate(box$1.topLeft(layout.box), dist);
968
- layout.box = box$1.construct(newPos, box$1.dims(layout.box));
969
- });
970
- return layouts;
971
- };
972
- const external$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
794
+ const d = i.absolutePosition, c = u.absolutePosition, m = B.set(B.translation(c, d), s, 0), b = B.translate(y.topLeft(r.box), m);
795
+ r.box = y.construct(b, y.dims(r.box));
796
+ }), e;
797
+ }, Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
973
798
  __proto__: null,
974
- Background,
975
- Controls: Controls$1,
976
- Diagram,
977
- FitViewControl,
978
- HandleLayout,
979
- NodeLayout,
980
- NodeRenderer,
981
- ToggleEditControl,
982
- alignNodes,
983
- selectNode,
984
- selectNodeBox,
985
- selectNodeLayout,
986
- use: use$4,
987
- useContext: useContext$3
988
- }, Symbol.toStringTag, { value: "Module" }));
989
- const use = ({
990
- aetherKey,
991
- ...props
992
- }) => use$5({
993
- aetherKey,
994
- type: Table.TYPE,
995
- schema: tableStateZ,
996
- initialState: props
997
- });
998
- const external$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
799
+ Background: Fs,
800
+ Controls: Xs,
801
+ Diagram: Ys,
802
+ FitViewControl: Us,
803
+ HandleLayout: Ws,
804
+ NodeLayout: Ks,
805
+ NodeRenderer: Js,
806
+ ToggleEditControl: Qs,
807
+ alignNodes: aa,
808
+ selectNode: qs,
809
+ selectNodeBox: et,
810
+ selectNodeLayout: st,
811
+ use: tt,
812
+ useContext: at
813
+ }, Symbol.toStringTag, { value: "Module" })), na = ({
814
+ aetherKey: e,
815
+ ...s
816
+ }) => Je({
817
+ aetherKey: e,
818
+ type: Tt.TYPE,
819
+ schema: _t,
820
+ initialState: s
821
+ }), Ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
999
822
  __proto__: null,
1000
- StringTD,
1001
- TR,
1002
- Table: Table$1,
1003
- use
1004
- }, Symbol.toStringTag, { value: "Module" }));
1005
- const external$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
823
+ StringTD: nt,
824
+ TR: rt,
825
+ Table: lt,
826
+ use: na
827
+ }, Symbol.toStringTag, { value: "Module" })), Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
828
  __proto__: null,
1007
- LabelSpec,
1008
- REGISTRY,
1009
- initialProps
1010
- }, Symbol.toStringTag, { value: "Module" }));
1011
- const external$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
829
+ LabelSpec: ot,
830
+ REGISTRY: it,
831
+ initialProps: ct
832
+ }, Symbol.toStringTag, { value: "Module" })), Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1012
833
  __proto__: null,
1013
- corePropsZ,
1014
- use: use$6
1015
- }, Symbol.toStringTag, { value: "Module" }));
1016
- const external$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
834
+ corePropsZ: ut,
835
+ use: dt
836
+ }, Symbol.toStringTag, { value: "Module" })), Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1017
837
  __proto__: null,
1018
- Chip,
1019
- Controller,
1020
- Indicator,
1021
- Legend: Legend$1,
1022
- StateProvider,
1023
- useContext: useContext$4
1024
- }, Symbol.toStringTag, { value: "Module" }));
1025
- const DefaultWorkerURL = "data:video/mp2t;base64,Ly8gQ29weXJpZ2h0IDIwMjMgU3lubmF4IExhYnMsIEluYy4KLy8KLy8gVXNlIG9mIHRoaXMgc29mdHdhcmUgaXMgZ292ZXJuZWQgYnkgdGhlIEJ1c2luZXNzIFNvdXJjZSBMaWNlbnNlIGluY2x1ZGVkIGluIHRoZSBmaWxlCi8vIGxpY2Vuc2VzL0JTTC50eHQuCi8vCi8vIEFzIG9mIHRoZSBDaGFuZ2UgRGF0ZSBzcGVjaWZpZWQgaW4gdGhhdCBmaWxlLCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEJ1c2luZXNzIFNvdXJjZQovLyBMaWNlbnNlLCB1c2Ugb2YgdGhpcyBzb2Z0d2FyZSB3aWxsIGJlIGdvdmVybmVkIGJ5IHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAsCi8vIGluY2x1ZGVkIGluIHRoZSBmaWxlIGxpY2Vuc2VzL0FQTC50eHQuCgppbXBvcnQgeyBwbHV0byB9IGZyb20gIkAvcGx1dG8vYWV0aGVyIjsKCnBsdXRvLnJlbmRlcigpOwo=";
1026
- const Provider = ({
1027
- children,
1028
- connParams,
1029
- workerEnabled = true,
1030
- workerURL,
1031
- theme,
1032
- toggleTheme,
1033
- setTheme,
1034
- tooltip,
1035
- triggers,
1036
- alamos,
1037
- haul,
1038
- channelAlias
1039
- }) => {
1040
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$1, { ...triggers, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Config, { ...tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$2, { ...haul, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$3, { url: workerURL ?? DefaultWorkerURL, enabled: workerEnabled, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$4, { workerKey: "vis", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$5, { ...alamos, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Aggregator, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$6, { connParams, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AliasProvider, { ...channelAlias, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider$7, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1041
- Provider$8,
1042
- {
1043
- theme,
1044
- toggleTheme,
1045
- setTheme,
1046
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(StateProvider, { children })
1047
- }
1048
- ) }) }) }) }) }) }) }) }) }) });
1049
- };
1050
- const Pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
838
+ Chip: mt,
839
+ Controller: ft,
840
+ Indicator: pt,
841
+ Legend: xt,
842
+ StateProvider: he,
843
+ useContext: bt
844
+ }, Symbol.toStringTag, { value: "Module" })), ra = "data:video/mp2t;base64,Ly8gQ29weXJpZ2h0IDIwMjMgU3lubmF4IExhYnMsIEluYy4KLy8KLy8gVXNlIG9mIHRoaXMgc29mdHdhcmUgaXMgZ292ZXJuZWQgYnkgdGhlIEJ1c2luZXNzIFNvdXJjZSBMaWNlbnNlIGluY2x1ZGVkIGluIHRoZSBmaWxlCi8vIGxpY2Vuc2VzL0JTTC50eHQuCi8vCi8vIEFzIG9mIHRoZSBDaGFuZ2UgRGF0ZSBzcGVjaWZpZWQgaW4gdGhhdCBmaWxlLCBpbiBhY2NvcmRhbmNlIHdpdGggdGhlIEJ1c2luZXNzIFNvdXJjZQovLyBMaWNlbnNlLCB1c2Ugb2YgdGhpcyBzb2Z0d2FyZSB3aWxsIGJlIGdvdmVybmVkIGJ5IHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAsCi8vIGluY2x1ZGVkIGluIHRoZSBmaWxlIGxpY2Vuc2VzL0FQTC50eHQuCgppbXBvcnQgeyBwbHV0byB9IGZyb20gIkAvcGx1dG8vYWV0aGVyIjsKCnBsdXRvLnJlbmRlcigpOwo=", la = ({
845
+ children: e,
846
+ connParams: s,
847
+ workerEnabled: t = !0,
848
+ workerURL: a,
849
+ theme: r,
850
+ toggleTheme: l,
851
+ setTheme: o,
852
+ tooltip: i,
853
+ triggers: u,
854
+ alamos: d,
855
+ haul: c,
856
+ channelAlias: m
857
+ }) => /* @__PURE__ */ n.jsx(Qe, { ...u, children: /* @__PURE__ */ n.jsx(le, { ...i, children: /* @__PURE__ */ n.jsx(qe, { ...c, children: /* @__PURE__ */ n.jsx(es, { url: a ?? ra, enabled: t, children: /* @__PURE__ */ n.jsx(ss, { workerKey: "vis", children: /* @__PURE__ */ n.jsx(gt, { ...d, children: /* @__PURE__ */ n.jsx(re, { children: /* @__PURE__ */ n.jsx(yt, { connParams: s, children: /* @__PURE__ */ n.jsx(je, { ...m, children: /* @__PURE__ */ n.jsx(jt, { children: /* @__PURE__ */ n.jsx(
858
+ ts,
859
+ {
860
+ theme: r,
861
+ toggleTheme: l,
862
+ setTheme: o,
863
+ children: /* @__PURE__ */ n.jsx(he, { children: e })
864
+ }
865
+ ) }) }) }) }) }) }) }) }) }) }), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1051
866
  __proto__: null,
1052
- Provider
1053
- }, Symbol.toStringTag, { value: "Module" }));
1054
- const TimeRangeChip = ({ timeRange }) => {
1055
- const startTS = new TimeStamp(timeRange.start);
1056
- const startFormat = startTS.isToday ? "time" : "dateTime";
1057
- const endTS = new TimeStamp(timeRange.end);
1058
- const isOpen = endTS.equals(TimeStamp.MAX);
1059
- const endFormat = endTS.span(startTS) < TimeSpan.DAY ? "time" : "dateTime";
1060
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1061
- Space,
867
+ Provider: la
868
+ }, Symbol.toStringTag, { value: "Module" })), oa = ({ timeRange: e }) => {
869
+ const s = new N(e.start), t = s.isToday ? "time" : "dateTime", a = new N(e.end), r = a.equals(N.MAX), l = a.span(s) < ls.DAY ? "time" : "dateTime";
870
+ return /* @__PURE__ */ n.jsxs(
871
+ k,
1062
872
  {
1063
873
  direction: "x",
1064
874
  size: "small",
1065
- className: CSS(CSS.B("time-range-chip")),
875
+ className: p(p.B("time-range-chip")),
1066
876
  align: "center",
1067
877
  children: [
1068
- startTS.isToday && /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: "Today" }),
1069
- /* @__PURE__ */ jsxRuntimeExports.jsx(DateTime, { level: "small", displayTZ: "local", format: startFormat, children: startTS }),
1070
- /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Arrow.Right, { color: "var(--pluto-text-color)" }),
1071
- isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { level: "small", children: "Now" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DateTime, { level: "small", displayTZ: "local", format: endFormat, children: endTS })
878
+ s.isToday && /* @__PURE__ */ n.jsx(Z, { level: "small", children: "Today" }),
879
+ /* @__PURE__ */ n.jsx(Q, { level: "small", displayTZ: "local", format: t, children: s }),
880
+ /* @__PURE__ */ n.jsx(x.Arrow.Right, { color: "var(--pluto-text-color)" }),
881
+ r ? /* @__PURE__ */ n.jsx(Z, { level: "small", children: "Now" }) : /* @__PURE__ */ n.jsx(Q, { level: "small", displayTZ: "local", format: l, children: a })
1072
882
  ]
1073
883
  }
1074
884
  );
1075
- };
1076
- const labelColumns = [
885
+ }, ia = [
1077
886
  {
1078
887
  key: "color",
1079
888
  name: "Color",
1080
889
  width: 50,
1081
- render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1082
- Icon$1.Circle,
890
+ render: (e) => /* @__PURE__ */ n.jsx(
891
+ x.Circle,
1083
892
  {
1084
893
  style: { fontSize: 10, marginLeft: 10, marginRight: 30 },
1085
- color: v.entry.color
894
+ color: e.entry.color
1086
895
  }
1087
896
  )
1088
897
  },
@@ -1090,93 +899,91 @@ const labelColumns = [
1090
899
  key: "name",
1091
900
  name: "Name"
1092
901
  }
1093
- ];
1094
- const SelectLabels = (props) => {
1095
- const client = use$7();
1096
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
1097
- Multiple$1,
902
+ ], ca = (e) => {
903
+ const s = ht();
904
+ return /* @__PURE__ */ n.jsx(
905
+ fe,
1098
906
  {
1099
- ...props,
1100
- searcher: client == null ? void 0 : client.labels,
1101
- columns: labelColumns,
1102
- renderTag: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, { color: v.entry.color, children: v.entry.name })
907
+ ...e,
908
+ searcher: s == null ? void 0 : s.labels,
909
+ columns: ia,
910
+ renderTag: (t) => /* @__PURE__ */ n.jsx(St, { color: t.entry.color, children: t.entry.name })
1103
911
  }
1104
912
  );
1105
- };
1106
- const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
913
+ }, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1107
914
  __proto__: null,
1108
- SelectLabels,
1109
- TimeRangeChip
915
+ SelectLabels: ca,
916
+ TimeRangeChip: oa
1110
917
  }, Symbol.toStringTag, { value: "Module" }));
1111
918
  export {
1112
- Accordion$1 as Accordion,
1113
- an as Aether,
1114
- e2 as Align,
1115
- e3 as Button,
1116
- CSS,
1117
- aC2 as Canvas,
1118
- external$9 as Channel,
1119
- external$f as Color,
1120
- external$1 as Control,
1121
- external$5 as Diagram,
1122
- ao as Divider,
1123
- D as Dropdown,
1124
- aI as Eraser,
1125
- G as Generic,
1126
- ap as Haul,
1127
- e as Header,
1128
- e4 as Input,
1129
- aD2 as Line,
1130
- external$a as LinePlot,
1131
- e5 as List,
1132
- aE2 as Measure,
1133
- e6 as Menu,
1134
- external$8 as Mosaic,
1135
- external$7 as Nav,
1136
- external$6 as OS,
1137
- aG as PID,
1138
- Pluto,
1139
- external as Ranger,
1140
- external$d as Resize,
1141
- aF as Rule,
1142
- external$c as Select,
1143
- external$g as Status,
1144
- aA2 as Synnax,
1145
- external$4 as Table,
1146
- external$3 as TableCell,
1147
- e7 as Tabs,
1148
- aB2 as Tag,
1149
- aH as Telem,
1150
- e8 as Text,
1151
- e9 as Theming,
1152
- external$e as Tooltip,
1153
- T as Tree,
1154
- e10 as Triggers,
1155
- external$2 as Value,
1156
- V as Video,
1157
- external$b as Viewport,
1158
- aq as Worker,
1159
- au as compareArrayDeps,
1160
- aD as componentRenderProp,
1161
- aK as createFilterTransform,
1162
- as as createHexOpacityVariants,
1163
- aJ as fuseFilter,
1164
- aE as isRenderProp,
1165
- n as newBEM,
1166
- h as state,
1167
- e11 as telem,
1168
- ar as unitProperty,
1169
- aw as useAsyncEffect,
1170
- a2 as useClickOutside,
1171
- aB as useCombinedRefs,
1172
- aC as useCombinedStateAndRef,
1173
- aM as useDebouncedCallback,
1174
- ax as useEffectCompare,
1175
- at as useMemoCompare,
1176
- av as useMemoDeepEqualProps,
1177
- ay as useResize,
1178
- az as useStateRef,
1179
- aA as useSyncedRef,
1180
- aL as useTransforms
919
+ Ga as Accordion,
920
+ tn as Aether,
921
+ Fn as Align,
922
+ Yn as Button,
923
+ p as CSS,
924
+ On as Canvas,
925
+ Ha as Channel,
926
+ Wn as Color,
927
+ Ja as Control,
928
+ Ya as Diagram,
929
+ an as Divider,
930
+ nn as Dropdown,
931
+ En as Eraser,
932
+ Pn as Generic,
933
+ rn as Haul,
934
+ vn as Header,
935
+ er as Input,
936
+ Cn as Line,
937
+ Za as LinePlot,
938
+ tr as List,
939
+ kn as Measure,
940
+ nr as Menu,
941
+ Va as Mosaic,
942
+ Fa as Nav,
943
+ Xa as OS,
944
+ In as PID,
945
+ Qa as Pluto,
946
+ qa as Ranger,
947
+ Da as Resize,
948
+ $n as Rule,
949
+ Aa as Select,
950
+ Ba as Status,
951
+ Bn as Synnax,
952
+ Ua as Table,
953
+ Wa as TableCell,
954
+ lr as Tabs,
955
+ Nn as Tag,
956
+ Dn as Telem,
957
+ ir as Text,
958
+ ur as Theming,
959
+ Na as Tooltip,
960
+ Gn as Tree,
961
+ mr as Triggers,
962
+ Ka as Value,
963
+ pr as Video,
964
+ Ra as Viewport,
965
+ ln as Worker,
966
+ on as compareArrayDeps,
967
+ cn as componentRenderProp,
968
+ An as createFilterTransform,
969
+ Jn as createHexOpacityVariants,
970
+ Rn as fuseFilter,
971
+ un as isRenderProp,
972
+ Tn as newBEM,
973
+ zn as state,
974
+ br as telem,
975
+ Qn as unitProperty,
976
+ dn as useAsyncEffect,
977
+ mn as useClickOutside,
978
+ fn as useCombinedRefs,
979
+ pn as useCombinedStateAndRef,
980
+ Zn as useDebouncedCallback,
981
+ xn as useEffectCompare,
982
+ bn as useMemoCompare,
983
+ gn as useMemoDeepEqualProps,
984
+ yn as useResize,
985
+ jn as useStateRef,
986
+ hn as useSyncedRef,
987
+ Hn as useTransforms
1181
988
  };
1182
989
  //# sourceMappingURL=index.js.map