@synnaxlabs/pluto 0.33.2 → 0.34.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 (209) hide show
  1. package/dist/{Animated-C7iWxEah.cjs → Animated-Ck87AGOu.cjs} +1 -1
  2. package/dist/{Animated-VpxahF8t.js → Animated-CnvOerW9.js} +2 -2
  3. package/dist/{Item-Dpra-3n6.js → Item--wCat2DH.js} +5 -5
  4. package/dist/{Item-C1_OE8IF.cjs → Item-DuNQFmgk.cjs} +1 -1
  5. package/dist/{Keyboard-BBOcinRN.cjs → Keyboard-DPs95Etp.cjs} +1 -1
  6. package/dist/{Keyboard-CpJQuX-J.js → Keyboard-Dh_Fhwg4.js} +2 -2
  7. package/dist/LinePlot--yLT9nkT.cjs +34 -0
  8. package/dist/{LinePlot-DHy70Cb7.js → LinePlot-6KHKqa-2.js} +717 -704
  9. package/dist/Link-BHtl4aby.cjs +1 -0
  10. package/dist/{Link-Ctlz9WUQ.js → Link-CDG2-g6A.js} +2 -2
  11. package/dist/{List-DF0kzXpr.js → List-BjimX8fM.js} +5 -5
  12. package/dist/List-C8vXIE2j.cjs +1 -0
  13. package/dist/{Pack-BAJwD-n2.js → Pack-D6eMgf33.js} +9 -9
  14. package/dist/{Pack-DBtBeGnj.cjs → Pack-DijAGcm_.cjs} +1 -1
  15. package/dist/{Text-GGA7QNwA.cjs → Text-Cg0q7seY.cjs} +1 -1
  16. package/dist/{Text-D5o4o3OI.js → Text-CzgVM_22.js} +5 -5
  17. package/dist/Toggle-CP9KtybX.cjs +143 -0
  18. package/dist/{Toggle-CTjPdq8o.js → Toggle-Cdu7WaiC.js} +7038 -7049
  19. package/dist/{Video-B3geSdOZ.cjs → Video-BgDjKMJx.cjs} +1 -1
  20. package/dist/{Video-CXccd2Jl.js → Video-DYSz9XOF.js} +1 -1
  21. package/dist/aggregator-C0Ab25_o.cjs +67 -0
  22. package/dist/{aggregator-QFq5XDjf.js → aggregator-DzdAnRwI.js} +546 -552
  23. package/dist/align.cjs +1 -1
  24. package/dist/align.js +1 -1
  25. package/dist/button.cjs +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/color.cjs +1 -1
  28. package/dist/color.js +1 -1
  29. package/dist/{css-DqBChhqm.js → css-B4FcyECk.js} +25 -20
  30. package/dist/css-Dh7n0EGs.cjs +1 -0
  31. package/dist/css.cjs +1 -1
  32. package/dist/css.js +2 -2
  33. package/dist/dropdown.cjs +1 -1
  34. package/dist/dropdown.js +1 -1
  35. package/dist/ether.cjs +1 -1
  36. package/dist/ether.js +5 -5
  37. package/dist/{external-CfOulkkd.js → external-B72rRj4o.js} +5 -5
  38. package/dist/{external-DT1bMgJw.js → external-BOIjtEGO.js} +2 -2
  39. package/dist/{external-CUwDGrme.cjs → external-BbS4QDTb.cjs} +1 -1
  40. package/dist/{external-BPnNv3RZ.cjs → external-CAIE4G3V.cjs} +1 -1
  41. package/dist/{external-ClRKAhnQ.cjs → external-CYsmC4uZ.cjs} +1 -1
  42. package/dist/{external-BZpriFW_.cjs → external-Cc9o20Al.cjs} +1 -1
  43. package/dist/{external-aTGyndBd.cjs → external-CjmMj11F.cjs} +1 -1
  44. package/dist/{external-Bm3VKQxs.js → external-CoQwrjWl.js} +15 -15
  45. package/dist/{external-CK8msIo3.js → external-CsqyDUsJ.js} +4 -4
  46. package/dist/external-CsrLjLOh.cjs +1 -0
  47. package/dist/{external-CKp_fJJC.js → external-D9Q5Xjko.js} +2 -2
  48. package/dist/{external-C2YHV6Dz.cjs → external-DRHWURjA.cjs} +1 -1
  49. package/dist/{external-mRJloDDi.js → external-DcMAC_pY.js} +13 -10
  50. package/dist/{external-X9NMQ2Zh.cjs → external-Dm2-owlq.cjs} +1 -1
  51. package/dist/{external-CKuO-iHz.cjs → external-DsKRFJxV.cjs} +1 -1
  52. package/dist/{external-Ct326ec4.js → external-DvRQ7lJU.js} +2 -2
  53. package/dist/{external-DyAGPLil.js → external-FVIwMFDr.js} +5 -5
  54. package/dist/{external-CI2s6wrc.js → external-Yf8Lv9AU.js} +69 -82
  55. package/dist/{external-Bksh4jhY.cjs → external-eI1p10Vf.cjs} +1 -1
  56. package/dist/{external-Dhg4bEfF.cjs → external-gz4sf3pG.cjs} +1 -1
  57. package/dist/{external-BNMsCMKL.js → external-k3Jbrj0m.js} +5 -5
  58. package/dist/{external-DmLFwKtu.js → external-lgZ2Gmbx.js} +4 -4
  59. package/dist/{external-EHlrAzYc.js → external-mE-a2ecU.js} +1 -1
  60. package/dist/{external-DYc6fMZC.cjs → external-mtlL4Z3a.cjs} +1 -1
  61. package/dist/header.cjs +1 -1
  62. package/dist/header.js +1 -1
  63. package/dist/index.cjs +11 -5
  64. package/dist/index.js +9877 -8656
  65. package/dist/input.cjs +1 -1
  66. package/dist/input.js +1 -1
  67. package/dist/list.cjs +1 -1
  68. package/dist/list.js +1 -1
  69. package/dist/menu.cjs +1 -1
  70. package/dist/menu.js +1 -1
  71. package/dist/src/aether/aether/aether.d.ts.map +1 -1
  72. package/dist/src/aether/main.d.ts.map +1 -1
  73. package/dist/src/align/Space.d.ts.map +1 -1
  74. package/dist/src/button/Button.d.ts.map +1 -1
  75. package/dist/src/caret/Animated.d.ts.map +1 -1
  76. package/dist/src/channel/AliasProvider.d.ts.map +1 -1
  77. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  78. package/dist/src/color/core/color.d.ts.map +1 -1
  79. package/dist/src/divider/Divider.d.ts.map +1 -1
  80. package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
  81. package/dist/src/form/Field.d.ts.map +1 -1
  82. package/dist/src/form/Form.d.ts.map +1 -1
  83. package/dist/src/form/synced.d.ts.map +1 -1
  84. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  85. package/dist/src/haul/Haul.d.ts.map +1 -1
  86. package/dist/src/hooks/useClickOutside.d.ts.map +1 -1
  87. package/dist/src/hooks/useRequiredContext.d.ts.map +1 -1
  88. package/dist/src/icon/Icon.d.ts.map +1 -1
  89. package/dist/src/input/Item.d.ts.map +1 -1
  90. package/dist/src/input/Label.d.ts.map +1 -1
  91. package/dist/src/input/Numeric.d.ts.map +1 -1
  92. package/dist/src/input/Text.d.ts.map +1 -1
  93. package/dist/src/input/types.d.ts.map +1 -1
  94. package/dist/src/label/Select.d.ts.map +1 -1
  95. package/dist/src/list/Item.d.ts.map +1 -1
  96. package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
  97. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  98. package/dist/src/menu/Item.d.ts.map +1 -1
  99. package/dist/src/modal/Modal.d.ts.map +1 -1
  100. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  101. package/dist/src/notation/SelectNotation.d.ts +12 -0
  102. package/dist/src/notation/SelectNotation.d.ts.map +1 -0
  103. package/dist/src/notation/notation.d.ts +33 -0
  104. package/dist/src/notation/notation.d.ts.map +1 -0
  105. package/dist/src/notation/notation.spec.d.ts +2 -0
  106. package/dist/src/notation/notation.spec.d.ts.map +1 -0
  107. package/dist/src/note/Note.d.ts.map +1 -1
  108. package/dist/src/observe/use.d.ts.map +1 -1
  109. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  110. package/dist/src/progress/Progress.d.ts.map +1 -1
  111. package/dist/src/ranger/Select.d.ts.map +1 -1
  112. package/dist/src/select/Alignment.d.ts.map +1 -1
  113. package/dist/src/select/List.d.ts.map +1 -1
  114. package/dist/src/select/Multiple.d.ts.map +1 -1
  115. package/dist/src/select/Single.d.ts.map +1 -1
  116. package/dist/src/status/Circle.d.ts.map +1 -1
  117. package/dist/src/status/Notification.d.ts.map +1 -1
  118. package/dist/src/synnax/Provider.d.ts.map +1 -1
  119. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  120. package/dist/src/tabs/Selector.d.ts.map +1 -1
  121. package/dist/src/tabs/Tabs.d.ts.map +1 -1
  122. package/dist/src/tabs/types.d.ts.map +1 -1
  123. package/dist/src/tag/Tag.d.ts.map +1 -1
  124. package/dist/src/telem/Pipeline.d.ts.map +1 -1
  125. package/dist/src/telem/aether/noop.d.ts.map +1 -1
  126. package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
  127. package/dist/src/telem/aether/telem.d.ts.map +1 -1
  128. package/dist/src/telem/aether/transformers.d.ts +9 -0
  129. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  130. package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
  131. package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
  132. package/dist/src/telem/client/reader.d.ts.map +1 -1
  133. package/dist/src/telem/control/Controller.d.ts.map +1 -1
  134. package/dist/src/telem/control/Legend.d.ts.map +1 -1
  135. package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
  136. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  137. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  138. package/dist/src/text/DateTime.d.ts.map +1 -1
  139. package/dist/src/text/Editable.d.ts.map +1 -1
  140. package/dist/src/text/SelectLevel.d.ts.map +1 -1
  141. package/dist/src/text/dimensions.d.ts.map +1 -1
  142. package/dist/src/tooltip/Dialog.d.ts.map +1 -1
  143. package/dist/src/tree/Tree.d.ts.map +1 -1
  144. package/dist/src/tree/core.d.ts.map +1 -1
  145. package/dist/src/triggers/Provider.d.ts.map +1 -1
  146. package/dist/src/triggers/hooks.d.ts.map +1 -1
  147. package/dist/src/util/zod.d.ts.map +1 -1
  148. package/dist/src/vis/button/aether/button.d.ts.map +1 -1
  149. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  150. package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
  151. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  152. package/dist/src/vis/diagram/aether/types.d.ts +23 -14
  153. package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
  154. package/dist/src/vis/diagram/edge/Edge.d.ts +1 -1
  155. package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
  156. package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
  157. package/dist/src/vis/diagram/util.d.ts +1 -1
  158. package/dist/src/vis/diagram/util.d.ts.map +1 -1
  159. package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
  160. package/dist/src/vis/draw2d/index.d.ts.map +1 -1
  161. package/dist/src/vis/legend/Container.d.ts.map +1 -1
  162. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  163. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  164. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  165. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  166. package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
  167. package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
  168. package/dist/src/vis/lineplot/range/aether/external.d.ts.map +1 -1
  169. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  170. package/dist/src/vis/log/Log.d.ts.map +1 -1
  171. package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
  172. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  173. package/dist/src/vis/render/loop.d.ts.map +1 -1
  174. package/dist/src/vis/render/performance.d.ts.map +1 -1
  175. package/dist/src/vis/render/util.d.ts.map +1 -1
  176. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  177. package/dist/src/vis/schematic/Labeled.d.ts.map +1 -1
  178. package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
  179. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  180. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  181. package/dist/src/vis/schematic/registry.d.ts.map +1 -1
  182. package/dist/src/vis/value/aether/value.d.ts +9 -0
  183. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  184. package/dist/src/vis/value/use.d.ts +4 -1
  185. package/dist/src/vis/value/use.d.ts.map +1 -1
  186. package/dist/src/worker/Context.d.ts.map +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/tabs.cjs +1 -1
  189. package/dist/tabs.js +1 -1
  190. package/dist/text.cjs +1 -1
  191. package/dist/text.js +2 -2
  192. package/dist/theming.cjs +1 -1
  193. package/dist/theming.js +2 -2
  194. package/dist/tree.cjs +1 -1
  195. package/dist/tree.js +1 -1
  196. package/dist/triggers.cjs +1 -1
  197. package/dist/triggers.js +1 -1
  198. package/dist/{units-6W_8ukD-.cjs → units-CR-P9eLW.cjs} +1 -1
  199. package/dist/{units-BHSMvrYX.js → units-rb5QAWjs.js} +1 -1
  200. package/dist/video.cjs +1 -1
  201. package/dist/video.js +1 -1
  202. package/package.json +18 -18
  203. package/dist/LinePlot-Bwz2fEc0.cjs +0 -34
  204. package/dist/Link-Cxj-3A6p.cjs +0 -1
  205. package/dist/List-CcTL6wlO.cjs +0 -1
  206. package/dist/Toggle-Dim0E2D2.cjs +0 -143
  207. package/dist/aggregator-D6Mmsfj4.cjs +0 -67
  208. package/dist/css-CvXvQo39.cjs +0 -1
  209. package/dist/external-e143l3cy.cjs +0 -1
@@ -1,11 +1,11 @@
1
- var ii = Object.defineProperty;
2
- var oi = (n, e, t) => e in n ? ii(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var c = (n, e, t) => oi(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { Z as li, q as He, v as wt, _ as ps, o as F, B as ft, E as ut, y as $, x as ci, z as nt, D as ui, G as Pr, V as gs, H as hi, I as it, J as Rr, K as Mr, M as pt, N as $s, O as ms, Q as di, F as We, T as Gn, U as Or, W as fi, i as Xe, u as xt, c as re, X as pi, Y as Z, A as gi, $ as Dr, a0 as mi, a1 as ys, n as yi, a2 as Yr, a3 as ws, a4 as xs, a5 as Ar, w as wi, a6 as bs, k as Lr, a7 as Bn, a8 as xi } from "./aggregator-QFq5XDjf.js";
1
+ var oi = Object.defineProperty;
2
+ var li = (n, e, t) => e in n ? oi(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var c = (n, e, t) => li(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Z as ci, q as He, v as wt, _ as ps, o as F, B as ft, E as ut, y as $, x as ui, z as nt, D as hi, G as Pr, V as gs, H as di, I as it, J as Rr, K as Mr, M as pt, N as $s, O as ms, Q as fi, F as We, T as Gn, U as Or, W as pi, i as Xe, u as xt, c as re, X as gi, Y as Z, A as mi, $ as Dr, a0 as yi, a1 as ys, n as wi, a2 as Yr, a3 as ws, a4 as xs, a5 as Ar, w as xi, a6 as bs, k as Lr, a7 as In, a8 as bi } from "./aggregator-DzdAnRwI.js";
5
5
  import { z as d } from "zod";
6
- import { Z as V, G as R, W as bi, J as Tt, E as f, q as g, g as at, a as Y, _ as Ge, j as B, C as vi, l as _r } from "./css-DqBChhqm.js";
7
- var Ti = Object.defineProperty, Si = (n, e, t) => e in n ? Ti(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ze = (n, e, t) => Si(n, typeof e != "symbol" ? e + "" : e, t);
8
- class Ei {
6
+ import { Z as V, G as R, W as vi, J as Tt, E as f, q as g, g as at, a as Y, _ as Ge, l as I, C as Ti, m as _r } from "./css-B4FcyECk.js";
7
+ var Si = Object.defineProperty, Ei = (n, e, t) => e in n ? Si(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ze = (n, e, t) => Ei(n, typeof e != "symbol" ? e + "" : e, t);
8
+ class Ci {
9
9
  constructor(e, t) {
10
10
  ze(this, "handlers"), ze(this, "transform"), ze(this, "closer"), this.transform = e, this.handlers = t ?? /* @__PURE__ */ new Map();
11
11
  }
@@ -31,7 +31,7 @@ class Ei {
31
31
  return await ((e = this.closer) == null ? void 0 : e.call(this));
32
32
  }
33
33
  }
34
- class Ci {
34
+ class ki {
35
35
  constructor(e) {
36
36
  ze(this, "handlers"), this.handlers = e ?? /* @__PURE__ */ new Map();
37
37
  }
@@ -44,10 +44,10 @@ class Ci {
44
44
  }
45
45
  const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46
46
  __proto__: null,
47
- BaseObserver: Ci,
48
- Observer: Ei
49
- }, Symbol.toStringTag, { value: "Module" })), ki = d.object({
50
- props: li.nullable(),
47
+ BaseObserver: ki,
48
+ Observer: Ci
49
+ }, Symbol.toStringTag, { value: "Module" })), Pi = d.object({
50
+ props: ci.nullable(),
51
51
  state: He.connectivity.connectionStateZ.nullable()
52
52
  }), Nr = {
53
53
  synnax: null,
@@ -61,24 +61,24 @@ let Vn = (vt = class extends wt {
61
61
  }
62
62
  async afterUpdate() {
63
63
  var t;
64
- if (this.ctx.has(Ts) || In(this.ctx, Nr), this.state.props == null) {
65
- this.internal.synnax != null && (this.setState((s) => ({ ...s, state: He.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null), In(this.ctx, this.internal);
64
+ if (this.ctx.has(Ts) || Bn(this.ctx, Nr), this.state.props == null) {
65
+ this.internal.synnax != null && (this.setState((s) => ({ ...s, state: He.connectivity.DEFAULT })), (t = this.internal.synnax) == null || t.close(), this.internal.synnax = null), Bn(this.ctx, this.internal);
66
66
  return;
67
67
  }
68
68
  this.prevState.props != null && ps.equal(this.state.props, this.prevState.props) && this.internal.synnax != null || (this.internal.synnax = new He(this.state.props), this.internal.synnax.connectivity.onChange(
69
69
  (s) => this.setState((r) => ({ ...r, state: s }))
70
- ), In(this.ctx, this.internal));
70
+ ), Bn(this.ctx, this.internal));
71
71
  }
72
- }, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ", ki), vt);
73
- const Ts = "pluto-client-context", In = (n, e) => n.set(Ts, e), Oe = (n) => n.get(Ts).synnax, Pi = {
72
+ }, c(vt, "TYPE", "SynnaxProvider"), c(vt, "stateZ", Pi), vt);
73
+ const Ts = "pluto-client-context", Bn = (n, e) => n.set(Ts, e), Oe = (n) => n.get(Ts).synnax, Ri = {
74
74
  [Vn.TYPE]: Vn
75
- }, Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75
+ }, Ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
76
  __proto__: null,
77
77
  Provider: Vn,
78
- REGISTRY: Pi,
78
+ REGISTRY: Ri,
79
79
  ZERO_CONTEXT_VALUE: Nr,
80
80
  use: Oe
81
- }, Symbol.toStringTag, { value: "Module" })), Br = "pluto-telem-context", Rn = (n) => n.get(Br), Ir = (n, e) => n.set(Br, e), Ur = (n, e) => Rn(n).registerFactory(e);
81
+ }, Symbol.toStringTag, { value: "Module" })), Ir = "pluto-telem-context", Rn = (n) => n.get(Ir), Br = (n, e) => n.set(Ir, e), Ur = (n, e) => Rn(n).registerFactory(e);
82
82
  class Zs {
83
83
  constructor(e, t, s) {
84
84
  c(this, "spec");
@@ -240,7 +240,7 @@ const qr = {
240
240
  props: {},
241
241
  variant: "source",
242
242
  valueType: "series"
243
- }, Ri = {
243
+ }, Mi = {
244
244
  [Ve.TYPE]: Ve,
245
245
  [Ke.TYPE]: Ke,
246
246
  [Qe.TYPE]: Qe,
@@ -255,25 +255,25 @@ class jr {
255
255
  c(this, "type", "noop");
256
256
  }
257
257
  create(e) {
258
- const t = Ri[e.type];
258
+ const t = Mi[e.type];
259
259
  return t == null ? null : new t();
260
260
  }
261
261
  }
262
- const Mi = d.instanceof(ArrayBuffer), Ye = d.object({
262
+ const Oi = d.instanceof(ArrayBuffer), Ye = d.object({
263
263
  type: d.string(),
264
264
  variant: d.enum(["source", "sink", "source-transformer", "sink-transformer"]),
265
265
  valueType: d.string(),
266
266
  props: d.any(),
267
- transfer: d.array(Mi).optional()
267
+ transfer: d.array(Oi).optional()
268
268
  }), Ct = Ye.extend({ variant: d.literal("source") }), On = Ye.extend({ variant: d.literal("sink") }), Hr = Ye.extend({
269
269
  variant: d.literal("source-transformer")
270
270
  }), Wr = Ye.extend({
271
271
  variant: d.literal("sink-transformer")
272
272
  }), rn = Ct.extend({ valueType: d.literal("series") }), Cs = Ct.extend({
273
273
  valueType: d.literal("boolean")
274
- }), Dn = On.extend({ valueType: d.literal("boolean") }), Oi = Wr.extend({
274
+ }), Dn = On.extend({ valueType: d.literal("boolean") }), Di = Wr.extend({
275
275
  valueType: d.literal("boolean")
276
- }), Di = Hr.extend({
276
+ }), Yi = Hr.extend({
277
277
  valueType: d.literal("boolean")
278
278
  }), Xr = Ct.extend({ valueType: d.literal("number") }), Gr = On.extend({ valueType: d.literal("number") }), Vr = Ct.extend({ valueType: d.literal("color") }), ks = Ct.extend({ valueType: d.literal("status") }), Kr = Ct.extend({ valueType: d.literal("string") });
279
279
  class Yn extends vs.BaseObserver {
@@ -462,7 +462,7 @@ class de extends Q {
462
462
  }
463
463
  }
464
464
  c(de, "TYPE", "source-pipeline");
465
- const Yi = (n, e) => ({
465
+ const Ai = (n, e) => ({
466
466
  variant: "source",
467
467
  props: e,
468
468
  type: de.TYPE,
@@ -507,7 +507,7 @@ class fe extends An {
507
507
  }
508
508
  }
509
509
  c(fe, "TYPE", "sink-pipeline");
510
- const Ai = (n, e) => ({
510
+ const Li = (n, e) => ({
511
511
  variant: "sink",
512
512
  props: e,
513
513
  type: fe.TYPE,
@@ -540,7 +540,7 @@ class pe extends Q {
540
540
  await ((t = this.removeStreamHandler) == null ? void 0 : t.call(this)), this.valid = !1, (s = this.leadingBuffer) == null || s.release(), this.leadingBuffer = null, this.removeStreamHandler = null;
541
541
  }
542
542
  async value() {
543
- return ci(this.props.channel) || (this.channelKey === 0 && (this.channelKey = (await Ps(this.client, this.props.channel, !1)).key), this.valid || await this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
543
+ return ui(this.props.channel) || (this.channelKey === 0 && (this.channelKey = (await Ps(this.client, this.props.channel, !1)).key), this.valid || await this.read(), this.leadingBuffer == null || this.leadingBuffer.length === 0) ? 0 : this.leadingBuffer.at(-1, !0);
544
544
  }
545
545
  async read() {
546
546
  this.valid = !0, await this.updateStreamHandler();
@@ -564,7 +564,7 @@ c(pe, "TYPE", "stream-channel-value");
564
564
  const Ps = async (n, e, t) => {
565
565
  const s = await n.retrieveChannel(e);
566
566
  return !t || s.isIndex ? { key: s.key, dataType: s.dataType, virtual: s.virtual } : { key: s.index, dataType: nt.TIMESTAMP, virtual: !1 };
567
- }, Li = d.object({
567
+ }, _i = d.object({
568
568
  timeRange: ut.z,
569
569
  channel: d.number().or(d.string()),
570
570
  useIndexOfChannel: d.boolean().optional().default(!1)
@@ -575,7 +575,7 @@ class ge extends Q {
575
575
  c(this, "client");
576
576
  c(this, "data", []);
577
577
  c(this, "valid", !1);
578
- c(this, "schema", Li);
578
+ c(this, "schema", _i);
579
579
  this.client = t;
580
580
  }
581
581
  async cleanup() {
@@ -598,7 +598,7 @@ class ge extends Q {
598
598
  }
599
599
  }
600
600
  c(ge, "TYPE", "series-source");
601
- const _i = d.object({
601
+ const Ni = d.object({
602
602
  channel: d.number().or(d.string()),
603
603
  useIndexOfChannel: d.boolean().optional().default(!1),
604
604
  timeSpan: $.z,
@@ -611,7 +611,7 @@ class me extends Q {
611
611
  c(this, "data", []);
612
612
  c(this, "stopStreaming");
613
613
  c(this, "valid", !1);
614
- c(this, "schema", _i);
614
+ c(this, "schema", Ni);
615
615
  this.client = t;
616
616
  }
617
617
  async value() {
@@ -653,7 +653,7 @@ class me extends Q {
653
653
  }
654
654
  }
655
655
  c(me, "TYPE", "dynamic-series-source");
656
- const Ni = {
656
+ const Ii = {
657
657
  [ge.TYPE]: ge,
658
658
  [me.TYPE]: me,
659
659
  [pe.TYPE]: pe
@@ -665,7 +665,7 @@ class aa {
665
665
  this.client = e;
666
666
  }
667
667
  create(e) {
668
- const t = Ni[e.type];
668
+ const t = Ii[e.type];
669
669
  return t == null ? null : new t(this.client, e.props);
670
670
  }
671
671
  }
@@ -674,12 +674,12 @@ const Bi = (n) => ({
674
674
  props: n,
675
675
  variant: "source",
676
676
  valueType: "series"
677
- }), Ii = (n) => ({
677
+ }), Ui = (n) => ({
678
678
  type: me.TYPE,
679
679
  props: n,
680
680
  variant: "source",
681
681
  valueType: "series"
682
- }), Ui = (n) => ({
682
+ }), $i = (n) => ({
683
683
  type: pe.TYPE,
684
684
  props: n,
685
685
  variant: "source",
@@ -705,7 +705,7 @@ class ia {
705
705
  }
706
706
  }
707
707
  const Rs = d.object({
708
- data: d.array(ui),
708
+ data: d.array(hi),
709
709
  offsets: d.array(d.number()).optional().default([])
710
710
  });
711
711
  class an extends Q {
@@ -794,28 +794,37 @@ class xe extends Q {
794
794
  }
795
795
  }
796
796
  c(xe, "TYPE", "static-string");
797
- const $i = (n) => ({
797
+ const Zi = (n) => ({
798
798
  type: an.TYPE,
799
799
  props: n,
800
800
  variant: "source",
801
801
  valueType: "series"
802
- }), Zi = (n) => ({
802
+ }), Fi = (n) => ({
803
803
  type: ye.TYPE,
804
804
  props: n,
805
805
  variant: "source",
806
806
  valueType: "series"
807
- }), Fi = (n) => ({
807
+ }), zi = (n) => ({
808
808
  type: we.TYPE,
809
809
  props: n,
810
810
  variant: "source",
811
811
  valueType: "number"
812
- }), zi = (n) => ({
812
+ }), qi = (n) => ({
813
813
  type: xe.TYPE,
814
814
  props: n,
815
815
  variant: "source",
816
816
  valueType: "string"
817
- });
818
- class ua {
817
+ }), ji = ["standard", "scientific", "engineering"], ua = d.enum(ji), Hi = (n, e, t) => {
818
+ if (Number.isNaN(n)) return "NaN";
819
+ if (n === 1 / 0) return "∞";
820
+ if (n === -1 / 0) return "-∞";
821
+ if (t === "standard") return n.toFixed(e);
822
+ if (n === 0)
823
+ return e === 0 ? "0ᴇ0" : `0.${"0".repeat(e)}ᴇ0`;
824
+ let s;
825
+ return t === "scientific" ? s = Math.floor(Math.log10(Math.abs(n))) : s = Math.floor(Math.log10(Math.abs(n)) / 3) * 3, `${(n / 10 ** s).toFixed(e)}ᴇ${s}`;
826
+ };
827
+ class ha {
819
828
  constructor() {
820
829
  c(this, "type", "transformer");
821
830
  }
@@ -837,10 +846,10 @@ class ua {
837
846
  return null;
838
847
  }
839
848
  }
840
- const qi = d.object({
849
+ const Wi = d.object({
841
850
  truthy: d.number().optional().default(1),
842
851
  falsy: d.number().optional().default(0)
843
- }), ji = (n) => ({
852
+ }), Xi = (n) => ({
844
853
  props: n,
845
854
  type: qt.TYPE,
846
855
  variant: "sink",
@@ -854,9 +863,9 @@ const qi = d.object({
854
863
  return t ? this.props.truthy : this.props.falsy;
855
864
  }
856
865
  };
857
- c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ", qi);
866
+ c(ae, "TYPE", "boolean-numeric-converter-sink"), c(ae, "propsZ", Wi);
858
867
  let qt = ae;
859
- const Hi = d.object({ trueBound: R.bounds }), Wi = (n) => ({
868
+ const Gi = d.object({ trueBound: R.bounds }), Vi = (n) => ({
860
869
  props: n,
861
870
  type: jt.TYPE,
862
871
  variant: "source",
@@ -875,9 +884,9 @@ const Hi = d.object({ trueBound: R.bounds }), Wi = (n) => ({
875
884
  return this.curr = R.contains(this.props.trueBound, t), this.curr;
876
885
  }
877
886
  };
878
- c(ie, "TYPE", "boolean-source"), c(ie, "propsZ", Hi);
887
+ c(ie, "TYPE", "boolean-source"), c(ie, "propsZ", Gi);
879
888
  let jt = ie;
880
- const ha = d.object({}), oe = class oe extends Qr {
889
+ const da = d.object({}), oe = class oe extends Qr {
881
890
  constructor() {
882
891
  super(...arguments);
883
892
  c(this, "schema", oe.propsZ);
@@ -886,15 +895,15 @@ const ha = d.object({}), oe = class oe extends Qr {
886
895
  return Object.values(t).reduce((s, r) => s + r, 0) / Object.keys(t).length;
887
896
  }
888
897
  };
889
- c(oe, "TYPE", "mean"), c(oe, "propsZ", ha);
898
+ c(oe, "TYPE", "mean"), c(oe, "propsZ", da);
890
899
  let Ht = oe;
891
- const Xi = (n) => ({
900
+ const Ki = (n) => ({
892
901
  props: n,
893
902
  type: Ht.TYPE,
894
903
  variant: "source",
895
904
  valueType: "boolean"
896
- }), da = d.object({
897
- trueVariant: hi.optional().default("success")
905
+ }), fa = d.object({
906
+ trueVariant: di.optional().default("success")
898
907
  }), le = class le extends Ae {
899
908
  constructor() {
900
909
  super(...arguments);
@@ -904,40 +913,41 @@ const Xi = (n) => ({
904
913
  return t.variant === this.props.trueVariant;
905
914
  }
906
915
  };
907
- c(le, "TYPE", "boolean-status"), c(le, "propsZ", da);
916
+ c(le, "TYPE", "boolean-status"), c(le, "propsZ", fa);
908
917
  let Wt = le;
909
- const Gi = (n) => ({
918
+ const Qi = (n) => ({
910
919
  props: n,
911
920
  type: Wt.TYPE,
912
921
  variant: "source",
913
922
  valueType: "boolean"
914
- }), fa = d.object({
923
+ }), pa = d.object({
915
924
  precision: d.number().optional().default(2),
916
925
  prefix: d.string().optional().default(""),
917
- suffix: d.string().optional().default("")
926
+ suffix: d.string().optional().default(""),
927
+ notation: ua.optional().default("standard")
918
928
  }), ce = class ce extends Ae {
919
929
  constructor() {
920
930
  super(...arguments);
921
931
  c(this, "schema", ce.propsZ);
922
932
  }
923
933
  transform(t) {
924
- return `${this.props.prefix}${t.toFixed(this.props.precision)}${this.props.suffix}`;
934
+ return `${this.props.prefix}${Hi(t, this.props.precision, this.props.notation)}${this.props.suffix}`;
925
935
  }
926
936
  };
927
- c(ce, "TYPE", "stringify-number"), c(ce, "propsZ", fa);
937
+ c(ce, "TYPE", "stringify-number"), c(ce, "propsZ", pa);
928
938
  let Xt = ce;
929
- const Vi = (n) => ({
939
+ const Ji = (n) => ({
930
940
  props: n,
931
941
  type: Xt.TYPE,
932
942
  variant: "source",
933
943
  valueType: "string"
934
- }), pa = d.object({
944
+ }), ga = d.object({
935
945
  windowSize: d.number().optional().default(5)
936
946
  });
937
947
  class Gt extends Ae {
938
948
  constructor() {
939
949
  super(...arguments);
940
- c(this, "schema", pa);
950
+ c(this, "schema", ga);
941
951
  c(this, "values", []);
942
952
  }
943
953
  transform(t) {
@@ -947,14 +957,14 @@ class Gt extends Ae {
947
957
  return this.props.windowSize < 2 ? !0 : (this.values.length > this.props.windowSize && (this.values = []), this.values.push(t), this.values.length === this.props.windowSize);
948
958
  }
949
959
  }
950
- c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ", ha);
951
- const Ki = (n) => ({
960
+ c(Gt, "TYPE", "rolling-average"), c(Gt, "propsZ", da);
961
+ const to = (n) => ({
952
962
  props: n,
953
963
  type: Gt.TYPE,
954
964
  variant: "source",
955
965
  valueType: "number"
956
966
  });
957
- class ga {
967
+ class ma {
958
968
  constructor(e) {
959
969
  c(this, "factories");
960
970
  c(this, "type", "compound");
@@ -974,10 +984,10 @@ class ga {
974
984
  return null;
975
985
  }
976
986
  }
977
- const ma = (n) => {
978
- const e = [new ua(), new ia(), new jr()], t = new ga(e);
987
+ const ya = (n) => {
988
+ const e = [new ha(), new ia(), new jr()], t = new ma(e);
979
989
  return n != null && t.add(new aa(n)), t.add(new na(t)), t;
980
- }, Qi = d.object({
990
+ }, eo = d.object({
981
991
  include: d.string().array().optional(),
982
992
  exclude: d.string().array().optional(),
983
993
  level: d.enum(it.LOG_LEVELS).optional().default("info")
@@ -986,7 +996,7 @@ var Xn;
986
996
  let zs = (Xn = class extends wt {
987
997
  constructor() {
988
998
  super(...arguments);
989
- c(this, "schema", Qi);
999
+ c(this, "schema", eo);
990
1000
  }
991
1001
  async afterUpdate() {
992
1002
  if (this.ctx.getOptional(Kn) != null) return;
@@ -1001,27 +1011,27 @@ const Le = (n, e) => {
1001
1011
  const t = n.get(Kn);
1002
1012
  if (t == null) throw new Error("No instrumentation provider");
1003
1013
  return e == null ? t : t.child(e);
1004
- }, Qu = {
1014
+ }, eh = {
1005
1015
  [zs.TYPE]: zs
1006
- }, ya = (n, e) => n.dataType.isVariable ? n : (e == null && n.dataType.equals(nt.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert(nt.FLOAT32, e)), wa = () => ({
1016
+ }, wa = (n, e) => n.dataType.isVariable ? n : (e == null && n.dataType.equals(nt.TIMESTAMP) && (e = BigInt(n.data[0])), n.convert(nt.FLOAT32, e)), xa = () => ({
1007
1017
  purgedSeries: 0,
1008
1018
  purgedBytes: Rr.bytes(0)
1009
- }), xa = {
1019
+ }), ba = {
1010
1020
  instrumentation: it.NOOP,
1011
1021
  staleEntryThreshold: $.seconds(20)
1012
1022
  };
1013
- class Ji {
1023
+ class no {
1014
1024
  constructor(e) {
1015
1025
  c(this, "data", []);
1016
1026
  c(this, "props");
1017
- this.props = { ...xa, ...e };
1027
+ this.props = { ...ba, ...e };
1018
1028
  }
1019
1029
  /**
1020
1030
  * Writes the given series to the cache, merging written series with any
1021
1031
  * existing series in the cache.
1022
1032
  */
1023
1033
  write(e) {
1024
- e.length !== 0 && (e.forEach((t) => this.writeOne(ya(t))), this.checkIntegrity(e));
1034
+ e.length !== 0 && (e.forEach((t) => this.writeOne(wa(t))), this.checkIntegrity(e));
1025
1035
  }
1026
1036
  /**
1027
1037
  * Executes a 'dirty' read of the cache, retrieving any series in the cache that overlap
@@ -1045,7 +1055,7 @@ class Ji {
1045
1055
  * @returns metrics about the garbage collection.
1046
1056
  */
1047
1057
  gc() {
1048
- const { staleEntryThreshold: e } = this.props, t = wa(), s = this.data.filter((r) => {
1058
+ const { staleEntryThreshold: e } = this.props, t = xa(), s = this.data.filter((r) => {
1049
1059
  const a = r.data.refCount > 0 || F.since(r.addedAt).lessThan(e);
1050
1060
  return a || (t.purgedBytes = t.purgedBytes.add(r.data.byteCapacity)), a;
1051
1061
  });
@@ -1081,15 +1091,17 @@ class Ji {
1081
1091
  const {
1082
1092
  instrumentation: { L: t }
1083
1093
  } = this.props, s = this.data.map((a) => a.data.alignmentBounds);
1084
- if (s.some((a, i) => s.some((o, l) => i === l ? !1 : R.overlapsWith(a, o))))
1094
+ if (s.some(
1095
+ (a, i) => s.some((o, l) => i === l ? !1 : R.overlapsWith(a, o))
1096
+ ))
1085
1097
  throw t.debug("Cache is in an invalid state - bounds overlap!", () => ({
1086
1098
  write: e.map((a) => a.digest),
1087
1099
  cacheContents: this.data.map((a) => a.data.digest)
1088
1100
  })), new Error("Invalid state");
1089
1101
  }
1090
1102
  }
1091
- const to = 100, eo = 1e6, no = 1e4, so = 100, ro = 40;
1092
- class ao {
1103
+ const so = 100, ro = 1e6, ao = 1e4, io = 100, oo = 40;
1104
+ class lo {
1093
1105
  /**
1094
1106
  * @constructor
1095
1107
  *
@@ -1136,7 +1148,7 @@ class ao {
1136
1148
  this.counter++;
1137
1149
  const r = this.props.dataType.isVariable, a = this.props.dataType.equals(nt.TIMESTAMP);
1138
1150
  return gs.alloc({
1139
- capacity: r ? e * ro : e,
1151
+ capacity: r ? e * oo : e,
1140
1152
  dataType: r ? this.props.dataType : nt.FLOAT32,
1141
1153
  timeRange: s.range(F.MAX),
1142
1154
  sampleOffset: a ? BigInt(s.valueOf()) : 0,
@@ -1155,7 +1167,7 @@ class ao {
1155
1167
  const l = this.now();
1156
1168
  this.curr.timeRange.end = l, s.flushed.push(this.curr), this.curr = this.allocate(t, e.alignment, l), s.allocated.push(this.curr);
1157
1169
  }
1158
- const r = ya(e, this.curr.sampleOffset), a = this.curr.write(r);
1170
+ const r = wa(e, this.curr.sampleOffset), a = this.curr.write(r);
1159
1171
  if (a === e.length)
1160
1172
  return this.updateAvgRate(e), s;
1161
1173
  const i = this.now();
@@ -1171,9 +1183,9 @@ class ao {
1171
1183
  nextBufferSize() {
1172
1184
  const { dynamicBufferSize: e } = this.props;
1173
1185
  if (typeof e == "number") return e;
1174
- if (this.totalWrites < so) return no;
1175
- const t = bi.roundToNearestMagnitude(this.avgRate * e.seconds);
1176
- return Math.round(Math.max(Math.min(t, eo), to));
1186
+ if (this.totalWrites < io) return ao;
1187
+ const t = vi.roundToNearestMagnitude(this.avgRate * e.seconds);
1188
+ return Math.round(Math.max(Math.min(t, ro), so));
1177
1189
  }
1178
1190
  /**
1179
1191
  * Closes the cache and releases all resources associated with it. After close()
@@ -1183,14 +1195,14 @@ class ao {
1183
1195
  this.curr = null;
1184
1196
  }
1185
1197
  }
1186
- class io {
1198
+ class co {
1187
1199
  constructor(e) {
1188
1200
  c(this, "channel");
1189
1201
  c(this, "closed", !1);
1190
1202
  c(this, "ins");
1191
1203
  c(this, "static");
1192
1204
  c(this, "dynamic");
1193
- this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new Ji(e), this.dynamic = new ao({
1205
+ this.channel = e.channel, this.ins = e.instrumentation ?? it.NOOP, this.static = new no(e), this.dynamic = new lo({
1194
1206
  dynamicBufferSize: e.dynamicBufferSize,
1195
1207
  dataType: this.channel.dataType
1196
1208
  });
@@ -1227,16 +1239,16 @@ class io {
1227
1239
  this.closed = !0, this.dynamic.close(), this.static.close();
1228
1240
  }
1229
1241
  }
1230
- const oo = Mr.seconds(60);
1231
- class lo {
1242
+ const uo = Mr.seconds(60);
1243
+ class ho {
1232
1244
  constructor(e) {
1233
1245
  c(this, "props");
1234
1246
  c(this, "cache", /* @__PURE__ */ new Map());
1235
1247
  c(this, "gcInterval");
1236
1248
  this.props = {
1237
- dynamicBufferSize: oo,
1249
+ dynamicBufferSize: uo,
1238
1250
  gcInterval: Mr.seconds(30),
1239
- ...xa,
1251
+ ...ba,
1240
1252
  ...e
1241
1253
  }, this.gcInterval = setInterval(() => this.gc(), this.props.gcInterval.milliseconds);
1242
1254
  }
@@ -1251,7 +1263,7 @@ class lo {
1251
1263
  if (a.length === 0) return;
1252
1264
  const i = await s.retrieve(a);
1253
1265
  for (const o of i) {
1254
- const l = new io({
1266
+ const l = new co({
1255
1267
  channel: o,
1256
1268
  dynamicBufferSize: r,
1257
1269
  instrumentation: t.child(`cache-${o.name}-${o.key}`)
@@ -1276,7 +1288,7 @@ class lo {
1276
1288
  instrumentation: { L: e }
1277
1289
  } = this.props;
1278
1290
  e.info("starting garbage collection");
1279
- const t = wa();
1291
+ const t = xa();
1280
1292
  this.cache.forEach((s) => {
1281
1293
  const r = s.gc();
1282
1294
  t.purgedSeries += r.purgedSeries, t.purgedBytes = t.purgedBytes.add(r.purgedBytes);
@@ -1317,7 +1329,7 @@ class on {
1317
1329
  }
1318
1330
  }
1319
1331
  const Un = (n) => n.map((e) => e.digest);
1320
- class co {
1332
+ class fo {
1321
1333
  constructor(e) {
1322
1334
  c(this, "props");
1323
1335
  c(this, "debouncedRead");
@@ -1330,7 +1342,7 @@ class co {
1330
1342
  instrumentation: it.NOOP,
1331
1343
  batchDebounce: $.milliseconds(50),
1332
1344
  ...e
1333
- }, this.debouncedRead = di(() => {
1345
+ }, this.debouncedRead = fi(() => {
1334
1346
  this.batchRead();
1335
1347
  }, this.props.batchDebounce.milliseconds);
1336
1348
  }
@@ -1424,7 +1436,7 @@ class co {
1424
1436
  });
1425
1437
  }
1426
1438
  }
1427
- class uo {
1439
+ class po {
1428
1440
  constructor(e) {
1429
1441
  c(this, "props");
1430
1442
  c(this, "mu", new ms());
@@ -1519,7 +1531,7 @@ class uo {
1519
1531
  (e = this.streamer) == null || e.close(), this.streamerRunLoop != null && await this.streamerRunLoop, this.closed = !0;
1520
1532
  }
1521
1533
  }
1522
- class ho {
1534
+ class go {
1523
1535
  constructor() {
1524
1536
  c(this, "key", Gn.id());
1525
1537
  c(this, "_client", null);
@@ -1549,7 +1561,7 @@ class ho {
1549
1561
  return this._client;
1550
1562
  }
1551
1563
  }
1552
- class fo {
1564
+ class mo {
1553
1565
  constructor({ instrumentation: e, core: t }) {
1554
1566
  c(this, "key", Gn.id());
1555
1567
  c(this, "ins");
@@ -1557,14 +1569,14 @@ class fo {
1557
1569
  c(this, "reader");
1558
1570
  c(this, "streamer");
1559
1571
  c(this, "channelRetriever");
1560
- this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new lo({
1572
+ this.ins = e ?? it.NOOP, this.channelRetriever = t.channels.createDebouncedBatchRetriever(10), this.cache = new ho({
1561
1573
  channelRetriever: this.channelRetriever,
1562
1574
  instrumentation: this.ins.child("cache")
1563
- }), this.reader = new co({
1575
+ }), this.reader = new fo({
1564
1576
  cache: this.cache,
1565
1577
  readRemote: async (s, r) => await t.read(s, r),
1566
1578
  instrumentation: this.ins.child("reader")
1567
- }), this.streamer = new uo({
1579
+ }), this.streamer = new po({
1568
1580
  cache: this.cache,
1569
1581
  core: t,
1570
1582
  instrumentation: this.ins.child("streamer")
@@ -1588,11 +1600,11 @@ class fo {
1588
1600
  this.ins.L.info("closing client", { key: this.key }), await this.streamer.close(), this.cache.close();
1589
1601
  }
1590
1602
  }
1591
- const ba = d.object({}), $t = class $t extends wt {
1603
+ const va = d.object({}), $t = class $t extends wt {
1592
1604
  constructor() {
1593
1605
  super(...arguments);
1594
- c(this, "client", new ho());
1595
- c(this, "factory", ma(this.client));
1606
+ c(this, "client", new go());
1607
+ c(this, "factory", ya(this.client));
1596
1608
  c(this, "schema", $t.stateZ);
1597
1609
  c(this, "prevClient", null);
1598
1610
  }
@@ -1617,14 +1629,14 @@ const ba = d.object({}), $t = class $t extends wt {
1617
1629
  }
1618
1630
  async afterUpdate() {
1619
1631
  const t = Oe(this.ctx), s = Le(this.ctx, "telem");
1620
- this.internal.instrumentation = s.child("provider"), t !== this.prevClient && (s.L.info("swapping client", { client: t }), t == null ? await this.client.swap(null) : await this.client.swap(new fo({ core: t, instrumentation: s })), this.prevClient = t, Ir(this.ctx, this));
1632
+ this.internal.instrumentation = s.child("provider"), t !== this.prevClient && (s.L.info("swapping client", { client: t }), t == null ? await this.client.swap(null) : await this.client.swap(new mo({ core: t, instrumentation: s })), this.prevClient = t, Br(this.ctx, this));
1621
1633
  }
1622
1634
  };
1623
- c($t, "TYPE", "TelemProvider"), c($t, "stateZ", ba);
1635
+ c($t, "TYPE", "TelemProvider"), c($t, "stateZ", va);
1624
1636
  let be = $t;
1625
- const po = {
1637
+ const yo = {
1626
1638
  [be.TYPE]: be
1627
- }, Ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1639
+ }, nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1628
1640
  __proto__: null,
1629
1641
  AbstractSink: An,
1630
1642
  AbstractSource: Q,
@@ -1632,7 +1644,7 @@ const po = {
1632
1644
  BaseProvider: be,
1633
1645
  BooleanStatus: Wt,
1634
1646
  ChannelData: ge,
1635
- CompoundTelemFactory: ga,
1647
+ CompoundTelemFactory: ma,
1636
1648
  FixedNumber: we,
1637
1649
  FixedString: xe,
1638
1650
  IterativeSeries: ye,
@@ -1640,7 +1652,7 @@ const po = {
1640
1652
  MultiSourceTransformer: Qr,
1641
1653
  NoopFactory: jr,
1642
1654
  PipelineFactory: na,
1643
- REGISTRY: po,
1655
+ REGISTRY: yo,
1644
1656
  RemoteFactory: aa,
1645
1657
  RollingAverage: Gt,
1646
1658
  SetPoint: qt,
@@ -1650,28 +1662,28 @@ const po = {
1650
1662
  StreamChannelData: me,
1651
1663
  StreamChannelValue: pe,
1652
1664
  StringifyNumber: Xt,
1653
- TransformerFactory: ua,
1665
+ TransformerFactory: ha,
1654
1666
  UnarySinkTransformer: Jr,
1655
1667
  UnarySourceTransformer: Ae,
1656
1668
  WithinBounds: jt,
1657
1669
  booleanSinkSpecZ: Dn,
1658
- booleanSinkTransformerSpecZ: Oi,
1670
+ booleanSinkTransformerSpecZ: Di,
1659
1671
  booleanSourceSpecZ: Cs,
1660
- booleanSourceTransformerSpecZ: Di,
1661
- booleanStatus: Gi,
1662
- booleanStatusProps: da,
1672
+ booleanSourceTransformerSpecZ: Yi,
1673
+ booleanStatus: Qi,
1674
+ booleanStatusProps: fa,
1663
1675
  channelData: Bi,
1664
1676
  colorSourceSpecZ: Vr,
1665
- factory: ma,
1666
- fixedArray: $i,
1667
- fixedNumber: Fi,
1677
+ factory: ya,
1678
+ fixedArray: Zi,
1679
+ fixedNumber: zi,
1668
1680
  fixedNumberPropsZ: la,
1669
1681
  fixedSeriesPropsZ: Rs,
1670
- fixedString: zi,
1682
+ fixedString: qi,
1671
1683
  fixedStringPropsZ: ca,
1672
- iterativeArray: Zi,
1684
+ iterativeArray: Fi,
1673
1685
  iterativeSeriesPropsZ: oa,
1674
- mean: Xi,
1686
+ mean: Ki,
1675
1687
  noopBooleanSinkSpec: Mn,
1676
1688
  noopBooleanSourceSpec: Ss,
1677
1689
  noopColorSourceSpec: zr,
@@ -1682,44 +1694,44 @@ const po = {
1682
1694
  noopStringSourceSpec: Fr,
1683
1695
  numberSinkSpecZ: Gr,
1684
1696
  numberSourceSpecZ: Xr,
1685
- providerStateZ: ba,
1697
+ providerStateZ: va,
1686
1698
  registerFactory: Ur,
1687
- rollingAverage: Ki,
1688
- rollingAverageProps: pa,
1699
+ rollingAverage: to,
1700
+ rollingAverageProps: ga,
1689
1701
  seriesSourceSpecZ: rn,
1690
- setProvider: Ir,
1691
- setpoint: ji,
1692
- sinkPipeline: Ai,
1702
+ setProvider: Br,
1703
+ setpoint: Xi,
1704
+ sinkPipeline: Li,
1693
1705
  sinkPipelinePropsZ: sa,
1694
1706
  sinkSpecZ: On,
1695
1707
  sinkTransformerSpecZ: Wr,
1696
- sourcePipeline: Yi,
1708
+ sourcePipeline: Ai,
1697
1709
  sourcePipelinePropsZ: ea,
1698
1710
  sourceSpecZ: Ct,
1699
1711
  sourceTransformerSpecZ: Hr,
1700
1712
  specZ: Ye,
1701
1713
  statusSourceSpecZ: ks,
1702
- streamChannelData: Ii,
1703
- streamChannelValue: Ui,
1714
+ streamChannelData: Ui,
1715
+ streamChannelValue: $i,
1704
1716
  streamChannelValuePropsZ: ra,
1705
1717
  stringSourceSpecZ: Kr,
1706
- stringifyNumber: Vi,
1707
- stringifyNumberProps: fa,
1718
+ stringifyNumber: Ji,
1719
+ stringifyNumberProps: pa,
1708
1720
  useProvider: Rn,
1709
1721
  useSink: De,
1710
1722
  useSource: st,
1711
- withinBounds: Wi
1712
- }, Symbol.toStringTag, { value: "Module" })), va = d.object({
1723
+ withinBounds: Vi
1724
+ }, Symbol.toStringTag, { value: "Module" })), Ta = d.object({
1713
1725
  key: d.string(),
1714
1726
  size: d.number(),
1715
1727
  order: d.number(),
1716
1728
  loc: Tt.outer
1717
1729
  });
1718
- d.record(va);
1719
- const Bt = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), go = (n, e, t) => {
1730
+ d.record(Ta);
1731
+ const It = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s) => s.order - t.order), wo = (n, e, t) => {
1720
1732
  const s = e[n];
1721
1733
  if (s == null) return g.ZERO;
1722
- const r = Tt.construct(s.loc), a = Bt(r, e), i = Tt.construct(at.swap(Tt.direction(r))), o = Bt(i, e), l = a.findIndex(({ key: p }) => p === n), u = a.slice(0, l).reduce((p, { size: m }) => p + m, 0), h = o.reduce((p, { size: m }) => p + m, 0);
1734
+ const r = Tt.construct(s.loc), a = It(r, e), i = Tt.construct(at.swap(Tt.direction(r))), o = It(i, e), l = a.findIndex(({ key: p }) => p === n), u = a.slice(0, l).reduce((p, { size: m }) => p + m, 0), h = o.reduce((p, { size: m }) => p + m, 0);
1723
1735
  switch (r) {
1724
1736
  case "left":
1725
1737
  return g.translate(f.topLeft(t), [u, h]);
@@ -1733,8 +1745,8 @@ const Bt = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
1733
1745
  -u - s.size
1734
1746
  ]);
1735
1747
  }
1736
- }, mo = (n, e) => {
1737
- const t = Bt("left", n), s = Bt("right", n), r = Bt("top", n), a = Bt("bottom", n), i = t.reduce((h, { size: p }) => h + p, 0), o = s.reduce((h, { size: p }) => h + p, 0), l = r.reduce((h, { size: p }) => h + p, 0), u = a.reduce((h, { size: p }) => h + p, 0);
1748
+ }, xo = (n, e) => {
1749
+ const t = It("left", n), s = It("right", n), r = It("top", n), a = It("bottom", n), i = t.reduce((h, { size: p }) => h + p, 0), o = s.reduce((h, { size: p }) => h + p, 0), l = r.reduce((h, { size: p }) => h + p, 0), u = a.reduce((h, { size: p }) => h + p, 0);
1738
1750
  return f.construct(
1739
1751
  g.translate(f.topLeft(e), { x: i, y: l }),
1740
1752
  f.width(e) - i - o,
@@ -1744,12 +1756,12 @@ const Bt = (n, e) => Object.values(e).filter(({ loc: t }) => t === n).sort((t, s
1744
1756
  function qe(n, e) {
1745
1757
  return n == null || e == null ? NaN : n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
1746
1758
  }
1747
- function yo(n, e) {
1759
+ function bo(n, e) {
1748
1760
  return n == null || e == null ? NaN : e < n ? -1 : e > n ? 1 : e >= n ? 0 : NaN;
1749
1761
  }
1750
1762
  function Ms(n) {
1751
1763
  let e, t, s;
1752
- n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n === yo ? n : wo, t = n, s = n);
1764
+ n.length !== 2 ? (e = qe, t = (o, l) => qe(n(o), l), s = (o, l) => n(o) - l) : (e = n === qe || n === bo ? n : vo, t = n, s = n);
1753
1765
  function r(o, l, u = 0, h = o.length) {
1754
1766
  if (u < h) {
1755
1767
  if (e(l, l) !== 0) return h;
@@ -1776,21 +1788,21 @@ function Ms(n) {
1776
1788
  }
1777
1789
  return { left: r, center: i, right: a };
1778
1790
  }
1779
- function wo() {
1791
+ function vo() {
1780
1792
  return 0;
1781
1793
  }
1782
- function xo(n) {
1794
+ function To(n) {
1783
1795
  return n === null ? NaN : +n;
1784
1796
  }
1785
- const bo = Ms(qe), vo = bo.right;
1786
- Ms(xo).center;
1787
- const To = Math.sqrt(50), So = Math.sqrt(10), Eo = Math.sqrt(2);
1797
+ const So = Ms(qe), Eo = So.right;
1798
+ Ms(To).center;
1799
+ const Co = Math.sqrt(50), ko = Math.sqrt(10), Po = Math.sqrt(2);
1788
1800
  function ln(n, e, t) {
1789
- const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >= To ? 10 : a >= So ? 5 : a >= Eo ? 2 : 1;
1801
+ const s = (e - n) / Math.max(0, t), r = Math.floor(Math.log10(s)), a = s / Math.pow(10, r), i = a >= Co ? 10 : a >= ko ? 5 : a >= Po ? 2 : 1;
1790
1802
  let o, l, u;
1791
1803
  return r < 0 ? (u = Math.pow(10, -r) / i, o = Math.round(n * u), l = Math.round(e * u), o / u < n && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, r) * i, o = Math.round(n / u), l = Math.round(e / u), o * u < n && ++o, l * u > e && --l), l < o && 0.5 <= t && t < 2 ? ln(n, e, t * 2) : [o, l, u];
1792
1804
  }
1793
- function Co(n, e, t) {
1805
+ function Ro(n, e, t) {
1794
1806
  if (e = +e, n = +n, t = +t, !(t > 0)) return [];
1795
1807
  if (n === e) return [n];
1796
1808
  const s = e < n, [r, a, i] = s ? ln(e, n, t) : ln(n, e, t);
@@ -1811,7 +1823,7 @@ function Jn(n, e, t) {
1811
1823
  const s = e < n, r = s ? Qn(e, n, t) : Qn(n, e, t);
1812
1824
  return (s ? -1 : 1) * (r < 0 ? 1 / -r : r);
1813
1825
  }
1814
- function Ta(n, e) {
1826
+ function Sa(n, e) {
1815
1827
  switch (arguments.length) {
1816
1828
  case 0:
1817
1829
  break;
@@ -1827,14 +1839,14 @@ function Ta(n, e) {
1827
1839
  function Os(n, e, t) {
1828
1840
  n.prototype = e.prototype = t, t.constructor = n;
1829
1841
  }
1830
- function Sa(n, e) {
1842
+ function Ea(n, e) {
1831
1843
  var t = Object.create(n.prototype);
1832
1844
  for (var s in e) t[s] = e[s];
1833
1845
  return t;
1834
1846
  }
1835
1847
  function _e() {
1836
1848
  }
1837
- var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ko = /^#([0-9a-f]{3,8})$/, Po = new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`), Ro = new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`), Mo = new RegExp(`^rgba\\(${zt},${zt},${zt},${Te}\\)$`), Oo = new RegExp(`^rgba\\(${lt},${lt},${lt},${Te}\\)$`), Do = new RegExp(`^hsl\\(${Te},${lt},${lt}\\)$`), Yo = new RegExp(`^hsla\\(${Te},${lt},${lt},${Te}\\)$`), qs = {
1849
+ var ve = 0.7, cn = 1 / ve, zt = "\\s*([+-]?\\d+)\\s*", Te = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Mo = /^#([0-9a-f]{3,8})$/, Oo = new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`), Do = new RegExp(`^rgb\\(${lt},${lt},${lt}\\)$`), Yo = new RegExp(`^rgba\\(${zt},${zt},${zt},${Te}\\)$`), Ao = new RegExp(`^rgba\\(${lt},${lt},${lt},${Te}\\)$`), Lo = new RegExp(`^hsl\\(${Te},${lt},${lt}\\)$`), _o = new RegExp(`^hsla\\(${Te},${lt},${lt},${Te}\\)$`), qs = {
1838
1850
  aliceblue: 15792383,
1839
1851
  antiquewhite: 16444375,
1840
1852
  aqua: 65535,
@@ -1994,26 +2006,26 @@ Os(_e, Se, {
1994
2006
  hex: js,
1995
2007
  // Deprecated! Use color.formatHex.
1996
2008
  formatHex: js,
1997
- formatHex8: Ao,
1998
- formatHsl: Lo,
2009
+ formatHex8: No,
2010
+ formatHsl: Io,
1999
2011
  formatRgb: Hs,
2000
2012
  toString: Hs
2001
2013
  });
2002
2014
  function js() {
2003
2015
  return this.rgb().formatHex();
2004
2016
  }
2005
- function Ao() {
2017
+ function No() {
2006
2018
  return this.rgb().formatHex8();
2007
2019
  }
2008
- function Lo() {
2009
- return Ea(this).formatHsl();
2020
+ function Io() {
2021
+ return Ca(this).formatHsl();
2010
2022
  }
2011
2023
  function Hs() {
2012
2024
  return this.rgb().formatRgb();
2013
2025
  }
2014
2026
  function Se(n) {
2015
2027
  var e, t;
2016
- return n = (n + "").trim().toLowerCase(), (e = ko.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? Ws(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Ue(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Ue(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Po.exec(n)) ? new H(e[1], e[2], e[3], 1) : (e = Ro.exec(n)) ? new H(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Mo.exec(n)) ? Ue(e[1], e[2], e[3], e[4]) : (e = Oo.exec(n)) ? Ue(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Do.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, 1) : (e = Yo.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, e[4]) : qs.hasOwnProperty(n) ? Ws(qs[n]) : n === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
2028
+ return n = (n + "").trim().toLowerCase(), (e = Mo.exec(n)) ? (t = e[1].length, e = parseInt(e[1], 16), t === 6 ? Ws(e) : t === 3 ? new H(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : t === 8 ? Ue(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : t === 4 ? Ue(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Oo.exec(n)) ? new H(e[1], e[2], e[3], 1) : (e = Do.exec(n)) ? new H(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Yo.exec(n)) ? Ue(e[1], e[2], e[3], e[4]) : (e = Ao.exec(n)) ? Ue(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Lo.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, 1) : (e = _o.exec(n)) ? Vs(e[1], e[2] / 100, e[3] / 100, e[4]) : qs.hasOwnProperty(n) ? Ws(qs[n]) : n === "transparent" ? new H(NaN, NaN, NaN, 0) : null;
2017
2029
  }
2018
2030
  function Ws(n) {
2019
2031
  return new H(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
@@ -2021,16 +2033,16 @@ function Ws(n) {
2021
2033
  function Ue(n, e, t, s) {
2022
2034
  return s <= 0 && (n = e = t = NaN), new H(n, e, t, s);
2023
2035
  }
2024
- function _o(n) {
2036
+ function Bo(n) {
2025
2037
  return n instanceof _e || (n = Se(n)), n ? (n = n.rgb(), new H(n.r, n.g, n.b, n.opacity)) : new H();
2026
2038
  }
2027
2039
  function ts(n, e, t, s) {
2028
- return arguments.length === 1 ? _o(n) : new H(n, e, t, s ?? 1);
2040
+ return arguments.length === 1 ? Bo(n) : new H(n, e, t, s ?? 1);
2029
2041
  }
2030
2042
  function H(n, e, t, s) {
2031
2043
  this.r = +n, this.g = +e, this.b = +t, this.opacity = +s;
2032
2044
  }
2033
- Os(H, ts, Sa(_e, {
2045
+ Os(H, ts, Ea(_e, {
2034
2046
  brighter(n) {
2035
2047
  return n = n == null ? cn : Math.pow(cn, n), new H(this.r * n, this.g * n, this.b * n, this.opacity);
2036
2048
  },
@@ -2049,14 +2061,14 @@ Os(H, ts, Sa(_e, {
2049
2061
  hex: Xs,
2050
2062
  // Deprecated! Use color.formatHex.
2051
2063
  formatHex: Xs,
2052
- formatHex8: No,
2064
+ formatHex8: Uo,
2053
2065
  formatRgb: Gs,
2054
2066
  toString: Gs
2055
2067
  }));
2056
2068
  function Xs() {
2057
2069
  return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}`;
2058
2070
  }
2059
- function No() {
2071
+ function Uo() {
2060
2072
  return `#${Rt(this.r)}${Rt(this.g)}${Rt(this.b)}${Rt((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2061
2073
  }
2062
2074
  function Gs() {
@@ -2075,7 +2087,7 @@ function Rt(n) {
2075
2087
  function Vs(n, e, t, s) {
2076
2088
  return s <= 0 ? n = e = t = NaN : t <= 0 || t >= 1 ? n = e = NaN : e <= 0 && (n = NaN), new tt(n, e, t, s);
2077
2089
  }
2078
- function Ea(n) {
2090
+ function Ca(n) {
2079
2091
  if (n instanceof tt) return new tt(n.h, n.s, n.l, n.opacity);
2080
2092
  if (n instanceof _e || (n = Se(n)), !n) return new tt();
2081
2093
  if (n instanceof tt) return n;
@@ -2083,13 +2095,13 @@ function Ea(n) {
2083
2095
  var e = n.r / 255, t = n.g / 255, s = n.b / 255, r = Math.min(e, t, s), a = Math.max(e, t, s), i = NaN, o = a - r, l = (a + r) / 2;
2084
2096
  return o ? (e === a ? i = (t - s) / o + (t < s) * 6 : t === a ? i = (s - e) / o + 2 : i = (e - t) / o + 4, o /= l < 0.5 ? a + r : 2 - a - r, i *= 60) : o = l > 0 && l < 1 ? 0 : i, new tt(i, o, l, n.opacity);
2085
2097
  }
2086
- function Bo(n, e, t, s) {
2087
- return arguments.length === 1 ? Ea(n) : new tt(n, e, t, s ?? 1);
2098
+ function $o(n, e, t, s) {
2099
+ return arguments.length === 1 ? Ca(n) : new tt(n, e, t, s ?? 1);
2088
2100
  }
2089
2101
  function tt(n, e, t, s) {
2090
2102
  this.h = +n, this.s = +e, this.l = +t, this.opacity = +s;
2091
2103
  }
2092
- Os(tt, Bo, Sa(_e, {
2104
+ Os(tt, $o, Ea(_e, {
2093
2105
  brighter(n) {
2094
2106
  return n = n == null ? cn : Math.pow(cn, n), new tt(this.h, this.s, this.l * n, this.opacity);
2095
2107
  },
@@ -2126,36 +2138,36 @@ function $n(n, e, t) {
2126
2138
  return (n < 60 ? e + (t - e) * n / 60 : n < 180 ? t : n < 240 ? e + (t - e) * (240 - n) / 60 : e) * 255;
2127
2139
  }
2128
2140
  const Ds = (n) => () => n;
2129
- function Io(n, e) {
2141
+ function Zo(n, e) {
2130
2142
  return function(t) {
2131
2143
  return n + t * e;
2132
2144
  };
2133
2145
  }
2134
- function Uo(n, e, t) {
2146
+ function Fo(n, e, t) {
2135
2147
  return n = Math.pow(n, t), e = Math.pow(e, t) - n, t = 1 / t, function(s) {
2136
2148
  return Math.pow(n + s * e, t);
2137
2149
  };
2138
2150
  }
2139
- function $o(n) {
2140
- return (n = +n) == 1 ? Ca : function(e, t) {
2141
- return t - e ? Uo(e, t, n) : Ds(isNaN(e) ? t : e);
2151
+ function zo(n) {
2152
+ return (n = +n) == 1 ? ka : function(e, t) {
2153
+ return t - e ? Fo(e, t, n) : Ds(isNaN(e) ? t : e);
2142
2154
  };
2143
2155
  }
2144
- function Ca(n, e) {
2156
+ function ka(n, e) {
2145
2157
  var t = e - n;
2146
- return t ? Io(n, t) : Ds(isNaN(n) ? e : n);
2158
+ return t ? Zo(n, t) : Ds(isNaN(n) ? e : n);
2147
2159
  }
2148
2160
  const Qs = function n(e) {
2149
- var t = $o(e);
2161
+ var t = zo(e);
2150
2162
  function s(r, a) {
2151
- var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u = Ca(r.opacity, a.opacity);
2163
+ var i = t((r = ts(r)).r, (a = ts(a)).r), o = t(r.g, a.g), l = t(r.b, a.b), u = ka(r.opacity, a.opacity);
2152
2164
  return function(h) {
2153
2165
  return r.r = i(h), r.g = o(h), r.b = l(h), r.opacity = u(h), r + "";
2154
2166
  };
2155
2167
  }
2156
2168
  return s.gamma = n, s;
2157
2169
  }(1);
2158
- function Zo(n, e) {
2170
+ function qo(n, e) {
2159
2171
  e || (e = []);
2160
2172
  var t = n ? Math.min(e.length, n.length) : 0, s = e.slice(), r;
2161
2173
  return function(a) {
@@ -2163,10 +2175,10 @@ function Zo(n, e) {
2163
2175
  return s;
2164
2176
  };
2165
2177
  }
2166
- function Fo(n) {
2178
+ function jo(n) {
2167
2179
  return ArrayBuffer.isView(n) && !(n instanceof DataView);
2168
2180
  }
2169
- function zo(n, e) {
2181
+ function Ho(n, e) {
2170
2182
  var t = e ? e.length : 0, s = n ? Math.min(t, n.length) : 0, r = new Array(s), a = new Array(t), i;
2171
2183
  for (i = 0; i < s; ++i) r[i] = Ys(n[i], e[i]);
2172
2184
  for (; i < t; ++i) a[i] = e[i];
@@ -2175,7 +2187,7 @@ function zo(n, e) {
2175
2187
  return a;
2176
2188
  };
2177
2189
  }
2178
- function qo(n, e) {
2190
+ function Wo(n, e) {
2179
2191
  var t = /* @__PURE__ */ new Date();
2180
2192
  return n = +n, e = +e, function(s) {
2181
2193
  return t.setTime(n * (1 - s) + e * s), t;
@@ -2186,7 +2198,7 @@ function hn(n, e) {
2186
2198
  return n * (1 - t) + e * t;
2187
2199
  };
2188
2200
  }
2189
- function jo(n, e) {
2201
+ function Xo(n, e) {
2190
2202
  var t = {}, s = {}, r;
2191
2203
  (n === null || typeof n != "object") && (n = {}), (e === null || typeof e != "object") && (e = {});
2192
2204
  for (r in e)
@@ -2197,80 +2209,80 @@ function jo(n, e) {
2197
2209
  };
2198
2210
  }
2199
2211
  var es = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Zn = new RegExp(es.source, "g");
2200
- function Ho(n) {
2212
+ function Go(n) {
2201
2213
  return function() {
2202
2214
  return n;
2203
2215
  };
2204
2216
  }
2205
- function Wo(n) {
2217
+ function Vo(n) {
2206
2218
  return function(e) {
2207
2219
  return n(e) + "";
2208
2220
  };
2209
2221
  }
2210
- function Xo(n, e) {
2222
+ function Ko(n, e) {
2211
2223
  var t = es.lastIndex = Zn.lastIndex = 0, s, r, a, i = -1, o = [], l = [];
2212
2224
  for (n = n + "", e = e + ""; (s = es.exec(n)) && (r = Zn.exec(e)); )
2213
2225
  (a = r.index) > t && (a = e.slice(t, a), o[i] ? o[i] += a : o[++i] = a), (s = s[0]) === (r = r[0]) ? o[i] ? o[i] += r : o[++i] = r : (o[++i] = null, l.push({ i, x: hn(s, r) })), t = Zn.lastIndex;
2214
- return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ? Wo(l[0].x) : Ho(e) : (e = l.length, function(u) {
2226
+ return t < e.length && (a = e.slice(t), o[i] ? o[i] += a : o[++i] = a), o.length < 2 ? l[0] ? Vo(l[0].x) : Go(e) : (e = l.length, function(u) {
2215
2227
  for (var h = 0, p; h < e; ++h) o[(p = l[h]).i] = p.x(u);
2216
2228
  return o.join("");
2217
2229
  });
2218
2230
  }
2219
2231
  function Ys(n, e) {
2220
2232
  var t = typeof e, s;
2221
- return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) : Xo : e instanceof Se ? Qs : e instanceof Date ? qo : Fo(e) ? Zo : Array.isArray(e) ? zo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? jo : hn)(n, e);
2233
+ return e == null || t === "boolean" ? Ds(e) : (t === "number" ? hn : t === "string" ? (s = Se(e)) ? (e = s, Qs) : Ko : e instanceof Se ? Qs : e instanceof Date ? Wo : jo(e) ? qo : Array.isArray(e) ? Ho : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Xo : hn)(n, e);
2222
2234
  }
2223
- function Go(n, e) {
2235
+ function Qo(n, e) {
2224
2236
  return n = +n, e = +e, function(t) {
2225
2237
  return Math.round(n * (1 - t) + e * t);
2226
2238
  };
2227
2239
  }
2228
- function Vo(n) {
2240
+ function Jo(n) {
2229
2241
  return function() {
2230
2242
  return n;
2231
2243
  };
2232
2244
  }
2233
- function Ko(n) {
2245
+ function tl(n) {
2234
2246
  return +n;
2235
2247
  }
2236
2248
  var Js = [0, 1];
2237
- function It(n) {
2249
+ function Bt(n) {
2238
2250
  return n;
2239
2251
  }
2240
2252
  function ns(n, e) {
2241
2253
  return (e -= n = +n) ? function(t) {
2242
2254
  return (t - n) / e;
2243
- } : Vo(isNaN(e) ? NaN : 0.5);
2255
+ } : Jo(isNaN(e) ? NaN : 0.5);
2244
2256
  }
2245
- function Qo(n, e) {
2257
+ function el(n, e) {
2246
2258
  var t;
2247
2259
  return n > e && (t = n, n = e, e = t), function(s) {
2248
2260
  return Math.max(n, Math.min(e, s));
2249
2261
  };
2250
2262
  }
2251
- function Jo(n, e, t) {
2263
+ function nl(n, e, t) {
2252
2264
  var s = n[0], r = n[1], a = e[0], i = e[1];
2253
2265
  return r < s ? (s = ns(r, s), a = t(i, a)) : (s = ns(s, r), a = t(a, i)), function(o) {
2254
2266
  return a(s(o));
2255
2267
  };
2256
2268
  }
2257
- function tl(n, e, t) {
2269
+ function sl(n, e, t) {
2258
2270
  var s = Math.min(n.length, e.length) - 1, r = new Array(s), a = new Array(s), i = -1;
2259
2271
  for (n[s] < n[0] && (n = n.slice().reverse(), e = e.slice().reverse()); ++i < s; )
2260
2272
  r[i] = ns(n[i], n[i + 1]), a[i] = t(e[i], e[i + 1]);
2261
2273
  return function(o) {
2262
- var l = vo(n, o, 1, s) - 1;
2274
+ var l = Eo(n, o, 1, s) - 1;
2263
2275
  return a[l](r[l](o));
2264
2276
  };
2265
2277
  }
2266
- function ka(n, e) {
2278
+ function Pa(n, e) {
2267
2279
  return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
2268
2280
  }
2269
- function el() {
2270
- var n = Js, e = Js, t = Ys, s, r, a, i = It, o, l, u;
2281
+ function rl() {
2282
+ var n = Js, e = Js, t = Ys, s, r, a, i = Bt, o, l, u;
2271
2283
  function h() {
2272
2284
  var m = Math.min(n.length, e.length);
2273
- return i !== It && (i = Qo(n[0], n[m - 1])), o = m > 2 ? tl : Jo, l = u = null, p;
2285
+ return i !== Bt && (i = el(n[0], n[m - 1])), o = m > 2 ? sl : nl, l = u = null, p;
2274
2286
  }
2275
2287
  function p(m) {
2276
2288
  return m == null || isNaN(m = +m) ? a : (l || (l = o(n.map(s), e, t)))(s(i(m)));
@@ -2278,13 +2290,13 @@ function el() {
2278
2290
  return p.invert = function(m) {
2279
2291
  return i(r((u || (u = o(e, n.map(s), hn)))(m)));
2280
2292
  }, p.domain = function(m) {
2281
- return arguments.length ? (n = Array.from(m, Ko), h()) : n.slice();
2293
+ return arguments.length ? (n = Array.from(m, tl), h()) : n.slice();
2282
2294
  }, p.range = function(m) {
2283
2295
  return arguments.length ? (e = Array.from(m), h()) : e.slice();
2284
2296
  }, p.rangeRound = function(m) {
2285
- return e = Array.from(m), t = Go, h();
2297
+ return e = Array.from(m), t = Qo, h();
2286
2298
  }, p.clamp = function(m) {
2287
- return arguments.length ? (i = m ? !0 : It, h()) : i !== It;
2299
+ return arguments.length ? (i = m ? !0 : Bt, h()) : i !== Bt;
2288
2300
  }, p.interpolate = function(m) {
2289
2301
  return arguments.length ? (t = m, h()) : t;
2290
2302
  }, p.unknown = function(m) {
@@ -2293,10 +2305,10 @@ function el() {
2293
2305
  return s = m, r = x, h();
2294
2306
  };
2295
2307
  }
2296
- function Pa() {
2297
- return el()(It, It);
2308
+ function Ra() {
2309
+ return rl()(Bt, Bt);
2298
2310
  }
2299
- function nl(n) {
2311
+ function al(n) {
2300
2312
  return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
2301
2313
  }
2302
2314
  function dn(n, e) {
@@ -2310,23 +2322,23 @@ function dn(n, e) {
2310
2322
  function Vt(n) {
2311
2323
  return n = dn(Math.abs(n)), n ? n[1] : NaN;
2312
2324
  }
2313
- function sl(n, e) {
2325
+ function il(n, e) {
2314
2326
  return function(t, s) {
2315
2327
  for (var r = t.length, a = [], i = 0, o = n[0], l = 0; r > 0 && o > 0 && (l + o + 1 > s && (o = Math.max(1, s - l)), a.push(t.substring(r -= o, r + o)), !((l += o + 1) > s)); )
2316
2328
  o = n[i = (i + 1) % n.length];
2317
2329
  return a.reverse().join(e);
2318
2330
  };
2319
2331
  }
2320
- function rl(n) {
2332
+ function ol(n) {
2321
2333
  return function(e) {
2322
2334
  return e.replace(/[0-9]/g, function(t) {
2323
2335
  return n[+t];
2324
2336
  });
2325
2337
  };
2326
2338
  }
2327
- var al = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2339
+ var ll = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2328
2340
  function fn(n) {
2329
- if (!(e = al.exec(n))) throw new Error("invalid format: " + n);
2341
+ if (!(e = ll.exec(n))) throw new Error("invalid format: " + n);
2330
2342
  var e;
2331
2343
  return new As({
2332
2344
  fill: e[1],
@@ -2348,7 +2360,7 @@ function As(n) {
2348
2360
  As.prototype.toString = function() {
2349
2361
  return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
2350
2362
  };
2351
- function il(n) {
2363
+ function cl(n) {
2352
2364
  t: for (var e = n.length, t = 1, s = -1, r; t < e; ++t)
2353
2365
  switch (n[t]) {
2354
2366
  case ".":
@@ -2364,11 +2376,11 @@ function il(n) {
2364
2376
  }
2365
2377
  return s > 0 ? n.slice(0, s) + n.slice(r + 1) : n;
2366
2378
  }
2367
- var Ra;
2368
- function ol(n, e) {
2379
+ var Ma;
2380
+ function ul(n, e) {
2369
2381
  var t = dn(n, e);
2370
2382
  if (!t) return n + "";
2371
- var s = t[0], r = t[1], a = r - (Ra = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, i = s.length;
2383
+ var s = t[0], r = t[1], a = r - (Ma = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, i = s.length;
2372
2384
  return a === i ? s : a > i ? s + new Array(a - i + 1).join("0") : a > 0 ? s.slice(0, a) + "." + s.slice(a) : "0." + new Array(1 - a).join("0") + dn(n, Math.max(0, e + a - 1))[0];
2373
2385
  }
2374
2386
  function tr(n, e) {
@@ -2381,14 +2393,14 @@ const er = {
2381
2393
  "%": (n, e) => (n * 100).toFixed(e),
2382
2394
  b: (n) => Math.round(n).toString(2),
2383
2395
  c: (n) => n + "",
2384
- d: nl,
2396
+ d: al,
2385
2397
  e: (n, e) => n.toExponential(e),
2386
2398
  f: (n, e) => n.toFixed(e),
2387
2399
  g: (n, e) => n.toPrecision(e),
2388
2400
  o: (n) => Math.round(n).toString(8),
2389
2401
  p: (n, e) => tr(n * 100, e),
2390
2402
  r: tr,
2391
- s: ol,
2403
+ s: ul,
2392
2404
  X: (n) => Math.round(n).toString(16).toUpperCase(),
2393
2405
  x: (n) => Math.round(n).toString(16)
2394
2406
  };
@@ -2396,23 +2408,23 @@ function nr(n) {
2396
2408
  return n;
2397
2409
  }
2398
2410
  var sr = Array.prototype.map, rr = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2399
- function ll(n) {
2400
- var e = n.grouping === void 0 || n.thousands === void 0 ? nr : sl(sr.call(n.grouping, Number), n.thousands + ""), t = n.currency === void 0 ? "" : n.currency[0] + "", s = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", a = n.numerals === void 0 ? nr : rl(sr.call(n.numerals, String)), i = n.percent === void 0 ? "%" : n.percent + "", o = n.minus === void 0 ? "−" : n.minus + "", l = n.nan === void 0 ? "NaN" : n.nan + "";
2411
+ function hl(n) {
2412
+ var e = n.grouping === void 0 || n.thousands === void 0 ? nr : il(sr.call(n.grouping, Number), n.thousands + ""), t = n.currency === void 0 ? "" : n.currency[0] + "", s = n.currency === void 0 ? "" : n.currency[1] + "", r = n.decimal === void 0 ? "." : n.decimal + "", a = n.numerals === void 0 ? nr : ol(sr.call(n.numerals, String)), i = n.percent === void 0 ? "%" : n.percent + "", o = n.minus === void 0 ? "−" : n.minus + "", l = n.nan === void 0 ? "NaN" : n.nan + "";
2401
2413
  function u(p) {
2402
2414
  p = fn(p);
2403
- var m = p.fill, x = p.align, b = p.sign, T = p.symbol, C = p.zero, O = p.width, N = p.comma, M = p.precision, L = p.trim, I = p.type;
2404
- I === "n" ? (N = !0, I = "g") : er[I] || (M === void 0 && (M = 12), L = !0, I = "g"), (C || m === "0" && x === "=") && (C = !0, m = "0", x = "=");
2405
- var v = T === "$" ? t : T === "#" && /[boxX]/.test(I) ? "0" + I.toLowerCase() : "", U = T === "$" ? s : /[%p]/.test(I) ? i : "", kt = er[I], Nn = /[defgprs%]/.test(I);
2406
- M = M === void 0 ? 6 : /[gprs]/.test(I) ? Math.max(1, Math.min(21, M)) : Math.max(0, Math.min(20, M));
2407
- function Be(E) {
2408
- var ct = v, q = U, bt, Ie, At;
2409
- if (I === "c")
2415
+ var m = p.fill, x = p.align, b = p.sign, T = p.symbol, C = p.zero, O = p.width, N = p.comma, M = p.precision, L = p.trim, B = p.type;
2416
+ B === "n" ? (N = !0, B = "g") : er[B] || (M === void 0 && (M = 12), L = !0, B = "g"), (C || m === "0" && x === "=") && (C = !0, m = "0", x = "=");
2417
+ var v = T === "$" ? t : T === "#" && /[boxX]/.test(B) ? "0" + B.toLowerCase() : "", U = T === "$" ? s : /[%p]/.test(B) ? i : "", kt = er[B], Nn = /[defgprs%]/.test(B);
2418
+ M = M === void 0 ? 6 : /[gprs]/.test(B) ? Math.max(1, Math.min(21, M)) : Math.max(0, Math.min(20, M));
2419
+ function Ie(E) {
2420
+ var ct = v, q = U, bt, Be, At;
2421
+ if (B === "c")
2410
2422
  q = kt(E) + q, E = "";
2411
2423
  else {
2412
2424
  E = +E;
2413
2425
  var Lt = E < 0 || 1 / E < 0;
2414
- if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E = il(E)), Lt && +E == 0 && b !== "+" && (Lt = !1), ct = (Lt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + ct, q = (I === "s" ? rr[8 + Ra / 3] : "") + q + (Lt && b === "(" ? ")" : ""), Nn) {
2415
- for (bt = -1, Ie = E.length; ++bt < Ie; )
2426
+ if (E = isNaN(E) ? l : kt(Math.abs(E), M), L && (E = cl(E)), Lt && +E == 0 && b !== "+" && (Lt = !1), ct = (Lt ? b === "(" ? b : o : b === "-" || b === "(" ? "" : b) + ct, q = (B === "s" ? rr[8 + Ma / 3] : "") + q + (Lt && b === "(" ? ")" : ""), Nn) {
2427
+ for (bt = -1, Be = E.length; ++bt < Be; )
2416
2428
  if (At = E.charCodeAt(bt), 48 > At || At > 57) {
2417
2429
  q = (At === 46 ? r + E.slice(bt + 1) : E.slice(bt)) + q, E = E.slice(0, bt);
2418
2430
  break;
@@ -2437,9 +2449,9 @@ function ll(n) {
2437
2449
  }
2438
2450
  return a(E);
2439
2451
  }
2440
- return Be.toString = function() {
2452
+ return Ie.toString = function() {
2441
2453
  return p + "";
2442
- }, Be;
2454
+ }, Ie;
2443
2455
  }
2444
2456
  function h(p, m) {
2445
2457
  var x = u((p = fn(p), p.type = "f", p)), b = Math.max(-8, Math.min(8, Math.floor(Vt(m) / 3))) * 3, T = Math.pow(10, -b), C = rr[8 + b / 3];
@@ -2452,55 +2464,55 @@ function ll(n) {
2452
2464
  formatPrefix: h
2453
2465
  };
2454
2466
  }
2455
- var Ze, Ma, Oa;
2456
- cl({
2467
+ var Ze, Oa, Da;
2468
+ dl({
2457
2469
  thousands: ",",
2458
2470
  grouping: [3],
2459
2471
  currency: ["$", ""]
2460
2472
  });
2461
- function cl(n) {
2462
- return Ze = ll(n), Ma = Ze.format, Oa = Ze.formatPrefix, Ze;
2473
+ function dl(n) {
2474
+ return Ze = hl(n), Oa = Ze.format, Da = Ze.formatPrefix, Ze;
2463
2475
  }
2464
- function ul(n) {
2476
+ function fl(n) {
2465
2477
  return Math.max(0, -Vt(Math.abs(n)));
2466
2478
  }
2467
- function hl(n, e) {
2479
+ function pl(n, e) {
2468
2480
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Vt(e) / 3))) * 3 - Vt(Math.abs(n)));
2469
2481
  }
2470
- function dl(n, e) {
2482
+ function gl(n, e) {
2471
2483
  return n = Math.abs(n), e = Math.abs(e) - n, Math.max(0, Vt(e) - Vt(n)) + 1;
2472
2484
  }
2473
- function fl(n, e, t, s) {
2485
+ function ml(n, e, t, s) {
2474
2486
  var r = Jn(n, e, t), a;
2475
2487
  switch (s = fn(s ?? ",f"), s.type) {
2476
2488
  case "s": {
2477
2489
  var i = Math.max(Math.abs(n), Math.abs(e));
2478
- return s.precision == null && !isNaN(a = hl(r, i)) && (s.precision = a), Oa(s, i);
2490
+ return s.precision == null && !isNaN(a = pl(r, i)) && (s.precision = a), Da(s, i);
2479
2491
  }
2480
2492
  case "":
2481
2493
  case "e":
2482
2494
  case "g":
2483
2495
  case "p":
2484
2496
  case "r": {
2485
- s.precision == null && !isNaN(a = dl(r, Math.max(Math.abs(n), Math.abs(e)))) && (s.precision = a - (s.type === "e"));
2497
+ s.precision == null && !isNaN(a = gl(r, Math.max(Math.abs(n), Math.abs(e)))) && (s.precision = a - (s.type === "e"));
2486
2498
  break;
2487
2499
  }
2488
2500
  case "f":
2489
2501
  case "%": {
2490
- s.precision == null && !isNaN(a = ul(r)) && (s.precision = a - (s.type === "%") * 2);
2502
+ s.precision == null && !isNaN(a = fl(r)) && (s.precision = a - (s.type === "%") * 2);
2491
2503
  break;
2492
2504
  }
2493
2505
  }
2494
- return Ma(s);
2506
+ return Oa(s);
2495
2507
  }
2496
- function pl(n) {
2508
+ function yl(n) {
2497
2509
  var e = n.domain;
2498
2510
  return n.ticks = function(t) {
2499
2511
  var s = e();
2500
- return Co(s[0], s[s.length - 1], t ?? 10);
2512
+ return Ro(s[0], s[s.length - 1], t ?? 10);
2501
2513
  }, n.tickFormat = function(t, s) {
2502
2514
  var r = e();
2503
- return fl(r[0], r[r.length - 1], t ?? 10, s);
2515
+ return ml(r[0], r[r.length - 1], t ?? 10, s);
2504
2516
  }, n.nice = function(t) {
2505
2517
  t == null && (t = 10);
2506
2518
  var s = e(), r = 0, a = s.length - 1, i = s[r], o = s[a], l, u, h = 10;
@@ -2518,13 +2530,13 @@ function pl(n) {
2518
2530
  return n;
2519
2531
  }, n;
2520
2532
  }
2521
- function Da() {
2522
- var n = Pa();
2533
+ function Ya() {
2534
+ var n = Ra();
2523
2535
  return n.copy = function() {
2524
- return ka(n, Da());
2525
- }, Ta.apply(n, arguments), pl(n);
2536
+ return Pa(n, Ya());
2537
+ }, Sa.apply(n, arguments), yl(n);
2526
2538
  }
2527
- function gl(n, e) {
2539
+ function wl(n, e) {
2528
2540
  n = n.slice();
2529
2541
  var t = 0, s = n.length - 1, r = n[t], a = n[s], i;
2530
2542
  return a < r && (i = t, t = s, s = i, i = r, r = a, a = i), n[t] = e.floor(r), n[s] = e.ceil(a), n;
@@ -2579,24 +2591,24 @@ const _s = A((n) => {
2579
2591
  n.setTime(+n + e * K);
2580
2592
  }, (n, e) => (e - n) / K, (n) => n.getMinutes());
2581
2593
  _s.range;
2582
- const ml = A((n) => {
2594
+ const xl = A((n) => {
2583
2595
  n.setUTCSeconds(0, 0);
2584
2596
  }, (n, e) => {
2585
2597
  n.setTime(+n + e * K);
2586
2598
  }, (n, e) => (e - n) / K, (n) => n.getUTCMinutes());
2587
- ml.range;
2599
+ xl.range;
2588
2600
  const Ns = A((n) => {
2589
2601
  n.setTime(n - n.getMilliseconds() - n.getSeconds() * ht - n.getMinutes() * K);
2590
2602
  }, (n, e) => {
2591
2603
  n.setTime(+n + e * dt);
2592
2604
  }, (n, e) => (e - n) / dt, (n) => n.getHours());
2593
2605
  Ns.range;
2594
- const yl = A((n) => {
2606
+ const bl = A((n) => {
2595
2607
  n.setUTCMinutes(0, 0, 0);
2596
2608
  }, (n, e) => {
2597
2609
  n.setTime(+n + e * dt);
2598
2610
  }, (n, e) => (e - n) / dt, (n) => n.getUTCHours());
2599
- yl.range;
2611
+ bl.range;
2600
2612
  const Ne = A(
2601
2613
  (n) => n.setHours(0, 0, 0, 0),
2602
2614
  (n, e) => n.setDate(n.getDate() + e),
@@ -2604,18 +2616,18 @@ const Ne = A(
2604
2616
  (n) => n.getDate() - 1
2605
2617
  );
2606
2618
  Ne.range;
2607
- const Bs = A((n) => {
2619
+ const Is = A((n) => {
2608
2620
  n.setUTCHours(0, 0, 0, 0);
2609
2621
  }, (n, e) => {
2610
2622
  n.setUTCDate(n.getUTCDate() + e);
2611
2623
  }, (n, e) => (e - n) / gt, (n) => n.getUTCDate() - 1);
2612
- Bs.range;
2613
- const wl = A((n) => {
2624
+ Is.range;
2625
+ const vl = A((n) => {
2614
2626
  n.setUTCHours(0, 0, 0, 0);
2615
2627
  }, (n, e) => {
2616
2628
  n.setUTCDate(n.getUTCDate() + e);
2617
2629
  }, (n, e) => (e - n) / gt, (n) => Math.floor(n / gt));
2618
- wl.range;
2630
+ vl.range;
2619
2631
  function Dt(n) {
2620
2632
  return A((e) => {
2621
2633
  e.setDate(e.getDate() - (e.getDay() + 7 - n) % 7), e.setHours(0, 0, 0, 0);
@@ -2623,14 +2635,14 @@ function Dt(n) {
2623
2635
  e.setDate(e.getDate() + t * 7);
2624
2636
  }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * K) / Ls);
2625
2637
  }
2626
- const Ln = Dt(0), gn = Dt(1), xl = Dt(2), bl = Dt(3), Kt = Dt(4), vl = Dt(5), Tl = Dt(6);
2638
+ const Ln = Dt(0), gn = Dt(1), Tl = Dt(2), Sl = Dt(3), Kt = Dt(4), El = Dt(5), Cl = Dt(6);
2627
2639
  Ln.range;
2628
2640
  gn.range;
2629
- xl.range;
2630
- bl.range;
2631
- Kt.range;
2632
- vl.range;
2633
2641
  Tl.range;
2642
+ Sl.range;
2643
+ Kt.range;
2644
+ El.range;
2645
+ Cl.range;
2634
2646
  function Yt(n) {
2635
2647
  return A((e) => {
2636
2648
  e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - n) % 7), e.setUTCHours(0, 0, 0, 0);
@@ -2638,26 +2650,26 @@ function Yt(n) {
2638
2650
  e.setUTCDate(e.getUTCDate() + t * 7);
2639
2651
  }, (e, t) => (t - e) / Ls);
2640
2652
  }
2641
- const Ya = Yt(0), mn = Yt(1), Sl = Yt(2), El = Yt(3), Qt = Yt(4), Cl = Yt(5), kl = Yt(6);
2642
- Ya.range;
2653
+ const Aa = Yt(0), mn = Yt(1), kl = Yt(2), Pl = Yt(3), Qt = Yt(4), Rl = Yt(5), Ml = Yt(6);
2654
+ Aa.range;
2643
2655
  mn.range;
2644
- Sl.range;
2645
- El.range;
2646
- Qt.range;
2647
- Cl.range;
2648
2656
  kl.range;
2649
- const Is = A((n) => {
2657
+ Pl.range;
2658
+ Qt.range;
2659
+ Rl.range;
2660
+ Ml.range;
2661
+ const Bs = A((n) => {
2650
2662
  n.setDate(1), n.setHours(0, 0, 0, 0);
2651
2663
  }, (n, e) => {
2652
2664
  n.setMonth(n.getMonth() + e);
2653
2665
  }, (n, e) => e.getMonth() - n.getMonth() + (e.getFullYear() - n.getFullYear()) * 12, (n) => n.getMonth());
2654
- Is.range;
2655
- const Pl = A((n) => {
2666
+ Bs.range;
2667
+ const Ol = A((n) => {
2656
2668
  n.setUTCDate(1), n.setUTCHours(0, 0, 0, 0);
2657
2669
  }, (n, e) => {
2658
2670
  n.setUTCMonth(n.getUTCMonth() + e);
2659
2671
  }, (n, e) => e.getUTCMonth() - n.getUTCMonth() + (e.getUTCFullYear() - n.getUTCFullYear()) * 12, (n) => n.getUTCMonth());
2660
- Pl.range;
2672
+ Ol.range;
2661
2673
  const mt = A((n) => {
2662
2674
  n.setMonth(0, 1), n.setHours(0, 0, 0, 0);
2663
2675
  }, (n, e) => {
@@ -2680,7 +2692,7 @@ Ot.every = (n) => !isFinite(n = Math.floor(n)) || !(n > 0) ? null : A((e) => {
2680
2692
  e.setUTCFullYear(e.getUTCFullYear() + t * n);
2681
2693
  });
2682
2694
  Ot.range;
2683
- function Rl(n, e, t, s, r, a) {
2695
+ function Dl(n, e, t, s, r, a) {
2684
2696
  const i = [
2685
2697
  [Ut, 1, ht],
2686
2698
  [Ut, 5, 5 * ht],
@@ -2716,7 +2728,7 @@ function Rl(n, e, t, s, r, a) {
2716
2728
  }
2717
2729
  return [o, l];
2718
2730
  }
2719
- const [Ml, Ol] = Rl(mt, Is, Ln, Ne, Ns, _s);
2731
+ const [Yl, Al] = Dl(mt, Bs, Ln, Ne, Ns, _s);
2720
2732
  function jn(n) {
2721
2733
  if (0 <= n.y && n.y < 100) {
2722
2734
  var e = new Date(-1, n.m, n.d, n.H, n.M, n.S, n.L);
@@ -2734,106 +2746,106 @@ function Hn(n) {
2734
2746
  function te(n, e, t) {
2735
2747
  return { y: n, m: e, d: t, H: 0, M: 0, S: 0, L: 0 };
2736
2748
  }
2737
- function Dl(n) {
2749
+ function Ll(n) {
2738
2750
  var e = n.dateTime, t = n.date, s = n.time, r = n.periods, a = n.days, i = n.shortDays, o = n.months, l = n.shortMonths, u = ee(r), h = ne(r), p = ee(a), m = ne(a), x = ee(i), b = ne(i), T = ee(o), C = ne(o), O = ee(l), N = ne(l), M = {
2739
2751
  a: Lt,
2740
2752
  A: _t,
2741
2753
  b: J,
2742
- B: Ka,
2754
+ B: Qa,
2743
2755
  c: null,
2744
2756
  d: hr,
2745
2757
  e: hr,
2746
- f: tc,
2747
- g: uc,
2748
- G: dc,
2749
- H: Kl,
2750
- I: Ql,
2751
- j: Jl,
2752
- L: Aa,
2753
- m: ec,
2754
- M: nc,
2755
- p: Qa,
2756
- q: Ja,
2758
+ f: sc,
2759
+ g: fc,
2760
+ G: gc,
2761
+ H: tc,
2762
+ I: ec,
2763
+ j: nc,
2764
+ L: La,
2765
+ m: rc,
2766
+ M: ac,
2767
+ p: Ja,
2768
+ q: ti,
2757
2769
  Q: pr,
2758
2770
  s: gr,
2759
- S: sc,
2760
- u: rc,
2761
- U: ac,
2762
- V: ic,
2763
- w: oc,
2764
- W: lc,
2771
+ S: ic,
2772
+ u: oc,
2773
+ U: lc,
2774
+ V: cc,
2775
+ w: uc,
2776
+ W: hc,
2765
2777
  x: null,
2766
2778
  X: null,
2767
- y: cc,
2768
- Y: hc,
2769
- Z: fc,
2779
+ y: dc,
2780
+ Y: pc,
2781
+ Z: mc,
2770
2782
  "%": fr
2771
2783
  }, L = {
2772
- a: ti,
2773
- A: ei,
2774
- b: ni,
2775
- B: si,
2784
+ a: ei,
2785
+ A: ni,
2786
+ b: si,
2787
+ B: ri,
2776
2788
  c: null,
2777
2789
  d: dr,
2778
2790
  e: dr,
2779
- f: yc,
2780
- g: Pc,
2781
- G: Mc,
2782
- H: pc,
2783
- I: gc,
2784
- j: mc,
2785
- L: _a,
2786
- m: wc,
2787
- M: xc,
2788
- p: ri,
2789
- q: ai,
2791
+ f: bc,
2792
+ g: Oc,
2793
+ G: Yc,
2794
+ H: yc,
2795
+ I: wc,
2796
+ j: xc,
2797
+ L: Na,
2798
+ m: vc,
2799
+ M: Tc,
2800
+ p: ai,
2801
+ q: ii,
2790
2802
  Q: pr,
2791
2803
  s: gr,
2792
- S: bc,
2793
- u: vc,
2794
- U: Tc,
2795
- V: Sc,
2796
- w: Ec,
2797
- W: Cc,
2804
+ S: Sc,
2805
+ u: Ec,
2806
+ U: Cc,
2807
+ V: kc,
2808
+ w: Pc,
2809
+ W: Rc,
2798
2810
  x: null,
2799
2811
  X: null,
2800
- y: kc,
2801
- Y: Rc,
2802
- Z: Oc,
2812
+ y: Mc,
2813
+ Y: Dc,
2814
+ Z: Ac,
2803
2815
  "%": fr
2804
- }, I = {
2805
- a: Be,
2816
+ }, B = {
2817
+ a: Ie,
2806
2818
  A: E,
2807
2819
  b: ct,
2808
2820
  B: q,
2809
2821
  c: bt,
2810
2822
  d: cr,
2811
2823
  e: cr,
2812
- f: Wl,
2824
+ f: Vl,
2813
2825
  g: lr,
2814
2826
  G: or,
2815
2827
  H: ur,
2816
2828
  I: ur,
2817
- j: zl,
2818
- L: Hl,
2819
- m: Fl,
2820
- M: ql,
2829
+ j: Hl,
2830
+ L: Gl,
2831
+ m: jl,
2832
+ M: Wl,
2821
2833
  p: Nn,
2822
- q: Zl,
2823
- Q: Gl,
2824
- s: Vl,
2825
- S: jl,
2826
- u: Nl,
2827
- U: Bl,
2828
- V: Il,
2829
- w: _l,
2830
- W: Ul,
2831
- x: Ie,
2834
+ q: ql,
2835
+ Q: Ql,
2836
+ s: Jl,
2837
+ S: Xl,
2838
+ u: Ul,
2839
+ U: $l,
2840
+ V: Zl,
2841
+ w: Bl,
2842
+ W: Fl,
2843
+ x: Be,
2832
2844
  X: At,
2833
2845
  y: lr,
2834
2846
  Y: or,
2835
- Z: $l,
2836
- "%": Xl
2847
+ Z: zl,
2848
+ "%": Kl
2837
2849
  };
2838
2850
  M.x = v(t, M), M.X = v(s, M), M.c = v(e, M), L.x = v(t, L), L.X = v(s, L), L.c = v(e, L);
2839
2851
  function v(w, S) {
@@ -2852,7 +2864,7 @@ function Dl(n) {
2852
2864
  if ("s" in y) return new Date(y.s * 1e3 + ("L" in y ? y.L : 0));
2853
2865
  if (S && !("Z" in y) && (y.Z = 0), "p" in y && (y.H = y.H % 12 + y.p * 12), y.m === void 0 && (y.m = "q" in y ? y.q : 0), "V" in y) {
2854
2866
  if (y.V < 1 || y.V > 53) return null;
2855
- "w" in y || (y.w = 1), "Z" in y ? (D = Hn(te(y.y, 0, 1)), X = D.getUTCDay(), D = X > 4 || X === 0 ? mn.ceil(D) : mn(D), D = Bs.offset(D, (y.V - 1) * 7), y.y = D.getUTCFullYear(), y.m = D.getUTCMonth(), y.d = D.getUTCDate() + (y.w + 6) % 7) : (D = jn(te(y.y, 0, 1)), X = D.getDay(), D = X > 4 || X === 0 ? gn.ceil(D) : gn(D), D = Ne.offset(D, (y.V - 1) * 7), y.y = D.getFullYear(), y.m = D.getMonth(), y.d = D.getDate() + (y.w + 6) % 7);
2867
+ "w" in y || (y.w = 1), "Z" in y ? (D = Hn(te(y.y, 0, 1)), X = D.getUTCDay(), D = X > 4 || X === 0 ? mn.ceil(D) : mn(D), D = Is.offset(D, (y.V - 1) * 7), y.y = D.getUTCFullYear(), y.m = D.getUTCMonth(), y.d = D.getUTCDate() + (y.w + 6) % 7) : (D = jn(te(y.y, 0, 1)), X = D.getDay(), D = X > 4 || X === 0 ? gn.ceil(D) : gn(D), D = Ne.offset(D, (y.V - 1) * 7), y.y = D.getFullYear(), y.m = D.getMonth(), y.d = D.getDate() + (y.w + 6) % 7);
2856
2868
  } else ("W" in y || "U" in y) && ("w" in y || (y.w = "u" in y ? y.u % 7 : "W" in y ? 1 : 0), X = "Z" in y ? Hn(te(y.y, 0, 1)).getUTCDay() : jn(te(y.y, 0, 1)).getDay(), y.m = 0, y.d = "W" in y ? (y.w + 6) % 7 + y.W * 7 - (X + 5) % 7 : y.w + y.U * 7 - (X + 6) % 7);
2857
2869
  return "Z" in y ? (y.H += y.Z / 100 | 0, y.M += y.Z % 100, Hn(y)) : jn(y);
2858
2870
  };
@@ -2861,7 +2873,7 @@ function Dl(n) {
2861
2873
  for (var j = 0, D = S.length, X = k.length, G, Pt; j < D; ) {
2862
2874
  if (y >= X) return -1;
2863
2875
  if (G = S.charCodeAt(j++), G === 37) {
2864
- if (G = S.charAt(j++), Pt = I[G in ir ? S.charAt(j++) : G], !Pt || (y = Pt(w, k, y)) < 0) return -1;
2876
+ if (G = S.charAt(j++), Pt = B[G in ir ? S.charAt(j++) : G], !Pt || (y = Pt(w, k, y)) < 0) return -1;
2865
2877
  } else if (G != k.charCodeAt(y++))
2866
2878
  return -1;
2867
2879
  }
@@ -2871,7 +2883,7 @@ function Dl(n) {
2871
2883
  var y = u.exec(S.slice(k));
2872
2884
  return y ? (w.p = h.get(y[0].toLowerCase()), k + y[0].length) : -1;
2873
2885
  }
2874
- function Be(w, S, k) {
2886
+ function Ie(w, S, k) {
2875
2887
  var y = x.exec(S.slice(k));
2876
2888
  return y ? (w.w = b.get(y[0].toLowerCase()), k + y[0].length) : -1;
2877
2889
  }
@@ -2890,7 +2902,7 @@ function Dl(n) {
2890
2902
  function bt(w, S, k) {
2891
2903
  return kt(w, e, S, k);
2892
2904
  }
2893
- function Ie(w, S, k) {
2905
+ function Be(w, S, k) {
2894
2906
  return kt(w, t, S, k);
2895
2907
  }
2896
2908
  function At(w, S, k) {
@@ -2905,31 +2917,31 @@ function Dl(n) {
2905
2917
  function J(w) {
2906
2918
  return l[w.getMonth()];
2907
2919
  }
2908
- function Ka(w) {
2920
+ function Qa(w) {
2909
2921
  return o[w.getMonth()];
2910
2922
  }
2911
- function Qa(w) {
2923
+ function Ja(w) {
2912
2924
  return r[+(w.getHours() >= 12)];
2913
2925
  }
2914
- function Ja(w) {
2926
+ function ti(w) {
2915
2927
  return 1 + ~~(w.getMonth() / 3);
2916
2928
  }
2917
- function ti(w) {
2929
+ function ei(w) {
2918
2930
  return i[w.getUTCDay()];
2919
2931
  }
2920
- function ei(w) {
2932
+ function ni(w) {
2921
2933
  return a[w.getUTCDay()];
2922
2934
  }
2923
- function ni(w) {
2935
+ function si(w) {
2924
2936
  return l[w.getUTCMonth()];
2925
2937
  }
2926
- function si(w) {
2938
+ function ri(w) {
2927
2939
  return o[w.getUTCMonth()];
2928
2940
  }
2929
- function ri(w) {
2941
+ function ai(w) {
2930
2942
  return r[+(w.getUTCHours() >= 12)];
2931
2943
  }
2932
- function ai(w) {
2944
+ function ii(w) {
2933
2945
  return 1 + ~~(w.getUTCMonth() / 3);
2934
2946
  }
2935
2947
  return {
@@ -2959,37 +2971,37 @@ function Dl(n) {
2959
2971
  }
2960
2972
  };
2961
2973
  }
2962
- var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/, Yl = /^%/, Al = /[\\^$*+?|[\]().{}]/g;
2974
+ var ir = { "-": "", _: " ", 0: "0" }, _ = /^\s*\d+/, _l = /^%/, Nl = /[\\^$*+?|[\]().{}]/g;
2963
2975
  function P(n, e, t) {
2964
2976
  var s = n < 0 ? "-" : "", r = (s ? -n : n) + "", a = r.length;
2965
2977
  return s + (a < t ? new Array(t - a + 1).join(e) + r : r);
2966
2978
  }
2967
- function Ll(n) {
2968
- return n.replace(Al, "\\$&");
2979
+ function Il(n) {
2980
+ return n.replace(Nl, "\\$&");
2969
2981
  }
2970
2982
  function ee(n) {
2971
- return new RegExp("^(?:" + n.map(Ll).join("|") + ")", "i");
2983
+ return new RegExp("^(?:" + n.map(Il).join("|") + ")", "i");
2972
2984
  }
2973
2985
  function ne(n) {
2974
2986
  return new Map(n.map((e, t) => [e.toLowerCase(), t]));
2975
2987
  }
2976
- function _l(n, e, t) {
2988
+ function Bl(n, e, t) {
2977
2989
  var s = _.exec(e.slice(t, t + 1));
2978
2990
  return s ? (n.w = +s[0], t + s[0].length) : -1;
2979
2991
  }
2980
- function Nl(n, e, t) {
2992
+ function Ul(n, e, t) {
2981
2993
  var s = _.exec(e.slice(t, t + 1));
2982
2994
  return s ? (n.u = +s[0], t + s[0].length) : -1;
2983
2995
  }
2984
- function Bl(n, e, t) {
2996
+ function $l(n, e, t) {
2985
2997
  var s = _.exec(e.slice(t, t + 2));
2986
2998
  return s ? (n.U = +s[0], t + s[0].length) : -1;
2987
2999
  }
2988
- function Il(n, e, t) {
3000
+ function Zl(n, e, t) {
2989
3001
  var s = _.exec(e.slice(t, t + 2));
2990
3002
  return s ? (n.V = +s[0], t + s[0].length) : -1;
2991
3003
  }
2992
- function Ul(n, e, t) {
3004
+ function Fl(n, e, t) {
2993
3005
  var s = _.exec(e.slice(t, t + 2));
2994
3006
  return s ? (n.W = +s[0], t + s[0].length) : -1;
2995
3007
  }
@@ -3001,15 +3013,15 @@ function lr(n, e, t) {
3001
3013
  var s = _.exec(e.slice(t, t + 2));
3002
3014
  return s ? (n.y = +s[0] + (+s[0] > 68 ? 1900 : 2e3), t + s[0].length) : -1;
3003
3015
  }
3004
- function $l(n, e, t) {
3016
+ function zl(n, e, t) {
3005
3017
  var s = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t, t + 6));
3006
3018
  return s ? (n.Z = s[1] ? 0 : -(s[2] + (s[3] || "00")), t + s[0].length) : -1;
3007
3019
  }
3008
- function Zl(n, e, t) {
3020
+ function ql(n, e, t) {
3009
3021
  var s = _.exec(e.slice(t, t + 1));
3010
3022
  return s ? (n.q = s[0] * 3 - 3, t + s[0].length) : -1;
3011
3023
  }
3012
- function Fl(n, e, t) {
3024
+ function jl(n, e, t) {
3013
3025
  var s = _.exec(e.slice(t, t + 2));
3014
3026
  return s ? (n.m = s[0] - 1, t + s[0].length) : -1;
3015
3027
  }
@@ -3017,7 +3029,7 @@ function cr(n, e, t) {
3017
3029
  var s = _.exec(e.slice(t, t + 2));
3018
3030
  return s ? (n.d = +s[0], t + s[0].length) : -1;
3019
3031
  }
3020
- function zl(n, e, t) {
3032
+ function Hl(n, e, t) {
3021
3033
  var s = _.exec(e.slice(t, t + 3));
3022
3034
  return s ? (n.m = 0, n.d = +s[0], t + s[0].length) : -1;
3023
3035
  }
@@ -3025,159 +3037,159 @@ function ur(n, e, t) {
3025
3037
  var s = _.exec(e.slice(t, t + 2));
3026
3038
  return s ? (n.H = +s[0], t + s[0].length) : -1;
3027
3039
  }
3028
- function ql(n, e, t) {
3040
+ function Wl(n, e, t) {
3029
3041
  var s = _.exec(e.slice(t, t + 2));
3030
3042
  return s ? (n.M = +s[0], t + s[0].length) : -1;
3031
3043
  }
3032
- function jl(n, e, t) {
3044
+ function Xl(n, e, t) {
3033
3045
  var s = _.exec(e.slice(t, t + 2));
3034
3046
  return s ? (n.S = +s[0], t + s[0].length) : -1;
3035
3047
  }
3036
- function Hl(n, e, t) {
3048
+ function Gl(n, e, t) {
3037
3049
  var s = _.exec(e.slice(t, t + 3));
3038
3050
  return s ? (n.L = +s[0], t + s[0].length) : -1;
3039
3051
  }
3040
- function Wl(n, e, t) {
3052
+ function Vl(n, e, t) {
3041
3053
  var s = _.exec(e.slice(t, t + 6));
3042
3054
  return s ? (n.L = Math.floor(s[0] / 1e3), t + s[0].length) : -1;
3043
3055
  }
3044
- function Xl(n, e, t) {
3045
- var s = Yl.exec(e.slice(t, t + 1));
3056
+ function Kl(n, e, t) {
3057
+ var s = _l.exec(e.slice(t, t + 1));
3046
3058
  return s ? t + s[0].length : -1;
3047
3059
  }
3048
- function Gl(n, e, t) {
3060
+ function Ql(n, e, t) {
3049
3061
  var s = _.exec(e.slice(t));
3050
3062
  return s ? (n.Q = +s[0], t + s[0].length) : -1;
3051
3063
  }
3052
- function Vl(n, e, t) {
3064
+ function Jl(n, e, t) {
3053
3065
  var s = _.exec(e.slice(t));
3054
3066
  return s ? (n.s = +s[0], t + s[0].length) : -1;
3055
3067
  }
3056
3068
  function hr(n, e) {
3057
3069
  return P(n.getDate(), e, 2);
3058
3070
  }
3059
- function Kl(n, e) {
3071
+ function tc(n, e) {
3060
3072
  return P(n.getHours(), e, 2);
3061
3073
  }
3062
- function Ql(n, e) {
3074
+ function ec(n, e) {
3063
3075
  return P(n.getHours() % 12 || 12, e, 2);
3064
3076
  }
3065
- function Jl(n, e) {
3077
+ function nc(n, e) {
3066
3078
  return P(1 + Ne.count(mt(n), n), e, 3);
3067
3079
  }
3068
- function Aa(n, e) {
3080
+ function La(n, e) {
3069
3081
  return P(n.getMilliseconds(), e, 3);
3070
3082
  }
3071
- function tc(n, e) {
3072
- return Aa(n, e) + "000";
3083
+ function sc(n, e) {
3084
+ return La(n, e) + "000";
3073
3085
  }
3074
- function ec(n, e) {
3086
+ function rc(n, e) {
3075
3087
  return P(n.getMonth() + 1, e, 2);
3076
3088
  }
3077
- function nc(n, e) {
3089
+ function ac(n, e) {
3078
3090
  return P(n.getMinutes(), e, 2);
3079
3091
  }
3080
- function sc(n, e) {
3092
+ function ic(n, e) {
3081
3093
  return P(n.getSeconds(), e, 2);
3082
3094
  }
3083
- function rc(n) {
3095
+ function oc(n) {
3084
3096
  var e = n.getDay();
3085
3097
  return e === 0 ? 7 : e;
3086
3098
  }
3087
- function ac(n, e) {
3099
+ function lc(n, e) {
3088
3100
  return P(Ln.count(mt(n) - 1, n), e, 2);
3089
3101
  }
3090
- function La(n) {
3102
+ function _a(n) {
3091
3103
  var e = n.getDay();
3092
3104
  return e >= 4 || e === 0 ? Kt(n) : Kt.ceil(n);
3093
3105
  }
3094
- function ic(n, e) {
3095
- return n = La(n), P(Kt.count(mt(n), n) + (mt(n).getDay() === 4), e, 2);
3106
+ function cc(n, e) {
3107
+ return n = _a(n), P(Kt.count(mt(n), n) + (mt(n).getDay() === 4), e, 2);
3096
3108
  }
3097
- function oc(n) {
3109
+ function uc(n) {
3098
3110
  return n.getDay();
3099
3111
  }
3100
- function lc(n, e) {
3112
+ function hc(n, e) {
3101
3113
  return P(gn.count(mt(n) - 1, n), e, 2);
3102
3114
  }
3103
- function cc(n, e) {
3115
+ function dc(n, e) {
3104
3116
  return P(n.getFullYear() % 100, e, 2);
3105
3117
  }
3106
- function uc(n, e) {
3107
- return n = La(n), P(n.getFullYear() % 100, e, 2);
3118
+ function fc(n, e) {
3119
+ return n = _a(n), P(n.getFullYear() % 100, e, 2);
3108
3120
  }
3109
- function hc(n, e) {
3121
+ function pc(n, e) {
3110
3122
  return P(n.getFullYear() % 1e4, e, 4);
3111
3123
  }
3112
- function dc(n, e) {
3124
+ function gc(n, e) {
3113
3125
  var t = n.getDay();
3114
3126
  return n = t >= 4 || t === 0 ? Kt(n) : Kt.ceil(n), P(n.getFullYear() % 1e4, e, 4);
3115
3127
  }
3116
- function fc(n) {
3128
+ function mc(n) {
3117
3129
  var e = n.getTimezoneOffset();
3118
3130
  return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
3119
3131
  }
3120
3132
  function dr(n, e) {
3121
3133
  return P(n.getUTCDate(), e, 2);
3122
3134
  }
3123
- function pc(n, e) {
3135
+ function yc(n, e) {
3124
3136
  return P(n.getUTCHours(), e, 2);
3125
3137
  }
3126
- function gc(n, e) {
3138
+ function wc(n, e) {
3127
3139
  return P(n.getUTCHours() % 12 || 12, e, 2);
3128
3140
  }
3129
- function mc(n, e) {
3130
- return P(1 + Bs.count(Ot(n), n), e, 3);
3141
+ function xc(n, e) {
3142
+ return P(1 + Is.count(Ot(n), n), e, 3);
3131
3143
  }
3132
- function _a(n, e) {
3144
+ function Na(n, e) {
3133
3145
  return P(n.getUTCMilliseconds(), e, 3);
3134
3146
  }
3135
- function yc(n, e) {
3136
- return _a(n, e) + "000";
3147
+ function bc(n, e) {
3148
+ return Na(n, e) + "000";
3137
3149
  }
3138
- function wc(n, e) {
3150
+ function vc(n, e) {
3139
3151
  return P(n.getUTCMonth() + 1, e, 2);
3140
3152
  }
3141
- function xc(n, e) {
3153
+ function Tc(n, e) {
3142
3154
  return P(n.getUTCMinutes(), e, 2);
3143
3155
  }
3144
- function bc(n, e) {
3156
+ function Sc(n, e) {
3145
3157
  return P(n.getUTCSeconds(), e, 2);
3146
3158
  }
3147
- function vc(n) {
3159
+ function Ec(n) {
3148
3160
  var e = n.getUTCDay();
3149
3161
  return e === 0 ? 7 : e;
3150
3162
  }
3151
- function Tc(n, e) {
3152
- return P(Ya.count(Ot(n) - 1, n), e, 2);
3163
+ function Cc(n, e) {
3164
+ return P(Aa.count(Ot(n) - 1, n), e, 2);
3153
3165
  }
3154
- function Na(n) {
3166
+ function Ia(n) {
3155
3167
  var e = n.getUTCDay();
3156
3168
  return e >= 4 || e === 0 ? Qt(n) : Qt.ceil(n);
3157
3169
  }
3158
- function Sc(n, e) {
3159
- return n = Na(n), P(Qt.count(Ot(n), n) + (Ot(n).getUTCDay() === 4), e, 2);
3170
+ function kc(n, e) {
3171
+ return n = Ia(n), P(Qt.count(Ot(n), n) + (Ot(n).getUTCDay() === 4), e, 2);
3160
3172
  }
3161
- function Ec(n) {
3173
+ function Pc(n) {
3162
3174
  return n.getUTCDay();
3163
3175
  }
3164
- function Cc(n, e) {
3176
+ function Rc(n, e) {
3165
3177
  return P(mn.count(Ot(n) - 1, n), e, 2);
3166
3178
  }
3167
- function kc(n, e) {
3179
+ function Mc(n, e) {
3168
3180
  return P(n.getUTCFullYear() % 100, e, 2);
3169
3181
  }
3170
- function Pc(n, e) {
3171
- return n = Na(n), P(n.getUTCFullYear() % 100, e, 2);
3182
+ function Oc(n, e) {
3183
+ return n = Ia(n), P(n.getUTCFullYear() % 100, e, 2);
3172
3184
  }
3173
- function Rc(n, e) {
3185
+ function Dc(n, e) {
3174
3186
  return P(n.getUTCFullYear() % 1e4, e, 4);
3175
3187
  }
3176
- function Mc(n, e) {
3188
+ function Yc(n, e) {
3177
3189
  var t = n.getUTCDay();
3178
3190
  return n = t >= 4 || t === 0 ? Qt(n) : Qt.ceil(n), P(n.getUTCFullYear() % 1e4, e, 4);
3179
3191
  }
3180
- function Oc() {
3192
+ function Ac() {
3181
3193
  return "+0000";
3182
3194
  }
3183
3195
  function fr() {
@@ -3190,7 +3202,7 @@ function gr(n) {
3190
3202
  return Math.floor(+n / 1e3);
3191
3203
  }
3192
3204
  var Nt, Ba;
3193
- Dc({
3205
+ Lc({
3194
3206
  dateTime: "%x, %X",
3195
3207
  date: "%-m/%-d/%Y",
3196
3208
  time: "%-I:%M:%S %p",
@@ -3200,47 +3212,47 @@ Dc({
3200
3212
  months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
3201
3213
  shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
3202
3214
  });
3203
- function Dc(n) {
3204
- return Nt = Dl(n), Ba = Nt.format, Nt.parse, Nt.utcFormat, Nt.utcParse, Nt;
3215
+ function Lc(n) {
3216
+ return Nt = Ll(n), Ba = Nt.format, Nt.parse, Nt.utcFormat, Nt.utcParse, Nt;
3205
3217
  }
3206
- function Yc(n) {
3218
+ function _c(n) {
3207
3219
  return new Date(n);
3208
3220
  }
3209
- function Ac(n) {
3221
+ function Nc(n) {
3210
3222
  return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
3211
3223
  }
3212
- function Ia(n, e, t, s, r, a, i, o, l, u) {
3213
- var h = Pa(), p = h.invert, m = h.domain, x = u(".%L"), b = u(":%S"), T = u("%I:%M"), C = u("%I %p"), O = u("%a %d"), N = u("%b %d"), M = u("%B"), L = u("%Y");
3214
- function I(v) {
3224
+ function Ua(n, e, t, s, r, a, i, o, l, u) {
3225
+ var h = Ra(), p = h.invert, m = h.domain, x = u(".%L"), b = u(":%S"), T = u("%I:%M"), C = u("%I %p"), O = u("%a %d"), N = u("%b %d"), M = u("%B"), L = u("%Y");
3226
+ function B(v) {
3215
3227
  return (l(v) < v ? x : o(v) < v ? b : i(v) < v ? T : a(v) < v ? C : s(v) < v ? r(v) < v ? O : N : t(v) < v ? M : L)(v);
3216
3228
  }
3217
3229
  return h.invert = function(v) {
3218
3230
  return new Date(p(v));
3219
3231
  }, h.domain = function(v) {
3220
- return arguments.length ? m(Array.from(v, Ac)) : m().map(Yc);
3232
+ return arguments.length ? m(Array.from(v, Nc)) : m().map(_c);
3221
3233
  }, h.ticks = function(v) {
3222
3234
  var U = m();
3223
3235
  return n(U[0], U[U.length - 1], v ?? 10);
3224
3236
  }, h.tickFormat = function(v, U) {
3225
- return U == null ? I : u(U);
3237
+ return U == null ? B : u(U);
3226
3238
  }, h.nice = function(v) {
3227
3239
  var U = m();
3228
- return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(gl(U, v)) : h;
3240
+ return (!v || typeof v.range != "function") && (v = e(U[0], U[U.length - 1], v ?? 10)), v ? m(wl(U, v)) : h;
3229
3241
  }, h.copy = function() {
3230
- return ka(h, Ia(n, e, t, s, r, a, i, o, l, u));
3242
+ return Pa(h, Ua(n, e, t, s, r, a, i, o, l, u));
3231
3243
  }, h;
3232
3244
  }
3233
- function Lc() {
3234
- return Ta.apply(Ia(Ml, Ol, mt, Is, Ln, Ne, Ns, _s, Ut, Ba).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
3245
+ function Ic() {
3246
+ return Sa.apply(Ua(Yl, Al, mt, Bs, Ln, Ne, Ns, _s, Ut, Ba).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
3235
3247
  }
3236
- const Ua = d.enum(["linear", "time"]), $a = d.object({
3248
+ const $a = d.enum(["linear", "time"]), Za = d.object({
3237
3249
  tickSpacing: d.number().default(75),
3238
- type: Ua.optional().default("linear")
3250
+ type: $a.optional().default("linear")
3239
3251
  }), mr = (n) => {
3240
- const e = $a.parse(n);
3241
- return Bc[e.type](e);
3252
+ const e = Za.parse(n);
3253
+ return $c[e.type](e);
3242
3254
  };
3243
- class _c {
3255
+ class Bc {
3244
3256
  constructor(e) {
3245
3257
  c(this, "props");
3246
3258
  this.props = e;
@@ -3249,8 +3261,8 @@ class _c {
3249
3261
  const s = [0, t], r = [
3250
3262
  new F(e.pos(0)).date(),
3251
3263
  new F(e.pos(1)).date()
3252
- ], a = Lc().domain(r).range(s);
3253
- return a.ticks(Za(t, this.props.tickSpacing)).map((o) => ({
3264
+ ], a = Ic().domain(r).range(s);
3265
+ return a.ticks(Fa(t, this.props.tickSpacing)).map((o) => ({
3254
3266
  label: this.tickLabel(o),
3255
3267
  position: a(o)
3256
3268
  }));
@@ -3265,13 +3277,13 @@ class _c {
3265
3277
  return t.getSeconds() === 0 && t.getMilliseconds() === 0 && (s = `${t.getHours()}:${t.getMinutes().toString().padStart(2, "0")}`), s;
3266
3278
  }
3267
3279
  }
3268
- class Nc {
3280
+ class Uc {
3269
3281
  constructor(e) {
3270
3282
  c(this, "props");
3271
3283
  this.props = e;
3272
3284
  }
3273
3285
  generate({ decimalToDataScale: e, size: t }) {
3274
- const s = [0, t], r = [e.pos(0), e.pos(1)], a = Da().domain(r).range(s), i = Za(t, this.props.tickSpacing);
3286
+ const s = [0, t], r = [e.pos(0), e.pos(1)], a = Ya().domain(r).range(s), i = Fa(t, this.props.tickSpacing);
3275
3287
  return a.ticks(i).map((l) => ({
3276
3288
  label: this.tickLabel(l),
3277
3289
  position: a(l)
@@ -3281,21 +3293,21 @@ class Nc {
3281
3293
  return e.toString();
3282
3294
  }
3283
3295
  }
3284
- const Za = (n, e) => {
3296
+ const Fa = (n, e) => {
3285
3297
  const t = Math.floor(n / e);
3286
3298
  return t > 0 ? t : 1;
3287
- }, Bc = {
3288
- linear: (n) => new Nc(n),
3289
- time: (n) => new _c(n)
3290
- }, Fa = $a.extend({
3299
+ }, $c = {
3300
+ linear: (n) => new Uc(n),
3301
+ time: (n) => new Bc(n)
3302
+ }, za = Za.extend({
3291
3303
  color: Y.z,
3292
- type: Ua.optional().default("linear"),
3304
+ type: $a.optional().default("linear"),
3293
3305
  font: d.string(),
3294
3306
  showGrid: d.boolean().optional().default(!0),
3295
3307
  location: Tt.outer,
3296
3308
  gridColor: Y.z
3297
3309
  }), rt = 4;
3298
- let Ic = class {
3310
+ let Zc = class {
3299
3311
  constructor(e, t) {
3300
3312
  c(this, "ctx");
3301
3313
  c(this, "state");
@@ -3303,7 +3315,7 @@ let Ic = class {
3303
3315
  this.ctx = e, this.state = t, this.tickFactory = mr(this.state);
3304
3316
  }
3305
3317
  setState(e) {
3306
- this.state = fi(Fa, e), this.tickFactory = mr(e);
3318
+ this.state = pi(za, e), this.tickFactory = mr(e);
3307
3319
  }
3308
3320
  render(e) {
3309
3321
  const { lower2d: t } = this.ctx;
@@ -3398,7 +3410,7 @@ const je = (n, e) => f.construct(
3398
3410
  f.height(n) + e.y * 2
3399
3411
  );
3400
3412
  class yn {
3401
- constructor(e, t = B.XY.IDENTITY) {
3413
+ constructor(e, t = I.XY.IDENTITY) {
3402
3414
  c(this, "scale_");
3403
3415
  c(this, "wrapped");
3404
3416
  this.wrapped = e, this.scale_ = t;
@@ -3781,18 +3793,18 @@ const yr = /(\d+(\.\d+)?)px/, Wn = (n, e) => {
3781
3793
  if (t == null) return n;
3782
3794
  const s = e.dim(t);
3783
3795
  return n.replace(yr, `${s}px`);
3784
- }, Uc = `precision mediump float;
3796
+ }, Fc = `precision mediump float;
3785
3797
 
3786
3798
  void main(void) {
3787
3799
  gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
3788
3800
  }
3789
- `, $c = `attribute vec4 a_position;
3801
+ `, zc = `attribute vec4 a_position;
3790
3802
 
3791
3803
  void main(void) {
3792
3804
  gl_Position = a_position;
3793
3805
  }
3794
- `, wr = (n) => new Error(`failed to compile webgl program: ${n}`), Zc = new Error("null shader encountered");
3795
- class za {
3806
+ `, wr = (n) => new Error(`failed to compile webgl program: ${n}`), qc = new Error("null shader encountered");
3807
+ class qa {
3796
3808
  /**
3797
3809
  * @constructor compiles the given vertex and fragment shaders under the given
3798
3810
  * render context into a program.
@@ -3851,7 +3863,7 @@ class za {
3851
3863
  }
3852
3864
  compileShader(e, t) {
3853
3865
  const s = this.ctx.gl, r = s.createShader(t);
3854
- if (r == null) throw Zc;
3866
+ if (r == null) throw qc;
3855
3867
  if (s.shaderSource(r, e), s.compileShader(r), !s.getShaderParameter(r, s.COMPILE_STATUS)) {
3856
3868
  const i = s.getShaderInfoLog(r);
3857
3869
  throw s.deleteShader(r), wr(i ?? "unknown");
@@ -3859,14 +3871,14 @@ class za {
3859
3871
  s.attachShader(this.prog, r);
3860
3872
  }
3861
3873
  }
3862
- const Fc = new Float32Array([0, 0, 0, 0, 0, 0]);
3863
- class zc extends za {
3874
+ const jc = new Float32Array([0, 0, 0, 0, 0, 0]);
3875
+ class Hc extends qa {
3864
3876
  constructor(t) {
3865
- super(t, $c, Uc);
3877
+ super(t, zc, Fc);
3866
3878
  c(this, "positionBuffer");
3867
3879
  const s = t.gl.createBuffer();
3868
3880
  if (s == null) throw new pt("webgl: failed to create buffer");
3869
- this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, Fc, t.gl.STATIC_DRAW);
3881
+ this.positionBuffer = s, t.gl.bindBuffer(t.gl.ARRAY_BUFFER, this.positionBuffer), t.gl.bufferData(t.gl.ARRAY_BUFFER, jc, t.gl.STATIC_DRAW);
3870
3882
  }
3871
3883
  exec() {
3872
3884
  const { gl: t } = this.ctx, s = t.getAttribLocation(this.prog, "a_position");
@@ -3876,7 +3888,7 @@ class zc extends za {
3876
3888
  }
3877
3889
  }
3878
3890
  const xr = { high: 1, low: 0 }, br = Pr.hz(45);
3879
- class qc {
3891
+ class Wc {
3880
3892
  constructor(e) {
3881
3893
  /** To lock things so renders don't collide */
3882
3894
  c(this, "mutex", new ms());
@@ -3901,8 +3913,7 @@ class qc {
3901
3913
  let t;
3902
3914
  e.priority === "high" && (t = await this.mutex.acquire());
3903
3915
  const s = this.requests.get(e.key);
3904
- if (s == null)
3905
- this.requests.set(e.key, e);
3916
+ if (s == null) this.requests.set(e.key, e);
3906
3917
  else {
3907
3918
  const r = xr[e.priority] >= xr[s.priority], a = e.canvases.length >= s.canvases.length;
3908
3919
  r && a && this.requests.set(e.key, e);
@@ -3996,7 +4007,7 @@ let z = (et = class {
3996
4007
  const u = () => {
3997
4008
  this.gl.flush(), this.gl.finish();
3998
4009
  };
3999
- this.loop = new qc(u), this.region = f.ZERO, this.dpr = 1, this.os === "Windows" && (this.clearProgram = new zc(this));
4010
+ this.loop = new Wc(u), this.region = f.ZERO, this.dpr = 1, this.os === "Windows" && (this.clearProgram = new Hc(this));
4000
4011
  }
4001
4012
  static create(e, t, s, r, a) {
4002
4013
  const i = new et(t, s, r, a);
@@ -4031,11 +4042,11 @@ let z = (et = class {
4031
4042
  * in the canvas.
4032
4043
  */
4033
4044
  scaleRegion(e) {
4034
- return new B.XY(
4045
+ return new I.XY(
4035
4046
  // Accept a value in decimal.
4036
- B.Scale.scale(0, 1).scale(f.width(e)).translate(f.left(e)).reBound(f.width(this.region)).scale(-1, 1),
4047
+ I.Scale.scale(0, 1).scale(f.width(e)).translate(f.left(e)).reBound(f.width(this.region)).scale(-1, 1),
4037
4048
  // Accept a value in decimal.
4038
- B.Scale.scale(0, 1).scale(f.height(e)).invert().translate(f.top(e)).reBound(f.height(this.region)).scale(-1, 1).invert()
4049
+ I.Scale.scale(0, 1).scale(f.height(e)).invert().translate(f.top(e)).reBound(f.height(this.region)).scale(-1, 1).invert()
4039
4050
  );
4040
4051
  }
4041
4052
  scissor(e, t = g.ZERO, s) {
@@ -4062,7 +4073,7 @@ let z = (et = class {
4062
4073
  const r = je(t, s);
4063
4074
  e.clearRect(...g.couple(f.topLeft(r)), ...Ge.couple(f.dims(r)));
4064
4075
  }
4065
- }, c(et, "CONTEXT_KEY", vi.B("render-context")), et);
4076
+ }, c(et, "CONTEXT_KEY", Ti.B("render-context")), et);
4066
4077
  const yt = "layout", vr = "data", St = "tool";
4067
4078
  var ot;
4068
4079
  let W = (ot = class {
@@ -4083,7 +4094,7 @@ let W = (ot = class {
4083
4094
  static requestRender(e, t) {
4084
4095
  this.useRequest(e)(t);
4085
4096
  }
4086
- }, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot), jc = class {
4097
+ }, c(ot, "CONTEXT_KEY", "pluto-vis-renderer"), ot), Xc = class {
4087
4098
  constructor() {
4088
4099
  c(this, "prevErase", f.ZERO);
4089
4100
  }
@@ -4091,7 +4102,7 @@ let W = (ot = class {
4091
4102
  !f.equals(s, t) && !f.equals(this.prevErase, s) ? (e.erase(s, r, ...a), this.prevErase = s) : e.erase(t, r, ...a);
4092
4103
  }
4093
4104
  };
4094
- const _n = Fa.extend({
4105
+ const _n = za.extend({
4095
4106
  bounds: R.bounds.optional(),
4096
4107
  autoBounds: d.object({
4097
4108
  lower: d.boolean().optional().default(!0),
@@ -4102,35 +4113,35 @@ const _n = Fa.extend({
4102
4113
  size: d.number().optional().default(0),
4103
4114
  label: d.string().optional().default(""),
4104
4115
  labelSize: d.number().optional().default(0)
4105
- }).partial({ color: !0, font: !0, gridColor: !0 }), Hc = 2, Wc = 7, Xc = (n, e) => R.contains(
4116
+ }).partial({ color: !0, font: !0, gridColor: !0 }), Gc = 2, Vc = 7, Kc = (n, e) => R.contains(
4106
4117
  {
4107
- lower: n - Wc,
4108
- upper: n + Hc
4118
+ lower: n - Vc,
4119
+ upper: n + Gc
4109
4120
  },
4110
4121
  e
4111
- ), Gc = R.DECIMAL, Tr = F.now(), Vc = {
4122
+ ), Qc = R.DECIMAL, Tr = F.now(), Jc = {
4112
4123
  lower: Number(Tr.valueOf()),
4113
4124
  upper: Number(Tr.add($.HOUR).valueOf())
4114
- }, qa = (n) => n === "linear" ? Gc : Vc, Kc = (n, e = 0.1, t) => {
4125
+ }, ja = (n) => n === "linear" ? Qc : Jc, tu = (n, e = 0.1, t) => {
4115
4126
  const s = R.max(n.filter(R.isFinite));
4116
- if (!R.isFinite(s)) return qa(t);
4127
+ if (!R.isFinite(s)) return ja(t);
4117
4128
  const { lower: r, upper: a } = s;
4118
4129
  if (a === r) return { lower: r - 1, upper: a + 1 };
4119
4130
  const i = (a - r) * e;
4120
4131
  return { lower: r - i, upper: a + i };
4121
- }, Qc = 0.01, Jc = 0.1;
4122
- class ja extends wt {
4132
+ }, eu = 0.01, nu = 0.1;
4133
+ class Ha extends wt {
4123
4134
  async afterUpdate() {
4124
- var t;
4135
+ var t, s;
4125
4136
  this.internal.render = z.use(this.ctx);
4126
4137
  const e = xt(this.ctx);
4127
- (t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ? Jc : Qc), this.internal.core = new Ic(this.internal.render, {
4138
+ (t = this.state).autoBoundPadding ?? (t.autoBoundPadding = at.construct(this.state.location) === "x" ? nu : eu), this.internal.core = new Zc(this.internal.render, {
4128
4139
  color: e.colors.gray.l8,
4129
4140
  font: re(e, { level: "small" }),
4130
4141
  gridColor: e.colors.gray.l1,
4131
4142
  ...this.state
4132
- }), W.requestRender(this.ctx, yt), this.internal.updateBounds == null && (this.internal.updateBounds = pi(
4133
- (s) => this.setState((r) => ({ ...r, bounds: s })),
4143
+ }), W.requestRender(this.ctx, yt), (s = this.internal).updateBounds ?? (s.updateBounds = gi(
4144
+ (r) => this.setState((a) => ({ ...a, bounds: r })),
4134
4145
  this.state.autoBoundUpdateInterval.milliseconds
4135
4146
  ));
4136
4147
  }
@@ -4139,19 +4150,19 @@ class ja extends wt {
4139
4150
  }
4140
4151
  renderAxis(e, t) {
4141
4152
  if (!e.canvases.includes("lower2d")) return;
4142
- const { core: s } = this.internal, { grid: r, container: a } = e, i = go(`${this.type}-${this.key}`, r, a), o = {
4153
+ const { core: s } = this.internal, { grid: r, container: a } = e, i = wo(`${this.type}-${this.key}`, r, a), o = {
4143
4154
  ...e,
4144
4155
  position: i,
4145
4156
  decimalToDataScale: t,
4146
4157
  size: this.state.size + this.state.labelSize
4147
4158
  }, { size: l } = s.render(o);
4148
- Xc(this.state.size, l) || this.setState((u) => ({ ...u, size: l }));
4159
+ Kc(this.state.size, l) || this.setState((u) => ({ ...u, size: l }));
4149
4160
  }
4150
4161
  async bounds(e, t) {
4151
4162
  var u, h;
4152
4163
  if (e && this.internal.boundSnapshot != null)
4153
4164
  return [this.internal.boundSnapshot, null];
4154
- const { lower: s, upper: r } = tu(this.state.autoBounds);
4165
+ const { lower: s, upper: r } = su(this.state.autoBounds);
4155
4166
  if (!s && !r && this.state.bounds != null)
4156
4167
  return this.internal.boundSnapshot = this.state.bounds, [this.state.bounds, null];
4157
4168
  const a = (p) => ({
@@ -4161,9 +4172,9 @@ class ja extends wt {
4161
4172
  let i, o = null;
4162
4173
  try {
4163
4174
  const p = await t();
4164
- i = Kc(p, this.state.autoBoundPadding, this.state.type);
4175
+ i = tu(p, this.state.autoBoundPadding, this.state.type);
4165
4176
  } catch (p) {
4166
- i = qa(this.state.type), o = p;
4177
+ i = ja(this.state.type), o = p;
4167
4178
  }
4168
4179
  const l = a(i);
4169
4180
  return this.internal.boundSnapshot = l, (this.state.bounds == null || s && this.state.bounds.lower !== l.lower || r && this.state.bounds.upper !== l.upper) && ((h = (u = this.internal).updateBounds) == null || h.call(u, l)), [l, o];
@@ -4171,21 +4182,21 @@ class ja extends wt {
4171
4182
  async dataToDecimalScale(e, t, s) {
4172
4183
  const [r, a] = await this.bounds(e, t), i = at.swap(at.construct(this.state.location));
4173
4184
  return [
4174
- B.Scale.scale(r).scale(1).translate(-f.root(s)[i]).magnify(1 / f.dim(s, i)),
4185
+ I.Scale.scale(r).scale(1).translate(-f.root(s)[i]).magnify(1 / f.dim(s, i)),
4175
4186
  a
4176
4187
  ];
4177
4188
  }
4178
4189
  }
4179
- const tu = (n) => typeof n == "boolean" ? { lower: n, upper: n } : {
4190
+ const su = (n) => typeof n == "boolean" ? { lower: n, upper: n } : {
4180
4191
  lower: (n == null ? void 0 : n.lower) ?? !0,
4181
4192
  upper: (n == null ? void 0 : n.upper) ?? !0
4182
- }, eu = `precision lowp float;
4193
+ }, ru = `precision lowp float;
4183
4194
  uniform lowp vec4 u_color;
4184
4195
 
4185
4196
  void main(void) {
4186
4197
  gl_FragColor = u_color;
4187
4198
  }
4188
- `, nu = `attribute float a_x;
4199
+ `, au = `attribute float a_x;
4189
4200
  attribute float a_y;
4190
4201
  attribute lowp vec2 a_translate;
4191
4202
 
@@ -4197,18 +4208,18 @@ void main(void) {
4197
4208
  transformed = transformed + a_translate;
4198
4209
  gl_Position = vec4(transformed, 0.0, 1.0);
4199
4210
  }
4200
- `, Sr = nt.FLOAT32.density.valueOf(), su = d.object({
4211
+ `, Sr = nt.FLOAT32.density.valueOf(), iu = d.object({
4201
4212
  x: rn,
4202
4213
  y: rn,
4203
4214
  label: d.string().optional(),
4204
4215
  color: Y.z,
4205
4216
  strokeWidth: d.number().default(1),
4206
4217
  downsample: d.number().min(1).max(50).optional().default(1)
4207
- }), ru = (n, e, t) => n === -1 || e === -1 || n >= t.length ? NaN : Number(t[n].at(e)), au = $.milliseconds(2);
4218
+ }), ou = (n, e, t) => n === -1 || e === -1 || n >= t.length ? NaN : Number(t[n].at(e)), lu = $.milliseconds(2);
4208
4219
  g.NAN, g.NAN, V;
4209
- const Zt = class Zt extends za {
4220
+ const Zt = class Zt extends qa {
4210
4221
  constructor(t) {
4211
- super(t, nu, eu);
4222
+ super(t, au, ru);
4212
4223
  c(this, "translationBufferCache", /* @__PURE__ */ new Map());
4213
4224
  this.translationBufferCache = /* @__PURE__ */ new Map();
4214
4225
  }
@@ -4253,7 +4264,7 @@ const Zt = class Zt extends za {
4253
4264
  const i = s.createBuffer();
4254
4265
  if (i == null)
4255
4266
  throw new pt("Failed to create buffer from WebGL context");
4256
- const o = ou(this.ctx.aspect, t);
4267
+ const o = uu(this.ctx.aspect, t);
4257
4268
  s.bindBuffer(s.ARRAY_BUFFER, i), s.bufferData(s.ARRAY_BUFFER, o, s.DYNAMIC_DRAW);
4258
4269
  const l = { glBuffer: i, jsBuffer: o };
4259
4270
  return this.translationBufferCache.set(r, l), l;
@@ -4276,7 +4287,7 @@ let wn = Zt;
4276
4287
  class xn extends Z {
4277
4288
  constructor() {
4278
4289
  super(...arguments);
4279
- c(this, "schema", su);
4290
+ c(this, "schema", iu);
4280
4291
  }
4281
4292
  async afterUpdate() {
4282
4293
  var s, r;
@@ -4315,7 +4326,7 @@ class xn extends Z {
4315
4326
  };
4316
4327
  if (o === -1 || l === -1) return m;
4317
4328
  const x = i[l];
4318
- m.value.x = ru(l, o, i);
4329
+ m.value.x = ou(l, o, i);
4319
4330
  const [, b] = await a.value(), T = b.find(
4320
4331
  (O) => R.contains(O.alignmentBounds, x.alignment + BigInt(o))
4321
4332
  );
@@ -4330,35 +4341,35 @@ class xn extends Z {
4330
4341
  if (this.deleted) return;
4331
4342
  const { downsample: s } = this.state, { xTelem: r, yTelem: a, prog: i } = this.internal, { dataToDecimalScale: o, exposure: l } = t, [[, u], [, h]] = await Promise.all([r.value(), a.value()]);
4332
4343
  u.forEach((T) => T.updateGLBuffer(i.ctx.gl)), h.forEach((T) => T.updateGLBuffer(i.ctx.gl));
4333
- const p = du(
4344
+ const p = gu(
4334
4345
  u,
4335
4346
  h,
4336
4347
  l,
4337
4348
  s,
4338
- au
4349
+ lu
4339
4350
  );
4340
4351
  this.internal.instrumentation.L.debug("render", () => ({
4341
4352
  key: this.key,
4342
4353
  downsample: s,
4343
- scale: B.xyScaleToTransform(o),
4354
+ scale: I.xyScaleToTransform(o),
4344
4355
  props: t.region,
4345
- ops: fu(p)
4356
+ ops: mu(p)
4346
4357
  }));
4347
- const m = i.setAsActive(), x = i.bindState(this.state), b = B.xyScaleToTransform(
4358
+ const m = i.setAsActive(), x = i.bindState(this.state), b = I.xyScaleToTransform(
4348
4359
  i.ctx.scaleRegion(t.region)
4349
4360
  );
4350
4361
  p.forEach((T) => {
4351
- const C = B.xyScaleToTransform(
4352
- hu(o, T)
4362
+ const C = I.xyScaleToTransform(
4363
+ pu(o, T)
4353
4364
  );
4354
4365
  i.bindScale(C, b), i.draw(T, x);
4355
4366
  }), m();
4356
4367
  }
4357
4368
  }
4358
4369
  c(xn, "TYPE", "line");
4359
- const iu = 5e3, ou = (n, e) => uu(cu(n), e).map(
4360
- (t, s) => Math.floor(s / lu) * (1 / (iu * n)) * t
4361
- ), lu = 5, cu = (n) => (
4370
+ const cu = 5e3, uu = (n, e) => fu(du(n), e).map(
4371
+ (t, s) => Math.floor(s / hu) * (1 / (cu * n)) * t
4372
+ ), hu = 5, du = (n) => (
4362
4373
  // prettier-ignore
4363
4374
  new Float32Array([
4364
4375
  0,
@@ -4377,19 +4388,19 @@ const iu = 5e3, ou = (n, e) => uu(cu(n), e).map(
4377
4388
  0
4378
4389
  // left
4379
4390
  ])
4380
- ), uu = (n, e) => {
4391
+ ), fu = (n, e) => {
4381
4392
  const t = new Float32Array(n.length * e);
4382
4393
  for (let s = 0; s < e; s++) t.set(n, s * n.length);
4383
4394
  return t;
4384
- }, hu = (n, e) => n.translate(
4395
+ }, pu = (n, e) => n.translate(
4385
4396
  n.x.dim(Number(e.x.sampleOffset)),
4386
4397
  n.y.dim(Number(e.y.sampleOffset))
4387
- ), nh = { [xn.TYPE]: xn }, du = (n, e, t, s, r) => {
4398
+ ), ah = { [xn.TYPE]: xn }, gu = (n, e, t, s, r) => {
4388
4399
  if (n.length === 0 || e.length === 0) return [];
4389
4400
  const a = [];
4390
4401
  return n.forEach(
4391
4402
  (i) => e.forEach((o) => {
4392
- if (!pu(i, o, r)) return;
4403
+ if (!yu(i, o, r)) return;
4393
4404
  let l = 0, u = 0;
4394
4405
  i.alignment < o.alignment ? l = Number(o.alignment - i.alignment) : o.alignment < i.alignment && (u = Number(i.alignment - o.alignment));
4395
4406
  const h = Math.min(i.length - l, o.length - u);
@@ -4402,7 +4413,7 @@ const iu = 5e3, ou = (n, e) => uu(cu(n), e).map(
4402
4413
  a.push({ x: i, y: o, xOffset: l, yOffset: u, count: h, downsample: p });
4403
4414
  })
4404
4415
  ), a;
4405
- }, fu = (n) => n.map((e) => ({ ...e, x: e.x.digest, y: e.y.digest })), pu = (n, e, t) => {
4416
+ }, mu = (n) => n.map((e) => ({ ...e, x: e.x.digest, y: e.y.digest })), yu = (n, e, t) => {
4406
4417
  if (!(n._timeRange != null && e._timeRange != null))
4407
4418
  throw new pt(
4408
4419
  `Encountered series without time range in buildDrawOperations. X series present: ${n._timeRange != null}, Y series present: ${e._timeRange != null}`
@@ -4444,7 +4455,7 @@ class Jt {
4444
4455
  ...g.couple(f.topLeft(e)),
4445
4456
  ...g.couple(f.dims(e)),
4446
4457
  r
4447
- ), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) : gi(a).forEach((o) => {
4458
+ ), i.stroke()) : (i.rect(...g.couple(f.topLeft(e)), ...g.couple(f.dims(e))), i.stroke()) : mi(a).forEach((o) => {
4448
4459
  const [l, u] = f.edgePoints(e, o);
4449
4460
  i.beginPath(), i.moveTo(...g.couple(l)), i.lineTo(...g.couple(u)), i.stroke();
4450
4461
  });
@@ -4458,7 +4469,7 @@ class Jt {
4458
4469
  borderWidth: i,
4459
4470
  backgroundColor: o
4460
4471
  }) {
4461
- a == null && (a = this.theme.sizes.border.radius), i == null && (i = 1);
4472
+ a ?? (a = this.theme.sizes.border.radius), i ?? (i = 1);
4462
4473
  const l = this.canvas;
4463
4474
  l.fillStyle = this.resolveColor(o, this.theme.colors.gray.l1).hex, l.strokeStyle = this.resolveColor(r, this.theme.colors.border).hex, l.setLineDash([]), l.lineWidth = 1, l.beginPath(), s ? l.roundRect(
4464
4475
  ...g.couple(f.topLeft(e)),
@@ -4521,7 +4532,7 @@ class Jt {
4521
4532
  i != null && (l = this.canvas.scissor(f.construct(t, i, 1e3))), this.canvas.fillText(e, t.x, t.y), l == null || l();
4522
4533
  }
4523
4534
  }
4524
- const Ha = d.object({
4535
+ const Wa = d.object({
4525
4536
  position: d.number().optional(),
4526
4537
  pixelPosition: d.number().optional(),
4527
4538
  dragging: d.boolean(),
@@ -4532,7 +4543,7 @@ const Ha = d.object({
4532
4543
  class Ee extends Z {
4533
4544
  constructor() {
4534
4545
  super(...arguments);
4535
- c(this, "schema", Ha);
4546
+ c(this, "schema", Wa);
4536
4547
  }
4537
4548
  async afterUpdate() {
4538
4549
  this.internal.renderCtx = z.use(this.ctx);
@@ -4571,17 +4582,17 @@ class Ee extends Z {
4571
4582
  }
4572
4583
  }
4573
4584
  c(Ee, "TYPE", "Rule");
4574
- const gu = {
4585
+ const wu = {
4575
4586
  [Ee.TYPE]: Ee
4576
- }, sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4587
+ }, ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4577
4588
  __proto__: null,
4578
- REGISTRY: gu,
4589
+ REGISTRY: wu,
4579
4590
  Rule: Ee,
4580
- ruleStateZ: Ha
4581
- }, Symbol.toStringTag, { value: "Module" })), rh = _n.extend({
4591
+ ruleStateZ: Wa
4592
+ }, Symbol.toStringTag, { value: "Module" })), oh = _n.extend({
4582
4593
  location: Tt.x.optional().default("left")
4583
4594
  });
4584
- class bn extends ja {
4595
+ class bn extends Ha {
4585
4596
  constructor() {
4586
4597
  super(...arguments);
4587
4598
  c(this, "schema", _n);
@@ -4604,7 +4615,7 @@ class bn extends ja {
4604
4615
  if (!r.includes("gl")) return;
4605
4616
  const o = {
4606
4617
  region: s,
4607
- dataToDecimalScale: new B.XY(t, i),
4618
+ dataToDecimalScale: new I.XY(t, i),
4608
4619
  exposure: a
4609
4620
  };
4610
4621
  await Promise.all(this.lines.map(async (l) => await l.render(o)));
@@ -4632,7 +4643,7 @@ class bn extends ja {
4632
4643
  r
4633
4644
  );
4634
4645
  if (u != null) throw u;
4635
- const h = new B.XY(t, l), p = { region: s, dataToDecimalScale: h, exposure: i };
4646
+ const h = new I.XY(t, l), p = { region: s, dataToDecimalScale: h, exposure: i };
4636
4647
  return (await Promise.all(
4637
4648
  this.lines.map(async (m) => await m.findByXValue(p, o))
4638
4649
  )).map((m) => ({ ...m, units: this.state.label }));
@@ -4648,14 +4659,14 @@ class bn extends ja {
4648
4659
  }
4649
4660
  }
4650
4661
  c(bn, "TYPE", "YAxis");
4651
- const mu = d.object({
4662
+ const xu = d.object({
4652
4663
  start: F.z,
4653
4664
  end: F.z
4654
4665
  });
4655
4666
  class ss extends Z {
4656
4667
  constructor() {
4657
4668
  super(...arguments);
4658
- c(this, "schema", mu);
4669
+ c(this, "schema", xu);
4659
4670
  }
4660
4671
  async afterUpdate() {
4661
4672
  this.internal.render = z.use(this.ctx), this.internal.draw = new Jt(
@@ -4667,7 +4678,7 @@ class ss extends Z {
4667
4678
  }
4668
4679
  }
4669
4680
  c(ss, "TYPE", "range-annotation");
4670
- const yu = d.object({
4681
+ const bu = d.object({
4671
4682
  triggered: d.boolean(),
4672
4683
  status: Dr,
4673
4684
  sink: Dn.optional().default(Mn),
@@ -4676,7 +4687,7 @@ const yu = d.object({
4676
4687
  class rs extends Z {
4677
4688
  constructor() {
4678
4689
  super(...arguments);
4679
- c(this, "schema", yu);
4690
+ c(this, "schema", bu);
4680
4691
  }
4681
4692
  async afterUpdate() {
4682
4693
  var r, a, i;
@@ -4685,7 +4696,7 @@ class rs extends Z {
4685
4696
  this.ctx,
4686
4697
  s,
4687
4698
  this.internal.source
4688
- ), this.internal.sink = await De(this.ctx, t, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(((r = this.state.status.data) == null ? void 0 : r.authority) !== mi.Absolute.valueOf()).catch(console.error), await this.updateEnabledState(), (i = (a = this.internal).stopListening) == null || i.call(a), this.internal.stopListening = this.internal.source.onChange(() => {
4699
+ ), this.internal.sink = await De(this.ctx, t, this.internal.sink), this.state.triggered && !this.prevState.triggered && this.internal.sink.set(((r = this.state.status.data) == null ? void 0 : r.authority) !== yi.Absolute.valueOf()).catch(console.error), await this.updateEnabledState(), (i = (a = this.internal).stopListening) == null || i.call(a), this.internal.stopListening = this.internal.source.onChange(() => {
4689
4700
  this.updateEnabledState();
4690
4701
  });
4691
4702
  }
@@ -4704,13 +4715,13 @@ class rs extends Z {
4704
4715
  }
4705
4716
  }
4706
4717
  c(rs, "TYPE", "Chip");
4707
- const wu = d.object({}), Er = "control-state-provider", xu = ys.stateZ.extend({
4718
+ const vu = d.object({}), Er = "control-state-provider", Tu = ys.stateZ.extend({
4708
4719
  subjectColor: Y.z
4709
4720
  });
4710
4721
  class Ce extends wt {
4711
4722
  constructor() {
4712
4723
  super(...arguments);
4713
- c(this, "schema", wu);
4724
+ c(this, "schema", vu);
4714
4725
  /** Tracks the colors we assign to a particular control subject. */
4715
4726
  c(this, "colors", /* @__PURE__ */ new Map());
4716
4727
  /** Tracks the current control state for each channel and allows us to access it */
@@ -4748,7 +4759,7 @@ class Ce extends wt {
4748
4759
  return this.obs.onChange(t);
4749
4760
  }
4750
4761
  get(t) {
4751
- return Array.isArray(t) ? yi(t).map((s) => this.getOne(s)).filter((s) => s != null) : this.getOne(t);
4762
+ return Array.isArray(t) ? wi(t).map((s) => this.getOne(s)).filter((s) => s != null) : this.getOne(t);
4752
4763
  }
4753
4764
  getOne(t) {
4754
4765
  if (this.tracker == null) return;
@@ -4786,17 +4797,17 @@ class Ce extends wt {
4786
4797
  }
4787
4798
  }
4788
4799
  c(Ce, "TYPE", "StateProvider");
4789
- const bu = ["acquired", "released", "overridden", "failed"], vu = d.enum(bu), Tu = d.object({
4800
+ const Su = ["acquired", "released", "overridden", "failed"], Eu = d.enum(Su), Cu = d.object({
4790
4801
  name: d.string(),
4791
4802
  authority: d.number().default(0),
4792
4803
  acquireTrigger: d.number(),
4793
- status: vu.optional(),
4804
+ status: Eu.optional(),
4794
4805
  needsControlOf: Yr.keyZ.array().optional().default([])
4795
4806
  });
4796
4807
  class as extends wt {
4797
4808
  constructor() {
4798
4809
  super(...arguments);
4799
- c(this, "schema", Tu);
4810
+ c(this, "schema", Cu);
4800
4811
  c(this, "registry", /* @__PURE__ */ new Map());
4801
4812
  c(this, "writer");
4802
4813
  }
@@ -4899,14 +4910,14 @@ class as extends wt {
4899
4910
  }
4900
4911
  }
4901
4912
  c(as, "TYPE", "Controller");
4902
- const Su = d.object({
4913
+ const ku = d.object({
4903
4914
  channel: d.number()
4904
4915
  });
4905
4916
  class vn extends An {
4906
4917
  constructor(t, s) {
4907
4918
  super(s);
4908
4919
  c(this, "controller");
4909
- c(this, "schema", Su);
4920
+ c(this, "schema", ku);
4910
4921
  this.controller = t;
4911
4922
  }
4912
4923
  invalidate() {
@@ -4931,12 +4942,12 @@ class vn extends An {
4931
4942
  }
4932
4943
  }
4933
4944
  c(vn, "TYPE", "controlled-numeric-telem-sink");
4934
- const ah = (n) => ({
4945
+ const lh = (n) => ({
4935
4946
  type: vn.TYPE,
4936
4947
  props: n,
4937
4948
  variant: "sink",
4938
4949
  valueType: "number"
4939
- }), Eu = d.object({
4950
+ }), Pu = d.object({
4940
4951
  authority: d.number().default(ys.Authority.Absolute.valueOf()),
4941
4952
  channel: d.number()
4942
4953
  });
@@ -4944,7 +4955,7 @@ class Tn extends An {
4944
4955
  constructor(t, s) {
4945
4956
  super(s);
4946
4957
  c(this, "controller");
4947
- c(this, "schema", Eu);
4958
+ c(this, "schema", Pu);
4948
4959
  this.controller = t;
4949
4960
  }
4950
4961
  async cleanup() {
@@ -4962,12 +4973,12 @@ class Tn extends An {
4962
4973
  }
4963
4974
  }
4964
4975
  c(Tn, "TYPE", "acquire-channel-control");
4965
- const ih = (n) => ({
4976
+ const ch = (n) => ({
4966
4977
  type: Tn.TYPE,
4967
4978
  props: n,
4968
4979
  variant: "sink",
4969
4980
  valueType: "boolean"
4970
- }), Cu = d.object({
4981
+ }), Ru = d.object({
4971
4982
  channel: d.number()
4972
4983
  });
4973
4984
  class Sn extends Q {
@@ -4977,7 +4988,7 @@ class Sn extends Q {
4977
4988
  c(this, "valid", !1);
4978
4989
  c(this, "stopListening");
4979
4990
  c(this, "controller");
4980
- c(this, "schema", Cu);
4991
+ c(this, "schema", Ru);
4981
4992
  this.prov = s, this.controller = t;
4982
4993
  }
4983
4994
  async needsControlOf() {
@@ -5026,12 +5037,12 @@ class Sn extends Q {
5026
5037
  }
5027
5038
  }
5028
5039
  c(Sn, "TYPE", "controlled-status-source");
5029
- const oh = (n) => ({
5040
+ const uh = (n) => ({
5030
5041
  type: Sn.TYPE,
5031
5042
  props: n,
5032
5043
  variant: "source",
5033
5044
  valueType: "status"
5034
- }), ku = d.object({
5045
+ }), Mu = d.object({
5035
5046
  statusSource: ks.optional().default(Es),
5036
5047
  colorSource: Vr.optional().default(zr),
5037
5048
  status: Dr,
@@ -5040,7 +5051,7 @@ const oh = (n) => ({
5040
5051
  class is extends Z {
5041
5052
  constructor() {
5042
5053
  super(...arguments);
5043
- c(this, "schema", ku);
5054
+ c(this, "schema", Mu);
5044
5055
  c(this, "stopListeningStatus");
5045
5056
  c(this, "stopListeningColor");
5046
5057
  }
@@ -5076,14 +5087,14 @@ class is extends Z {
5076
5087
  }
5077
5088
  }
5078
5089
  c(is, "TYPE", "Indicator");
5079
- const Pu = d.object({
5090
+ const Ou = d.object({
5080
5091
  needsControlOf: Yr.keyZ.array(),
5081
- states: xu.array()
5092
+ states: Tu.array()
5082
5093
  });
5083
5094
  class os extends Z {
5084
5095
  constructor() {
5085
5096
  super(...arguments);
5086
- c(this, "schema", Pu);
5097
+ c(this, "schema", Ou);
5087
5098
  }
5088
5099
  async afterUpdate() {
5089
5100
  var i;
@@ -5107,24 +5118,25 @@ class os extends Z {
5107
5118
  }
5108
5119
  }
5109
5120
  c(os, "TYPE", "Legend");
5110
- const lh = {
5121
+ const hh = {
5111
5122
  [as.TYPE]: as,
5112
5123
  [Ce.TYPE]: Ce,
5113
5124
  [is.TYPE]: is,
5114
5125
  [rs.TYPE]: rs,
5115
5126
  [os.TYPE]: os
5116
- }, Ru = d.object({
5127
+ }, Du = d.object({
5117
5128
  trigger: d.number(),
5118
5129
  sink: Dn.optional().default(Mn)
5119
5130
  });
5120
5131
  class ls extends Z {
5121
5132
  constructor() {
5122
5133
  super(...arguments);
5123
- c(this, "schema", Ru);
5134
+ c(this, "schema", Du);
5124
5135
  }
5125
5136
  async afterUpdate() {
5137
+ var r;
5126
5138
  const { sink: t } = this.state;
5127
- this.internal.prevTrigger == null && (this.internal.prevTrigger = this.state.trigger), this.internal.sink = await De(this.ctx, t, this.internal.sink);
5139
+ (r = this.internal).prevTrigger ?? (r.prevTrigger = this.state.trigger), this.internal.sink = await De(this.ctx, t, this.internal.sink);
5128
5140
  const s = this.internal.prevTrigger;
5129
5141
  this.internal.prevTrigger = this.state.trigger, !(this.state.trigger <= s) && this.internal.sink.set(!0).catch(console.error);
5130
5142
  }
@@ -5140,9 +5152,9 @@ class ls extends Z {
5140
5152
  }
5141
5153
  }
5142
5154
  c(ls, "TYPE", "Button");
5143
- const ch = {
5155
+ const dh = {
5144
5156
  [ls.TYPE]: ls
5145
- }, Wa = d.object({
5157
+ }, Xa = d.object({
5146
5158
  dpr: d.number(),
5147
5159
  region: f.box,
5148
5160
  bootstrap: d.boolean().optional().default(!1),
@@ -5152,12 +5164,12 @@ const ch = {
5152
5164
  glCanvas: d.any().optional(),
5153
5165
  upper2dCanvas: d.any().optional(),
5154
5166
  lower2dCanvas: d.any().optional(),
5155
- os: wi.osZ
5167
+ os: xi.osZ
5156
5168
  });
5157
5169
  class En extends wt {
5158
5170
  constructor() {
5159
5171
  super(...arguments);
5160
- c(this, "schema", Wa);
5172
+ c(this, "schema", Xa);
5161
5173
  c(this, "renderContextSet", !1);
5162
5174
  }
5163
5175
  async afterUpdate() {
@@ -5192,14 +5204,14 @@ class En extends wt {
5192
5204
  }
5193
5205
  }
5194
5206
  c(En, "TYPE", "Canvas");
5195
- const Mu = {
5207
+ const Yu = {
5196
5208
  [En.TYPE]: En
5197
- }, uh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5209
+ }, fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5198
5210
  __proto__: null,
5199
5211
  Canvas: En,
5200
- REGISTRY: Mu,
5201
- canvasStateZ: Wa
5202
- }, Symbol.toStringTag, { value: "Module" })), Xa = d.object({
5212
+ REGISTRY: Yu,
5213
+ canvasStateZ: Xa
5214
+ }, Symbol.toStringTag, { value: "Module" })), Ga = d.object({
5203
5215
  position: g.xy,
5204
5216
  zoom: d.number(),
5205
5217
  region: f.box,
@@ -5221,7 +5233,7 @@ const Mu = {
5221
5233
  const { renderCtx: t, addStatus: s } = this.internal, { zoom: r, position: a } = this.state, i = f.construct(this.state.region);
5222
5234
  if (!this.state.visible)
5223
5235
  return async () => t.erase(i, this.state.clearOverScan, ...Fe);
5224
- const o = t.scissor(i, g.ZERO, Fe), l = B.XY.magnify(g.construct(r)).translate(f.topLeft(i)).translate(a);
5236
+ const o = t.scissor(i, g.ZERO, Fe), l = I.XY.magnify(g.construct(r)).translate(f.topLeft(i)).translate(a);
5225
5237
  try {
5226
5238
  await Promise.all(
5227
5239
  this.children.map(async (h) => await h.render({ viewportScale: l }))
@@ -5246,24 +5258,24 @@ const Mu = {
5246
5258
  });
5247
5259
  }
5248
5260
  };
5249
- c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ", Xa);
5261
+ c(Ft, "TYPE", "Diagram"), c(Ft, "stateZ", Ga);
5250
5262
  let ke = Ft;
5251
- const Ou = {
5263
+ const Au = {
5252
5264
  [ke.TYPE]: ke
5253
- }, hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5265
+ }, ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5254
5266
  __proto__: null,
5255
5267
  Diagram: ke,
5256
- REGISTRY: Ou,
5257
- diagramStateZ: Xa
5258
- }, Symbol.toStringTag, { value: "Module" })), Du = d.object({
5268
+ REGISTRY: Au,
5269
+ diagramStateZ: Ga
5270
+ }, Symbol.toStringTag, { value: "Module" })), Lu = d.object({
5259
5271
  region: f.box,
5260
5272
  enabled: d.boolean().optional().default(!1)
5261
5273
  });
5262
5274
  class cs extends Z {
5263
5275
  constructor() {
5264
5276
  super(...arguments);
5265
- c(this, "schema", Du);
5266
- c(this, "eraser", new jc());
5277
+ c(this, "schema", Lu);
5278
+ c(this, "eraser", new Xc());
5267
5279
  }
5268
5280
  async afterUpdate() {
5269
5281
  this.deleted || (this.internal.render = z.use(this.ctx), await this.internal.render.loop.set({
@@ -5292,16 +5304,16 @@ class cs extends Z {
5292
5304
  }
5293
5305
  }
5294
5306
  c(cs, "TYPE", "eraser");
5295
- const dh = {
5307
+ const gh = {
5296
5308
  [cs.TYPE]: cs
5297
- }, Yu = d.object({
5309
+ }, _u = d.object({
5298
5310
  enabled: d.boolean(),
5299
5311
  source: Cs.optional().default(Ss)
5300
5312
  });
5301
5313
  class us extends Z {
5302
5314
  constructor() {
5303
5315
  super(...arguments);
5304
- c(this, "schema", Yu);
5316
+ c(this, "schema", _u);
5305
5317
  }
5306
5318
  async afterUpdate() {
5307
5319
  var r;
@@ -5337,7 +5349,7 @@ class us extends Z {
5337
5349
  }
5338
5350
  }
5339
5351
  c(us, "TYPE", "Light");
5340
- const fh = { [us.TYPE]: us }, Ga = d.object({
5352
+ const mh = { [us.TYPE]: us }, Va = d.object({
5341
5353
  position: g.xy.or(d.null()),
5342
5354
  textColor: Y.z.optional().default(V),
5343
5355
  backgroundColor: Y.z.optional().default(V),
@@ -5349,7 +5361,7 @@ const fh = { [us.TYPE]: us }, Ga = d.object({
5349
5361
  class Pe extends Z {
5350
5362
  constructor() {
5351
5363
  super(...arguments);
5352
- c(this, "schema", Ga);
5364
+ c(this, "schema", Va);
5353
5365
  }
5354
5366
  async afterUpdate() {
5355
5367
  const t = xt(this.ctx);
@@ -5360,7 +5372,7 @@ class Pe extends Z {
5360
5372
  }
5361
5373
  async render(t) {
5362
5374
  if (this.deleted || this.state.position == null) return;
5363
- const { region: s } = t, r = B.XY.scale(f.DECIMAL).scale(s), a = B.XY.scale(s).scale(f.DECIMAL), i = await t.findByXDecimal(
5375
+ const { region: s } = t, r = I.XY.scale(f.DECIMAL).scale(s), a = I.XY.scale(s).scale(f.DECIMAL), i = await t.findByXDecimal(
5364
5376
  a.x.pos(this.state.position.x)
5365
5377
  ), o = i.filter((b) => g.isFinite(b.value)), { draw: l } = this.internal, u = o.reduce((b, T) => b + T.position.x, 0) / o.length, h = new F(
5366
5378
  o.reduce((b, T) => b + T.value.x, 0) / o.length
@@ -5404,14 +5416,14 @@ class Pe extends Z {
5404
5416
  }
5405
5417
  }
5406
5418
  c(Pe, "TYPE", "tooltip");
5407
- const Au = {
5419
+ const Nu = {
5408
5420
  [Pe.TYPE]: Pe
5409
- }, ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5421
+ }, yh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5410
5422
  __proto__: null,
5411
- REGISTRY: Au,
5423
+ REGISTRY: Nu,
5412
5424
  Tooltip: Pe,
5413
- tooltipStateZ: Ga
5414
- }, Symbol.toStringTag, { value: "Module" })), Lu = d.object({
5425
+ tooltipStateZ: Va
5426
+ }, Symbol.toStringTag, { value: "Module" })), Iu = d.object({
5415
5427
  region: f.box,
5416
5428
  wheelPos: d.number(),
5417
5429
  scrolling: d.boolean(),
@@ -5421,7 +5433,7 @@ const Au = {
5421
5433
  font: Lr.optional().default("p"),
5422
5434
  color: Y.z.optional().default(V),
5423
5435
  overshoot: g.xy.optional().default({ x: 0, y: 0 })
5424
- }), _u = 0.98, se = "lower2d", Nu = {
5436
+ }), Bu = 0.98, se = "lower2d", Uu = {
5425
5437
  offset: 0n,
5426
5438
  offsetRef: 0n,
5427
5439
  scrollRef: 0
@@ -5429,8 +5441,8 @@ const Au = {
5429
5441
  constructor() {
5430
5442
  super(...arguments);
5431
5443
  c(this, "schema", ue.z);
5432
- c(this, "values", new Bn([]));
5433
- c(this, "scrollState", Nu);
5444
+ c(this, "values", new In([]));
5445
+ c(this, "scrollState", Uu);
5434
5446
  }
5435
5447
  async afterUpdate() {
5436
5448
  var l;
@@ -5452,9 +5464,9 @@ const Au = {
5452
5464
  ), u.offset < h.alignmentBounds.lower + BigInt(this.visibleLineCount) && (u.offset = h.alignmentBounds.lower, this.setState((m) => ({ ...m, wheelPos: this.prevState.wheelPos }))), u.offset >= h.alignmentBounds.upper && this.setState((m) => ({ ...m, scrolling: !1 }));
5453
5465
  }
5454
5466
  const [i, o] = await this.internal.telem.value();
5455
- this.values = new Bn(o), this.checkEmpty(), (l = t.stopListeningTelem) == null || l.call(t), t.stopListeningTelem = t.telem.onChange(
5467
+ this.values = new In(o), this.checkEmpty(), (l = t.stopListeningTelem) == null || l.call(t), t.stopListeningTelem = t.telem.onChange(
5456
5468
  () => this.internal.telem.value().then(([u, h]) => {
5457
- this.checkEmpty(), this.values = new Bn(h), this.requestRender();
5469
+ this.checkEmpty(), this.values = new In(h), this.requestRender();
5458
5470
  })
5459
5471
  ), this.requestRender();
5460
5472
  }
@@ -5513,7 +5525,7 @@ const Au = {
5513
5525
  }
5514
5526
  renderScrollbar(t) {
5515
5527
  const s = this.state.region, r = f.height(s) / this.totalHeight * f.height(s);
5516
- if (r >= f.height(s) * _u) return;
5528
+ if (r >= f.height(s) * Bu) return;
5517
5529
  let a = f.bottom(s) - r;
5518
5530
  this.state.scrolling && (a -= Number(
5519
5531
  this.values.distance(
@@ -5544,9 +5556,9 @@ const Au = {
5544
5556
  }
5545
5557
  }
5546
5558
  };
5547
- c(ue, "TYPE", "log"), c(ue, "z", Lu);
5559
+ c(ue, "TYPE", "log"), c(ue, "z", Iu);
5548
5560
  let Cn = ue;
5549
- const gh = { [Cn.TYPE]: Cn }, Va = d.object({
5561
+ const wh = { [Cn.TYPE]: Cn }, Ka = d.object({
5550
5562
  one: g.xy.nullable(),
5551
5563
  two: g.xy.nullable(),
5552
5564
  hover: g.xy.nullable(),
@@ -5564,7 +5576,7 @@ const gh = { [Cn.TYPE]: Cn }, Va = d.object({
5564
5576
  class Re extends Z {
5565
5577
  constructor() {
5566
5578
  super(...arguments);
5567
- c(this, "schema", Va);
5579
+ c(this, "schema", Ka);
5568
5580
  }
5569
5581
  async afterUpdate() {
5570
5582
  const t = z.use(this.ctx);
@@ -5600,7 +5612,7 @@ class Re extends Z {
5600
5612
  )[0]
5601
5613
  ];
5602
5614
  }
5603
- const u = B.XY.scale(t.region).scale(f.DECIMAL), [h, p] = [u.pos(s), u.pos(r)], [m, x] = [
5615
+ const u = I.XY.scale(t.region).scale(f.DECIMAL), [h, p] = [u.pos(s), u.pos(r)], [m, x] = [
5604
5616
  await t.findByXDecimal(h.x),
5605
5617
  await t.findByXDecimal(p.x)
5606
5618
  ];
@@ -5617,7 +5629,7 @@ class Re extends Z {
5617
5629
  }
5618
5630
  async renderHover(t) {
5619
5631
  if (this.state.hover == null) return;
5620
- const s = this.state.hover, r = B.XY.scale(t.region).scale(f.DECIMAL), a = r.pos(s), i = await t.findByXDecimal(r.pos(s).x);
5632
+ const s = this.state.hover, r = I.XY.scale(t.region).scale(f.DECIMAL), a = r.pos(s), i = await t.findByXDecimal(r.pos(s).x);
5621
5633
  if (i.length === 0) return;
5622
5634
  const o = i.sort(
5623
5635
  (u, h) => g.distance(a, u.position) - g.distance(a, h.position)
@@ -5633,7 +5645,7 @@ class Re extends Z {
5633
5645
  await this.renderHover(t);
5634
5646
  const s = await this.find(t);
5635
5647
  if (s == null) return;
5636
- const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, u = B.XY.scale(f.DECIMAL).scale(t.region), h = u.pos(r.position), p = u.pos(a.position), m = new $(Math.abs(r.value.x - a.value.x)), x = Math.abs(r.value.y - a.value.y), b = x / m.seconds;
5648
+ const [r, a] = s, { draw: i } = this.internal, { strokeDash: o, strokeWidth: l } = this.state, u = I.XY.scale(f.DECIMAL).scale(t.region), h = u.pos(r.position), p = u.pos(a.position), m = new $(Math.abs(r.value.x - a.value.x)), x = Math.abs(r.value.y - a.value.y), b = x / m.seconds;
5637
5649
  i.line({
5638
5650
  start: g.construct(h.x, h.y),
5639
5651
  end: g.construct(h.x, p.y),
@@ -5671,14 +5683,14 @@ class Re extends Z {
5671
5683
  }
5672
5684
  }
5673
5685
  c(Re, "TYPE", "measure");
5674
- const Bu = {
5686
+ const $u = {
5675
5687
  [Re.TYPE]: Re
5676
- }, mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5688
+ }, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5677
5689
  __proto__: null,
5678
5690
  Measure: Re,
5679
- REGISTRY: Bu,
5680
- measureStateZ: Va
5681
- }, Symbol.toStringTag, { value: "Module" })), Iu = d.object({
5691
+ REGISTRY: $u,
5692
+ measureStateZ: Ka
5693
+ }, Symbol.toStringTag, { value: "Module" })), Zu = d.object({
5682
5694
  trigger: d.number(),
5683
5695
  command: d.number().optional(),
5684
5696
  value: d.number(),
@@ -5688,7 +5700,7 @@ const Bu = {
5688
5700
  class hs extends Z {
5689
5701
  constructor() {
5690
5702
  super(...arguments);
5691
- c(this, "schema", Iu);
5703
+ c(this, "schema", Zu);
5692
5704
  }
5693
5705
  async afterUpdate() {
5694
5706
  var l;
@@ -5724,7 +5736,7 @@ class hs extends Z {
5724
5736
  }
5725
5737
  }
5726
5738
  c(hs, "TYPE", "Setpoint");
5727
- const yh = { [hs.TYPE]: hs }, Uu = d.object({
5739
+ const bh = { [hs.TYPE]: hs }, Fu = d.object({
5728
5740
  triggered: d.boolean(),
5729
5741
  enabled: d.boolean(),
5730
5742
  sink: Dn.optional().default(Mn),
@@ -5733,7 +5745,7 @@ const yh = { [hs.TYPE]: hs }, Uu = d.object({
5733
5745
  class ds extends Z {
5734
5746
  constructor() {
5735
5747
  super(...arguments);
5736
- c(this, "schema", Uu);
5748
+ c(this, "schema", Fu);
5737
5749
  }
5738
5750
  async afterUpdate() {
5739
5751
  var l;
@@ -5769,14 +5781,15 @@ class ds extends Z {
5769
5781
  }
5770
5782
  }
5771
5783
  c(ds, "TYPE", "Toggle");
5772
- const wh = { [ds.TYPE]: ds }, $u = d.object({
5784
+ const vh = { [ds.TYPE]: ds }, zu = d.object({
5773
5785
  box: f.box,
5774
5786
  telem: Kr.optional().default(Fr),
5775
5787
  level: Lr.optional().default("p"),
5776
5788
  color: Y.z.optional().default(V),
5777
5789
  precision: d.number().optional().default(2),
5778
5790
  minWidth: d.number().optional().default(60),
5779
- width: d.number().optional()
5791
+ width: d.number().optional(),
5792
+ notation: ua.optional().default("standard")
5780
5793
  }), Cr = "upper2d", he = class he extends Z {
5781
5794
  constructor() {
5782
5795
  super(...arguments);
@@ -5804,7 +5817,7 @@ const wh = { [ds.TYPE]: ds }, $u = d.object({
5804
5817
  const { theme: s } = this.internal, r = t + s.sizes.base + this.fontHeight;
5805
5818
  this.state.width == null || this.state.width + this.fontHeight * 0.5 < r || this.state.minWidth > r && this.state.width !== this.state.minWidth ? this.setState((a) => ({ ...a, width: Math.max(r, a.minWidth) })) : this.state.width - this.fontHeight > r && this.setState((a) => ({ ...a, width: Math.max(r, a.minWidth) }));
5806
5819
  }
5807
- async render({ viewportScale: t = B.XY.IDENTITY }) {
5820
+ async render({ viewportScale: t = I.XY.IDENTITY }) {
5808
5821
  const { render: s, telem: r } = this.internal, a = f.construct(this.state.box);
5809
5822
  if (f.areaIsZero(a)) return;
5810
5823
  const i = s[Cr].applyScale(t);
@@ -5828,30 +5841,30 @@ const wh = { [ds.TYPE]: ds }, $u = d.object({
5828
5841
  ), i.fillText(o, ...g.couple(x));
5829
5842
  }
5830
5843
  };
5831
- c(he, "TYPE", "value"), c(he, "z", $u);
5844
+ c(he, "TYPE", "value"), c(he, "z", zu);
5832
5845
  let Me = he;
5833
- const Zu = {
5846
+ const qu = {
5834
5847
  [Me.TYPE]: Me
5835
- }, xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5848
+ }, Th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5836
5849
  __proto__: null,
5837
- REGISTRY: Zu,
5850
+ REGISTRY: qu,
5838
5851
  Value: Me
5839
- }, Symbol.toStringTag, { value: "Module" })), Fu = xi.payloadZ.extend({
5852
+ }, Symbol.toStringTag, { value: "Module" })), ju = bi.payloadZ.extend({
5840
5853
  viewport: R.bounds
5841
- }), kr = (n) => Y.z.safeParse(n).success, zu = d.object({
5854
+ }), kr = (n) => Y.z.safeParse(n).success, Hu = d.object({
5842
5855
  cursor: g.xy.or(d.null()),
5843
- hovered: Fu.or(d.null()),
5856
+ hovered: ju.or(d.null()),
5844
5857
  count: d.number()
5845
5858
  });
5846
5859
  class kn extends Z {
5847
5860
  constructor() {
5848
5861
  super(...arguments);
5849
- c(this, "schema", zu);
5862
+ c(this, "schema", Hu);
5850
5863
  c(this, "fetchedInitial", ut.ZERO);
5851
5864
  }
5852
5865
  async afterUpdate() {
5853
5866
  const { internal: t } = this;
5854
- t.render = z.use(this.ctx), t.draw = new Jt(t.render.upper2d, xt(this.ctx)), t.ranges == null && (t.ranges = /* @__PURE__ */ new Map());
5867
+ t.render = z.use(this.ctx), t.draw = new Jt(t.render.upper2d, xt(this.ctx)), t.ranges ?? (t.ranges = /* @__PURE__ */ new Map());
5855
5868
  const s = Oe(this.ctx);
5856
5869
  s != null && (t.client = s, t.tracker == null && (t.tracker = await t.client.ranges.openTracker(), t.tracker.onChange(async (r) => {
5857
5870
  r.forEach(async (a) => {
@@ -5927,11 +5940,11 @@ class kn extends Z {
5927
5940
  }
5928
5941
  }
5929
5942
  c(kn, "TYPE", "range-provider");
5930
- const bh = {
5943
+ const Sh = {
5931
5944
  [ss.TYPE]: ss,
5932
5945
  [kn.TYPE]: kn
5933
- }, vh = _n;
5934
- class Pn extends ja {
5946
+ }, Eh = _n;
5947
+ class Pn extends Ha {
5935
5948
  constructor() {
5936
5949
  super(...arguments);
5937
5950
  c(this, "schema", _n);
@@ -5993,21 +6006,21 @@ class Pn extends ja {
5993
6006
  }
5994
6007
  }
5995
6008
  c(Pn, "TYPE", "XAxis");
5996
- const qu = d.object({
6009
+ const Wu = d.object({
5997
6010
  container: f.box,
5998
6011
  viewport: f.box,
5999
6012
  hold: d.boolean().optional().default(!1),
6000
- grid: d.record(va),
6013
+ grid: d.record(Ta),
6001
6014
  visible: d.boolean().optional().default(!0),
6002
6015
  clearOverScan: g.crudeZ.optional().default(g.ZERO)
6003
- }), ju = (n, e) => {
6016
+ }), Xu = (n, e) => {
6004
6017
  const t = f.width(n) * Math.sqrt(f.height(n)), s = f.width(e) * Math.sqrt(f.height(e));
6005
6018
  return t / s;
6006
6019
  };
6007
6020
  class fs extends wt {
6008
6021
  constructor() {
6009
6022
  super(...arguments);
6010
- c(this, "schema", qu);
6023
+ c(this, "schema", Wu);
6011
6024
  }
6012
6025
  async afterUpdate() {
6013
6026
  this.internal.instrumentation = Le(this.ctx, "lineplot"), this.internal.aggregate = ws(this.ctx), this.internal.renderCtx = z.use(this.ctx), W.control(this.ctx, (t) => this.requestRender("low", t)), this.requestRender("high", yt);
@@ -6041,7 +6054,7 @@ class fs extends wt {
6041
6054
  return this.childrenOfType(Re.TYPE);
6042
6055
  }
6043
6056
  get exposure() {
6044
- return ju(this.state.viewport, this.state.container);
6057
+ return Xu(this.state.viewport, this.state.container);
6045
6058
  }
6046
6059
  async renderAxes(t, s) {
6047
6060
  const r = {
@@ -6066,7 +6079,7 @@ class fs extends wt {
6066
6079
  await Promise.all(this.measures.map(async (a) => await a.render(r)));
6067
6080
  }
6068
6081
  calculatePlot() {
6069
- return mo(this.state.grid, this.state.container);
6082
+ return xo(this.state.grid, this.state.container);
6070
6083
  }
6071
6084
  async render(t) {
6072
6085
  const { renderCtx: s } = this.internal, { instrumentation: r } = this.internal;
@@ -6122,33 +6135,33 @@ class fs extends wt {
6122
6135
  }
6123
6136
  }
6124
6137
  c(fs, "TYPE", "LinePlot");
6125
- const Th = {
6138
+ const Ch = {
6126
6139
  [fs.TYPE]: fs,
6127
6140
  [Pn.TYPE]: Pn,
6128
6141
  [bn.TYPE]: bn
6129
6142
  };
6130
6143
  export {
6131
6144
  is as $,
6132
- mh as A,
6133
- sh as B,
6145
+ xh as A,
6146
+ ih as B,
6134
6147
  z as C,
6135
- hh as D,
6136
- jc as E,
6137
- xh as F,
6138
- za as G,
6148
+ ph as D,
6149
+ Xc as E,
6150
+ Th as F,
6151
+ qa as G,
6139
6152
  fs as H,
6140
- qu as I,
6141
- vh as J,
6142
- rh as K,
6143
- qc as L,
6153
+ Wu as I,
6154
+ Eh as J,
6155
+ oh as K,
6156
+ Wc as L,
6144
6157
  hn as M,
6145
- Ic as N,
6146
- Fa as O,
6158
+ Zc as N,
6159
+ za as O,
6147
6160
  Vn as P,
6148
6161
  mr as Q,
6149
6162
  vr as R,
6150
- $a as S,
6151
- Ua as T,
6163
+ Za as S,
6164
+ $a as T,
6152
6165
  Tn as U,
6153
6166
  Sn as V,
6154
6167
  rs as W,
@@ -6157,100 +6170,100 @@ export {
6157
6170
  Nr as Z,
6158
6171
  as as _,
6159
6172
  W as a,
6160
- Ru as a$,
6173
+ Du as a$,
6161
6174
  os as a0,
6162
- bu as a1,
6175
+ Su as a1,
6163
6176
  vn as a2,
6164
6177
  Ce as a3,
6165
- ih as a4,
6166
- Eu as a5,
6167
- oh as a6,
6168
- Cu as a7,
6169
- yu as a8,
6170
- Tu as a9,
6178
+ ch as a4,
6179
+ Pu as a5,
6180
+ uh as a6,
6181
+ Ru as a7,
6182
+ bu as a8,
6183
+ Cu as a9,
6171
6184
  Bi as aA,
6172
6185
  cs as aB,
6173
- Du as aC,
6186
+ Lu as aC,
6174
6187
  zs as aD,
6175
- Qi as aE,
6188
+ eo as aE,
6176
6189
  be as aF,
6177
- ba as aG,
6190
+ va as aG,
6178
6191
  Se as aH,
6179
6192
  Qs as aI,
6180
- Xo as aJ,
6193
+ Ko as aJ,
6181
6194
  ke as aK,
6182
- Xa as aL,
6195
+ Ga as aL,
6183
6196
  Cn as aM,
6184
- Lu as aN,
6197
+ Iu as aN,
6185
6198
  ea as aO,
6186
6199
  sa as aP,
6187
6200
  ra as aQ,
6188
- fa as aR,
6189
- pa as aS,
6190
- Yi as aT,
6191
- Ui as aU,
6192
- Wi as aV,
6193
- Ai as aW,
6194
- ji as aX,
6195
- Vi as aY,
6196
- Ki as aZ,
6201
+ pa as aR,
6202
+ ga as aS,
6203
+ Ai as aT,
6204
+ $i as aU,
6205
+ Vi as aV,
6206
+ Li as aW,
6207
+ Xi as aX,
6208
+ Ji as aY,
6209
+ to as aZ,
6197
6210
  ls as a_,
6198
- ku as aa,
6199
- Pu as ab,
6200
- ah as ac,
6201
- Su as ad,
6202
- wu as ae,
6203
- vu as af,
6204
- xu as ag,
6211
+ Mu as aa,
6212
+ Ou as ab,
6213
+ lh as ac,
6214
+ ku as ad,
6215
+ vu as ae,
6216
+ Eu as af,
6217
+ Tu as ag,
6205
6218
  En as ah,
6206
- Wa as ai,
6207
- Bt as aj,
6219
+ Xa as ai,
6220
+ It as aj,
6208
6221
  _n as ak,
6209
- tu as al,
6210
- Xc as am,
6222
+ su as al,
6223
+ Kc as am,
6211
6224
  xn as an,
6212
- su as ao,
6225
+ iu as ao,
6213
6226
  Pe as ap,
6214
- Ga as aq,
6227
+ Va as aq,
6215
6228
  ss as ar,
6216
- mu as as,
6229
+ xu as as,
6217
6230
  kn as at,
6218
- zu as au,
6231
+ Hu as au,
6219
6232
  Re as av,
6220
- Va as aw,
6233
+ Ka as aw,
6221
6234
  Ee as ax,
6222
- Ha as ay,
6223
- Ii as az,
6235
+ Wa as ay,
6236
+ Ui as az,
6224
6237
  yt as b,
6225
6238
  us as b0,
6226
- Yu as b1,
6239
+ _u as b1,
6227
6240
  hs as b2,
6228
- Iu as b3,
6241
+ Zu as b3,
6229
6242
  ds as b4,
6230
- Uu as b5,
6243
+ Fu as b5,
6231
6244
  Me as b6,
6232
6245
  St as c,
6233
- Qu as d,
6234
- ch as e,
6235
- Mu as f,
6236
- lh as g,
6237
- Ou as h,
6238
- dh as i,
6239
- fh as j,
6240
- nh as k,
6241
- Th as l,
6242
- Bu as m,
6243
- bh as n,
6244
- gu as o,
6245
- yh as p,
6246
- Pi as q,
6247
- po as r,
6248
- wh as s,
6249
- Au as t,
6250
- Zu as u,
6251
- gh as v,
6252
- Vu as w,
6253
- Ju as x,
6254
- uh as y,
6255
- ph as z
6246
+ eh as d,
6247
+ dh as e,
6248
+ Yu as f,
6249
+ hh as g,
6250
+ Au as h,
6251
+ gh as i,
6252
+ mh as j,
6253
+ ah as k,
6254
+ Ch as l,
6255
+ $u as m,
6256
+ Sh as n,
6257
+ wu as o,
6258
+ bh as p,
6259
+ Ri as q,
6260
+ yo as r,
6261
+ vh as s,
6262
+ Nu as t,
6263
+ qu as u,
6264
+ wh as v,
6265
+ Ju as w,
6266
+ nh as x,
6267
+ fh as y,
6268
+ yh as z
6256
6269
  };