@modelform/react-native 0.3.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -195,7 +195,12 @@
195
195
 
196
196
 
197
197
 
198
- var _chunkHZEXKGDSjs = require('./chunk-HZEXKGDS.js');
198
+
199
+
200
+
201
+
202
+
203
+ var _chunkWMRDOYPVjs = require('./chunk-WMRDOYPV.js');
199
204
 
200
205
  // src/ui/theme.tsx
201
206
  var _react = require('react');
@@ -385,7 +390,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
385
390
  if (!dashboard.refresh) return;
386
391
  let ms;
387
392
  try {
388
- ms = _chunkHZEXKGDSjs.parseDuration.call(void 0, dashboard.refresh);
393
+ ms = _chunkWMRDOYPVjs.parseDuration.call(void 0, dashboard.refresh);
389
394
  } catch (e2) {
390
395
  return;
391
396
  }
@@ -393,7 +398,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
393
398
  return () => clearInterval(id);
394
399
  }, [dashboard.refresh, refresh]);
395
400
  const refreshKey = tick + externalKey;
396
- const range3 = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
401
+ const range3 = _react.useMemo.call(void 0, () => _chunkWMRDOYPVjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
397
402
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
398
403
  const value = _react.useMemo.call(void 0,
399
404
  () => ({
@@ -430,8 +435,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
430
435
  ] });
431
436
  }
432
437
  function useDashboardVariables(dashboard, resolve, rawRange) {
433
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkHZEXKGDSjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
434
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
438
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkWMRDOYPVjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
439
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkWMRDOYPVjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
435
440
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
436
441
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
437
442
  const stateRef = _react.useRef.call(void 0, state);
@@ -464,7 +469,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
464
469
  setState(update);
465
470
  setResolving(false);
466
471
  };
467
- _chunkHZEXKGDSjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkHZEXKGDSjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
472
+ _chunkWMRDOYPVjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkWMRDOYPVjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
468
473
  (res) => finish((s) => ({
469
474
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
470
475
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -478,11 +483,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
478
483
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
479
484
  if (dashboard !== loadedDashboard) {
480
485
  setLoadedDashboard(dashboard);
481
- setState((s) => ({ ...s, values: { ..._chunkHZEXKGDSjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
486
+ setState((s) => ({ ...s, values: { ..._chunkWMRDOYPVjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
482
487
  }
483
488
  _react.useEffect.call(void 0, () => {
484
- const roots = _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "load");
485
- schedule([...roots, ..._chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, roots)]);
489
+ const roots = _chunkWMRDOYPVjs.refreshedVariables.call(void 0, dashboard, "load");
490
+ schedule([...roots, ..._chunkWMRDOYPVjs.variableDependents.call(void 0, dashboard, roots)]);
486
491
  }, [dashboard, schedule]);
487
492
  const mounted = _react.useRef.call(void 0, false);
488
493
  _react.useEffect.call(void 0, () => {
@@ -490,17 +495,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
490
495
  mounted.current = true;
491
496
  return;
492
497
  }
493
- const roots = _chunkHZEXKGDSjs.refreshedVariables.call(void 0, dashboard, "range");
494
- schedule([...roots, ..._chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, roots)]);
498
+ const roots = _chunkWMRDOYPVjs.refreshedVariables.call(void 0, dashboard, "range");
499
+ schedule([...roots, ..._chunkWMRDOYPVjs.variableDependents.call(void 0, dashboard, roots)]);
495
500
  }, [rawRange]);
496
501
  const setVariable = _react.useCallback.call(void 0,
497
502
  (name, value) => {
498
503
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
499
- schedule(_chunkHZEXKGDSjs.variableDependents.call(void 0, dashboard, [name]));
504
+ schedule(_chunkWMRDOYPVjs.variableDependents.call(void 0, dashboard, [name]));
500
505
  },
501
506
  [dashboard, schedule]
502
507
  );
503
- const info = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
508
+ const info = _react.useMemo.call(void 0, () => _chunkWMRDOYPVjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
504
509
  return _react.useMemo.call(void 0,
505
510
  () => ({
506
511
  variables: state.values,
@@ -530,7 +535,7 @@ function usePanelData(panel, widthPx, enabled = true) {
530
535
  _react.useEffect.call(void 0, () => {
531
536
  if (!enabled || !request || !variablesReady) return;
532
537
  const controller = new AbortController();
533
- _chunkHZEXKGDSjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
538
+ _chunkWMRDOYPVjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
534
539
  return () => controller.abort();
535
540
  }, [enabled, request, variablesReady]);
536
541
  if (!enabled) return IDLE;
@@ -540,7 +545,7 @@ function usePanelData(panel, widthPx, enabled = true) {
540
545
  function usePanelLinks(panel) {
541
546
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
542
547
  const resolve = _react.useCallback.call(void 0,
543
- (links, data) => _chunkHZEXKGDSjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
548
+ (links, data) => _chunkWMRDOYPVjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
544
549
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
545
550
  );
546
551
  return { resolve, openLinks };
@@ -637,14 +642,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
637
642
  function displayExpr(expr) {
638
643
  if (expr.trim().startsWith("now")) return expr;
639
644
  try {
640
- return _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, _chunkHZEXKGDSjs.parseTime.call(void 0, expr));
645
+ return _chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, _chunkWMRDOYPVjs.parseTime.call(void 0, expr));
641
646
  } catch (e3) {
642
647
  return expr;
643
648
  }
644
649
  }
645
650
  function tryParse(expr, roundUp, now = Date.now()) {
646
651
  try {
647
- return _chunkHZEXKGDSjs.parseTime.call(void 0, expr, now, roundUp);
652
+ return _chunkWMRDOYPVjs.parseTime.call(void 0, expr, now, roundUp);
648
653
  } catch (e4) {
649
654
  return null;
650
655
  }
@@ -658,7 +663,7 @@ function endOfDay(ms) {
658
663
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
659
664
  }
660
665
  function resolveTo(expr) {
661
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, endOfDay(_chunkHZEXKGDSjs.parseTime.call(void 0, expr))) : expr;
666
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, endOfDay(_chunkWMRDOYPVjs.parseTime.call(void 0, expr))) : expr;
662
667
  }
663
668
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
664
669
  const theme = useDashTheme();
@@ -669,12 +674,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
669
674
  const [now] = _react.useState.call(void 0, () => Date.now());
670
675
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
671
676
  const fromMs = tryParse(from, false, now);
672
- const toMs = tryParse(_chunkHZEXKGDSjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
673
- const fromError = _chunkHZEXKGDSjs.timeExprError.call(void 0, from);
674
- const toError = _chunkHZEXKGDSjs.timeExprError.call(void 0, to);
677
+ const toMs = tryParse(_chunkWMRDOYPVjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
678
+ const fromError = _chunkWMRDOYPVjs.timeExprError.call(void 0, from);
679
+ const toError = _chunkWMRDOYPVjs.timeExprError.call(void 0, to);
675
680
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
676
681
  const valid = !fromError && !toError && !orderError;
677
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, _chunkHZEXKGDSjs.parseTime.call(void 0, expr));
682
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, _chunkWMRDOYPVjs.parseTime.call(void 0, expr));
678
683
  const apply = () => {
679
684
  if (!valid) return;
680
685
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -683,14 +688,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
683
688
  const pickDay = (day) => {
684
689
  const end = endOfDay(day);
685
690
  if (active === "from") {
686
- setFrom(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, day));
687
- if (toMs == null || toMs <= day) setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
691
+ setFrom(_chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, day));
692
+ if (toMs == null || toMs <= day) setTo(_chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, end));
688
693
  setActive("to");
689
694
  } else if (fromMs != null && day < startOfDay(fromMs)) {
690
- setFrom(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, day));
691
- setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
695
+ setFrom(_chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, day));
696
+ setTo(_chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, end));
692
697
  } else {
693
- setTo(_chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, end));
698
+ setTo(_chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, end));
694
699
  }
695
700
  };
696
701
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -726,7 +731,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
726
731
  }
727
732
  ),
728
733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
729
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkHZEXKGDSjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
734
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkWMRDOYPVjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
730
735
  Chip,
731
736
  {
732
737
  label: r.label,
@@ -870,17 +875,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
870
875
  var CalendarIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM4 10h16M8 3v4M16 3v4" }) });
871
876
  var ChevronIcon = ({ color, open }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: open ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" }) });
872
877
  var CheckIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.4, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 12.5l4.5 4.5L19 7" }) });
873
- function DashboardToolbar({ presets = _chunkHZEXKGDSjs.TIME_PRESETS }) {
878
+ function DashboardToolbar({ presets = _chunkWMRDOYPVjs.TIME_PRESETS }) {
874
879
  const theme = useDashTheme();
875
880
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
876
881
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
877
882
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
878
883
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
879
884
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
880
- const vars = _chunkHZEXKGDSjs.visibleVariables.call(void 0, dashboard);
885
+ const vars = _chunkWMRDOYPVjs.visibleVariables.call(void 0, dashboard);
881
886
  const active = vars.filter((v) => {
882
887
  const cur = variables[v.name];
883
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkHZEXKGDSjs.ALL) : cur === _chunkHZEXKGDSjs.ALL);
888
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkWMRDOYPVjs.ALL) : cur === _chunkWMRDOYPVjs.ALL);
884
889
  }).length;
885
890
  const hasError = vars.some((v) => variableErrors[v.name]);
886
891
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -906,7 +911,7 @@ function DashboardToolbar({ presets = _chunkHZEXKGDSjs.TIME_PRESETS }) {
906
911
  setRangeOpen(true);
907
912
  },
908
913
  accessibilityRole: "button",
909
- accessibilityLabel: custom ? `Time range, ${_chunkHZEXKGDSjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
914
+ accessibilityLabel: custom ? `Time range, ${_chunkWMRDOYPVjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
910
915
  style: ({ pressed }) => [
911
916
  custom ? styles4.rangeButton : styles4.iconButton,
912
917
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -914,7 +919,7 @@ function DashboardToolbar({ presets = _chunkHZEXKGDSjs.TIME_PRESETS }) {
914
919
  ],
915
920
  children: [
916
921
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
917
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkHZEXKGDSjs.describeRange.call(void 0, rawRange) })
922
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkWMRDOYPVjs.describeRange.call(void 0, rawRange) })
918
923
  ]
919
924
  }
920
925
  ),
@@ -970,14 +975,14 @@ function FilterSection({ variable: v, open, onToggle }) {
970
975
  const theme = useDashTheme();
971
976
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
972
977
  const current = variables[v.name];
973
- const summary = _chunkHZEXKGDSjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
974
- const options = [...v.includeAll ? [{ text: "All", value: _chunkHZEXKGDSjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
978
+ const summary = _chunkWMRDOYPVjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
979
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkWMRDOYPVjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
975
980
  const error = variableErrors[v.name];
976
981
  const choose = (value, selected) => {
977
- if (v.multi && value !== _chunkHZEXKGDSjs.ALL) {
978
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkHZEXKGDSjs.ALL);
982
+ if (v.multi && value !== _chunkWMRDOYPVjs.ALL) {
983
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkWMRDOYPVjs.ALL);
979
984
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
980
- setVariable(v.name, next.length ? next : [_chunkHZEXKGDSjs.ALL]);
985
+ setVariable(v.name, next.length ? next : [_chunkWMRDOYPVjs.ALL]);
981
986
  } else {
982
987
  setVariable(v.name, v.multi ? [value] : value);
983
988
  if (!v.multi) onToggle();
@@ -1117,7 +1122,7 @@ function barCategory(panel, frame) {
1117
1122
  }
1118
1123
  function categoryLabels(field) {
1119
1124
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1120
- const times = field.values.map((v) => v == null ? null : _chunkHZEXKGDSjs.toMillis.call(void 0, v));
1125
+ const times = field.values.map((v) => v == null ? null : _chunkWMRDOYPVjs.toMillis.call(void 0, v));
1121
1126
  let step = Infinity;
1122
1127
  times.forEach((t, i) => {
1123
1128
  const prev = times[i - 1];
@@ -1163,19 +1168,19 @@ function formatTooltipTime(t) {
1163
1168
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1164
1169
  }
1165
1170
  function styledSeries(panel, frames, scheme) {
1166
- return styleSeries(panel, _chunkHZEXKGDSjs.toSeries.call(void 0, frames), frames, scheme);
1171
+ return styleSeries(panel, _chunkWMRDOYPVjs.toSeries.call(void 0, frames), frames, scheme);
1167
1172
  }
1168
1173
  function styledXYSeries(panel, frames, scheme) {
1169
- const { series, x } = _chunkHZEXKGDSjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1170
- const xConfig = x ? _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1174
+ const { series, x } = _chunkWMRDOYPVjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1175
+ const xConfig = x ? _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1171
1176
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1172
1177
  }
1173
1178
  function styleSeries(panel, series, frames, scheme) {
1174
1179
  const frameOf = /* @__PURE__ */ new Map();
1175
1180
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1176
1181
  return series.map((s, i) => {
1177
- const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1178
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkHZEXKGDSjs.seriesColor.call(void 0, i, scheme, config) };
1182
+ const config = _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1183
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkWMRDOYPVjs.seriesColor.call(void 0, i, scheme, config) };
1179
1184
  });
1180
1185
  }
1181
1186
  function reducedValues(panel, frames, scheme) {
@@ -1183,30 +1188,30 @@ function reducedValues(panel, frames, scheme) {
1183
1188
  const out = [];
1184
1189
  const multiple = frames.length > 1;
1185
1190
  frames.forEach(
1186
- (frame, fi) => _chunkHZEXKGDSjs.numberFields.call(void 0, frame).forEach((field) => {
1187
- const raw = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multiple);
1188
- const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1191
+ (frame, fi) => _chunkWMRDOYPVjs.numberFields.call(void 0, frame).forEach((field) => {
1192
+ const raw = _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, field, frame, multiple);
1193
+ const config = _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1189
1194
  const values = field.values.map((v) => v == null ? null : Number(v));
1190
- const value = _chunkHZEXKGDSjs.reduce.call(void 0, values, calc);
1191
- const color = _chunkHZEXKGDSjs.seriesColor.call(void 0, out.length, scheme, config);
1192
- const step = _chunkHZEXKGDSjs.thresholdStep.call(void 0, value, config);
1193
- const mapped = _chunkHZEXKGDSjs.mappedResult.call(void 0, value, config);
1195
+ const value = _chunkWMRDOYPVjs.reduce.call(void 0, values, calc);
1196
+ const color = _chunkWMRDOYPVjs.seriesColor.call(void 0, out.length, scheme, config);
1197
+ const step = _chunkWMRDOYPVjs.thresholdStep.call(void 0, value, config);
1198
+ const mapped = _chunkWMRDOYPVjs.mappedResult.call(void 0, value, config);
1194
1199
  out.push({
1195
1200
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1196
1201
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1197
1202
  value,
1198
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkHZEXKGDSjs.formatValue.call(void 0, value, config),
1203
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkWMRDOYPVjs.formatValue.call(void 0, value, config),
1199
1204
  mapped,
1200
1205
  config,
1201
1206
  color,
1202
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkHZEXKGDSjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkHZEXKGDSjs.resolveColor.call(void 0, step.color, color) : color,
1207
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkWMRDOYPVjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkWMRDOYPVjs.resolveColor.call(void 0, step.color, color) : color,
1203
1208
  sparkline: values,
1204
1209
  field,
1205
1210
  frame
1206
1211
  });
1207
1212
  })
1208
1213
  );
1209
- return _chunkHZEXKGDSjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1214
+ return _chunkWMRDOYPVjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1210
1215
  }
1211
1216
  function yDomain(series, includeZero) {
1212
1217
  let min = Infinity;
@@ -1267,22 +1272,22 @@ function NoData({ message = "No data" }) {
1267
1272
  }
1268
1273
  function rowTooltipItems(panel, frame, row, multiple) {
1269
1274
  return frame.fields.flatMap((f) => {
1270
- const name = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple);
1271
- const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1275
+ const name = _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, f, frame, multiple);
1276
+ const config = _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1272
1277
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1273
1278
  const v = f.values[row];
1274
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkHZEXKGDSjs.toMillis.call(void 0, v)) : String(v);
1279
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkWMRDOYPVjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkWMRDOYPVjs.toMillis.call(void 0, v)) : String(v);
1275
1280
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1276
1281
  });
1277
1282
  }
1278
1283
  function rowLinks(panel, frame, row, multiple, resolve) {
1279
1284
  return mergeLinks(
1280
1285
  frame.fields.flatMap((f) => {
1281
- const name = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple);
1282
- const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1286
+ const name = _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, f, frame, multiple);
1287
+ const config = _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1283
1288
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1284
1289
  const v = f.values[row];
1285
- const text = v == null ? void 0 : f.type === "number" ? _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1290
+ const text = v == null ? void 0 : f.type === "number" ? _chunkWMRDOYPVjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1286
1291
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1287
1292
  })
1288
1293
  );
@@ -1295,7 +1300,7 @@ function valueLinks(panel, v, resolve) {
1295
1300
  fieldName: v.name,
1296
1301
  seriesName: v.name,
1297
1302
  value: v.value,
1298
- text: _chunkHZEXKGDSjs.formatValue.call(void 0, v.value, v.config),
1303
+ text: _chunkWMRDOYPVjs.formatValue.call(void 0, v.value, v.config),
1299
1304
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1300
1305
  });
1301
1306
  }
@@ -1440,15 +1445,15 @@ function NumberInput({ panel, value, onChange }) {
1440
1445
  }
1441
1446
  function DurationInput({ panel, value, onChange }) {
1442
1447
  const theme = useDashTheme();
1443
- const toDigits = (v) => typeof v === "number" ? _chunkHZEXKGDSjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1448
+ const toDigits = (v) => typeof v === "number" ? _chunkWMRDOYPVjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1444
1449
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1445
1450
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1446
1451
  if (value !== syncedValue) {
1447
1452
  setSyncedValue(value);
1448
- setDigits((d) => value == null ? _chunkHZEXKGDSjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkHZEXKGDSjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1453
+ setDigits((d) => value == null ? _chunkWMRDOYPVjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkWMRDOYPVjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1449
1454
  }
1450
1455
  const masked = digits ? maskClock(digits) : "";
1451
- const invalid = !!digits && _chunkHZEXKGDSjs.parseClockDigits.call(void 0, digits) == null;
1456
+ const invalid = !!digits && _chunkWMRDOYPVjs.parseClockDigits.call(void 0, digits) == null;
1452
1457
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles6.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1453
1458
  _reactnative.TextInput,
1454
1459
  {
@@ -1456,7 +1461,7 @@ function DurationInput({ panel, value, onChange }) {
1456
1461
  onChangeText: (t) => {
1457
1462
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1458
1463
  setDigits(d);
1459
- onChange(_chunkHZEXKGDSjs.parseClockDigits.call(void 0, d));
1464
+ onChange(_chunkWMRDOYPVjs.parseClockDigits.call(void 0, d));
1460
1465
  },
1461
1466
  keyboardType: "number-pad",
1462
1467
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1642,10 +1647,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1642
1647
  }, [store, metric, suggestWith]);
1643
1648
  const withText = suggestWith ? form.value(suggestWith) : null;
1644
1649
  const own = entries.filter((e) => e.metric === metric);
1645
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkHZEXKGDSjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1650
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkWMRDOYPVjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1646
1651
  const query = typed ? text : "";
1647
- const fromScoped = _chunkHZEXKGDSjs.textSuggestions.call(void 0, scoped, query);
1648
- const suggestions = (fromScoped.length ? fromScoped : _chunkHZEXKGDSjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1652
+ const fromScoped = _chunkWMRDOYPVjs.textSuggestions.call(void 0, scoped, query);
1653
+ const suggestions = (fromScoped.length ? fromScoped : _chunkWMRDOYPVjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1649
1654
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1650
1655
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1651
1656
  _reactnative.TextInput,
@@ -1684,7 +1689,7 @@ function CounterInput({ panel }) {
1684
1689
  const { metric, increment = 1, unit } = panel.options;
1685
1690
  const [today, setToday] = _react.useState.call(void 0, 0);
1686
1691
  _react.useEffect.call(void 0, () => {
1687
- const load = () => store.list({ metrics: [metric], from: _chunkHZEXKGDSjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1692
+ const load = () => store.list({ metrics: [metric], from: _chunkWMRDOYPVjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1688
1693
  load();
1689
1694
  return store.subscribe(load);
1690
1695
  }, [store, metric]);
@@ -1886,7 +1891,7 @@ function BarGaugePanel({ panel, frames }) {
1886
1891
  const min = _nullishCoalesce(v.config.min, () => ( 0));
1887
1892
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
1888
1893
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
1889
- const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkHZEXKGDSjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1894
+ const color = v.config.thresholds || _optionalChain([v, 'access', _72 => _72.mapped, 'optionalAccess', _73 => _73.color]) ? v.stateColor : _chunkWMRDOYPVjs.resolveColor.call(void 0, _optionalChain([v, 'access', _74 => _74.config, 'access', _75 => _75.color, 'optionalAccess', _76 => _76.fixedColor]), v.color);
1890
1895
  const hasLinks = !!_optionalChain([v, 'access', _77 => _77.config, 'access', _78 => _78.links, 'optionalAccess', _79 => _79.length]);
1891
1896
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1892
1897
  _reactnative.Pressable,
@@ -2067,7 +2072,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2067
2072
  const color = _nullishCoalesce(style.color, () => ( {}));
2068
2073
  const size = _nullishCoalesce(style.size, () => ( {}));
2069
2074
  const text = style.text;
2070
- const fixedColor = _chunkHZEXKGDSjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2075
+ const fixedColor = _chunkWMRDOYPVjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2071
2076
  const heat = layer.type === "heatmap";
2072
2077
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2073
2078
  const legend = [];
@@ -2079,14 +2084,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2079
2084
  let { xs, ys } = located;
2080
2085
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2081
2086
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2082
- const configOf = (f) => _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple));
2087
+ const configOf = (f) => _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, f, frame, multiple));
2083
2088
  let colors = rows.map(() => fixedColor);
2084
2089
  const colorField = !heat ? find(color.field) : void 0;
2085
2090
  if (colorField) {
2086
2091
  const cConfig = configOf(colorField);
2087
2092
  const values = rows.map((i) => num(colorField.values[i]));
2088
2093
  const extent = range(values);
2089
- colors = values.map((v) => _chunkHZEXKGDSjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2094
+ colors = values.map((v) => _chunkWMRDOYPVjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2090
2095
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2091
2096
  }
2092
2097
  const dim = heat ? weight : size;
@@ -2144,8 +2149,8 @@ function thresholdLegend(key, config, fallback) {
2144
2149
  if (steps.length < 2) return [];
2145
2150
  return steps.map((s, i) => ({
2146
2151
  key: `${key}/${i}`,
2147
- name: s.value == null ? `< ${_chunkHZEXKGDSjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkHZEXKGDSjs.formatValue.call(void 0, s.value, config)}+`,
2148
- color: _chunkHZEXKGDSjs.resolveColor.call(void 0, s.color, fallback)
2152
+ name: s.value == null ? `< ${_chunkWMRDOYPVjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkWMRDOYPVjs.formatValue.call(void 0, s.value, config)}+`,
2153
+ color: _chunkWMRDOYPVjs.resolveColor.call(void 0, s.color, fallback)
2149
2154
  }));
2150
2155
  }
2151
2156
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2155,15 +2160,15 @@ function gazetteerPaths(panel, frames) {
2155
2160
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _97 => _97.options, 'optionalAccess', _98 => _98.layers]), () => ( DEFAULT_LAYERS))) {
2156
2161
  if (!isDataLayer(layer.type)) continue;
2157
2162
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _99 => _99.location, 'optionalAccess', _100 => _100.mode]), () => ( "auto"));
2158
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkHZEXKGDSjs.DEFAULT_GAZETTEER);
2159
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkHZEXKGDSjs.DEFAULT_GAZETTEER);
2163
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _101 => _101.location, 'optionalAccess', _102 => _102.gazetteer]) || _chunkWMRDOYPVjs.DEFAULT_GAZETTEER);
2164
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkWMRDOYPVjs.DEFAULT_GAZETTEER);
2160
2165
  }
2161
2166
  return [...paths];
2162
2167
  }
2163
2168
  var LAT_NAMES = ["lat", "latitude"];
2164
2169
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2165
2170
  function fieldByName(frame, name, multiple) {
2166
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2171
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2167
2172
  }
2168
2173
  function locate2(frame, location = {}, gazetteers = {}) {
2169
2174
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2182,10 +2187,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2182
2187
  lat = named(LAT_NAMES);
2183
2188
  lon = named(LON_NAMES);
2184
2189
  if (!lat || !lon) hash = named(["geohash"]);
2185
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkHZEXKGDSjs.DEFAULT_GAZETTEER]];
2190
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkWMRDOYPVjs.DEFAULT_GAZETTEER]];
2186
2191
  } else if (mode === "lookup") {
2187
2192
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2188
- gazetteer = gazetteers[location.gazetteer || _chunkHZEXKGDSjs.DEFAULT_GAZETTEER];
2193
+ gazetteer = gazetteers[location.gazetteer || _chunkWMRDOYPVjs.DEFAULT_GAZETTEER];
2189
2194
  }
2190
2195
  const rows = [];
2191
2196
  const xs = [];
@@ -2234,8 +2239,8 @@ function decodeGeohash(hash) {
2234
2239
  }
2235
2240
  function cellText(field, v, config) {
2236
2241
  if (v == null) return "";
2237
- if (field.type === "number") return _chunkHZEXKGDSjs.formatDisplay.call(void 0, Number(v), config);
2238
- if (field.type === "time") return new Date(_chunkHZEXKGDSjs.toMillis.call(void 0, v)).toLocaleString();
2242
+ if (field.type === "number") return _chunkWMRDOYPVjs.formatDisplay.call(void 0, Number(v), config);
2243
+ if (field.type === "time") return new Date(_chunkWMRDOYPVjs.toMillis.call(void 0, v)).toLocaleString();
2239
2244
  return String(v);
2240
2245
  }
2241
2246
  function num(v) {
@@ -2485,11 +2490,11 @@ function useGazetteers(panel, frames) {
2485
2490
  let live = true;
2486
2491
  let ds;
2487
2492
  try {
2488
- ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkHZEXKGDSjs.normalizeRef.call(void 0, panel.datasource))]);
2493
+ ds = _optionalChain([resolve, 'optionalCall', _112 => _112(_chunkWMRDOYPVjs.normalizeRef.call(void 0, panel.datasource))]);
2489
2494
  } catch (e5) {
2490
2495
  }
2491
2496
  const paths = key.split("\n");
2492
- Promise.allSettled(paths.map((p) => _chunkHZEXKGDSjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2497
+ Promise.allSettled(paths.map((p) => _chunkWMRDOYPVjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2493
2498
  if (!live) return;
2494
2499
  const gazetteers = {};
2495
2500
  const errors = [];
@@ -2632,8 +2637,8 @@ function cellType(config) {
2632
2637
  }
2633
2638
  function tableColumns(panel, frame, multipleFrames = false) {
2634
2639
  return frame.fields.flatMap((field, i) => {
2635
- const raw = _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2636
- const config = _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2640
+ const raw = _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2641
+ const config = _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2637
2642
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2638
2643
  if (custom.hidden || _optionalChain([custom, 'access', _122 => _122.hideFrom, 'optionalAccess', _123 => _123.viz])) return [];
2639
2644
  const numeric = field.type === "number";
@@ -2676,16 +2681,16 @@ function tableFooter(columns) {
2676
2681
  counted = true;
2677
2682
  return [{ label: "Count", text: String(c.field.values.length) }];
2678
2683
  }
2679
- if (!_chunkHZEXKGDSjs.isReducer.call(void 0, r)) return [];
2680
- const label = _chunkHZEXKGDSjs.REDUCER_LABELS[r];
2684
+ if (!_chunkWMRDOYPVjs.isReducer.call(void 0, r)) return [];
2685
+ const label = _chunkWMRDOYPVjs.REDUCER_LABELS[r];
2681
2686
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2682
2687
  if (c.field.type !== "number") {
2683
2688
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2684
2689
  return [];
2685
2690
  }
2686
- const value = _chunkHZEXKGDSjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2691
+ const value = _chunkWMRDOYPVjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2687
2692
  const counts = r === "distinctCount" || r === "changeCount";
2688
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkHZEXKGDSjs.formatValue.call(void 0, value, c.config) }];
2693
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkWMRDOYPVjs.formatValue.call(void 0, value, c.config) }];
2689
2694
  });
2690
2695
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2691
2696
  });
@@ -2704,13 +2709,13 @@ function extentOf(values) {
2704
2709
  }
2705
2710
  function cellDisplay(col, raw, fallbackColor) {
2706
2711
  const { config, field } = col;
2707
- const mapped = _chunkHZEXKGDSjs.mappedResult.call(void 0, raw, config);
2712
+ const mapped = _chunkWMRDOYPVjs.mappedResult.call(void 0, raw, config);
2708
2713
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2709
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkHZEXKGDSjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkHZEXKGDSjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2714
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _137 => _137.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkWMRDOYPVjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkWMRDOYPVjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2710
2715
  if (col.cellType === "auto") return { text };
2711
2716
  const mode = _optionalChain([config, 'access', _138 => _138.color, 'optionalAccess', _139 => _139.mode]);
2712
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkHZEXKGDSjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2713
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkHZEXKGDSjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkHZEXKGDSjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2717
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _140 => _140.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _141 => _141.color, 'optionalAccess', _142 => _142.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkWMRDOYPVjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _143 => _143.color]) : void 0)));
2718
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _144 => _144.color]) ? _chunkWMRDOYPVjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkWMRDOYPVjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2714
2719
  if (col.cellType === "color-text") return { text, color };
2715
2720
  if (col.cellType === "color-background") return { text, background: color };
2716
2721
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _145 => _145.extent, 'optionalAccess', _146 => _146[0]]), () => ( 0)))));
@@ -2741,7 +2746,7 @@ function sortedRows(columns, length, sort) {
2741
2746
  if (!col) return rows;
2742
2747
  const { field } = col;
2743
2748
  const dir = sort.desc ? -1 : 1;
2744
- const key = (v) => field.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2749
+ const key = (v) => field.type === "time" ? _chunkWMRDOYPVjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2745
2750
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
2746
2751
  return rows.sort((a, b) => {
2747
2752
  const va = field.values[a];
@@ -2807,8 +2812,8 @@ function TablePanel({ panel, frames }) {
2807
2812
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
2808
2813
  const [tapped, setSort] = _react.useState.call(void 0, );
2809
2814
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
2810
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkHZEXKGDSjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2811
- if (!frame || !_chunkHZEXKGDSjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2815
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkWMRDOYPVjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
2816
+ if (!frame || !_chunkWMRDOYPVjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
2812
2817
  const shown = order.slice(0, 500);
2813
2818
  const rowColumn = columns.find((c) => c.applyToRow);
2814
2819
  const footer = tableFooter(columns);
@@ -2908,7 +2913,7 @@ function BarChartPanel({ panel, frames, width }) {
2908
2913
  {
2909
2914
  style: [styles10.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles10.tickLeft : styles10.tickRight],
2910
2915
  numberOfLines: 1,
2911
- children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2916
+ children: _chunkWMRDOYPVjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
2912
2917
  },
2913
2918
  t
2914
2919
  )) });
@@ -3034,7 +3039,7 @@ function TimeSeriesPanel({ panel, frames }) {
3034
3039
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3035
3040
  const span = xTo - xFrom;
3036
3041
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3037
- const xLabel = (t) => numericX ? _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3042
+ const xLabel = (t) => numericX ? _chunkWMRDOYPVjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3038
3043
  const unitConfig = series[0].config;
3039
3044
  const barSeries = series.filter((s) => style(s) === "bars");
3040
3045
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3052,11 +3057,11 @@ function TimeSeriesPanel({ panel, frames }) {
3052
3057
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3053
3058
  const p = pinch.current;
3054
3059
  const limits = extent ? { minSpan: (extent[1] - extent[0]) / 1e3, maxSpan: extent[1] - extent[0], minFrom: extent[0], maxTo: extent[1] } : { maxTo: Math.max(Date.now(), p.start.to) };
3055
- setPreview(_chunkHZEXKGDSjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3060
+ setPreview(_chunkWMRDOYPVjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3056
3061
  };
3057
3062
  const onPinchEnd = (commit) => {
3058
3063
  if (commit && pinch.current && preview) {
3059
- if (!extent) setRawRange({ from: _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkHZEXKGDSjs.formatLocalDateTime.call(void 0, preview.to) });
3064
+ if (!extent) setRawRange({ from: _chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkWMRDOYPVjs.formatLocalDateTime.call(void 0, preview.to) });
3060
3065
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3061
3066
  }
3062
3067
  pinch.current = null;
@@ -3111,7 +3116,7 @@ function TimeSeriesPanel({ panel, frames }) {
3111
3116
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3112
3117
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3113
3118
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: PAD.left, x2: PAD.left + plotW, y1: y(t), y2: y(t), stroke: theme.grid, strokeWidth: 1 }),
3114
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3119
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkWMRDOYPVjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3115
3120
  ] }, t)),
3116
3121
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3117
3122
  _reactnativesvg.Text,
@@ -3177,11 +3182,11 @@ function TimeSeriesPanel({ panel, frames }) {
3177
3182
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3178
3183
  ],
3179
3184
  children: [
3180
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkHZEXKGDSjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3185
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkWMRDOYPVjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3181
3186
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles11.tooltipRow, children: [
3182
3187
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles11.swatch, { backgroundColor: r.color }] }),
3183
3188
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3184
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkHZEXKGDSjs.formatValue.call(void 0, r.value, r.config) })
3189
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles11.tooltipValue, { color: theme.text }], children: _chunkWMRDOYPVjs.formatValue.call(void 0, r.value, r.config) })
3185
3190
  ] }, r.key)),
3186
3191
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3187
3192
  ]
@@ -3266,7 +3271,7 @@ function linkData(r, frames, xField) {
3266
3271
  if (frame && xField === void 0) {
3267
3272
  row = r.index;
3268
3273
  } else if (frame) {
3269
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkHZEXKGDSjs.numberFields.call(void 0, frame)[0]));
3274
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkWMRDOYPVjs.numberFields.call(void 0, frame)[0]));
3270
3275
  const at = _optionalChain([xf, 'optionalAccess', _206 => _206.values, 'access', _207 => _207.findIndex, 'call', _208 => _208((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3271
3276
  row = at != null && at >= 0 ? at : void 0;
3272
3277
  }
@@ -3277,7 +3282,7 @@ function linkData(r, frames, xField) {
3277
3282
  fieldName: r.name,
3278
3283
  seriesName: r.name,
3279
3284
  value: r.value,
3280
- text: _chunkHZEXKGDSjs.formatValue.call(void 0, r.value, r.config),
3285
+ text: _chunkWMRDOYPVjs.formatValue.call(void 0, r.value, r.config),
3281
3286
  time: xField === void 0 ? r.time : void 0
3282
3287
  };
3283
3288
  }
@@ -3338,8 +3343,8 @@ function xySeries(panel, frames, scheme) {
3338
3343
  const { manual, series: maps, exclude } = mappings(panel);
3339
3344
  const multiple = frames.length > 1;
3340
3345
  const out = [];
3341
- const config = (field, frame) => _chunkHZEXKGDSjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, field, frame, multiple));
3342
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkHZEXKGDSjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3346
+ const config = (field, frame) => _chunkWMRDOYPVjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, field, frame, multiple));
3347
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkWMRDOYPVjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3343
3348
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3344
3349
  const matcher = _optionalChain([m, 'access', _219 => _219.frame, 'optionalAccess', _220 => _220.matcher]);
3345
3350
  const chosen = _optionalChain([matcher, 'optionalAccess', _221 => _221.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3355,16 +3360,16 @@ function xySeries(panel, frames, scheme) {
3355
3360
  const yConfig = config(yField, frame);
3356
3361
  if (_optionalChain([yConfig, 'access', _222 => _222.custom, 'optionalAccess', _223 => _223.hideFrom, 'optionalAccess', _224 => _224.viz]) && !manual) continue;
3357
3362
  const xConfig = config(xField, frame);
3358
- const color = _chunkHZEXKGDSjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3359
- const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkHZEXKGDSjs.valueColor.call(void 0, null, yConfig, color) : color;
3363
+ const color = _chunkWMRDOYPVjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3364
+ const base = _optionalChain([yConfig, 'access', _225 => _225.color, 'optionalAccess', _226 => _226.mode]) === "thresholds" ? _chunkWMRDOYPVjs.valueColor.call(void 0, null, yConfig, color) : color;
3360
3365
  const rows = [];
3361
3366
  const xs = [];
3362
3367
  const ys = [];
3363
3368
  yField.values.forEach((yv, i) => {
3364
3369
  const xv = xField.values[i];
3365
3370
  if (xv == null || yv == null) return;
3366
- const xn = xField.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, xv) : Number(xv);
3367
- const yn = yField.type === "time" ? _chunkHZEXKGDSjs.toMillis.call(void 0, yv) : Number(yv);
3371
+ const xn = xField.type === "time" ? _chunkWMRDOYPVjs.toMillis.call(void 0, xv) : Number(xv);
3372
+ const yn = yField.type === "time" ? _chunkWMRDOYPVjs.toMillis.call(void 0, yv) : Number(yv);
3368
3373
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3369
3374
  rows.push(i);
3370
3375
  xs.push(xn);
@@ -3377,7 +3382,7 @@ function xySeries(panel, frames, scheme) {
3377
3382
  const cConfig = config(colorField, frame);
3378
3383
  const values = rows.map((i) => num3(colorField.values[i]));
3379
3384
  const extent = range2(values);
3380
- colors = values.map((v) => _chunkHZEXKGDSjs.valueColor.call(void 0, v, cConfig, base, extent));
3385
+ colors = values.map((v) => _chunkWMRDOYPVjs.valueColor.call(void 0, v, cConfig, base, extent));
3381
3386
  }
3382
3387
  let sizes = rows.map(() => fixedSize);
3383
3388
  if (sizeField) {
@@ -3387,7 +3392,7 @@ function xySeries(panel, frames, scheme) {
3387
3392
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3388
3393
  }
3389
3394
  const fixedName = _optionalChain([m, 'access', _238 => _238.name, 'optionalAccess', _239 => _239.fixed]);
3390
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkHZEXKGDSjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3395
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkWMRDOYPVjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3391
3396
  out.push({
3392
3397
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3393
3398
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3510,7 +3515,7 @@ function XYChartPanel({ panel, frames }) {
3510
3515
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3511
3516
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3512
3517
  gridY && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: pad.left, x2: pad.left + plotW, y1: layout.y(t), y2: layout.y(t), stroke: theme.grid, strokeWidth: 1 }),
3513
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3518
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkWMRDOYPVjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3514
3519
  ] }, `y${t}`)),
3515
3520
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3516
3521
  gridX && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: layout.x(t), x2: layout.x(t), y1: pad.top, y2: pad.top + plotH, stroke: theme.grid, strokeWidth: 1 }),
@@ -3522,7 +3527,7 @@ function XYChartPanel({ panel, frames }) {
3522
3527
  fontSize: 10,
3523
3528
  fill: theme.textMuted,
3524
3529
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3525
- children: _chunkHZEXKGDSjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3530
+ children: _chunkWMRDOYPVjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3526
3531
  }
3527
3532
  )
3528
3533
  ] }, `x${t}`)),
@@ -3635,14 +3640,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3635
3640
  const width = (measured.width || window.width) - insets.left - insets.right;
3636
3641
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3637
3642
  const sections = _react.useMemo.call(void 0,
3638
- () => _chunkHZEXKGDSjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3643
+ () => _chunkWMRDOYPVjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3639
3644
  [dashboard, layoutMode, variables, variableInfo2]
3640
3645
  );
3641
3646
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3642
3647
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3643
3648
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3644
3649
  const contentW = width - SIDE * 2;
3645
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkHZEXKGDSjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkHZEXKGDSjs.panelHasQueries)]))));
3650
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkWMRDOYPVjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _262 => _262.panels, 'optionalAccess', _263 => _263.some, 'call', _264 => _264(_chunkWMRDOYPVjs.panelHasQueries)]))));
3646
3651
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.fill, { backgroundColor: theme.background }], onLayout, children: [
3647
3652
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3648
3653
  _reactnative.ScrollView,
@@ -3668,14 +3673,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3668
3673
  accessibilityState: { expanded: !collapsed },
3669
3674
  children: [
3670
3675
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3671
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkHZEXKGDSjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3676
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkWMRDOYPVjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3672
3677
  ]
3673
3678
  }
3674
3679
  ),
3675
3680
  !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
3676
3681
  !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles13.row, children: row.cells.map((cell) => {
3677
- const w = (contentW + GAP) * (cell.span / _chunkHZEXKGDSjs.GRID_COLUMNS) - GAP;
3678
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3682
+ const w = (contentW + GAP) * (cell.span / _chunkWMRDOYPVjs.GRID_COLUMNS) - GAP;
3683
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkWMRDOYPVjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3679
3684
  }) }, ri))
3680
3685
  ] }, section.key);
3681
3686
  })
@@ -3686,10 +3691,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3686
3691
  ] });
3687
3692
  }
3688
3693
  function GridSection({ grid, width, maxPanelH, deferred }) {
3689
- const colW = (width + GAP) / _chunkHZEXKGDSjs.GRID_COLUMNS;
3690
- const tallest = Math.max(0, ...grid.cells.map((c) => _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, c.h)));
3694
+ const colW = (width + GAP) / _chunkWMRDOYPVjs.GRID_COLUMNS;
3695
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkWMRDOYPVjs.gridUnitsToPx.call(void 0, c.h)));
3691
3696
  const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
3692
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles13.gridCell, { left: cell.x * colW, top: _chunkHZEXKGDSjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP, height: _chunkHZEXKGDSjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3697
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkWMRDOYPVjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles13.gridCell, { left: cell.x * colW, top: _chunkWMRDOYPVjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP, height: _chunkWMRDOYPVjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3693
3698
  }
3694
3699
  function useSeenSections(viewportHeight) {
3695
3700
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
@@ -3748,12 +3753,12 @@ function PanelCardContent({ panel, width, height, deferred }) {
3748
3753
  const theme = useDashTheme();
3749
3754
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
3750
3755
  const { resolve, openLinks } = usePanelLinks(panel);
3751
- const input = _chunkHZEXKGDSjs.isInputPanel.call(void 0, panel);
3756
+ const input = _chunkWMRDOYPVjs.isInputPanel.call(void 0, panel);
3752
3757
  const form = _react.useContext.call(void 0, InputFormContext);
3753
3758
  const problem = input ? _optionalChain([form, 'optionalAccess', _265 => _265.problem, 'optionalCall', _266 => _266(panel.options.metric)]) : void 0;
3754
3759
  const hasLinks = !!_optionalChain([panel, 'access', _267 => _267.links, 'optionalAccess', _268 => _268.length]);
3755
3760
  const hasTitle = !!panel.title || hasLinks || !!problem;
3756
- const title = panel.title ? _chunkHZEXKGDSjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3761
+ const title = panel.title ? _chunkWMRDOYPVjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
3757
3762
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles13.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
3758
3763
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles13.titleRow, children: [
3759
3764
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -3775,7 +3780,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
3775
3780
  }
3776
3781
  function DataPanelBody({ panel, width, height }) {
3777
3782
  const theme = useDashTheme();
3778
- const needsData = _chunkHZEXKGDSjs.panelHasQueries.call(void 0, panel);
3783
+ const needsData = _chunkWMRDOYPVjs.panelHasQueries.call(void 0, panel);
3779
3784
  const data = usePanelData(panel, width, needsData);
3780
3785
  const Component2 = panelComponent(panel.type);
3781
3786
  if (needsData && data.error) {
@@ -3817,13 +3822,13 @@ function savedValues(panels, entries) {
3817
3822
  const values = {};
3818
3823
  for (const p of panels) {
3819
3824
  const mine = entries.filter((e) => e.metric === p.options.metric);
3820
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkHZEXKGDSjs.entryToInputValue.call(void 0, p, mine[0]);
3825
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkWMRDOYPVjs.entryToInputValue.call(void 0, p, mine[0]);
3821
3826
  }
3822
3827
  return values;
3823
3828
  }
3824
3829
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
3825
3830
  const theme = useDashTheme();
3826
- const panels = _react.useMemo.call(void 0, () => _chunkHZEXKGDSjs.inputPanels.call(void 0, dashboard), [dashboard]);
3831
+ const panels = _react.useMemo.call(void 0, () => _chunkWMRDOYPVjs.inputPanels.call(void 0, dashboard), [dashboard]);
3827
3832
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
3828
3833
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
3829
3834
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -3837,7 +3842,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3837
3842
  const next = {};
3838
3843
  for (const p of panels) {
3839
3844
  const d = p.options.default;
3840
- if (d === "last") next[p.options.metric] = _chunkHZEXKGDSjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3845
+ if (d === "last") next[p.options.metric] = _chunkWMRDOYPVjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
3841
3846
  else if (d !== void 0) next[p.options.metric] = d;
3842
3847
  }
3843
3848
  if (mine === run) setDefaults(next);
@@ -3862,14 +3867,14 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3862
3867
  choices,
3863
3868
  problem: (m) => {
3864
3869
  const p = panels.find((x) => x.options.metric === m);
3865
- return p && (checked || m in edits) ? _chunkHZEXKGDSjs.inputProblem.call(void 0, p, value(m)) : void 0;
3870
+ return p && (checked || m in edits) ? _chunkWMRDOYPVjs.inputProblem.call(void 0, p, value(m)) : void 0;
3866
3871
  }
3867
3872
  };
3868
3873
  }, [edits, saved, defaults, given, store, choices, panels, checked]);
3869
3874
  const dirty = Object.keys(edits).length;
3870
3875
  const save = _react.useCallback.call(void 0, async () => {
3871
3876
  const problems = panels.flatMap((p) => {
3872
- const problem = _chunkHZEXKGDSjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3877
+ const problem = _chunkWMRDOYPVjs.inputProblem.call(void 0, p, state.value(p.options.metric));
3873
3878
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
3874
3879
  });
3875
3880
  if (problems.length) {
@@ -3878,7 +3883,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
3878
3883
  return;
3879
3884
  }
3880
3885
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _269 => _269[0], 'optionalAccess', _270 => _270.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _271 => _271()]), () => ( Date.now())) : Date.now() + offsetMs)));
3881
- const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkHZEXKGDSjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3886
+ const entries = panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkWMRDOYPVjs.toEntries.call(void 0, p, state.value(p.options.metric), ts));
3882
3887
  if (!entries.length) return;
3883
3888
  const extra = beforeSave ? await beforeSave(ts) : [];
3884
3889
  if (!extra) return;
@@ -4177,4 +4182,9 @@ var styles14 = _reactnative.StyleSheet.create({
4177
4182
 
4178
4183
 
4179
4184
 
4180
- exports.ALL = _chunkHZEXKGDSjs.ALL; exports.BUNDLE_ACCEPT = _chunkHZEXKGDSjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkHZEXKGDSjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkHZEXKGDSjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkHZEXKGDSjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkHZEXKGDSjs.ConfigLoader; exports.DASHBOARD_DS = _chunkHZEXKGDSjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkHZEXKGDSjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkHZEXKGDSjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkHZEXKGDSjs.GRID_COLUMNS; exports.GrafanaClient = _chunkHZEXKGDSjs.GrafanaClient; exports.GrafanaDataSource = _chunkHZEXKGDSjs.GrafanaDataSource; exports.GrafanaError = _chunkHZEXKGDSjs.GrafanaError; exports.HttpConfigFiles = _chunkHZEXKGDSjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkHZEXKGDSjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkHZEXKGDSjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkHZEXKGDSjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkHZEXKGDSjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkHZEXKGDSjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkHZEXKGDSjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkHZEXKGDSjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkHZEXKGDSjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkHZEXKGDSjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkHZEXKGDSjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkHZEXKGDSjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkHZEXKGDSjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkHZEXKGDSjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkHZEXKGDSjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkHZEXKGDSjs.SERIES_PALETTE; exports.SPECIAL_MATCHES = _chunkHZEXKGDSjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkHZEXKGDSjs.SaveConflictError; exports.TIME_PRESETS = _chunkHZEXKGDSjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkHZEXKGDSjs.UNIT_CHOICES; exports.addTime = _chunkHZEXKGDSjs.addTime; exports.appSchema = _chunkHZEXKGDSjs.appSchema; exports.applyDashboardLink = _chunkHZEXKGDSjs.applyDashboardLink; exports.applyJsonEdits = _chunkHZEXKGDSjs.applyJsonEdits; exports.applyTransformations = _chunkHZEXKGDSjs.applyTransformations; exports.assembleBundle = _chunkHZEXKGDSjs.assembleBundle; exports.assembleFromResponse = _chunkHZEXKGDSjs.assembleFromResponse; exports.buildFrames = _chunkHZEXKGDSjs.buildFrames; exports.bundleFromFiles = _chunkHZEXKGDSjs.bundleFromFiles; exports.bundleRoot = _chunkHZEXKGDSjs.bundleRoot; exports.calculateInterval = _chunkHZEXKGDSjs.calculateInterval; exports.checkFiles = _chunkHZEXKGDSjs.checkFiles; exports.cleanDashboard = _chunkHZEXKGDSjs.cleanDashboard; exports.cleanPanelOptions = _chunkHZEXKGDSjs.cleanPanelOptions; exports.collapseRow = _chunkHZEXKGDSjs.collapseRow; exports.compactGrid = _chunkHZEXKGDSjs.compactGrid; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkHZEXKGDSjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkHZEXKGDSjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkHZEXKGDSjs.dashboardSourceIds; exports.defaultFetchJson = _chunkHZEXKGDSjs.defaultFetchJson; exports.describeRange = _chunkHZEXKGDSjs.describeRange; exports.diffJson = _chunkHZEXKGDSjs.diffJson; exports.documentIdFor = _chunkHZEXKGDSjs.documentIdFor; exports.documentUses = _chunkHZEXKGDSjs.documentUses; exports.dropTarget = _chunkHZEXKGDSjs.dropTarget; exports.duplicatePanel = _chunkHZEXKGDSjs.duplicatePanel; exports.entriesSavedWith = _chunkHZEXKGDSjs.entriesSavedWith; exports.entryToInputValue = _chunkHZEXKGDSjs.entryToInputValue; exports.expandRow = _chunkHZEXKGDSjs.expandRow; exports.fetchBundle = _chunkHZEXKGDSjs.fetchBundle; exports.fetchJsonWithToken = _chunkHZEXKGDSjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkHZEXKGDSjs.fieldDisplayName; exports.fieldMatches = _chunkHZEXKGDSjs.fieldMatches; exports.formatClock = _chunkHZEXKGDSjs.formatClock; exports.formatDisplay = _chunkHZEXKGDSjs.formatDisplay; exports.formatDuration = _chunkHZEXKGDSjs.formatDuration; exports.formatJsonText = _chunkHZEXKGDSjs.formatJsonText; exports.formatLocalDateTime = _chunkHZEXKGDSjs.formatLocalDateTime; exports.formatValue = _chunkHZEXKGDSjs.formatValue; exports.frameLength = _chunkHZEXKGDSjs.frameLength; exports.framesToOptions = _chunkHZEXKGDSjs.framesToOptions; exports.fromWire = _chunkHZEXKGDSjs.fromWire; exports.getPath = _chunkHZEXKGDSjs.getPath; exports.gridOffsetPx = _chunkHZEXKGDSjs.gridOffsetPx; exports.gridUnitsToPx = _chunkHZEXKGDSjs.gridUnitsToPx; exports.httpFetchJson = _chunkHZEXKGDSjs.httpFetchJson; exports.initialVariableValues = _chunkHZEXKGDSjs.initialVariableValues; exports.inputPanels = _chunkHZEXKGDSjs.inputPanels; exports.inputProblem = _chunkHZEXKGDSjs.inputProblem; exports.insertPanel = _chunkHZEXKGDSjs.insertPanel; exports.interpolate = _chunkHZEXKGDSjs.interpolate; exports.interpolateDeep = _chunkHZEXKGDSjs.interpolateDeep; exports.isBundleResponse = _chunkHZEXKGDSjs.isBundleResponse; exports.isEditableVariableType = _chunkHZEXKGDSjs.isEditableVariableType; exports.isInputPanel = _chunkHZEXKGDSjs.isInputPanel; exports.isInputType = _chunkHZEXKGDSjs.isInputType; exports.isLocalDatasource = _chunkHZEXKGDSjs.isLocalDatasource; exports.isReducer = _chunkHZEXKGDSjs.isReducer; exports.isRow = _chunkHZEXKGDSjs.isRow; exports.isSqlDatasource = _chunkHZEXKGDSjs.isSqlDatasource; exports.layoutCanvas = _chunkHZEXKGDSjs.layoutCanvas; exports.layoutDashboard = _chunkHZEXKGDSjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkHZEXKGDSjs.lineColumn; exports.loadGazetteer = _chunkHZEXKGDSjs.loadGazetteer; exports.locate = _chunkHZEXKGDSjs.locate; exports.manifestSchemaIssues = _chunkHZEXKGDSjs.manifestSchemaIssues; exports.mappedResult = _chunkHZEXKGDSjs.mappedResult; exports.mappingProblem = _chunkHZEXKGDSjs.mappingProblem; exports.mappingRow = _chunkHZEXKGDSjs.mappingRow; exports.mappingRows = _chunkHZEXKGDSjs.mappingRows; exports.metricChanges = _chunkHZEXKGDSjs.metricChanges; exports.movePanel = _chunkHZEXKGDSjs.movePanel; exports.newDocument = _chunkHZEXKGDSjs.newDocument; exports.newPanel = _chunkHZEXKGDSjs.newPanel; exports.newVariable = _chunkHZEXKGDSjs.newVariable; exports.nextPanelId = _chunkHZEXKGDSjs.nextPanelId; exports.normalizeRef = _chunkHZEXKGDSjs.normalizeRef; exports.numberFields = _chunkHZEXKGDSjs.numberFields; exports.optionValue = _chunkHZEXKGDSjs.optionValue; exports.overrideProperties = _chunkHZEXKGDSjs.overrideProperties; exports.panelEdits = _chunkHZEXKGDSjs.panelEdits; exports.panelHasQueries = _chunkHZEXKGDSjs.panelHasQueries; exports.panelKey = _chunkHZEXKGDSjs.panelKey; exports.panelOptions = _chunkHZEXKGDSjs.panelOptions; exports.panelOverrides = _chunkHZEXKGDSjs.panelOverrides; exports.panelSize = _chunkHZEXKGDSjs.panelSize; exports.panelSpan = _chunkHZEXKGDSjs.panelSpan; exports.parseClockDigits = _chunkHZEXKGDSjs.parseClockDigits; exports.parseDashboardLink = _chunkHZEXKGDSjs.parseDashboardLink; exports.parseDuration = _chunkHZEXKGDSjs.parseDuration; exports.parseGazetteer = _chunkHZEXKGDSjs.parseGazetteer; exports.parseJsonText = _chunkHZEXKGDSjs.parseJsonText; exports.parseLocalDateTime = _chunkHZEXKGDSjs.parseLocalDateTime; exports.parseRange = _chunkHZEXKGDSjs.parseRange; exports.parseTime = _chunkHZEXKGDSjs.parseTime; exports.placePanel = _chunkHZEXKGDSjs.placePanel; exports.pointerToPath = _chunkHZEXKGDSjs.pointerToPath; exports.prepareDashboard = _chunkHZEXKGDSjs.prepareDashboard; exports.queryPanel = _chunkHZEXKGDSjs.queryPanel; exports.queryParam = _chunkHZEXKGDSjs.queryParam; exports.readConfigFiles = _chunkHZEXKGDSjs.readConfigFiles; exports.readingOrder = _chunkHZEXKGDSjs.readingOrder; exports.reduce = _chunkHZEXKGDSjs.reduce; exports.refineOptions = _chunkHZEXKGDSjs.refineOptions; exports.refreshedVariables = _chunkHZEXKGDSjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkHZEXKGDSjs.removeDocumentFromManifest; exports.removePanel = _chunkHZEXKGDSjs.removePanel; exports.renameDocumentInManifest = _chunkHZEXKGDSjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkHZEXKGDSjs.renameVariableInPanels; exports.repack = _chunkHZEXKGDSjs.repack; exports.repeatOptions = _chunkHZEXKGDSjs.repeatOptions; exports.resizePanel = _chunkHZEXKGDSjs.resizePanel; exports.resolveColor = _chunkHZEXKGDSjs.resolveColor; exports.resolveFieldConfig = _chunkHZEXKGDSjs.resolveFieldConfig; exports.resolveLinks = _chunkHZEXKGDSjs.resolveLinks; exports.resolveTimezone = _chunkHZEXKGDSjs.resolveTimezone; exports.resolveUrl = _chunkHZEXKGDSjs.resolveUrl; exports.resolveVariables = _chunkHZEXKGDSjs.resolveVariables; exports.revalidateBundle = _chunkHZEXKGDSjs.revalidateBundle; exports.rowsToMappings = _chunkHZEXKGDSjs.rowsToMappings; exports.sampleEntries = _chunkHZEXKGDSjs.sampleEntries; exports.screenDocuments = _chunkHZEXKGDSjs.screenDocuments; exports.screenOfType = _chunkHZEXKGDSjs.screenOfType; exports.selectValue = _chunkHZEXKGDSjs.selectValue; exports.seriesColor = _chunkHZEXKGDSjs.seriesColor; exports.setHiddenOnPhones = _chunkHZEXKGDSjs.setHiddenOnPhones; exports.setJsonValue = _chunkHZEXKGDSjs.setJsonValue; exports.setOption = _chunkHZEXKGDSjs.setOption; exports.setOptionValue = _chunkHZEXKGDSjs.setOptionValue; exports.setOverrides = _chunkHZEXKGDSjs.setOverrides; exports.settleLayout = _chunkHZEXKGDSjs.settleLayout; exports.snapToGrid = _chunkHZEXKGDSjs.snapToGrid; exports.splitPath = _chunkHZEXKGDSjs.splitPath; exports.startOf = _chunkHZEXKGDSjs.startOf; exports.stringifyCompact = _chunkHZEXKGDSjs.stringifyCompact; exports.tabIdFor = _chunkHZEXKGDSjs.tabIdFor; exports.textSuggestions = _chunkHZEXKGDSjs.textSuggestions; exports.thresholdStep = _chunkHZEXKGDSjs.thresholdStep; exports.timeExprError = _chunkHZEXKGDSjs.timeExprError; exports.timeField = _chunkHZEXKGDSjs.timeField; exports.toEntries = _chunkHZEXKGDSjs.toEntries; exports.toMillis = _chunkHZEXKGDSjs.toMillis; exports.toSeries = _chunkHZEXKGDSjs.toSeries; exports.toXYSeries = _chunkHZEXKGDSjs.toXYSeries; exports.uniqueNames = _chunkHZEXKGDSjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkHZEXKGDSjs.validateBundle; exports.validateDashboard = _chunkHZEXKGDSjs.validateDashboard; exports.validateManifest = _chunkHZEXKGDSjs.validateManifest; exports.valueColor = _chunkHZEXKGDSjs.valueColor; exports.valueText = _chunkHZEXKGDSjs.valueText; exports.variableDependents = _chunkHZEXKGDSjs.variableDependents; exports.variableInfo = _chunkHZEXKGDSjs.variableInfo; exports.variableNameError = _chunkHZEXKGDSjs.variableNameError; exports.variableOptions = _chunkHZEXKGDSjs.variableOptions; exports.variableOrder = _chunkHZEXKGDSjs.variableOrder; exports.variableReferences = _chunkHZEXKGDSjs.variableReferences; exports.variableUses = _chunkHZEXKGDSjs.variableUses; exports.variableWithCurrent = _chunkHZEXKGDSjs.variableWithCurrent; exports.variableWithFlags = _chunkHZEXKGDSjs.variableWithFlags; exports.variableWithQuery = _chunkHZEXKGDSjs.variableWithQuery; exports.variableWithType = _chunkHZEXKGDSjs.variableWithType; exports.visibleVariables = _chunkHZEXKGDSjs.visibleVariables; exports.zoomRange = _chunkHZEXKGDSjs.zoomRange;
4185
+
4186
+
4187
+
4188
+
4189
+
4190
+ exports.ALL = _chunkWMRDOYPVjs.ALL; exports.BUNDLE_ACCEPT = _chunkWMRDOYPVjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkWMRDOYPVjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkWMRDOYPVjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkWMRDOYPVjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkWMRDOYPVjs.ConfigLoader; exports.DASHBOARD_DS = _chunkWMRDOYPVjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkWMRDOYPVjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkWMRDOYPVjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkWMRDOYPVjs.GRID_COLUMNS; exports.GrafanaClient = _chunkWMRDOYPVjs.GrafanaClient; exports.GrafanaDataSource = _chunkWMRDOYPVjs.GrafanaDataSource; exports.GrafanaError = _chunkWMRDOYPVjs.GrafanaError; exports.HttpConfigFiles = _chunkWMRDOYPVjs.HttpConfigFiles; exports.INPUT_OPTION_KEYS = _chunkWMRDOYPVjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkWMRDOYPVjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkWMRDOYPVjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkWMRDOYPVjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkWMRDOYPVjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkWMRDOYPVjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkWMRDOYPVjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkWMRDOYPVjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkWMRDOYPVjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkWMRDOYPVjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkWMRDOYPVjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkWMRDOYPVjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkWMRDOYPVjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkWMRDOYPVjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkWMRDOYPVjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkWMRDOYPVjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkWMRDOYPVjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkWMRDOYPVjs.SaveConflictError; exports.TIME_PRESETS = _chunkWMRDOYPVjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkWMRDOYPVjs.UNIT_CHOICES; exports.addTime = _chunkWMRDOYPVjs.addTime; exports.appSchema = _chunkWMRDOYPVjs.appSchema; exports.applyDashboardLink = _chunkWMRDOYPVjs.applyDashboardLink; exports.applyJsonEdits = _chunkWMRDOYPVjs.applyJsonEdits; exports.applyTransformations = _chunkWMRDOYPVjs.applyTransformations; exports.assembleBundle = _chunkWMRDOYPVjs.assembleBundle; exports.assembleFromResponse = _chunkWMRDOYPVjs.assembleFromResponse; exports.buildFrames = _chunkWMRDOYPVjs.buildFrames; exports.bundleFromFiles = _chunkWMRDOYPVjs.bundleFromFiles; exports.bundleRoot = _chunkWMRDOYPVjs.bundleRoot; exports.calculateInterval = _chunkWMRDOYPVjs.calculateInterval; exports.checkFiles = _chunkWMRDOYPVjs.checkFiles; exports.cleanDashboard = _chunkWMRDOYPVjs.cleanDashboard; exports.cleanPanelOptions = _chunkWMRDOYPVjs.cleanPanelOptions; exports.collapseRow = _chunkWMRDOYPVjs.collapseRow; exports.compactGrid = _chunkWMRDOYPVjs.compactGrid; exports.copyPanels = _chunkWMRDOYPVjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkWMRDOYPVjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkWMRDOYPVjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkWMRDOYPVjs.dashboardSourceIds; exports.defaultFetchJson = _chunkWMRDOYPVjs.defaultFetchJson; exports.describeRange = _chunkWMRDOYPVjs.describeRange; exports.diffJson = _chunkWMRDOYPVjs.diffJson; exports.documentIdFor = _chunkWMRDOYPVjs.documentIdFor; exports.documentUses = _chunkWMRDOYPVjs.documentUses; exports.dropTarget = _chunkWMRDOYPVjs.dropTarget; exports.duplicatePanel = _chunkWMRDOYPVjs.duplicatePanel; exports.entriesSavedWith = _chunkWMRDOYPVjs.entriesSavedWith; exports.entryToInputValue = _chunkWMRDOYPVjs.entryToInputValue; exports.expandRow = _chunkWMRDOYPVjs.expandRow; exports.fetchBundle = _chunkWMRDOYPVjs.fetchBundle; exports.fetchJsonWithToken = _chunkWMRDOYPVjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkWMRDOYPVjs.fieldDisplayName; exports.fieldMatches = _chunkWMRDOYPVjs.fieldMatches; exports.formatClock = _chunkWMRDOYPVjs.formatClock; exports.formatDisplay = _chunkWMRDOYPVjs.formatDisplay; exports.formatDuration = _chunkWMRDOYPVjs.formatDuration; exports.formatJsonText = _chunkWMRDOYPVjs.formatJsonText; exports.formatLocalDateTime = _chunkWMRDOYPVjs.formatLocalDateTime; exports.formatValue = _chunkWMRDOYPVjs.formatValue; exports.frameLength = _chunkWMRDOYPVjs.frameLength; exports.framesToOptions = _chunkWMRDOYPVjs.framesToOptions; exports.fromWire = _chunkWMRDOYPVjs.fromWire; exports.getPath = _chunkWMRDOYPVjs.getPath; exports.gridOffsetPx = _chunkWMRDOYPVjs.gridOffsetPx; exports.gridUnitsToPx = _chunkWMRDOYPVjs.gridUnitsToPx; exports.httpFetchJson = _chunkWMRDOYPVjs.httpFetchJson; exports.initialVariableValues = _chunkWMRDOYPVjs.initialVariableValues; exports.inputPanels = _chunkWMRDOYPVjs.inputPanels; exports.inputProblem = _chunkWMRDOYPVjs.inputProblem; exports.insertPanel = _chunkWMRDOYPVjs.insertPanel; exports.interpolate = _chunkWMRDOYPVjs.interpolate; exports.interpolateDeep = _chunkWMRDOYPVjs.interpolateDeep; exports.isBundleResponse = _chunkWMRDOYPVjs.isBundleResponse; exports.isEditableVariableType = _chunkWMRDOYPVjs.isEditableVariableType; exports.isInputPanel = _chunkWMRDOYPVjs.isInputPanel; exports.isInputType = _chunkWMRDOYPVjs.isInputType; exports.isLocalDatasource = _chunkWMRDOYPVjs.isLocalDatasource; exports.isReducer = _chunkWMRDOYPVjs.isReducer; exports.isRow = _chunkWMRDOYPVjs.isRow; exports.isSqlDatasource = _chunkWMRDOYPVjs.isSqlDatasource; exports.layoutCanvas = _chunkWMRDOYPVjs.layoutCanvas; exports.layoutDashboard = _chunkWMRDOYPVjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkWMRDOYPVjs.lineColumn; exports.loadGazetteer = _chunkWMRDOYPVjs.loadGazetteer; exports.locate = _chunkWMRDOYPVjs.locate; exports.manifestSchemaIssues = _chunkWMRDOYPVjs.manifestSchemaIssues; exports.mappedResult = _chunkWMRDOYPVjs.mappedResult; exports.mappingProblem = _chunkWMRDOYPVjs.mappingProblem; exports.mappingRow = _chunkWMRDOYPVjs.mappingRow; exports.mappingRows = _chunkWMRDOYPVjs.mappingRows; exports.metricChanges = _chunkWMRDOYPVjs.metricChanges; exports.movePanel = _chunkWMRDOYPVjs.movePanel; exports.newDocument = _chunkWMRDOYPVjs.newDocument; exports.newPanel = _chunkWMRDOYPVjs.newPanel; exports.newVariable = _chunkWMRDOYPVjs.newVariable; exports.nextPanelId = _chunkWMRDOYPVjs.nextPanelId; exports.normalizeRef = _chunkWMRDOYPVjs.normalizeRef; exports.numberFields = _chunkWMRDOYPVjs.numberFields; exports.optionValue = _chunkWMRDOYPVjs.optionValue; exports.overrideProperties = _chunkWMRDOYPVjs.overrideProperties; exports.panelEdits = _chunkWMRDOYPVjs.panelEdits; exports.panelHasQueries = _chunkWMRDOYPVjs.panelHasQueries; exports.panelKey = _chunkWMRDOYPVjs.panelKey; exports.panelOptions = _chunkWMRDOYPVjs.panelOptions; exports.panelOverrides = _chunkWMRDOYPVjs.panelOverrides; exports.panelSize = _chunkWMRDOYPVjs.panelSize; exports.panelSpan = _chunkWMRDOYPVjs.panelSpan; exports.parseClockDigits = _chunkWMRDOYPVjs.parseClockDigits; exports.parseDashboardLink = _chunkWMRDOYPVjs.parseDashboardLink; exports.parseDuration = _chunkWMRDOYPVjs.parseDuration; exports.parseGazetteer = _chunkWMRDOYPVjs.parseGazetteer; exports.parseJsonText = _chunkWMRDOYPVjs.parseJsonText; exports.parseLocalDateTime = _chunkWMRDOYPVjs.parseLocalDateTime; exports.parseRange = _chunkWMRDOYPVjs.parseRange; exports.parseSnippet = _chunkWMRDOYPVjs.parseSnippet; exports.parseTime = _chunkWMRDOYPVjs.parseTime; exports.pasteSnippet = _chunkWMRDOYPVjs.pasteSnippet; exports.placePanel = _chunkWMRDOYPVjs.placePanel; exports.pointerToPath = _chunkWMRDOYPVjs.pointerToPath; exports.prepareDashboard = _chunkWMRDOYPVjs.prepareDashboard; exports.previewPaste = _chunkWMRDOYPVjs.previewPaste; exports.queryPanel = _chunkWMRDOYPVjs.queryPanel; exports.queryParam = _chunkWMRDOYPVjs.queryParam; exports.readConfigFiles = _chunkWMRDOYPVjs.readConfigFiles; exports.readingOrder = _chunkWMRDOYPVjs.readingOrder; exports.reduce = _chunkWMRDOYPVjs.reduce; exports.refineOptions = _chunkWMRDOYPVjs.refineOptions; exports.refreshedVariables = _chunkWMRDOYPVjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkWMRDOYPVjs.removeDocumentFromManifest; exports.removePanel = _chunkWMRDOYPVjs.removePanel; exports.renameDocumentInManifest = _chunkWMRDOYPVjs.renameDocumentInManifest; exports.renameVariableInPanels = _chunkWMRDOYPVjs.renameVariableInPanels; exports.repack = _chunkWMRDOYPVjs.repack; exports.repeatOptions = _chunkWMRDOYPVjs.repeatOptions; exports.resizePanel = _chunkWMRDOYPVjs.resizePanel; exports.resolveColor = _chunkWMRDOYPVjs.resolveColor; exports.resolveFieldConfig = _chunkWMRDOYPVjs.resolveFieldConfig; exports.resolveLinks = _chunkWMRDOYPVjs.resolveLinks; exports.resolveTimezone = _chunkWMRDOYPVjs.resolveTimezone; exports.resolveUrl = _chunkWMRDOYPVjs.resolveUrl; exports.resolveVariables = _chunkWMRDOYPVjs.resolveVariables; exports.revalidateBundle = _chunkWMRDOYPVjs.revalidateBundle; exports.rowsToMappings = _chunkWMRDOYPVjs.rowsToMappings; exports.sampleEntries = _chunkWMRDOYPVjs.sampleEntries; exports.screenDocuments = _chunkWMRDOYPVjs.screenDocuments; exports.screenOfType = _chunkWMRDOYPVjs.screenOfType; exports.selectValue = _chunkWMRDOYPVjs.selectValue; exports.seriesColor = _chunkWMRDOYPVjs.seriesColor; exports.setHiddenOnPhones = _chunkWMRDOYPVjs.setHiddenOnPhones; exports.setJsonValue = _chunkWMRDOYPVjs.setJsonValue; exports.setOption = _chunkWMRDOYPVjs.setOption; exports.setOptionValue = _chunkWMRDOYPVjs.setOptionValue; exports.setOverrides = _chunkWMRDOYPVjs.setOverrides; exports.settleLayout = _chunkWMRDOYPVjs.settleLayout; exports.snapToGrid = _chunkWMRDOYPVjs.snapToGrid; exports.splitPath = _chunkWMRDOYPVjs.splitPath; exports.startOf = _chunkWMRDOYPVjs.startOf; exports.stringifyCompact = _chunkWMRDOYPVjs.stringifyCompact; exports.tabIdFor = _chunkWMRDOYPVjs.tabIdFor; exports.textSuggestions = _chunkWMRDOYPVjs.textSuggestions; exports.thresholdStep = _chunkWMRDOYPVjs.thresholdStep; exports.timeExprError = _chunkWMRDOYPVjs.timeExprError; exports.timeField = _chunkWMRDOYPVjs.timeField; exports.toEntries = _chunkWMRDOYPVjs.toEntries; exports.toMillis = _chunkWMRDOYPVjs.toMillis; exports.toSeries = _chunkWMRDOYPVjs.toSeries; exports.toXYSeries = _chunkWMRDOYPVjs.toXYSeries; exports.uniqueNames = _chunkWMRDOYPVjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkWMRDOYPVjs.validateBundle; exports.validateDashboard = _chunkWMRDOYPVjs.validateDashboard; exports.validateManifest = _chunkWMRDOYPVjs.validateManifest; exports.valueColor = _chunkWMRDOYPVjs.valueColor; exports.valueText = _chunkWMRDOYPVjs.valueText; exports.variableDependents = _chunkWMRDOYPVjs.variableDependents; exports.variableInfo = _chunkWMRDOYPVjs.variableInfo; exports.variableNameError = _chunkWMRDOYPVjs.variableNameError; exports.variableOptions = _chunkWMRDOYPVjs.variableOptions; exports.variableOrder = _chunkWMRDOYPVjs.variableOrder; exports.variableReferences = _chunkWMRDOYPVjs.variableReferences; exports.variableUses = _chunkWMRDOYPVjs.variableUses; exports.variableWithCurrent = _chunkWMRDOYPVjs.variableWithCurrent; exports.variableWithFlags = _chunkWMRDOYPVjs.variableWithFlags; exports.variableWithQuery = _chunkWMRDOYPVjs.variableWithQuery; exports.variableWithType = _chunkWMRDOYPVjs.variableWithType; exports.visibleVariables = _chunkWMRDOYPVjs.visibleVariables; exports.zoomRange = _chunkWMRDOYPVjs.zoomRange;