@synnaxlabs/pluto 0.36.1 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/{Animated-DkZIfEYP.js → Animated-CBm9-vEt.js} +3 -3
  2. package/dist/{Animated-BAoBw9cC.cjs → Animated-Cv0kRBvj.cjs} +1 -1
  3. package/dist/{Item-BjErngVu.cjs → Item-D4eTqW7p.cjs} +1 -1
  4. package/dist/{Item-C7Q_zqsK.js → Item-DfHOrsI4.js} +5 -5
  5. package/dist/{LinePlot-Cyj5fPvs.js → LinePlot-BLovx_K1.js} +1779 -1703
  6. package/dist/LinePlot-BXBKDBXS.cjs +56 -0
  7. package/dist/{Link-DIP4E5h4.cjs → Link-CcELhLK5.cjs} +1 -1
  8. package/dist/{Link-DkPbZ9Vw.js → Link-DsUveQ8_.js} +2 -2
  9. package/dist/Pack-SDIuOEWr.cjs +1 -0
  10. package/dist/Pack-meMPpnLE.js +143 -0
  11. package/dist/Toggle--8qqNnzb.cjs +163 -0
  12. package/dist/{Toggle-CZlnDV1Y.js → Toggle-Bkpw4raJ.js} +15790 -16100
  13. package/dist/Video-D9_mAnaf.cjs +1 -0
  14. package/dist/Video-M2UhBzQi.js +9 -0
  15. package/dist/{aggregator-D6gAHK4j.js → aggregator-BpyoaCoW.js} +3090 -3053
  16. package/dist/aggregator-By11htYo.cjs +77 -0
  17. package/dist/align.cjs +1 -1
  18. package/dist/align.js +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/color.cjs +1 -1
  22. package/dist/color.js +1 -1
  23. package/dist/css-CRd0zXr-.cjs +1 -0
  24. package/dist/{css-DnIb4t_E.js → css-CxwKC6TD.js} +452 -449
  25. package/dist/css.cjs +1 -1
  26. package/dist/css.js +2 -2
  27. package/dist/dropdown.cjs +1 -1
  28. package/dist/dropdown.js +1 -1
  29. package/dist/ether.cjs +1 -1
  30. package/dist/ether.js +58 -56
  31. package/dist/{external-CXQMoMS3.cjs → external---lrKeGh.cjs} +1 -1
  32. package/dist/{external-BX17kwZc.cjs → external--jF6DCow.cjs} +1 -1
  33. package/dist/{external-feiUnuJI.js → external-BDI5gGZT.js} +2 -2
  34. package/dist/external-BDxOWeCJ.js +34 -0
  35. package/dist/{external-CetHCRLx.js → external-BOqGZoJO.js} +109 -108
  36. package/dist/external-BXEbAbxf.cjs +1 -0
  37. package/dist/external-BdhgaSFj.cjs +1 -0
  38. package/dist/external-BlB1LKU5.cjs +1 -0
  39. package/dist/external-ByzAGKGm.cjs +1 -0
  40. package/dist/{external-wgG3P6Dp.js → external-BzzIJ4wP.js} +4 -5
  41. package/dist/external-CDa3lybi.js +277 -0
  42. package/dist/{external-BxiJID8F.js → external-CEAUuDRU.js} +2 -2
  43. package/dist/{external-Ckaptp3S.js → external-Cc7R9gIf.js} +186 -187
  44. package/dist/external-CqOmm0mk.js +373 -0
  45. package/dist/{external-6FH5NjXf.js → external-CsLjI7EJ.js} +2 -2
  46. package/dist/{external-Czhk9fZS.cjs → external-DN8Ec8n8.cjs} +1 -1
  47. package/dist/{external-BpqHq8f8.js → external-DSHJn336.js} +5 -5
  48. package/dist/{external-DlCfhkx8.cjs → external-DaTbvfth.cjs} +1 -1
  49. package/dist/external-Dqh2Lbnl.cjs +1 -0
  50. package/dist/{external-DAn-_GLc.cjs → external-Dvj3Y4C_.cjs} +1 -1
  51. package/dist/external-NDebmx0l.js +123 -0
  52. package/dist/external-biLn9KfP.cjs +1 -0
  53. package/dist/{external-BDzzt6lF.js → external-hZWRSBEb.js} +11 -11
  54. package/dist/external-mT9bNf0F.cjs +1 -0
  55. package/dist/header.cjs +1 -1
  56. package/dist/header.js +1 -1
  57. package/dist/index.cjs +13 -13
  58. package/dist/index.js +10313 -7908
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +134 -134
  62. package/dist/jsx-runtime-D8EVjfnb.cjs +31 -0
  63. package/dist/list.cjs +1 -1
  64. package/dist/list.js +1 -1
  65. package/dist/menu.cjs +1 -1
  66. package/dist/menu.js +1 -1
  67. package/dist/pluto.css +1 -1
  68. package/dist/src/aether/aether/index.d.ts +1 -2
  69. package/dist/src/aether/aether/index.d.ts.map +1 -1
  70. package/dist/src/aether/main.d.ts +18 -19
  71. package/dist/src/aether/main.d.ts.map +1 -1
  72. package/dist/src/alamos/Provider.d.ts +2 -4
  73. package/dist/src/alamos/Provider.d.ts.map +1 -1
  74. package/dist/src/align/Center.d.ts +2 -3
  75. package/dist/src/align/Center.d.ts.map +1 -1
  76. package/dist/src/align/Pack.d.ts +1 -2
  77. package/dist/src/align/Pack.d.ts.map +1 -1
  78. package/dist/src/align/Space.d.ts +1 -1
  79. package/dist/src/align/Space.d.ts.map +1 -1
  80. package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -1
  81. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  82. package/dist/src/breadcrumb/Breadcrumb.spec.d.ts +2 -0
  83. package/dist/src/breadcrumb/Breadcrumb.spec.d.ts.map +1 -0
  84. package/dist/src/button/Button.d.ts +4 -4
  85. package/dist/src/button/Button.d.ts.map +1 -1
  86. package/dist/src/button/Icon.d.ts +2 -2
  87. package/dist/src/button/Icon.d.ts.map +1 -1
  88. package/dist/src/button/Toggle.d.ts +3 -3
  89. package/dist/src/button/Toggle.d.ts.map +1 -1
  90. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  91. package/dist/src/channel/Select.d.ts +2 -0
  92. package/dist/src/channel/Select.d.ts.map +1 -1
  93. package/dist/src/color/core/color.d.ts +4 -0
  94. package/dist/src/color/core/color.d.ts.map +1 -1
  95. package/dist/src/color/core/external.d.ts +1 -0
  96. package/dist/src/color/core/external.d.ts.map +1 -1
  97. package/dist/src/color/core/transformColorsToHex.d.ts +6 -0
  98. package/dist/src/color/core/transformColorsToHex.d.ts.map +1 -0
  99. package/dist/src/color/external.d.ts +1 -0
  100. package/dist/src/color/external.d.ts.map +1 -1
  101. package/dist/src/divider/index.d.ts +1 -2
  102. package/dist/src/divider/index.d.ts.map +1 -1
  103. package/dist/src/dropdown/index.d.ts +1 -2
  104. package/dist/src/dropdown/index.d.ts.map +1 -1
  105. package/dist/src/form/Field.d.ts +6 -6
  106. package/dist/src/form/Field.d.ts.map +1 -1
  107. package/dist/src/form/synced.d.ts.map +1 -1
  108. package/dist/src/generic/Generic.d.ts +1 -1
  109. package/dist/src/generic/Generic.d.ts.map +1 -1
  110. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  111. package/dist/src/haul/Haul.d.ts +3 -3
  112. package/dist/src/haul/Haul.d.ts.map +1 -1
  113. package/dist/src/hooks/ref.d.ts +5 -5
  114. package/dist/src/hooks/ref.d.ts.map +1 -1
  115. package/dist/src/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts.map +1 -1
  116. package/dist/src/index.d.ts +2 -2
  117. package/dist/src/index.d.ts.map +1 -1
  118. package/dist/src/input/Date.d.ts +2 -1
  119. package/dist/src/input/Date.d.ts.map +1 -1
  120. package/dist/src/input/DateTime.d.ts.map +1 -1
  121. package/dist/src/input/Numeric.d.ts +2 -1
  122. package/dist/src/input/Numeric.d.ts.map +1 -1
  123. package/dist/src/input/Switch.d.ts +2 -1
  124. package/dist/src/input/Switch.d.ts.map +1 -1
  125. package/dist/src/input/Text.d.ts +3 -1
  126. package/dist/src/input/Text.d.ts.map +1 -1
  127. package/dist/src/input/TextArea.d.ts +3 -3
  128. package/dist/src/input/TextArea.d.ts.map +1 -1
  129. package/dist/src/input/Time.d.ts +1 -1
  130. package/dist/src/input/Time.d.ts.map +1 -1
  131. package/dist/src/input/types.d.ts +2 -2
  132. package/dist/src/input/types.d.ts.map +1 -1
  133. package/dist/src/label/Select.d.ts.map +1 -1
  134. package/dist/src/list/Hover.d.ts.map +1 -1
  135. package/dist/src/list/Selector.d.ts.map +1 -1
  136. package/dist/src/menu/ContextMenu.d.ts +2 -2
  137. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  138. package/dist/src/modal/Modal.d.ts.map +1 -1
  139. package/dist/src/mosaic/Mosaic.d.ts +2 -5
  140. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  141. package/dist/src/nav/Drawer.d.ts +1 -3
  142. package/dist/src/nav/Drawer.d.ts.map +1 -1
  143. package/dist/src/os/Controls/index.d.ts +2 -3
  144. package/dist/src/os/Controls/index.d.ts.map +1 -1
  145. package/dist/src/pluto/Pluto.d.ts +1 -4
  146. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  147. package/dist/src/ranger/SelectLabel.d.ts.map +1 -1
  148. package/dist/src/resize/Core.d.ts +2 -2
  149. package/dist/src/resize/Core.d.ts.map +1 -1
  150. package/dist/src/resize/Multiple.d.ts +1 -1
  151. package/dist/src/resize/Multiple.d.ts.map +1 -1
  152. package/dist/src/select/Alignment.d.ts.map +1 -1
  153. package/dist/src/select/ComponentSize.d.ts +12 -0
  154. package/dist/src/select/ComponentSize.d.ts.map +1 -0
  155. package/dist/src/select/DataType.d.ts +3 -2
  156. package/dist/src/select/DataType.d.ts.map +1 -1
  157. package/dist/src/select/Multiple.d.ts +13 -12
  158. package/dist/src/select/Multiple.d.ts.map +1 -1
  159. package/dist/src/select/Select.spec.d.ts.map +1 -1
  160. package/dist/src/select/Single.d.ts +2 -2
  161. package/dist/src/select/Single.d.ts.map +1 -1
  162. package/dist/src/select/external.d.ts +1 -0
  163. package/dist/src/select/external.d.ts.map +1 -1
  164. package/dist/src/status/Aggregator.d.ts +6 -4
  165. package/dist/src/status/Aggregator.d.ts.map +1 -1
  166. package/dist/src/synnax/Provider.d.ts +2 -4
  167. package/dist/src/synnax/Provider.d.ts.map +1 -1
  168. package/dist/src/table/Table.d.ts +4 -6
  169. package/dist/src/table/Table.d.ts.map +1 -1
  170. package/dist/src/table/aether/Table.d.ts.map +1 -1
  171. package/dist/src/table/cells/Cells.d.ts +4 -4
  172. package/dist/src/table/cells/Cells.d.ts.map +1 -1
  173. package/dist/src/tabs/Selector.d.ts.map +1 -1
  174. package/dist/src/telem/Provider.d.ts +2 -4
  175. package/dist/src/telem/Provider.d.ts.map +1 -1
  176. package/dist/src/telem/aether/convertSeries.d.ts +20 -6
  177. package/dist/src/telem/aether/convertSeries.d.ts.map +1 -1
  178. package/dist/src/telem/aether/pipeline.d.ts +16 -16
  179. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  180. package/dist/src/telem/aether/telem.d.ts +30 -30
  181. package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
  182. package/dist/src/telem/client/cache/index.d.ts +1 -2
  183. package/dist/src/telem/client/cache/index.d.ts.map +1 -1
  184. package/dist/src/telem/client/cache/static.d.ts.map +1 -1
  185. package/dist/src/telem/control/Chip.d.ts +2 -3
  186. package/dist/src/telem/control/Chip.d.ts.map +1 -1
  187. package/dist/src/telem/control/Controller.d.ts +2 -4
  188. package/dist/src/telem/control/Controller.d.ts.map +1 -1
  189. package/dist/src/telem/control/Indicator.d.ts +2 -4
  190. package/dist/src/telem/control/Indicator.d.ts.map +1 -1
  191. package/dist/src/telem/control/Legend.d.ts +2 -3
  192. package/dist/src/telem/control/Legend.d.ts.map +1 -1
  193. package/dist/src/telem/control/StateProvider.d.ts +2 -4
  194. package/dist/src/telem/control/StateProvider.d.ts.map +1 -1
  195. package/dist/src/telem/control/aether/chip.d.ts +16 -16
  196. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  197. package/dist/src/telem/control/aether/indicator.d.ts +16 -16
  198. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  199. package/dist/src/text/DateTime.d.ts +3 -6
  200. package/dist/src/text/DateTime.d.ts.map +1 -1
  201. package/dist/src/text/Editable.d.ts +2 -1
  202. package/dist/src/text/Editable.d.ts.map +1 -1
  203. package/dist/src/text/Keyboard.d.ts.map +1 -1
  204. package/dist/src/text/Link.d.ts +3 -5
  205. package/dist/src/text/Link.d.ts.map +1 -1
  206. package/dist/src/text/Text.d.ts +1 -1
  207. package/dist/src/text/Text.d.ts.map +1 -1
  208. package/dist/src/theming/Provider.d.ts +1 -3
  209. package/dist/src/theming/Provider.d.ts.map +1 -1
  210. package/dist/src/theming/aether/index.d.ts +1 -2
  211. package/dist/src/theming/aether/index.d.ts.map +1 -1
  212. package/dist/src/theming/aether/provider.d.ts +315 -315
  213. package/dist/src/theming/core/theme.d.ts +116 -116
  214. package/dist/src/theming/core/theme.d.ts.map +1 -1
  215. package/dist/src/tooltip/wrap.d.ts +2 -2
  216. package/dist/src/tooltip/wrap.d.ts.map +1 -1
  217. package/dist/src/tree/Tree.d.ts +2 -2
  218. package/dist/src/tree/Tree.d.ts.map +1 -1
  219. package/dist/src/tree/core.d.ts +5 -2
  220. package/dist/src/tree/core.d.ts.map +1 -1
  221. package/dist/src/triggers/Provider.d.ts.map +1 -1
  222. package/dist/src/triggers/hooks.d.ts +2 -2
  223. package/dist/src/triggers/hooks.d.ts.map +1 -1
  224. package/dist/src/util/canDisable.d.ts +10 -0
  225. package/dist/src/util/canDisable.d.ts.map +1 -0
  226. package/dist/src/util/removeProps.d.ts +26 -0
  227. package/dist/src/util/removeProps.d.ts.map +1 -0
  228. package/dist/src/util/removeProps.spec.d.ts +2 -0
  229. package/dist/src/util/removeProps.spec.d.ts.map +1 -0
  230. package/dist/src/video/Video.d.ts +2 -2
  231. package/dist/src/video/Video.d.ts.map +1 -1
  232. package/dist/src/viewport/Mask.d.ts +2 -1
  233. package/dist/src/viewport/Mask.d.ts.map +1 -1
  234. package/dist/src/viewport/use.d.ts +3 -3
  235. package/dist/src/viewport/use.d.ts.map +1 -1
  236. package/dist/src/vis/button/aether/button.d.ts +8 -8
  237. package/dist/src/vis/canvas/Canvas.d.ts +2 -4
  238. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  239. package/dist/src/vis/canvas/aether/canvas.d.ts +4 -4
  240. package/dist/src/vis/diagram/Diagram.d.ts +2 -1
  241. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  242. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  243. package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
  244. package/dist/src/vis/eraser/use.d.ts +5 -6
  245. package/dist/src/vis/eraser/use.d.ts.map +1 -1
  246. package/dist/src/vis/light/aether/light.d.ts +8 -8
  247. package/dist/src/vis/line/Line.d.ts +4 -4
  248. package/dist/src/vis/line/Line.d.ts.map +1 -1
  249. package/dist/src/vis/line/aether/line.d.ts +24 -16
  250. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  251. package/dist/src/vis/lineplot/Axis.d.ts +2 -1
  252. package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
  253. package/dist/src/vis/lineplot/Legend.d.ts +1 -1
  254. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  255. package/dist/src/vis/lineplot/Line.d.ts +4 -4
  256. package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
  257. package/dist/src/vis/lineplot/LinePlot.d.ts +4 -5
  258. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  259. package/dist/src/vis/lineplot/Title.d.ts.map +1 -1
  260. package/dist/src/vis/lineplot/Viewport.d.ts +2 -2
  261. package/dist/src/vis/lineplot/Viewport.d.ts.map +1 -1
  262. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  263. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  264. package/dist/src/vis/lineplot/aether/index.d.ts +1 -2
  265. package/dist/src/vis/lineplot/aether/index.d.ts.map +1 -1
  266. package/dist/src/vis/lineplot/range/Annotation.d.ts +3 -4
  267. package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
  268. package/dist/src/vis/lineplot/range/Provider.d.ts +4 -4
  269. package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
  270. package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
  271. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +4 -4
  272. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
  273. package/dist/src/vis/log/Log.d.ts +3 -4
  274. package/dist/src/vis/log/Log.d.ts.map +1 -1
  275. package/dist/src/vis/log/aether/Log.d.ts +12 -12
  276. package/dist/src/vis/measure/Measure.d.ts +4 -4
  277. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  278. package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
  279. package/dist/src/vis/rule/Rule.d.ts +4 -4
  280. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  281. package/dist/src/vis/rule/aether/aether.d.ts +1 -1
  282. package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
  283. package/dist/src/vis/schematic/Forms.d.ts +9 -2
  284. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  285. package/dist/src/vis/schematic/SelectOrientation.d.ts +3 -3
  286. package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
  287. package/dist/src/vis/schematic/Symbols.d.ts +183 -3
  288. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  289. package/dist/src/vis/schematic/primitives/Primitives.d.ts +115 -6
  290. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  291. package/dist/src/vis/schematic/registry.d.ts +1 -1
  292. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  293. package/dist/src/vis/setpoint/aether/setpoint.d.ts +17 -17
  294. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  295. package/dist/src/vis/toggle/aether/toggle.d.ts +16 -16
  296. package/dist/src/vis/value/aether/value.d.ts +24 -24
  297. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  298. package/dist/src/vis/value/use.d.ts +8 -8
  299. package/dist/tabs.cjs +1 -1
  300. package/dist/tabs.js +1 -1
  301. package/dist/text.cjs +1 -1
  302. package/dist/text.js +2 -2
  303. package/dist/theming.cjs +1 -1
  304. package/dist/theming.js +2 -2
  305. package/dist/transformColorsToHex-1p-bBtDw.cjs +1 -0
  306. package/dist/transformColorsToHex-CjnZ3Lo3.js +14 -0
  307. package/dist/tree.cjs +1 -1
  308. package/dist/tree.js +1 -1
  309. package/dist/triggers.cjs +1 -1
  310. package/dist/triggers.js +1 -1
  311. package/dist/{units-CKQQRvyD.js → units-Bz3KAVba.js} +1 -1
  312. package/dist/{units-YvMXZR11.cjs → units-Cq6pBqSd.cjs} +1 -1
  313. package/dist/video.cjs +1 -1
  314. package/dist/video.js +1 -1
  315. package/package.json +17 -19
  316. package/dist/LinePlot-CFpCtIU5.cjs +0 -24
  317. package/dist/Pack-ClLR2ywa.cjs +0 -1
  318. package/dist/Pack-D8EcIVa2.js +0 -140
  319. package/dist/Toggle-Dwz8HiqJ.cjs +0 -163
  320. package/dist/Video-CI9sBV9l.js +0 -14
  321. package/dist/Video-xr1Ey5qV.cjs +0 -1
  322. package/dist/aggregator-q3hNa4qv.cjs +0 -77
  323. package/dist/css-C3zWKgOb.cjs +0 -1
  324. package/dist/external-8w5Eg-ce.cjs +0 -1
  325. package/dist/external-AQutxNrw.cjs +0 -1
  326. package/dist/external-BeoanEV1.js +0 -362
  327. package/dist/external-C-tizEE4.js +0 -254
  328. package/dist/external-CFaZ_vCi.js +0 -91
  329. package/dist/external-CIm5lpCQ.cjs +0 -1
  330. package/dist/external-Cy8UF9vk.cjs +0 -1
  331. package/dist/external-DtsEr2ls.cjs +0 -1
  332. package/dist/external-Lmd8cJhx.cjs +0 -1
  333. package/dist/external-bByVUOOg.cjs +0 -1
  334. package/dist/external-xPdBJlsz.js +0 -32
  335. package/dist/jsx-runtime-DGh1k5sI.cjs +0 -31
@@ -1,37 +1,37 @@
1
- var vt = Object.defineProperty;
2
- var Ot = (t, e, r) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var C = (t, e, r) => Ot(t, typeof e != "symbol" ? e + "" : e, r);
1
+ var $t = Object.defineProperty;
2
+ var vt = (t, e, r) => e in t ? $t(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var C = (t, e, r) => vt(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { z as i } from "zod";
5
- const te = i.tuple([i.number(), i.number()]);
5
+ const Q = i.tuple([i.number(), i.number()]);
6
6
  i.tuple([i.bigint(), i.bigint()]);
7
- const Oe = i.object({ width: i.number(), height: i.number() }), Mt = i.object({
7
+ const $e = i.object({ width: i.number(), height: i.number() }), Ot = i.object({
8
8
  signedWidth: i.number(),
9
9
  signedHeight: i.number()
10
- }), jt = ["width", "height"];
11
- i.enum(jt);
12
- const Tt = ["start", "center", "end"], It = ["signedWidth", "signedHeight"];
10
+ }), Mt = ["width", "height"];
11
+ i.enum(Mt);
12
+ const jt = ["start", "center", "end"], It = ["signedWidth", "signedHeight"];
13
13
  i.enum(It);
14
- const H = i.object({ x: i.number(), y: i.number() }), ke = i.object({ clientX: i.number(), clientY: i.number() }), Me = ["x", "y"], je = i.enum(Me), Fe = ["top", "right", "bottom", "left"], Et = i.enum(Fe), re = ["left", "right"], Te = i.enum(re), ne = ["top", "bottom"], Ie = i.enum(ne), Ee = ["center"], ce = i.enum(Ee), St = [...Fe, ...Ee], Se = i.enum(St);
15
- i.enum(Tt);
16
- const Bt = ["first", "last"];
17
- i.enum(Bt);
18
- const We = i.object({ lower: i.number(), upper: i.number() }), Nt = i.object({ lower: i.bigint(), upper: i.bigint() });
19
- i.union([We, te]);
20
- i.union([Nt, te]);
21
- const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T = (t) => typeof t == "bigint" || t instanceof BigInt, Z = (t, e) => T(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), Xe = (t, e) => T(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), At = (t, e, r = 1e-4) => Math.abs(t - e) < r, pe = (t, e) => T(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), Rt = (t) => {
14
+ const H = i.object({ x: i.number(), y: i.number() }), Fe = i.object({ clientX: i.number(), clientY: i.number() }), ve = ["x", "y"], Oe = i.enum(ve), We = ["top", "right", "bottom", "left"], Tt = i.enum(We), ee = ["left", "right"], Me = i.enum(ee), te = ["top", "bottom"], je = i.enum(te), Ie = ["center"], le = i.enum(Ie), Et = [...We, ...Ie], Te = i.enum(Et);
15
+ i.enum(jt);
16
+ const St = ["first", "last"];
17
+ i.enum(St);
18
+ const Xe = i.object({ lower: i.number(), upper: i.number() }), Bt = i.object({ lower: i.bigint(), upper: i.bigint() });
19
+ i.union([Xe, Q]);
20
+ i.union([Bt, Q]);
21
+ const Nt = i.union([Oe, Te]), zt = i.union([Oe, Te, i.instanceof(String)]), I = (t) => typeof t == "bigint" || t instanceof BigInt, Z = (t, e) => I(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), De = (t, e) => I(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), Ct = (t, e, r = 1e-4) => Math.abs(t - e) < r, ce = (t, e) => I(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), At = (t) => {
22
22
  const e = 10 ** Math.floor(Math.log10(t));
23
23
  return Math.round(t / e) * e;
24
- }, De = (t, e) => T(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), Lt = (t, e) => T(t) ? t.valueOf() > BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() > Number(e.valueOf()) ? t : Number(e.valueOf()), Ve = (t) => T(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, _t = (t, e) => T(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), Pt = (t, e) => T(t) ? t.valueOf() / BigInt(e.valueOf()) : t.valueOf() / Number(e.valueOf()), Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
+ }, qe = (t, e) => I(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), Rt = (t, e) => I(t) ? t.valueOf() > BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() > Number(e.valueOf()) ? t : Number(e.valueOf()), Ve = (t) => I(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, Lt = (t, e) => I(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), _t = (t, e) => I(t) ? t.valueOf() / BigInt(e.valueOf()) : t.valueOf() / Number(e.valueOf()), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
25
  __proto__: null,
26
26
  abs: Ve,
27
- add: Xe,
28
- closeTo: At,
29
- div: Pt,
30
- equal: pe,
31
- max: Lt,
32
- min: De,
33
- mult: _t,
34
- roundToNearestMagnitude: Rt,
27
+ add: De,
28
+ closeTo: Ct,
29
+ div: _t,
30
+ equal: ce,
31
+ max: Rt,
32
+ min: qe,
33
+ mult: Lt,
34
+ roundToNearestMagnitude: At,
35
35
  sub: Z
36
36
  }, Symbol.toStringTag, { value: "Module" })), p = (t, e) => {
37
37
  const r = {};
@@ -40,14 +40,14 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
40
40
  else if (Array.isArray(t)) {
41
41
  if (t.length !== 2) throw new Error("bounds: expected array of length 2");
42
42
  [r.lower, r.upper] = t;
43
- } else return he(t);
44
- return he(r);
45
- }, Zt = Object.freeze({ lower: 0, upper: 0 }), Ht = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), Yt = Object.freeze({ lower: 0, upper: 1 }), kt = Object.freeze({ lower: -1, upper: 1 }), Ft = (t, e) => {
43
+ } else return pe(t);
44
+ return pe(r);
45
+ }, Pt = Object.freeze({ lower: 0, upper: 0 }), Zt = Object.freeze({ lower: -1 / 0, upper: 1 / 0 }), Ht = Object.freeze({ lower: 0, upper: 1 }), kt = Object.freeze({ lower: -1, upper: 1 }), Yt = (t, e) => {
46
46
  if (t == null && e == null) return !0;
47
47
  if (t == null || e == null) return !1;
48
48
  const r = p(t), n = p(e);
49
49
  return (r == null ? void 0 : r.lower) === (n == null ? void 0 : n.lower) && (r == null ? void 0 : r.upper) === (n == null ? void 0 : n.upper);
50
- }, he = (t) => t.lower > t.upper ? { lower: t.upper, upper: t.lower } : t, Wt = (t, e) => {
50
+ }, pe = (t) => t.lower > t.upper ? { lower: t.upper, upper: t.lower } : t, Ft = (t, e) => {
51
51
  const r = p(t);
52
52
  return e < r.lower ? r.lower : e >= r.upper ? r.upper - (typeof r.upper == "number" ? 1 : 1n) : e;
53
53
  }, S = (t, e) => {
@@ -56,49 +56,49 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
56
56
  return e >= r.lower && e < r.upper;
57
57
  const n = p(e);
58
58
  return n.lower >= r.lower && n.upper <= r.upper;
59
- }, Xt = (t, e) => {
59
+ }, Wt = (t, e) => {
60
60
  const r = p(t), n = p(e);
61
61
  return r.lower === n.lower ? !0 : n.upper === r.lower || n.lower === r.upper ? !1 : S(r, n.upper) || S(r, n.lower) || S(n, r.upper) || S(n, r.lower);
62
- }, oe = (t) => {
62
+ }, re = (t) => {
63
63
  const e = p(t);
64
64
  return e.upper - e.lower;
65
- }, Dt = (t) => {
65
+ }, Xt = (t) => {
66
66
  const e = p(t);
67
67
  return typeof e.lower == "bigint" ? e.lower === 0n && e.upper === 0n : e.lower === 0 && e.upper === 0;
68
- }, Vt = (t) => {
69
- const e = oe(t);
68
+ }, Dt = (t) => {
69
+ const e = re(t);
70
70
  return typeof e == "number" ? e === 0 : e === 0n;
71
71
  }, qt = (t) => {
72
72
  const e = p(t);
73
73
  return typeof e.lower == "bigint" ? !0 : Number.isFinite(e.lower) && Number.isFinite(e.upper);
74
- }, Ut = (t) => {
74
+ }, Vt = (t) => {
75
75
  const e = p(t);
76
76
  return (e.upper + e.lower) / 2;
77
- }, Gt = (t) => ({
77
+ }, Ut = (t) => ({
78
78
  lower: Math.min(...t.map((e) => p(e).lower)),
79
79
  upper: Math.max(...t.map((e) => p(e).upper))
80
- }), Kt = (t) => ({
80
+ }), Gt = (t) => ({
81
81
  lower: Math.max(...t.map((e) => p(e).lower)),
82
82
  upper: Math.min(...t.map((e) => p(e).upper))
83
- }), Jt = (t) => {
83
+ }), Kt = (t) => {
84
84
  const e = p(t), r = typeof e.lower == "bigint";
85
- return Array.from({ length: Number(oe(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
86
- }, ye = (t, e) => {
85
+ return Array.from({ length: Number(re(t)) }, (n, o) => r ? e.lower + BigInt(o) : e.lower + o);
86
+ }, he = (t, e) => {
87
87
  const r = t.map((s) => p(s)), n = r.findIndex((s) => S(s, e) || e < s.lower);
88
88
  if (n === -1) return { index: t.length, position: 0 };
89
89
  const o = r[n];
90
90
  return S(o, e) ? { index: n, position: Number(e - o.lower) } : { index: n, position: 0 };
91
- }, ae = {
91
+ }, ie = {
92
92
  removeBefore: 0,
93
93
  removeAfter: 0,
94
94
  insertInto: 0,
95
95
  deleteInBetween: 0
96
- }, Qt = (t, e) => {
96
+ }, Jt = (t, e) => {
97
97
  const r = t.map((c) => p(c)), n = p(e);
98
- if (r.length === 0) return ae;
99
- const o = ye(r, n.lower), s = ye(r, n.upper);
100
- if (o.index === t.length) return { ...ae, insertInto: t.length };
101
- if (s.index === 0) return { ...ae, removeAfter: s.position };
98
+ if (r.length === 0) return ie;
99
+ const o = he(r, n.lower), s = he(r, n.upper);
100
+ if (o.index === t.length) return { ...ie, insertInto: t.length };
101
+ if (s.index === 0) return { ...ie, removeAfter: s.position };
102
102
  if (o.index === s.index)
103
103
  return o.position !== 0 && s.position !== 0 ? null : {
104
104
  removeAfter: s.position,
@@ -106,28 +106,28 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
106
106
  insertInto: o.index,
107
107
  deleteInBetween: 0
108
108
  };
109
- let u = s.index - o.index, a = o.index, l = Z(Number(oe(r[o.index])), o.position);
109
+ let u = s.index - o.index, a = o.index, l = Z(Number(re(r[o.index])), o.position);
110
110
  return o.position !== 0 ? (u -= 1, a += 1) : l = 0, {
111
111
  removeBefore: l,
112
112
  removeAfter: s.position,
113
113
  insertInto: a,
114
114
  deleteInBetween: u
115
115
  };
116
- }, er = (t, e, r) => {
116
+ }, Qt = (t, e, r) => {
117
117
  const n = t.map((a) => p(a)), o = r > 0 ? 1 : r < 0 ? -1 : 0;
118
118
  if (o === 0) return e;
119
119
  let s = r, u = e;
120
- for (; pe(s, 0) === !1; ) {
120
+ for (; ce(s, 0) === !1; ) {
121
121
  const a = n.findIndex((l) => o > 0 ? u >= l.lower && u < l.upper : u > l.lower && u <= l.upper);
122
122
  if (a !== -1) {
123
123
  const l = n[a];
124
124
  let c;
125
125
  if (o > 0 ? c = Z(l.upper, u) : c = Z(u, l.lower), c > 0) {
126
- const h = De(Ve(s), c);
127
- if (u = Xe(
126
+ const h = qe(Ve(s), c);
127
+ if (u = De(
128
128
  u,
129
129
  o > 0 ? h : -h
130
- ), s = Z(s, o > 0 ? h : -h), pe(s, 0)) return u;
130
+ ), s = Z(s, o > 0 ? h : -h), ce(s, 0)) return u;
131
131
  continue;
132
132
  }
133
133
  }
@@ -143,7 +143,7 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
143
143
  }
144
144
  }
145
145
  return u;
146
- }, tr = (t, e, r) => {
146
+ }, er = (t, e, r) => {
147
147
  const n = t.map((u) => p(u));
148
148
  if (e === r) return typeof e == "bigint" ? 0n : 0;
149
149
  const o = e < r ? p([e, r]) : p([r, e]);
@@ -156,220 +156,216 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
156
156
  }
157
157
  }
158
158
  return s;
159
- }, Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
159
+ }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160
160
  __proto__: null,
161
161
  CLIP: kt,
162
- DECIMAL: Yt,
163
- INFINITE: Ht,
164
- ZERO: Zt,
165
- bounds: We,
166
- buildInsertionPlan: Qt,
167
- clamp: Wt,
162
+ DECIMAL: Ht,
163
+ INFINITE: Zt,
164
+ ZERO: Pt,
165
+ bounds: Xe,
166
+ buildInsertionPlan: Jt,
167
+ clamp: Ft,
168
168
  construct: p,
169
169
  contains: S,
170
- distance: tr,
171
- equals: Ft,
172
- findInsertPosition: ye,
170
+ distance: er,
171
+ equals: Yt,
172
+ findInsertPosition: he,
173
173
  isFinite: qt,
174
- isZero: Dt,
175
- linspace: Jt,
176
- makeValid: he,
177
- max: Gt,
178
- mean: Ut,
179
- min: Kt,
180
- overlapsWith: Xt,
181
- span: oe,
182
- spanIsZero: Vt,
183
- traverse: er
184
- }, Symbol.toStringTag, { value: "Module" })), qe = zt, I = (t) => Me.includes(t) ? t : ne.includes(t) ? "y" : "x", rr = (t) => I(t) === "x" ? "y" : "x", nr = (t) => I(t) === "x" ? "width" : "height", or = (t) => I(t) === "x" ? "left" : "top", sr = (t) => qe.safeParse(t).success, ir = (t) => I(t) === "x" ? "signedWidth" : "signedHeight", ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
174
+ isZero: Xt,
175
+ linspace: Kt,
176
+ makeValid: pe,
177
+ max: Ut,
178
+ mean: Vt,
179
+ min: Gt,
180
+ overlapsWith: Wt,
181
+ span: re,
182
+ spanIsZero: Dt,
183
+ traverse: Qt
184
+ }, Symbol.toStringTag, { value: "Module" })), Ue = Nt, T = (t) => ve.includes(t) ? t : te.includes(t) ? "y" : "x", tr = (t) => T(t) === "x" ? "y" : "x", rr = (t) => T(t) === "x" ? "width" : "height", nr = (t) => T(t) === "x" ? "left" : "top", or = (t) => Ue.safeParse(t).success, sr = (t) => T(t) === "x" ? "signedWidth" : "signedHeight", ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
185
185
  __proto__: null,
186
- construct: I,
187
- crude: qe,
188
- dimension: nr,
189
- direction: je,
190
- isDirection: sr,
191
- location: or,
192
- signedDimension: ir,
193
- swap: rr
194
- }, Symbol.toStringTag, { value: "Module" })), ar = (t) => {
186
+ construct: T,
187
+ crude: Ue,
188
+ dimension: rr,
189
+ direction: Oe,
190
+ isDirection: or,
191
+ location: nr,
192
+ signedDimension: sr,
193
+ swap: tr
194
+ }, Symbol.toStringTag, { value: "Module" })), ur = (t) => {
195
195
  const e = t.replace(/_[a-z]/g, (r) => r[1].toUpperCase());
196
196
  return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
197
- }, Ue = (t) => {
198
- const e = (r, n = Q) => {
197
+ }, Ee = (t) => {
198
+ const e = (r, n = fe) => {
199
199
  if (typeof r == "string") return t(r);
200
200
  if (Array.isArray(r)) return r.map((u) => e(u, n));
201
- if (!U(r)) return r;
202
- n = Ke(n);
201
+ if (!ue(r)) return r;
202
+ n = pr(n);
203
203
  const o = {}, s = r;
204
204
  return Object.keys(s).forEach((u) => {
205
205
  let a = s[u];
206
206
  const l = t(u);
207
- n.recursive && (U(a) ? de(a, n.keepTypesOnRecursion) || (a = e(a, n)) : n.recursiveInArray && fe(a) && (a = [...a].map((c) => {
207
+ n.recursive && (ue(a) ? He(a, n.keepTypesOnRecursion) || (a = e(a, n)) : n.recursiveInArray && Ze(a) && (a = [...a].map((c) => {
208
208
  let h = c;
209
- return U(c) ? de(h, n.keepTypesOnRecursion) || (h = e(c, n)) : fe(c) && (h = e({ key: c }, n).key), h;
209
+ return ue(c) ? He(h, n.keepTypesOnRecursion) || (h = e(c, n)) : Ze(c) && (h = e({ key: c }, n).key), h;
210
210
  }))), o[l] = a;
211
211
  }), o;
212
212
  };
213
213
  return e;
214
- }, lr = Ue(ar), cr = (t) => (
214
+ }, ar = Ee(ur), lr = (t) => (
215
215
  // Don't convert the first character and don't convert a character that is after a
216
216
  // non-alphanumeric character
217
217
  t.replace(/([a-z0-9])([A-Z])/g, (e, r, n) => `${r}_${n.toLowerCase()}`)
218
- ), pr = Ue(cr), Ge = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), Q = {
218
+ ), cr = Ee(lr), Ge = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), fe = {
219
219
  recursive: !0,
220
220
  recursiveInArray: !0,
221
221
  keepTypesOnRecursion: [Number, String, Uint8Array]
222
- }, Ke = (t = Q) => (t.recursive == null ? t = Q : t.recursiveInArray ?? (t.recursiveInArray = !1), t), fe = (t) => t != null && Array.isArray(t), U = (t) => t != null && typeof t == "object" && !Array.isArray(t), de = (t, e) => (e || []).some((r) => t instanceof r), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
222
+ }, pr = (t = fe) => (t.recursive == null ? t = fe : t.recursiveInArray ?? (t.recursiveInArray = !1), t), Ze = (t) => t != null && Array.isArray(t), ue = (t) => t != null && typeof t == "object" && !Array.isArray(t), He = (t, e) => (e || []).some((r) => t instanceof r), hr = (t) => t.replace(/\s+/g, "-").replace(/([a-z0-9])([A-Z])/g, (e, r, n) => `${r}-${n.toLowerCase()}`).toLowerCase(), fr = Ee(hr), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
223
  __proto__: null,
224
- belongToTypes: de,
225
- camelToSnake: pr,
224
+ camelToSnake: cr,
226
225
  capitalize: Ge,
227
- defaultOptions: Q,
228
- isArrayObject: fe,
229
- isValidObject: U,
230
- snakeToCamel: lr,
231
- validateOptions: Ke
232
- }, Symbol.toStringTag, { value: "Module" })), hr = Te, yr = Ie, fr = ce, dr = {
226
+ snakeToCamel: ar,
227
+ toKebab: fr
228
+ }, Symbol.toStringTag, { value: "Module" })), yr = Me, dr = je, gr = le, br = {
233
229
  top: "bottom",
234
230
  right: "left",
235
231
  bottom: "top",
236
232
  left: "right",
237
233
  center: "center"
238
- }, gr = {
234
+ }, xr = {
239
235
  top: "left",
240
236
  right: "top",
241
237
  bottom: "right",
242
238
  left: "bottom",
243
239
  center: "center"
244
- }, br = Ct, O = (t) => t instanceof String || !Me.includes(t) ? t : t === "x" ? "left" : "top", xr = (t) => dr[O(t)], mr = (t) => gr[O(t)], Y = (t) => {
240
+ }, mr = zt, O = (t) => t instanceof String || !ve.includes(t) ? t : t === "x" ? "left" : "top", wr = (t) => br[O(t)], $r = (t) => xr[O(t)], k = (t) => {
245
241
  const e = O(t);
246
242
  return e === "top" || e === "bottom" ? "y" : "x";
247
- }, wr = i.object({
248
- x: Te.or(ce),
249
- y: Ie.or(ce)
250
- }), Je = i.object({ x: Te, y: Ie }), F = Object.freeze({ x: "left", y: "top" }), Be = Object.freeze({ x: "right", y: "top" }), se = Object.freeze({ x: "left", y: "bottom" }), Ne = Object.freeze({ x: "right", y: "bottom" }), ze = Object.freeze({ x: "center", y: "center" }), Qe = Object.freeze({ x: "center", y: "top" }), et = Object.freeze({ x: "center", y: "bottom" }), tt = Object.freeze({ x: "right", y: "center" }), rt = Object.freeze({ x: "left", y: "center" }), $r = Object.freeze([
251
- rt,
243
+ }, vr = i.object({
244
+ x: Me.or(le),
245
+ y: je.or(le)
246
+ }), Ke = i.object({ x: Me, y: je }), F = Object.freeze({ x: "left", y: "top" }), Se = Object.freeze({ x: "right", y: "top" }), ne = Object.freeze({ x: "left", y: "bottom" }), Be = Object.freeze({ x: "right", y: "bottom" }), Ne = Object.freeze({ x: "center", y: "center" }), Je = Object.freeze({ x: "center", y: "top" }), Qe = Object.freeze({ x: "center", y: "bottom" }), et = Object.freeze({ x: "right", y: "center" }), tt = Object.freeze({ x: "left", y: "center" }), Or = Object.freeze([
252
247
  tt,
253
- Qe,
254
248
  et,
249
+ Je,
250
+ Qe,
255
251
  F,
252
+ Se,
253
+ ne,
256
254
  Be,
257
- se,
258
- Ne,
259
- ze
260
- ]), Ce = (t, e) => t.x === e.x && t.y === e.y, vr = (t, e) => {
255
+ Ne
256
+ ]), ze = (t, e) => t.x === e.x && t.y === e.y, Mr = (t, e) => {
261
257
  if (typeof e == "object") {
262
258
  let r = !0;
263
259
  return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
264
260
  }
265
261
  return t.x === e || t.y === e;
266
- }, nt = (t) => [t.x, t.y], G = (t) => Y(O(t)) === "x", Or = (t) => Y(O(t)) === "y", Mr = (t) => `${t.x}${Ge(t.y)}`, jr = (t, e) => {
262
+ }, rt = (t) => [t.x, t.y], U = (t) => k(O(t)) === "x", jr = (t) => k(O(t)) === "y", Ir = (t) => `${t.x}${Ge(t.y)}`, Tr = (t, e) => {
267
263
  let r, n;
268
- if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = O(t), n = O(e ?? t)), Y(r) === Y(n) && r !== "center" && n !== "center")
264
+ if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = O(t), n = O(e ?? t)), k(r) === k(n) && r !== "center" && n !== "center")
269
265
  throw new Error(
270
266
  `[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
271
267
  );
272
- const o = { ...ze };
273
- return r === "center" ? G(n) ? [o.x, o.y] = [n, r] : [o.x, o.y] = [r, n] : n === "center" ? G(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r] : G(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r], o;
274
- }, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
268
+ const o = { ...Ne };
269
+ return r === "center" ? U(n) ? [o.x, o.y] = [n, r] : [o.x, o.y] = [r, n] : n === "center" ? U(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r] : U(r) ? [o.x, o.y] = [r, n] : [o.x, o.y] = [n, r], o;
270
+ }, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
275
271
  __proto__: null,
276
- BOTTOM_CENTER: et,
277
- BOTTOM_LEFT: se,
278
- BOTTOM_RIGHT: Ne,
279
- CENTER: ze,
280
- CENTER_LOCATIONS: Ee,
281
- LEFT_CENTER: rt,
282
- RIGHT_CENTER: tt,
283
- TOP_CENTER: Qe,
272
+ BOTTOM_CENTER: Qe,
273
+ BOTTOM_LEFT: ne,
274
+ BOTTOM_RIGHT: Be,
275
+ CENTER: Ne,
276
+ CENTER_LOCATIONS: Ie,
277
+ LEFT_CENTER: tt,
278
+ RIGHT_CENTER: et,
279
+ TOP_CENTER: Je,
284
280
  TOP_LEFT: F,
285
- TOP_RIGHT: Be,
286
- XY_LOCATIONS: $r,
287
- X_LOCATIONS: re,
288
- Y_LOCATIONS: ne,
289
- center: fr,
281
+ TOP_RIGHT: Se,
282
+ XY_LOCATIONS: Or,
283
+ X_LOCATIONS: ee,
284
+ Y_LOCATIONS: te,
285
+ center: gr,
290
286
  construct: O,
291
- constructXY: jr,
292
- corner: Je,
293
- crude: br,
294
- direction: Y,
295
- isX: G,
296
- isY: Or,
297
- location: Se,
298
- outer: Et,
299
- rotate90: mr,
300
- swap: xr,
301
- x: hr,
302
- xy: wr,
303
- xyCouple: nt,
304
- xyEquals: Ce,
305
- xyMatches: vr,
306
- xyToString: Mr,
307
- y: yr
308
- }, Symbol.toStringTag, { value: "Module" })), ge = i.union([
287
+ constructXY: Tr,
288
+ corner: Ke,
289
+ crude: mr,
290
+ direction: k,
291
+ isX: U,
292
+ isY: jr,
293
+ location: Te,
294
+ outer: Tt,
295
+ rotate90: $r,
296
+ swap: wr,
297
+ x: yr,
298
+ xy: vr,
299
+ xyCouple: rt,
300
+ xyEquals: ze,
301
+ xyMatches: Mr,
302
+ xyToString: Ir,
303
+ y: dr
304
+ }, Symbol.toStringTag, { value: "Module" })), ye = i.union([
309
305
  i.number(),
310
306
  H,
311
- te,
312
- Oe,
313
- Mt,
314
- ke
315
- ]), f = (t, e) => {
307
+ Q,
308
+ $e,
309
+ Ot,
310
+ Fe
311
+ ]), y = (t, e) => {
316
312
  if (typeof t == "string") {
317
313
  if (e === void 0) throw new Error("The y coordinate must be given.");
318
314
  return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
319
315
  }
320
316
  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 };
321
- }, x = Object.freeze({ x: 0, y: 0 }), st = Object.freeze({ x: 1, y: 1 }), Tr = Object.freeze({ x: 1 / 0, y: 1 / 0 }), Ir = Object.freeze({ x: NaN, y: NaN }), ee = (t, e, r = 0) => {
322
- const n = f(t), o = f(e);
317
+ }, x = Object.freeze({ x: 0, y: 0 }), ot = Object.freeze({ x: 1, y: 1 }), Er = Object.freeze({ x: 1 / 0, y: 1 / 0 }), Sr = Object.freeze({ x: NaN, y: NaN }), J = (t, e, r = 0) => {
318
+ const n = y(t), o = y(e);
323
319
  return r === 0 ? n.x === o.x && n.y === o.y : Math.abs(n.x - o.x) <= r && Math.abs(n.y - o.y) <= r;
324
- }, Er = (t) => ee(t, x), Ae = (t, e, r) => {
325
- const n = f(t), o = f(e, r);
320
+ }, Br = (t) => J(t, x), Ce = (t, e, r) => {
321
+ const n = y(t), o = y(e, r);
326
322
  return { x: n.x * o.x, y: n.y * o.y };
327
- }, it = (t, e) => {
328
- const r = f(t);
323
+ }, st = (t, e) => {
324
+ const r = y(t);
329
325
  return { x: r.x + e, y: r.y };
330
- }, ut = (t, e) => {
331
- const r = f(t);
326
+ }, it = (t, e) => {
327
+ const r = y(t);
332
328
  return { x: r.x, y: r.y + e };
333
- }, k = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? it(t, r) : ut(t, r) : [t, e, r ?? x, ...n].reduce((o, s) => {
334
- const u = f(s);
329
+ }, Y = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? st(t, r) : it(t, r) : [t, e, r ?? x, ...n].reduce((o, s) => {
330
+ const u = y(s);
335
331
  return { x: o.x + u.x, y: o.y + u.y };
336
- }, x), Sr = (t, e, r) => {
337
- const n = f(t);
332
+ }, x), Nr = (t, e, r) => {
333
+ const n = y(t);
338
334
  return e === "x" ? { x: r, y: n.y } : { x: n.x, y: r };
339
- }, Br = (t, e) => {
340
- const r = f(t), n = f(e);
335
+ }, zr = (t, e) => {
336
+ const r = y(t), n = y(e);
341
337
  return Math.sqrt((r.x - n.x) ** 2 + (r.y - n.y) ** 2);
342
- }, Nr = (t, e) => {
343
- const r = f(t), n = f(e);
338
+ }, Cr = (t, e) => {
339
+ const r = y(t), n = y(e);
344
340
  return { x: n.x - r.x, y: n.y - r.y };
345
- }, zr = (t) => {
346
- const e = f(t);
341
+ }, Ar = (t) => {
342
+ const e = y(t);
347
343
  return Number.isNaN(e.x) || Number.isNaN(e.y);
348
- }, Cr = (t) => {
349
- const e = f(t);
344
+ }, Rr = (t) => {
345
+ const e = y(t);
350
346
  return Number.isFinite(e.x) && Number.isFinite(e.y);
351
- }, Ar = (t) => {
352
- const e = f(t);
347
+ }, Lr = (t) => {
348
+ const e = y(t);
353
349
  return [e.x, e.y];
354
- }, Rr = (t) => {
355
- const e = f(t);
350
+ }, _r = (t) => {
351
+ const e = y(t);
356
352
  return { left: e.x, top: e.y };
357
- }, be = (t, e = 0) => {
358
- const r = f(t);
353
+ }, de = (t, e = 0) => {
354
+ const r = y(t);
359
355
  return { x: Number(r.x.toFixed(e)), y: Number(r.y.toFixed(e)) };
360
356
  }, L = (t, e) => {
361
- const r = f(t), n = f(e);
357
+ const r = y(t), n = y(e);
362
358
  return { x: r.x - n.x, y: r.y - n.y };
363
359
  }, _ = (t) => {
364
- const e = f(t), r = Math.hypot(e.x, e.y);
360
+ const e = y(t), r = Math.hypot(e.x, e.y);
365
361
  return r === 0 ? { x: 0, y: 0 } : { x: -e.y / r, y: e.x / r };
366
- }, at = (t) => {
367
- const e = f(t), r = Math.hypot(e.x, e.y);
362
+ }, ut = (t) => {
363
+ const e = y(t), r = Math.hypot(e.x, e.y);
368
364
  return r === 0 ? { x: 0, y: 0 } : { x: e.x / r, y: e.y / r };
369
- }, lt = (...t) => {
370
- const e = t.reduce((r, n) => k(r, n), x);
371
- return Ae(e, 1 / t.length);
372
- }, Lr = (t, e) => {
365
+ }, at = (...t) => {
366
+ const e = t.reduce((r, n) => Y(r, n), x);
367
+ return Ce(e, 1 / t.length);
368
+ }, Pr = (t, e) => {
373
369
  const r = [];
374
370
  for (let n = 0; n < t.length; n++) {
375
371
  const o = t[n];
@@ -383,62 +379,62 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
383
379
  } else {
384
380
  const c = t[n - 1], h = t[n + 1], E = L(o, c), R = L(h, o);
385
381
  s = _(E), u = _(R);
386
- const $t = Math.acos(
382
+ const wt = Math.acos(
387
383
  (E.x * R.x + E.y * R.y) / (Math.hypot(E.x, E.y) * Math.hypot(R.x, R.y))
388
- ), Ze = Math.sin($t / 2);
389
- Ze === 0 ? l = e : l = e / Ze, a = at(lt(s, u));
384
+ ), Pe = Math.sin(wt / 2);
385
+ Pe === 0 ? l = e : l = e / Pe, a = ut(at(s, u));
390
386
  }
391
- r.push(Ae(a, l));
387
+ r.push(Ce(a, l));
392
388
  }
393
389
  return r;
394
- }, Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
390
+ }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
395
391
  __proto__: null,
396
- INFINITY: Tr,
397
- NAN: Ir,
398
- ONE: st,
392
+ INFINITY: Er,
393
+ NAN: Sr,
394
+ ONE: ot,
399
395
  ZERO: x,
400
- average: lt,
401
- calculateMiters: Lr,
402
- clientXY: ke,
403
- construct: f,
404
- couple: Ar,
405
- crudeZ: ge,
406
- css: Rr,
407
- distance: Br,
408
- equals: ee,
409
- isFinite: Cr,
410
- isNan: zr,
411
- isZero: Er,
396
+ average: at,
397
+ calculateMiters: Pr,
398
+ clientXY: Fe,
399
+ construct: y,
400
+ couple: Lr,
401
+ crudeZ: ye,
402
+ css: _r,
403
+ distance: zr,
404
+ equals: J,
405
+ isFinite: Rr,
406
+ isNan: Ar,
407
+ isZero: Br,
412
408
  normal: _,
413
- normalize: at,
414
- scale: Ae,
415
- set: Sr,
409
+ normalize: ut,
410
+ scale: Ce,
411
+ set: Nr,
416
412
  sub: L,
417
- translate: k,
418
- translateX: it,
419
- translateY: ut,
420
- translation: Nr,
421
- truncate: be,
413
+ translate: Y,
414
+ translateX: st,
415
+ translateY: it,
416
+ translation: Cr,
417
+ truncate: de,
422
418
  xy: H
423
- }, Symbol.toStringTag, { value: "Module" })), X = i.union([i.number(), i.string()]), _r = i.object({
419
+ }, Symbol.toStringTag, { value: "Module" })), X = i.union([i.number(), i.string()]), Zr = i.object({
424
420
  top: X,
425
421
  left: X,
426
422
  width: X,
427
423
  height: X
428
- }), Pr = i.object({
424
+ }), Hr = i.object({
429
425
  left: i.number(),
430
426
  top: i.number(),
431
427
  right: i.number(),
432
428
  bottom: i.number()
433
- }), Zr = i.object({
429
+ }), kr = i.object({
434
430
  one: H,
435
431
  two: H,
436
- root: Je
437
- }), ct = { one: x, two: x, root: F }, Hr = { one: x, two: st, root: se }, pt = (t, e) => ({
432
+ root: Ke
433
+ }), lt = { one: x, two: x, root: F }, Yr = { one: x, two: ot, root: ne }, ct = (t, e) => ({
438
434
  one: t.one,
439
435
  two: t.two,
440
436
  root: e ?? t.root
441
- }), y = (t, e, r = 0, n = 0, o) => {
437
+ }), f = (t, e, r = 0, n = 0, o) => {
442
438
  const s = {
443
439
  one: { ...x },
444
440
  two: { ...x },
@@ -456,12 +452,12 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
456
452
  x: s.one.x + e.signedWidth,
457
453
  y: s.one.y + e.signedHeight
458
454
  } : s.two = e, s));
459
- }, Yr = (t, e, r) => {
460
- const n = y(t);
455
+ }, Fr = (t, e, r) => {
456
+ const n = f(t);
461
457
  if (typeof e == "string") {
462
458
  if (r == null) throw new Error("Invalid arguments for resize");
463
- const o = I(e);
464
- return y(
459
+ const o = T(e);
460
+ return f(
465
461
  n.one,
466
462
  void 0,
467
463
  o === "x" ? r : M(n),
@@ -469,199 +465,199 @@ const zt = i.union([je, Se]), Ct = i.union([je, Se, i.instanceof(String)]), T =
469
465
  n.root
470
466
  );
471
467
  }
472
- return y(n.one, e, void 0, void 0, n.root);
473
- }, kr = (t, e, r = !0) => {
474
- const n = y(t);
468
+ return f(n.one, e, void 0, void 0, n.root);
469
+ }, Wr = (t, e, r = !0) => {
470
+ const n = f(t);
475
471
  let o = (s, u) => s < u;
476
472
  return r && (o = (s, u) => s <= u), "one" in e ? o($(n), $(e)) && o(B(e), B(n)) && o(v(n), v(e)) && o(N(e), N(n)) : o($(n), e.x) && o(e.x, B(n)) && o(v(n), e.y) && o(e.y, N(n));
477
- }, Fr = (t, e) => ee(t.one, e.one) && ee(t.two, e.two) && Ce(t.root, e.root), ht = (t) => ({
473
+ }, Xr = (t, e) => J(t.one, e.one) && J(t.two, e.two) && ze(t.root, e.root), pt = (t) => ({
478
474
  width: M(t),
479
475
  height: j(t)
480
- }), Wr = (t) => ({
481
- signedWidth: ie(t),
482
- signedHeight: ue(t)
483
- }), Xr = (t) => ({
476
+ }), Dr = (t) => ({
477
+ signedWidth: oe(t),
478
+ signedHeight: se(t)
479
+ }), qr = (t) => ({
484
480
  top: v(t),
485
481
  left: $(t),
486
482
  width: M(t),
487
483
  height: j(t)
488
- }), Re = (t, e, r = !1) => {
489
- const n = I(e) === "y" ? ue(t) : ie(t);
484
+ }), Ae = (t, e, r = !1) => {
485
+ const n = T(e) === "y" ? se(t) : oe(t);
490
486
  return r ? n : Math.abs(n);
491
487
  }, W = (t, e) => {
492
- const r = y(t);
488
+ const r = f(t);
493
489
  return {
494
- x: e.x === "center" ? xe(r).x : z(r, e.x),
495
- y: e.y === "center" ? xe(r).y : z(r, e.y)
490
+ x: e.x === "center" ? ge(r).x : z(r, e.x),
491
+ y: e.y === "center" ? ge(r).y : z(r, e.y)
496
492
  };
497
493
  }, z = (t, e) => {
498
- const r = y(t), n = nt(r.root).includes(e) ? Math.min : Math.max;
499
- return re.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
500
- }, Dr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, M = (t) => Re(t, "x"), j = (t) => Re(t, "y"), ie = (t) => {
501
- const e = y(t);
494
+ const r = f(t), n = rt(r.root).includes(e) ? Math.min : Math.max;
495
+ return ee.includes(e) ? n(r.one.x, r.two.x) : n(r.one.y, r.two.y);
496
+ }, Vr = (t) => t.one.x === t.two.x && t.one.y === t.two.y, M = (t) => Ae(t, "x"), j = (t) => Ae(t, "y"), oe = (t) => {
497
+ const e = f(t);
502
498
  return e.two.x - e.one.x;
503
- }, ue = (t) => {
504
- const e = y(t);
499
+ }, se = (t) => {
500
+ const e = f(t);
505
501
  return e.two.y - e.one.y;
506
- }, yt = (t) => W(t, F), Vr = (t) => W(t, Be), qr = (t) => W(t, se), Ur = (t) => W(t, Ne), B = (t) => z(t, "right"), N = (t) => z(t, "bottom"), $ = (t) => z(t, "left"), v = (t) => z(t, "top"), xe = (t) => k(yt(t), {
507
- x: ie(t) / 2,
508
- y: ue(t) / 2
509
- }), Le = (t) => {
510
- const e = y(t);
502
+ }, ht = (t) => W(t, F), Ur = (t) => W(t, Se), Gr = (t) => W(t, ne), Kr = (t) => W(t, Be), B = (t) => z(t, "right"), N = (t) => z(t, "bottom"), $ = (t) => z(t, "left"), v = (t) => z(t, "top"), ge = (t) => Y(ht(t), {
503
+ x: oe(t) / 2,
504
+ y: se(t) / 2
505
+ }), Re = (t) => {
506
+ const e = f(t);
511
507
  return e.root.x === "left" ? $(e) : B(e);
512
- }, _e = (t) => {
513
- const e = y(t);
508
+ }, Le = (t) => {
509
+ const e = f(t);
514
510
  return e.root.y === "top" ? v(e) : N(e);
515
- }, Gr = (t) => ({ x: Le(t), y: _e(t) }), K = (t) => {
516
- const e = y(t);
511
+ }, Jr = (t) => ({ x: Re(t), y: Le(t) }), G = (t) => {
512
+ const e = f(t);
517
513
  return { lower: e.one.x, upper: e.two.x };
518
- }, J = (t) => {
519
- const e = y(t);
514
+ }, K = (t) => {
515
+ const e = f(t);
520
516
  return { lower: e.one.y, upper: e.two.y };
521
- }, Kr = (t, e) => pt(t, e), Jr = (t, e) => {
522
- const r = y(t), n = re.includes(e) ? "x" : ne.includes(e) ? "y" : null;
523
- if (n === null) throw new Error(`Invalid location: ${ot}`);
517
+ }, Qr = (t, e) => ct(t, e), en = (t, e) => {
518
+ const r = f(t), n = ee.includes(e) ? "x" : te.includes(e) ? "y" : null;
519
+ if (n === null) throw new Error(`Invalid location: ${nt}`);
524
520
  const o = e === "top" || e === "left" ? Math.min : Math.max, s = { ...r.one }, u = { ...r.two };
525
521
  return s[n] = o(r.one[n], r.two[n]), u[n] = o(r.one[n], r.two[n]), [s, u];
526
- }, Qr = (t, e) => {
527
- const r = y(t), n = y(e), o = Le(n) + (M(n) - M(r)) / 2, s = _e(n) + (j(n) - j(r)) / 2;
528
- return y({ x: o, y: s }, ht(r));
529
- }, ft = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, en = (t) => M(t) / j(t), tn = (t, e, r) => {
522
+ }, tn = (t, e) => {
523
+ const r = f(t), n = f(e), o = Re(n) + (M(n) - M(r)) / 2, s = Le(n) + (j(n) - j(r)) / 2;
524
+ return f({ x: o, y: s }, pt(r));
525
+ }, ft = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, rn = (t) => M(t) / j(t), nn = (t, e, r) => {
530
526
  if (typeof e == "string") {
531
527
  if (r == null) throw new Error("Undefined amount passed into box.translate");
532
- const o = I(e);
533
- e = f(o, r);
528
+ const o = T(e);
529
+ e = y(o, r);
534
530
  }
535
- const n = y(t);
536
- return y(
537
- k(n.one, e),
538
- k(n.two, e),
531
+ const n = f(t);
532
+ return f(
533
+ Y(n.one, e),
534
+ Y(n.two, e),
539
535
  void 0,
540
536
  void 0,
541
537
  n.root
542
538
  );
543
- }, rn = (t, e) => {
539
+ }, on = (t, e) => {
544
540
  const r = Math.max($(t), $(e)), n = Math.max(v(t), v(e)), o = Math.min(B(t), B(e)), s = Math.min(N(t), N(e));
545
- return r > o || n > s ? ct : y({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
546
- }, nn = (t) => M(t) * j(t), on = (t, e) => {
547
- const r = y(t);
548
- return y(
549
- be(r.one, e),
550
- be(r.two, e),
541
+ return r > o || n > s ? lt : f({ x: r, y: n }, { x: o, y: s }, void 0, void 0, t.root);
542
+ }, sn = (t) => M(t) * j(t), un = (t, e) => {
543
+ const r = f(t);
544
+ return f(
545
+ de(r.one, e),
546
+ de(r.two, e),
551
547
  void 0,
552
548
  void 0,
553
549
  r.root
554
550
  );
555
- }, sn = (t, e, r, n, o, s) => {
551
+ }, an = (t, e, r, n, o, s) => {
556
552
  const u = { x: t, y: e }, a = { x: t + r, y: e + n };
557
- return o.x !== s.x && (o.x === "center" ? (u.x -= r / 2, a.x -= r / 2) : (u.x -= r, a.x -= r)), o.y !== s.y && (o.y === "center" ? (u.y -= n / 2, a.y -= n / 2) : (u.y -= n, a.y -= n)), y(u, a, void 0, void 0, s);
558
- }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
553
+ return o.x !== s.x && (o.x === "center" ? (u.x -= r / 2, a.x -= r / 2) : (u.x -= r, a.x -= r)), o.y !== s.y && (o.y === "center" ? (u.y -= n / 2, a.y -= n / 2) : (u.y -= n, a.y -= n)), f(u, a, void 0, void 0, s);
554
+ }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
559
555
  __proto__: null,
560
- DECIMAL: Hr,
561
- ZERO: ct,
562
- area: nn,
563
- areaIsZero: Dr,
564
- aspect: en,
556
+ DECIMAL: Yr,
557
+ ZERO: lt,
558
+ area: sn,
559
+ areaIsZero: Vr,
560
+ aspect: rn,
565
561
  bottom: N,
566
- bottomLeft: qr,
567
- bottomRight: Ur,
568
- box: Zr,
569
- center: xe,
570
- construct: y,
571
- constructWithAlternateRoot: sn,
572
- contains: kr,
573
- copy: pt,
574
- css: Xr,
575
- cssBox: _r,
576
- dim: Re,
577
- dims: ht,
578
- domRect: Pr,
579
- edgePoints: Jr,
580
- equals: Fr,
562
+ bottomLeft: Gr,
563
+ bottomRight: Kr,
564
+ box: kr,
565
+ center: ge,
566
+ construct: f,
567
+ constructWithAlternateRoot: an,
568
+ contains: Wr,
569
+ copy: ct,
570
+ css: qr,
571
+ cssBox: Zr,
572
+ dim: Ae,
573
+ dims: pt,
574
+ domRect: Hr,
575
+ edgePoints: en,
576
+ equals: Xr,
581
577
  height: j,
582
- intersection: rn,
578
+ intersection: on,
583
579
  isBox: ft,
584
580
  left: $,
585
581
  loc: z,
586
- positionInCenter: Qr,
587
- reRoot: Kr,
588
- resize: Yr,
582
+ positionInCenter: tn,
583
+ reRoot: Qr,
584
+ resize: Fr,
589
585
  right: B,
590
- root: Gr,
591
- signedDims: Wr,
592
- signedHeight: ue,
593
- signedWidth: ie,
586
+ root: Jr,
587
+ signedDims: Dr,
588
+ signedHeight: se,
589
+ signedWidth: oe,
594
590
  top: v,
595
- topLeft: yt,
596
- topRight: Vr,
597
- translate: tn,
598
- truncate: on,
591
+ topLeft: ht,
592
+ topRight: Ur,
593
+ translate: nn,
594
+ truncate: un,
599
595
  width: M,
600
- x: Le,
601
- xBounds: K,
596
+ x: Re,
597
+ xBounds: G,
602
598
  xyLoc: W,
603
- y: _e,
604
- yBounds: J
605
- }, Symbol.toStringTag, { value: "Module" })), dt = i.object({ signedWidth: i.number(), signedHeight: i.number() }), un = i.union([Oe, dt, H, te]), an = { width: 0, height: 0 }, ln = { width: 1, height: 1 }, g = (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 }, cn = (t, e) => {
599
+ y: Le,
600
+ yBounds: K
601
+ }, Symbol.toStringTag, { value: "Module" })), yt = i.object({ signedWidth: i.number(), signedHeight: i.number() }), ln = i.union([$e, yt, H, Q]), cn = { width: 0, height: 0 }, pn = { width: 1, height: 1 }, g = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, hn = (t, e) => {
606
602
  if (e == null) return !1;
607
603
  const r = g(t), n = g(e);
608
604
  return r.width === n.width && r.height === n.height;
609
- }, pn = (t) => {
605
+ }, fn = (t) => {
610
606
  const e = g(t);
611
607
  return { width: e.height, height: e.width };
612
- }, hn = (t) => {
608
+ }, yn = (t) => {
613
609
  const e = g(t);
614
610
  return `0 0 ${e.width} ${e.height}`;
615
- }, yn = (t) => {
611
+ }, dn = (t) => {
616
612
  const e = g(t);
617
613
  return [e.width, e.height];
618
- }, fn = (t) => ({
614
+ }, gn = (t) => ({
619
615
  width: Math.max(...t.map((e) => g(e).width)),
620
616
  height: Math.max(...t.map((e) => g(e).height))
621
- }), dn = (t) => ({
617
+ }), bn = (t) => ({
622
618
  width: Math.min(...t.map((e) => g(e).width)),
623
619
  height: Math.min(...t.map((e) => g(e).height))
624
- }), gn = (t, e) => {
620
+ }), xn = (t, e) => {
625
621
  const r = g(t);
626
622
  return { width: r.width * e, height: r.height * e };
627
- }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
623
+ }, Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
628
624
  __proto__: null,
629
- DECIMAL: ln,
630
- ZERO: an,
625
+ DECIMAL: pn,
626
+ ZERO: cn,
631
627
  construct: g,
632
- couple: yn,
633
- crude: un,
634
- dimensions: Oe,
635
- equals: cn,
636
- max: fn,
637
- min: dn,
638
- scale: gn,
639
- signed: dt,
640
- svgViewBox: hn,
641
- swap: pn
628
+ couple: dn,
629
+ crude: ln,
630
+ dimensions: $e,
631
+ equals: hn,
632
+ max: gn,
633
+ min: bn,
634
+ scale: xn,
635
+ signed: yt,
636
+ svgViewBox: yn,
637
+ swap: fn
642
638
  }, Symbol.toStringTag, { value: "Module" }));
643
- var bn = Object.defineProperty, xn = (t, e, r) => e in t ? bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e, r) => xn(t, typeof e != "symbol" ? e + "" : e, r);
644
- const mn = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, wn = i.object({ offset: ge, scale: ge }), $n = i.object({ offset: i.number(), scale: i.number() }), vn = (t) => (e, r, n, o) => r === "dimension" ? [e, n] : [
639
+ var mn = Object.defineProperty, wn = (t, e, r) => e in t ? mn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e, r) => wn(t, typeof e != "symbol" ? e + "" : e, r);
640
+ const $n = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r : t, vn = i.object({ offset: ye, scale: ye }), On = i.object({ offset: i.number(), scale: i.number() }), Mn = (t) => (e, r, n, o) => r === "dimension" ? [e, n] : [
645
641
  e,
646
642
  o ? n - t : n + t
647
- ], On = (t) => (e, r, n, o) => [
643
+ ], jn = (t) => (e, r, n, o) => [
648
644
  e,
649
645
  o ? n / t : n * t
650
- ], Mn = (t) => (e, r, n) => {
646
+ ], In = (t) => (e, r, n) => {
651
647
  if (e === null) return [t, n];
652
648
  const { lower: o, upper: s } = e, { lower: u, upper: a } = t, l = s - o, c = a - u;
653
649
  if (r === "dimension") return [t, n * (c / l)];
654
650
  const h = (n - o) * (c / l) + u;
655
651
  return [t, h];
656
- }, jn = (t) => (e, r, n) => [t, n], Tn = () => (t, e, r) => {
652
+ }, Tn = (t) => (e, r, n) => [t, n], En = () => (t, e, r) => {
657
653
  if (t === null) throw new Error("cannot invert without bounds");
658
654
  if (e === "dimension") return [t, r];
659
655
  const { lower: n, upper: o } = t;
660
656
  return [t, o - (r - n)];
661
- }, In = (t) => (e, r, n) => {
657
+ }, Sn = (t) => (e, r, n) => {
662
658
  const { lower: o, upper: s } = t;
663
- return n = mn(n, o, s), [e, n];
664
- }, me = class P {
659
+ return n = $n(n, o, s), [e, n];
660
+ }, be = class P {
665
661
  constructor() {
666
662
  w(this, "ops", []), w(this, "currBounds", null), w(this, "currType", null), w(this, "reversed", !1), this.ops = [];
667
663
  }
@@ -691,7 +687,7 @@ const mn = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
691
687
  * @param value - The amount to translate by.
692
688
  */
693
689
  translate(e) {
694
- const r = this.new(), n = vn(e);
690
+ const r = this.new(), n = Mn(e);
695
691
  return n.type = "translate", r.ops.push(n), r;
696
692
  }
697
693
  /**
@@ -701,23 +697,23 @@ const mn = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
701
697
  * @param value - The amount to magnify by.
702
698
  */
703
699
  magnify(e) {
704
- const r = this.new(), n = On(e);
700
+ const r = this.new(), n = jn(e);
705
701
  return n.type = "magnify", r.ops.push(n), r;
706
702
  }
707
703
  scale(e, r) {
708
- const n = p(e, r), o = this.new(), s = Mn(n);
704
+ const n = p(e, r), o = this.new(), s = In(n);
709
705
  return s.type = "scale", o.ops.push(s), o;
710
706
  }
711
707
  clamp(e, r) {
712
- const n = p(e, r), o = this.new(), s = In(n);
708
+ const n = p(e, r), o = this.new(), s = Sn(n);
713
709
  return s.type = "clamp", o.ops.push(s), o;
714
710
  }
715
711
  reBound(e, r) {
716
- const n = p(e, r), o = this.new(), s = jn(n);
712
+ const n = p(e, r), o = this.new(), s = Tn(n);
717
713
  return s.type = "re-bound", o.ops.push(s), o;
718
714
  }
719
715
  invert() {
720
- const e = Tn();
716
+ const e = En();
721
717
  e.type = "invert";
722
718
  const r = this.new();
723
719
  return r.ops.push(e), r;
@@ -756,10 +752,10 @@ const mn = (t, e, r) => e !== void 0 && t < e ? e : r !== void 0 && t > r ? r :
756
752
  return { scale: this.dim(1), offset: this.pos(0) };
757
753
  }
758
754
  };
759
- w(me, "IDENTITY", new me());
760
- let we = me;
761
- const $e = class m {
762
- constructor(e = new we(), r = new we(), n = null) {
755
+ w(be, "IDENTITY", new be());
756
+ let xe = be;
757
+ const me = class m {
758
+ constructor(e = new xe(), r = new xe(), n = null) {
763
759
  w(this, "x"), w(this, "y"), w(this, "currRoot"), this.x = e, this.y = r, this.currRoot = n;
764
760
  }
765
761
  static translate(e, r) {
@@ -784,7 +780,7 @@ const $e = class m {
784
780
  return new m().reBound(e);
785
781
  }
786
782
  translate(e, r) {
787
- const n = f(e, r), o = this.copy();
783
+ const n = y(e, r), o = this.copy();
788
784
  return o.x = this.x.translate(n.x), o.y = this.y.translate(n.y), o;
789
785
  }
790
786
  translateX(e) {
@@ -803,17 +799,17 @@ const $e = class m {
803
799
  const r = this.copy();
804
800
  if (ft(e)) {
805
801
  const n = this.currRoot;
806
- return r.currRoot = e.root, n != null && !Ce(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(K(e)), r.y = r.y.scale(J(e)), r;
802
+ return r.currRoot = e.root, n != null && !ze(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(G(e)), r.y = r.y.scale(K(e)), r;
807
803
  }
808
804
  return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
809
805
  }
810
806
  reBound(e) {
811
807
  const r = this.copy();
812
- return r.x = this.x.reBound(K(e)), r.y = this.y.reBound(J(e)), r;
808
+ return r.x = this.x.reBound(G(e)), r.y = this.y.reBound(K(e)), r;
813
809
  }
814
810
  clamp(e) {
815
811
  const r = this.copy();
816
- return r.x = this.x.clamp(K(e)), r.y = this.y.clamp(J(e)), r;
812
+ return r.x = this.x.clamp(G(e)), r.y = this.y.clamp(K(e)), r;
817
813
  }
818
814
  copy() {
819
815
  const e = new m();
@@ -830,7 +826,7 @@ const $e = class m {
830
826
  return { x: this.x.dim(e.x), y: this.y.dim(e.y) };
831
827
  }
832
828
  box(e) {
833
- return y(
829
+ return f(
834
830
  this.pos(e.one),
835
831
  this.pos(e.two),
836
832
  0,
@@ -845,32 +841,32 @@ const $e = class m {
845
841
  };
846
842
  }
847
843
  };
848
- w($e, "IDENTITY", new $e());
849
- let En = $e;
850
- const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
844
+ w(me, "IDENTITY", new me());
845
+ let Bn = me;
846
+ const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
851
847
  __proto__: null,
852
- Scale: we,
853
- XY: En,
854
- crudeXYTransform: wn,
855
- transform: $n
848
+ Scale: xe,
849
+ XY: Bn,
850
+ crudeXYTransform: vn,
851
+ transform: On
856
852
  }, Symbol.toStringTag, { value: "Module" }));
857
- function gt(t) {
853
+ function dt(t) {
858
854
  var e, r, n = "";
859
855
  if (typeof t == "string" || typeof t == "number") n += t;
860
856
  else if (typeof t == "object") if (Array.isArray(t)) {
861
857
  var o = t.length;
862
- for (e = 0; e < o; e++) t[e] && (r = gt(t[e])) && (n && (n += " "), n += r);
858
+ for (e = 0; e < o; e++) t[e] && (r = dt(t[e])) && (n && (n += " "), n += r);
863
859
  } else for (r in t) t[r] && (n && (n += " "), n += r);
864
860
  return n;
865
861
  }
866
- function Sn() {
867
- for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (e = gt(t)) && (n && (n += " "), n += e);
862
+ function Nn() {
863
+ for (var t, e, r = 0, n = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (e = dt(t)) && (n && (n += " "), n += e);
868
864
  return n;
869
865
  }
870
- const Bn = Sn, He = "-", Ye = "__", D = "--", bt = (t) => {
871
- const e = (...r) => Bn(...r);
872
- return e.B = (r) => t + He + r, e.E = (r) => t + Ye + r, e.M = (r) => t + D + r, e.BM = (r, n) => e.B(r) + D + n, e.BE = (r, n) => e.B(r) + Ye + n, e.BEM = (r, n, o) => e.BE(r, n) + D + o, e.extend = (r) => bt(e.B(r)), e.var = (r) => D + t + He + r, e;
873
- }, Nn = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, ve = i.string().regex(Nn), A = i.number().min(0).max(255), zn = i.number().min(0).max(1), Pe = i.tuple([A, A, A, zn]), xt = i.tuple([A, A, A]), mt = i.object({ rgba255: Pe }), Kn = (t) => t == null ? void 0 : new d(t).hex, Jn = (t) => {
866
+ const zn = Nn, ke = "-", Ye = "__", D = "--", gt = (t) => {
867
+ const e = (...r) => zn(...r);
868
+ return e.B = (r) => t + ke + r, e.E = (r) => t + Ye + r, e.M = (r) => t + D + r, e.BM = (r, n) => e.B(r) + D + n, e.BE = (r, n) => e.B(r) + Ye + n, e.BEM = (r, n, o) => e.BE(r, n) + D + o, e.extend = (r) => gt(e.B(r)), e.var = (r) => D + t + ke + r, e;
869
+ }, Cn = /^#?([0-9a-f]{6}|[0-9a-f]{8})$/i, we = i.string().regex(Cn), A = i.number().min(0).max(255), An = i.number().min(0).max(1), _e = i.tuple([A, A, A, An]), bt = i.tuple([A, A, A]), xt = i.object({ rgba255: _e }), Qn = (t) => t == null ? void 0 : new d(t).hex, eo = (t) => {
874
870
  if (t == null) return;
875
871
  const e = d.z.safeParse(t);
876
872
  if (e.success) return e.data.rgbaCSS;
@@ -920,7 +916,7 @@ const Bn = Sn, He = "-", Ye = "__", D = "--", bt = (t) => {
920
916
  */
921
917
  get hex() {
922
918
  const [e, r, n, o] = this.rgba255;
923
- return `#${V(e)}${V(r)}${V(n)}${o === 1 ? "" : V(o * 255)}`;
919
+ return `#${q(e)}${q(r)}${q(n)}${o === 1 ? "" : q(o * 255)}`;
924
920
  }
925
921
  /**
926
922
  * @returns the color as a CSS RGBA string.
@@ -971,10 +967,10 @@ const Bn = Sn, He = "-", Ye = "__", D = "--", bt = (t) => {
971
967
  }
972
968
  /** @returns true if all RGBA values are 0. */
973
969
  get isZero() {
974
- return this.equals(wt);
970
+ return this.equals(mt);
975
971
  }
976
972
  get hsla() {
977
- return An(this.rgba255);
973
+ return Ln(this.rgba255);
978
974
  }
979
975
  /**
980
976
  * Creates a new color with the given alpha.
@@ -998,6 +994,13 @@ const Bn = Sn, He = "-", Ye = "__", D = "--", bt = (t) => {
998
994
  );
999
995
  return Number((0.2126 * e + 0.7152 * r + 0.0722 * n).toFixed(3));
1000
996
  }
997
+ /**
998
+ * @returns the grayness of the color, between 0 and 1.
999
+ */
1000
+ get grayness() {
1001
+ const [e, r, n] = this.rgb1;
1002
+ return 1 - (Math.max(e, r, n) - Math.min(e, r, n));
1003
+ }
1001
1004
  /**
1002
1005
  * @returns the contrast ratio between this color and the given color. The contrast
1003
1006
  * ratio is a number between 1 and 21, where 1 is the lowest contrast and 21 is the
@@ -1022,18 +1025,18 @@ const Bn = Sn, He = "-", Ye = "__", D = "--", bt = (t) => {
1022
1025
  return !this.isDark;
1023
1026
  }
1024
1027
  static fromHex(e, r = 1) {
1025
- if (!ve.safeParse(e).success) throw new Error(`Invalid hex color: ${e}`);
1026
- return e = Cn(e), [
1027
- q(e, 0),
1028
- q(e, 2),
1029
- q(e, 4),
1030
- e.length === 8 ? q(e, 6) / 255 : r
1028
+ if (!we.safeParse(e).success) throw new Error(`Invalid hex color: ${e}`);
1029
+ return e = Rn(e), [
1030
+ V(e, 0),
1031
+ V(e, 2),
1032
+ V(e, 4),
1033
+ e.length === 8 ? V(e, 6) / 255 : r
1031
1034
  ];
1032
1035
  }
1033
1036
  };
1034
- C(b, "z", i.union([ve, Pe, xt, i.instanceof(b), mt]).transform((e) => new b(e)));
1037
+ C(b, "z", i.union([we, _e, bt, i.instanceof(b), xt]).transform((e) => new b(e)));
1035
1038
  let d = b;
1036
- const wt = new d([0, 0, 0, 0]), V = (t) => Math.floor(t).toString(16).padStart(2, "0"), q = (t, e) => parseInt(t.slice(e, e + 2), 16), Cn = (t) => t.startsWith("#") ? t.slice(1) : t, Qn = (t) => {
1039
+ const mt = new d([0, 0, 0, 0]), q = (t) => Math.floor(t).toString(16).padStart(2, "0"), V = (t, e) => parseInt(t.slice(e, e + 2), 16), Rn = (t) => t.startsWith("#") ? t.slice(1) : t, to = (t) => {
1037
1040
  let [e, r, n] = t;
1038
1041
  const o = t[3];
1039
1042
  e /= 360, r /= 100, n /= 100;
@@ -1042,10 +1045,10 @@ const wt = new d([0, 0, 0, 0]), V = (t) => Math.floor(t).toString(16).padStart(2
1042
1045
  s = u = a = n;
1043
1046
  else {
1044
1047
  const l = n < 0.5 ? n * (1 + r) : n + r - n * r, c = 2 * n - l;
1045
- s = le(c, l, e + 1 / 3), u = le(c, l, e), a = le(c, l, e - 1 / 3);
1048
+ s = ae(c, l, e + 1 / 3), u = ae(c, l, e), a = ae(c, l, e - 1 / 3);
1046
1049
  }
1047
1050
  return [Math.round(s * 255), Math.round(u * 255), Math.round(a * 255), o];
1048
- }, le = (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), An = (t) => {
1051
+ }, ae = (t, e, r) => (r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (e - t) * 6 * r : r < 1 / 2 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t), Ln = (t) => {
1049
1052
  let [e, r, n] = t;
1050
1053
  const o = t[3];
1051
1054
  e /= 255, r /= 255, n /= 255, e /= 255, r /= 255, n /= 255;
@@ -1058,20 +1061,20 @@ const wt = new d([0, 0, 0, 0]), V = (t) => Math.floor(t).toString(16).padStart(2
1058
1061
  l = c > 0.5 ? h / (2 - s - u) : h / (s + u), s === e ? a = (r - n) / h + (r < n ? 6 : 0) : s === r ? a = (n - e) / h + 2 : a = (e - r) / h + 4, a /= 6;
1059
1062
  }
1060
1063
  return a *= 360, l *= 100, c *= 100, [Math.round(a), Math.round(l), Math.round(c), o];
1061
- }, Rn = i.union([
1062
- ve,
1063
- Pe,
1064
+ }, _n = i.union([
1065
+ we,
1066
+ _e,
1064
1067
  i.instanceof(d),
1065
1068
  i.string(),
1066
- xt,
1067
- mt
1068
- ]), Ln = i.object({
1069
+ bt,
1070
+ xt
1071
+ ]), Pn = i.object({
1069
1072
  key: i.string(),
1070
- color: Rn,
1073
+ color: _n,
1071
1074
  position: i.number(),
1072
1075
  switched: i.boolean().optional()
1073
- }), eo = i.array(Ln), to = (t, e) => {
1074
- if (t.length === 0) return wt;
1076
+ }), ro = i.array(Pn), no = (t, e) => {
1077
+ if (t.length === 0) return mt;
1075
1078
  if (t = t.slice().sort((r, n) => r.position - n.position), e <= t[0].position) return new d(t[0].color);
1076
1079
  if (e >= t[t.length - 1].position)
1077
1080
  return new d(t[t.length - 1].color);
@@ -1085,16 +1088,16 @@ const wt = new d([0, 0, 0, 0]), V = (t) => Math.floor(t).toString(16).padStart(2
1085
1088
  }
1086
1089
  }
1087
1090
  return new d(t[t.length - 1].color);
1088
- }, _n = i.object({
1091
+ }, Zn = i.object({
1089
1092
  key: i.string(),
1090
1093
  name: i.string(),
1091
1094
  color: d.z
1092
- }), ro = i.object({
1095
+ }), oo = i.object({
1093
1096
  key: i.string(),
1094
1097
  name: i.string(),
1095
- swatches: i.array(_n)
1098
+ swatches: i.array(Zn)
1096
1099
  });
1097
- class Pn {
1100
+ class Hn {
1098
1101
  constructor(e = "") {
1099
1102
  C(this, "rows", []);
1100
1103
  C(this, "columns", []);
@@ -1123,63 +1126,63 @@ class Pn {
1123
1126
  };
1124
1127
  }
1125
1128
  }
1126
- const Zn = (t, e) => Object.entries(e).forEach(
1129
+ const kn = (t, e) => Object.entries(e).forEach(
1127
1130
  ([r, n]) => n != null && t.style.setProperty(r, `${n}`)
1128
- ), Hn = (t, e) => Array.from(t.style).forEach((r) => {
1131
+ ), Yn = (t, e) => Array.from(t.style).forEach((r) => {
1129
1132
  r.startsWith(e) && t.style.removeProperty(r);
1130
- }), Yn = (t) => {
1131
- const e = bt(t);
1132
- return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(ot.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(ur.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M(`bordered-${r}`) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("alt-color"), e.editable = (r) => r && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (r) => r && e.M("no-wrap"), e.applyVars = Zn, e.removeVars = Hn, e.newGridBuilder = (r) => new Pn(r), e.dropRegion = (r) => r && e.B("haul-drop-region"), e.px = (r) => `${r}px`, e.inheritDims = (r = !0) => r && e.M("inherit-dims"), e.shade = (r) => e.M(`shade-${r}`), e.shadeVar = (r) => {
1133
+ }), Fn = (t) => {
1134
+ const e = gt(t);
1135
+ return e.visible = (r) => e.M(r ? "visible" : "hidden"), e.expanded = (r) => e.M(r ? "expanded" : "collapsed"), e.loc = (r) => e.M(nt.construct(r)), e.disabled = (r) => r === !0 && e.M("disabled"), e.align = (r) => e.M(r), e.dir = (r) => r != null && e.M(ir.construct(r)), e.size = (r) => typeof r == "string" && e.M(r), e.sharp = (r) => r !== !1 && e.M("sharp"), e.rounded = (r) => r !== !1 && e.M("rounded"), e.bordered = (r) => typeof r == "boolean" ? r && e.M("bordered") : r != null ? e.M(`bordered-${r}`) : e.M("bordered"), e.selected = (r) => r && e.M("selected"), e.altColor = (r) => r && e.M("alt-color"), e.editable = (r) => r && e.M("editable"), e.noSelect = e.M("no-select"), e.noWrap = (r) => r && e.M("no-wrap"), e.applyVars = kn, e.removeVars = Yn, e.newGridBuilder = (r) => new Hn(r), e.dropRegion = (r) => r && e.B("haul-drop-region"), e.px = (r) => `${r}px`, e.inheritDims = (r = !0) => r && e.M("inherit-dims"), e.shade = (r) => e.M(`shade-${r}`), e.shadeVar = (r) => {
1133
1136
  if (r != null)
1134
1137
  return `var(--${t}-gray-l${r})`;
1135
1138
  }, e.levelSizeVar = (r) => `var(--${t}-${r}-size)`, e;
1136
- }, no = Yn("pluto");
1139
+ }, so = Fn("pluto");
1137
1140
  export {
1138
- $r as $,
1139
- j as A,
1140
- Ce as B,
1141
- no as C,
1142
- vr as D,
1143
- qn as E,
1144
- M as F,
1145
- Vn as G,
1146
- Xn as H,
1147
- nn as I,
1148
- rn as J,
1149
- ot as K,
1150
- Sn as L,
1151
- _t as M,
1152
- xr as P,
1153
- Wt as T,
1154
- er as U,
1155
- tr as V,
1156
- mn as Y,
1157
- wt as Z,
1158
- Un as _,
1141
+ Or as $,
1142
+ an as A,
1143
+ ze as B,
1144
+ so as C,
1145
+ Mr as D,
1146
+ F as E,
1147
+ j as F,
1148
+ Un as G,
1149
+ qn as H,
1150
+ M as I,
1151
+ sn as J,
1152
+ nt as K,
1153
+ on as L,
1154
+ Gn as M,
1155
+ wr as P,
1156
+ Ft as T,
1157
+ Qt as U,
1158
+ er as V,
1159
+ $n as Y,
1160
+ mt as Z,
1161
+ Kn as _,
1159
1162
  d as a,
1160
- Jn as b,
1161
- Rn as c,
1162
- Qn as d,
1163
- ur as e,
1164
- to as f,
1165
- eo as g,
1166
- pr as h,
1167
- p as i,
1168
- S as j,
1169
- lr as k,
1170
- Gn as l,
1171
- Wn as m,
1172
- bt as n,
1163
+ eo as b,
1164
+ _n as c,
1165
+ to as d,
1166
+ ir as e,
1167
+ no as f,
1168
+ ro as g,
1169
+ ar as h,
1170
+ Lt as i,
1171
+ p as j,
1172
+ cr as k,
1173
+ S as l,
1174
+ Jn as m,
1175
+ gt as n,
1173
1176
  Dn as o,
1174
- ro as p,
1175
- Se as q,
1176
- I as r,
1177
- Ln as s,
1178
- Kn as t,
1179
- y as u,
1180
- W as v,
1181
- wr as w,
1182
- ze as x,
1183
- sn as y,
1184
- F as z
1177
+ oo as p,
1178
+ Nn as q,
1179
+ Vn as r,
1180
+ Pn as s,
1181
+ Qn as t,
1182
+ Te as u,
1183
+ T as v,
1184
+ vr as w,
1185
+ Ne as x,
1186
+ f as y,
1187
+ W as z
1185
1188
  };