@synnaxlabs/pluto 0.49.0 → 0.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/dist/{Animated-Bp6IK3ct.js → Animated-BbeJdao0.js} +3 -3
  2. package/dist/{Animated-38tdmPR0.js → Animated-C4xrEVd-.js} +50 -50
  3. package/dist/Animated-Dvm2k_z_.cjs +1 -0
  4. package/dist/{Animated-Dsn1pmhz.cjs → Animated-umWjgTzy.cjs} +1 -1
  5. package/dist/{Box-4l6DWG-3.cjs → Box-D27bV7QJ.cjs} +1 -1
  6. package/dist/{Box-BVyAHr2f.js → Box-DLO7l9hM.js} +9 -9
  7. package/dist/Button-BSek5HG5.cjs +1 -0
  8. package/dist/{Button-CoOYEk1J.js → Button-DLtxKGH5.js} +98 -98
  9. package/dist/{Dialog-JwJQD3xZ.cjs → Dialog-BpjxXSmw.cjs} +1 -1
  10. package/dist/{Dialog-puVY-0Mt.js → Dialog-BspO7uo8.js} +3 -3
  11. package/dist/{Editable-DI0-D1K5.cjs → Editable-C-z-stcD.cjs} +1 -1
  12. package/dist/{Editable-DEbVpi5i.js → Editable-DjQORuR1.js} +3 -3
  13. package/dist/{Haul-Db9j45Fu.js → Haul-DBy-2ds_.js} +24 -24
  14. package/dist/Haul-WgPKptr9.cjs +1 -0
  15. package/dist/{Items-BCG7kyaR.cjs → Items-07R286kW.cjs} +2 -2
  16. package/dist/{Items-BVKW0udb.js → Items-CX11yLMf.js} +25 -23
  17. package/dist/Menu-58O-OOPJ.cjs +1 -0
  18. package/dist/Menu-GBo3ayoP.js +135 -0
  19. package/dist/Provider-BA3zQVbv.cjs +1 -0
  20. package/dist/{Provider-DQM7IBoi.js → Provider-BkxUzTWS.js} +399 -320
  21. package/dist/Tags-DWsEZD9t.cjs +1 -0
  22. package/dist/{Tags-B8l5Dvw-.js → Tags-V7sNuGZv.js} +187 -182
  23. package/dist/{Text-DeWvfrdF.cjs → Text-DW5FpCk9.cjs} +1 -1
  24. package/dist/{Text-90J6p5Uj.js → Text-XeD58Fq8.js} +625 -600
  25. package/dist/{Video-CLpcYcKf.js → Video-C56z7qvH.js} +1 -1
  26. package/dist/{Video-Bmg4gwom.cjs → Video-CBPTBLTB.cjs} +1 -1
  27. package/dist/button.cjs +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/color.cjs +1 -1
  30. package/dist/color.js +1 -1
  31. package/dist/{css-bahPRiQI.js → css-BkBrZtKZ.js} +562 -569
  32. package/dist/{css-BVgFAmaj.cjs → css-D3NdC2sx.cjs} +4 -4
  33. package/dist/css.cjs +1 -1
  34. package/dist/css.js +2 -2
  35. package/dist/dialog.cjs +1 -1
  36. package/dist/dialog.js +1 -1
  37. package/dist/{dimensions-SDA3fM2T.cjs → dimensions-C7b02rFi.cjs} +1 -1
  38. package/dist/{dimensions-qcyzaTKI.js → dimensions-qj2CkPTy.js} +6 -6
  39. package/dist/{eraser-Cbfc1frM.cjs → eraser-Bocga8Eb.cjs} +3 -3
  40. package/dist/{eraser-Dz6nZuPp.js → eraser-DuAfpO0P.js} +38 -38
  41. package/dist/ether.cjs +1 -1
  42. package/dist/ether.js +54 -55
  43. package/dist/{external-CMs_BCc5.cjs → external-5_uHky7w.cjs} +2 -2
  44. package/dist/{external-m-0q-0os.js → external-B-JsNciM.js} +5 -5
  45. package/dist/{external-CwYoEhB2.cjs → external-B3o5P8Yw.cjs} +1 -1
  46. package/dist/{external-Bixqkw5N.cjs → external-B9omdiDK.cjs} +1 -1
  47. package/dist/{external-kwuGKgyL.cjs → external-BIbdeWQE.cjs} +1 -1
  48. package/dist/external-BRA_zA83.cjs +1 -0
  49. package/dist/{external-PA6ulZR9.cjs → external-Bjh6lsVm.cjs} +1 -1
  50. package/dist/external-BwRkgEyo.cjs +1 -0
  51. package/dist/{external-TI-6Umwm.js → external-CLQdSLv0.js} +6 -6
  52. package/dist/{external-DJWZ43k0.js → external-CdHyPhLI.js} +1 -1
  53. package/dist/{external-CB3VxPJp.js → external-Ct1k30Nd.js} +24 -24
  54. package/dist/external-Ct2A_YCT.cjs +1 -0
  55. package/dist/{external-04ve_X21.js → external-DNbIzfVy.js} +45 -44
  56. package/dist/{external-B3b7kdID.cjs → external-DT82RBon.cjs} +1 -1
  57. package/dist/{external-Cxojc4yT.js → external-DXWEyk9d.js} +11 -11
  58. package/dist/{external-D2tzyCDs.cjs → external-DojNoICL.cjs} +1 -1
  59. package/dist/{external-CnWQzZlQ.js → external-Dp5OkGYV.js} +69 -68
  60. package/dist/{external-xJ67ivgR.js → external-DxmgAHkn.js} +3 -3
  61. package/dist/{external-DUVDOJfj.cjs → external-DyTk_hS7.cjs} +1 -1
  62. package/dist/{external-DP9FiRHq.js → external-MvcifV4O.js} +3 -3
  63. package/dist/external-PXU0gc_j.cjs +84 -0
  64. package/dist/{external-CrXS1qj_.js → external-g_vt4Lku.js} +13386 -12955
  65. package/dist/{external-D2deiHyL.js → external-sYHm9OG8.js} +10 -9
  66. package/dist/{external-Hhx8JoAS.js → external-xfkS0zGI.js} +12 -12
  67. package/dist/flex.cjs +1 -1
  68. package/dist/flex.js +1 -1
  69. package/dist/{fontString-qfWSw62X.js → fontString-CSWLcJcC.js} +3 -3
  70. package/dist/{fontString-62eEvw4b.cjs → fontString-TocVNWmy.cjs} +1 -1
  71. package/dist/header.cjs +1 -1
  72. package/dist/header.js +1 -1
  73. package/dist/{hooks-Dh0v1QWQ.js → hooks-BeSuo_di.js} +25 -25
  74. package/dist/hooks-Eb94kuDd.cjs +1 -0
  75. package/dist/index.cjs +23 -15
  76. package/dist/index.js +11147 -10778
  77. package/dist/input.cjs +1 -1
  78. package/dist/input.js +1 -1
  79. package/dist/list.cjs +1 -1
  80. package/dist/list.js +1 -1
  81. package/dist/menu.cjs +1 -1
  82. package/dist/menu.js +1 -1
  83. package/dist/pluto.css +1 -1
  84. package/dist/{provider-ClhgBr_F.js → provider-D0K9E52u.js} +4030 -3699
  85. package/dist/provider-DksyuJua.cjs +78 -0
  86. package/dist/src/access/policy/Select.d.ts.map +1 -1
  87. package/dist/src/access/policy/aether/queries.d.ts.map +1 -1
  88. package/dist/src/access/policy/queries.d.ts +8 -6
  89. package/dist/src/access/policy/queries.d.ts.map +1 -1
  90. package/dist/src/access/role/Select.d.ts +2 -2
  91. package/dist/src/access/role/Select.d.ts.map +1 -1
  92. package/dist/src/access/role/queries.d.ts +2 -2
  93. package/dist/src/access/role/queries.d.ts.map +1 -1
  94. package/dist/src/aether/aether/aether.d.ts +86 -10
  95. package/dist/src/aether/aether/aether.d.ts.map +1 -1
  96. package/dist/src/aether/aether/aether.spec.d.ts.map +1 -1
  97. package/dist/src/aether/main.d.ts +34 -11
  98. package/dist/src/aether/main.d.ts.map +1 -1
  99. package/dist/src/aether/message.d.ts +31 -6
  100. package/dist/src/aether/message.d.ts.map +1 -1
  101. package/dist/src/aether/test/index.d.ts +2 -0
  102. package/dist/src/aether/test/index.d.ts.map +1 -0
  103. package/dist/src/aether/test/provider.d.ts +4 -0
  104. package/dist/src/aether/test/provider.d.ts.map +1 -0
  105. package/dist/src/aether/test/provider.spec.d.ts +2 -0
  106. package/dist/src/aether/test/provider.spec.d.ts.map +1 -0
  107. package/dist/src/arc/handle/Base.d.ts +8 -0
  108. package/dist/src/arc/handle/{Core.d.ts.map → Base.d.ts.map} +1 -1
  109. package/dist/src/arc/handle/Sink.d.ts +2 -2
  110. package/dist/src/arc/handle/Source.d.ts +2 -2
  111. package/dist/src/arc/queries.d.ts +33 -10
  112. package/dist/src/arc/queries.d.ts.map +1 -1
  113. package/dist/src/button/Button.d.ts +2 -2
  114. package/dist/src/button/Button.d.ts.map +1 -1
  115. package/dist/src/button/Toggle.d.ts.map +1 -1
  116. package/dist/src/channel/LinePlot.d.ts +7 -6
  117. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  118. package/dist/src/channel/Select.d.ts.map +1 -1
  119. package/dist/src/channel/queries.d.ts +6 -5
  120. package/dist/src/channel/queries.d.ts.map +1 -1
  121. package/dist/src/color/BaseSwatch.d.ts.map +1 -1
  122. package/dist/src/color/Picker.d.ts.map +1 -1
  123. package/dist/src/color/Swatch.d.ts.map +1 -1
  124. package/dist/src/component/SelectSize.d.ts.map +1 -1
  125. package/dist/src/css/bem.d.ts +2 -2
  126. package/dist/src/css/css.d.ts +1 -1
  127. package/dist/src/device/Select.d.ts.map +1 -1
  128. package/dist/src/device/queries.d.ts +8 -8
  129. package/dist/src/device/queries.d.ts.map +1 -1
  130. package/dist/src/dialog/Frame.d.ts.map +1 -1
  131. package/dist/src/direction/Select.d.ts +2 -2
  132. package/dist/src/direction/Select.d.ts.map +1 -1
  133. package/dist/src/errors/Boundary.d.ts +29 -0
  134. package/dist/src/errors/Boundary.d.ts.map +1 -0
  135. package/dist/src/errors/Fallback.d.ts +32 -0
  136. package/dist/src/errors/Fallback.d.ts.map +1 -0
  137. package/dist/src/errors/errors.spec.d.ts +2 -0
  138. package/dist/src/errors/errors.spec.d.ts.map +1 -0
  139. package/dist/src/errors/external.d.ts +3 -0
  140. package/dist/src/errors/external.d.ts.map +1 -0
  141. package/dist/src/errors/index.d.ts +2 -0
  142. package/dist/src/errors/index.d.ts.map +1 -0
  143. package/dist/src/flux/Provider.d.ts +2 -2
  144. package/dist/src/flux/aether/external.d.ts +4 -4
  145. package/dist/src/flux/aether/provider.d.ts +7 -7
  146. package/dist/src/flux/{core → base}/client.d.ts.map +1 -1
  147. package/dist/src/flux/{core → base}/external.d.ts.map +1 -1
  148. package/dist/src/flux/base/index.d.ts +2 -0
  149. package/dist/src/flux/base/index.d.ts.map +1 -0
  150. package/dist/src/flux/{core → base}/store.d.ts.map +1 -1
  151. package/dist/src/flux/base/store.spec.d.ts.map +1 -0
  152. package/dist/src/flux/{core → base}/streamer.d.ts +1 -1
  153. package/dist/src/flux/{core → base}/streamer.d.ts.map +1 -1
  154. package/dist/src/flux/base/streamer.spec.d.ts.map +1 -0
  155. package/dist/src/flux/{core → base}/types.d.ts.map +1 -1
  156. package/dist/src/flux/external.d.ts +3 -3
  157. package/dist/src/flux/form.d.ts +13 -13
  158. package/dist/src/flux/form.d.ts.map +1 -1
  159. package/dist/src/flux/list.d.ts +11 -11
  160. package/dist/src/flux/list.d.ts.map +1 -1
  161. package/dist/src/flux/retrieve.d.ts +20 -20
  162. package/dist/src/flux/retrieve.d.ts.map +1 -1
  163. package/dist/src/flux/update.d.ts +23 -22
  164. package/dist/src/flux/update.d.ts.map +1 -1
  165. package/dist/src/form/Field.d.ts.map +1 -1
  166. package/dist/src/form/external.d.ts +0 -1
  167. package/dist/src/form/external.d.ts.map +1 -1
  168. package/dist/src/form/useField.d.ts.map +1 -1
  169. package/dist/src/group/queries.d.ts +5 -5
  170. package/dist/src/group/queries.d.ts.map +1 -1
  171. package/dist/src/haul/Haul.d.ts +3 -3
  172. package/dist/src/haul/Haul.d.ts.map +1 -1
  173. package/dist/src/header/ButtonTitle.d.ts.map +1 -1
  174. package/dist/src/icon/Icon.d.ts +1 -1
  175. package/dist/src/icon/Icon.d.ts.map +1 -1
  176. package/dist/src/icon/registry.d.ts +5 -0
  177. package/dist/src/icon/registry.d.ts.map +1 -1
  178. package/dist/src/index.d.ts +2 -1
  179. package/dist/src/index.d.ts.map +1 -1
  180. package/dist/src/input/Boolean.d.ts.map +1 -1
  181. package/dist/src/input/Date.d.ts.map +1 -1
  182. package/dist/src/input/DateTime.d.ts.map +1 -1
  183. package/dist/src/input/DragButton.d.ts.map +1 -1
  184. package/dist/src/input/HelpText.d.ts.map +1 -1
  185. package/dist/src/input/Label.d.ts.map +1 -1
  186. package/dist/src/input/Numeric.d.ts.map +1 -1
  187. package/dist/src/input/Text.d.ts.map +1 -1
  188. package/dist/src/input/Time.d.ts.map +1 -1
  189. package/dist/src/label/Select.d.ts.map +1 -1
  190. package/dist/src/label/queries.d.ts +3 -3
  191. package/dist/src/label/queries.d.ts.map +1 -1
  192. package/dist/src/lineplot/Axis.d.ts.map +1 -1
  193. package/dist/src/lineplot/Legend.d.ts +2 -2
  194. package/dist/src/lineplot/Line.d.ts +2 -2
  195. package/dist/src/lineplot/LinePlot.d.ts +9 -3
  196. package/dist/src/lineplot/LinePlot.d.ts.map +1 -1
  197. package/dist/src/lineplot/Viewport.d.ts +2 -2
  198. package/dist/src/lineplot/aether/LinePlot.d.ts +17 -5
  199. package/dist/src/lineplot/aether/LinePlot.d.ts.map +1 -1
  200. package/dist/src/lineplot/aether/XAxis.d.ts +2 -2
  201. package/dist/src/lineplot/aether/YAxis.d.ts +2 -2
  202. package/dist/src/lineplot/aether/axis.d.ts +4 -4
  203. package/dist/src/lineplot/aether/external.d.ts +0 -1
  204. package/dist/src/lineplot/aether/external.d.ts.map +1 -1
  205. package/dist/src/lineplot/external.d.ts +0 -1
  206. package/dist/src/lineplot/external.d.ts.map +1 -1
  207. package/dist/src/lineplot/queries.d.ts +3 -3
  208. package/dist/src/lineplot/queries.d.ts.map +1 -1
  209. package/dist/src/lineplot/range/Annotation.d.ts.map +1 -1
  210. package/dist/src/lineplot/tooltip/Tooltip.d.ts.map +1 -1
  211. package/dist/src/list/Frame.d.ts +2 -2
  212. package/dist/src/list/Frame.d.ts.map +1 -1
  213. package/dist/src/list/Items.d.ts.map +1 -1
  214. package/dist/src/list/useKeysData.d.ts.map +1 -1
  215. package/dist/src/log/Log.d.ts.map +1 -1
  216. package/dist/src/log/queries.d.ts +3 -3
  217. package/dist/src/log/queries.d.ts.map +1 -1
  218. package/dist/src/menu/ContextMenu.d.ts +3 -2
  219. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  220. package/dist/src/menu/Menu.d.ts.map +1 -1
  221. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  222. package/dist/src/nav/Bar.d.ts +3 -3
  223. package/dist/src/nav/Drawer.d.ts.map +1 -1
  224. package/dist/src/notation/Select.d.ts +2 -2
  225. package/dist/src/notation/Select.d.ts.map +1 -1
  226. package/dist/src/ontology/aether/queries.d.ts.map +1 -1
  227. package/dist/src/ontology/queries.d.ts +3 -3
  228. package/dist/src/ontology/queries.d.ts.map +1 -1
  229. package/dist/src/pluto/Pluto.d.ts +2 -0
  230. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  231. package/dist/src/rack/Select.d.ts.map +1 -1
  232. package/dist/src/rack/queries.d.ts +2 -2
  233. package/dist/src/rack/queries.d.ts.map +1 -1
  234. package/dist/src/ranger/Breadcrumb.d.ts +2 -2
  235. package/dist/src/ranger/Select.d.ts +2 -2
  236. package/dist/src/ranger/Select.d.ts.map +1 -1
  237. package/dist/src/ranger/SelectStage.d.ts.map +1 -1
  238. package/dist/src/ranger/queries.d.ts +5 -5
  239. package/dist/src/ranger/queries.d.ts.map +1 -1
  240. package/dist/src/resize/{Core.d.ts → Base.d.ts} +3 -3
  241. package/dist/src/resize/{Core.d.ts.map → Base.d.ts.map} +1 -1
  242. package/dist/src/resize/Single.d.ts +2 -2
  243. package/dist/src/resize/Single.d.ts.map +1 -1
  244. package/dist/src/resize/external.d.ts +1 -1
  245. package/dist/src/schematic/Schematic.d.ts.map +1 -1
  246. package/dist/src/schematic/edge/paths.d.ts.map +1 -1
  247. package/dist/src/schematic/queries.d.ts +5 -5
  248. package/dist/src/schematic/queries.d.ts.map +1 -1
  249. package/dist/src/schematic/symbol/Primitives.d.ts +5 -5
  250. package/dist/src/schematic/symbol/Primitives.d.ts.map +1 -1
  251. package/dist/src/schematic/symbol/SelectOrientation.d.ts +2 -2
  252. package/dist/src/schematic/symbol/SelectOrientation.d.ts.map +1 -1
  253. package/dist/src/schematic/symbol/Symbols.d.ts +13 -13
  254. package/dist/src/schematic/symbol/Symbols.d.ts.map +1 -1
  255. package/dist/src/schematic/symbol/external.d.ts +1 -0
  256. package/dist/src/schematic/symbol/external.d.ts.map +1 -1
  257. package/dist/src/schematic/symbol/queries.d.ts +8 -6
  258. package/dist/src/schematic/symbol/queries.d.ts.map +1 -1
  259. package/dist/src/schematic/symbol/registry.d.ts +1 -1
  260. package/dist/src/select/Button.d.ts +3 -3
  261. package/dist/src/select/Button.d.ts.map +1 -1
  262. package/dist/src/select/Dialog.d.ts +3 -3
  263. package/dist/src/select/Dialog.d.ts.map +1 -1
  264. package/dist/src/select/Frame.d.ts +1 -1
  265. package/dist/src/select/Frame.d.ts.map +1 -1
  266. package/dist/src/select/Multiple.d.ts +3 -3
  267. package/dist/src/select/Multiple.d.ts.map +1 -1
  268. package/dist/src/select/MultipleTrigger.d.ts.map +1 -1
  269. package/dist/src/select/Single.d.ts.map +1 -1
  270. package/dist/src/select/Static.d.ts.map +1 -1
  271. package/dist/src/select/flex/Alignment.d.ts.map +1 -1
  272. package/dist/src/select/text/Level.d.ts +1 -1
  273. package/dist/src/select/text/Weight.d.ts +1 -1
  274. package/dist/src/select/use.d.ts.map +1 -1
  275. package/dist/src/showcase/InputShowcase.d.ts.map +1 -1
  276. package/dist/src/state/state.d.ts.map +1 -1
  277. package/dist/src/status/Select.d.ts +2 -2
  278. package/dist/src/status/Select.d.ts.map +1 -1
  279. package/dist/src/status/SelectVariant.d.ts +2 -2
  280. package/dist/src/status/SelectVariant.d.ts.map +1 -1
  281. package/dist/src/status/aether/aggregator.d.ts +1 -1
  282. package/dist/src/status/{core → base}/Aggregator.d.ts.map +1 -1
  283. package/dist/src/status/base/Aggregator.spec.d.ts.map +1 -0
  284. package/dist/src/status/{core → base}/CreateIcon.d.ts.map +1 -1
  285. package/dist/src/status/{core → base}/Indicator.d.ts.map +1 -1
  286. package/dist/src/status/{core → base}/Notification.d.ts.map +1 -1
  287. package/dist/src/status/base/Notification.spec.d.ts.map +1 -0
  288. package/dist/src/status/{core → base}/Summary.d.ts.map +1 -1
  289. package/dist/src/status/{core → base}/colors.d.ts.map +1 -1
  290. package/dist/src/status/{core → base}/external.d.ts.map +1 -1
  291. package/dist/src/status/base/index.d.ts.map +1 -0
  292. package/dist/src/status/external.d.ts +1 -1
  293. package/dist/src/status/queries.d.ts +3 -3
  294. package/dist/src/status/queries.d.ts.map +1 -1
  295. package/dist/src/steps/Steps.d.ts.map +1 -1
  296. package/dist/src/table/Table.d.ts.map +1 -1
  297. package/dist/src/table/cells/Forms.d.ts.map +1 -1
  298. package/dist/src/table/queries.d.ts +3 -3
  299. package/dist/src/table/queries.d.ts.map +1 -1
  300. package/dist/src/tabs/Selector.d.ts.map +1 -1
  301. package/dist/src/tabs/Tabs.d.ts.map +1 -1
  302. package/dist/src/tag/Tag.d.ts.map +1 -1
  303. package/dist/src/task/queries.d.ts +7 -6
  304. package/dist/src/task/queries.d.ts.map +1 -1
  305. package/dist/src/telem/SelectDataType.d.ts.map +1 -1
  306. package/dist/src/telem/aether/context.d.ts +2 -2
  307. package/dist/src/telem/aether/context.d.ts.map +1 -1
  308. package/dist/src/telem/aether/factory.d.ts +2 -2
  309. package/dist/src/telem/aether/factory.d.ts.map +1 -1
  310. package/dist/src/telem/aether/provider.d.ts +4 -14
  311. package/dist/src/telem/aether/provider.d.ts.map +1 -1
  312. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  313. package/dist/src/telem/aether/test/external.d.ts +4 -0
  314. package/dist/src/telem/aether/test/external.d.ts.map +1 -0
  315. package/dist/src/telem/aether/test/factory.d.ts +11 -0
  316. package/dist/src/telem/aether/test/factory.d.ts.map +1 -0
  317. package/dist/src/telem/aether/test/factory.spec.d.ts +2 -0
  318. package/dist/src/telem/aether/test/factory.spec.d.ts.map +1 -0
  319. package/dist/src/telem/aether/test/index.d.ts +2 -0
  320. package/dist/src/telem/aether/test/index.d.ts.map +1 -0
  321. package/dist/src/telem/aether/test/sink.d.ts +18 -0
  322. package/dist/src/telem/aether/test/sink.d.ts.map +1 -0
  323. package/dist/src/telem/aether/test/sink.spec.d.ts +2 -0
  324. package/dist/src/telem/aether/test/sink.spec.d.ts.map +1 -0
  325. package/dist/src/telem/aether/test/source.d.ts +17 -0
  326. package/dist/src/telem/aether/test/source.d.ts.map +1 -0
  327. package/dist/src/telem/aether/test/source.spec.d.ts +2 -0
  328. package/dist/src/telem/aether/test/source.spec.d.ts.map +1 -0
  329. package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
  330. package/dist/src/telem/control/Chip.d.ts.map +1 -1
  331. package/dist/src/telem/control/Controller.d.ts +2 -0
  332. package/dist/src/telem/control/Controller.d.ts.map +1 -1
  333. package/dist/src/telem/control/Indicator.d.ts.map +1 -1
  334. package/dist/src/telem/control/Legend.d.ts +2 -2
  335. package/dist/src/telem/control/aether/controller.d.ts +17 -6
  336. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  337. package/dist/src/telem/test/external.d.ts +2 -0
  338. package/dist/src/telem/test/external.d.ts.map +1 -0
  339. package/dist/src/telem/test/index.d.ts +2 -0
  340. package/dist/src/telem/test/index.d.ts.map +1 -0
  341. package/dist/src/telem/test/wrapper.d.ts +9 -0
  342. package/dist/src/telem/test/wrapper.d.ts.map +1 -0
  343. package/dist/src/telem/text/TimeRange.d.ts.map +1 -1
  344. package/dist/src/text/Text.d.ts +1 -1
  345. package/dist/src/text/Text.d.ts.map +1 -1
  346. package/dist/src/text/{core → base}/dimensions.d.ts +5 -5
  347. package/dist/src/text/{core → base}/dimensions.d.ts.map +1 -1
  348. package/dist/src/text/base/dimensions.spec.d.ts.map +1 -0
  349. package/dist/src/text/base/external.d.ts.map +1 -0
  350. package/dist/src/text/base/index.d.ts.map +1 -0
  351. package/dist/src/text/{core → base}/types.d.ts.map +1 -1
  352. package/dist/src/text/external.d.ts +2 -2
  353. package/dist/src/theming/aether/external.d.ts +2 -2
  354. package/dist/src/theming/aether/provider.d.ts +64 -1
  355. package/dist/src/theming/aether/provider.d.ts.map +1 -1
  356. package/dist/src/theming/{core → base}/fontString.d.ts +1 -1
  357. package/dist/src/theming/{core → base}/fontString.d.ts.map +1 -1
  358. package/dist/src/theming/{core → base}/theme.d.ts +39 -0
  359. package/dist/src/theming/{core → base}/theme.d.ts.map +1 -1
  360. package/dist/src/theming/css.d.ts +1 -1
  361. package/dist/src/theming/css.d.ts.map +1 -1
  362. package/dist/src/theming/external.d.ts +1 -1
  363. package/dist/src/tooltip/Config.d.ts.map +1 -1
  364. package/dist/src/tree/Context.d.ts +1 -1
  365. package/dist/src/tree/Tree.d.ts +1 -1
  366. package/dist/src/tree/Tree.d.ts.map +1 -1
  367. package/dist/src/tree/{core.d.ts → base.d.ts} +1 -1
  368. package/dist/src/tree/{core.d.ts.map → base.d.ts.map} +1 -1
  369. package/dist/src/tree/base.spec.d.ts +2 -0
  370. package/dist/src/tree/base.spec.d.ts.map +1 -0
  371. package/dist/src/tree/external.d.ts +2 -1
  372. package/dist/src/tree/external.d.ts.map +1 -1
  373. package/dist/src/triggers/Text.d.ts +2 -2
  374. package/dist/src/user/queries.d.ts +4 -4
  375. package/dist/src/user/queries.d.ts.map +1 -1
  376. package/dist/src/view/index.d.ts +2 -0
  377. package/dist/src/view/index.d.ts.map +1 -0
  378. package/dist/src/view/queries.d.ts +35 -0
  379. package/dist/src/view/queries.d.ts.map +1 -0
  380. package/dist/src/view/queries.spec.d.ts +2 -0
  381. package/dist/src/view/queries.spec.d.ts.map +1 -0
  382. package/dist/src/viewport/Mask.d.ts.map +1 -1
  383. package/dist/src/viewport/SelectMode.d.ts.map +1 -1
  384. package/dist/src/vis/button/aether/button.d.ts +15 -6
  385. package/dist/src/vis/button/aether/button.d.ts.map +1 -1
  386. package/dist/src/vis/button/aether/button.spec.d.ts +2 -0
  387. package/dist/src/vis/button/aether/button.spec.d.ts.map +1 -0
  388. package/dist/src/vis/button/use.d.ts +1 -1
  389. package/dist/src/vis/button/use.d.ts.map +1 -1
  390. package/dist/src/vis/diagram/Diagram.d.ts +6 -6
  391. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  392. package/dist/src/vis/diagram/aether/types.d.ts +2 -2
  393. package/dist/src/vis/diagram/align.d.ts.map +1 -1
  394. package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
  395. package/dist/src/vis/draw2d/index.d.ts +1 -1
  396. package/dist/src/vis/draw2d/index.d.ts.map +1 -1
  397. package/dist/src/vis/gauge/aether/gauge.d.ts +1 -1
  398. package/dist/src/vis/gauge/use.d.ts +2 -2
  399. package/dist/src/vis/input/aether/input.d.ts +11 -6
  400. package/dist/src/vis/input/aether/input.d.ts.map +1 -1
  401. package/dist/src/vis/input/use.d.ts.map +1 -1
  402. package/dist/src/vis/legend/Container.d.ts.map +1 -1
  403. package/dist/src/vis/legend/Grouped.d.ts.map +1 -1
  404. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  405. package/dist/src/vis/line/Line.d.ts.map +1 -1
  406. package/dist/src/vis/measure/aether/measure.d.ts +1 -1
  407. package/dist/src/vis/render/loop.d.ts +1 -1
  408. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  409. package/dist/src/vis/setpoint/aether/setpoint.d.ts +11 -6
  410. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  411. package/dist/src/vis/setpoint/use.d.ts.map +1 -1
  412. package/dist/src/vis/text/atlas.d.ts.map +1 -1
  413. package/dist/src/vis/toggle/aether/toggle.d.ts +12 -3
  414. package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
  415. package/dist/src/vis/toggle/aether/toggle.spec.d.ts +2 -0
  416. package/dist/src/vis/toggle/aether/toggle.spec.d.ts.map +1 -0
  417. package/dist/src/vis/toggle/use.d.ts +1 -1
  418. package/dist/src/vis/toggle/use.d.ts.map +1 -1
  419. package/dist/src/vis/value/use.d.ts +2 -2
  420. package/dist/src/workspace/queries.d.ts +7 -7
  421. package/dist/src/workspace/queries.d.ts.map +1 -1
  422. package/dist/tabs.cjs +1 -1
  423. package/dist/tabs.js +1 -1
  424. package/dist/text.cjs +1 -1
  425. package/dist/text.js +2 -2
  426. package/dist/theme.css +136 -124
  427. package/dist/theming.cjs +1 -1
  428. package/dist/theming.js +2 -2
  429. package/dist/tree.cjs +1 -1
  430. package/dist/tree.js +1 -1
  431. package/dist/triggers.cjs +1 -1
  432. package/dist/triggers.js +1 -1
  433. package/dist/types-B5-Tni3G.js +82 -0
  434. package/dist/types-C0tUDfsz.cjs +1 -0
  435. package/dist/units-Bd_mf9Ye.cjs +1 -0
  436. package/dist/{units-CgMHbHoA.js → units-CEfK1L7C.js} +1 -1
  437. package/dist/{value-CzFrd9p6.js → value-BmuhX6zs.js} +2278 -2285
  438. package/dist/value-CZfzRi_x.cjs +53 -0
  439. package/dist/video.cjs +1 -1
  440. package/dist/video.js +1 -1
  441. package/package.json +25 -23
  442. package/dist/Animated-D-pQ3CYh.cjs +0 -1
  443. package/dist/Button-D5aoG3sV.cjs +0 -1
  444. package/dist/Haul-9RVCn3cI.cjs +0 -1
  445. package/dist/Menu-BYca9tGe.cjs +0 -1
  446. package/dist/Menu-CQsrN_mP.js +0 -134
  447. package/dist/Provider-DBg-Li_7.cjs +0 -5
  448. package/dist/Tags-CQFa3kY-.cjs +0 -1
  449. package/dist/external-DDHknds-.cjs +0 -1
  450. package/dist/external-DcMOF1Je.cjs +0 -1
  451. package/dist/external-JpvbclD8.cjs +0 -79
  452. package/dist/external-RkrrZXG5.cjs +0 -1
  453. package/dist/hooks-CRSphXSb.cjs +0 -1
  454. package/dist/provider-DHDqgF1B.cjs +0 -76
  455. package/dist/src/arc/handle/Core.d.ts +0 -8
  456. package/dist/src/flux/core/index.d.ts +0 -2
  457. package/dist/src/flux/core/index.d.ts.map +0 -1
  458. package/dist/src/flux/core/store.spec.d.ts.map +0 -1
  459. package/dist/src/flux/core/streamer.spec.d.ts.map +0 -1
  460. package/dist/src/form/synced.d.ts +0 -26
  461. package/dist/src/form/synced.d.ts.map +0 -1
  462. package/dist/src/lineplot/aether/BoundQuerier.d.ts +0 -35
  463. package/dist/src/lineplot/aether/BoundQuerier.d.ts.map +0 -1
  464. package/dist/src/lineplot/useBoundQuerier.d.ts +0 -11
  465. package/dist/src/lineplot/useBoundQuerier.d.ts.map +0 -1
  466. package/dist/src/observe/index.d.ts +0 -2
  467. package/dist/src/observe/index.d.ts.map +0 -1
  468. package/dist/src/observe/use.d.ts +0 -8
  469. package/dist/src/observe/use.d.ts.map +0 -1
  470. package/dist/src/status/core/Aggregator.spec.d.ts.map +0 -1
  471. package/dist/src/status/core/Notification.spec.d.ts.map +0 -1
  472. package/dist/src/status/core/index.d.ts.map +0 -1
  473. package/dist/src/testutil/Aether.d.ts +0 -4
  474. package/dist/src/testutil/Aether.d.ts.map +0 -1
  475. package/dist/src/text/core/dimensions.spec.d.ts.map +0 -1
  476. package/dist/src/text/core/external.d.ts.map +0 -1
  477. package/dist/src/text/core/index.d.ts.map +0 -1
  478. package/dist/src/tree/core.spec.d.ts +0 -2
  479. package/dist/src/tree/core.spec.d.ts.map +0 -1
  480. package/dist/types-8-Mr79SF.cjs +0 -1
  481. package/dist/types-DGaZ_JZb.js +0 -82
  482. package/dist/units-InoNiVrK.cjs +0 -1
  483. package/dist/value-QHhF9WPA.cjs +0 -53
  484. /package/dist/src/flux/{core → base}/client.d.ts +0 -0
  485. /package/dist/src/flux/{core → base}/external.d.ts +0 -0
  486. /package/dist/src/flux/{core → base}/store.d.ts +0 -0
  487. /package/dist/src/flux/{core → base}/store.spec.d.ts +0 -0
  488. /package/dist/src/flux/{core → base}/streamer.spec.d.ts +0 -0
  489. /package/dist/src/flux/{core → base}/types.d.ts +0 -0
  490. /package/dist/src/status/{core → base}/Aggregator.d.ts +0 -0
  491. /package/dist/src/status/{core → base}/Aggregator.spec.d.ts +0 -0
  492. /package/dist/src/status/{core → base}/CreateIcon.d.ts +0 -0
  493. /package/dist/src/status/{core → base}/Indicator.d.ts +0 -0
  494. /package/dist/src/status/{core → base}/Notification.d.ts +0 -0
  495. /package/dist/src/status/{core → base}/Notification.spec.d.ts +0 -0
  496. /package/dist/src/status/{core → base}/Summary.d.ts +0 -0
  497. /package/dist/src/status/{core → base}/colors.d.ts +0 -0
  498. /package/dist/src/status/{core → base}/external.d.ts +0 -0
  499. /package/dist/src/status/{core → base}/index.d.ts +0 -0
  500. /package/dist/src/text/{core → base}/dimensions.spec.d.ts +0 -0
  501. /package/dist/src/text/{core → base}/external.d.ts +0 -0
  502. /package/dist/src/text/{core → base}/index.d.ts +0 -0
  503. /package/dist/src/text/{core → base}/types.d.ts +0 -0
@@ -2,13 +2,13 @@ import b, { z as a } from "zod";
2
2
  const hr = (t) => b.union([
3
3
  b.union([b.null(), b.undefined()]).transform(() => []),
4
4
  t.array()
5
- ]), $n = (t) => Array.isArray(t) ? t : t == null ? [] : [t], fr = (t, e) => {
5
+ ]), Cn = (t) => Array.isArray(t) ? t : t == null ? [] : [t], fr = (t, e) => {
6
6
  if (Array.isArray(e))
7
7
  return e.reduce((s, i) => fr(s, i), t ?? []);
8
8
  if (t == null) return [e];
9
9
  const r = t.findIndex((s) => s == e), n = [...t];
10
10
  return r === -1 ? n.push(e) : n[r] = e, n;
11
- }, Cn = ((t, e) => {
11
+ }, Rn = ((t, e) => {
12
12
  if (t != null)
13
13
  return Array.isArray(e) ? t.filter((r) => !e.includes(r)) : t.filter((r) => r != e);
14
14
  }), dr = (t, e) => {
@@ -17,18 +17,18 @@ const hr = (t) => b.union([
17
17
  if (t == null) return [e];
18
18
  const r = t.findIndex((s) => s.key === e.key), n = [...t];
19
19
  return r === -1 ? n.push(e) : n[r] = e, n;
20
- }, Rn = ((t, e) => {
20
+ }, Ln = ((t, e) => {
21
21
  if (t != null)
22
22
  return Array.isArray(e) ? t.filter((r) => !e.includes(r.key)) : t.filter((r) => r.key !== e);
23
- }), Gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23
+ }), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
24
  __proto__: null,
25
25
  nullableZ: hr,
26
- remove: Cn,
27
- removeKeyed: Rn,
28
- toArray: $n,
26
+ remove: Rn,
27
+ removeKeyed: Ln,
28
+ toArray: Cn,
29
29
  upsert: fr,
30
30
  upsertKeyed: dr
31
- }, Symbol.toStringTag, { value: "Module" })), Ln = (t) => {
31
+ }, Symbol.toStringTag, { value: "Module" })), kn = (t) => {
32
32
  const e = t.replace(/_[a-z]/g, (r) => r[1].toUpperCase());
33
33
  return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
34
34
  }, Ye = (t) => {
@@ -36,7 +36,7 @@ const hr = (t) => b.union([
36
36
  if (typeof r == "string") return t(r);
37
37
  if (Array.isArray(r)) return r.map((o) => e(o, n));
38
38
  if (!et(r)) return r;
39
- n = Pn(n);
39
+ n = zn(n);
40
40
  const s = {}, i = r;
41
41
  return "toJSON" in i && typeof i.toJSON == "function" ? e(i.toJSON(), n) : (Object.keys(i).forEach((o) => {
42
42
  let u = i[o];
@@ -48,20 +48,20 @@ const hr = (t) => b.union([
48
48
  }), s);
49
49
  };
50
50
  return e;
51
- }, Nt = Ye(Ln), kn = (t) => (
51
+ }, Nt = Ye(kn), Dn = (t) => (
52
52
  // Don't convert the first character and don't convert a character that is after a
53
53
  // non-alphanumeric character
54
54
  t.replace(
55
55
  /([a-z0-9])([A-Z])/g,
56
56
  (e, r, n) => `${r}_${n.toLowerCase()}`
57
57
  )
58
- ), gr = Ye(kn), pr = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), Dn = [Number, String, Uint8Array], ot = {
58
+ ), gr = Ye(Dn), pr = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), Pn = [Number, String, Uint8Array], ot = {
59
59
  recursive: !0,
60
60
  recursiveInArray: !0
61
- }, Pn = (t = ot) => (t.recursive == null ? t = ot : t.recursiveInArray ??= !1, t), er = (t) => t != null && Array.isArray(t), et = (t) => t != null && typeof t == "object" && !Array.isArray(t), tr = (t) => Dn.some((e) => t instanceof e), qn = (t) => t.replace(/[\s_]+/g, "-").replace(
61
+ }, zn = (t = ot) => (t.recursive == null ? t = ot : t.recursiveInArray ??= !1, t), er = (t) => t != null && Array.isArray(t), et = (t) => t != null && typeof t == "object" && !Array.isArray(t), tr = (t) => Pn.some((e) => t instanceof e), qn = (t) => t.replace(/[\s_]+/g, "-").replace(
62
62
  /([a-z0-9])([A-Z])/g,
63
63
  (e, r, n) => `${r}-${n.toLowerCase()}`
64
- ).toLowerCase(), zn = Ye(qn), Zn = (t) => {
64
+ ).toLowerCase(), Zn = Ye(qn), Fn = (t) => {
65
65
  if (t.length === 0) return t;
66
66
  let e = t.replace(/[_-]/g, " ");
67
67
  return e = e.replace(
@@ -71,18 +71,18 @@ const hr = (t) => b.union([
71
71
  /([A-Z]+)([A-Z][a-z])/g,
72
72
  (r, n, s) => `${n} ${s}`
73
73
  ), e = e.replace(/\s+/g, " ").trim(), e = e.replace(/\b\w/g, (r) => r.toUpperCase()), e;
74
- }, Fn = Ye(Zn), Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
74
+ }, Yn = Ye(Fn), Ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75
75
  __proto__: null,
76
76
  camelToSnake: gr,
77
77
  capitalize: pr,
78
78
  snakeToCamel: Nt,
79
- toKebab: zn,
80
- toProperNoun: Fn
81
- }, Symbol.toStringTag, { value: "Module" })), $e = (t) => t != null && typeof t == "object" && !Array.isArray(t), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
79
+ toKebab: Zn,
80
+ toProperNoun: Yn
81
+ }, Symbol.toStringTag, { value: "Module" })), $e = (t) => t != null && typeof t == "object" && !Array.isArray(t), Ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
82
  __proto__: null,
83
83
  isObject: $e
84
84
  }, Symbol.toStringTag, { value: "Module" }));
85
- class Yn {
85
+ class Vn {
86
86
  contentType = "application/json";
87
87
  decoder;
88
88
  encoder;
@@ -104,7 +104,7 @@ class Yn {
104
104
  return JSON.stringify(r, (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : typeof s == "bigint" ? s.toString() : s);
105
105
  }
106
106
  }
107
- const at = new Yn(), C = (t) => t != null && typeof t == "object" && "value" in t;
107
+ const at = new Vn(), C = (t) => t != null && typeof t == "object" && "value" in t;
108
108
  class ne {
109
109
  /** The underlying primitive value */
110
110
  value;
@@ -143,14 +143,14 @@ const It = (t) => t != null && typeof t == "object" && "toString" in t, yr = (t)
143
143
  default:
144
144
  return !1;
145
145
  }
146
- }, Vn = (t) => !yr(t), Ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
146
+ }, Wn = (t) => !yr(t), Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
147
147
  __proto__: null,
148
148
  ValueExtension: ne,
149
149
  isCrudeValueExtension: C,
150
- isNonZero: Vn,
150
+ isNonZero: Wn,
151
151
  isStringer: It,
152
152
  isZero: yr
153
- }, Symbol.toStringTag, { value: "Module" })), ut = (t) => [...new Set(t)], Wn = (t, e, r = !0) => {
153
+ }, Symbol.toStringTag, { value: "Module" })), ut = (t) => [...new Set(t)], Gn = (t, e, r = !0) => {
154
154
  const n = /* @__PURE__ */ new Map();
155
155
  return t.forEach((s) => {
156
156
  const i = e(s);
@@ -160,9 +160,9 @@ const It = (t) => t != null && typeof t == "object" && "toString" in t, yr = (t)
160
160
  }
161
161
  n.set(i, s);
162
162
  }), Array.from(n.values());
163
- }, Ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
163
+ }, _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
164
164
  __proto__: null,
165
- by: Wn,
165
+ by: Gn,
166
166
  unique: ut
167
167
  }, Symbol.toStringTag, { value: "Module" })), Ne = (t, e = !1) => {
168
168
  const r = It(t) ? "stringer" : typeof t;
@@ -190,18 +190,18 @@ const It = (t) => t != null && typeof t == "object" && "toString" in t, yr = (t)
190
190
  return console.warn(`sortFunc: unknown type ${r}`), () => -1;
191
191
  }
192
192
  return e ? br(n) : n;
193
- }, Gn = (t, e, r) => {
193
+ }, Hn = (t, e, r) => {
194
194
  const n = Ne(e[t], r);
195
195
  return (s, i) => n(s[t], i[t]);
196
- }, Hn = (t, e) => t.length !== e.length ? t.length - e.length : t.every((r, n) => r === e[n]) ? 0 : -1, mr = (t, e) => {
196
+ }, Xn = (t, e) => t.length !== e.length ? t.length - e.length : t.every((r, n) => r === e[n]) ? 0 : -1, mr = (t, e) => {
197
197
  if (t.length !== e.length) return t.length - e.length;
198
198
  if (t.length === 0) return 0;
199
199
  const r = Ne(t[0]), n = [...t].sort(r), s = [...e].sort(r);
200
200
  return n.every((i, o) => i === s[o]) ? 0 : -1;
201
- }, Xn = (t, e) => {
201
+ }, Jn = (t, e) => {
202
202
  const r = ut(t), n = ut(e);
203
203
  return mr(r, n);
204
- }, Jn = (t, e) => t === e ? 0 : t === "first" && e === "last" ? 1 : -1, br = (t) => (e, r) => t(r, e), se = 0, V = -1, W = 1, wr = (t) => t < se, Or = (t) => t > se, Kn = (t) => t >= se, vr = (t) => t === se, Qn = (t, e) => {
204
+ }, Kn = (t, e) => t === e ? 0 : t === "first" && e === "last" ? 1 : -1, br = (t) => (e, r) => t(r, e), se = 0, V = -1, W = 1, wr = (t) => t < se, Or = (t) => t > se, Qn = (t) => t >= se, vr = (t) => t === se, _n = (t, e) => {
205
205
  const r = /([a-zA-Z]+)|(\d+)/g, n = t.replace(/[\s_.-]+/g, "").match(r), s = e.replace(/[\s_.-]+/g, "").match(r);
206
206
  if (!n || !s) return 0;
207
207
  for (let i = 0; i < Math.min(n.length, s.length); i++) {
@@ -224,27 +224,27 @@ const It = (t) => t != null && typeof t == "object" && "toString" in t, yr = (t)
224
224
  u < 0 ? n = o + 1 : s = o;
225
225
  }
226
226
  return n;
227
- }, _n = (t, e, r) => {
227
+ }, es = (t, e, r) => {
228
228
  const n = Tr(t, e, r);
229
229
  t.splice(n, 0, e);
230
- }, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
230
+ }, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
231
231
  __proto__: null,
232
232
  EQUAL: se,
233
233
  GREATER_THAN: W,
234
234
  LESS_THAN: V,
235
- insert: _n,
235
+ insert: es,
236
236
  isEqualTo: vr,
237
237
  isGreaterThan: Or,
238
- isGreaterThanEqual: Kn,
238
+ isGreaterThanEqual: Qn,
239
239
  isLessThan: wr,
240
240
  newF: Ne,
241
- newFieldF: Gn,
242
- order: Jn,
243
- primitiveArrays: Hn,
241
+ newFieldF: Hn,
242
+ order: Kn,
243
+ primitiveArrays: Xn,
244
244
  reverseF: br,
245
245
  search: Tr,
246
- stringsWithNumbers: Qn,
247
- uniqueUnorderedPrimitiveArrays: Xn,
246
+ stringsWithNumbers: _n,
247
+ uniqueUnorderedPrimitiveArrays: Jn,
248
248
  unorderedPrimitiveArrays: mr
249
249
  }, Symbol.toStringTag, { value: "Module" }));
250
250
  let xr = (t, e = 21) => (r = e) => {
@@ -253,32 +253,32 @@ let xr = (t, e = 21) => (r = e) => {
253
253
  n += t[Math.random() * t.length | 0];
254
254
  return n;
255
255
  };
256
- const Sr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", es = `0123456789${Sr}`, Nr = 11, ts = xr(Sr, 1), rs = xr(es, Nr - 1), Mt = () => `${ts()}${rs()}`, _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
256
+ const Sr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", ts = `0123456789${Sr}`, Nr = 11, rs = xr(Sr, 1), ns = xr(ts, Nr - 1), Mt = () => `${rs()}${ns()}`, tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
257
257
  __proto__: null,
258
258
  LENGTH: Nr,
259
259
  create: Mt
260
- }, Symbol.toStringTag, { value: "Module" })), ns = (t, e) => (r) => r instanceof e || typeof r == "object" && r !== null && "discriminator" in r && r.discriminator === t, ss = 2 ** 8 - 1, Ir = 2 ** 12 - 1, is = 2 ** 16 - 1, os = 2 ** 32 - 1, as = 2n ** 64n - 1n, us = 2 ** 64 - 1, ls = -128, cs = 2 ** 7 - 1, hs = -32768, fs = 2 ** 15 - 1, ds = -2147483648, gs = 2 ** 31 - 1, ps = -(2n ** 63n), Pe = 2n ** 63n - 1n, ys = -9223372036854776e3, Mr = 2 ** 63 - 1, le = (t) => (e, r) => {
260
+ }, Symbol.toStringTag, { value: "Module" })), ss = (t, e) => (r) => r instanceof e || typeof r == "object" && r !== null && "discriminator" in r && r.discriminator === t, is = 2 ** 8 - 1, Ir = 2 ** 12 - 1, os = 2 ** 16 - 1, as = 2 ** 32 - 1, us = 2n ** 64n - 1n, ls = 2 ** 64 - 1, cs = -128, hs = 2 ** 7 - 1, fs = -32768, ds = 2 ** 15 - 1, gs = -2147483648, ps = 2 ** 31 - 1, ys = -(2n ** 63n), Pe = 2n ** 63n - 1n, ms = -9223372036854776e3, Mr = 2 ** 63 - 1, le = (t) => (e, r) => {
261
261
  if (typeof e == "bigint") {
262
- if (qe(r))
262
+ if (ze(r))
263
263
  return t(e, BigInt(r));
264
264
  const n = t(Number(e), Number(r));
265
265
  return typeof n == "number" ? BigInt(Math.round(n)) : n;
266
266
  }
267
267
  return t(Number(e), Number(r));
268
- }, Z = le((t, e) => t - e), G = le((t, e) => t + e), ms = (t, e, r = 1e-4) => Math.abs(t - e) < r, lt = (t, e) => {
268
+ }, Z = le((t, e) => t - e), G = le((t, e) => t + e), bs = (t, e, r = 1e-4) => Math.abs(t - e) < r, lt = (t, e) => {
269
269
  const r = typeof t == "bigint", n = typeof e == "bigint";
270
- return r && n ? t === e : r && qe(e) ? t === BigInt(e) : n && qe(t) ? e === BigInt(t) : t === e;
271
- }, bs = (t) => {
270
+ return r && n ? t === e : r && ze(e) ? t === BigInt(e) : n && ze(t) ? e === BigInt(t) : t === e;
271
+ }, ws = (t) => {
272
272
  const e = 10 ** Math.floor(Math.log10(t));
273
273
  return Math.round(t / e) * e;
274
- }, Ar = le((t, e) => t <= e ? t : e), qe = (t) => typeof t == "bigint" ? !0 : Number.isInteger(t), ws = le((t, e) => t >= e ? t : e), Er = (t) => typeof t == "bigint" ? t < 0n ? -t : t : t < 0 ? -t : t, k = le((t, e) => t * e), Ie = le((t, e) => t / e), jr = a.tuple([a.number(), a.number()]), At = a.object({ width: a.number(), height: a.number() }), Os = a.object({
274
+ }, Ar = le((t, e) => t <= e ? t : e), ze = (t) => typeof t == "bigint" ? !0 : Number.isInteger(t), Os = le((t, e) => t >= e ? t : e), Er = (t) => typeof t == "bigint" ? t < 0n ? -t : t : t < 0 ? -t : t, k = le((t, e) => t * e), Ie = le((t, e) => t / e), jr = a.tuple([a.number(), a.number()]), At = a.object({ width: a.number(), height: a.number() }), vs = a.object({
275
275
  signedWidth: a.number(),
276
276
  signedHeight: a.number()
277
- }), vs = ["start", "center", "end"], ue = a.object({ x: a.number(), y: a.number() }), Ur = a.object({ clientX: a.number(), clientY: a.number() }), Ve = ["x", "y"], Et = a.enum(Ve), jt = ["top", "right", "bottom", "left"], Ts = a.enum(jt), We = ["left", "right"], Ut = a.enum(We), Ge = ["top", "bottom"], Bt = a.enum(Ge), $t = ["center"], ct = a.enum($t), xs = [...jt, ...$t], Ct = a.enum(xs);
278
- a.enum(vs);
279
- const Ss = ["first", "last"];
280
- a.enum(Ss);
281
- const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...Et.options, ...Ct.options]), Ms = a.union([Et, Ct, a.instanceof(String)]), w = (t, e, r) => {
277
+ }), Ts = ["start", "center", "end"], ue = a.object({ x: a.number(), y: a.number() }), Ur = a.object({ clientX: a.number(), clientY: a.number() }), Ve = ["x", "y"], Et = a.enum(Ve), jt = ["top", "right", "bottom", "left"], xs = a.enum(jt), We = ["left", "right"], Ut = a.enum(We), Ge = ["top", "bottom"], Bt = a.enum(Ge), $t = ["center"], ct = a.enum($t), Ss = [...jt, ...$t], Ct = a.enum(Ss);
278
+ a.enum(Ts);
279
+ const Ns = ["first", "last"];
280
+ a.enum(Ns);
281
+ const Is = a.object({ lower: a.number(), upper: a.number() }), Ms = a.enum([...Et.options, ...Ct.options]), As = a.union([Et, Ct, a.instanceof(String)]), w = (t, e, r) => {
282
282
  const n = {};
283
283
  if (typeof e == "object" && (r = e, e = void 0), r = { makeValid: !0, ...r }, typeof t == "number" || typeof t == "bigint")
284
284
  e != null ? (n.lower = t, n.upper = e) : (n.lower = typeof t == "bigint" ? 0n : 0, n.upper = t);
@@ -288,7 +288,7 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
288
288
  } else
289
289
  n.lower = t.lower, n.upper = t.upper;
290
290
  return r?.makeValid ? Br(n) : n;
291
- }, As = Object.freeze({ lower: 0, upper: 0 }), Es = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), js = Object.freeze({ lower: 0, upper: 1 }), Us = Object.freeze({ lower: -1, upper: 1 }), Bs = (t, e) => {
291
+ }, Es = Object.freeze({ lower: 0, upper: 0 }), js = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), Us = Object.freeze({ lower: 0, upper: 1 }), Bs = Object.freeze({ lower: -1, upper: 1 }), $s = (t, e) => {
292
292
  if (t == null && e == null) return !0;
293
293
  if (t == null || e == null) return !1;
294
294
  const r = w(t), n = w(e);
@@ -302,31 +302,31 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
302
302
  return e >= r.lower && e < r.upper;
303
303
  const n = w(e);
304
304
  return n.lower >= r.lower && n.upper <= r.upper;
305
- }, $s = (t, e) => {
305
+ }, Cs = (t, e) => {
306
306
  const r = w(t), n = w(e);
307
307
  return r.lower === n.lower ? !0 : n.upper === r.lower || n.lower === r.upper ? !1 : D(r, n.upper) || D(r, n.lower) || D(n, r.upper) || D(n, r.lower);
308
308
  }, ce = (t) => {
309
309
  const e = w(t);
310
310
  return e.upper - e.lower;
311
- }, Cs = (t) => {
311
+ }, Rs = (t) => {
312
312
  const e = w(t);
313
313
  return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
314
- }, Rs = (t) => {
314
+ }, Ls = (t) => {
315
315
  const e = ce(t);
316
316
  return typeof e == "number" ? e === 0 : e === 0n;
317
- }, Ls = (t) => {
317
+ }, ks = (t) => {
318
318
  const e = w(t);
319
319
  return typeof e.lower == "bigint" ? !0 : Number.isFinite(e.lower) && Number.isFinite(e.upper);
320
- }, ks = (t) => {
320
+ }, Ds = (t) => {
321
321
  const e = w(t);
322
322
  return (e.upper + e.lower) / 2;
323
323
  }, $r = (t) => ({
324
324
  lower: Math.min(...t.map((e) => w(e).lower)),
325
325
  upper: Math.max(...t.map((e) => w(e).upper))
326
- }), Ds = (t) => ({
326
+ }), Ps = (t) => ({
327
327
  lower: Math.max(...t.map((e) => w(e).lower)),
328
328
  upper: Math.min(...t.map((e) => w(e).upper))
329
- }), Ps = (t) => {
329
+ }), zs = (t) => {
330
330
  const e = w(t), r = typeof e.lower == "bigint";
331
331
  return Array.from({ length: Number(ce(t)) }, (n, s) => r ? e.lower + BigInt(s) : e.lower + s);
332
332
  }, ft = (t, e) => {
@@ -399,32 +399,32 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
399
399
  }
400
400
  }
401
401
  return i;
402
- }, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
402
+ }, rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
403
403
  __proto__: null,
404
- CLIP: Us,
405
- DECIMAL: js,
406
- INFINITE: Es,
407
- ZERO: As,
408
- bounds: Ns,
404
+ CLIP: Bs,
405
+ DECIMAL: Us,
406
+ INFINITE: js,
407
+ ZERO: Es,
408
+ bounds: Is,
409
409
  buildInsertionPlan: qs,
410
410
  clamp: ht,
411
411
  construct: w,
412
412
  contains: D,
413
413
  distance: Rr,
414
- equals: Bs,
414
+ equals: $s,
415
415
  findInsertPosition: ft,
416
- isFinite: Ls,
417
- isZero: Cs,
418
- linspace: Ps,
416
+ isFinite: ks,
417
+ isZero: Rs,
418
+ linspace: zs,
419
419
  makeValid: Br,
420
420
  max: $r,
421
- mean: ks,
422
- min: Ds,
423
- overlapsWith: $s,
421
+ mean: Ds,
422
+ min: Ps,
423
+ overlapsWith: Cs,
424
424
  span: ce,
425
- spanIsZero: Rs,
425
+ spanIsZero: Ls,
426
426
  traverse: Cr
427
- }, Symbol.toStringTag, { value: "Module" })), dt = 2, gt = 3, Lr = 2, zs = (t, e) => {
427
+ }, Symbol.toStringTag, { value: "Module" })), dt = 2, gt = 3, Lr = 2, Zs = (t, e) => {
428
428
  if (Number.isNaN(t) || !Number.isFinite(t)) return t;
429
429
  const r = ce(e);
430
430
  if (r == 0) return t;
@@ -432,7 +432,7 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
432
432
  r >= 1e3 ? n = dt : r >= 1 ? n = gt : n = Math.ceil(-Math.log10(r)) + Lr;
433
433
  const s = 10 ** n;
434
434
  return Math.round(t * s) / s;
435
- }, Zs = 5, Fs = 1e-10, Ys = (t, e) => {
435
+ }, Fs = 5, Ys = 1e-10, Vs = (t, e) => {
436
436
  if (Number.isNaN(t) || !Number.isFinite(t)) return t;
437
437
  const r = Math.abs(t);
438
438
  if (r === 0) return 0;
@@ -440,7 +440,7 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
440
440
  if (e != null) {
441
441
  s = ce(e);
442
442
  const u = s / r;
443
- n = s > 0 && u > Fs;
443
+ n = s > 0 && u > Ys;
444
444
  }
445
445
  if (n) {
446
446
  let u;
@@ -456,86 +456,86 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
456
456
  const u = 10 ** gt;
457
457
  return Math.round(t * u) / u;
458
458
  }
459
- const i = Math.floor(Math.log10(r)), o = 10 ** (Zs - i - 1);
459
+ const i = Math.floor(Math.log10(r)), o = 10 ** (Fs - i - 1);
460
460
  return Math.round(t * o) / o;
461
- }, tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
461
+ }, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
462
462
  __proto__: null,
463
- MAX_INT16: fs,
464
- MAX_INT32: gs,
463
+ MAX_INT16: ds,
464
+ MAX_INT32: ps,
465
465
  MAX_INT64: Pe,
466
466
  MAX_INT64_NUMBER: Mr,
467
- MAX_INT8: cs,
467
+ MAX_INT8: hs,
468
468
  MAX_UINT12: Ir,
469
- MAX_UINT16: is,
470
- MAX_UINT32: os,
471
- MAX_UINT64: as,
472
- MAX_UINT64_NUMBER: us,
473
- MAX_UINT8: ss,
474
- MIN_INT16: hs,
475
- MIN_INT32: ds,
476
- MIN_INT64: ps,
477
- MIN_INT64_NUMBER: ys,
478
- MIN_INT8: ls,
469
+ MAX_UINT16: os,
470
+ MAX_UINT32: as,
471
+ MAX_UINT64: us,
472
+ MAX_UINT64_NUMBER: ls,
473
+ MAX_UINT8: is,
474
+ MIN_INT16: fs,
475
+ MIN_INT32: gs,
476
+ MIN_INT64: ys,
477
+ MIN_INT64_NUMBER: ms,
478
+ MIN_INT8: cs,
479
479
  abs: Er,
480
480
  add: G,
481
- closeTo: ms,
481
+ closeTo: bs,
482
482
  div: Ie,
483
483
  equal: lt,
484
- isInteger: qe,
485
- max: ws,
484
+ isInteger: ze,
485
+ max: Os,
486
486
  min: Ar,
487
487
  mult: k,
488
- roundBySpan: zs,
489
- roundToNearestMagnitude: bs,
490
- smartRound: Ys,
488
+ roundBySpan: Zs,
489
+ roundToNearestMagnitude: ws,
490
+ smartRound: Vs,
491
491
  sub: Z
492
- }, Symbol.toStringTag, { value: "Module" })), kr = Is, q = (t) => Ve.includes(t) ? t : Ge.includes(t) ? "y" : "x", Vs = (t) => q(t) === "x" ? "y" : "x", Ws = (t) => q(t) === "x" ? "width" : "height", Gs = (t) => q(t) === "x" ? "left" : "top", Hs = (t) => kr.safeParse(t).success, Xs = (t) => q(t) === "x" ? "signedWidth" : "signedHeight", Js = (t) => t === "center" ? !1 : q(t) === "x", Ks = (t) => q(t) === "y", Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
492
+ }, Symbol.toStringTag, { value: "Module" })), kr = Ms, z = (t) => Ve.includes(t) ? t : Ge.includes(t) ? "y" : "x", Ws = (t) => z(t) === "x" ? "y" : "x", Gs = (t) => z(t) === "x" ? "width" : "height", Hs = (t) => z(t) === "x" ? "left" : "top", Xs = (t) => kr.safeParse(t).success, Js = (t) => z(t) === "x" ? "signedWidth" : "signedHeight", Ks = (t) => t === "center" ? !1 : z(t) === "x", Qs = (t) => z(t) === "y", _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
493
493
  __proto__: null,
494
494
  DIRECTIONS: Ve,
495
- construct: q,
495
+ construct: z,
496
496
  crude: kr,
497
- dimension: Ws,
497
+ dimension: Gs,
498
498
  direction: Et,
499
- isDirection: Hs,
500
- isX: Js,
501
- isY: Ks,
502
- location: Gs,
503
- signedDimension: Xs,
504
- swap: Vs
505
- }, Symbol.toStringTag, { value: "Module" })), _s = Ut, ei = Bt, ti = ct, ri = {
499
+ isDirection: Xs,
500
+ isX: Ks,
501
+ isY: Qs,
502
+ location: Hs,
503
+ signedDimension: Js,
504
+ swap: Ws
505
+ }, Symbol.toStringTag, { value: "Module" })), ei = Ut, ti = Bt, ri = ct, ni = {
506
506
  top: "bottom",
507
507
  right: "left",
508
508
  bottom: "top",
509
509
  left: "right",
510
510
  center: "center"
511
- }, ni = {
511
+ }, si = {
512
512
  top: { clockwise: "left", counterclockwise: "right" },
513
513
  right: { clockwise: "top", counterclockwise: "bottom" },
514
514
  bottom: { clockwise: "right", counterclockwise: "left" },
515
515
  left: { clockwise: "bottom", counterclockwise: "top" }
516
- }, si = Ms, te = (t) => t instanceof String || !Ve.includes(t) ? t : t === "x" ? "left" : "top", ii = (t) => ri[te(t)], oi = (t, e) => ni[t][e], ve = (t) => {
516
+ }, ii = As, te = (t) => t instanceof String || !Ve.includes(t) ? t : t === "x" ? "left" : "top", oi = (t) => ni[te(t)], ai = (t, e) => si[t][e], ve = (t) => {
517
517
  const e = te(t);
518
518
  return e === "top" || e === "bottom" ? "y" : "x";
519
- }, ai = a.object({
519
+ }, ui = a.object({
520
520
  x: Ut.or(ct),
521
521
  y: Bt.or(ct)
522
- }), Rt = a.object({ x: Ut, y: Bt }), he = Object.freeze({ x: "left", y: "top" }), Lt = Object.freeze({ x: "right", y: "top" }), He = Object.freeze({ x: "left", y: "bottom" }), kt = Object.freeze({ x: "right", y: "bottom" }), Dt = Object.freeze({ x: "center", y: "center" }), Pt = Object.freeze({ x: "center", y: "top" }), qt = Object.freeze({ x: "center", y: "bottom" }), zt = Object.freeze({ x: "right", y: "center" }), Zt = Object.freeze({ x: "left", y: "center" }), ui = Object.freeze([
522
+ }), Rt = a.object({ x: Ut, y: Bt }), he = Object.freeze({ x: "left", y: "top" }), Lt = Object.freeze({ x: "right", y: "top" }), He = Object.freeze({ x: "left", y: "bottom" }), kt = Object.freeze({ x: "right", y: "bottom" }), Dt = Object.freeze({ x: "center", y: "center" }), Pt = Object.freeze({ x: "center", y: "top" }), zt = Object.freeze({ x: "center", y: "bottom" }), qt = Object.freeze({ x: "right", y: "center" }), Zt = Object.freeze({ x: "left", y: "center" }), li = Object.freeze([
523
523
  Zt,
524
- zt,
525
- Pt,
526
524
  qt,
525
+ Pt,
526
+ zt,
527
527
  he,
528
528
  Lt,
529
529
  He,
530
530
  kt,
531
531
  Dt
532
- ]), Ft = (t, e) => t.x === e.x && t.y === e.y, li = (t, e) => {
532
+ ]), Ft = (t, e) => t.x === e.x && t.y === e.y, ci = (t, e) => {
533
533
  if (typeof e == "object") {
534
534
  let r = !0;
535
535
  return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
536
536
  }
537
537
  return t.x === e || t.y === e;
538
- }, Dr = (t) => [t.x, t.y], Ce = (t) => ve(te(t)) === "x", ci = (t) => ve(te(t)) === "y", hi = (t) => `${t.x}${pr(t.y)}`, fi = (t, e) => {
538
+ }, Dr = (t) => [t.x, t.y], Ce = (t) => ve(te(t)) === "x", hi = (t) => ve(te(t)) === "y", fi = (t) => `${t.x}${pr(t.y)}`, di = (t, e) => {
539
539
  let r, n;
540
540
  if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = te(t), n = te(e ?? t)), ve(r) === ve(n) && r !== "center" && n !== "center")
541
541
  throw new Error(
@@ -543,47 +543,47 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
543
543
  );
544
544
  const s = { ...Dt };
545
545
  return r === "center" ? Ce(n) ? [s.x, s.y] = [n, r] : [s.x, s.y] = [r, n] : n === "center" ? Ce(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r] : Ce(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r], s;
546
- }, di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
546
+ }, gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
547
547
  __proto__: null,
548
- BOTTOM_CENTER: qt,
548
+ BOTTOM_CENTER: zt,
549
549
  BOTTOM_LEFT: He,
550
550
  BOTTOM_RIGHT: kt,
551
551
  CENTER: Dt,
552
552
  CENTER_LEFT: Zt,
553
553
  CENTER_LOCATIONS: $t,
554
- CENTER_RIGHT: zt,
554
+ CENTER_RIGHT: qt,
555
555
  OUTER_LOCATIONS: jt,
556
556
  TOP_CENTER: Pt,
557
557
  TOP_LEFT: he,
558
558
  TOP_RIGHT: Lt,
559
- XY_LOCATIONS: ui,
559
+ XY_LOCATIONS: li,
560
560
  X_LOCATIONS: We,
561
561
  Y_LOCATIONS: Ge,
562
- center: ti,
562
+ center: ri,
563
563
  construct: te,
564
- constructXY: fi,
564
+ constructXY: di,
565
565
  corner: Rt,
566
- crude: si,
566
+ crude: ii,
567
567
  direction: ve,
568
568
  isX: Ce,
569
- isY: ci,
569
+ isY: hi,
570
570
  location: Ct,
571
- outer: Ts,
572
- rotate: oi,
573
- swap: ii,
574
- x: _s,
575
- xy: ai,
571
+ outer: xs,
572
+ rotate: ai,
573
+ swap: oi,
574
+ x: ei,
575
+ xy: ui,
576
576
  xyCouple: Dr,
577
577
  xyEquals: Ft,
578
- xyMatches: li,
579
- xyToString: hi,
580
- y: ei
578
+ xyMatches: ci,
579
+ xyToString: fi,
580
+ y: ti
581
581
  }, Symbol.toStringTag, { value: "Module" })), pt = a.union([
582
582
  a.number(),
583
583
  ue,
584
584
  jr,
585
585
  At,
586
- Os,
586
+ vs,
587
587
  Ur
588
588
  ]), T = (t, e) => {
589
589
  if (typeof t == "string") {
@@ -591,22 +591,22 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
591
591
  return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
592
592
  }
593
593
  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 };
594
- }, F = Object.freeze({ x: 0, y: 0 }), Pr = Object.freeze({ x: 1, y: 1 }), gi = Object.freeze({ x: 1 / 0, y: 1 / 0 }), pi = Object.freeze({ x: NaN, y: NaN }), ze = (t, e, r = 0) => {
594
+ }, F = Object.freeze({ x: 0, y: 0 }), Pr = Object.freeze({ x: 1, y: 1 }), pi = Object.freeze({ x: 1 / 0, y: 1 / 0 }), yi = Object.freeze({ x: NaN, y: NaN }), qe = (t, e, r = 0) => {
595
595
  const n = T(t), s = T(e);
596
596
  return r === 0 ? n.x === s.x && n.y === s.y : Math.abs(n.x - s.x) <= r && Math.abs(n.y - s.y) <= r;
597
- }, yi = (t) => ze(t, F), Yt = (t, e, r) => {
597
+ }, mi = (t) => qe(t, F), Yt = (t, e, r) => {
598
598
  const n = T(t), s = T(e, r);
599
599
  return { x: n.x * s.x, y: n.y * s.y };
600
- }, qr = (t, e) => {
600
+ }, zr = (t, e) => {
601
601
  const r = T(t);
602
602
  return { x: r.x + e, y: r.y };
603
- }, zr = (t, e) => {
603
+ }, qr = (t, e) => {
604
604
  const r = T(t);
605
605
  return { x: r.x, y: r.y + e };
606
606
  }, Te = (t, e, r, ...n) => {
607
607
  if (typeof e == "string") {
608
608
  if (typeof r != "number") throw new Error("The value must be a number.");
609
- return e === "x" ? qr(t, r) : zr(t, r);
609
+ return e === "x" ? zr(t, r) : qr(t, r);
610
610
  }
611
611
  if (typeof e == "object" && "x" in e && typeof e.x == "string") {
612
612
  const s = T(r), i = T(t);
@@ -616,25 +616,25 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
616
616
  const o = T(i);
617
617
  return { x: s.x + o.x, y: s.y + o.y };
618
618
  }, F);
619
- }, mi = (t, e, r) => {
619
+ }, bi = (t, e, r) => {
620
620
  const n = T(t);
621
- return q(e) === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
622
- }, bi = (t, e) => {
621
+ return z(e) === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
622
+ }, wi = (t, e) => {
623
623
  const r = T(t), n = T(e);
624
624
  return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
625
- }, wi = (t, e) => {
625
+ }, Oi = (t, e) => {
626
626
  const r = T(t), n = T(e);
627
627
  return { x: n.x - r.x, y: n.y - r.y };
628
- }, Oi = (t) => {
628
+ }, vi = (t) => {
629
629
  const e = T(t);
630
630
  return Number.isNaN(e.x) || Number.isNaN(e.y);
631
- }, vi = (t) => {
631
+ }, Ti = (t) => {
632
632
  const e = T(t);
633
633
  return Number.isFinite(e.x) && Number.isFinite(e.y);
634
- }, Ti = (t) => {
634
+ }, xi = (t) => {
635
635
  const e = T(t);
636
636
  return [e.x, e.y];
637
- }, xi = (t) => {
637
+ }, Si = (t) => {
638
638
  const e = T(t);
639
639
  return { left: e.x, top: e.y };
640
640
  }, Ze = (t, e = 0) => {
@@ -655,7 +655,7 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
655
655
  }, Fr = (...t) => {
656
656
  const e = t.reduce((r, n) => Te(r, n), F);
657
657
  return Yt(e, 1 / t.length);
658
- }, Si = (t, e) => {
658
+ }, Ni = (t, e) => {
659
659
  const r = [];
660
660
  for (let n = 0; n < t.length; n++) {
661
661
  const s = t[n];
@@ -677,69 +677,69 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
677
677
  r.push(Yt(u, l));
678
678
  }
679
679
  return r;
680
- }, Ni = (t) => {
680
+ }, Ii = (t) => {
681
681
  const e = T(t);
682
682
  return { x: e.y, y: e.x };
683
683
  }, yt = (t) => {
684
684
  const e = T(t);
685
685
  return { x: Math.round(e.x), y: Math.round(e.y) };
686
- }, Ii = (t) => {
686
+ }, Mi = (t) => {
687
687
  const e = T(t);
688
688
  return { x: 1 / e.x, y: 1 / e.y };
689
- }, Mi = (t, e, r) => {
689
+ }, Ai = (t, e, r) => {
690
690
  const n = T(t), s = T(e), i = r === "clockwise" ? Math.PI / 2 : -Math.PI / 2, o = n.x - s.x, u = n.y - s.y, l = o * Math.cos(i) - u * Math.sin(i), h = o * Math.sin(i) + u * Math.cos(i);
691
691
  return {
692
692
  x: l + s.x,
693
693
  y: h + s.y
694
694
  };
695
- }, rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
695
+ }, sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
696
696
  __proto__: null,
697
- INFINITY: gi,
698
- NAN: pi,
697
+ INFINITY: pi,
698
+ NAN: yi,
699
699
  ONE: Pr,
700
700
  ZERO: F,
701
701
  average: Fr,
702
- calculateMiters: Si,
702
+ calculateMiters: Ni,
703
703
  clientXY: Ur,
704
704
  construct: T,
705
- couple: Ti,
705
+ couple: xi,
706
706
  crudeZ: pt,
707
- css: xi,
708
- distance: bi,
709
- equals: ze,
710
- isFinite: vi,
711
- isNan: Oi,
712
- isZero: yi,
707
+ css: Si,
708
+ distance: wi,
709
+ equals: qe,
710
+ isFinite: Ti,
711
+ isNan: vi,
712
+ isZero: mi,
713
713
  normal: pe,
714
714
  normalize: Zr,
715
- reciprocal: Ii,
716
- rotate: Mi,
715
+ reciprocal: Mi,
716
+ rotate: Ai,
717
717
  round: yt,
718
718
  scale: Yt,
719
- set: mi,
719
+ set: bi,
720
720
  sub: ge,
721
- swap: Ni,
721
+ swap: Ii,
722
722
  translate: Te,
723
- translateX: qr,
724
- translateY: zr,
725
- translation: wi,
723
+ translateX: zr,
724
+ translateY: qr,
725
+ translation: Oi,
726
726
  truncate: Ze,
727
727
  xy: ue
728
- }, Symbol.toStringTag, { value: "Module" })), Ae = a.union([a.number(), a.string()]), Ai = a.object({
728
+ }, Symbol.toStringTag, { value: "Module" })), Ae = a.union([a.number(), a.string()]), Ei = a.object({
729
729
  top: Ae,
730
730
  left: Ae,
731
731
  width: Ae,
732
732
  height: Ae
733
- }), Ei = a.object({
733
+ }), ji = a.object({
734
734
  left: a.number(),
735
735
  top: a.number(),
736
736
  right: a.number(),
737
737
  bottom: a.number()
738
- }), ji = a.object({
738
+ }), Ui = a.object({
739
739
  one: ue,
740
740
  two: ue,
741
741
  root: Rt
742
- }), Yr = { one: F, two: F, root: he }, Ui = { one: F, two: Pr, root: He }, Vr = (t, e) => ({
742
+ }), Yr = { one: F, two: F, root: he }, Bi = { one: F, two: Pr, root: He }, Vr = (t, e) => ({
743
743
  one: t.one,
744
744
  two: t.two,
745
745
  root: e ?? t.root
@@ -761,11 +761,11 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
761
761
  x: i.one.x + e.signedWidth,
762
762
  y: i.one.y + e.signedHeight
763
763
  } : i.two = e, i));
764
- }, Bi = (t, e, r) => {
764
+ }, $i = (t, e, r) => {
765
765
  const n = S(t);
766
766
  if (typeof e == "string") {
767
767
  if (r == null) throw new Error("Invalid arguments for resize");
768
- const s = q(e);
768
+ const s = z(e);
769
769
  return S(
770
770
  n.one,
771
771
  void 0,
@@ -775,23 +775,23 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
775
775
  );
776
776
  }
777
777
  return S(n.one, e, void 0, void 0, n.root);
778
- }, $i = (t, e, r = !0) => {
778
+ }, Ci = (t, e, r = !0) => {
779
779
  const n = S(t);
780
780
  let s = (i, o) => i < o;
781
781
  return r && (s = (i, o) => i <= o), "one" in e ? s(J(n), J(e)) && s(_(e), _(n)) && s(K(n), K(e)) && s(ee(e), ee(n)) : s(J(n), e.x) && s(e.x, _(n)) && s(K(n), e.y) && s(e.y, ee(n));
782
- }, Ci = (t, e) => ze(t.one, e.one) && ze(t.two, e.two) && Ft(t.root, e.root), Wr = (t) => ({
782
+ }, Ri = (t, e) => qe(t.one, e.one) && qe(t.two, e.two) && Ft(t.root, e.root), Wr = (t) => ({
783
783
  width: U(t),
784
784
  height: B(t)
785
- }), Ri = (t) => ({
785
+ }), Li = (t) => ({
786
786
  signedWidth: Xe(t),
787
787
  signedHeight: Je(t)
788
- }), Li = (t) => ({
788
+ }), ki = (t) => ({
789
789
  top: K(t),
790
790
  left: J(t),
791
791
  width: U(t),
792
792
  height: B(t)
793
793
  }), Vt = (t, e, r = !1) => {
794
- const n = q(e) === "y" ? Je(t) : Xe(t);
794
+ const n = z(e) === "y" ? Je(t) : Xe(t);
795
795
  return r ? n : Math.abs(n);
796
796
  }, H = (t, e) => {
797
797
  const r = S(t);
@@ -802,13 +802,13 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
802
802
  }, re = (t, e) => {
803
803
  const r = S(t), n = Dr(r.root).includes(e) ? Math.min : Math.max;
804
804
  return We.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
805
- }, ki = (t) => Xr(t) === 0, U = (t) => Vt(t, "x"), B = (t) => Vt(t, "y"), Xe = (t) => {
805
+ }, Di = (t) => Xr(t) === 0, U = (t) => Vt(t, "x"), B = (t) => Vt(t, "y"), Xe = (t) => {
806
806
  const e = S(t);
807
807
  return e.two.x - e.one.x;
808
808
  }, Je = (t) => {
809
809
  const e = S(t);
810
810
  return e.two.y - e.one.y;
811
- }, Gr = (t) => H(t, he), Di = (t) => H(t, Pt), Pi = (t) => H(t, Lt), qi = (t) => H(t, He), zi = (t) => H(t, qt), Zi = (t) => H(t, kt), Fi = (t) => H(t, Zt), Yi = (t) => H(t, zt), _ = (t) => re(t, "right"), ee = (t) => re(t, "bottom"), J = (t) => re(t, "left"), K = (t) => re(t, "top"), mt = (t) => Te(Gr(t), {
811
+ }, Gr = (t) => H(t, he), Pi = (t) => H(t, Pt), zi = (t) => H(t, Lt), qi = (t) => H(t, He), Zi = (t) => H(t, zt), Fi = (t) => H(t, kt), Yi = (t) => H(t, Zt), Vi = (t) => H(t, qt), _ = (t) => re(t, "right"), ee = (t) => re(t, "bottom"), J = (t) => re(t, "left"), K = (t) => re(t, "top"), mt = (t) => Te(Gr(t), {
812
812
  x: Xe(t) / 2,
813
813
  y: Je(t) / 2
814
814
  }), Wt = (t) => {
@@ -817,24 +817,24 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
817
817
  }, Gt = (t) => {
818
818
  const e = S(t);
819
819
  return e.root.y === "top" ? K(e) : ee(e);
820
- }, Vi = (t) => ({ x: Wt(t), y: Gt(t) }), Re = (t) => {
820
+ }, Wi = (t) => ({ x: Wt(t), y: Gt(t) }), Re = (t) => {
821
821
  const e = S(t);
822
822
  return { lower: e.one.x, upper: e.two.x };
823
823
  }, Le = (t) => {
824
824
  const e = S(t);
825
825
  return { lower: e.one.y, upper: e.two.y };
826
- }, Wi = (t, e) => Vr(t, e), Gi = (t, e) => {
826
+ }, Gi = (t, e) => Vr(t, e), Hi = (t, e) => {
827
827
  const r = S(t), n = We.includes(e) ? "x" : Ge.includes(e) ? "y" : null;
828
828
  if (n === null) throw new Error(`Invalid location: ${e}`);
829
829
  const s = e === "top" || e === "left" ? Math.min : Math.max, i = { ...r.one }, o = { ...r.two };
830
830
  return i[n] = s(r.one[n], r.two[n]), o[n] = s(r.one[n], r.two[n]), [i, o];
831
- }, Hi = (t, e) => {
831
+ }, Xi = (t, e) => {
832
832
  const r = S(t), n = S(e), s = Wt(n) + (U(n) - U(r)) / 2, i = Gt(n) + (B(n) - B(r)) / 2;
833
833
  return S({ x: s, y: i }, Wr(r));
834
- }, Hr = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Xi = (t) => U(t) / B(t), Ji = (t, e, r) => {
834
+ }, Hr = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, Ji = (t) => U(t) / B(t), Ki = (t, e, r) => {
835
835
  if (typeof e == "string") {
836
836
  if (r == null) throw new Error("Undefined amount passed into box.translate");
837
- const s = q(e);
837
+ const s = z(e);
838
838
  e = T(s, r);
839
839
  }
840
840
  const n = S(t);
@@ -845,10 +845,10 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
845
845
  void 0,
846
846
  n.root
847
847
  );
848
- }, Ki = (t, e) => {
848
+ }, Qi = (t, e) => {
849
849
  const r = Math.max(J(t), J(e)), n = Math.max(K(t), K(e)), s = Math.min(_(t), _(e)), i = Math.min(ee(t), ee(e));
850
850
  return r > s || n > i ? Yr : S({ x: r, y: n }, { x: s, y: i }, void 0, void 0, t.root);
851
- }, Xr = (t) => U(t) * B(t), Qi = (t, e) => {
851
+ }, Xr = (t) => U(t) * B(t), _i = (t, e) => {
852
852
  const r = S(t);
853
853
  return S(
854
854
  Ze(r.one, e),
@@ -857,121 +857,121 @@ const Ns = a.object({ lower: a.number(), upper: a.number() }), Is = a.enum([...E
857
857
  void 0,
858
858
  r.root
859
859
  );
860
- }, _i = (t, e, r, n, s, i) => {
860
+ }, eo = (t, e, r, n, s, i) => {
861
861
  const o = { x: t, y: e }, u = { x: t + r, y: e + n };
862
862
  return s.x !== i.x && (s.x === "center" ? (o.x -= r / 2, u.x -= r / 2) : (o.x -= r, u.x -= r)), s.y !== i.y && (s.y === "center" ? (o.y -= n / 2, u.y -= n / 2) : (o.y -= n, u.y -= n)), S(o, u, void 0, void 0, i);
863
- }, eo = (t) => {
863
+ }, to = (t) => {
864
864
  const e = S(t);
865
865
  return S(yt(e.one), yt(e.two), void 0, void 0, e.root);
866
- }, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
866
+ }, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
867
867
  __proto__: null,
868
- DECIMAL: Ui,
868
+ DECIMAL: Bi,
869
869
  ZERO: Yr,
870
870
  area: Xr,
871
- areaIsZero: ki,
872
- aspect: Xi,
871
+ areaIsZero: Di,
872
+ aspect: Ji,
873
873
  bottom: ee,
874
- bottomCenter: zi,
874
+ bottomCenter: Zi,
875
875
  bottomLeft: qi,
876
- bottomRight: Zi,
877
- box: ji,
876
+ bottomRight: Fi,
877
+ box: Ui,
878
878
  center: mt,
879
- centerLeft: Fi,
880
- centerRight: Yi,
879
+ centerLeft: Yi,
880
+ centerRight: Vi,
881
881
  construct: S,
882
- constructWithAlternateRoot: _i,
883
- contains: $i,
882
+ constructWithAlternateRoot: eo,
883
+ contains: Ci,
884
884
  copy: Vr,
885
- css: Li,
886
- cssBox: Ai,
885
+ css: ki,
886
+ cssBox: Ei,
887
887
  dim: Vt,
888
888
  dims: Wr,
889
- domRect: Ei,
890
- edgePoints: Gi,
891
- equals: Ci,
889
+ domRect: ji,
890
+ edgePoints: Hi,
891
+ equals: Ri,
892
892
  height: B,
893
- intersection: Ki,
893
+ intersection: Qi,
894
894
  isBox: Hr,
895
895
  left: J,
896
896
  loc: re,
897
- positionInCenter: Hi,
898
- reRoot: Wi,
899
- resize: Bi,
897
+ positionInCenter: Xi,
898
+ reRoot: Gi,
899
+ resize: $i,
900
900
  right: _,
901
- root: Vi,
902
- round: eo,
903
- signedDims: Ri,
901
+ root: Wi,
902
+ round: to,
903
+ signedDims: Li,
904
904
  signedHeight: Je,
905
905
  signedWidth: Xe,
906
906
  top: K,
907
- topCenter: Di,
907
+ topCenter: Pi,
908
908
  topLeft: Gr,
909
- topRight: Pi,
910
- translate: Ji,
911
- truncate: Qi,
909
+ topRight: zi,
910
+ translate: Ki,
911
+ truncate: _i,
912
912
  width: U,
913
913
  x: Wt,
914
914
  xBounds: Re,
915
915
  xyLoc: H,
916
916
  y: Gt,
917
917
  yBounds: Le
918
- }, Symbol.toStringTag, { value: "Module" })), Jr = a.object({ signedWidth: a.number(), signedHeight: a.number() }), to = a.union([At, Jr, ue, jr]), ro = { width: 0, height: 0 }, no = { width: 1, height: 1 }, P = (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 }, so = (t, e) => {
918
+ }, Symbol.toStringTag, { value: "Module" })), Jr = a.object({ signedWidth: a.number(), signedHeight: a.number() }), ro = a.union([At, Jr, ue, jr]), no = { width: 0, height: 0 }, so = { width: 1, height: 1 }, P = (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 }, io = (t, e) => {
919
919
  if (e == null) return !1;
920
920
  const r = P(t), n = P(e);
921
921
  return r.width === n.width && r.height === n.height;
922
- }, io = (t) => {
922
+ }, oo = (t) => {
923
923
  const e = P(t);
924
924
  return { width: e.height, height: e.width };
925
- }, oo = (t) => {
925
+ }, ao = (t) => {
926
926
  const e = P(t);
927
927
  return `0 0 ${e.width} ${e.height}`;
928
- }, ao = (t) => {
928
+ }, uo = (t) => {
929
929
  const e = P(t);
930
930
  return [e.width, e.height];
931
- }, uo = (t) => ({
931
+ }, lo = (t) => ({
932
932
  width: Math.max(...t.map((e) => P(e).width)),
933
933
  height: Math.max(...t.map((e) => P(e).height))
934
- }), lo = (t) => ({
934
+ }), co = (t) => ({
935
935
  width: Math.min(...t.map((e) => P(e).width)),
936
936
  height: Math.min(...t.map((e) => P(e).height))
937
- }), co = (t, e) => {
937
+ }), ho = (t, e) => {
938
938
  const r = P(t);
939
939
  return { width: r.width * e, height: r.height * e };
940
- }, sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
940
+ }, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
941
941
  __proto__: null,
942
- DECIMAL: no,
943
- ZERO: ro,
942
+ DECIMAL: so,
943
+ ZERO: no,
944
944
  construct: P,
945
- couple: ao,
946
- crude: to,
945
+ couple: uo,
946
+ crude: ro,
947
947
  dimensions: At,
948
- equals: so,
949
- max: uo,
950
- min: lo,
951
- scale: co,
948
+ equals: io,
949
+ max: lo,
950
+ min: co,
951
+ scale: ho,
952
952
  signed: Jr,
953
- svgViewBox: oo,
954
- swap: io
955
- }, Symbol.toStringTag, { value: "Module" })), ho = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, fo = a.object({ offset: pt, scale: pt }), go = a.object({ offset: a.number(), scale: a.number() }), po = (t) => (e, r, n, s) => r === "dimension" ? [e, n] : [
953
+ svgViewBox: ao,
954
+ swap: oo
955
+ }, Symbol.toStringTag, { value: "Module" })), fo = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, go = a.object({ offset: pt, scale: pt }), po = a.object({ offset: a.number(), scale: a.number() }), yo = (t) => (e, r, n, s) => r === "dimension" ? [e, n] : [
956
956
  e,
957
957
  s ? n - t : n + t
958
- ], yo = (t) => (e, r, n, s) => [
958
+ ], mo = (t) => (e, r, n, s) => [
959
959
  e,
960
960
  s ? n / t : n * t
961
- ], mo = (t) => (e, r, n) => {
961
+ ], bo = (t) => (e, r, n) => {
962
962
  if (e === null) return [t, n];
963
963
  const { lower: s, upper: i } = e, { lower: o, upper: u } = t, l = i - s, h = u - o;
964
964
  if (r === "dimension") return [t, n * (h / l)];
965
965
  const f = (n - s) * (h / l) + o;
966
966
  return [t, f];
967
- }, bo = (t) => (e, r, n) => [t, n], wo = () => (t, e, r) => {
967
+ }, wo = (t) => (e, r, n) => [t, n], Oo = () => (t, e, r) => {
968
968
  if (t === null) throw new Error("cannot invert without bounds");
969
969
  if (e === "dimension") return [t, r];
970
970
  const { lower: n, upper: s } = t;
971
971
  return [t, s - (r - n)];
972
- }, Oo = (t) => (e, r, n) => {
972
+ }, vo = (t) => (e, r, n) => {
973
973
  const { lower: s, upper: i } = t;
974
- return n = ho(n, s, i), [e, n];
974
+ return n = fo(n, s, i), [e, n];
975
975
  };
976
976
  class Y {
977
977
  ops = [];
@@ -1007,7 +1007,7 @@ class Y {
1007
1007
  * @param value - The amount to translate by.
1008
1008
  */
1009
1009
  translate(e) {
1010
- const r = this.new(), n = po(e);
1010
+ const r = this.new(), n = yo(e);
1011
1011
  return n.type = "translate", r.ops.push(n), r;
1012
1012
  }
1013
1013
  /**
@@ -1017,23 +1017,23 @@ class Y {
1017
1017
  * @param value - The amount to magnify by.
1018
1018
  */
1019
1019
  magnify(e) {
1020
- const r = this.new(), n = yo(e);
1020
+ const r = this.new(), n = mo(e);
1021
1021
  return n.type = "magnify", r.ops.push(n), r;
1022
1022
  }
1023
1023
  scale(e, r) {
1024
- const n = w(e, r), s = this.new(), i = mo(n);
1024
+ const n = w(e, r), s = this.new(), i = bo(n);
1025
1025
  return i.type = "scale", s.ops.push(i), s;
1026
1026
  }
1027
1027
  clamp(e, r) {
1028
- const n = w(e, r), s = this.new(), i = Oo(n);
1028
+ const n = w(e, r), s = this.new(), i = vo(n);
1029
1029
  return i.type = "clamp", s.ops.push(i), s;
1030
1030
  }
1031
1031
  reBound(e, r) {
1032
- const n = w(e, r), s = this.new(), i = bo(n);
1032
+ const n = w(e, r), s = this.new(), i = wo(n);
1033
1033
  return i.type = "re-bound", s.ops.push(i), s;
1034
1034
  }
1035
1035
  invert() {
1036
- const e = wo();
1036
+ const e = Oo();
1037
1037
  e.type = "invert";
1038
1038
  const r = this.new();
1039
1039
  return r.ops.push(e), r;
@@ -1164,29 +1164,29 @@ class L {
1164
1164
  }
1165
1165
  static IDENTITY = new L();
1166
1166
  }
1167
- const il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1167
+ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1168
1168
  __proto__: null,
1169
1169
  Scale: Y,
1170
1170
  XY: L,
1171
- crudeXYTransform: fo,
1172
- transform: go
1171
+ crudeXYTransform: go,
1172
+ transform: po
1173
1173
  }, Symbol.toStringTag, { value: "Module" })), Kr = ue.extend({
1174
1174
  root: Rt,
1175
1175
  units: b.object({
1176
1176
  x: b.enum(["px", "decimal"]),
1177
1177
  y: b.enum(["px", "decimal"])
1178
1178
  })
1179
- }), vo = Kr.partial({ root: !0, units: !0 }), To = (t) => {
1179
+ }), To = Kr.partial({ root: !0, units: !0 }), xo = (t) => {
1180
1180
  const e = {};
1181
1181
  return e[t.root?.x ?? "left"] = t?.units?.x === "px" ? `${t.x}px` : `${t.x * 100}%`, e[t.root?.y ?? "top"] = t?.units?.y === "px" ? `${t.y}px` : `${t.y * 100}%`, e;
1182
- }, xo = ({
1182
+ }, So = ({
1183
1183
  position: t,
1184
1184
  element: e,
1185
1185
  container: r
1186
1186
  }) => {
1187
1187
  const n = { x: t.x, y: t.y };
1188
1188
  return t.units?.x === "decimal" ? t.root?.x === "right" && (n.x = 1 - t.x) : t.root?.x === "right" ? n.x = 1 - (t.x + U(e)) / U(r) : n.x /= U(r), t.units?.y === "decimal" ? t.root?.y === "bottom" && (n.y = 1 - t.y) : t.root?.y === "bottom" ? n.y = 1 - (t.y + B(e)) / B(r) : n.y /= B(r), n;
1189
- }, So = ({
1189
+ }, No = ({
1190
1190
  position: t,
1191
1191
  element: e,
1192
1192
  container: r,
@@ -1200,14 +1200,14 @@ const il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1200
1200
  units: { x: "px", y: "px" }
1201
1201
  };
1202
1202
  return t.x > s ? (i.x = (1 - t.x) * U(r) - U(e), i.root.x = "right") : t.x < n ? i.x = t.x * U(r) : i.units.x = "decimal", t.y > s ? (i.y = (1 - t.y) * B(r) - B(e), i.root.y = "bottom") : t.y < n ? i.y = t.y * B(r) : i.units.y = "decimal", i.x = Math.round(i.x * 100) / 100, { ...i, ...Ze(i, 3) };
1203
- }, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1203
+ }, ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1204
1204
  __proto__: null,
1205
- calculate: So,
1205
+ calculate: No,
1206
1206
  completeXY: Kr,
1207
- toCSS: To,
1208
- toDecimal: xo,
1209
- xy: vo
1210
- }, Symbol.toStringTag, { value: "Module" })), No = a.enum(["static", "dynamic"]), rr = 365, Ee = 30, Io = a.union([
1207
+ toCSS: xo,
1208
+ toDecimal: So,
1209
+ xy: To
1210
+ }, Symbol.toStringTag, { value: "Module" })), Io = a.enum(["static", "dynamic"]), rr = 365, Ee = 30, Mo = a.union([
1211
1211
  a.tuple([a.int()]),
1212
1212
  a.tuple([a.int(), a.int().min(1).max(12)]),
1213
1213
  a.tuple([a.int(), a.int().min(1).max(12), a.int().min(1).max(31)])
@@ -1335,7 +1335,7 @@ class d extends ne {
1335
1335
  * valid, regardless of the TimeStamp order.
1336
1336
  */
1337
1337
  range(e) {
1338
- return new A(this, e).makeValid();
1338
+ return new M(this, e).makeValid();
1339
1339
  }
1340
1340
  /**
1341
1341
  * Creates a TimeRange starting at the TimeStamp and spanning the given
@@ -1734,7 +1734,7 @@ class d extends ne {
1734
1734
  a.bigint().transform((e) => new d(e)),
1735
1735
  a.date().transform((e) => new d(e)),
1736
1736
  a.custom((e) => e instanceof g).transform((e) => new d(e)),
1737
- Io.transform((e) => new d(e))
1737
+ Mo.transform((e) => new d(e))
1738
1738
  ]);
1739
1739
  /**
1740
1740
  * Sorts two timestamps.
@@ -2276,7 +2276,7 @@ class v extends ne {
2276
2276
  a.instanceof(v)
2277
2277
  ]);
2278
2278
  }
2279
- class A {
2279
+ class M {
2280
2280
  /**
2281
2281
  * The starting TimeStamp of the TimeRange.
2282
2282
  *
@@ -2344,7 +2344,7 @@ class A {
2344
2344
  * @returns A TimeRange with the start and end swapped.
2345
2345
  */
2346
2346
  swap() {
2347
- return new A(this.end, this.start);
2347
+ return new M(this.end, this.start);
2348
2348
  }
2349
2349
  get numericBounds() {
2350
2350
  return {
@@ -2400,7 +2400,7 @@ class A {
2400
2400
  return i.before(s) ? !1 : new g(i.sub(s)).greaterThanOrEqual(r);
2401
2401
  }
2402
2402
  contains(e) {
2403
- return e instanceof A ? this.contains(e.start) && this.contains(e.end) : this.start.beforeEq(e) && this.end.after(e);
2403
+ return e instanceof M ? this.contains(e.start) && this.contains(e.end) : this.start.beforeEq(e) && this.end.after(e);
2404
2404
  }
2405
2405
  /**
2406
2406
  * Returns a new TimeRange that is bound by the given TimeRange.
@@ -2414,23 +2414,23 @@ class A {
2414
2414
  * console.log(bounded); // TimeRange(1500, 2000)
2415
2415
  */
2416
2416
  boundBy(e) {
2417
- const r = new A(this.start, this.end);
2417
+ const r = new M(this.start, this.end);
2418
2418
  return e.start.after(this.start) && (r.start = e.start), e.start.after(this.end) && (r.end = e.start), e.end.before(this.end) && (r.end = e.end), e.end.before(this.start) && (r.start = e.end), r;
2419
2419
  }
2420
2420
  static max(...e) {
2421
- return new A(
2421
+ return new M(
2422
2422
  d.min(...e.map((r) => r.start)),
2423
2423
  d.max(...e.map((r) => r.end))
2424
2424
  );
2425
2425
  }
2426
2426
  /** The maximum possible time range. */
2427
- static MAX = new A(d.MIN, d.MAX);
2427
+ static MAX = new M(d.MIN, d.MAX);
2428
2428
  /** A time range whose start and end are both zero. */
2429
- static ZERO = new A(d.ZERO, d.ZERO);
2429
+ static ZERO = new M(d.ZERO, d.ZERO);
2430
2430
  /** A zod schema for validating and transforming time ranges */
2431
2431
  static z = a.union([
2432
- a.object({ start: d.z, end: d.z }).transform((e) => new A(e.start, e.end)),
2433
- a.instanceof(A)
2432
+ a.object({ start: d.z, end: d.z }).transform((e) => new M(e.start, e.end)),
2433
+ a.instanceof(M)
2434
2434
  ]);
2435
2435
  /**
2436
2436
  * Sorts two time ranges. The range with the earlier start time is considered less than
@@ -2447,20 +2447,14 @@ class A {
2447
2447
  return d.sort(e.start, r.start) || d.sort(e.end, r.end);
2448
2448
  }
2449
2449
  /**
2450
- * Simplify takes the list of `TimeRange`s, makes all of them valid, sorts them, and
2451
- * merges any overlapping ranges.
2450
+ * Merges the given time ranges into a single time range.
2452
2451
  *
2453
- * @param ranges - The list of `TimeRange`s to simplify.
2454
- * @returns A list of simplified `TimeRange`s.
2455
- */
2456
- static simplify(e) {
2457
- return e.map((r) => r.makeValid()).sort((r, n) => A.sort(r, n)).reduce((r, n) => {
2458
- if (n.span.isZero) return r;
2459
- if (r.length === 0)
2460
- return r.push(n), r;
2461
- const s = r[r.length - 1];
2462
- return s.overlapsWith(n) || s.end.equals(n.start) ? s.end = d.max(s.end, n.end) : r.push(n), r;
2463
- }, []);
2452
+ * @param ranges - The list of `CrudeTimeRange`s to merge.
2453
+ * @returns A new `TimeRange` that is the union of the given time ranges - the start
2454
+ * is the minimum of the start times and the end is the maximum of the end times.
2455
+ */
2456
+ static merge(...e) {
2457
+ return M.max(...e.map((r) => new M(r).makeValid()));
2464
2458
  }
2465
2459
  }
2466
2460
  class c extends ne {
@@ -2841,7 +2835,7 @@ a.object({
2841
2835
  start: a.number(),
2842
2836
  end: a.number()
2843
2837
  });
2844
- const al = a.union([
2838
+ const ll = a.union([
2845
2839
  a.instanceof(Uint8Array),
2846
2840
  a.instanceof(Uint16Array),
2847
2841
  a.instanceof(Uint32Array),
@@ -2855,52 +2849,52 @@ const al = a.union([
2855
2849
  ]), _r = (t) => {
2856
2850
  const e = typeof t;
2857
2851
  return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof d || t instanceof g || t instanceof Date;
2858
- }, Mo = (t, e, r, n = 0) => t.usesBigInt && !e.usesBigInt ? Number(r) - Number(n) : !t.usesBigInt && e.usesBigInt ? BigInt(r.valueOf()) - BigInt(n.valueOf()) : Z(r, n), Ao = "00000000-0000-0000-0000-000000000000", Eo = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
2859
- function jo(t) {
2860
- return typeof t == "string" && Eo.test(t);
2852
+ }, Ao = (t, e, r, n = 0) => t.usesBigInt && !e.usesBigInt ? Number(r) - Number(n) : !t.usesBigInt && e.usesBigInt ? BigInt(r.valueOf()) - BigInt(n.valueOf()) : Z(r, n), Eo = "00000000-0000-0000-0000-000000000000", jo = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
2853
+ function Uo(t) {
2854
+ return typeof t == "string" && jo.test(t);
2861
2855
  }
2862
- const M = [];
2856
+ const A = [];
2863
2857
  for (let t = 0; t < 256; ++t)
2864
- M.push((t + 256).toString(16).slice(1));
2858
+ A.push((t + 256).toString(16).slice(1));
2865
2859
  function en(t, e = 0) {
2866
- return (M[t[e + 0]] + M[t[e + 1]] + M[t[e + 2]] + M[t[e + 3]] + "-" + M[t[e + 4]] + M[t[e + 5]] + "-" + M[t[e + 6]] + M[t[e + 7]] + "-" + M[t[e + 8]] + M[t[e + 9]] + "-" + M[t[e + 10]] + M[t[e + 11]] + M[t[e + 12]] + M[t[e + 13]] + M[t[e + 14]] + M[t[e + 15]]).toLowerCase();
2860
+ return (A[t[e + 0]] + A[t[e + 1]] + A[t[e + 2]] + A[t[e + 3]] + "-" + A[t[e + 4]] + A[t[e + 5]] + "-" + A[t[e + 6]] + A[t[e + 7]] + "-" + A[t[e + 8]] + A[t[e + 9]] + "-" + A[t[e + 10]] + A[t[e + 11]] + A[t[e + 12]] + A[t[e + 13]] + A[t[e + 14]] + A[t[e + 15]]).toLowerCase();
2867
2861
  }
2868
- function Uo(t, e = 0) {
2862
+ function Bo(t, e = 0) {
2869
2863
  const r = en(t, e);
2870
- if (!jo(r))
2864
+ if (!Uo(r))
2871
2865
  throw TypeError("Stringified UUID is invalid");
2872
2866
  return r;
2873
2867
  }
2874
2868
  let rt;
2875
- const Bo = new Uint8Array(16);
2876
- function $o() {
2869
+ const $o = new Uint8Array(16);
2870
+ function Co() {
2877
2871
  if (!rt) {
2878
2872
  if (typeof crypto > "u" || !crypto.getRandomValues)
2879
2873
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2880
2874
  rt = crypto.getRandomValues.bind(crypto);
2881
2875
  }
2882
- return rt(Bo);
2876
+ return rt($o);
2883
2877
  }
2884
- const Co = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nr = { randomUUID: Co };
2885
- function Ro(t, e, r) {
2878
+ const Ro = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nr = { randomUUID: Ro };
2879
+ function Lo(t, e, r) {
2886
2880
  t = t || {};
2887
- const n = t.random ?? t.rng?.() ?? $o();
2881
+ const n = t.random ?? t.rng?.() ?? Co();
2888
2882
  if (n.length < 16)
2889
2883
  throw new Error("Random bytes length must be >= 16");
2890
2884
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, en(n);
2891
2885
  }
2892
- function Lo(t, e, r) {
2893
- return nr.randomUUID && !t ? nr.randomUUID() : Ro(t);
2886
+ function ko(t, e, r) {
2887
+ return nr.randomUUID && !t ? nr.randomUUID() : Lo(t);
2894
2888
  }
2895
- const ko = () => Lo(), Ht = (t, e) => Uo(t, e), Do = Ao, ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2889
+ const Do = () => ko(), Ht = (t, e) => Bo(t, e), Po = Eo, cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2896
2890
  __proto__: null,
2897
- ZERO: Do,
2898
- create: ko,
2891
+ ZERO: Po,
2892
+ create: Do,
2899
2893
  parse: Ht
2900
2894
  }, Symbol.toStringTag, { value: "Module" })), X = -1, bt = {
2901
2895
  [Symbol.iterator]: () => bt,
2902
2896
  next: () => ({ done: !0, value: void 0 })
2903
- }, Po = a.string().transform(
2897
+ }, zo = a.string().transform(
2904
2898
  (t) => new Uint8Array(
2905
2899
  atob(t).split("").map((e) => e.charCodeAt(0))
2906
2900
  ).buffer
@@ -2910,7 +2904,7 @@ const ko = () => Lo(), Ht = (t, e) => Uo(t, e), Do = Ao, ul = /* @__PURE__ */ Ob
2910
2904
  if (t === "bigint" && !e.usesBigInt)
2911
2905
  throw new Error(`cannot convert series of type ${e.toString()} to bigint`);
2912
2906
  }, rn = "sy_x_telem_series";
2913
- class z {
2907
+ class q {
2914
2908
  /**
2915
2909
  * A unique identifier for the series. If specified by the user, it is their
2916
2910
  * responsibility to ensure that it is unique. If not specified, a new ID will be
@@ -2937,7 +2931,7 @@ class z {
2937
2931
  /** The underlying data. */
2938
2932
  _data;
2939
2933
  /** The time range occupied by the series' data. */
2940
- timeRange = A.ZERO;
2934
+ timeRange = M.ZERO;
2941
2935
  /**
2942
2936
  * Alignment defines the location of the series relative to other series in a logical
2943
2937
  * group. Useful for defining the position of the series within a channel's data.
@@ -2966,22 +2960,22 @@ class z {
2966
2960
  * can be constructed into a series.
2967
2961
  */
2968
2962
  static crudeZ = a.object({
2969
- timeRange: A.z.optional(),
2963
+ timeRange: M.z.optional(),
2970
2964
  dataType: c.z,
2971
2965
  alignment: a.coerce.bigint().optional(),
2972
2966
  data: a.union([
2973
- Po,
2967
+ zo,
2974
2968
  qo,
2975
2969
  a.instanceof(ArrayBuffer),
2976
2970
  a.instanceof(Uint8Array)
2977
2971
  ]),
2978
- glBufferUsage: No.default("static").optional()
2972
+ glBufferUsage: Io.default("static").optional()
2979
2973
  });
2980
2974
  /**
2981
2975
  * A zod schema that validates and constructs a series from it's crude
2982
2976
  * representation.
2983
2977
  */
2984
- static z = z.crudeZ.transform((e) => new z(e));
2978
+ static z = q.crudeZ.transform((e) => new q(e));
2985
2979
  /**
2986
2980
  * The Series constructor accepts either a SeriesArgs object or a CrudeSeries value.
2987
2981
  *
@@ -3056,7 +3050,7 @@ class z {
3056
3050
  * @throws Error if data type cannot be inferred from input
3057
3051
  */
3058
3052
  constructor(e) {
3059
- zo(e) && (e = { data: e }), e.data ??= [];
3053
+ Zo(e) && (e = { data: e }), e.data ??= [];
3060
3054
  const {
3061
3055
  dataType: r,
3062
3056
  timeRange: n,
@@ -3119,7 +3113,7 @@ class z {
3119
3113
  p.map(Number)
3120
3114
  ).buffer : this._data = new this.dataType.Array(p).buffer;
3121
3115
  }
3122
- this.key = l, this.alignment = o, this.alignmentMultiple = u, this.sampleOffset = s ?? 0, this.timeRange = n ?? A.ZERO, this.gl = {
3116
+ this.key = l, this.alignment = o, this.alignmentMultiple = u, this.sampleOffset = s ?? 0, this.timeRange = n ?? M.ZERO, this.gl = {
3123
3117
  control: null,
3124
3118
  buffer: null,
3125
3119
  prevBuffer: 0,
@@ -3136,7 +3130,7 @@ class z {
3136
3130
  static alloc({ capacity: e, dataType: r, ...n }) {
3137
3131
  if (e === 0)
3138
3132
  throw new Error("[Series] - cannot allocate an array of length 0");
3139
- const s = new new c(r).Array(e), i = new z({ data: s.buffer, dataType: r, ...n });
3133
+ const s = new new c(r).Array(e), i = new q({ data: s.buffer, dataType: r, ...n });
3140
3134
  return i.writePos = 0, i;
3141
3135
  }
3142
3136
  /**
@@ -3283,8 +3277,8 @@ class z {
3283
3277
  if (this.dataType.equals(e)) return this;
3284
3278
  const n = new e.Array(this.length);
3285
3279
  for (let s = 0; s < this.length; s++)
3286
- n[s] = Mo(this.dataType, e, this.data[s], r);
3287
- return new z({
3280
+ n[s] = Ao(this.dataType, e, this.data[s], r);
3281
+ return new q({
3288
3282
  data: n.buffer,
3289
3283
  dataType: e,
3290
3284
  timeRange: this.timeRange,
@@ -3489,10 +3483,10 @@ class z {
3489
3483
  }
3490
3484
  [Symbol.iterator]() {
3491
3485
  if (this.dataType.isVariable) {
3492
- const e = new Zo(this);
3486
+ const e = new Fo(this);
3493
3487
  return this.dataType.equals(c.JSON) ? new Xt(e) : e;
3494
3488
  }
3495
- return this.dataType.equals(c.UUID) ? new Fo(this) : new Yo(this);
3489
+ return this.dataType.equals(c.UUID) ? new Yo(this) : new Vo(this);
3496
3490
  }
3497
3491
  /**
3498
3492
  * Returns a slice of the series from start to end.
@@ -3538,7 +3532,7 @@ class z {
3538
3532
  subBytes(e, r) {
3539
3533
  if (e >= 0 && (r == null || r >= this.byteLength.valueOf())) return this;
3540
3534
  const n = this.data.subarray(e, r);
3541
- return new z({
3535
+ return new q({
3542
3536
  data: n,
3543
3537
  dataType: this.dataType,
3544
3538
  timeRange: this.timeRange,
@@ -3550,7 +3544,7 @@ class z {
3550
3544
  sliceSub(e, r, n) {
3551
3545
  if (r <= 0 && (n == null || n >= this.length)) return this;
3552
3546
  let s;
3553
- return e ? s = this.data.subarray(r, n) : s = this.data.slice(r, n), new z({
3547
+ return e ? s = this.data.subarray(r, n) : s = this.data.slice(r, n), new q({
3554
3548
  data: s,
3555
3549
  dataType: this.dataType,
3556
3550
  timeRange: this.timeRange,
@@ -3565,10 +3559,10 @@ class z {
3565
3559
  * @returns A new series with the specified alignment.
3566
3560
  */
3567
3561
  reAlign(e) {
3568
- return new z({
3562
+ return new q({
3569
3563
  data: this.buffer,
3570
3564
  dataType: this.dataType,
3571
- timeRange: A.ZERO,
3565
+ timeRange: M.ZERO,
3572
3566
  sampleOffset: this.sampleOffset,
3573
3567
  glBufferUsage: "static",
3574
3568
  alignment: e
@@ -3592,7 +3586,7 @@ class z {
3592
3586
  return e += "])", e;
3593
3587
  }
3594
3588
  }
3595
- const zo = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof z ? !0 : _r(t), nn = ns(rn, z);
3589
+ const Zo = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof q ? !0 : _r(t), nn = ss(rn, q);
3596
3590
  class sr {
3597
3591
  series;
3598
3592
  end;
@@ -3606,7 +3600,7 @@ class sr {
3606
3600
  return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
3607
3601
  }
3608
3602
  }
3609
- class Zo {
3603
+ class Fo {
3610
3604
  series;
3611
3605
  index;
3612
3606
  decoder;
@@ -3638,7 +3632,7 @@ class Xt {
3638
3632
  };
3639
3633
  }
3640
3634
  }
3641
- class Fo {
3635
+ class Yo {
3642
3636
  series;
3643
3637
  index;
3644
3638
  data;
@@ -3654,7 +3648,7 @@ class Fo {
3654
3648
  return this.index++, { done: !1, value: e };
3655
3649
  }
3656
3650
  }
3657
- class Yo {
3651
+ class Vo {
3658
3652
  series;
3659
3653
  index;
3660
3654
  constructor(e) {
@@ -3667,7 +3661,7 @@ class Yo {
3667
3661
  };
3668
3662
  }
3669
3663
  }
3670
- class ll {
3664
+ class hl {
3671
3665
  /** The array of series in this collection */
3672
3666
  series;
3673
3667
  /**
@@ -3735,7 +3729,7 @@ class ll {
3735
3729
  * series to the end of the last series.
3736
3730
  */
3737
3731
  get timeRange() {
3738
- return this.series.length === 0 ? A.ZERO : new A(
3732
+ return this.series.length === 0 ? M.ZERO : new M(
3739
3733
  this.series[0].timeRange.start,
3740
3734
  this.series[this.series.length - 1].timeRange.end
3741
3735
  );
@@ -3941,7 +3935,7 @@ class ll {
3941
3935
  next() {
3942
3936
  return { done: !0, value: void 0 };
3943
3937
  }
3944
- } : new Vo(this.series);
3938
+ } : new Wo(this.series);
3945
3939
  }
3946
3940
  /**
3947
3941
  * Returns an array of the values in the multi-series as strings.
@@ -3952,7 +3946,7 @@ class ll {
3952
3946
  return this.series.flatMap((e) => e.toStrings());
3953
3947
  }
3954
3948
  }
3955
- class Vo {
3949
+ class Wo {
3956
3950
  series;
3957
3951
  seriesIndex;
3958
3952
  internal;
@@ -3990,7 +3984,7 @@ a.object({
3990
3984
  maxRetries: a.number().optional(),
3991
3985
  scale: a.number().optional()
3992
3986
  });
3993
- const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.number().min(0).max(255), sn = a.number().min(0).max(1), Ke = a.tuple([ae, ae, ae, sn]), Go = a.tuple([ae, ae, ae]), Ho = a.object({ rgba255: Ke }), Xo = a.number().min(0).max(360), Jo = a.number().min(0).max(100), Ko = a.number().min(0).max(100), on = a.tuple([Xo, Jo, Ko, sn]), Qe = a.union([Fe, Go, Ke, on, Ho]), _e = Qe.transform((t) => x(t)), Qo = (t) => _e.safeParse(t).success, _o = (t) => Ke.safeParse(t).success, ea = ((t) => {
3987
+ const Go = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Go), ae = a.number().min(0).max(255), sn = a.number().min(0).max(1), Ke = a.tuple([ae, ae, ae, sn]), Ho = a.tuple([ae, ae, ae]), Xo = a.object({ rgba255: Ke }), Jo = a.number().min(0).max(360), Ko = a.number().min(0).max(100), Qo = a.number().min(0).max(100), on = a.tuple([Jo, Ko, Qo, sn]), Qe = a.union([Fe, Ho, Ke, on, Xo]), _e = Qe.transform((t) => x(t)), _o = (t) => _e.safeParse(t).success, ea = (t) => Ke.safeParse(t).success, ta = ((t) => {
3994
3988
  if (t == null) return;
3995
3989
  const e = _e.safeParse(t);
3996
3990
  if (e.success) return un(e.data);
@@ -4008,21 +4002,21 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4008
4002
  if (t == null || e == null) return t == e;
4009
4003
  const r = x(t), n = x(e);
4010
4004
  return r.every((s, i) => s === n[i]);
4011
- }, ta = ((t) => {
4005
+ }, ra = ((t) => {
4012
4006
  if (t == null) return;
4013
4007
  const [e, r, n, s] = x(t);
4014
4008
  return `#${je(e)}${je(r)}${je(n)}${s === 1 ? "" : je(s * 255)}`;
4015
4009
  }), un = (t) => {
4016
4010
  const [e, r, n, s] = x(t);
4017
4011
  return `rgba(${e}, ${r}, ${n}, ${s})`;
4018
- }, ra = (t) => `rgb(${ln(t)})`, ln = (t) => {
4012
+ }, na = (t) => `rgb(${ln(t)})`, ln = (t) => {
4019
4013
  const [e, r, n] = x(t);
4020
4014
  return `${e}, ${r}, ${n}`;
4021
- }, na = (t) => [...Jt(t), Oe(t)], Jt = (t) => [
4015
+ }, sa = (t) => [...Jt(t), Oe(t)], Jt = (t) => [
4022
4016
  me(t) / 255,
4023
4017
  be(t) / 255,
4024
4018
  we(t) / 255
4025
- ], me = (t) => x(t)[0], be = (t) => x(t)[1], we = (t) => x(t)[2], Oe = (t) => x(t)[3], sa = (t) => an(Kt, t), ia = (t) => ga(x(t)), oa = (t, e) => {
4019
+ ], me = (t) => x(t)[0], be = (t) => x(t)[1], we = (t) => x(t)[2], Oe = (t) => x(t)[3], ia = (t) => an(Kt, t), oa = (t) => pa(x(t)), aa = (t, e) => {
4026
4020
  const [r, n, s] = x(t);
4027
4021
  if (e > 100)
4028
4022
  throw new Error(`Color opacity must be between 0 and 100, got ${e}`);
@@ -4032,23 +4026,23 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4032
4026
  (s) => s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4
4033
4027
  );
4034
4028
  return Number((0.2126 * e + 0.7152 * r + 0.0722 * n).toFixed(3));
4035
- }, aa = (t) => {
4029
+ }, ua = (t) => {
4036
4030
  const [e, r, n] = Jt(t);
4037
4031
  return 1 - (Math.max(e, r, n) - Math.min(e, r, n));
4038
4032
  }, Ot = (t, e) => {
4039
4033
  const r = x(t), n = x(e), s = xe(r), i = xe(n);
4040
4034
  return (Math.max(s, i) + 0.5) / (Math.min(s, i) + 0.5);
4041
- }, ua = (t, ...e) => {
4035
+ }, la = (t, ...e) => {
4042
4036
  if (e.length === 0)
4043
4037
  throw new Error("[Color.pickByContrast] - must provide at least one color");
4044
4038
  const r = x(t), [n] = e.sort((s, i) => Ot(r, i) - Ot(r, s));
4045
4039
  return x(n);
4046
- }, la = (t) => xe(t) < 0.5, ca = (t) => xe(t) > 0.5, ke = (t, e = 1) => (t = Fe.parse(t), t = ha(t), [
4040
+ }, ca = (t) => xe(t) < 0.5, ha = (t) => xe(t) > 0.5, ke = (t, e = 1) => (t = Fe.parse(t), t = fa(t), [
4047
4041
  Ue(t, 0),
4048
4042
  Ue(t, 2),
4049
4043
  Ue(t, 4),
4050
4044
  t.length === 8 ? Ue(t, 6) / 255 : e
4051
- ]), Kt = [0, 0, 0, 0], je = (t) => Math.floor(t).toString(16).padStart(2, "0"), Ue = (t, e) => parseInt(t.slice(e, e + 2), 16), ha = (t) => t.startsWith("#") ? t.slice(1) : t, or = {
4045
+ ]), Kt = [0, 0, 0, 0], je = (t) => Math.floor(t).toString(16).padStart(2, "0"), Ue = (t, e) => parseInt(t.slice(e, e + 2), 16), fa = (t) => t.startsWith("#") ? t.slice(1) : t, or = {
4052
4046
  black: "#000000",
4053
4047
  white: "#ffffff",
4054
4048
  red: "#ff0000",
@@ -4080,7 +4074,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4080
4074
  khaki: "#f0e68c",
4081
4075
  crimson: "#dc143c",
4082
4076
  transparent: "transparent"
4083
- }, fa = (t) => {
4077
+ }, da = (t) => {
4084
4078
  if (!t) return;
4085
4079
  const e = t.trim().toLowerCase();
4086
4080
  if (!(e === "transparent" || e === "none")) {
@@ -4102,7 +4096,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4102
4096
  }
4103
4097
  if (or[e]) return ke(or[e]);
4104
4098
  }
4105
- }, da = (t) => {
4099
+ }, ga = (t) => {
4106
4100
  t = on.parse(t);
4107
4101
  let [e, r, n] = t;
4108
4102
  const s = t[3];
@@ -4115,7 +4109,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4115
4109
  i = st(h, l, e + 1 / 3), o = st(h, l, e), u = st(h, l, e - 1 / 3);
4116
4110
  }
4117
4111
  return [Math.round(i * 255), Math.round(o * 255), Math.round(u * 255), s];
4118
- }, st = (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), ga = (t) => {
4112
+ }, st = (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), pa = (t) => {
4119
4113
  t = Ke.parse(t);
4120
4114
  let [e, r, n] = t;
4121
4115
  const s = t[3];
@@ -4129,12 +4123,12 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4129
4123
  l = h > 0.5 ? f / (2 - i - o) : f / (i + o), i === e ? u = (r - n) / f + (r < n ? 6 : 0) : i === r ? u = (n - e) / f + 2 : u = (e - r) / f + 4, u /= 6;
4130
4124
  }
4131
4125
  return u *= 360, l *= 100, h *= 100, [Math.round(u), Math.round(l), Math.round(h), s];
4132
- }, pa = x("#000000"), ya = x("#ffffff"), cn = a.object({
4126
+ }, ya = x("#000000"), ma = x("#ffffff"), cn = a.object({
4133
4127
  key: a.string(),
4134
4128
  color: Qe,
4135
4129
  position: a.number(),
4136
4130
  switched: a.boolean().optional()
4137
- }), ma = a.array(cn), ba = (t, e) => {
4131
+ }), ba = a.array(cn), wa = (t, e) => {
4138
4132
  if (t.length === 0) return Kt;
4139
4133
  if (t = t.slice().sort((r, n) => r.position - n.position), e <= t[0].position) return x(t[0].color);
4140
4134
  if (e >= t[t.length - 1].position)
@@ -4154,18 +4148,18 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4154
4148
  return x([l, h, f, y]);
4155
4149
  }
4156
4150
  return x(t[t.length - 1].color);
4157
- }, wa = a.object({
4151
+ }, Oa = a.object({
4158
4152
  key: a.string(),
4159
4153
  name: a.string(),
4160
4154
  color: _e
4161
- }), Oa = a.object({
4155
+ }), va = a.object({
4162
4156
  key: a.string(),
4163
4157
  name: a.string(),
4164
- swatches: a.array(wa)
4165
- }), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4158
+ swatches: a.array(Oa)
4159
+ }), Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4166
4160
  __proto__: null,
4167
- BLACK: pa,
4168
- WHITE: ya,
4161
+ BLACK: ya,
4162
+ WHITE: ma,
4169
4163
  ZERO: Kt,
4170
4164
  aValue: Oe,
4171
4165
  bValue: we,
@@ -4173,32 +4167,32 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4173
4167
  construct: x,
4174
4168
  contrast: Ot,
4175
4169
  crudeZ: Qe,
4176
- cssString: ea,
4170
+ cssString: ta,
4177
4171
  equals: an,
4178
- fromCSS: fa,
4179
- fromGradient: ba,
4180
- fromHSLA: da,
4172
+ fromCSS: da,
4173
+ fromGradient: wa,
4174
+ fromHSLA: ga,
4181
4175
  gValue: be,
4182
- gradientZ: ma,
4183
- grayness: aa,
4184
- hex: ta,
4185
- hsla: ia,
4186
- isColor: _o,
4187
- isCrude: Qo,
4188
- isDark: la,
4189
- isLight: ca,
4190
- isZero: sa,
4176
+ gradientZ: ba,
4177
+ grayness: ua,
4178
+ hex: ra,
4179
+ hsla: oa,
4180
+ isColor: ea,
4181
+ isCrude: _o,
4182
+ isDark: ca,
4183
+ isLight: ha,
4184
+ isZero: ia,
4191
4185
  luminance: xe,
4192
- paletteZ: Oa,
4193
- pickByContrast: ua,
4186
+ paletteZ: va,
4187
+ pickByContrast: la,
4194
4188
  rValue: me,
4195
- rgbCSS: ra,
4189
+ rgbCSS: na,
4196
4190
  rgbString: ln,
4197
- rgba1: na,
4191
+ rgba1: sa,
4198
4192
  rgbaCSS: un,
4199
- setAlpha: oa,
4193
+ setAlpha: aa,
4200
4194
  stopZ: cn
4201
- }, Symbol.toStringTag, { value: "Module" })), hn = a.int().min(0).max(255), fn = 255, dn = 0, Ta = {
4195
+ }, Symbol.toStringTag, { value: "Module" })), hn = a.int().min(0).max(255), fn = 255, dn = 0, xa = {
4202
4196
  lower: dn,
4203
4197
  upper: fn + 1
4204
4198
  }, gn = a.object({
@@ -4208,7 +4202,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4208
4202
  subject: gn,
4209
4203
  resource: t,
4210
4204
  authority: hn
4211
- }), xa = (...t) => (e) => e.filter((r) => {
4205
+ }), Sa = (...t) => (e) => e.filter((r) => {
4212
4206
  let n = !1;
4213
4207
  return r.to != null && (n = t.includes(r.to.resource)), r.from != null && !n && (n = t.includes(r.from.resource)), n;
4214
4208
  }), pn = (t) => a.object({
@@ -4217,38 +4211,38 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4217
4211
  }), yn = (t) => a.object({
4218
4212
  from: a.null(),
4219
4213
  to: Se(t)
4220
- }), Sa = (t) => a.union([
4214
+ }), Na = (t) => a.union([
4221
4215
  pn(t),
4222
4216
  yn(t),
4223
4217
  a.object({
4224
4218
  from: Se(t),
4225
4219
  to: Se(t)
4226
4220
  })
4227
- ]), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4221
+ ]), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4228
4222
  __proto__: null,
4229
4223
  ABSOLUTE_AUTHORITY: fn,
4230
- AUTHORITY_BOUNDS: Ta,
4224
+ AUTHORITY_BOUNDS: xa,
4231
4225
  ZERO_AUTHORITY: dn,
4232
4226
  acquireZ: yn,
4233
4227
  authorityZ: hn,
4234
- filterTransfersByChannelKey: xa,
4228
+ filterTransfersByChannelKey: Sa,
4235
4229
  releaseZ: pn,
4236
4230
  stateZ: Se,
4237
4231
  subjectZ: gn,
4238
- transferZ: Sa
4239
- }, Symbol.toStringTag, { value: "Module" })), hl = (t, e) => {
4232
+ transferZ: Na
4233
+ }, Symbol.toStringTag, { value: "Module" })), dl = (t, e) => {
4240
4234
  let r = null;
4241
4235
  return e === 0 ? t : (...n) => {
4242
4236
  r !== null && (clearTimeout(r), r = null), r = setTimeout(() => t(...n), e);
4243
4237
  };
4244
- }, fl = (t, e) => {
4238
+ }, gl = (t, e) => {
4245
4239
  let r = null;
4246
4240
  return e === 0 ? t : (...n) => {
4247
4241
  r === null && (r = setTimeout(() => {
4248
4242
  t(...n), r = null;
4249
4243
  }, e));
4250
4244
  };
4251
- }, Na = (t) => {
4245
+ }, Ia = (t) => {
4252
4246
  try {
4253
4247
  return structuredClone(t);
4254
4248
  } catch {
@@ -4257,7 +4251,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4257
4251
  t
4258
4252
  ), console.trace(), JSON.parse(JSON.stringify(t));
4259
4253
  }
4260
- }, Ia = (t, e, r = "") => {
4254
+ }, Ma = (t, e, r = "") => {
4261
4255
  const n = {}, s = (i, o, u) => {
4262
4256
  if (typeof i != typeof o || i === null || o === null) {
4263
4257
  n[u] = [i, o];
@@ -4326,15 +4320,15 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4326
4320
  const n = t[0];
4327
4321
  if (typeof n == "object" && "key" in n)
4328
4322
  return t.find((s) => s.key === e);
4329
- }, Ma = (t, e) => {
4323
+ }, Aa = (t, e) => {
4330
4324
  const r = t.split($);
4331
4325
  return r.forEach((n, s) => {
4332
4326
  e = fe(e, n), e != null && typeof e == "object" && "key" in e && (r[s] = e.key);
4333
4327
  }), r.join($);
4334
- }, Aa = (t, e) => {
4328
+ }, Ea = (t, e) => {
4335
4329
  const r = t.split($);
4336
4330
  return e < 0 ? r[r.length + e] : r[e];
4337
- }, Ea = (t, e) => {
4331
+ }, ja = (t, e) => {
4338
4332
  if (e.length === 0) return !0;
4339
4333
  const r = t.split($), n = e.split($);
4340
4334
  if (n.length > r.length) return !1;
@@ -4382,7 +4376,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4382
4376
  throw new Error(`Path ${e} does not exist. ${i[l]} is undefined`);
4383
4377
  };
4384
4378
  return o(t, 0);
4385
- }), ja = (t, e) => Qt(t, e, { optional: !0 }) !== null, xt = (t, ...e) => {
4379
+ }), Ua = (t, e) => Qt(t, e, { optional: !0 }) !== null, xt = (t, ...e) => {
4386
4380
  if (e.length === 0) return t;
4387
4381
  const r = e.shift();
4388
4382
  if ($e(t) && $e(r))
@@ -4393,7 +4387,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4393
4387
  throw s instanceof TypeError ? new TypeError(`.${n}: ${s.message}`) : s;
4394
4388
  }
4395
4389
  return xt(t, ...e);
4396
- }, Ua = (t, e, r) => {
4390
+ }, Ba = (t, e, r) => {
4397
4391
  const n = (s, i, o) => {
4398
4392
  if (o.def?.type === "union")
4399
4393
  return o.def.options.reduce(
@@ -4423,7 +4417,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4423
4417
  return s;
4424
4418
  };
4425
4419
  return n({ ...t }, e, r);
4426
- }, Ba = (t, e) => {
4420
+ }, $a = (t, e) => {
4427
4421
  const r = e.split($);
4428
4422
  let n = t, s = 0;
4429
4423
  for (; s < r.length; ) {
@@ -4483,7 +4477,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4483
4477
  n = o, s++;
4484
4478
  }
4485
4479
  }
4486
- }, $a = (t, e, r) => {
4480
+ }, Ca = (t, e, r) => {
4487
4481
  const n = e.split($);
4488
4482
  let s = t, i = 0;
4489
4483
  for (; i < n.length - 1; ) {
@@ -4538,39 +4532,39 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4538
4532
  } catch (o) {
4539
4533
  throw console.error("failed to set value", r, "at path", e, "on object", t), o;
4540
4534
  }
4541
- }, dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4535
+ }, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4542
4536
  __proto__: null,
4543
4537
  SEPARATOR: $,
4544
- copy: Na,
4538
+ copy: Ia,
4545
4539
  defaultGetter: fe,
4546
- difference: Ia,
4547
- element: Aa,
4540
+ difference: Ma,
4541
+ element: Ea,
4548
4542
  equal: vt,
4549
4543
  findBestKey: Tt,
4550
4544
  get: Qt,
4551
4545
  getIndex: oe,
4552
- has: ja,
4546
+ has: Ua,
4553
4547
  override: xt,
4554
- overrideValidItems: Ua,
4548
+ overrideValidItems: Ba,
4555
4549
  partialEqual: mn,
4556
- pathsMatch: Ea,
4557
- remove: Ba,
4558
- resolvePath: Ma,
4559
- set: $a,
4550
+ pathsMatch: ja,
4551
+ remove: $a,
4552
+ resolvePath: Aa,
4553
+ set: Ca,
4560
4554
  transformPath: bn
4561
- }, Symbol.toStringTag, { value: "Module" })), Ca = (t) => Object.getOwnPropertySymbols(globalThis).includes(t), Ra = (t, e) => {
4555
+ }, Symbol.toStringTag, { value: "Module" })), Ra = (t) => Object.getOwnPropertySymbols(globalThis).includes(t), La = (t, e) => {
4562
4556
  const r = Symbol.for(t);
4563
- if (!Ca(r)) {
4557
+ if (!Ra(r)) {
4564
4558
  const n = e();
4565
4559
  Object.defineProperty(globalThis, r, { value: n });
4566
4560
  }
4567
4561
  return () => globalThis[r];
4568
- }, wn = "sy_x_error", La = (t) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.startsWith(t) : e instanceof Error ? e.message.startsWith(t) : typeof e != "string" ? !1 : e.startsWith(t), On = (t) => class ye extends Error {
4562
+ }, wn = "sy_x_error", ka = (t) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.startsWith(t) : e instanceof Error ? e.message.startsWith(t) : typeof e != "string" ? !1 : e.startsWith(t), On = (t) => class ye extends Error {
4569
4563
  static discriminator = wn;
4570
4564
  discriminator = ye.discriminator;
4571
4565
  static TYPE = t;
4572
4566
  type = ye.TYPE;
4573
- static matches = La(t);
4567
+ static matches = ka(t);
4574
4568
  matches = ye.matches;
4575
4569
  constructor(r, n) {
4576
4570
  super(r, n), this.name = ye.TYPE;
@@ -4578,7 +4572,7 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4578
4572
  static sub(r) {
4579
4573
  return On(`${t}.${r}`);
4580
4574
  }
4581
- }, ka = (t) => {
4575
+ }, Da = (t) => {
4582
4576
  if (t == null || typeof t != "object") return !1;
4583
4577
  const e = t;
4584
4578
  if (e.discriminator !== wn) return !1;
@@ -4588,14 +4582,14 @@ const Wo = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, Fe = a.string().regex(Wo), ae = a.n
4588
4582
  );
4589
4583
  return !0;
4590
4584
  }, de = "unknown", ar = "nil";
4591
- class Da {
4585
+ class Pa {
4592
4586
  providers = [];
4593
4587
  register(e) {
4594
4588
  this.providers.push(e);
4595
4589
  }
4596
4590
  encode(e) {
4597
4591
  if (e == null) return { type: ar, data: "" };
4598
- if (ka(e))
4592
+ if (Da(e))
4599
4593
  for (const r of this.providers) {
4600
4594
  const n = r.encode(e);
4601
4595
  if (n != null) return n;
@@ -4618,11 +4612,11 @@ class Da {
4618
4612
  return new ur(e.data);
4619
4613
  }
4620
4614
  }
4621
- Ra("synnax-error-registry", () => new Da());
4615
+ La("synnax-error-registry", () => new Pa());
4622
4616
  class ur extends On("unknown") {
4623
4617
  }
4624
4618
  a.object({ type: a.string(), data: a.string() });
4625
- const Pa = b.object({
4619
+ const za = b.object({
4626
4620
  jsonrpc: b.literal("2.0"),
4627
4621
  method: b.string(),
4628
4622
  // params should be z.union([z.record(z.string(), z.json()),
@@ -4635,7 +4629,7 @@ const Pa = b.object({
4635
4629
  id: b.union([b.string(), b.number(), b.null()])
4636
4630
  }), qa = vn.extend({
4637
4631
  result: b.json()
4638
- }), za = vn.extend({
4632
+ }), Za = vn.extend({
4639
4633
  error: b.object({
4640
4634
  code: b.number().int(),
4641
4635
  // This should be z.string(), but the VSCode JSON RPC implementation uses a looser
@@ -4643,20 +4637,20 @@ const Pa = b.object({
4643
4637
  message: b.string().optional(),
4644
4638
  data: b.json().optional()
4645
4639
  })
4646
- }), Za = b.union([qa, za]);
4647
- b.union([Pa, Za]);
4640
+ }), Fa = b.union([qa, Za]);
4641
+ b.union([za, Fa]);
4648
4642
  a.object({ key: a.string(), value: a.string() });
4649
- const Fa = b.uuid(), Ya = b.object({
4650
- key: Fa,
4643
+ const Ya = b.uuid(), Va = b.object({
4644
+ key: Ya,
4651
4645
  name: b.string().min(1),
4652
4646
  color: b.string()
4653
- }), Va = (t, e, r) => {
4647
+ }), Wa = (t, e, r) => {
4654
4648
  const n = t.get(e);
4655
4649
  return n === void 0 ? (t.set(e, r), r) : n;
4656
- }, gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4650
+ }, yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4657
4651
  __proto__: null,
4658
- getOrSetDefault: Va
4659
- }, Symbol.toStringTag, { value: "Module" })), St = a.string().regex(/^\d+\.\d+\.\d+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$/), Wa = (t, e) => {
4652
+ getOrSetDefault: Wa
4653
+ }, Symbol.toStringTag, { value: "Module" })), St = a.string().regex(/^\d+\.\d+\.\d+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$/), Ga = (t, e) => {
4660
4654
  const r = t.split("."), n = e.split("."), s = Math.max(r.length, n.length);
4661
4655
  for (let i = 0; i < s; i++) {
4662
4656
  const o = r[i], u = n[i];
@@ -4690,8 +4684,8 @@ const Fa = b.uuid(), Ya = b.object({
4690
4684
  if (y < E) return V;
4691
4685
  if (y > E) return W;
4692
4686
  }
4693
- return o === void 0 && l === void 0 ? se : o === void 0 ? W : l === void 0 ? V : Wa(o, l);
4694
- }), Ga = (t, e, r = {}) => vr(Me(t, e, r)), Tn = (t, e, r = {}) => Or(Me(t, e, r)), Ha = (t, e, r = {}) => wr(Me(t, e, r)), Xa = ({
4687
+ return o === void 0 && l === void 0 ? se : o === void 0 ? W : l === void 0 ? V : Ga(o, l);
4688
+ }), Ha = (t, e, r = {}) => vr(Me(t, e, r)), Tn = (t, e, r = {}) => Or(Me(t, e, r)), Xa = (t, e, r = {}) => wr(Me(t, e, r)), Ja = ({
4695
4689
  name: t,
4696
4690
  migrate: e
4697
4691
  }) => (r) => {
@@ -4701,7 +4695,7 @@ const Fa = b.uuid(), Ya = b.object({
4701
4695
  } catch (n) {
4702
4696
  throw console.log(`${t} failed to migrate from ${r.version}`), console.error(n), n;
4703
4697
  }
4704
- }, Ja = ({
4698
+ }, Ka = ({
4705
4699
  name: t,
4706
4700
  migrations: e,
4707
4701
  targetSchema: r,
@@ -4753,16 +4747,16 @@ const Fa = b.uuid(), Ya = b.object({
4753
4747
  return console.log(`${t} failed to parse final result. Exiting with default`), console.error(f), s;
4754
4748
  }
4755
4749
  };
4756
- }, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4750
+ }, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4757
4751
  __proto__: null,
4758
4752
  compareSemVer: Me,
4759
- createMigration: Xa,
4760
- migrator: Ja,
4753
+ createMigration: Ja,
4754
+ migrator: Ka,
4761
4755
  semVerNewer: Tn,
4762
- semVerOlder: Ha,
4756
+ semVerOlder: Xa,
4763
4757
  semVerZ: St,
4764
- versionsEqual: Ga
4765
- }, Symbol.toStringTag, { value: "Module" })), xn = ["standard", "scientific", "engineering"], Ka = a.enum(xn), Qa = (t, e, r) => {
4758
+ versionsEqual: Ha
4759
+ }, Symbol.toStringTag, { value: "Module" })), xn = ["standard", "scientific", "engineering"], Qa = a.enum(xn), _a = (t, e, r) => {
4766
4760
  if (Number.isNaN(t)) return "NaN";
4767
4761
  if (t === 1 / 0) return "∞";
4768
4762
  if (t === -1 / 0) return "-∞";
@@ -4771,13 +4765,13 @@ const Fa = b.uuid(), Ya = b.object({
4771
4765
  return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
4772
4766
  let n;
4773
4767
  return r === "scientific" ? n = Math.floor(Math.log10(Math.abs(t))) : n = Math.floor(Math.log10(Math.abs(t)) / 3) * 3, `${(t / 10 ** n).toFixed(e)}ᴇ${n}`;
4774
- }, yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4768
+ }, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4775
4769
  __proto__: null,
4776
4770
  NOTATIONS: xn,
4777
- notationZ: Ka,
4778
- stringifyNumber: Qa
4771
+ notationZ: Qa,
4772
+ stringifyNumber: _a
4779
4773
  }, Symbol.toStringTag, { value: "Module" }));
4780
- class _a {
4774
+ class eu {
4781
4775
  handlers;
4782
4776
  transform;
4783
4777
  closer;
@@ -4805,7 +4799,7 @@ class _a {
4805
4799
  return await this.closer?.();
4806
4800
  }
4807
4801
  }
4808
- class eu {
4802
+ class tu {
4809
4803
  handlers;
4810
4804
  constructor(e) {
4811
4805
  this.handlers = e ?? /* @__PURE__ */ new Map();
@@ -4817,31 +4811,29 @@ class eu {
4817
4811
  this.handlers.forEach((r, n) => n(e));
4818
4812
  }
4819
4813
  }
4820
- const ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4814
+ const wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4821
4815
  __proto__: null,
4822
- BaseObserver: eu,
4823
- Observer: _a
4824
- }, Symbol.toStringTag, { value: "Module" })), tu = a.record(
4825
- a.union([a.number(), a.string(), a.symbol()]),
4826
- a.unknown()
4827
- ), _t = (t) => Object.entries(t), ru = (t, e) => Object.fromEntries(_t(t).map(([r, n]) => [r, e(n, r)])), nu = (t) => Object.fromEntries(_t(t).filter(([e, r]) => r !== void 0)), su = (t, ...e) => {
4816
+ BaseObserver: tu,
4817
+ Observer: eu
4818
+ }, Symbol.toStringTag, { value: "Module" })), Sn = a.union([a.string(), a.number()]), ru = a.record(Sn, a.unknown()), _t = (t) => Object.entries(t), nu = (t, e) => Object.fromEntries(_t(t).map(([r, n]) => [r, e(n, r)])), su = (t) => Object.fromEntries(_t(t).filter(([e, r]) => r !== void 0)), iu = (t, ...e) => {
4828
4819
  const r = { ...t };
4829
4820
  for (const n of e) delete r[n];
4830
4821
  return r;
4831
- }, bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4822
+ }, Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4832
4823
  __proto__: null,
4833
4824
  entries: _t,
4834
- map: ru,
4835
- omit: su,
4836
- purgeUndefined: nu,
4837
- unknownZ: tu
4838
- }, Symbol.toStringTag, { value: "Module" })), Sn = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", iu = Sn(), Nn = ["macOS", "Windows", "Linux"], ou = ["macos", "windows", "linux"], au = {
4825
+ keyZ: Sn,
4826
+ map: nu,
4827
+ omit: iu,
4828
+ purgeUndefined: su,
4829
+ unknownZ: ru
4830
+ }, Symbol.toStringTag, { value: "Module" })), Nn = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", ou = Nn(), In = ["macOS", "Windows", "Linux"], au = ["macos", "windows", "linux"], uu = {
4839
4831
  macos: "macOS",
4840
4832
  windows: "Windows",
4841
4833
  linux: "Linux"
4842
- }, uu = a.enum(Nn).or(
4843
- a.enum(ou).transform((t) => au[t])
4844
- ), lu = () => {
4834
+ }, lu = a.enum(In).or(
4835
+ a.enum(au).transform((t) => uu[t])
4836
+ ), cu = () => {
4845
4837
  if (typeof window > "u") return;
4846
4838
  const t = window.navigator.userAgent.toLowerCase();
4847
4839
  if (t.includes("mac")) return "macOS";
@@ -4849,83 +4841,83 @@ const ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4849
4841
  if (t.includes("linux")) return "Linux";
4850
4842
  };
4851
4843
  let it;
4852
- const cu = ((t = {}) => {
4844
+ const hu = ((t = {}) => {
4853
4845
  const { force: e, default: r } = t;
4854
- return e ?? it ?? (it = lu(), it ?? r);
4855
- }), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4846
+ return e ?? it ?? (it = cu(), it ?? r);
4847
+ }), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4856
4848
  __proto__: null,
4857
- OPERATING_SYSTEMS: Nn,
4858
- RUNTIME: iu,
4859
- detect: Sn,
4860
- getOS: cu,
4861
- osZ: uu
4862
- }, Symbol.toStringTag, { value: "Module" })), hu = () => Promise.resolve(), fu = () => new Promise((t) => setTimeout(t, 0)), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4849
+ OPERATING_SYSTEMS: In,
4850
+ RUNTIME: ou,
4851
+ detect: Nn,
4852
+ getOS: hu,
4853
+ osZ: lu
4854
+ }, Symbol.toStringTag, { value: "Module" })), fu = () => Promise.resolve(), du = () => new Promise((t) => setTimeout(t, 0)), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4863
4855
  __proto__: null,
4864
- flushMicrotasks: hu,
4865
- flushTaskQueue: fu
4866
- }, Symbol.toStringTag, { value: "Module" })), du = (t) => Array.isArray(t) ? [...t] : typeof t == "object" && t !== null ? { ...t } : t, vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4856
+ flushMicrotasks: fu,
4857
+ flushTaskQueue: du
4858
+ }, Symbol.toStringTag, { value: "Module" })), gu = (t) => Array.isArray(t) ? [...t] : typeof t == "object" && t !== null ? { ...t } : t, xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4867
4859
  __proto__: null,
4868
- copy: du
4869
- }, Symbol.toStringTag, { value: "Module" })), In = a.enum([
4860
+ copy: gu
4861
+ }, Symbol.toStringTag, { value: "Module" })), Mn = a.enum([
4870
4862
  "success",
4871
4863
  "info",
4872
4864
  "warning",
4873
4865
  "error",
4874
4866
  "loading",
4875
4867
  "disabled"
4876
- ]), gu = (t) => a.object({
4868
+ ]), pu = (t) => a.object({
4877
4869
  key: a.string(),
4878
4870
  name: a.string().default(""),
4879
- variant: In,
4871
+ variant: Mn,
4880
4872
  message: a.string(),
4881
4873
  description: a.string().optional(),
4882
4874
  time: d.z,
4883
- labels: hr(Ya).optional(),
4875
+ labels: hr(Va).optional(),
4884
4876
  details: t ?? a.unknown().optional()
4885
- }), pu = a.object({
4877
+ }), yu = a.object({
4886
4878
  stack: a.string(),
4887
4879
  error: a.instanceof(Error)
4888
- }), yu = (t, e) => {
4880
+ }), mu = (t, e) => {
4889
4881
  if (!(t instanceof Error)) throw t;
4890
- return Mn({
4882
+ return An({
4891
4883
  variant: "error",
4892
4884
  message: e ?? t.message,
4893
4885
  description: e != null ? t.message : void 0,
4894
4886
  details: { stack: t.stack ?? "", error: t }
4895
4887
  });
4896
- }, Mn = (t) => ({
4888
+ }, An = (t) => ({
4897
4889
  key: Mt(),
4898
4890
  time: d.now(),
4899
4891
  name: "",
4900
4892
  ...t
4901
- }), mu = (t, e = []) => {
4893
+ }), bu = (t, e = []) => {
4902
4894
  if (t != null)
4903
4895
  return Array.isArray(e) ? e.includes(t) ? t : void 0 : e === t ? t : void 0;
4904
- }, bu = (t, e = []) => {
4896
+ }, wu = (t, e = []) => {
4905
4897
  if (t != null)
4906
4898
  return Array.isArray(e) ? e.includes(t) ? void 0 : t : e === t ? void 0 : t;
4907
- }, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4899
+ }, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4908
4900
  __proto__: null,
4909
- create: Mn,
4910
- exceptionDetailsSchema: pu,
4911
- fromException: yu,
4912
- keepVariants: mu,
4913
- removeVariants: bu,
4914
- statusZ: gu,
4915
- variantZ: In
4916
- }, Symbol.toStringTag, { value: "Module" })), wu = (t, e) => {
4901
+ create: An,
4902
+ exceptionDetailsSchema: yu,
4903
+ fromException: mu,
4904
+ keepVariants: bu,
4905
+ removeVariants: wu,
4906
+ statusZ: pu,
4907
+ variantZ: Mn
4908
+ }, Symbol.toStringTag, { value: "Module" })), Ou = (t, e) => {
4917
4909
  if (!e.has(t)) return t;
4918
4910
  let r = t, n = 1, s = t;
4919
4911
  for (; e.has(s); ) {
4920
- const i = s.match(Ou);
4912
+ const i = s.match(vu);
4921
4913
  i ? (r = s.slice(0, i.index).trim(), n = parseInt(i[1]) + 1) : (r = s, n = 1), s = `${r} (${n})`;
4922
4914
  }
4923
4915
  return s;
4924
- }, Ou = /\((\d+)\)$/, vu = (t, e = "") => {
4916
+ }, vu = /\((\d+)\)$/, Tu = (t, e = "") => {
4925
4917
  if (typeof t == "string") return t;
4926
4918
  const r = t.length;
4927
4919
  return r === 0 ? e : r === 1 ? t[0] : r === 2 ? `${t[0]} and ${t[1]}` : `${t.slice(0, -1).join(", ")}, and ${t[r - 1]}`;
4928
- }, Tu = (t) => {
4920
+ }, xu = (t) => {
4929
4921
  const e = t.split(" "), r = /* @__PURE__ */ new Set(), n = e.map((o) => o.charAt(0).toLowerCase()).join("");
4930
4922
  r.add(n.replace(/-/g, "_")), r.add(n.replace(/(.)(.)/g, "$1_$2").replace(/-/g, "_"));
4931
4923
  const s = /\d+/g;
@@ -4943,14 +4935,14 @@ const cu = ((t = {}) => {
4943
4935
  return r.add(i.join("").replace(/-/g, "_")), r.add(i.join("_").replace(/-/g, "_")), Array.from(r).filter(
4944
4936
  (o) => o.length >= 2 && o.length <= 12 && !/^\d/.test(o)
4945
4937
  );
4946
- }, xu = (t, e) => t.startsWith(e) ? t.slice(e.length) : t, xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4938
+ }, Su = (t, e) => t.startsWith(e) ? t.slice(e.length) : t, Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4947
4939
  __proto__: null,
4948
- createShortIdentifiers: Tu,
4949
- deduplicateFileName: wu,
4950
- naturalLanguageJoin: vu,
4951
- trimPrefix: xu
4952
- }, Symbol.toStringTag, { value: "Module" })), Su = new Error("request for lock canceled");
4953
- var Nu = function(t, e, r, n) {
4940
+ createShortIdentifiers: xu,
4941
+ deduplicateFileName: Ou,
4942
+ naturalLanguageJoin: Tu,
4943
+ trimPrefix: Su
4944
+ }, Symbol.toStringTag, { value: "Module" })), Nu = new Error("request for lock canceled");
4945
+ var Iu = function(t, e, r, n) {
4954
4946
  function s(i) {
4955
4947
  return i instanceof r ? i : new r(function(o) {
4956
4948
  o(i);
@@ -4977,20 +4969,20 @@ var Nu = function(t, e, r, n) {
4977
4969
  h((n = n.apply(t, e || [])).next());
4978
4970
  });
4979
4971
  };
4980
- class Iu {
4981
- constructor(e, r = Su) {
4972
+ class Mu {
4973
+ constructor(e, r = Nu) {
4982
4974
  this._value = e, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
4983
4975
  }
4984
4976
  acquire(e = 1, r = 0) {
4985
4977
  if (e <= 0)
4986
4978
  throw new Error(`invalid weight ${e}: must be positive`);
4987
4979
  return new Promise((n, s) => {
4988
- const i = { resolve: n, reject: s, weight: e, priority: r }, o = An(this._queue, (u) => r <= u.priority);
4980
+ const i = { resolve: n, reject: s, weight: e, priority: r }, o = En(this._queue, (u) => r <= u.priority);
4989
4981
  o === -1 && e <= this._value ? this._dispatchItem(i) : this._queue.splice(o + 1, 0, i);
4990
4982
  });
4991
4983
  }
4992
4984
  runExclusive(e) {
4993
- return Nu(this, arguments, void 0, function* (r, n = 1, s = 0) {
4985
+ return Iu(this, arguments, void 0, function* (r, n = 1, s = 0) {
4994
4986
  const [i, o] = yield this.acquire(n, s);
4995
4987
  try {
4996
4988
  return yield r(i);
@@ -5003,7 +4995,7 @@ class Iu {
5003
4995
  if (e <= 0)
5004
4996
  throw new Error(`invalid weight ${e}: must be positive`);
5005
4997
  return this._couldLockImmediately(e, r) ? Promise.resolve() : new Promise((n) => {
5006
- this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), Mu(this._weightedWaiters[e - 1], { resolve: n, priority: r });
4998
+ this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), Au(this._weightedWaiters[e - 1], { resolve: n, priority: r });
5007
4999
  });
5008
5000
  }
5009
5001
  isLocked() {
@@ -5058,17 +5050,17 @@ class Iu {
5058
5050
  return (this._queue.length === 0 || this._queue[0].priority < r) && e <= this._value;
5059
5051
  }
5060
5052
  }
5061
- function Mu(t, e) {
5062
- const r = An(t, (n) => e.priority <= n.priority);
5053
+ function Au(t, e) {
5054
+ const r = En(t, (n) => e.priority <= n.priority);
5063
5055
  t.splice(r + 1, 0, e);
5064
5056
  }
5065
- function An(t, e) {
5057
+ function En(t, e) {
5066
5058
  for (let r = t.length - 1; r >= 0; r--)
5067
5059
  if (e(t[r]))
5068
5060
  return r;
5069
5061
  return -1;
5070
5062
  }
5071
- var Au = function(t, e, r, n) {
5063
+ var Eu = function(t, e, r, n) {
5072
5064
  function s(i) {
5073
5065
  return i instanceof r ? i : new r(function(o) {
5074
5066
  o(i);
@@ -5095,12 +5087,12 @@ var Au = function(t, e, r, n) {
5095
5087
  h((n = n.apply(t, e || [])).next());
5096
5088
  });
5097
5089
  };
5098
- class Eu {
5090
+ class ju {
5099
5091
  constructor(e) {
5100
- this._semaphore = new Iu(1, e);
5092
+ this._semaphore = new Mu(1, e);
5101
5093
  }
5102
5094
  acquire() {
5103
- return Au(this, arguments, void 0, function* (e = 0) {
5095
+ return Eu(this, arguments, void 0, function* (e = 0) {
5104
5096
  const [, r] = yield this._semaphore.acquire(1, e);
5105
5097
  return r;
5106
5098
  });
@@ -5121,16 +5113,16 @@ class Eu {
5121
5113
  return this._semaphore.cancel();
5122
5114
  }
5123
5115
  }
5124
- class En extends Eu {
5116
+ class jn extends ju {
5125
5117
  constructor(e) {
5126
5118
  super(), Object.assign(this, e);
5127
5119
  }
5128
5120
  }
5129
- const ju = (t) => new En(t), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5121
+ const Uu = (t) => new jn(t), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5130
5122
  __proto__: null,
5131
- mutex: En,
5132
- newMutex: ju
5133
- }, Symbol.toStringTag, { value: "Module" })), Uu = (...t) => t.map(jn).join(""), jn = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Bu = (t) => t.endsWith("/") ? t.slice(0, -1) : t;
5123
+ mutex: jn,
5124
+ newMutex: Uu
5125
+ }, Symbol.toStringTag, { value: "Module" })), Bu = (...t) => t.map(Un).join(""), Un = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), $u = (t) => t.endsWith("/") ? t.slice(0, -1) : t;
5134
5126
  class De {
5135
5127
  protocol;
5136
5128
  host;
@@ -5143,7 +5135,7 @@ class De {
5143
5135
  * @param pathPrefix - A path prefix to use for all requests. Defaults to "".
5144
5136
  */
5145
5137
  constructor({ host: e, port: r, protocol: n = "", pathPrefix: s = "" }) {
5146
- this.protocol = n, this.host = e, this.port = r, this.path = jn(s);
5138
+ this.protocol = n, this.host = e, this.port = r, this.path = Un(s);
5147
5139
  }
5148
5140
  /**
5149
5141
  * Replaces creates a new URL with the specified properties replaced.
@@ -5166,18 +5158,18 @@ class De {
5166
5158
  child(e) {
5167
5159
  return new De({
5168
5160
  ...this,
5169
- pathPrefix: Uu(this.path, e)
5161
+ pathPrefix: Bu(this.path, e)
5170
5162
  });
5171
5163
  }
5172
5164
  /** @returns a string representation of the url */
5173
5165
  toString() {
5174
- return Bu(
5166
+ return $u(
5175
5167
  `${this.protocol}://${this.host}:${this.port}/${this.path}`
5176
5168
  );
5177
5169
  }
5178
5170
  static UNKNOWN = new De({ host: "unknown", port: 0 });
5179
5171
  }
5180
- class Nl {
5172
+ class Ml {
5181
5173
  sender;
5182
5174
  handlers;
5183
5175
  constructor(e) {
@@ -5188,12 +5180,12 @@ class Nl {
5188
5180
  r == null ? console.warn(`No handler for ${e.type}`) : r(e.payload);
5189
5181
  }
5190
5182
  route(e) {
5191
- const r = $u(e, this.sender), n = new Cu(r);
5183
+ const r = Cu(e, this.sender), n = new Ru(r);
5192
5184
  return this.handlers.set(e, n), n;
5193
5185
  }
5194
5186
  }
5195
- const $u = (t, e) => (r, n) => e({ type: t, payload: r }, n);
5196
- class Cu {
5187
+ const Cu = (t, e) => (r, n) => e({ type: t, payload: r }, n);
5188
+ class Ru {
5197
5189
  _send;
5198
5190
  handler;
5199
5191
  constructor(e) {
@@ -5206,43 +5198,44 @@ class Cu {
5206
5198
  this.handler = e;
5207
5199
  }
5208
5200
  }
5209
- const Ru = (t) => t.nullable().transform((e) => e === null ? void 0 : e).optional(), Lu = a.int().min(0).max(Ir), ku = (t) => b.array(t).or(t.transform((e) => [e])), Un = (t) => bn(t, (e, r, n) => {
5201
+ const Lu = (t) => t.nullable().transform((e) => e === null ? void 0 : e).optional(), ku = a.int().min(0).max(Ir), Du = (t) => b.array(t).or(t.transform((e) => [e])), Pu = (t) => t._zod.def.output, Bn = (t) => bn(t, (e, r, n) => {
5210
5202
  const s = r === n.length - 1, i = !isNaN(parseInt(e)), o = !isNaN(parseInt(n[r + 1]));
5211
5203
  return i && (e = "element"), s || o ? e : [e, "shape"];
5212
5204
  }), lr = (t, e) => {
5213
5205
  if (t == null) return null;
5214
5206
  const r = t[e];
5215
5207
  return r == null && typeof t == "object" && "sourceType" in t ? t.sourceType()[e] : r;
5216
- }, Du = ((t, e, r) => e === "" ? t : Qt(
5208
+ }, zu = ((t, e, r) => e === "" ? t : Qt(
5217
5209
  lr(t, "shape"),
5218
- Un(e),
5210
+ Bn(e),
5219
5211
  { ...r, getter: lr }
5220
- )), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5212
+ )), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5221
5213
  __proto__: null,
5222
- getFieldSchema: Du,
5223
- getFieldSchemaPath: Un,
5224
- nullToUndefined: Ru,
5225
- toArray: ku,
5226
- uint12: Lu
5214
+ functionOutput: Pu,
5215
+ getFieldSchema: zu,
5216
+ getFieldSchemaPath: Bn,
5217
+ nullToUndefined: Lu,
5218
+ toArray: Du,
5219
+ uint12: ku
5227
5220
  }, Symbol.toStringTag, { value: "Module" }));
5228
- function Bn(t) {
5221
+ function $n(t) {
5229
5222
  var e, r, n = "";
5230
5223
  if (typeof t == "string" || typeof t == "number") n += t;
5231
5224
  else if (typeof t == "object") if (Array.isArray(t)) {
5232
5225
  var s = t.length;
5233
- for (e = 0; e < s; e++) t[e] && (r = Bn(t[e])) && (n && (n += " "), n += r);
5226
+ for (e = 0; e < s; e++) t[e] && (r = $n(t[e])) && (n && (n += " "), n += r);
5234
5227
  } else for (r in t) t[r] && (n && (n += " "), n += r);
5235
5228
  return n;
5236
5229
  }
5237
- function Pu() {
5238
- for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = Bn(t)) && (n && (n += " "), n += e);
5230
+ function qu() {
5231
+ for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = $n(t)) && (n && (n += " "), n += e);
5239
5232
  return n;
5240
5233
  }
5241
- const qu = Pu, ie = "-", cr = "__", Be = "--", zu = (t) => {
5242
- const e = (...r) => qu(...r);
5234
+ const Zu = qu, ie = "-", cr = "__", Be = "--", Fu = (t) => {
5235
+ const e = (...r) => Zu(...r);
5243
5236
  return e.B = (...r) => t + ie + r.join(ie), e.E = (r) => t + cr + r, e.M = (...r) => t + Be + r.join("-"), e.BM = (r, ...n) => e.B(r) + Be + n.join("-"), e.BE = (r, ...n) => e.B(r) + cr + n.join(ie), e.BEM = (r, n, ...s) => e.BE(r, n) + Be + s.join(ie), e.var = (...r) => Be + t + ie + r.join(ie), e;
5244
5237
  };
5245
- class Zu {
5238
+ class Yu {
5246
5239
  rows = [];
5247
5240
  columns = [];
5248
5241
  prefix;
@@ -5271,65 +5264,65 @@ class Zu {
5271
5264
  };
5272
5265
  }
5273
5266
  }
5274
- const Fu = (t, e) => Object.entries(e).forEach(
5267
+ const Vu = (t, e) => Object.entries(e).forEach(
5275
5268
  ([r, n]) => n != null && t.style.setProperty(r, `${n}`)
5276
- ), Yu = (t, e) => Array.from(t.style).forEach((r) => {
5269
+ ), Wu = (t, e) => Array.from(t.style).forEach((r) => {
5277
5270
  r.startsWith(e) && t.style.removeProperty(r);
5278
- }), Vu = (t) => {
5279
- const e = zu(t);
5280
- return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M("location", di.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M("direction", Qs.construct(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.applyVars = Fu, e.removeVars = Yu, e.newGridBuilder = (r) => new Zu(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) => r != null && e.M(`shade-${r}`)), e.colorVar = (r) => {
5271
+ }), Gu = (t) => {
5272
+ const e = Fu(t);
5273
+ return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M("location", gi.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M("direction", _s.construct(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.applyVars = Vu, e.removeVars = Wu, e.newGridBuilder = (r) => new Yu(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) => r != null && e.M(`shade-${r}`)), e.colorVar = (r) => {
5281
5274
  if (!(r == null || r === !1))
5282
- return typeof r == "number" ? `var(--${t}-gray-l${r})` : va.cssString(r);
5275
+ return typeof r == "number" ? `var(--${t}-gray-l${r})` : Ta.cssString(r);
5283
5276
  }, e.levelSizeVar = (r) => `var(--${t}-${r}-size)`, e.level = (r) => e.M(`level-${r}`), e;
5284
- }, Ml = Vu("pluto");
5277
+ }, El = Gu("pluto");
5285
5278
  export {
5286
- al as $,
5287
- il as A,
5288
- Ol as B,
5289
- Ml as C,
5290
- pl as D,
5291
- Pu as E,
5292
- Il as F,
5293
- ol as G,
5294
- gl as H,
5295
- di as I,
5296
- yl as J,
5297
- v as K,
5298
- cl as L,
5299
- sl as M,
5300
- rl as N,
5279
+ j as $,
5280
+ sl as A,
5281
+ qu as B,
5282
+ El as C,
5283
+ Al as D,
5284
+ il as E,
5285
+ dl as F,
5286
+ cl as G,
5287
+ v as H,
5288
+ rl as I,
5289
+ ml as K,
5290
+ gi as M,
5291
+ nl as N,
5301
5292
  tl as O,
5302
- va as P,
5303
5293
  bl as Q,
5304
- A as S,
5294
+ hl as R,
5295
+ ol as S,
5296
+ al as T,
5305
5297
  ul as U,
5306
- ml as X,
5307
- hl as Z,
5298
+ pl as V,
5299
+ yl as X,
5300
+ Ta as Z,
5308
5301
  fl as _,
5309
- Gu as a,
5310
- vl as b,
5302
+ Ol as a,
5303
+ _u as b,
5311
5304
  Ju as c,
5312
- d,
5313
- c as e,
5314
- Hu as f,
5305
+ Xu as d,
5306
+ d as e,
5307
+ Ml as f,
5315
5308
  g,
5316
- Xu as h,
5317
- j as i,
5318
- ll as j,
5319
- z as k,
5320
- Nl as l,
5321
- Qu as m,
5322
- zu as n,
5323
- m as o,
5324
- _u as p,
5325
- dl as q,
5326
- Tl as r,
5327
- xl as s,
5309
+ c as h,
5310
+ xl as i,
5311
+ Nl as j,
5312
+ M as k,
5313
+ ll as l,
5314
+ m,
5315
+ Fu as n,
5316
+ Sl as o,
5317
+ Qu as p,
5318
+ q,
5319
+ vl as r,
5320
+ Il as s,
5328
5321
  wl as t,
5329
- Sl as u,
5330
- nl as v,
5322
+ fo as u,
5323
+ _s as v,
5331
5324
  el as w,
5332
- Qs as x,
5325
+ Tl as x,
5333
5326
  Ku as y,
5334
- ho as z
5327
+ gl as z
5335
5328
  };