@synnaxlabs/pluto 0.40.1 → 0.42.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 (569) hide show
  1. package/dist/{Center-CFEPOi_x.js → Center-CNcAEDgS.js} +3 -3
  2. package/dist/Center-Map6aflE.cjs +1 -0
  3. package/dist/ContextMenu-DmRPxhnI.cjs +1 -0
  4. package/dist/ContextMenu-fLU0wr9S.js +95 -0
  5. package/dist/DateTime-CP3OmEGY.cjs +1 -0
  6. package/dist/{DateTime-Djw6pb3W.js → DateTime-CWAcEwXO.js} +2 -2
  7. package/dist/{Divider-CMyzWvRC.js → Divider-BTLn5ucU.js} +597 -512
  8. package/dist/Divider-Dvb6dsgX.cjs +22 -0
  9. package/dist/Dropdown-CaGzfZRa.cjs +1 -0
  10. package/dist/Dropdown-nw8kRSbl.js +327 -0
  11. package/dist/Haul-B8zGWk0I.cjs +1 -0
  12. package/dist/{Haul-CaLW9ULm.js → Haul-Cnuzk7Z-.js} +34 -35
  13. package/dist/Item-BzrQqxRC.cjs +1 -0
  14. package/dist/Item-FmwC-twg.js +109 -0
  15. package/dist/Keyboard-BfvjkBgh.cjs +1 -0
  16. package/dist/{Keyboard--YA9DHRz.js → Keyboard-Cevv7vrQ.js} +11 -9
  17. package/dist/{Link-Bhto2KVL.cjs → Link-DI7BZ5dL.cjs} +1 -1
  18. package/dist/{Link-BT_Kwmlr.js → Link-Dljdu4e9.js} +1 -1
  19. package/dist/Pack-lJqoOmHx.cjs +1 -0
  20. package/dist/Pack-to0DG2iP.js +48 -0
  21. package/dist/Provider-BlM1x1cF.cjs +1 -0
  22. package/dist/Provider-C_B463cg.js +461 -0
  23. package/dist/Space-C2oZDkE1.js +100 -0
  24. package/dist/Space-DfcVsxz8.cjs +1 -0
  25. package/dist/Text-BXADoWYY.js +137 -0
  26. package/dist/Text-BiYpGaEZ.js +35 -0
  27. package/dist/Text-BjHlLKsp.cjs +1 -0
  28. package/dist/{Text-B7AC8Z1e.js → Text-CWiPrDI1.js} +320 -308
  29. package/dist/Text-DrIBbnml.cjs +1 -0
  30. package/dist/Text-ZJqK1cI3.cjs +4 -0
  31. package/dist/Toggle-CeUVv58o.js +377 -0
  32. package/dist/Toggle-CfwYy9fe.cjs +1 -0
  33. package/dist/{Video-TjJf_tXI.js → Video-BZ1XTEez.js} +1 -1
  34. package/dist/{Video-hdvNT3La.cjs → Video-C7YoF37-.cjs} +1 -1
  35. package/dist/WithIcon-DG7VJxsE.cjs +1 -0
  36. package/dist/WithIcon-pBZ7H9Lq.js +98 -0
  37. package/dist/align.cjs +1 -1
  38. package/dist/align.js +1 -1
  39. package/dist/button.cjs +1 -1
  40. package/dist/button.js +1 -1
  41. package/dist/color.cjs +1 -1
  42. package/dist/color.js +1 -1
  43. package/dist/css-B7c7_G5h.js +4746 -0
  44. package/dist/css-hg3QdDDt.cjs +15 -0
  45. package/dist/css.cjs +1 -1
  46. package/dist/css.js +2 -2
  47. package/dist/deep-B1etRzze.cjs +1 -0
  48. package/dist/deep-BytImVW-.js +102 -0
  49. package/dist/dimensions-Cz-q0Mok.cjs +1 -0
  50. package/dist/dimensions-DcjW7X3n.js +19 -0
  51. package/dist/dropdown.cjs +1 -1
  52. package/dist/dropdown.js +1 -1
  53. package/dist/eraser-BOx6Xhwn.cjs +11 -0
  54. package/dist/eraser-Bsb4kKS3.js +1148 -0
  55. package/dist/ether.cjs +1 -1
  56. package/dist/ether.js +68 -75
  57. package/dist/{external-DTjOTICM.js → external-1KJXZcr9.js} +2 -2
  58. package/dist/{external-dLVcM8tt.cjs → external-BHHC7TQ_.cjs} +1 -1
  59. package/dist/external-BLEs2AYM.cjs +46 -0
  60. package/dist/external-BdVuZd3H.cjs +1 -0
  61. package/dist/external-BiBhgCdz.cjs +1 -0
  62. package/dist/external-C75Z9Zbn.cjs +1 -0
  63. package/dist/external-CEfSeJMr.js +432 -0
  64. package/dist/external-CLTPcWrI.cjs +1 -0
  65. package/dist/{external-C3e9emVy.js → external-CRNR1bD0.js} +29 -28
  66. package/dist/{external-D_21zZAf.cjs → external-Cfj1plcw.cjs} +1 -1
  67. package/dist/{external-B9nbHICv.js → external-Ck1rVwUu.js} +3263 -3285
  68. package/dist/external-Cni9ftkW.cjs +1 -0
  69. package/dist/external-DCcp3sQD.js +28 -0
  70. package/dist/{external-Cs8oKwvw.cjs → external-DCfs7IFi.cjs} +1 -1
  71. package/dist/external-DDD_nc3x.js +400 -0
  72. package/dist/external-DNT-gmZx.cjs +1 -0
  73. package/dist/{external-CcIx4j5m.js → external-DeCeUbqe.js} +18 -17
  74. package/dist/{external-DCflyFdb.js → external-DgSaeiBz.js} +3 -3
  75. package/dist/{external-ClyfPgqG.cjs → external-DhfASB4W.cjs} +37 -37
  76. package/dist/{external-upiAayc4.js → external-bkwgRzLc.js} +29 -29
  77. package/dist/{external-_b4lTCfZ.js → external-hgzjVlDR.js} +2171 -2184
  78. package/dist/external-pUEPQrp_.cjs +1 -0
  79. package/dist/{external-D12g_huj.js → external-qwaFowDe.js} +14 -14
  80. package/dist/{external-JNlv7kxI.js → external-sUHGRdqd.js} +2 -2
  81. package/dist/{font-Bas26Jn-.cjs → font-BFTKtIQk.cjs} +1 -1
  82. package/dist/{font-CcRdsA3n.js → font-Crn-D_ua.js} +2 -2
  83. package/dist/fontString-DQLaRHQV.cjs +1 -0
  84. package/dist/fontString-DjnDxFrE.js +28 -0
  85. package/dist/header.cjs +1 -1
  86. package/dist/header.js +1 -1
  87. package/dist/hooks-CM9HWxYc.js +296 -0
  88. package/dist/hooks-CTKCi-OE.cjs +1 -0
  89. package/dist/index.cjs +7 -7
  90. package/dist/index.js +10618 -9594
  91. package/dist/input.cjs +1 -1
  92. package/dist/input.js +1 -1
  93. package/dist/list.cjs +1 -1
  94. package/dist/list.js +1 -1
  95. package/dist/menu.cjs +1 -1
  96. package/dist/menu.js +1 -1
  97. package/dist/pluto.css +1 -1
  98. package/dist/provider-BDFfcHVT.js +12851 -0
  99. package/dist/provider-XPRFhwnl.cjs +58 -0
  100. package/dist/src/aether/aether/aether.d.ts +17 -18
  101. package/dist/src/aether/aether/aether.d.ts.map +1 -1
  102. package/dist/src/aether/aether/aether.spec.spec.d.ts +1 -5
  103. package/dist/src/aether/aether/aether.spec.spec.d.ts.map +1 -1
  104. package/dist/src/aether/main.d.ts +48 -0
  105. package/dist/src/aether/main.d.ts.map +1 -1
  106. package/dist/src/aether/main.spec.d.ts +1 -5
  107. package/dist/src/aether/main.spec.d.ts.map +1 -1
  108. package/dist/src/aether/message.d.ts +11 -1
  109. package/dist/src/aether/message.d.ts.map +1 -1
  110. package/dist/src/alamos/aether/alamos.d.ts +19 -25
  111. package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
  112. package/dist/src/align/Center.d.ts +2 -2
  113. package/dist/src/align/Center.d.ts.map +1 -1
  114. package/dist/src/align/Pack.d.ts +3 -3
  115. package/dist/src/align/Pack.d.ts.map +1 -1
  116. package/dist/src/align/Space.d.ts +25 -10
  117. package/dist/src/align/Space.d.ts.map +1 -1
  118. package/dist/src/align/Stack.d.ts +7 -0
  119. package/dist/src/align/Stack.d.ts.map +1 -0
  120. package/dist/src/align/external.d.ts +1 -0
  121. package/dist/src/align/external.d.ts.map +1 -1
  122. package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -2
  123. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  124. package/dist/src/button/Button.d.ts +4 -6
  125. package/dist/src/button/Button.d.ts.map +1 -1
  126. package/dist/src/button/Icon.d.ts +4 -1
  127. package/dist/src/button/Icon.d.ts.map +1 -1
  128. package/dist/src/button/Toggle.d.ts +0 -1
  129. package/dist/src/button/Toggle.d.ts.map +1 -1
  130. package/dist/src/button/color.d.ts +2 -2
  131. package/dist/src/button/color.d.ts.map +1 -1
  132. package/dist/src/caret/Animated.d.ts +3 -2
  133. package/dist/src/caret/Animated.d.ts.map +1 -1
  134. package/dist/src/channel/LinePlot.d.ts +5 -5
  135. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  136. package/dist/src/channel/Select.d.ts +3 -3
  137. package/dist/src/channel/Select.d.ts.map +1 -1
  138. package/dist/src/color/BaseSwatch.d.ts +3 -3
  139. package/dist/src/color/BaseSwatch.d.ts.map +1 -1
  140. package/dist/src/color/GradientPicker.d.ts +1 -2
  141. package/dist/src/color/GradientPicker.d.ts.map +1 -1
  142. package/dist/src/color/Picker.d.ts +1 -1
  143. package/dist/src/color/Picker.d.ts.map +1 -1
  144. package/dist/src/color/Provider.d.ts +8 -100
  145. package/dist/src/color/Provider.d.ts.map +1 -1
  146. package/dist/src/color/external.d.ts +0 -4
  147. package/dist/src/color/external.d.ts.map +1 -1
  148. package/dist/src/css/color.d.ts +2 -2
  149. package/dist/src/css/color.d.ts.map +1 -1
  150. package/dist/src/css/css.d.ts +2 -1
  151. package/dist/src/css/css.d.ts.map +1 -1
  152. package/dist/src/divider/Divider.d.ts +6 -5
  153. package/dist/src/divider/Divider.d.ts.map +1 -1
  154. package/dist/src/dropdown/Dropdown.d.ts +2 -1
  155. package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
  156. package/dist/src/ether.d.ts +0 -1
  157. package/dist/src/ether.d.ts.map +1 -1
  158. package/dist/src/form/Form.d.ts +1 -1
  159. package/dist/src/form/Form.d.ts.map +1 -1
  160. package/dist/src/generic/Generic.d.ts +4 -5
  161. package/dist/src/generic/Generic.d.ts.map +1 -1
  162. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  163. package/dist/src/haul/Haul.d.ts +7 -63
  164. package/dist/src/haul/Haul.d.ts.map +1 -1
  165. package/dist/src/hooks/useResize.d.ts.map +1 -1
  166. package/dist/src/icon/Icon.d.ts.map +1 -1
  167. package/dist/src/index.d.ts +1 -0
  168. package/dist/src/index.d.ts.map +1 -1
  169. package/dist/src/input/DateTime.d.ts.map +1 -1
  170. package/dist/src/input/Item.d.ts +1 -1
  171. package/dist/src/input/Item.d.ts.map +1 -1
  172. package/dist/src/input/Text.d.ts +4 -4
  173. package/dist/src/input/Text.d.ts.map +1 -1
  174. package/dist/src/input/types.d.ts +0 -1
  175. package/dist/src/input/types.d.ts.map +1 -1
  176. package/dist/src/list/Column.d.ts +3 -3
  177. package/dist/src/list/Column.d.ts.map +1 -1
  178. package/dist/src/list/Core.d.ts +1 -1
  179. package/dist/src/list/Core.d.ts.map +1 -1
  180. package/dist/src/list/Hover.d.ts +3 -2
  181. package/dist/src/list/Hover.d.ts.map +1 -1
  182. package/dist/src/list/Item.d.ts +1 -1
  183. package/dist/src/list/Item.d.ts.map +1 -1
  184. package/dist/src/main.d.ts.map +1 -1
  185. package/dist/src/menu/ContextMenu.d.ts +5 -3
  186. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  187. package/dist/src/menu/Item.d.ts.map +1 -1
  188. package/dist/src/menu/Menu.d.ts +3 -2
  189. package/dist/src/menu/Menu.d.ts.map +1 -1
  190. package/dist/src/modal/Modal.d.ts +7 -3
  191. package/dist/src/modal/Modal.d.ts.map +1 -1
  192. package/dist/src/mosaic/Mosaic.d.ts +5 -3
  193. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  194. package/dist/src/mosaic/tree.d.ts +4 -3
  195. package/dist/src/mosaic/tree.d.ts.map +1 -1
  196. package/dist/src/mosaic/types.d.ts +6 -66
  197. package/dist/src/mosaic/types.d.ts.map +1 -1
  198. package/dist/src/nav/Bar.d.ts +2 -1
  199. package/dist/src/nav/Bar.d.ts.map +1 -1
  200. package/dist/src/nav/Drawer.d.ts +3 -2
  201. package/dist/src/nav/Drawer.d.ts.map +1 -1
  202. package/dist/src/notation/Select.d.ts +2 -3
  203. package/dist/src/notation/Select.d.ts.map +1 -1
  204. package/dist/src/notation/index.d.ts +1 -1
  205. package/dist/src/notation/index.d.ts.map +1 -1
  206. package/dist/src/os/Controls/Windows.d.ts +1 -1
  207. package/dist/src/os/Controls/Windows.d.ts.map +1 -1
  208. package/dist/src/os/Controls/types.d.ts +2 -0
  209. package/dist/src/os/Controls/types.d.ts.map +1 -1
  210. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  211. package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
  212. package/dist/src/ranger/TimeRangeChip.d.ts +2 -1
  213. package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
  214. package/dist/src/resize/Core.d.ts +5 -4
  215. package/dist/src/resize/Core.d.ts.map +1 -1
  216. package/dist/src/resize/Multiple.d.ts.map +1 -1
  217. package/dist/src/resize/Single.d.ts.map +1 -1
  218. package/dist/src/select/Button.d.ts.map +1 -1
  219. package/dist/src/select/List.d.ts.map +1 -1
  220. package/dist/src/select/Multiple.d.ts +2 -3
  221. package/dist/src/select/Multiple.d.ts.map +1 -1
  222. package/dist/src/state/state.d.ts +1 -2
  223. package/dist/src/state/state.d.ts.map +1 -1
  224. package/dist/src/status/Circle.d.ts.map +1 -1
  225. package/dist/src/status/Notification.d.ts.map +1 -1
  226. package/dist/src/status/aether/aggregator.d.ts +34 -96
  227. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  228. package/dist/src/status/aether/types.d.ts +23 -27
  229. package/dist/src/status/aether/types.d.ts.map +1 -1
  230. package/dist/src/status/colors.d.ts +1 -1
  231. package/dist/src/status/colors.d.ts.map +1 -1
  232. package/dist/src/synnax/Provider.d.ts +4 -0
  233. package/dist/src/synnax/Provider.d.ts.map +1 -1
  234. package/dist/src/synnax/aether/provider.d.ts +54 -388
  235. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  236. package/dist/src/table/aether/Table.d.ts +58 -418
  237. package/dist/src/table/aether/Table.d.ts.map +1 -1
  238. package/dist/src/table/cells/Cells.d.ts +38 -153
  239. package/dist/src/table/cells/Cells.d.ts.map +1 -1
  240. package/dist/src/table/cells/Forms.d.ts.map +1 -1
  241. package/dist/src/table/cells/registry.d.ts +6 -3
  242. package/dist/src/table/cells/registry.d.ts.map +1 -1
  243. package/dist/src/tabs/Selector.d.ts +5 -2
  244. package/dist/src/tabs/Selector.d.ts.map +1 -1
  245. package/dist/src/tabs/Tabs.d.ts +2 -3
  246. package/dist/src/tabs/Tabs.d.ts.map +1 -1
  247. package/dist/src/tabs/types.d.ts +5 -38
  248. package/dist/src/tabs/types.d.ts.map +1 -1
  249. package/dist/src/tag/Tag.d.ts +3 -4
  250. package/dist/src/tag/Tag.d.ts.map +1 -1
  251. package/dist/src/telem/aether/context.d.ts +8 -8
  252. package/dist/src/telem/aether/context.d.ts.map +1 -1
  253. package/dist/src/telem/aether/factory.d.ts +6 -2
  254. package/dist/src/telem/aether/factory.d.ts.map +1 -1
  255. package/dist/src/telem/aether/noop.d.ts.map +1 -1
  256. package/dist/src/telem/aether/pipeline.d.ts +25 -215
  257. package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
  258. package/dist/src/telem/aether/provider.d.ts +7 -5
  259. package/dist/src/telem/aether/provider.d.ts.map +1 -1
  260. package/dist/src/telem/aether/remote.d.ts +62 -183
  261. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  262. package/dist/src/telem/aether/static.d.ts +21 -74
  263. package/dist/src/telem/aether/static.d.ts.map +1 -1
  264. package/dist/src/telem/aether/telem.d.ts +60 -284
  265. package/dist/src/telem/aether/telem.d.ts.map +1 -1
  266. package/dist/src/telem/aether/transformers.d.ts +79 -321
  267. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  268. package/dist/src/telem/client/cache/cache.d.ts +1 -1
  269. package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
  270. package/dist/src/telem/client/cache/dynamic.d.ts +5 -5
  271. package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
  272. package/dist/src/telem/client/cache/static.d.ts +3 -3
  273. package/dist/src/telem/client/cache/static.d.ts.map +1 -1
  274. package/dist/src/telem/client/cache/unary.d.ts +3 -3
  275. package/dist/src/telem/client/cache/unary.d.ts.map +1 -1
  276. package/dist/src/telem/client/client.d.ts +8 -12
  277. package/dist/src/telem/client/client.d.ts.map +1 -1
  278. package/dist/src/telem/client/external.d.ts +0 -1
  279. package/dist/src/telem/client/external.d.ts.map +1 -1
  280. package/dist/src/telem/client/reader.d.ts +28 -10
  281. package/dist/src/telem/client/reader.d.ts.map +1 -1
  282. package/dist/src/telem/client/reader.spec.d.ts +6 -1
  283. package/dist/src/telem/client/reader.spec.d.ts.map +1 -1
  284. package/dist/src/telem/client/streamer.d.ts +6 -6
  285. package/dist/src/telem/client/streamer.d.ts.map +1 -1
  286. package/dist/src/telem/client/streamer.spec.d.ts +2 -0
  287. package/dist/src/telem/client/streamer.spec.d.ts.map +1 -0
  288. package/dist/src/telem/control/Indicator.d.ts.map +1 -1
  289. package/dist/src/telem/control/aether/chip.d.ts +44 -232
  290. package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
  291. package/dist/src/telem/control/aether/controller.d.ts +36 -73
  292. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  293. package/dist/src/telem/control/aether/indicator.d.ts +49 -257
  294. package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
  295. package/dist/src/telem/control/aether/legend.d.ts +18 -132
  296. package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
  297. package/dist/src/telem/control/aether/state.d.ts +10 -44
  298. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  299. package/dist/src/text/Editable.d.ts.map +1 -1
  300. package/dist/src/text/Keyboard.d.ts +1 -1
  301. package/dist/src/text/Keyboard.d.ts.map +1 -1
  302. package/dist/src/text/Text.d.ts +5 -4
  303. package/dist/src/text/Text.d.ts.map +1 -1
  304. package/dist/src/text/WithIcon.d.ts +3 -2
  305. package/dist/src/text/WithIcon.d.ts.map +1 -1
  306. package/dist/src/text/core/types.d.ts +17 -14
  307. package/dist/src/text/core/types.d.ts.map +1 -1
  308. package/dist/src/text/dimensions.d.ts +1 -0
  309. package/dist/src/text/dimensions.d.ts.map +1 -1
  310. package/dist/src/theming/Provider.d.ts.map +1 -1
  311. package/dist/src/theming/aether/provider.d.ts +899 -5915
  312. package/dist/src/theming/aether/provider.d.ts.map +1 -1
  313. package/dist/src/theming/core/fontString.d.ts.map +1 -1
  314. package/dist/src/theming/core/theme.d.ts +368 -1860
  315. package/dist/src/theming/core/theme.d.ts.map +1 -1
  316. package/dist/src/theming/css.d.ts +1 -1
  317. package/dist/src/theming/css.d.ts.map +1 -1
  318. package/dist/src/theming/static/generate.d.ts +2 -0
  319. package/dist/src/theming/static/generate.d.ts.map +1 -0
  320. package/dist/src/tooltip/Dialog.d.ts.map +1 -1
  321. package/dist/src/tree/Tree.d.ts +1 -1
  322. package/dist/src/tree/Tree.d.ts.map +1 -1
  323. package/dist/src/tree/core.d.ts +2 -2
  324. package/dist/src/tree/core.d.ts.map +1 -1
  325. package/dist/src/triggers/Provider.d.ts.map +1 -1
  326. package/dist/src/triggers/Text.d.ts.map +1 -1
  327. package/dist/src/triggers/hooks.d.ts +1 -0
  328. package/dist/src/triggers/hooks.d.ts.map +1 -1
  329. package/dist/src/triggers/triggers.d.ts +248 -9
  330. package/dist/src/triggers/triggers.d.ts.map +1 -1
  331. package/dist/src/util/component.d.ts +8 -2
  332. package/dist/src/util/component.d.ts.map +1 -1
  333. package/dist/src/viewport/use.d.ts +8 -1
  334. package/dist/src/viewport/use.d.ts.map +1 -1
  335. package/dist/src/vis/axis/axis.d.ts +17 -48
  336. package/dist/src/vis/axis/axis.d.ts.map +1 -1
  337. package/dist/src/vis/axis/canvas.d.ts +17 -20
  338. package/dist/src/vis/axis/canvas.d.ts.map +1 -1
  339. package/dist/src/vis/axis/preciseTimeScale.d.ts +1 -2
  340. package/dist/src/vis/axis/preciseTimeScale.d.ts.map +1 -1
  341. package/dist/src/vis/axis/ticks.d.ts +11 -11
  342. package/dist/src/vis/axis/ticks.d.ts.map +1 -1
  343. package/dist/src/vis/button/aether/button.d.ts +10 -80
  344. package/dist/src/vis/button/aether/button.d.ts.map +1 -1
  345. package/dist/src/vis/canvas/Canvas.d.ts +2 -2
  346. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  347. package/dist/src/vis/canvas/aether/canvas.d.ts +45 -193
  348. package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
  349. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  350. package/dist/src/vis/diagram/aether/Diagram.d.ts +62 -469
  351. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  352. package/dist/src/vis/diagram/aether/types.d.ts +29 -249
  353. package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
  354. package/dist/src/vis/diagram/edge/Edge.d.ts +2 -3
  355. package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
  356. package/dist/src/vis/diagram/edge/connector/connector.d.ts +5 -8
  357. package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
  358. package/dist/src/vis/diagram/edge/paths.d.ts +3 -4
  359. package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
  360. package/dist/src/vis/draw2d/canvas.d.ts +21 -3
  361. package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
  362. package/dist/src/vis/draw2d/index.d.ts +18 -4
  363. package/dist/src/vis/draw2d/index.d.ts.map +1 -1
  364. package/dist/src/vis/eraser/aether/eraser.d.ts +30 -170
  365. package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
  366. package/dist/src/vis/eraser/use.d.ts +2 -2
  367. package/dist/src/vis/eraser/use.d.ts.map +1 -1
  368. package/dist/src/vis/grid/grid.d.ts +14 -24
  369. package/dist/src/vis/grid/grid.d.ts.map +1 -1
  370. package/dist/src/vis/legend/Container.d.ts +41 -85
  371. package/dist/src/vis/legend/Container.d.ts.map +1 -1
  372. package/dist/src/vis/legend/Simple.d.ts +11 -4
  373. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  374. package/dist/src/vis/light/aether/light.d.ts +10 -80
  375. package/dist/src/vis/light/aether/light.d.ts.map +1 -1
  376. package/dist/src/vis/line/aether/line.d.ts +19 -101
  377. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  378. package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
  379. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  380. package/dist/src/vis/lineplot/LinePlot.d.ts +2 -3
  381. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  382. package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts +35 -0
  383. package/dist/src/vis/lineplot/aether/BoundQuerier.d.ts.map +1 -0
  384. package/dist/src/vis/lineplot/aether/LinePlot.d.ts +82 -489
  385. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  386. package/dist/src/vis/lineplot/aether/XAxis.d.ts +51 -191
  387. package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
  388. package/dist/src/vis/lineplot/aether/YAxis.d.ts +49 -194
  389. package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
  390. package/dist/src/vis/lineplot/aether/axis.d.ts +27 -98
  391. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  392. package/dist/src/vis/lineplot/aether/external.d.ts +1 -0
  393. package/dist/src/vis/lineplot/aether/external.d.ts.map +1 -1
  394. package/dist/src/vis/lineplot/external.d.ts +1 -0
  395. package/dist/src/vis/lineplot/external.d.ts.map +1 -1
  396. package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
  397. package/dist/src/vis/lineplot/range/aether/annotation.d.ts +15 -52
  398. package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
  399. package/dist/src/vis/lineplot/range/aether/provider.d.ts +43 -294
  400. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  401. package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +17 -154
  402. package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
  403. package/dist/src/vis/lineplot/useBoundQuerier.d.ts +11 -0
  404. package/dist/src/vis/lineplot/useBoundQuerier.d.ts.map +1 -0
  405. package/dist/src/vis/log/Log.d.ts.map +1 -1
  406. package/dist/src/vis/log/aether/Log.d.ts +82 -461
  407. package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
  408. package/dist/src/vis/measure/aether/measure.d.ts +24 -249
  409. package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
  410. package/dist/src/vis/performance/Performance.d.ts +2 -0
  411. package/dist/src/vis/performance/Performance.d.ts.map +1 -0
  412. package/dist/src/vis/performance/aether/index.d.ts +2 -0
  413. package/dist/src/vis/performance/aether/index.d.ts.map +1 -0
  414. package/dist/src/vis/performance/aether/performance.d.ts +15 -0
  415. package/dist/src/vis/performance/aether/performance.d.ts.map +1 -0
  416. package/dist/src/vis/performance/index.d.ts +2 -0
  417. package/dist/src/vis/performance/index.d.ts.map +1 -0
  418. package/dist/src/vis/render/GLProgram.d.ts +1 -2
  419. package/dist/src/vis/render/GLProgram.d.ts.map +1 -1
  420. package/dist/src/vis/render/context.d.ts +1 -0
  421. package/dist/src/vis/render/context.d.ts.map +1 -1
  422. package/dist/src/vis/render/controller.d.ts +7 -12
  423. package/dist/src/vis/render/controller.d.ts.map +1 -1
  424. package/dist/src/vis/render/loop.d.ts +15 -5
  425. package/dist/src/vis/render/loop.d.ts.map +1 -1
  426. package/dist/src/vis/rule/Rule.d.ts +1 -1
  427. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  428. package/dist/src/vis/rule/aether/aether.d.ts +8 -57
  429. package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
  430. package/dist/src/vis/schematic/Forms.d.ts +7 -1
  431. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  432. package/dist/src/vis/schematic/Symbols.d.ts +57 -9
  433. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  434. package/dist/src/vis/schematic/primitives/Primitives.d.ts +68 -29
  435. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  436. package/dist/src/vis/schematic/registry.d.ts +96 -1
  437. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  438. package/dist/src/vis/setpoint/aether/setpoint.d.ts +16 -155
  439. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  440. package/dist/src/vis/text/atlas.d.ts +32 -0
  441. package/dist/src/vis/text/atlas.d.ts.map +1 -0
  442. package/dist/src/vis/text/index.d.ts +2 -0
  443. package/dist/src/vis/text/index.d.ts.map +1 -0
  444. package/dist/src/vis/toggle/aether/toggle.d.ts +16 -150
  445. package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
  446. package/dist/src/vis/value/Form.d.ts.map +1 -1
  447. package/dist/src/vis/value/aether/value.d.ts +144 -569
  448. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  449. package/dist/src/vis/value/use.d.ts +55 -199
  450. package/dist/src/vis/value/use.d.ts.map +1 -1
  451. package/dist/state-CjGemC7S.js +88 -0
  452. package/dist/state-_FFrG5nH.cjs +1 -0
  453. package/dist/tabs.cjs +1 -1
  454. package/dist/tabs.js +1 -1
  455. package/dist/text.cjs +1 -1
  456. package/dist/text.js +2 -2
  457. package/dist/theme.css +1600 -0
  458. package/dist/theming.cjs +1 -1
  459. package/dist/theming.js +2 -2
  460. package/dist/{toArray-Dvn9FA_3.js → toArray-B7nD2CTw.js} +1 -1
  461. package/dist/{toArray-DRKOku1s.cjs → toArray-BvVYuN_b.cjs} +1 -1
  462. package/dist/tree.cjs +1 -1
  463. package/dist/tree.js +1 -1
  464. package/dist/triggers.cjs +1 -1
  465. package/dist/triggers.js +1 -1
  466. package/dist/units-CKKNRQlP.cjs +1 -0
  467. package/dist/units-a8CggrTe.js +11 -0
  468. package/dist/{useClickOutside-N6MHxbOe.js → useClickOutside-CKMnqdvH.js} +20 -21
  469. package/dist/useClickOutside-CPAEkvf8.cjs +1 -0
  470. package/dist/{useDebouncedCallback-D4Ec7whQ.js → useDebouncedCallback-Cyd6pZ59.js} +1 -1
  471. package/dist/useDebouncedCallback-DsKlBI86.cjs +1 -0
  472. package/dist/{useMemoCompare-Cq_C2ddc.js → useMemoCompare-B930TM0g.js} +2 -2
  473. package/dist/useMemoCompare-DprA41gC.cjs +1 -0
  474. package/dist/{useVirtualCursorDragWebKit-BBTGd7Xe.js → useVirtualCursorDragWebKit-BrSOJpYY.js} +5 -5
  475. package/dist/useVirtualCursorDragWebKit-Cvp93Pya.cjs +1 -0
  476. package/dist/value-B7u8K1CW.cjs +57 -0
  477. package/dist/value-BdZLWVof.js +5974 -0
  478. package/dist/video.cjs +1 -1
  479. package/dist/video.js +1 -1
  480. package/package.json +22 -19
  481. package/dist/Center-bD2cOjI8.cjs +0 -1
  482. package/dist/ContextMenu-BXNN2_7t.js +0 -101
  483. package/dist/ContextMenu-CNSewKSD.cjs +0 -1
  484. package/dist/DateTime-BfnGq6C2.cjs +0 -1
  485. package/dist/Divider-CJNDIsD4.cjs +0 -22
  486. package/dist/Dropdown-CL7BefC8.cjs +0 -1
  487. package/dist/Dropdown-D-aMufnM.js +0 -261
  488. package/dist/Haul-4OcHX8__.cjs +0 -1
  489. package/dist/Item-CW2A2nuL.js +0 -108
  490. package/dist/Item-CpAZC-dF.cjs +0 -1
  491. package/dist/Keyboard-DHGtnfsf.cjs +0 -1
  492. package/dist/Pack-C4NdZWyf.cjs +0 -1
  493. package/dist/Pack-UzJJ9OhY.js +0 -46
  494. package/dist/Provider-BH1uv6QX.js +0 -436
  495. package/dist/Provider-lJARiq5i.cjs +0 -1
  496. package/dist/Space-BrQoodma.cjs +0 -1
  497. package/dist/Space-I_hidXYi.js +0 -76
  498. package/dist/Text-C-o1z9sP.js +0 -124
  499. package/dist/Text-C_j_F67Q.cjs +0 -1
  500. package/dist/Text-ClTuQXMF.cjs +0 -4
  501. package/dist/Text-DEbr1cmH.cjs +0 -1
  502. package/dist/Text-DVv04lTs.js +0 -32
  503. package/dist/Toggle-CYB9Vt6b.cjs +0 -1
  504. package/dist/Toggle-v77mEVLE.js +0 -356
  505. package/dist/WithIcon-BnDZ-Qu7.js +0 -92
  506. package/dist/WithIcon-tr8ELI3W.cjs +0 -1
  507. package/dist/aggregator-AgOKLWHz.js +0 -83
  508. package/dist/aggregator-QqWwGnYH.cjs +0 -1
  509. package/dist/css-CU7tous7.cjs +0 -1
  510. package/dist/css-rxwBYwM1.js +0 -1194
  511. package/dist/deep-DsH2ji6Z.cjs +0 -1
  512. package/dist/deep-T1-57GfG.js +0 -105
  513. package/dist/dimensions-C9PXLcE0.js +0 -18
  514. package/dist/dimensions-e5IPRZhn.cjs +0 -1
  515. package/dist/eraser-D2I1qgOg.cjs +0 -11
  516. package/dist/eraser-Dmishn8h.js +0 -823
  517. package/dist/external-B1ttDWzy.cjs +0 -1
  518. package/dist/external-BWb18P9x.cjs +0 -46
  519. package/dist/external-BdxbwUpI.js +0 -343
  520. package/dist/external-BpvGU0dZ.cjs +0 -1
  521. package/dist/external-C7Hy9XdI.js +0 -418
  522. package/dist/external-CqhOyYDl.cjs +0 -1
  523. package/dist/external-Csg4_wkz.js +0 -15
  524. package/dist/external-CwvJvXL5.cjs +0 -1
  525. package/dist/external-Cztvb3-K.cjs +0 -1
  526. package/dist/external-DMEzx_kb.cjs +0 -1
  527. package/dist/external-DkQnAvKo.cjs +0 -1
  528. package/dist/fontString-C7H8Imxd.cjs +0 -1
  529. package/dist/fontString-DdV9bi9l.js +0 -12
  530. package/dist/hooks-B7ZV7Hz6.js +0 -293
  531. package/dist/hooks-CJnV8Pt4.cjs +0 -1
  532. package/dist/provider-BrBEjlx5.cjs +0 -53
  533. package/dist/provider-Dq9t3iAH.js +0 -10312
  534. package/dist/src/color/core/color.d.ts +0 -143
  535. package/dist/src/color/core/color.d.ts.map +0 -1
  536. package/dist/src/color/core/color.spec.d.ts +0 -2
  537. package/dist/src/color/core/color.spec.d.ts.map +0 -1
  538. package/dist/src/color/core/external.d.ts +0 -5
  539. package/dist/src/color/core/external.d.ts.map +0 -1
  540. package/dist/src/color/core/gradient.d.ts +0 -58
  541. package/dist/src/color/core/gradient.d.ts.map +0 -1
  542. package/dist/src/color/core/index.d.ts +0 -2
  543. package/dist/src/color/core/index.d.ts.map +0 -1
  544. package/dist/src/color/core/palette.d.ts +0 -74
  545. package/dist/src/color/core/palette.d.ts.map +0 -1
  546. package/dist/src/color/core/transformColorsToHex.d.ts +0 -6
  547. package/dist/src/color/core/transformColorsToHex.d.ts.map +0 -1
  548. package/dist/src/notation/external.d.ts +0 -3
  549. package/dist/src/notation/external.d.ts.map +0 -1
  550. package/dist/src/notation/notation.d.ts +0 -33
  551. package/dist/src/notation/notation.d.ts.map +0 -1
  552. package/dist/src/notation/notation.spec.d.ts +0 -2
  553. package/dist/src/notation/notation.spec.d.ts.map +0 -1
  554. package/dist/src/telem/client/types.d.ts +0 -20
  555. package/dist/src/telem/client/types.d.ts.map +0 -1
  556. package/dist/state-CUPEHHgf.js +0 -2405
  557. package/dist/state-LaBGf4_k.cjs +0 -15
  558. package/dist/transformColorsToHex-B2Bui-Wf.cjs +0 -1
  559. package/dist/transformColorsToHex-B6dG2LA6.js +0 -14
  560. package/dist/units-CvIf5nF_.cjs +0 -1
  561. package/dist/units-D7qkgH-s.js +0 -8
  562. package/dist/useClickOutside-PFl3AvPU.cjs +0 -1
  563. package/dist/useDebouncedCallback-vg2DKTH7.cjs +0 -1
  564. package/dist/useMemoCompare-BGEWpAJU.cjs +0 -1
  565. package/dist/useVirtualCursorDragWebKit-Rnok8Nft.cjs +0 -1
  566. package/dist/value-C6JZdCF2.cjs +0 -57
  567. package/dist/value-Dk2DJbst.js +0 -5911
  568. /package/dist/{Pack-BbwDtaE6.cjs → Stack-BbwDtaE6.cjs} +0 -0
  569. /package/dist/{Pack-D50qN0Vu.js → Stack-D50qN0Vu.js} +0 -0
@@ -1,1194 +0,0 @@
1
- var wt = Object.defineProperty;
2
- var $t = (t, e, r) => e in t ? wt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var C = (t, e, r) => $t(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { z as i } from "zod";
5
- const Q = i.tuple([i.number(), i.number()]);
6
- i.tuple([i.bigint(), i.bigint()]);
7
- const $e = i.object({ width: i.number(), height: i.number() }), vt = i.object({
8
- signedWidth: i.number(),
9
- signedHeight: i.number()
10
- }), Ot = ["width", "height"];
11
- i.enum(Ot);
12
- const Mt = ["start", "center", "end"], jt = ["signedWidth", "signedHeight"];
13
- i.enum(jt);
14
- const H = i.object({ x: i.number(), y: i.number() }), Fe = i.object({ clientX: i.number(), clientY: i.number() }), ve = ["x", "y"], Oe = i.enum(ve), We = ["top", "right", "bottom", "left"], Tt = i.enum(We), ee = ["left", "right"], Me = i.enum(ee), te = ["top", "bottom"], je = i.enum(te), Te = ["center"], le = i.enum(Te), It = [...We, ...Te], Ie = i.enum(It);
15
- i.enum(Mt);
16
- const St = ["first", "last"];
17
- i.enum(St);
18
- const Xe = i.object({ lower: i.number(), upper: i.number() }), Et = i.object({ lower: i.bigint(), upper: i.bigint() });
19
- i.union([Xe, Q]);
20
- i.union([Et, Q]);
21
- const Bt = i.enum([...Oe.options, ...Ie.options]), Nt = i.union([Oe, Ie, i.instanceof(String)]), T = (t) => typeof t == "bigint" || t instanceof BigInt, Z = (t, e) => T(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), De = (t, e) => T(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), zt = (t, e, r = 1e-4) => Math.abs(t - e) < r, ce = (t, e) => T(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), Ct = (t) => {
22
- const e = 10 ** Math.floor(Math.log10(t));
23
- return Math.round(t / e) * e;
24
- }, qe = (t, e) => T(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), At = (t, e) => T(t) ? t.valueOf() > BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() > Number(e.valueOf()) ? t : Number(e.valueOf()), Ve = (t) => T(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, Rt = (t, e) => T(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), Lt = (t, e) => T(t) ? t.valueOf() / BigInt(e.valueOf()) : t.valueOf() / Number(e.valueOf()), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
- __proto__: null,
26
- abs: Ve,
27
- add: De,
28
- closeTo: zt,
29
- div: Lt,
30
- equal: ce,
31
- max: At,
32
- min: qe,
33
- mult: Rt,
34
- roundToNearestMagnitude: Ct,
35
- sub: Z
36
- }, Symbol.toStringTag, { value: "Module" })), p = (t, e) => {
37
- const r = {};
38
- if (typeof t == "number" || typeof t == "bigint")
39
- e != null ? (r.lower = t, r.upper = e) : (r.lower = typeof t == "bigint" ? 0n : 0, r.upper = t);
40
- else if (Array.isArray(t)) {
41
- if (t.length !== 2) throw new Error("bounds: expected array of length 2");
42
- [r.lower, r.upper] = t;
43
- } else return pe(t);
44
- return pe(r);
45
- }, _t = Object.freeze({ lower: 0, upper: 0 }), Pt = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), Zt = Object.freeze({ lower: 0, upper: 1 }), Ht = Object.freeze({ lower: -1, upper: 1 }), Yt = (t, e) => {
46
- if (t == null && e == null) return !0;
47
- if (t == null || e == null) return !1;
48
- const r = p(t), n = p(e);
49
- return (r == null ? void 0 : r.lower) === (n == null ? void 0 : n.lower) && (r == null ? void 0 : r.upper) === (n == null ? void 0 : n.upper);
50
- }, pe = (t) => t.lower > t.upper ? { lower: t.upper, upper: t.lower } : t, kt = (t, e) => {
51
- const r = p(t);
52
- return e < r.lower ? r.lower : e >= r.upper ? r.upper - (typeof r.upper == "number" ? 1 : 1n) : e;
53
- }, E = (t, e) => {
54
- const r = p(t);
55
- if (typeof e == "number" || typeof e == "bigint")
56
- return e >= r.lower && e < r.upper;
57
- const n = p(e);
58
- return n.lower >= r.lower && n.upper <= r.upper;
59
- }, Ft = (t, e) => {
60
- const r = p(t), n = p(e);
61
- return r.lower === n.lower ? !0 : n.upper === r.lower || n.lower === r.upper ? !1 : E(r, n.upper) || E(r, n.lower) || E(n, r.upper) || E(n, r.lower);
62
- }, re = (t) => {
63
- const e = p(t);
64
- return e.upper - e.lower;
65
- }, Wt = (t) => {
66
- const e = p(t);
67
- return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
68
- }, Xt = (t) => {
69
- const e = re(t);
70
- return typeof e == "number" ? e === 0 : e === 0n;
71
- }, Dt = (t) => {
72
- const e = p(t);
73
- return typeof e.lower == "bigint" ? !0 : Number.isFinite(e.lower) && Number.isFinite(e.upper);
74
- }, qt = (t) => {
75
- const e = p(t);
76
- return (e.upper + e.lower) / 2;
77
- }, Vt = (t) => ({
78
- lower: Math.min(...t.map((e) => p(e).lower)),
79
- upper: Math.max(...t.map((e) => p(e).upper))
80
- }), Ut = (t) => ({
81
- lower: Math.max(...t.map((e) => p(e).lower)),
82
- upper: Math.min(...t.map((e) => p(e).upper))
83
- }), Gt = (t) => {
84
- const e = p(t), r = typeof e.lower == "bigint";
85
- return Array.from({ length: Number(re(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
86
- }, he = (t, e) => {
87
- const r = t.map((s) => p(s)), n = r.findIndex((s) => E(s, e) || e < s.lower);
88
- if (n === -1) return { index: t.length, position: 0 };
89
- const o = r[n];
90
- return E(o, e) ? { index: n, position: Number(e - o.lower) } : { index: n, position: 0 };
91
- }, ie = {
92
- removeBefore: 0,
93
- removeAfter: 0,
94
- insertInto: 0,
95
- deleteInBetween: 0
96
- }, Kt = (t, e) => {
97
- const r = t.map((c) => p(c)), n = p(e);
98
- if (r.length === 0) return ie;
99
- const o = he(r, n.lower), s = he(r, n.upper);
100
- if (o.index === t.length) return { ...ie, insertInto: t.length };
101
- if (s.index === 0) return { ...ie, removeAfter: s.position };
102
- if (o.index === s.index)
103
- return o.position !== 0 && s.position !== 0 ? null : {
104
- removeAfter: s.position,
105
- removeBefore: o.position,
106
- insertInto: o.index,
107
- deleteInBetween: 0
108
- };
109
- let u = s.index - o.index, a = o.index, l = Z(Number(re(r[o.index])), o.position);
110
- return o.position !== 0 ? (u -= 1, a += 1) : l = 0, {
111
- removeBefore: l,
112
- removeAfter: s.position,
113
- insertInto: a,
114
- deleteInBetween: u
115
- };
116
- }, Jt = (t, e, r) => {
117
- const n = t.map((a) => p(a)), o = r > 0 ? 1 : r < 0 ? -1 : 0;
118
- if (o === 0) return e;
119
- let s = r, u = e;
120
- for (; ce(s, 0) === !1; ) {
121
- const a = n.findIndex((l) => o > 0 ? u >= l.lower && u < l.upper : u > l.lower && u <= l.upper);
122
- if (a !== -1) {
123
- const l = n[a];
124
- let c;
125
- if (o > 0 ? c = Z(l.upper, u) : c = Z(u, l.lower), c > 0) {
126
- const h = qe(Ve(s), c);
127
- if (u = De(
128
- u,
129
- o > 0 ? h : -h
130
- ), s = Z(s, o > 0 ? h : -h), ce(s, 0)) return u;
131
- continue;
132
- }
133
- }
134
- if (o > 0) {
135
- const l = n.filter((c) => c.lower > u);
136
- if (l.length > 0) u = l[0].lower;
137
- else return u;
138
- } else {
139
- const l = n.filter((c) => c.upper < u);
140
- if (l.length > 0)
141
- u = l[l.length - 1].upper;
142
- else return u;
143
- }
144
- }
145
- return u;
146
- }, Qt = (t, e, r) => {
147
- const n = t.map((u) => p(u));
148
- if (e === r) return typeof e == "bigint" ? 0n : 0;
149
- const o = e < r ? p([e, r]) : p([r, e]);
150
- let s = typeof e == "bigint" ? 0n : 0;
151
- for (const u of n) {
152
- const a = u.lower > o.lower ? u.lower : o.lower, l = u.upper < o.upper ? u.upper : o.upper;
153
- if (a < l) {
154
- const c = l - a;
155
- s = s + c;
156
- }
157
- }
158
- return s;
159
- }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160
- __proto__: null,
161
- CLIP: Ht,
162
- DECIMAL: Zt,
163
- INFINITE: Pt,
164
- ZERO: _t,
165
- bounds: Xe,
166
- buildInsertionPlan: Kt,
167
- clamp: kt,
168
- construct: p,
169
- contains: E,
170
- distance: Qt,
171
- equals: Yt,
172
- findInsertPosition: he,
173
- isFinite: Dt,
174
- isZero: Wt,
175
- linspace: Gt,
176
- makeValid: pe,
177
- max: Vt,
178
- mean: qt,
179
- min: Ut,
180
- overlapsWith: Ft,
181
- span: re,
182
- spanIsZero: Xt,
183
- traverse: Jt
184
- }, Symbol.toStringTag, { value: "Module" })), Ue = Bt, I = (t) => ve.includes(t) ? t : te.includes(t) ? "y" : "x", er = (t) => I(t) === "x" ? "y" : "x", tr = (t) => I(t) === "x" ? "width" : "height", rr = (t) => I(t) === "x" ? "left" : "top", nr = (t) => Ue.safeParse(t).success, or = (t) => I(t) === "x" ? "signedWidth" : "signedHeight", sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
185
- __proto__: null,
186
- construct: I,
187
- crude: Ue,
188
- dimension: tr,
189
- direction: Oe,
190
- isDirection: nr,
191
- location: rr,
192
- signedDimension: or,
193
- swap: er
194
- }, Symbol.toStringTag, { value: "Module" })), ir = (t) => {
195
- const e = t.replace(/_[a-z]/g, (r) => r[1].toUpperCase());
196
- return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
197
- }, Se = (t) => {
198
- const e = (r, n = ye) => {
199
- if (typeof r == "string") return t(r);
200
- if (Array.isArray(r)) return r.map((u) => e(u, n));
201
- if (!ue(r)) return r;
202
- n = cr(n);
203
- const o = {}, s = r;
204
- return Object.keys(s).forEach((u) => {
205
- let a = s[u];
206
- const l = t(u);
207
- n.recursive && (ue(a) ? He(a, n.keepTypesOnRecursion) || (a = e(a, n)) : n.recursiveInArray && Ze(a) && (a = [...a].map((c) => {
208
- let h = c;
209
- return ue(c) ? He(h, n.keepTypesOnRecursion) || (h = e(c, n)) : Ze(c) && (h = e({ key: c }, n).key), h;
210
- }))), o[l] = a;
211
- }), o;
212
- };
213
- return e;
214
- }, ur = Se(ir), ar = (t) => (
215
- // Don't convert the first character and don't convert a character that is after a
216
- // non-alphanumeric character
217
- t.replace(
218
- /([a-z0-9])([A-Z])/g,
219
- (e, r, n) => `${r}_${n.toLowerCase()}`
220
- )
221
- ), lr = Se(ar), Ge = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), ye = {
222
- recursive: !0,
223
- recursiveInArray: !0,
224
- keepTypesOnRecursion: [Number, String, Uint8Array]
225
- }, cr = (t = ye) => (t.recursive == null ? t = ye : t.recursiveInArray ?? (t.recursiveInArray = !1), t), Ze = (t) => t != null && Array.isArray(t), ue = (t) => t != null && typeof t == "object" && !Array.isArray(t), He = (t, e) => (e || []).some((r) => t instanceof r), pr = (t) => t.replace(/\s+/g, "-").replace(
226
- /([a-z0-9])([A-Z])/g,
227
- (e, r, n) => `${r}-${n.toLowerCase()}`
228
- ).toLowerCase(), hr = Se(pr), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
229
- __proto__: null,
230
- camelToSnake: lr,
231
- capitalize: Ge,
232
- snakeToCamel: ur,
233
- toKebab: hr
234
- }, Symbol.toStringTag, { value: "Module" })), yr = Me, fr = je, gr = le, dr = {
235
- top: "bottom",
236
- right: "left",
237
- bottom: "top",
238
- left: "right",
239
- center: "center"
240
- }, br = {
241
- top: "left",
242
- right: "top",
243
- bottom: "right",
244
- left: "bottom",
245
- center: "center"
246
- }, xr = Nt, O = (t) => t instanceof String || !ve.includes(t) ? t : t === "x" ? "left" : "top", mr = (t) => dr[O(t)], wr = (t) => br[O(t)], Y = (t) => {
247
- const e = O(t);
248
- return e === "top" || e === "bottom" ? "y" : "x";
249
- }, $r = i.object({
250
- x: Me.or(le),
251
- y: je.or(le)
252
- }), Ke = i.object({ x: Me, y: je }), F = Object.freeze({ x: "left", y: "top" }), Ee = Object.freeze({ x: "right", y: "top" }), ne = Object.freeze({ x: "left", y: "bottom" }), Be = Object.freeze({ x: "right", y: "bottom" }), Ne = Object.freeze({ x: "center", y: "center" }), Je = Object.freeze({ x: "center", y: "top" }), Qe = Object.freeze({ x: "center", y: "bottom" }), et = Object.freeze({ x: "right", y: "center" }), tt = Object.freeze({ x: "left", y: "center" }), vr = Object.freeze([
253
- tt,
254
- et,
255
- Je,
256
- Qe,
257
- F,
258
- Ee,
259
- ne,
260
- Be,
261
- Ne
262
- ]), ze = (t, e) => t.x === e.x && t.y === e.y, Or = (t, e) => {
263
- if (typeof e == "object") {
264
- let r = !0;
265
- return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
266
- }
267
- return t.x === e || t.y === e;
268
- }, rt = (t) => [t.x, t.y], U = (t) => Y(O(t)) === "x", Mr = (t) => Y(O(t)) === "y", jr = (t) => `${t.x}${Ge(t.y)}`, Tr = (t, e) => {
269
- let r, n;
270
- if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = O(t), n = O(e ?? t)), Y(r) === Y(n) && r !== "center" && n !== "center")
271
- throw new Error(
272
- `[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
273
- );
274
- const o = { ...Ne };
275
- return r === "center" ? U(n) ? [o.x, o.y] = [n, r] : [o.x, o.y] = [r, n] : n === "center" ? U(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r] : U(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r], o;
276
- }, Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
277
- __proto__: null,
278
- BOTTOM_CENTER: Qe,
279
- BOTTOM_LEFT: ne,
280
- BOTTOM_RIGHT: Be,
281
- CENTER: Ne,
282
- CENTER_LOCATIONS: Te,
283
- LEFT_CENTER: tt,
284
- RIGHT_CENTER: et,
285
- TOP_CENTER: Je,
286
- TOP_LEFT: F,
287
- TOP_RIGHT: Ee,
288
- XY_LOCATIONS: vr,
289
- X_LOCATIONS: ee,
290
- Y_LOCATIONS: te,
291
- center: gr,
292
- construct: O,
293
- constructXY: Tr,
294
- corner: Ke,
295
- crude: xr,
296
- direction: Y,
297
- isX: U,
298
- isY: Mr,
299
- location: Ie,
300
- outer: Tt,
301
- rotate90: wr,
302
- swap: mr,
303
- x: yr,
304
- xy: $r,
305
- xyCouple: rt,
306
- xyEquals: ze,
307
- xyMatches: Or,
308
- xyToString: jr,
309
- y: fr
310
- }, Symbol.toStringTag, { value: "Module" })), fe = i.union([
311
- i.number(),
312
- H,
313
- Q,
314
- $e,
315
- vt,
316
- Fe
317
- ]), f = (t, e) => {
318
- if (typeof t == "string") {
319
- if (e === void 0) throw new Error("The y coordinate must be given.");
320
- return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
321
- }
322
- return typeof t == "number" ? { x: t, y: e ?? t } : Array.isArray(t) ? { x: t[0], y: t[1] } : "signedWidth" in t ? { x: t.signedWidth, y: t.signedHeight } : "clientX" in t ? { x: t.clientX, y: t.clientY } : "width" in t ? { x: t.width, y: t.height } : { x: t.x, y: t.y };
323
- }, x = Object.freeze({ x: 0, y: 0 }), nt = Object.freeze({ x: 1, y: 1 }), Sr = Object.freeze({ x: 1 / 0, y: 1 / 0 }), Er = Object.freeze({ x: NaN, y: NaN }), J = (t, e, r = 0) => {
324
- const n = f(t), o = f(e);
325
- return r === 0 ? n.x === o.x && n.y === o.y : Math.abs(n.x - o.x) <= r && Math.abs(n.y - o.y) <= r;
326
- }, Br = (t) => J(t, x), Ce = (t, e, r) => {
327
- const n = f(t), o = f(e, r);
328
- return { x: n.x * o.x, y: n.y * o.y };
329
- }, ot = (t, e) => {
330
- const r = f(t);
331
- return { x: r.x + e, y: r.y };
332
- }, st = (t, e) => {
333
- const r = f(t);
334
- return { x: r.x, y: r.y + e };
335
- }, k = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? ot(t, r) : st(t, r) : [t, e, r ?? x, ...n].reduce((o, s) => {
336
- const u = f(s);
337
- return { x: o.x + u.x, y: o.y + u.y };
338
- }, x), Nr = (t, e, r) => {
339
- const n = f(t);
340
- return e === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
341
- }, zr = (t, e) => {
342
- const r = f(t), n = f(e);
343
- return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
344
- }, Cr = (t, e) => {
345
- const r = f(t), n = f(e);
346
- return { x: n.x - r.x, y: n.y - r.y };
347
- }, Ar = (t) => {
348
- const e = f(t);
349
- return Number.isNaN(e.x) || Number.isNaN(e.y);
350
- }, Rr = (t) => {
351
- const e = f(t);
352
- return Number.isFinite(e.x) && Number.isFinite(e.y);
353
- }, Lr = (t) => {
354
- const e = f(t);
355
- return [e.x, e.y];
356
- }, _r = (t) => {
357
- const e = f(t);
358
- return { left: e.x, top: e.y };
359
- }, ge = (t, e = 0) => {
360
- const r = f(t);
361
- return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
362
- }, L = (t, e) => {
363
- const r = f(t), n = f(e);
364
- return { x: r.x - n.x, y: r.y - n.y };
365
- }, _ = (t) => {
366
- const e = f(t), r = Math.hypot(e.x, e.y);
367
- return r === 0 ? { x: 0, y: 0 } : { x: -e.y / r, y: e.x / r };
368
- }, it = (t) => {
369
- const e = f(t), r = Math.hypot(e.x, e.y);
370
- return r === 0 ? { x: 0, y: 0 } : { x: e.x / r, y: e.y / r };
371
- }, ut = (...t) => {
372
- const e = t.reduce((r, n) => k(r, n), x);
373
- return Ce(e, 1 / t.length);
374
- }, Pr = (t, e) => {
375
- const r = [];
376
- for (let n = 0; n < t.length; n++) {
377
- const o = t[n];
378
- let s, u, a, l;
379
- if (n === 0) {
380
- const c = t[n + 1], h = L(c, o);
381
- u = _(h), a = u, l = e;
382
- } else if (n === t.length - 1) {
383
- const c = t[n - 1], h = L(o, c);
384
- s = _(h), a = s, l = e;
385
- } else {
386
- const c = t[n - 1], h = t[n + 1], S = L(o, c), R = L(h, o);
387
- s = _(S), u = _(R);
388
- const mt = Math.acos(
389
- (S.x * R.x + S.y * R.y) / (Math.hypot(S.x, S.y) * Math.hypot(R.x, R.y))
390
- ), Pe = Math.sin(mt / 2);
391
- Pe === 0 ? l = e : l = e / Pe, a = it(ut(s, u));
392
- }
393
- r.push(Ce(a, l));
394
- }
395
- return r;
396
- }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
397
- __proto__: null,
398
- INFINITY: Sr,
399
- NAN: Er,
400
- ONE: nt,
401
- ZERO: x,
402
- average: ut,
403
- calculateMiters: Pr,
404
- clientXY: Fe,
405
- construct: f,
406
- couple: Lr,
407
- crudeZ: fe,
408
- css: _r,
409
- distance: zr,
410
- equals: J,
411
- isFinite: Rr,
412
- isNan: Ar,
413
- isZero: Br,
414
- normal: _,
415
- normalize: it,
416
- scale: Ce,
417
- set: Nr,
418
- sub: L,
419
- translate: k,
420
- translateX: ot,
421
- translateY: st,
422
- translation: Cr,
423
- truncate: ge,
424
- xy: H
425
- }, Symbol.toStringTag, { value: "Module" })), X = i.union([i.number(), i.string()]), Zr = i.object({
426
- top: X,
427
- left: X,
428
- width: X,
429
- height: X
430
- }), Hr = i.object({
431
- left: i.number(),
432
- top: i.number(),
433
- right: i.number(),
434
- bottom: i.number()
435
- }), Yr = i.object({
436
- one: H,
437
- two: H,
438
- root: Ke
439
- }), at = { one: x, two: x, root: F }, kr = { one: x, two: nt, root: ne }, lt = (t, e) => ({
440
- one: t.one,
441
- two: t.two,
442
- root: e ?? t.root
443
- }), y = (t, e, r = 0, n = 0, o) => {
444
- const s = {
445
- one: { ...x },
446
- two: { ...x },
447
- root: o ?? F
448
- };
449
- if (typeof t == "number") {
450
- if (typeof e != "number")
451
- throw new Error("Box constructor called with invalid arguments");
452
- return s.one = { x: t, y: e }, s.two = { x: s.one.x + r, y: s.one.y + n }, s;
453
- }
454
- return "one" in t && "two" in t && "root" in t ? { ...t, root: o ?? t.root } : ("getBoundingClientRect" in t && (t = t.getBoundingClientRect()), "left" in t ? (s.one = { x: t.left, y: t.top }, s.two = { x: t.right, y: t.bottom }, s) : (s.one = t, e == null ? s.two = { x: s.one.x + r, y: s.one.y + n } : typeof e == "number" ? s.two = { x: s.one.x + e, y: s.one.y + r } : "width" in e ? s.two = {
455
- x: s.one.x + e.width,
456
- y: s.one.y + e.height
457
- } : "signedWidth" in e ? s.two = {
458
- x: s.one.x + e.signedWidth,
459
- y: s.one.y + e.signedHeight
460
- } : s.two = e, s));
461
- }, Fr = (t, e, r) => {
462
- const n = y(t);
463
- if (typeof e == "string") {
464
- if (r == null) throw new Error("Invalid arguments for resize");
465
- const o = I(e);
466
- return y(
467
- n.one,
468
- void 0,
469
- o === "x" ? r : M(n),
470
- o === "y" ? r : j(n),
471
- n.root
472
- );
473
- }
474
- return y(n.one, e, void 0, void 0, n.root);
475
- }, Wr = (t, e, r = !0) => {
476
- const n = y(t);
477
- let o = (s, u) => s < u;
478
- return r && (o = (s, u) => s <= u), "one" in e ? o($(n), $(e)) && o(B(e), B(n)) && o(v(n), v(e)) && o(N(e), N(n)) : o($(n), e.x) && o(e.x, B(n)) && o(v(n), e.y) && o(e.y, N(n));
479
- }, Xr = (t, e) => J(t.one, e.one) && J(t.two, e.two) && ze(t.root, e.root), ct = (t) => ({
480
- width: M(t),
481
- height: j(t)
482
- }), Dr = (t) => ({
483
- signedWidth: oe(t),
484
- signedHeight: se(t)
485
- }), qr = (t) => ({
486
- top: v(t),
487
- left: $(t),
488
- width: M(t),
489
- height: j(t)
490
- }), Ae = (t, e, r = !1) => {
491
- const n = I(e) === "y" ? se(t) : oe(t);
492
- return r ? n : Math.abs(n);
493
- }, W = (t, e) => {
494
- const r = y(t);
495
- return {
496
- x: e.x === "center" ? de(r).x : z(r, e.x),
497
- y: e.y === "center" ? de(r).y : z(r, e.y)
498
- };
499
- }, z = (t, e) => {
500
- const r = y(t), n = rt(r.root).includes(e) ? Math.min : Math.max;
501
- return ee.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
502
- }, Vr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, M = (t) => Ae(t, "x"), j = (t) => Ae(t, "y"), oe = (t) => {
503
- const e = y(t);
504
- return e.two.x - e.one.x;
505
- }, se = (t) => {
506
- const e = y(t);
507
- return e.two.y - e.one.y;
508
- }, pt = (t) => W(t, F), Ur = (t) => W(t, Ee), Gr = (t) => W(t, ne), Kr = (t) => W(t, Be), B = (t) => z(t, "right"), N = (t) => z(t, "bottom"), $ = (t) => z(t, "left"), v = (t) => z(t, "top"), de = (t) => k(pt(t), {
509
- x: oe(t) / 2,
510
- y: se(t) / 2
511
- }), Re = (t) => {
512
- const e = y(t);
513
- return e.root.x === "left" ? $(e) : B(e);
514
- }, Le = (t) => {
515
- const e = y(t);
516
- return e.root.y === "top" ? v(e) : N(e);
517
- }, Jr = (t) => ({ x: Re(t), y: Le(t) }), G = (t) => {
518
- const e = y(t);
519
- return { lower: e.one.x, upper: e.two.x };
520
- }, K = (t) => {
521
- const e = y(t);
522
- return { lower: e.one.y, upper: e.two.y };
523
- }, Qr = (t, e) => lt(t, e), en = (t, e) => {
524
- const r = y(t), n = ee.includes(e) ? "x" : te.includes(e) ? "y" : null;
525
- if (n === null) throw new Error(`Invalid location: ${e}`);
526
- const o = e === "top" || e === "left" ? Math.min : Math.max, s = { ...r.one }, u = { ...r.two };
527
- return s[n] = o(r.one[n], r.two[n]), u[n] = o(r.one[n], r.two[n]), [s, u];
528
- }, tn = (t, e) => {
529
- const r = y(t), n = y(e), o = Re(n) + (M(n) - M(r)) / 2, s = Le(n) + (j(n) - j(r)) / 2;
530
- return y({ x: o, y: s }, ct(r));
531
- }, ht = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, rn = (t) => M(t) / j(t), nn = (t, e, r) => {
532
- if (typeof e == "string") {
533
- if (r == null) throw new Error("Undefined amount passed into box.translate");
534
- const o = I(e);
535
- e = f(o, r);
536
- }
537
- const n = y(t);
538
- return y(
539
- k(n.one, e),
540
- k(n.two, e),
541
- void 0,
542
- void 0,
543
- n.root
544
- );
545
- }, on = (t, e) => {
546
- const r = Math.max($(t), $(e)), n = Math.max(v(t), v(e)), o = Math.min(B(t), B(e)), s = Math.min(N(t), N(e));
547
- return r > o || n > s ? at : y({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
548
- }, sn = (t) => M(t) * j(t), un = (t, e) => {
549
- const r = y(t);
550
- return y(
551
- ge(r.one, e),
552
- ge(r.two, e),
553
- void 0,
554
- void 0,
555
- r.root
556
- );
557
- }, an = (t, e, r, n, o, s) => {
558
- const u = { x: t, y: e }, a = { x: t + r, y: e + n };
559
- return o.x !== s.x && (o.x === "center" ? (u.x -= r / 2, a.x -= r / 2) : (u.x -= r, a.x -= r)), o.y !== s.y && (o.y === "center" ? (u.y -= n / 2, a.y -= n / 2) : (u.y -= n, a.y -= n)), y(u, a, void 0, void 0, s);
560
- }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
561
- __proto__: null,
562
- DECIMAL: kr,
563
- ZERO: at,
564
- area: sn,
565
- areaIsZero: Vr,
566
- aspect: rn,
567
- bottom: N,
568
- bottomLeft: Gr,
569
- bottomRight: Kr,
570
- box: Yr,
571
- center: de,
572
- construct: y,
573
- constructWithAlternateRoot: an,
574
- contains: Wr,
575
- copy: lt,
576
- css: qr,
577
- cssBox: Zr,
578
- dim: Ae,
579
- dims: ct,
580
- domRect: Hr,
581
- edgePoints: en,
582
- equals: Xr,
583
- height: j,
584
- intersection: on,
585
- isBox: ht,
586
- left: $,
587
- loc: z,
588
- positionInCenter: tn,
589
- reRoot: Qr,
590
- resize: Fr,
591
- right: B,
592
- root: Jr,
593
- signedDims: Dr,
594
- signedHeight: se,
595
- signedWidth: oe,
596
- top: v,
597
- topLeft: pt,
598
- topRight: Ur,
599
- translate: nn,
600
- truncate: un,
601
- width: M,
602
- x: Re,
603
- xBounds: G,
604
- xyLoc: W,
605
- y: Le,
606
- yBounds: K
607
- }, Symbol.toStringTag, { value: "Module" })), yt = i.object({ signedWidth: i.number(), signedHeight: i.number() }), ln = i.union([$e, yt, H, Q]), cn = { width: 0, height: 0 }, pn = { width: 1, height: 1 }, d = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, hn = (t, e) => {
608
- if (e == null) return !1;
609
- const r = d(t), n = d(e);
610
- return r.width === n.width && r.height === n.height;
611
- }, yn = (t) => {
612
- const e = d(t);
613
- return { width: e.height, height: e.width };
614
- }, fn = (t) => {
615
- const e = d(t);
616
- return `0 0 ${e.width} ${e.height}`;
617
- }, gn = (t) => {
618
- const e = d(t);
619
- return [e.width, e.height];
620
- }, dn = (t) => ({
621
- width: Math.max(...t.map((e) => d(e).width)),
622
- height: Math.max(...t.map((e) => d(e).height))
623
- }), bn = (t) => ({
624
- width: Math.min(...t.map((e) => d(e).width)),
625
- height: Math.min(...t.map((e) => d(e).height))
626
- }), xn = (t, e) => {
627
- const r = d(t);
628
- return { width: r.width * e, height: r.height * e };
629
- }, Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
630
- __proto__: null,
631
- DECIMAL: pn,
632
- ZERO: cn,
633
- construct: d,
634
- couple: gn,
635
- crude: ln,
636
- dimensions: $e,
637
- equals: hn,
638
- max: dn,
639
- min: bn,
640
- scale: xn,
641
- signed: yt,
642
- svgViewBox: fn,
643
- swap: yn
644
- }, Symbol.toStringTag, { value: "Module" }));
645
- var mn = Object.defineProperty, wn = (t, e, r) => e in t ? mn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e, r) => wn(t, typeof e != "symbol" ? e + "" : e, r);
646
- const $n = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, vn = i.object({ offset: fe, scale: fe }), On = i.object({ offset: i.number(), scale: i.number() }), Mn = (t) => (e, r, n, o) => r === "dimension" ? [e, n] : [
647
- e,
648
- o ? n - t : n + t
649
- ], jn = (t) => (e, r, n, o) => [
650
- e,
651
- o ? n / t : n * t
652
- ], Tn = (t) => (e, r, n) => {
653
- if (e === null) return [t, n];
654
- const { lower: o, upper: s } = e, { lower: u, upper: a } = t, l = s - o, c = a - u;
655
- if (r === "dimension") return [t, n * (c / l)];
656
- const h = (n - o) * (c / l) + u;
657
- return [t, h];
658
- }, In = (t) => (e, r, n) => [t, n], Sn = () => (t, e, r) => {
659
- if (t === null) throw new Error("cannot invert without bounds");
660
- if (e === "dimension") return [t, r];
661
- const { lower: n, upper: o } = t;
662
- return [t, o - (r - n)];
663
- }, En = (t) => (e, r, n) => {
664
- const { lower: o, upper: s } = t;
665
- return n = $n(n, o, s), [e, n];
666
- }, be = class P {
667
- constructor() {
668
- w(this, "ops", []), w(this, "currBounds", null), w(this, "currType", null), w(this, "reversed", !1), this.ops = [];
669
- }
670
- /**
671
- * @returns a new scale with a translation as its first operation. Any number provided
672
- * to the {@link pos} operation on the scale will be translated by the specified value.
673
- * @param value - The amount to translate by.
674
- */
675
- static translate(e) {
676
- return new P().translate(e);
677
- }
678
- /**
679
- * @returns a new scale with a magnification as its first operation. Any number provided
680
- * to the {@link pos} or {@link dim} operation will be multiplied by the specified value.
681
- * @param value - The amount to translate by.
682
- */
683
- static magnify(e) {
684
- return new P().magnify(e);
685
- }
686
- static scale(e, r) {
687
- return new P().scale(e, r);
688
- }
689
- /**
690
- * @returns a copy of the scale with a translation as its next operation. Any
691
- * number provided to the {@link pos} method on the scale will be translated by the
692
- * specified value.
693
- * @param value - The amount to translate by.
694
- */
695
- translate(e) {
696
- const r = this.new(), n = Mn(e);
697
- return n.type = "translate", r.ops.push(n), r;
698
- }
699
- /**
700
- * @returns a copy of the scale with a translation as its next operation. Any number
701
- * provided to the {@link pos} or {@link dim} method on the scale will be multiplied
702
- * by the specified value.
703
- * @param value - The amount to magnify by.
704
- */
705
- magnify(e) {
706
- const r = this.new(), n = jn(e);
707
- return n.type = "magnify", r.ops.push(n), r;
708
- }
709
- scale(e, r) {
710
- const n = p(e, r), o = this.new(), s = Tn(n);
711
- return s.type = "scale", o.ops.push(s), o;
712
- }
713
- clamp(e, r) {
714
- const n = p(e, r), o = this.new(), s = En(n);
715
- return s.type = "clamp", o.ops.push(s), o;
716
- }
717
- reBound(e, r) {
718
- const n = p(e, r), o = this.new(), s = In(n);
719
- return s.type = "re-bound", o.ops.push(s), o;
720
- }
721
- invert() {
722
- const e = Sn();
723
- e.type = "invert";
724
- const r = this.new();
725
- return r.ops.push(e), r;
726
- }
727
- pos(e) {
728
- return this.exec("position", e);
729
- }
730
- dim(e) {
731
- return this.exec("dimension", e);
732
- }
733
- new() {
734
- const e = new P();
735
- return e.ops = this.ops.slice(), e.reversed = this.reversed, e;
736
- }
737
- exec(e, r) {
738
- return this.currBounds = null, this.ops.reduce(
739
- ([n, o], s) => s(n, e, o, this.reversed),
740
- [null, r]
741
- )[1];
742
- }
743
- reverse() {
744
- const e = this.new();
745
- e.ops.reverse();
746
- const r = [];
747
- return e.ops.forEach((n, o) => {
748
- if (n.type === "scale" || r.some(([u, a]) => o >= u && o <= a))
749
- return;
750
- const s = e.ops.findIndex((u, a) => u.type === "scale" && a > o);
751
- s !== -1 && r.push([o, s]);
752
- }), r.forEach(([n, o]) => {
753
- const s = e.ops.slice(n, o);
754
- s.unshift(e.ops[o]), e.ops.splice(n, o - n + 1, ...s);
755
- }), e.reversed = !e.reversed, e;
756
- }
757
- get transform() {
758
- return { scale: this.dim(1), offset: this.pos(0) };
759
- }
760
- };
761
- w(be, "IDENTITY", new be());
762
- let xe = be;
763
- const me = class m {
764
- constructor(e = new xe(), r = new xe(), n = null) {
765
- w(this, "x"), w(this, "y"), w(this, "currRoot"), this.x = e, this.y = r, this.currRoot = n;
766
- }
767
- static translate(e, r) {
768
- return new m().translate(e, r);
769
- }
770
- static translateX(e) {
771
- return new m().translateX(e);
772
- }
773
- static translateY(e) {
774
- return new m().translateY(e);
775
- }
776
- static clamp(e) {
777
- return new m().clamp(e);
778
- }
779
- static magnify(e) {
780
- return new m().magnify(e);
781
- }
782
- static scale(e) {
783
- return new m().scale(e);
784
- }
785
- static reBound(e) {
786
- return new m().reBound(e);
787
- }
788
- translate(e, r) {
789
- const n = f(e, r), o = this.copy();
790
- return o.x = this.x.translate(n.x), o.y = this.y.translate(n.y), o;
791
- }
792
- translateX(e) {
793
- const r = this.copy();
794
- return r.x = this.x.translate(e), r;
795
- }
796
- translateY(e) {
797
- const r = this.copy();
798
- return r.y = this.y.translate(e), r;
799
- }
800
- magnify(e) {
801
- const r = this.copy();
802
- return r.x = this.x.magnify(e.x), r.y = this.y.magnify(e.y), r;
803
- }
804
- scale(e) {
805
- const r = this.copy();
806
- if (ht(e)) {
807
- const n = this.currRoot;
808
- return r.currRoot = e.root, n != null && !ze(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(G(e)), r.y = r.y.scale(K(e)), r;
809
- }
810
- return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
811
- }
812
- reBound(e) {
813
- const r = this.copy();
814
- return r.x = this.x.reBound(G(e)), r.y = this.y.reBound(K(e)), r;
815
- }
816
- clamp(e) {
817
- const r = this.copy();
818
- return r.x = this.x.clamp(G(e)), r.y = this.y.clamp(K(e)), r;
819
- }
820
- copy() {
821
- const e = new m();
822
- return e.currRoot = this.currRoot, e.x = this.x, e.y = this.y, e;
823
- }
824
- reverse() {
825
- const e = this.copy();
826
- return e.x = this.x.reverse(), e.y = this.y.reverse(), e;
827
- }
828
- pos(e) {
829
- return { x: this.x.pos(e.x), y: this.y.pos(e.y) };
830
- }
831
- dim(e) {
832
- return { x: this.x.dim(e.x), y: this.y.dim(e.y) };
833
- }
834
- box(e) {
835
- return y(
836
- this.pos(e.one),
837
- this.pos(e.two),
838
- 0,
839
- 0,
840
- this.currRoot ?? e.root
841
- );
842
- }
843
- get transform() {
844
- return {
845
- scale: this.dim({ x: 1, y: 1 }),
846
- offset: this.pos({ x: 0, y: 0 })
847
- };
848
- }
849
- };
850
- w(me, "IDENTITY", new me());
851
- let Bn = me;
852
- const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
853
- __proto__: null,
854
- Scale: xe,
855
- XY: Bn,
856
- crudeXYTransform: vn,
857
- transform: On
858
- }, Symbol.toStringTag, { value: "Module" }));
859
- function ft(t) {
860
- var e, r, n = "";
861
- if (typeof t == "string" || typeof t == "number") n += t;
862
- else if (typeof t == "object") if (Array.isArray(t)) {
863
- var o = t.length;
864
- for (e = 0; e < o; e++) t[e] && (r = ft(t[e])) && (n && (n += " "), n += r);
865
- } else for (r in t) t[r] && (n && (n += " "), n += r);
866
- return n;
867
- }
868
- function Nn() {
869
- for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (e = ft(t)) && (n && (n += " "), n += e);
870
- return n;
871
- }
872
- const zn = Nn, Ye = "-", ke = "__", D = "--", gt = (t) => {
873
- const e = (...r) => zn(...r);
874
- return e.B = (r) => t + Ye + r, e.E = (r) => t + ke + r, e.M = (r) => t + D + r, e.BM = (r, n) => e.B(r) + D + n, e.BE = (r, n) => e.B(r) + ke + n, e.BEM = (r, n, o) => e.BE(r, n) + D + o, e.extend = (r) => gt(e.B(r)), e.var = (r) => D + t + Ye + r, e;
875
- }, Cn = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, we = i.string().regex(Cn), A = i.number().min(0).max(255), An = i.number().min(0).max(1), _e = i.tuple([A, A, A, An]), dt = i.tuple([A, A, A]), bt = i.object({ rgba255: _e }), Qn = (t) => t == null ? void 0 : new g(t).hex, eo = (t) => {
876
- if (t == null) return;
877
- const e = g.z.safeParse(t);
878
- if (e.success) return e.data.rgbaCSS;
879
- if (typeof t == "string") return t;
880
- throw e.error;
881
- }, b = class b {
882
- /**
883
- * @constructor Creates a new color from the given color value. The color value can be
884
- * a hex string, an array of RGB or RGBA values, or another color.
885
- *
886
- * @param color - The color value to create the color from. If the color value is a
887
- * string, it must be a valid hex color (with or without the '#') with a hasheless
888
- * length 6 or 8. If the hex color is 8 characters long, the last twoc haracters are
889
- * used as the alpha value. If the color value is an array, it must be an array of
890
- * length 3 or 4, with each value between 0 and 255. If the color value is another
891
- * color, the color will be copied.
892
- *
893
- * @param alpha - An optional alpha value to set. If the color value carries its own
894
- * alpha value, this value will be ignored. Defaults to 1.
895
- */
896
- constructor(e, r = 1) {
897
- /**
898
- * @property the color as an RGBA tuple, with each color value between 0 and 255,
899
- * and the alpha value between 0 and 1.
900
- */
901
- C(this, "rgba255");
902
- if (typeof e == "string") this.rgba255 = b.fromHex(e, r);
903
- else if (Array.isArray(e)) {
904
- if (e.length < 3 || e.length > 4)
905
- throw new Error(`Invalid color: [${e.join(", ")}]`);
906
- this.rgba255 = e.length === 3 ? [...e, r ?? 1] : e;
907
- } else this.rgba255 = e.rgba255;
908
- }
909
- /**
910
- * @returns true if the given color is semantically equal to this color. Different
911
- * representations of the same color are considered equal (e.g. hex and rgba).
912
- */
913
- equals(e) {
914
- if (e == null) return !1;
915
- const r = new b(e);
916
- return this.rgba255.every((n, o) => n === r.rgba255[o]);
917
- }
918
- /**
919
- * @returns the hex representation of the color. If the color has an opacity of 1,
920
- * the returned hex will be 6 characters long. Otherwise, it will be 8 characters
921
- * long.
922
- */
923
- get hex() {
924
- const [e, r, n, o] = this.rgba255;
925
- return `#${q(e)}${q(r)}${q(n)}${o === 1 ? "" : q(o * 255)}`;
926
- }
927
- /**
928
- * @returns the color as a CSS RGBA string.
929
- */
930
- get rgbaCSS() {
931
- const [e, r, n, o] = this.rgba255;
932
- return `rgba(${e}, ${r}, ${n}, ${o})`;
933
- }
934
- /**
935
- * @returns the color as a CSS RGB string with no alpha value.
936
- */
937
- get rgbCSS() {
938
- return `rgb(${this.rgbString})`;
939
- }
940
- /**
941
- * @returns the color as an RGB string, with each color value between 0 and 255.
942
- * @example "255, 255, 255"
943
- */
944
- get rgbString() {
945
- const [e, r, n] = this.rgba255;
946
- return `${e}, ${r}, ${n}`;
947
- }
948
- /**
949
- * @returns the color as an RGBA tuple, with each color value between 0 and 1,
950
- * and the alpha value between 0 and 1.
951
- */
952
- get rgba1() {
953
- return [...this.rgb1, this.rgba255[3]];
954
- }
955
- get rgb1() {
956
- return [this.rgba255[0] / 255, this.rgba255[1] / 255, this.rgba255[2] / 255];
957
- }
958
- /** @returns the red value of the color, between 0 and 255. */
959
- get r() {
960
- return this.rgba255[0];
961
- }
962
- /** @returns the green value of the color, between 0 and 255. */
963
- get g() {
964
- return this.rgba255[1];
965
- }
966
- /** @returns the blue value of the color, between 0 and 255. */
967
- get b() {
968
- return this.rgba255[2];
969
- }
970
- /** @returns the alpha value of the color, between 0 and 1. */
971
- get a() {
972
- return this.rgba255[3];
973
- }
974
- /** @returns true if all RGBA values are 0. */
975
- get isZero() {
976
- return this.equals(xt);
977
- }
978
- get hsla() {
979
- return Ln(this.rgba255);
980
- }
981
- /**
982
- * Creates a new color with the given alpha.
983
- *
984
- * @param alpha - The alpha value to set. If the value is greater than 1, it will be
985
- * divided by 100.
986
- * @returns A new color with the given alpha.
987
- */
988
- setAlpha(e) {
989
- const [r, n, o] = this.rgba255;
990
- if (e > 100)
991
- throw new Error(`Color opacity must be between 0 and 100, got ${e}`);
992
- return e > 1 && (e /= 100), new b([r, n, o, e]);
993
- }
994
- /**
995
- * @returns the luminance of the color, between 0 and 1.
996
- */
997
- get luminance() {
998
- const [e, r, n] = this.rgb1.map(
999
- (o) => o <= 0.03928 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4
1000
- );
1001
- return Number((0.2126 * e + 0.7152 * r + 0.0722 * n).toFixed(3));
1002
- }
1003
- /**
1004
- * @returns the grayness of the color, between 0 and 1.
1005
- */
1006
- get grayness() {
1007
- const [e, r, n] = this.rgb1;
1008
- return 1 - (Math.max(e, r, n) - Math.min(e, r, n));
1009
- }
1010
- /**
1011
- * @returns the contrast ratio between this color and the given color. The contrast
1012
- * ratio is a number between 1 and 21, where 1 is the lowest contrast and 21 is the
1013
- * highest.
1014
- * @param other
1015
- * @returns
1016
- */
1017
- contrast(e) {
1018
- const r = new b(e), n = this.luminance, o = r.luminance;
1019
- return (Math.max(n, o) + 0.5) / (Math.min(n, o) + 0.5);
1020
- }
1021
- pickByContrast(...e) {
1022
- if (e.length === 0)
1023
- throw new Error("[Color.pickByContrast] - must provide at least one color");
1024
- const [r] = e.map((n) => new b(n)).sort((n, o) => this.contrast(o) - this.contrast(n));
1025
- return r;
1026
- }
1027
- get isDark() {
1028
- return this.luminance < 0.5;
1029
- }
1030
- get isLight() {
1031
- return !this.isDark;
1032
- }
1033
- static fromHex(e, r = 1) {
1034
- if (!we.safeParse(e).success) throw new Error(`Invalid hex color: ${e}`);
1035
- return e = Rn(e), [
1036
- V(e, 0),
1037
- V(e, 2),
1038
- V(e, 4),
1039
- e.length === 8 ? V(e, 6) / 255 : r
1040
- ];
1041
- }
1042
- };
1043
- C(b, "z", i.union([we, _e, dt, i.instanceof(b), bt]).transform((e) => new b(e)));
1044
- let g = b;
1045
- const xt = new g([0, 0, 0, 0]), q = (t) => Math.floor(t).toString(16).padStart(2, "0"), V = (t, e) => parseInt(t.slice(e, e + 2), 16), Rn = (t) => t.startsWith("#") ? t.slice(1) : t, to = (t) => {
1046
- let [e, r, n] = t;
1047
- const o = t[3];
1048
- e /= 360, r /= 100, n /= 100;
1049
- let s, u, a;
1050
- if (r === 0)
1051
- s = u = a = n;
1052
- else {
1053
- const l = n < 0.5 ? n * (1 + r) : n + r - n * r, c = 2 * n - l;
1054
- s = ae(c, l, e + 1 / 3), u = ae(c, l, e), a = ae(c, l, e - 1 / 3);
1055
- }
1056
- return [Math.round(s * 255), Math.round(u * 255), Math.round(a * 255), o];
1057
- }, ae = (t, e, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (e - t) * 6 * r : r < 1 / 2 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t), Ln = (t) => {
1058
- let [e, r, n] = t;
1059
- const o = t[3];
1060
- e /= 255, r /= 255, n /= 255, e /= 255, r /= 255, n /= 255;
1061
- const s = Math.max(e, r, n), u = Math.min(e, r, n);
1062
- let a, l, c = (s + u) / 2;
1063
- if (s === u)
1064
- a = l = 0;
1065
- else {
1066
- const h = s - u;
1067
- l = c > 0.5 ? h / (2 - s - u) : h / (s + u), s === e ? a = (r - n) / h + (r < n ? 6 : 0) : s === r ? a = (n - e) / h + 2 : a = (e - r) / h + 4, a /= 6;
1068
- }
1069
- return a *= 360, l *= 100, c *= 100, [Math.round(a), Math.round(l), Math.round(c), o];
1070
- }, _n = i.union([
1071
- we,
1072
- _e,
1073
- i.instanceof(g),
1074
- i.string(),
1075
- dt,
1076
- bt
1077
- ]), Pn = i.object({
1078
- key: i.string(),
1079
- color: _n,
1080
- position: i.number(),
1081
- switched: i.boolean().optional()
1082
- }), ro = i.array(Pn), no = (t, e) => {
1083
- if (t.length === 0) return xt;
1084
- if (t = t.slice().sort((r, n) => r.position - n.position), e <= t[0].position) return new g(t[0].color);
1085
- if (e >= t[t.length - 1].position)
1086
- return new g(t[t.length - 1].color);
1087
- for (let r = 0; r < t.length - 1; r++) {
1088
- const n = t[r], o = t[r + 1];
1089
- if (e >= n.position && e <= o.position) {
1090
- if (e === n.position) return new g(n.color);
1091
- if (e === o.position) return new g(o.color);
1092
- const s = (e - n.position) / (o.position - n.position), u = new g(n.color), a = new g(o.color), l = Math.round(u.r + s * (a.r - u.r)), c = Math.round(u.g + s * (a.g - u.g)), h = Math.round(u.b + s * (a.b - u.b)), S = u.a + s * (a.a - u.a);
1093
- return new g([l, c, h, S]);
1094
- }
1095
- }
1096
- return new g(t[t.length - 1].color);
1097
- }, Zn = i.object({
1098
- key: i.string(),
1099
- name: i.string(),
1100
- color: g.z
1101
- }), oo = i.object({
1102
- key: i.string(),
1103
- name: i.string(),
1104
- swatches: i.array(Zn)
1105
- });
1106
- class Hn {
1107
- constructor(e = "") {
1108
- C(this, "rows", []);
1109
- C(this, "columns", []);
1110
- C(this, "prefix");
1111
- this.prefix = e;
1112
- }
1113
- row(e, r, n) {
1114
- const { prefix: o } = this;
1115
- return this.rows.push({ startLabel: o + e, endLabel: o + r, size: n }), this;
1116
- }
1117
- col(e, r, n) {
1118
- const { prefix: o } = this;
1119
- return this.columns.push({ startLabel: o + e, endLabel: o + r, size: n }), this;
1120
- }
1121
- build() {
1122
- return {
1123
- display: "grid",
1124
- gridTemplateRows: this.rows.map((e, r) => {
1125
- let n = r === 0 ? "[" : "";
1126
- return n += `${e.startLabel}] ${e.size}${typeof e.size == "number" ? "px" : ""} [${e.endLabel}`, n += r === this.rows.length - 1 ? "]" : "", n;
1127
- }).join(" "),
1128
- gridTemplateColumns: this.columns.map((e, r) => {
1129
- let n = r === 0 ? "[" : "";
1130
- return n += `${e.startLabel}] ${e.size}${typeof e.size == "number" ? "px" : ""} [${e.endLabel}`, n += r === this.columns.length - 1 ? "]" : "", n;
1131
- }).join(" ")
1132
- };
1133
- }
1134
- }
1135
- const Yn = (t, e) => Object.entries(e).forEach(
1136
- ([r, n]) => n != null && t.style.setProperty(r, `${n}`)
1137
- ), kn = (t, e) => Array.from(t.style).forEach((r) => {
1138
- r.startsWith(e) && t.style.removeProperty(r);
1139
- }), Fn = (t) => {
1140
- const e = gt(t);
1141
- return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(Ir.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(sr.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M(`bordered-${r.toString()}`) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("alt-color"), e.editable = (r) => r && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (r) => r && e.M("no-wrap"), e.applyVars = Yn, e.removeVars = kn, e.newGridBuilder = (r) => new Hn(r), e.dropRegion = (r) => r && e.B("haul-drop-region"), e.px = (r) => `${r}px`, e.inheritDims = (r = !0) => r && e.M("inherit-dims"), e.shade = (r) => e.M(`shade-${r}`), e.shadeVar = (r) => {
1142
- if (r != null)
1143
- return `var(--${t}-gray-l${r})`;
1144
- }, e.levelSizeVar = (r) => `var(--${t}-${r}-size)`, e;
1145
- }, so = Fn("pluto");
1146
- export {
1147
- vr as $,
1148
- lr as A,
1149
- ze as B,
1150
- so as C,
1151
- Or as D,
1152
- Rt as E,
1153
- p as F,
1154
- Un as G,
1155
- kt as H,
1156
- E as I,
1157
- qn as J,
1158
- Ir as K,
1159
- Dn as L,
1160
- Gn as M,
1161
- mr as P,
1162
- F as T,
1163
- Jt as U,
1164
- Qt as V,
1165
- $n as Y,
1166
- xt as Z,
1167
- Kn as _,
1168
- g as a,
1169
- y as b,
1170
- eo as c,
1171
- W as d,
1172
- an as e,
1173
- j as f,
1174
- sr as g,
1175
- _n as h,
1176
- Ie as i,
1177
- no as j,
1178
- to as k,
1179
- on as l,
1180
- sn as m,
1181
- gt as n,
1182
- ro as o,
1183
- oo as p,
1184
- Qn as q,
1185
- Jn as r,
1186
- Pn as s,
1187
- I as t,
1188
- M as u,
1189
- Nn as v,
1190
- $r as w,
1191
- Ne as x,
1192
- Vn as y,
1193
- ur as z
1194
- };