@tanstack/query-devtools 5.0.0-rc.9 → 5.0.3

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,4 +1,4 @@
1
- import { createContext, delegateEvents, createSignal, createComponent, createMemo, createEffect, insert, Show, createRenderEffect, className, on, onMount, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, useContext, Index, template, use, untrack, useTransition, createRoot, splitProps, createUniqueId, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/7MNJIXJ6.js';
1
+ import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, on, onMount, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, use, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/Z53XT47W.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -675,7 +675,7 @@ function clsx() {
675
675
  return n2;
676
676
  }
677
677
 
678
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
678
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.1/node_modules/@solid-primitives/transition-group/dist/index.js
679
679
  var noop = () => {
680
680
  };
681
681
  function createListTransition(source, options) {
@@ -743,9 +743,12 @@ function createListTransition(source, options) {
743
743
  );
744
744
  }
745
745
 
746
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
746
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
747
747
  var isClient = !isServer;
748
748
  var isDev = isClient && !!DEV;
749
+ var noop2 = () => void 0;
750
+ var isNonNullable = (i2) => i2 != null;
751
+ var filterNonNullable = (arr) => arr.filter(isNonNullable);
749
752
  function chain(callbacks) {
750
753
  return (...args) => {
751
754
  for (const callback of callbacks)
@@ -766,8 +769,42 @@ function accessWith(valueOrFn, ...args) {
766
769
  return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
767
770
  }
768
771
  var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
772
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
773
+ const currLength = current.length;
774
+ const prevLength = prev.length;
775
+ let i2 = 0;
776
+ if (!prevLength) {
777
+ for (; i2 < currLength; i2++)
778
+ handleAdded(current[i2]);
779
+ return;
780
+ }
781
+ if (!currLength) {
782
+ for (; i2 < prevLength; i2++)
783
+ handleRemoved(prev[i2]);
784
+ return;
785
+ }
786
+ for (; i2 < prevLength; i2++) {
787
+ if (prev[i2] !== current[i2])
788
+ break;
789
+ }
790
+ let prevEl;
791
+ let currEl;
792
+ prev = prev.slice(i2);
793
+ current = current.slice(i2);
794
+ for (prevEl of prev) {
795
+ if (!current.includes(prevEl))
796
+ handleRemoved(prevEl);
797
+ }
798
+ for (currEl of current) {
799
+ if (!prev.includes(currEl))
800
+ handleAdded(currEl);
801
+ }
802
+ }
769
803
 
770
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
804
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.1/node_modules/@solid-primitives/refs/dist/index.js
805
+ function mergeRefs(...refs) {
806
+ return chain(refs);
807
+ }
771
808
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
772
809
  function getResolvedElements(value, predicate) {
773
810
  if (predicate(value))
@@ -797,7 +834,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
797
834
  return memo;
798
835
  }
799
836
 
800
- // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js
837
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
801
838
  function createClassnames(props) {
802
839
  return createMemo(() => {
803
840
  const name = props.name || "s";
@@ -919,7 +956,7 @@ var TransitionGroup = (props) => {
919
956
  });
920
957
  };
921
958
 
922
- // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
959
+ // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.8.1/node_modules/@solid-primitives/keyed/dist/index.js
923
960
  var FALLBACK = Symbol("fallback");
924
961
  function dispose(list) {
925
962
  for (const o2 of list)
@@ -1017,45 +1054,7 @@ function Key(props) {
1017
1054
  );
1018
1055
  }
1019
1056
 
1020
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
1021
- var noop3 = () => void 0;
1022
- var isNonNullable2 = (i2) => i2 != null;
1023
- var filterNonNullable2 = (arr) => arr.filter(isNonNullable2);
1024
- var access2 = (v) => typeof v === "function" && !v.length ? v() : v;
1025
- var asArray2 = (value) => Array.isArray(value) ? value : value ? [value] : [];
1026
- function handleDiffArray2(current, prev, handleAdded, handleRemoved) {
1027
- const currLength = current.length;
1028
- const prevLength = prev.length;
1029
- let i2 = 0;
1030
- if (!prevLength) {
1031
- for (; i2 < currLength; i2++)
1032
- handleAdded(current[i2]);
1033
- return;
1034
- }
1035
- if (!currLength) {
1036
- for (; i2 < prevLength; i2++)
1037
- handleRemoved(prev[i2]);
1038
- return;
1039
- }
1040
- for (; i2 < prevLength; i2++) {
1041
- if (prev[i2] !== current[i2])
1042
- break;
1043
- }
1044
- let prevEl;
1045
- let currEl;
1046
- prev = prev.slice(i2);
1047
- current = current.slice(i2);
1048
- for (prevEl of prev) {
1049
- if (!current.includes(prevEl))
1050
- handleRemoved(prevEl);
1051
- }
1052
- for (currEl of current) {
1053
- if (!prev.includes(currEl))
1054
- handleAdded(currEl);
1055
- }
1056
- }
1057
-
1058
- // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
1057
+ // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.1/node_modules/@solid-primitives/storage/dist/index.js
1059
1058
  function createStorage(props) {
1060
1059
  const [error, setError] = createSignal();
1061
1060
  const handleError = props?.throw ? (err, fallback) => {
@@ -1274,10 +1273,30 @@ var cookieStorage = addClearMethod({
1274
1273
  }
1275
1274
  });
1276
1275
 
1277
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js
1276
+ // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.8.1/node_modules/@solid-primitives/event-listener/dist/index.js
1277
+ function makeEventListener(target, type, handler, options) {
1278
+ target.addEventListener(type, handler, options);
1279
+ return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1280
+ }
1281
+ function createEventListener(targets, type, handler, options) {
1282
+ if (isServer)
1283
+ return;
1284
+ const attachListeners = () => {
1285
+ asArray(access(targets)).forEach((el) => {
1286
+ if (el)
1287
+ asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1288
+ });
1289
+ };
1290
+ if (typeof targets === "function")
1291
+ createEffect(attachListeners);
1292
+ else
1293
+ createRenderEffect(attachListeners);
1294
+ }
1295
+
1296
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
1278
1297
  function makeResizeObserver(callback, options) {
1279
1298
  if (isServer) {
1280
- return { observe: noop3, unobserve: noop3 };
1299
+ return { observe: noop2, unobserve: noop2 };
1281
1300
  }
1282
1301
  const observer = new ResizeObserver(callback);
1283
1302
  onCleanup(observer.disconnect.bind(observer));
@@ -1289,8 +1308,8 @@ function makeResizeObserver(callback, options) {
1289
1308
  function createResizeObserver(targets, onResize, options) {
1290
1309
  if (isServer)
1291
1310
  return;
1292
- const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries3) => {
1293
- for (const entry of entries3) {
1311
+ const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries2) => {
1312
+ for (const entry of entries2) {
1294
1313
  const { contentRect, target } = entry, width = Math.round(contentRect.width), height = Math.round(contentRect.height), previous = previousMap.get(target);
1295
1314
  if (!previous || previous.width !== width || previous.height !== height) {
1296
1315
  onResize(contentRect, target, entry);
@@ -1299,34 +1318,14 @@ function createResizeObserver(targets, onResize, options) {
1299
1318
  }
1300
1319
  }, options);
1301
1320
  createEffect((prev) => {
1302
- const refs = filterNonNullable2(asArray2(access2(targets)));
1303
- handleDiffArray2(refs, prev, observe, unobserve);
1321
+ const refs = filterNonNullable(asArray(access(targets)));
1322
+ handleDiffArray(refs, prev, observe, unobserve);
1304
1323
  return refs;
1305
1324
  }, []);
1306
1325
  }
1307
1326
 
1308
- // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.7.8/node_modules/@solid-primitives/event-listener/dist/index.js
1309
- function makeEventListener(target, type, handler, options) {
1310
- target.addEventListener(type, handler, options);
1311
- return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1312
- }
1313
- function createEventListener(targets, type, handler, options) {
1314
- if (isServer)
1315
- return;
1316
- const attachListeners = () => {
1317
- asArray(access(targets)).forEach((el) => {
1318
- if (el)
1319
- asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1320
- });
1321
- };
1322
- if (typeof targets === "function")
1323
- createEffect(attachListeners);
1324
- else
1325
- createRenderEffect(attachListeners);
1326
- }
1327
-
1328
- // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.7.8/node_modules/@solid-primitives/props/dist/index.js
1329
- function trueFn3() {
1327
+ // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.8.1/node_modules/@solid-primitives/props/dist/index.js
1328
+ function trueFn2() {
1330
1329
  return true;
1331
1330
  }
1332
1331
  var propTraps = {
@@ -1338,8 +1337,8 @@ var propTraps = {
1338
1337
  has(_, property) {
1339
1338
  return _.has(property);
1340
1339
  },
1341
- set: trueFn3,
1342
- deleteProperty: trueFn3,
1340
+ set: trueFn2,
1341
+ deleteProperty: trueFn2,
1343
1342
  getOwnPropertyDescriptor(_, property) {
1344
1343
  return {
1345
1344
  configurable: true,
@@ -1347,8 +1346,8 @@ var propTraps = {
1347
1346
  get() {
1348
1347
  return _.get(property);
1349
1348
  },
1350
- set: trueFn3,
1351
- deleteProperty: trueFn3
1349
+ set: trueFn2,
1350
+ deleteProperty: trueFn2
1352
1351
  };
1353
1352
  },
1354
1353
  ownKeys(_) {
@@ -1447,12 +1446,7 @@ function combineProps(...args) {
1447
1446
  );
1448
1447
  }
1449
1448
 
1450
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
1451
- function mergeRefs(...refs) {
1452
- return chain(refs);
1453
- }
1454
-
1455
- // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.7.8/node_modules/@kobalte/utils/dist/index.js
1449
+ // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.1/node_modules/@kobalte/utils/dist/index.js
1456
1450
  function addItemToArray(array, item, index = -1) {
1457
1451
  if (!(index in array)) {
1458
1452
  return [...array, item];
@@ -1722,7 +1716,7 @@ function getFocusableTreeWalker(root, opts, scope) {
1722
1716
  }
1723
1717
  return walker2;
1724
1718
  }
1725
- function noop4() {
1719
+ function noop3() {
1726
1720
  return;
1727
1721
  }
1728
1722
  function isPointInPolygon(point, polygon) {
@@ -1869,9 +1863,11 @@ var visuallyHiddenStyles = {
1869
1863
  "white-space": "nowrap"
1870
1864
  };
1871
1865
 
1872
- // ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/store/dist/store.js
1866
+ // ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/store/dist/store.js
1873
1867
  var $RAW = Symbol("store-raw");
1874
1868
  var $NODE = Symbol("store-node");
1869
+ var $HAS = Symbol("store-has");
1870
+ var $SELF = Symbol("store-self");
1875
1871
  function wrap$1(value) {
1876
1872
  let p2 = value[$PROXY];
1877
1873
  if (!p2) {
@@ -1879,9 +1875,9 @@ function wrap$1(value) {
1879
1875
  value: p2 = new Proxy(value, proxyTraps$1)
1880
1876
  });
1881
1877
  if (!Array.isArray(value)) {
1882
- const keys3 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1883
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1884
- const prop = keys3[i2];
1878
+ const keys2 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1879
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1880
+ const prop = keys2[i2];
1885
1881
  if (desc[prop].get) {
1886
1882
  Object.defineProperty(value, prop, {
1887
1883
  enumerable: desc[prop].enumerable,
@@ -1918,9 +1914,9 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1918
1914
  item = Object.assign({}, item);
1919
1915
  else
1920
1916
  set.add(item);
1921
- const keys3 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1922
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1923
- prop = keys3[i2];
1917
+ const keys2 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1918
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1919
+ prop = keys2[i2];
1924
1920
  if (desc[prop].get)
1925
1921
  continue;
1926
1922
  v = item[prop];
@@ -1930,16 +1926,23 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1930
1926
  }
1931
1927
  return item;
1932
1928
  }
1933
- function getDataNodes(target) {
1934
- let nodes = target[$NODE];
1929
+ function getNodes(target, symbol) {
1930
+ let nodes = target[symbol];
1935
1931
  if (!nodes)
1936
- Object.defineProperty(target, $NODE, {
1932
+ Object.defineProperty(target, symbol, {
1937
1933
  value: nodes = /* @__PURE__ */ Object.create(null)
1938
1934
  });
1939
1935
  return nodes;
1940
1936
  }
1941
- function getDataNode(nodes, property, value) {
1942
- return nodes[property] || (nodes[property] = createDataNode(value));
1937
+ function getNode(nodes, property, value) {
1938
+ if (nodes[property])
1939
+ return nodes[property];
1940
+ const [s2, set] = createSignal(value, {
1941
+ equals: false,
1942
+ internal: true
1943
+ });
1944
+ s2.$ = set;
1945
+ return nodes[property] = s2;
1943
1946
  }
1944
1947
  function proxyDescriptor$1(target, property) {
1945
1948
  const desc = Reflect.getOwnPropertyDescriptor(target, property);
@@ -1951,23 +1954,12 @@ function proxyDescriptor$1(target, property) {
1951
1954
  return desc;
1952
1955
  }
1953
1956
  function trackSelf(target) {
1954
- if (getListener()) {
1955
- const nodes = getDataNodes(target);
1956
- (nodes._ || (nodes._ = createDataNode()))();
1957
- }
1957
+ getListener() && getNode(getNodes(target, $NODE), $SELF)();
1958
1958
  }
1959
1959
  function ownKeys(target) {
1960
1960
  trackSelf(target);
1961
1961
  return Reflect.ownKeys(target);
1962
1962
  }
1963
- function createDataNode(value) {
1964
- const [s2, set] = createSignal(value, {
1965
- equals: false,
1966
- internal: true
1967
- });
1968
- s2.$ = set;
1969
- return s2;
1970
- }
1971
1963
  var proxyTraps$1 = {
1972
1964
  get(target, property, receiver) {
1973
1965
  if (property === $RAW)
@@ -1978,22 +1970,22 @@ var proxyTraps$1 = {
1978
1970
  trackSelf(target);
1979
1971
  return receiver;
1980
1972
  }
1981
- const nodes = getDataNodes(target);
1973
+ const nodes = getNodes(target, $NODE);
1982
1974
  const tracked = nodes[property];
1983
1975
  let value = tracked ? tracked() : target[property];
1984
- if (property === $NODE || property === "__proto__")
1976
+ if (property === $NODE || property === $HAS || property === "__proto__")
1985
1977
  return value;
1986
1978
  if (!tracked) {
1987
1979
  const desc = Object.getOwnPropertyDescriptor(target, property);
1988
1980
  if (getListener() && (typeof value !== "function" || target.hasOwnProperty(property)) && !(desc && desc.get))
1989
- value = getDataNode(nodes, property, value)();
1981
+ value = getNode(nodes, property, value)();
1990
1982
  }
1991
1983
  return isWrappable(value) ? wrap$1(value) : value;
1992
1984
  },
1993
1985
  has(target, property) {
1994
- if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === "__proto__")
1986
+ if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === $HAS || property === "__proto__")
1995
1987
  return true;
1996
- this.get(target, property, target);
1988
+ getListener() && getNode(getNodes(target, $HAS), property)();
1997
1989
  return property in target;
1998
1990
  },
1999
1991
  set() {
@@ -2009,24 +2001,29 @@ function setProperty(state2, property, value, deleting = false) {
2009
2001
  if (!deleting && state2[property] === value)
2010
2002
  return;
2011
2003
  const prev = state2[property], len = state2.length;
2012
- if (value === void 0)
2004
+ if (value === void 0) {
2013
2005
  delete state2[property];
2014
- else
2006
+ if (state2[$HAS] && state2[$HAS][property] && prev !== void 0)
2007
+ state2[$HAS][property].$();
2008
+ } else {
2015
2009
  state2[property] = value;
2016
- let nodes = getDataNodes(state2), node;
2017
- if (node = getDataNode(nodes, property, prev))
2010
+ if (state2[$HAS] && state2[$HAS][property] && prev === void 0)
2011
+ state2[$HAS][property].$();
2012
+ }
2013
+ let nodes = getNodes(state2, $NODE), node;
2014
+ if (node = getNode(nodes, property, prev))
2018
2015
  node.$(() => value);
2019
2016
  if (Array.isArray(state2) && state2.length !== len) {
2020
2017
  for (let i2 = state2.length; i2 < len; i2++)
2021
2018
  (node = nodes[i2]) && node.$();
2022
- (node = getDataNode(nodes, "length", len)) && node.$(state2.length);
2019
+ (node = getNode(nodes, "length", len)) && node.$(state2.length);
2023
2020
  }
2024
- (node = nodes._) && node.$();
2021
+ (node = nodes[$SELF]) && node.$();
2025
2022
  }
2026
2023
  function mergeStoreNode(state2, value) {
2027
- const keys3 = Object.keys(value);
2028
- for (let i2 = 0; i2 < keys3.length; i2 += 1) {
2029
- const key = keys3[i2];
2024
+ const keys2 = Object.keys(value);
2025
+ for (let i2 = 0; i2 < keys2.length; i2 += 1) {
2026
+ const key = keys2[i2];
2030
2027
  setProperty(state2, key, value[key]);
2031
2028
  }
2032
2029
  }
@@ -2064,11 +2061,7 @@ function updatePath(current, path, traversed = []) {
2064
2061
  }
2065
2062
  return;
2066
2063
  } else if (isArray4 && partType === "object") {
2067
- const {
2068
- from = 0,
2069
- to = current.length - 1,
2070
- by = 1
2071
- } = part;
2064
+ const { from = 0, to = current.length - 1, by = 1 } = part;
2072
2065
  for (let i2 = from; i2 <= to; i2 += by) {
2073
2066
  updatePath(current, [i2].concat(path), traversed);
2074
2067
  }
@@ -2144,7 +2137,7 @@ function $d6fd23bc337660df$var$getLanguage(locale) {
2144
2137
  return locale.split("-")[0];
2145
2138
  }
2146
2139
 
2147
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2140
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2148
2141
  var sides = ["top", "right", "bottom", "left"];
2149
2142
  var min = Math.min;
2150
2143
  var max = Math.max;
@@ -2164,7 +2157,7 @@ var oppositeAlignmentMap = {
2164
2157
  start: "end",
2165
2158
  end: "start"
2166
2159
  };
2167
- function clamp3(start, value, end) {
2160
+ function clamp2(start, value, end) {
2168
2161
  return max(start, min(value, end));
2169
2162
  }
2170
2163
  function evaluate(value, param) {
@@ -2507,7 +2500,7 @@ var arrow = (options) => ({
2507
2500
  const min$1 = minPadding;
2508
2501
  const max2 = clientSize - arrowDimensions[length] - maxPadding;
2509
2502
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
2510
- const offset2 = clamp3(min$1, center, max2);
2503
+ const offset2 = clamp2(min$1, center, max2);
2511
2504
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
2512
2505
  const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
2513
2506
  return {
@@ -2780,14 +2773,14 @@ var shift = function(options) {
2780
2773
  const maxSide = mainAxis === "y" ? "bottom" : "right";
2781
2774
  const min2 = mainAxisCoord + overflow[minSide];
2782
2775
  const max2 = mainAxisCoord - overflow[maxSide];
2783
- mainAxisCoord = clamp3(min2, mainAxisCoord, max2);
2776
+ mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
2784
2777
  }
2785
2778
  if (checkCrossAxis) {
2786
2779
  const minSide = crossAxis === "y" ? "top" : "left";
2787
2780
  const maxSide = crossAxis === "y" ? "bottom" : "right";
2788
2781
  const min2 = crossAxisCoord + overflow[minSide];
2789
2782
  const max2 = crossAxisCoord - overflow[maxSide];
2790
- crossAxisCoord = clamp3(min2, crossAxisCoord, max2);
2783
+ crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
2791
2784
  }
2792
2785
  const limitedCoords = limiter.fn({
2793
2786
  ...state2,
@@ -2881,7 +2874,7 @@ var size = function(options) {
2881
2874
  };
2882
2875
  };
2883
2876
 
2884
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2877
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2885
2878
  function getNodeName(node) {
2886
2879
  if (isNode(node)) {
2887
2880
  return (node.nodeName || "").toLowerCase();
@@ -3419,8 +3412,8 @@ function observeMove(element, onMove) {
3419
3412
  threshold: max(0, min(1, threshold)) || 1
3420
3413
  };
3421
3414
  let isFirstUpdate = true;
3422
- function handleObserve(entries3) {
3423
- const ratio = entries3[0].intersectionRatio;
3415
+ function handleObserve(entries2) {
3416
+ const ratio = entries2[0].intersectionRatio;
3424
3417
  if (ratio !== threshold) {
3425
3418
  if (!isFirstUpdate) {
3426
3419
  return refresh();
@@ -3531,7 +3524,7 @@ var computePosition2 = (reference, floating, options) => {
3531
3524
  });
3532
3525
  };
3533
3526
 
3534
- // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.7.8/node_modules/@kobalte/core/dist/esm/index.js
3527
+ // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js
3535
3528
  createContext();
3536
3529
  function buildNodes(params) {
3537
3530
  let index = params.startIndex ?? 0;
@@ -4119,7 +4112,7 @@ var POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
4119
4112
  var FOCUS_OUTSIDE_EVENT = "interactOutside.focusOutside";
4120
4113
  function createInteractOutside(props, ref) {
4121
4114
  let pointerDownTimeoutId;
4122
- let clickHandler = noop4;
4115
+ let clickHandler = noop3;
4123
4116
  const ownerDocument = () => getDocument(ref());
4124
4117
  const onPointerDownOutside = (e2) => props.onPointerDownOutside?.(e2);
4125
4118
  const onFocusOutside = (e2) => props.onFocusOutside?.(e2);
@@ -4568,11 +4561,11 @@ function createCollator(options) {
4568
4561
  });
4569
4562
  }
4570
4563
  var Selection = class _Selection extends Set {
4571
- constructor(keys3, anchorKey, currentKey) {
4572
- super(keys3);
4573
- if (keys3 instanceof _Selection) {
4574
- this.anchorKey = anchorKey || keys3.anchorKey;
4575
- this.currentKey = currentKey || keys3.currentKey;
4564
+ constructor(keys2, anchorKey, currentKey) {
4565
+ super(keys2);
4566
+ if (keys2 instanceof _Selection) {
4567
+ this.anchorKey = anchorKey || keys2.anchorKey;
4568
+ this.currentKey = currentKey || keys2.currentKey;
4576
4569
  } else {
4577
4570
  this.anchorKey = anchorKey;
4578
4571
  this.currentKey = currentKey;
@@ -4636,9 +4629,9 @@ function createMultipleSelectionState(props) {
4636
4629
  const [selectionBehavior, setSelectionBehavior] = createSignal(access(props.selectionBehavior));
4637
4630
  const selectionMode = () => access(props.selectionMode);
4638
4631
  const disallowEmptySelection = () => access(props.disallowEmptySelection) ?? false;
4639
- const setSelectedKeys = (keys3) => {
4640
- if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys3, selectedKeys())) {
4641
- _setSelectedKeys(keys3);
4632
+ const setSelectedKeys = (keys2) => {
4633
+ if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys2, selectedKeys())) {
4634
+ _setSelectedKeys(keys2);
4642
4635
  }
4643
4636
  };
4644
4637
  createEffect(() => {
@@ -5253,15 +5246,15 @@ var SelectionManager = class {
5253
5246
  return [];
5254
5247
  }
5255
5248
  getKeyRangeInternal(from, to) {
5256
- const keys3 = [];
5249
+ const keys2 = [];
5257
5250
  let key = from;
5258
5251
  while (key != null) {
5259
5252
  const item = this.collection().getItem(key);
5260
5253
  if (item && item.type === "item") {
5261
- keys3.push(key);
5254
+ keys2.push(key);
5262
5255
  }
5263
5256
  if (key === to) {
5264
- return keys3;
5257
+ return keys2;
5265
5258
  }
5266
5259
  key = this.collection().getKeyAfter(key);
5267
5260
  }
@@ -5290,18 +5283,18 @@ var SelectionManager = class {
5290
5283
  if (retrievedKey == null) {
5291
5284
  return;
5292
5285
  }
5293
- const keys3 = new Selection(this.state.selectedKeys());
5294
- if (keys3.has(retrievedKey)) {
5295
- keys3.delete(retrievedKey);
5286
+ const keys2 = new Selection(this.state.selectedKeys());
5287
+ if (keys2.has(retrievedKey)) {
5288
+ keys2.delete(retrievedKey);
5296
5289
  } else if (this.canSelectItem(retrievedKey)) {
5297
- keys3.add(retrievedKey);
5298
- keys3.anchorKey = retrievedKey;
5299
- keys3.currentKey = retrievedKey;
5290
+ keys2.add(retrievedKey);
5291
+ keys2.anchorKey = retrievedKey;
5292
+ keys2.currentKey = retrievedKey;
5300
5293
  }
5301
- if (this.disallowEmptySelection() && keys3.size === 0) {
5294
+ if (this.disallowEmptySelection() && keys2.size === 0) {
5302
5295
  return;
5303
5296
  }
5304
- this.state.setSelectedKeys(keys3);
5297
+ this.state.setSelectedKeys(keys2);
5305
5298
  }
5306
5299
  /** Replaces the selection with only the given key. */
5307
5300
  replaceSelection(key) {
@@ -5316,12 +5309,12 @@ var SelectionManager = class {
5316
5309
  this.state.setSelectedKeys(selection);
5317
5310
  }
5318
5311
  /** Replaces the selection with the given keys. */
5319
- setSelectedKeys(keys3) {
5312
+ setSelectedKeys(keys2) {
5320
5313
  if (this.selectionMode() === "none") {
5321
5314
  return;
5322
5315
  }
5323
5316
  const selection = new Selection();
5324
- for (const key of keys3) {
5317
+ for (const key of keys2) {
5325
5318
  const retrievedKey = this.getKey(key);
5326
5319
  if (retrievedKey != null) {
5327
5320
  selection.add(retrievedKey);
@@ -5406,7 +5399,7 @@ var SelectionManager = class {
5406
5399
  return !item || item.disabled;
5407
5400
  }
5408
5401
  getAllSelectableKeys() {
5409
- const keys3 = [];
5402
+ const keys2 = [];
5410
5403
  const addKeys = (key) => {
5411
5404
  while (key != null) {
5412
5405
  if (this.canSelectItem(key)) {
@@ -5415,14 +5408,14 @@ var SelectionManager = class {
5415
5408
  continue;
5416
5409
  }
5417
5410
  if (item.type === "item") {
5418
- keys3.push(key);
5411
+ keys2.push(key);
5419
5412
  }
5420
5413
  }
5421
5414
  key = this.collection().getKeyAfter(key);
5422
5415
  }
5423
5416
  };
5424
5417
  addKeys(this.collection().getFirstKey());
5425
- return keys3;
5418
+ return keys2;
5426
5419
  }
5427
5420
  };
5428
5421
  var ListCollection = class {
@@ -5478,8 +5471,8 @@ var ListCollection = class {
5478
5471
  return this.keyMap.get(key);
5479
5472
  }
5480
5473
  at(idx) {
5481
- const keys3 = [...this.getKeys()];
5482
- return this.getItem(keys3[idx]);
5474
+ const keys2 = [...this.getKeys()];
5475
+ return this.getItem(keys2[idx]);
5483
5476
  }
5484
5477
  };
5485
5478
  function createListState(props) {
@@ -8744,12 +8737,12 @@ var untransformValue = function(json, type, superJson) {
8744
8737
 
8745
8738
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
8746
8739
  var getNthKey = function(value, n2) {
8747
- var keys3 = value.keys();
8740
+ var keys2 = value.keys();
8748
8741
  while (n2 > 0) {
8749
- keys3.next();
8742
+ keys2.next();
8750
8743
  n2--;
8751
8744
  }
8752
- return keys3.next().value;
8745
+ return keys2.next().value;
8753
8746
  };
8754
8747
  function validatePath(path) {
8755
8748
  if (includes(path, "__proto__")) {
@@ -9049,7 +9042,7 @@ function isArray3(payload) {
9049
9042
  return getType2(payload) === "Array";
9050
9043
  }
9051
9044
 
9052
- // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
9045
+ // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
9053
9046
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
9054
9047
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
9055
9048
  if (propType === "enumerable")
@@ -9244,6 +9237,19 @@ var sortFns = {
9244
9237
  var convertRemToPixels = (rem) => {
9245
9238
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9246
9239
  };
9240
+ var getPreferredColorScheme = () => {
9241
+ const [colorScheme, setColorScheme] = createSignal("dark");
9242
+ onMount(() => {
9243
+ const query = window.matchMedia("(prefers-color-scheme: dark)");
9244
+ setColorScheme(query.matches ? "dark" : "light");
9245
+ const listener = (e2) => {
9246
+ setColorScheme(e2.matches ? "dark" : "light");
9247
+ };
9248
+ query.addEventListener("change", listener);
9249
+ onCleanup(() => query.removeEventListener("change", listener));
9250
+ });
9251
+ return colorScheme;
9252
+ };
9247
9253
  var updateNestedDataByPath = (oldData, updatePath2, value) => {
9248
9254
  if (updatePath2.length === 0) {
9249
9255
  return value;
@@ -9326,19 +9332,23 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
9326
9332
  };
9327
9333
 
9328
9334
  // src/icons/index.tsx
9329
- var _tmpl$ = /* @__PURE__ */ template(`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9330
- var _tmpl$2 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5" stroke="#d0d5dd" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9331
- var _tmpl$3 = /* @__PURE__ */ template(`<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9332
- var _tmpl$4 = /* @__PURE__ */ template(`<svg width="12" height="12" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9333
- var _tmpl$5 = /* @__PURE__ */ template(`<svg width="12" height="12" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9334
- var _tmpl$6 = /* @__PURE__ */ template(`<svg stroke="#d0d5dd" fill="#d0d5dd" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
9335
- var _tmpl$7 = /* @__PURE__ */ template(`<svg stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
9336
- var _tmpl$8 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z" stroke="#d0d5dd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z" stroke="#d0d5dd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9337
- var _tmpl$9 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="copier" d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="#98A2B3">`);
9338
- var _tmpl$10 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#12B76A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9339
- var _tmpl$11 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#F04438" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9340
- var _tmpl$12 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#98A2B3" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><rect class="list" width="20" height="20" y="2" x="2" rx="2"></rect><line class="list-item" y1="7" y2="7" x1="6" x2="18"></line><line class="list-item" y2="12" y1="12" x1="6" x2="18"></line><line class="list-item" y1="17" y2="17" x1="6" x2="18">`);
9341
- var _tmpl$13 = /* @__PURE__ */ template(`<svg version="1.0" viewBox="0 0 633 633"><linearGradient id="a" x1="-666.45" x2="-666.45" y1="163.28" y2="163.99" gradientTransform="matrix(633 0 0 633 422177 -103358)" gradientUnits="userSpaceOnUse"><stop stop-color="#6BDAFF" offset="0"></stop><stop stop-color="#F9FFB5" offset=".32"></stop><stop stop-color="#FFA770" offset=".71"></stop><stop stop-color="#FF7373" offset="1"></stop></linearGradient><circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)"></circle><defs><filter id="am" x="-137.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="b" x="-137.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#b)"><ellipse cx="89.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ah" x="316.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="k" x="316.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#k)"><ellipse cx="543.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ae" x="-137.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="j" x="-137.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#j)"><ellipse cx="89.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="ai" x="316.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="i" x="316.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#i)"><ellipse cx="543.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="aj" x="-137.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="h" x="-137.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#h)"><ellipse cx="89.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="ag" x="316.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="g" x="316.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#g)"><ellipse cx="543.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="af" x="272.2" y="308" width="176.9" height="129.3" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="f" x="272.2" y="308" width="176.9" height="129.3" maskUnits="userSpaceOnUse"><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#f)"><line x1="436" x2="431" y1="403.2" y2="431.8" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="291" x2="280" y1="341.5" y2="403.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="332.9" x2="328.6" y1="384.1" y2="411.2" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><linearGradient id="m" x1="-670.75" x2="-671.59" y1="164.4" y2="164.49" gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)" gradientUnits="userSpaceOnUse"><stop stop-color="#EE2700" offset="0"></stop><stop stop-color="#FF008E" offset="1"></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z" clip-rule="evenodd" fill="url(#m)" fill-rule="evenodd"></path><line x1="428.2" x2="429.1" y1="384.5" y2="378" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="395.2" x2="396.1" y1="379.5" y2="373" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="362.2" x2="363.1" y1="373.5" y2="367.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="324.2" x2="328.4" y1="351.3" y2="347.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="303.2" x2="307.4" y1="331.3" y2="327.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line></g><defs><filter id="ak" x="73.2" y="113.8" width="280.6" height="317.4" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="e" x="73.2" y="113.8" width="280.6" height="317.4" maskUnits="userSpaceOnUse"><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#e)"><linearGradient id="n" x1="-672.16" x2="-672.16" y1="165.03" y2="166.03" gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)" gradientUnits="userSpaceOnUse"><stop stop-color="#A17500" offset="0"></stop><stop stop-color="#5D2100" offset="1"></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6" clip-rule="evenodd" fill="url(#n)" fill-rule="evenodd"></path><g stroke="#2F8A00"><linearGradient id="r" x1="-660.23" x2="-660.23" y1="166.72" y2="167.72" gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z" clip-rule="evenodd" fill="url(#r)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="s" x1="-661.36" x2="-661.36" y1="164.18" y2="165.18" gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z" clip-rule="evenodd" fill="url(#s)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="q" x1="-656.79" x2="-656.79" y1="165.15" y2="166.15" gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z" clip-rule="evenodd" fill="url(#q)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="p" x1="-663.07" x2="-663.07" y1="165.44" y2="166.44" gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z" clip-rule="evenodd" fill="url(#p)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="o" x1="-662.57" x2="-662.57" y1="164.44" y2="165.44" gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z" clip-rule="evenodd" fill="url(#o)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="l" x1="-656.43" x2="-656.43" y1="163.86" y2="164.86" gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z" clip-rule="evenodd" fill="url(#l)" fill-rule="evenodd" stroke-width="13"></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32" fill="none" stroke-linecap="round" stroke-width="8"></path></g></g><defs><filter id="al" x="50.5" y="399" width="532" height="633" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="d" x="50.5" y="399" width="532" height="633" maskUnits="userSpaceOnUse"><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#d)"><linearGradient id="u" x1="-666.06" x2="-666.23" y1="163.36" y2="163.75" gradientTransform="matrix(532 0 0 633 354760 -102959)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF400" offset="0"></stop><stop stop-color="#3C8700" offset="1"></stop></linearGradient><ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)"></ellipse></g><defs><filter id="ad" x="391" y="-24" width="288" height="283" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="c" x="391" y="-24" width="288" height="283" maskUnits="userSpaceOnUse"><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#c)"><linearGradient id="t" x1="-664.56" x2="-664.56" y1="163.79" y2="164.79" gradientTransform="matrix(227 0 0 227 151421 -37204)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF00" offset="0"></stop><stop stop-color="#FF9D00" offset="1"></stop></linearGradient><circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)"></circle><linearGradient id="v" x1="-644.5" x2="-645.77" y1="342" y2="342" gradientTransform="matrix(30 0 0 1 19770 -253)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="427" x2="397" y1="89" y2="89" fill="none" stroke="url(#v)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="aa" x1="-641.56" x2="-642.83" y1="196.02" y2="196.07" gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="430.5" x2="404" y1="55.5" y2="50" fill="none" stroke="url(#aa)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="w" x1="-643.73" x2="-645" y1="185.83" y2="185.9" gradientTransform="matrix(29 0 0 8 19107 -1361)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="431" x2="402" y1="122" y2="130" fill="none" stroke="url(#w)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ac" x1="-638.94" x2="-640.22" y1="177.09" y2="177.39" gradientTransform="matrix(24 0 0 13 15783 -2145)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="442" x2="418" y1="153" y2="166" fill="none" stroke="url(#ac)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ab" x1="-633.42" x2="-634.7" y1="172.41" y2="173.31" gradientTransform="matrix(20 0 0 19 13137 -3096)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="464" x2="444" y1="180" y2="199" fill="none" stroke="url(#ab)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="y" x1="-619.05" x2="-619.52" y1="170.82" y2="171.82" gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="491.4" x2="477.5" y1="203" y2="225.9" fill="none" stroke="url(#y)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="x" x1="-578.5" x2="-578.63" y1="170.31" y2="171.31" gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="524.5" x2="517" y1="219.5" y2="244" fill="none" stroke="url(#x)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="z" x1="666.5" x2="666.5" y1="170.31" y2="171.31" gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="564.5" x2="565" y1="228.5" y2="253" fill="none" stroke="url(#z)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12">`);
9335
+ var _tmpl$ = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9336
+ var _tmpl$2 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9337
+ var _tmpl$3 = /* @__PURE__ */ template(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9338
+ var _tmpl$4 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9339
+ var _tmpl$5 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9340
+ var _tmpl$6 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9341
+ var _tmpl$7 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9342
+ var _tmpl$8 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9343
+ var _tmpl$9 = /* @__PURE__ */ template(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
9344
+ var _tmpl$10 = /* @__PURE__ */ template(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
9345
+ var _tmpl$11 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9346
+ var _tmpl$12 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`);
9347
+ var _tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9348
+ var _tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9349
+ var _tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
9350
+ var _tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9351
+ var _tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
9342
9352
  function Search() {
9343
9353
  return _tmpl$();
9344
9354
  }
@@ -9368,41 +9378,145 @@ function ArrowRight() {
9368
9378
  return _el$7;
9369
9379
  })();
9370
9380
  }
9371
- function Wifi() {
9381
+ function Sun() {
9372
9382
  return _tmpl$6();
9373
9383
  }
9374
- function Offline() {
9375
- return (() => {
9376
- const _el$9 = _tmpl$7();
9377
- createRenderEffect((_p$) => {
9378
- const _v$ = tokens.colors.yellow[500], _v$2 = tokens.colors.yellow[500];
9379
- _v$ !== _p$._v$ && setAttribute(_el$9, "stroke", _p$._v$ = _v$);
9380
- _v$2 !== _p$._v$2 && setAttribute(_el$9, "fill", _p$._v$2 = _v$2);
9381
- return _p$;
9382
- }, {
9383
- _v$: void 0,
9384
- _v$2: void 0
9385
- });
9386
- return _el$9;
9387
- })();
9384
+ function Moon() {
9385
+ return _tmpl$7();
9388
9386
  }
9389
- function Settings() {
9387
+ function Monitor() {
9390
9388
  return _tmpl$8();
9391
9389
  }
9392
- function Copier() {
9390
+ function Wifi() {
9393
9391
  return _tmpl$9();
9394
9392
  }
9395
- function CopiedCopier() {
9393
+ function Offline() {
9396
9394
  return _tmpl$10();
9397
9395
  }
9398
- function ErrorCopier() {
9396
+ function Settings() {
9399
9397
  return _tmpl$11();
9400
9398
  }
9401
- function List() {
9399
+ function Copier() {
9402
9400
  return _tmpl$12();
9403
9401
  }
9402
+ function CopiedCopier(props) {
9403
+ return (() => {
9404
+ const _el$15 = _tmpl$13(), _el$16 = _el$15.firstChild;
9405
+ createRenderEffect(() => setAttribute(_el$16, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
9406
+ return _el$15;
9407
+ })();
9408
+ }
9409
+ function ErrorCopier() {
9410
+ return _tmpl$14();
9411
+ }
9412
+ function List() {
9413
+ return _tmpl$15();
9414
+ }
9415
+ function Check(props) {
9416
+ return [createComponent(Show, {
9417
+ get when() {
9418
+ return props.checked;
9419
+ },
9420
+ get children() {
9421
+ const _el$19 = _tmpl$13(), _el$20 = _el$19.firstChild;
9422
+ createRenderEffect(() => setAttribute(_el$20, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
9423
+ return _el$19;
9424
+ }
9425
+ }), createComponent(Show, {
9426
+ get when() {
9427
+ return !props.checked;
9428
+ },
9429
+ get children() {
9430
+ const _el$21 = _tmpl$16(), _el$22 = _el$21.firstChild;
9431
+ createRenderEffect(() => setAttribute(_el$22, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
9432
+ return _el$21;
9433
+ }
9434
+ })];
9435
+ }
9404
9436
  function TanstackLogo() {
9405
- return _tmpl$13();
9437
+ const id = createUniqueId();
9438
+ return (() => {
9439
+ const _el$23 = _tmpl$17(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$26.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$60.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$70.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$88.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$95.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling;
9440
+ setAttribute(_el$24, "id", `a-${id}`);
9441
+ setAttribute(_el$25, "fill", `url(#a-${id})`);
9442
+ setAttribute(_el$27, "id", `am-${id}`);
9443
+ setAttribute(_el$28, "id", `b-${id}`);
9444
+ setAttribute(_el$29, "filter", `url(#am-${id})`);
9445
+ setAttribute(_el$30, "mask", `url(#b-${id})`);
9446
+ setAttribute(_el$32, "id", `ah-${id}`);
9447
+ setAttribute(_el$33, "id", `k-${id}`);
9448
+ setAttribute(_el$34, "filter", `url(#ah-${id})`);
9449
+ setAttribute(_el$35, "mask", `url(#k-${id})`);
9450
+ setAttribute(_el$37, "id", `ae-${id}`);
9451
+ setAttribute(_el$38, "id", `j-${id}`);
9452
+ setAttribute(_el$39, "filter", `url(#ae-${id})`);
9453
+ setAttribute(_el$40, "mask", `url(#j-${id})`);
9454
+ setAttribute(_el$42, "id", `ai-${id}`);
9455
+ setAttribute(_el$43, "id", `i-${id}`);
9456
+ setAttribute(_el$44, "filter", `url(#ai-${id})`);
9457
+ setAttribute(_el$45, "mask", `url(#i-${id})`);
9458
+ setAttribute(_el$47, "id", `aj-${id}`);
9459
+ setAttribute(_el$48, "id", `h-${id}`);
9460
+ setAttribute(_el$49, "filter", `url(#aj-${id})`);
9461
+ setAttribute(_el$50, "mask", `url(#h-${id})`);
9462
+ setAttribute(_el$52, "id", `ag-${id}`);
9463
+ setAttribute(_el$53, "id", `g-${id}`);
9464
+ setAttribute(_el$54, "filter", `url(#ag-${id})`);
9465
+ setAttribute(_el$55, "mask", `url(#g-${id})`);
9466
+ setAttribute(_el$57, "id", `af-${id}`);
9467
+ setAttribute(_el$58, "id", `f-${id}`);
9468
+ setAttribute(_el$59, "filter", `url(#af-${id})`);
9469
+ setAttribute(_el$60, "mask", `url(#f-${id})`);
9470
+ setAttribute(_el$64, "id", `m-${id}`);
9471
+ setAttribute(_el$65, "fill", `url(#m-${id})`);
9472
+ setAttribute(_el$67, "id", `ak-${id}`);
9473
+ setAttribute(_el$68, "id", `e-${id}`);
9474
+ setAttribute(_el$69, "filter", `url(#ak-${id})`);
9475
+ setAttribute(_el$70, "mask", `url(#e-${id})`);
9476
+ setAttribute(_el$71, "id", `n-${id}`);
9477
+ setAttribute(_el$72, "fill", `url(#n-${id})`);
9478
+ setAttribute(_el$74, "id", `r-${id}`);
9479
+ setAttribute(_el$75, "fill", `url(#r-${id})`);
9480
+ setAttribute(_el$76, "id", `s-${id}`);
9481
+ setAttribute(_el$77, "fill", `url(#s-${id})`);
9482
+ setAttribute(_el$78, "id", `q-${id}`);
9483
+ setAttribute(_el$79, "fill", `url(#q-${id})`);
9484
+ setAttribute(_el$80, "id", `p-${id}`);
9485
+ setAttribute(_el$81, "fill", `url(#p-${id})`);
9486
+ setAttribute(_el$82, "id", `o-${id}`);
9487
+ setAttribute(_el$83, "fill", `url(#o-${id})`);
9488
+ setAttribute(_el$84, "id", `l-${id}`);
9489
+ setAttribute(_el$85, "fill", `url(#l-${id})`);
9490
+ setAttribute(_el$87, "id", `al-${id}`);
9491
+ setAttribute(_el$88, "id", `d-${id}`);
9492
+ setAttribute(_el$89, "filter", `url(#al-${id})`);
9493
+ setAttribute(_el$90, "mask", `url(#d-${id})`);
9494
+ setAttribute(_el$91, "id", `u-${id}`);
9495
+ setAttribute(_el$92, "fill", `url(#u-${id})`);
9496
+ setAttribute(_el$94, "id", `ad-${id}`);
9497
+ setAttribute(_el$95, "id", `c-${id}`);
9498
+ setAttribute(_el$96, "filter", `url(#ad-${id})`);
9499
+ setAttribute(_el$97, "mask", `url(#c-${id})`);
9500
+ setAttribute(_el$98, "id", `t-${id}`);
9501
+ setAttribute(_el$99, "fill", `url(#t-${id})`);
9502
+ setAttribute(_el$100, "id", `v-${id}`);
9503
+ setAttribute(_el$101, "stroke", `url(#v-${id})`);
9504
+ setAttribute(_el$102, "id", `aa-${id}`);
9505
+ setAttribute(_el$103, "stroke", `url(#aa-${id})`);
9506
+ setAttribute(_el$104, "id", `w-${id}`);
9507
+ setAttribute(_el$105, "stroke", `url(#w-${id})`);
9508
+ setAttribute(_el$106, "id", `ac-${id}`);
9509
+ setAttribute(_el$107, "stroke", `url(#ac-${id})`);
9510
+ setAttribute(_el$108, "id", `ab-${id}`);
9511
+ setAttribute(_el$109, "stroke", `url(#ab-${id})`);
9512
+ setAttribute(_el$110, "id", `y-${id}`);
9513
+ setAttribute(_el$111, "stroke", `url(#y-${id})`);
9514
+ setAttribute(_el$112, "id", `x-${id}`);
9515
+ setAttribute(_el$113, "stroke", `url(#x-${id})`);
9516
+ setAttribute(_el$114, "id", `z-${id}`);
9517
+ setAttribute(_el$115, "stroke", `url(#z-${id})`);
9518
+ return _el$23;
9519
+ })();
9406
9520
  }
9407
9521
 
9408
9522
  // src/Context.ts
@@ -9415,18 +9529,25 @@ var QueryDevtoolsContext = createContext({
9415
9529
  function useQueryDevtoolsContext() {
9416
9530
  return useContext(QueryDevtoolsContext);
9417
9531
  }
9532
+ var ThemeContext = createContext(
9533
+ () => "dark"
9534
+ );
9535
+ function useTheme() {
9536
+ return useContext(ThemeContext);
9537
+ }
9418
9538
 
9419
9539
  // src/Explorer.tsx
9420
- var _tmpl$14 = /* @__PURE__ */ template(`<span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9540
+ var _tmpl$18 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9421
9541
  var _tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
9422
- var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items" aria-label="Remove all items">`);
9423
- var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item" aria-label="Delete item">`);
9424
- var _tmpl$52 = /* @__PURE__ */ template(`<div>`);
9425
- var _tmpl$62 = /* @__PURE__ */ template(`<div><button> <span></span> <span> `);
9426
- var _tmpl$72 = /* @__PURE__ */ template(`<input>`);
9427
- var _tmpl$82 = /* @__PURE__ */ template(`<div><span>:`);
9428
- var _tmpl$92 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
9429
- var _tmpl$102 = /* @__PURE__ */ template(`<span>`);
9542
+ var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
9543
+ var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
9544
+ var _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
9545
+ var _tmpl$62 = /* @__PURE__ */ template(`<div>`);
9546
+ var _tmpl$72 = /* @__PURE__ */ template(`<div><button> <span></span> <span> `);
9547
+ var _tmpl$82 = /* @__PURE__ */ template(`<input>`);
9548
+ var _tmpl$92 = /* @__PURE__ */ template(`<span>`);
9549
+ var _tmpl$102 = /* @__PURE__ */ template(`<div><span>:`);
9550
+ var _tmpl$112 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
9430
9551
  function chunkArray(array, size2) {
9431
9552
  if (size2 < 1)
9432
9553
  return [];
@@ -9439,10 +9560,13 @@ function chunkArray(array, size2) {
9439
9560
  return result;
9440
9561
  }
9441
9562
  var Expander = (props) => {
9442
- const styles = getStyles();
9563
+ const theme = useTheme();
9564
+ const styles = createMemo(() => {
9565
+ return theme() === "dark" ? darkStyles : lightStyles;
9566
+ });
9443
9567
  return (() => {
9444
- const _el$ = _tmpl$14();
9445
- createRenderEffect(() => className(_el$, clsx(styles.expander, u`
9568
+ const _el$ = _tmpl$18();
9569
+ createRenderEffect(() => className(_el$, clsx(styles().expander, u`
9446
9570
  transform: rotate(${props.expanded ? 90 : 0}deg);
9447
9571
  `, props.expanded && u`
9448
9572
  & svg {
@@ -9453,7 +9577,10 @@ var Expander = (props) => {
9453
9577
  })();
9454
9578
  };
9455
9579
  var CopyButton = (props) => {
9456
- const styles = getStyles();
9580
+ const theme = useTheme();
9581
+ const styles = createMemo(() => {
9582
+ return theme() === "dark" ? darkStyles : lightStyles;
9583
+ });
9457
9584
  const [copyState, setCopyState] = createSignal("NoCopy");
9458
9585
  return (() => {
9459
9586
  const _el$2 = _tmpl$22();
@@ -9484,7 +9611,11 @@ var CopyButton = (props) => {
9484
9611
  return copyState() === "SuccessCopy";
9485
9612
  },
9486
9613
  get children() {
9487
- return createComponent(CopiedCopier, {});
9614
+ return createComponent(CopiedCopier, {
9615
+ get theme() {
9616
+ return theme();
9617
+ }
9618
+ });
9488
9619
  }
9489
9620
  }), createComponent(Match, {
9490
9621
  get when() {
@@ -9497,7 +9628,7 @@ var CopyButton = (props) => {
9497
9628
  }
9498
9629
  }));
9499
9630
  createRenderEffect((_p$) => {
9500
- const _v$ = styles.actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
9631
+ const _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
9501
9632
  _v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
9502
9633
  _v$2 !== _p$._v$2 && setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
9503
9634
  return _p$;
@@ -9509,7 +9640,10 @@ var CopyButton = (props) => {
9509
9640
  })();
9510
9641
  };
9511
9642
  var ClearArrayButton = (props) => {
9512
- const styles = getStyles();
9643
+ const theme = useTheme();
9644
+ const styles = createMemo(() => {
9645
+ return theme() === "dark" ? darkStyles : lightStyles;
9646
+ });
9513
9647
  const queryClient = useQueryDevtoolsContext().client;
9514
9648
  return (() => {
9515
9649
  const _el$3 = _tmpl$32();
@@ -9519,12 +9653,15 @@ var ClearArrayButton = (props) => {
9519
9653
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
9520
9654
  };
9521
9655
  insert(_el$3, createComponent(List, {}));
9522
- createRenderEffect(() => className(_el$3, styles.actionButton));
9656
+ createRenderEffect(() => className(_el$3, styles().actionButton));
9523
9657
  return _el$3;
9524
9658
  })();
9525
9659
  };
9526
9660
  var DeleteItemButton = (props) => {
9527
- const styles = getStyles();
9661
+ const theme = useTheme();
9662
+ const styles = createMemo(() => {
9663
+ return theme() === "dark" ? darkStyles : lightStyles;
9664
+ });
9528
9665
  const queryClient = useQueryDevtoolsContext().client;
9529
9666
  return (() => {
9530
9667
  const _el$4 = _tmpl$42();
@@ -9534,15 +9671,46 @@ var DeleteItemButton = (props) => {
9534
9671
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
9535
9672
  };
9536
9673
  insert(_el$4, createComponent(Trash, {}));
9537
- createRenderEffect(() => className(_el$4, clsx(styles.actionButton)));
9674
+ createRenderEffect(() => className(_el$4, clsx(styles().actionButton)));
9538
9675
  return _el$4;
9539
9676
  })();
9540
9677
  };
9678
+ var ToggleValueButton = (props) => {
9679
+ const theme = useTheme();
9680
+ const styles = createMemo(() => {
9681
+ return theme() === "dark" ? darkStyles : lightStyles;
9682
+ });
9683
+ const queryClient = useQueryDevtoolsContext().client;
9684
+ return (() => {
9685
+ const _el$5 = _tmpl$52();
9686
+ _el$5.$$click = () => {
9687
+ const oldData = props.activeQuery.state.data;
9688
+ const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
9689
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
9690
+ };
9691
+ insert(_el$5, createComponent(Check, {
9692
+ get theme() {
9693
+ return theme();
9694
+ },
9695
+ get checked() {
9696
+ return props.value;
9697
+ }
9698
+ }));
9699
+ createRenderEffect(() => className(_el$5, clsx(styles().actionButton, u`
9700
+ width: ${tokens.size[3.5]};
9701
+ height: ${tokens.size[3.5]};
9702
+ `)));
9703
+ return _el$5;
9704
+ })();
9705
+ };
9541
9706
  function isIterable(x) {
9542
9707
  return Symbol.iterator in x;
9543
9708
  }
9544
9709
  function Explorer(props) {
9545
- const styles = getStyles();
9710
+ const theme = useTheme();
9711
+ const styles = createMemo(() => {
9712
+ return theme() === "dark" ? darkStyles : lightStyles;
9713
+ });
9546
9714
  const queryClient = useQueryDevtoolsContext().client;
9547
9715
  const [expanded, setExpanded] = createSignal((props.defaultExpanded || []).includes(props.label));
9548
9716
  const toggleExpanded = () => setExpanded((old) => !old);
@@ -9585,36 +9753,36 @@ function Explorer(props) {
9585
9753
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
9586
9754
  const currentDataPath = props.dataPath ?? [];
9587
9755
  return (() => {
9588
- const _el$5 = _tmpl$52();
9589
- insert(_el$5, createComponent(Show, {
9756
+ const _el$6 = _tmpl$62();
9757
+ insert(_el$6, createComponent(Show, {
9590
9758
  get when() {
9591
9759
  return subEntryPages().length;
9592
9760
  },
9593
9761
  get children() {
9594
9762
  return [(() => {
9595
- const _el$6 = _tmpl$62(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.firstChild;
9596
- _el$7.$$click = () => toggleExpanded();
9597
- insert(_el$7, createComponent(Expander, {
9763
+ const _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
9764
+ _el$8.$$click = () => toggleExpanded();
9765
+ insert(_el$8, createComponent(Expander, {
9598
9766
  get expanded() {
9599
9767
  return expanded();
9600
9768
  }
9601
- }), _el$8);
9602
- insert(_el$9, () => props.label);
9603
- insert(_el$11, () => String(type()).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$12);
9604
- insert(_el$11, () => subEntries().length, _el$12);
9605
- insert(_el$11, () => subEntries().length > 1 ? `items` : `item`, null);
9606
- insert(_el$6, createComponent(Show, {
9769
+ }), _el$9);
9770
+ insert(_el$10, () => props.label);
9771
+ insert(_el$12, () => String(type()).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$13);
9772
+ insert(_el$12, () => subEntries().length, _el$13);
9773
+ insert(_el$12, () => subEntries().length > 1 ? `items` : `item`, null);
9774
+ insert(_el$7, createComponent(Show, {
9607
9775
  get when() {
9608
9776
  return props.editable;
9609
9777
  },
9610
9778
  get children() {
9611
- const _el$13 = _tmpl$52();
9612
- insert(_el$13, createComponent(CopyButton, {
9779
+ const _el$14 = _tmpl$62();
9780
+ insert(_el$14, createComponent(CopyButton, {
9613
9781
  get value() {
9614
9782
  return props.value;
9615
9783
  }
9616
9784
  }), null);
9617
- insert(_el$13, createComponent(Show, {
9785
+ insert(_el$14, createComponent(Show, {
9618
9786
  get when() {
9619
9787
  return props.itemsDeletable && props.activeQuery !== void 0;
9620
9788
  },
@@ -9627,7 +9795,7 @@ function Explorer(props) {
9627
9795
  });
9628
9796
  }
9629
9797
  }), null);
9630
- insert(_el$13, createComponent(Show, {
9798
+ insert(_el$14, createComponent(Show, {
9631
9799
  get when() {
9632
9800
  return type() === "array" && props.activeQuery !== void 0;
9633
9801
  },
@@ -9640,22 +9808,22 @@ function Explorer(props) {
9640
9808
  });
9641
9809
  }
9642
9810
  }), null);
9643
- createRenderEffect(() => className(_el$13, styles.actions));
9644
- return _el$13;
9811
+ createRenderEffect(() => className(_el$14, styles().actions));
9812
+ return _el$14;
9645
9813
  }
9646
9814
  }), null);
9647
9815
  createRenderEffect((_p$) => {
9648
- const _v$3 = styles.expanderButtonContainer, _v$4 = styles.expanderButton, _v$5 = styles.info;
9649
- _v$3 !== _p$._v$3 && className(_el$6, _p$._v$3 = _v$3);
9650
- _v$4 !== _p$._v$4 && className(_el$7, _p$._v$4 = _v$4);
9651
- _v$5 !== _p$._v$5 && className(_el$11, _p$._v$5 = _v$5);
9816
+ const _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
9817
+ _v$3 !== _p$._v$3 && className(_el$7, _p$._v$3 = _v$3);
9818
+ _v$4 !== _p$._v$4 && className(_el$8, _p$._v$4 = _v$4);
9819
+ _v$5 !== _p$._v$5 && className(_el$12, _p$._v$5 = _v$5);
9652
9820
  return _p$;
9653
9821
  }, {
9654
9822
  _v$3: void 0,
9655
9823
  _v$4: void 0,
9656
9824
  _v$5: void 0
9657
9825
  });
9658
- return _el$6;
9826
+ return _el$7;
9659
9827
  })(), createComponent(Show, {
9660
9828
  get when() {
9661
9829
  return expanded();
@@ -9666,8 +9834,8 @@ function Explorer(props) {
9666
9834
  return subEntryPages().length === 1;
9667
9835
  },
9668
9836
  get children() {
9669
- const _el$14 = _tmpl$52();
9670
- insert(_el$14, createComponent(Key, {
9837
+ const _el$15 = _tmpl$62();
9838
+ insert(_el$15, createComponent(Key, {
9671
9839
  get each() {
9672
9840
  return subEntries();
9673
9841
  },
@@ -9698,38 +9866,38 @@ function Explorer(props) {
9698
9866
  });
9699
9867
  }
9700
9868
  }));
9701
- createRenderEffect(() => className(_el$14, styles.subEntry));
9702
- return _el$14;
9869
+ createRenderEffect(() => className(_el$15, styles().subEntry));
9870
+ return _el$15;
9703
9871
  }
9704
9872
  }), createComponent(Show, {
9705
9873
  get when() {
9706
9874
  return subEntryPages().length > 1;
9707
9875
  },
9708
9876
  get children() {
9709
- const _el$15 = _tmpl$52();
9710
- insert(_el$15, createComponent(Index, {
9877
+ const _el$16 = _tmpl$62();
9878
+ insert(_el$16, createComponent(Index, {
9711
9879
  get each() {
9712
9880
  return subEntryPages();
9713
9881
  },
9714
- children: (entries3, index) => (() => {
9715
- const _el$20 = _tmpl$92(), _el$21 = _el$20.firstChild, _el$22 = _el$21.firstChild, _el$23 = _el$22.firstChild, _el$27 = _el$23.nextSibling, _el$25 = _el$27.nextSibling, _el$28 = _el$25.nextSibling; _el$28.nextSibling;
9716
- _el$22.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
9717
- insert(_el$22, createComponent(Expander, {
9882
+ children: (entries2, index) => (() => {
9883
+ const _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
9884
+ _el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
9885
+ insert(_el$24, createComponent(Expander, {
9718
9886
  get expanded() {
9719
9887
  return expandedPages().includes(index);
9720
9888
  }
9721
- }), _el$23);
9722
- insert(_el$22, index * 100, _el$27);
9723
- insert(_el$22, index * 100 + 100 - 1, _el$28);
9724
- insert(_el$21, createComponent(Show, {
9889
+ }), _el$25);
9890
+ insert(_el$24, index * 100, _el$29);
9891
+ insert(_el$24, index * 100 + 100 - 1, _el$30);
9892
+ insert(_el$23, createComponent(Show, {
9725
9893
  get when() {
9726
9894
  return expandedPages().includes(index);
9727
9895
  },
9728
9896
  get children() {
9729
- const _el$29 = _tmpl$52();
9730
- insert(_el$29, createComponent(Key, {
9897
+ const _el$31 = _tmpl$62();
9898
+ insert(_el$31, createComponent(Key, {
9731
9899
  get each() {
9732
- return entries3();
9900
+ return entries2();
9733
9901
  },
9734
9902
  by: (entry) => entry.label,
9735
9903
  children: (entry) => createComponent(Explorer, {
@@ -9753,70 +9921,96 @@ function Explorer(props) {
9753
9921
  }
9754
9922
  })
9755
9923
  }));
9756
- createRenderEffect(() => className(_el$29, styles.subEntry));
9757
- return _el$29;
9924
+ createRenderEffect(() => className(_el$31, styles().subEntry));
9925
+ return _el$31;
9758
9926
  }
9759
9927
  }), null);
9760
9928
  createRenderEffect((_p$) => {
9761
- const _v$10 = styles.entry, _v$11 = styles.expanderButton;
9762
- _v$10 !== _p$._v$10 && className(_el$21, _p$._v$10 = _v$10);
9763
- _v$11 !== _p$._v$11 && className(_el$22, _p$._v$11 = _v$11);
9929
+ const _v$10 = styles().entry, _v$11 = styles().expanderButton;
9930
+ _v$10 !== _p$._v$10 && className(_el$23, _p$._v$10 = _v$10);
9931
+ _v$11 !== _p$._v$11 && className(_el$24, _p$._v$11 = _v$11);
9764
9932
  return _p$;
9765
9933
  }, {
9766
9934
  _v$10: void 0,
9767
9935
  _v$11: void 0
9768
9936
  });
9769
- return _el$20;
9937
+ return _el$22;
9770
9938
  })()
9771
9939
  }));
9772
- createRenderEffect(() => className(_el$15, styles.subEntry));
9773
- return _el$15;
9940
+ createRenderEffect(() => className(_el$16, styles().subEntry));
9941
+ return _el$16;
9774
9942
  }
9775
9943
  })];
9776
9944
  }
9777
9945
  })];
9778
9946
  }
9779
9947
  }), null);
9780
- insert(_el$5, createComponent(Show, {
9948
+ insert(_el$6, createComponent(Show, {
9781
9949
  get when() {
9782
9950
  return subEntryPages().length === 0;
9783
9951
  },
9784
9952
  get children() {
9785
- const _el$16 = _tmpl$82(), _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild;
9786
- insert(_el$17, () => props.label, _el$18);
9787
- insert(_el$16, createComponent(Show, {
9953
+ const _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
9954
+ insert(_el$18, () => props.label, _el$19);
9955
+ insert(_el$17, createComponent(Show, {
9788
9956
  get when() {
9789
- return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
9957
+ return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number" || type() === "boolean");
9790
9958
  },
9791
9959
  get fallback() {
9792
9960
  return (() => {
9793
- const _el$30 = _tmpl$102();
9794
- insert(_el$30, () => displayValue(props.value));
9795
- createRenderEffect(() => className(_el$30, styles.value));
9796
- return _el$30;
9961
+ const _el$32 = _tmpl$92();
9962
+ insert(_el$32, () => displayValue(props.value));
9963
+ createRenderEffect(() => className(_el$32, styles().value));
9964
+ return _el$32;
9797
9965
  })();
9798
9966
  },
9799
9967
  get children() {
9800
- const _el$19 = _tmpl$72();
9801
- _el$19.addEventListener("change", (changeEvent) => {
9802
- const oldData = props.activeQuery.state.data;
9803
- const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
9804
- queryClient.setQueryData(props.activeQuery.queryKey, newData);
9805
- });
9806
- createRenderEffect((_p$) => {
9807
- const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles.value, styles.editableInput);
9808
- _v$6 !== _p$._v$6 && setAttribute(_el$19, "type", _p$._v$6 = _v$6);
9809
- _v$7 !== _p$._v$7 && className(_el$19, _p$._v$7 = _v$7);
9810
- return _p$;
9811
- }, {
9812
- _v$6: void 0,
9813
- _v$7: void 0
9814
- });
9815
- createRenderEffect(() => _el$19.value = props.value);
9816
- return _el$19;
9968
+ return [createComponent(Show, {
9969
+ get when() {
9970
+ return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
9971
+ },
9972
+ get children() {
9973
+ const _el$20 = _tmpl$82();
9974
+ _el$20.addEventListener("change", (changeEvent) => {
9975
+ const oldData = props.activeQuery.state.data;
9976
+ const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
9977
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
9978
+ });
9979
+ createRenderEffect((_p$) => {
9980
+ const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
9981
+ _v$6 !== _p$._v$6 && setAttribute(_el$20, "type", _p$._v$6 = _v$6);
9982
+ _v$7 !== _p$._v$7 && className(_el$20, _p$._v$7 = _v$7);
9983
+ return _p$;
9984
+ }, {
9985
+ _v$6: void 0,
9986
+ _v$7: void 0
9987
+ });
9988
+ createRenderEffect(() => _el$20.value = props.value);
9989
+ return _el$20;
9990
+ }
9991
+ }), createComponent(Show, {
9992
+ get when() {
9993
+ return type() === "boolean";
9994
+ },
9995
+ get children() {
9996
+ const _el$21 = _tmpl$92();
9997
+ insert(_el$21, createComponent(ToggleValueButton, {
9998
+ get activeQuery() {
9999
+ return props.activeQuery;
10000
+ },
10001
+ dataPath: currentDataPath,
10002
+ get value() {
10003
+ return props.value;
10004
+ }
10005
+ }), null);
10006
+ insert(_el$21, () => displayValue(props.value), null);
10007
+ createRenderEffect(() => className(_el$21, clsx(styles().value, styles().actions, styles().editableInput)));
10008
+ return _el$21;
10009
+ }
10010
+ })];
9817
10011
  }
9818
10012
  }), null);
9819
- insert(_el$16, createComponent(Show, {
10013
+ insert(_el$17, createComponent(Show, {
9820
10014
  get when() {
9821
10015
  return props.editable && props.itemsDeletable && props.activeQuery !== void 0;
9822
10016
  },
@@ -9830,28 +10024,29 @@ function Explorer(props) {
9830
10024
  }
9831
10025
  }), null);
9832
10026
  createRenderEffect((_p$) => {
9833
- const _v$8 = styles.row, _v$9 = styles.label;
9834
- _v$8 !== _p$._v$8 && className(_el$16, _p$._v$8 = _v$8);
9835
- _v$9 !== _p$._v$9 && className(_el$17, _p$._v$9 = _v$9);
10027
+ const _v$8 = styles().row, _v$9 = styles().label;
10028
+ _v$8 !== _p$._v$8 && className(_el$17, _p$._v$8 = _v$8);
10029
+ _v$9 !== _p$._v$9 && className(_el$18, _p$._v$9 = _v$9);
9836
10030
  return _p$;
9837
10031
  }, {
9838
10032
  _v$8: void 0,
9839
10033
  _v$9: void 0
9840
10034
  });
9841
- return _el$16;
10035
+ return _el$17;
9842
10036
  }
9843
10037
  }), null);
9844
- createRenderEffect(() => className(_el$5, styles.entry));
9845
- return _el$5;
10038
+ createRenderEffect(() => className(_el$6, styles().entry));
10039
+ return _el$6;
9846
10040
  })();
9847
10041
  }
9848
- var getStyles = () => {
10042
+ var stylesFactory = (theme) => {
9849
10043
  const {
9850
10044
  colors,
9851
10045
  font,
9852
10046
  size: size2,
9853
10047
  border
9854
10048
  } = tokens;
10049
+ const t2 = (light, dark) => theme === "light" ? light : dark;
9855
10050
  return {
9856
10051
  entry: u`
9857
10052
  & * {
@@ -9865,7 +10060,7 @@ var getStyles = () => {
9865
10060
  subEntry: u`
9866
10061
  margin: 0 0 0 0.5em;
9867
10062
  padding-left: 0.75em;
9868
- border-left: 2px solid ${colors.darkGray[400]};
10063
+ border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
9869
10064
  /* outline: 1px solid ${colors.teal[400]}; */
9870
10065
  `,
9871
10066
  expander: u`
@@ -9914,21 +10109,22 @@ var getStyles = () => {
9914
10109
  }
9915
10110
  `,
9916
10111
  info: u`
9917
- color: ${colors.gray[500]};
10112
+ color: ${t2(colors.gray[500], colors.gray[500])};
9918
10113
  font-size: ${font.size.xs};
9919
10114
  margin-left: ${size2[1]};
9920
10115
  /* outline: 1px solid ${colors.yellow[400]}; */
9921
10116
  `,
9922
10117
  label: u`
9923
- color: ${colors.gray[300]};
10118
+ color: ${t2(colors.gray[700], colors.gray[300])};
9924
10119
  `,
9925
10120
  value: u`
9926
- color: ${colors.purple[400]};
10121
+ color: ${t2(colors.purple[600], colors.purple[400])};
9927
10122
  flex-grow: 1;
9928
10123
  `,
9929
10124
  actions: u`
9930
10125
  display: inline-flex;
9931
10126
  gap: ${size2[2]};
10127
+ align-items: center;
9932
10128
  `,
9933
10129
  row: u`
9934
10130
  display: inline-flex;
@@ -9936,19 +10132,22 @@ var getStyles = () => {
9936
10132
  width: 100%;
9937
10133
  margin-bottom: ${size2[0.5]};
9938
10134
  line-height: 1.125rem;
10135
+ align-items: center;
9939
10136
  `,
9940
10137
  editableInput: u`
9941
10138
  border: none;
9942
- padding: 0px ${size2[1]};
10139
+ padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
9943
10140
  flex-grow: 1;
9944
- background-color: ${colors.gray[900]};
10141
+ border-radius: ${border.radius.xs};
10142
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
9945
10143
 
9946
10144
  &:hover {
9947
- background-color: ${colors.gray[800]};
10145
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
9948
10146
  }
9949
10147
  `,
9950
10148
  actionButton: u`
9951
10149
  background-color: transparent;
10150
+ color: ${t2(colors.gray[500], colors.gray[500])};
9952
10151
  border: none;
9953
10152
  display: inline-flex;
9954
10153
  padding: 0px;
@@ -9961,14 +10160,7 @@ var getStyles = () => {
9961
10160
  z-index: 1;
9962
10161
 
9963
10162
  &:hover svg {
9964
- .copier,
9965
- .list {
9966
- stroke: ${colors.gray[500]} !important;
9967
- }
9968
-
9969
- .list-item {
9970
- stroke: ${colors.gray[700]};
9971
- }
10163
+ color: ${t2(colors.gray[600], colors.gray[400])};
9972
10164
  }
9973
10165
 
9974
10166
  &:focus-visible {
@@ -9979,6 +10171,8 @@ var getStyles = () => {
9979
10171
  `
9980
10172
  };
9981
10173
  };
10174
+ var lightStyles = stylesFactory("light");
10175
+ var darkStyles = stylesFactory("dark");
9982
10176
  delegateEvents(["click"]);
9983
10177
 
9984
10178
  // src/fonts.ts
@@ -9990,7 +10184,7 @@ var loadFonts = () => {
9990
10184
  };
9991
10185
 
9992
10186
  // src/Devtools.tsx
9993
- var _tmpl$15 = /* @__PURE__ */ template(`<div><div aria-hidden="true"></div><button aria-label="Open Tanstack query devtools">`);
10187
+ var _tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
9994
10188
  var _tmpl$23 = /* @__PURE__ */ template(`<div>`);
9995
10189
  var _tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
9996
10190
  var _tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
@@ -10000,22 +10194,27 @@ var _tmpl$73 = /* @__PURE__ */ template(`<span>Top`);
10000
10194
  var _tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
10001
10195
  var _tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
10002
10196
  var _tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
10003
- var _tmpl$112 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key" type="text" placeholder="Filter" class="tsqd-query-filter-textfield"></div><div><select></select></div><button class="tsqd-query-filter-sort-order-btn"></button></div><div><button aria-label="Clear query cache" title="Clear query cache"></button><button></button></div></div><div><div class="tsqd-queries-container">`);
10004
- var _tmpl$122 = /* @__PURE__ */ template(`<option>Sort by `);
10005
- var _tmpl$132 = /* @__PURE__ */ template(`<div class="tsqd-query-disabled-indicator">disabled`);
10006
- var _tmpl$142 = /* @__PURE__ */ template(`<button><div></div><code class="tsqd-query-hash">`);
10007
- var _tmpl$152 = /* @__PURE__ */ template(`<div role="tooltip" id="tsqd-status-tooltip">`);
10008
- var _tmpl$16 = /* @__PURE__ */ template(`<span>`);
10009
- var _tmpl$17 = /* @__PURE__ */ template(`<button><span></span><span>`);
10010
- var _tmpl$18 = /* @__PURE__ */ template(`<button><span></span> Error`);
10011
- var _tmpl$19 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value="" disabled selected>`);
10012
- var _tmpl$20 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class="tsqd-query-details-summary"><pre><code></code></pre><span></span></div><div class="tsqd-query-details-observers-count"><span>Observers:</span><span></span></div><div class="tsqd-query-details-last-updated"><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
10013
- var _tmpl$21 = /* @__PURE__ */ template(`<option>`);
10197
+ var _tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
10198
+ var _tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
10199
+ var _tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
10200
+ var _tmpl$142 = /* @__PURE__ */ template(`<span>System`);
10201
+ var _tmpl$152 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div><select></select></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"title="Clear query cache"></button><button></button></div></div><div><div class=tsqd-queries-container>`);
10202
+ var _tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
10203
+ var _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
10204
+ var _tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
10205
+ var _tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
10206
+ var _tmpl$20 = /* @__PURE__ */ template(`<span>`);
10207
+ var _tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
10208
+ var _tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
10209
+ var _tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
10210
+ var _tmpl$24 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
10211
+ var _tmpl$25 = /* @__PURE__ */ template(`<option>`);
10014
10212
  var firstBreakpoint = 1024;
10015
10213
  var secondBreakpoint = 796;
10016
10214
  var thirdBreakpoint = 700;
10017
10215
  var BUTTON_POSITION = "bottom-right";
10018
10216
  var POSITION = "bottom";
10217
+ var THEME_PREFERENCE = "system";
10019
10218
  var INITIAL_IS_OPEN = false;
10020
10219
  var DEFAULT_HEIGHT = 500;
10021
10220
  var DEFAULT_WIDTH = 500;
@@ -10024,33 +10223,51 @@ var DEFAULT_SORT_ORDER = 1;
10024
10223
  var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
10025
10224
  var [panelWidth, setPanelWidth] = createSignal(0);
10026
10225
  var DevtoolsComponent = (props) => {
10226
+ const [localStore, setLocalStore] = createLocalStorage({
10227
+ prefix: "TanstackQueryDevtools"
10228
+ });
10229
+ const colorScheme = getPreferredColorScheme();
10230
+ const theme = createMemo(() => {
10231
+ const preference = localStore.theme_preference || THEME_PREFERENCE;
10232
+ if (preference !== "system")
10233
+ return preference;
10234
+ return colorScheme();
10235
+ });
10027
10236
  return createComponent(QueryDevtoolsContext.Provider, {
10028
10237
  value: props,
10029
10238
  get children() {
10030
- return createComponent(Devtools, {});
10239
+ return createComponent(ThemeContext.Provider, {
10240
+ value: theme,
10241
+ get children() {
10242
+ return createComponent(Devtools, {
10243
+ localStore,
10244
+ setLocalStore
10245
+ });
10246
+ }
10247
+ });
10031
10248
  }
10032
10249
  });
10033
10250
  };
10034
10251
  var Devtools_default = DevtoolsComponent;
10035
- var Devtools = () => {
10252
+ var Devtools = (props) => {
10036
10253
  loadFonts();
10037
- const styles = getStyles2();
10038
- const [localStore, setLocalStore] = createLocalStorage({
10039
- prefix: "TanstackQueryDevtools"
10254
+ const theme = useTheme();
10255
+ const styles = createMemo(() => {
10256
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10040
10257
  });
10041
10258
  const buttonPosition = createMemo(() => {
10042
10259
  return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
10043
10260
  });
10044
10261
  const isOpen = createMemo(() => {
10045
- return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10262
+ return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10046
10263
  });
10047
10264
  const position = createMemo(() => {
10048
- return localStore.position || useQueryDevtoolsContext().position || POSITION;
10265
+ return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10049
10266
  });
10050
10267
  createEffect(() => {
10051
10268
  const root = document.querySelector(".tsqd-parent-container");
10052
- const height = localStore.height || DEFAULT_HEIGHT;
10053
- const width = localStore.width || DEFAULT_WIDTH;
10269
+ const height = props.localStore.height || DEFAULT_HEIGHT;
10270
+ const width = props.localStore.width || DEFAULT_WIDTH;
10054
10271
  const panelPosition = position();
10055
10272
  root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
10056
10273
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
@@ -10066,8 +10283,12 @@ var Devtools = () => {
10066
10283
  },
10067
10284
  get children() {
10068
10285
  return createComponent(DevtoolsPanel, {
10069
- localStore,
10070
- setLocalStore
10286
+ get localStore() {
10287
+ return props.localStore;
10288
+ },
10289
+ get setLocalStore() {
10290
+ return props.setLocalStore;
10291
+ }
10071
10292
  });
10072
10293
  }
10073
10294
  });
@@ -10081,11 +10302,11 @@ var Devtools = () => {
10081
10302
  return !isOpen();
10082
10303
  },
10083
10304
  get children() {
10084
- const _el$2 = _tmpl$15(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10305
+ const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10085
10306
  insert(_el$3, createComponent(TanstackLogo, {}));
10086
- _el$4.$$click = () => setLocalStore("open", "true");
10307
+ _el$4.$$click = () => props.setLocalStore("open", "true");
10087
10308
  insert(_el$4, createComponent(TanstackLogo, {}));
10088
- createRenderEffect(() => className(_el$2, clsx(styles.devtoolsBtn, styles[`devtoolsBtn-position-${buttonPosition()}`])));
10309
+ createRenderEffect(() => className(_el$2, clsx(styles().devtoolsBtn, styles()[`devtoolsBtn-position-${buttonPosition()}`])));
10089
10310
  return _el$2;
10090
10311
  }
10091
10312
  });
@@ -10116,7 +10337,10 @@ var Devtools = () => {
10116
10337
  })();
10117
10338
  };
10118
10339
  var DevtoolsPanel = (props) => {
10119
- const styles = getStyles2();
10340
+ const theme = useTheme();
10341
+ const styles = createMemo(() => {
10342
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10343
+ });
10120
10344
  const [isResizing, setIsResizing] = createSignal(false);
10121
10345
  const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
10122
10346
  const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
@@ -10225,8 +10449,24 @@ var DevtoolsPanel = (props) => {
10225
10449
  });
10226
10450
  });
10227
10451
  });
10452
+ const getPanelDynamicStyles = () => {
10453
+ const {
10454
+ colors
10455
+ } = tokens;
10456
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10457
+ if (panelWidth() < secondBreakpoint) {
10458
+ return u`
10459
+ flex-direction: column;
10460
+ background-color: ${t2(colors.gray[300], colors.gray[600])};
10461
+ `;
10462
+ }
10463
+ return u`
10464
+ flex-direction: row;
10465
+ background-color: ${t2(colors.gray[200], colors.darkGray[900])};
10466
+ `;
10467
+ };
10228
10468
  return (() => {
10229
- const _el$5 = _tmpl$112(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$32 = _el$14.nextSibling, _el$33 = _el$32.firstChild;
10469
+ const _el$5 = _tmpl$152(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$36 = _el$14.nextSibling, _el$37 = _el$36.firstChild;
10230
10470
  const _ref$ = panelRef;
10231
10471
  typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
10232
10472
  _el$6.$$mousedown = handleDragStart;
@@ -10242,10 +10482,10 @@ var DevtoolsPanel = (props) => {
10242
10482
  _el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
10243
10483
  _el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
10244
10484
  insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
10245
- const _el$34 = _tmpl$122(); _el$34.firstChild;
10246
- _el$34.value = key;
10247
- insert(_el$34, key, null);
10248
- return _el$34;
10485
+ const _el$38 = _tmpl$162(); _el$38.firstChild;
10486
+ _el$38.value = key;
10487
+ insert(_el$38, key, null);
10488
+ return _el$38;
10249
10489
  })()));
10250
10490
  insert(_el$18, createComponent(ChevronDown, {}), null);
10251
10491
  _el$20.$$click = () => {
@@ -10289,7 +10529,7 @@ var DevtoolsPanel = (props) => {
10289
10529
  get children() {
10290
10530
  return [createComponent(index$d.Trigger, {
10291
10531
  get ["class"]() {
10292
- return clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
10532
+ return clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
10293
10533
  },
10294
10534
  get children() {
10295
10535
  return createComponent(Settings, {});
@@ -10298,12 +10538,12 @@ var DevtoolsPanel = (props) => {
10298
10538
  get children() {
10299
10539
  return createComponent(index$d.Content, {
10300
10540
  get ["class"]() {
10301
- return clsx(styles.settingsMenu, "tsqd-settings-menu");
10541
+ return clsx(styles().settingsMenu, "tsqd-settings-menu");
10302
10542
  },
10303
10543
  get children() {
10304
10544
  return [(() => {
10305
10545
  const _el$26 = _tmpl$53();
10306
- createRenderEffect(() => className(_el$26, clsx(styles.settingsMenuHeader, "tsqd-settings-menu-header")));
10546
+ createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
10307
10547
  return _el$26;
10308
10548
  })(), createComponent(index$d.Sub, {
10309
10549
  overlap: true,
@@ -10312,7 +10552,7 @@ var DevtoolsPanel = (props) => {
10312
10552
  get children() {
10313
10553
  return [createComponent(index$d.SubTrigger, {
10314
10554
  get ["class"]() {
10315
- return clsx(styles.settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10555
+ return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10316
10556
  },
10317
10557
  get children() {
10318
10558
  return [_tmpl$63(), createComponent(ChevronDown, {})];
@@ -10321,7 +10561,7 @@ var DevtoolsPanel = (props) => {
10321
10561
  get children() {
10322
10562
  return createComponent(index$d.SubContent, {
10323
10563
  get ["class"]() {
10324
- return clsx(styles.settingsMenu, "tsqd-settings-submenu");
10564
+ return clsx(styles().settingsMenu, "tsqd-settings-submenu");
10325
10565
  },
10326
10566
  get children() {
10327
10567
  return [createComponent(index$d.Item, {
@@ -10330,7 +10570,7 @@ var DevtoolsPanel = (props) => {
10330
10570
  },
10331
10571
  as: "button",
10332
10572
  get ["class"]() {
10333
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10573
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10334
10574
  },
10335
10575
  get children() {
10336
10576
  return [_tmpl$73(), createComponent(ArrowUp, {})];
@@ -10341,7 +10581,7 @@ var DevtoolsPanel = (props) => {
10341
10581
  },
10342
10582
  as: "button",
10343
10583
  get ["class"]() {
10344
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10584
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10345
10585
  },
10346
10586
  get children() {
10347
10587
  return [_tmpl$83(), createComponent(ArrowDown, {})];
@@ -10352,7 +10592,7 @@ var DevtoolsPanel = (props) => {
10352
10592
  },
10353
10593
  as: "button",
10354
10594
  get ["class"]() {
10355
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10595
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10356
10596
  },
10357
10597
  get children() {
10358
10598
  return [_tmpl$93(), createComponent(ArrowLeft, {})];
@@ -10363,7 +10603,7 @@ var DevtoolsPanel = (props) => {
10363
10603
  },
10364
10604
  as: "button",
10365
10605
  get ["class"]() {
10366
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
10606
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
10367
10607
  },
10368
10608
  get children() {
10369
10609
  return [_tmpl$103(), createComponent(ArrowRight, {})];
@@ -10374,6 +10614,64 @@ var DevtoolsPanel = (props) => {
10374
10614
  }
10375
10615
  })];
10376
10616
  }
10617
+ }), createComponent(index$d.Sub, {
10618
+ overlap: true,
10619
+ gutter: 8,
10620
+ shift: -4,
10621
+ get children() {
10622
+ return [createComponent(index$d.SubTrigger, {
10623
+ get ["class"]() {
10624
+ return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10625
+ },
10626
+ get children() {
10627
+ return [_tmpl$113(), createComponent(ChevronDown, {})];
10628
+ }
10629
+ }), createComponent(index$d.Portal, {
10630
+ get children() {
10631
+ return createComponent(index$d.SubContent, {
10632
+ get ["class"]() {
10633
+ return clsx(styles().settingsMenu, "tsqd-settings-submenu");
10634
+ },
10635
+ get children() {
10636
+ return [createComponent(index$d.Item, {
10637
+ onSelect: () => {
10638
+ props.setLocalStore("theme_preference", "light");
10639
+ },
10640
+ as: "button",
10641
+ get ["class"]() {
10642
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10643
+ },
10644
+ get children() {
10645
+ return [_tmpl$122(), createComponent(Sun, {})];
10646
+ }
10647
+ }), createComponent(index$d.Item, {
10648
+ onSelect: () => {
10649
+ props.setLocalStore("theme_preference", "dark");
10650
+ },
10651
+ as: "button",
10652
+ get ["class"]() {
10653
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10654
+ },
10655
+ get children() {
10656
+ return [_tmpl$132(), createComponent(Moon, {})];
10657
+ }
10658
+ }), createComponent(index$d.Item, {
10659
+ onSelect: () => {
10660
+ props.setLocalStore("theme_preference", "system");
10661
+ },
10662
+ as: "button",
10663
+ get ["class"]() {
10664
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10665
+ },
10666
+ get children() {
10667
+ return [_tmpl$142(), createComponent(Monitor, {})];
10668
+ }
10669
+ })];
10670
+ }
10671
+ });
10672
+ }
10673
+ })];
10674
+ }
10377
10675
  })];
10378
10676
  }
10379
10677
  });
@@ -10381,7 +10679,7 @@ var DevtoolsPanel = (props) => {
10381
10679
  })];
10382
10680
  }
10383
10681
  }), null);
10384
- insert(_el$33, createComponent(Key, {
10682
+ insert(_el$37, createComponent(Key, {
10385
10683
  by: (q) => q.queryHash,
10386
10684
  get each() {
10387
10685
  return queries();
@@ -10401,19 +10699,16 @@ var DevtoolsPanel = (props) => {
10401
10699
  }
10402
10700
  }), null);
10403
10701
  createRenderEffect((_p$) => {
10404
- const _v$ = clsx(styles.panel, styles[`panel-position-${position()}`], u`
10405
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
10406
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
10407
- `, {
10702
+ const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
10408
10703
  [u`
10409
10704
  min-width: min-content;
10410
10705
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
10411
- }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles.dragHandle, styles[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles.closeBtn, styles[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles.queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
10706
+ }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
10412
10707
  height: 50%;
10413
10708
  max-height: 50%;
10414
- `, "tsqd-queries-container"), _v$7 = clsx(styles.row, "tsqd-header"), _v$8 = clsx(styles.logo, "tsqd-text-logo-container"), _v$9 = clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles.row, u`
10709
+ `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$9 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles().row, u`
10415
10710
  gap: ${tokens.size[2.5]};
10416
- `, "tsqd-filters-actions-container"), _v$12 = clsx(styles.filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles.filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles.filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles.actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles.overflowQueryContainer, "tsqd-queries-overflow-container");
10711
+ `, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
10417
10712
  _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
10418
10713
  _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
10419
10714
  _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
@@ -10436,7 +10731,7 @@ var DevtoolsPanel = (props) => {
10436
10731
  _v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
10437
10732
  _v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
10438
10733
  _v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
10439
- _v$23 !== _p$._v$23 && className(_el$32, _p$._v$23 = _v$23);
10734
+ _v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
10440
10735
  return _p$;
10441
10736
  }, {
10442
10737
  _v$: void 0,
@@ -10469,7 +10764,15 @@ var DevtoolsPanel = (props) => {
10469
10764
  })();
10470
10765
  };
10471
10766
  var QueryRow = (props) => {
10472
- const styles = getStyles2();
10767
+ const theme = useTheme();
10768
+ const styles = createMemo(() => {
10769
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10770
+ });
10771
+ const {
10772
+ colors,
10773
+ alpha
10774
+ } = tokens;
10775
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10473
10776
  const queryState = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
10474
10777
  queryKey: props.query.queryKey
10475
10778
  })?.state);
@@ -10487,41 +10790,47 @@ var QueryRow = (props) => {
10487
10790
  observerCount: observers(),
10488
10791
  isStale: isStale()
10489
10792
  }));
10793
+ const getObserverCountColorStyles = () => {
10794
+ if (color() === "gray") {
10795
+ return u`
10796
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
10797
+ color: ${t2(colors[color()][700], colors[color()][300])};
10798
+ `;
10799
+ }
10800
+ return u`
10801
+ background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
10802
+ color: ${t2(colors[color()][800], colors[color()][300])};
10803
+ `;
10804
+ };
10490
10805
  return createComponent(Show, {
10491
10806
  get when() {
10492
10807
  return queryState();
10493
10808
  },
10494
10809
  get children() {
10495
- const _el$36 = _tmpl$142(), _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling;
10496
- _el$36.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
10497
- insert(_el$37, observers);
10498
- insert(_el$38, () => props.query.queryHash);
10499
- insert(_el$36, createComponent(Show, {
10810
+ const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
10811
+ _el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
10812
+ insert(_el$41, observers);
10813
+ insert(_el$42, () => props.query.queryHash);
10814
+ insert(_el$40, createComponent(Show, {
10500
10815
  get when() {
10501
10816
  return isDisabled();
10502
10817
  },
10503
10818
  get children() {
10504
- return _tmpl$132();
10819
+ return _tmpl$172();
10505
10820
  }
10506
10821
  }), null);
10507
10822
  createRenderEffect((_p$) => {
10508
- const _v$24 = clsx(styles.queryRow, selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(color() === "gray" ? u`
10509
- background-color: ${tokens.colors[color()][700]};
10510
- color: ${tokens.colors[color()][300]};
10511
- ` : u`
10512
- background-color: ${tokens.colors[color()][900]};
10513
- color: ${tokens.colors[color()][300]};
10514
- `, "tsqd-query-observer-count");
10515
- _v$24 !== _p$._v$24 && className(_el$36, _p$._v$24 = _v$24);
10516
- _v$25 !== _p$._v$25 && setAttribute(_el$36, "aria-label", _p$._v$25 = _v$25);
10517
- _v$26 !== _p$._v$26 && className(_el$37, _p$._v$26 = _v$26);
10823
+ const _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
10824
+ _v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
10825
+ _v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
10826
+ _v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
10518
10827
  return _p$;
10519
10828
  }, {
10520
10829
  _v$24: void 0,
10521
10830
  _v$25: void 0,
10522
10831
  _v$26: void 0
10523
10832
  });
10524
- return _el$36;
10833
+ return _el$40;
10525
10834
  }
10526
10835
  });
10527
10836
  };
@@ -10531,50 +10840,61 @@ var QueryStatusCount = () => {
10531
10840
  const fetching = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "fetching").length);
10532
10841
  const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
10533
10842
  const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
10534
- const styles = getStyles2();
10843
+ const theme = useTheme();
10844
+ const styles = createMemo(() => {
10845
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10846
+ });
10535
10847
  return (() => {
10536
- const _el$40 = _tmpl$23();
10537
- insert(_el$40, createComponent(QueryStatus, {
10848
+ const _el$44 = _tmpl$23();
10849
+ insert(_el$44, createComponent(QueryStatus, {
10538
10850
  label: "Fresh",
10539
10851
  color: "green",
10540
10852
  get count() {
10541
10853
  return fresh();
10542
10854
  }
10543
10855
  }), null);
10544
- insert(_el$40, createComponent(QueryStatus, {
10856
+ insert(_el$44, createComponent(QueryStatus, {
10545
10857
  label: "Fetching",
10546
10858
  color: "blue",
10547
10859
  get count() {
10548
10860
  return fetching();
10549
10861
  }
10550
10862
  }), null);
10551
- insert(_el$40, createComponent(QueryStatus, {
10863
+ insert(_el$44, createComponent(QueryStatus, {
10552
10864
  label: "Paused",
10553
10865
  color: "purple",
10554
10866
  get count() {
10555
10867
  return paused();
10556
10868
  }
10557
10869
  }), null);
10558
- insert(_el$40, createComponent(QueryStatus, {
10870
+ insert(_el$44, createComponent(QueryStatus, {
10559
10871
  label: "Stale",
10560
10872
  color: "yellow",
10561
10873
  get count() {
10562
10874
  return stale();
10563
10875
  }
10564
10876
  }), null);
10565
- insert(_el$40, createComponent(QueryStatus, {
10877
+ insert(_el$44, createComponent(QueryStatus, {
10566
10878
  label: "Inactive",
10567
10879
  color: "gray",
10568
10880
  get count() {
10569
10881
  return inactive();
10570
10882
  }
10571
10883
  }), null);
10572
- createRenderEffect(() => className(_el$40, clsx(styles.queryStatusContainer, "tsqd-query-status-container")));
10573
- return _el$40;
10884
+ createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
10885
+ return _el$44;
10574
10886
  })();
10575
10887
  };
10576
10888
  var QueryStatus = (props) => {
10577
- const styles = getStyles2();
10889
+ const theme = useTheme();
10890
+ const styles = createMemo(() => {
10891
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10892
+ });
10893
+ const {
10894
+ colors,
10895
+ alpha
10896
+ } = tokens;
10897
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10578
10898
  let tagRef;
10579
10899
  const [mouseOver, setMouseOver] = createSignal(false);
10580
10900
  const [focused, setFocused] = createSignal(false);
@@ -10590,78 +10910,83 @@ var QueryStatus = (props) => {
10590
10910
  return true;
10591
10911
  });
10592
10912
  return (() => {
10593
- const _el$41 = _tmpl$17(), _el$43 = _el$41.firstChild, _el$45 = _el$43.nextSibling;
10913
+ const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
10594
10914
  const _ref$3 = tagRef;
10595
- typeof _ref$3 === "function" ? use(_ref$3, _el$41) : tagRef = _el$41;
10596
- _el$41.addEventListener("mouseleave", () => {
10915
+ typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
10916
+ _el$45.addEventListener("mouseleave", () => {
10597
10917
  setMouseOver(false);
10598
10918
  setFocused(false);
10599
10919
  });
10600
- _el$41.addEventListener("mouseenter", () => setMouseOver(true));
10601
- _el$41.addEventListener("blur", () => setFocused(false));
10602
- _el$41.addEventListener("focus", () => setFocused(true));
10603
- spread(_el$41, mergeProps({
10920
+ _el$45.addEventListener("mouseenter", () => setMouseOver(true));
10921
+ _el$45.addEventListener("blur", () => setFocused(false));
10922
+ _el$45.addEventListener("focus", () => setFocused(true));
10923
+ spread(_el$45, mergeProps({
10604
10924
  get disabled() {
10605
10925
  return showLabel();
10606
10926
  },
10607
10927
  get ["class"]() {
10608
- return clsx(styles.queryStatusTag, !showLabel() && u`
10928
+ return clsx(styles().queryStatusTag, !showLabel() && u`
10609
10929
  cursor: pointer;
10610
10930
  &:hover {
10611
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
10931
+ background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
10612
10932
  }
10613
10933
  `, "tsqd-query-status-tag", `tsqd-query-status-tag-${props.label.toLowerCase()}`);
10614
10934
  }
10615
10935
  }, () => mouseOver() || focused() ? {
10616
10936
  "aria-describedby": "tsqd-status-tooltip"
10617
10937
  } : {}), false, true);
10618
- insert(_el$41, createComponent(Show, {
10938
+ insert(_el$45, createComponent(Show, {
10619
10939
  get when() {
10620
10940
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
10621
10941
  },
10622
10942
  get children() {
10623
- const _el$42 = _tmpl$152();
10624
- insert(_el$42, () => props.label);
10625
- createRenderEffect(() => className(_el$42, clsx(styles.statusTooltip, "tsqd-query-status-tooltip")));
10626
- return _el$42;
10943
+ const _el$46 = _tmpl$192();
10944
+ insert(_el$46, () => props.label);
10945
+ createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
10946
+ return _el$46;
10627
10947
  }
10628
- }), _el$43);
10629
- insert(_el$41, createComponent(Show, {
10948
+ }), _el$47);
10949
+ insert(_el$45, createComponent(Show, {
10630
10950
  get when() {
10631
10951
  return showLabel();
10632
10952
  },
10633
10953
  get children() {
10634
- const _el$44 = _tmpl$16();
10635
- insert(_el$44, () => props.label);
10636
- createRenderEffect(() => className(_el$44, clsx(styles.queryStatusTagLabel, "tsqd-query-status-tag-label")));
10637
- return _el$44;
10954
+ const _el$48 = _tmpl$20();
10955
+ insert(_el$48, () => props.label);
10956
+ createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
10957
+ return _el$48;
10638
10958
  }
10639
- }), _el$45);
10640
- insert(_el$45, () => props.count);
10959
+ }), _el$49);
10960
+ insert(_el$49, () => props.count);
10641
10961
  createRenderEffect((_p$) => {
10642
10962
  const _v$27 = clsx(u`
10643
10963
  width: ${tokens.size[1.5]};
10644
10964
  height: ${tokens.size[1.5]};
10645
10965
  border-radius: ${tokens.border.radius.full};
10646
10966
  background-color: ${tokens.colors[props.color][500]};
10647
- `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles.queryStatusCount, props.count > 0 && props.color !== "gray" ? u`
10648
- background-color: ${tokens.colors[props.color][900]};
10649
- color: ${tokens.colors[props.color][300]};
10650
- ` : u`
10651
- color: ${tokens.colors["gray"][400]};
10652
- `, "tsqd-query-status-tag-count");
10653
- _v$27 !== _p$._v$27 && className(_el$43, _p$._v$27 = _v$27);
10654
- _v$28 !== _p$._v$28 && className(_el$45, _p$._v$28 = _v$28);
10967
+ `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
10968
+ background-color: ${t2(colors[props.color][100], colors[props.color][900])};
10969
+ color: ${t2(colors[props.color][700], colors[props.color][300])};
10970
+ `, "tsqd-query-status-tag-count");
10971
+ _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
10972
+ _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
10655
10973
  return _p$;
10656
10974
  }, {
10657
10975
  _v$27: void 0,
10658
10976
  _v$28: void 0
10659
10977
  });
10660
- return _el$41;
10978
+ return _el$45;
10661
10979
  })();
10662
10980
  };
10663
10981
  var QueryDetails = () => {
10664
- const styles = getStyles2();
10982
+ const theme = useTheme();
10983
+ const styles = createMemo(() => {
10984
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10985
+ });
10986
+ const {
10987
+ colors
10988
+ } = tokens;
10989
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10665
10990
  const queryClient = useQueryDevtoolsContext().client;
10666
10991
  const [restoringLoading, setRestoringLoading] = createSignal(false);
10667
10992
  const errorTypes = createMemo(() => {
@@ -10718,24 +11043,38 @@ var QueryDetails = () => {
10718
11043
  setRestoringLoading(false);
10719
11044
  }
10720
11045
  });
11046
+ const getQueryStatusColors = () => {
11047
+ if (color() === "gray") {
11048
+ return u`
11049
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11050
+ color: ${t2(colors[color()][700], colors[color()][300])};
11051
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11052
+ `;
11053
+ }
11054
+ return u`
11055
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
11056
+ color: ${t2(colors[color()][700], colors[color()][300])};
11057
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11058
+ `;
11059
+ };
10721
11060
  return createComponent(Show, {
10722
11061
  get when() {
10723
11062
  return createMemo(() => !!activeQuery())() && activeQueryState();
10724
11063
  },
10725
11064
  get children() {
10726
- const _el$46 = _tmpl$20(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$49.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling, _el$56 = _el$53.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling, _el$59 = _el$48.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$80 = _el$60.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling;
10727
- insert(_el$51, () => displayValue(activeQuery().queryKey, true));
10728
- insert(_el$52, statusLabel);
10729
- insert(_el$55, observerCount);
10730
- insert(_el$58, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
10731
- _el$61.$$click = handleRefetch;
10732
- _el$63.$$click = () => queryClient.invalidateQueries(activeQuery());
10733
- _el$65.$$click = () => queryClient.resetQueries(activeQuery());
10734
- _el$67.$$click = () => {
11065
+ const _el$50 = _tmpl$24(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.firstChild, _el$56 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$57.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$52.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$84 = _el$64.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
11066
+ insert(_el$55, () => displayValue(activeQuery().queryKey, true));
11067
+ insert(_el$56, statusLabel);
11068
+ insert(_el$59, observerCount);
11069
+ insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
11070
+ _el$65.$$click = handleRefetch;
11071
+ _el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
11072
+ _el$69.$$click = () => queryClient.resetQueries(activeQuery());
11073
+ _el$71.$$click = () => {
10735
11074
  queryClient.removeQueries(activeQuery());
10736
11075
  setSelectedQueryHash(null);
10737
11076
  };
10738
- _el$69.$$click = () => {
11077
+ _el$73.$$click = () => {
10739
11078
  if (activeQuery()?.state.data === void 0) {
10740
11079
  setRestoringLoading(true);
10741
11080
  restoreQueryAfterLoadingOrError();
@@ -10763,79 +11102,79 @@ var QueryDetails = () => {
10763
11102
  });
10764
11103
  }
10765
11104
  };
10766
- insert(_el$69, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$71);
10767
- insert(_el$60, createComponent(Show, {
11105
+ insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
11106
+ insert(_el$64, createComponent(Show, {
10768
11107
  get when() {
10769
11108
  return errorTypes().length === 0 || queryStatus() === "error";
10770
11109
  },
10771
11110
  get children() {
10772
- const _el$72 = _tmpl$18(), _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling;
10773
- _el$72.$$click = () => {
11111
+ const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
11112
+ _el$76.$$click = () => {
10774
11113
  if (!activeQuery().state.error) {
10775
11114
  triggerError();
10776
11115
  } else {
10777
11116
  queryClient.resetQueries(activeQuery());
10778
11117
  }
10779
11118
  };
10780
- insert(_el$72, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$74);
11119
+ insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
10781
11120
  createRenderEffect((_p$) => {
10782
11121
  const _v$29 = clsx(u`
10783
- color: ${tokens.colors.red[400]};
11122
+ color: ${t2(colors.red[500], colors.red[400])};
10784
11123
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
10785
- background-color: ${tokens.colors.red[400]};
11124
+ background-color: ${t2(colors.red[500], colors.red[400])};
10786
11125
  `;
10787
- _v$29 !== _p$._v$29 && className(_el$72, _p$._v$29 = _v$29);
10788
- _v$30 !== _p$._v$30 && (_el$72.disabled = _p$._v$30 = _v$30);
10789
- _v$31 !== _p$._v$31 && className(_el$73, _p$._v$31 = _v$31);
11126
+ _v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
11127
+ _v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
11128
+ _v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
10790
11129
  return _p$;
10791
11130
  }, {
10792
11131
  _v$29: void 0,
10793
11132
  _v$30: void 0,
10794
11133
  _v$31: void 0
10795
11134
  });
10796
- return _el$72;
11135
+ return _el$76;
10797
11136
  }
10798
11137
  }), null);
10799
- insert(_el$60, createComponent(Show, {
11138
+ insert(_el$64, createComponent(Show, {
10800
11139
  get when() {
10801
11140
  return !(errorTypes().length === 0 || queryStatus() === "error");
10802
11141
  },
10803
11142
  get children() {
10804
- const _el$75 = _tmpl$19(), _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling; _el$78.firstChild;
10805
- _el$78.addEventListener("change", (e2) => {
10806
- const errorType = errorTypes().find((t2) => t2.name === e2.currentTarget.value);
11143
+ const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
11144
+ _el$82.addEventListener("change", (e2) => {
11145
+ const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
10807
11146
  triggerError(errorType);
10808
11147
  });
10809
- insert(_el$78, createComponent(For, {
11148
+ insert(_el$82, createComponent(For, {
10810
11149
  get each() {
10811
11150
  return errorTypes();
10812
11151
  },
10813
11152
  children: (errorType) => (() => {
10814
- const _el$84 = _tmpl$21();
10815
- insert(_el$84, () => errorType.name);
10816
- createRenderEffect(() => _el$84.value = errorType.name);
10817
- return _el$84;
11153
+ const _el$88 = _tmpl$25();
11154
+ insert(_el$88, () => errorType.name);
11155
+ createRenderEffect(() => _el$88.value = errorType.name);
11156
+ return _el$88;
10818
11157
  })()
10819
11158
  }), null);
10820
- insert(_el$75, createComponent(ChevronDown, {}), null);
11159
+ insert(_el$79, createComponent(ChevronDown, {}), null);
10821
11160
  createRenderEffect((_p$) => {
10822
- const _v$32 = clsx(styles.actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
11161
+ const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
10823
11162
  background-color: ${tokens.colors.red[400]};
10824
11163
  `, _v$34 = queryStatus() === "pending";
10825
- _v$32 !== _p$._v$32 && className(_el$75, _p$._v$32 = _v$32);
10826
- _v$33 !== _p$._v$33 && className(_el$76, _p$._v$33 = _v$33);
10827
- _v$34 !== _p$._v$34 && (_el$78.disabled = _p$._v$34 = _v$34);
11164
+ _v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
11165
+ _v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
11166
+ _v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
10828
11167
  return _p$;
10829
11168
  }, {
10830
11169
  _v$32: void 0,
10831
11170
  _v$33: void 0,
10832
11171
  _v$34: void 0
10833
11172
  });
10834
- return _el$75;
11173
+ return _el$79;
10835
11174
  }
10836
11175
  }), null);
10837
- _el$81.style.setProperty("padding", "0.5rem");
10838
- insert(_el$81, createComponent(Explorer, {
11176
+ _el$85.style.setProperty("padding", "0.5rem");
11177
+ insert(_el$85, createComponent(Explorer, {
10839
11178
  label: "Data",
10840
11179
  defaultExpanded: ["Data"],
10841
11180
  get value() {
@@ -10846,8 +11185,8 @@ var QueryDetails = () => {
10846
11185
  return activeQuery();
10847
11186
  }
10848
11187
  }));
10849
- _el$83.style.setProperty("padding", "0.5rem");
10850
- insert(_el$83, createComponent(Explorer, {
11188
+ _el$87.style.setProperty("padding", "0.5rem");
11189
+ insert(_el$87, createComponent(Explorer, {
10851
11190
  label: "Query",
10852
11191
  defaultExpanded: ["Query", "queryKey"],
10853
11192
  get value() {
@@ -10855,58 +11194,50 @@ var QueryDetails = () => {
10855
11194
  }
10856
11195
  }));
10857
11196
  createRenderEffect((_p$) => {
10858
- const _v$35 = clsx(styles.detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles.detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles.queryDetailsStatus, color() === "gray" ? u`
10859
- background-color: ${tokens.colors[color()][700]};
10860
- color: ${tokens.colors[color()][300]};
10861
- border-color: ${tokens.colors[color()][600]};
10862
- ` : u`
10863
- background-color: ${tokens.colors[color()][900]};
10864
- color: ${tokens.colors[color()][300]};
10865
- border-color: ${tokens.colors[color()][600]};
10866
- `), _v$39 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles.actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
10867
- color: ${tokens.colors.blue[400]};
11197
+ const _v$35 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$39 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
11198
+ color: ${t2(colors.blue[600], colors.blue[400])};
10868
11199
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
10869
- background-color: ${tokens.colors.blue[400]};
11200
+ background-color: ${t2(colors.blue[600], colors.blue[400])};
10870
11201
  `, _v$44 = clsx(u`
10871
- color: ${tokens.colors.yellow[400]};
11202
+ color: ${t2(colors.yellow[600], colors.yellow[400])};
10872
11203
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
10873
- background-color: ${tokens.colors.yellow[400]};
11204
+ background-color: ${t2(colors.yellow[600], colors.yellow[400])};
10874
11205
  `, _v$47 = clsx(u`
10875
- color: ${tokens.colors.gray[300]};
11206
+ color: ${t2(colors.gray[600], colors.gray[300])};
10876
11207
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
10877
- background-color: ${tokens.colors.gray[400]};
11208
+ background-color: ${t2(colors.gray[600], colors.gray[400])};
10878
11209
  `, _v$50 = clsx(u`
10879
- color: ${tokens.colors.pink[400]};
11210
+ color: ${t2(colors.pink[500], colors.pink[400])};
10880
11211
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
10881
- background-color: ${tokens.colors.pink[400]};
11212
+ background-color: ${t2(colors.pink[500], colors.pink[400])};
10882
11213
  `, _v$53 = clsx(u`
10883
- color: ${tokens.colors.cyan[400]};
11214
+ color: ${t2(colors.cyan[500], colors.cyan[400])};
10884
11215
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
10885
- background-color: ${tokens.colors.cyan[400]};
10886
- `, _v$56 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles.detailsHeader, "tsqd-query-details-header");
10887
- _v$35 !== _p$._v$35 && className(_el$46, _p$._v$35 = _v$35);
10888
- _v$36 !== _p$._v$36 && className(_el$47, _p$._v$36 = _v$36);
10889
- _v$37 !== _p$._v$37 && className(_el$48, _p$._v$37 = _v$37);
10890
- _v$38 !== _p$._v$38 && className(_el$52, _p$._v$38 = _v$38);
10891
- _v$39 !== _p$._v$39 && className(_el$59, _p$._v$39 = _v$39);
10892
- _v$40 !== _p$._v$40 && className(_el$60, _p$._v$40 = _v$40);
10893
- _v$41 !== _p$._v$41 && className(_el$61, _p$._v$41 = _v$41);
10894
- _v$42 !== _p$._v$42 && (_el$61.disabled = _p$._v$42 = _v$42);
10895
- _v$43 !== _p$._v$43 && className(_el$62, _p$._v$43 = _v$43);
10896
- _v$44 !== _p$._v$44 && className(_el$63, _p$._v$44 = _v$44);
10897
- _v$45 !== _p$._v$45 && (_el$63.disabled = _p$._v$45 = _v$45);
10898
- _v$46 !== _p$._v$46 && className(_el$64, _p$._v$46 = _v$46);
10899
- _v$47 !== _p$._v$47 && className(_el$65, _p$._v$47 = _v$47);
10900
- _v$48 !== _p$._v$48 && (_el$65.disabled = _p$._v$48 = _v$48);
10901
- _v$49 !== _p$._v$49 && className(_el$66, _p$._v$49 = _v$49);
10902
- _v$50 !== _p$._v$50 && className(_el$67, _p$._v$50 = _v$50);
10903
- _v$51 !== _p$._v$51 && (_el$67.disabled = _p$._v$51 = _v$51);
10904
- _v$52 !== _p$._v$52 && className(_el$68, _p$._v$52 = _v$52);
10905
- _v$53 !== _p$._v$53 && className(_el$69, _p$._v$53 = _v$53);
10906
- _v$54 !== _p$._v$54 && (_el$69.disabled = _p$._v$54 = _v$54);
10907
- _v$55 !== _p$._v$55 && className(_el$70, _p$._v$55 = _v$55);
10908
- _v$56 !== _p$._v$56 && className(_el$80, _p$._v$56 = _v$56);
10909
- _v$57 !== _p$._v$57 && className(_el$82, _p$._v$57 = _v$57);
11216
+ background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11217
+ `, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
11218
+ _v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
11219
+ _v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
11220
+ _v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
11221
+ _v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
11222
+ _v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
11223
+ _v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
11224
+ _v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
11225
+ _v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
11226
+ _v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
11227
+ _v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
11228
+ _v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
11229
+ _v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
11230
+ _v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
11231
+ _v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
11232
+ _v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
11233
+ _v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
11234
+ _v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
11235
+ _v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
11236
+ _v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
11237
+ _v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
11238
+ _v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
11239
+ _v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
11240
+ _v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
10910
11241
  return _p$;
10911
11242
  }, {
10912
11243
  _v$35: void 0,
@@ -10933,7 +11264,7 @@ var QueryDetails = () => {
10933
11264
  _v$56: void 0,
10934
11265
  _v$57: void 0
10935
11266
  });
10936
- return _el$46;
11267
+ return _el$50;
10937
11268
  }
10938
11269
  });
10939
11270
  };
@@ -10973,7 +11304,7 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
10973
11304
  });
10974
11305
  return value;
10975
11306
  };
10976
- var getStyles2 = () => {
11307
+ var stylesFactory2 = (theme) => {
10977
11308
  const {
10978
11309
  colors,
10979
11310
  font,
@@ -10982,6 +11313,7 @@ var getStyles2 = () => {
10982
11313
  shadow,
10983
11314
  border
10984
11315
  } = tokens;
11316
+ const t2 = (light, dark) => theme === "light" ? light : dark;
10985
11317
  return {
10986
11318
  devtoolsBtn: u`
10987
11319
  z-index: 100000;
@@ -11043,8 +11375,6 @@ var getStyles2 = () => {
11043
11375
  display: flex;
11044
11376
  gap: ${tokens.size[0.5]};
11045
11377
  & * {
11046
- font-family: 'Inter', sans-serif;
11047
- color: ${colors.gray[300]};
11048
11378
  box-sizing: border-box;
11049
11379
  text-transform: none;
11050
11380
  }
@@ -11071,7 +11401,7 @@ var getStyles2 = () => {
11071
11401
  left: 0;
11072
11402
  max-height: 90%;
11073
11403
  min-height: 3.5rem;
11074
- border-bottom: ${colors.darkGray[300]} 1px solid;
11404
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11075
11405
  `,
11076
11406
  "panel-position-bottom": u`
11077
11407
  bottom: 0;
@@ -11079,20 +11409,20 @@ var getStyles2 = () => {
11079
11409
  left: 0;
11080
11410
  max-height: 90%;
11081
11411
  min-height: 3.5rem;
11082
- border-top: ${colors.darkGray[300]} 1px solid;
11412
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11083
11413
  `,
11084
11414
  "panel-position-right": u`
11085
11415
  bottom: 0;
11086
11416
  right: 0;
11087
11417
  top: 0;
11088
- border-left: ${colors.darkGray[300]} 1px solid;
11418
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11089
11419
  max-width: 90%;
11090
11420
  `,
11091
11421
  "panel-position-left": u`
11092
11422
  bottom: 0;
11093
11423
  left: 0;
11094
11424
  top: 0;
11095
- border-right: ${colors.darkGray[300]} 1px solid;
11425
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11096
11426
  max-width: 90%;
11097
11427
  `,
11098
11428
  closeBtn: u`
@@ -11103,13 +11433,15 @@ var getStyles2 = () => {
11103
11433
  align-items: center;
11104
11434
  justify-content: center;
11105
11435
  outline: none;
11436
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11106
11437
  &:hover {
11107
- background-color: ${colors.darkGray[500]};
11438
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11108
11439
  }
11109
11440
  &:focus-visible {
11110
11441
  outline: 2px solid ${colors.blue[600]};
11111
11442
  }
11112
11443
  & svg {
11444
+ color: ${t2(colors.gray[600], colors.gray[400])};
11113
11445
  width: ${size2[2]};
11114
11446
  height: ${size2[2]};
11115
11447
  }
@@ -11118,11 +11450,10 @@ var getStyles2 = () => {
11118
11450
  bottom: 0;
11119
11451
  right: ${size2[2]};
11120
11452
  transform: translate(0, 100%);
11121
- background-color: ${colors.darkGray[700]};
11122
- border-right: ${colors.darkGray[300]} 1px solid;
11123
- border-left: ${colors.darkGray[300]} 1px solid;
11453
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11454
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11124
11455
  border-top: none;
11125
- border-bottom: ${colors.darkGray[300]} 1px solid;
11456
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11126
11457
  border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
11127
11458
  padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
11128
11459
 
@@ -11143,10 +11474,9 @@ var getStyles2 = () => {
11143
11474
  top: 0;
11144
11475
  right: ${size2[2]};
11145
11476
  transform: translate(0, -100%);
11146
- background-color: ${colors.darkGray[700]};
11147
- border-right: ${colors.darkGray[300]} 1px solid;
11148
- border-left: ${colors.darkGray[300]} 1px solid;
11149
- border-top: ${colors.darkGray[300]} 1px solid;
11477
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11478
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11479
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11150
11480
  border-bottom: none;
11151
11481
  border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
11152
11482
  padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
@@ -11164,11 +11494,10 @@ var getStyles2 = () => {
11164
11494
  bottom: ${size2[2]};
11165
11495
  left: 0;
11166
11496
  transform: translate(-100%, 0);
11167
- background-color: ${colors.darkGray[700]};
11168
11497
  border-right: none;
11169
- border-left: ${colors.darkGray[300]} 1px solid;
11170
- border-top: ${colors.darkGray[300]} 1px solid;
11171
- border-bottom: ${colors.darkGray[300]} 1px solid;
11498
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11499
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11500
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11172
11501
  border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
11173
11502
  padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
11174
11503
 
@@ -11188,11 +11517,10 @@ var getStyles2 = () => {
11188
11517
  bottom: ${size2[2]};
11189
11518
  right: 0;
11190
11519
  transform: translate(100%, 0);
11191
- background-color: ${colors.darkGray[700]};
11192
11520
  border-left: none;
11193
- border-right: ${colors.darkGray[300]} 1px solid;
11194
- border-top: ${colors.darkGray[300]} 1px solid;
11195
- border-bottom: ${colors.darkGray[300]} 1px solid;
11521
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11522
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11523
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11196
11524
  border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
11197
11525
  padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
11198
11526
 
@@ -11210,15 +11538,18 @@ var getStyles2 = () => {
11210
11538
  `,
11211
11539
  queriesContainer: u`
11212
11540
  flex: 1 1 700px;
11213
- background-color: ${colors.darkGray[700]};
11541
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11214
11542
  display: flex;
11215
11543
  flex-direction: column;
11544
+ & * {
11545
+ font-family: 'Inter', sans-serif;
11546
+ }
11216
11547
  `,
11217
11548
  dragHandle: u`
11218
11549
  position: absolute;
11219
11550
  transition: background-color 0.125s ease;
11220
11551
  &:hover {
11221
- background-color: ${colors.purple[400]}${alpha[90]};
11552
+ background-color: ${colors.purple[400]}${t2("", alpha[90])};
11222
11553
  }
11223
11554
  z-index: 4;
11224
11555
  `,
@@ -11252,7 +11583,7 @@ var getStyles2 = () => {
11252
11583
  align-items: center;
11253
11584
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
11254
11585
  gap: ${tokens.size[3]};
11255
- border-bottom: ${colors.darkGray[500]} 1px solid;
11586
+ border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
11256
11587
  align-items: center;
11257
11588
  & > button {
11258
11589
  padding: 0;
@@ -11279,11 +11610,15 @@ var getStyles2 = () => {
11279
11610
  font-weight: ${font.weight.bold};
11280
11611
  line-height: ${font.lineHeight.xs};
11281
11612
  white-space: nowrap;
11613
+ color: ${t2(colors.gray[600], colors.gray[300])};
11282
11614
  `,
11283
11615
  queryFlavorLogo: u`
11284
11616
  font-weight: ${font.weight.semibold};
11285
11617
  font-size: ${font.size.xs};
11286
- background: linear-gradient(to right, #dd524b, #e9a03b);
11618
+ background: linear-gradient(
11619
+ to right,
11620
+ ${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
11621
+ );
11287
11622
  background-clip: text;
11288
11623
  -webkit-background-clip: text;
11289
11624
  line-height: 1;
@@ -11298,14 +11633,17 @@ var getStyles2 = () => {
11298
11633
  queryStatusTag: u`
11299
11634
  display: flex;
11300
11635
  gap: ${tokens.size[1.5]};
11301
- background: ${colors.darkGray[500]};
11636
+ box-sizing: border-box;
11637
+ height: ${tokens.size[6.5]};
11638
+ background: ${t2(colors.gray[50], colors.darkGray[500])};
11639
+ color: ${t2(colors.gray[700], colors.gray[300])};
11302
11640
  border-radius: ${tokens.border.radius.sm};
11303
11641
  font-size: ${font.size.sm};
11304
11642
  padding: ${tokens.size[1]};
11305
- padding-left: ${tokens.size[2]};
11643
+ padding-left: ${tokens.size[1.5]};
11306
11644
  align-items: center;
11307
11645
  font-weight: ${font.weight.medium};
11308
- border: none;
11646
+ border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
11309
11647
  user-select: none;
11310
11648
  position: relative;
11311
11649
  &:focus-visible {
@@ -11322,8 +11660,8 @@ var getStyles2 = () => {
11322
11660
  display: flex;
11323
11661
  align-items: center;
11324
11662
  justify-content: center;
11325
- color: ${colors.gray[400]};
11326
- background-color: ${colors.darkGray[300]};
11663
+ color: ${t2(colors.gray[500], colors.gray[400])};
11664
+ background-color: ${t2(colors.gray[200], colors.darkGray[300])};
11327
11665
  border-radius: 2px;
11328
11666
  font-variant-numeric: tabular-nums;
11329
11667
  height: ${tokens.size[4.5]};
@@ -11331,15 +11669,15 @@ var getStyles2 = () => {
11331
11669
  statusTooltip: u`
11332
11670
  position: absolute;
11333
11671
  z-index: 1;
11334
- background-color: ${colors.darkGray[500]};
11672
+ background-color: ${t2(colors.gray[50], colors.darkGray[500])};
11335
11673
  top: 100%;
11336
11674
  left: 50%;
11337
11675
  transform: translate(-50%, calc(${tokens.size[2]}));
11338
11676
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11339
- border-radius: ${tokens.border.radius.md};
11677
+ border-radius: ${tokens.border.radius.sm};
11340
11678
  font-size: ${font.size.xs};
11341
- border: 1px solid ${colors.gray[600]};
11342
- color: ${tokens.colors["gray"][300]};
11679
+ border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
11680
+ color: ${t2(colors["gray"][600], colors["gray"][300])};
11343
11681
 
11344
11682
  &::before {
11345
11683
  top: 0px;
@@ -11348,7 +11686,8 @@ var getStyles2 = () => {
11348
11686
  left: 50%;
11349
11687
  transform: translate(-50%, -100%);
11350
11688
  position: absolute;
11351
- border-color: transparent transparent ${colors.gray[600]} transparent;
11689
+ border-color: transparent transparent
11690
+ ${t2(colors.gray[400], colors.gray[600])} transparent;
11352
11691
  border-style: solid;
11353
11692
  border-width: 7px;
11354
11693
  /* transform: rotate(180deg); */
@@ -11359,17 +11698,14 @@ var getStyles2 = () => {
11359
11698
  content: ' ';
11360
11699
  display: block;
11361
11700
  left: 50%;
11362
- transform: translate(-50%, calc(-100% + 2.5px));
11701
+ transform: translate(-50%, calc(-100% + 2px));
11363
11702
  position: absolute;
11364
- border-color: transparent transparent ${colors.darkGray[500]}
11365
- transparent;
11703
+ border-color: transparent transparent
11704
+ ${t2(colors.gray[100], colors.darkGray[500])} transparent;
11366
11705
  border-style: solid;
11367
11706
  border-width: 7px;
11368
11707
  }
11369
11708
  `,
11370
- selectedQueryRow: u`
11371
- background-color: ${colors.darkGray[500]};
11372
- `,
11373
11709
  filtersContainer: u`
11374
11710
  display: flex;
11375
11711
  gap: ${tokens.size[2]};
@@ -11378,47 +11714,52 @@ var getStyles2 = () => {
11378
11714
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11379
11715
  padding-right: ${tokens.size[1.5]};
11380
11716
  border-radius: ${tokens.border.radius.sm};
11381
- background-color: ${colors.darkGray[400]};
11717
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11718
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11719
+ color: ${t2(colors.gray[700], colors.gray[300])};
11382
11720
  font-size: ${font.size.xs};
11383
11721
  display: flex;
11384
11722
  align-items: center;
11385
11723
  line-height: ${font.lineHeight.sm};
11386
11724
  gap: ${tokens.size[1.5]};
11387
11725
  max-width: 160px;
11388
- border: 1px solid ${colors.darkGray[200]};
11389
11726
  &:focus-visible {
11390
11727
  outline-offset: 2px;
11391
11728
  border-radius: ${border.radius.xs};
11392
11729
  outline: 2px solid ${colors.blue[800]};
11393
11730
  }
11731
+ & svg {
11732
+ color: ${t2(colors.gray[500], colors.gray[400])};
11733
+ }
11394
11734
  }
11395
11735
  `,
11396
11736
  filterInput: u`
11397
- padding: ${tokens.size[0.5]} ${tokens.size[2]};
11737
+ padding: ${size2[0.5]} ${size2[2]};
11398
11738
  border-radius: ${tokens.border.radius.sm};
11399
- background-color: ${colors.darkGray[400]};
11739
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11400
11740
  display: flex;
11401
11741
  box-sizing: content-box;
11402
11742
  align-items: center;
11403
11743
  gap: ${tokens.size[1.5]};
11404
11744
  max-width: 160px;
11405
11745
  min-width: 100px;
11406
- border: 1px solid ${colors.darkGray[200]};
11746
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11407
11747
  height: min-content;
11748
+ color: ${t2(colors.gray[600], colors.gray[400])};
11408
11749
  & > svg {
11409
- width: ${tokens.size[3]};
11410
- height: ${tokens.size[3]};
11750
+ width: ${size2[3]};
11751
+ height: ${size2[3]};
11411
11752
  }
11412
11753
  & input {
11413
11754
  font-size: ${font.size.xs};
11414
11755
  width: 100%;
11415
- background-color: ${colors.darkGray[400]};
11756
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11416
11757
  border: none;
11417
11758
  padding: 0;
11418
11759
  line-height: ${font.lineHeight.sm};
11419
- color: ${colors.gray[300]};
11760
+ color: ${t2(colors.gray[700], colors.gray[300])};
11420
11761
  &::placeholder {
11421
- color: ${colors.gray[300]};
11762
+ color: ${t2(colors.gray[700], colors.gray[300])};
11422
11763
  }
11423
11764
  &:focus {
11424
11765
  outline: none;
@@ -11434,24 +11775,26 @@ var getStyles2 = () => {
11434
11775
  filterSelect: u`
11435
11776
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11436
11777
  border-radius: ${tokens.border.radius.sm};
11437
- background-color: ${colors.darkGray[400]};
11778
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11438
11779
  display: flex;
11439
11780
  align-items: center;
11440
11781
  gap: ${tokens.size[1.5]};
11441
11782
  box-sizing: content-box;
11442
11783
  max-width: 160px;
11443
- border: 1px solid ${colors.darkGray[200]};
11784
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11444
11785
  height: min-content;
11445
11786
  & > svg {
11787
+ color: ${t2(colors.gray[600], colors.gray[400])};
11446
11788
  width: ${tokens.size[2]};
11447
11789
  height: ${tokens.size[2]};
11448
11790
  }
11449
11791
  & > select {
11450
11792
  appearance: none;
11793
+ color: ${t2(colors.gray[700], colors.gray[300])};
11451
11794
  min-width: 100px;
11452
11795
  line-height: ${font.lineHeight.sm};
11453
11796
  font-size: ${font.size.xs};
11454
- background-color: ${colors.darkGray[400]};
11797
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11455
11798
  border: none;
11456
11799
  &:focus {
11457
11800
  outline: none;
@@ -11469,7 +11812,8 @@ var getStyles2 = () => {
11469
11812
  `,
11470
11813
  actionsBtn: u`
11471
11814
  border-radius: ${tokens.border.radius.sm};
11472
- background-color: ${colors.darkGray[400]};
11815
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11816
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11473
11817
  width: 1.625rem;
11474
11818
  height: 1.625rem;
11475
11819
  justify-content: center;
@@ -11477,13 +11821,13 @@ var getStyles2 = () => {
11477
11821
  align-items: center;
11478
11822
  gap: ${tokens.size[1.5]};
11479
11823
  max-width: 160px;
11480
- border: 1px solid ${colors.darkGray[200]};
11481
11824
  cursor: pointer;
11482
11825
  padding: 0;
11483
11826
  &:hover {
11484
- background-color: ${colors.darkGray[500]};
11827
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11485
11828
  }
11486
11829
  & svg {
11830
+ color: ${t2(colors.gray[700], colors.gray[300])};
11487
11831
  width: ${tokens.size[3]};
11488
11832
  height: ${tokens.size[3]};
11489
11833
  }
@@ -11493,6 +11837,12 @@ var getStyles2 = () => {
11493
11837
  outline: 2px solid ${colors.blue[800]};
11494
11838
  }
11495
11839
  `,
11840
+ actionsBtnOffline: u`
11841
+ & svg {
11842
+ stroke: ${t2(colors.yellow[700], colors.yellow[500])};
11843
+ fill: ${t2(colors.yellow[700], colors.yellow[500])};
11844
+ }
11845
+ `,
11496
11846
  overflowQueryContainer: u`
11497
11847
  flex: 1;
11498
11848
  overflow-y: auto;
@@ -11505,9 +11855,11 @@ var getStyles2 = () => {
11505
11855
  display: flex;
11506
11856
  align-items: center;
11507
11857
  padding: 0;
11508
- background-color: inherit;
11509
11858
  border: none;
11510
11859
  cursor: pointer;
11860
+ color: ${t2(colors.gray[700], colors.gray[300])};
11861
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11862
+ line-height: 1;
11511
11863
  &:focus {
11512
11864
  outline: none;
11513
11865
  }
@@ -11517,7 +11869,7 @@ var getStyles2 = () => {
11517
11869
  outline: 2px solid ${colors.blue[800]};
11518
11870
  }
11519
11871
  &:hover .tsqd-query-hash {
11520
- background-color: ${colors.darkGray[600]};
11872
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
11521
11873
  }
11522
11874
 
11523
11875
  & .tsqd-query-observer-count {
@@ -11532,7 +11884,7 @@ var getStyles2 = () => {
11532
11884
  font-weight: ${font.weight.medium};
11533
11885
  border-bottom-width: 1px;
11534
11886
  border-bottom-style: solid;
11535
- border-bottom: 1px solid ${colors.darkGray[700]};
11887
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
11536
11888
  }
11537
11889
  & .tsqd-query-hash {
11538
11890
  user-select: text;
@@ -11543,7 +11895,7 @@ var getStyles2 = () => {
11543
11895
  flex: 1;
11544
11896
  padding: ${tokens.size[1]} ${tokens.size[2]};
11545
11897
  font-family: 'Menlo', 'Fira Code', monospace;
11546
- border-bottom: 1px solid ${colors.darkGray[400]};
11898
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11547
11899
  text-align: left;
11548
11900
  text-overflow: clip;
11549
11901
  word-break: break-word;
@@ -11554,15 +11906,20 @@ var getStyles2 = () => {
11554
11906
  display: flex;
11555
11907
  align-items: center;
11556
11908
  padding: 0 ${tokens.size[2]};
11557
- color: ${colors.gray[300]};
11558
- background-color: ${colors.darkGray[600]};
11559
- border-bottom: 1px solid ${colors.darkGray[400]};
11909
+ color: ${t2(colors.gray[800], colors.gray[300])};
11910
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
11911
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11560
11912
  font-size: ${font.size.xs};
11561
11913
  }
11562
11914
  `,
11915
+ selectedQueryRow: u`
11916
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11917
+ `,
11563
11918
  detailsContainer: u`
11564
11919
  flex: 1 1 700px;
11565
- background-color: ${colors.darkGray[700]};
11920
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11921
+ color: ${t2(colors.gray[700], colors.gray[300])};
11922
+ font-family: 'Inter', sans-serif;
11566
11923
  display: flex;
11567
11924
  flex-direction: column;
11568
11925
  overflow-y: auto;
@@ -11570,10 +11927,11 @@ var getStyles2 = () => {
11570
11927
  text-align: left;
11571
11928
  `,
11572
11929
  detailsHeader: u`
11930
+ font-family: 'Inter', sans-serif;
11573
11931
  position: sticky;
11574
11932
  top: 0;
11575
11933
  z-index: 2;
11576
- background-color: ${colors.darkGray[600]};
11934
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
11577
11935
  padding: ${tokens.size[1.5]} ${tokens.size[2]};
11578
11936
  font-weight: ${font.weight.medium};
11579
11937
  font-size: ${font.size.xs};
@@ -11606,6 +11964,10 @@ var getStyles2 = () => {
11606
11964
  font-size: ${font.size.xs};
11607
11965
  line-height: ${font.lineHeight.xs};
11608
11966
  }
11967
+
11968
+ & pre {
11969
+ margin: 0;
11970
+ }
11609
11971
  `,
11610
11972
  queryDetailsStatus: u`
11611
11973
  border: 1px solid ${colors.darkGray[200]};
@@ -11620,12 +11982,13 @@ var getStyles2 = () => {
11620
11982
  gap: ${tokens.size[2]};
11621
11983
  padding: 0px ${tokens.size[2]};
11622
11984
  & > button {
11985
+ font-family: 'Inter', sans-serif;
11623
11986
  font-size: ${font.size.xs};
11624
11987
  padding: ${tokens.size[1]} ${tokens.size[2]};
11625
11988
  display: flex;
11626
11989
  border-radius: ${tokens.border.radius.sm};
11627
- border: 1px solid ${colors.darkGray[400]};
11628
- background-color: ${colors.darkGray[600]};
11990
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
11991
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11629
11992
  align-items: center;
11630
11993
  gap: ${tokens.size[2]};
11631
11994
  font-weight: ${font.weight.medium};
@@ -11637,7 +12000,7 @@ var getStyles2 = () => {
11637
12000
  outline: 2px solid ${colors.blue[800]};
11638
12001
  }
11639
12002
  &:hover {
11640
- background-color: ${colors.darkGray[500]};
12003
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11641
12004
  }
11642
12005
 
11643
12006
  &:disabled {
@@ -11658,17 +12021,17 @@ var getStyles2 = () => {
11658
12021
  display: flex;
11659
12022
  border-radius: ${tokens.border.radius.sm};
11660
12023
  overflow: hidden;
11661
- border: 1px solid ${colors.darkGray[400]};
11662
- background-color: ${colors.darkGray[600]};
12024
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12025
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11663
12026
  align-items: center;
11664
12027
  gap: ${tokens.size[2]};
11665
12028
  font-weight: ${font.weight.medium};
11666
12029
  line-height: ${font.lineHeight.sm};
11667
- color: ${tokens.colors.red[400]};
12030
+ color: ${t2(colors.red[500], colors.red[400])};
11668
12031
  cursor: pointer;
11669
12032
  position: relative;
11670
12033
  &:hover {
11671
- background-color: ${colors.darkGray[500]};
12034
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11672
12035
  }
11673
12036
  & > span {
11674
12037
  width: ${size2[1.5]};
@@ -11709,10 +12072,10 @@ var getStyles2 = () => {
11709
12072
  flex-direction: column;
11710
12073
  gap: ${size2[0.5]};
11711
12074
  border-radius: ${tokens.border.radius.sm};
11712
- border: 1px solid ${colors.gray[700]};
11713
- background-color: ${colors.darkGray[600]};
12075
+ border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
12076
+ background-color: ${t2(colors.gray[50], colors.darkGray[600])};
11714
12077
  font-size: ${font.size.xs};
11715
- color: ${colors.gray[300]};
12078
+ color: ${t2(colors.gray[700], colors.gray[300])};
11716
12079
  z-index: 99999;
11717
12080
  min-width: 120px;
11718
12081
  padding: ${size2[0.5]};
@@ -11722,17 +12085,19 @@ var getStyles2 = () => {
11722
12085
  align-items: center;
11723
12086
  justify-content: space-between;
11724
12087
  border-radius: ${tokens.border.radius.xs};
11725
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12088
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11726
12089
  cursor: pointer;
11727
12090
  background-color: transparent;
11728
12091
  border: none;
12092
+ color: ${t2(colors.gray[700], colors.gray[300])};
11729
12093
  & svg {
12094
+ color: ${t2(colors.gray[600], colors.gray[400])};
11730
12095
  transform: rotate(-90deg);
11731
12096
  width: ${tokens.size[2]};
11732
12097
  height: ${tokens.size[2]};
11733
12098
  }
11734
12099
  &:hover {
11735
- background-color: ${colors.darkGray[500]};
12100
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11736
12101
  }
11737
12102
  &:focus-visible {
11738
12103
  outline-offset: 2px;
@@ -11744,33 +12109,48 @@ var getStyles2 = () => {
11744
12109
  }
11745
12110
  `,
11746
12111
  settingsMenuHeader: u`
11747
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12112
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11748
12113
  font-weight: ${font.weight.medium};
11749
- border-bottom: 1px solid ${colors.darkGray[400]};
11750
- color: ${colors.gray[400]};
12114
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12115
+ color: ${t2(colors.gray[500], colors.gray[400])};
11751
12116
  font-size: ${font.size["xs"]};
11752
12117
  `,
11753
12118
  settingsSubButton: u`
11754
12119
  display: flex;
11755
12120
  align-items: center;
11756
12121
  justify-content: space-between;
11757
- color: ${colors.gray[300]};
12122
+ color: ${t2(colors.gray[700], colors.gray[300])};
11758
12123
  font-size: ${font.size["xs"]};
11759
12124
  border-radius: ${tokens.border.radius.xs};
11760
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12125
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11761
12126
  cursor: pointer;
11762
12127
  background-color: transparent;
11763
12128
  border: none;
12129
+ & svg {
12130
+ color: ${t2(colors.gray[600], colors.gray[400])};
12131
+ }
11764
12132
  &:hover {
11765
- background-color: ${colors.darkGray[500]};
12133
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11766
12134
  }
11767
12135
  &:focus-visible {
11768
12136
  outline-offset: 2px;
11769
12137
  outline: 2px solid ${colors.blue[800]};
11770
12138
  }
12139
+ `,
12140
+ themeSelectedButton: u`
12141
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12142
+ color: ${t2(colors.purple[700], colors.purple[300])};
12143
+ & svg {
12144
+ color: ${t2(colors.purple[700], colors.purple[300])};
12145
+ }
12146
+ &:hover {
12147
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12148
+ }
11771
12149
  `
11772
12150
  };
11773
12151
  };
12152
+ var lightStyles2 = stylesFactory2("light");
12153
+ var darkStyles2 = stylesFactory2("dark");
11774
12154
  delegateEvents(["click", "mousedown", "input"]);
11775
12155
  /*! Bundled license information:
11776
12156