@devtable/dashboard 8.41.1 → 8.41.2

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.
@@ -1,13 +1,13 @@
1
1
  var Cw = Object.defineProperty;
2
2
  var Ew = (e, t, n) => t in e ? Cw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Ie = (e, t, n) => (Ew(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { Box as xe, Text as K, Button as ie, Checkbox as Lt, Group as F, Tooltip as Xt, MultiSelect as Ma, Select as ve, TextInput as fe, createStyles as Oa, Stack as W, Badge as As, CloseButton as kw, Modal as tn, ActionIcon as Be, Menu as Tr, Divider as pe, Switch as An, NumberInput as ht, useMantineTheme as im, ColorInput as ju, ColorSwatch as Hc, Slider as Tw, Overlay as Lo, Tabs as I, Center as bi, CheckIcon as Mw, MANTINE_SIZES as Ow, SimpleGrid as ti, SegmentedControl as Rw, Textarea as Dw, Collapse as Ku, Table as zo, Accordion as xo, Popover as Xl, LoadingOverlay as Ra, Flex as Da, Paper as Wu, Code as Bf, Alert as Aw, Header as $w, ThemeIcon as Ql, HoverCard as Zl, List as jf, UnstyledButton as Pw, Navbar as Nr, JsonInput as am, Radio as Kf, Skeleton as Wf, NavLink as Bc, Anchor as Gf, AppShell as sm } from "@mantine/core";
5
- import { useModals as go, ModalsProvider as lm } from "@mantine/modals";
4
+ import { Box as xe, Text as K, Button as ie, Checkbox as Lt, Group as F, Tooltip as Xt, MultiSelect as Ma, Select as ve, TextInput as fe, createStyles as Oa, Stack as W, Badge as As, CloseButton as kw, Modal as tn, ActionIcon as Be, Menu as Tr, Divider as pe, Switch as An, NumberInput as ht, useMantineTheme as im, ColorInput as ju, ColorSwatch as Hc, Slider as Tw, Overlay as Lo, Tabs as I, Center as bi, CheckIcon as Mw, MANTINE_SIZES as Ow, SimpleGrid as ti, SegmentedControl as Rw, Textarea as Dw, Collapse as Ku, Table as zo, Accordion as bo, Popover as Xl, LoadingOverlay as Ra, Flex as Da, Paper as Wu, Code as Bf, Alert as Aw, Header as $w, ThemeIcon as Ql, HoverCard as Zl, List as jf, UnstyledButton as Pw, Navbar as Nr, JsonInput as am, Radio as Kf, Skeleton as Wf, NavLink as Bc, Anchor as Gf, AppShell as sm } from "@mantine/core";
5
+ import { useModals as po, ModalsProvider as lm } from "@mantine/modals";
6
6
  import { useCreation as sr, usePrevious as Nw, useBoolean as Vn, useLatest as qf, useRequest as Aa, useAsyncEffect as $a } from "ahooks";
7
7
  import { observer as J } from "mobx-react-lite";
8
8
  import * as C from "react";
9
- import ee, { useEffect as ue, createContext as Vo, useMemo as Y, forwardRef as Bt, createElement as mo, useRef as Ee, useState as ze, useCallback as dt, useImperativeHandle as Iw, useLayoutEffect as Lw, useContext as wn, useDebugValue as zw, memo as Vt } from "react";
10
- import q, { template as Gu, cloneDeepWith as Vw, get as vt, isFunction as Fw, omit as Ao, values as cm, unset as Hw, isObject as um, set as qu, orderBy as Bw, last as dm, defaults as en, minBy as jw, maxBy as Kw, cloneDeep as vn, isEqual as Ht, defaultsDeep as Qt, keyBy as fm, merge as Ww, isEmpty as Uu, isNumber as Gw, findLastIndex as qw, isString as hm, range as Uw, throttle as Yw, pick as pm } from "lodash";
9
+ import ee, { useEffect as ue, createContext as Vo, useMemo as Y, forwardRef as Bt, createElement as go, useRef as Ee, useState as ze, useCallback as dt, useImperativeHandle as Iw, useLayoutEffect as Lw, useContext as wn, useDebugValue as zw, memo as Vt } from "react";
10
+ import q, { template as Gu, cloneDeepWith as Vw, get as vt, isFunction as Fw, omit as Do, values as cm, unset as Hw, isObject as um, set as qu, orderBy as Bw, last as dm, defaults as en, minBy as jw, maxBy as Kw, cloneDeep as vn, isEqual as Ht, defaultsDeep as Qt, keyBy as fm, merge as Ww, isEmpty as Uu, isNumber as Gw, findLastIndex as qw, isString as hm, range as Uw, throttle as Yw, pick as pm } from "lodash";
11
11
  import { useForm as cn, useWatch as Xw, Controller as D, useFieldArray as hn } from "react-hook-form";
12
12
  import { Link as gm, RichTextEditor as mt } from "@mantine/tiptap";
13
13
  import { Mark as Pa, mergeAttributes as Na, getMarkAttributes as Qw, Extension as Yu, markInputRule as Zw, markPasteRule as Jw } from "@tiptap/core";
@@ -30,7 +30,7 @@ import { CanvasRenderer as Wn } from "echarts/renderers";
30
30
  import Gn from "echarts-for-react/lib/core";
31
31
  import zt from "numbro";
32
32
  import { BoxplotChart as p_, BarChart as xi, LineChart as wi, ScatterChart as gl, FunnelChart as g_, HeatmapChart as Cm, PieChart as m_, RadarChart as v_, SunburstChart as y_ } from "echarts/charts";
33
- import { useElementSize as ua, randomId as lo, useClipboard as b_, useInputState as Em, useDisclosure as km } from "@mantine/hooks";
33
+ import { useElementSize as ua, randomId as Ao, useClipboard as b_, useInputState as Em, useDisclosure as km } from "@mantine/hooks";
34
34
  import { showNotification as ml } from "@mantine/notifications";
35
35
  import * as x_ from "d3-array";
36
36
  import { quantile as Cs } from "d3-array";
@@ -39,9 +39,9 @@ import { transform as Zu } from "echarts-stat";
39
39
  import { Prism as ci } from "@mantine/prism";
40
40
  import * as ro from "d3-regression";
41
41
  import { useVirtual as w_ } from "react-virtual";
42
- import Mo from "axios";
42
+ import To from "axios";
43
43
  import Tm from "crypto-js";
44
- import { types as R, getParent as vo, getRoot as Tn, cast as _i, addDisposer as da, addMiddleware as __, getType as S_, flow as Ji, toGenerator as ea, detach as C_, clone as E_, getSnapshot as pr, applySnapshot as Eo, getParentOfType as Yf, castToSnapshot as Mm } from "mobx-state-tree";
44
+ import { types as R, getParent as mo, getRoot as Tn, cast as _i, addDisposer as da, addMiddleware as __, getType as S_, flow as Ji, toGenerator as ea, detach as C_, clone as E_, getSnapshot as pr, applySnapshot as Co, getParentOfType as Yf, castToSnapshot as Mm } from "mobx-state-tree";
45
45
  import k_ from "jszip";
46
46
  function Om(e, t) {
47
47
  ue(() => {
@@ -988,7 +988,7 @@ function vS(e) {
988
988
  return C.createElement("svg", _t({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-playlist-add", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: a, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, l), C.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), C.createElement("path", { d: "M19 8h-14" }), C.createElement("path", { d: "M5 12h9" }), C.createElement("path", { d: "M11 16h-6" }), C.createElement("path", { d: "M15 16h6" }), C.createElement("path", { d: "M18 13v6" }));
989
989
  }
990
990
  var yS = ["size", "color", "stroke"];
991
- function yo(e) {
991
+ function vo(e) {
992
992
  var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, i = e.stroke, a = i === void 0 ? 2 : i, l = Rt(e, yS);
993
993
  return C.createElement("svg", _t({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-plus", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: a, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, l), C.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), C.createElement("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), C.createElement("line", { x1: 5, y1: 12, x2: 19, y2: 12 }));
994
994
  }
@@ -2743,10 +2743,10 @@ function ta(e, t) {
2743
2743
  }
2744
2744
  return n;
2745
2745
  }
2746
- function co(e) {
2746
+ function lo(e) {
2747
2747
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [];
2748
2748
  return ee.Children.forEach(e, function(r) {
2749
- r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(co(r)) : id.exports.isFragment(r) && r.props ? n = n.concat(co(r.props.children, t)) : n.push(r));
2749
+ r == null && !t.keepEmpty || (Array.isArray(r) ? n = n.concat(lo(r)) : id.exports.isFragment(r) && r.props ? n = n.concat(lo(r.props.children, t)) : n.push(r));
2750
2750
  }), n;
2751
2751
  }
2752
2752
  function fi(e) {
@@ -3234,10 +3234,10 @@ function JC(e) {
3234
3234
  }
3235
3235
  var e1 = "rc-observer-key";
3236
3236
  function wl(e) {
3237
- var t = e.children, n = typeof t == "function" ? [t] : co(t);
3237
+ var t = e.children, n = typeof t == "function" ? [t] : lo(t);
3238
3238
  return process.env.NODE_ENV !== "production" && (n.length > 1 ? $s(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && $s(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(r, o) {
3239
3239
  var i = (r == null ? void 0 : r.key) || "".concat(e1, "-").concat(o);
3240
- return /* @__PURE__ */ mo(JC, {
3240
+ return /* @__PURE__ */ go(JC, {
3241
3241
  ...e,
3242
3242
  key: i
3243
3243
  }, r);
@@ -3443,7 +3443,7 @@ function u1(e, t) {
3443
3443
  }, Se);
3444
3444
  } : function(le, ye) {
3445
3445
  var Se = bt(le, ye);
3446
- return /* @__PURE__ */ mo(na, {
3446
+ return /* @__PURE__ */ go(na, {
3447
3447
  ...Dt,
3448
3448
  order: ye,
3449
3449
  key: Se,
@@ -3990,20 +3990,20 @@ function A1(e, t) {
3990
3990
  }
3991
3991
  return n;
3992
3992
  }
3993
- function uo(e) {
3994
- return uo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3993
+ function co(e) {
3994
+ return co = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3995
3995
  return typeof t;
3996
3996
  } : function(t) {
3997
3997
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3998
- }, uo(e);
3998
+ }, co(e);
3999
3999
  }
4000
4000
  function $1(e, t) {
4001
- if (uo(e) !== "object" || e === null)
4001
+ if (co(e) !== "object" || e === null)
4002
4002
  return e;
4003
4003
  var n = e[Symbol.toPrimitive];
4004
4004
  if (n !== void 0) {
4005
4005
  var r = n.call(e, t || "default");
4006
- if (uo(r) !== "object")
4006
+ if (co(r) !== "object")
4007
4007
  return r;
4008
4008
  throw new TypeError("@@toPrimitive must return a primitive value.");
4009
4009
  }
@@ -4011,7 +4011,7 @@ function $1(e, t) {
4011
4011
  }
4012
4012
  function Tv(e) {
4013
4013
  var t = $1(e, "string");
4014
- return uo(t) === "symbol" ? t : String(t);
4014
+ return co(t) === "symbol" ? t : String(t);
4015
4015
  }
4016
4016
  function qn(e, t, n) {
4017
4017
  return t = Tv(t), t in e ? Object.defineProperty(e, t, {
@@ -4129,7 +4129,7 @@ var Rv = Ov("animationend"), Dv = Ov("transitionend"), H1 = !!(Rv && Dv), Sh = R
4129
4129
  function Eh(e, t) {
4130
4130
  if (!e)
4131
4131
  return null;
4132
- if (uo(e) === "object") {
4132
+ if (co(e) === "object") {
4133
4133
  var n = t.replace(/-\w/g, function(r) {
4134
4134
  return r[1].toUpperCase();
4135
4135
  });
@@ -4322,7 +4322,7 @@ function Q1(e) {
4322
4322
  return e;
4323
4323
  }
4324
4324
  function Z1(e, t) {
4325
- if (t && (uo(t) === "object" || typeof t == "function"))
4325
+ if (t && (co(t) === "object" || typeof t == "function"))
4326
4326
  return t;
4327
4327
  if (t !== void 0)
4328
4328
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4355,7 +4355,7 @@ var eE = /* @__PURE__ */ function(e) {
4355
4355
  }(C.Component);
4356
4356
  function tE(e) {
4357
4357
  var t = e;
4358
- uo(e) === "object" && (t = e.transitionSupport);
4358
+ co(e) === "object" && (t = e.transitionSupport);
4359
4359
  function n(o) {
4360
4360
  return !!(o.motionName && t);
4361
4361
  }
@@ -4672,12 +4672,12 @@ function vE(e, t, n) {
4672
4672
  var r = n, o = "", i = Hv(e);
4673
4673
  return r = r || i.defaultView.getComputedStyle(e, null), r && (o = r.getPropertyValue(t) || r[t]), o;
4674
4674
  }
4675
- var yE = new RegExp("^(".concat(gE, ")(?!px)[a-z%]+$"), "i"), bE = /^(top|right|bottom|left)$/, rc = "currentStyle", oc = "runtimeStyle", wo = "left", xE = "px";
4675
+ var yE = new RegExp("^(".concat(gE, ")(?!px)[a-z%]+$"), "i"), bE = /^(top|right|bottom|left)$/, rc = "currentStyle", oc = "runtimeStyle", xo = "left", xE = "px";
4676
4676
  function wE(e, t) {
4677
4677
  var n = e[rc] && e[rc][t];
4678
4678
  if (yE.test(n) && !bE.test(t)) {
4679
- var r = e.style, o = r[wo], i = e[oc][wo];
4680
- e[oc][wo] = e[rc][wo], r[wo] = t === "fontSize" ? "1em" : n || 0, n = r.pixelLeft + xE, r[wo] = o, e[oc][wo] = i;
4679
+ var r = e.style, o = r[xo], i = e[oc][xo];
4680
+ e[oc][xo] = e[rc][xo], r[xo] = t === "fontSize" ? "1em" : n || 0, n = r.pixelLeft + xE, r[xo] = o, e[oc][xo] = i;
4681
4681
  }
4682
4682
  return n === "" ? "auto" : n;
4683
4683
  }
@@ -5579,8 +5579,8 @@ function SR(e, t, n, r, o, i) {
5579
5579
  }
5580
5580
  return i.delete(e), i.delete(t), m;
5581
5581
  }
5582
- var CR = SR, ER = Ti, kR = Gr, TR = ER(kR, "DataView"), MR = TR, OR = Ti, RR = Gr, DR = OR(RR, "Promise"), AR = DR, $R = Ti, PR = Gr, NR = $R(PR, "Set"), IR = NR, LR = Ti, zR = Gr, VR = LR(zR, "WeakMap"), FR = VR, ru = MR, ou = yd, iu = AR, au = IR, su = FR, ny = kl, Di = Xv, op = "[object Map]", HR = "[object Object]", ip = "[object Promise]", ap = "[object Set]", sp = "[object WeakMap]", lp = "[object DataView]", BR = Di(ru), jR = Di(ou), KR = Di(iu), WR = Di(au), GR = Di(su), So = ny;
5583
- (ru && So(new ru(new ArrayBuffer(1))) != lp || ou && So(new ou()) != op || iu && So(iu.resolve()) != ip || au && So(new au()) != ap || su && So(new su()) != sp) && (So = function(e) {
5582
+ var CR = SR, ER = Ti, kR = Gr, TR = ER(kR, "DataView"), MR = TR, OR = Ti, RR = Gr, DR = OR(RR, "Promise"), AR = DR, $R = Ti, PR = Gr, NR = $R(PR, "Set"), IR = NR, LR = Ti, zR = Gr, VR = LR(zR, "WeakMap"), FR = VR, ru = MR, ou = yd, iu = AR, au = IR, su = FR, ny = kl, Di = Xv, op = "[object Map]", HR = "[object Object]", ip = "[object Promise]", ap = "[object Set]", sp = "[object WeakMap]", lp = "[object DataView]", BR = Di(ru), jR = Di(ou), KR = Di(iu), WR = Di(au), GR = Di(su), _o = ny;
5583
+ (ru && _o(new ru(new ArrayBuffer(1))) != lp || ou && _o(new ou()) != op || iu && _o(iu.resolve()) != ip || au && _o(new au()) != ap || su && _o(new su()) != sp) && (_o = function(e) {
5584
5584
  var t = ny(e), n = t == HR ? e.constructor : void 0, r = n ? Di(n) : "";
5585
5585
  if (r)
5586
5586
  switch (r) {
@@ -5597,7 +5597,7 @@ var CR = SR, ER = Ti, kR = Gr, TR = ER(kR, "DataView"), MR = TR, OR = Ti, RR = G
5597
5597
  }
5598
5598
  return t;
5599
5599
  });
5600
- var qR = So, lc = k2, UR = Zv, YR = vM, XR = CR, cp = qR, up = bd, dp = js.exports, QR = ty, ZR = 1, fp = "[object Arguments]", hp = "[object Array]", ss = "[object Object]", JR = Object.prototype, pp = JR.hasOwnProperty;
5600
+ var qR = _o, lc = k2, UR = Zv, YR = vM, XR = CR, cp = qR, up = bd, dp = js.exports, QR = ty, ZR = 1, fp = "[object Arguments]", hp = "[object Array]", ss = "[object Object]", JR = Object.prototype, pp = JR.hasOwnProperty;
5601
5601
  function eD(e, t, n, r, o, i) {
5602
5602
  var a = up(e), l = up(t), c = a ? hp : cp(e), u = l ? hp : cp(t);
5603
5603
  c = c == fp ? ss : c, u = u == fp ? ss : u;
@@ -7102,7 +7102,7 @@ function PD(e) {
7102
7102
  }
7103
7103
  function wd(e) {
7104
7104
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
7105
- return co(e).map(function(n, r) {
7105
+ return lo(e).map(function(n, r) {
7106
7106
  if (!/* @__PURE__ */ C.isValidElement(n) || !n.type)
7107
7107
  return null;
7108
7108
  var o = n, i = o.type.isSelectOptGroup, a = o.key, l = o.props, c = l.children, u = Ci(l, $D);
@@ -7158,20 +7158,20 @@ function hy(e, t) {
7158
7158
  delete n[r];
7159
7159
  }), n;
7160
7160
  }
7161
- function fo(e) {
7162
- return fo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
7161
+ function uo(e) {
7162
+ return uo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
7163
7163
  return typeof t;
7164
7164
  } : function(t) {
7165
7165
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
7166
- }, fo(e);
7166
+ }, uo(e);
7167
7167
  }
7168
7168
  function ID(e, t) {
7169
- if (fo(e) !== "object" || e === null)
7169
+ if (uo(e) !== "object" || e === null)
7170
7170
  return e;
7171
7171
  var n = e[Symbol.toPrimitive];
7172
7172
  if (n !== void 0) {
7173
7173
  var r = n.call(e, t || "default");
7174
- if (fo(r) !== "object")
7174
+ if (uo(r) !== "object")
7175
7175
  return r;
7176
7176
  throw new TypeError("@@toPrimitive must return a primitive value.");
7177
7177
  }
@@ -7179,7 +7179,7 @@ function ID(e, t) {
7179
7179
  }
7180
7180
  function py(e) {
7181
7181
  var t = ID(e, "string");
7182
- return fo(t) === "symbol" ? t : String(t);
7182
+ return uo(t) === "symbol" ? t : String(t);
7183
7183
  }
7184
7184
  function va(e, t, n) {
7185
7185
  return t = py(t), t in e ? Object.defineProperty(e, t, {
@@ -7371,7 +7371,7 @@ function WD(e) {
7371
7371
  return e;
7372
7372
  }
7373
7373
  function GD(e, t) {
7374
- if (t && (fo(t) === "object" || typeof t == "function"))
7374
+ if (t && (uo(t) === "object" || typeof t == "function"))
7375
7375
  return t;
7376
7376
  if (t !== void 0)
7377
7377
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -7585,7 +7585,7 @@ function eA(e, t, n, r, o, i, a, l) {
7585
7585
  }
7586
7586
  if (ln.cancel(c.current), typeof u == "number")
7587
7587
  a(u);
7588
- else if (u && fo(u) === "object") {
7588
+ else if (u && uo(u) === "object") {
7589
7589
  var d, h = u.align;
7590
7590
  "index" in u ? d = u.index : d = t.findIndex(function(m) {
7591
7591
  return o(m) === u.key;
@@ -7654,7 +7654,7 @@ function nA(e, t, n) {
7654
7654
  (h == null ? void 0 : h.index) !== void 0 && (n == null || n(h.index), d(e[h.index])), a(e);
7655
7655
  }, [e]), [u];
7656
7656
  }
7657
- var rA = (typeof navigator > "u" ? "undefined" : fo(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
7657
+ var rA = (typeof navigator > "u" ? "undefined" : uo(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
7658
7658
  const yy = function(e, t) {
7659
7659
  var n = Ee(!1), r = Ee(null);
7660
7660
  function o() {
@@ -7967,7 +7967,7 @@ var hA = function(t, n) {
7967
7967
  if (!me)
7968
7968
  return null;
7969
7969
  var ge = me.data || {}, he = ge.value, de = me.group, Oe = di(ge, !0), Te = oe(me);
7970
- return me ? /* @__PURE__ */ mo("div", {
7970
+ return me ? /* @__PURE__ */ go("div", {
7971
7971
  "aria-label": typeof Te == "string" && !de ? Te : null,
7972
7972
  ...Oe,
7973
7973
  key: te,
@@ -8058,14 +8058,14 @@ function pA(e) {
8058
8058
  }
8059
8059
  if (r) {
8060
8060
  var S = null;
8061
- co(r).some(function(k) {
8061
+ lo(r).some(function(k) {
8062
8062
  if (!/* @__PURE__ */ C.isValidElement(k) || !k.type)
8063
8063
  return !1;
8064
8064
  var O = k, L = O.type;
8065
8065
  if (L.isSelectOption)
8066
8066
  return !1;
8067
8067
  if (L.isSelectOptGroup) {
8068
- var H = co(k.props.children).every(function(A) {
8068
+ var H = lo(k.props.children).every(function(A) {
8069
8069
  return !/* @__PURE__ */ C.isValidElement(A) || !k.type || A.type.isSelectOption ? !0 : (S = A.type, !1);
8070
8070
  });
8071
8071
  return !H;
@@ -8491,7 +8491,7 @@ function EA() {
8491
8491
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
8492
8492
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
8493
8493
  }
8494
- function Oo(e) {
8494
+ function Mo(e) {
8495
8495
  return SA(e) || CA(e) || Ey(e) || EA();
8496
8496
  }
8497
8497
  function ky(e, t) {
@@ -8632,7 +8632,7 @@ function AA(e, t) {
8632
8632
  }
8633
8633
  function $A(e) {
8634
8634
  function t(n) {
8635
- var r = co(n);
8635
+ var r = lo(n);
8636
8636
  return r.map(function(o) {
8637
8637
  if (!zA(o))
8638
8638
  return yt(!o, "Tree/TreeNode can only accept TreeNode as children."), null;
@@ -8658,15 +8658,15 @@ function dc(e, t, n) {
8658
8658
  break;
8659
8659
  }
8660
8660
  }
8661
- var _ = xn(xn({}, hy(f, [].concat(Oo(o), [i, a]))), {}, {
8661
+ var _ = xn(xn({}, hy(f, [].concat(Mo(o), [i, a]))), {}, {
8662
8662
  title: b,
8663
8663
  key: m,
8664
8664
  parent: h,
8665
8665
  pos: g,
8666
8666
  children: null,
8667
8667
  data: f,
8668
- isStart: [].concat(Oo(h ? h.isStart : []), [p === 0]),
8669
- isEnd: [].concat(Oo(h ? h.isEnd : []), [p === d.length - 1])
8668
+ isStart: [].concat(Mo(h ? h.isStart : []), [p === 0]),
8669
+ isEnd: [].concat(Mo(h ? h.isEnd : []), [p === d.length - 1])
8670
8670
  });
8671
8671
  return c.push(_), t === !0 || l.has(m) ? _.children = u(f[a] || [], _) : _.children = [], _;
8672
8672
  });
@@ -8687,7 +8687,7 @@ function PA(e, t, n) {
8687
8687
  return ja(m[u], b);
8688
8688
  };
8689
8689
  function p(g, m, b, y) {
8690
- var w = g ? g[h] : e, _ = g ? Dy(b.pos, m) : "0", x = g ? [].concat(Oo(y), [g]) : [];
8690
+ var w = g ? g[h] : e, _ = g ? Dy(b.pos, m) : "0", x = g ? [].concat(Mo(y), [g]) : [];
8691
8691
  if (g) {
8692
8692
  var S = f(g, _), k = {
8693
8693
  node: g,
@@ -9132,7 +9132,7 @@ function Ip(e, t) {
9132
9132
  }
9133
9133
  return (e || []).forEach(function(o) {
9134
9134
  r(o);
9135
- }), Oo(n);
9135
+ }), Mo(n);
9136
9136
  }
9137
9137
  function Ay(e) {
9138
9138
  if (e == null)
@@ -9202,7 +9202,7 @@ var WA = ["className", "style", "motion", "motionNodes", "motionType", "onMotion
9202
9202
  var A = Gs({}, (Ay(H.data), H.data)), T = H.title, P = H.key, V = H.isStart, E = H.isEnd;
9203
9203
  delete A.children;
9204
9204
  var N = oa(P, h);
9205
- return /* @__PURE__ */ mo(pi, {
9205
+ return /* @__PURE__ */ go(pi, {
9206
9206
  ...A,
9207
9207
  ...N,
9208
9208
  title: T,
@@ -9526,7 +9526,7 @@ var ZA = 10, Ed = /* @__PURE__ */ function(e) {
9526
9526
  clearTimeout(r.delayedDragEnterLogic[M]);
9527
9527
  }), L.props.eventKey !== c.props.eventKey && (l.persist(), r.delayedDragEnterLogic[S] = window.setTimeout(function() {
9528
9528
  if (r.state.draggingNodeKey !== null) {
9529
- var M = Oo(d), B = h[c.props.eventKey];
9529
+ var M = Mo(d), B = h[c.props.eventKey];
9530
9530
  B && (B.children || []).length && (M = Yr(d, c.props.eventKey)), "expandedKeys" in r.props || r.setExpandedKeys(M), y == null || y(M, {
9531
9531
  node: on(c.props),
9532
9532
  expanded: !0,
@@ -9674,7 +9674,7 @@ var ZA = 10, Ed = /* @__PURE__ */ function(e) {
9674
9674
  checkedKeys: x
9675
9675
  });
9676
9676
  } else {
9677
- var k = ri([].concat(Oo(f), [y]), !0, h), O = k.checkedKeys, L = k.halfCheckedKeys;
9677
+ var k = ri([].concat(Mo(f), [y]), !0, h), O = k.checkedKeys, L = k.halfCheckedKeys;
9678
9678
  if (!u) {
9679
9679
  var H = new Set(O);
9680
9680
  H.delete(y);
@@ -10269,7 +10269,7 @@ function Bp(e, t, n, r) {
10269
10269
  }
10270
10270
  var o$ = ["children", "value"];
10271
10271
  function Hy(e) {
10272
- return co(e).map(function(t) {
10272
+ return lo(e).map(function(t) {
10273
10273
  if (!/* @__PURE__ */ C.isValidElement(t) || !t.type)
10274
10274
  return null;
10275
10275
  var n = t, r = n.key, o = n.props, i = o.children, a = o.value, l = Jm(o, o$), c = Zn({
@@ -11309,7 +11309,7 @@ const Wy = J(() => {
11309
11309
  }), E$ = J(({
11310
11310
  view: e
11311
11311
  }) => {
11312
- const t = He(), n = go(), {
11312
+ const t = He(), n = po(), {
11313
11313
  panel: r
11314
11314
  } = On(), {
11315
11315
  id: o,
@@ -11444,7 +11444,7 @@ class Jo {
11444
11444
  async deleteItem(t) {
11445
11445
  t === null && await this.root.deleteItem(this.path);
11446
11446
  const n = await this.root.getItem(this.path) || {};
11447
- await this.root.setItem(this.path, Ao(n, t));
11447
+ await this.root.setItem(this.path, Do(n, t));
11448
11448
  }
11449
11449
  async getItem(t) {
11450
11450
  const n = await this.root.getItem(this.path);
@@ -11614,7 +11614,7 @@ const O$ = (e) => {
11614
11614
  return /* @__PURE__ */ s(c, {
11615
11615
  context: l,
11616
11616
  instance: a,
11617
- ...Ao(e, ["panel", "vizManager", "data"])
11617
+ ...Do(e, ["panel", "vizManager", "data"])
11618
11618
  });
11619
11619
  }, R$ = (e) => {
11620
11620
  const {
@@ -11630,7 +11630,7 @@ const O$ = (e) => {
11630
11630
  return /* @__PURE__ */ s(u, {
11631
11631
  context: c,
11632
11632
  instance: l,
11633
- ...Ao(e, ["panel", "vizManager", "data", "panelInfoEditor"])
11633
+ ...Do(e, ["panel", "vizManager", "data", "panelInfoEditor"])
11634
11634
  });
11635
11635
  }, Uy = (e, t) => {
11636
11636
  const n = ca.bezier(e), r = ca.bezier(t);
@@ -11678,7 +11678,7 @@ const O$ = (e) => {
11678
11678
  getColor: Dl(["#fff7f1", "darkorange", "#b60000"]),
11679
11679
  name: "orange",
11680
11680
  category: "sequential"
11681
- }, Yy = "@devtable/dashboard", Od = "8.41.1", Xy = "Apache-2.0", Qy = {
11681
+ }, Yy = "@devtable/dashboard", Od = "8.41.2", Xy = "Apache-2.0", Qy = {
11682
11682
  access: "public",
11683
11683
  registry: "https://registry.npmjs.org/"
11684
11684
  }, Zy = [
@@ -12531,7 +12531,7 @@ const X$ = [{
12531
12531
  ellipsis: "..."
12532
12532
  }
12533
12533
  };
12534
- function ho({ overflow: e, width: t }) {
12534
+ function fo({ overflow: e, width: t }) {
12535
12535
  const n = {
12536
12536
  truncate: "initial",
12537
12537
  break: "break-all",
@@ -12549,7 +12549,7 @@ function ho({ overflow: e, width: t }) {
12549
12549
  text-overflow: ${o};
12550
12550
  `;
12551
12551
  }
12552
- function bo(e) {
12552
+ function yo(e) {
12553
12553
  return {
12554
12554
  width: e.width,
12555
12555
  overflow: e.overflow,
@@ -13068,7 +13068,7 @@ const $d = (e, t) => (n) => Boolean(qa(n) && lP.test(n) && n.startsWith(e) || t
13068
13068
  [n]: parseFloat(a),
13069
13069
  alpha: l !== void 0 ? parseFloat(l) : 1
13070
13070
  };
13071
- }, ko = {
13071
+ }, Eo = {
13072
13072
  test: $d("hsl", "hue"),
13073
13073
  parse: pb("hue", "saturation", "lightness"),
13074
13074
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + aa.transform(ia(t)) + ", " + aa.transform(ia(n)) + ", " + ia(hb.transform(r)) + ")"
@@ -13091,9 +13091,9 @@ const yu = {
13091
13091
  parse: dP,
13092
13092
  transform: oo.transform
13093
13093
  }, Pl = {
13094
- test: (e) => oo.test(e) || yu.test(e) || ko.test(e),
13095
- parse: (e) => oo.test(e) ? oo.parse(e) : ko.test(e) ? ko.parse(e) : yu.parse(e),
13096
- transform: (e) => qa(e) ? e : e.hasOwnProperty("red") ? oo.transform(e) : ko.transform(e)
13094
+ test: (e) => oo.test(e) || yu.test(e) || Eo.test(e),
13095
+ parse: (e) => oo.test(e) ? oo.parse(e) : Eo.test(e) ? Eo.parse(e) : yu.parse(e),
13096
+ transform: (e) => qa(e) ? e : e.hasOwnProperty("red") ? oo.transform(e) : Eo.transform(e)
13097
13097
  }, gb = "${c}", mb = "${n}";
13098
13098
  function fP(e) {
13099
13099
  var t, n, r, o;
@@ -13148,11 +13148,11 @@ function Kp({ hue: e, saturation: t, lightness: n, alpha: r }) {
13148
13148
  const gP = (e, t, n) => {
13149
13149
  const r = e * e, o = t * t;
13150
13150
  return Math.sqrt(Math.max(0, n * (o - r) + r));
13151
- }, mP = [yu, oo, ko], Wp = (e) => mP.find((t) => t.test(e)), Gp = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, wb = (e, t) => {
13151
+ }, mP = [yu, oo, Eo], Wp = (e) => mP.find((t) => t.test(e)), Gp = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, wb = (e, t) => {
13152
13152
  let n = Wp(e), r = Wp(t);
13153
13153
  ba(!!n, Gp(e)), ba(!!r, Gp(t));
13154
13154
  let o = n.parse(e), i = r.parse(t);
13155
- n === ko && (o = Kp(o), n = oo), r === ko && (i = Kp(i), r = oo);
13155
+ n === Eo && (o = Kp(o), n = oo), r === Eo && (i = Kp(i), r = oo);
13156
13156
  const a = Object.assign({}, o);
13157
13157
  return (l) => {
13158
13158
  for (const c in a)
@@ -13384,7 +13384,7 @@ function AP({ config: e }) {
13384
13384
  function $P(e, t) {
13385
13385
  return `
13386
13386
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
13387
- <div style="${ho(e.x_axis.axisLabel.overflow.in_tooltip)}">${t[0]}</div>
13387
+ <div style="${fo(e.x_axis.axisLabel.overflow.in_tooltip)}">${t[0]}</div>
13388
13388
  </div>
13389
13389
  <table>
13390
13390
  <tbody>
@@ -13409,7 +13409,7 @@ const PP = (e) => (t) => {
13409
13409
  </tr>`);
13410
13410
  return `
13411
13411
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
13412
- <div style="${ho(e.x_axis.axisLabel.overflow.in_tooltip)}">${r.name}</div>
13412
+ <div style="${fo(e.x_axis.axisLabel.overflow.in_tooltip)}">${r.name}</div>
13413
13413
  </div>
13414
13414
  <table style="width: auto">
13415
13415
  <tbody>
@@ -13468,7 +13468,7 @@ function LP(e, t, n) {
13468
13468
  }));
13469
13469
  }
13470
13470
  function zP({ config: e, data: t, variables: n }) {
13471
- const { x_axis: r, y_axis: o, color: i, reference_lines: a } = e, l = q.groupBy(t, r.data_key), c = IP(l, o.data_key), u = c.map((h) => h.outliers).flat(), d = bo(r.axisLabel.overflow.on_axis);
13471
+ const { x_axis: r, y_axis: o, color: i, reference_lines: a } = e, l = q.groupBy(t, r.data_key), c = IP(l, o.data_key), u = c.map((h) => h.outliers).flat(), d = yo(r.axisLabel.overflow.on_axis);
13472
13472
  return {
13473
13473
  dataset: [
13474
13474
  {
@@ -14069,7 +14069,7 @@ function WP({
14069
14069
  });
14070
14070
  }
14071
14071
  function GP(e) {
14072
- return Ao(e, "variables");
14072
+ return Do(e, "variables");
14073
14073
  }
14074
14074
  function qP(e) {
14075
14075
  const {
@@ -14919,7 +14919,7 @@ function RN(e, t, n) {
14919
14919
  <td style="text-align: left; padding: 0 1em;">${p({ value: h })}</td>
14920
14920
  </tr>
14921
14921
  `;
14922
- }), l = ho(e.x_axis.axisLabel.overflow.in_tooltip), c = ON(i, e);
14922
+ }), l = fo(e.x_axis.axisLabel.overflow.in_tooltip), c = ON(i, e);
14923
14923
  return `
14924
14924
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
14925
14925
  <div style="${l}">${c}</div>
@@ -14959,7 +14959,7 @@ function AN(e, t) {
14959
14959
  }
14960
14960
  function $N(e, t, n) {
14961
14961
  var l;
14962
- const r = t.every((c) => !Number.isNaN(Number(c))), { overflow: o, ...i } = e.x_axis.axisLabel, a = bo(o.on_axis);
14962
+ const r = t.every((c) => !Number.isNaN(Number(c))), { overflow: o, ...i } = e.x_axis.axisLabel, a = yo(o.on_axis);
14963
14963
  return [
14964
14964
  {
14965
14965
  data: t,
@@ -16672,7 +16672,7 @@ function uI({
16672
16672
  })), c = () => {
16673
16673
  const h = {
16674
16674
  type: "bar",
16675
- name: lo(),
16675
+ name: Ao(),
16676
16676
  showSymbol: !1,
16677
16677
  symbolSize: Fd.static,
16678
16678
  y_axis_data_key: "value",
@@ -17224,8 +17224,8 @@ function vI({
17224
17224
  });
17225
17225
  }
17226
17226
  function yI(e) {
17227
- const t = vn(Ao(e, "variables"));
17228
- return t.stats = Ao(t.stats, "variables"), t;
17227
+ const t = vn(Do(e, "variables"));
17228
+ return t.stats = Do(t.stats, "variables"), t;
17229
17229
  }
17230
17230
  function bI(e) {
17231
17231
  const {
@@ -17552,7 +17552,7 @@ function II(e, t) {
17552
17552
  const { level_name_data_key: r, level_value_data_key: o, axisLabel: i, min: a, max: l, funnelAlign: c, orient: u, ...d } = n, h = t.map((p) => ({
17553
17553
  name: p[r],
17554
17554
  value: p[o]
17555
- })), f = bo(i.overflow.on_axis);
17555
+ })), f = yo(i.overflow.on_axis);
17556
17556
  return {
17557
17557
  type: "funnel",
17558
17558
  ...NI(n),
@@ -18072,7 +18072,7 @@ const KI = [{
18072
18072
  children: /* @__PURE__ */ s(Xt, {
18073
18073
  label: "TODO",
18074
18074
  children: /* @__PURE__ */ s(bi, {
18075
- children: /* @__PURE__ */ s(yo, {
18075
+ children: /* @__PURE__ */ s(vo, {
18076
18076
  size: 18,
18077
18077
  color: "#228be6"
18078
18078
  })
@@ -18272,14 +18272,14 @@ function aL({ conf: e, labelFormatters: t, valueFormatters: n, dataDict: r, para
18272
18272
  value: t.x_axis(l, a),
18273
18273
  style: {
18274
18274
  label: "",
18275
- value: ho(e.x_axis.axisLabel.overflow.in_tooltip)
18275
+ value: fo(e.x_axis.axisLabel.overflow.in_tooltip)
18276
18276
  }
18277
18277
  }, h = {
18278
18278
  label: e.y_axis.name ? e.y_axis.name : "Y Axis",
18279
18279
  value: t.y_axis(c, a),
18280
18280
  style: {
18281
18281
  label: "",
18282
- value: ho(e.y_axis.axisLabel.overflow.in_tooltip)
18282
+ value: fo(e.y_axis.axisLabel.overflow.in_tooltip)
18283
18283
  }
18284
18284
  }, f = {
18285
18285
  label: e.heat_block.name,
@@ -18345,7 +18345,7 @@ function lL(e) {
18345
18345
  }
18346
18346
  function cL(e, t, n) {
18347
18347
  var a;
18348
- const { overflow: r, rotate: o } = e.x_axis.axisLabel, i = bo(r.on_axis);
18348
+ const { overflow: r, rotate: o } = e.x_axis.axisLabel, i = yo(r.on_axis);
18349
18349
  return {
18350
18350
  id: "main-x-axis",
18351
18351
  type: "category",
@@ -18374,7 +18374,7 @@ function cL(e, t, n) {
18374
18374
  };
18375
18375
  }
18376
18376
  function uL(e, t, n) {
18377
- const { nameAlignment: r, data_key: o, ...i } = e.y_axis, { overflow: a, rotate: l } = e.y_axis.axisLabel, c = bo(a.on_axis);
18377
+ const { nameAlignment: r, data_key: o, ...i } = e.y_axis, { overflow: a, rotate: l } = e.y_axis.axisLabel, c = yo(a.on_axis);
18378
18378
  return {
18379
18379
  ...i,
18380
18380
  type: "category",
@@ -19437,7 +19437,7 @@ const IL = (e, t) => (n) => {
19437
19437
  <td style="text-align: left; padding: 0 1em;">${f(h)}</td>
19438
19438
  </tr>
19439
19439
  `;
19440
- }), i = ho(e.x_axis.axisLabel.overflow.in_tooltip), a = r[0].name;
19440
+ }), i = fo(e.x_axis.axisLabel.overflow.in_tooltip), a = r[0].name;
19441
19441
  return `
19442
19442
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
19443
19443
  <div style="${i}">${a}</div>
@@ -19456,7 +19456,7 @@ function LL(e, t) {
19456
19456
  };
19457
19457
  }
19458
19458
  function zL(e) {
19459
- const { name: t, axisLabel: n } = e.x_axis, r = bo(n.overflow.on_axis);
19459
+ const { name: t, axisLabel: n } = e.x_axis, r = yo(n.overflow.on_axis);
19460
19460
  return [
19461
19461
  {
19462
19462
  type: "category",
@@ -20758,7 +20758,7 @@ function wz({
20758
20758
  }, g)), /* @__PURE__ */ s(I.Tab, {
20759
20759
  onClick: c,
20760
20760
  value: "add",
20761
- children: /* @__PURE__ */ s(yo, {
20761
+ children: /* @__PURE__ */ s(vo, {
20762
20762
  size: 18,
20763
20763
  color: "#228be6"
20764
20764
  })
@@ -21469,14 +21469,14 @@ function Iz({
21469
21469
  size: 20
21470
21470
  })
21471
21471
  })]
21472
- }), /* @__PURE__ */ v(xo, {
21472
+ }), /* @__PURE__ */ v(bo, {
21473
21473
  multiple: !0,
21474
21474
  defaultValue: ["Axis", "Regression"],
21475
- children: [/* @__PURE__ */ v(xo.Item, {
21475
+ children: [/* @__PURE__ */ v(bo.Item, {
21476
21476
  value: "Axis",
21477
- children: [/* @__PURE__ */ s(xo.Control, {
21477
+ children: [/* @__PURE__ */ s(bo.Control, {
21478
21478
  children: "Axis"
21479
- }), /* @__PURE__ */ v(xo.Panel, {
21479
+ }), /* @__PURE__ */ v(bo.Panel, {
21480
21480
  children: [/* @__PURE__ */ v(F, {
21481
21481
  grow: !0,
21482
21482
  noWrap: !0,
@@ -21525,11 +21525,11 @@ function Iz({
21525
21525
  })
21526
21526
  })]
21527
21527
  })]
21528
- }), /* @__PURE__ */ v(xo.Item, {
21528
+ }), /* @__PURE__ */ v(bo.Item, {
21529
21529
  value: "Regression",
21530
- children: [/* @__PURE__ */ s(xo.Control, {
21530
+ children: [/* @__PURE__ */ s(bo.Control, {
21531
21531
  children: "Regression Line"
21532
- }), /* @__PURE__ */ s(xo.Panel, {
21532
+ }), /* @__PURE__ */ s(bo.Panel, {
21533
21533
  children: /* @__PURE__ */ s(Nz, {
21534
21534
  control: i,
21535
21535
  watch: l,
@@ -21982,7 +21982,7 @@ function Xz({ x_axis: e, scatter: t }, n, r, o) {
21982
21982
  label: {
21983
21983
  show: !!t.label_position,
21984
21984
  position: t.label_position,
21985
- ...bo(t.label_overflow.label),
21985
+ ...yo(t.label_overflow.label),
21986
21986
  formatter: ({ value: i }) => i[t.name_data_key]
21987
21987
  },
21988
21988
  type: "scatter",
@@ -22042,7 +22042,7 @@ function eV(e, t) {
22042
22042
  const o = (f = t[0]) != null ? f : t.default, i = Array.isArray(r) ? r : [r];
22043
22043
  if (i.length === 0)
22044
22044
  return "";
22045
- const a = Zz(i, e), l = ho(e.scatter.label_overflow.tooltip), c = i.map(
22045
+ const a = Zz(i, e), l = fo(e.scatter.label_overflow.tooltip), c = i.map(
22046
22046
  ({ value: p }) => `
22047
22047
  <th style="text-align: right; padding-right: 1em">
22048
22048
  <div style="${l}">${p[n.name_data_key]}</div>
@@ -24214,7 +24214,7 @@ function XV(e) {
24214
24214
  };
24215
24215
  }
24216
24216
  function QV(e) {
24217
- return Ao(e, ["variables"]);
24217
+ return Do(e, ["variables"]);
24218
24218
  }
24219
24219
  function ZV(e) {
24220
24220
  const t = vn(e), n = vt(t, "color.valueRange");
@@ -26314,14 +26314,14 @@ function Jp(e, t, n) {
26314
26314
  }
26315
26315
  return !1;
26316
26316
  }
26317
- const Su = /([0-9]+)/gm, qF = (e, t, n) => Yb(po(e.getValue(n)).toLowerCase(), po(t.getValue(n)).toLowerCase()), UF = (e, t, n) => Yb(po(e.getValue(n)), po(t.getValue(n))), YF = (e, t, n) => ef(po(e.getValue(n)).toLowerCase(), po(t.getValue(n)).toLowerCase()), XF = (e, t, n) => ef(po(e.getValue(n)), po(t.getValue(n))), QF = (e, t, n) => {
26317
+ const Su = /([0-9]+)/gm, qF = (e, t, n) => Yb(ho(e.getValue(n)).toLowerCase(), ho(t.getValue(n)).toLowerCase()), UF = (e, t, n) => Yb(ho(e.getValue(n)), ho(t.getValue(n))), YF = (e, t, n) => ef(ho(e.getValue(n)).toLowerCase(), ho(t.getValue(n)).toLowerCase()), XF = (e, t, n) => ef(ho(e.getValue(n)), ho(t.getValue(n))), QF = (e, t, n) => {
26318
26318
  const r = e.getValue(n), o = t.getValue(n);
26319
26319
  return r > o ? 1 : r < o ? -1 : 0;
26320
26320
  }, ZF = (e, t, n) => ef(e.getValue(n), t.getValue(n));
26321
26321
  function ef(e, t) {
26322
26322
  return e === t ? 0 : e > t ? 1 : -1;
26323
26323
  }
26324
- function po(e) {
26324
+ function ho(e) {
26325
26325
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
26326
26326
  }
26327
26327
  function Yb(e, t) {
@@ -27865,7 +27865,7 @@ const F4 = Bt((e, t) => {
27865
27865
  control: e,
27866
27866
  name: "columns"
27867
27867
  }), l = () => {
27868
- const u = lo();
27868
+ const u = Ao();
27869
27869
  o({
27870
27870
  id: u,
27871
27871
  label: u,
@@ -28040,7 +28040,7 @@ function U4({
28040
28040
  id: n,
28041
28041
  ...r
28042
28042
  }) => ({
28043
- id: n != null ? n : lo(),
28043
+ id: n != null ? n : Ao(),
28044
28044
  ...r
28045
28045
  }))
28046
28046
  };
@@ -28177,7 +28177,7 @@ class Q4 extends un {
28177
28177
  config: {
28178
28178
  ...o,
28179
28179
  columns: r.map(({ id: i, ...a }) => ({
28180
- id: i != null ? i : lo(),
28180
+ id: i != null ? i : Ao(),
28181
28181
  ...a
28182
28182
  }))
28183
28183
  }
@@ -28516,7 +28516,7 @@ async function a3(e, t, n, r = {}) {
28516
28516
  params: r.params,
28517
28517
  headers: o
28518
28518
  };
28519
- return i.data = r.string ? JSON.stringify(n) : n, Mo(i).then((a) => a.data).catch((a) => Promise.reject(a));
28519
+ return i.data = r.string ? JSON.stringify(n) : n, To(i).then((a) => a.data).catch((a) => Promise.reject(a));
28520
28520
  }
28521
28521
  const s3 = ({ conf: e, data: t }) => async () => {
28522
28522
  const { expertSystemURL: n, path: r, goal: o, question: i } = e;
@@ -29623,7 +29623,7 @@ function Q3(e, t, n) {
29623
29623
  <td style="text-align: left; padding: 0 1em;">${p({ value: h })}</td>
29624
29624
  </tr>
29625
29625
  `;
29626
- }), l = ho(e.y_axis.axisLabel.overflow.in_tooltip), c = X3(i, e);
29626
+ }), l = fo(e.y_axis.axisLabel.overflow.in_tooltip), c = X3(i, e);
29627
29627
  return `
29628
29628
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
29629
29629
  <div style="${l}">${c}</div>
@@ -29695,7 +29695,7 @@ function e5(e, t) {
29695
29695
  }
29696
29696
  function t5(e, t) {
29697
29697
  var a;
29698
- const n = t.every((l) => !Number.isNaN(Number(l))), { overflow: r, ...o } = e.y_axis.axisLabel, i = bo(r.on_axis);
29698
+ const n = t.every((l) => !Number.isNaN(Number(l))), { overflow: r, ...o } = e.y_axis.axisLabel, i = yo(r.on_axis);
29699
29699
  return [
29700
29700
  {
29701
29701
  data: t,
@@ -31527,7 +31527,7 @@ const Q5 = J(({
31527
31527
  instance: e.instance,
31528
31528
  variables: []
31529
31529
  };
31530
- return mo(e.operationSchema.configRender, t);
31530
+ return go(e.operationSchema.configRender, t);
31531
31531
  });
31532
31532
  function J5({
31533
31533
  model: e
@@ -31624,7 +31624,7 @@ const oH = J(({
31624
31624
  return /* @__PURE__ */ s(ie, {
31625
31625
  variant: "outline",
31626
31626
  onClick: t,
31627
- children: mo(n, r)
31627
+ children: go(n, r)
31628
31628
  });
31629
31629
  }), iH = J(({
31630
31630
  model: e
@@ -31650,7 +31650,7 @@ const oH = J(({
31650
31650
  instance: e.instance,
31651
31651
  sampleData: e.sampleData
31652
31652
  };
31653
- return mo(e.triggerSchema.configRender, t);
31653
+ return go(e.triggerSchema.configRender, t);
31654
31654
  }), sH = J((e) => {
31655
31655
  const [t, {
31656
31656
  setTrue: n,
@@ -31729,7 +31729,7 @@ const cH = J(({
31729
31729
  sampleData: i,
31730
31730
  variables: a
31731
31731
  } = e, l = lH(r, t), c = async () => {
31732
- const f = await r.triggerManager.createOrGetTrigger(lo(), r.triggerManager.getTriggerSchemaList()[0]), p = await r.operationManager.createOrGetOperation(lo(), r.operationManager.getOperationSchemaList()[0]);
31732
+ const f = await r.triggerManager.createOrGetTrigger(Ao(), r.triggerManager.getTriggerSchemaList()[0]), p = await r.operationManager.createOrGetOperation(Ao(), r.operationManager.getOperationSchemaList()[0]);
31733
31733
  await r.addInteraction(f, p), n((g) => g + 1);
31734
31734
  };
31735
31735
  async function u(f) {
@@ -32260,7 +32260,7 @@ const OH = J(({
32260
32260
  children: e,
32261
32261
  view: t
32262
32262
  }) => {
32263
- const n = go(), r = He(), o = Y(() => r.views.options.filter((c) => c.type === ft.Division), [t.id, r.views.options]), i = t.config, a = (c) => n.openConfirmModal({
32263
+ const n = po(), r = He(), o = Y(() => r.views.options.filter((c) => c.type === ft.Division), [t.id, r.views.options]), i = t.config, a = (c) => n.openConfirmModal({
32264
32264
  title: "Delete this tab?",
32265
32265
  labels: {
32266
32266
  confirm: "Confirm",
@@ -32687,7 +32687,7 @@ const vr = {
32687
32687
  headers: a,
32688
32688
  signal: t
32689
32689
  };
32690
- return ["POST", "PUT"].includes(e) && (l.data = o.string ? JSON.stringify(r) : r, l.data.authentication = this.getAuthentication(l.data)), Mo(l).then((c) => c.data).catch((c) => Promise.reject(c));
32690
+ return ["POST", "PUT"].includes(e) && (l.data = o.string ? JSON.stringify(r) : r, l.data.authentication = this.getAuthentication(l.data)), To(l).then((c) => c.data).catch((c) => Promise.reject(c));
32691
32691
  };
32692
32692
  }
32693
32693
  };
@@ -32776,7 +32776,7 @@ const GH = R.model("FilterConfigModel_DateRange", {
32776
32776
  })).actions((e) => ({
32777
32777
  setFilterValue(t) {
32778
32778
  try {
32779
- const n = vo(e);
32779
+ const n = mo(e);
32780
32780
  Tn(e).filters.setValueByKey(n.key, t);
32781
32781
  } catch (n) {
32782
32782
  console.error(n);
@@ -32889,7 +32889,7 @@ const GH = R.model("FilterConfigModel_DateRange", {
32889
32889
  e.min_width = t;
32890
32890
  },
32891
32891
  setDefaultSelection() {
32892
- const t = Tn(e).filters, n = vo(e).key;
32892
+ const t = Tn(e).filters, n = mo(e).key;
32893
32893
  t.setValueByKey(n, e.default_selection);
32894
32894
  }
32895
32895
  })).actions((e) => ({
@@ -33660,7 +33660,7 @@ const mB = R.model("QueryModel", {
33660
33660
  )
33661
33661
  ), e.state = "idle", e.error = null;
33662
33662
  } catch (n) {
33663
- if (!Mo.isCancel(n)) {
33663
+ if (!To.isCancel(n)) {
33664
33664
  e.data.length = 0;
33665
33665
  const r = vt(n, "message", "unkown error");
33666
33666
  e.error = vt(n, "response.data.detail.message", r), e.state = "error";
@@ -33687,7 +33687,7 @@ const mB = R.model("QueryModel", {
33687
33687
  )
33688
33688
  ), e.state = "idle", e.error = null;
33689
33689
  } catch (n) {
33690
- if (console.error(n), !Mo.isCancel(n)) {
33690
+ if (console.error(n), !To.isCancel(n)) {
33691
33691
  e.data.length = 0;
33692
33692
  const r = vt(n, "message", "unkown error");
33693
33693
  e.error = vt(n, "response.data.detail.message", r), e.state = "error";
@@ -33795,7 +33795,7 @@ const mB = R.model("QueryModel", {
33795
33795
  };
33796
33796
  },
33797
33797
  isADuplicatedKey(t) {
33798
- return !t || t === e.key ? !1 : !!vo(e, 2).findByKey(t);
33798
+ return !t || t === e.key ? !1 : !!mo(e, 2).findByKey(t);
33799
33799
  }
33800
33800
  })).actions((e) => ({
33801
33801
  setKey(t) {
@@ -33878,7 +33878,7 @@ const mB = R.model("QueryModel", {
33878
33878
  return e.data.length === 0;
33879
33879
  },
33880
33880
  get sql() {
33881
- const t = vo(e, 1), { type: n, table_name: r, table_schema: o } = t;
33881
+ const t = mo(e, 1), { type: n, table_name: r, table_schema: o } = t;
33882
33882
  if (n === Wt.MySQL)
33883
33883
  return `
33884
33884
  SELECT ordinal_position, column_key, column_name, column_type, is_nullable, column_default, column_comment
@@ -33920,7 +33920,7 @@ const mB = R.model("QueryModel", {
33920
33920
  return e.data.length === 0;
33921
33921
  },
33922
33922
  get sql() {
33923
- const t = vo(e, 1), { type: n, table_name: r, table_schema: o } = t;
33923
+ const t = mo(e, 1), { type: n, table_name: r, table_schema: o } = t;
33924
33924
  return n === Wt.MySQL ? `
33925
33925
  SELECT
33926
33926
  sub_part AS index_length,
@@ -33970,7 +33970,7 @@ const mB = R.model("QueryModel", {
33970
33970
  return Object.keys(e.data).length === 0;
33971
33971
  },
33972
33972
  get sql() {
33973
- const t = vo(e, 1).type;
33973
+ const t = mo(e, 1).type;
33974
33974
  return t === Wt.MySQL || t === Wt.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
33975
33975
  }
33976
33976
  })), EB = R.model("DataSourceModel", {
@@ -34014,7 +34014,7 @@ const mB = R.model("QueryModel", {
34014
34014
  );
34015
34015
  e.tables.data = q.groupBy(r, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
34016
34016
  } catch (r) {
34017
- if (!Mo.isCancel(r)) {
34017
+ if (!To.isCancel(r)) {
34018
34018
  e.tables.data = {};
34019
34019
  const o = q.get(r, "message", "unkown error");
34020
34020
  e.tables.error = q.get(r, "response.data.detail.message", o), e.tables.state = "error";
@@ -34038,7 +34038,7 @@ const mB = R.model("QueryModel", {
34038
34038
  )
34039
34039
  ), e.columns.state = "idle", e.columns.error = null;
34040
34040
  } catch (r) {
34041
- if (Mo.isCancel(r))
34041
+ if (To.isCancel(r))
34042
34042
  e.columns.state = "idle", e.columns.error = null;
34043
34043
  else {
34044
34044
  e.columns.data = [];
@@ -34059,7 +34059,7 @@ const mB = R.model("QueryModel", {
34059
34059
  )
34060
34060
  ), e.indexes.state = "idle", e.indexes.error = null;
34061
34061
  } catch (r) {
34062
- if (Mo.isCancel(r))
34062
+ if (To.isCancel(r))
34063
34063
  e.indexes.state = "idle", e.indexes.error = null;
34064
34064
  else {
34065
34065
  e.indexes.data = [];
@@ -34340,10 +34340,10 @@ class NB {
34340
34340
  return !Ht(pr(this.origin), pr(this.copy));
34341
34341
  }
34342
34342
  commit() {
34343
- Eo(this.origin, pr(this.copy));
34343
+ Co(this.origin, pr(this.copy));
34344
34344
  }
34345
34345
  update(t) {
34346
- Eo(this.copy, t);
34346
+ Co(this.copy, t);
34347
34347
  }
34348
34348
  }
34349
34349
  const IB = (e) => new NB(e), LB = R.model({
@@ -34395,7 +34395,7 @@ const IB = (e) => new NB(e), LB = R.model({
34395
34395
  e.variables.remove(t);
34396
34396
  },
34397
34397
  removeSelf() {
34398
- vo(e, 2).removeByID(e.id);
34398
+ mo(e, 2).removeByID(e.id);
34399
34399
  }
34400
34400
  })).actions((e) => ({
34401
34401
  moveToView(t, n) {
@@ -34490,20 +34490,21 @@ const VB = R.model("PanelsModel", {
34490
34490
  n !== -1 && e.list.splice(n, 1);
34491
34491
  },
34492
34492
  duplicateByID(t) {
34493
- const n = e.list.find((r) => r.id === t);
34493
+ const n = e.list.find((o) => o.id === t);
34494
34494
  if (!n) {
34495
34495
  console.error(new Error(`[duplicate panel] Can't find a panel by id[${t}]`));
34496
34496
  return;
34497
34497
  }
34498
- e.list.push({
34498
+ const r = new Date().getTime().toString();
34499
+ return e.list.push({
34499
34500
  ...n.json,
34500
- id: lo(),
34501
+ id: r,
34501
34502
  layout: {
34502
34503
  ...n.layout,
34503
34504
  y: 1 / 0,
34504
34505
  moved: !1
34505
34506
  }
34506
- });
34507
+ }), r;
34507
34508
  },
34508
34509
  replaceByIndex(t, n) {
34509
34510
  e.list.splice(t, 1, n);
@@ -34537,7 +34538,7 @@ const VB = R.model("PanelsModel", {
34537
34538
  };
34538
34539
  },
34539
34540
  get value() {
34540
- const { enabled: t, func_content: n } = e, r = vo(e, 2), o = Tn(e);
34541
+ const { enabled: t, func_content: n } = e, r = mo(e, 2), o = Tn(e);
34541
34542
  if (!t)
34542
34543
  return r.name;
34543
34544
  try {
@@ -34645,7 +34646,7 @@ const VB = R.model("PanelsModel", {
34645
34646
  e.tabs.length = 0, e.tabs = _i(t);
34646
34647
  },
34647
34648
  addTab() {
34648
- const t = lo(), n = {
34649
+ const t = Ao(), n = {
34649
34650
  id: t,
34650
34651
  name: t,
34651
34652
  view_id: ""
@@ -34948,8 +34949,9 @@ const UB = R.model({
34948
34949
  }
34949
34950
  })).actions((e) => ({
34950
34951
  duplicatePanelByID(t, n) {
34951
- var r;
34952
- e.panels.duplicateByID(t), (r = e.views.findByID(n)) == null || r.appendPanelID(t);
34952
+ var o;
34953
+ const r = e.panels.duplicateByID(t);
34954
+ !r || (o = e.views.findByID(n)) == null || o.appendPanelID(r);
34953
34955
  },
34954
34956
  removePanelByID(t, n) {
34955
34957
  var r;
@@ -34962,10 +34964,10 @@ const UB = R.model({
34962
34964
  }
34963
34965
  })).actions((e) => ({
34964
34966
  reset() {
34965
- Eo(e.filters.current, e.origin.filters.current), Eo(e.queries.current, e.origin.queries.current), Eo(e.sqlSnippets.current, e.origin.sqlSnippets.current), Eo(e.views.current, e.origin.views.current), e.mock_context.current = e.origin.mock_context.current;
34967
+ Co(e.filters.current, e.origin.filters.current), Co(e.queries.current, e.origin.queries.current), Co(e.sqlSnippets.current, e.origin.sqlSnippets.current), Co(e.views.current, e.origin.views.current), e.mock_context.current = e.origin.mock_context.current;
34966
34968
  },
34967
34969
  resetFilters() {
34968
- Eo(e.filters.current, e.origin.filters.current);
34970
+ Co(e.filters.current, e.origin.filters.current);
34969
34971
  }
34970
34972
  })), Tu = R.snapshotProcessor(UB, {
34971
34973
  preProcessor(e) {
@@ -35169,7 +35171,7 @@ const I0 = {
35169
35171
  nB(n.name, u);
35170
35172
  }, o = () => {
35171
35173
  t(`/dashboard/${n.id}`);
35172
- }, i = go(), a = () => {
35174
+ }, i = po(), a = () => {
35173
35175
  i.openConfirmModal({
35174
35176
  title: /* @__PURE__ */ v(F, {
35175
35177
  position: "left",
@@ -36681,7 +36683,7 @@ bf(zn, Ru, J0(Qa, {
36681
36683
  return this;
36682
36684
  },
36683
36685
  clamp() {
36684
- return new zn(Ro(this.r), Ro(this.g), Ro(this.b), rl(this.opacity));
36686
+ return new zn(Oo(this.r), Oo(this.g), Oo(this.b), rl(this.opacity));
36685
36687
  },
36686
36688
  displayable() {
36687
36689
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
@@ -36693,23 +36695,23 @@ bf(zn, Ru, J0(Qa, {
36693
36695
  toString: wg
36694
36696
  }));
36695
36697
  function xg() {
36696
- return `#${To(this.r)}${To(this.g)}${To(this.b)}`;
36698
+ return `#${ko(this.r)}${ko(this.g)}${ko(this.b)}`;
36697
36699
  }
36698
36700
  function d8() {
36699
- return `#${To(this.r)}${To(this.g)}${To(this.b)}${To((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
36701
+ return `#${ko(this.r)}${ko(this.g)}${ko(this.b)}${ko((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
36700
36702
  }
36701
36703
  function wg() {
36702
36704
  const e = rl(this.opacity);
36703
- return `${e === 1 ? "rgb(" : "rgba("}${Ro(this.r)}, ${Ro(this.g)}, ${Ro(this.b)}${e === 1 ? ")" : `, ${e})`}`;
36705
+ return `${e === 1 ? "rgb(" : "rgba("}${Oo(this.r)}, ${Oo(this.g)}, ${Oo(this.b)}${e === 1 ? ")" : `, ${e})`}`;
36704
36706
  }
36705
36707
  function rl(e) {
36706
36708
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
36707
36709
  }
36708
- function Ro(e) {
36710
+ function Oo(e) {
36709
36711
  return Math.max(0, Math.min(255, Math.round(e) || 0));
36710
36712
  }
36711
- function To(e) {
36712
- return e = Ro(e), (e < 16 ? "0" : "") + e.toString(16);
36713
+ function ko(e) {
36714
+ return e = Oo(e), (e < 16 ? "0" : "") + e.toString(16);
36713
36715
  }
36714
36716
  function _g(e, t, n, r) {
36715
36717
  return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new rr(e, t, n, r);
@@ -38183,7 +38185,7 @@ const rW = () => wn(Rf), oW = (e) => "id" in e && "source" in e && "target" in e
38183
38185
  }, lW = ({ x: e, y: t }, [n, r, o]) => ({
38184
38186
  x: e * o + n,
38185
38187
  y: t * o + r
38186
- }), Do = (e, t = [0, 0]) => {
38188
+ }), Ro = (e, t = [0, 0]) => {
38187
38189
  var i, a;
38188
38190
  if (!e)
38189
38191
  return {
@@ -38209,7 +38211,7 @@ const rW = () => wn(Rf), oW = (e) => "id" in e && "source" in e && "target" in e
38209
38211
  if (e.length === 0)
38210
38212
  return { x: 0, y: 0, width: 0, height: 0 };
38211
38213
  const n = e.reduce((r, o) => {
38212
- const { x: i, y: a } = Do(o, t).positionAbsolute;
38214
+ const { x: i, y: a } = Ro(o, t).positionAbsolute;
38213
38215
  return mx(r, sl({
38214
38216
  x: i,
38215
38217
  y: a,
@@ -38229,7 +38231,7 @@ const rW = () => wn(Rf), oW = (e) => "id" in e && "source" in e && "target" in e
38229
38231
  const { width: h, height: f, selectable: p = !0, hidden: g = !1 } = d;
38230
38232
  if (a && !p || g)
38231
38233
  return !1;
38232
- const { positionAbsolute: m } = Do(d, l), b = {
38234
+ const { positionAbsolute: m } = Ro(d, l), b = {
38233
38235
  x: m.x,
38234
38236
  y: m.y,
38235
38237
  width: h || 0,
@@ -38243,7 +38245,7 @@ const rW = () => wn(Rf), oW = (e) => "id" in e && "source" in e && "target" in e
38243
38245
  }, Tx = (e, t, n, r, o, i = 0.1) => {
38244
38246
  const a = t / (e.width * (1 + i)), l = n / (e.height * (1 + i)), c = Math.min(a, l), u = vi(c, r, o), d = e.x + e.width / 2, h = e.y + e.height / 2, f = t / 2 - d * u, p = n / 2 - h * u;
38245
38247
  return [f, p, u];
38246
- }, Co = (e, t = 0) => e.transition().duration(t);
38248
+ }, So = (e, t = 0) => e.transition().duration(t);
38247
38249
  function zg(e, t, n, r) {
38248
38250
  return (t[n] || []).reduce((o, i) => {
38249
38251
  var a, l, c, u;
@@ -38653,7 +38655,7 @@ function Hx(e, t, n, r, o = [0, 0], i) {
38653
38655
  let a = e.extent || r;
38654
38656
  if (e.extent === "parent")
38655
38657
  if (e.parentNode && e.width && e.height) {
38656
- const u = n.get(e.parentNode), { x: d, y: h } = Do(u, o).positionAbsolute;
38658
+ const u = n.get(e.parentNode), { x: d, y: h } = Ro(u, o).positionAbsolute;
38657
38659
  a = u && Xn(d) && Xn(h) && Xn(u.width) && Xn(u.height) ? [
38658
38660
  [d + e.width * o[0], h + e.height * o[1]],
38659
38661
  [
@@ -38664,7 +38666,7 @@ function Hx(e, t, n, r, o = [0, 0], i) {
38664
38666
  } else
38665
38667
  i == null || i("005", xr["005"]()), a = r;
38666
38668
  else if (e.extent && e.parentNode) {
38667
- const u = n.get(e.parentNode), { x: d, y: h } = Do(u, o).positionAbsolute;
38669
+ const u = n.get(e.parentNode), { x: d, y: h } = Ro(u, o).positionAbsolute;
38668
38670
  a = [
38669
38671
  [e.extent[0][0] + d, e.extent[0][1] + h],
38670
38672
  [e.extent[1][0] + d, e.extent[1][1] + h]
@@ -38673,7 +38675,7 @@ function Hx(e, t, n, r, o = [0, 0], i) {
38673
38675
  let l = { x: 0, y: 0 };
38674
38676
  if (e.parentNode) {
38675
38677
  const u = n.get(e.parentNode);
38676
- l = Do(u, o).positionAbsolute;
38678
+ l = Ro(u, o).positionAbsolute;
38677
38679
  }
38678
38680
  const c = a ? Ef(t, a) : t;
38679
38681
  return {
@@ -38978,7 +38980,7 @@ function Kx(e, t, n, r) {
38978
38980
  var a, l, c, u, d, h, f, p;
38979
38981
  if (!e.parentNode)
38980
38982
  return n;
38981
- const o = t.get(e.parentNode), i = Do(o, r);
38983
+ const o = t.get(e.parentNode), i = Ro(o, r);
38982
38984
  return Kx(o, t, {
38983
38985
  x: ((a = n.x) != null ? a : 0) + i.x,
38984
38986
  y: ((l = n.y) != null ? l : 0) + i.y,
@@ -39031,7 +39033,7 @@ function Gx(e, t = {}) {
39031
39033
  const m = n().filter((y) => t.includeHiddenNodes ? y.width && y.height : !y.hidden), b = m.every((y) => y.width && y.height);
39032
39034
  if (m.length > 0 && b) {
39033
39035
  const y = Df(m, h), [w, _, x] = Tx(y, r, o, (f = t.minZoom) != null ? f : i, (p = t.maxZoom) != null ? p : a, (g = t.padding) != null ? g : 0.1), S = zr.translate(w, _).scale(x);
39034
- return typeof t.duration == "number" && t.duration > 0 ? l.transform(Co(c, t.duration), S) : l.transform(c, S), !0;
39036
+ return typeof t.duration == "number" && t.duration > 0 ? l.transform(So(c, t.duration), S) : l.transform(c, S), !0;
39035
39037
  }
39036
39038
  }
39037
39039
  return !1;
@@ -39056,17 +39058,17 @@ function _s({ changedNodes: e, changedEdges: t, get: n, set: r }) {
39056
39058
  const { nodeInternals: o, edges: i, onNodesChange: a, onEdgesChange: l, hasDefaultNodes: c, hasDefaultEdges: u } = n();
39057
39059
  e != null && e.length && (c && r({ nodeInternals: IW(e, o) }), a == null || a(e)), t != null && t.length && (u && r({ edges: LW(t, i) }), l == null || l(t));
39058
39060
  }
39059
- const _o = () => {
39061
+ const wo = () => {
39060
39062
  }, zW = {
39061
- zoomIn: _o,
39062
- zoomOut: _o,
39063
- zoomTo: _o,
39063
+ zoomIn: wo,
39064
+ zoomOut: wo,
39065
+ zoomTo: wo,
39064
39066
  getZoom: () => 1,
39065
- setViewport: _o,
39067
+ setViewport: wo,
39066
39068
  getViewport: () => ({ x: 0, y: 0, zoom: 1 }),
39067
- fitView: _o,
39068
- setCenter: _o,
39069
- fitBounds: _o,
39069
+ fitView: wo,
39070
+ setCenter: wo,
39071
+ fitBounds: wo,
39070
39072
  project: (e) => e,
39071
39073
  viewportInitialized: !1
39072
39074
  }, VW = (e) => ({
@@ -39075,14 +39077,14 @@ const _o = () => {
39075
39077
  }), FW = () => {
39076
39078
  const e = yn(), { d3Zoom: t, d3Selection: n } = Gt(VW, Mn);
39077
39079
  return Y(() => n && t ? {
39078
- zoomIn: (o) => t.scaleBy(Co(n, o == null ? void 0 : o.duration), 1.2),
39079
- zoomOut: (o) => t.scaleBy(Co(n, o == null ? void 0 : o.duration), 1 / 1.2),
39080
- zoomTo: (o, i) => t.scaleTo(Co(n, i == null ? void 0 : i.duration), o),
39080
+ zoomIn: (o) => t.scaleBy(So(n, o == null ? void 0 : o.duration), 1.2),
39081
+ zoomOut: (o) => t.scaleBy(So(n, o == null ? void 0 : o.duration), 1 / 1.2),
39082
+ zoomTo: (o, i) => t.scaleTo(So(n, i == null ? void 0 : i.duration), o),
39081
39083
  getZoom: () => e.getState().transform[2],
39082
39084
  setViewport: (o, i) => {
39083
39085
  var d, h, f;
39084
39086
  const [a, l, c] = e.getState().transform, u = zr.translate((d = o.x) != null ? d : a, (h = o.y) != null ? h : l).scale((f = o.zoom) != null ? f : c);
39085
- t.transform(Co(n, i == null ? void 0 : i.duration), u);
39087
+ t.transform(So(n, i == null ? void 0 : i.duration), u);
39086
39088
  },
39087
39089
  getViewport: () => {
39088
39090
  const [o, i, a] = e.getState().transform;
@@ -39091,12 +39093,12 @@ const _o = () => {
39091
39093
  fitView: (o) => Gx(e.getState, o),
39092
39094
  setCenter: (o, i, a) => {
39093
39095
  const { width: l, height: c, maxZoom: u } = e.getState(), d = typeof (a == null ? void 0 : a.zoom) < "u" ? a.zoom : u, h = l / 2 - o * d, f = c / 2 - i * d, p = zr.translate(h, f).scale(d);
39094
- t.transform(Co(n, a == null ? void 0 : a.duration), p);
39096
+ t.transform(So(n, a == null ? void 0 : a.duration), p);
39095
39097
  },
39096
39098
  fitBounds: (o, i) => {
39097
39099
  var g;
39098
39100
  const { width: a, height: l, minZoom: c, maxZoom: u } = e.getState(), [d, h, f] = Tx(o, a, l, c, u, (g = i == null ? void 0 : i.padding) != null ? g : 0.1), p = zr.translate(d, h).scale(f);
39099
- t.transform(Co(n, i == null ? void 0 : i.duration), p);
39101
+ t.transform(So(n, i == null ? void 0 : i.duration), p);
39100
39102
  },
39101
39103
  project: (o) => {
39102
39104
  const { transform: i, snapToGrid: a, snapGrid: l } = e.getState();
@@ -40046,7 +40048,7 @@ function ow({ style: e, className: t, nodeStrokeColor: n = "transparent", nodeCo
40046
40048
  f(de, Te);
40047
40049
  } : void 0;
40048
40050
  return s(Sf, { position: d, style: e, className: Sn(["react-flow__minimap", t]), children: v("svg", { width: O, height: L, viewBox: `${B} ${j} ${G} ${U}`, role: "img", "aria-labelledby": ae, ref: y, onClick: te, children: [m && s("title", { id: ae, children: m }), x.map((de) => {
40049
- const { x: Oe, y: Te } = Do(de, k).positionAbsolute;
40051
+ const { x: Oe, y: Te } = Ro(de, k).positionAbsolute;
40050
40052
  return s(RG, { x: Oe, y: Te, width: de.width, height: de.height, style: de.style, className: T(de), color: H(de), borderRadius: i, strokeColor: A(de), strokeWidth: a, shapeRendering: oe, onClick: me, id: de.id }, de.id);
40051
40053
  }), s("path", { className: "react-flow__minimap-mask", d: `M${B - M},${j - M}h${G + M * 2}v${U + M * 2}h${-G - M * 2}z
40052
40054
  M${_.x},${_.y}h${_.width}v${_.height}h${-_.width}z`, fill: l, fillRule: "evenodd", stroke: c, strokeWidth: u, pointerEvents: "none" })] }) });
@@ -40573,7 +40575,7 @@ const b9 = J(() => {
40573
40575
  variant: "dashed"
40574
40576
  }), /* @__PURE__ */ s(ie, {
40575
40577
  variant: "subtle",
40576
- rightIcon: /* @__PURE__ */ s(yo, {
40578
+ rightIcon: /* @__PURE__ */ s(vo, {
40577
40579
  size: 14
40578
40580
  }),
40579
40581
  size: "sm",
@@ -41272,7 +41274,7 @@ const b9 = J(() => {
41272
41274
  }), N9 = J(({
41273
41275
  id: e
41274
41276
  }) => {
41275
- const t = go(), n = He();
41277
+ const t = po(), n = He();
41276
41278
  if (e === "")
41277
41279
  return null;
41278
41280
  const r = n.filters.findByID(e);
@@ -42125,7 +42127,7 @@ const lq = J(() => {
42125
42127
  }, i = ee.useMemo(() => {
42126
42128
  var u;
42127
42129
  return (u = em.find((d) => d.value === t.type)) == null ? void 0 : u.Panel;
42128
- }, [t.type, em]), a = sq(), l = i ? mo(i, {
42130
+ }, [t.type, em]), a = sq(), l = i ? go(i, {
42129
42131
  data: e,
42130
42132
  conf: t.conf,
42131
42133
  setConf: t.setConf
@@ -42270,7 +42272,7 @@ function dq(e) {
42270
42272
  const fq = J(({
42271
42273
  panel: e
42272
42274
  }) => {
42273
- const t = go(), n = He(), [r, o] = ze("Data"), {
42275
+ const t = po(), n = He(), [r, o] = ze("Data"), {
42274
42276
  data: i,
42275
42277
  state: a,
42276
42278
  error: l
@@ -42960,7 +42962,7 @@ const xq = J(({
42960
42962
  }), Cq = (e) => {
42961
42963
  const {
42962
42964
  queryModel: t
42963
- } = e, n = He(), o = n.findQueryUsage(t.id).length > 0, i = go(), a = () => {
42965
+ } = e, n = He(), o = n.findQueryUsage(t.id).length > 0, i = po(), a = () => {
42964
42966
  i.openConfirmModal({
42965
42967
  title: "Delete this query?",
42966
42968
  labels: {
@@ -43700,7 +43702,7 @@ WHERE
43700
43702
  ue(() => {
43701
43703
  a(e.key), h(e.value);
43702
43704
  }, [e]);
43703
- const p = d !== e.value, g = go();
43705
+ const p = d !== e.value, g = po();
43704
43706
  return /* @__PURE__ */ v(W, {
43705
43707
  p: 20,
43706
43708
  sx: {
@@ -44073,7 +44075,7 @@ WHERE
44073
44075
  }) : null), Xq = J(({
44074
44076
  id: e
44075
44077
  }) => {
44076
- const t = go(), n = He(), r = n.views.findByID(e);
44078
+ const t = po(), n = He(), r = n.views.findByID(e);
44077
44079
  return r ? /* @__PURE__ */ v(W, {
44078
44080
  sx: {
44079
44081
  maxWidth: "600px",
@@ -44173,7 +44175,7 @@ const o7 = J(() => /* @__PURE__ */ s(W, {
44173
44175
  const e = He();
44174
44176
  return /* @__PURE__ */ s(ie, {
44175
44177
  variant: "subtle",
44176
- leftIcon: /* @__PURE__ */ s(yo, {
44178
+ leftIcon: /* @__PURE__ */ s(vo, {
44177
44179
  size: 14
44178
44180
  }),
44179
44181
  size: "sm",
@@ -44213,7 +44215,7 @@ const o7 = J(() => /* @__PURE__ */ s(W, {
44213
44215
  const n = t.views.findByID(e);
44214
44216
  return n ? /* @__PURE__ */ s(ie, {
44215
44217
  variant: "subtle",
44216
- leftIcon: /* @__PURE__ */ s(yo, {
44218
+ leftIcon: /* @__PURE__ */ s(vo, {
44217
44219
  size: 14
44218
44220
  }),
44219
44221
  size: "sm",
@@ -44236,7 +44238,7 @@ const o7 = J(() => /* @__PURE__ */ s(W, {
44236
44238
  const e = He();
44237
44239
  return /* @__PURE__ */ s(ie, {
44238
44240
  variant: "subtle",
44239
- leftIcon: /* @__PURE__ */ s(yo, {
44241
+ leftIcon: /* @__PURE__ */ s(vo, {
44240
44242
  size: 14
44241
44243
  }),
44242
44244
  size: "sm",
@@ -44268,7 +44270,7 @@ const o7 = J(() => /* @__PURE__ */ s(W, {
44268
44270
  const e = He();
44269
44271
  return /* @__PURE__ */ s(ie, {
44270
44272
  variant: "subtle",
44271
- leftIcon: /* @__PURE__ */ s(yo, {
44273
+ leftIcon: /* @__PURE__ */ s(vo, {
44272
44274
  size: 14
44273
44275
  }),
44274
44276
  size: "sm",
@@ -44297,7 +44299,7 @@ const o7 = J(() => /* @__PURE__ */ s(W, {
44297
44299
  const e = He();
44298
44300
  return /* @__PURE__ */ s(ie, {
44299
44301
  variant: "subtle",
44300
- leftIcon: /* @__PURE__ */ s(yo, {
44302
+ leftIcon: /* @__PURE__ */ s(vo, {
44301
44303
  size: 14
44302
44304
  }),
44303
44305
  size: "sm",