@tanstack/query-devtools 5.1.0 → 5.7.4

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, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, onMount, on, 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';
1
+ import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/3V52ZCRQ.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 = {
@@ -681,8 +681,8 @@ var noop = () => {
681
681
  function createListTransition(source, options) {
682
682
  const initSource = untrack(source);
683
683
  if (isServer) {
684
- const copy2 = initSource.slice();
685
- return () => copy2;
684
+ const copy = initSource.slice();
685
+ return () => copy;
686
686
  }
687
687
  const { onChange } = options;
688
688
  let prevSet = new Set(options.appear ? void 0 : initSource);
@@ -1700,7 +1700,7 @@ function isElementInScope(element, scope) {
1700
1700
  }
1701
1701
  function getFocusableTreeWalker(root, opts, scope) {
1702
1702
  const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
1703
- const walker2 = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
1703
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
1704
1704
  acceptNode(node) {
1705
1705
  if (opts?.from?.contains(node)) {
1706
1706
  return NodeFilter.FILTER_REJECT;
@@ -1712,9 +1712,9 @@ function getFocusableTreeWalker(root, opts, scope) {
1712
1712
  }
1713
1713
  });
1714
1714
  if (opts?.from) {
1715
- walker2.currentNode = opts.from;
1715
+ walker.currentNode = opts.from;
1716
1716
  }
1717
- return walker2;
1717
+ return walker;
1718
1718
  }
1719
1719
  function noop3() {
1720
1720
  return;
@@ -2048,19 +2048,19 @@ function updatePath(current, path, traversed = []) {
2048
2048
  let part, prev = current;
2049
2049
  if (path.length > 1) {
2050
2050
  part = path.shift();
2051
- const partType = typeof part, isArray4 = Array.isArray(current);
2051
+ const partType = typeof part, isArray2 = Array.isArray(current);
2052
2052
  if (Array.isArray(part)) {
2053
2053
  for (let i2 = 0; i2 < part.length; i2++) {
2054
2054
  updatePath(current, [part[i2]].concat(path), traversed);
2055
2055
  }
2056
2056
  return;
2057
- } else if (isArray4 && partType === "function") {
2057
+ } else if (isArray2 && partType === "function") {
2058
2058
  for (let i2 = 0; i2 < current.length; i2++) {
2059
2059
  if (part(current[i2], i2))
2060
2060
  updatePath(current, [i2].concat(path), traversed);
2061
2061
  }
2062
2062
  return;
2063
- } else if (isArray4 && partType === "object") {
2063
+ } else if (isArray2 && partType === "object") {
2064
2064
  const { from = 0, to = current.length - 1, by = 1 } = part;
2065
2065
  for (let i2 = from; i2 <= to; i2 += by) {
2066
2066
  updatePath(current, [i2].concat(path), traversed);
@@ -2089,11 +2089,11 @@ function updatePath(current, path, traversed = []) {
2089
2089
  }
2090
2090
  function createStore(...[store, options]) {
2091
2091
  const unwrappedStore = unwrap(store || {});
2092
- const isArray4 = Array.isArray(unwrappedStore);
2092
+ const isArray2 = Array.isArray(unwrappedStore);
2093
2093
  const wrappedStore = wrap$1(unwrappedStore);
2094
2094
  function setStore(...args) {
2095
2095
  batch(() => {
2096
- isArray4 && args.length === 1 ? updateArray(unwrappedStore, args[0]) : updatePath(unwrappedStore, args);
2096
+ isArray2 && args.length === 1 ? updateArray(unwrappedStore, args[0]) : updatePath(unwrappedStore, args);
2097
2097
  });
2098
2098
  }
2099
2099
  return [wrappedStore, setStore];
@@ -4039,7 +4039,7 @@ function ariaHideOutside(targets, root = document.body) {
4039
4039
  }
4040
4040
  return NodeFilter.FILTER_ACCEPT;
4041
4041
  };
4042
- const walker2 = document.createTreeWalker(root2, NodeFilter.SHOW_ELEMENT, {
4042
+ const walker = document.createTreeWalker(root2, NodeFilter.SHOW_ELEMENT, {
4043
4043
  acceptNode
4044
4044
  });
4045
4045
  const acceptRoot = acceptNode(root2);
@@ -4047,10 +4047,10 @@ function ariaHideOutside(targets, root = document.body) {
4047
4047
  hide2(root2);
4048
4048
  }
4049
4049
  if (acceptRoot !== NodeFilter.FILTER_REJECT) {
4050
- let node = walker2.nextNode();
4050
+ let node = walker.nextNode();
4051
4051
  while (node != null) {
4052
4052
  hide2(node);
4053
- node = walker2.nextNode();
4053
+ node = walker.nextNode();
4054
4054
  }
4055
4055
  }
4056
4056
  };
@@ -5022,13 +5022,13 @@ function createSelectableCollection(props, ref, scrollRef) {
5022
5022
  if (e2.shiftKey) {
5023
5023
  refEl.focus();
5024
5024
  } else {
5025
- const walker2 = getFocusableTreeWalker(refEl, {
5025
+ const walker = getFocusableTreeWalker(refEl, {
5026
5026
  tabbable: true
5027
5027
  });
5028
5028
  let next;
5029
5029
  let last;
5030
5030
  do {
5031
- last = walker2.lastChild();
5031
+ last = walker.lastChild();
5032
5032
  if (last) {
5033
5033
  next = last;
5034
5034
  }
@@ -8510,35 +8510,35 @@ var tokens = {
8510
8510
  },
8511
8511
  font: {
8512
8512
  size: {
8513
- "2xs": "0.625rem",
8514
- xs: "0.75rem",
8515
- sm: "0.875rem",
8516
- md: "1rem",
8517
- lg: "1.125rem",
8518
- xl: "1.25rem",
8519
- "2xl": "1.5rem",
8520
- "3xl": "1.875rem",
8521
- "4xl": "2.25rem",
8522
- "5xl": "3rem",
8523
- "6xl": "3.75rem",
8524
- "7xl": "4.5rem",
8525
- "8xl": "6rem",
8526
- "9xl": "8rem"
8513
+ "2xs": "calc(var(--tsqd-font-size) * 0.625)",
8514
+ xs: "calc(var(--tsqd-font-size) * 0.75)",
8515
+ sm: "calc(var(--tsqd-font-size) * 0.875)",
8516
+ md: "var(--tsqd-font-size)",
8517
+ lg: "calc(var(--tsqd-font-size) * 1.125)",
8518
+ xl: "calc(var(--tsqd-font-size) * 1.25)",
8519
+ "2xl": "calc(var(--tsqd-font-size) * 1.5)",
8520
+ "3xl": "calc(var(--tsqd-font-size) * 1.875)",
8521
+ "4xl": "calc(var(--tsqd-font-size) * 2.25)",
8522
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8523
+ "6xl": "calc(var(--tsqd-font-size) * 3.75)",
8524
+ "7xl": "calc(var(--tsqd-font-size) * 4.5)",
8525
+ "8xl": "calc(var(--tsqd-font-size) * 6)",
8526
+ "9xl": "calc(var(--tsqd-font-size) * 8)"
8527
8527
  },
8528
8528
  lineHeight: {
8529
- xs: "1rem",
8530
- sm: "1.25rem",
8531
- md: "1.5rem",
8532
- lg: "1.75rem",
8533
- xl: "1.75rem",
8534
- "2xl": "2rem",
8535
- "3xl": "2.25rem",
8536
- "4xl": "2.5rem",
8537
- "5xl": "1",
8538
- "6xl": "1",
8539
- "7xl": "1",
8540
- "8xl": "1",
8541
- "9xl": "1"
8529
+ xs: "calc(var(--tsqd-font-size) * 1)",
8530
+ sm: "calc(var(--tsqd-font-size) * 1.25)",
8531
+ md: "calc(var(--tsqd-font-size) * 1.5)",
8532
+ lg: "calc(var(--tsqd-font-size) * 1.75)",
8533
+ xl: "calc(var(--tsqd-font-size) * 2)",
8534
+ "2xl": "calc(var(--tsqd-font-size) * 2.25)",
8535
+ "3xl": "calc(var(--tsqd-font-size) * 2.5)",
8536
+ "4xl": "calc(var(--tsqd-font-size) * 2.75)",
8537
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8538
+ "6xl": "calc(var(--tsqd-font-size) * 3.25)",
8539
+ "7xl": "calc(var(--tsqd-font-size) * 3.5)",
8540
+ "8xl": "calc(var(--tsqd-font-size) * 3.75)",
8541
+ "9xl": "calc(var(--tsqd-font-size) * 4)"
8542
8542
  },
8543
8543
  weight: {
8544
8544
  thin: "100",
@@ -8563,55 +8563,55 @@ var tokens = {
8563
8563
  border: {
8564
8564
  radius: {
8565
8565
  none: "0px",
8566
- xs: "0.125rem",
8567
- sm: "0.25rem",
8568
- md: "0.375rem",
8569
- lg: "0.5rem",
8570
- xl: "0.75rem",
8571
- "2xl": "1rem",
8572
- "3xl": "1.5rem",
8566
+ xs: "calc(var(--tsqd-font-size) * 0.125)",
8567
+ sm: "calc(var(--tsqd-font-size) * 0.25)",
8568
+ md: "calc(var(--tsqd-font-size) * 0.375)",
8569
+ lg: "calc(var(--tsqd-font-size) * 0.5)",
8570
+ xl: "calc(var(--tsqd-font-size) * 0.75)",
8571
+ "2xl": "calc(var(--tsqd-font-size) * 1)",
8572
+ "3xl": "calc(var(--tsqd-font-size) * 1.5)",
8573
8573
  full: "9999px"
8574
8574
  }
8575
8575
  },
8576
8576
  size: {
8577
8577
  0: "0px",
8578
- 0.25: "0.0625rem",
8579
- 0.5: "0.125rem",
8580
- 1: "0.25rem",
8581
- 1.5: "0.375rem",
8582
- 2: "0.5rem",
8583
- 2.5: "0.625rem",
8584
- 3: "0.75rem",
8585
- 3.5: "0.875rem",
8586
- 4: "1rem",
8587
- 4.5: "1.125rem",
8588
- 5: "1.25rem",
8589
- 5.5: "1.375rem",
8590
- 6: "1.5rem",
8591
- 6.5: "1.625rem",
8592
- 7: "1.75rem",
8593
- 8: "2rem",
8594
- 9: "2.25rem",
8595
- 10: "2.5rem",
8596
- 11: "2.75rem",
8597
- 12: "3rem",
8598
- 14: "3.5rem",
8599
- 16: "4rem",
8600
- 20: "5rem",
8601
- 24: "6rem",
8602
- 28: "7rem",
8603
- 32: "8rem",
8604
- 36: "9rem",
8605
- 40: "10rem",
8606
- 44: "11rem",
8607
- 48: "12rem",
8608
- 52: "13rem",
8609
- 56: "14rem",
8610
- 60: "15rem",
8611
- 64: "16rem",
8612
- 72: "18rem",
8613
- 80: "20rem",
8614
- 96: "24rem"
8578
+ 0.25: "calc(var(--tsqd-font-size) * 0.0625)",
8579
+ 0.5: "calc(var(--tsqd-font-size) * 0.125)",
8580
+ 1: "calc(var(--tsqd-font-size) * 0.25)",
8581
+ 1.5: "calc(var(--tsqd-font-size) * 0.375)",
8582
+ 2: "calc(var(--tsqd-font-size) * 0.5)",
8583
+ 2.5: "calc(var(--tsqd-font-size) * 0.625)",
8584
+ 3: "calc(var(--tsqd-font-size) * 0.75)",
8585
+ 3.5: "calc(var(--tsqd-font-size) * 0.875)",
8586
+ 4: "calc(var(--tsqd-font-size) * 1)",
8587
+ 4.5: "calc(var(--tsqd-font-size) * 1.125)",
8588
+ 5: "calc(var(--tsqd-font-size) * 1.25)",
8589
+ 5.5: "calc(var(--tsqd-font-size) * 1.375)",
8590
+ 6: "calc(var(--tsqd-font-size) * 1.5)",
8591
+ 6.5: "calc(var(--tsqd-font-size) * 1.625)",
8592
+ 7: "calc(var(--tsqd-font-size) * 1.75)",
8593
+ 8: "calc(var(--tsqd-font-size) * 2)",
8594
+ 9: "calc(var(--tsqd-font-size) * 2.25)",
8595
+ 10: "calc(var(--tsqd-font-size) * 2.5)",
8596
+ 11: "calc(var(--tsqd-font-size) * 2.75)",
8597
+ 12: "calc(var(--tsqd-font-size) * 3)",
8598
+ 14: "calc(var(--tsqd-font-size) * 3.5)",
8599
+ 16: "calc(var(--tsqd-font-size) * 4)",
8600
+ 20: "calc(var(--tsqd-font-size) * 5)",
8601
+ 24: "calc(var(--tsqd-font-size) * 6)",
8602
+ 28: "calc(var(--tsqd-font-size) * 7)",
8603
+ 32: "calc(var(--tsqd-font-size) * 8)",
8604
+ 36: "calc(var(--tsqd-font-size) * 9)",
8605
+ 40: "calc(var(--tsqd-font-size) * 10)",
8606
+ 44: "calc(var(--tsqd-font-size) * 11)",
8607
+ 48: "calc(var(--tsqd-font-size) * 12)",
8608
+ 52: "calc(var(--tsqd-font-size) * 13)",
8609
+ 56: "calc(var(--tsqd-font-size) * 14)",
8610
+ 60: "calc(var(--tsqd-font-size) * 15)",
8611
+ 64: "calc(var(--tsqd-font-size) * 16)",
8612
+ 72: "calc(var(--tsqd-font-size) * 18)",
8613
+ 80: "calc(var(--tsqd-font-size) * 20)",
8614
+ 96: "calc(var(--tsqd-font-size) * 24)"
8615
8615
  },
8616
8616
  shadow: Shadow,
8617
8617
  zIndices: {
@@ -8631,1191 +8631,6 @@ var tokens = {
8631
8631
  }
8632
8632
  };
8633
8633
 
8634
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/double-indexed-kv.js
8635
- var DoubleIndexedKV = (
8636
- /** @class */
8637
- function() {
8638
- function DoubleIndexedKV2() {
8639
- this.keyToValue = /* @__PURE__ */ new Map();
8640
- this.valueToKey = /* @__PURE__ */ new Map();
8641
- }
8642
- DoubleIndexedKV2.prototype.set = function(key, value) {
8643
- this.keyToValue.set(key, value);
8644
- this.valueToKey.set(value, key);
8645
- };
8646
- DoubleIndexedKV2.prototype.getByKey = function(key) {
8647
- return this.keyToValue.get(key);
8648
- };
8649
- DoubleIndexedKV2.prototype.getByValue = function(value) {
8650
- return this.valueToKey.get(value);
8651
- };
8652
- DoubleIndexedKV2.prototype.clear = function() {
8653
- this.keyToValue.clear();
8654
- this.valueToKey.clear();
8655
- };
8656
- return DoubleIndexedKV2;
8657
- }()
8658
- );
8659
-
8660
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/registry.js
8661
- var Registry = (
8662
- /** @class */
8663
- function() {
8664
- function Registry2(generateIdentifier) {
8665
- this.generateIdentifier = generateIdentifier;
8666
- this.kv = new DoubleIndexedKV();
8667
- }
8668
- Registry2.prototype.register = function(value, identifier) {
8669
- if (this.kv.getByValue(value)) {
8670
- return;
8671
- }
8672
- if (!identifier) {
8673
- identifier = this.generateIdentifier(value);
8674
- }
8675
- this.kv.set(identifier, value);
8676
- };
8677
- Registry2.prototype.clear = function() {
8678
- this.kv.clear();
8679
- };
8680
- Registry2.prototype.getIdentifier = function(value) {
8681
- return this.kv.getByValue(value);
8682
- };
8683
- Registry2.prototype.getValue = function(identifier) {
8684
- return this.kv.getByKey(identifier);
8685
- };
8686
- return Registry2;
8687
- }()
8688
- );
8689
-
8690
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
8691
- var __extends = function() {
8692
- var extendStatics = function(d, b2) {
8693
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
8694
- d2.__proto__ = b3;
8695
- } || function(d2, b3) {
8696
- for (var p2 in b3)
8697
- if (Object.prototype.hasOwnProperty.call(b3, p2))
8698
- d2[p2] = b3[p2];
8699
- };
8700
- return extendStatics(d, b2);
8701
- };
8702
- return function(d, b2) {
8703
- if (typeof b2 !== "function" && b2 !== null)
8704
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
8705
- extendStatics(d, b2);
8706
- function __() {
8707
- this.constructor = d;
8708
- }
8709
- d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
8710
- };
8711
- }();
8712
- var ClassRegistry = (
8713
- /** @class */
8714
- function(_super) {
8715
- __extends(ClassRegistry2, _super);
8716
- function ClassRegistry2() {
8717
- var _this = _super.call(this, function(c2) {
8718
- return c2.name;
8719
- }) || this;
8720
- _this.classToAllowedProps = /* @__PURE__ */ new Map();
8721
- return _this;
8722
- }
8723
- ClassRegistry2.prototype.register = function(value, options) {
8724
- if (typeof options === "object") {
8725
- if (options.allowProps) {
8726
- this.classToAllowedProps.set(value, options.allowProps);
8727
- }
8728
- _super.prototype.register.call(this, value, options.identifier);
8729
- } else {
8730
- _super.prototype.register.call(this, value, options);
8731
- }
8732
- };
8733
- ClassRegistry2.prototype.getAllowedProps = function(value) {
8734
- return this.classToAllowedProps.get(value);
8735
- };
8736
- return ClassRegistry2;
8737
- }(Registry)
8738
- );
8739
-
8740
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
8741
- var __read = function(o2, n2) {
8742
- var m = typeof Symbol === "function" && o2[Symbol.iterator];
8743
- if (!m)
8744
- return o2;
8745
- var i2 = m.call(o2), r2, ar = [], e2;
8746
- try {
8747
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
8748
- ar.push(r2.value);
8749
- } catch (error) {
8750
- e2 = { error };
8751
- } finally {
8752
- try {
8753
- if (r2 && !r2.done && (m = i2["return"]))
8754
- m.call(i2);
8755
- } finally {
8756
- if (e2)
8757
- throw e2.error;
8758
- }
8759
- }
8760
- return ar;
8761
- };
8762
- function valuesOfObj(record) {
8763
- if ("values" in Object) {
8764
- return Object.values(record);
8765
- }
8766
- var values = [];
8767
- for (var key in record) {
8768
- if (record.hasOwnProperty(key)) {
8769
- values.push(record[key]);
8770
- }
8771
- }
8772
- return values;
8773
- }
8774
- function find2(record, predicate) {
8775
- var values = valuesOfObj(record);
8776
- if ("find" in values) {
8777
- return values.find(predicate);
8778
- }
8779
- var valuesNotNever = values;
8780
- for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
8781
- var value = valuesNotNever[i2];
8782
- if (predicate(value)) {
8783
- return value;
8784
- }
8785
- }
8786
- return void 0;
8787
- }
8788
- function forEach(record, run) {
8789
- Object.entries(record).forEach(function(_a) {
8790
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
8791
- return run(value, key);
8792
- });
8793
- }
8794
- function includes(arr, value) {
8795
- return arr.indexOf(value) !== -1;
8796
- }
8797
- function findArr(record, predicate) {
8798
- for (var i2 = 0; i2 < record.length; i2++) {
8799
- var value = record[i2];
8800
- if (predicate(value)) {
8801
- return value;
8802
- }
8803
- }
8804
- return void 0;
8805
- }
8806
-
8807
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/custom-transformer-registry.js
8808
- var CustomTransformerRegistry = (
8809
- /** @class */
8810
- function() {
8811
- function CustomTransformerRegistry2() {
8812
- this.transfomers = {};
8813
- }
8814
- CustomTransformerRegistry2.prototype.register = function(transformer) {
8815
- this.transfomers[transformer.name] = transformer;
8816
- };
8817
- CustomTransformerRegistry2.prototype.findApplicable = function(v) {
8818
- return find2(this.transfomers, function(transformer) {
8819
- return transformer.isApplicable(v);
8820
- });
8821
- };
8822
- CustomTransformerRegistry2.prototype.findByName = function(name) {
8823
- return this.transfomers[name];
8824
- };
8825
- return CustomTransformerRegistry2;
8826
- }()
8827
- );
8828
-
8829
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/is.js
8830
- var getType = function(payload) {
8831
- return Object.prototype.toString.call(payload).slice(8, -1);
8832
- };
8833
- var isUndefined = function(payload) {
8834
- return typeof payload === "undefined";
8835
- };
8836
- var isNull = function(payload) {
8837
- return payload === null;
8838
- };
8839
- var isPlainObject = function(payload) {
8840
- if (typeof payload !== "object" || payload === null)
8841
- return false;
8842
- if (payload === Object.prototype)
8843
- return false;
8844
- if (Object.getPrototypeOf(payload) === null)
8845
- return true;
8846
- return Object.getPrototypeOf(payload) === Object.prototype;
8847
- };
8848
- var isEmptyObject = function(payload) {
8849
- return isPlainObject(payload) && Object.keys(payload).length === 0;
8850
- };
8851
- var isArray2 = function(payload) {
8852
- return Array.isArray(payload);
8853
- };
8854
- var isString2 = function(payload) {
8855
- return typeof payload === "string";
8856
- };
8857
- var isNumber2 = function(payload) {
8858
- return typeof payload === "number" && !isNaN(payload);
8859
- };
8860
- var isBoolean = function(payload) {
8861
- return typeof payload === "boolean";
8862
- };
8863
- var isRegExp = function(payload) {
8864
- return payload instanceof RegExp;
8865
- };
8866
- var isMap = function(payload) {
8867
- return payload instanceof Map;
8868
- };
8869
- var isSet = function(payload) {
8870
- return payload instanceof Set;
8871
- };
8872
- var isSymbol = function(payload) {
8873
- return getType(payload) === "Symbol";
8874
- };
8875
- var isDate = function(payload) {
8876
- return payload instanceof Date && !isNaN(payload.valueOf());
8877
- };
8878
- var isError = function(payload) {
8879
- return payload instanceof Error;
8880
- };
8881
- var isNaNValue = function(payload) {
8882
- return typeof payload === "number" && isNaN(payload);
8883
- };
8884
- var isPrimitive = function(payload) {
8885
- return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber2(payload) || isString2(payload) || isSymbol(payload);
8886
- };
8887
- var isBigint = function(payload) {
8888
- return typeof payload === "bigint";
8889
- };
8890
- var isInfinite = function(payload) {
8891
- return payload === Infinity || payload === -Infinity;
8892
- };
8893
- var isTypedArray = function(payload) {
8894
- return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
8895
- };
8896
- var isURL = function(payload) {
8897
- return payload instanceof URL;
8898
- };
8899
-
8900
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/pathstringifier.js
8901
- var escapeKey = function(key) {
8902
- return key.replace(/\./g, "\\.");
8903
- };
8904
- var stringifyPath = function(path) {
8905
- return path.map(String).map(escapeKey).join(".");
8906
- };
8907
- var parsePath = function(string) {
8908
- var result = [];
8909
- var segment = "";
8910
- for (var i2 = 0; i2 < string.length; i2++) {
8911
- var char = string.charAt(i2);
8912
- var isEscapedDot = char === "\\" && string.charAt(i2 + 1) === ".";
8913
- if (isEscapedDot) {
8914
- segment += ".";
8915
- i2++;
8916
- continue;
8917
- }
8918
- var isEndOfSegment = char === ".";
8919
- if (isEndOfSegment) {
8920
- result.push(segment);
8921
- segment = "";
8922
- continue;
8923
- }
8924
- segment += char;
8925
- }
8926
- var lastSegment = segment;
8927
- result.push(lastSegment);
8928
- return result;
8929
- };
8930
-
8931
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
8932
- var __assign = function() {
8933
- __assign = Object.assign || function(t2) {
8934
- for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
8935
- s2 = arguments[i2];
8936
- for (var p2 in s2)
8937
- if (Object.prototype.hasOwnProperty.call(s2, p2))
8938
- t2[p2] = s2[p2];
8939
- }
8940
- return t2;
8941
- };
8942
- return __assign.apply(this, arguments);
8943
- };
8944
- var __read2 = function(o2, n2) {
8945
- var m = typeof Symbol === "function" && o2[Symbol.iterator];
8946
- if (!m)
8947
- return o2;
8948
- var i2 = m.call(o2), r2, ar = [], e2;
8949
- try {
8950
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
8951
- ar.push(r2.value);
8952
- } catch (error) {
8953
- e2 = { error };
8954
- } finally {
8955
- try {
8956
- if (r2 && !r2.done && (m = i2["return"]))
8957
- m.call(i2);
8958
- } finally {
8959
- if (e2)
8960
- throw e2.error;
8961
- }
8962
- }
8963
- return ar;
8964
- };
8965
- var __spreadArray = function(to, from) {
8966
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
8967
- to[j] = from[i2];
8968
- return to;
8969
- };
8970
- function simpleTransformation(isApplicable, annotation, transform, untransform) {
8971
- return {
8972
- isApplicable,
8973
- annotation,
8974
- transform,
8975
- untransform
8976
- };
8977
- }
8978
- var simpleRules = [
8979
- simpleTransformation(isUndefined, "undefined", function() {
8980
- return null;
8981
- }, function() {
8982
- return void 0;
8983
- }),
8984
- simpleTransformation(isBigint, "bigint", function(v) {
8985
- return v.toString();
8986
- }, function(v) {
8987
- if (typeof BigInt !== "undefined") {
8988
- return BigInt(v);
8989
- }
8990
- console.error("Please add a BigInt polyfill.");
8991
- return v;
8992
- }),
8993
- simpleTransformation(isDate, "Date", function(v) {
8994
- return v.toISOString();
8995
- }, function(v) {
8996
- return new Date(v);
8997
- }),
8998
- simpleTransformation(isError, "Error", function(v, superJson) {
8999
- var baseError = {
9000
- name: v.name,
9001
- message: v.message
9002
- };
9003
- superJson.allowedErrorProps.forEach(function(prop) {
9004
- baseError[prop] = v[prop];
9005
- });
9006
- return baseError;
9007
- }, function(v, superJson) {
9008
- var e2 = new Error(v.message);
9009
- e2.name = v.name;
9010
- e2.stack = v.stack;
9011
- superJson.allowedErrorProps.forEach(function(prop) {
9012
- e2[prop] = v[prop];
9013
- });
9014
- return e2;
9015
- }),
9016
- simpleTransformation(isRegExp, "regexp", function(v) {
9017
- return "" + v;
9018
- }, function(regex) {
9019
- var body = regex.slice(1, regex.lastIndexOf("/"));
9020
- var flags = regex.slice(regex.lastIndexOf("/") + 1);
9021
- return new RegExp(body, flags);
9022
- }),
9023
- simpleTransformation(
9024
- isSet,
9025
- "set",
9026
- // (sets only exist in es6+)
9027
- // eslint-disable-next-line es5/no-es6-methods
9028
- function(v) {
9029
- return __spreadArray([], __read2(v.values()));
9030
- },
9031
- function(v) {
9032
- return new Set(v);
9033
- }
9034
- ),
9035
- simpleTransformation(isMap, "map", function(v) {
9036
- return __spreadArray([], __read2(v.entries()));
9037
- }, function(v) {
9038
- return new Map(v);
9039
- }),
9040
- simpleTransformation(function(v) {
9041
- return isNaNValue(v) || isInfinite(v);
9042
- }, "number", function(v) {
9043
- if (isNaNValue(v)) {
9044
- return "NaN";
9045
- }
9046
- if (v > 0) {
9047
- return "Infinity";
9048
- } else {
9049
- return "-Infinity";
9050
- }
9051
- }, Number),
9052
- simpleTransformation(function(v) {
9053
- return v === 0 && 1 / v === -Infinity;
9054
- }, "number", function() {
9055
- return "-0";
9056
- }, Number),
9057
- simpleTransformation(isURL, "URL", function(v) {
9058
- return v.toString();
9059
- }, function(v) {
9060
- return new URL(v);
9061
- })
9062
- ];
9063
- function compositeTransformation(isApplicable, annotation, transform, untransform) {
9064
- return {
9065
- isApplicable,
9066
- annotation,
9067
- transform,
9068
- untransform
9069
- };
9070
- }
9071
- var symbolRule = compositeTransformation(function(s2, superJson) {
9072
- if (isSymbol(s2)) {
9073
- var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
9074
- return isRegistered;
9075
- }
9076
- return false;
9077
- }, function(s2, superJson) {
9078
- var identifier = superJson.symbolRegistry.getIdentifier(s2);
9079
- return ["symbol", identifier];
9080
- }, function(v) {
9081
- return v.description;
9082
- }, function(_, a2, superJson) {
9083
- var value = superJson.symbolRegistry.getValue(a2[1]);
9084
- if (!value) {
9085
- throw new Error("Trying to deserialize unknown symbol");
9086
- }
9087
- return value;
9088
- });
9089
- var constructorToName = [
9090
- Int8Array,
9091
- Uint8Array,
9092
- Int16Array,
9093
- Uint16Array,
9094
- Int32Array,
9095
- Uint32Array,
9096
- Float32Array,
9097
- Float64Array,
9098
- Uint8ClampedArray
9099
- ].reduce(function(obj, ctor) {
9100
- obj[ctor.name] = ctor;
9101
- return obj;
9102
- }, {});
9103
- var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
9104
- return ["typed-array", v.constructor.name];
9105
- }, function(v) {
9106
- return __spreadArray([], __read2(v));
9107
- }, function(v, a2) {
9108
- var ctor = constructorToName[a2[1]];
9109
- if (!ctor) {
9110
- throw new Error("Trying to deserialize unknown typed array");
9111
- }
9112
- return new ctor(v);
9113
- });
9114
- function isInstanceOfRegisteredClass(potentialClass, superJson) {
9115
- if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
9116
- var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
9117
- return isRegistered;
9118
- }
9119
- return false;
9120
- }
9121
- var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
9122
- var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
9123
- return ["class", identifier];
9124
- }, function(clazz, superJson) {
9125
- var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
9126
- if (!allowedProps) {
9127
- return __assign({}, clazz);
9128
- }
9129
- var result = {};
9130
- allowedProps.forEach(function(prop) {
9131
- result[prop] = clazz[prop];
9132
- });
9133
- return result;
9134
- }, function(v, a2, superJson) {
9135
- var clazz = superJson.classRegistry.getValue(a2[1]);
9136
- if (!clazz) {
9137
- throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
9138
- }
9139
- return Object.assign(Object.create(clazz.prototype), v);
9140
- });
9141
- var customRule = compositeTransformation(function(value, superJson) {
9142
- return !!superJson.customTransformerRegistry.findApplicable(value);
9143
- }, function(value, superJson) {
9144
- var transformer = superJson.customTransformerRegistry.findApplicable(value);
9145
- return ["custom", transformer.name];
9146
- }, function(value, superJson) {
9147
- var transformer = superJson.customTransformerRegistry.findApplicable(value);
9148
- return transformer.serialize(value);
9149
- }, function(v, a2, superJson) {
9150
- var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
9151
- if (!transformer) {
9152
- throw new Error("Trying to deserialize unknown custom value");
9153
- }
9154
- return transformer.deserialize(v);
9155
- });
9156
- var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
9157
- var transformValue = function(value, superJson) {
9158
- var applicableCompositeRule = findArr(compositeRules, function(rule) {
9159
- return rule.isApplicable(value, superJson);
9160
- });
9161
- if (applicableCompositeRule) {
9162
- return {
9163
- value: applicableCompositeRule.transform(value, superJson),
9164
- type: applicableCompositeRule.annotation(value, superJson)
9165
- };
9166
- }
9167
- var applicableSimpleRule = findArr(simpleRules, function(rule) {
9168
- return rule.isApplicable(value, superJson);
9169
- });
9170
- if (applicableSimpleRule) {
9171
- return {
9172
- value: applicableSimpleRule.transform(value, superJson),
9173
- type: applicableSimpleRule.annotation
9174
- };
9175
- }
9176
- return void 0;
9177
- };
9178
- var simpleRulesByAnnotation = {};
9179
- simpleRules.forEach(function(rule) {
9180
- simpleRulesByAnnotation[rule.annotation] = rule;
9181
- });
9182
- var untransformValue = function(json, type, superJson) {
9183
- if (isArray2(type)) {
9184
- switch (type[0]) {
9185
- case "symbol":
9186
- return symbolRule.untransform(json, type, superJson);
9187
- case "class":
9188
- return classRule.untransform(json, type, superJson);
9189
- case "custom":
9190
- return customRule.untransform(json, type, superJson);
9191
- case "typed-array":
9192
- return typedArrayRule.untransform(json, type, superJson);
9193
- default:
9194
- throw new Error("Unknown transformation: " + type);
9195
- }
9196
- } else {
9197
- var transformation = simpleRulesByAnnotation[type];
9198
- if (!transformation) {
9199
- throw new Error("Unknown transformation: " + type);
9200
- }
9201
- return transformation.untransform(json, superJson);
9202
- }
9203
- };
9204
-
9205
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
9206
- var getNthKey = function(value, n2) {
9207
- var keys2 = value.keys();
9208
- while (n2 > 0) {
9209
- keys2.next();
9210
- n2--;
9211
- }
9212
- return keys2.next().value;
9213
- };
9214
- function validatePath(path) {
9215
- if (includes(path, "__proto__")) {
9216
- throw new Error("__proto__ is not allowed as a property");
9217
- }
9218
- if (includes(path, "prototype")) {
9219
- throw new Error("prototype is not allowed as a property");
9220
- }
9221
- if (includes(path, "constructor")) {
9222
- throw new Error("constructor is not allowed as a property");
9223
- }
9224
- }
9225
- var getDeep = function(object, path) {
9226
- validatePath(path);
9227
- for (var i2 = 0; i2 < path.length; i2++) {
9228
- var key = path[i2];
9229
- if (isSet(object)) {
9230
- object = getNthKey(object, +key);
9231
- } else if (isMap(object)) {
9232
- var row = +key;
9233
- var type = +path[++i2] === 0 ? "key" : "value";
9234
- var keyOfRow = getNthKey(object, row);
9235
- switch (type) {
9236
- case "key":
9237
- object = keyOfRow;
9238
- break;
9239
- case "value":
9240
- object = object.get(keyOfRow);
9241
- break;
9242
- }
9243
- } else {
9244
- object = object[key];
9245
- }
9246
- }
9247
- return object;
9248
- };
9249
- var setDeep = function(object, path, mapper) {
9250
- validatePath(path);
9251
- if (path.length === 0) {
9252
- return mapper(object);
9253
- }
9254
- var parent = object;
9255
- for (var i2 = 0; i2 < path.length - 1; i2++) {
9256
- var key = path[i2];
9257
- if (isArray2(parent)) {
9258
- var index = +key;
9259
- parent = parent[index];
9260
- } else if (isPlainObject(parent)) {
9261
- parent = parent[key];
9262
- } else if (isSet(parent)) {
9263
- var row = +key;
9264
- parent = getNthKey(parent, row);
9265
- } else if (isMap(parent)) {
9266
- var isEnd = i2 === path.length - 2;
9267
- if (isEnd) {
9268
- break;
9269
- }
9270
- var row = +key;
9271
- var type = +path[++i2] === 0 ? "key" : "value";
9272
- var keyOfRow = getNthKey(parent, row);
9273
- switch (type) {
9274
- case "key":
9275
- parent = keyOfRow;
9276
- break;
9277
- case "value":
9278
- parent = parent.get(keyOfRow);
9279
- break;
9280
- }
9281
- }
9282
- }
9283
- var lastKey = path[path.length - 1];
9284
- if (isArray2(parent)) {
9285
- parent[+lastKey] = mapper(parent[+lastKey]);
9286
- } else if (isPlainObject(parent)) {
9287
- parent[lastKey] = mapper(parent[lastKey]);
9288
- }
9289
- if (isSet(parent)) {
9290
- var oldValue = getNthKey(parent, +lastKey);
9291
- var newValue = mapper(oldValue);
9292
- if (oldValue !== newValue) {
9293
- parent["delete"](oldValue);
9294
- parent.add(newValue);
9295
- }
9296
- }
9297
- if (isMap(parent)) {
9298
- var row = +path[path.length - 2];
9299
- var keyToRow = getNthKey(parent, row);
9300
- var type = +lastKey === 0 ? "key" : "value";
9301
- switch (type) {
9302
- case "key": {
9303
- var newKey = mapper(keyToRow);
9304
- parent.set(newKey, parent.get(keyToRow));
9305
- if (newKey !== keyToRow) {
9306
- parent["delete"](keyToRow);
9307
- }
9308
- break;
9309
- }
9310
- case "value": {
9311
- parent.set(keyToRow, mapper(parent.get(keyToRow)));
9312
- break;
9313
- }
9314
- }
9315
- }
9316
- return object;
9317
- };
9318
-
9319
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
9320
- var __read3 = function(o2, n2) {
9321
- var m = typeof Symbol === "function" && o2[Symbol.iterator];
9322
- if (!m)
9323
- return o2;
9324
- var i2 = m.call(o2), r2, ar = [], e2;
9325
- try {
9326
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
9327
- ar.push(r2.value);
9328
- } catch (error) {
9329
- e2 = { error };
9330
- } finally {
9331
- try {
9332
- if (r2 && !r2.done && (m = i2["return"]))
9333
- m.call(i2);
9334
- } finally {
9335
- if (e2)
9336
- throw e2.error;
9337
- }
9338
- }
9339
- return ar;
9340
- };
9341
- var __spreadArray2 = function(to, from) {
9342
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
9343
- to[j] = from[i2];
9344
- return to;
9345
- };
9346
- function traverse(tree, walker2, origin) {
9347
- if (origin === void 0) {
9348
- origin = [];
9349
- }
9350
- if (!tree) {
9351
- return;
9352
- }
9353
- if (!isArray2(tree)) {
9354
- forEach(tree, function(subtree, key) {
9355
- return traverse(subtree, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
9356
- });
9357
- return;
9358
- }
9359
- var _a = __read3(tree, 2), nodeValue = _a[0], children2 = _a[1];
9360
- if (children2) {
9361
- forEach(children2, function(child, key) {
9362
- traverse(child, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
9363
- });
9364
- }
9365
- walker2(nodeValue, origin);
9366
- }
9367
- function applyValueAnnotations(plain, annotations, superJson) {
9368
- traverse(annotations, function(type, path) {
9369
- plain = setDeep(plain, path, function(v) {
9370
- return untransformValue(v, type, superJson);
9371
- });
9372
- });
9373
- return plain;
9374
- }
9375
- function applyReferentialEqualityAnnotations(plain, annotations) {
9376
- function apply(identicalPaths, path) {
9377
- var object = getDeep(plain, parsePath(path));
9378
- identicalPaths.map(parsePath).forEach(function(identicalObjectPath) {
9379
- plain = setDeep(plain, identicalObjectPath, function() {
9380
- return object;
9381
- });
9382
- });
9383
- }
9384
- if (isArray2(annotations)) {
9385
- var _a = __read3(annotations, 2), root = _a[0], other = _a[1];
9386
- root.forEach(function(identicalPath) {
9387
- plain = setDeep(plain, parsePath(identicalPath), function() {
9388
- return plain;
9389
- });
9390
- });
9391
- if (other) {
9392
- forEach(other, apply);
9393
- }
9394
- } else {
9395
- forEach(annotations, apply);
9396
- }
9397
- return plain;
9398
- }
9399
- var isDeep = function(object, superJson) {
9400
- return isPlainObject(object) || isArray2(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
9401
- };
9402
- function addIdentity(object, path, identities) {
9403
- var existingSet = identities.get(object);
9404
- if (existingSet) {
9405
- existingSet.push(path);
9406
- } else {
9407
- identities.set(object, [path]);
9408
- }
9409
- }
9410
- function generateReferentialEqualityAnnotations(identitites) {
9411
- var result = {};
9412
- var rootEqualityPaths = void 0;
9413
- identitites.forEach(function(paths) {
9414
- if (paths.length <= 1) {
9415
- return;
9416
- }
9417
- var _a = __read3(paths.map(function(path) {
9418
- return path.map(String);
9419
- }).sort(function(a2, b2) {
9420
- return a2.length - b2.length;
9421
- })), shortestPath = _a[0], identicalPaths = _a.slice(1);
9422
- if (shortestPath.length === 0) {
9423
- rootEqualityPaths = identicalPaths.map(stringifyPath);
9424
- } else {
9425
- result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
9426
- }
9427
- });
9428
- if (rootEqualityPaths) {
9429
- if (isEmptyObject(result)) {
9430
- return [rootEqualityPaths];
9431
- } else {
9432
- return [rootEqualityPaths, result];
9433
- }
9434
- } else {
9435
- return isEmptyObject(result) ? void 0 : result;
9436
- }
9437
- }
9438
- var walker = function(object, identities, superJson, path, objectsInThisPath) {
9439
- var _a;
9440
- if (path === void 0) {
9441
- path = [];
9442
- }
9443
- if (objectsInThisPath === void 0) {
9444
- objectsInThisPath = [];
9445
- }
9446
- if (!isPrimitive(object)) {
9447
- addIdentity(object, path, identities);
9448
- }
9449
- if (!isDeep(object, superJson)) {
9450
- var transformed_1 = transformValue(object, superJson);
9451
- if (transformed_1) {
9452
- return {
9453
- transformedValue: transformed_1.value,
9454
- annotations: [transformed_1.type]
9455
- };
9456
- } else {
9457
- return {
9458
- transformedValue: object
9459
- };
9460
- }
9461
- }
9462
- if (includes(objectsInThisPath, object)) {
9463
- return {
9464
- transformedValue: null
9465
- };
9466
- }
9467
- var transformationResult = transformValue(object, superJson);
9468
- var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
9469
- if (!isPrimitive(object)) {
9470
- objectsInThisPath = __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]);
9471
- }
9472
- var transformedValue = isArray2(transformed) ? [] : {};
9473
- var innerAnnotations = {};
9474
- forEach(transformed, function(value, index) {
9475
- var recursiveResult = walker(value, identities, superJson, __spreadArray2(__spreadArray2([], __read3(path)), [index]), objectsInThisPath);
9476
- transformedValue[index] = recursiveResult.transformedValue;
9477
- if (isArray2(recursiveResult.annotations)) {
9478
- innerAnnotations[index] = recursiveResult.annotations;
9479
- } else if (isPlainObject(recursiveResult.annotations)) {
9480
- forEach(recursiveResult.annotations, function(tree, key) {
9481
- innerAnnotations[escapeKey(index) + "." + key] = tree;
9482
- });
9483
- }
9484
- });
9485
- if (isEmptyObject(innerAnnotations)) {
9486
- return {
9487
- transformedValue,
9488
- annotations: !!transformationResult ? [transformationResult.type] : void 0
9489
- };
9490
- } else {
9491
- return {
9492
- transformedValue,
9493
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
9494
- };
9495
- }
9496
- };
9497
-
9498
- // ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
9499
- function getType2(payload) {
9500
- return Object.prototype.toString.call(payload).slice(8, -1);
9501
- }
9502
- function isPlainObject2(payload) {
9503
- if (getType2(payload) !== "Object")
9504
- return false;
9505
- const prototype = Object.getPrototypeOf(payload);
9506
- return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
9507
- }
9508
- function isArray3(payload) {
9509
- return getType2(payload) === "Array";
9510
- }
9511
-
9512
- // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
9513
- function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
9514
- const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
9515
- if (propType === "enumerable")
9516
- carry[key] = newVal;
9517
- if (includeNonenumerable && propType === "nonenumerable") {
9518
- Object.defineProperty(carry, key, {
9519
- value: newVal,
9520
- enumerable: false,
9521
- writable: true,
9522
- configurable: true
9523
- });
9524
- }
9525
- }
9526
- function copy(target, options = {}) {
9527
- if (isArray3(target)) {
9528
- return target.map((item) => copy(item, options));
9529
- }
9530
- if (!isPlainObject2(target)) {
9531
- return target;
9532
- }
9533
- const props = Object.getOwnPropertyNames(target);
9534
- const symbols = Object.getOwnPropertySymbols(target);
9535
- return [...props, ...symbols].reduce((carry, key) => {
9536
- if (isArray3(options.props) && !options.props.includes(key)) {
9537
- return carry;
9538
- }
9539
- const val = target[key];
9540
- const newVal = copy(val, options);
9541
- assignProp(carry, key, newVal, target, options.nonenumerable);
9542
- return carry;
9543
- }, {});
9544
- }
9545
-
9546
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
9547
- var __assign2 = function() {
9548
- __assign2 = Object.assign || function(t2) {
9549
- for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
9550
- s2 = arguments[i2];
9551
- for (var p2 in s2)
9552
- if (Object.prototype.hasOwnProperty.call(s2, p2))
9553
- t2[p2] = s2[p2];
9554
- }
9555
- return t2;
9556
- };
9557
- return __assign2.apply(this, arguments);
9558
- };
9559
- var __read4 = function(o2, n2) {
9560
- var m = typeof Symbol === "function" && o2[Symbol.iterator];
9561
- if (!m)
9562
- return o2;
9563
- var i2 = m.call(o2), r2, ar = [], e2;
9564
- try {
9565
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
9566
- ar.push(r2.value);
9567
- } catch (error) {
9568
- e2 = { error };
9569
- } finally {
9570
- try {
9571
- if (r2 && !r2.done && (m = i2["return"]))
9572
- m.call(i2);
9573
- } finally {
9574
- if (e2)
9575
- throw e2.error;
9576
- }
9577
- }
9578
- return ar;
9579
- };
9580
- var __spreadArray3 = function(to, from) {
9581
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
9582
- to[j] = from[i2];
9583
- return to;
9584
- };
9585
- var SuperJSON = (
9586
- /** @class */
9587
- function() {
9588
- function SuperJSON2() {
9589
- this.classRegistry = new ClassRegistry();
9590
- this.symbolRegistry = new Registry(function(s2) {
9591
- var _a;
9592
- return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
9593
- });
9594
- this.customTransformerRegistry = new CustomTransformerRegistry();
9595
- this.allowedErrorProps = [];
9596
- }
9597
- SuperJSON2.prototype.serialize = function(object) {
9598
- var identities = /* @__PURE__ */ new Map();
9599
- var output = walker(object, identities, this);
9600
- var res = {
9601
- json: output.transformedValue
9602
- };
9603
- if (output.annotations) {
9604
- res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
9605
- }
9606
- var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
9607
- if (equalityAnnotations) {
9608
- res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
9609
- }
9610
- return res;
9611
- };
9612
- SuperJSON2.prototype.deserialize = function(payload) {
9613
- var json = payload.json, meta = payload.meta;
9614
- var result = copy(json);
9615
- if (meta === null || meta === void 0 ? void 0 : meta.values) {
9616
- result = applyValueAnnotations(result, meta.values, this);
9617
- }
9618
- if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
9619
- result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
9620
- }
9621
- return result;
9622
- };
9623
- SuperJSON2.prototype.stringify = function(object) {
9624
- return JSON.stringify(this.serialize(object));
9625
- };
9626
- SuperJSON2.prototype.parse = function(string) {
9627
- return this.deserialize(JSON.parse(string));
9628
- };
9629
- SuperJSON2.prototype.registerClass = function(v, options) {
9630
- this.classRegistry.register(v, options);
9631
- };
9632
- SuperJSON2.prototype.registerSymbol = function(v, identifier) {
9633
- this.symbolRegistry.register(v, identifier);
9634
- };
9635
- SuperJSON2.prototype.registerCustom = function(transformer, name) {
9636
- this.customTransformerRegistry.register(__assign2({ name }, transformer));
9637
- };
9638
- SuperJSON2.prototype.allowErrorProps = function() {
9639
- var _a;
9640
- var props = [];
9641
- for (var _i = 0; _i < arguments.length; _i++) {
9642
- props[_i] = arguments[_i];
9643
- }
9644
- (_a = this.allowedErrorProps).push.apply(_a, __spreadArray3([], __read4(props)));
9645
- };
9646
- SuperJSON2.defaultInstance = new SuperJSON2();
9647
- SuperJSON2.serialize = SuperJSON2.defaultInstance.serialize.bind(SuperJSON2.defaultInstance);
9648
- SuperJSON2.deserialize = SuperJSON2.defaultInstance.deserialize.bind(SuperJSON2.defaultInstance);
9649
- SuperJSON2.stringify = SuperJSON2.defaultInstance.stringify.bind(SuperJSON2.defaultInstance);
9650
- SuperJSON2.parse = SuperJSON2.defaultInstance.parse.bind(SuperJSON2.defaultInstance);
9651
- SuperJSON2.registerClass = SuperJSON2.defaultInstance.registerClass.bind(SuperJSON2.defaultInstance);
9652
- SuperJSON2.registerSymbol = SuperJSON2.defaultInstance.registerSymbol.bind(SuperJSON2.defaultInstance);
9653
- SuperJSON2.registerCustom = SuperJSON2.defaultInstance.registerCustom.bind(SuperJSON2.defaultInstance);
9654
- SuperJSON2.allowErrorProps = SuperJSON2.defaultInstance.allowErrorProps.bind(SuperJSON2.defaultInstance);
9655
- return SuperJSON2;
9656
- }()
9657
- );
9658
- var serialize = SuperJSON.serialize;
9659
- SuperJSON.deserialize;
9660
- var stringify = SuperJSON.stringify;
9661
- SuperJSON.parse;
9662
- SuperJSON.registerClass;
9663
- SuperJSON.registerCustom;
9664
- SuperJSON.registerSymbol;
9665
- SuperJSON.allowErrorProps;
9666
-
9667
- // src/utils.tsx
9668
- function getQueryStatusLabel(query) {
9669
- return query.state.fetchStatus === "fetching" ? "fetching" : !query.getObserversCount() ? "inactive" : query.state.fetchStatus === "paused" ? "paused" : query.isStale() ? "stale" : "fresh";
9670
- }
9671
- function getSidedProp(prop, side) {
9672
- return `${prop}${side.charAt(0).toUpperCase() + side.slice(1)}`;
9673
- }
9674
- function getQueryStatusColor({
9675
- queryState,
9676
- observerCount,
9677
- isStale
9678
- }) {
9679
- return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
9680
- }
9681
- function getMutationStatusColor({
9682
- status,
9683
- isPaused
9684
- }) {
9685
- return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
9686
- }
9687
- function getQueryStatusColorByLabel(label) {
9688
- return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
9689
- }
9690
- var displayValue = (value, beautify = false) => {
9691
- const {
9692
- json
9693
- } = serialize(value);
9694
- return JSON.stringify(json, null, beautify ? 2 : void 0);
9695
- };
9696
- var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
9697
- var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
9698
- var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
9699
- var statusAndDateSort = (a2, b2) => {
9700
- if (getStatusRank(a2) === getStatusRank(b2)) {
9701
- return dateSort(a2, b2);
9702
- }
9703
- return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
9704
- };
9705
- var sortFns = {
9706
- status: statusAndDateSort,
9707
- "query hash": queryHashSort,
9708
- "last updated": dateSort
9709
- };
9710
- var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
9711
- var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
9712
- var mutationStatusSort = (a2, b2) => {
9713
- if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
9714
- return mutationDateSort(a2, b2);
9715
- }
9716
- return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
9717
- };
9718
- var mutationSortFns = {
9719
- status: mutationStatusSort,
9720
- "last updated": mutationDateSort
9721
- };
9722
- var convertRemToPixels = (rem) => {
9723
- return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9724
- };
9725
- var getPreferredColorScheme = () => {
9726
- const [colorScheme, setColorScheme] = createSignal("dark");
9727
- onMount(() => {
9728
- const query = window.matchMedia("(prefers-color-scheme: dark)");
9729
- setColorScheme(query.matches ? "dark" : "light");
9730
- const listener = (e2) => {
9731
- setColorScheme(e2.matches ? "dark" : "light");
9732
- };
9733
- query.addEventListener("change", listener);
9734
- onCleanup(() => query.removeEventListener("change", listener));
9735
- });
9736
- return colorScheme;
9737
- };
9738
- var updateNestedDataByPath = (oldData, updatePath2, value) => {
9739
- if (updatePath2.length === 0) {
9740
- return value;
9741
- }
9742
- if (oldData instanceof Map) {
9743
- const newData = new Map(oldData);
9744
- if (updatePath2.length === 1) {
9745
- newData.set(updatePath2[0], value);
9746
- return newData;
9747
- }
9748
- const [head, ...tail] = updatePath2;
9749
- newData.set(head, updateNestedDataByPath(newData.get(head), tail, value));
9750
- return newData;
9751
- }
9752
- if (oldData instanceof Set) {
9753
- const setAsArray = updateNestedDataByPath(Array.from(oldData), updatePath2, value);
9754
- return new Set(setAsArray);
9755
- }
9756
- if (Array.isArray(oldData)) {
9757
- const newData = [...oldData];
9758
- if (updatePath2.length === 1) {
9759
- newData[updatePath2[0]] = value;
9760
- return newData;
9761
- }
9762
- const [head, ...tail] = updatePath2;
9763
- newData[head] = updateNestedDataByPath(newData[head], tail, value);
9764
- return newData;
9765
- }
9766
- if (oldData instanceof Object) {
9767
- const newData = {
9768
- ...oldData
9769
- };
9770
- if (updatePath2.length === 1) {
9771
- newData[updatePath2[0]] = value;
9772
- return newData;
9773
- }
9774
- const [head, ...tail] = updatePath2;
9775
- newData[head] = updateNestedDataByPath(newData[head], tail, value);
9776
- return newData;
9777
- }
9778
- return oldData;
9779
- };
9780
- var deleteNestedDataByPath = (oldData, deletePath) => {
9781
- if (oldData instanceof Map) {
9782
- const newData = new Map(oldData);
9783
- if (deletePath.length === 1) {
9784
- newData.delete(deletePath[0]);
9785
- return newData;
9786
- }
9787
- const [head, ...tail] = deletePath;
9788
- newData.set(head, deleteNestedDataByPath(newData.get(head), tail));
9789
- return newData;
9790
- }
9791
- if (oldData instanceof Set) {
9792
- const setAsArray = deleteNestedDataByPath(Array.from(oldData), deletePath);
9793
- return new Set(setAsArray);
9794
- }
9795
- if (Array.isArray(oldData)) {
9796
- const newData = [...oldData];
9797
- if (deletePath.length === 1) {
9798
- return newData.filter((_, idx) => idx.toString() !== deletePath[0]);
9799
- }
9800
- const [head, ...tail] = deletePath;
9801
- newData[head] = deleteNestedDataByPath(newData[head], tail);
9802
- return newData;
9803
- }
9804
- if (oldData instanceof Object) {
9805
- const newData = {
9806
- ...oldData
9807
- };
9808
- if (deletePath.length === 1) {
9809
- delete newData[deletePath[0]];
9810
- return newData;
9811
- }
9812
- const [head, ...tail] = deletePath;
9813
- newData[head] = deleteNestedDataByPath(newData[head], tail);
9814
- return newData;
9815
- }
9816
- return oldData;
9817
- };
9818
-
9819
8634
  // src/icons/index.tsx
9820
8635
  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>`);
9821
8636
  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>`);
@@ -10581,8 +9396,8 @@ var stylesFactory = (theme) => {
10581
9396
  expanderButtonContainer: u`
10582
9397
  display: flex;
10583
9398
  align-items: center;
10584
- line-height: 1.125rem;
10585
- min-height: 1.125rem;
9399
+ line-height: ${size2[4]};
9400
+ min-height: ${size2[4]};
10586
9401
  gap: ${size2[2]};
10587
9402
  `,
10588
9403
  expanderButton: u`
@@ -10590,7 +9405,7 @@ var stylesFactory = (theme) => {
10590
9405
  color: inherit;
10591
9406
  font: inherit;
10592
9407
  outline: inherit;
10593
- height: 1rem;
9408
+ height: ${size2[5]};
10594
9409
  background: transparent;
10595
9410
  border: none;
10596
9411
  padding: 0;
@@ -10632,8 +9447,8 @@ var stylesFactory = (theme) => {
10632
9447
  display: inline-flex;
10633
9448
  gap: ${size2[2]};
10634
9449
  width: 100%;
10635
- margin-bottom: ${size2[0.5]};
10636
- line-height: 1.125rem;
9450
+ margin: ${size2[0.25]} 0px;
9451
+ line-height: ${size2[4.5]};
10637
9452
  align-items: center;
10638
9453
  `,
10639
9454
  editableInput: u`
@@ -10773,16 +9588,31 @@ var Devtools = (props) => {
10773
9588
  const position = createMemo(() => {
10774
9589
  return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10775
9590
  });
9591
+ let transitionsContainerRef;
10776
9592
  createEffect(() => {
10777
- const root = document.querySelector(".tsqd-parent-container");
9593
+ const root = transitionsContainerRef.parentElement;
10778
9594
  const height = props.localStore.height || DEFAULT_HEIGHT;
10779
9595
  const width = props.localStore.width || DEFAULT_WIDTH;
10780
9596
  const panelPosition = position();
10781
9597
  root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
10782
9598
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
10783
9599
  });
9600
+ onMount(() => {
9601
+ const onFocus = () => {
9602
+ const root = transitionsContainerRef.parentElement;
9603
+ const fontSize = getComputedStyle(root).fontSize;
9604
+ root.style.setProperty("--tsqd-font-size", fontSize);
9605
+ };
9606
+ onFocus();
9607
+ window.addEventListener("focus", onFocus);
9608
+ onCleanup(() => {
9609
+ window.removeEventListener("focus", onFocus);
9610
+ });
9611
+ });
10784
9612
  return (() => {
10785
9613
  const _el$ = _tmpl$25();
9614
+ const _ref$ = transitionsContainerRef;
9615
+ typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
10786
9616
  insert(_el$, createComponent(TransitionGroup, {
10787
9617
  name: "tsqd-panel-transition",
10788
9618
  get children() {
@@ -10954,8 +9784,8 @@ var DevtoolsPanel = (props) => {
10954
9784
  };
10955
9785
  return (() => {
10956
9786
  const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
10957
- const _ref$ = panelRef;
10958
- typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
9787
+ const _ref$2 = panelRef;
9788
+ typeof _ref$2 === "function" ? use(_ref$2, _el$5) : panelRef = _el$5;
10959
9789
  _el$6.$$mousedown = handleDragStart;
10960
9790
  _el$7.$$click = () => props.setLocalStore("open", "false");
10961
9791
  insert(_el$7, createComponent(ChevronDown, {}));
@@ -10992,6 +9822,7 @@ var DevtoolsPanel = (props) => {
10992
9822
  var ContentView = (props) => {
10993
9823
  setupQueryCacheSubscription();
10994
9824
  setupMutationCacheSubscription();
9825
+ let containerRef;
10995
9826
  const theme = useTheme();
10996
9827
  const styles = createMemo(() => {
10997
9828
  return theme() === "dark" ? darkStyles2 : lightStyles2;
@@ -11035,8 +9866,15 @@ var ContentView = (props) => {
11035
9866
  const setDevtoolsPosition = (pos) => {
11036
9867
  props.setLocalStore("position", pos);
11037
9868
  };
9869
+ const setComputedVariables = (el) => {
9870
+ const computedStyle = getComputedStyle(containerRef);
9871
+ const variable = computedStyle.getPropertyValue("--tsqd-font-size");
9872
+ el.style.setProperty("--tsqd-font-size", variable);
9873
+ };
11038
9874
  return [(() => {
11039
9875
  const _el$8 = _tmpl$192(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
9876
+ const _ref$3 = containerRef;
9877
+ typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
11040
9878
  _el$11.$$click = () => props.setLocalStore("open", "false");
11041
9879
  insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
11042
9880
  insert(_el$13, () => useQueryDevtoolsContext().version, null);
@@ -11200,6 +10038,7 @@ var ContentView = (props) => {
11200
10038
  return createComponent(Settings, {});
11201
10039
  }
11202
10040
  }), createComponent(index$d.Portal, {
10041
+ ref: (el) => setComputedVariables(el),
11203
10042
  get children() {
11204
10043
  return createComponent(index$d.Content, {
11205
10044
  get ["class"]() {
@@ -11223,6 +10062,7 @@ var ContentView = (props) => {
11223
10062
  return [_tmpl$83(), createComponent(ChevronDown, {})];
11224
10063
  }
11225
10064
  }), createComponent(index$d.Portal, {
10065
+ ref: (el) => setComputedVariables(el),
11226
10066
  get children() {
11227
10067
  return createComponent(index$d.SubContent, {
11228
10068
  get ["class"]() {
@@ -11292,6 +10132,7 @@ var ContentView = (props) => {
11292
10132
  return [_tmpl$132(), createComponent(ChevronDown, {})];
11293
10133
  }
11294
10134
  }), createComponent(index$d.Portal, {
10135
+ ref: (el) => setComputedVariables(el),
11295
10136
  get children() {
11296
10137
  return createComponent(index$d.SubContent, {
11297
10138
  get ["class"]() {
@@ -11763,8 +10604,8 @@ var QueryStatus = (props) => {
11763
10604
  });
11764
10605
  return (() => {
11765
10606
  const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
11766
- const _ref$2 = tagRef;
11767
- typeof _ref$2 === "function" ? use(_ref$2, _el$55) : tagRef = _el$55;
10607
+ const _ref$4 = tagRef;
10608
+ typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
11768
10609
  _el$55.addEventListener("mouseleave", () => {
11769
10610
  setMouseOver(false);
11770
10611
  setFocused(false);
@@ -12025,7 +10866,6 @@ var QueryDetails = () => {
12025
10866
  return _el$89;
12026
10867
  }
12027
10868
  }), null);
12028
- _el$95.style.setProperty("padding", "0.5rem");
12029
10869
  insert(_el$95, createComponent(Explorer, {
12030
10870
  label: "Data",
12031
10871
  defaultExpanded: ["Data"],
@@ -12037,7 +10877,6 @@ var QueryDetails = () => {
12037
10877
  return activeQuery();
12038
10878
  }
12039
10879
  }));
12040
- _el$97.style.setProperty("padding", "0.5rem");
12041
10880
  insert(_el$97, createComponent(Explorer, {
12042
10881
  label: "Query",
12043
10882
  defaultExpanded: ["Query", "queryKey"],
@@ -12066,7 +10905,7 @@ var QueryDetails = () => {
12066
10905
  color: ${t2(colors.cyan[500], colors.cyan[400])};
12067
10906
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
12068
10907
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
12069
- `, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header");
10908
+ `, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = tokens.size[2], _v$62 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$63 = tokens.size[2];
12070
10909
  _v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
12071
10910
  _v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
12072
10911
  _v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
@@ -12089,7 +10928,9 @@ var QueryDetails = () => {
12089
10928
  _v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
12090
10929
  _v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
12091
10930
  _v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
12092
- _v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
10931
+ _v$61 !== _p$._v$61 && ((_p$._v$61 = _v$61) != null ? _el$95.style.setProperty("padding", _v$61) : _el$95.style.removeProperty("padding"));
10932
+ _v$62 !== _p$._v$62 && className(_el$96, _p$._v$62 = _v$62);
10933
+ _v$63 !== _p$._v$63 && ((_p$._v$63 = _v$63) != null ? _el$97.style.setProperty("padding", _v$63) : _el$97.style.removeProperty("padding"));
12093
10934
  return _p$;
12094
10935
  }, {
12095
10936
  _v$39: void 0,
@@ -12114,7 +10955,9 @@ var QueryDetails = () => {
12114
10955
  _v$58: void 0,
12115
10956
  _v$59: void 0,
12116
10957
  _v$60: void 0,
12117
- _v$61: void 0
10958
+ _v$61: void 0,
10959
+ _v$62: void 0,
10960
+ _v$63: void 0
12118
10961
  });
12119
10962
  return _el$60;
12120
10963
  }
@@ -12192,7 +11035,6 @@ var MutationDetails = () => {
12192
11035
  }
12193
11036
  }), null);
12194
11037
  insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
12195
- _el$110.style.setProperty("padding", "0.5rem");
12196
11038
  insert(_el$110, createComponent(Explorer, {
12197
11039
  label: "Variables",
12198
11040
  defaultExpanded: ["Variables"],
@@ -12200,7 +11042,6 @@ var MutationDetails = () => {
12200
11042
  return activeMutation().state.variables;
12201
11043
  }
12202
11044
  }));
12203
- _el$112.style.setProperty("padding", "0.5rem");
12204
11045
  insert(_el$112, createComponent(Explorer, {
12205
11046
  label: "Context",
12206
11047
  defaultExpanded: ["Context"],
@@ -12208,7 +11049,6 @@ var MutationDetails = () => {
12208
11049
  return activeMutation().state.context;
12209
11050
  }
12210
11051
  }));
12211
- _el$114.style.setProperty("padding", "0.5rem");
12212
11052
  insert(_el$114, createComponent(Explorer, {
12213
11053
  label: "Data",
12214
11054
  defaultExpanded: ["Data"],
@@ -12216,7 +11056,6 @@ var MutationDetails = () => {
12216
11056
  return activeMutation().state.data;
12217
11057
  }
12218
11058
  }));
12219
- _el$116.style.setProperty("padding", "0.5rem");
12220
11059
  insert(_el$116, createComponent(Explorer, {
12221
11060
  label: "Mutation",
12222
11061
  defaultExpanded: ["Mutation"],
@@ -12225,25 +11064,33 @@ var MutationDetails = () => {
12225
11064
  }
12226
11065
  }));
12227
11066
  createRenderEffect((_p$) => {
12228
- const _v$62 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$65 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header");
12229
- _v$62 !== _p$._v$62 && className(_el$99, _p$._v$62 = _v$62);
12230
- _v$63 !== _p$._v$63 && className(_el$100, _p$._v$63 = _v$63);
12231
- _v$64 !== _p$._v$64 && className(_el$101, _p$._v$64 = _v$64);
12232
- _v$65 !== _p$._v$65 && className(_el$105, _p$._v$65 = _v$65);
12233
- _v$66 !== _p$._v$66 && className(_el$109, _p$._v$66 = _v$66);
12234
- _v$67 !== _p$._v$67 && className(_el$111, _p$._v$67 = _v$67);
12235
- _v$68 !== _p$._v$68 && className(_el$113, _p$._v$68 = _v$68);
12236
- _v$69 !== _p$._v$69 && className(_el$115, _p$._v$69 = _v$69);
11067
+ const _v$64 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$65 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$66 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$67 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2], _v$70 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$71 = tokens.size[2], _v$72 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$73 = tokens.size[2], _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2];
11068
+ _v$64 !== _p$._v$64 && className(_el$99, _p$._v$64 = _v$64);
11069
+ _v$65 !== _p$._v$65 && className(_el$100, _p$._v$65 = _v$65);
11070
+ _v$66 !== _p$._v$66 && className(_el$101, _p$._v$66 = _v$66);
11071
+ _v$67 !== _p$._v$67 && className(_el$105, _p$._v$67 = _v$67);
11072
+ _v$68 !== _p$._v$68 && className(_el$109, _p$._v$68 = _v$68);
11073
+ _v$69 !== _p$._v$69 && ((_p$._v$69 = _v$69) != null ? _el$110.style.setProperty("padding", _v$69) : _el$110.style.removeProperty("padding"));
11074
+ _v$70 !== _p$._v$70 && className(_el$111, _p$._v$70 = _v$70);
11075
+ _v$71 !== _p$._v$71 && ((_p$._v$71 = _v$71) != null ? _el$112.style.setProperty("padding", _v$71) : _el$112.style.removeProperty("padding"));
11076
+ _v$72 !== _p$._v$72 && className(_el$113, _p$._v$72 = _v$72);
11077
+ _v$73 !== _p$._v$73 && ((_p$._v$73 = _v$73) != null ? _el$114.style.setProperty("padding", _v$73) : _el$114.style.removeProperty("padding"));
11078
+ _v$74 !== _p$._v$74 && className(_el$115, _p$._v$74 = _v$74);
11079
+ _v$75 !== _p$._v$75 && ((_p$._v$75 = _v$75) != null ? _el$116.style.setProperty("padding", _v$75) : _el$116.style.removeProperty("padding"));
12237
11080
  return _p$;
12238
11081
  }, {
12239
- _v$62: void 0,
12240
- _v$63: void 0,
12241
11082
  _v$64: void 0,
12242
11083
  _v$65: void 0,
12243
11084
  _v$66: void 0,
12244
11085
  _v$67: void 0,
12245
11086
  _v$68: void 0,
12246
- _v$69: void 0
11087
+ _v$69: void 0,
11088
+ _v$70: void 0,
11089
+ _v$71: void 0,
11090
+ _v$72: void 0,
11091
+ _v$73: void 0,
11092
+ _v$74: void 0,
11093
+ _v$75: void 0
12247
11094
  });
12248
11095
  return _el$99;
12249
11096
  }
@@ -12417,7 +11264,7 @@ var stylesFactory2 = (theme) => {
12417
11264
  right: 0;
12418
11265
  left: 0;
12419
11266
  max-height: 90%;
12420
- min-height: 3.5rem;
11267
+ min-height: ${size2[14]};
12421
11268
  border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12422
11269
  `,
12423
11270
  "panel-position-bottom": u`
@@ -12425,7 +11272,7 @@ var stylesFactory2 = (theme) => {
12425
11272
  right: 0;
12426
11273
  left: 0;
12427
11274
  max-height: 90%;
12428
- min-height: 3.5rem;
11275
+ min-height: ${size2[14]};
12429
11276
  border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12430
11277
  `,
12431
11278
  "panel-position-right": u`
@@ -12757,6 +11604,8 @@ var stylesFactory2 = (theme) => {
12757
11604
  outline: 2px solid ${colors.blue[800]};
12758
11605
  }
12759
11606
  & svg {
11607
+ width: ${tokens.size[3]};
11608
+ height: ${tokens.size[3]};
12760
11609
  color: ${t2(colors.gray[500], colors.gray[400])};
12761
11610
  }
12762
11611
  }
@@ -12842,8 +11691,8 @@ var stylesFactory2 = (theme) => {
12842
11691
  border-radius: ${tokens.border.radius.sm};
12843
11692
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12844
11693
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12845
- width: 1.625rem;
12846
- height: 1.625rem;
11694
+ width: ${tokens.size[6.5]};
11695
+ height: ${tokens.size[6.5]};
12847
11696
  justify-content: center;
12848
11697
  display: flex;
12849
11698
  align-items: center;