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