@modelform/react-native 0.8.0 → 0.10.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
@@ -221,7 +221,14 @@
221
221
 
222
222
 
223
223
 
224
- var _chunkQIBL3YULjs = require('./chunk-QIBL3YUL.js');
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ var _chunkKROS6BLMjs = require('./chunk-KROS6BLM.js');
225
232
 
226
233
  // src/ui/theme.tsx
227
234
  var _react = require('react');
@@ -411,7 +418,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
411
418
  if (!dashboard.refresh) return;
412
419
  let ms;
413
420
  try {
414
- ms = _chunkQIBL3YULjs.parseDuration.call(void 0, dashboard.refresh);
421
+ ms = _chunkKROS6BLMjs.parseDuration.call(void 0, dashboard.refresh);
415
422
  } catch (e2) {
416
423
  return;
417
424
  }
@@ -419,7 +426,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
419
426
  return () => clearInterval(id);
420
427
  }, [dashboard.refresh, refresh]);
421
428
  const refreshKey = tick + externalKey;
422
- const range3 = _react.useMemo.call(void 0, () => _chunkQIBL3YULjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
429
+ const range3 = _react.useMemo.call(void 0, () => _chunkKROS6BLMjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
423
430
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
424
431
  const value = _react.useMemo.call(void 0,
425
432
  () => ({
@@ -456,8 +463,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
456
463
  ] });
457
464
  }
458
465
  function useDashboardVariables(dashboard, resolve, rawRange) {
459
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkQIBL3YULjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
460
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkQIBL3YULjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
466
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkKROS6BLMjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
467
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkKROS6BLMjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
461
468
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
462
469
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
463
470
  const stateRef = _react.useRef.call(void 0, state);
@@ -490,7 +497,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
490
497
  setState(update);
491
498
  setResolving(false);
492
499
  };
493
- _chunkQIBL3YULjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkQIBL3YULjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
500
+ _chunkKROS6BLMjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkKROS6BLMjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
494
501
  (res) => finish((s) => ({
495
502
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
496
503
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -504,11 +511,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
504
511
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
505
512
  if (dashboard !== loadedDashboard) {
506
513
  setLoadedDashboard(dashboard);
507
- setState((s) => ({ ...s, values: { ..._chunkQIBL3YULjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
514
+ setState((s) => ({ ...s, values: { ..._chunkKROS6BLMjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
508
515
  }
509
516
  _react.useEffect.call(void 0, () => {
510
- const roots = _chunkQIBL3YULjs.refreshedVariables.call(void 0, dashboard, "load");
511
- schedule([...roots, ..._chunkQIBL3YULjs.variableDependents.call(void 0, dashboard, roots)]);
517
+ const roots = _chunkKROS6BLMjs.refreshedVariables.call(void 0, dashboard, "load");
518
+ schedule([...roots, ..._chunkKROS6BLMjs.variableDependents.call(void 0, dashboard, roots)]);
512
519
  }, [dashboard, schedule]);
513
520
  const mounted = _react.useRef.call(void 0, false);
514
521
  _react.useEffect.call(void 0, () => {
@@ -516,17 +523,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
516
523
  mounted.current = true;
517
524
  return;
518
525
  }
519
- const roots = _chunkQIBL3YULjs.refreshedVariables.call(void 0, dashboard, "range");
520
- schedule([...roots, ..._chunkQIBL3YULjs.variableDependents.call(void 0, dashboard, roots)]);
526
+ const roots = _chunkKROS6BLMjs.refreshedVariables.call(void 0, dashboard, "range");
527
+ schedule([...roots, ..._chunkKROS6BLMjs.variableDependents.call(void 0, dashboard, roots)]);
521
528
  }, [rawRange]);
522
529
  const setVariable = _react.useCallback.call(void 0,
523
530
  (name, value) => {
524
531
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
525
- schedule(_chunkQIBL3YULjs.variableDependents.call(void 0, dashboard, [name]));
532
+ schedule(_chunkKROS6BLMjs.variableDependents.call(void 0, dashboard, [name]));
526
533
  },
527
534
  [dashboard, schedule]
528
535
  );
529
- const info = _react.useMemo.call(void 0, () => _chunkQIBL3YULjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
536
+ const info = _react.useMemo.call(void 0, () => _chunkKROS6BLMjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
530
537
  return _react.useMemo.call(void 0,
531
538
  () => ({
532
539
  variables: state.values,
@@ -556,7 +563,7 @@ function usePanelData(panel, widthPx, enabled = true) {
556
563
  _react.useEffect.call(void 0, () => {
557
564
  if (!enabled || !request || !variablesReady) return;
558
565
  const controller = new AbortController();
559
- _chunkQIBL3YULjs.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))) }));
566
+ _chunkKROS6BLMjs.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))) }));
560
567
  return () => controller.abort();
561
568
  }, [enabled, request, variablesReady]);
562
569
  if (!enabled) return IDLE;
@@ -566,7 +573,7 @@ function usePanelData(panel, widthPx, enabled = true) {
566
573
  function usePanelLinks(panel) {
567
574
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
568
575
  const resolve = _react.useCallback.call(void 0,
569
- (links, data) => _chunkQIBL3YULjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
576
+ (links, data) => _chunkKROS6BLMjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
570
577
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
571
578
  );
572
579
  return { resolve, openLinks };
@@ -607,7 +614,7 @@ var RenderBoundary = (_class = class extends _react.Component {constructor(...ar
607
614
 
608
615
  // src/ui/inputs/formContext.ts
609
616
 
610
- var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkQIBL3YULjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
617
+ var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkKROS6BLMjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
611
618
  var InputFormContext = _react.createContext.call(void 0, null);
612
619
  function useInputForm() {
613
620
  const v = _react.useContext.call(void 0, InputFormContext);
@@ -668,14 +675,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
668
675
  function displayExpr(expr) {
669
676
  if (expr.trim().startsWith("now")) return expr;
670
677
  try {
671
- return _chunkQIBL3YULjs.formatLocalDateTime.call(void 0, _chunkQIBL3YULjs.parseTime.call(void 0, expr));
678
+ return _chunkKROS6BLMjs.formatLocalDateTime.call(void 0, _chunkKROS6BLMjs.parseTime.call(void 0, expr));
672
679
  } catch (e3) {
673
680
  return expr;
674
681
  }
675
682
  }
676
683
  function tryParse(expr, roundUp, now = Date.now()) {
677
684
  try {
678
- return _chunkQIBL3YULjs.parseTime.call(void 0, expr, now, roundUp);
685
+ return _chunkKROS6BLMjs.parseTime.call(void 0, expr, now, roundUp);
679
686
  } catch (e4) {
680
687
  return null;
681
688
  }
@@ -689,7 +696,7 @@ function endOfDay(ms) {
689
696
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
690
697
  }
691
698
  function resolveTo(expr) {
692
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkQIBL3YULjs.formatLocalDateTime.call(void 0, endOfDay(_chunkQIBL3YULjs.parseTime.call(void 0, expr))) : expr;
699
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkKROS6BLMjs.formatLocalDateTime.call(void 0, endOfDay(_chunkKROS6BLMjs.parseTime.call(void 0, expr))) : expr;
693
700
  }
694
701
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
695
702
  const theme = useDashTheme();
@@ -700,12 +707,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
700
707
  const [now] = _react.useState.call(void 0, () => Date.now());
701
708
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
702
709
  const fromMs = tryParse(from, false, now);
703
- const toMs = tryParse(_chunkQIBL3YULjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
704
- const fromError = _chunkQIBL3YULjs.timeExprError.call(void 0, from);
705
- const toError = _chunkQIBL3YULjs.timeExprError.call(void 0, to);
710
+ const toMs = tryParse(_chunkKROS6BLMjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
711
+ const fromError = _chunkKROS6BLMjs.timeExprError.call(void 0, from);
712
+ const toError = _chunkKROS6BLMjs.timeExprError.call(void 0, to);
706
713
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
707
714
  const valid = !fromError && !toError && !orderError;
708
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkQIBL3YULjs.formatLocalDateTime.call(void 0, _chunkQIBL3YULjs.parseTime.call(void 0, expr));
715
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkKROS6BLMjs.formatLocalDateTime.call(void 0, _chunkKROS6BLMjs.parseTime.call(void 0, expr));
709
716
  const apply = () => {
710
717
  if (!valid) return;
711
718
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -714,14 +721,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
714
721
  const pickDay = (day) => {
715
722
  const end = endOfDay(day);
716
723
  if (active === "from") {
717
- setFrom(_chunkQIBL3YULjs.formatLocalDateTime.call(void 0, day));
718
- if (toMs == null || toMs <= day) setTo(_chunkQIBL3YULjs.formatLocalDateTime.call(void 0, end));
724
+ setFrom(_chunkKROS6BLMjs.formatLocalDateTime.call(void 0, day));
725
+ if (toMs == null || toMs <= day) setTo(_chunkKROS6BLMjs.formatLocalDateTime.call(void 0, end));
719
726
  setActive("to");
720
727
  } else if (fromMs != null && day < startOfDay(fromMs)) {
721
- setFrom(_chunkQIBL3YULjs.formatLocalDateTime.call(void 0, day));
722
- setTo(_chunkQIBL3YULjs.formatLocalDateTime.call(void 0, end));
728
+ setFrom(_chunkKROS6BLMjs.formatLocalDateTime.call(void 0, day));
729
+ setTo(_chunkKROS6BLMjs.formatLocalDateTime.call(void 0, end));
723
730
  } else {
724
- setTo(_chunkQIBL3YULjs.formatLocalDateTime.call(void 0, end));
731
+ setTo(_chunkKROS6BLMjs.formatLocalDateTime.call(void 0, end));
725
732
  }
726
733
  };
727
734
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -757,7 +764,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
757
764
  }
758
765
  ),
759
766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
760
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkQIBL3YULjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
767
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkKROS6BLMjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
761
768
  Chip,
762
769
  {
763
770
  label: r.label,
@@ -901,17 +908,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
901
908
  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" }) });
902
909
  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" }) });
903
910
  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" }) });
904
- function DashboardToolbar({ presets = _chunkQIBL3YULjs.TIME_PRESETS }) {
911
+ function DashboardToolbar({ presets = _chunkKROS6BLMjs.TIME_PRESETS }) {
905
912
  const theme = useDashTheme();
906
913
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
907
914
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
908
915
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
909
916
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
910
917
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
911
- const vars = _chunkQIBL3YULjs.visibleVariables.call(void 0, dashboard);
918
+ const vars = _chunkKROS6BLMjs.visibleVariables.call(void 0, dashboard);
912
919
  const active = vars.filter((v) => {
913
920
  const cur = variables[v.name];
914
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkQIBL3YULjs.ALL) : cur === _chunkQIBL3YULjs.ALL);
921
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkKROS6BLMjs.ALL) : cur === _chunkKROS6BLMjs.ALL);
915
922
  }).length;
916
923
  const hasError = vars.some((v) => variableErrors[v.name]);
917
924
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -937,7 +944,7 @@ function DashboardToolbar({ presets = _chunkQIBL3YULjs.TIME_PRESETS }) {
937
944
  setRangeOpen(true);
938
945
  },
939
946
  accessibilityRole: "button",
940
- accessibilityLabel: custom ? `Time range, ${_chunkQIBL3YULjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
947
+ accessibilityLabel: custom ? `Time range, ${_chunkKROS6BLMjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
941
948
  style: ({ pressed }) => [
942
949
  custom ? styles4.rangeButton : styles4.iconButton,
943
950
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -945,7 +952,7 @@ function DashboardToolbar({ presets = _chunkQIBL3YULjs.TIME_PRESETS }) {
945
952
  ],
946
953
  children: [
947
954
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
948
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkQIBL3YULjs.describeRange.call(void 0, rawRange) })
955
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkKROS6BLMjs.describeRange.call(void 0, rawRange) })
949
956
  ]
950
957
  }
951
958
  ),
@@ -1001,14 +1008,14 @@ function FilterSection({ variable: v, open, onToggle }) {
1001
1008
  const theme = useDashTheme();
1002
1009
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
1003
1010
  const current = variables[v.name];
1004
- const summary = _chunkQIBL3YULjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1005
- const options = [...v.includeAll ? [{ text: "All", value: _chunkQIBL3YULjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1011
+ const summary = _chunkKROS6BLMjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1012
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkKROS6BLMjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1006
1013
  const error = variableErrors[v.name];
1007
1014
  const choose = (value, selected) => {
1008
- if (v.multi && value !== _chunkQIBL3YULjs.ALL) {
1009
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkQIBL3YULjs.ALL);
1015
+ if (v.multi && value !== _chunkKROS6BLMjs.ALL) {
1016
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkKROS6BLMjs.ALL);
1010
1017
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
1011
- setVariable(v.name, next.length ? next : [_chunkQIBL3YULjs.ALL]);
1018
+ setVariable(v.name, next.length ? next : [_chunkKROS6BLMjs.ALL]);
1012
1019
  } else {
1013
1020
  setVariable(v.name, v.multi ? [value] : value);
1014
1021
  if (!v.multi) onToggle();
@@ -1148,7 +1155,7 @@ function barCategory(panel, frame) {
1148
1155
  }
1149
1156
  function categoryLabels(field) {
1150
1157
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1151
- const times = field.values.map((v) => v == null ? null : _chunkQIBL3YULjs.toMillis.call(void 0, v));
1158
+ const times = field.values.map((v) => v == null ? null : _chunkKROS6BLMjs.toMillis.call(void 0, v));
1152
1159
  let step = Infinity;
1153
1160
  times.forEach((t, i) => {
1154
1161
  const prev = times[i - 1];
@@ -1194,19 +1201,19 @@ function formatTooltipTime(t) {
1194
1201
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1195
1202
  }
1196
1203
  function styledSeries(panel, frames, scheme) {
1197
- return styleSeries(panel, _chunkQIBL3YULjs.toSeries.call(void 0, frames), frames, scheme);
1204
+ return styleSeries(panel, _chunkKROS6BLMjs.toSeries.call(void 0, frames), frames, scheme);
1198
1205
  }
1199
1206
  function styledXYSeries(panel, frames, scheme) {
1200
- const { series, x } = _chunkQIBL3YULjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1201
- const xConfig = x ? _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1207
+ const { series, x } = _chunkKROS6BLMjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1208
+ const xConfig = x ? _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1202
1209
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1203
1210
  }
1204
1211
  function styleSeries(panel, series, frames, scheme) {
1205
1212
  const frameOf = /* @__PURE__ */ new Map();
1206
1213
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1207
1214
  return series.map((s, i) => {
1208
- const config = _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1209
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkQIBL3YULjs.seriesColor.call(void 0, i, scheme, config) };
1215
+ const config = _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1216
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkKROS6BLMjs.seriesColor.call(void 0, i, scheme, config) };
1210
1217
  });
1211
1218
  }
1212
1219
  function reducedValues(panel, frames, scheme) {
@@ -1214,30 +1221,30 @@ function reducedValues(panel, frames, scheme) {
1214
1221
  const out = [];
1215
1222
  const multiple = frames.length > 1;
1216
1223
  frames.forEach(
1217
- (frame, fi) => _chunkQIBL3YULjs.numberFields.call(void 0, frame).forEach((field) => {
1218
- const raw = _chunkQIBL3YULjs.fieldDisplayName.call(void 0, field, frame, multiple);
1219
- const config = _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1224
+ (frame, fi) => _chunkKROS6BLMjs.numberFields.call(void 0, frame).forEach((field) => {
1225
+ const raw = _chunkKROS6BLMjs.fieldDisplayName.call(void 0, field, frame, multiple);
1226
+ const config = _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1220
1227
  const values = field.values.map((v) => v == null ? null : Number(v));
1221
- const value = _chunkQIBL3YULjs.reduce.call(void 0, values, calc);
1222
- const color = _chunkQIBL3YULjs.seriesColor.call(void 0, out.length, scheme, config);
1223
- const step = _chunkQIBL3YULjs.thresholdStep.call(void 0, value, config);
1224
- const mapped = _chunkQIBL3YULjs.mappedResult.call(void 0, value, config);
1228
+ const value = _chunkKROS6BLMjs.reduce.call(void 0, values, calc);
1229
+ const color = _chunkKROS6BLMjs.seriesColor.call(void 0, out.length, scheme, config);
1230
+ const step = _chunkKROS6BLMjs.thresholdStep.call(void 0, value, config);
1231
+ const mapped = _chunkKROS6BLMjs.mappedResult.call(void 0, value, config);
1225
1232
  out.push({
1226
1233
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1227
1234
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1228
1235
  value,
1229
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkQIBL3YULjs.formatValue.call(void 0, value, config),
1236
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkKROS6BLMjs.formatValue.call(void 0, value, config),
1230
1237
  mapped,
1231
1238
  config,
1232
1239
  color,
1233
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkQIBL3YULjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkQIBL3YULjs.resolveColor.call(void 0, step.color, color) : color,
1240
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkKROS6BLMjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkKROS6BLMjs.resolveColor.call(void 0, step.color, color) : color,
1234
1241
  sparkline: values,
1235
1242
  field,
1236
1243
  frame
1237
1244
  });
1238
1245
  })
1239
1246
  );
1240
- return _chunkQIBL3YULjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1247
+ return _chunkKROS6BLMjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1241
1248
  }
1242
1249
  function yDomain(series, includeZero) {
1243
1250
  let min = Infinity;
@@ -1298,22 +1305,22 @@ function NoData({ message = "No data" }) {
1298
1305
  }
1299
1306
  function rowTooltipItems(panel, frame, row, multiple) {
1300
1307
  return frame.fields.flatMap((f) => {
1301
- const name = _chunkQIBL3YULjs.fieldDisplayName.call(void 0, f, frame, multiple);
1302
- const config = _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1308
+ const name = _chunkKROS6BLMjs.fieldDisplayName.call(void 0, f, frame, multiple);
1309
+ const config = _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1303
1310
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1304
1311
  const v = f.values[row];
1305
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkQIBL3YULjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkQIBL3YULjs.toMillis.call(void 0, v)) : String(v);
1312
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkKROS6BLMjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkKROS6BLMjs.toMillis.call(void 0, v)) : String(v);
1306
1313
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1307
1314
  });
1308
1315
  }
1309
1316
  function rowLinks(panel, frame, row, multiple, resolve) {
1310
1317
  return mergeLinks(
1311
1318
  frame.fields.flatMap((f) => {
1312
- const name = _chunkQIBL3YULjs.fieldDisplayName.call(void 0, f, frame, multiple);
1313
- const config = _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1319
+ const name = _chunkKROS6BLMjs.fieldDisplayName.call(void 0, f, frame, multiple);
1320
+ const config = _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1314
1321
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1315
1322
  const v = f.values[row];
1316
- const text = v == null ? void 0 : f.type === "number" ? _chunkQIBL3YULjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1323
+ const text = v == null ? void 0 : f.type === "number" ? _chunkKROS6BLMjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1317
1324
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1318
1325
  })
1319
1326
  );
@@ -1326,7 +1333,7 @@ function valueLinks(panel, v, resolve) {
1326
1333
  fieldName: v.name,
1327
1334
  seriesName: v.name,
1328
1335
  value: v.value,
1329
- text: _chunkQIBL3YULjs.formatValue.call(void 0, v.value, v.config),
1336
+ text: _chunkKROS6BLMjs.formatValue.call(void 0, v.value, v.config),
1330
1337
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1331
1338
  });
1332
1339
  }
@@ -1471,15 +1478,15 @@ function NumberInput({ panel, value, onChange }) {
1471
1478
  }
1472
1479
  function DurationInput({ panel, value, onChange }) {
1473
1480
  const theme = useDashTheme();
1474
- const toDigits = (v) => typeof v === "number" ? _chunkQIBL3YULjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1481
+ const toDigits = (v) => typeof v === "number" ? _chunkKROS6BLMjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1475
1482
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1476
1483
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1477
1484
  if (value !== syncedValue) {
1478
1485
  setSyncedValue(value);
1479
- setDigits((d) => value == null ? _chunkQIBL3YULjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkQIBL3YULjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1486
+ setDigits((d) => value == null ? _chunkKROS6BLMjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkKROS6BLMjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1480
1487
  }
1481
1488
  const masked = digits ? maskClock(digits) : "";
1482
- const invalid = !!digits && _chunkQIBL3YULjs.parseClockDigits.call(void 0, digits) == null;
1489
+ const invalid = !!digits && _chunkKROS6BLMjs.parseClockDigits.call(void 0, digits) == null;
1483
1490
  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,
1484
1491
  _reactnative.TextInput,
1485
1492
  {
@@ -1487,7 +1494,7 @@ function DurationInput({ panel, value, onChange }) {
1487
1494
  onChangeText: (t) => {
1488
1495
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1489
1496
  setDigits(d);
1490
- onChange(_chunkQIBL3YULjs.parseClockDigits.call(void 0, d));
1497
+ onChange(_chunkKROS6BLMjs.parseClockDigits.call(void 0, d));
1491
1498
  },
1492
1499
  keyboardType: "number-pad",
1493
1500
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1673,10 +1680,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1673
1680
  }, [store, metric, suggestWith]);
1674
1681
  const withText = suggestWith ? form.value(suggestWith) : null;
1675
1682
  const own = entries.filter((e) => e.metric === metric);
1676
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkQIBL3YULjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1683
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkKROS6BLMjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1677
1684
  const query = typed ? text : "";
1678
- const fromScoped = _chunkQIBL3YULjs.textSuggestions.call(void 0, scoped, query);
1679
- const suggestions = (fromScoped.length ? fromScoped : _chunkQIBL3YULjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1685
+ const fromScoped = _chunkKROS6BLMjs.textSuggestions.call(void 0, scoped, query);
1686
+ const suggestions = (fromScoped.length ? fromScoped : _chunkKROS6BLMjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1680
1687
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1681
1688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1682
1689
  _reactnative.TextInput,
@@ -1715,7 +1722,7 @@ function CounterInput({ panel }) {
1715
1722
  const { metric, increment = 1, unit } = panel.options;
1716
1723
  const [today, setToday] = _react.useState.call(void 0, 0);
1717
1724
  _react.useEffect.call(void 0, () => {
1718
- const load = () => store.list({ metrics: [metric], from: _chunkQIBL3YULjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1725
+ const load = () => store.list({ metrics: [metric], from: _chunkKROS6BLMjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1719
1726
  load();
1720
1727
  return store.subscribe(load);
1721
1728
  }, [store, metric]);
@@ -1791,7 +1798,7 @@ function titleText(v) {
1791
1798
  function summaryText(f, v) {
1792
1799
  if (v == null || v === "" || Array.isArray(v) && !v.length) return void 0;
1793
1800
  if (f.type === "input-toggle") return v ? f.title || "Yes" : void 0;
1794
- if (f.type === "input-duration" && typeof v === "number") return _chunkQIBL3YULjs.formatClock.call(void 0, v);
1801
+ if (f.type === "input-duration" && typeof v === "number") return _chunkKROS6BLMjs.formatClock.call(void 0, v);
1795
1802
  if (f.type === "input-select" && f.options.choices) {
1796
1803
  const label = (x) => _nullishCoalesce(_optionalChain([f, 'access', _60 => _60.options, 'access', _61 => _61.choices, 'access', _62 => _62.find, 'call', _63 => _63((c) => c.value === x), 'optionalAccess', _64 => _64.label]), () => ( String(x)));
1797
1804
  return Array.isArray(v) ? v.map(label).join(", ") : label(v);
@@ -1822,7 +1829,7 @@ function InputGroupBody({ panel }) {
1822
1829
  }
1823
1830
  if (!group) return null;
1824
1831
  const label = panel.options.itemTitle || "Item";
1825
- const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkQIBL3YULjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1832
+ const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkKROS6BLMjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1826
1833
  const toggle = (key) => setCollapsed((c) => {
1827
1834
  const next = new Set(c);
1828
1835
  if (!next.delete(key)) next.add(key);
@@ -1860,7 +1867,7 @@ function InputGroupBody({ panel }) {
1860
1867
  group.items.map((item, i) => {
1861
1868
  const named = panel.options.titleFrom ? titleText(item.values[panel.options.titleFrom]) : void 0;
1862
1869
  const title = _nullishCoalesce(named, () => ( `${label} ${i + 1}`));
1863
- const troubled = _chunkQIBL3YULjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1870
+ const troubled = _chunkKROS6BLMjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1864
1871
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1865
1872
  ItemCard,
1866
1873
  {
@@ -1911,7 +1918,7 @@ function InputGroupBody({ panel }) {
1911
1918
  }
1912
1919
  function ItemCard({ panel, group, form, index, title, last, collapsed, onToggle, onDuplicate, dragOffset, lifted, onLayout, handle }) {
1913
1920
  const theme = useDashTheme();
1914
- const fields = _react.useMemo.call(void 0, () => _chunkQIBL3YULjs.groupFields.call(void 0, panel), [panel]);
1921
+ const fields = _react.useMemo.call(void 0, () => _chunkKROS6BLMjs.groupFields.call(void 0, panel), [panel]);
1915
1922
  const item = group.items[index];
1916
1923
  const scoped = _react.useMemo.call(void 0,
1917
1924
  () => ({
@@ -2131,7 +2138,7 @@ function BarGaugePanel({ panel, frames }) {
2131
2138
  const min = _nullishCoalesce(v.config.min, () => ( 0));
2132
2139
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
2133
2140
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
2134
- const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkQIBL3YULjs.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2141
+ const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkKROS6BLMjs.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2135
2142
  const hasLinks = !!_optionalChain([v, 'access', _88 => _88.config, 'access', _89 => _89.links, 'optionalAccess', _90 => _90.length]);
2136
2143
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2137
2144
  _reactnative.Pressable,
@@ -2312,7 +2319,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2312
2319
  const color = _nullishCoalesce(style.color, () => ( {}));
2313
2320
  const size = _nullishCoalesce(style.size, () => ( {}));
2314
2321
  const text = style.text;
2315
- const fixedColor = _chunkQIBL3YULjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2322
+ const fixedColor = _chunkKROS6BLMjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2316
2323
  const heat = layer.type === "heatmap";
2317
2324
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2318
2325
  const legend = [];
@@ -2324,14 +2331,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2324
2331
  let { xs, ys } = located;
2325
2332
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2326
2333
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2327
- const configOf = (f) => _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkQIBL3YULjs.fieldDisplayName.call(void 0, f, frame, multiple));
2334
+ const configOf = (f) => _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkKROS6BLMjs.fieldDisplayName.call(void 0, f, frame, multiple));
2328
2335
  let colors = rows.map(() => fixedColor);
2329
2336
  const colorField = !heat ? find(color.field) : void 0;
2330
2337
  if (colorField) {
2331
2338
  const cConfig = configOf(colorField);
2332
2339
  const values = rows.map((i) => num(colorField.values[i]));
2333
2340
  const extent = range(values);
2334
- colors = values.map((v) => _chunkQIBL3YULjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2341
+ colors = values.map((v) => _chunkKROS6BLMjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2335
2342
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2336
2343
  }
2337
2344
  const dim = heat ? weight : size;
@@ -2389,8 +2396,8 @@ function thresholdLegend(key, config, fallback) {
2389
2396
  if (steps.length < 2) return [];
2390
2397
  return steps.map((s, i) => ({
2391
2398
  key: `${key}/${i}`,
2392
- name: s.value == null ? `< ${_chunkQIBL3YULjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkQIBL3YULjs.formatValue.call(void 0, s.value, config)}+`,
2393
- color: _chunkQIBL3YULjs.resolveColor.call(void 0, s.color, fallback)
2399
+ name: s.value == null ? `< ${_chunkKROS6BLMjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkKROS6BLMjs.formatValue.call(void 0, s.value, config)}+`,
2400
+ color: _chunkKROS6BLMjs.resolveColor.call(void 0, s.color, fallback)
2394
2401
  }));
2395
2402
  }
2396
2403
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2400,15 +2407,15 @@ function gazetteerPaths(panel, frames) {
2400
2407
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _108 => _108.options, 'optionalAccess', _109 => _109.layers]), () => ( DEFAULT_LAYERS))) {
2401
2408
  if (!isDataLayer(layer.type)) continue;
2402
2409
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _110 => _110.location, 'optionalAccess', _111 => _111.mode]), () => ( "auto"));
2403
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkQIBL3YULjs.DEFAULT_GAZETTEER);
2404
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkQIBL3YULjs.DEFAULT_GAZETTEER);
2410
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkKROS6BLMjs.DEFAULT_GAZETTEER);
2411
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkKROS6BLMjs.DEFAULT_GAZETTEER);
2405
2412
  }
2406
2413
  return [...paths];
2407
2414
  }
2408
2415
  var LAT_NAMES = ["lat", "latitude"];
2409
2416
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2410
2417
  function fieldByName(frame, name, multiple) {
2411
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkQIBL3YULjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2418
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkKROS6BLMjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2412
2419
  }
2413
2420
  function locate2(frame, location = {}, gazetteers = {}) {
2414
2421
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2427,10 +2434,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2427
2434
  lat = named(LAT_NAMES);
2428
2435
  lon = named(LON_NAMES);
2429
2436
  if (!lat || !lon) hash = named(["geohash"]);
2430
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkQIBL3YULjs.DEFAULT_GAZETTEER]];
2437
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkKROS6BLMjs.DEFAULT_GAZETTEER]];
2431
2438
  } else if (mode === "lookup") {
2432
2439
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2433
- gazetteer = gazetteers[location.gazetteer || _chunkQIBL3YULjs.DEFAULT_GAZETTEER];
2440
+ gazetteer = gazetteers[location.gazetteer || _chunkKROS6BLMjs.DEFAULT_GAZETTEER];
2434
2441
  }
2435
2442
  const rows = [];
2436
2443
  const xs = [];
@@ -2479,8 +2486,8 @@ function decodeGeohash(hash) {
2479
2486
  }
2480
2487
  function cellText(field, v, config) {
2481
2488
  if (v == null) return "";
2482
- if (field.type === "number") return _chunkQIBL3YULjs.formatDisplay.call(void 0, Number(v), config);
2483
- if (field.type === "time") return new Date(_chunkQIBL3YULjs.toMillis.call(void 0, v)).toLocaleString();
2489
+ if (field.type === "number") return _chunkKROS6BLMjs.formatDisplay.call(void 0, Number(v), config);
2490
+ if (field.type === "time") return new Date(_chunkKROS6BLMjs.toMillis.call(void 0, v)).toLocaleString();
2484
2491
  return String(v);
2485
2492
  }
2486
2493
  function num(v) {
@@ -2730,11 +2737,11 @@ function useGazetteers(panel, frames) {
2730
2737
  let live = true;
2731
2738
  let ds;
2732
2739
  try {
2733
- ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkQIBL3YULjs.normalizeRef.call(void 0, panel.datasource))]);
2740
+ ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkKROS6BLMjs.normalizeRef.call(void 0, panel.datasource))]);
2734
2741
  } catch (e5) {
2735
2742
  }
2736
2743
  const paths = key.split("\n");
2737
- Promise.allSettled(paths.map((p) => _chunkQIBL3YULjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2744
+ Promise.allSettled(paths.map((p) => _chunkKROS6BLMjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2738
2745
  if (!live) return;
2739
2746
  const gazetteers = {};
2740
2747
  const errors = [];
@@ -2877,8 +2884,8 @@ function cellType(config) {
2877
2884
  }
2878
2885
  function tableColumns(panel, frame, multipleFrames = false) {
2879
2886
  return frame.fields.flatMap((field, i) => {
2880
- const raw = _chunkQIBL3YULjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2881
- const config = _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2887
+ const raw = _chunkKROS6BLMjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2888
+ const config = _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2882
2889
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2883
2890
  if (custom.hidden || _optionalChain([custom, 'access', _133 => _133.hideFrom, 'optionalAccess', _134 => _134.viz])) return [];
2884
2891
  const numeric = field.type === "number";
@@ -2921,16 +2928,16 @@ function tableFooter(columns) {
2921
2928
  counted = true;
2922
2929
  return [{ label: "Count", text: String(c.field.values.length) }];
2923
2930
  }
2924
- if (!_chunkQIBL3YULjs.isReducer.call(void 0, r)) return [];
2925
- const label = _chunkQIBL3YULjs.REDUCER_LABELS[r];
2931
+ if (!_chunkKROS6BLMjs.isReducer.call(void 0, r)) return [];
2932
+ const label = _chunkKROS6BLMjs.REDUCER_LABELS[r];
2926
2933
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2927
2934
  if (c.field.type !== "number") {
2928
2935
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2929
2936
  return [];
2930
2937
  }
2931
- const value = _chunkQIBL3YULjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2938
+ const value = _chunkKROS6BLMjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2932
2939
  const counts = r === "distinctCount" || r === "changeCount";
2933
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkQIBL3YULjs.formatValue.call(void 0, value, c.config) }];
2940
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkKROS6BLMjs.formatValue.call(void 0, value, c.config) }];
2934
2941
  });
2935
2942
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2936
2943
  });
@@ -2949,13 +2956,13 @@ function extentOf(values) {
2949
2956
  }
2950
2957
  function cellDisplay(col, raw, fallbackColor) {
2951
2958
  const { config, field } = col;
2952
- const mapped = _chunkQIBL3YULjs.mappedResult.call(void 0, raw, config);
2959
+ const mapped = _chunkKROS6BLMjs.mappedResult.call(void 0, raw, config);
2953
2960
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2954
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkQIBL3YULjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkQIBL3YULjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2961
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkKROS6BLMjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkKROS6BLMjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2955
2962
  if (col.cellType === "auto") return { text };
2956
2963
  const mode = _optionalChain([config, 'access', _149 => _149.color, 'optionalAccess', _150 => _150.mode]);
2957
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkQIBL3YULjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2958
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkQIBL3YULjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkQIBL3YULjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2964
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkKROS6BLMjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2965
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkKROS6BLMjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkKROS6BLMjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2959
2966
  if (col.cellType === "color-text") return { text, color };
2960
2967
  if (col.cellType === "color-background") return { text, background: color };
2961
2968
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _156 => _156.extent, 'optionalAccess', _157 => _157[0]]), () => ( 0)))));
@@ -2986,7 +2993,7 @@ function sortedRows(columns, length, sort) {
2986
2993
  if (!col) return rows;
2987
2994
  const { field } = col;
2988
2995
  const dir = sort.desc ? -1 : 1;
2989
- const key = (v) => field.type === "time" ? _chunkQIBL3YULjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2996
+ const key = (v) => field.type === "time" ? _chunkKROS6BLMjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
2990
2997
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
2991
2998
  return rows.sort((a, b) => {
2992
2999
  const va = field.values[a];
@@ -3052,8 +3059,8 @@ function TablePanel({ panel, frames }) {
3052
3059
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
3053
3060
  const [tapped, setSort] = _react.useState.call(void 0, );
3054
3061
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
3055
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkQIBL3YULjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3056
- if (!frame || !_chunkQIBL3YULjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3062
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkKROS6BLMjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3063
+ if (!frame || !_chunkKROS6BLMjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3057
3064
  const shown = order.slice(0, 500);
3058
3065
  const rowColumn = columns.find((c) => c.applyToRow);
3059
3066
  const footer = tableFooter(columns);
@@ -3153,7 +3160,7 @@ function BarChartPanel({ panel, frames, width }) {
3153
3160
  {
3154
3161
  style: [styles11.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles11.tickLeft : styles11.tickRight],
3155
3162
  numberOfLines: 1,
3156
- children: _chunkQIBL3YULjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3163
+ children: _chunkKROS6BLMjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3157
3164
  },
3158
3165
  t
3159
3166
  )) });
@@ -3279,7 +3286,7 @@ function TimeSeriesPanel({ panel, frames }) {
3279
3286
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3280
3287
  const span = xTo - xFrom;
3281
3288
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3282
- const xLabel = (t) => numericX ? _chunkQIBL3YULjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3289
+ const xLabel = (t) => numericX ? _chunkKROS6BLMjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3283
3290
  const unitConfig = series[0].config;
3284
3291
  const barSeries = series.filter((s) => style(s) === "bars");
3285
3292
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3297,11 +3304,11 @@ function TimeSeriesPanel({ panel, frames }) {
3297
3304
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3298
3305
  const p = pinch.current;
3299
3306
  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) };
3300
- setPreview(_chunkQIBL3YULjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3307
+ setPreview(_chunkKROS6BLMjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3301
3308
  };
3302
3309
  const onPinchEnd = (commit) => {
3303
3310
  if (commit && pinch.current && preview) {
3304
- if (!extent) setRawRange({ from: _chunkQIBL3YULjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkQIBL3YULjs.formatLocalDateTime.call(void 0, preview.to) });
3311
+ if (!extent) setRawRange({ from: _chunkKROS6BLMjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkKROS6BLMjs.formatLocalDateTime.call(void 0, preview.to) });
3305
3312
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3306
3313
  }
3307
3314
  pinch.current = null;
@@ -3356,7 +3363,7 @@ function TimeSeriesPanel({ panel, frames }) {
3356
3363
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3357
3364
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3358
3365
  /* @__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 }),
3359
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkQIBL3YULjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3366
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkKROS6BLMjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3360
3367
  ] }, t)),
3361
3368
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3362
3369
  _reactnativesvg.Text,
@@ -3422,11 +3429,11 @@ function TimeSeriesPanel({ panel, frames }) {
3422
3429
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3423
3430
  ],
3424
3431
  children: [
3425
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkQIBL3YULjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3432
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkKROS6BLMjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3426
3433
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles12.tooltipRow, children: [
3427
3434
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles12.swatch, { backgroundColor: r.color }] }),
3428
3435
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3429
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkQIBL3YULjs.formatValue.call(void 0, r.value, r.config) })
3436
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkKROS6BLMjs.formatValue.call(void 0, r.value, r.config) })
3430
3437
  ] }, r.key)),
3431
3438
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3432
3439
  ]
@@ -3511,7 +3518,7 @@ function linkData(r, frames, xField) {
3511
3518
  if (frame && xField === void 0) {
3512
3519
  row = r.index;
3513
3520
  } else if (frame) {
3514
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkQIBL3YULjs.numberFields.call(void 0, frame)[0]));
3521
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkKROS6BLMjs.numberFields.call(void 0, frame)[0]));
3515
3522
  const at = _optionalChain([xf, 'optionalAccess', _217 => _217.values, 'access', _218 => _218.findIndex, 'call', _219 => _219((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3516
3523
  row = at != null && at >= 0 ? at : void 0;
3517
3524
  }
@@ -3522,7 +3529,7 @@ function linkData(r, frames, xField) {
3522
3529
  fieldName: r.name,
3523
3530
  seriesName: r.name,
3524
3531
  value: r.value,
3525
- text: _chunkQIBL3YULjs.formatValue.call(void 0, r.value, r.config),
3532
+ text: _chunkKROS6BLMjs.formatValue.call(void 0, r.value, r.config),
3526
3533
  time: xField === void 0 ? r.time : void 0
3527
3534
  };
3528
3535
  }
@@ -3583,8 +3590,8 @@ function xySeries(panel, frames, scheme) {
3583
3590
  const { manual, series: maps, exclude } = mappings(panel);
3584
3591
  const multiple = frames.length > 1;
3585
3592
  const out = [];
3586
- const config = (field, frame) => _chunkQIBL3YULjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkQIBL3YULjs.fieldDisplayName.call(void 0, field, frame, multiple));
3587
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkQIBL3YULjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkQIBL3YULjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3593
+ const config = (field, frame) => _chunkKROS6BLMjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkKROS6BLMjs.fieldDisplayName.call(void 0, field, frame, multiple));
3594
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkKROS6BLMjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkKROS6BLMjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3588
3595
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3589
3596
  const matcher = _optionalChain([m, 'access', _230 => _230.frame, 'optionalAccess', _231 => _231.matcher]);
3590
3597
  const chosen = _optionalChain([matcher, 'optionalAccess', _232 => _232.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3600,16 +3607,16 @@ function xySeries(panel, frames, scheme) {
3600
3607
  const yConfig = config(yField, frame);
3601
3608
  if (_optionalChain([yConfig, 'access', _233 => _233.custom, 'optionalAccess', _234 => _234.hideFrom, 'optionalAccess', _235 => _235.viz]) && !manual) continue;
3602
3609
  const xConfig = config(xField, frame);
3603
- const color = _chunkQIBL3YULjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3604
- const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkQIBL3YULjs.valueColor.call(void 0, null, yConfig, color) : color;
3610
+ const color = _chunkKROS6BLMjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3611
+ const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkKROS6BLMjs.valueColor.call(void 0, null, yConfig, color) : color;
3605
3612
  const rows = [];
3606
3613
  const xs = [];
3607
3614
  const ys = [];
3608
3615
  yField.values.forEach((yv, i) => {
3609
3616
  const xv = xField.values[i];
3610
3617
  if (xv == null || yv == null) return;
3611
- const xn = xField.type === "time" ? _chunkQIBL3YULjs.toMillis.call(void 0, xv) : Number(xv);
3612
- const yn = yField.type === "time" ? _chunkQIBL3YULjs.toMillis.call(void 0, yv) : Number(yv);
3618
+ const xn = xField.type === "time" ? _chunkKROS6BLMjs.toMillis.call(void 0, xv) : Number(xv);
3619
+ const yn = yField.type === "time" ? _chunkKROS6BLMjs.toMillis.call(void 0, yv) : Number(yv);
3613
3620
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3614
3621
  rows.push(i);
3615
3622
  xs.push(xn);
@@ -3622,7 +3629,7 @@ function xySeries(panel, frames, scheme) {
3622
3629
  const cConfig = config(colorField, frame);
3623
3630
  const values = rows.map((i) => num3(colorField.values[i]));
3624
3631
  const extent = range2(values);
3625
- colors = values.map((v) => _chunkQIBL3YULjs.valueColor.call(void 0, v, cConfig, base, extent));
3632
+ colors = values.map((v) => _chunkKROS6BLMjs.valueColor.call(void 0, v, cConfig, base, extent));
3626
3633
  }
3627
3634
  let sizes = rows.map(() => fixedSize);
3628
3635
  if (sizeField) {
@@ -3632,7 +3639,7 @@ function xySeries(panel, frames, scheme) {
3632
3639
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3633
3640
  }
3634
3641
  const fixedName = _optionalChain([m, 'access', _249 => _249.name, 'optionalAccess', _250 => _250.fixed]);
3635
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkQIBL3YULjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3642
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkKROS6BLMjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3636
3643
  out.push({
3637
3644
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3638
3645
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3755,7 +3762,7 @@ function XYChartPanel({ panel, frames }) {
3755
3762
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3756
3763
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3757
3764
  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 }),
3758
- /* @__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: _chunkQIBL3YULjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3765
+ /* @__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: _chunkKROS6BLMjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3759
3766
  ] }, `y${t}`)),
3760
3767
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3761
3768
  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 }),
@@ -3767,7 +3774,7 @@ function XYChartPanel({ panel, frames }) {
3767
3774
  fontSize: 10,
3768
3775
  fill: theme.textMuted,
3769
3776
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3770
- children: _chunkQIBL3YULjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3777
+ children: _chunkKROS6BLMjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3771
3778
  }
3772
3779
  )
3773
3780
  ] }, `x${t}`)),
@@ -3880,14 +3887,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3880
3887
  const width = (measured.width || window.width) - insets.left - insets.right;
3881
3888
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3882
3889
  const sections = _react.useMemo.call(void 0,
3883
- () => _chunkQIBL3YULjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3890
+ () => _chunkKROS6BLMjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3884
3891
  [dashboard, layoutMode, variables, variableInfo2]
3885
3892
  );
3886
3893
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3887
3894
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3888
3895
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3889
3896
  const contentW = width - SIDE * 2;
3890
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkQIBL3YULjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkQIBL3YULjs.panelHasQueries)]))));
3897
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkKROS6BLMjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkKROS6BLMjs.panelHasQueries)]))));
3891
3898
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.fill, { backgroundColor: theme.background }], onLayout, children: [
3892
3899
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3893
3900
  _reactnative.ScrollView,
@@ -3913,14 +3920,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3913
3920
  accessibilityState: { expanded: !collapsed },
3914
3921
  children: [
3915
3922
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3916
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkQIBL3YULjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3923
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkKROS6BLMjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3917
3924
  ]
3918
3925
  }
3919
3926
  ),
3920
3927
  !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
3921
3928
  !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles14.row, children: row.cells.map((cell) => {
3922
- const w = (contentW + GAP2) * (cell.span / _chunkQIBL3YULjs.GRID_COLUMNS) - GAP2;
3923
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkQIBL3YULjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3929
+ const w = (contentW + GAP2) * (cell.span / _chunkKROS6BLMjs.GRID_COLUMNS) - GAP2;
3930
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkKROS6BLMjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3924
3931
  }) }, ri))
3925
3932
  ] }, section.key);
3926
3933
  })
@@ -3931,10 +3938,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3931
3938
  ] });
3932
3939
  }
3933
3940
  function GridSection({ grid, width, maxPanelH, deferred }) {
3934
- const colW = (width + GAP2) / _chunkQIBL3YULjs.GRID_COLUMNS;
3935
- const tallest = Math.max(0, ...grid.cells.map((c) => _chunkQIBL3YULjs.gridUnitsToPx.call(void 0, c.h)));
3941
+ const colW = (width + GAP2) / _chunkKROS6BLMjs.GRID_COLUMNS;
3942
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkKROS6BLMjs.gridUnitsToPx.call(void 0, c.h)));
3936
3943
  const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
3937
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkQIBL3YULjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkQIBL3YULjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkQIBL3YULjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3944
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkKROS6BLMjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkKROS6BLMjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkKROS6BLMjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3938
3945
  }
3939
3946
  function useSeenSections(viewportHeight) {
3940
3947
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
@@ -3993,13 +4000,13 @@ function PanelCardContent({ panel, width, height, deferred }) {
3993
4000
  const theme = useDashTheme();
3994
4001
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
3995
4002
  const { resolve, openLinks } = usePanelLinks(panel);
3996
- const group = _chunkQIBL3YULjs.isInputGroup.call(void 0, panel);
3997
- const input = _chunkQIBL3YULjs.isInputPanel.call(void 0, panel) || group;
4003
+ const group = _chunkKROS6BLMjs.isInputGroup.call(void 0, panel);
4004
+ const input = _chunkKROS6BLMjs.isInputPanel.call(void 0, panel) || group;
3998
4005
  const form = _react.useContext.call(void 0, InputFormContext);
3999
- const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkQIBL3YULjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
4006
+ const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkKROS6BLMjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
4000
4007
  const hasLinks = !!_optionalChain([panel, 'access', _281 => _281.links, 'optionalAccess', _282 => _282.length]);
4001
4008
  const hasTitle = !!panel.title || hasLinks || !!problem;
4002
- const title = panel.title ? _chunkQIBL3YULjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4009
+ const title = panel.title ? _chunkKROS6BLMjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4003
4010
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
4004
4011
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles14.titleRow, children: [
4005
4012
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -4021,7 +4028,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
4021
4028
  }
4022
4029
  function DataPanelBody({ panel, width, height }) {
4023
4030
  const theme = useDashTheme();
4024
- const needsData = _chunkQIBL3YULjs.panelHasQueries.call(void 0, panel);
4031
+ const needsData = _chunkKROS6BLMjs.panelHasQueries.call(void 0, panel);
4025
4032
  const data = usePanelData(panel, width, needsData);
4026
4033
  const Component2 = panelComponent(panel.type);
4027
4034
  if (needsData && data.error) {
@@ -4063,19 +4070,19 @@ function savedValues(panels, entries) {
4063
4070
  const values = {};
4064
4071
  for (const p of panels) {
4065
4072
  const mine = entries.filter((e) => e.metric === p.options.metric);
4066
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkQIBL3YULjs.entryToInputValue.call(void 0, p, mine[0]);
4073
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkKROS6BLMjs.entryToInputValue.call(void 0, p, mine[0]);
4067
4074
  }
4068
4075
  return values;
4069
4076
  }
4070
4077
  async function lastItems(store, group) {
4071
- const metrics = _chunkQIBL3YULjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4078
+ const metrics = _chunkKROS6BLMjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4072
4079
  const latest = (await Promise.all(metrics.map((m) => store.latest(m)))).filter((e) => !!e).sort((a, b) => b.ts - a.ts)[0];
4073
4080
  if (!latest) return [];
4074
- return _chunkQIBL3YULjs.entriesToItems.call(void 0, group, _chunkQIBL3YULjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4081
+ return _chunkKROS6BLMjs.entriesToItems.call(void 0, group, _chunkKROS6BLMjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4075
4082
  }
4076
4083
  function freshItem(group, position, last) {
4077
4084
  const item = {};
4078
- for (const f of _chunkQIBL3YULjs.groupFields.call(void 0, group)) {
4085
+ for (const f of _chunkKROS6BLMjs.groupFields.call(void 0, group)) {
4079
4086
  const d = f.options.default;
4080
4087
  const v = d === "last" ? _optionalChain([last, 'optionalAccess', _283 => _283[position], 'optionalAccess', _284 => _284[f.options.metric]]) : d;
4081
4088
  if (v !== void 0 && v !== null) item[f.options.metric] = v;
@@ -4084,14 +4091,14 @@ function freshItem(group, position, last) {
4084
4091
  }
4085
4092
  function baseItems(group, editing, last) {
4086
4093
  const start = group.options.start;
4087
- const values = editing ? _chunkQIBL3YULjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4094
+ const values = editing ? _chunkKROS6BLMjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4088
4095
  return values.map((v, i) => ({ key: `b${i}`, values: v, edited: [] }));
4089
4096
  }
4090
4097
  var nextItemKey = 1;
4091
4098
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
4092
4099
  const theme = useDashTheme();
4093
- const panels = _react.useMemo.call(void 0, () => _chunkQIBL3YULjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4094
- const groups = _react.useMemo.call(void 0, () => _chunkQIBL3YULjs.inputGroups.call(void 0, dashboard), [dashboard]);
4100
+ const panels = _react.useMemo.call(void 0, () => _chunkKROS6BLMjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4101
+ const groups = _react.useMemo.call(void 0, () => _chunkKROS6BLMjs.inputGroups.call(void 0, dashboard), [dashboard]);
4095
4102
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
4096
4103
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
4097
4104
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -4107,12 +4114,12 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4107
4114
  const next = {};
4108
4115
  for (const p of panels) {
4109
4116
  const d = p.options.default;
4110
- if (d === "last") next[p.options.metric] = _chunkQIBL3YULjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4117
+ if (d === "last") next[p.options.metric] = _chunkKROS6BLMjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4111
4118
  else if (d !== void 0) next[p.options.metric] = d;
4112
4119
  }
4113
4120
  const lastNext = {};
4114
4121
  for (const g of groups) {
4115
- const wanted = g.options.start === "last" || _chunkQIBL3YULjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4122
+ const wanted = g.options.start === "last" || _chunkKROS6BLMjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4116
4123
  if (wanted) lastNext[groupKey(g)] = await lastItems(store, g);
4117
4124
  }
4118
4125
  if (mine === run) {
@@ -4142,7 +4149,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4142
4149
  choices,
4143
4150
  problem: (m) => {
4144
4151
  const p = panels.find((x) => x.options.metric === m);
4145
- return p && (checked || m in edits) ? _chunkQIBL3YULjs.inputProblem.call(void 0, p, value(m)) : void 0;
4152
+ return p && (checked || m in edits) ? _chunkKROS6BLMjs.inputProblem.call(void 0, p, value(m)) : void 0;
4146
4153
  },
4147
4154
  group: (g) => groupState(g, itemsOf(g), last[groupKey(g)], groupKey(g) in groupEdits, checked, (update) => {
4148
4155
  setStatus(null);
@@ -4152,25 +4159,25 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4152
4159
  }, [edits, saved, defaults, given, store, choices, panels, checked, itemsOf, last, groupEdits, base]);
4153
4160
  const dirty = Object.keys(edits).length + groups.reduce((n, g) => n + groupChanges(_nullishCoalesce(base[groupKey(g)], () => ( [])), groupEdits[groupKey(g)]), 0);
4154
4161
  const recordedGroups = _react.useCallback.call(void 0,
4155
- () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkQIBL3YULjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4162
+ () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkKROS6BLMjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4156
4163
  [groups, editing, groupEdits]
4157
4164
  );
4158
4165
  const save = _react.useCallback.call(void 0, async () => {
4159
4166
  const problems = panels.flatMap((p) => {
4160
- const problem = _chunkQIBL3YULjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4167
+ const problem = _chunkKROS6BLMjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4161
4168
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
4162
4169
  });
4163
- for (const g of recordedGroups()) problems.push(..._chunkQIBL3YULjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4170
+ for (const g of recordedGroups()) problems.push(..._chunkKROS6BLMjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4164
4171
  if (problems.length) {
4165
4172
  setChecked(true);
4166
4173
  setStatus(problems.length === 1 ? `Can\u2019t save. ${problems[0]}` : `Can\u2019t save: ${problems.length} fields need fixing`);
4167
4174
  return;
4168
4175
  }
4169
4176
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _286 => _286[0], 'optionalAccess', _287 => _287.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _288 => _288()]), () => ( Date.now())) : Date.now() + offsetMs)));
4170
- const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkQIBL3YULjs.newSaveId.call(void 0, )));
4177
+ const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkKROS6BLMjs.newSaveId.call(void 0, )));
4171
4178
  const entries = [
4172
- ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkQIBL3YULjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4173
- ...recordedGroups().flatMap((g) => _chunkQIBL3YULjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4179
+ ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkKROS6BLMjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4180
+ ...recordedGroups().flatMap((g) => _chunkKROS6BLMjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4174
4181
  ];
4175
4182
  if (!entries.length) return;
4176
4183
  const extra = beforeSave ? await beforeSave(ts) : [];
@@ -4228,10 +4235,10 @@ function groupChanges(base, items) {
4228
4235
  return edited + added + removed + moved;
4229
4236
  }
4230
4237
  function groupState(group, items, last, edited, showProblems, update) {
4231
- const fields = _chunkQIBL3YULjs.groupFields.call(void 0, group);
4238
+ const fields = _chunkKROS6BLMjs.groupFields.call(void 0, group);
4232
4239
  const { max } = group.options;
4233
4240
  const fresh = (position) => ({ key: `n${nextItemKey++}`, values: freshItem(group, position, last), edited: [] });
4234
- const filled = items.filter((i) => !_chunkQIBL3YULjs.isEmptyItem.call(void 0, group, i.values)).length;
4241
+ const filled = items.filter((i) => !_chunkKROS6BLMjs.isEmptyItem.call(void 0, group, i.values)).length;
4235
4242
  const { min } = group.options;
4236
4243
  return {
4237
4244
  items: items.map((i) => ({ key: i.key, values: i.values, edited: i.edited })),
@@ -4256,8 +4263,8 @@ function groupState(group, items, last, edited, showProblems, update) {
4256
4263
  fieldProblem: (index, metric) => {
4257
4264
  const item = items[index];
4258
4265
  const field = fields.find((f) => f.options.metric === metric);
4259
- if (!item || !field || _chunkQIBL3YULjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4260
- return showProblems || item.edited.includes(metric) ? _chunkQIBL3YULjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4266
+ if (!item || !field || _chunkKROS6BLMjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4267
+ return showProblems || item.edited.includes(metric) ? _chunkKROS6BLMjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4261
4268
  }
4262
4269
  };
4263
4270
  }
@@ -4543,4 +4550,11 @@ var styles15 = _reactnative.StyleSheet.create({
4543
4550
 
4544
4551
 
4545
4552
 
4546
- exports.ALL = _chunkQIBL3YULjs.ALL; exports.BUNDLE_ACCEPT = _chunkQIBL3YULjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkQIBL3YULjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkQIBL3YULjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkQIBL3YULjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkQIBL3YULjs.ConfigLoader; exports.DASHBOARD_DS = _chunkQIBL3YULjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkQIBL3YULjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkQIBL3YULjs.EDITABLE_VARIABLE_TYPES; exports.GRID_COLUMNS = _chunkQIBL3YULjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkQIBL3YULjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkQIBL3YULjs.GrafanaClient; exports.GrafanaDataSource = _chunkQIBL3YULjs.GrafanaDataSource; exports.GrafanaError = _chunkQIBL3YULjs.GrafanaError; exports.HttpConfigFiles = _chunkQIBL3YULjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkQIBL3YULjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkQIBL3YULjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkQIBL3YULjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkQIBL3YULjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkQIBL3YULjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkQIBL3YULjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkQIBL3YULjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkQIBL3YULjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkQIBL3YULjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkQIBL3YULjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkQIBL3YULjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkQIBL3YULjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkQIBL3YULjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkQIBL3YULjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkQIBL3YULjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkQIBL3YULjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkQIBL3YULjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkQIBL3YULjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkQIBL3YULjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkQIBL3YULjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkQIBL3YULjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkQIBL3YULjs.UNIT_CHOICES; exports.addTime = _chunkQIBL3YULjs.addTime; exports.appSchema = _chunkQIBL3YULjs.appSchema; exports.applyDashboardLink = _chunkQIBL3YULjs.applyDashboardLink; exports.applyJsonEdits = _chunkQIBL3YULjs.applyJsonEdits; exports.applyTemplate = _chunkQIBL3YULjs.applyTemplate; exports.applyTransformations = _chunkQIBL3YULjs.applyTransformations; exports.assembleBundle = _chunkQIBL3YULjs.assembleBundle; exports.assembleFromResponse = _chunkQIBL3YULjs.assembleFromResponse; exports.buildFrames = _chunkQIBL3YULjs.buildFrames; exports.bundleFromFiles = _chunkQIBL3YULjs.bundleFromFiles; exports.bundleRoot = _chunkQIBL3YULjs.bundleRoot; exports.calculateInterval = _chunkQIBL3YULjs.calculateInterval; exports.checkFiles = _chunkQIBL3YULjs.checkFiles; exports.cleanDashboard = _chunkQIBL3YULjs.cleanDashboard; exports.cleanPanelOptions = _chunkQIBL3YULjs.cleanPanelOptions; exports.collapseRow = _chunkQIBL3YULjs.collapseRow; exports.compactGrid = _chunkQIBL3YULjs.compactGrid; exports.copyPanels = _chunkQIBL3YULjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkQIBL3YULjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkQIBL3YULjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkQIBL3YULjs.dashboardSourceIds; exports.defaultFetchJson = _chunkQIBL3YULjs.defaultFetchJson; exports.describeRange = _chunkQIBL3YULjs.describeRange; exports.diffJson = _chunkQIBL3YULjs.diffJson; exports.documentIdFor = _chunkQIBL3YULjs.documentIdFor; exports.documentUses = _chunkQIBL3YULjs.documentUses; exports.dropTarget = _chunkQIBL3YULjs.dropTarget; exports.duplicatePanel = _chunkQIBL3YULjs.duplicatePanel; exports.entriesSavedWith = _chunkQIBL3YULjs.entriesSavedWith; exports.entriesToItems = _chunkQIBL3YULjs.entriesToItems; exports.entryToInputValue = _chunkQIBL3YULjs.entryToInputValue; exports.expandRow = _chunkQIBL3YULjs.expandRow; exports.fetchBundle = _chunkQIBL3YULjs.fetchBundle; exports.fetchJsonWithToken = _chunkQIBL3YULjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkQIBL3YULjs.fieldDisplayName; exports.fieldMatches = _chunkQIBL3YULjs.fieldMatches; exports.formatClock = _chunkQIBL3YULjs.formatClock; exports.formatDisplay = _chunkQIBL3YULjs.formatDisplay; exports.formatDuration = _chunkQIBL3YULjs.formatDuration; exports.formatJsonText = _chunkQIBL3YULjs.formatJsonText; exports.formatLocalDateTime = _chunkQIBL3YULjs.formatLocalDateTime; exports.formatValue = _chunkQIBL3YULjs.formatValue; exports.frameLength = _chunkQIBL3YULjs.frameLength; exports.framesToOptions = _chunkQIBL3YULjs.framesToOptions; exports.fromWire = _chunkQIBL3YULjs.fromWire; exports.getPath = _chunkQIBL3YULjs.getPath; exports.gridOffsetPx = _chunkQIBL3YULjs.gridOffsetPx; exports.gridUnitsToPx = _chunkQIBL3YULjs.gridUnitsToPx; exports.groupField = _chunkQIBL3YULjs.groupField; exports.groupFields = _chunkQIBL3YULjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkQIBL3YULjs.groupProblems; exports.groupToEntries = _chunkQIBL3YULjs.groupToEntries; exports.httpFetchJson = _chunkQIBL3YULjs.httpFetchJson; exports.initialVariableValues = _chunkQIBL3YULjs.initialVariableValues; exports.inputGroups = _chunkQIBL3YULjs.inputGroups; exports.inputPanels = _chunkQIBL3YULjs.inputPanels; exports.inputProblem = _chunkQIBL3YULjs.inputProblem; exports.insertPanel = _chunkQIBL3YULjs.insertPanel; exports.interpolate = _chunkQIBL3YULjs.interpolate; exports.interpolateDeep = _chunkQIBL3YULjs.interpolateDeep; exports.isBundleResponse = _chunkQIBL3YULjs.isBundleResponse; exports.isEditableVariableType = _chunkQIBL3YULjs.isEditableVariableType; exports.isEmptyItem = _chunkQIBL3YULjs.isEmptyItem; exports.isFormPanelType = _chunkQIBL3YULjs.isFormPanelType; exports.isInputGroup = _chunkQIBL3YULjs.isInputGroup; exports.isInputPanel = _chunkQIBL3YULjs.isInputPanel; exports.isInputType = _chunkQIBL3YULjs.isInputType; exports.isLocalDatasource = _chunkQIBL3YULjs.isLocalDatasource; exports.isReducer = _chunkQIBL3YULjs.isReducer; exports.isRow = _chunkQIBL3YULjs.isRow; exports.isSqlDatasource = _chunkQIBL3YULjs.isSqlDatasource; exports.layoutCanvas = _chunkQIBL3YULjs.layoutCanvas; exports.layoutDashboard = _chunkQIBL3YULjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkQIBL3YULjs.lineColumn; exports.loadGazetteer = _chunkQIBL3YULjs.loadGazetteer; exports.locate = _chunkQIBL3YULjs.locate; exports.makeTemplate = _chunkQIBL3YULjs.makeTemplate; exports.manifestSchemaIssues = _chunkQIBL3YULjs.manifestSchemaIssues; exports.mappedResult = _chunkQIBL3YULjs.mappedResult; exports.mappingProblem = _chunkQIBL3YULjs.mappingProblem; exports.mappingRow = _chunkQIBL3YULjs.mappingRow; exports.mappingRows = _chunkQIBL3YULjs.mappingRows; exports.metricChanges = _chunkQIBL3YULjs.metricChanges; exports.movePanel = _chunkQIBL3YULjs.movePanel; exports.newDocument = _chunkQIBL3YULjs.newDocument; exports.newPanel = _chunkQIBL3YULjs.newPanel; exports.newSaveId = _chunkQIBL3YULjs.newSaveId; exports.newVariable = _chunkQIBL3YULjs.newVariable; exports.nextPanelId = _chunkQIBL3YULjs.nextPanelId; exports.normalizeRef = _chunkQIBL3YULjs.normalizeRef; exports.numberFields = _chunkQIBL3YULjs.numberFields; exports.optionValue = _chunkQIBL3YULjs.optionValue; exports.overrideProperties = _chunkQIBL3YULjs.overrideProperties; exports.panelEdits = _chunkQIBL3YULjs.panelEdits; exports.panelHasQueries = _chunkQIBL3YULjs.panelHasQueries; exports.panelKey = _chunkQIBL3YULjs.panelKey; exports.panelMetrics = _chunkQIBL3YULjs.panelMetrics; exports.panelOptions = _chunkQIBL3YULjs.panelOptions; exports.panelOverrides = _chunkQIBL3YULjs.panelOverrides; exports.panelSize = _chunkQIBL3YULjs.panelSize; exports.panelSpan = _chunkQIBL3YULjs.panelSpan; exports.parseClockDigits = _chunkQIBL3YULjs.parseClockDigits; exports.parseDashboardLink = _chunkQIBL3YULjs.parseDashboardLink; exports.parseDuration = _chunkQIBL3YULjs.parseDuration; exports.parseGazetteer = _chunkQIBL3YULjs.parseGazetteer; exports.parseJsonText = _chunkQIBL3YULjs.parseJsonText; exports.parseLocalDateTime = _chunkQIBL3YULjs.parseLocalDateTime; exports.parseRange = _chunkQIBL3YULjs.parseRange; exports.parseSnippet = _chunkQIBL3YULjs.parseSnippet; exports.parseTemplate = _chunkQIBL3YULjs.parseTemplate; exports.parseTime = _chunkQIBL3YULjs.parseTime; exports.pasteSnippet = _chunkQIBL3YULjs.pasteSnippet; exports.placePanel = _chunkQIBL3YULjs.placePanel; exports.plainInputPanels = _chunkQIBL3YULjs.plainInputPanels; exports.pointerToPath = _chunkQIBL3YULjs.pointerToPath; exports.prepareDashboard = _chunkQIBL3YULjs.prepareDashboard; exports.previewPaste = _chunkQIBL3YULjs.previewPaste; exports.queryPanel = _chunkQIBL3YULjs.queryPanel; exports.queryParam = _chunkQIBL3YULjs.queryParam; exports.readConfigFiles = _chunkQIBL3YULjs.readConfigFiles; exports.readingOrder = _chunkQIBL3YULjs.readingOrder; exports.reduce = _chunkQIBL3YULjs.reduce; exports.refineOptions = _chunkQIBL3YULjs.refineOptions; exports.refreshedVariables = _chunkQIBL3YULjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkQIBL3YULjs.removeDocumentFromManifest; exports.removePanel = _chunkQIBL3YULjs.removePanel; exports.renameDocumentInManifest = _chunkQIBL3YULjs.renameDocumentInManifest; exports.renameMetrics = _chunkQIBL3YULjs.renameMetrics; exports.renameVariableInPanels = _chunkQIBL3YULjs.renameVariableInPanels; exports.repack = _chunkQIBL3YULjs.repack; exports.repeatOptions = _chunkQIBL3YULjs.repeatOptions; exports.resizePanel = _chunkQIBL3YULjs.resizePanel; exports.resolveColor = _chunkQIBL3YULjs.resolveColor; exports.resolveFieldConfig = _chunkQIBL3YULjs.resolveFieldConfig; exports.resolveLinks = _chunkQIBL3YULjs.resolveLinks; exports.resolveTimezone = _chunkQIBL3YULjs.resolveTimezone; exports.resolveUrl = _chunkQIBL3YULjs.resolveUrl; exports.resolveVariables = _chunkQIBL3YULjs.resolveVariables; exports.revalidateBundle = _chunkQIBL3YULjs.revalidateBundle; exports.rowsToMappings = _chunkQIBL3YULjs.rowsToMappings; exports.sameSave = _chunkQIBL3YULjs.sameSave; exports.sampleEntries = _chunkQIBL3YULjs.sampleEntries; exports.screenDocuments = _chunkQIBL3YULjs.screenDocuments; exports.screenOfType = _chunkQIBL3YULjs.screenOfType; exports.selectValue = _chunkQIBL3YULjs.selectValue; exports.seriesColor = _chunkQIBL3YULjs.seriesColor; exports.setHiddenOnPhones = _chunkQIBL3YULjs.setHiddenOnPhones; exports.setJsonValue = _chunkQIBL3YULjs.setJsonValue; exports.setOption = _chunkQIBL3YULjs.setOption; exports.setOptionValue = _chunkQIBL3YULjs.setOptionValue; exports.setOverrides = _chunkQIBL3YULjs.setOverrides; exports.settleLayout = _chunkQIBL3YULjs.settleLayout; exports.snapToGrid = _chunkQIBL3YULjs.snapToGrid; exports.splitPath = _chunkQIBL3YULjs.splitPath; exports.startOf = _chunkQIBL3YULjs.startOf; exports.stringifyCompact = _chunkQIBL3YULjs.stringifyCompact; exports.tabIdFor = _chunkQIBL3YULjs.tabIdFor; exports.templateNeeds = _chunkQIBL3YULjs.templateNeeds; exports.textSuggestions = _chunkQIBL3YULjs.textSuggestions; exports.thresholdStep = _chunkQIBL3YULjs.thresholdStep; exports.timeExprError = _chunkQIBL3YULjs.timeExprError; exports.timeField = _chunkQIBL3YULjs.timeField; exports.toEntries = _chunkQIBL3YULjs.toEntries; exports.toMillis = _chunkQIBL3YULjs.toMillis; exports.toSeries = _chunkQIBL3YULjs.toSeries; exports.toXYSeries = _chunkQIBL3YULjs.toXYSeries; exports.uniqueNames = _chunkQIBL3YULjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkQIBL3YULjs.validateBundle; exports.validateDashboard = _chunkQIBL3YULjs.validateDashboard; exports.validateManifest = _chunkQIBL3YULjs.validateManifest; exports.valueColor = _chunkQIBL3YULjs.valueColor; exports.valueText = _chunkQIBL3YULjs.valueText; exports.variableDependents = _chunkQIBL3YULjs.variableDependents; exports.variableInfo = _chunkQIBL3YULjs.variableInfo; exports.variableNameError = _chunkQIBL3YULjs.variableNameError; exports.variableOptions = _chunkQIBL3YULjs.variableOptions; exports.variableOrder = _chunkQIBL3YULjs.variableOrder; exports.variableReferences = _chunkQIBL3YULjs.variableReferences; exports.variableUses = _chunkQIBL3YULjs.variableUses; exports.variableWithCurrent = _chunkQIBL3YULjs.variableWithCurrent; exports.variableWithFlags = _chunkQIBL3YULjs.variableWithFlags; exports.variableWithQuery = _chunkQIBL3YULjs.variableWithQuery; exports.variableWithType = _chunkQIBL3YULjs.variableWithType; exports.visibleVariables = _chunkQIBL3YULjs.visibleVariables; exports.zoomRange = _chunkQIBL3YULjs.zoomRange;
4553
+
4554
+
4555
+
4556
+
4557
+
4558
+
4559
+
4560
+ exports.ALL = _chunkKROS6BLMjs.ALL; exports.AUTHORING_GUIDE = _chunkKROS6BLMjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkKROS6BLMjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkKROS6BLMjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkKROS6BLMjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkKROS6BLMjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkKROS6BLMjs.ConfigLoader; exports.DASHBOARD_DS = _chunkKROS6BLMjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkKROS6BLMjs.DEFAULT_GAZETTEER; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkKROS6BLMjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkKROS6BLMjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkKROS6BLMjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkKROS6BLMjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkKROS6BLMjs.GrafanaClient; exports.GrafanaDataSource = _chunkKROS6BLMjs.GrafanaDataSource; exports.GrafanaError = _chunkKROS6BLMjs.GrafanaError; exports.HttpConfigFiles = _chunkKROS6BLMjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkKROS6BLMjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkKROS6BLMjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkKROS6BLMjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkKROS6BLMjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkKROS6BLMjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkKROS6BLMjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkKROS6BLMjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkKROS6BLMjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkKROS6BLMjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkKROS6BLMjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkKROS6BLMjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkKROS6BLMjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkKROS6BLMjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkKROS6BLMjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkKROS6BLMjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkKROS6BLMjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkKROS6BLMjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkKROS6BLMjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkKROS6BLMjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkKROS6BLMjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkKROS6BLMjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkKROS6BLMjs.UNIT_CHOICES; exports.addTime = _chunkKROS6BLMjs.addTime; exports.appSchema = _chunkKROS6BLMjs.appSchema; exports.applyDashboardLink = _chunkKROS6BLMjs.applyDashboardLink; exports.applyJsonEdits = _chunkKROS6BLMjs.applyJsonEdits; exports.applyTemplate = _chunkKROS6BLMjs.applyTemplate; exports.applyTransformations = _chunkKROS6BLMjs.applyTransformations; exports.assembleBundle = _chunkKROS6BLMjs.assembleBundle; exports.assembleFromResponse = _chunkKROS6BLMjs.assembleFromResponse; exports.buildFrames = _chunkKROS6BLMjs.buildFrames; exports.bundleFromFiles = _chunkKROS6BLMjs.bundleFromFiles; exports.bundleRoot = _chunkKROS6BLMjs.bundleRoot; exports.calculateInterval = _chunkKROS6BLMjs.calculateInterval; exports.checkFiles = _chunkKROS6BLMjs.checkFiles; exports.cleanDashboard = _chunkKROS6BLMjs.cleanDashboard; exports.cleanPanelOptions = _chunkKROS6BLMjs.cleanPanelOptions; exports.collapseRow = _chunkKROS6BLMjs.collapseRow; exports.compactGrid = _chunkKROS6BLMjs.compactGrid; exports.copyPanels = _chunkKROS6BLMjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkKROS6BLMjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkKROS6BLMjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkKROS6BLMjs.dashboardSourceIds; exports.defaultFetchJson = _chunkKROS6BLMjs.defaultFetchJson; exports.describeRange = _chunkKROS6BLMjs.describeRange; exports.diffJson = _chunkKROS6BLMjs.diffJson; exports.documentIdFor = _chunkKROS6BLMjs.documentIdFor; exports.documentKind = _chunkKROS6BLMjs.documentKind; exports.documentUses = _chunkKROS6BLMjs.documentUses; exports.dropTarget = _chunkKROS6BLMjs.dropTarget; exports.duplicatePanel = _chunkKROS6BLMjs.duplicatePanel; exports.entriesSavedWith = _chunkKROS6BLMjs.entriesSavedWith; exports.entriesToItems = _chunkKROS6BLMjs.entriesToItems; exports.entryToInputValue = _chunkKROS6BLMjs.entryToInputValue; exports.expandRow = _chunkKROS6BLMjs.expandRow; exports.fetchBundle = _chunkKROS6BLMjs.fetchBundle; exports.fetchJsonWithToken = _chunkKROS6BLMjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkKROS6BLMjs.fieldDisplayName; exports.fieldMatches = _chunkKROS6BLMjs.fieldMatches; exports.fixTemplatePrompt = _chunkKROS6BLMjs.fixTemplatePrompt; exports.formatClock = _chunkKROS6BLMjs.formatClock; exports.formatDisplay = _chunkKROS6BLMjs.formatDisplay; exports.formatDuration = _chunkKROS6BLMjs.formatDuration; exports.formatJsonText = _chunkKROS6BLMjs.formatJsonText; exports.formatLocalDateTime = _chunkKROS6BLMjs.formatLocalDateTime; exports.formatValue = _chunkKROS6BLMjs.formatValue; exports.frameLength = _chunkKROS6BLMjs.frameLength; exports.framesToOptions = _chunkKROS6BLMjs.framesToOptions; exports.fromWire = _chunkKROS6BLMjs.fromWire; exports.getPath = _chunkKROS6BLMjs.getPath; exports.gridOffsetPx = _chunkKROS6BLMjs.gridOffsetPx; exports.gridUnitsToPx = _chunkKROS6BLMjs.gridUnitsToPx; exports.groupField = _chunkKROS6BLMjs.groupField; exports.groupFields = _chunkKROS6BLMjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkKROS6BLMjs.groupProblems; exports.groupToEntries = _chunkKROS6BLMjs.groupToEntries; exports.httpFetchJson = _chunkKROS6BLMjs.httpFetchJson; exports.initialVariableValues = _chunkKROS6BLMjs.initialVariableValues; exports.inputGroups = _chunkKROS6BLMjs.inputGroups; exports.inputPanels = _chunkKROS6BLMjs.inputPanels; exports.inputProblem = _chunkKROS6BLMjs.inputProblem; exports.insertPanel = _chunkKROS6BLMjs.insertPanel; exports.interpolate = _chunkKROS6BLMjs.interpolate; exports.interpolateDeep = _chunkKROS6BLMjs.interpolateDeep; exports.isBundleResponse = _chunkKROS6BLMjs.isBundleResponse; exports.isEditableVariableType = _chunkKROS6BLMjs.isEditableVariableType; exports.isEmptyItem = _chunkKROS6BLMjs.isEmptyItem; exports.isFormPanelType = _chunkKROS6BLMjs.isFormPanelType; exports.isInputGroup = _chunkKROS6BLMjs.isInputGroup; exports.isInputPanel = _chunkKROS6BLMjs.isInputPanel; exports.isInputType = _chunkKROS6BLMjs.isInputType; exports.isLocalDatasource = _chunkKROS6BLMjs.isLocalDatasource; exports.isReducer = _chunkKROS6BLMjs.isReducer; exports.isRow = _chunkKROS6BLMjs.isRow; exports.isSqlDatasource = _chunkKROS6BLMjs.isSqlDatasource; exports.jsonFromAnswer = _chunkKROS6BLMjs.jsonFromAnswer; exports.layoutCanvas = _chunkKROS6BLMjs.layoutCanvas; exports.layoutDashboard = _chunkKROS6BLMjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkKROS6BLMjs.lineColumn; exports.loadGazetteer = _chunkKROS6BLMjs.loadGazetteer; exports.locate = _chunkKROS6BLMjs.locate; exports.makeTemplate = _chunkKROS6BLMjs.makeTemplate; exports.manifestSchemaIssues = _chunkKROS6BLMjs.manifestSchemaIssues; exports.mappedResult = _chunkKROS6BLMjs.mappedResult; exports.mappingProblem = _chunkKROS6BLMjs.mappingProblem; exports.mappingRow = _chunkKROS6BLMjs.mappingRow; exports.mappingRows = _chunkKROS6BLMjs.mappingRows; exports.metricChanges = _chunkKROS6BLMjs.metricChanges; exports.movePanel = _chunkKROS6BLMjs.movePanel; exports.newDocument = _chunkKROS6BLMjs.newDocument; exports.newPanel = _chunkKROS6BLMjs.newPanel; exports.newSaveId = _chunkKROS6BLMjs.newSaveId; exports.newVariable = _chunkKROS6BLMjs.newVariable; exports.nextPanelId = _chunkKROS6BLMjs.nextPanelId; exports.normalizeRef = _chunkKROS6BLMjs.normalizeRef; exports.numberFields = _chunkKROS6BLMjs.numberFields; exports.optionValue = _chunkKROS6BLMjs.optionValue; exports.overrideProperties = _chunkKROS6BLMjs.overrideProperties; exports.panelEdits = _chunkKROS6BLMjs.panelEdits; exports.panelHasQueries = _chunkKROS6BLMjs.panelHasQueries; exports.panelKey = _chunkKROS6BLMjs.panelKey; exports.panelMetrics = _chunkKROS6BLMjs.panelMetrics; exports.panelOptions = _chunkKROS6BLMjs.panelOptions; exports.panelOverrides = _chunkKROS6BLMjs.panelOverrides; exports.panelSize = _chunkKROS6BLMjs.panelSize; exports.panelSpan = _chunkKROS6BLMjs.panelSpan; exports.parseClockDigits = _chunkKROS6BLMjs.parseClockDigits; exports.parseDashboardLink = _chunkKROS6BLMjs.parseDashboardLink; exports.parseDuration = _chunkKROS6BLMjs.parseDuration; exports.parseGazetteer = _chunkKROS6BLMjs.parseGazetteer; exports.parseJsonText = _chunkKROS6BLMjs.parseJsonText; exports.parseLocalDateTime = _chunkKROS6BLMjs.parseLocalDateTime; exports.parseRange = _chunkKROS6BLMjs.parseRange; exports.parseSnippet = _chunkKROS6BLMjs.parseSnippet; exports.parseTemplate = _chunkKROS6BLMjs.parseTemplate; exports.parseTime = _chunkKROS6BLMjs.parseTime; exports.pasteSnippet = _chunkKROS6BLMjs.pasteSnippet; exports.placePanel = _chunkKROS6BLMjs.placePanel; exports.plainInputPanels = _chunkKROS6BLMjs.plainInputPanels; exports.pointerToPath = _chunkKROS6BLMjs.pointerToPath; exports.prepareDashboard = _chunkKROS6BLMjs.prepareDashboard; exports.previewPaste = _chunkKROS6BLMjs.previewPaste; exports.queryPanel = _chunkKROS6BLMjs.queryPanel; exports.queryParam = _chunkKROS6BLMjs.queryParam; exports.readConfigFiles = _chunkKROS6BLMjs.readConfigFiles; exports.readTemplateAnswer = _chunkKROS6BLMjs.readTemplateAnswer; exports.readingOrder = _chunkKROS6BLMjs.readingOrder; exports.reduce = _chunkKROS6BLMjs.reduce; exports.refineOptions = _chunkKROS6BLMjs.refineOptions; exports.refreshedVariables = _chunkKROS6BLMjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkKROS6BLMjs.removeDocumentFromManifest; exports.removePanel = _chunkKROS6BLMjs.removePanel; exports.renameDocumentInManifest = _chunkKROS6BLMjs.renameDocumentInManifest; exports.renameMetrics = _chunkKROS6BLMjs.renameMetrics; exports.renameVariableInPanels = _chunkKROS6BLMjs.renameVariableInPanels; exports.repack = _chunkKROS6BLMjs.repack; exports.repeatOptions = _chunkKROS6BLMjs.repeatOptions; exports.resizePanel = _chunkKROS6BLMjs.resizePanel; exports.resolveColor = _chunkKROS6BLMjs.resolveColor; exports.resolveFieldConfig = _chunkKROS6BLMjs.resolveFieldConfig; exports.resolveLinks = _chunkKROS6BLMjs.resolveLinks; exports.resolveTimezone = _chunkKROS6BLMjs.resolveTimezone; exports.resolveUrl = _chunkKROS6BLMjs.resolveUrl; exports.resolveVariables = _chunkKROS6BLMjs.resolveVariables; exports.revalidateBundle = _chunkKROS6BLMjs.revalidateBundle; exports.rowsToMappings = _chunkKROS6BLMjs.rowsToMappings; exports.sameSave = _chunkKROS6BLMjs.sameSave; exports.sampleEntries = _chunkKROS6BLMjs.sampleEntries; exports.screenDocuments = _chunkKROS6BLMjs.screenDocuments; exports.screenOfType = _chunkKROS6BLMjs.screenOfType; exports.selectValue = _chunkKROS6BLMjs.selectValue; exports.seriesColor = _chunkKROS6BLMjs.seriesColor; exports.setHiddenOnPhones = _chunkKROS6BLMjs.setHiddenOnPhones; exports.setJsonValue = _chunkKROS6BLMjs.setJsonValue; exports.setOption = _chunkKROS6BLMjs.setOption; exports.setOptionValue = _chunkKROS6BLMjs.setOptionValue; exports.setOverrides = _chunkKROS6BLMjs.setOverrides; exports.settleLayout = _chunkKROS6BLMjs.settleLayout; exports.snapToGrid = _chunkKROS6BLMjs.snapToGrid; exports.splitPath = _chunkKROS6BLMjs.splitPath; exports.startOf = _chunkKROS6BLMjs.startOf; exports.stringifyCompact = _chunkKROS6BLMjs.stringifyCompact; exports.tabIdFor = _chunkKROS6BLMjs.tabIdFor; exports.templateNeeds = _chunkKROS6BLMjs.templateNeeds; exports.templatePrompt = _chunkKROS6BLMjs.templatePrompt; exports.textSuggestions = _chunkKROS6BLMjs.textSuggestions; exports.thresholdStep = _chunkKROS6BLMjs.thresholdStep; exports.timeExprError = _chunkKROS6BLMjs.timeExprError; exports.timeField = _chunkKROS6BLMjs.timeField; exports.toEntries = _chunkKROS6BLMjs.toEntries; exports.toMillis = _chunkKROS6BLMjs.toMillis; exports.toSeries = _chunkKROS6BLMjs.toSeries; exports.toXYSeries = _chunkKROS6BLMjs.toXYSeries; exports.uniqueNames = _chunkKROS6BLMjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkKROS6BLMjs.validateBundle; exports.validateDashboard = _chunkKROS6BLMjs.validateDashboard; exports.validateManifest = _chunkKROS6BLMjs.validateManifest; exports.valueColor = _chunkKROS6BLMjs.valueColor; exports.valueText = _chunkKROS6BLMjs.valueText; exports.variableDependents = _chunkKROS6BLMjs.variableDependents; exports.variableInfo = _chunkKROS6BLMjs.variableInfo; exports.variableNameError = _chunkKROS6BLMjs.variableNameError; exports.variableOptions = _chunkKROS6BLMjs.variableOptions; exports.variableOrder = _chunkKROS6BLMjs.variableOrder; exports.variableReferences = _chunkKROS6BLMjs.variableReferences; exports.variableUses = _chunkKROS6BLMjs.variableUses; exports.variableWithCurrent = _chunkKROS6BLMjs.variableWithCurrent; exports.variableWithFlags = _chunkKROS6BLMjs.variableWithFlags; exports.variableWithQuery = _chunkKROS6BLMjs.variableWithQuery; exports.variableWithType = _chunkKROS6BLMjs.variableWithType; exports.visibleVariables = _chunkKROS6BLMjs.visibleVariables; exports.zoomRange = _chunkKROS6BLMjs.zoomRange;