@tanstack/query-devtools 5.0.0-beta.33 → 5.0.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{PS2NMF43.jsx → DWELN6EN.jsx} +711 -1831
- package/build/Devtools/{AL7POTVF.jsx → FASZSC6H.jsx} +707 -1755
- package/build/Devtools/{AO4SNFEU.js → OXAQM7EL.js} +684 -1736
- package/build/Devtools/{GFOHVLUL.js → PCOU65Y2.js} +688 -1921
- package/build/dev.cjs +1150 -2480
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +1150 -2306
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +6 -4
- package/src/Devtools.tsx +293 -143
- package/src/Explorer.tsx +2 -1
- package/src/icons/index.tsx +20 -0
|
@@ -424,8 +424,8 @@ var characterMap = {
|
|
|
424
424
|
var chars = Object.keys(characterMap).join("|");
|
|
425
425
|
var allAccents = new RegExp(chars, "g");
|
|
426
426
|
function removeAccents(str) {
|
|
427
|
-
return str.replace(allAccents, (
|
|
428
|
-
return characterMap[
|
|
427
|
+
return str.replace(allAccents, (match) => {
|
|
428
|
+
return characterMap[match];
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
var rankings = {
|
|
@@ -461,8 +461,8 @@ function rankItem(item, value, options) {
|
|
|
461
461
|
accessorThreshold: options.threshold,
|
|
462
462
|
passed: false
|
|
463
463
|
};
|
|
464
|
-
for (let
|
|
465
|
-
const rankValue = valuesToRank[
|
|
464
|
+
for (let i2 = 0; i2 < valuesToRank.length; i2++) {
|
|
465
|
+
const rankValue = valuesToRank[i2];
|
|
466
466
|
let newRank = getMatchRanking(rankValue.itemValue, value, options);
|
|
467
467
|
const {
|
|
468
468
|
minRanking,
|
|
@@ -478,7 +478,7 @@ function rankItem(item, value, options) {
|
|
|
478
478
|
if (newRank >= threshold && newRank > rankingInfo.rank) {
|
|
479
479
|
rankingInfo.rank = newRank;
|
|
480
480
|
rankingInfo.passed = true;
|
|
481
|
-
rankingInfo.accessorIndex =
|
|
481
|
+
rankingInfo.accessorIndex = i2;
|
|
482
482
|
rankingInfo.accessorThreshold = threshold;
|
|
483
483
|
rankingInfo.rankedValue = rankValue.itemValue;
|
|
484
484
|
}
|
|
@@ -550,8 +550,8 @@ function getClosenessRanking(testString, stringToRank) {
|
|
|
550
550
|
return rankings.NO_MATCH;
|
|
551
551
|
}
|
|
552
552
|
charNumber = firstIndex;
|
|
553
|
-
for (let
|
|
554
|
-
const matchChar = stringToRank[
|
|
553
|
+
for (let i2 = 1, I = stringToRank.length; i2 < I; i2++) {
|
|
554
|
+
const matchChar = stringToRank[i2];
|
|
555
555
|
charNumber = findMatchingCharacter(matchChar, testString, charNumber);
|
|
556
556
|
const found = charNumber > -1;
|
|
557
557
|
if (!found) {
|
|
@@ -591,9 +591,9 @@ function getAllValuesToRank(item, accessors) {
|
|
|
591
591
|
const accessor = accessors[j];
|
|
592
592
|
const attributes = getAccessorAttributes(accessor);
|
|
593
593
|
const itemValues = getItemValues(item, accessor);
|
|
594
|
-
for (let
|
|
594
|
+
for (let i2 = 0, I = itemValues.length; i2 < I; i2++) {
|
|
595
595
|
allValues.push({
|
|
596
|
-
itemValue: itemValues[
|
|
596
|
+
itemValue: itemValues[i2],
|
|
597
597
|
attributes
|
|
598
598
|
});
|
|
599
599
|
}
|
|
@@ -614,1359 +614,85 @@ function getAccessorAttributes(accessor) {
|
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
// ../../node_modules/.pnpm
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
tag.setAttribute("data-emotion", options.key);
|
|
631
|
-
if (options.nonce !== void 0) {
|
|
632
|
-
tag.setAttribute("nonce", options.nonce);
|
|
633
|
-
}
|
|
634
|
-
tag.appendChild(document.createTextNode(""));
|
|
635
|
-
tag.setAttribute("data-s", "");
|
|
636
|
-
return tag;
|
|
637
|
-
}
|
|
638
|
-
var StyleSheet = /* @__PURE__ */ function() {
|
|
639
|
-
function StyleSheet2(options) {
|
|
640
|
-
var _this = this;
|
|
641
|
-
this._insertTag = function(tag) {
|
|
642
|
-
var before;
|
|
643
|
-
if (_this.tags.length === 0) {
|
|
644
|
-
if (_this.insertionPoint) {
|
|
645
|
-
before = _this.insertionPoint.nextSibling;
|
|
646
|
-
} else if (_this.prepend) {
|
|
647
|
-
before = _this.container.firstChild;
|
|
648
|
-
} else {
|
|
649
|
-
before = _this.before;
|
|
650
|
-
}
|
|
651
|
-
} else {
|
|
652
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
653
|
-
}
|
|
654
|
-
_this.container.insertBefore(tag, before);
|
|
655
|
-
_this.tags.push(tag);
|
|
656
|
-
};
|
|
657
|
-
this.isSpeedy = options.speedy === void 0 ? false : options.speedy;
|
|
658
|
-
this.tags = [];
|
|
659
|
-
this.ctr = 0;
|
|
660
|
-
this.nonce = options.nonce;
|
|
661
|
-
this.key = options.key;
|
|
662
|
-
this.container = options.container;
|
|
663
|
-
this.prepend = options.prepend;
|
|
664
|
-
this.insertionPoint = options.insertionPoint;
|
|
665
|
-
this.before = null;
|
|
666
|
-
}
|
|
667
|
-
var _proto = StyleSheet2.prototype;
|
|
668
|
-
_proto.hydrate = function hydrate2(nodes) {
|
|
669
|
-
nodes.forEach(this._insertTag);
|
|
670
|
-
};
|
|
671
|
-
_proto.insert = function insert(rule) {
|
|
672
|
-
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
|
|
673
|
-
this._insertTag(createStyleElement(this));
|
|
674
|
-
}
|
|
675
|
-
var tag = this.tags[this.tags.length - 1];
|
|
676
|
-
if (true) {
|
|
677
|
-
var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
678
|
-
if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
|
|
679
|
-
console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");
|
|
680
|
-
}
|
|
681
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
|
|
682
|
-
}
|
|
683
|
-
if (this.isSpeedy) {
|
|
684
|
-
var sheet2 = sheetForTag(tag);
|
|
685
|
-
try {
|
|
686
|
-
sheet2.insertRule(rule, sheet2.cssRules.length);
|
|
687
|
-
} catch (e) {
|
|
688
|
-
if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
689
|
-
console.error('There was a problem inserting the following rule: "' + rule + '"', e);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
} else {
|
|
693
|
-
tag.appendChild(document.createTextNode(rule));
|
|
694
|
-
}
|
|
695
|
-
this.ctr++;
|
|
696
|
-
};
|
|
697
|
-
_proto.flush = function flush2() {
|
|
698
|
-
this.tags.forEach(function(tag) {
|
|
699
|
-
return tag.parentNode && tag.parentNode.removeChild(tag);
|
|
700
|
-
});
|
|
701
|
-
this.tags = [];
|
|
702
|
-
this.ctr = 0;
|
|
703
|
-
if (true) {
|
|
704
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
return StyleSheet2;
|
|
708
|
-
}();
|
|
709
|
-
|
|
710
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
|
|
711
|
-
var MS = "-ms-";
|
|
712
|
-
var MOZ = "-moz-";
|
|
713
|
-
var WEBKIT = "-webkit-";
|
|
714
|
-
var COMMENT = "comm";
|
|
715
|
-
var RULESET = "rule";
|
|
716
|
-
var DECLARATION = "decl";
|
|
717
|
-
var IMPORT = "@import";
|
|
718
|
-
var KEYFRAMES = "@keyframes";
|
|
719
|
-
var LAYER = "@layer";
|
|
720
|
-
|
|
721
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
|
|
722
|
-
var abs = Math.abs;
|
|
723
|
-
var from = String.fromCharCode;
|
|
724
|
-
var assign = Object.assign;
|
|
725
|
-
function hash(value, length2) {
|
|
726
|
-
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
727
|
-
}
|
|
728
|
-
function trim(value) {
|
|
729
|
-
return value.trim();
|
|
730
|
-
}
|
|
731
|
-
function match(value, pattern) {
|
|
732
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
733
|
-
}
|
|
734
|
-
function replace(value, pattern, replacement) {
|
|
735
|
-
return value.replace(pattern, replacement);
|
|
736
|
-
}
|
|
737
|
-
function indexof(value, search) {
|
|
738
|
-
return value.indexOf(search);
|
|
739
|
-
}
|
|
740
|
-
function charat(value, index) {
|
|
741
|
-
return value.charCodeAt(index) | 0;
|
|
742
|
-
}
|
|
743
|
-
function substr(value, begin, end) {
|
|
744
|
-
return value.slice(begin, end);
|
|
745
|
-
}
|
|
746
|
-
function strlen(value) {
|
|
747
|
-
return value.length;
|
|
748
|
-
}
|
|
749
|
-
function sizeof(value) {
|
|
750
|
-
return value.length;
|
|
751
|
-
}
|
|
752
|
-
function append(value, array) {
|
|
753
|
-
return array.push(value), value;
|
|
754
|
-
}
|
|
755
|
-
function combine(array, callback) {
|
|
756
|
-
return array.map(callback).join("");
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
|
|
760
|
-
var line = 1;
|
|
761
|
-
var column = 1;
|
|
762
|
-
var length = 0;
|
|
763
|
-
var position = 0;
|
|
764
|
-
var character = 0;
|
|
765
|
-
var characters = "";
|
|
766
|
-
function node(value, root, parent, type, props, children2, length2) {
|
|
767
|
-
return { value, root, parent, type, props, children: children2, line, column, length: length2, return: "" };
|
|
768
|
-
}
|
|
769
|
-
function copy(root, props) {
|
|
770
|
-
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
771
|
-
}
|
|
772
|
-
function char() {
|
|
773
|
-
return character;
|
|
774
|
-
}
|
|
775
|
-
function prev() {
|
|
776
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
777
|
-
if (column--, character === 10)
|
|
778
|
-
column = 1, line--;
|
|
779
|
-
return character;
|
|
780
|
-
}
|
|
781
|
-
function next() {
|
|
782
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
783
|
-
if (column++, character === 10)
|
|
784
|
-
column = 1, line++;
|
|
785
|
-
return character;
|
|
786
|
-
}
|
|
787
|
-
function peek() {
|
|
788
|
-
return charat(characters, position);
|
|
789
|
-
}
|
|
790
|
-
function caret() {
|
|
791
|
-
return position;
|
|
792
|
-
}
|
|
793
|
-
function slice(begin, end) {
|
|
794
|
-
return substr(characters, begin, end);
|
|
795
|
-
}
|
|
796
|
-
function token(type) {
|
|
797
|
-
switch (type) {
|
|
798
|
-
case 0:
|
|
799
|
-
case 9:
|
|
800
|
-
case 10:
|
|
801
|
-
case 13:
|
|
802
|
-
case 32:
|
|
803
|
-
return 5;
|
|
804
|
-
case 33:
|
|
805
|
-
case 43:
|
|
806
|
-
case 44:
|
|
807
|
-
case 47:
|
|
808
|
-
case 62:
|
|
809
|
-
case 64:
|
|
810
|
-
case 126:
|
|
811
|
-
case 59:
|
|
812
|
-
case 123:
|
|
813
|
-
case 125:
|
|
814
|
-
return 4;
|
|
815
|
-
case 58:
|
|
816
|
-
return 3;
|
|
817
|
-
case 34:
|
|
818
|
-
case 39:
|
|
819
|
-
case 40:
|
|
820
|
-
case 91:
|
|
821
|
-
return 2;
|
|
822
|
-
case 41:
|
|
823
|
-
case 93:
|
|
824
|
-
return 1;
|
|
825
|
-
}
|
|
826
|
-
return 0;
|
|
827
|
-
}
|
|
828
|
-
function alloc(value) {
|
|
829
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
830
|
-
}
|
|
831
|
-
function dealloc(value) {
|
|
832
|
-
return characters = "", value;
|
|
833
|
-
}
|
|
834
|
-
function delimit(type) {
|
|
835
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
836
|
-
}
|
|
837
|
-
function whitespace(type) {
|
|
838
|
-
while (character = peek())
|
|
839
|
-
if (character < 33)
|
|
840
|
-
next();
|
|
841
|
-
else
|
|
842
|
-
break;
|
|
843
|
-
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
844
|
-
}
|
|
845
|
-
function escaping(index, count) {
|
|
846
|
-
while (--count && next())
|
|
847
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
848
|
-
break;
|
|
849
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
850
|
-
}
|
|
851
|
-
function delimiter(type) {
|
|
852
|
-
while (next())
|
|
853
|
-
switch (character) {
|
|
854
|
-
case type:
|
|
855
|
-
return position;
|
|
856
|
-
case 34:
|
|
857
|
-
case 39:
|
|
858
|
-
if (type !== 34 && type !== 39)
|
|
859
|
-
delimiter(character);
|
|
860
|
-
break;
|
|
861
|
-
case 40:
|
|
862
|
-
if (type === 41)
|
|
863
|
-
delimiter(type);
|
|
864
|
-
break;
|
|
865
|
-
case 92:
|
|
866
|
-
next();
|
|
867
|
-
break;
|
|
868
|
-
}
|
|
869
|
-
return position;
|
|
870
|
-
}
|
|
871
|
-
function commenter(type, index) {
|
|
872
|
-
while (next())
|
|
873
|
-
if (type + character === 47 + 10)
|
|
874
|
-
break;
|
|
875
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
876
|
-
break;
|
|
877
|
-
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
878
|
-
}
|
|
879
|
-
function identifier(index) {
|
|
880
|
-
while (!token(peek()))
|
|
881
|
-
next();
|
|
882
|
-
return slice(index, position);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
|
|
886
|
-
function compile(value) {
|
|
887
|
-
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
888
|
-
}
|
|
889
|
-
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
890
|
-
var index = 0;
|
|
891
|
-
var offset = 0;
|
|
892
|
-
var length2 = pseudo;
|
|
893
|
-
var atrule = 0;
|
|
894
|
-
var property = 0;
|
|
895
|
-
var previous = 0;
|
|
896
|
-
var variable = 1;
|
|
897
|
-
var scanning = 1;
|
|
898
|
-
var ampersand = 1;
|
|
899
|
-
var character2 = 0;
|
|
900
|
-
var type = "";
|
|
901
|
-
var props = rules;
|
|
902
|
-
var children2 = rulesets;
|
|
903
|
-
var reference = rule;
|
|
904
|
-
var characters2 = type;
|
|
905
|
-
while (scanning)
|
|
906
|
-
switch (previous = character2, character2 = next()) {
|
|
907
|
-
case 40:
|
|
908
|
-
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
909
|
-
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
|
|
910
|
-
ampersand = -1;
|
|
911
|
-
break;
|
|
912
|
-
}
|
|
913
|
-
case 34:
|
|
914
|
-
case 39:
|
|
915
|
-
case 91:
|
|
916
|
-
characters2 += delimit(character2);
|
|
917
|
-
break;
|
|
918
|
-
case 9:
|
|
919
|
-
case 10:
|
|
920
|
-
case 13:
|
|
921
|
-
case 32:
|
|
922
|
-
characters2 += whitespace(previous);
|
|
923
|
-
break;
|
|
924
|
-
case 92:
|
|
925
|
-
characters2 += escaping(caret() - 1, 7);
|
|
926
|
-
continue;
|
|
927
|
-
case 47:
|
|
928
|
-
switch (peek()) {
|
|
929
|
-
case 42:
|
|
930
|
-
case 47:
|
|
931
|
-
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
932
|
-
break;
|
|
933
|
-
default:
|
|
934
|
-
characters2 += "/";
|
|
935
|
-
}
|
|
936
|
-
break;
|
|
937
|
-
case 123 * variable:
|
|
938
|
-
points[index++] = strlen(characters2) * ampersand;
|
|
939
|
-
case 125 * variable:
|
|
940
|
-
case 59:
|
|
941
|
-
case 0:
|
|
942
|
-
switch (character2) {
|
|
943
|
-
case 0:
|
|
944
|
-
case 125:
|
|
945
|
-
scanning = 0;
|
|
946
|
-
case 59 + offset:
|
|
947
|
-
if (ampersand == -1)
|
|
948
|
-
characters2 = replace(characters2, /\f/g, "");
|
|
949
|
-
if (property > 0 && strlen(characters2) - length2)
|
|
950
|
-
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
951
|
-
break;
|
|
952
|
-
case 59:
|
|
953
|
-
characters2 += ";";
|
|
954
|
-
default:
|
|
955
|
-
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children2 = [], length2), rulesets);
|
|
956
|
-
if (character2 === 123)
|
|
957
|
-
if (offset === 0)
|
|
958
|
-
parse(characters2, root, reference, reference, props, rulesets, length2, points, children2);
|
|
959
|
-
else
|
|
960
|
-
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
961
|
-
case 100:
|
|
962
|
-
case 108:
|
|
963
|
-
case 109:
|
|
964
|
-
case 115:
|
|
965
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children2), rules, children2, length2, points, rule ? props : children2);
|
|
966
|
-
break;
|
|
967
|
-
default:
|
|
968
|
-
parse(characters2, reference, reference, reference, [""], children2, 0, points, children2);
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
972
|
-
break;
|
|
973
|
-
case 58:
|
|
974
|
-
length2 = 1 + strlen(characters2), property = previous;
|
|
975
|
-
default:
|
|
976
|
-
if (variable < 1) {
|
|
977
|
-
if (character2 == 123)
|
|
978
|
-
--variable;
|
|
979
|
-
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
980
|
-
continue;
|
|
981
|
-
}
|
|
982
|
-
switch (characters2 += from(character2), character2 * variable) {
|
|
983
|
-
case 38:
|
|
984
|
-
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
985
|
-
break;
|
|
986
|
-
case 44:
|
|
987
|
-
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
988
|
-
break;
|
|
989
|
-
case 64:
|
|
990
|
-
if (peek() === 45)
|
|
991
|
-
characters2 += delimit(next());
|
|
992
|
-
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
993
|
-
break;
|
|
994
|
-
case 45:
|
|
995
|
-
if (previous === 45 && strlen(characters2) == 2)
|
|
996
|
-
variable = 0;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
return rulesets;
|
|
1000
|
-
}
|
|
1001
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children2, length2) {
|
|
1002
|
-
var post = offset - 1;
|
|
1003
|
-
var rule = offset === 0 ? rules : [""];
|
|
1004
|
-
var size = sizeof(rule);
|
|
1005
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
1006
|
-
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
1007
|
-
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
1008
|
-
props[k++] = z;
|
|
1009
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children2, length2);
|
|
1010
|
-
}
|
|
1011
|
-
function comment(value, root, parent) {
|
|
1012
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
1013
|
-
}
|
|
1014
|
-
function declaration(value, root, parent, length2) {
|
|
1015
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
|
|
1019
|
-
function serialize(children2, callback) {
|
|
1020
|
-
var output = "";
|
|
1021
|
-
var length2 = sizeof(children2);
|
|
1022
|
-
for (var i = 0; i < length2; i++)
|
|
1023
|
-
output += callback(children2[i], i, children2, callback) || "";
|
|
1024
|
-
return output;
|
|
1025
|
-
}
|
|
1026
|
-
function stringify(element, index, children2, callback) {
|
|
1027
|
-
switch (element.type) {
|
|
1028
|
-
case LAYER:
|
|
1029
|
-
if (element.children.length)
|
|
1030
|
-
break;
|
|
1031
|
-
case IMPORT:
|
|
1032
|
-
case DECLARATION:
|
|
1033
|
-
return element.return = element.return || element.value;
|
|
1034
|
-
case COMMENT:
|
|
1035
|
-
return "";
|
|
1036
|
-
case KEYFRAMES:
|
|
1037
|
-
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
1038
|
-
case RULESET:
|
|
1039
|
-
element.value = element.props.join(",");
|
|
1040
|
-
}
|
|
1041
|
-
return strlen(children2 = serialize(element.children, callback)) ? element.return = element.value + "{" + children2 + "}" : "";
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
// ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
|
|
1045
|
-
function middleware(collection) {
|
|
1046
|
-
var length2 = sizeof(collection);
|
|
1047
|
-
return function(element, index, children2, callback) {
|
|
1048
|
-
var output = "";
|
|
1049
|
-
for (var i = 0; i < length2; i++)
|
|
1050
|
-
output += collection[i](element, index, children2, callback) || "";
|
|
1051
|
-
return output;
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
// ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
1056
|
-
function memoize(fn) {
|
|
1057
|
-
var cache2 = /* @__PURE__ */ Object.create(null);
|
|
1058
|
-
return function(arg) {
|
|
1059
|
-
if (cache2[arg] === void 0)
|
|
1060
|
-
cache2[arg] = fn(arg);
|
|
1061
|
-
return cache2[arg];
|
|
1062
|
-
};
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
// ../../node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
1066
|
-
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
|
|
1067
|
-
var previous = 0;
|
|
1068
|
-
var character2 = 0;
|
|
1069
|
-
while (true) {
|
|
1070
|
-
previous = character2;
|
|
1071
|
-
character2 = peek();
|
|
1072
|
-
if (previous === 38 && character2 === 12) {
|
|
1073
|
-
points[index] = 1;
|
|
1074
|
-
}
|
|
1075
|
-
if (token(character2)) {
|
|
1076
|
-
break;
|
|
1077
|
-
}
|
|
1078
|
-
next();
|
|
1079
|
-
}
|
|
1080
|
-
return slice(begin, position);
|
|
1081
|
-
};
|
|
1082
|
-
var toRules = function toRules2(parsed, points) {
|
|
1083
|
-
var index = -1;
|
|
1084
|
-
var character2 = 44;
|
|
1085
|
-
do {
|
|
1086
|
-
switch (token(character2)) {
|
|
1087
|
-
case 0:
|
|
1088
|
-
if (character2 === 38 && peek() === 12) {
|
|
1089
|
-
points[index] = 1;
|
|
1090
|
-
}
|
|
1091
|
-
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
1092
|
-
break;
|
|
1093
|
-
case 2:
|
|
1094
|
-
parsed[index] += delimit(character2);
|
|
1095
|
-
break;
|
|
1096
|
-
case 4:
|
|
1097
|
-
if (character2 === 44) {
|
|
1098
|
-
parsed[++index] = peek() === 58 ? "&\f" : "";
|
|
1099
|
-
points[index] = parsed[index].length;
|
|
1100
|
-
break;
|
|
1101
|
-
}
|
|
1102
|
-
default:
|
|
1103
|
-
parsed[index] += from(character2);
|
|
1104
|
-
}
|
|
1105
|
-
} while (character2 = next());
|
|
1106
|
-
return parsed;
|
|
1107
|
-
};
|
|
1108
|
-
var getRules = function getRules2(value, points) {
|
|
1109
|
-
return dealloc(toRules(alloc(value), points));
|
|
1110
|
-
};
|
|
1111
|
-
var fixedElements = /* @__PURE__ */ new WeakMap();
|
|
1112
|
-
var compat = function compat2(element) {
|
|
1113
|
-
if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
1114
|
-
// negative .length indicates that this rule has been already prefixed
|
|
1115
|
-
element.length < 1) {
|
|
1116
|
-
return;
|
|
1117
|
-
}
|
|
1118
|
-
var value = element.value, parent = element.parent;
|
|
1119
|
-
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
1120
|
-
while (parent.type !== "rule") {
|
|
1121
|
-
parent = parent.parent;
|
|
1122
|
-
if (!parent)
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
|
1126
|
-
return;
|
|
1127
|
-
}
|
|
1128
|
-
if (isImplicitRule) {
|
|
1129
|
-
return;
|
|
1130
|
-
}
|
|
1131
|
-
fixedElements.set(element, true);
|
|
1132
|
-
var points = [];
|
|
1133
|
-
var rules = getRules(value, points);
|
|
1134
|
-
var parentRules = parent.props;
|
|
1135
|
-
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
1136
|
-
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
1137
|
-
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
|
-
var removeLabel = function removeLabel2(element) {
|
|
1142
|
-
if (element.type === "decl") {
|
|
1143
|
-
var value = element.value;
|
|
1144
|
-
if (
|
|
1145
|
-
// charcode for l
|
|
1146
|
-
value.charCodeAt(0) === 108 && // charcode for b
|
|
1147
|
-
value.charCodeAt(2) === 98
|
|
1148
|
-
) {
|
|
1149
|
-
element["return"] = "";
|
|
1150
|
-
element.value = "";
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
|
-
var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
|
|
1155
|
-
var isIgnoringComment = function isIgnoringComment2(element) {
|
|
1156
|
-
return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
|
|
1157
|
-
};
|
|
1158
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache2) {
|
|
1159
|
-
return function(element, index, children2) {
|
|
1160
|
-
if (element.type !== "rule" || cache2.compat)
|
|
1161
|
-
return;
|
|
1162
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
1163
|
-
if (unsafePseudoClasses) {
|
|
1164
|
-
var isNested = !!element.parent;
|
|
1165
|
-
var commentContainer = isNested ? element.parent.children : (
|
|
1166
|
-
// global rule at the root level
|
|
1167
|
-
children2
|
|
1168
|
-
);
|
|
1169
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
1170
|
-
var node2 = commentContainer[i];
|
|
1171
|
-
if (node2.line < element.line) {
|
|
1172
|
-
break;
|
|
1173
|
-
}
|
|
1174
|
-
if (node2.column < element.column) {
|
|
1175
|
-
if (isIgnoringComment(node2)) {
|
|
1176
|
-
return;
|
|
1177
|
-
}
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
unsafePseudoClasses.forEach(function(unsafePseudoClass) {
|
|
1182
|
-
console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
};
|
|
1187
|
-
var isImportRule = function isImportRule2(element) {
|
|
1188
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
617
|
+
// ../../node_modules/.pnpm/goober@2.1.13_csstype@3.1.2/node_modules/goober/dist/goober.modern.js
|
|
618
|
+
var e = { data: "" };
|
|
619
|
+
var t = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e;
|
|
620
|
+
var l = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
|
|
621
|
+
var a = /\/\*[^]*?\*\/| +/g;
|
|
622
|
+
var n = /\n+/g;
|
|
623
|
+
var o = (e2, t2) => {
|
|
624
|
+
let r2 = "", l2 = "", a2 = "";
|
|
625
|
+
for (let n2 in e2) {
|
|
626
|
+
let c2 = e2[n2];
|
|
627
|
+
"@" == n2[0] ? "i" == n2[1] ? r2 = n2 + " " + c2 + ";" : l2 += "f" == n2[1] ? o(c2, n2) : n2 + "{" + o(c2, "k" == n2[1] ? "" : t2) + "}" : "object" == typeof c2 ? l2 += o(c2, t2 ? t2.replace(/([^,])+/g, (e3) => n2.replace(/(^:.*)|([^,])+/g, (t3) => /&/.test(t3) ? t3.replace(/&/g, e3) : e3 ? e3 + " " + t3 : t3)) : n2) : null != c2 && (n2 = /^--/.test(n2) ? n2 : n2.replace(/[A-Z]/g, "-$&").toLowerCase(), a2 += o.p ? o.p(n2, c2) : n2 + ":" + c2 + ";");
|
|
628
|
+
}
|
|
629
|
+
return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
|
|
1189
630
|
};
|
|
1190
|
-
var
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
631
|
+
var c = {};
|
|
632
|
+
var s = (e2) => {
|
|
633
|
+
if ("object" == typeof e2) {
|
|
634
|
+
let t2 = "";
|
|
635
|
+
for (let r2 in e2)
|
|
636
|
+
t2 += r2 + s(e2[r2]);
|
|
637
|
+
return t2;
|
|
638
|
+
}
|
|
639
|
+
return e2;
|
|
1197
640
|
};
|
|
1198
|
-
var
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
641
|
+
var i = (e2, t2, r2, i2, p2) => {
|
|
642
|
+
let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
|
|
643
|
+
let t3 = 0, r3 = 11;
|
|
644
|
+
for (; t3 < e3.length; )
|
|
645
|
+
r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
|
|
646
|
+
return "go" + r3;
|
|
647
|
+
})(u2));
|
|
648
|
+
if (!c[d]) {
|
|
649
|
+
let t3 = u2 !== e2 ? e2 : ((e3) => {
|
|
650
|
+
let t4, r3, o2 = [{}];
|
|
651
|
+
for (; t4 = l.exec(e3.replace(a, "")); )
|
|
652
|
+
t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
|
|
653
|
+
return o2[0];
|
|
654
|
+
})(e2);
|
|
655
|
+
c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
|
|
656
|
+
}
|
|
657
|
+
let f = r2 && c.g ? c.g : null;
|
|
658
|
+
return r2 && (c.g = c[d]), ((e3, t3, r3, l2) => {
|
|
659
|
+
l2 ? t3.data = t3.data.replace(l2, e3) : -1 === t3.data.indexOf(e3) && (t3.data = r3 ? e3 + t3.data : t3.data + e3);
|
|
660
|
+
})(c[d], t2, i2, f), d;
|
|
1204
661
|
};
|
|
1205
|
-
var
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
function prefix(value, length2) {
|
|
1218
|
-
switch (hash(value, length2)) {
|
|
1219
|
-
case 5103:
|
|
1220
|
-
return WEBKIT + "print-" + value + value;
|
|
1221
|
-
case 5737:
|
|
1222
|
-
case 4201:
|
|
1223
|
-
case 3177:
|
|
1224
|
-
case 3433:
|
|
1225
|
-
case 1641:
|
|
1226
|
-
case 4457:
|
|
1227
|
-
case 2921:
|
|
1228
|
-
case 5572:
|
|
1229
|
-
case 6356:
|
|
1230
|
-
case 5844:
|
|
1231
|
-
case 3191:
|
|
1232
|
-
case 6645:
|
|
1233
|
-
case 3005:
|
|
1234
|
-
case 6391:
|
|
1235
|
-
case 5879:
|
|
1236
|
-
case 5623:
|
|
1237
|
-
case 6135:
|
|
1238
|
-
case 4599:
|
|
1239
|
-
case 4855:
|
|
1240
|
-
case 4215:
|
|
1241
|
-
case 6389:
|
|
1242
|
-
case 5109:
|
|
1243
|
-
case 5365:
|
|
1244
|
-
case 5621:
|
|
1245
|
-
case 3829:
|
|
1246
|
-
return WEBKIT + value + value;
|
|
1247
|
-
case 5349:
|
|
1248
|
-
case 4246:
|
|
1249
|
-
case 4810:
|
|
1250
|
-
case 6968:
|
|
1251
|
-
case 2756:
|
|
1252
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1253
|
-
case 6828:
|
|
1254
|
-
case 4268:
|
|
1255
|
-
return WEBKIT + value + MS + value + value;
|
|
1256
|
-
case 6165:
|
|
1257
|
-
return WEBKIT + value + MS + "flex-" + value + value;
|
|
1258
|
-
case 5187:
|
|
1259
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
1260
|
-
case 5443:
|
|
1261
|
-
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
|
1262
|
-
case 4675:
|
|
1263
|
-
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
|
1264
|
-
case 5548:
|
|
1265
|
-
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
1266
|
-
case 5292:
|
|
1267
|
-
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
1268
|
-
case 6060:
|
|
1269
|
-
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
1270
|
-
case 4554:
|
|
1271
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
1272
|
-
case 6187:
|
|
1273
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
1274
|
-
case 5495:
|
|
1275
|
-
case 3959:
|
|
1276
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
1277
|
-
case 4968:
|
|
1278
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
1279
|
-
case 4095:
|
|
1280
|
-
case 3583:
|
|
1281
|
-
case 4068:
|
|
1282
|
-
case 2532:
|
|
1283
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
1284
|
-
case 8116:
|
|
1285
|
-
case 7059:
|
|
1286
|
-
case 5753:
|
|
1287
|
-
case 5535:
|
|
1288
|
-
case 5445:
|
|
1289
|
-
case 5701:
|
|
1290
|
-
case 4933:
|
|
1291
|
-
case 4677:
|
|
1292
|
-
case 5533:
|
|
1293
|
-
case 5789:
|
|
1294
|
-
case 5021:
|
|
1295
|
-
case 4765:
|
|
1296
|
-
if (strlen(value) - 1 - length2 > 6)
|
|
1297
|
-
switch (charat(value, length2 + 1)) {
|
|
1298
|
-
case 109:
|
|
1299
|
-
if (charat(value, length2 + 4) !== 45)
|
|
1300
|
-
break;
|
|
1301
|
-
case 102:
|
|
1302
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
1303
|
-
case 115:
|
|
1304
|
-
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
1305
|
-
}
|
|
1306
|
-
break;
|
|
1307
|
-
case 4949:
|
|
1308
|
-
if (charat(value, length2 + 1) !== 115)
|
|
1309
|
-
break;
|
|
1310
|
-
case 6444:
|
|
1311
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
1312
|
-
case 107:
|
|
1313
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
1314
|
-
case 101:
|
|
1315
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
1316
|
-
}
|
|
1317
|
-
break;
|
|
1318
|
-
case 5936:
|
|
1319
|
-
switch (charat(value, length2 + 11)) {
|
|
1320
|
-
case 114:
|
|
1321
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
1322
|
-
case 108:
|
|
1323
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
1324
|
-
case 45:
|
|
1325
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
1326
|
-
}
|
|
1327
|
-
return WEBKIT + value + MS + value + value;
|
|
1328
|
-
}
|
|
1329
|
-
return value;
|
|
662
|
+
var p = (e2, t2, r2) => e2.reduce((e3, l2, a2) => {
|
|
663
|
+
let n2 = t2[a2];
|
|
664
|
+
if (n2 && n2.call) {
|
|
665
|
+
let e4 = n2(r2), t3 = e4 && e4.props && e4.props.className || /^go/.test(e4) && e4;
|
|
666
|
+
n2 = t3 ? "." + t3 : e4 && "object" == typeof e4 ? e4.props ? "" : o(e4, "") : false === e4 ? "" : e4;
|
|
667
|
+
}
|
|
668
|
+
return e3 + l2 + (null == n2 ? "" : n2);
|
|
669
|
+
}, "");
|
|
670
|
+
function u(e2) {
|
|
671
|
+
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
672
|
+
return i(l2.unshift ? l2.raw ? p(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t(r2.target), r2.g, r2.o, r2.k);
|
|
1330
673
|
}
|
|
1331
|
-
var
|
|
1332
|
-
|
|
1333
|
-
if (!element["return"])
|
|
1334
|
-
switch (element.type) {
|
|
1335
|
-
case DECLARATION:
|
|
1336
|
-
element["return"] = prefix(element.value, element.length);
|
|
1337
|
-
break;
|
|
1338
|
-
case KEYFRAMES:
|
|
1339
|
-
return serialize([copy(element, {
|
|
1340
|
-
value: replace(element.value, "@", "@" + WEBKIT)
|
|
1341
|
-
})], callback);
|
|
1342
|
-
case RULESET:
|
|
1343
|
-
if (element.length)
|
|
1344
|
-
return combine(element.props, function(value) {
|
|
1345
|
-
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
1346
|
-
case ":read-only":
|
|
1347
|
-
case ":read-write":
|
|
1348
|
-
return serialize([copy(element, {
|
|
1349
|
-
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
1350
|
-
})], callback);
|
|
1351
|
-
case "::placeholder":
|
|
1352
|
-
return serialize([copy(element, {
|
|
1353
|
-
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
1354
|
-
}), copy(element, {
|
|
1355
|
-
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
1356
|
-
}), copy(element, {
|
|
1357
|
-
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
1358
|
-
})], callback);
|
|
1359
|
-
}
|
|
1360
|
-
return "";
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
};
|
|
1365
|
-
var defaultStylisPlugins = [prefixer];
|
|
1366
|
-
var createCache = function createCache2(options) {
|
|
1367
|
-
var key = options.key;
|
|
1368
|
-
if (!key) {
|
|
1369
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
1370
|
-
}
|
|
1371
|
-
if (key === "css") {
|
|
1372
|
-
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1373
|
-
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
1374
|
-
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
1375
|
-
if (dataEmotionAttribute.indexOf(" ") === -1) {
|
|
1376
|
-
return;
|
|
1377
|
-
}
|
|
1378
|
-
document.head.appendChild(node2);
|
|
1379
|
-
node2.setAttribute("data-s", "");
|
|
1380
|
-
});
|
|
1381
|
-
}
|
|
1382
|
-
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
1383
|
-
if (true) {
|
|
1384
|
-
if (/[^a-z-]/.test(key)) {
|
|
1385
|
-
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
var inserted = {};
|
|
1389
|
-
var container;
|
|
1390
|
-
var nodesToHydrate = [];
|
|
1391
|
-
{
|
|
1392
|
-
container = options.container || document.head;
|
|
1393
|
-
Array.prototype.forEach.call(
|
|
1394
|
-
// this means we will ignore elements which don't have a space in them which
|
|
1395
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1396
|
-
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
1397
|
-
function(node2) {
|
|
1398
|
-
var attrib = node2.getAttribute("data-emotion").split(" ");
|
|
1399
|
-
for (var i = 1; i < attrib.length; i++) {
|
|
1400
|
-
inserted[attrib[i]] = true;
|
|
1401
|
-
}
|
|
1402
|
-
nodesToHydrate.push(node2);
|
|
1403
|
-
}
|
|
1404
|
-
);
|
|
1405
|
-
}
|
|
1406
|
-
var _insert;
|
|
1407
|
-
var omnipresentPlugins = [compat, removeLabel];
|
|
1408
|
-
if (true) {
|
|
1409
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
1410
|
-
get compat() {
|
|
1411
|
-
return cache2.compat;
|
|
1412
|
-
}
|
|
1413
|
-
}), incorrectImportAlarm);
|
|
1414
|
-
}
|
|
1415
|
-
{
|
|
1416
|
-
var currentSheet;
|
|
1417
|
-
var finalizingPlugins = [stringify, true ? function(element) {
|
|
1418
|
-
if (!element.root) {
|
|
1419
|
-
if (element["return"]) {
|
|
1420
|
-
currentSheet.insert(element["return"]);
|
|
1421
|
-
} else if (element.value && element.type !== COMMENT) {
|
|
1422
|
-
currentSheet.insert(element.value + "{}");
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
} : rulesheet(function(rule) {
|
|
1426
|
-
currentSheet.insert(rule);
|
|
1427
|
-
})];
|
|
1428
|
-
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
1429
|
-
var stylis = function stylis2(styles) {
|
|
1430
|
-
return serialize(compile(styles), serializer);
|
|
1431
|
-
};
|
|
1432
|
-
_insert = function insert(selector, serialized, sheet2, shouldCache) {
|
|
1433
|
-
currentSheet = sheet2;
|
|
1434
|
-
if (serialized.map !== void 0) {
|
|
1435
|
-
currentSheet = {
|
|
1436
|
-
insert: function insert2(rule) {
|
|
1437
|
-
sheet2.insert(rule + serialized.map);
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
}
|
|
1441
|
-
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
1442
|
-
if (shouldCache) {
|
|
1443
|
-
cache2.inserted[serialized.name] = true;
|
|
1444
|
-
}
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
var cache2 = {
|
|
1448
|
-
key,
|
|
1449
|
-
sheet: new StyleSheet({
|
|
1450
|
-
key,
|
|
1451
|
-
container,
|
|
1452
|
-
nonce: options.nonce,
|
|
1453
|
-
speedy: options.speedy,
|
|
1454
|
-
prepend: options.prepend,
|
|
1455
|
-
insertionPoint: options.insertionPoint
|
|
1456
|
-
}),
|
|
1457
|
-
nonce: options.nonce,
|
|
1458
|
-
inserted,
|
|
1459
|
-
registered: {},
|
|
1460
|
-
insert: _insert
|
|
1461
|
-
};
|
|
1462
|
-
cache2.sheet.hydrate(nodesToHydrate);
|
|
1463
|
-
return cache2;
|
|
1464
|
-
};
|
|
674
|
+
var b = u.bind({ g: 1 });
|
|
675
|
+
var h = u.bind({ k: 1 });
|
|
1465
676
|
|
|
1466
|
-
// ../../node_modules/.pnpm
|
|
1467
|
-
function
|
|
1468
|
-
var
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
}
|
|
1480
|
-
switch (len) {
|
|
1481
|
-
case 3:
|
|
1482
|
-
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
1483
|
-
case 2:
|
|
1484
|
-
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
1485
|
-
case 1:
|
|
1486
|
-
h ^= str.charCodeAt(i) & 255;
|
|
1487
|
-
h = /* Math.imul(h, m): */
|
|
1488
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1489
|
-
}
|
|
1490
|
-
h ^= h >>> 13;
|
|
1491
|
-
h = /* Math.imul(h, m): */
|
|
1492
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1493
|
-
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
// ../../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1497
|
-
var unitlessKeys = {
|
|
1498
|
-
animationIterationCount: 1,
|
|
1499
|
-
aspectRatio: 1,
|
|
1500
|
-
borderImageOutset: 1,
|
|
1501
|
-
borderImageSlice: 1,
|
|
1502
|
-
borderImageWidth: 1,
|
|
1503
|
-
boxFlex: 1,
|
|
1504
|
-
boxFlexGroup: 1,
|
|
1505
|
-
boxOrdinalGroup: 1,
|
|
1506
|
-
columnCount: 1,
|
|
1507
|
-
columns: 1,
|
|
1508
|
-
flex: 1,
|
|
1509
|
-
flexGrow: 1,
|
|
1510
|
-
flexPositive: 1,
|
|
1511
|
-
flexShrink: 1,
|
|
1512
|
-
flexNegative: 1,
|
|
1513
|
-
flexOrder: 1,
|
|
1514
|
-
gridRow: 1,
|
|
1515
|
-
gridRowEnd: 1,
|
|
1516
|
-
gridRowSpan: 1,
|
|
1517
|
-
gridRowStart: 1,
|
|
1518
|
-
gridColumn: 1,
|
|
1519
|
-
gridColumnEnd: 1,
|
|
1520
|
-
gridColumnSpan: 1,
|
|
1521
|
-
gridColumnStart: 1,
|
|
1522
|
-
msGridRow: 1,
|
|
1523
|
-
msGridRowSpan: 1,
|
|
1524
|
-
msGridColumn: 1,
|
|
1525
|
-
msGridColumnSpan: 1,
|
|
1526
|
-
fontWeight: 1,
|
|
1527
|
-
lineHeight: 1,
|
|
1528
|
-
opacity: 1,
|
|
1529
|
-
order: 1,
|
|
1530
|
-
orphans: 1,
|
|
1531
|
-
tabSize: 1,
|
|
1532
|
-
widows: 1,
|
|
1533
|
-
zIndex: 1,
|
|
1534
|
-
zoom: 1,
|
|
1535
|
-
WebkitLineClamp: 1,
|
|
1536
|
-
// SVG-related properties
|
|
1537
|
-
fillOpacity: 1,
|
|
1538
|
-
floodOpacity: 1,
|
|
1539
|
-
stopOpacity: 1,
|
|
1540
|
-
strokeDasharray: 1,
|
|
1541
|
-
strokeDashoffset: 1,
|
|
1542
|
-
strokeMiterlimit: 1,
|
|
1543
|
-
strokeOpacity: 1,
|
|
1544
|
-
strokeWidth: 1
|
|
1545
|
-
};
|
|
1546
|
-
|
|
1547
|
-
// ../../node_modules/.pnpm/@emotion+serialize@1.1.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
|
|
1548
|
-
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1549
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
1550
|
-
You can read more about this here:
|
|
1551
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
|
|
1552
|
-
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
1553
|
-
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1554
|
-
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1555
|
-
var isCustomProperty = function isCustomProperty2(property) {
|
|
1556
|
-
return property.charCodeAt(1) === 45;
|
|
1557
|
-
};
|
|
1558
|
-
var isProcessableValue = function isProcessableValue2(value) {
|
|
1559
|
-
return value != null && typeof value !== "boolean";
|
|
1560
|
-
};
|
|
1561
|
-
var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
|
|
1562
|
-
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
1563
|
-
});
|
|
1564
|
-
var processStyleValue = function processStyleValue2(key, value) {
|
|
1565
|
-
switch (key) {
|
|
1566
|
-
case "animation":
|
|
1567
|
-
case "animationName": {
|
|
1568
|
-
if (typeof value === "string") {
|
|
1569
|
-
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
1570
|
-
cursor = {
|
|
1571
|
-
name: p1,
|
|
1572
|
-
styles: p2,
|
|
1573
|
-
next: cursor
|
|
1574
|
-
};
|
|
1575
|
-
return p1;
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
|
|
1581
|
-
return value + "px";
|
|
1582
|
-
}
|
|
1583
|
-
return value;
|
|
1584
|
-
};
|
|
1585
|
-
if (true) {
|
|
1586
|
-
contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
1587
|
-
contentValues = ["normal", "none", "initial", "inherit", "unset"];
|
|
1588
|
-
oldProcessStyleValue = processStyleValue;
|
|
1589
|
-
msPattern = /^-ms-/;
|
|
1590
|
-
hyphenPattern = /-(.)/g;
|
|
1591
|
-
hyphenatedCache = {};
|
|
1592
|
-
processStyleValue = function processStyleValue3(key, value) {
|
|
1593
|
-
if (key === "content") {
|
|
1594
|
-
if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
1595
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
var processed = oldProcessStyleValue(key, value);
|
|
1599
|
-
if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
|
|
1600
|
-
hyphenatedCache[key] = true;
|
|
1601
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
|
|
1602
|
-
return _char.toUpperCase();
|
|
1603
|
-
}) + "?");
|
|
1604
|
-
}
|
|
1605
|
-
return processed;
|
|
1606
|
-
};
|
|
1607
|
-
}
|
|
1608
|
-
var contentValuePattern;
|
|
1609
|
-
var contentValues;
|
|
1610
|
-
var oldProcessStyleValue;
|
|
1611
|
-
var msPattern;
|
|
1612
|
-
var hyphenPattern;
|
|
1613
|
-
var hyphenatedCache;
|
|
1614
|
-
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1615
|
-
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1616
|
-
if (interpolation == null) {
|
|
1617
|
-
return "";
|
|
1618
|
-
}
|
|
1619
|
-
if (interpolation.__emotion_styles !== void 0) {
|
|
1620
|
-
if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
|
|
1621
|
-
throw new Error(noComponentSelectorMessage);
|
|
1622
|
-
}
|
|
1623
|
-
return interpolation;
|
|
1624
|
-
}
|
|
1625
|
-
switch (typeof interpolation) {
|
|
1626
|
-
case "boolean": {
|
|
1627
|
-
return "";
|
|
1628
|
-
}
|
|
1629
|
-
case "object": {
|
|
1630
|
-
if (interpolation.anim === 1) {
|
|
1631
|
-
cursor = {
|
|
1632
|
-
name: interpolation.name,
|
|
1633
|
-
styles: interpolation.styles,
|
|
1634
|
-
next: cursor
|
|
1635
|
-
};
|
|
1636
|
-
return interpolation.name;
|
|
1637
|
-
}
|
|
1638
|
-
if (interpolation.styles !== void 0) {
|
|
1639
|
-
var next2 = interpolation.next;
|
|
1640
|
-
if (next2 !== void 0) {
|
|
1641
|
-
while (next2 !== void 0) {
|
|
1642
|
-
cursor = {
|
|
1643
|
-
name: next2.name,
|
|
1644
|
-
styles: next2.styles,
|
|
1645
|
-
next: cursor
|
|
1646
|
-
};
|
|
1647
|
-
next2 = next2.next;
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
var styles = interpolation.styles + ";";
|
|
1651
|
-
if (interpolation.map !== void 0) {
|
|
1652
|
-
styles += interpolation.map;
|
|
1653
|
-
}
|
|
1654
|
-
return styles;
|
|
1655
|
-
}
|
|
1656
|
-
return createStringFromObject(mergedProps, registered, interpolation);
|
|
1657
|
-
}
|
|
1658
|
-
case "function": {
|
|
1659
|
-
if (mergedProps !== void 0) {
|
|
1660
|
-
var previousCursor = cursor;
|
|
1661
|
-
var result = interpolation(mergedProps);
|
|
1662
|
-
cursor = previousCursor;
|
|
1663
|
-
return handleInterpolation(mergedProps, registered, result);
|
|
1664
|
-
} else if (true) {
|
|
1665
|
-
console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1666
|
-
}
|
|
1667
|
-
break;
|
|
1668
|
-
}
|
|
1669
|
-
case "string":
|
|
1670
|
-
if (true) {
|
|
1671
|
-
var matched = [];
|
|
1672
|
-
var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
|
|
1673
|
-
var fakeVarName = "animation" + matched.length;
|
|
1674
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
|
|
1675
|
-
return "${" + fakeVarName + "}";
|
|
1676
|
-
});
|
|
1677
|
-
if (matched.length) {
|
|
1678
|
-
console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
break;
|
|
1682
|
-
}
|
|
1683
|
-
if (registered == null) {
|
|
1684
|
-
return interpolation;
|
|
1685
|
-
}
|
|
1686
|
-
var cached = registered[interpolation];
|
|
1687
|
-
return cached !== void 0 ? cached : interpolation;
|
|
1688
|
-
}
|
|
1689
|
-
function createStringFromObject(mergedProps, registered, obj) {
|
|
1690
|
-
var string = "";
|
|
1691
|
-
if (Array.isArray(obj)) {
|
|
1692
|
-
for (var i = 0; i < obj.length; i++) {
|
|
1693
|
-
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1694
|
-
}
|
|
1695
|
-
} else {
|
|
1696
|
-
for (var _key in obj) {
|
|
1697
|
-
var value = obj[_key];
|
|
1698
|
-
if (typeof value !== "object") {
|
|
1699
|
-
if (registered != null && registered[value] !== void 0) {
|
|
1700
|
-
string += _key + "{" + registered[value] + "}";
|
|
1701
|
-
} else if (isProcessableValue(value)) {
|
|
1702
|
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
|
1703
|
-
}
|
|
1704
|
-
} else {
|
|
1705
|
-
if (_key === "NO_COMPONENT_SELECTOR" && true) {
|
|
1706
|
-
throw new Error(noComponentSelectorMessage);
|
|
1707
|
-
}
|
|
1708
|
-
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
1709
|
-
for (var _i = 0; _i < value.length; _i++) {
|
|
1710
|
-
if (isProcessableValue(value[_i])) {
|
|
1711
|
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
} else {
|
|
1715
|
-
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1716
|
-
switch (_key) {
|
|
1717
|
-
case "animation":
|
|
1718
|
-
case "animationName": {
|
|
1719
|
-
string += processStyleName(_key) + ":" + interpolated + ";";
|
|
1720
|
-
break;
|
|
1721
|
-
}
|
|
1722
|
-
default: {
|
|
1723
|
-
if (_key === "undefined") {
|
|
1724
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
1725
|
-
}
|
|
1726
|
-
string += _key + "{" + interpolated + "}";
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
return string;
|
|
677
|
+
// ../../node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs
|
|
678
|
+
function r(e2) {
|
|
679
|
+
var t2, f, n2 = "";
|
|
680
|
+
if ("string" == typeof e2 || "number" == typeof e2)
|
|
681
|
+
n2 += e2;
|
|
682
|
+
else if ("object" == typeof e2)
|
|
683
|
+
if (Array.isArray(e2))
|
|
684
|
+
for (t2 = 0; t2 < e2.length; t2++)
|
|
685
|
+
e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
|
|
686
|
+
else
|
|
687
|
+
for (t2 in e2)
|
|
688
|
+
e2[t2] && (n2 && (n2 += " "), n2 += t2);
|
|
689
|
+
return n2;
|
|
1734
690
|
}
|
|
1735
|
-
|
|
1736
|
-
var
|
|
1737
|
-
|
|
1738
|
-
|
|
691
|
+
function clsx() {
|
|
692
|
+
for (var e2, t2, f = 0, n2 = ""; f < arguments.length; )
|
|
693
|
+
(e2 = arguments[f++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
694
|
+
return n2;
|
|
1739
695
|
}
|
|
1740
|
-
var cursor;
|
|
1741
|
-
var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
1742
|
-
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
|
1743
|
-
return args[0];
|
|
1744
|
-
}
|
|
1745
|
-
var stringMode = true;
|
|
1746
|
-
var styles = "";
|
|
1747
|
-
cursor = void 0;
|
|
1748
|
-
var strings = args[0];
|
|
1749
|
-
if (strings == null || strings.raw === void 0) {
|
|
1750
|
-
stringMode = false;
|
|
1751
|
-
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1752
|
-
} else {
|
|
1753
|
-
if (strings[0] === void 0) {
|
|
1754
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1755
|
-
}
|
|
1756
|
-
styles += strings[0];
|
|
1757
|
-
}
|
|
1758
|
-
for (var i = 1; i < args.length; i++) {
|
|
1759
|
-
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1760
|
-
if (stringMode) {
|
|
1761
|
-
if (strings[i] === void 0) {
|
|
1762
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1763
|
-
}
|
|
1764
|
-
styles += strings[i];
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
var sourceMap;
|
|
1768
|
-
if (true) {
|
|
1769
|
-
styles = styles.replace(sourceMapPattern, function(match3) {
|
|
1770
|
-
sourceMap = match3;
|
|
1771
|
-
return "";
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
labelPattern.lastIndex = 0;
|
|
1775
|
-
var identifierName = "";
|
|
1776
|
-
var match2;
|
|
1777
|
-
while ((match2 = labelPattern.exec(styles)) !== null) {
|
|
1778
|
-
identifierName += "-" + // $FlowFixMe we know it's not null
|
|
1779
|
-
match2[1];
|
|
1780
|
-
}
|
|
1781
|
-
var name = murmur2(styles) + identifierName;
|
|
1782
|
-
if (true) {
|
|
1783
|
-
return {
|
|
1784
|
-
name,
|
|
1785
|
-
styles,
|
|
1786
|
-
map: sourceMap,
|
|
1787
|
-
next: cursor,
|
|
1788
|
-
toString: function toString() {
|
|
1789
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
}
|
|
1793
|
-
return {
|
|
1794
|
-
name,
|
|
1795
|
-
styles,
|
|
1796
|
-
next: cursor
|
|
1797
|
-
};
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
// ../../node_modules/.pnpm/@emotion+utils@1.2.1/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
1801
|
-
var isBrowser = true;
|
|
1802
|
-
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1803
|
-
var rawClassName = "";
|
|
1804
|
-
classNames.split(" ").forEach(function(className) {
|
|
1805
|
-
if (registered[className] !== void 0) {
|
|
1806
|
-
registeredStyles.push(registered[className] + ";");
|
|
1807
|
-
} else {
|
|
1808
|
-
rawClassName += className + " ";
|
|
1809
|
-
}
|
|
1810
|
-
});
|
|
1811
|
-
return rawClassName;
|
|
1812
|
-
}
|
|
1813
|
-
var registerStyles = function registerStyles2(cache2, serialized, isStringTag) {
|
|
1814
|
-
var className = cache2.key + "-" + serialized.name;
|
|
1815
|
-
if (
|
|
1816
|
-
// we only need to add the styles to the registered cache if the
|
|
1817
|
-
// class name could be used further down
|
|
1818
|
-
// the tree but if it's a string tag, we know it won't
|
|
1819
|
-
// so we don't have to add it to registered cache.
|
|
1820
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
1821
|
-
(isStringTag === false || // we need to always store it if we're in compat mode and
|
|
1822
|
-
// in node since emotion-server relies on whether a style is in
|
|
1823
|
-
// the registered cache to know whether a style is global or not
|
|
1824
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
1825
|
-
isBrowser === false) && cache2.registered[className] === void 0
|
|
1826
|
-
) {
|
|
1827
|
-
cache2.registered[className] = serialized.styles;
|
|
1828
|
-
}
|
|
1829
|
-
};
|
|
1830
|
-
var insertStyles = function insertStyles2(cache2, serialized, isStringTag) {
|
|
1831
|
-
registerStyles(cache2, serialized, isStringTag);
|
|
1832
|
-
var className = cache2.key + "-" + serialized.name;
|
|
1833
|
-
if (cache2.inserted[serialized.name] === void 0) {
|
|
1834
|
-
var current = serialized;
|
|
1835
|
-
do {
|
|
1836
|
-
cache2.insert(serialized === current ? "." + className : "", current, cache2.sheet, true);
|
|
1837
|
-
current = current.next;
|
|
1838
|
-
} while (current !== void 0);
|
|
1839
|
-
}
|
|
1840
|
-
};
|
|
1841
|
-
|
|
1842
|
-
// ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
|
|
1843
|
-
function insertWithoutScoping(cache2, serialized) {
|
|
1844
|
-
if (cache2.inserted[serialized.name] === void 0) {
|
|
1845
|
-
return cache2.insert("", serialized, cache2.sheet, true);
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
function merge(registered, css2, className) {
|
|
1849
|
-
var registeredStyles = [];
|
|
1850
|
-
var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
1851
|
-
if (registeredStyles.length < 2) {
|
|
1852
|
-
return className;
|
|
1853
|
-
}
|
|
1854
|
-
return rawClassName + css2(registeredStyles);
|
|
1855
|
-
}
|
|
1856
|
-
var createEmotion = function createEmotion2(options) {
|
|
1857
|
-
var cache2 = createCache(options);
|
|
1858
|
-
cache2.sheet.speedy = function(value) {
|
|
1859
|
-
if (this.ctr !== 0) {
|
|
1860
|
-
throw new Error("speedy must be changed before any rules are inserted");
|
|
1861
|
-
}
|
|
1862
|
-
this.isSpeedy = value;
|
|
1863
|
-
};
|
|
1864
|
-
cache2.compat = true;
|
|
1865
|
-
var css2 = function css3() {
|
|
1866
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1867
|
-
args[_key] = arguments[_key];
|
|
1868
|
-
}
|
|
1869
|
-
var serialized = serializeStyles(args, cache2.registered, void 0);
|
|
1870
|
-
insertStyles(cache2, serialized, false);
|
|
1871
|
-
return cache2.key + "-" + serialized.name;
|
|
1872
|
-
};
|
|
1873
|
-
var keyframes2 = function keyframes3() {
|
|
1874
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1875
|
-
args[_key2] = arguments[_key2];
|
|
1876
|
-
}
|
|
1877
|
-
var serialized = serializeStyles(args, cache2.registered);
|
|
1878
|
-
var animation = "animation-" + serialized.name;
|
|
1879
|
-
insertWithoutScoping(cache2, {
|
|
1880
|
-
name: serialized.name,
|
|
1881
|
-
styles: "@keyframes " + animation + "{" + serialized.styles + "}"
|
|
1882
|
-
});
|
|
1883
|
-
return animation;
|
|
1884
|
-
};
|
|
1885
|
-
var injectGlobal2 = function injectGlobal3() {
|
|
1886
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1887
|
-
args[_key3] = arguments[_key3];
|
|
1888
|
-
}
|
|
1889
|
-
var serialized = serializeStyles(args, cache2.registered);
|
|
1890
|
-
insertWithoutScoping(cache2, serialized);
|
|
1891
|
-
};
|
|
1892
|
-
var cx2 = function cx3() {
|
|
1893
|
-
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
1894
|
-
args[_key4] = arguments[_key4];
|
|
1895
|
-
}
|
|
1896
|
-
return merge(cache2.registered, css2, classnames(args));
|
|
1897
|
-
};
|
|
1898
|
-
return {
|
|
1899
|
-
css: css2,
|
|
1900
|
-
cx: cx2,
|
|
1901
|
-
injectGlobal: injectGlobal2,
|
|
1902
|
-
keyframes: keyframes2,
|
|
1903
|
-
hydrate: function hydrate2(ids) {
|
|
1904
|
-
ids.forEach(function(key) {
|
|
1905
|
-
cache2.inserted[key] = true;
|
|
1906
|
-
});
|
|
1907
|
-
},
|
|
1908
|
-
flush: function flush2() {
|
|
1909
|
-
cache2.registered = {};
|
|
1910
|
-
cache2.inserted = {};
|
|
1911
|
-
cache2.sheet.flush();
|
|
1912
|
-
},
|
|
1913
|
-
// $FlowFixMe
|
|
1914
|
-
sheet: cache2.sheet,
|
|
1915
|
-
cache: cache2,
|
|
1916
|
-
getRegisteredStyles: getRegisteredStyles.bind(null, cache2.registered),
|
|
1917
|
-
merge: merge.bind(null, cache2.registered, css2)
|
|
1918
|
-
};
|
|
1919
|
-
};
|
|
1920
|
-
var classnames = function classnames2(args) {
|
|
1921
|
-
var cls = "";
|
|
1922
|
-
for (var i = 0; i < args.length; i++) {
|
|
1923
|
-
var arg = args[i];
|
|
1924
|
-
if (arg == null)
|
|
1925
|
-
continue;
|
|
1926
|
-
var toAdd = void 0;
|
|
1927
|
-
switch (typeof arg) {
|
|
1928
|
-
case "boolean":
|
|
1929
|
-
break;
|
|
1930
|
-
case "object": {
|
|
1931
|
-
if (Array.isArray(arg)) {
|
|
1932
|
-
toAdd = classnames2(arg);
|
|
1933
|
-
} else {
|
|
1934
|
-
toAdd = "";
|
|
1935
|
-
for (var k in arg) {
|
|
1936
|
-
if (arg[k] && k) {
|
|
1937
|
-
toAdd && (toAdd += " ");
|
|
1938
|
-
toAdd += k;
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
break;
|
|
1943
|
-
}
|
|
1944
|
-
default: {
|
|
1945
|
-
toAdd = arg;
|
|
1946
|
-
}
|
|
1947
|
-
}
|
|
1948
|
-
if (toAdd) {
|
|
1949
|
-
cls && (cls += " ");
|
|
1950
|
-
cls += toAdd;
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
return cls;
|
|
1954
|
-
};
|
|
1955
|
-
|
|
1956
|
-
// ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/dist/emotion-css.esm.js
|
|
1957
|
-
var _createEmotion = createEmotion({
|
|
1958
|
-
key: "css"
|
|
1959
|
-
});
|
|
1960
|
-
var flush = _createEmotion.flush;
|
|
1961
|
-
var hydrate = _createEmotion.hydrate;
|
|
1962
|
-
var cx = _createEmotion.cx;
|
|
1963
|
-
var merge2 = _createEmotion.merge;
|
|
1964
|
-
var getRegisteredStyles2 = _createEmotion.getRegisteredStyles;
|
|
1965
|
-
var injectGlobal = _createEmotion.injectGlobal;
|
|
1966
|
-
var keyframes = _createEmotion.keyframes;
|
|
1967
|
-
var css = _createEmotion.css;
|
|
1968
|
-
var sheet = _createEmotion.sheet;
|
|
1969
|
-
var cache = _createEmotion.cache;
|
|
1970
696
|
|
|
1971
697
|
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
1972
698
|
var noop = () => {
|
|
@@ -1974,8 +700,8 @@ var noop = () => {
|
|
|
1974
700
|
function createListTransition(source, options) {
|
|
1975
701
|
const initSource = untrack(source);
|
|
1976
702
|
if (isServer) {
|
|
1977
|
-
const
|
|
1978
|
-
return () =>
|
|
703
|
+
const copy2 = initSource.slice();
|
|
704
|
+
return () => copy2;
|
|
1979
705
|
}
|
|
1980
706
|
const { onChange } = options;
|
|
1981
707
|
let prevSet = new Set(options.appear ? void 0 : initSource);
|
|
@@ -1983,29 +709,29 @@ function createListTransition(source, options) {
|
|
|
1983
709
|
const [toRemove, setToRemove] = createSignal([], { equals: false });
|
|
1984
710
|
const [isTransitionPending] = useTransition();
|
|
1985
711
|
const finishRemoved = options.exitMethod === "remove" ? noop : (els) => {
|
|
1986
|
-
setToRemove((
|
|
712
|
+
setToRemove((p2) => (p2.push.apply(p2, els), p2));
|
|
1987
713
|
for (const el of els)
|
|
1988
714
|
exiting.delete(el);
|
|
1989
715
|
};
|
|
1990
|
-
const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el,
|
|
716
|
+
const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
|
|
1991
717
|
return createMemo(
|
|
1992
|
-
(
|
|
718
|
+
(prev) => {
|
|
1993
719
|
const elsToRemove = toRemove();
|
|
1994
720
|
const sourceList = source();
|
|
1995
721
|
sourceList[$TRACK];
|
|
1996
722
|
if (untrack(isTransitionPending)) {
|
|
1997
723
|
isTransitionPending();
|
|
1998
|
-
return
|
|
724
|
+
return prev;
|
|
1999
725
|
}
|
|
2000
726
|
if (elsToRemove.length) {
|
|
2001
|
-
const
|
|
727
|
+
const next = prev.filter((e2) => !elsToRemove.includes(e2));
|
|
2002
728
|
elsToRemove.length = 0;
|
|
2003
|
-
onChange({ list:
|
|
2004
|
-
return
|
|
729
|
+
onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
|
|
730
|
+
return next;
|
|
2005
731
|
}
|
|
2006
732
|
return untrack(() => {
|
|
2007
733
|
const nextSet = new Set(sourceList);
|
|
2008
|
-
const
|
|
734
|
+
const next = sourceList.slice();
|
|
2009
735
|
const added = [];
|
|
2010
736
|
const removed = [];
|
|
2011
737
|
const unchanged = [];
|
|
@@ -2013,23 +739,23 @@ function createListTransition(source, options) {
|
|
|
2013
739
|
(prevSet.has(el) ? unchanged : added).push(el);
|
|
2014
740
|
}
|
|
2015
741
|
let nothingChanged = !added.length;
|
|
2016
|
-
for (let
|
|
2017
|
-
const el =
|
|
742
|
+
for (let i2 = 0; i2 < prev.length; i2++) {
|
|
743
|
+
const el = prev[i2];
|
|
2018
744
|
if (!nextSet.has(el)) {
|
|
2019
745
|
if (!exiting.has(el)) {
|
|
2020
746
|
removed.push(el);
|
|
2021
747
|
exiting.add(el);
|
|
2022
748
|
}
|
|
2023
|
-
handleRemoved(
|
|
749
|
+
handleRemoved(next, el, i2);
|
|
2024
750
|
}
|
|
2025
|
-
if (nothingChanged && el !==
|
|
751
|
+
if (nothingChanged && el !== next[i2])
|
|
2026
752
|
nothingChanged = false;
|
|
2027
753
|
}
|
|
2028
754
|
if (!removed.length && nothingChanged)
|
|
2029
|
-
return
|
|
2030
|
-
onChange({ list:
|
|
755
|
+
return prev;
|
|
756
|
+
onChange({ list: next, added, removed, unchanged, finishRemoved });
|
|
2031
757
|
prevSet = nextSet;
|
|
2032
|
-
return
|
|
758
|
+
return next;
|
|
2033
759
|
});
|
|
2034
760
|
},
|
|
2035
761
|
options.appear ? [] : initSource.slice()
|
|
@@ -2038,38 +764,38 @@ function createListTransition(source, options) {
|
|
|
2038
764
|
|
|
2039
765
|
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
|
|
2040
766
|
var noop2 = () => void 0;
|
|
2041
|
-
var isNonNullable = (
|
|
767
|
+
var isNonNullable = (i2) => i2 != null;
|
|
2042
768
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
2043
769
|
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
2044
770
|
var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
2045
|
-
function handleDiffArray(current,
|
|
771
|
+
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
2046
772
|
const currLength = current.length;
|
|
2047
|
-
const prevLength =
|
|
2048
|
-
let
|
|
773
|
+
const prevLength = prev.length;
|
|
774
|
+
let i2 = 0;
|
|
2049
775
|
if (!prevLength) {
|
|
2050
|
-
for (;
|
|
2051
|
-
handleAdded(current[
|
|
776
|
+
for (; i2 < currLength; i2++)
|
|
777
|
+
handleAdded(current[i2]);
|
|
2052
778
|
return;
|
|
2053
779
|
}
|
|
2054
780
|
if (!currLength) {
|
|
2055
|
-
for (;
|
|
2056
|
-
handleRemoved(
|
|
781
|
+
for (; i2 < prevLength; i2++)
|
|
782
|
+
handleRemoved(prev[i2]);
|
|
2057
783
|
return;
|
|
2058
784
|
}
|
|
2059
|
-
for (;
|
|
2060
|
-
if (
|
|
785
|
+
for (; i2 < prevLength; i2++) {
|
|
786
|
+
if (prev[i2] !== current[i2])
|
|
2061
787
|
break;
|
|
2062
788
|
}
|
|
2063
789
|
let prevEl;
|
|
2064
790
|
let currEl;
|
|
2065
|
-
|
|
2066
|
-
current = current.slice(
|
|
2067
|
-
for (prevEl of
|
|
791
|
+
prev = prev.slice(i2);
|
|
792
|
+
current = current.slice(i2);
|
|
793
|
+
for (prevEl of prev) {
|
|
2068
794
|
if (!current.includes(prevEl))
|
|
2069
795
|
handleRemoved(prevEl);
|
|
2070
796
|
}
|
|
2071
797
|
for (currEl of current) {
|
|
2072
|
-
if (!
|
|
798
|
+
if (!prev.includes(currEl))
|
|
2073
799
|
handleAdded(currEl);
|
|
2074
800
|
}
|
|
2075
801
|
}
|
|
@@ -2122,8 +848,8 @@ function createClassnames(props) {
|
|
|
2122
848
|
function nextFrame(fn) {
|
|
2123
849
|
requestAnimationFrame(() => requestAnimationFrame(fn));
|
|
2124
850
|
}
|
|
2125
|
-
function enterTransition(
|
|
2126
|
-
const { enterClasses, enterActiveClasses, enterToClasses } =
|
|
851
|
+
function enterTransition(classnames, events, el, done) {
|
|
852
|
+
const { enterClasses, enterActiveClasses, enterToClasses } = classnames, { onBeforeEnter, onEnter, onAfterEnter } = events;
|
|
2127
853
|
onBeforeEnter?.(el);
|
|
2128
854
|
el.classList.add(...enterClasses);
|
|
2129
855
|
el.classList.add(...enterActiveClasses);
|
|
@@ -2140,8 +866,8 @@ function enterTransition(classnames3, events, el, done) {
|
|
|
2140
866
|
el.addEventListener("animationend", endTransition);
|
|
2141
867
|
}
|
|
2142
868
|
});
|
|
2143
|
-
function endTransition(
|
|
2144
|
-
if (!
|
|
869
|
+
function endTransition(e2) {
|
|
870
|
+
if (!e2 || e2.target === el) {
|
|
2145
871
|
done?.();
|
|
2146
872
|
el.removeEventListener("transitionend", endTransition);
|
|
2147
873
|
el.removeEventListener("animationend", endTransition);
|
|
@@ -2151,8 +877,8 @@ function enterTransition(classnames3, events, el, done) {
|
|
|
2151
877
|
}
|
|
2152
878
|
}
|
|
2153
879
|
}
|
|
2154
|
-
function exitTransition(
|
|
2155
|
-
const { exitClasses, exitActiveClasses, exitToClasses } =
|
|
880
|
+
function exitTransition(classnames, events, el, done) {
|
|
881
|
+
const { exitClasses, exitActiveClasses, exitToClasses } = classnames, { onBeforeExit, onExit, onAfterExit } = events;
|
|
2156
882
|
if (!el.parentNode)
|
|
2157
883
|
return done?.();
|
|
2158
884
|
onBeforeExit?.(el);
|
|
@@ -2167,8 +893,8 @@ function exitTransition(classnames3, events, el, done) {
|
|
|
2167
893
|
el.addEventListener("animationend", endTransition);
|
|
2168
894
|
}
|
|
2169
895
|
});
|
|
2170
|
-
function endTransition(
|
|
2171
|
-
if (!
|
|
896
|
+
function endTransition(e2) {
|
|
897
|
+
if (!e2 || e2.target === el) {
|
|
2172
898
|
done?.();
|
|
2173
899
|
el.removeEventListener("transitionend", endTransition);
|
|
2174
900
|
el.removeEventListener("animationend", endTransition);
|
|
@@ -2179,12 +905,12 @@ function exitTransition(classnames3, events, el, done) {
|
|
|
2179
905
|
}
|
|
2180
906
|
}
|
|
2181
907
|
var TransitionGroup = (props) => {
|
|
2182
|
-
const
|
|
908
|
+
const classnames = createClassnames(props);
|
|
2183
909
|
return createListTransition(resolveElements(() => props.children).toArray, {
|
|
2184
910
|
appear: props.appear,
|
|
2185
911
|
exitMethod: "keep-index",
|
|
2186
912
|
onChange({ added, removed, finishRemoved, list }) {
|
|
2187
|
-
const classes =
|
|
913
|
+
const classes = classnames();
|
|
2188
914
|
for (const el of added) {
|
|
2189
915
|
enterTransition(classes, props, el);
|
|
2190
916
|
}
|
|
@@ -2208,8 +934,8 @@ var TransitionGroup = (props) => {
|
|
|
2208
934
|
}
|
|
2209
935
|
document.body.offsetHeight;
|
|
2210
936
|
for (const el of moved) {
|
|
2211
|
-
let endTransition2 = function(
|
|
2212
|
-
if (
|
|
937
|
+
let endTransition2 = function(e2) {
|
|
938
|
+
if (e2.target === el || /transform$/.test(e2.propertyName)) {
|
|
2213
939
|
el.removeEventListener("transitionend", endTransition2);
|
|
2214
940
|
el.classList.remove(...classes.moveClasses);
|
|
2215
941
|
}
|
|
@@ -2230,86 +956,86 @@ var TransitionGroup = (props) => {
|
|
|
2230
956
|
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
|
|
2231
957
|
var FALLBACK = Symbol("fallback");
|
|
2232
958
|
function dispose(list) {
|
|
2233
|
-
for (const
|
|
2234
|
-
|
|
959
|
+
for (const o2 of list)
|
|
960
|
+
o2.dispose();
|
|
2235
961
|
}
|
|
2236
962
|
function keyArray(items, keyFn, mapFn, options = {}) {
|
|
2237
963
|
if (isServer) {
|
|
2238
964
|
const itemsRef = items();
|
|
2239
|
-
let
|
|
965
|
+
let s2 = [];
|
|
2240
966
|
if (itemsRef && itemsRef.length) {
|
|
2241
|
-
for (let
|
|
2242
|
-
|
|
967
|
+
for (let i2 = 0, len = itemsRef.length; i2 < len; i2++)
|
|
968
|
+
s2.push(
|
|
2243
969
|
mapFn(
|
|
2244
|
-
() => itemsRef[
|
|
2245
|
-
() =>
|
|
970
|
+
() => itemsRef[i2],
|
|
971
|
+
() => i2
|
|
2246
972
|
)
|
|
2247
973
|
);
|
|
2248
974
|
} else if (options.fallback)
|
|
2249
|
-
|
|
2250
|
-
return () =>
|
|
975
|
+
s2 = [options.fallback()];
|
|
976
|
+
return () => s2;
|
|
2251
977
|
}
|
|
2252
|
-
const
|
|
2253
|
-
onCleanup(() => dispose(
|
|
978
|
+
const prev = /* @__PURE__ */ new Map();
|
|
979
|
+
onCleanup(() => dispose(prev.values()));
|
|
2254
980
|
return () => {
|
|
2255
981
|
const list = items() || [];
|
|
2256
982
|
list[$TRACK];
|
|
2257
983
|
return untrack(() => {
|
|
2258
984
|
if (!list.length) {
|
|
2259
|
-
dispose(
|
|
2260
|
-
|
|
985
|
+
dispose(prev.values());
|
|
986
|
+
prev.clear();
|
|
2261
987
|
if (!options.fallback)
|
|
2262
988
|
return [];
|
|
2263
989
|
const fb2 = createRoot((dispose2) => {
|
|
2264
|
-
|
|
990
|
+
prev.set(FALLBACK, { dispose: dispose2 });
|
|
2265
991
|
return options.fallback();
|
|
2266
992
|
});
|
|
2267
993
|
return [fb2];
|
|
2268
994
|
}
|
|
2269
995
|
const result = new Array(list.length);
|
|
2270
|
-
const fb =
|
|
2271
|
-
if (!
|
|
996
|
+
const fb = prev.get(FALLBACK);
|
|
997
|
+
if (!prev.size || fb) {
|
|
2272
998
|
fb?.dispose();
|
|
2273
|
-
|
|
2274
|
-
for (let
|
|
2275
|
-
const item = list[
|
|
2276
|
-
const key = keyFn(item,
|
|
2277
|
-
addNewItem(result, item,
|
|
999
|
+
prev.delete(FALLBACK);
|
|
1000
|
+
for (let i2 = 0; i2 < list.length; i2++) {
|
|
1001
|
+
const item = list[i2];
|
|
1002
|
+
const key = keyFn(item, i2);
|
|
1003
|
+
addNewItem(result, item, i2, key);
|
|
2278
1004
|
}
|
|
2279
1005
|
return result;
|
|
2280
1006
|
}
|
|
2281
|
-
const prevKeys = new Set(
|
|
2282
|
-
for (let
|
|
2283
|
-
const item = list[
|
|
2284
|
-
const key = keyFn(item,
|
|
1007
|
+
const prevKeys = new Set(prev.keys());
|
|
1008
|
+
for (let i2 = 0; i2 < list.length; i2++) {
|
|
1009
|
+
const item = list[i2];
|
|
1010
|
+
const key = keyFn(item, i2);
|
|
2285
1011
|
prevKeys.delete(key);
|
|
2286
|
-
const lookup =
|
|
1012
|
+
const lookup = prev.get(key);
|
|
2287
1013
|
if (lookup) {
|
|
2288
|
-
result[
|
|
2289
|
-
lookup.setIndex?.(
|
|
1014
|
+
result[i2] = lookup.mapped;
|
|
1015
|
+
lookup.setIndex?.(i2);
|
|
2290
1016
|
lookup.setItem(() => item);
|
|
2291
1017
|
} else
|
|
2292
|
-
addNewItem(result, item,
|
|
1018
|
+
addNewItem(result, item, i2, key);
|
|
2293
1019
|
}
|
|
2294
1020
|
for (const key of prevKeys) {
|
|
2295
|
-
|
|
2296
|
-
|
|
1021
|
+
prev.get(key)?.dispose();
|
|
1022
|
+
prev.delete(key);
|
|
2297
1023
|
}
|
|
2298
1024
|
return result;
|
|
2299
1025
|
});
|
|
2300
1026
|
};
|
|
2301
|
-
function addNewItem(list, item,
|
|
1027
|
+
function addNewItem(list, item, i2, key) {
|
|
2302
1028
|
createRoot((dispose2) => {
|
|
2303
1029
|
const [getItem, setItem] = createSignal(item);
|
|
2304
1030
|
const save = { setItem, dispose: dispose2 };
|
|
2305
1031
|
if (mapFn.length > 1) {
|
|
2306
|
-
const [index, setIndex] = createSignal(
|
|
1032
|
+
const [index, setIndex] = createSignal(i2);
|
|
2307
1033
|
save.setIndex = setIndex;
|
|
2308
1034
|
save.mapped = mapFn(getItem, index);
|
|
2309
1035
|
} else
|
|
2310
1036
|
save.mapped = mapFn(getItem);
|
|
2311
|
-
|
|
2312
|
-
list[
|
|
1037
|
+
prev.set(key, save);
|
|
1038
|
+
list[i2] = save.mapped;
|
|
2313
1039
|
});
|
|
2314
1040
|
}
|
|
2315
1041
|
}
|
|
@@ -2335,27 +1061,27 @@ function createStorage(props) {
|
|
|
2335
1061
|
setError(err instanceof Error ? err : new Error(fallback));
|
|
2336
1062
|
};
|
|
2337
1063
|
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
2338
|
-
const
|
|
1064
|
+
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
2339
1065
|
const signals = /* @__PURE__ */ new Map();
|
|
2340
1066
|
const store = new Proxy(
|
|
2341
1067
|
{},
|
|
2342
1068
|
{
|
|
2343
1069
|
get(_, key) {
|
|
2344
|
-
let
|
|
2345
|
-
if (!
|
|
2346
|
-
|
|
2347
|
-
signals.set(key,
|
|
1070
|
+
let node = signals.get(key);
|
|
1071
|
+
if (!node) {
|
|
1072
|
+
node = createSignal(void 0, { equals: false });
|
|
1073
|
+
signals.set(key, node);
|
|
2348
1074
|
}
|
|
2349
|
-
|
|
1075
|
+
node[0]();
|
|
2350
1076
|
const value = apis.reduce(
|
|
2351
1077
|
(result, api) => {
|
|
2352
1078
|
if (result !== null || !api) {
|
|
2353
1079
|
return result;
|
|
2354
1080
|
}
|
|
2355
1081
|
try {
|
|
2356
|
-
return api.getItem(`${
|
|
1082
|
+
return api.getItem(`${prefix}${key}`);
|
|
2357
1083
|
} catch (err) {
|
|
2358
|
-
handleError(err, `Error reading ${
|
|
1084
|
+
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
2359
1085
|
return null;
|
|
2360
1086
|
}
|
|
2361
1087
|
},
|
|
@@ -2370,22 +1096,22 @@ function createStorage(props) {
|
|
|
2370
1096
|
);
|
|
2371
1097
|
const setter = (key, value, options) => {
|
|
2372
1098
|
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
2373
|
-
const apiKey = `${
|
|
1099
|
+
const apiKey = `${prefix}${key}`;
|
|
2374
1100
|
apis.forEach((api) => {
|
|
2375
1101
|
try {
|
|
2376
1102
|
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
2377
1103
|
} catch (err) {
|
|
2378
|
-
handleError(err, `Error setting ${
|
|
1104
|
+
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
2379
1105
|
}
|
|
2380
1106
|
});
|
|
2381
|
-
const
|
|
2382
|
-
|
|
1107
|
+
const node = signals.get(key);
|
|
1108
|
+
node && node[1]();
|
|
2383
1109
|
};
|
|
2384
1110
|
const remove = (key) => apis.forEach((api) => {
|
|
2385
1111
|
try {
|
|
2386
|
-
api.removeItem(`${
|
|
1112
|
+
api.removeItem(`${prefix}${key}`);
|
|
2387
1113
|
} catch (err) {
|
|
2388
|
-
handleError(err, `Error removing ${
|
|
1114
|
+
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
2389
1115
|
}
|
|
2390
1116
|
});
|
|
2391
1117
|
const clear = () => apis.forEach((api) => {
|
|
@@ -2532,15 +1258,15 @@ var cookieStorage = addClearMethod({
|
|
|
2532
1258
|
return key;
|
|
2533
1259
|
},
|
|
2534
1260
|
get length() {
|
|
2535
|
-
let
|
|
1261
|
+
let length = 0;
|
|
2536
1262
|
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
2537
1263
|
/(?:^|;)\s*.+?\s*=\s*[^;]+/g,
|
|
2538
1264
|
(found) => {
|
|
2539
|
-
|
|
1265
|
+
length += found ? 1 : 0;
|
|
2540
1266
|
return "";
|
|
2541
1267
|
}
|
|
2542
1268
|
);
|
|
2543
|
-
return
|
|
1269
|
+
return length;
|
|
2544
1270
|
}
|
|
2545
1271
|
});
|
|
2546
1272
|
|
|
@@ -2568,9 +1294,9 @@ function createResizeObserver(targets, onResize, options) {
|
|
|
2568
1294
|
}
|
|
2569
1295
|
}
|
|
2570
1296
|
}, options);
|
|
2571
|
-
createEffect((
|
|
1297
|
+
createEffect((prev) => {
|
|
2572
1298
|
const refs = filterNonNullable(asArray(access(targets)));
|
|
2573
|
-
handleDiffArray(refs,
|
|
1299
|
+
handleDiffArray(refs, prev, observe, unobserve);
|
|
2574
1300
|
return refs;
|
|
2575
1301
|
}, []);
|
|
2576
1302
|
}
|
|
@@ -2915,14 +1641,14 @@ var Registry = (
|
|
|
2915
1641
|
this.generateIdentifier = generateIdentifier;
|
|
2916
1642
|
this.kv = new DoubleIndexedKV();
|
|
2917
1643
|
}
|
|
2918
|
-
Registry2.prototype.register = function(value,
|
|
1644
|
+
Registry2.prototype.register = function(value, identifier) {
|
|
2919
1645
|
if (this.kv.getByValue(value)) {
|
|
2920
1646
|
return;
|
|
2921
1647
|
}
|
|
2922
|
-
if (!
|
|
2923
|
-
|
|
1648
|
+
if (!identifier) {
|
|
1649
|
+
identifier = this.generateIdentifier(value);
|
|
2924
1650
|
}
|
|
2925
|
-
this.kv.set(
|
|
1651
|
+
this.kv.set(identifier, value);
|
|
2926
1652
|
};
|
|
2927
1653
|
Registry2.prototype.clear = function() {
|
|
2928
1654
|
this.kv.clear();
|
|
@@ -2930,8 +1656,8 @@ var Registry = (
|
|
|
2930
1656
|
Registry2.prototype.getIdentifier = function(value) {
|
|
2931
1657
|
return this.kv.getByValue(value);
|
|
2932
1658
|
};
|
|
2933
|
-
Registry2.prototype.getValue = function(
|
|
2934
|
-
return this.kv.getByKey(
|
|
1659
|
+
Registry2.prototype.getValue = function(identifier) {
|
|
1660
|
+
return this.kv.getByKey(identifier);
|
|
2935
1661
|
};
|
|
2936
1662
|
return Registry2;
|
|
2937
1663
|
}()
|
|
@@ -2939,24 +1665,24 @@ var Registry = (
|
|
|
2939
1665
|
|
|
2940
1666
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
|
|
2941
1667
|
var __extends = function() {
|
|
2942
|
-
var extendStatics = function(d,
|
|
2943
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
2944
|
-
d2.__proto__ =
|
|
2945
|
-
} || function(d2,
|
|
2946
|
-
for (var
|
|
2947
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2948
|
-
d2[
|
|
1668
|
+
var extendStatics = function(d, b2) {
|
|
1669
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
1670
|
+
d2.__proto__ = b3;
|
|
1671
|
+
} || function(d2, b3) {
|
|
1672
|
+
for (var p2 in b3)
|
|
1673
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
1674
|
+
d2[p2] = b3[p2];
|
|
2949
1675
|
};
|
|
2950
|
-
return extendStatics(d,
|
|
1676
|
+
return extendStatics(d, b2);
|
|
2951
1677
|
};
|
|
2952
|
-
return function(d,
|
|
2953
|
-
if (typeof
|
|
2954
|
-
throw new TypeError("Class extends value " + String(
|
|
2955
|
-
extendStatics(d,
|
|
1678
|
+
return function(d, b2) {
|
|
1679
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
1680
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
1681
|
+
extendStatics(d, b2);
|
|
2956
1682
|
function __() {
|
|
2957
1683
|
this.constructor = d;
|
|
2958
1684
|
}
|
|
2959
|
-
d.prototype =
|
|
1685
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
2960
1686
|
};
|
|
2961
1687
|
}();
|
|
2962
1688
|
var ClassRegistry = (
|
|
@@ -2964,8 +1690,8 @@ var ClassRegistry = (
|
|
|
2964
1690
|
function(_super) {
|
|
2965
1691
|
__extends(ClassRegistry2, _super);
|
|
2966
1692
|
function ClassRegistry2() {
|
|
2967
|
-
var _this = _super.call(this, function(
|
|
2968
|
-
return
|
|
1693
|
+
var _this = _super.call(this, function(c2) {
|
|
1694
|
+
return c2.name;
|
|
2969
1695
|
}) || this;
|
|
2970
1696
|
_this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
2971
1697
|
return _this;
|
|
@@ -2988,23 +1714,23 @@ var ClassRegistry = (
|
|
|
2988
1714
|
);
|
|
2989
1715
|
|
|
2990
1716
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
|
|
2991
|
-
var __read = function(
|
|
2992
|
-
var m = typeof Symbol === "function" &&
|
|
1717
|
+
var __read = function(o2, n2) {
|
|
1718
|
+
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
2993
1719
|
if (!m)
|
|
2994
|
-
return
|
|
2995
|
-
var
|
|
1720
|
+
return o2;
|
|
1721
|
+
var i2 = m.call(o2), r2, ar = [], e2;
|
|
2996
1722
|
try {
|
|
2997
|
-
while ((
|
|
2998
|
-
ar.push(
|
|
1723
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
1724
|
+
ar.push(r2.value);
|
|
2999
1725
|
} catch (error) {
|
|
3000
|
-
|
|
1726
|
+
e2 = { error };
|
|
3001
1727
|
} finally {
|
|
3002
1728
|
try {
|
|
3003
|
-
if (
|
|
3004
|
-
m.call(
|
|
1729
|
+
if (r2 && !r2.done && (m = i2["return"]))
|
|
1730
|
+
m.call(i2);
|
|
3005
1731
|
} finally {
|
|
3006
|
-
if (
|
|
3007
|
-
throw
|
|
1732
|
+
if (e2)
|
|
1733
|
+
throw e2.error;
|
|
3008
1734
|
}
|
|
3009
1735
|
}
|
|
3010
1736
|
return ar;
|
|
@@ -3027,8 +1753,8 @@ function find(record, predicate) {
|
|
|
3027
1753
|
return values.find(predicate);
|
|
3028
1754
|
}
|
|
3029
1755
|
var valuesNotNever = values;
|
|
3030
|
-
for (var
|
|
3031
|
-
var value = valuesNotNever[
|
|
1756
|
+
for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
|
|
1757
|
+
var value = valuesNotNever[i2];
|
|
3032
1758
|
if (predicate(value)) {
|
|
3033
1759
|
return value;
|
|
3034
1760
|
}
|
|
@@ -3045,8 +1771,8 @@ function includes(arr, value) {
|
|
|
3045
1771
|
return arr.indexOf(value) !== -1;
|
|
3046
1772
|
}
|
|
3047
1773
|
function findArr(record, predicate) {
|
|
3048
|
-
for (var
|
|
3049
|
-
var value = record[
|
|
1774
|
+
for (var i2 = 0; i2 < record.length; i2++) {
|
|
1775
|
+
var value = record[i2];
|
|
3050
1776
|
if (predicate(value)) {
|
|
3051
1777
|
return value;
|
|
3052
1778
|
}
|
|
@@ -3157,21 +1883,21 @@ var stringifyPath = function(path) {
|
|
|
3157
1883
|
var parsePath = function(string) {
|
|
3158
1884
|
var result = [];
|
|
3159
1885
|
var segment = "";
|
|
3160
|
-
for (var
|
|
3161
|
-
var
|
|
3162
|
-
var isEscapedDot =
|
|
1886
|
+
for (var i2 = 0; i2 < string.length; i2++) {
|
|
1887
|
+
var char = string.charAt(i2);
|
|
1888
|
+
var isEscapedDot = char === "\\" && string.charAt(i2 + 1) === ".";
|
|
3163
1889
|
if (isEscapedDot) {
|
|
3164
1890
|
segment += ".";
|
|
3165
|
-
|
|
1891
|
+
i2++;
|
|
3166
1892
|
continue;
|
|
3167
1893
|
}
|
|
3168
|
-
var isEndOfSegment =
|
|
1894
|
+
var isEndOfSegment = char === ".";
|
|
3169
1895
|
if (isEndOfSegment) {
|
|
3170
1896
|
result.push(segment);
|
|
3171
1897
|
segment = "";
|
|
3172
1898
|
continue;
|
|
3173
1899
|
}
|
|
3174
|
-
segment +=
|
|
1900
|
+
segment += char;
|
|
3175
1901
|
}
|
|
3176
1902
|
var lastSegment = segment;
|
|
3177
1903
|
result.push(lastSegment);
|
|
@@ -3180,41 +1906,41 @@ var parsePath = function(string) {
|
|
|
3180
1906
|
|
|
3181
1907
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
|
|
3182
1908
|
var __assign = function() {
|
|
3183
|
-
__assign = Object.assign || function(
|
|
3184
|
-
for (var
|
|
3185
|
-
|
|
3186
|
-
for (var
|
|
3187
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3188
|
-
|
|
1909
|
+
__assign = Object.assign || function(t2) {
|
|
1910
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
1911
|
+
s2 = arguments[i2];
|
|
1912
|
+
for (var p2 in s2)
|
|
1913
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
1914
|
+
t2[p2] = s2[p2];
|
|
3189
1915
|
}
|
|
3190
|
-
return
|
|
1916
|
+
return t2;
|
|
3191
1917
|
};
|
|
3192
1918
|
return __assign.apply(this, arguments);
|
|
3193
1919
|
};
|
|
3194
|
-
var __read2 = function(
|
|
3195
|
-
var m = typeof Symbol === "function" &&
|
|
1920
|
+
var __read2 = function(o2, n2) {
|
|
1921
|
+
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
3196
1922
|
if (!m)
|
|
3197
|
-
return
|
|
3198
|
-
var
|
|
1923
|
+
return o2;
|
|
1924
|
+
var i2 = m.call(o2), r2, ar = [], e2;
|
|
3199
1925
|
try {
|
|
3200
|
-
while ((
|
|
3201
|
-
ar.push(
|
|
1926
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
1927
|
+
ar.push(r2.value);
|
|
3202
1928
|
} catch (error) {
|
|
3203
|
-
|
|
1929
|
+
e2 = { error };
|
|
3204
1930
|
} finally {
|
|
3205
1931
|
try {
|
|
3206
|
-
if (
|
|
3207
|
-
m.call(
|
|
1932
|
+
if (r2 && !r2.done && (m = i2["return"]))
|
|
1933
|
+
m.call(i2);
|
|
3208
1934
|
} finally {
|
|
3209
|
-
if (
|
|
3210
|
-
throw
|
|
1935
|
+
if (e2)
|
|
1936
|
+
throw e2.error;
|
|
3211
1937
|
}
|
|
3212
1938
|
}
|
|
3213
1939
|
return ar;
|
|
3214
1940
|
};
|
|
3215
|
-
var __spreadArray = function(to,
|
|
3216
|
-
for (var
|
|
3217
|
-
to[j] =
|
|
1941
|
+
var __spreadArray = function(to, from) {
|
|
1942
|
+
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
1943
|
+
to[j] = from[i2];
|
|
3218
1944
|
return to;
|
|
3219
1945
|
};
|
|
3220
1946
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
@@ -3255,13 +1981,13 @@ var simpleRules = [
|
|
|
3255
1981
|
});
|
|
3256
1982
|
return baseError;
|
|
3257
1983
|
}, function(v, superJson) {
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3260
|
-
|
|
1984
|
+
var e2 = new Error(v.message);
|
|
1985
|
+
e2.name = v.name;
|
|
1986
|
+
e2.stack = v.stack;
|
|
3261
1987
|
superJson.allowedErrorProps.forEach(function(prop) {
|
|
3262
|
-
|
|
1988
|
+
e2[prop] = v[prop];
|
|
3263
1989
|
});
|
|
3264
|
-
return
|
|
1990
|
+
return e2;
|
|
3265
1991
|
}),
|
|
3266
1992
|
simpleTransformation(isRegExp, "regexp", function(v) {
|
|
3267
1993
|
return "" + v;
|
|
@@ -3318,19 +2044,19 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
|
|
|
3318
2044
|
untransform
|
|
3319
2045
|
};
|
|
3320
2046
|
}
|
|
3321
|
-
var symbolRule = compositeTransformation(function(
|
|
3322
|
-
if (isSymbol(
|
|
3323
|
-
var isRegistered = !!superJson.symbolRegistry.getIdentifier(
|
|
2047
|
+
var symbolRule = compositeTransformation(function(s2, superJson) {
|
|
2048
|
+
if (isSymbol(s2)) {
|
|
2049
|
+
var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
|
|
3324
2050
|
return isRegistered;
|
|
3325
2051
|
}
|
|
3326
2052
|
return false;
|
|
3327
|
-
}, function(
|
|
3328
|
-
var
|
|
3329
|
-
return ["symbol",
|
|
2053
|
+
}, function(s2, superJson) {
|
|
2054
|
+
var identifier = superJson.symbolRegistry.getIdentifier(s2);
|
|
2055
|
+
return ["symbol", identifier];
|
|
3330
2056
|
}, function(v) {
|
|
3331
2057
|
return v.description;
|
|
3332
|
-
}, function(_,
|
|
3333
|
-
var value = superJson.symbolRegistry.getValue(
|
|
2058
|
+
}, function(_, a2, superJson) {
|
|
2059
|
+
var value = superJson.symbolRegistry.getValue(a2[1]);
|
|
3334
2060
|
if (!value) {
|
|
3335
2061
|
throw new Error("Trying to deserialize unknown symbol");
|
|
3336
2062
|
}
|
|
@@ -3354,8 +2080,8 @@ var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
|
|
|
3354
2080
|
return ["typed-array", v.constructor.name];
|
|
3355
2081
|
}, function(v) {
|
|
3356
2082
|
return __spreadArray([], __read2(v));
|
|
3357
|
-
}, function(v,
|
|
3358
|
-
var ctor = constructorToName[
|
|
2083
|
+
}, function(v, a2) {
|
|
2084
|
+
var ctor = constructorToName[a2[1]];
|
|
3359
2085
|
if (!ctor) {
|
|
3360
2086
|
throw new Error("Trying to deserialize unknown typed array");
|
|
3361
2087
|
}
|
|
@@ -3369,8 +2095,8 @@ function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
|
3369
2095
|
return false;
|
|
3370
2096
|
}
|
|
3371
2097
|
var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
|
|
3372
|
-
var
|
|
3373
|
-
return ["class",
|
|
2098
|
+
var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
2099
|
+
return ["class", identifier];
|
|
3374
2100
|
}, function(clazz, superJson) {
|
|
3375
2101
|
var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
3376
2102
|
if (!allowedProps) {
|
|
@@ -3381,8 +2107,8 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(cl
|
|
|
3381
2107
|
result[prop] = clazz[prop];
|
|
3382
2108
|
});
|
|
3383
2109
|
return result;
|
|
3384
|
-
}, function(v,
|
|
3385
|
-
var clazz = superJson.classRegistry.getValue(
|
|
2110
|
+
}, function(v, a2, superJson) {
|
|
2111
|
+
var clazz = superJson.classRegistry.getValue(a2[1]);
|
|
3386
2112
|
if (!clazz) {
|
|
3387
2113
|
throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
|
|
3388
2114
|
}
|
|
@@ -3396,8 +2122,8 @@ var customRule = compositeTransformation(function(value, superJson) {
|
|
|
3396
2122
|
}, function(value, superJson) {
|
|
3397
2123
|
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
3398
2124
|
return transformer.serialize(value);
|
|
3399
|
-
}, function(v,
|
|
3400
|
-
var transformer = superJson.customTransformerRegistry.findByName(
|
|
2125
|
+
}, function(v, a2, superJson) {
|
|
2126
|
+
var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
|
|
3401
2127
|
if (!transformer) {
|
|
3402
2128
|
throw new Error("Trying to deserialize unknown custom value");
|
|
3403
2129
|
}
|
|
@@ -3453,11 +2179,11 @@ var untransformValue = function(json, type, superJson) {
|
|
|
3453
2179
|
};
|
|
3454
2180
|
|
|
3455
2181
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
|
|
3456
|
-
var getNthKey = function(value,
|
|
2182
|
+
var getNthKey = function(value, n2) {
|
|
3457
2183
|
var keys2 = value.keys();
|
|
3458
|
-
while (
|
|
2184
|
+
while (n2 > 0) {
|
|
3459
2185
|
keys2.next();
|
|
3460
|
-
|
|
2186
|
+
n2--;
|
|
3461
2187
|
}
|
|
3462
2188
|
return keys2.next().value;
|
|
3463
2189
|
};
|
|
@@ -3474,13 +2200,13 @@ function validatePath(path) {
|
|
|
3474
2200
|
}
|
|
3475
2201
|
var getDeep = function(object, path) {
|
|
3476
2202
|
validatePath(path);
|
|
3477
|
-
for (var
|
|
3478
|
-
var key = path[
|
|
2203
|
+
for (var i2 = 0; i2 < path.length; i2++) {
|
|
2204
|
+
var key = path[i2];
|
|
3479
2205
|
if (isSet(object)) {
|
|
3480
2206
|
object = getNthKey(object, +key);
|
|
3481
2207
|
} else if (isMap(object)) {
|
|
3482
2208
|
var row = +key;
|
|
3483
|
-
var type = +path[++
|
|
2209
|
+
var type = +path[++i2] === 0 ? "key" : "value";
|
|
3484
2210
|
var keyOfRow = getNthKey(object, row);
|
|
3485
2211
|
switch (type) {
|
|
3486
2212
|
case "key":
|
|
@@ -3502,8 +2228,8 @@ var setDeep = function(object, path, mapper) {
|
|
|
3502
2228
|
return mapper(object);
|
|
3503
2229
|
}
|
|
3504
2230
|
var parent = object;
|
|
3505
|
-
for (var
|
|
3506
|
-
var key = path[
|
|
2231
|
+
for (var i2 = 0; i2 < path.length - 1; i2++) {
|
|
2232
|
+
var key = path[i2];
|
|
3507
2233
|
if (isArray(parent)) {
|
|
3508
2234
|
var index = +key;
|
|
3509
2235
|
parent = parent[index];
|
|
@@ -3513,12 +2239,12 @@ var setDeep = function(object, path, mapper) {
|
|
|
3513
2239
|
var row = +key;
|
|
3514
2240
|
parent = getNthKey(parent, row);
|
|
3515
2241
|
} else if (isMap(parent)) {
|
|
3516
|
-
var isEnd =
|
|
2242
|
+
var isEnd = i2 === path.length - 2;
|
|
3517
2243
|
if (isEnd) {
|
|
3518
2244
|
break;
|
|
3519
2245
|
}
|
|
3520
2246
|
var row = +key;
|
|
3521
|
-
var type = +path[++
|
|
2247
|
+
var type = +path[++i2] === 0 ? "key" : "value";
|
|
3522
2248
|
var keyOfRow = getNthKey(parent, row);
|
|
3523
2249
|
switch (type) {
|
|
3524
2250
|
case "key":
|
|
@@ -3567,30 +2293,30 @@ var setDeep = function(object, path, mapper) {
|
|
|
3567
2293
|
};
|
|
3568
2294
|
|
|
3569
2295
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
|
|
3570
|
-
var __read3 = function(
|
|
3571
|
-
var m = typeof Symbol === "function" &&
|
|
2296
|
+
var __read3 = function(o2, n2) {
|
|
2297
|
+
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
3572
2298
|
if (!m)
|
|
3573
|
-
return
|
|
3574
|
-
var
|
|
2299
|
+
return o2;
|
|
2300
|
+
var i2 = m.call(o2), r2, ar = [], e2;
|
|
3575
2301
|
try {
|
|
3576
|
-
while ((
|
|
3577
|
-
ar.push(
|
|
2302
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
2303
|
+
ar.push(r2.value);
|
|
3578
2304
|
} catch (error) {
|
|
3579
|
-
|
|
2305
|
+
e2 = { error };
|
|
3580
2306
|
} finally {
|
|
3581
2307
|
try {
|
|
3582
|
-
if (
|
|
3583
|
-
m.call(
|
|
2308
|
+
if (r2 && !r2.done && (m = i2["return"]))
|
|
2309
|
+
m.call(i2);
|
|
3584
2310
|
} finally {
|
|
3585
|
-
if (
|
|
3586
|
-
throw
|
|
2311
|
+
if (e2)
|
|
2312
|
+
throw e2.error;
|
|
3587
2313
|
}
|
|
3588
2314
|
}
|
|
3589
2315
|
return ar;
|
|
3590
2316
|
};
|
|
3591
|
-
var __spreadArray2 = function(to,
|
|
3592
|
-
for (var
|
|
3593
|
-
to[j] =
|
|
2317
|
+
var __spreadArray2 = function(to, from) {
|
|
2318
|
+
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
2319
|
+
to[j] = from[i2];
|
|
3594
2320
|
return to;
|
|
3595
2321
|
};
|
|
3596
2322
|
function traverse(tree, walker2, origin) {
|
|
@@ -3666,8 +2392,8 @@ function generateReferentialEqualityAnnotations(identitites) {
|
|
|
3666
2392
|
}
|
|
3667
2393
|
var _a = __read3(paths.map(function(path) {
|
|
3668
2394
|
return path.map(String);
|
|
3669
|
-
}).sort(function(
|
|
3670
|
-
return
|
|
2395
|
+
}).sort(function(a2, b2) {
|
|
2396
|
+
return a2.length - b2.length;
|
|
3671
2397
|
})), shortestPath = _a[0], identicalPaths = _a.slice(1);
|
|
3672
2398
|
if (shortestPath.length === 0) {
|
|
3673
2399
|
rootEqualityPaths = identicalPaths.map(stringifyPath);
|
|
@@ -3765,8 +2491,8 @@ function isArray2(payload) {
|
|
|
3765
2491
|
return getType2(payload) === "Array";
|
|
3766
2492
|
}
|
|
3767
2493
|
var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
|
|
3768
|
-
function isOneOf(
|
|
3769
|
-
return (value) =>
|
|
2494
|
+
function isOneOf(a2, b2, c2, d, e2) {
|
|
2495
|
+
return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
|
|
3770
2496
|
}
|
|
3771
2497
|
|
|
3772
2498
|
// ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
|
|
@@ -3783,9 +2509,9 @@ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
|
3783
2509
|
});
|
|
3784
2510
|
}
|
|
3785
2511
|
}
|
|
3786
|
-
function
|
|
2512
|
+
function copy(target, options = {}) {
|
|
3787
2513
|
if (isArray2(target)) {
|
|
3788
|
-
return target.map((item) =>
|
|
2514
|
+
return target.map((item) => copy(item, options));
|
|
3789
2515
|
}
|
|
3790
2516
|
if (!isPlainObject2(target)) {
|
|
3791
2517
|
return target;
|
|
@@ -3797,7 +2523,7 @@ function copy2(target, options = {}) {
|
|
|
3797
2523
|
return carry;
|
|
3798
2524
|
}
|
|
3799
2525
|
const val = target[key];
|
|
3800
|
-
const newVal =
|
|
2526
|
+
const newVal = copy(val, options);
|
|
3801
2527
|
assignProp(carry, key, newVal, target, options.nonenumerable);
|
|
3802
2528
|
return carry;
|
|
3803
2529
|
}, {});
|
|
@@ -3805,41 +2531,41 @@ function copy2(target, options = {}) {
|
|
|
3805
2531
|
|
|
3806
2532
|
// ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
|
|
3807
2533
|
var __assign2 = function() {
|
|
3808
|
-
__assign2 = Object.assign || function(
|
|
3809
|
-
for (var
|
|
3810
|
-
|
|
3811
|
-
for (var
|
|
3812
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3813
|
-
|
|
2534
|
+
__assign2 = Object.assign || function(t2) {
|
|
2535
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
2536
|
+
s2 = arguments[i2];
|
|
2537
|
+
for (var p2 in s2)
|
|
2538
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
2539
|
+
t2[p2] = s2[p2];
|
|
3814
2540
|
}
|
|
3815
|
-
return
|
|
2541
|
+
return t2;
|
|
3816
2542
|
};
|
|
3817
2543
|
return __assign2.apply(this, arguments);
|
|
3818
2544
|
};
|
|
3819
|
-
var __read4 = function(
|
|
3820
|
-
var m = typeof Symbol === "function" &&
|
|
2545
|
+
var __read4 = function(o2, n2) {
|
|
2546
|
+
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
3821
2547
|
if (!m)
|
|
3822
|
-
return
|
|
3823
|
-
var
|
|
2548
|
+
return o2;
|
|
2549
|
+
var i2 = m.call(o2), r2, ar = [], e2;
|
|
3824
2550
|
try {
|
|
3825
|
-
while ((
|
|
3826
|
-
ar.push(
|
|
2551
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
2552
|
+
ar.push(r2.value);
|
|
3827
2553
|
} catch (error) {
|
|
3828
|
-
|
|
2554
|
+
e2 = { error };
|
|
3829
2555
|
} finally {
|
|
3830
2556
|
try {
|
|
3831
|
-
if (
|
|
3832
|
-
m.call(
|
|
2557
|
+
if (r2 && !r2.done && (m = i2["return"]))
|
|
2558
|
+
m.call(i2);
|
|
3833
2559
|
} finally {
|
|
3834
|
-
if (
|
|
3835
|
-
throw
|
|
2560
|
+
if (e2)
|
|
2561
|
+
throw e2.error;
|
|
3836
2562
|
}
|
|
3837
2563
|
}
|
|
3838
2564
|
return ar;
|
|
3839
2565
|
};
|
|
3840
|
-
var __spreadArray3 = function(to,
|
|
3841
|
-
for (var
|
|
3842
|
-
to[j] =
|
|
2566
|
+
var __spreadArray3 = function(to, from) {
|
|
2567
|
+
for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
|
|
2568
|
+
to[j] = from[i2];
|
|
3843
2569
|
return to;
|
|
3844
2570
|
};
|
|
3845
2571
|
var SuperJSON = (
|
|
@@ -3847,9 +2573,9 @@ var SuperJSON = (
|
|
|
3847
2573
|
function() {
|
|
3848
2574
|
function SuperJSON2() {
|
|
3849
2575
|
this.classRegistry = new ClassRegistry();
|
|
3850
|
-
this.symbolRegistry = new Registry(function(
|
|
2576
|
+
this.symbolRegistry = new Registry(function(s2) {
|
|
3851
2577
|
var _a;
|
|
3852
|
-
return (_a =
|
|
2578
|
+
return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
|
|
3853
2579
|
});
|
|
3854
2580
|
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
3855
2581
|
this.allowedErrorProps = [];
|
|
@@ -3871,7 +2597,7 @@ var SuperJSON = (
|
|
|
3871
2597
|
};
|
|
3872
2598
|
SuperJSON2.prototype.deserialize = function(payload) {
|
|
3873
2599
|
var json = payload.json, meta = payload.meta;
|
|
3874
|
-
var result =
|
|
2600
|
+
var result = copy(json);
|
|
3875
2601
|
if (meta === null || meta === void 0 ? void 0 : meta.values) {
|
|
3876
2602
|
result = applyValueAnnotations(result, meta.values, this);
|
|
3877
2603
|
}
|
|
@@ -3889,8 +2615,8 @@ var SuperJSON = (
|
|
|
3889
2615
|
SuperJSON2.prototype.registerClass = function(v, options) {
|
|
3890
2616
|
this.classRegistry.register(v, options);
|
|
3891
2617
|
};
|
|
3892
|
-
SuperJSON2.prototype.registerSymbol = function(v,
|
|
3893
|
-
this.symbolRegistry.register(v,
|
|
2618
|
+
SuperJSON2.prototype.registerSymbol = function(v, identifier) {
|
|
2619
|
+
this.symbolRegistry.register(v, identifier);
|
|
3894
2620
|
};
|
|
3895
2621
|
SuperJSON2.prototype.registerCustom = function(transformer, name) {
|
|
3896
2622
|
this.customTransformerRegistry.register(__assign2({ name }, transformer));
|
|
@@ -3915,10 +2641,10 @@ var SuperJSON = (
|
|
|
3915
2641
|
return SuperJSON2;
|
|
3916
2642
|
}()
|
|
3917
2643
|
);
|
|
3918
|
-
var
|
|
2644
|
+
var serialize = SuperJSON.serialize;
|
|
3919
2645
|
var deserialize = SuperJSON.deserialize;
|
|
3920
|
-
var
|
|
3921
|
-
var
|
|
2646
|
+
var stringify = SuperJSON.stringify;
|
|
2647
|
+
var parse = SuperJSON.parse;
|
|
3922
2648
|
var registerClass = SuperJSON.registerClass;
|
|
3923
2649
|
var registerCustom = SuperJSON.registerCustom;
|
|
3924
2650
|
var registerSymbol = SuperJSON.registerSymbol;
|
|
@@ -3942,17 +2668,17 @@ function getQueryStatusColorByLabel(label) {
|
|
|
3942
2668
|
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
3943
2669
|
}
|
|
3944
2670
|
var displayValue = (value, beautify = false) => {
|
|
3945
|
-
const { json } =
|
|
2671
|
+
const { json } = serialize(value);
|
|
3946
2672
|
return JSON.stringify(json, null, beautify ? 2 : void 0);
|
|
3947
2673
|
};
|
|
3948
2674
|
var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
3949
|
-
var queryHashSort = (
|
|
3950
|
-
var dateSort = (
|
|
3951
|
-
var statusAndDateSort = (
|
|
3952
|
-
if (getStatusRank(
|
|
3953
|
-
return dateSort(
|
|
2675
|
+
var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
|
|
2676
|
+
var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
|
|
2677
|
+
var statusAndDateSort = (a2, b2) => {
|
|
2678
|
+
if (getStatusRank(a2) === getStatusRank(b2)) {
|
|
2679
|
+
return dateSort(a2, b2);
|
|
3954
2680
|
}
|
|
3955
|
-
return getStatusRank(
|
|
2681
|
+
return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
|
|
3956
2682
|
};
|
|
3957
2683
|
var sortFns = {
|
|
3958
2684
|
status: statusAndDateSort,
|
|
@@ -3979,6 +2705,21 @@ function Search() {
|
|
|
3979
2705
|
stroke-linejoin="round"
|
|
3980
2706
|
/></svg>;
|
|
3981
2707
|
}
|
|
2708
|
+
function Trash() {
|
|
2709
|
+
return <svg
|
|
2710
|
+
width="24"
|
|
2711
|
+
height="24"
|
|
2712
|
+
viewBox="0 0 24 24"
|
|
2713
|
+
fill="none"
|
|
2714
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2715
|
+
><path
|
|
2716
|
+
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"
|
|
2717
|
+
stroke="#98A2B3"
|
|
2718
|
+
stroke-width="1.66667"
|
|
2719
|
+
stroke-linecap="round"
|
|
2720
|
+
stroke-linejoin="round"
|
|
2721
|
+
/></svg>;
|
|
2722
|
+
}
|
|
3982
2723
|
function ChevronDown() {
|
|
3983
2724
|
return <svg
|
|
3984
2725
|
width="10"
|
|
@@ -4845,20 +3586,20 @@ function TanstackLogo() {
|
|
|
4845
3586
|
function chunkArray(array, size) {
|
|
4846
3587
|
if (size < 1)
|
|
4847
3588
|
return [];
|
|
4848
|
-
let
|
|
3589
|
+
let i2 = 0;
|
|
4849
3590
|
const result = [];
|
|
4850
|
-
while (
|
|
4851
|
-
result.push(array.slice(
|
|
4852
|
-
|
|
3591
|
+
while (i2 < array.length) {
|
|
3592
|
+
result.push(array.slice(i2, i2 + size));
|
|
3593
|
+
i2 = i2 + size;
|
|
4853
3594
|
}
|
|
4854
3595
|
return result;
|
|
4855
3596
|
}
|
|
4856
3597
|
var Expander = (props) => {
|
|
4857
3598
|
const styles = getStyles();
|
|
4858
3599
|
return <span
|
|
4859
|
-
class={
|
|
3600
|
+
class={clsx(
|
|
4860
3601
|
styles.expander,
|
|
4861
|
-
|
|
3602
|
+
u`
|
|
4862
3603
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
4863
3604
|
`
|
|
4864
3605
|
)}
|
|
@@ -4882,7 +3623,7 @@ var CopyButton = (props) => {
|
|
|
4882
3623
|
class={styles.copyButton}
|
|
4883
3624
|
aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
|
|
4884
3625
|
onClick={copyState() === "NoCopy" ? () => {
|
|
4885
|
-
navigator.clipboard.writeText(
|
|
3626
|
+
navigator.clipboard.writeText(stringify(props.value)).then(
|
|
4886
3627
|
() => {
|
|
4887
3628
|
setCopyState("SuccessCopy");
|
|
4888
3629
|
setTimeout(() => {
|
|
@@ -4916,8 +3657,8 @@ function Explorer(props) {
|
|
|
4916
3657
|
const [expandedPages, setExpandedPages] = createSignal([]);
|
|
4917
3658
|
const subEntries = createMemo(() => {
|
|
4918
3659
|
if (Array.isArray(props.value)) {
|
|
4919
|
-
return props.value.map((d,
|
|
4920
|
-
label:
|
|
3660
|
+
return props.value.map((d, i2) => ({
|
|
3661
|
+
label: i2.toString(),
|
|
4921
3662
|
value: d
|
|
4922
3663
|
}));
|
|
4923
3664
|
} else if (props.value !== null && typeof props.value === "object" && isIterable(props.value) && typeof props.value[Symbol.iterator] === "function") {
|
|
@@ -4927,8 +3668,8 @@ function Explorer(props) {
|
|
|
4927
3668
|
value: val
|
|
4928
3669
|
}));
|
|
4929
3670
|
}
|
|
4930
|
-
return Array.from(props.value, (val,
|
|
4931
|
-
label:
|
|
3671
|
+
return Array.from(props.value, (val, i2) => ({
|
|
3672
|
+
label: i2.toString(),
|
|
4932
3673
|
value: val
|
|
4933
3674
|
}));
|
|
4934
3675
|
} else if (typeof props.value === "object" && props.value !== null) {
|
|
@@ -5011,7 +3752,7 @@ function Explorer(props) {
|
|
|
5011
3752
|
var getStyles = () => {
|
|
5012
3753
|
const { colors, font, size, border } = tokens;
|
|
5013
3754
|
return {
|
|
5014
|
-
entry:
|
|
3755
|
+
entry: u`
|
|
5015
3756
|
& * {
|
|
5016
3757
|
font-size: ${font.size.sm};
|
|
5017
3758
|
font-family: 'Menlo', 'Fira Code', monospace;
|
|
@@ -5021,12 +3762,12 @@ var getStyles = () => {
|
|
|
5021
3762
|
outline: none;
|
|
5022
3763
|
word-break: break-word;
|
|
5023
3764
|
`,
|
|
5024
|
-
subEntry:
|
|
3765
|
+
subEntry: u`
|
|
5025
3766
|
margin: 0 0 0 0.5em;
|
|
5026
3767
|
padding-left: 0.75em;
|
|
5027
3768
|
border-left: 2px solid ${colors.darkGray[400]};
|
|
5028
3769
|
`,
|
|
5029
|
-
expander:
|
|
3770
|
+
expander: u`
|
|
5030
3771
|
& path {
|
|
5031
3772
|
stroke: ${colors.gray[400]};
|
|
5032
3773
|
}
|
|
@@ -5034,7 +3775,7 @@ var getStyles = () => {
|
|
|
5034
3775
|
align-items: center;
|
|
5035
3776
|
transition: all 0.1s ease;
|
|
5036
3777
|
`,
|
|
5037
|
-
expanderButton:
|
|
3778
|
+
expanderButton: u`
|
|
5038
3779
|
cursor: pointer;
|
|
5039
3780
|
color: inherit;
|
|
5040
3781
|
font: inherit;
|
|
@@ -5052,19 +3793,19 @@ var getStyles = () => {
|
|
|
5052
3793
|
outline: 2px solid ${colors.blue[800]};
|
|
5053
3794
|
}
|
|
5054
3795
|
`,
|
|
5055
|
-
info:
|
|
3796
|
+
info: u`
|
|
5056
3797
|
color: ${colors.gray[500]};
|
|
5057
3798
|
font-size: ${font.size.xs};
|
|
5058
3799
|
line-height: ${font.size.xs};
|
|
5059
3800
|
margin-left: ${size[1]};
|
|
5060
3801
|
`,
|
|
5061
|
-
label:
|
|
3802
|
+
label: u`
|
|
5062
3803
|
color: ${colors.gray[300]};
|
|
5063
3804
|
`,
|
|
5064
|
-
value:
|
|
3805
|
+
value: u`
|
|
5065
3806
|
color: ${colors.purple[400]};
|
|
5066
3807
|
`,
|
|
5067
|
-
copyButton:
|
|
3808
|
+
copyButton: u`
|
|
5068
3809
|
background-color: transparent;
|
|
5069
3810
|
border: none;
|
|
5070
3811
|
display: inline-flex;
|
|
@@ -5142,46 +3883,55 @@ var Devtools = () => {
|
|
|
5142
3883
|
const isOpen = createMemo(() => {
|
|
5143
3884
|
return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
|
|
5144
3885
|
});
|
|
5145
|
-
const
|
|
3886
|
+
const position = createMemo(() => {
|
|
5146
3887
|
return localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
5147
3888
|
});
|
|
3889
|
+
createEffect(() => {
|
|
3890
|
+
const root = document.querySelector(".tsqd-parent-container");
|
|
3891
|
+
const height = localStore.height || DEFAULT_HEIGHT;
|
|
3892
|
+
const width = localStore.width || DEFAULT_WIDTH;
|
|
3893
|
+
const panelPosition = position();
|
|
3894
|
+
root.style.setProperty(
|
|
3895
|
+
"--tsqd-panel-height",
|
|
3896
|
+
`${panelPosition === "top" ? "-" : ""}${height}px`
|
|
3897
|
+
);
|
|
3898
|
+
root.style.setProperty(
|
|
3899
|
+
"--tsqd-panel-width",
|
|
3900
|
+
`${panelPosition === "left" ? "-" : ""}${width}px`
|
|
3901
|
+
);
|
|
3902
|
+
});
|
|
5148
3903
|
return <div
|
|
5149
|
-
class={
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
3904
|
+
class={clsx(
|
|
3905
|
+
u`
|
|
3906
|
+
& .tsqd-panel-transition-exit-active,
|
|
3907
|
+
& .tsqd-panel-transition-enter-active {
|
|
3908
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
3909
|
+
}
|
|
5154
3910
|
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
)}px);` : position2() === "left" ? `transform: translateX(-${Number(
|
|
5160
|
-
localStore.width || DEFAULT_WIDTH
|
|
5161
|
-
)}px);` : position2() === "right" ? `transform: translateX(${Number(
|
|
5162
|
-
localStore.width || DEFAULT_WIDTH
|
|
5163
|
-
)}px);` : `transform: translateY(${Number(
|
|
5164
|
-
localStore.height || DEFAULT_HEIGHT
|
|
5165
|
-
)}px);`}
|
|
5166
|
-
}
|
|
3911
|
+
& .tsqd-panel-transition-exit-to,
|
|
3912
|
+
& .tsqd-panel-transition-enter {
|
|
3913
|
+
${position() === "top" || position() === "bottom" ? `transform: translateY(var(--tsqd-panel-height));` : `transform: translateX(var(--tsqd-panel-width));`}
|
|
3914
|
+
}
|
|
5167
3915
|
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
3916
|
+
& .tsqd-button-transition-exit-active,
|
|
3917
|
+
& .tsqd-button-transition-enter-active {
|
|
3918
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
3919
|
+
}
|
|
5172
3920
|
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
3921
|
+
& .tsqd-button-transition-exit-to,
|
|
3922
|
+
& .tsqd-button-transition-enter {
|
|
3923
|
+
transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
|
|
3924
|
+
}
|
|
3925
|
+
`,
|
|
3926
|
+
"tsqd-transitions-container"
|
|
3927
|
+
)}
|
|
5178
3928
|
>
|
|
5179
|
-
<TransitionGroup name="
|
|
3929
|
+
<TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
|
|
5180
3930
|
localStore={localStore}
|
|
5181
3931
|
setLocalStore={setLocalStore}
|
|
5182
3932
|
/></Show></TransitionGroup>
|
|
5183
|
-
<TransitionGroup name="
|
|
5184
|
-
class={
|
|
3933
|
+
<TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
|
|
3934
|
+
class={clsx(
|
|
5185
3935
|
styles.devtoolsBtn,
|
|
5186
3936
|
styles[`devtoolsBtn-position-${buttonPosition()}`]
|
|
5187
3937
|
)}
|
|
@@ -5203,14 +3953,14 @@ var DevtoolsPanel = (props) => {
|
|
|
5203
3953
|
);
|
|
5204
3954
|
const [offline, setOffline] = createSignal(false);
|
|
5205
3955
|
const [settingsOpen, setSettingsOpen] = createSignal(false);
|
|
5206
|
-
const
|
|
3956
|
+
const position = createMemo(
|
|
5207
3957
|
() => props.localStore.position || useQueryDevtoolsContext().position || POSITION
|
|
5208
3958
|
);
|
|
5209
3959
|
const sortFn = createMemo(() => sortFns[sort()]);
|
|
5210
3960
|
const onlineManager = createMemo(
|
|
5211
3961
|
() => useQueryDevtoolsContext().onlineManager
|
|
5212
3962
|
);
|
|
5213
|
-
const
|
|
3963
|
+
const cache = createMemo(() => {
|
|
5214
3964
|
return useQueryDevtoolsContext().client.getQueryCache();
|
|
5215
3965
|
});
|
|
5216
3966
|
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
@@ -5220,11 +3970,11 @@ var DevtoolsPanel = (props) => {
|
|
|
5220
3970
|
on(
|
|
5221
3971
|
() => [queryCount(), props.localStore.filter, sort(), sortOrder()],
|
|
5222
3972
|
() => {
|
|
5223
|
-
const curr =
|
|
3973
|
+
const curr = cache().getAll();
|
|
5224
3974
|
const filtered = props.localStore.filter ? curr.filter(
|
|
5225
3975
|
(item) => rankItem(item.queryHash, props.localStore.filter || "").passed
|
|
5226
3976
|
) : [...curr];
|
|
5227
|
-
const sorted = sortFn() ? filtered.sort((
|
|
3977
|
+
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
5228
3978
|
return sorted;
|
|
5229
3979
|
}
|
|
5230
3980
|
)
|
|
@@ -5242,8 +3992,8 @@ var DevtoolsPanel = (props) => {
|
|
|
5242
3992
|
const minWidth = convertRemToPixels(12);
|
|
5243
3993
|
const runDrag = (moveEvent) => {
|
|
5244
3994
|
moveEvent.preventDefault();
|
|
5245
|
-
if (
|
|
5246
|
-
const valToAdd =
|
|
3995
|
+
if (position() === "left" || position() === "right") {
|
|
3996
|
+
const valToAdd = position() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
|
|
5247
3997
|
newSize = Math.round(width + valToAdd);
|
|
5248
3998
|
if (newSize < minWidth) {
|
|
5249
3999
|
newSize = minWidth;
|
|
@@ -5254,7 +4004,7 @@ var DevtoolsPanel = (props) => {
|
|
|
5254
4004
|
props.setLocalStore("width", String(newWidth));
|
|
5255
4005
|
}
|
|
5256
4006
|
} else {
|
|
5257
|
-
const valToAdd =
|
|
4007
|
+
const valToAdd = position() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
|
|
5258
4008
|
newSize = Math.round(height + valToAdd);
|
|
5259
4009
|
if (newSize < minHeight) {
|
|
5260
4010
|
newSize = minHeight;
|
|
@@ -5315,49 +4065,65 @@ var DevtoolsPanel = (props) => {
|
|
|
5315
4065
|
});
|
|
5316
4066
|
});
|
|
5317
4067
|
return <aside
|
|
5318
|
-
class={
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
4068
|
+
class={clsx(
|
|
4069
|
+
styles.panel,
|
|
4070
|
+
styles[`panel-position-${position()}`],
|
|
4071
|
+
u`
|
|
4072
|
+
flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
|
|
4073
|
+
background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
|
|
4074
|
+
`,
|
|
4075
|
+
{
|
|
4076
|
+
[u`
|
|
5322
4077
|
min-width: min-content;
|
|
5323
|
-
`
|
|
5324
|
-
|
|
4078
|
+
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
4079
|
+
},
|
|
4080
|
+
"tsqd-main-panel"
|
|
4081
|
+
)}
|
|
5325
4082
|
style={{
|
|
5326
|
-
height:
|
|
5327
|
-
width:
|
|
4083
|
+
height: position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
|
|
4084
|
+
width: position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
|
|
5328
4085
|
}}
|
|
5329
4086
|
ref={panelRef}
|
|
5330
4087
|
aria-label="Tanstack query devtools"
|
|
5331
4088
|
>
|
|
5332
4089
|
<div
|
|
5333
|
-
class={
|
|
4090
|
+
class={clsx(
|
|
5334
4091
|
styles.dragHandle,
|
|
5335
|
-
styles[`dragHandle-position-${
|
|
4092
|
+
styles[`dragHandle-position-${position()}`],
|
|
4093
|
+
"tsqd-drag-handle"
|
|
5336
4094
|
)}
|
|
5337
4095
|
onMouseDown={handleDragStart}
|
|
5338
4096
|
/>
|
|
5339
4097
|
<button
|
|
5340
4098
|
aria-label="Close tanstack query devtools"
|
|
5341
|
-
class={
|
|
4099
|
+
class={clsx(
|
|
4100
|
+
styles.closeBtn,
|
|
4101
|
+
styles[`closeBtn-position-${position()}`],
|
|
4102
|
+
"tsqd-minimize-btn"
|
|
4103
|
+
)}
|
|
5342
4104
|
onClick={() => props.setLocalStore("open", "false")}
|
|
5343
4105
|
><ChevronDown /></button>
|
|
5344
4106
|
<div
|
|
5345
4107
|
ref={queriesContainerRef}
|
|
5346
|
-
class={
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
4108
|
+
class={clsx(
|
|
4109
|
+
styles.queriesContainer,
|
|
4110
|
+
panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
4111
|
+
height: 50%;
|
|
4112
|
+
max-height: 50%;
|
|
4113
|
+
`,
|
|
4114
|
+
"tsqd-queries-container"
|
|
4115
|
+
)}
|
|
5352
4116
|
>
|
|
5353
|
-
<div class={
|
|
4117
|
+
<div class={clsx(styles.row, "tsqd-header")}>
|
|
5354
4118
|
<button
|
|
5355
|
-
class={styles.logo}
|
|
4119
|
+
class={clsx(styles.logo, "tsqd-text-logo-container")}
|
|
5356
4120
|
onClick={() => props.setLocalStore("open", "false")}
|
|
5357
4121
|
aria-label="Close Tanstack query devtools"
|
|
5358
4122
|
>
|
|
5359
|
-
<span class={styles.tanstackLogo}>TANSTACK</span>
|
|
5360
|
-
<span
|
|
4123
|
+
<span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
|
|
4124
|
+
<span
|
|
4125
|
+
class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
|
|
4126
|
+
>
|
|
5361
4127
|
{useQueryDevtoolsContext().queryFlavor}
|
|
5362
4128
|
{" v"}
|
|
5363
4129
|
{useQueryDevtoolsContext().version}
|
|
@@ -5366,28 +4132,40 @@ var DevtoolsPanel = (props) => {
|
|
|
5366
4132
|
<QueryStatusCount />
|
|
5367
4133
|
</div>
|
|
5368
4134
|
<div
|
|
5369
|
-
class={
|
|
4135
|
+
class={clsx(
|
|
5370
4136
|
styles.row,
|
|
5371
|
-
|
|
4137
|
+
u`
|
|
5372
4138
|
gap: ${tokens.size[2.5]};
|
|
5373
|
-
|
|
4139
|
+
`,
|
|
4140
|
+
"tsqd-filters-actions-container"
|
|
5374
4141
|
)}
|
|
5375
4142
|
>
|
|
5376
|
-
<div class={styles.filtersContainer}>
|
|
5377
|
-
<div
|
|
4143
|
+
<div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
|
|
4144
|
+
<div
|
|
4145
|
+
class={clsx(
|
|
4146
|
+
styles.filterInput,
|
|
4147
|
+
"tsqd-query-filter-textfield-container"
|
|
4148
|
+
)}
|
|
4149
|
+
>
|
|
5378
4150
|
<Search />
|
|
5379
4151
|
<input
|
|
5380
4152
|
aria-label="Filter queries by query key"
|
|
5381
4153
|
type="text"
|
|
5382
4154
|
placeholder="Filter"
|
|
5383
|
-
onInput={(
|
|
4155
|
+
onInput={(e2) => props.setLocalStore("filter", e2.currentTarget.value)}
|
|
4156
|
+
class="tsqd-query-filter-textfield"
|
|
5384
4157
|
value={props.localStore.filter || ""}
|
|
5385
4158
|
/>
|
|
5386
4159
|
</div>
|
|
5387
|
-
<div
|
|
4160
|
+
<div
|
|
4161
|
+
class={clsx(
|
|
4162
|
+
styles.filterSelect,
|
|
4163
|
+
"tsqd-query-filter-sort-container"
|
|
4164
|
+
)}
|
|
4165
|
+
>
|
|
5388
4166
|
<select
|
|
5389
4167
|
value={sort()}
|
|
5390
|
-
onChange={(
|
|
4168
|
+
onChange={(e2) => props.setLocalStore("sort", e2.currentTarget.value)}
|
|
5391
4169
|
>{Object.keys(sortFns).map((key) => <option value={key}>
|
|
5392
4170
|
{"Sort by "}
|
|
5393
4171
|
{key}
|
|
@@ -5400,6 +4178,7 @@ var DevtoolsPanel = (props) => {
|
|
|
5400
4178
|
}}
|
|
5401
4179
|
aria-label={`Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`}
|
|
5402
4180
|
aria-pressed={sortOrder() === -1}
|
|
4181
|
+
class="tsqd-query-filter-sort-order-btn"
|
|
5403
4182
|
>
|
|
5404
4183
|
<Show when={sortOrder() === 1}>
|
|
5405
4184
|
<span>Asc</span>
|
|
@@ -5411,7 +4190,18 @@ var DevtoolsPanel = (props) => {
|
|
|
5411
4190
|
</Show>
|
|
5412
4191
|
</button>
|
|
5413
4192
|
</div>
|
|
5414
|
-
<div class={styles.actionsContainer}>
|
|
4193
|
+
<div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
|
|
4194
|
+
<button
|
|
4195
|
+
onClick={() => {
|
|
4196
|
+
cache().clear();
|
|
4197
|
+
}}
|
|
4198
|
+
class={clsx(
|
|
4199
|
+
styles.actionsBtn,
|
|
4200
|
+
"tsqd-actions-btn",
|
|
4201
|
+
"tsqd-action-clear-cache"
|
|
4202
|
+
)}
|
|
4203
|
+
aria-label="Clear query cache"
|
|
4204
|
+
><Trash /></button>
|
|
5415
4205
|
<button
|
|
5416
4206
|
onClick={() => {
|
|
5417
4207
|
if (offline()) {
|
|
@@ -5422,33 +4212,52 @@ var DevtoolsPanel = (props) => {
|
|
|
5422
4212
|
setOffline(true);
|
|
5423
4213
|
}
|
|
5424
4214
|
}}
|
|
5425
|
-
class={
|
|
4215
|
+
class={clsx(
|
|
4216
|
+
styles.actionsBtn,
|
|
4217
|
+
"tsqd-actions-btn",
|
|
4218
|
+
"tsqd-action-mock-offline-behavior"
|
|
4219
|
+
)}
|
|
5426
4220
|
aria-label={`${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`}
|
|
5427
4221
|
aria-pressed={offline()}
|
|
5428
4222
|
>{offline() ? <Offline /> : <Wifi />}</button>
|
|
5429
4223
|
<div style={{ position: "relative" }}>
|
|
5430
4224
|
<button
|
|
5431
|
-
onClick={() => setSettingsOpen((
|
|
5432
|
-
class={
|
|
5433
|
-
|
|
4225
|
+
onClick={() => setSettingsOpen((prev) => !prev)}
|
|
4226
|
+
class={clsx(
|
|
4227
|
+
styles.actionsBtn,
|
|
4228
|
+
"tsqd-actions-btn",
|
|
4229
|
+
"tsqd-action-settings"
|
|
4230
|
+
)}
|
|
4231
|
+
id="tsqd-settings-menu-btn"
|
|
5434
4232
|
aria-label={`${settingsOpen() ? "Close" : "Open"} settings menu`}
|
|
5435
4233
|
aria-haspopup="true"
|
|
5436
|
-
aria-controls="
|
|
4234
|
+
aria-controls="tsqd-settings-menu"
|
|
5437
4235
|
><Settings /></button>
|
|
5438
4236
|
<Show when={settingsOpen()}><div
|
|
5439
4237
|
role="menu"
|
|
5440
4238
|
tabindex="-1"
|
|
5441
|
-
aria-labelledby="
|
|
5442
|
-
id="
|
|
5443
|
-
class={styles.settingsMenu}
|
|
4239
|
+
aria-labelledby="tsqd-settings-menu-btn"
|
|
4240
|
+
id="tsqd-settings-menu"
|
|
4241
|
+
class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
|
|
5444
4242
|
>
|
|
5445
|
-
<div
|
|
5446
|
-
|
|
4243
|
+
<div
|
|
4244
|
+
class={clsx(
|
|
4245
|
+
styles.settingsMenuHeader,
|
|
4246
|
+
"tsqd-settings-menu-header"
|
|
4247
|
+
)}
|
|
4248
|
+
>Position</div>
|
|
4249
|
+
<div
|
|
4250
|
+
class={clsx(
|
|
4251
|
+
styles.settingsMenuSection,
|
|
4252
|
+
"tsqd-settings-menu-section"
|
|
4253
|
+
)}
|
|
4254
|
+
>
|
|
5447
4255
|
<button
|
|
5448
4256
|
onClick={() => {
|
|
5449
4257
|
setDevtoolsPosition("top");
|
|
5450
4258
|
}}
|
|
5451
4259
|
aria-label="Position top"
|
|
4260
|
+
class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-top"
|
|
5452
4261
|
>
|
|
5453
4262
|
<ArrowUp />
|
|
5454
4263
|
<span>Top</span>
|
|
@@ -5458,6 +4267,7 @@ var DevtoolsPanel = (props) => {
|
|
|
5458
4267
|
setDevtoolsPosition("bottom");
|
|
5459
4268
|
}}
|
|
5460
4269
|
aria-label="Position bottom"
|
|
4270
|
+
class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-bottom"
|
|
5461
4271
|
>
|
|
5462
4272
|
<ArrowDown />
|
|
5463
4273
|
<span>Bottom</span>
|
|
@@ -5467,6 +4277,7 @@ var DevtoolsPanel = (props) => {
|
|
|
5467
4277
|
setDevtoolsPosition("left");
|
|
5468
4278
|
}}
|
|
5469
4279
|
aria-label="Position left"
|
|
4280
|
+
class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-left"
|
|
5470
4281
|
>
|
|
5471
4282
|
<ArrowDown />
|
|
5472
4283
|
<span>Left</span>
|
|
@@ -5476,6 +4287,7 @@ var DevtoolsPanel = (props) => {
|
|
|
5476
4287
|
setDevtoolsPosition("right");
|
|
5477
4288
|
}}
|
|
5478
4289
|
aria-label="Position right"
|
|
4290
|
+
class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-right"
|
|
5479
4291
|
>
|
|
5480
4292
|
<ArrowDown />
|
|
5481
4293
|
<span>Right</span>
|
|
@@ -5485,7 +4297,12 @@ var DevtoolsPanel = (props) => {
|
|
|
5485
4297
|
</div>
|
|
5486
4298
|
</div>
|
|
5487
4299
|
</div>
|
|
5488
|
-
<div
|
|
4300
|
+
<div
|
|
4301
|
+
class={clsx(
|
|
4302
|
+
styles.overflowQueryContainer,
|
|
4303
|
+
"tsqd-queries-overflow-container"
|
|
4304
|
+
)}
|
|
4305
|
+
><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
|
|
5489
4306
|
</div>
|
|
5490
4307
|
<Show when={selectedQueryHash()}><QueryDetails /></Show>
|
|
5491
4308
|
</aside>;
|
|
@@ -5523,26 +4340,27 @@ var QueryRow = (props) => {
|
|
|
5523
4340
|
onClick={() => setSelectedQueryHash(
|
|
5524
4341
|
props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
|
|
5525
4342
|
)}
|
|
5526
|
-
class={
|
|
4343
|
+
class={clsx(
|
|
5527
4344
|
styles.queryRow,
|
|
5528
|
-
selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow
|
|
4345
|
+
selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
|
|
4346
|
+
"tsqd-query-row"
|
|
5529
4347
|
)}
|
|
5530
4348
|
aria-label={`Query key ${props.query.queryHash}`}
|
|
5531
4349
|
>
|
|
5532
4350
|
<div
|
|
5533
|
-
class={
|
|
5534
|
-
"
|
|
5535
|
-
color() === "gray" ? css`
|
|
4351
|
+
class={clsx(
|
|
4352
|
+
color() === "gray" ? u`
|
|
5536
4353
|
background-color: ${tokens.colors[color()][700]};
|
|
5537
4354
|
color: ${tokens.colors[color()][300]};
|
|
5538
|
-
` :
|
|
4355
|
+
` : u`
|
|
5539
4356
|
background-color: ${tokens.colors[color()][900]};
|
|
5540
|
-
color: ${tokens.colors[color()][300]}
|
|
5541
|
-
|
|
4357
|
+
color: ${tokens.colors[color()][300]};
|
|
4358
|
+
`,
|
|
4359
|
+
"tsqd-query-observer-count"
|
|
5542
4360
|
)}
|
|
5543
4361
|
>{observers()}</div>
|
|
5544
|
-
<code class="
|
|
5545
|
-
<Show when={isDisabled()}><div class="
|
|
4362
|
+
<code class="tsqd-query-hash">{props.query.queryHash}</code>
|
|
4363
|
+
<Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
|
|
5546
4364
|
</button></Show>;
|
|
5547
4365
|
};
|
|
5548
4366
|
var QueryStatusCount = () => {
|
|
@@ -5562,7 +4380,7 @@ var QueryStatusCount = () => {
|
|
|
5562
4380
|
(queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
|
|
5563
4381
|
);
|
|
5564
4382
|
const styles = getStyles2();
|
|
5565
|
-
return <div class={styles.queryStatusContainer}>
|
|
4383
|
+
return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
|
|
5566
4384
|
<QueryStatus label="Fresh" color="green" count={fresh()} />
|
|
5567
4385
|
<QueryStatus label="Fetching" color="blue" count={fetching()} />
|
|
5568
4386
|
<QueryStatus label="Paused" color="purple" count={paused()} />
|
|
@@ -5596,42 +4414,48 @@ var QueryStatus = (props) => {
|
|
|
5596
4414
|
}}
|
|
5597
4415
|
disabled={showLabel()}
|
|
5598
4416
|
ref={tagRef}
|
|
5599
|
-
class={
|
|
4417
|
+
class={clsx(
|
|
5600
4418
|
styles.queryStatusTag,
|
|
5601
|
-
!showLabel()
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
4419
|
+
!showLabel() && u`
|
|
4420
|
+
cursor: pointer;
|
|
4421
|
+
&:hover {
|
|
4422
|
+
background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
|
|
4423
|
+
}
|
|
4424
|
+
`,
|
|
4425
|
+
"tsqd-query-status-tag",
|
|
4426
|
+
`tsqd-query-status-tag-${props.label.toLowerCase()}`
|
|
5607
4427
|
)}
|
|
5608
4428
|
{...mouseOver() || focused() ? {
|
|
5609
|
-
"aria-describedby": "
|
|
4429
|
+
"aria-describedby": "tsqd-status-tooltip"
|
|
5610
4430
|
} : {}}
|
|
5611
4431
|
>
|
|
5612
4432
|
<Show when={!showLabel() && (mouseOver() || focused())}><div
|
|
5613
4433
|
role="tooltip"
|
|
5614
|
-
id="
|
|
5615
|
-
class={
|
|
4434
|
+
id="tsqd-status-tooltip"
|
|
4435
|
+
class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
|
|
5616
4436
|
>{props.label}</div></Show>
|
|
5617
4437
|
<span
|
|
5618
|
-
class={
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
4438
|
+
class={clsx(
|
|
4439
|
+
u`
|
|
4440
|
+
width: ${tokens.size[2]};
|
|
4441
|
+
height: ${tokens.size[2]};
|
|
4442
|
+
border-radius: ${tokens.border.radius.full};
|
|
4443
|
+
background-color: ${tokens.colors[props.color][500]};
|
|
4444
|
+
`,
|
|
4445
|
+
"tsqd-query-status-tag-dot"
|
|
4446
|
+
)}
|
|
5624
4447
|
/>
|
|
5625
|
-
<Show when={showLabel()}><span>{props.label}</span></Show>
|
|
4448
|
+
<Show when={showLabel()}><span class="tsqd-query-status-tag-label">{props.label}</span></Show>
|
|
5626
4449
|
<span
|
|
5627
|
-
class={
|
|
4450
|
+
class={clsx(
|
|
5628
4451
|
styles.queryStatusCount,
|
|
5629
|
-
props.count > 0 && props.color !== "gray" ?
|
|
4452
|
+
props.count > 0 && props.color !== "gray" ? u`
|
|
5630
4453
|
background-color: ${tokens.colors[props.color][900]};
|
|
5631
|
-
color: ${tokens.colors[props.color][300]}
|
|
5632
|
-
` :
|
|
5633
|
-
color: ${tokens.colors["gray"][400]}
|
|
5634
|
-
|
|
4454
|
+
color: ${tokens.colors[props.color][300]};
|
|
4455
|
+
` : u`
|
|
4456
|
+
color: ${tokens.colors["gray"][400]};
|
|
4457
|
+
`,
|
|
4458
|
+
"tsqd-query-status-tag-count"
|
|
5635
4459
|
)}
|
|
5636
4460
|
>{props.count}</span>
|
|
5637
4461
|
</button>;
|
|
@@ -5708,19 +4532,21 @@ var QueryDetails = () => {
|
|
|
5708
4532
|
setRestoringLoading(false);
|
|
5709
4533
|
}
|
|
5710
4534
|
});
|
|
5711
|
-
return <Show when={activeQuery() && activeQueryState()}><div class={styles.detailsContainer}>
|
|
5712
|
-
<div class={styles.detailsHeader}>Query Details</div>
|
|
5713
|
-
<div
|
|
5714
|
-
|
|
4535
|
+
return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
|
|
4536
|
+
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
|
|
4537
|
+
<div
|
|
4538
|
+
class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
|
|
4539
|
+
>
|
|
4540
|
+
<div class="tsqd-query-details-summary">
|
|
5715
4541
|
<pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
|
|
5716
4542
|
<span
|
|
5717
|
-
class={
|
|
4543
|
+
class={clsx(
|
|
5718
4544
|
styles.queryDetailsStatus,
|
|
5719
|
-
color() === "gray" ?
|
|
4545
|
+
color() === "gray" ? u`
|
|
5720
4546
|
background-color: ${tokens.colors[color()][700]};
|
|
5721
4547
|
color: ${tokens.colors[color()][300]};
|
|
5722
4548
|
border-color: ${tokens.colors[color()][600]};
|
|
5723
|
-
` :
|
|
4549
|
+
` : u`
|
|
5724
4550
|
background-color: ${tokens.colors[color()][900]};
|
|
5725
4551
|
color: ${tokens.colors[color()][300]};
|
|
5726
4552
|
border-color: ${tokens.colors[color()][600]};
|
|
@@ -5728,63 +4554,102 @@ var QueryDetails = () => {
|
|
|
5728
4554
|
)}
|
|
5729
4555
|
>{statusLabel()}</span>
|
|
5730
4556
|
</div>
|
|
5731
|
-
<div>
|
|
4557
|
+
<div class="tsqd-query-details-observers-count">
|
|
5732
4558
|
<span>Observers:</span>
|
|
5733
4559
|
<span>{observerCount()}</span>
|
|
5734
4560
|
</div>
|
|
5735
|
-
<div>
|
|
4561
|
+
<div class="tsqd-query-details-last-updated">
|
|
5736
4562
|
<span>Last Updated:</span>
|
|
5737
4563
|
<span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
|
|
5738
4564
|
</div>
|
|
5739
4565
|
</div>
|
|
5740
|
-
<div class={styles.detailsHeader}>Actions</div>
|
|
5741
|
-
<div
|
|
4566
|
+
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
|
|
4567
|
+
<div
|
|
4568
|
+
class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
|
|
4569
|
+
>
|
|
5742
4570
|
<button
|
|
5743
|
-
class={
|
|
5744
|
-
|
|
5745
|
-
|
|
4571
|
+
class={clsx(
|
|
4572
|
+
u`
|
|
4573
|
+
color: ${tokens.colors.blue[400]};
|
|
4574
|
+
`,
|
|
4575
|
+
"tsqd-query-details-actions-btn",
|
|
4576
|
+
"tsqd-query-details-action-refetch"
|
|
4577
|
+
)}
|
|
5746
4578
|
onClick={handleRefetch}
|
|
5747
4579
|
disabled={statusLabel() === "fetching"}
|
|
5748
4580
|
>
|
|
5749
4581
|
<span
|
|
5750
|
-
class={
|
|
4582
|
+
class={u`
|
|
5751
4583
|
background-color: ${tokens.colors.blue[400]};
|
|
5752
4584
|
`}
|
|
5753
4585
|
/>
|
|
5754
4586
|
{"Refetch"}
|
|
5755
4587
|
</button>
|
|
5756
4588
|
<button
|
|
5757
|
-
class={
|
|
5758
|
-
|
|
5759
|
-
|
|
4589
|
+
class={clsx(
|
|
4590
|
+
u`
|
|
4591
|
+
color: ${tokens.colors.yellow[400]};
|
|
4592
|
+
`,
|
|
4593
|
+
"tsqd-query-details-actions-btn",
|
|
4594
|
+
"tsqd-query-details-action-invalidate"
|
|
4595
|
+
)}
|
|
5760
4596
|
onClick={() => queryClient.invalidateQueries(activeQuery())}
|
|
5761
4597
|
disabled={queryStatus() === "pending"}
|
|
5762
4598
|
>
|
|
5763
4599
|
<span
|
|
5764
|
-
class={
|
|
4600
|
+
class={u`
|
|
5765
4601
|
background-color: ${tokens.colors.yellow[400]};
|
|
5766
4602
|
`}
|
|
5767
4603
|
/>
|
|
5768
4604
|
{"Invalidate"}
|
|
5769
4605
|
</button>
|
|
5770
4606
|
<button
|
|
5771
|
-
class={
|
|
5772
|
-
|
|
5773
|
-
|
|
4607
|
+
class={clsx(
|
|
4608
|
+
u`
|
|
4609
|
+
color: ${tokens.colors.gray[300]};
|
|
4610
|
+
`,
|
|
4611
|
+
"tsqd-query-details-actions-btn",
|
|
4612
|
+
"tsqd-query-details-action-reset"
|
|
4613
|
+
)}
|
|
5774
4614
|
onClick={() => queryClient.resetQueries(activeQuery())}
|
|
5775
4615
|
disabled={queryStatus() === "pending"}
|
|
5776
4616
|
>
|
|
5777
4617
|
<span
|
|
5778
|
-
class={
|
|
4618
|
+
class={u`
|
|
5779
4619
|
background-color: ${tokens.colors.gray[400]};
|
|
5780
4620
|
`}
|
|
5781
4621
|
/>
|
|
5782
4622
|
{"Reset"}
|
|
5783
4623
|
</button>
|
|
5784
4624
|
<button
|
|
5785
|
-
class={
|
|
5786
|
-
|
|
5787
|
-
|
|
4625
|
+
class={clsx(
|
|
4626
|
+
u`
|
|
4627
|
+
color: ${tokens.colors.pink[400]};
|
|
4628
|
+
`,
|
|
4629
|
+
"tsqd-query-details-actions-btn",
|
|
4630
|
+
"tsqd-query-details-action-remove"
|
|
4631
|
+
)}
|
|
4632
|
+
onClick={() => {
|
|
4633
|
+
queryClient.removeQueries(activeQuery());
|
|
4634
|
+
setSelectedQueryHash(null);
|
|
4635
|
+
}}
|
|
4636
|
+
disabled={statusLabel() === "fetching"}
|
|
4637
|
+
>
|
|
4638
|
+
<span
|
|
4639
|
+
class={u`
|
|
4640
|
+
background-color: ${tokens.colors.pink[400]};
|
|
4641
|
+
`}
|
|
4642
|
+
/>
|
|
4643
|
+
{"Remove"}
|
|
4644
|
+
</button>
|
|
4645
|
+
<button
|
|
4646
|
+
class={clsx(
|
|
4647
|
+
u`
|
|
4648
|
+
color: ${tokens.colors.cyan[400]};
|
|
4649
|
+
`,
|
|
4650
|
+
"tsqd-query-details-actions-btn",
|
|
4651
|
+
"tsqd-query-details-action-loading"
|
|
4652
|
+
)}
|
|
5788
4653
|
disabled={restoringLoading()}
|
|
5789
4654
|
onClick={() => {
|
|
5790
4655
|
if (activeQuery()?.state.data === void 0) {
|
|
@@ -5816,7 +4681,7 @@ var QueryDetails = () => {
|
|
|
5816
4681
|
}}
|
|
5817
4682
|
>
|
|
5818
4683
|
<span
|
|
5819
|
-
class={
|
|
4684
|
+
class={u`
|
|
5820
4685
|
background-color: ${tokens.colors.cyan[400]};
|
|
5821
4686
|
`}
|
|
5822
4687
|
/>
|
|
@@ -5824,9 +4689,13 @@ var QueryDetails = () => {
|
|
|
5824
4689
|
{" Loading"}
|
|
5825
4690
|
</button>
|
|
5826
4691
|
<Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
|
|
5827
|
-
class={
|
|
5828
|
-
|
|
5829
|
-
|
|
4692
|
+
class={clsx(
|
|
4693
|
+
u`
|
|
4694
|
+
color: ${tokens.colors.red[400]};
|
|
4695
|
+
`,
|
|
4696
|
+
"tsqd-query-details-actions-btn",
|
|
4697
|
+
"tsqd-query-details-action-error"
|
|
4698
|
+
)}
|
|
5830
4699
|
onClick={() => {
|
|
5831
4700
|
if (!activeQuery().state.error) {
|
|
5832
4701
|
triggerError();
|
|
@@ -5837,7 +4706,7 @@ var QueryDetails = () => {
|
|
|
5837
4706
|
disabled={queryStatus() === "pending"}
|
|
5838
4707
|
>
|
|
5839
4708
|
<span
|
|
5840
|
-
class={
|
|
4709
|
+
class={u`
|
|
5841
4710
|
background-color: ${tokens.colors.red[400]};
|
|
5842
4711
|
`}
|
|
5843
4712
|
/>
|
|
@@ -5846,18 +4715,24 @@ var QueryDetails = () => {
|
|
|
5846
4715
|
</button></Show>
|
|
5847
4716
|
<Show
|
|
5848
4717
|
when={!(errorTypes().length === 0 || queryStatus() === "error")}
|
|
5849
|
-
><div
|
|
4718
|
+
><div
|
|
4719
|
+
class={clsx(
|
|
4720
|
+
styles.actionsSelect,
|
|
4721
|
+
"tsqd-query-details-actions-btn",
|
|
4722
|
+
"tsqd-query-details-action-error-multiple"
|
|
4723
|
+
)}
|
|
4724
|
+
>
|
|
5850
4725
|
<span
|
|
5851
|
-
class={
|
|
4726
|
+
class={u`
|
|
5852
4727
|
background-color: ${tokens.colors.red[400]};
|
|
5853
4728
|
`}
|
|
5854
4729
|
/>
|
|
5855
4730
|
{"Trigger Error"}
|
|
5856
4731
|
<select
|
|
5857
4732
|
disabled={queryStatus() === "pending"}
|
|
5858
|
-
onChange={(
|
|
4733
|
+
onChange={(e2) => {
|
|
5859
4734
|
const errorType = errorTypes().find(
|
|
5860
|
-
(
|
|
4735
|
+
(t2) => t2.name === e2.currentTarget.value
|
|
5861
4736
|
);
|
|
5862
4737
|
triggerError(errorType);
|
|
5863
4738
|
}}
|
|
@@ -5868,22 +4743,24 @@ var QueryDetails = () => {
|
|
|
5868
4743
|
<ChevronDown />
|
|
5869
4744
|
</div></Show>
|
|
5870
4745
|
</div>
|
|
5871
|
-
<div class={styles.detailsHeader}>Data Explorer</div>
|
|
4746
|
+
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
5872
4747
|
<div
|
|
5873
4748
|
style={{
|
|
5874
4749
|
padding: "0.5rem"
|
|
5875
4750
|
}}
|
|
4751
|
+
class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
|
|
5876
4752
|
><Explorer
|
|
5877
4753
|
label="Data"
|
|
5878
4754
|
defaultExpanded={["Data"]}
|
|
5879
4755
|
value={activeQueryStateData()}
|
|
5880
4756
|
copyable={true}
|
|
5881
4757
|
/></div>
|
|
5882
|
-
<div class={styles.detailsHeader}>Query Explorer</div>
|
|
4758
|
+
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
|
|
5883
4759
|
<div
|
|
5884
4760
|
style={{
|
|
5885
4761
|
padding: "0.5rem"
|
|
5886
4762
|
}}
|
|
4763
|
+
class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
|
|
5887
4764
|
><Explorer
|
|
5888
4765
|
label="Query"
|
|
5889
4766
|
defaultExpanded={["Query", "queryKey"]}
|
|
@@ -5931,10 +4808,11 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
5931
4808
|
var getStyles2 = () => {
|
|
5932
4809
|
const { colors, font, size, alpha, shadow, border } = tokens;
|
|
5933
4810
|
return {
|
|
5934
|
-
devtoolsBtn:
|
|
4811
|
+
devtoolsBtn: u`
|
|
5935
4812
|
z-index: 100000;
|
|
5936
4813
|
position: fixed;
|
|
5937
4814
|
padding: 4px;
|
|
4815
|
+
text-align: left;
|
|
5938
4816
|
|
|
5939
4817
|
display: flex;
|
|
5940
4818
|
align-items: center;
|
|
@@ -5984,7 +4862,7 @@ var getStyles2 = () => {
|
|
|
5984
4862
|
}
|
|
5985
4863
|
}
|
|
5986
4864
|
`,
|
|
5987
|
-
panel:
|
|
4865
|
+
panel: u`
|
|
5988
4866
|
position: fixed;
|
|
5989
4867
|
z-index: 9999;
|
|
5990
4868
|
display: flex;
|
|
@@ -5996,23 +4874,23 @@ var getStyles2 = () => {
|
|
|
5996
4874
|
text-transform: none;
|
|
5997
4875
|
}
|
|
5998
4876
|
`,
|
|
5999
|
-
"devtoolsBtn-position-bottom-right":
|
|
4877
|
+
"devtoolsBtn-position-bottom-right": u`
|
|
6000
4878
|
bottom: 12px;
|
|
6001
4879
|
right: 12px;
|
|
6002
4880
|
`,
|
|
6003
|
-
"devtoolsBtn-position-bottom-left":
|
|
4881
|
+
"devtoolsBtn-position-bottom-left": u`
|
|
6004
4882
|
bottom: 12px;
|
|
6005
4883
|
left: 12px;
|
|
6006
4884
|
`,
|
|
6007
|
-
"devtoolsBtn-position-top-left":
|
|
4885
|
+
"devtoolsBtn-position-top-left": u`
|
|
6008
4886
|
top: 12px;
|
|
6009
4887
|
left: 12px;
|
|
6010
4888
|
`,
|
|
6011
|
-
"devtoolsBtn-position-top-right":
|
|
4889
|
+
"devtoolsBtn-position-top-right": u`
|
|
6012
4890
|
top: 12px;
|
|
6013
4891
|
right: 12px;
|
|
6014
4892
|
`,
|
|
6015
|
-
"panel-position-top":
|
|
4893
|
+
"panel-position-top": u`
|
|
6016
4894
|
top: 0;
|
|
6017
4895
|
right: 0;
|
|
6018
4896
|
left: 0;
|
|
@@ -6020,7 +4898,7 @@ var getStyles2 = () => {
|
|
|
6020
4898
|
min-height: 3.5rem;
|
|
6021
4899
|
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
6022
4900
|
`,
|
|
6023
|
-
"panel-position-bottom":
|
|
4901
|
+
"panel-position-bottom": u`
|
|
6024
4902
|
bottom: 0;
|
|
6025
4903
|
right: 0;
|
|
6026
4904
|
left: 0;
|
|
@@ -6028,21 +4906,21 @@ var getStyles2 = () => {
|
|
|
6028
4906
|
min-height: 3.5rem;
|
|
6029
4907
|
border-top: ${colors.darkGray[300]} 1px solid;
|
|
6030
4908
|
`,
|
|
6031
|
-
"panel-position-right":
|
|
4909
|
+
"panel-position-right": u`
|
|
6032
4910
|
bottom: 0;
|
|
6033
4911
|
right: 0;
|
|
6034
4912
|
top: 0;
|
|
6035
4913
|
border-left: ${colors.darkGray[300]} 1px solid;
|
|
6036
4914
|
max-width: 90%;
|
|
6037
4915
|
`,
|
|
6038
|
-
"panel-position-left":
|
|
4916
|
+
"panel-position-left": u`
|
|
6039
4917
|
bottom: 0;
|
|
6040
4918
|
left: 0;
|
|
6041
4919
|
top: 0;
|
|
6042
4920
|
border-right: ${colors.darkGray[300]} 1px solid;
|
|
6043
4921
|
max-width: 90%;
|
|
6044
4922
|
`,
|
|
6045
|
-
closeBtn:
|
|
4923
|
+
closeBtn: u`
|
|
6046
4924
|
position: absolute;
|
|
6047
4925
|
cursor: pointer;
|
|
6048
4926
|
z-index: 5;
|
|
@@ -6057,7 +4935,7 @@ var getStyles2 = () => {
|
|
|
6057
4935
|
outline: 2px solid ${colors.blue[600]};
|
|
6058
4936
|
}
|
|
6059
4937
|
`,
|
|
6060
|
-
"closeBtn-position-top":
|
|
4938
|
+
"closeBtn-position-top": u`
|
|
6061
4939
|
bottom: 0;
|
|
6062
4940
|
right: ${size[3]};
|
|
6063
4941
|
transform: translate(0, 100%);
|
|
@@ -6082,7 +4960,7 @@ var getStyles2 = () => {
|
|
|
6082
4960
|
transform: rotate(180deg);
|
|
6083
4961
|
}
|
|
6084
4962
|
`,
|
|
6085
|
-
"closeBtn-position-bottom":
|
|
4963
|
+
"closeBtn-position-bottom": u`
|
|
6086
4964
|
top: 0;
|
|
6087
4965
|
right: ${size[3]};
|
|
6088
4966
|
transform: translate(0, -100%);
|
|
@@ -6103,7 +4981,7 @@ var getStyles2 = () => {
|
|
|
6103
4981
|
width: calc(100% + ${size[5]});
|
|
6104
4982
|
}
|
|
6105
4983
|
`,
|
|
6106
|
-
"closeBtn-position-right":
|
|
4984
|
+
"closeBtn-position-right": u`
|
|
6107
4985
|
bottom: ${size[3]};
|
|
6108
4986
|
left: 0;
|
|
6109
4987
|
transform: translate(-100%, 0);
|
|
@@ -6127,7 +5005,7 @@ var getStyles2 = () => {
|
|
|
6127
5005
|
transform: rotate(-90deg);
|
|
6128
5006
|
}
|
|
6129
5007
|
`,
|
|
6130
|
-
"closeBtn-position-left":
|
|
5008
|
+
"closeBtn-position-left": u`
|
|
6131
5009
|
bottom: ${size[3]};
|
|
6132
5010
|
right: 0;
|
|
6133
5011
|
transform: translate(100%, 0);
|
|
@@ -6151,13 +5029,13 @@ var getStyles2 = () => {
|
|
|
6151
5029
|
transform: rotate(90deg);
|
|
6152
5030
|
}
|
|
6153
5031
|
`,
|
|
6154
|
-
queriesContainer:
|
|
5032
|
+
queriesContainer: u`
|
|
6155
5033
|
flex: 1 1 700px;
|
|
6156
5034
|
background-color: ${colors.darkGray[700]};
|
|
6157
5035
|
display: flex;
|
|
6158
5036
|
flex-direction: column;
|
|
6159
5037
|
`,
|
|
6160
|
-
dragHandle:
|
|
5038
|
+
dragHandle: u`
|
|
6161
5039
|
position: absolute;
|
|
6162
5040
|
transition: background-color 0.125s ease;
|
|
6163
5041
|
&:hover {
|
|
@@ -6165,31 +5043,31 @@ var getStyles2 = () => {
|
|
|
6165
5043
|
}
|
|
6166
5044
|
z-index: 4;
|
|
6167
5045
|
`,
|
|
6168
|
-
"dragHandle-position-top":
|
|
5046
|
+
"dragHandle-position-top": u`
|
|
6169
5047
|
bottom: 0;
|
|
6170
5048
|
width: 100%;
|
|
6171
5049
|
height: ${tokens.size[1]};
|
|
6172
5050
|
cursor: ns-resize;
|
|
6173
5051
|
`,
|
|
6174
|
-
"dragHandle-position-bottom":
|
|
5052
|
+
"dragHandle-position-bottom": u`
|
|
6175
5053
|
top: 0;
|
|
6176
5054
|
width: 100%;
|
|
6177
5055
|
height: ${tokens.size[1]};
|
|
6178
5056
|
cursor: ns-resize;
|
|
6179
5057
|
`,
|
|
6180
|
-
"dragHandle-position-right":
|
|
5058
|
+
"dragHandle-position-right": u`
|
|
6181
5059
|
left: 0;
|
|
6182
5060
|
width: ${tokens.size[1]};
|
|
6183
5061
|
height: 100%;
|
|
6184
5062
|
cursor: ew-resize;
|
|
6185
5063
|
`,
|
|
6186
|
-
"dragHandle-position-left":
|
|
5064
|
+
"dragHandle-position-left": u`
|
|
6187
5065
|
right: 0;
|
|
6188
5066
|
width: ${tokens.size[1]};
|
|
6189
5067
|
height: 100%;
|
|
6190
5068
|
cursor: ew-resize;
|
|
6191
5069
|
`,
|
|
6192
|
-
row:
|
|
5070
|
+
row: u`
|
|
6193
5071
|
display: flex;
|
|
6194
5072
|
justify-content: space-between;
|
|
6195
5073
|
padding: ${tokens.size[2.5]} ${tokens.size[3]};
|
|
@@ -6204,7 +5082,7 @@ var getStyles2 = () => {
|
|
|
6204
5082
|
flex-direction: column;
|
|
6205
5083
|
}
|
|
6206
5084
|
`,
|
|
6207
|
-
logo:
|
|
5085
|
+
logo: u`
|
|
6208
5086
|
cursor: pointer;
|
|
6209
5087
|
&:hover {
|
|
6210
5088
|
opacity: 0.7;
|
|
@@ -6215,27 +5093,28 @@ var getStyles2 = () => {
|
|
|
6215
5093
|
outline: 2px solid ${colors.blue[800]};
|
|
6216
5094
|
}
|
|
6217
5095
|
`,
|
|
6218
|
-
tanstackLogo:
|
|
5096
|
+
tanstackLogo: u`
|
|
6219
5097
|
font-size: ${font.size.lg};
|
|
6220
5098
|
font-weight: ${font.weight.extrabold};
|
|
6221
5099
|
line-height: ${font.lineHeight.sm};
|
|
6222
5100
|
white-space: nowrap;
|
|
6223
5101
|
`,
|
|
6224
|
-
queryFlavorLogo:
|
|
5102
|
+
queryFlavorLogo: u`
|
|
6225
5103
|
font-weight: ${font.weight.semibold};
|
|
6226
5104
|
font-size: ${font.size.sm};
|
|
6227
5105
|
background: linear-gradient(to right, #dd524b, #e9a03b);
|
|
6228
5106
|
background-clip: text;
|
|
5107
|
+
-webkit-background-clip: text;
|
|
6229
5108
|
line-height: ${font.lineHeight.xs};
|
|
6230
5109
|
-webkit-text-fill-color: transparent;
|
|
6231
5110
|
white-space: nowrap;
|
|
6232
5111
|
`,
|
|
6233
|
-
queryStatusContainer:
|
|
5112
|
+
queryStatusContainer: u`
|
|
6234
5113
|
display: flex;
|
|
6235
5114
|
gap: ${tokens.size[2]};
|
|
6236
5115
|
height: min-content;
|
|
6237
5116
|
`,
|
|
6238
|
-
queryStatusTag:
|
|
5117
|
+
queryStatusTag: u`
|
|
6239
5118
|
display: flex;
|
|
6240
5119
|
gap: ${tokens.size[1.5]};
|
|
6241
5120
|
background: ${colors.darkGray[500]};
|
|
@@ -6253,11 +5132,8 @@ var getStyles2 = () => {
|
|
|
6253
5132
|
outline-offset: 2px;
|
|
6254
5133
|
outline: 2px solid ${colors.blue[800]};
|
|
6255
5134
|
}
|
|
6256
|
-
& span:nth-child(2) {
|
|
6257
|
-
color: ${colors.gray[300]}${alpha[80]};
|
|
6258
|
-
}
|
|
6259
5135
|
`,
|
|
6260
|
-
statusTooltip:
|
|
5136
|
+
statusTooltip: u`
|
|
6261
5137
|
position: absolute;
|
|
6262
5138
|
z-index: 1;
|
|
6263
5139
|
background-color: ${colors.darkGray[500]};
|
|
@@ -6296,10 +5172,10 @@ var getStyles2 = () => {
|
|
|
6296
5172
|
border-width: 7px;
|
|
6297
5173
|
}
|
|
6298
5174
|
`,
|
|
6299
|
-
selectedQueryRow:
|
|
5175
|
+
selectedQueryRow: u`
|
|
6300
5176
|
background-color: ${colors.darkGray[500]};
|
|
6301
5177
|
`,
|
|
6302
|
-
queryStatusCount:
|
|
5178
|
+
queryStatusCount: u`
|
|
6303
5179
|
padding: 0 8px;
|
|
6304
5180
|
display: flex;
|
|
6305
5181
|
align-items: center;
|
|
@@ -6309,7 +5185,7 @@ var getStyles2 = () => {
|
|
|
6309
5185
|
border-radius: 3px;
|
|
6310
5186
|
font-variant-numeric: tabular-nums;
|
|
6311
5187
|
`,
|
|
6312
|
-
filtersContainer:
|
|
5188
|
+
filtersContainer: u`
|
|
6313
5189
|
display: flex;
|
|
6314
5190
|
gap: ${tokens.size[2.5]};
|
|
6315
5191
|
& > button {
|
|
@@ -6332,7 +5208,7 @@ var getStyles2 = () => {
|
|
|
6332
5208
|
}
|
|
6333
5209
|
}
|
|
6334
5210
|
`,
|
|
6335
|
-
filterInput:
|
|
5211
|
+
filterInput: u`
|
|
6336
5212
|
padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
|
|
6337
5213
|
border-radius: ${tokens.border.radius.md};
|
|
6338
5214
|
background-color: ${colors.darkGray[400]};
|
|
@@ -6370,7 +5246,7 @@ var getStyles2 = () => {
|
|
|
6370
5246
|
outline: 2px solid ${colors.blue[800]};
|
|
6371
5247
|
}
|
|
6372
5248
|
`,
|
|
6373
|
-
filterSelect:
|
|
5249
|
+
filterSelect: u`
|
|
6374
5250
|
padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
|
|
6375
5251
|
border-radius: ${tokens.border.radius.md};
|
|
6376
5252
|
background-color: ${colors.darkGray[400]};
|
|
@@ -6402,15 +5278,15 @@ var getStyles2 = () => {
|
|
|
6402
5278
|
outline: 2px solid ${colors.blue[800]};
|
|
6403
5279
|
}
|
|
6404
5280
|
`,
|
|
6405
|
-
actionsContainer:
|
|
5281
|
+
actionsContainer: u`
|
|
6406
5282
|
display: flex;
|
|
6407
5283
|
gap: ${tokens.size[2.5]};
|
|
6408
5284
|
`,
|
|
6409
|
-
actionsBtn:
|
|
5285
|
+
actionsBtn: u`
|
|
6410
5286
|
border-radius: ${tokens.border.radius.md};
|
|
6411
5287
|
background-color: ${colors.darkGray[400]};
|
|
6412
|
-
width: 2.125rem;
|
|
6413
|
-
height: 2.125rem;
|
|
5288
|
+
width: 2.125rem;
|
|
5289
|
+
height: 2.125rem;
|
|
6414
5290
|
justify-content: center;
|
|
6415
5291
|
display: flex;
|
|
6416
5292
|
align-items: center;
|
|
@@ -6432,7 +5308,7 @@ var getStyles2 = () => {
|
|
|
6432
5308
|
outline: 2px solid ${colors.blue[800]};
|
|
6433
5309
|
}
|
|
6434
5310
|
`,
|
|
6435
|
-
overflowQueryContainer:
|
|
5311
|
+
overflowQueryContainer: u`
|
|
6436
5312
|
flex: 1;
|
|
6437
5313
|
overflow-y: auto;
|
|
6438
5314
|
& > div {
|
|
@@ -6440,27 +5316,30 @@ var getStyles2 = () => {
|
|
|
6440
5316
|
flex-direction: column;
|
|
6441
5317
|
}
|
|
6442
5318
|
`,
|
|
6443
|
-
queryRow:
|
|
5319
|
+
queryRow: u`
|
|
6444
5320
|
display: flex;
|
|
6445
5321
|
align-items: center;
|
|
6446
5322
|
padding: 0;
|
|
6447
5323
|
background-color: inherit;
|
|
6448
5324
|
border: none;
|
|
6449
5325
|
cursor: pointer;
|
|
5326
|
+
&:focus {
|
|
5327
|
+
outline: none;
|
|
5328
|
+
}
|
|
6450
5329
|
&:focus-visible {
|
|
6451
5330
|
outline-offset: -2px;
|
|
6452
5331
|
border-radius: ${border.radius.xs};
|
|
6453
5332
|
outline: 2px solid ${colors.blue[800]};
|
|
6454
5333
|
}
|
|
6455
|
-
&:hover .
|
|
5334
|
+
&:hover .tsqd-query-hash {
|
|
6456
5335
|
background-color: ${colors.darkGray[600]};
|
|
6457
5336
|
}
|
|
6458
5337
|
|
|
6459
|
-
& .
|
|
5338
|
+
& .tsqd-query-observer-count {
|
|
6460
5339
|
padding: 0 ${tokens.size[1]};
|
|
6461
5340
|
user-select: none;
|
|
6462
5341
|
min-width: ${tokens.size[8]};
|
|
6463
|
-
align-self: stretch
|
|
5342
|
+
align-self: stretch;
|
|
6464
5343
|
display: flex;
|
|
6465
5344
|
align-items: center;
|
|
6466
5345
|
justify-content: center;
|
|
@@ -6468,7 +5347,7 @@ var getStyles2 = () => {
|
|
|
6468
5347
|
font-weight: ${font.weight.medium};
|
|
6469
5348
|
border-bottom: 1px solid ${colors.darkGray[700]};
|
|
6470
5349
|
}
|
|
6471
|
-
& .
|
|
5350
|
+
& .tsqd-query-hash {
|
|
6472
5351
|
user-select: text;
|
|
6473
5352
|
font-size: ${font.size.sm};
|
|
6474
5353
|
display: flex;
|
|
@@ -6476,16 +5355,15 @@ var getStyles2 = () => {
|
|
|
6476
5355
|
min-height: ${tokens.size[8]};
|
|
6477
5356
|
flex: 1;
|
|
6478
5357
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
6479
|
-
font-family: 'Menlo', 'Fira Code', monospace
|
|
5358
|
+
font-family: 'Menlo', 'Fira Code', monospace;
|
|
6480
5359
|
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
6481
5360
|
text-align: left;
|
|
6482
5361
|
text-overflow: clip;
|
|
6483
5362
|
word-break: break-word;
|
|
6484
5363
|
}
|
|
6485
5364
|
|
|
6486
|
-
& .
|
|
5365
|
+
& .tsqd-query-disabled-indicator {
|
|
6487
5366
|
align-self: stretch;
|
|
6488
|
-
align-self: stretch !important;
|
|
6489
5367
|
display: flex;
|
|
6490
5368
|
align-items: center;
|
|
6491
5369
|
padding: 0 ${tokens.size[3]};
|
|
@@ -6495,15 +5373,16 @@ var getStyles2 = () => {
|
|
|
6495
5373
|
font-size: ${font.size.sm};
|
|
6496
5374
|
}
|
|
6497
5375
|
`,
|
|
6498
|
-
detailsContainer:
|
|
5376
|
+
detailsContainer: u`
|
|
6499
5377
|
flex: 1 1 700px;
|
|
6500
5378
|
background-color: ${colors.darkGray[700]};
|
|
6501
5379
|
display: flex;
|
|
6502
5380
|
flex-direction: column;
|
|
6503
5381
|
overflow-y: auto;
|
|
6504
5382
|
display: flex;
|
|
5383
|
+
text-align: left;
|
|
6505
5384
|
`,
|
|
6506
|
-
detailsHeader:
|
|
5385
|
+
detailsHeader: u`
|
|
6507
5386
|
position: sticky;
|
|
6508
5387
|
top: 0;
|
|
6509
5388
|
z-index: 2;
|
|
@@ -6511,8 +5390,9 @@ var getStyles2 = () => {
|
|
|
6511
5390
|
padding: ${tokens.size[2]} ${tokens.size[2]};
|
|
6512
5391
|
font-weight: ${font.weight.medium};
|
|
6513
5392
|
font-size: ${font.size.sm};
|
|
5393
|
+
text-align: left;
|
|
6514
5394
|
`,
|
|
6515
|
-
detailsBody:
|
|
5395
|
+
detailsBody: u`
|
|
6516
5396
|
margin: ${tokens.size[2]} 0px ${tokens.size[3]} 0px;
|
|
6517
5397
|
& > div {
|
|
6518
5398
|
display: flex;
|
|
@@ -6533,19 +5413,19 @@ var getStyles2 = () => {
|
|
|
6533
5413
|
}
|
|
6534
5414
|
|
|
6535
5415
|
& code {
|
|
6536
|
-
font-family: 'Menlo', 'Fira Code', monospace
|
|
5416
|
+
font-family: 'Menlo', 'Fira Code', monospace;
|
|
6537
5417
|
margin: 0;
|
|
6538
5418
|
font-size: ${font.size.sm};
|
|
6539
5419
|
line-height: ${font.lineHeight.sm};
|
|
6540
5420
|
}
|
|
6541
5421
|
`,
|
|
6542
|
-
queryDetailsStatus:
|
|
5422
|
+
queryDetailsStatus: u`
|
|
6543
5423
|
border: 1px solid ${colors.darkGray[200]};
|
|
6544
5424
|
border-radius: ${tokens.border.radius.md};
|
|
6545
5425
|
font-weight: ${font.weight.medium};
|
|
6546
5426
|
padding: ${tokens.size[1]} ${tokens.size[2.5]};
|
|
6547
5427
|
`,
|
|
6548
|
-
actionsBody:
|
|
5428
|
+
actionsBody: u`
|
|
6549
5429
|
flex-wrap: wrap;
|
|
6550
5430
|
margin: ${tokens.size[3]} 0px ${tokens.size[3]} 0px;
|
|
6551
5431
|
display: flex;
|
|
@@ -6584,7 +5464,7 @@ var getStyles2 = () => {
|
|
|
6584
5464
|
}
|
|
6585
5465
|
}
|
|
6586
5466
|
`,
|
|
6587
|
-
actionsSelect:
|
|
5467
|
+
actionsSelect: u`
|
|
6588
5468
|
font-size: ${font.size.sm};
|
|
6589
5469
|
padding: ${tokens.size[2]} ${tokens.size[2]};
|
|
6590
5470
|
display: flex;
|
|
@@ -6626,10 +5506,10 @@ var getStyles2 = () => {
|
|
|
6626
5506
|
}
|
|
6627
5507
|
|
|
6628
5508
|
& svg path {
|
|
6629
|
-
stroke: ${tokens.colors.red[400]}
|
|
5509
|
+
stroke: ${tokens.colors.red[400]};
|
|
6630
5510
|
}
|
|
6631
5511
|
`,
|
|
6632
|
-
settingsMenu:
|
|
5512
|
+
settingsMenu: u`
|
|
6633
5513
|
position: absolute;
|
|
6634
5514
|
top: calc(100% + ${tokens.size[2]});
|
|
6635
5515
|
border-radius: ${tokens.border.radius.lg};
|
|
@@ -6641,12 +5521,12 @@ var getStyles2 = () => {
|
|
|
6641
5521
|
color: ${colors.gray[500]};
|
|
6642
5522
|
z-index: 7;
|
|
6643
5523
|
`,
|
|
6644
|
-
settingsMenuHeader:
|
|
5524
|
+
settingsMenuHeader: u`
|
|
6645
5525
|
padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
|
|
6646
5526
|
color: ${colors.gray[300]};
|
|
6647
5527
|
font-weight: ${font.weight.medium};
|
|
6648
5528
|
`,
|
|
6649
|
-
settingsMenuSection:
|
|
5529
|
+
settingsMenuSection: u`
|
|
6650
5530
|
border-top: 1px solid ${colors.gray[600]};
|
|
6651
5531
|
display: flex;
|
|
6652
5532
|
flex-direction: column;
|