@wexio/messenger-widget-react 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{widget-react-Dx1wNPEj2.js → widget-react-BM-kpFSq2.js} +4 -4
- package/dist/{widget-react-CXWfdJcE.js → widget-react-Chf-xoIT.js} +854 -855
- package/dist/{widget-react-k8bWxrAb2.js → widget-react-CiS8hW6r2.js} +4 -4
- package/dist/{widget-react-tf213AGn.js → widget-react-Cs9iXvYx.js} +2 -2
- package/dist/{widget-react-CApFAean.js → widget-react-DZJiLBUu.js} +2 -2
- package/dist/{widget-react-FRbAvEjJ.js → widget-react-vsD5e1Dv.js} +2 -2
- package/dist/widget-react.js +4 -4
- package/package.json +1 -1
|
@@ -575,69 +575,69 @@ function Ke(e) {
|
|
|
575
575
|
let t = e?.kind;
|
|
576
576
|
return typeof t == "string" && Ge.has(t);
|
|
577
577
|
}
|
|
578
|
-
var
|
|
578
|
+
var qe;
|
|
579
579
|
(function(e) {
|
|
580
580
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
581
|
-
})(
|
|
581
|
+
})(qe || (qe = {}));
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region node_modules/graphql/language/directiveLocation.mjs
|
|
584
|
-
var
|
|
584
|
+
var Je;
|
|
585
585
|
(function(e) {
|
|
586
586
|
e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION", e.DIRECTIVE_DEFINITION = "DIRECTIVE_DEFINITION";
|
|
587
|
-
})(
|
|
587
|
+
})(Je || (Je = {}));
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region node_modules/graphql/language/kinds.mjs
|
|
590
|
-
var
|
|
590
|
+
var M;
|
|
591
591
|
(function(e) {
|
|
592
592
|
e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.DIRECTIVE_EXTENSION = "DirectiveExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension", e.TYPE_COORDINATE = "TypeCoordinate", e.MEMBER_COORDINATE = "MemberCoordinate", e.ARGUMENT_COORDINATE = "ArgumentCoordinate", e.DIRECTIVE_COORDINATE = "DirectiveCoordinate", e.DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
|
|
593
|
-
})(
|
|
593
|
+
})(M || (M = {}));
|
|
594
594
|
//#endregion
|
|
595
595
|
//#region node_modules/graphql/language/characterClasses.mjs
|
|
596
|
-
function Je(e) {
|
|
597
|
-
return e === 9 || e === 32;
|
|
598
|
-
}
|
|
599
596
|
function Ye(e) {
|
|
600
|
-
return e
|
|
597
|
+
return e === 9 || e === 32;
|
|
601
598
|
}
|
|
602
599
|
function Xe(e) {
|
|
603
|
-
return e >=
|
|
600
|
+
return e >= 48 && e <= 57;
|
|
604
601
|
}
|
|
605
602
|
function Ze(e) {
|
|
606
|
-
return
|
|
603
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
607
604
|
}
|
|
608
605
|
function Qe(e) {
|
|
609
|
-
return
|
|
606
|
+
return Ze(e) || e === 95;
|
|
607
|
+
}
|
|
608
|
+
function $e(e) {
|
|
609
|
+
return Ze(e) || Xe(e) || e === 95;
|
|
610
610
|
}
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region node_modules/graphql/language/blockString.mjs
|
|
613
|
-
function
|
|
613
|
+
function et(e) {
|
|
614
614
|
let t = 2 ** 53 - 1, n = null, r = -1;
|
|
615
615
|
for (let i = 0; i < e.length; ++i) {
|
|
616
|
-
let a = e[i], o =
|
|
616
|
+
let a = e[i], o = tt(a);
|
|
617
617
|
o !== a.length && (n = n ?? i, r = i, i !== 0 && o < t && (t = o));
|
|
618
618
|
}
|
|
619
619
|
return e.map((e, n) => n === 0 ? e : e.slice(t)).slice(n ?? 0, r + 1);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function tt(e) {
|
|
622
622
|
let t = 0;
|
|
623
|
-
for (; t < e.length &&
|
|
623
|
+
for (; t < e.length && Ye(e.charCodeAt(t));) ++t;
|
|
624
624
|
return t;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
let n = e.replace(/"""/g, "\\\"\"\""), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, a = r.length > 1 && r.slice(1).every((e) => e.length === 0 ||
|
|
626
|
+
function nt(e, t) {
|
|
627
|
+
let n = e.replace(/"""/g, "\\\"\"\""), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, a = r.length > 1 && r.slice(1).every((e) => e.length === 0 || Ye(e.charCodeAt(0))), o = n.endsWith("\\\"\"\""), s = e.endsWith("\"") && !o, c = e.endsWith("\\"), l = s || c, u = !(t != null && t.minimize) && (!i || e.length > 70 || l || a || o), d = "", f = i && Ye(e.charCodeAt(0));
|
|
628
628
|
return (u && !f || a) && (d += "\n"), d += n, (u || l) && (d += "\n"), "\"\"\"" + d + "\"\"\"";
|
|
629
629
|
}
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region node_modules/graphql/language/tokenKind.mjs
|
|
632
|
-
var
|
|
632
|
+
var N;
|
|
633
633
|
(function(e) {
|
|
634
634
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
635
|
-
})(
|
|
635
|
+
})(N || (N = {}));
|
|
636
636
|
//#endregion
|
|
637
637
|
//#region node_modules/graphql/language/lexer.mjs
|
|
638
|
-
var
|
|
638
|
+
var rt = class {
|
|
639
639
|
constructor(e) {
|
|
640
|
-
let t = new Ue(
|
|
640
|
+
let t = new Ue(N.SOF, 0, 0, 0, 0);
|
|
641
641
|
this.source = e, this.lastToken = t, this.token = t, this.line = 1, this.lineStart = 0;
|
|
642
642
|
}
|
|
643
643
|
get [Symbol.toStringTag]() {
|
|
@@ -648,45 +648,45 @@ var nt = class {
|
|
|
648
648
|
}
|
|
649
649
|
lookahead() {
|
|
650
650
|
let e = this.token;
|
|
651
|
-
if (e.kind !==
|
|
651
|
+
if (e.kind !== N.EOF) do
|
|
652
652
|
if (e.next) e = e.next;
|
|
653
653
|
else {
|
|
654
|
-
let t =
|
|
654
|
+
let t = lt(this, e.end);
|
|
655
655
|
e.next = t, t.prev = e, e = t;
|
|
656
656
|
}
|
|
657
|
-
while (e.kind ===
|
|
657
|
+
while (e.kind === N.COMMENT);
|
|
658
658
|
return e;
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
function rt(e) {
|
|
662
|
-
return e === P.BANG || e === P.DOLLAR || e === P.AMP || e === P.PAREN_L || e === P.PAREN_R || e === P.DOT || e === P.SPREAD || e === P.COLON || e === P.EQUALS || e === P.AT || e === P.BRACKET_L || e === P.BRACKET_R || e === P.BRACE_L || e === P.PIPE || e === P.BRACE_R;
|
|
663
|
-
}
|
|
664
661
|
function it(e) {
|
|
662
|
+
return e === N.BANG || e === N.DOLLAR || e === N.AMP || e === N.PAREN_L || e === N.PAREN_R || e === N.DOT || e === N.SPREAD || e === N.COLON || e === N.EQUALS || e === N.AT || e === N.BRACKET_L || e === N.BRACKET_R || e === N.BRACE_L || e === N.PIPE || e === N.BRACE_R;
|
|
663
|
+
}
|
|
664
|
+
function at(e) {
|
|
665
665
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function ot(e, t) {
|
|
668
|
+
return st(e.charCodeAt(t)) && ct(e.charCodeAt(t + 1));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function st(e) {
|
|
671
671
|
return e >= 55296 && e <= 56319;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ct(e) {
|
|
674
674
|
return e >= 56320 && e <= 57343;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function P(e, t) {
|
|
677
677
|
let n = e.source.body.codePointAt(t);
|
|
678
|
-
if (n === void 0) return
|
|
678
|
+
if (n === void 0) return N.EOF;
|
|
679
679
|
if (n >= 32 && n <= 126) {
|
|
680
680
|
let e = String.fromCodePoint(n);
|
|
681
681
|
return e === "\"" ? "'\"'" : `"${e}"`;
|
|
682
682
|
}
|
|
683
683
|
return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function F(e, t, n, r, i) {
|
|
686
686
|
let a = e.line;
|
|
687
687
|
return new Ue(t, n, r, a, 1 + n - e.lineStart, i);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function lt(e, t) {
|
|
690
690
|
let n = e.source.body, r = n.length, i = t;
|
|
691
691
|
for (; i < r;) {
|
|
692
692
|
let t = n.charCodeAt(i);
|
|
@@ -703,111 +703,111 @@ function ct(e, t) {
|
|
|
703
703
|
case 13:
|
|
704
704
|
n.charCodeAt(i + 1) === 10 ? i += 2 : ++i, ++e.line, e.lineStart = i;
|
|
705
705
|
continue;
|
|
706
|
-
case 35: return
|
|
707
|
-
case 33: return
|
|
708
|
-
case 36: return
|
|
709
|
-
case 38: return
|
|
710
|
-
case 40: return
|
|
711
|
-
case 41: return
|
|
706
|
+
case 35: return ut(e, i);
|
|
707
|
+
case 33: return F(e, N.BANG, i, i + 1);
|
|
708
|
+
case 36: return F(e, N.DOLLAR, i, i + 1);
|
|
709
|
+
case 38: return F(e, N.AMP, i, i + 1);
|
|
710
|
+
case 40: return F(e, N.PAREN_L, i, i + 1);
|
|
711
|
+
case 41: return F(e, N.PAREN_R, i, i + 1);
|
|
712
712
|
case 46:
|
|
713
|
-
if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46) return
|
|
713
|
+
if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46) return F(e, N.SPREAD, i, i + 3);
|
|
714
714
|
break;
|
|
715
|
-
case 58: return
|
|
716
|
-
case 61: return
|
|
717
|
-
case 64: return
|
|
718
|
-
case 91: return
|
|
719
|
-
case 93: return
|
|
720
|
-
case 123: return
|
|
721
|
-
case 124: return
|
|
722
|
-
case 125: return
|
|
723
|
-
case 34: return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
715
|
+
case 58: return F(e, N.COLON, i, i + 1);
|
|
716
|
+
case 61: return F(e, N.EQUALS, i, i + 1);
|
|
717
|
+
case 64: return F(e, N.AT, i, i + 1);
|
|
718
|
+
case 91: return F(e, N.BRACKET_L, i, i + 1);
|
|
719
|
+
case 93: return F(e, N.BRACKET_R, i, i + 1);
|
|
720
|
+
case 123: return F(e, N.BRACE_L, i, i + 1);
|
|
721
|
+
case 124: return F(e, N.PIPE, i, i + 1);
|
|
722
|
+
case 125: return F(e, N.BRACE_R, i, i + 1);
|
|
723
|
+
case 34: return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? yt(e, i) : pt(e, i);
|
|
724
724
|
}
|
|
725
|
-
if (
|
|
726
|
-
if (
|
|
727
|
-
throw j(e.source, i, t === 39 ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" :
|
|
725
|
+
if (Xe(t) || t === 45) return dt(e, i, t);
|
|
726
|
+
if (Qe(t)) return bt(e, i);
|
|
727
|
+
throw j(e.source, i, t === 39 ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" : at(t) || ot(n, i) ? `Unexpected character: ${P(e, i)}.` : `Invalid character: ${P(e, i)}.`);
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return F(e, N.EOF, r, r);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ut(e, t) {
|
|
732
732
|
let n = e.source.body, r = n.length, i = t + 1;
|
|
733
733
|
for (; i < r;) {
|
|
734
734
|
let e = n.charCodeAt(i);
|
|
735
735
|
if (e === 10 || e === 13) break;
|
|
736
|
-
if (
|
|
737
|
-
else if (
|
|
736
|
+
if (at(e)) ++i;
|
|
737
|
+
else if (ot(n, i)) i += 2;
|
|
738
738
|
else break;
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return F(e, N.COMMENT, t, i, n.slice(t + 1, i));
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function dt(e, t, n) {
|
|
743
743
|
let r = e.source.body, i = t, a = n, o = !1;
|
|
744
744
|
if (a === 45 && (a = r.charCodeAt(++i)), a === 48) {
|
|
745
|
-
if (a = r.charCodeAt(++i),
|
|
746
|
-
} else i =
|
|
747
|
-
if (a === 46 && (o = !0, a = r.charCodeAt(++i), i =
|
|
748
|
-
return
|
|
745
|
+
if (a = r.charCodeAt(++i), Xe(a)) throw j(e.source, i, `Invalid number, unexpected digit after 0: ${P(e, i)}.`);
|
|
746
|
+
} else i = ft(e, i, a), a = r.charCodeAt(i);
|
|
747
|
+
if (a === 46 && (o = !0, a = r.charCodeAt(++i), i = ft(e, i, a), a = r.charCodeAt(i)), (a === 69 || a === 101) && (o = !0, a = r.charCodeAt(++i), (a === 43 || a === 45) && (a = r.charCodeAt(++i)), i = ft(e, i, a), a = r.charCodeAt(i)), a === 46 || Qe(a)) throw j(e.source, i, `Invalid number, expected digit but got: ${P(e, i)}.`);
|
|
748
|
+
return F(e, o ? N.FLOAT : N.INT, t, i, r.slice(t, i));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
if (!
|
|
750
|
+
function ft(e, t, n) {
|
|
751
|
+
if (!Xe(n)) throw j(e.source, t, `Invalid number, expected digit but got: ${P(e, t)}.`);
|
|
752
752
|
let r = e.source.body, i = t + 1;
|
|
753
|
-
for (;
|
|
753
|
+
for (; Xe(r.charCodeAt(i));) ++i;
|
|
754
754
|
return i;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function pt(e, t) {
|
|
757
757
|
let n = e.source.body, r = n.length, i = t + 1, a = i, o = "";
|
|
758
758
|
for (; i < r;) {
|
|
759
759
|
let r = n.charCodeAt(i);
|
|
760
|
-
if (r === 34) return o += n.slice(a, i),
|
|
760
|
+
if (r === 34) return o += n.slice(a, i), F(e, N.STRING, t, i + 1, o);
|
|
761
761
|
if (r === 92) {
|
|
762
762
|
o += n.slice(a, i);
|
|
763
|
-
let t = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
763
|
+
let t = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? mt(e, i) : ht(e, i) : vt(e, i);
|
|
764
764
|
o += t.value, i += t.size, a = i;
|
|
765
765
|
continue;
|
|
766
766
|
}
|
|
767
767
|
if (r === 10 || r === 13) break;
|
|
768
|
-
if (
|
|
769
|
-
else if (
|
|
770
|
-
else throw j(e.source, i, `Invalid character within String: ${
|
|
768
|
+
if (at(r)) ++i;
|
|
769
|
+
else if (ot(n, i)) i += 2;
|
|
770
|
+
else throw j(e.source, i, `Invalid character within String: ${P(e, i)}.`);
|
|
771
771
|
}
|
|
772
772
|
throw j(e.source, i, "Unterminated string.");
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function mt(e, t) {
|
|
775
775
|
let n = e.source.body, r = 0, i = 3;
|
|
776
776
|
for (; i < 12;) {
|
|
777
777
|
let e = n.charCodeAt(t + i++);
|
|
778
778
|
if (e === 125) {
|
|
779
|
-
if (i < 5 || !
|
|
779
|
+
if (i < 5 || !at(r)) break;
|
|
780
780
|
return {
|
|
781
781
|
value: String.fromCodePoint(r),
|
|
782
782
|
size: i
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
if (r = r << 4 |
|
|
785
|
+
if (r = r << 4 | _t(e), r < 0) break;
|
|
786
786
|
}
|
|
787
787
|
throw j(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t, t + i)}".`);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
let n = e.source.body, r =
|
|
791
|
-
if (
|
|
789
|
+
function ht(e, t) {
|
|
790
|
+
let n = e.source.body, r = gt(n, t + 2);
|
|
791
|
+
if (at(r)) return {
|
|
792
792
|
value: String.fromCodePoint(r),
|
|
793
793
|
size: 6
|
|
794
794
|
};
|
|
795
|
-
if (
|
|
796
|
-
let e =
|
|
797
|
-
if (
|
|
795
|
+
if (st(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
|
|
796
|
+
let e = gt(n, t + 8);
|
|
797
|
+
if (ct(e)) return {
|
|
798
798
|
value: String.fromCodePoint(r, e),
|
|
799
799
|
size: 12
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
throw j(e.source, t, `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`);
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
return
|
|
804
|
+
function gt(e, t) {
|
|
805
|
+
return _t(e.charCodeAt(t)) << 12 | _t(e.charCodeAt(t + 1)) << 8 | _t(e.charCodeAt(t + 2)) << 4 | _t(e.charCodeAt(t + 3));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function _t(e) {
|
|
808
808
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function vt(e, t) {
|
|
811
811
|
let n = e.source.body;
|
|
812
812
|
switch (n.charCodeAt(t + 1)) {
|
|
813
813
|
case 34: return {
|
|
@@ -845,13 +845,13 @@ function _t(e, t) {
|
|
|
845
845
|
}
|
|
846
846
|
throw j(e.source, t, `Invalid character escape sequence: "${n.slice(t, t + 2)}".`);
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function yt(e, t) {
|
|
849
849
|
let n = e.source.body, r = n.length, i = e.lineStart, a = t + 3, o = a, s = "", c = [];
|
|
850
850
|
for (; a < r;) {
|
|
851
851
|
let r = n.charCodeAt(a);
|
|
852
852
|
if (r === 34 && n.charCodeAt(a + 1) === 34 && n.charCodeAt(a + 2) === 34) {
|
|
853
853
|
s += n.slice(o, a), c.push(s);
|
|
854
|
-
let r =
|
|
854
|
+
let r = F(e, N.BLOCK_STRING, t, a + 3, et(c).join("\n"));
|
|
855
855
|
return e.line += c.length - 1, e.lineStart = i, r;
|
|
856
856
|
}
|
|
857
857
|
if (r === 92 && n.charCodeAt(a + 1) === 34 && n.charCodeAt(a + 2) === 34 && n.charCodeAt(a + 3) === 34) {
|
|
@@ -862,56 +862,56 @@ function vt(e, t) {
|
|
|
862
862
|
s += n.slice(o, a), c.push(s), r === 13 && n.charCodeAt(a + 1) === 10 ? a += 2 : ++a, s = "", o = a, i = a;
|
|
863
863
|
continue;
|
|
864
864
|
}
|
|
865
|
-
if (
|
|
866
|
-
else if (
|
|
867
|
-
else throw j(e.source, a, `Invalid character within String: ${
|
|
865
|
+
if (at(r)) ++a;
|
|
866
|
+
else if (ot(n, a)) a += 2;
|
|
867
|
+
else throw j(e.source, a, `Invalid character within String: ${P(e, a)}.`);
|
|
868
868
|
}
|
|
869
869
|
throw j(e.source, a, "Unterminated string.");
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function bt(e, t) {
|
|
872
872
|
let n = e.source.body, r = n.length, i = t + 1;
|
|
873
|
-
for (; i < r &&
|
|
874
|
-
return
|
|
873
|
+
for (; i < r && $e(n.charCodeAt(i));) ++i;
|
|
874
|
+
return F(e, N.NAME, t, i, n.slice(t, i));
|
|
875
875
|
}
|
|
876
876
|
//#endregion
|
|
877
877
|
//#region node_modules/graphql/jsutils/inspect.mjs
|
|
878
|
-
var
|
|
879
|
-
function
|
|
880
|
-
return
|
|
878
|
+
var xt = 10, St = 2;
|
|
879
|
+
function Ct(e) {
|
|
880
|
+
return wt(e, []);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function wt(e, t) {
|
|
883
883
|
switch (typeof e) {
|
|
884
884
|
case "string": return JSON.stringify(e);
|
|
885
885
|
case "function": return e.name ? `[function ${e.name}]` : "[function]";
|
|
886
|
-
case "object": return
|
|
886
|
+
case "object": return Tt(e, t);
|
|
887
887
|
default: return String(e);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Tt(e, t) {
|
|
891
891
|
if (e === null) return "null";
|
|
892
892
|
if (t.includes(e)) return "[Circular]";
|
|
893
893
|
let n = [...t, e];
|
|
894
|
-
if (
|
|
894
|
+
if (Et(e)) {
|
|
895
895
|
let t = e.toJSON();
|
|
896
|
-
if (t !== e) return typeof t == "string" ? t :
|
|
897
|
-
} else if (Array.isArray(e)) return
|
|
898
|
-
return
|
|
896
|
+
if (t !== e) return typeof t == "string" ? t : wt(t, n);
|
|
897
|
+
} else if (Array.isArray(e)) return Ot(e, n);
|
|
898
|
+
return Dt(e, n);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Et(e) {
|
|
901
901
|
return typeof e.toJSON == "function";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Dt(e, t) {
|
|
904
904
|
let n = Object.entries(e);
|
|
905
|
-
return n.length === 0 ? "{}" : t.length >
|
|
905
|
+
return n.length === 0 ? "{}" : t.length > St ? "[" + kt(e) + "]" : "{ " + n.map(([e, n]) => e + ": " + wt(n, t)).join(", ") + " }";
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Ot(e, t) {
|
|
908
908
|
if (e.length === 0) return "[]";
|
|
909
|
-
if (t.length >
|
|
910
|
-
let n = Math.min(
|
|
911
|
-
for (let r = 0; r < n; ++r) i.push(
|
|
909
|
+
if (t.length > St) return "[Array]";
|
|
910
|
+
let n = Math.min(xt, e.length), r = e.length - n, i = [];
|
|
911
|
+
for (let r = 0; r < n; ++r) i.push(wt(e[r], t));
|
|
912
912
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function kt(e) {
|
|
915
915
|
let t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
916
916
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
917
917
|
let t = e.constructor.name;
|
|
@@ -919,14 +919,14 @@ function Ot(e) {
|
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
var
|
|
922
|
+
var At = globalThis.process ? function(e, t) {
|
|
923
923
|
return e instanceof t;
|
|
924
924
|
} : function(e, t) {
|
|
925
925
|
if (e instanceof t) return !0;
|
|
926
926
|
if (typeof e == "object" && e) {
|
|
927
927
|
let n = t.prototype[Symbol.toStringTag];
|
|
928
928
|
if (n === (Symbol.toStringTag in e ? e[Symbol.toStringTag] : e.constructor?.name)) {
|
|
929
|
-
let t =
|
|
929
|
+
let t = Ct(e);
|
|
930
930
|
throw Error(`Cannot use ${n} "${t}" from another module or realm.
|
|
931
931
|
|
|
932
932
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -942,36 +942,36 @@ spurious results.`);
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
return !1;
|
|
945
|
-
},
|
|
945
|
+
}, jt = class {
|
|
946
946
|
constructor(e, t = "GraphQL request", n = {
|
|
947
947
|
line: 1,
|
|
948
948
|
column: 1
|
|
949
949
|
}) {
|
|
950
|
-
typeof e == "string" || je(!1, `Body must be a string. Received: ${
|
|
950
|
+
typeof e == "string" || je(!1, `Body must be a string. Received: ${Ct(e)}.`), this.body = e, this.name = t, this.locationOffset = n, this.locationOffset.line > 0 || je(!1, "line in locationOffset is 1-indexed and must be positive."), this.locationOffset.column > 0 || je(!1, "column in locationOffset is 1-indexed and must be positive.");
|
|
951
951
|
}
|
|
952
952
|
get [Symbol.toStringTag]() {
|
|
953
953
|
return "Source";
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
|
-
function
|
|
957
|
-
return
|
|
956
|
+
function Mt(e) {
|
|
957
|
+
return At(e, jt);
|
|
958
958
|
}
|
|
959
959
|
//#endregion
|
|
960
960
|
//#region node_modules/graphql/language/parser.mjs
|
|
961
|
-
function
|
|
962
|
-
let n = new
|
|
961
|
+
function Nt(e, t) {
|
|
962
|
+
let n = new Pt(e, t), r = n.parseDocument();
|
|
963
963
|
return Object.defineProperty(r, "tokenCount", {
|
|
964
964
|
enumerable: !1,
|
|
965
965
|
value: n.tokenCount
|
|
966
966
|
}), r;
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var Pt = class {
|
|
969
969
|
constructor(e, t = {}) {
|
|
970
970
|
let { lexer: n, ...r } = t;
|
|
971
971
|
if (n) this._lexer = n;
|
|
972
972
|
else {
|
|
973
|
-
let t =
|
|
974
|
-
this._lexer = new
|
|
973
|
+
let t = Mt(e) ? e : new jt(e);
|
|
974
|
+
this._lexer = new rt(t);
|
|
975
975
|
}
|
|
976
976
|
this._options = r, this._tokenCounter = 0;
|
|
977
977
|
}
|
|
@@ -979,23 +979,23 @@ var Nt = class {
|
|
|
979
979
|
return this._tokenCounter;
|
|
980
980
|
}
|
|
981
981
|
parseName() {
|
|
982
|
-
let e = this.expectToken(
|
|
982
|
+
let e = this.expectToken(N.NAME);
|
|
983
983
|
return this.node(e, {
|
|
984
|
-
kind:
|
|
984
|
+
kind: M.NAME,
|
|
985
985
|
value: e.value
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
parseDocument() {
|
|
989
989
|
return this.node(this._lexer.token, {
|
|
990
|
-
kind:
|
|
991
|
-
definitions: this.many(
|
|
990
|
+
kind: M.DOCUMENT,
|
|
991
|
+
definitions: this.many(N.SOF, this.parseDefinition, N.EOF)
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
parseDefinition() {
|
|
995
|
-
if (this.peek(
|
|
995
|
+
if (this.peek(N.BRACE_L)) return this.parseOperationDefinition();
|
|
996
996
|
let e = this.peekDescription(), t = e ? this._lexer.lookahead() : this._lexer.token;
|
|
997
|
-
if (e && t.kind ===
|
|
998
|
-
if (t.kind ===
|
|
997
|
+
if (e && t.kind === N.BRACE_L) throw j(this._lexer.source, this._lexer.token.start, "Unexpected description, descriptions are not supported on shorthand queries.");
|
|
998
|
+
if (t.kind === N.NAME) {
|
|
999
999
|
switch (t.value) {
|
|
1000
1000
|
case "schema": return this.parseSchemaDefinition();
|
|
1001
1001
|
case "scalar": return this.parseScalarTypeDefinition();
|
|
@@ -1021,9 +1021,9 @@ var Nt = class {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
parseOperationDefinition() {
|
|
1023
1023
|
let e = this._lexer.token;
|
|
1024
|
-
if (this.peek(
|
|
1025
|
-
kind:
|
|
1026
|
-
operation:
|
|
1024
|
+
if (this.peek(N.BRACE_L)) return this.node(e, {
|
|
1025
|
+
kind: M.OPERATION_DEFINITION,
|
|
1026
|
+
operation: qe.QUERY,
|
|
1027
1027
|
description: void 0,
|
|
1028
1028
|
name: void 0,
|
|
1029
1029
|
variableDefinitions: [],
|
|
@@ -1031,8 +1031,8 @@ var Nt = class {
|
|
|
1031
1031
|
selectionSet: this.parseSelectionSet()
|
|
1032
1032
|
});
|
|
1033
1033
|
let t = this.parseDescription(), n = this.parseOperationType(), r;
|
|
1034
|
-
return this.peek(
|
|
1035
|
-
kind:
|
|
1034
|
+
return this.peek(N.NAME) && (r = this.parseName()), this.node(e, {
|
|
1035
|
+
kind: M.OPERATION_DEFINITION,
|
|
1036
1036
|
operation: n,
|
|
1037
1037
|
description: t,
|
|
1038
1038
|
name: r,
|
|
@@ -1042,62 +1042,62 @@ var Nt = class {
|
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
parseOperationType() {
|
|
1045
|
-
let e = this.expectToken(
|
|
1045
|
+
let e = this.expectToken(N.NAME);
|
|
1046
1046
|
switch (e.value) {
|
|
1047
|
-
case "query": return
|
|
1048
|
-
case "mutation": return
|
|
1049
|
-
case "subscription": return
|
|
1047
|
+
case "query": return qe.QUERY;
|
|
1048
|
+
case "mutation": return qe.MUTATION;
|
|
1049
|
+
case "subscription": return qe.SUBSCRIPTION;
|
|
1050
1050
|
}
|
|
1051
1051
|
throw this.unexpected(e);
|
|
1052
1052
|
}
|
|
1053
1053
|
parseVariableDefinitions() {
|
|
1054
|
-
return this.optionalMany(
|
|
1054
|
+
return this.optionalMany(N.PAREN_L, this.parseVariableDefinition, N.PAREN_R);
|
|
1055
1055
|
}
|
|
1056
1056
|
parseVariableDefinition() {
|
|
1057
1057
|
return this.node(this._lexer.token, {
|
|
1058
|
-
kind:
|
|
1058
|
+
kind: M.VARIABLE_DEFINITION,
|
|
1059
1059
|
description: this.parseDescription(),
|
|
1060
1060
|
variable: this.parseVariable(),
|
|
1061
|
-
type: (this.expectToken(
|
|
1062
|
-
defaultValue: this.expectOptionalToken(
|
|
1061
|
+
type: (this.expectToken(N.COLON), this.parseTypeReference()),
|
|
1062
|
+
defaultValue: this.expectOptionalToken(N.EQUALS) ? this.parseConstValueLiteral() : void 0,
|
|
1063
1063
|
directives: this.parseConstDirectives()
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
parseVariable() {
|
|
1067
1067
|
let e = this._lexer.token;
|
|
1068
|
-
return this.expectToken(
|
|
1069
|
-
kind:
|
|
1068
|
+
return this.expectToken(N.DOLLAR), this.node(e, {
|
|
1069
|
+
kind: M.VARIABLE,
|
|
1070
1070
|
name: this.parseName()
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
parseSelectionSet() {
|
|
1074
1074
|
return this.node(this._lexer.token, {
|
|
1075
|
-
kind:
|
|
1076
|
-
selections: this.many(
|
|
1075
|
+
kind: M.SELECTION_SET,
|
|
1076
|
+
selections: this.many(N.BRACE_L, this.parseSelection, N.BRACE_R)
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
parseSelection() {
|
|
1080
|
-
return this.peek(
|
|
1080
|
+
return this.peek(N.SPREAD) ? this.parseFragment() : this.parseField();
|
|
1081
1081
|
}
|
|
1082
1082
|
parseField() {
|
|
1083
1083
|
let e = this._lexer.token, t = this.parseName(), n, r;
|
|
1084
|
-
return this.expectOptionalToken(
|
|
1085
|
-
kind:
|
|
1084
|
+
return this.expectOptionalToken(N.COLON) ? (n = t, r = this.parseName()) : r = t, this.node(e, {
|
|
1085
|
+
kind: M.FIELD,
|
|
1086
1086
|
alias: n,
|
|
1087
1087
|
name: r,
|
|
1088
1088
|
arguments: this.parseArguments(!1),
|
|
1089
1089
|
directives: this.parseDirectives(!1),
|
|
1090
|
-
selectionSet: this.peek(
|
|
1090
|
+
selectionSet: this.peek(N.BRACE_L) ? this.parseSelectionSet() : void 0
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
parseArguments(e) {
|
|
1094
1094
|
let t = e ? this.parseConstArgument : this.parseArgument;
|
|
1095
|
-
return this.optionalMany(
|
|
1095
|
+
return this.optionalMany(N.PAREN_L, t, N.PAREN_R);
|
|
1096
1096
|
}
|
|
1097
1097
|
parseArgument(e = !1) {
|
|
1098
1098
|
let t = this._lexer.token, n = this.parseName();
|
|
1099
|
-
return this.expectToken(
|
|
1100
|
-
kind:
|
|
1099
|
+
return this.expectToken(N.COLON), this.node(t, {
|
|
1100
|
+
kind: M.ARGUMENT,
|
|
1101
1101
|
name: n,
|
|
1102
1102
|
value: this.parseValueLiteral(e)
|
|
1103
1103
|
});
|
|
@@ -1107,14 +1107,14 @@ var Nt = class {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
parseFragment() {
|
|
1109
1109
|
let e = this._lexer.token;
|
|
1110
|
-
this.expectToken(
|
|
1110
|
+
this.expectToken(N.SPREAD);
|
|
1111
1111
|
let t = this.expectOptionalKeyword("on");
|
|
1112
|
-
return !t && this.peek(
|
|
1113
|
-
kind:
|
|
1112
|
+
return !t && this.peek(N.NAME) ? this.node(e, {
|
|
1113
|
+
kind: M.FRAGMENT_SPREAD,
|
|
1114
1114
|
name: this.parseFragmentName(),
|
|
1115
1115
|
directives: this.parseDirectives(!1)
|
|
1116
1116
|
}) : this.node(e, {
|
|
1117
|
-
kind:
|
|
1117
|
+
kind: M.INLINE_FRAGMENT,
|
|
1118
1118
|
typeCondition: t ? this.parseNamedType() : void 0,
|
|
1119
1119
|
directives: this.parseDirectives(!1),
|
|
1120
1120
|
selectionSet: this.parseSelectionSet()
|
|
@@ -1123,7 +1123,7 @@ var Nt = class {
|
|
|
1123
1123
|
parseFragmentDefinition() {
|
|
1124
1124
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1125
1125
|
return this.expectKeyword("fragment"), this._options.allowLegacyFragmentVariables === !0 ? this.node(e, {
|
|
1126
|
-
kind:
|
|
1126
|
+
kind: M.FRAGMENT_DEFINITION,
|
|
1127
1127
|
description: t,
|
|
1128
1128
|
name: this.parseFragmentName(),
|
|
1129
1129
|
variableDefinitions: this.parseVariableDefinitions(),
|
|
@@ -1131,7 +1131,7 @@ var Nt = class {
|
|
|
1131
1131
|
directives: this.parseDirectives(!1),
|
|
1132
1132
|
selectionSet: this.parseSelectionSet()
|
|
1133
1133
|
}) : this.node(e, {
|
|
1134
|
-
kind:
|
|
1134
|
+
kind: M.FRAGMENT_DEFINITION,
|
|
1135
1135
|
description: t,
|
|
1136
1136
|
name: this.parseFragmentName(),
|
|
1137
1137
|
typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
|
|
@@ -1146,35 +1146,35 @@ var Nt = class {
|
|
|
1146
1146
|
parseValueLiteral(e) {
|
|
1147
1147
|
let t = this._lexer.token;
|
|
1148
1148
|
switch (t.kind) {
|
|
1149
|
-
case
|
|
1150
|
-
case
|
|
1151
|
-
case
|
|
1152
|
-
kind:
|
|
1149
|
+
case N.BRACKET_L: return this.parseList(e);
|
|
1150
|
+
case N.BRACE_L: return this.parseObject(e);
|
|
1151
|
+
case N.INT: return this.advanceLexer(), this.node(t, {
|
|
1152
|
+
kind: M.INT,
|
|
1153
1153
|
value: t.value
|
|
1154
1154
|
});
|
|
1155
|
-
case
|
|
1156
|
-
kind:
|
|
1155
|
+
case N.FLOAT: return this.advanceLexer(), this.node(t, {
|
|
1156
|
+
kind: M.FLOAT,
|
|
1157
1157
|
value: t.value
|
|
1158
1158
|
});
|
|
1159
|
-
case
|
|
1160
|
-
case
|
|
1161
|
-
case
|
|
1159
|
+
case N.STRING:
|
|
1160
|
+
case N.BLOCK_STRING: return this.parseStringLiteral();
|
|
1161
|
+
case N.NAME: switch (this.advanceLexer(), t.value) {
|
|
1162
1162
|
case "true": return this.node(t, {
|
|
1163
|
-
kind:
|
|
1163
|
+
kind: M.BOOLEAN,
|
|
1164
1164
|
value: !0
|
|
1165
1165
|
});
|
|
1166
1166
|
case "false": return this.node(t, {
|
|
1167
|
-
kind:
|
|
1167
|
+
kind: M.BOOLEAN,
|
|
1168
1168
|
value: !1
|
|
1169
1169
|
});
|
|
1170
|
-
case "null": return this.node(t, { kind:
|
|
1170
|
+
case "null": return this.node(t, { kind: M.NULL });
|
|
1171
1171
|
default: return this.node(t, {
|
|
1172
|
-
kind:
|
|
1172
|
+
kind: M.ENUM,
|
|
1173
1173
|
value: t.value
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
|
-
case
|
|
1177
|
-
if (e) if (this.expectToken(
|
|
1176
|
+
case N.DOLLAR:
|
|
1177
|
+
if (e) if (this.expectToken(N.DOLLAR), this._lexer.token.kind === N.NAME) {
|
|
1178
1178
|
let e = this._lexer.token.value;
|
|
1179
1179
|
throw j(this._lexer.source, t.start, `Unexpected variable "$${e}" in constant value.`);
|
|
1180
1180
|
} else throw this.unexpected(t);
|
|
@@ -1188,34 +1188,34 @@ var Nt = class {
|
|
|
1188
1188
|
parseStringLiteral() {
|
|
1189
1189
|
let e = this._lexer.token;
|
|
1190
1190
|
return this.advanceLexer(), this.node(e, {
|
|
1191
|
-
kind:
|
|
1191
|
+
kind: M.STRING,
|
|
1192
1192
|
value: e.value,
|
|
1193
|
-
block: e.kind ===
|
|
1193
|
+
block: e.kind === N.BLOCK_STRING
|
|
1194
1194
|
});
|
|
1195
1195
|
}
|
|
1196
1196
|
parseList(e) {
|
|
1197
1197
|
return this.node(this._lexer.token, {
|
|
1198
|
-
kind:
|
|
1199
|
-
values: this.any(
|
|
1198
|
+
kind: M.LIST,
|
|
1199
|
+
values: this.any(N.BRACKET_L, () => this.parseValueLiteral(e), N.BRACKET_R)
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
1202
|
parseObject(e) {
|
|
1203
1203
|
return this.node(this._lexer.token, {
|
|
1204
|
-
kind:
|
|
1205
|
-
fields: this.any(
|
|
1204
|
+
kind: M.OBJECT,
|
|
1205
|
+
fields: this.any(N.BRACE_L, () => this.parseObjectField(e), N.BRACE_R)
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
parseObjectField(e) {
|
|
1209
1209
|
let t = this._lexer.token, n = this.parseName();
|
|
1210
|
-
return this.expectToken(
|
|
1211
|
-
kind:
|
|
1210
|
+
return this.expectToken(N.COLON), this.node(t, {
|
|
1211
|
+
kind: M.OBJECT_FIELD,
|
|
1212
1212
|
name: n,
|
|
1213
1213
|
value: this.parseValueLiteral(e)
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
1216
|
parseDirectives(e) {
|
|
1217
1217
|
let t = [];
|
|
1218
|
-
for (; this.peek(
|
|
1218
|
+
for (; this.peek(N.AT);) t.push(this.parseDirective(e));
|
|
1219
1219
|
return t;
|
|
1220
1220
|
}
|
|
1221
1221
|
parseConstDirectives() {
|
|
@@ -1223,34 +1223,34 @@ var Nt = class {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
parseDirective(e) {
|
|
1225
1225
|
let t = this._lexer.token;
|
|
1226
|
-
return this.expectToken(
|
|
1227
|
-
kind:
|
|
1226
|
+
return this.expectToken(N.AT), this.node(t, {
|
|
1227
|
+
kind: M.DIRECTIVE,
|
|
1228
1228
|
name: this.parseName(),
|
|
1229
1229
|
arguments: this.parseArguments(e)
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
1232
|
parseTypeReference() {
|
|
1233
1233
|
let e = this._lexer.token, t;
|
|
1234
|
-
if (this.expectOptionalToken(
|
|
1234
|
+
if (this.expectOptionalToken(N.BRACKET_L)) {
|
|
1235
1235
|
let n = this.parseTypeReference();
|
|
1236
|
-
this.expectToken(
|
|
1237
|
-
kind:
|
|
1236
|
+
this.expectToken(N.BRACKET_R), t = this.node(e, {
|
|
1237
|
+
kind: M.LIST_TYPE,
|
|
1238
1238
|
type: n
|
|
1239
1239
|
});
|
|
1240
1240
|
} else t = this.parseNamedType();
|
|
1241
|
-
return this.expectOptionalToken(
|
|
1242
|
-
kind:
|
|
1241
|
+
return this.expectOptionalToken(N.BANG) ? this.node(e, {
|
|
1242
|
+
kind: M.NON_NULL_TYPE,
|
|
1243
1243
|
type: t
|
|
1244
1244
|
}) : t;
|
|
1245
1245
|
}
|
|
1246
1246
|
parseNamedType() {
|
|
1247
1247
|
return this.node(this._lexer.token, {
|
|
1248
|
-
kind:
|
|
1248
|
+
kind: M.NAMED_TYPE,
|
|
1249
1249
|
name: this.parseName()
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
peekDescription() {
|
|
1253
|
-
return this.peek(
|
|
1253
|
+
return this.peek(N.STRING) || this.peek(N.BLOCK_STRING);
|
|
1254
1254
|
}
|
|
1255
1255
|
parseDescription() {
|
|
1256
1256
|
if (this.peekDescription()) return this.parseStringLiteral();
|
|
@@ -1258,9 +1258,9 @@ var Nt = class {
|
|
|
1258
1258
|
parseSchemaDefinition() {
|
|
1259
1259
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1260
1260
|
this.expectKeyword("schema");
|
|
1261
|
-
let n = this.parseConstDirectives(), r = this.many(
|
|
1261
|
+
let n = this.parseConstDirectives(), r = this.many(N.BRACE_L, this.parseOperationTypeDefinition, N.BRACE_R);
|
|
1262
1262
|
return this.node(e, {
|
|
1263
|
-
kind:
|
|
1263
|
+
kind: M.SCHEMA_DEFINITION,
|
|
1264
1264
|
description: t,
|
|
1265
1265
|
directives: n,
|
|
1266
1266
|
operationTypes: r
|
|
@@ -1268,10 +1268,10 @@ var Nt = class {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
parseOperationTypeDefinition() {
|
|
1270
1270
|
let e = this._lexer.token, t = this.parseOperationType();
|
|
1271
|
-
this.expectToken(
|
|
1271
|
+
this.expectToken(N.COLON);
|
|
1272
1272
|
let n = this.parseNamedType();
|
|
1273
1273
|
return this.node(e, {
|
|
1274
|
-
kind:
|
|
1274
|
+
kind: M.OPERATION_TYPE_DEFINITION,
|
|
1275
1275
|
operation: t,
|
|
1276
1276
|
type: n
|
|
1277
1277
|
});
|
|
@@ -1281,7 +1281,7 @@ var Nt = class {
|
|
|
1281
1281
|
this.expectKeyword("scalar");
|
|
1282
1282
|
let n = this.parseName(), r = this.parseConstDirectives();
|
|
1283
1283
|
return this.node(e, {
|
|
1284
|
-
kind:
|
|
1284
|
+
kind: M.SCALAR_TYPE_DEFINITION,
|
|
1285
1285
|
description: t,
|
|
1286
1286
|
name: n,
|
|
1287
1287
|
directives: r
|
|
@@ -1292,7 +1292,7 @@ var Nt = class {
|
|
|
1292
1292
|
this.expectKeyword("type");
|
|
1293
1293
|
let n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), a = this.parseFieldsDefinition();
|
|
1294
1294
|
return this.node(e, {
|
|
1295
|
-
kind:
|
|
1295
|
+
kind: M.OBJECT_TYPE_DEFINITION,
|
|
1296
1296
|
description: t,
|
|
1297
1297
|
name: n,
|
|
1298
1298
|
interfaces: r,
|
|
@@ -1301,17 +1301,17 @@ var Nt = class {
|
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
parseImplementsInterfaces() {
|
|
1304
|
-
return this.expectOptionalKeyword("implements") ? this.delimitedMany(
|
|
1304
|
+
return this.expectOptionalKeyword("implements") ? this.delimitedMany(N.AMP, this.parseNamedType) : [];
|
|
1305
1305
|
}
|
|
1306
1306
|
parseFieldsDefinition() {
|
|
1307
|
-
return this.optionalMany(
|
|
1307
|
+
return this.optionalMany(N.BRACE_L, this.parseFieldDefinition, N.BRACE_R);
|
|
1308
1308
|
}
|
|
1309
1309
|
parseFieldDefinition() {
|
|
1310
1310
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseName(), r = this.parseArgumentDefs();
|
|
1311
|
-
this.expectToken(
|
|
1311
|
+
this.expectToken(N.COLON);
|
|
1312
1312
|
let i = this.parseTypeReference(), a = this.parseConstDirectives();
|
|
1313
1313
|
return this.node(e, {
|
|
1314
|
-
kind:
|
|
1314
|
+
kind: M.FIELD_DEFINITION,
|
|
1315
1315
|
description: t,
|
|
1316
1316
|
name: n,
|
|
1317
1317
|
arguments: r,
|
|
@@ -1320,16 +1320,16 @@ var Nt = class {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
parseArgumentDefs() {
|
|
1323
|
-
return this.optionalMany(
|
|
1323
|
+
return this.optionalMany(N.PAREN_L, this.parseInputValueDef, N.PAREN_R);
|
|
1324
1324
|
}
|
|
1325
1325
|
parseInputValueDef() {
|
|
1326
1326
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseName();
|
|
1327
|
-
this.expectToken(
|
|
1327
|
+
this.expectToken(N.COLON);
|
|
1328
1328
|
let r = this.parseTypeReference(), i;
|
|
1329
|
-
this.expectOptionalToken(
|
|
1329
|
+
this.expectOptionalToken(N.EQUALS) && (i = this.parseConstValueLiteral());
|
|
1330
1330
|
let a = this.parseConstDirectives();
|
|
1331
1331
|
return this.node(e, {
|
|
1332
|
-
kind:
|
|
1332
|
+
kind: M.INPUT_VALUE_DEFINITION,
|
|
1333
1333
|
description: t,
|
|
1334
1334
|
name: n,
|
|
1335
1335
|
type: r,
|
|
@@ -1342,7 +1342,7 @@ var Nt = class {
|
|
|
1342
1342
|
this.expectKeyword("interface");
|
|
1343
1343
|
let n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), a = this.parseFieldsDefinition();
|
|
1344
1344
|
return this.node(e, {
|
|
1345
|
-
kind:
|
|
1345
|
+
kind: M.INTERFACE_TYPE_DEFINITION,
|
|
1346
1346
|
description: t,
|
|
1347
1347
|
name: n,
|
|
1348
1348
|
interfaces: r,
|
|
@@ -1355,7 +1355,7 @@ var Nt = class {
|
|
|
1355
1355
|
this.expectKeyword("union");
|
|
1356
1356
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseUnionMemberTypes();
|
|
1357
1357
|
return this.node(e, {
|
|
1358
|
-
kind:
|
|
1358
|
+
kind: M.UNION_TYPE_DEFINITION,
|
|
1359
1359
|
description: t,
|
|
1360
1360
|
name: n,
|
|
1361
1361
|
directives: r,
|
|
@@ -1363,14 +1363,14 @@ var Nt = class {
|
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
1365
|
parseUnionMemberTypes() {
|
|
1366
|
-
return this.expectOptionalToken(
|
|
1366
|
+
return this.expectOptionalToken(N.EQUALS) ? this.delimitedMany(N.PIPE, this.parseNamedType) : [];
|
|
1367
1367
|
}
|
|
1368
1368
|
parseEnumTypeDefinition() {
|
|
1369
1369
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1370
1370
|
this.expectKeyword("enum");
|
|
1371
1371
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseEnumValuesDefinition();
|
|
1372
1372
|
return this.node(e, {
|
|
1373
|
-
kind:
|
|
1373
|
+
kind: M.ENUM_TYPE_DEFINITION,
|
|
1374
1374
|
description: t,
|
|
1375
1375
|
name: n,
|
|
1376
1376
|
directives: r,
|
|
@@ -1378,19 +1378,19 @@ var Nt = class {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
parseEnumValuesDefinition() {
|
|
1381
|
-
return this.optionalMany(
|
|
1381
|
+
return this.optionalMany(N.BRACE_L, this.parseEnumValueDefinition, N.BRACE_R);
|
|
1382
1382
|
}
|
|
1383
1383
|
parseEnumValueDefinition() {
|
|
1384
1384
|
let e = this._lexer.token, t = this.parseDescription(), n = this.parseEnumValueName(), r = this.parseConstDirectives();
|
|
1385
1385
|
return this.node(e, {
|
|
1386
|
-
kind:
|
|
1386
|
+
kind: M.ENUM_VALUE_DEFINITION,
|
|
1387
1387
|
description: t,
|
|
1388
1388
|
name: n,
|
|
1389
1389
|
directives: r
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
1392
|
parseEnumValueName() {
|
|
1393
|
-
if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null") throw j(this._lexer.source, this._lexer.token.start, `${
|
|
1393
|
+
if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null") throw j(this._lexer.source, this._lexer.token.start, `${Ft(this._lexer.token)} is reserved and cannot be used for an enum value.`);
|
|
1394
1394
|
return this.parseName();
|
|
1395
1395
|
}
|
|
1396
1396
|
parseInputObjectTypeDefinition() {
|
|
@@ -1398,7 +1398,7 @@ var Nt = class {
|
|
|
1398
1398
|
this.expectKeyword("input");
|
|
1399
1399
|
let n = this.parseName(), r = this.parseConstDirectives(), i = this.parseInputFieldsDefinition();
|
|
1400
1400
|
return this.node(e, {
|
|
1401
|
-
kind:
|
|
1401
|
+
kind: M.INPUT_OBJECT_TYPE_DEFINITION,
|
|
1402
1402
|
description: t,
|
|
1403
1403
|
name: n,
|
|
1404
1404
|
directives: r,
|
|
@@ -1406,11 +1406,11 @@ var Nt = class {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
parseInputFieldsDefinition() {
|
|
1409
|
-
return this.optionalMany(
|
|
1409
|
+
return this.optionalMany(N.BRACE_L, this.parseInputValueDef, N.BRACE_R);
|
|
1410
1410
|
}
|
|
1411
1411
|
parseTypeSystemExtension() {
|
|
1412
1412
|
let e = this._lexer.lookahead();
|
|
1413
|
-
if (e.kind ===
|
|
1413
|
+
if (e.kind === N.NAME) switch (e.value) {
|
|
1414
1414
|
case "schema": return this.parseSchemaExtension();
|
|
1415
1415
|
case "scalar": return this.parseScalarTypeExtension();
|
|
1416
1416
|
case "type": return this.parseObjectTypeExtension();
|
|
@@ -1427,10 +1427,10 @@ var Nt = class {
|
|
|
1427
1427
|
parseSchemaExtension() {
|
|
1428
1428
|
let e = this._lexer.token;
|
|
1429
1429
|
this.expectKeyword("extend"), this.expectKeyword("schema");
|
|
1430
|
-
let t = this.parseConstDirectives(), n = this.optionalMany(
|
|
1430
|
+
let t = this.parseConstDirectives(), n = this.optionalMany(N.BRACE_L, this.parseOperationTypeDefinition, N.BRACE_R);
|
|
1431
1431
|
if (t.length === 0 && n.length === 0) throw this.unexpected();
|
|
1432
1432
|
return this.node(e, {
|
|
1433
|
-
kind:
|
|
1433
|
+
kind: M.SCHEMA_EXTENSION,
|
|
1434
1434
|
directives: t,
|
|
1435
1435
|
operationTypes: n
|
|
1436
1436
|
});
|
|
@@ -1441,7 +1441,7 @@ var Nt = class {
|
|
|
1441
1441
|
let t = this.parseName(), n = this.parseConstDirectives();
|
|
1442
1442
|
if (n.length === 0) throw this.unexpected();
|
|
1443
1443
|
return this.node(e, {
|
|
1444
|
-
kind:
|
|
1444
|
+
kind: M.SCALAR_TYPE_EXTENSION,
|
|
1445
1445
|
name: t,
|
|
1446
1446
|
directives: n
|
|
1447
1447
|
});
|
|
@@ -1452,7 +1452,7 @@ var Nt = class {
|
|
|
1452
1452
|
let t = this.parseName(), n = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), i = this.parseFieldsDefinition();
|
|
1453
1453
|
if (n.length === 0 && r.length === 0 && i.length === 0) throw this.unexpected();
|
|
1454
1454
|
return this.node(e, {
|
|
1455
|
-
kind:
|
|
1455
|
+
kind: M.OBJECT_TYPE_EXTENSION,
|
|
1456
1456
|
name: t,
|
|
1457
1457
|
interfaces: n,
|
|
1458
1458
|
directives: r,
|
|
@@ -1465,7 +1465,7 @@ var Nt = class {
|
|
|
1465
1465
|
let t = this.parseName(), n = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), i = this.parseFieldsDefinition();
|
|
1466
1466
|
if (n.length === 0 && r.length === 0 && i.length === 0) throw this.unexpected();
|
|
1467
1467
|
return this.node(e, {
|
|
1468
|
-
kind:
|
|
1468
|
+
kind: M.INTERFACE_TYPE_EXTENSION,
|
|
1469
1469
|
name: t,
|
|
1470
1470
|
interfaces: n,
|
|
1471
1471
|
directives: r,
|
|
@@ -1478,7 +1478,7 @@ var Nt = class {
|
|
|
1478
1478
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseUnionMemberTypes();
|
|
1479
1479
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1480
1480
|
return this.node(e, {
|
|
1481
|
-
kind:
|
|
1481
|
+
kind: M.UNION_TYPE_EXTENSION,
|
|
1482
1482
|
name: t,
|
|
1483
1483
|
directives: n,
|
|
1484
1484
|
types: r
|
|
@@ -1490,7 +1490,7 @@ var Nt = class {
|
|
|
1490
1490
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseEnumValuesDefinition();
|
|
1491
1491
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1492
1492
|
return this.node(e, {
|
|
1493
|
-
kind:
|
|
1493
|
+
kind: M.ENUM_TYPE_EXTENSION,
|
|
1494
1494
|
name: t,
|
|
1495
1495
|
directives: n,
|
|
1496
1496
|
values: r
|
|
@@ -1502,7 +1502,7 @@ var Nt = class {
|
|
|
1502
1502
|
let t = this.parseName(), n = this.parseConstDirectives(), r = this.parseInputFieldsDefinition();
|
|
1503
1503
|
if (n.length === 0 && r.length === 0) throw this.unexpected();
|
|
1504
1504
|
return this.node(e, {
|
|
1505
|
-
kind:
|
|
1505
|
+
kind: M.INPUT_OBJECT_TYPE_EXTENSION,
|
|
1506
1506
|
name: t,
|
|
1507
1507
|
directives: n,
|
|
1508
1508
|
fields: r
|
|
@@ -1510,23 +1510,23 @@ var Nt = class {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
parseDirectiveDefinitionExtension() {
|
|
1512
1512
|
let e = this._lexer.token;
|
|
1513
|
-
this.expectKeyword("extend"), this.expectKeyword("directive"), this.expectToken(
|
|
1513
|
+
this.expectKeyword("extend"), this.expectKeyword("directive"), this.expectToken(N.AT);
|
|
1514
1514
|
let t = this.parseName(), n = this.parseConstDirectives();
|
|
1515
1515
|
if (n.length === 0) throw this.unexpected();
|
|
1516
1516
|
return this.node(e, {
|
|
1517
|
-
kind:
|
|
1517
|
+
kind: M.DIRECTIVE_EXTENSION,
|
|
1518
1518
|
name: t,
|
|
1519
1519
|
directives: n
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
parseDirectiveDefinition() {
|
|
1523
1523
|
let e = this._lexer.token, t = this.parseDescription();
|
|
1524
|
-
this.expectKeyword("directive"), this.expectToken(
|
|
1524
|
+
this.expectKeyword("directive"), this.expectToken(N.AT);
|
|
1525
1525
|
let n = this.parseName(), r = this.parseArgumentDefs(), i = this._options.experimentalDirectivesOnDirectiveDefinitions ? this.parseConstDirectives() : [], a = this.expectOptionalKeyword("repeatable");
|
|
1526
1526
|
this.expectKeyword("on");
|
|
1527
1527
|
let o = this.parseDirectiveLocations();
|
|
1528
1528
|
return this.node(e, {
|
|
1529
|
-
kind:
|
|
1529
|
+
kind: M.DIRECTIVE_DEFINITION,
|
|
1530
1530
|
description: t,
|
|
1531
1531
|
name: n,
|
|
1532
1532
|
arguments: r,
|
|
@@ -1536,35 +1536,35 @@ var Nt = class {
|
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
parseDirectiveLocations() {
|
|
1539
|
-
return this.delimitedMany(
|
|
1539
|
+
return this.delimitedMany(N.PIPE, this.parseDirectiveLocation);
|
|
1540
1540
|
}
|
|
1541
1541
|
parseDirectiveLocation() {
|
|
1542
1542
|
let e = this._lexer.token, t = this.parseName();
|
|
1543
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1543
|
+
if (Object.prototype.hasOwnProperty.call(Je, t.value)) return t;
|
|
1544
1544
|
throw this.unexpected(e);
|
|
1545
1545
|
}
|
|
1546
1546
|
parseSchemaCoordinate() {
|
|
1547
|
-
let e = this._lexer.token, t = this.expectOptionalToken(
|
|
1548
|
-
!t && this.expectOptionalToken(
|
|
1547
|
+
let e = this._lexer.token, t = this.expectOptionalToken(N.AT), n = this.parseName(), r;
|
|
1548
|
+
!t && this.expectOptionalToken(N.DOT) && (r = this.parseName());
|
|
1549
1549
|
let i;
|
|
1550
|
-
return (t || r) && this.expectOptionalToken(
|
|
1551
|
-
kind:
|
|
1550
|
+
return (t || r) && this.expectOptionalToken(N.PAREN_L) && (i = this.parseName(), this.expectToken(N.COLON), this.expectToken(N.PAREN_R)), t ? i ? this.node(e, {
|
|
1551
|
+
kind: M.DIRECTIVE_ARGUMENT_COORDINATE,
|
|
1552
1552
|
name: n,
|
|
1553
1553
|
argumentName: i
|
|
1554
1554
|
}) : this.node(e, {
|
|
1555
|
-
kind:
|
|
1555
|
+
kind: M.DIRECTIVE_COORDINATE,
|
|
1556
1556
|
name: n
|
|
1557
1557
|
}) : r ? i ? this.node(e, {
|
|
1558
|
-
kind:
|
|
1558
|
+
kind: M.ARGUMENT_COORDINATE,
|
|
1559
1559
|
name: n,
|
|
1560
1560
|
fieldName: r,
|
|
1561
1561
|
argumentName: i
|
|
1562
1562
|
}) : this.node(e, {
|
|
1563
|
-
kind:
|
|
1563
|
+
kind: M.MEMBER_COORDINATE,
|
|
1564
1564
|
name: n,
|
|
1565
1565
|
memberName: r
|
|
1566
1566
|
}) : this.node(e, {
|
|
1567
|
-
kind:
|
|
1567
|
+
kind: M.TYPE_COORDINATE,
|
|
1568
1568
|
name: n
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
@@ -1577,23 +1577,23 @@ var Nt = class {
|
|
|
1577
1577
|
expectToken(e) {
|
|
1578
1578
|
let t = this._lexer.token;
|
|
1579
1579
|
if (t.kind === e) return this.advanceLexer(), t;
|
|
1580
|
-
throw j(this._lexer.source, t.start, `Expected ${
|
|
1580
|
+
throw j(this._lexer.source, t.start, `Expected ${It(e)}, found ${Ft(t)}.`);
|
|
1581
1581
|
}
|
|
1582
1582
|
expectOptionalToken(e) {
|
|
1583
1583
|
return this._lexer.token.kind === e ? (this.advanceLexer(), !0) : !1;
|
|
1584
1584
|
}
|
|
1585
1585
|
expectKeyword(e) {
|
|
1586
1586
|
let t = this._lexer.token;
|
|
1587
|
-
if (t.kind ===
|
|
1588
|
-
else throw j(this._lexer.source, t.start, `Expected "${e}", found ${
|
|
1587
|
+
if (t.kind === N.NAME && t.value === e) this.advanceLexer();
|
|
1588
|
+
else throw j(this._lexer.source, t.start, `Expected "${e}", found ${Ft(t)}.`);
|
|
1589
1589
|
}
|
|
1590
1590
|
expectOptionalKeyword(e) {
|
|
1591
1591
|
let t = this._lexer.token;
|
|
1592
|
-
return t.kind ===
|
|
1592
|
+
return t.kind === N.NAME && t.value === e ? (this.advanceLexer(), !0) : !1;
|
|
1593
1593
|
}
|
|
1594
1594
|
unexpected(e) {
|
|
1595
1595
|
let t = e ?? this._lexer.token;
|
|
1596
|
-
return j(this._lexer.source, t.start, `Unexpected ${
|
|
1596
|
+
return j(this._lexer.source, t.start, `Unexpected ${Ft(t)}.`);
|
|
1597
1597
|
}
|
|
1598
1598
|
any(e, t, n) {
|
|
1599
1599
|
this.expectToken(e);
|
|
@@ -1629,22 +1629,22 @@ var Nt = class {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
advanceLexer() {
|
|
1631
1631
|
let { maxTokens: e } = this._options, t = this._lexer.advance();
|
|
1632
|
-
if (t.kind !==
|
|
1632
|
+
if (t.kind !== N.EOF && (++this._tokenCounter, e !== void 0 && this._tokenCounter > e)) throw j(this._lexer.source, t.start, `Document contains more that ${e} tokens. Parsing aborted.`);
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
|
-
function
|
|
1635
|
+
function Ft(e) {
|
|
1636
1636
|
let t = e.value;
|
|
1637
|
-
return
|
|
1637
|
+
return It(e.kind) + (t == null ? "" : ` "${t}"`);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1639
|
+
function It(e) {
|
|
1640
|
+
return it(e) ? `"${e}"` : e;
|
|
1641
1641
|
}
|
|
1642
1642
|
//#endregion
|
|
1643
1643
|
//#region node_modules/graphql/language/visitor.mjs
|
|
1644
|
-
var
|
|
1645
|
-
function
|
|
1644
|
+
var Lt = Object.freeze({});
|
|
1645
|
+
function Rt(e, t, n = We) {
|
|
1646
1646
|
let r = /* @__PURE__ */ new Map();
|
|
1647
|
-
for (let e of Object.values(
|
|
1647
|
+
for (let e of Object.values(M)) r.set(e, zt(t, e));
|
|
1648
1648
|
let i, a = Array.isArray(e), o = [e], s = -1, c = [], l = e, u, d, f = [], p = [];
|
|
1649
1649
|
do {
|
|
1650
1650
|
s++;
|
|
@@ -1668,7 +1668,7 @@ function Lt(e, t, n = We) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
let h;
|
|
1670
1670
|
if (!Array.isArray(l)) {
|
|
1671
|
-
if (Ke(l) || je(!1, `Invalid AST Node: ${
|
|
1671
|
+
if (Ke(l) || je(!1, `Invalid AST Node: ${Ct(l)}.`), h = (e ? r.get(l.kind)?.leave : r.get(l.kind)?.enter)?.call(t, l, u, d, f, p), h === Lt) break;
|
|
1672
1672
|
if (h === !1) {
|
|
1673
1673
|
if (!e) {
|
|
1674
1674
|
f.pop();
|
|
@@ -1690,7 +1690,7 @@ function Lt(e, t, n = We) {
|
|
|
1690
1690
|
} while (i !== void 0);
|
|
1691
1691
|
return c.length === 0 ? e : c[c.length - 1][1];
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function zt(e, t) {
|
|
1694
1694
|
let n = e[t];
|
|
1695
1695
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
1696
1696
|
enter: n,
|
|
@@ -1702,30 +1702,30 @@ function Rt(e, t) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
//#endregion
|
|
1704
1704
|
//#region node_modules/@apollo/client/utilities/graphql/directives.js
|
|
1705
|
-
function
|
|
1705
|
+
function Bt(e, t) {
|
|
1706
1706
|
var n = e.directives;
|
|
1707
|
-
return !n || !n.length ? !0 :
|
|
1707
|
+
return !n || !n.length ? !0 : Wt(n).every(function(e) {
|
|
1708
1708
|
var n = e.directive, r = e.ifArgument, i = !1;
|
|
1709
1709
|
return r.value.kind === "Variable" ? (i = t && t[r.value.name.value], A(i !== void 0, 105, n.name.value)) : i = r.value.value, n.name.value === "skip" ? !i : i;
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Vt(e, t, n) {
|
|
1713
1713
|
var r = new Set(e), i = r.size;
|
|
1714
|
-
return
|
|
1715
|
-
if (r.delete(e.name.value) && (!n || !r.size)) return
|
|
1714
|
+
return Rt(t, { Directive: function(e) {
|
|
1715
|
+
if (r.delete(e.name.value) && (!n || !r.size)) return Lt;
|
|
1716
1716
|
} }), n ? !r.size : r.size < i;
|
|
1717
1717
|
}
|
|
1718
|
-
function Vt(e) {
|
|
1719
|
-
return e && Bt(["client", "export"], e, !0);
|
|
1720
|
-
}
|
|
1721
1718
|
function Ht(e) {
|
|
1719
|
+
return e && Vt(["client", "export"], e, !0);
|
|
1720
|
+
}
|
|
1721
|
+
function Ut(e) {
|
|
1722
1722
|
var t = e.name.value;
|
|
1723
1723
|
return t === "skip" || t === "include";
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Wt(e) {
|
|
1726
1726
|
var t = [];
|
|
1727
1727
|
return e && e.length && e.forEach(function(e) {
|
|
1728
|
-
if (
|
|
1728
|
+
if (Ut(e)) {
|
|
1729
1729
|
var n = e.arguments, r = e.name.value;
|
|
1730
1730
|
A(n && n.length === 1, 106, r);
|
|
1731
1731
|
var i = n[0];
|
|
@@ -1738,7 +1738,7 @@ function Ut(e) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}), t;
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function Gt(e) {
|
|
1742
1742
|
var t = e.directives?.find(function(e) {
|
|
1743
1743
|
return e.name.value === "unmask";
|
|
1744
1744
|
});
|
|
@@ -1746,12 +1746,12 @@ function Wt(e) {
|
|
|
1746
1746
|
var n = t.arguments?.find(function(e) {
|
|
1747
1747
|
return e.name.value === "mode";
|
|
1748
1748
|
});
|
|
1749
|
-
return globalThis.__DEV__ !== !1 && n && (n.value.kind ===
|
|
1749
|
+
return globalThis.__DEV__ !== !1 && n && (n.value.kind === M.VARIABLE ? globalThis.__DEV__ !== !1 && A.warn(109) : n.value.kind === M.STRING ? n.value.value !== "migrate" && globalThis.__DEV__ !== !1 && A.warn(111, n.value.value) : globalThis.__DEV__ !== !1 && A.warn(110)), n && "value" in n.value && n.value.value === "migrate" ? "migrate" : "unmask";
|
|
1750
1750
|
}
|
|
1751
1751
|
//#endregion
|
|
1752
1752
|
//#region node_modules/@wry/trie/lib/index.js
|
|
1753
|
-
var
|
|
1754
|
-
constructor(e = !0, t =
|
|
1753
|
+
var Kt = () => Object.create(null), { forEach: qt, slice: Jt } = Array.prototype, { hasOwnProperty: Yt } = Object.prototype, Xt = class e {
|
|
1754
|
+
constructor(e = !0, t = Kt) {
|
|
1755
1755
|
this.weakness = e, this.makeData = t;
|
|
1756
1756
|
}
|
|
1757
1757
|
lookup() {
|
|
@@ -1759,7 +1759,7 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1759
1759
|
}
|
|
1760
1760
|
lookupArray(e) {
|
|
1761
1761
|
let t = this;
|
|
1762
|
-
return
|
|
1762
|
+
return qt.call(e, (e) => t = t.getChildTrie(e)), Yt.call(t, "data") ? t.data : t.data = this.makeData(Jt.call(e));
|
|
1763
1763
|
}
|
|
1764
1764
|
peek() {
|
|
1765
1765
|
return this.peekArray(arguments);
|
|
@@ -1779,7 +1779,7 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1779
1779
|
let t;
|
|
1780
1780
|
if (e.length) {
|
|
1781
1781
|
let n = e[0], r = this.mapFor(n, !1), i = r && r.get(n);
|
|
1782
|
-
i && (t = i.removeArray(
|
|
1782
|
+
i && (t = i.removeArray(Jt.call(e, 1)), !i.data && !i.weak && !(i.strong && i.strong.size) && r.delete(n));
|
|
1783
1783
|
} else t = this.data, delete this.data;
|
|
1784
1784
|
return t;
|
|
1785
1785
|
}
|
|
@@ -1788,10 +1788,10 @@ var Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype
|
|
|
1788
1788
|
return r || n.set(t, r = new e(this.weakness, this.makeData)), r;
|
|
1789
1789
|
}
|
|
1790
1790
|
mapFor(e, t) {
|
|
1791
|
-
return this.weakness &&
|
|
1791
|
+
return this.weakness && Zt(e) ? this.weak || (t ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (t ? this.strong = /* @__PURE__ */ new Map() : void 0);
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
|
-
function
|
|
1794
|
+
function Zt(e) {
|
|
1795
1795
|
switch (typeof e) {
|
|
1796
1796
|
case "object": if (e === null) break;
|
|
1797
1797
|
case "function": return !0;
|
|
@@ -1800,21 +1800,21 @@ function Xt(e) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
//#endregion
|
|
1802
1802
|
//#region node_modules/@apollo/client/utilities/common/canUse.js
|
|
1803
|
-
var
|
|
1803
|
+
var Qt = k(function() {
|
|
1804
1804
|
return navigator.product;
|
|
1805
|
-
}) == "ReactNative",
|
|
1805
|
+
}) == "ReactNative", $t = typeof WeakMap == "function" && !(Qt && !global.HermesInternal), en = typeof WeakSet == "function", tn = typeof Symbol == "function" && typeof Symbol.for == "function", nn = tn && Symbol.asyncIterator, rn = typeof k(function() {
|
|
1806
1806
|
return window.document.createElement;
|
|
1807
|
-
}) == "function",
|
|
1807
|
+
}) == "function", an = k(function() {
|
|
1808
1808
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
1809
|
-
}) || !1,
|
|
1809
|
+
}) || !1, on = (rn || Qt) && !an;
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region node_modules/@apollo/client/utilities/common/objects.js
|
|
1812
|
-
function
|
|
1812
|
+
function sn(e) {
|
|
1813
1813
|
return typeof e == "object" && !!e;
|
|
1814
1814
|
}
|
|
1815
1815
|
//#endregion
|
|
1816
1816
|
//#region node_modules/@apollo/client/utilities/graphql/fragments.js
|
|
1817
|
-
function
|
|
1817
|
+
function cn(e, t) {
|
|
1818
1818
|
var n = t, r = [];
|
|
1819
1819
|
return e.definitions.forEach(function(e) {
|
|
1820
1820
|
if (e.kind === "OperationDefinition") throw Te(112, e.operation, e.name ? ` named '${e.name.value}'` : "");
|
|
@@ -1834,14 +1834,14 @@ function sn(e, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}], e.definitions, !0) });
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function ln(e) {
|
|
1838
1838
|
e === void 0 && (e = []);
|
|
1839
1839
|
var t = {};
|
|
1840
1840
|
return e.forEach(function(e) {
|
|
1841
1841
|
t[e.name.value] = e;
|
|
1842
1842
|
}), t;
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function un(e, t) {
|
|
1845
1845
|
switch (e.kind) {
|
|
1846
1846
|
case "InlineFragment": return e;
|
|
1847
1847
|
case "FragmentSpread":
|
|
@@ -1852,19 +1852,19 @@ function ln(e, t) {
|
|
|
1852
1852
|
default: return null;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function dn(e) {
|
|
1856
1856
|
var t = !0;
|
|
1857
|
-
return
|
|
1857
|
+
return Rt(e, { FragmentSpread: function(e) {
|
|
1858
1858
|
if (t = !!e.directives && e.directives.some(function(e) {
|
|
1859
1859
|
return e.name.value === "unmask";
|
|
1860
|
-
}), !t) return
|
|
1860
|
+
}), !t) return Lt;
|
|
1861
1861
|
} }), t;
|
|
1862
1862
|
}
|
|
1863
1863
|
//#endregion
|
|
1864
1864
|
//#region node_modules/@wry/caches/lib/strong.js
|
|
1865
|
-
function
|
|
1866
|
-
var
|
|
1867
|
-
constructor(e = Infinity, t =
|
|
1865
|
+
function fn() {}
|
|
1866
|
+
var pn = class {
|
|
1867
|
+
constructor(e = Infinity, t = fn) {
|
|
1868
1868
|
this.max = e, this.dispose = t, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
1869
1869
|
}
|
|
1870
1870
|
has(e) {
|
|
@@ -1904,27 +1904,27 @@ var fn = class {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
//#endregion
|
|
1906
1906
|
//#region node_modules/@wry/caches/lib/weak.js
|
|
1907
|
-
function
|
|
1908
|
-
var
|
|
1907
|
+
function mn() {}
|
|
1908
|
+
var hn = mn, gn = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
1909
1909
|
return { deref: () => e };
|
|
1910
|
-
},
|
|
1910
|
+
}, _n = typeof WeakMap < "u" ? WeakMap : Map, vn = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
1911
1911
|
return {
|
|
1912
|
-
register:
|
|
1913
|
-
unregister:
|
|
1912
|
+
register: mn,
|
|
1913
|
+
unregister: mn
|
|
1914
1914
|
};
|
|
1915
|
-
},
|
|
1916
|
-
constructor(e = Infinity, t =
|
|
1917
|
-
this.max = e, this.dispose = t, this.map = new
|
|
1915
|
+
}, yn = 10024, bn = class {
|
|
1916
|
+
constructor(e = Infinity, t = hn) {
|
|
1917
|
+
this.max = e, this.dispose = t, this.map = new _n(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
1918
1918
|
let e = this.unfinalizedNodes.values();
|
|
1919
|
-
for (let t = 0; t <
|
|
1919
|
+
for (let t = 0; t < yn; t++) {
|
|
1920
1920
|
let t = e.next().value;
|
|
1921
1921
|
if (!t) break;
|
|
1922
1922
|
this.unfinalizedNodes.delete(t);
|
|
1923
1923
|
let n = t.key;
|
|
1924
|
-
delete t.key, t.keyRef = new
|
|
1924
|
+
delete t.key, t.keyRef = new gn(n), this.registry.register(n, t, t);
|
|
1925
1925
|
}
|
|
1926
1926
|
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
1927
|
-
}, this.registry = new
|
|
1927
|
+
}, this.registry = new vn(this.deleteNode.bind(this));
|
|
1928
1928
|
}
|
|
1929
1929
|
has(e) {
|
|
1930
1930
|
return this.map.has(e);
|
|
@@ -1965,30 +1965,30 @@ var mn = pn, hn = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
|
1965
1965
|
scheduleFinalization(e) {
|
|
1966
1966
|
this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
|
|
1967
1967
|
}
|
|
1968
|
-
},
|
|
1969
|
-
function
|
|
1970
|
-
e.size <= (e.max || -1) ||
|
|
1971
|
-
e.clean(),
|
|
1968
|
+
}, xn = /* @__PURE__ */ new WeakSet();
|
|
1969
|
+
function Sn(e) {
|
|
1970
|
+
e.size <= (e.max || -1) || xn.has(e) || (xn.add(e), setTimeout(function() {
|
|
1971
|
+
e.clean(), xn.delete(e);
|
|
1972
1972
|
}, 100));
|
|
1973
1973
|
}
|
|
1974
|
-
var
|
|
1975
|
-
var n = new
|
|
1974
|
+
var Cn = function(e, t) {
|
|
1975
|
+
var n = new bn(e, t);
|
|
1976
1976
|
return n.set = function(e, t) {
|
|
1977
|
-
var n =
|
|
1978
|
-
return
|
|
1977
|
+
var n = bn.prototype.set.call(this, e, t);
|
|
1978
|
+
return Sn(this), n;
|
|
1979
1979
|
}, n;
|
|
1980
|
-
},
|
|
1981
|
-
var n = new
|
|
1980
|
+
}, wn = function(e, t) {
|
|
1981
|
+
var n = new pn(e, t);
|
|
1982
1982
|
return n.set = function(e, t) {
|
|
1983
|
-
var n =
|
|
1984
|
-
return
|
|
1983
|
+
var n = pn.prototype.set.call(this, e, t);
|
|
1984
|
+
return Sn(this), n;
|
|
1985
1985
|
}, n;
|
|
1986
|
-
},
|
|
1987
|
-
function
|
|
1988
|
-
|
|
1986
|
+
}, Tn = E({}, be[Symbol.for("apollo.cacheSize")]), I = {};
|
|
1987
|
+
function En(e, t) {
|
|
1988
|
+
I[e] = t;
|
|
1989
1989
|
}
|
|
1990
|
-
var
|
|
1991
|
-
function
|
|
1990
|
+
var Dn = globalThis.__DEV__ === !1 ? void 0 : jn, On = globalThis.__DEV__ === !1 ? void 0 : Nn, kn = globalThis.__DEV__ === !1 ? void 0 : Mn;
|
|
1991
|
+
function An() {
|
|
1992
1992
|
return Object.fromEntries(Object.entries({
|
|
1993
1993
|
parser: 1e3,
|
|
1994
1994
|
canonicalStringify: 1e3,
|
|
@@ -2006,88 +2006,88 @@ function kn() {
|
|
|
2006
2006
|
"inMemoryCache.executeSubSelectedArray": 1e4
|
|
2007
2007
|
}).map(function(e) {
|
|
2008
2008
|
var t = e[0], n = e[1];
|
|
2009
|
-
return [t,
|
|
2009
|
+
return [t, Tn[t] || n];
|
|
2010
2010
|
}));
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function jn() {
|
|
2013
2013
|
var e;
|
|
2014
2014
|
if (globalThis.__DEV__ === !1) throw Error("only supported in development mode");
|
|
2015
2015
|
return {
|
|
2016
|
-
limits:
|
|
2016
|
+
limits: An(),
|
|
2017
2017
|
sizes: E({
|
|
2018
|
-
print:
|
|
2019
|
-
parser:
|
|
2020
|
-
canonicalStringify:
|
|
2021
|
-
links:
|
|
2018
|
+
print: I.print?.call(I),
|
|
2019
|
+
parser: I.parser?.call(I),
|
|
2020
|
+
canonicalStringify: I.canonicalStringify?.call(I),
|
|
2021
|
+
links: Rn(this.link),
|
|
2022
2022
|
queryManager: {
|
|
2023
2023
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
2024
|
-
documentTransforms:
|
|
2024
|
+
documentTransforms: In(this.queryManager.documentTransform)
|
|
2025
2025
|
}
|
|
2026
2026
|
}, (e = this.cache).getMemoryInternals?.call(e))
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
function jn() {
|
|
2030
|
-
return { cache: { fragmentQueryDocuments: R(this.getFragmentDoc) } };
|
|
2031
|
-
}
|
|
2032
2029
|
function Mn() {
|
|
2030
|
+
return { cache: { fragmentQueryDocuments: L(this.getFragmentDoc) } };
|
|
2031
|
+
}
|
|
2032
|
+
function Nn() {
|
|
2033
2033
|
var e = this.config.fragments;
|
|
2034
|
-
return E(E({},
|
|
2035
|
-
addTypenameDocumentTransform:
|
|
2034
|
+
return E(E({}, Mn.apply(this)), {
|
|
2035
|
+
addTypenameDocumentTransform: In(this.addTypenameTransform),
|
|
2036
2036
|
inMemoryCache: {
|
|
2037
|
-
executeSelectionSet:
|
|
2038
|
-
executeSubSelectedArray:
|
|
2039
|
-
maybeBroadcastWatch:
|
|
2037
|
+
executeSelectionSet: L(this.storeReader.executeSelectionSet),
|
|
2038
|
+
executeSubSelectedArray: L(this.storeReader.executeSubSelectedArray),
|
|
2039
|
+
maybeBroadcastWatch: L(this.maybeBroadcastWatch)
|
|
2040
2040
|
},
|
|
2041
2041
|
fragmentRegistry: {
|
|
2042
|
-
findFragmentSpreads:
|
|
2043
|
-
lookup:
|
|
2044
|
-
transform:
|
|
2042
|
+
findFragmentSpreads: L(e?.findFragmentSpreads),
|
|
2043
|
+
lookup: L(e?.lookup),
|
|
2044
|
+
transform: L(e?.transform)
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Pn(e) {
|
|
2049
2049
|
return !!e && "dirtyKey" in e;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2051
|
+
function L(e) {
|
|
2052
|
+
return Pn(e) ? e.size : void 0;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Fn(e) {
|
|
2055
2055
|
return e != null;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return
|
|
2057
|
+
function In(e) {
|
|
2058
|
+
return Ln(e).map(function(e) {
|
|
2059
2059
|
return { cache: e };
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
2062
|
-
function In(e) {
|
|
2063
|
-
return e ? D(D([R(e?.performWork)], In(e?.left), !0), In(e?.right), !0).filter(Pn) : [];
|
|
2064
|
-
}
|
|
2065
2062
|
function Ln(e) {
|
|
2066
|
-
return e ? D(D([(e?.
|
|
2063
|
+
return e ? D(D([L(e?.performWork)], Ln(e?.left), !0), Ln(e?.right), !0).filter(Fn) : [];
|
|
2064
|
+
}
|
|
2065
|
+
function Rn(e) {
|
|
2066
|
+
return e ? D(D([(e?.getMemoryInternals)?.call(e)], Rn(e?.left), !0), Rn(e?.right), !0).filter(Fn) : [];
|
|
2067
2067
|
}
|
|
2068
2068
|
//#endregion
|
|
2069
2069
|
//#region node_modules/@apollo/client/utilities/common/canonicalStringify.js
|
|
2070
|
-
var
|
|
2071
|
-
return JSON.stringify(e,
|
|
2070
|
+
var zn = Object.assign(function(e) {
|
|
2071
|
+
return JSON.stringify(e, Vn);
|
|
2072
2072
|
}, { reset: function() {
|
|
2073
|
-
|
|
2073
|
+
Bn = new wn(Tn.canonicalStringify || 1e3);
|
|
2074
2074
|
} });
|
|
2075
|
-
globalThis.__DEV__ !== !1 &&
|
|
2076
|
-
return
|
|
2075
|
+
globalThis.__DEV__ !== !1 && En("canonicalStringify", function() {
|
|
2076
|
+
return Bn.size;
|
|
2077
2077
|
});
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
function
|
|
2078
|
+
var Bn;
|
|
2079
|
+
zn.reset();
|
|
2080
|
+
function Vn(e, t) {
|
|
2081
2081
|
if (t && typeof t == "object") {
|
|
2082
2082
|
var n = Object.getPrototypeOf(t);
|
|
2083
2083
|
if (n === Object.prototype || n === null) {
|
|
2084
2084
|
var r = Object.keys(t);
|
|
2085
|
-
if (r.every(
|
|
2086
|
-
var i = JSON.stringify(r), a =
|
|
2085
|
+
if (r.every(Hn)) return t;
|
|
2086
|
+
var i = JSON.stringify(r), a = Bn.get(i);
|
|
2087
2087
|
if (!a) {
|
|
2088
2088
|
r.sort();
|
|
2089
2089
|
var o = JSON.stringify(r);
|
|
2090
|
-
a =
|
|
2090
|
+
a = Bn.get(o) || r, Bn.set(i, a), Bn.set(o, a);
|
|
2091
2091
|
}
|
|
2092
2092
|
var s = Object.create(n);
|
|
2093
2093
|
return a.forEach(function(e) {
|
|
@@ -2097,81 +2097,81 @@ function Bn(e, t) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
return t;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Hn(e, t, n) {
|
|
2101
2101
|
return t === 0 || n[t - 1] <= e;
|
|
2102
2102
|
}
|
|
2103
2103
|
//#endregion
|
|
2104
2104
|
//#region node_modules/@apollo/client/utilities/graphql/storeUtils.js
|
|
2105
|
-
function Hn(e) {
|
|
2106
|
-
return { __ref: String(e) };
|
|
2107
|
-
}
|
|
2108
2105
|
function Un(e) {
|
|
2109
|
-
return
|
|
2106
|
+
return { __ref: String(e) };
|
|
2110
2107
|
}
|
|
2111
2108
|
function Wn(e) {
|
|
2112
|
-
return
|
|
2109
|
+
return !!(e && typeof e == "object" && typeof e.__ref == "string");
|
|
2113
2110
|
}
|
|
2114
2111
|
function Gn(e) {
|
|
2115
|
-
return e.kind === "
|
|
2112
|
+
return sn(e) && e.kind === "Document" && Array.isArray(e.definitions);
|
|
2116
2113
|
}
|
|
2117
2114
|
function Kn(e) {
|
|
2118
|
-
return e.kind === "
|
|
2115
|
+
return e.kind === "StringValue";
|
|
2119
2116
|
}
|
|
2120
2117
|
function qn(e) {
|
|
2121
|
-
return e.kind === "
|
|
2118
|
+
return e.kind === "BooleanValue";
|
|
2122
2119
|
}
|
|
2123
2120
|
function Jn(e) {
|
|
2124
|
-
return e.kind === "
|
|
2121
|
+
return e.kind === "IntValue";
|
|
2125
2122
|
}
|
|
2126
2123
|
function Yn(e) {
|
|
2127
|
-
return e.kind === "
|
|
2124
|
+
return e.kind === "FloatValue";
|
|
2128
2125
|
}
|
|
2129
2126
|
function Xn(e) {
|
|
2130
|
-
return e.kind === "
|
|
2127
|
+
return e.kind === "Variable";
|
|
2131
2128
|
}
|
|
2132
2129
|
function Zn(e) {
|
|
2133
|
-
return e.kind === "
|
|
2130
|
+
return e.kind === "ObjectValue";
|
|
2134
2131
|
}
|
|
2135
2132
|
function Qn(e) {
|
|
2136
|
-
return e.kind === "
|
|
2133
|
+
return e.kind === "ListValue";
|
|
2137
2134
|
}
|
|
2138
2135
|
function $n(e) {
|
|
2136
|
+
return e.kind === "EnumValue";
|
|
2137
|
+
}
|
|
2138
|
+
function er(e) {
|
|
2139
2139
|
return e.kind === "NullValue";
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2142
|
-
if (
|
|
2143
|
-
else if (
|
|
2144
|
-
else if (
|
|
2141
|
+
function tr(e, t, n, r) {
|
|
2142
|
+
if (Jn(n) || Yn(n)) e[t.value] = Number(n.value);
|
|
2143
|
+
else if (qn(n) || Kn(n)) e[t.value] = n.value;
|
|
2144
|
+
else if (Zn(n)) {
|
|
2145
2145
|
var i = {};
|
|
2146
2146
|
n.fields.map(function(e) {
|
|
2147
|
-
return
|
|
2147
|
+
return tr(i, e.name, e.value, r);
|
|
2148
2148
|
}), e[t.value] = i;
|
|
2149
|
-
} else if (
|
|
2149
|
+
} else if (Xn(n)) {
|
|
2150
2150
|
var a = (r || {})[n.name.value];
|
|
2151
2151
|
e[t.value] = a;
|
|
2152
|
-
} else if (
|
|
2152
|
+
} else if (Qn(n)) e[t.value] = n.values.map(function(e) {
|
|
2153
2153
|
var n = {};
|
|
2154
|
-
return
|
|
2154
|
+
return tr(n, t, e, r), n[t.value];
|
|
2155
2155
|
});
|
|
2156
|
-
else if (
|
|
2157
|
-
else if (
|
|
2156
|
+
else if ($n(n)) e[t.value] = n.value;
|
|
2157
|
+
else if (er(n)) e[t.value] = null;
|
|
2158
2158
|
else throw Te(123, t.value, n.kind);
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function nr(e, t) {
|
|
2161
2161
|
var n = null;
|
|
2162
2162
|
e.directives && (n = {}, e.directives.forEach(function(e) {
|
|
2163
2163
|
n[e.name.value] = {}, e.arguments && e.arguments.forEach(function(r) {
|
|
2164
2164
|
var i = r.name, a = r.value;
|
|
2165
|
-
return
|
|
2165
|
+
return tr(n[e.name.value], i, a, t);
|
|
2166
2166
|
});
|
|
2167
2167
|
}));
|
|
2168
2168
|
var r = null;
|
|
2169
2169
|
return e.arguments && e.arguments.length && (r = {}, e.arguments.forEach(function(e) {
|
|
2170
2170
|
var n = e.name, i = e.value;
|
|
2171
|
-
return
|
|
2172
|
-
})),
|
|
2171
|
+
return tr(r, n, i, t);
|
|
2172
|
+
})), ar(e.name.value, r, n);
|
|
2173
2173
|
}
|
|
2174
|
-
var
|
|
2174
|
+
var rr = [
|
|
2175
2175
|
"connection",
|
|
2176
2176
|
"include",
|
|
2177
2177
|
"skip",
|
|
@@ -2179,62 +2179,62 @@ var nr = [
|
|
|
2179
2179
|
"rest",
|
|
2180
2180
|
"export",
|
|
2181
2181
|
"nonreactive"
|
|
2182
|
-
],
|
|
2182
|
+
], ir = zn, ar = Object.assign(function(e, t, n) {
|
|
2183
2183
|
if (t && n && n.connection && n.connection.key) if (n.connection.filter && n.connection.filter.length > 0) {
|
|
2184
2184
|
var r = n.connection.filter ? n.connection.filter : [];
|
|
2185
2185
|
r.sort();
|
|
2186
2186
|
var i = {};
|
|
2187
2187
|
return r.forEach(function(e) {
|
|
2188
2188
|
i[e] = t[e];
|
|
2189
|
-
}), `${n.connection.key}(${
|
|
2189
|
+
}), `${n.connection.key}(${ir(i)})`;
|
|
2190
2190
|
} else return n.connection.key;
|
|
2191
2191
|
var a = e;
|
|
2192
2192
|
if (t) {
|
|
2193
|
-
var o =
|
|
2193
|
+
var o = ir(t);
|
|
2194
2194
|
a += `(${o})`;
|
|
2195
2195
|
}
|
|
2196
2196
|
return n && Object.keys(n).forEach(function(e) {
|
|
2197
|
-
|
|
2197
|
+
rr.indexOf(e) === -1 && (n[e] && Object.keys(n[e]).length ? a += `@${e}(${ir(n[e])})` : a += `@${e}`);
|
|
2198
2198
|
}), a;
|
|
2199
2199
|
}, { setStringify: function(e) {
|
|
2200
|
-
var t =
|
|
2201
|
-
return
|
|
2200
|
+
var t = ir;
|
|
2201
|
+
return ir = e, t;
|
|
2202
2202
|
} });
|
|
2203
|
-
function
|
|
2203
|
+
function or(e, t) {
|
|
2204
2204
|
if (e.arguments && e.arguments.length) {
|
|
2205
2205
|
var n = {};
|
|
2206
2206
|
return e.arguments.forEach(function(e) {
|
|
2207
2207
|
var r = e.name, i = e.value;
|
|
2208
|
-
return
|
|
2208
|
+
return tr(n, r, i, t);
|
|
2209
2209
|
}), n;
|
|
2210
2210
|
}
|
|
2211
2211
|
return null;
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function sr(e) {
|
|
2214
2214
|
return e.alias ? e.alias.value : e.name.value;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function cr(e, t, n) {
|
|
2217
2217
|
for (var r, i = 0, a = t.selections; i < a.length; i++) {
|
|
2218
2218
|
var o = a[i];
|
|
2219
|
-
if (
|
|
2220
|
-
if (o.name.value === "__typename") return e[
|
|
2219
|
+
if (lr(o)) {
|
|
2220
|
+
if (o.name.value === "__typename") return e[sr(o)];
|
|
2221
2221
|
} else r ? r.push(o) : r = [o];
|
|
2222
2222
|
}
|
|
2223
2223
|
if (typeof e.__typename == "string") return e.__typename;
|
|
2224
2224
|
if (r) for (var s = 0, c = r; s < c.length; s++) {
|
|
2225
|
-
var o = c[s], l =
|
|
2225
|
+
var o = c[s], l = cr(e, un(o, n).selectionSet, n);
|
|
2226
2226
|
if (typeof l == "string") return l;
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function lr(e) {
|
|
2230
2230
|
return e.kind === "Field";
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function ur(e) {
|
|
2233
2233
|
return e.kind === "InlineFragment";
|
|
2234
2234
|
}
|
|
2235
2235
|
//#endregion
|
|
2236
2236
|
//#region node_modules/@apollo/client/utilities/graphql/getFromAST.js
|
|
2237
|
-
function
|
|
2237
|
+
function dr(e) {
|
|
2238
2238
|
A(e && e.kind === "Document", 115);
|
|
2239
2239
|
var t = e.definitions.filter(function(e) {
|
|
2240
2240
|
return e.kind !== "FragmentDefinition";
|
|
@@ -2244,34 +2244,34 @@ function ur(e) {
|
|
|
2244
2244
|
});
|
|
2245
2245
|
return A(t.length <= 1, 117, t.length), e;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2247
|
+
function fr(e) {
|
|
2248
|
+
return dr(e), e.definitions.filter(function(e) {
|
|
2249
2249
|
return e.kind === "OperationDefinition";
|
|
2250
2250
|
})[0];
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function pr(e) {
|
|
2253
2253
|
return e.definitions.filter(function(e) {
|
|
2254
2254
|
return e.kind === "OperationDefinition" && !!e.name;
|
|
2255
2255
|
}).map(function(e) {
|
|
2256
2256
|
return e.name.value;
|
|
2257
2257
|
})[0] || null;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function mr(e) {
|
|
2260
2260
|
return e.definitions.filter(function(e) {
|
|
2261
2261
|
return e.kind === "FragmentDefinition";
|
|
2262
2262
|
});
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2265
|
-
var t =
|
|
2264
|
+
function hr(e) {
|
|
2265
|
+
var t = fr(e);
|
|
2266
2266
|
return A(t && t.operation === "query", 118), t;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function gr(e) {
|
|
2269
2269
|
A(e.kind === "Document", 119), A(e.definitions.length <= 1, 120);
|
|
2270
2270
|
var t = e.definitions[0];
|
|
2271
2271
|
return A(t.kind === "FragmentDefinition", 121), t;
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2274
|
-
|
|
2273
|
+
function _r(e) {
|
|
2274
|
+
dr(e);
|
|
2275
2275
|
for (var t, n = 0, r = e.definitions; n < r.length; n++) {
|
|
2276
2276
|
var i = r[n];
|
|
2277
2277
|
if (i.kind === "OperationDefinition") {
|
|
@@ -2283,79 +2283,79 @@ function gr(e) {
|
|
|
2283
2283
|
if (t) return t;
|
|
2284
2284
|
throw Te(122);
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function vr(e) {
|
|
2287
2287
|
var t = Object.create(null), n = e && e.variableDefinitions;
|
|
2288
2288
|
return n && n.length && n.forEach(function(e) {
|
|
2289
|
-
e.defaultValue &&
|
|
2289
|
+
e.defaultValue && tr(t, e.variable.name, e.defaultValue);
|
|
2290
2290
|
}), t;
|
|
2291
2291
|
}
|
|
2292
2292
|
//#endregion
|
|
2293
2293
|
//#region node_modules/@wry/context/lib/slot.js
|
|
2294
|
-
var
|
|
2294
|
+
var R = null, yr = {}, br = 1, xr = () => class {
|
|
2295
2295
|
constructor() {
|
|
2296
2296
|
this.id = [
|
|
2297
2297
|
"slot",
|
|
2298
|
-
|
|
2298
|
+
br++,
|
|
2299
2299
|
Date.now(),
|
|
2300
2300
|
Math.random().toString(36).slice(2)
|
|
2301
2301
|
].join(":");
|
|
2302
2302
|
}
|
|
2303
2303
|
hasValue() {
|
|
2304
|
-
for (let e =
|
|
2304
|
+
for (let e = R; e; e = e.parent) if (this.id in e.slots) {
|
|
2305
2305
|
let t = e.slots[this.id];
|
|
2306
|
-
if (t ===
|
|
2307
|
-
return e !==
|
|
2306
|
+
if (t === yr) break;
|
|
2307
|
+
return e !== R && (R.slots[this.id] = t), !0;
|
|
2308
2308
|
}
|
|
2309
|
-
return
|
|
2309
|
+
return R && (R.slots[this.id] = yr), !1;
|
|
2310
2310
|
}
|
|
2311
2311
|
getValue() {
|
|
2312
|
-
if (this.hasValue()) return
|
|
2312
|
+
if (this.hasValue()) return R.slots[this.id];
|
|
2313
2313
|
}
|
|
2314
2314
|
withValue(e, t, n, r) {
|
|
2315
2315
|
let i = {
|
|
2316
2316
|
__proto__: null,
|
|
2317
2317
|
[this.id]: e
|
|
2318
|
-
}, a =
|
|
2319
|
-
|
|
2318
|
+
}, a = R;
|
|
2319
|
+
R = {
|
|
2320
2320
|
parent: a,
|
|
2321
2321
|
slots: i
|
|
2322
2322
|
};
|
|
2323
2323
|
try {
|
|
2324
2324
|
return t.apply(r, n);
|
|
2325
2325
|
} finally {
|
|
2326
|
-
|
|
2326
|
+
R = a;
|
|
2327
2327
|
}
|
|
2328
2328
|
}
|
|
2329
2329
|
static bind(e) {
|
|
2330
|
-
let t =
|
|
2330
|
+
let t = R;
|
|
2331
2331
|
return function() {
|
|
2332
|
-
let n =
|
|
2332
|
+
let n = R;
|
|
2333
2333
|
try {
|
|
2334
|
-
return
|
|
2334
|
+
return R = t, e.apply(this, arguments);
|
|
2335
2335
|
} finally {
|
|
2336
|
-
|
|
2336
|
+
R = n;
|
|
2337
2337
|
}
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
static noContext(e, t, n) {
|
|
2341
|
-
if (
|
|
2342
|
-
let r =
|
|
2341
|
+
if (R) {
|
|
2342
|
+
let r = R;
|
|
2343
2343
|
try {
|
|
2344
|
-
return
|
|
2344
|
+
return R = null, e.apply(n, t);
|
|
2345
2345
|
} finally {
|
|
2346
|
-
|
|
2346
|
+
R = r;
|
|
2347
2347
|
}
|
|
2348
2348
|
} else return e.apply(n, t);
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
|
-
function
|
|
2351
|
+
function Sr(e) {
|
|
2352
2352
|
try {
|
|
2353
2353
|
return e();
|
|
2354
2354
|
} catch {}
|
|
2355
2355
|
}
|
|
2356
|
-
var
|
|
2356
|
+
var Cr = "@wry/context:Slot", wr = Sr(() => globalThis) || Sr(() => global) || Object.create(null), Tr = wr[Cr] || Array[Cr] || (function(e) {
|
|
2357
2357
|
try {
|
|
2358
|
-
Object.defineProperty(
|
|
2358
|
+
Object.defineProperty(wr, Cr, {
|
|
2359
2359
|
value: e,
|
|
2360
2360
|
enumerable: !1,
|
|
2361
2361
|
writable: !1,
|
|
@@ -2364,76 +2364,76 @@ var Sr = "@wry/context:Slot", Cr = xr(() => globalThis) || xr(() => global) || O
|
|
|
2364
2364
|
} finally {
|
|
2365
2365
|
return e;
|
|
2366
2366
|
}
|
|
2367
|
-
})(
|
|
2367
|
+
})(xr()), { bind: Er, noContext: Dr } = Tr, Or = new Tr(), { hasOwnProperty: kr } = Object.prototype, Ar = Array.from || function(e) {
|
|
2368
2368
|
let t = [];
|
|
2369
2369
|
return e.forEach((e) => t.push(e)), t;
|
|
2370
2370
|
};
|
|
2371
|
-
function
|
|
2371
|
+
function jr(e) {
|
|
2372
2372
|
let { unsubscribe: t } = e;
|
|
2373
2373
|
typeof t == "function" && (e.unsubscribe = void 0, t());
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
2376
|
//#region node_modules/optimism/lib/entry.js
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2377
|
+
var Mr = [], Nr = 100;
|
|
2378
|
+
function Pr(e, t) {
|
|
2379
2379
|
if (!e) throw Error(t || "assertion failure");
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Fr(e, t) {
|
|
2382
2382
|
let n = e.length;
|
|
2383
2383
|
return n > 0 && n === t.length && e[n - 1] === t[n - 1];
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Ir(e) {
|
|
2386
2386
|
switch (e.length) {
|
|
2387
2387
|
case 0: throw Error("unknown value");
|
|
2388
2388
|
case 1: return e[0];
|
|
2389
2389
|
case 2: throw e[1];
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Lr(e) {
|
|
2393
2393
|
return e.slice(0);
|
|
2394
2394
|
}
|
|
2395
|
-
var
|
|
2395
|
+
var Rr = class e {
|
|
2396
2396
|
constructor(t) {
|
|
2397
2397
|
this.fn = t, this.parents = /* @__PURE__ */ new Set(), this.childValues = /* @__PURE__ */ new Map(), this.dirtyChildren = null, this.dirty = !0, this.recomputing = !1, this.value = [], this.deps = null, ++e.count;
|
|
2398
2398
|
}
|
|
2399
2399
|
peek() {
|
|
2400
|
-
if (this.value.length === 1 && !
|
|
2400
|
+
if (this.value.length === 1 && !z(this)) return zr(this), this.value[0];
|
|
2401
2401
|
}
|
|
2402
2402
|
recompute(e) {
|
|
2403
|
-
return
|
|
2403
|
+
return Pr(!this.recomputing, "already recomputing"), zr(this), z(this) ? Br(this, e) : Ir(this.value);
|
|
2404
2404
|
}
|
|
2405
2405
|
setDirty() {
|
|
2406
|
-
this.dirty || (this.dirty = !0,
|
|
2406
|
+
this.dirty || (this.dirty = !0, Ur(this), jr(this));
|
|
2407
2407
|
}
|
|
2408
2408
|
dispose() {
|
|
2409
|
-
this.setDirty(),
|
|
2410
|
-
e.setDirty(),
|
|
2409
|
+
this.setDirty(), Yr(this), Gr(this, (e, t) => {
|
|
2410
|
+
e.setDirty(), Xr(e, this);
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
2413
|
forget() {
|
|
2414
2414
|
this.dispose();
|
|
2415
2415
|
}
|
|
2416
2416
|
dependOn(e) {
|
|
2417
|
-
e.add(this), this.deps || (this.deps =
|
|
2417
|
+
e.add(this), this.deps || (this.deps = Mr.pop() || /* @__PURE__ */ new Set()), this.deps.add(e);
|
|
2418
2418
|
}
|
|
2419
2419
|
forgetDeps() {
|
|
2420
|
-
this.deps && (
|
|
2420
|
+
this.deps && (Ar(this.deps).forEach((e) => e.delete(this)), this.deps.clear(), Mr.push(this.deps), this.deps = null);
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
function
|
|
2425
|
-
let t =
|
|
2426
|
-
if (t) return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []),
|
|
2427
|
-
}
|
|
2428
|
-
function zr(e, t) {
|
|
2429
|
-
return Jr(e), Dr.withValue(e, Br, [e, t]), Xr(e, t) && Vr(e), Fr(e.value);
|
|
2423
|
+
Rr.count = 0;
|
|
2424
|
+
function zr(e) {
|
|
2425
|
+
let t = Or.getValue();
|
|
2426
|
+
if (t) return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []), z(e) ? Kr(t, e) : qr(t, e), t;
|
|
2430
2427
|
}
|
|
2431
2428
|
function Br(e, t) {
|
|
2429
|
+
return Yr(e), Or.withValue(e, Vr, [e, t]), Zr(e, t) && Hr(e), Ir(e.value);
|
|
2430
|
+
}
|
|
2431
|
+
function Vr(e, t) {
|
|
2432
2432
|
e.recomputing = !0;
|
|
2433
2433
|
let { normalizeResult: n } = e, r;
|
|
2434
|
-
n && e.value.length === 1 && (r =
|
|
2434
|
+
n && e.value.length === 1 && (r = Lr(e.value)), e.value.length = 0;
|
|
2435
2435
|
try {
|
|
2436
|
-
if (e.value[0] = e.fn.apply(null, t), n && r && !
|
|
2436
|
+
if (e.value[0] = e.fn.apply(null, t), n && r && !Fr(r, e.value)) try {
|
|
2437
2437
|
e.value[0] = n(e.value[0], r[0]);
|
|
2438
2438
|
} catch {}
|
|
2439
2439
|
} catch (t) {
|
|
@@ -2441,52 +2441,52 @@ function Br(e, t) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
e.recomputing = !1;
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function z(e) {
|
|
2445
2445
|
return e.dirty || !!(e.dirtyChildren && e.dirtyChildren.size);
|
|
2446
2446
|
}
|
|
2447
|
-
function Vr(e) {
|
|
2448
|
-
e.dirty = !1, !B(e) && Ur(e);
|
|
2449
|
-
}
|
|
2450
2447
|
function Hr(e) {
|
|
2451
|
-
|
|
2448
|
+
e.dirty = !1, !z(e) && Wr(e);
|
|
2452
2449
|
}
|
|
2453
2450
|
function Ur(e) {
|
|
2454
|
-
|
|
2451
|
+
Gr(e, Kr);
|
|
2455
2452
|
}
|
|
2456
|
-
function Wr(e
|
|
2453
|
+
function Wr(e) {
|
|
2454
|
+
Gr(e, qr);
|
|
2455
|
+
}
|
|
2456
|
+
function Gr(e, t) {
|
|
2457
2457
|
let n = e.parents.size;
|
|
2458
2458
|
if (n) {
|
|
2459
|
-
let r =
|
|
2459
|
+
let r = Ar(e.parents);
|
|
2460
2460
|
for (let i = 0; i < n; ++i) t(r[i], e);
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
|
|
2465
|
-
let n = !
|
|
2466
|
-
if (!e.dirtyChildren) e.dirtyChildren =
|
|
2463
|
+
function Kr(e, t) {
|
|
2464
|
+
Pr(e.childValues.has(t)), Pr(z(t));
|
|
2465
|
+
let n = !z(e);
|
|
2466
|
+
if (!e.dirtyChildren) e.dirtyChildren = Mr.pop() || /* @__PURE__ */ new Set();
|
|
2467
2467
|
else if (e.dirtyChildren.has(t)) return;
|
|
2468
|
-
e.dirtyChildren.add(t), n &&
|
|
2468
|
+
e.dirtyChildren.add(t), n && Ur(e);
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2470
|
+
function qr(e, t) {
|
|
2471
|
+
Pr(e.childValues.has(t)), Pr(!z(t));
|
|
2472
2472
|
let n = e.childValues.get(t);
|
|
2473
|
-
n.length === 0 ? e.childValues.set(t,
|
|
2473
|
+
n.length === 0 ? e.childValues.set(t, Lr(t.value)) : Fr(n, t.value) || e.setDirty(), Jr(e, t), !z(e) && Wr(e);
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Jr(e, t) {
|
|
2476
2476
|
let n = e.dirtyChildren;
|
|
2477
|
-
n && (n.delete(t), n.size === 0 && (
|
|
2477
|
+
n && (n.delete(t), n.size === 0 && (Mr.length < Nr && Mr.push(n), e.dirtyChildren = null));
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function Yr(e) {
|
|
2480
2480
|
e.childValues.size > 0 && e.childValues.forEach((t, n) => {
|
|
2481
|
-
|
|
2482
|
-
}), e.forgetDeps(),
|
|
2483
|
-
}
|
|
2484
|
-
function Yr(e, t) {
|
|
2485
|
-
t.parents.delete(e), e.childValues.delete(t), qr(e, t);
|
|
2481
|
+
Xr(e, n);
|
|
2482
|
+
}), e.forgetDeps(), Pr(e.dirtyChildren === null);
|
|
2486
2483
|
}
|
|
2487
2484
|
function Xr(e, t) {
|
|
2485
|
+
t.parents.delete(e), e.childValues.delete(t), Jr(e, t);
|
|
2486
|
+
}
|
|
2487
|
+
function Zr(e, t) {
|
|
2488
2488
|
if (typeof e.subscribe == "function") try {
|
|
2489
|
-
|
|
2489
|
+
jr(e), e.unsubscribe = e.subscribe.apply(null, t);
|
|
2490
2490
|
} catch {
|
|
2491
2491
|
return e.setDirty(), !1;
|
|
2492
2492
|
}
|
|
@@ -2494,43 +2494,43 @@ function Xr(e, t) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
//#endregion
|
|
2496
2496
|
//#region node_modules/optimism/lib/dep.js
|
|
2497
|
-
var
|
|
2497
|
+
var Qr = {
|
|
2498
2498
|
setDirty: !0,
|
|
2499
2499
|
dispose: !0,
|
|
2500
2500
|
forget: !0
|
|
2501
2501
|
};
|
|
2502
|
-
function
|
|
2502
|
+
function $r(e) {
|
|
2503
2503
|
let t = /* @__PURE__ */ new Map(), n = e && e.subscribe;
|
|
2504
2504
|
function r(e) {
|
|
2505
|
-
let r =
|
|
2505
|
+
let r = Or.getValue();
|
|
2506
2506
|
if (r) {
|
|
2507
2507
|
let i = t.get(e);
|
|
2508
|
-
i || t.set(e, i = /* @__PURE__ */ new Set()), r.dependOn(i), typeof n == "function" && (
|
|
2508
|
+
i || t.set(e, i = /* @__PURE__ */ new Set()), r.dependOn(i), typeof n == "function" && (jr(i), i.unsubscribe = n(e));
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
return r.dirty = function(e, n) {
|
|
2512
2512
|
let r = t.get(e);
|
|
2513
2513
|
if (r) {
|
|
2514
|
-
let i = n &&
|
|
2515
|
-
|
|
2514
|
+
let i = n && kr.call(Qr, n) ? n : "setDirty";
|
|
2515
|
+
Ar(r).forEach((e) => e[i]()), t.delete(e), jr(r);
|
|
2516
2516
|
}
|
|
2517
2517
|
}, r;
|
|
2518
2518
|
}
|
|
2519
2519
|
//#endregion
|
|
2520
2520
|
//#region node_modules/optimism/lib/index.js
|
|
2521
|
-
var
|
|
2522
|
-
function
|
|
2523
|
-
return (
|
|
2521
|
+
var ei;
|
|
2522
|
+
function ti(...e) {
|
|
2523
|
+
return (ei || (ei = new Xt(typeof WeakMap == "function"))).lookupArray(e);
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2525
|
+
var ni = /* @__PURE__ */ new Set();
|
|
2526
|
+
function ri(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ti, normalizeResult: i, subscribe: a, cache: o = pn } = Object.create(null)) {
|
|
2527
2527
|
let s = typeof o == "function" ? new o(t, (e) => e.dispose()) : o, c = function() {
|
|
2528
2528
|
let t = r.apply(null, n ? n.apply(null, arguments) : arguments);
|
|
2529
2529
|
if (t === void 0) return e.apply(null, arguments);
|
|
2530
2530
|
let o = s.get(t);
|
|
2531
|
-
o || (s.set(t, o = new
|
|
2531
|
+
o || (s.set(t, o = new Rr(e)), o.normalizeResult = i, o.subscribe = a, o.forget = () => s.delete(t));
|
|
2532
2532
|
let c = o.recompute(Array.prototype.slice.call(arguments));
|
|
2533
|
-
return s.set(t, o),
|
|
2533
|
+
return s.set(t, o), ni.add(s), Or.hasValue() || (ni.forEach((e) => e.clean()), ni.clear()), c;
|
|
2534
2534
|
};
|
|
2535
2535
|
Object.defineProperty(c, "size", {
|
|
2536
2536
|
get: () => s.size,
|
|
@@ -2569,16 +2569,16 @@ function ni(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ei, normalizeRe
|
|
|
2569
2569
|
}
|
|
2570
2570
|
//#endregion
|
|
2571
2571
|
//#region node_modules/@apollo/client/utilities/common/arrays.js
|
|
2572
|
-
var
|
|
2573
|
-
function
|
|
2572
|
+
var ii = Array.isArray;
|
|
2573
|
+
function ai(e) {
|
|
2574
2574
|
return Array.isArray(e) && e.length > 0;
|
|
2575
2575
|
}
|
|
2576
2576
|
//#endregion
|
|
2577
2577
|
//#region node_modules/zen-observable-ts/module.js
|
|
2578
|
-
function
|
|
2578
|
+
function oi(e, t) {
|
|
2579
2579
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2580
2580
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
2581
|
-
if (Array.isArray(e) || (n =
|
|
2581
|
+
if (Array.isArray(e) || (n = si(e)) || t && e && typeof e.length == "number") {
|
|
2582
2582
|
n && (e = n);
|
|
2583
2583
|
var r = 0;
|
|
2584
2584
|
return function() {
|
|
@@ -2590,110 +2590,110 @@ function ai(e, t) {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function si(e, t) {
|
|
2594
2594
|
if (e) {
|
|
2595
|
-
if (typeof e == "string") return
|
|
2595
|
+
if (typeof e == "string") return ci(e, t);
|
|
2596
2596
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2597
2597
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2598
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
2598
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ci(e, t);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function ci(e, t) {
|
|
2602
2602
|
(t == null || t > e.length) && (t = e.length);
|
|
2603
2603
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2604
2604
|
return r;
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function li(e, t) {
|
|
2607
2607
|
for (var n = 0; n < t.length; n++) {
|
|
2608
2608
|
var r = t[n];
|
|
2609
2609
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2613
|
-
return t &&
|
|
2612
|
+
function ui(e, t, n) {
|
|
2613
|
+
return t && li(e.prototype, t), n && li(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2615
|
+
var di = function() {
|
|
2616
2616
|
return typeof Symbol == "function";
|
|
2617
|
-
}, di = function(e) {
|
|
2618
|
-
return ui() && !!Symbol[e];
|
|
2619
2617
|
}, fi = function(e) {
|
|
2620
|
-
return di(
|
|
2618
|
+
return di() && !!Symbol[e];
|
|
2619
|
+
}, pi = function(e) {
|
|
2620
|
+
return fi(e) ? Symbol[e] : "@@" + e;
|
|
2621
2621
|
};
|
|
2622
|
-
|
|
2623
|
-
var
|
|
2624
|
-
function
|
|
2622
|
+
di() && !fi("observable") && (Symbol.observable = Symbol("observable"));
|
|
2623
|
+
var mi = pi("iterator"), hi = pi("observable"), gi = pi("species");
|
|
2624
|
+
function _i(e, t) {
|
|
2625
2625
|
var n = e[t];
|
|
2626
2626
|
if (n != null) {
|
|
2627
2627
|
if (typeof n != "function") throw TypeError(n + " is not a function");
|
|
2628
2628
|
return n;
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
|
-
function _i(e) {
|
|
2632
|
-
var t = e.constructor;
|
|
2633
|
-
return t !== void 0 && (t = t[hi], t === null && (t = void 0)), t === void 0 ? Oi : t;
|
|
2634
|
-
}
|
|
2635
2631
|
function vi(e) {
|
|
2636
|
-
|
|
2632
|
+
var t = e.constructor;
|
|
2633
|
+
return t !== void 0 && (t = t[gi], t === null && (t = void 0)), t === void 0 ? ki : t;
|
|
2637
2634
|
}
|
|
2638
2635
|
function yi(e) {
|
|
2639
|
-
|
|
2636
|
+
return e instanceof ki;
|
|
2637
|
+
}
|
|
2638
|
+
function bi(e) {
|
|
2639
|
+
bi.log ? bi.log(e) : setTimeout(function() {
|
|
2640
2640
|
throw e;
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function xi(e) {
|
|
2644
2644
|
Promise.resolve().then(function() {
|
|
2645
2645
|
try {
|
|
2646
2646
|
e();
|
|
2647
2647
|
} catch (e) {
|
|
2648
|
-
|
|
2648
|
+
bi(e);
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
2652
|
-
function
|
|
2652
|
+
function Si(e) {
|
|
2653
2653
|
var t = e._cleanup;
|
|
2654
2654
|
if (t !== void 0 && (e._cleanup = void 0, t)) try {
|
|
2655
2655
|
if (typeof t == "function") t();
|
|
2656
2656
|
else {
|
|
2657
|
-
var n =
|
|
2657
|
+
var n = _i(t, "unsubscribe");
|
|
2658
2658
|
n && n.call(t);
|
|
2659
2659
|
}
|
|
2660
2660
|
} catch (e) {
|
|
2661
|
-
|
|
2661
|
+
bi(e);
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2664
|
+
function Ci(e) {
|
|
2665
2665
|
e._observer = void 0, e._queue = void 0, e._state = "closed";
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function wi(e) {
|
|
2668
2668
|
var t = e._queue;
|
|
2669
2669
|
if (t) {
|
|
2670
2670
|
e._queue = void 0, e._state = "ready";
|
|
2671
|
-
for (var n = 0; n < t.length && (
|
|
2671
|
+
for (var n = 0; n < t.length && (Ti(e, t[n].type, t[n].value), e._state !== "closed"); ++n);
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function Ti(e, t, n) {
|
|
2675
2675
|
e._state = "running";
|
|
2676
2676
|
var r = e._observer;
|
|
2677
2677
|
try {
|
|
2678
|
-
var i =
|
|
2678
|
+
var i = _i(r, t);
|
|
2679
2679
|
switch (t) {
|
|
2680
2680
|
case "next":
|
|
2681
2681
|
i && i.call(r, n);
|
|
2682
2682
|
break;
|
|
2683
2683
|
case "error":
|
|
2684
|
-
if (
|
|
2684
|
+
if (Ci(e), i) i.call(r, n);
|
|
2685
2685
|
else throw n;
|
|
2686
2686
|
break;
|
|
2687
2687
|
case "complete":
|
|
2688
|
-
|
|
2688
|
+
Ci(e), i && i.call(r);
|
|
2689
2689
|
break;
|
|
2690
2690
|
}
|
|
2691
2691
|
} catch (e) {
|
|
2692
|
-
|
|
2692
|
+
bi(e);
|
|
2693
2693
|
}
|
|
2694
|
-
e._state === "closed" ?
|
|
2694
|
+
e._state === "closed" ? Si(e) : e._state === "running" && (e._state = "ready");
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2696
|
+
function Ei(e, t, n) {
|
|
2697
2697
|
if (e._state !== "closed") {
|
|
2698
2698
|
if (e._state === "buffering") {
|
|
2699
2699
|
e._queue.push({
|
|
@@ -2706,18 +2706,18 @@ function Ti(e, t, n) {
|
|
|
2706
2706
|
e._state = "buffering", e._queue = [{
|
|
2707
2707
|
type: t,
|
|
2708
2708
|
value: n
|
|
2709
|
-
}],
|
|
2710
|
-
return
|
|
2709
|
+
}], xi(function() {
|
|
2710
|
+
return wi(e);
|
|
2711
2711
|
});
|
|
2712
2712
|
return;
|
|
2713
2713
|
}
|
|
2714
|
-
|
|
2714
|
+
Ti(e, t, n);
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
var
|
|
2717
|
+
var Di = /* @__PURE__ */ function() {
|
|
2718
2718
|
function e(e, t) {
|
|
2719
2719
|
this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
|
|
2720
|
-
var n = new
|
|
2720
|
+
var n = new Oi(this);
|
|
2721
2721
|
try {
|
|
2722
2722
|
this._cleanup = t.call(void 0, n);
|
|
2723
2723
|
} catch (e) {
|
|
@@ -2727,31 +2727,31 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
var t = e.prototype;
|
|
2729
2729
|
return t.unsubscribe = function() {
|
|
2730
|
-
this._state !== "closed" && (
|
|
2731
|
-
},
|
|
2730
|
+
this._state !== "closed" && (Ci(this), Si(this));
|
|
2731
|
+
}, ui(e, [{
|
|
2732
2732
|
key: "closed",
|
|
2733
2733
|
get: function() {
|
|
2734
2734
|
return this._state === "closed";
|
|
2735
2735
|
}
|
|
2736
2736
|
}]), e;
|
|
2737
|
-
}(),
|
|
2737
|
+
}(), Oi = /* @__PURE__ */ function() {
|
|
2738
2738
|
function e(e) {
|
|
2739
2739
|
this._subscription = e;
|
|
2740
2740
|
}
|
|
2741
2741
|
var t = e.prototype;
|
|
2742
2742
|
return t.next = function(e) {
|
|
2743
|
-
|
|
2743
|
+
Ei(this._subscription, "next", e);
|
|
2744
2744
|
}, t.error = function(e) {
|
|
2745
|
-
|
|
2745
|
+
Ei(this._subscription, "error", e);
|
|
2746
2746
|
}, t.complete = function() {
|
|
2747
|
-
|
|
2748
|
-
},
|
|
2747
|
+
Ei(this._subscription, "complete");
|
|
2748
|
+
}, ui(e, [{
|
|
2749
2749
|
key: "closed",
|
|
2750
2750
|
get: function() {
|
|
2751
2751
|
return this._subscription._state === "closed";
|
|
2752
2752
|
}
|
|
2753
2753
|
}]), e;
|
|
2754
|
-
}(),
|
|
2754
|
+
}(), ki = /* @__PURE__ */ function() {
|
|
2755
2755
|
function e(t) {
|
|
2756
2756
|
if (!(this instanceof e)) throw TypeError("Observable cannot be called as a function");
|
|
2757
2757
|
if (typeof t != "function") throw TypeError("Observable initializer must be a function");
|
|
@@ -2763,7 +2763,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2763
2763
|
next: e,
|
|
2764
2764
|
error: arguments[1],
|
|
2765
2765
|
complete: arguments[2]
|
|
2766
|
-
}), new
|
|
2766
|
+
}), new Di(e, this._subscriber);
|
|
2767
2767
|
}, t.forEach = function(e) {
|
|
2768
2768
|
var t = this;
|
|
2769
2769
|
return new Promise(function(n, r) {
|
|
@@ -2789,7 +2789,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2789
2789
|
}, t.map = function(e) {
|
|
2790
2790
|
var t = this;
|
|
2791
2791
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2792
|
-
return new (
|
|
2792
|
+
return new (vi(this))(function(n) {
|
|
2793
2793
|
return t.subscribe({
|
|
2794
2794
|
next: function(t) {
|
|
2795
2795
|
try {
|
|
@@ -2810,7 +2810,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2810
2810
|
}, t.filter = function(e) {
|
|
2811
2811
|
var t = this;
|
|
2812
2812
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2813
|
-
return new (
|
|
2813
|
+
return new (vi(this))(function(n) {
|
|
2814
2814
|
return t.subscribe({
|
|
2815
2815
|
next: function(t) {
|
|
2816
2816
|
try {
|
|
@@ -2831,7 +2831,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2831
2831
|
}, t.reduce = function(e) {
|
|
2832
2832
|
var t = this;
|
|
2833
2833
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2834
|
-
var n =
|
|
2834
|
+
var n = vi(this), r = arguments.length > 1, i = !1, a = arguments[1];
|
|
2835
2835
|
return new n(function(n) {
|
|
2836
2836
|
return t.subscribe({
|
|
2837
2837
|
next: function(t) {
|
|
@@ -2853,7 +2853,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2853
2853
|
});
|
|
2854
2854
|
});
|
|
2855
2855
|
}, t.concat = function() {
|
|
2856
|
-
var e = this, t = [...arguments], n =
|
|
2856
|
+
var e = this, t = [...arguments], n = vi(this);
|
|
2857
2857
|
return new n(function(r) {
|
|
2858
2858
|
var i, a = 0;
|
|
2859
2859
|
function o(e) {
|
|
@@ -2876,7 +2876,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2876
2876
|
}, t.flatMap = function(e) {
|
|
2877
2877
|
var t = this;
|
|
2878
2878
|
if (typeof e != "function") throw TypeError(e + " is not a function");
|
|
2879
|
-
var n =
|
|
2879
|
+
var n = vi(this);
|
|
2880
2880
|
return new n(function(r) {
|
|
2881
2881
|
var i = [], a = t.subscribe({
|
|
2882
2882
|
next: function(t) {
|
|
@@ -2915,23 +2915,23 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2915
2915
|
}), a.unsubscribe();
|
|
2916
2916
|
};
|
|
2917
2917
|
});
|
|
2918
|
-
}, t[
|
|
2918
|
+
}, t[hi] = function() {
|
|
2919
2919
|
return this;
|
|
2920
2920
|
}, e.from = function(t) {
|
|
2921
2921
|
var n = typeof this == "function" ? this : e;
|
|
2922
2922
|
if (t == null) throw TypeError(t + " is not an object");
|
|
2923
|
-
var r =
|
|
2923
|
+
var r = _i(t, hi);
|
|
2924
2924
|
if (r) {
|
|
2925
2925
|
var i = r.call(t);
|
|
2926
2926
|
if (Object(i) !== i) throw TypeError(i + " is not an object");
|
|
2927
|
-
return
|
|
2927
|
+
return yi(i) && i.constructor === n ? i : new n(function(e) {
|
|
2928
2928
|
return i.subscribe(e);
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
|
-
if (
|
|
2932
|
-
|
|
2931
|
+
if (fi("iterator") && (r = _i(t, mi), r)) return new n(function(e) {
|
|
2932
|
+
xi(function() {
|
|
2933
2933
|
if (!e.closed) {
|
|
2934
|
-
for (var n =
|
|
2934
|
+
for (var n = oi(r.call(t)), i; !(i = n()).done;) {
|
|
2935
2935
|
var a = i.value;
|
|
2936
2936
|
if (e.next(a), e.closed) return;
|
|
2937
2937
|
}
|
|
@@ -2940,7 +2940,7 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2940
2940
|
});
|
|
2941
2941
|
});
|
|
2942
2942
|
if (Array.isArray(t)) return new n(function(e) {
|
|
2943
|
-
|
|
2943
|
+
xi(function() {
|
|
2944
2944
|
if (!e.closed) {
|
|
2945
2945
|
for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
|
|
2946
2946
|
e.complete();
|
|
@@ -2951,66 +2951,66 @@ var Ei = /* @__PURE__ */ function() {
|
|
|
2951
2951
|
}, e.of = function() {
|
|
2952
2952
|
var t = [...arguments];
|
|
2953
2953
|
return new (typeof this == "function" ? this : e)(function(e) {
|
|
2954
|
-
|
|
2954
|
+
xi(function() {
|
|
2955
2955
|
if (!e.closed) {
|
|
2956
2956
|
for (var n = 0; n < t.length; ++n) if (e.next(t[n]), e.closed) return;
|
|
2957
2957
|
e.complete();
|
|
2958
2958
|
}
|
|
2959
2959
|
});
|
|
2960
2960
|
});
|
|
2961
|
-
},
|
|
2962
|
-
key:
|
|
2961
|
+
}, ui(e, null, [{
|
|
2962
|
+
key: gi,
|
|
2963
2963
|
get: function() {
|
|
2964
2964
|
return this;
|
|
2965
2965
|
}
|
|
2966
2966
|
}]), e;
|
|
2967
2967
|
}();
|
|
2968
|
-
|
|
2968
|
+
di() && Object.defineProperty(ki, Symbol("extensions"), {
|
|
2969
2969
|
value: {
|
|
2970
|
-
symbol:
|
|
2971
|
-
hostReportError:
|
|
2970
|
+
symbol: hi,
|
|
2971
|
+
hostReportError: bi
|
|
2972
2972
|
},
|
|
2973
2973
|
configurable: !0
|
|
2974
2974
|
});
|
|
2975
2975
|
//#endregion
|
|
2976
2976
|
//#region node_modules/@apollo/client/utilities/promises/preventUnhandledRejection.js
|
|
2977
|
-
function
|
|
2977
|
+
function Ai(e) {
|
|
2978
2978
|
return e.catch(function() {}), e;
|
|
2979
2979
|
}
|
|
2980
2980
|
//#endregion
|
|
2981
2981
|
//#region node_modules/@apollo/client/utilities/common/cloneDeep.js
|
|
2982
|
-
var
|
|
2983
|
-
function
|
|
2984
|
-
return
|
|
2982
|
+
var ji = Object.prototype.toString;
|
|
2983
|
+
function Mi(e) {
|
|
2984
|
+
return Ni(e);
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2987
|
-
switch (
|
|
2986
|
+
function Ni(e, t) {
|
|
2987
|
+
switch (ji.call(e)) {
|
|
2988
2988
|
case "[object Array]":
|
|
2989
2989
|
if (t = t || /* @__PURE__ */ new Map(), t.has(e)) return t.get(e);
|
|
2990
2990
|
var n = e.slice(0);
|
|
2991
2991
|
return t.set(e, n), n.forEach(function(e, r) {
|
|
2992
|
-
n[r] =
|
|
2992
|
+
n[r] = Ni(e, t);
|
|
2993
2993
|
}), n;
|
|
2994
2994
|
case "[object Object]":
|
|
2995
2995
|
if (t = t || /* @__PURE__ */ new Map(), t.has(e)) return t.get(e);
|
|
2996
2996
|
var r = Object.create(Object.getPrototypeOf(e));
|
|
2997
2997
|
return t.set(e, r), Object.keys(e).forEach(function(n) {
|
|
2998
|
-
r[n] =
|
|
2998
|
+
r[n] = Ni(e[n], t);
|
|
2999
2999
|
}), r;
|
|
3000
3000
|
default: return e;
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
//#endregion
|
|
3004
3004
|
//#region node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
|
|
3005
|
-
function
|
|
3005
|
+
function Pi(e) {
|
|
3006
3006
|
var t = new Set([e]);
|
|
3007
3007
|
return t.forEach(function(e) {
|
|
3008
|
-
|
|
3009
|
-
|
|
3008
|
+
sn(e) && Fi(e) === e && Object.getOwnPropertyNames(e).forEach(function(n) {
|
|
3009
|
+
sn(e[n]) && t.add(e[n]);
|
|
3010
3010
|
});
|
|
3011
3011
|
}), e;
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function Fi(e) {
|
|
3014
3014
|
if (globalThis.__DEV__ !== !1 && !Object.isFrozen(e)) try {
|
|
3015
3015
|
Object.freeze(e);
|
|
3016
3016
|
} catch (e) {
|
|
@@ -3019,12 +3019,12 @@ function Pi(e) {
|
|
|
3019
3019
|
}
|
|
3020
3020
|
return e;
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3022
|
+
function Ii(e) {
|
|
3023
|
+
return globalThis.__DEV__ !== !1 && Pi(e), e;
|
|
3024
3024
|
}
|
|
3025
3025
|
//#endregion
|
|
3026
3026
|
//#region node_modules/@apollo/client/utilities/observables/iteration.js
|
|
3027
|
-
function
|
|
3027
|
+
function Li(e, t, n) {
|
|
3028
3028
|
var r = [];
|
|
3029
3029
|
e.forEach(function(e) {
|
|
3030
3030
|
return e[t] && r.push(e);
|
|
@@ -3034,15 +3034,15 @@ function Ii(e, t, n) {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
//#endregion
|
|
3036
3036
|
//#region node_modules/@apollo/client/utilities/observables/subclassing.js
|
|
3037
|
-
function
|
|
3037
|
+
function Ri(e) {
|
|
3038
3038
|
function t(t) {
|
|
3039
|
-
Object.defineProperty(e, t, { value:
|
|
3039
|
+
Object.defineProperty(e, t, { value: ki });
|
|
3040
3040
|
}
|
|
3041
|
-
return
|
|
3041
|
+
return tn && Symbol.species && t(Symbol.species), t("@@species"), e;
|
|
3042
3042
|
}
|
|
3043
3043
|
//#endregion
|
|
3044
3044
|
//#region node_modules/@apollo/client/utilities/common/compact.js
|
|
3045
|
-
function
|
|
3045
|
+
function B() {
|
|
3046
3046
|
var e = [...arguments], t = Object.create(null);
|
|
3047
3047
|
return e.forEach(function(e) {
|
|
3048
3048
|
e && Object.keys(e).forEach(function(n) {
|
|
@@ -3054,11 +3054,11 @@ function Ri() {
|
|
|
3054
3054
|
//#endregion
|
|
3055
3055
|
//#region node_modules/@apollo/client/utilities/common/mergeOptions.js
|
|
3056
3056
|
function zi(e, t) {
|
|
3057
|
-
return
|
|
3057
|
+
return B(e, t, t.variables && { variables: B(E(E({}, e && e.variables), t.variables)) });
|
|
3058
3058
|
}
|
|
3059
3059
|
//#endregion
|
|
3060
3060
|
//#region node_modules/@apollo/client/utilities/deprecation/index.js
|
|
3061
|
-
var Bi = Symbol.for("apollo.deprecations"), Vi = Symbol.for("apollo.deprecations.slot"), Hi = be, Ui = Hi[Vi] ?? (Hi[Vi] = new
|
|
3061
|
+
var Bi = Symbol.for("apollo.deprecations"), Vi = Symbol.for("apollo.deprecations.slot"), Hi = be, Ui = Hi[Vi] ?? (Hi[Vi] = new Tr());
|
|
3062
3062
|
function Wi(e) {
|
|
3063
3063
|
return Hi[Bi] || (Ui.getValue() || []).includes(e);
|
|
3064
3064
|
}
|
|
@@ -3076,7 +3076,7 @@ function H(e, t) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
//#endregion
|
|
3078
3078
|
//#region node_modules/@apollo/client/react/context/ApolloContext.js
|
|
3079
|
-
var U = /* @__PURE__ */ l(Ae(), 1), Ki =
|
|
3079
|
+
var U = /* @__PURE__ */ l(Ae(), 1), Ki = tn ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
3080
3080
|
function qi() {
|
|
3081
3081
|
A("createContext" in U, 69);
|
|
3082
3082
|
var e = U.createContext[Ki];
|
|
@@ -3102,7 +3102,7 @@ var Yi = !1, Xi = U.useSyncExternalStore || (function(e, t, n) {
|
|
|
3102
3102
|
value: r,
|
|
3103
3103
|
getSnapshot: t
|
|
3104
3104
|
} }), a = i[0].inst, o = i[1];
|
|
3105
|
-
return
|
|
3105
|
+
return on ? U.useLayoutEffect(function() {
|
|
3106
3106
|
Object.assign(a, {
|
|
3107
3107
|
value: r,
|
|
3108
3108
|
getSnapshot: t
|
|
@@ -3226,7 +3226,7 @@ function ua(e) {
|
|
|
3226
3226
|
var da = function(e) {
|
|
3227
3227
|
var t = D(D(D([], e.graphQLErrors, !0), e.clientErrors, !0), e.protocolErrors, !0);
|
|
3228
3228
|
return e.networkError && t.push(e.networkError), t.map(function(e) {
|
|
3229
|
-
return
|
|
3229
|
+
return sn(e) && e.message || "Error message not found.";
|
|
3230
3230
|
}).join("\n");
|
|
3231
3231
|
}, fa = function(e) {
|
|
3232
3232
|
ce(t, e);
|
|
@@ -3242,8 +3242,8 @@ var da = function(e) {
|
|
|
3242
3242
|
//#region node_modules/@apollo/client/core/equalByQuery.js
|
|
3243
3243
|
function pa(e, t, n, r) {
|
|
3244
3244
|
var i = t.data, a = le(t, ["data"]), o = n.data;
|
|
3245
|
-
return W(a, le(n, ["data"])) && ma(
|
|
3246
|
-
fragmentMap:
|
|
3245
|
+
return W(a, le(n, ["data"])) && ma(_r(e).selectionSet, i, o, {
|
|
3246
|
+
fragmentMap: ln(mr(e)),
|
|
3247
3247
|
variables: r
|
|
3248
3248
|
});
|
|
3249
3249
|
}
|
|
@@ -3251,9 +3251,9 @@ function ma(e, t, n, r) {
|
|
|
3251
3251
|
if (t === n) return !0;
|
|
3252
3252
|
var i = /* @__PURE__ */ new Set();
|
|
3253
3253
|
return e.selections.every(function(e) {
|
|
3254
|
-
if (i.has(e) || (i.add(e), !
|
|
3255
|
-
if (
|
|
3256
|
-
var a =
|
|
3254
|
+
if (i.has(e) || (i.add(e), !Bt(e, r.variables)) || ha(e)) return !0;
|
|
3255
|
+
if (lr(e)) {
|
|
3256
|
+
var a = sr(e), o = t && t[a], s = n && n[a], c = e.selectionSet;
|
|
3257
3257
|
if (!c) return W(o, s);
|
|
3258
3258
|
var l = Array.isArray(o), u = Array.isArray(s);
|
|
3259
3259
|
if (l !== u) return !1;
|
|
@@ -3265,7 +3265,7 @@ function ma(e, t, n, r) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
return ma(c, o, s, r);
|
|
3267
3267
|
} else {
|
|
3268
|
-
var p =
|
|
3268
|
+
var p = un(e, r.fragmentMap);
|
|
3269
3269
|
if (p) return ha(p) ? !0 : ma(p.selectionSet, t, n, r);
|
|
3270
3270
|
}
|
|
3271
3271
|
});
|
|
@@ -3311,7 +3311,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3311
3311
|
initialFetchPolicy: m,
|
|
3312
3312
|
fetchPolicy: f
|
|
3313
3313
|
}), o.queryId = i.queryId || r.generateQueryId();
|
|
3314
|
-
var h =
|
|
3314
|
+
var h = fr(o.query);
|
|
3315
3315
|
return o.queryName = h && h.name && h.name.value, o;
|
|
3316
3316
|
}
|
|
3317
3317
|
return Object.defineProperty(t.prototype, "query", {
|
|
@@ -3383,7 +3383,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3383
3383
|
}, t.prototype.refetch = function(e) {
|
|
3384
3384
|
var t = { pollInterval: 0 };
|
|
3385
3385
|
if (this.options.fetchPolicy === "no-cache" ? t.fetchPolicy = "no-cache" : t.fetchPolicy = "network-only", globalThis.__DEV__ !== !1 && e && ya.call(e, "variables")) {
|
|
3386
|
-
var n =
|
|
3386
|
+
var n = hr(this.query), r = n.variableDefinitions;
|
|
3387
3387
|
(!r || !r.some(function(e) {
|
|
3388
3388
|
return e.variable.name.value === "variables";
|
|
3389
3389
|
})) && globalThis.__DEV__ !== !1 && A.warn(28, e, n.name?.value || n);
|
|
@@ -3464,7 +3464,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3464
3464
|
globalThis.__DEV__ !== !1 && A.warn(31);
|
|
3465
3465
|
})), this.reobserve(e);
|
|
3466
3466
|
}, t.prototype.silentSetOptions = function(e) {
|
|
3467
|
-
var t =
|
|
3467
|
+
var t = B(this.options, e || {});
|
|
3468
3468
|
va(this.options, t);
|
|
3469
3469
|
}, t.prototype.setVariables = function(e) {
|
|
3470
3470
|
var t = this;
|
|
@@ -3537,13 +3537,13 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3537
3537
|
return n.getLastError();
|
|
3538
3538
|
});
|
|
3539
3539
|
return r && this.last && !W(t, this.last.variables) && (r = void 0), this.last = E({
|
|
3540
|
-
result: this.queryManager.assumeImmutableResults ? e :
|
|
3540
|
+
result: this.queryManager.assumeImmutableResults ? e : Mi(e),
|
|
3541
3541
|
variables: t
|
|
3542
3542
|
}, r ? { error: r } : null);
|
|
3543
3543
|
}, t.prototype.reobserveAsConcast = function(e, t) {
|
|
3544
3544
|
var n = this;
|
|
3545
3545
|
this.isTornDown = !1;
|
|
3546
|
-
var r = t === G.refetch || t === G.fetchMore || t === G.poll, i = this.options.variables, a = this.options.fetchPolicy, o =
|
|
3546
|
+
var r = t === G.refetch || t === G.fetchMore || t === G.poll, i = this.options.variables, a = this.options.fetchPolicy, o = B(this.options, e || {}), s = r ? o : va(this.options, o), c = this.transformDocument(s.query);
|
|
3547
3547
|
this.lastQuery = c, r || (this.updatePolling(), e && e.variables && !W(e.variables, i) && s.fetchPolicy !== "standby" && (s.fetchPolicy === a || typeof s.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", s), t === void 0 && (t = G.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = Ca(s.fetchPolicy));
|
|
3548
3548
|
var l = function() {
|
|
3549
3549
|
n.concast === f && (n.waitForOwnResult = !1);
|
|
@@ -3557,7 +3557,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3557
3557
|
};
|
|
3558
3558
|
return !r && (p || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = f, this.observer = m), f.addObserver(m), f;
|
|
3559
3559
|
}, t.prototype.reobserve = function(e, t) {
|
|
3560
|
-
return
|
|
3560
|
+
return Ai(this.reobserveAsConcast(e, t).promise.then(this.maskResult));
|
|
3561
3561
|
}, t.prototype.resubscribeAfterError = function() {
|
|
3562
3562
|
for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
|
|
3563
3563
|
var r = this.last;
|
|
@@ -3572,7 +3572,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3572
3572
|
var n = this, r = V("getLastError", function() {
|
|
3573
3573
|
return n.getLastError();
|
|
3574
3574
|
}), i = this.isDifferentFromLastResult(e, t);
|
|
3575
|
-
(r || !e.partial || this.options.returnPartialData) && this.updateLastResult(e, t), (r || i) &&
|
|
3575
|
+
(r || !e.partial || this.options.returnPartialData) && this.updateLastResult(e, t), (r || i) && Li(this.observers, "next", this.maskResult(e));
|
|
3576
3576
|
}, t.prototype.reportError = function(e, t) {
|
|
3577
3577
|
var n = this, r = E(E({}, V("getLastResult", function() {
|
|
3578
3578
|
return n.getLastResult();
|
|
@@ -3582,7 +3582,7 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3582
3582
|
networkStatus: G.error,
|
|
3583
3583
|
loading: !1
|
|
3584
3584
|
});
|
|
3585
|
-
this.updateLastResult(r, t),
|
|
3585
|
+
this.updateLastResult(r, t), Li(this.observers, "error", this.last.error = e);
|
|
3586
3586
|
}, t.prototype.hasObservers = function() {
|
|
3587
3587
|
return this.observers.size > 0;
|
|
3588
3588
|
}, t.prototype.tearDownQuery = function() {
|
|
@@ -3617,9 +3617,9 @@ var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
|
3617
3617
|
return this.nextFetchPolicy = n, typeof this.nextFetchPolicy == "function" ? this.nextFetchPolicy(e, r) : t;
|
|
3618
3618
|
}
|
|
3619
3619
|
}) : this.reobserve();
|
|
3620
|
-
}, t.inactiveOnCreation = new
|
|
3621
|
-
}(
|
|
3622
|
-
|
|
3620
|
+
}, t.inactiveOnCreation = new Tr(), t;
|
|
3621
|
+
}(ki);
|
|
3622
|
+
Ri(ba);
|
|
3623
3623
|
function xa(e) {
|
|
3624
3624
|
globalThis.__DEV__ !== !1 && A.error(33, e.message, e.stack);
|
|
3625
3625
|
}
|
|
@@ -3661,7 +3661,7 @@ function ja(e) {
|
|
|
3661
3661
|
function Ma(e) {
|
|
3662
3662
|
var t = Oa(e);
|
|
3663
3663
|
if (!wa.has(t)) {
|
|
3664
|
-
var n =
|
|
3664
|
+
var n = Nt(e, {
|
|
3665
3665
|
experimentalFragmentVariables: Da,
|
|
3666
3666
|
allowLegacyFragmentVariables: Da
|
|
3667
3667
|
});
|
|
@@ -3725,7 +3725,7 @@ function za(e) {
|
|
|
3725
3725
|
function Ba(e) {
|
|
3726
3726
|
H("parser", function() {
|
|
3727
3727
|
globalThis.__DEV__ !== !1 && A.warn(93);
|
|
3728
|
-
}), q || (q = new
|
|
3728
|
+
}), q || (q = new Cn(Tn.parser || 1e3));
|
|
3729
3729
|
var t = q.get(e);
|
|
3730
3730
|
if (t) return t;
|
|
3731
3731
|
var n, r, i;
|
|
@@ -3762,7 +3762,7 @@ function Ba(e) {
|
|
|
3762
3762
|
}
|
|
3763
3763
|
Ba.resetCache = function() {
|
|
3764
3764
|
q = void 0;
|
|
3765
|
-
}, globalThis.__DEV__ !== !1 &&
|
|
3765
|
+
}, globalThis.__DEV__ !== !1 && En("parser", function() {
|
|
3766
3766
|
return q ? q.size : 0;
|
|
3767
3767
|
});
|
|
3768
3768
|
function Va(e, t) {
|
|
@@ -3771,7 +3771,7 @@ function Va(e, t) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
//#endregion
|
|
3773
3773
|
//#region node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js
|
|
3774
|
-
var Ha =
|
|
3774
|
+
var Ha = rn ? U.useLayoutEffect : U.useEffect;
|
|
3775
3775
|
//#endregion
|
|
3776
3776
|
//#region node_modules/@apollo/client/react/hooks/internal/useWarnRemovedOption.js
|
|
3777
3777
|
function J(e, t, n, r) {
|
|
@@ -3922,11 +3922,11 @@ function to(e, t, n, r) {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
function no(e, t, n, r) {
|
|
3924
3924
|
var i = [], a = t.defaultOptions.watchQuery;
|
|
3925
|
-
return a && i.push(a), n.defaultOptions && i.push(n.defaultOptions), i.push(
|
|
3925
|
+
return a && i.push(a), n.defaultOptions && i.push(n.defaultOptions), i.push(B(e && e.options, r)), i.reduce(zi);
|
|
3926
3926
|
}
|
|
3927
3927
|
function ro(e, t, n, r, i, a, o) {
|
|
3928
3928
|
var s = t.current;
|
|
3929
|
-
s && s.data && (t.previousData = s.data), !e.error &&
|
|
3929
|
+
s && s.data && (t.previousData = s.data), !e.error && ai(e.errors) && (e.error = new fa({ graphQLErrors: e.errors })), t.current = co(lo(e, n, i), t.previousData, n, r), a(), io(e, s?.networkStatus, o);
|
|
3930
3930
|
}
|
|
3931
3931
|
function io(e, t, n) {
|
|
3932
3932
|
if (!e.loading) {
|
|
@@ -3945,7 +3945,7 @@ function oo(e, t) {
|
|
|
3945
3945
|
return e?.fetchPolicy || t?.watchQuery?.fetchPolicy || "cache-first";
|
|
3946
3946
|
}
|
|
3947
3947
|
function so(e) {
|
|
3948
|
-
return
|
|
3948
|
+
return ai(e.errors) ? new fa({ graphQLErrors: e.errors }) : e.error;
|
|
3949
3949
|
}
|
|
3950
3950
|
function co(e, t, n, r) {
|
|
3951
3951
|
var i = e.data;
|
|
@@ -3965,12 +3965,12 @@ function lo(e, t, n) {
|
|
|
3965
3965
|
networkStatus: G.refetch
|
|
3966
3966
|
})) : e;
|
|
3967
3967
|
}
|
|
3968
|
-
var uo =
|
|
3968
|
+
var uo = Ii({
|
|
3969
3969
|
loading: !0,
|
|
3970
3970
|
data: void 0,
|
|
3971
3971
|
error: void 0,
|
|
3972
3972
|
networkStatus: G.loading
|
|
3973
|
-
}), fo =
|
|
3973
|
+
}), fo = Ii({
|
|
3974
3974
|
loading: !1,
|
|
3975
3975
|
data: void 0,
|
|
3976
3976
|
error: void 0,
|
|
@@ -4280,50 +4280,49 @@ function Ao() {
|
|
|
4280
4280
|
}
|
|
4281
4281
|
//#endregion
|
|
4282
4282
|
//#region lib/api.ts
|
|
4283
|
-
var jo = "http://localhost:3001",
|
|
4284
|
-
function
|
|
4285
|
-
let e = process.env.NEXT_PUBLIC_WEXIO_API_URL;
|
|
4286
|
-
if (e) return e;
|
|
4283
|
+
var jo = "https://api.wexio.io", Mo = "http://localhost:3001", No = "https://local.api.wexio.io:3443";
|
|
4284
|
+
function Po() {
|
|
4287
4285
|
if (typeof window < "u") {
|
|
4288
4286
|
let { protocol: e, hostname: t } = window.location;
|
|
4289
|
-
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return
|
|
4287
|
+
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return No;
|
|
4290
4288
|
if (e === "https:" && /\.wexio\.io$/i.test(t)) {
|
|
4291
4289
|
let e = t.replace(/^(app|templates)\./i, "api.").replace(/\.(app|templates)\./i, ".api.");
|
|
4292
|
-
return e === t ?
|
|
4290
|
+
return e === t ? jo : `https://${e}`;
|
|
4293
4291
|
}
|
|
4292
|
+
if (t === "localhost" || t === "127.0.0.1" || t === "[::1]") return Mo;
|
|
4294
4293
|
}
|
|
4295
4294
|
return jo;
|
|
4296
4295
|
}
|
|
4297
|
-
var
|
|
4298
|
-
function
|
|
4296
|
+
var Fo = /* @__PURE__ */ new Map();
|
|
4297
|
+
function Io(e, t) {
|
|
4299
4298
|
if (!e) return Promise.resolve(null);
|
|
4300
|
-
let n = `${e}|${t ?? ""}`, r =
|
|
4299
|
+
let n = `${e}|${t ?? ""}`, r = Fo.get(n);
|
|
4301
4300
|
if (r) return r;
|
|
4302
4301
|
let i = (async () => {
|
|
4303
4302
|
try {
|
|
4304
|
-
let n = new URL(`${
|
|
4303
|
+
let n = new URL(`${Po()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4305
4304
|
t && n.searchParams.set("locale", t);
|
|
4306
4305
|
let r = await fetch(n.toString(), {
|
|
4307
4306
|
method: "GET",
|
|
4308
4307
|
headers: { "x-web-public-key": e },
|
|
4309
4308
|
credentials: "omit"
|
|
4310
4309
|
});
|
|
4311
|
-
return r.ok ?
|
|
4310
|
+
return r.ok ? Vo(await r.json()) : null;
|
|
4312
4311
|
} catch {
|
|
4313
4312
|
return null;
|
|
4314
4313
|
}
|
|
4315
4314
|
})();
|
|
4316
|
-
return
|
|
4315
|
+
return Fo.set(n, i.then((e) => (e === null && Fo.delete(n), e))), Fo.get(n) ?? i;
|
|
4317
4316
|
}
|
|
4318
|
-
var
|
|
4317
|
+
var Lo = [
|
|
4319
4318
|
"NAME",
|
|
4320
4319
|
"EMAIL",
|
|
4321
4320
|
"PHONE",
|
|
4322
4321
|
"CUSTOM_TEXT"
|
|
4323
|
-
],
|
|
4324
|
-
function
|
|
4322
|
+
], Ro = ["HINT", "SYSTEM"];
|
|
4323
|
+
function zo(e) {
|
|
4325
4324
|
if (e === null || !e) return null;
|
|
4326
|
-
let t = Array.isArray(e.commands) ? e.commands.filter((e) => typeof e == "string" && e.length > 0).slice(0, 20) : [], n = Array.isArray(e.messages) ? e.messages.filter((e) => !!e && typeof e.text == "string" && e.text.length > 0 && typeof e.kind == "string" &&
|
|
4325
|
+
let t = Array.isArray(e.commands) ? e.commands.filter((e) => typeof e == "string" && e.length > 0).slice(0, 20) : [], n = Array.isArray(e.messages) ? e.messages.filter((e) => !!e && typeof e.text == "string" && e.text.length > 0 && typeof e.kind == "string" && Ro.includes(e.kind)).map((e) => ({
|
|
4327
4326
|
kind: e.kind,
|
|
4328
4327
|
text: e.text
|
|
4329
4328
|
})).slice(0, 10) : [];
|
|
@@ -4339,9 +4338,9 @@ function Ro(e) {
|
|
|
4339
4338
|
profile: Array.isArray(e.profile?.fields) && e.profile.fields.length > 0 ? { fields: e.profile.fields.filter((e) => typeof e == "string") } : null
|
|
4340
4339
|
};
|
|
4341
4340
|
}
|
|
4342
|
-
function
|
|
4341
|
+
function Bo(e) {
|
|
4343
4342
|
if (!e) return null;
|
|
4344
|
-
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e &&
|
|
4343
|
+
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e && Lo.includes(e.kind)).map((e) => ({
|
|
4345
4344
|
kind: e.kind,
|
|
4346
4345
|
key: String(e.key ?? ""),
|
|
4347
4346
|
label: String(e.label ?? ""),
|
|
@@ -4352,7 +4351,7 @@ function zo(e) {
|
|
|
4352
4351
|
fields: t
|
|
4353
4352
|
};
|
|
4354
4353
|
}
|
|
4355
|
-
function
|
|
4354
|
+
function Vo(e) {
|
|
4356
4355
|
return {
|
|
4357
4356
|
status: e.status,
|
|
4358
4357
|
defaultTab: e.defaultTab?.toLowerCase() ?? "home",
|
|
@@ -4377,7 +4376,7 @@ function Bo(e) {
|
|
|
4377
4376
|
},
|
|
4378
4377
|
theme: e.theme ?? null,
|
|
4379
4378
|
themeMode: "auto",
|
|
4380
|
-
prechatForm:
|
|
4379
|
+
prechatForm: Bo(e.prechatForm),
|
|
4381
4380
|
operatorAvatars: Array.isArray(e.operatorAvatars) ? e.operatorAvatars.filter((e) => !!e?.src).map((e) => ({
|
|
4382
4381
|
src: e.src,
|
|
4383
4382
|
alt: e.alt ?? ""
|
|
@@ -4398,21 +4397,21 @@ function Bo(e) {
|
|
|
4398
4397
|
outboundSoundId: e.sounds.outboundSoundId ?? null,
|
|
4399
4398
|
volume: typeof e.sounds.volume == "number" ? Math.max(0, Math.min(1, e.sounds.volume)) : .5
|
|
4400
4399
|
} : null,
|
|
4401
|
-
messenger:
|
|
4400
|
+
messenger: zo(e.messenger),
|
|
4402
4401
|
botProtection: e.botProtection?.turnstile?.enabled && e.botProtection.turnstile.siteKey ? { turnstile: {
|
|
4403
4402
|
enabled: !0,
|
|
4404
4403
|
siteKey: e.botProtection.turnstile.siteKey
|
|
4405
4404
|
} } : null
|
|
4406
4405
|
};
|
|
4407
4406
|
}
|
|
4408
|
-
var
|
|
4409
|
-
function
|
|
4407
|
+
var Ho = /* @__PURE__ */ new Map();
|
|
4408
|
+
function Uo(e) {
|
|
4410
4409
|
if (!e) return Promise.resolve(null);
|
|
4411
|
-
let t =
|
|
4410
|
+
let t = Ho.get(e);
|
|
4412
4411
|
if (t) return t;
|
|
4413
4412
|
let n = (async () => {
|
|
4414
4413
|
try {
|
|
4415
|
-
let t = new URL(`${
|
|
4414
|
+
let t = new URL(`${Po()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4416
4415
|
t.searchParams.set("view", "gate");
|
|
4417
4416
|
let n = await fetch(t.toString(), {
|
|
4418
4417
|
method: "GET",
|
|
@@ -4437,11 +4436,11 @@ function Ho(e) {
|
|
|
4437
4436
|
return null;
|
|
4438
4437
|
}
|
|
4439
4438
|
})();
|
|
4440
|
-
return
|
|
4439
|
+
return Ho.set(e, n.then((t) => (t === null && Ho.delete(e), t))), Ho.get(e) ?? n;
|
|
4441
4440
|
}
|
|
4442
4441
|
//#endregion
|
|
4443
4442
|
//#region dummy/authors.ts
|
|
4444
|
-
var
|
|
4443
|
+
var Wo = {
|
|
4445
4444
|
maya: {
|
|
4446
4445
|
_id: "demo-author-maya",
|
|
4447
4446
|
name: "Maya Chen",
|
|
@@ -4463,12 +4462,12 @@ var Uo = {
|
|
|
4463
4462
|
photo: { url: "https://i.pravatar.cc/96?img=68" }
|
|
4464
4463
|
}
|
|
4465
4464
|
};
|
|
4466
|
-
function
|
|
4467
|
-
return e.map((e) =>
|
|
4465
|
+
function Go(e) {
|
|
4466
|
+
return e.map((e) => Wo[e]);
|
|
4468
4467
|
}
|
|
4469
4468
|
//#endregion
|
|
4470
4469
|
//#region lib/theme-font.ts
|
|
4471
|
-
var
|
|
4470
|
+
var Ko = {
|
|
4472
4471
|
inter: "Inter:wght@400;500;600;700",
|
|
4473
4472
|
poppins: "Poppins:wght@400;500;600;700",
|
|
4474
4473
|
"dm sans": "DM+Sans:wght@400;500;600;700",
|
|
@@ -4480,11 +4479,11 @@ var Go = {
|
|
|
4480
4479
|
raleway: "Raleway:wght@400;500;600;700",
|
|
4481
4480
|
"work sans": "Work+Sans:wght@400;500;600;700"
|
|
4482
4481
|
};
|
|
4483
|
-
function
|
|
4482
|
+
function qo(e) {
|
|
4484
4483
|
if (!e || typeof document > "u") return;
|
|
4485
4484
|
let t = e.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
|
|
4486
4485
|
if (!t) return;
|
|
4487
|
-
let n =
|
|
4486
|
+
let n = Ko[t.toLowerCase()];
|
|
4488
4487
|
if (!n) return;
|
|
4489
4488
|
let r = `wexio-font-${t.toLowerCase().replace(/\s+/g, "-")}`;
|
|
4490
4489
|
if (document.getElementById(r)) return;
|
|
@@ -4493,7 +4492,7 @@ function Ko(e) {
|
|
|
4493
4492
|
}
|
|
4494
4493
|
//#endregion
|
|
4495
4494
|
//#region lib/widget-config.ts
|
|
4496
|
-
var
|
|
4495
|
+
var Jo = {
|
|
4497
4496
|
status: "active",
|
|
4498
4497
|
defaultTab: "home",
|
|
4499
4498
|
localeStrategy: "AUTO",
|
|
@@ -4564,7 +4563,7 @@ var qo = {
|
|
|
4564
4563
|
profile: null
|
|
4565
4564
|
},
|
|
4566
4565
|
botProtection: null
|
|
4567
|
-
},
|
|
4566
|
+
}, Yo = [
|
|
4568
4567
|
{ kind: "ask-question" },
|
|
4569
4568
|
{ kind: "recent-message" },
|
|
4570
4569
|
{ kind: "featured-article" },
|
|
@@ -4617,20 +4616,20 @@ var qo = {
|
|
|
4617
4616
|
];
|
|
4618
4617
|
//#endregion
|
|
4619
4618
|
//#region lib/use-widget-config.ts
|
|
4620
|
-
function
|
|
4619
|
+
function Xo() {
|
|
4621
4620
|
let e = Ao(), t = p(), [n, r] = C({
|
|
4622
4621
|
mode: "demo",
|
|
4623
|
-
config:
|
|
4622
|
+
config: Jo,
|
|
4624
4623
|
isDummy: !0,
|
|
4625
4624
|
isLoading: !0,
|
|
4626
4625
|
error: null
|
|
4627
4626
|
}), [i, a] = C(null);
|
|
4628
4627
|
b(() => {
|
|
4629
|
-
let n = new URL(window.location.href), i = n.searchParams.get("pk") ?? void 0, o =
|
|
4628
|
+
let n = new URL(window.location.href), i = n.searchParams.get("pk") ?? void 0, o = n.searchParams.get("mode"), s = e.publicKeyOverride ?? i ?? void 0, c = e.modeOverride ?? (s ? "production" : o === "preview" ? "preview" : "demo"), l = !1;
|
|
4630
4629
|
if ((async () => {
|
|
4631
4630
|
if (e.configBase) {
|
|
4632
|
-
let t =
|
|
4633
|
-
if (
|
|
4631
|
+
let t = s ? await Uo(s) : null;
|
|
4632
|
+
if (l) return;
|
|
4634
4633
|
let n = e.configBase.security, i = t?.security, a = {
|
|
4635
4634
|
requireAuth: n?.requireAuth ?? i?.requireAuth ?? !1,
|
|
4636
4635
|
google: {
|
|
@@ -4638,11 +4637,11 @@ function Yo() {
|
|
|
4638
4637
|
clientId: i?.google?.clientId ?? null
|
|
4639
4638
|
},
|
|
4640
4639
|
passkey: { enabled: n?.passkey?.enabled ?? i?.passkey?.enabled ?? !1 }
|
|
4641
|
-
}, { security: o, ...
|
|
4640
|
+
}, { security: o, ...u } = e.configBase;
|
|
4642
4641
|
r({
|
|
4643
|
-
mode:
|
|
4642
|
+
mode: c,
|
|
4644
4643
|
config: {
|
|
4645
|
-
...
|
|
4644
|
+
...u,
|
|
4646
4645
|
security: a,
|
|
4647
4646
|
branding: t?.branding ?? null,
|
|
4648
4647
|
status: t?.status ?? "active"
|
|
@@ -4655,20 +4654,20 @@ function Yo() {
|
|
|
4655
4654
|
}
|
|
4656
4655
|
if (e.forceDummyData !== void 0) {
|
|
4657
4656
|
r({
|
|
4658
|
-
mode:
|
|
4659
|
-
config:
|
|
4657
|
+
mode: c,
|
|
4658
|
+
config: Jo,
|
|
4660
4659
|
isDummy: e.forceDummyData,
|
|
4661
4660
|
isLoading: !1,
|
|
4662
4661
|
error: null
|
|
4663
4662
|
});
|
|
4664
4663
|
return;
|
|
4665
4664
|
}
|
|
4666
|
-
if (
|
|
4667
|
-
let e = await
|
|
4668
|
-
if (
|
|
4665
|
+
if (s) {
|
|
4666
|
+
let e = await Io(s, t);
|
|
4667
|
+
if (l) return;
|
|
4669
4668
|
if (e) {
|
|
4670
4669
|
r({
|
|
4671
|
-
mode:
|
|
4670
|
+
mode: c,
|
|
4672
4671
|
config: e,
|
|
4673
4672
|
isDummy: !1,
|
|
4674
4673
|
isLoading: !1,
|
|
@@ -4677,8 +4676,8 @@ function Yo() {
|
|
|
4677
4676
|
return;
|
|
4678
4677
|
}
|
|
4679
4678
|
r({
|
|
4680
|
-
mode:
|
|
4681
|
-
config:
|
|
4679
|
+
mode: c,
|
|
4680
|
+
config: Jo,
|
|
4682
4681
|
isDummy: !0,
|
|
4683
4682
|
isLoading: !1,
|
|
4684
4683
|
error: "publicKeyInvalid"
|
|
@@ -4686,22 +4685,22 @@ function Yo() {
|
|
|
4686
4685
|
return;
|
|
4687
4686
|
}
|
|
4688
4687
|
r({
|
|
4689
|
-
mode:
|
|
4690
|
-
config:
|
|
4688
|
+
mode: c,
|
|
4689
|
+
config: Jo,
|
|
4691
4690
|
isDummy: !0,
|
|
4692
4691
|
isLoading: !1,
|
|
4693
4692
|
error: null
|
|
4694
4693
|
});
|
|
4695
|
-
})(),
|
|
4696
|
-
|
|
4694
|
+
})(), c !== "preview") return () => {
|
|
4695
|
+
l = !0;
|
|
4697
4696
|
};
|
|
4698
|
-
let
|
|
4697
|
+
let u = (e) => {
|
|
4699
4698
|
if (!e.data || typeof e.data != "object" || e.data.type !== "wexio:preview-config:v1") return;
|
|
4700
4699
|
let t = e.data.config;
|
|
4701
|
-
t && a((e) =>
|
|
4700
|
+
t && a((e) => Zo(e ?? {}, t));
|
|
4702
4701
|
};
|
|
4703
|
-
return window.addEventListener("message",
|
|
4704
|
-
|
|
4702
|
+
return window.addEventListener("message", u), () => {
|
|
4703
|
+
l = !0, window.removeEventListener("message", u);
|
|
4705
4704
|
};
|
|
4706
4705
|
}, [
|
|
4707
4706
|
e.publicKeyOverride,
|
|
@@ -4712,9 +4711,9 @@ function Yo() {
|
|
|
4712
4711
|
]);
|
|
4713
4712
|
let o = n.isDummy || e.forceDummyData === !0, s = S(() => {
|
|
4714
4713
|
let t = n.config;
|
|
4715
|
-
return i && (t =
|
|
4714
|
+
return i && (t = Zo(t, i)), e.configOverride && (t = Zo(t, e.configOverride)), o && t.operatorAvatars.length === 0 && (t = {
|
|
4716
4715
|
...t,
|
|
4717
|
-
operatorAvatars:
|
|
4716
|
+
operatorAvatars: Jo.operatorAvatars
|
|
4718
4717
|
}), t;
|
|
4719
4718
|
}, [
|
|
4720
4719
|
n.config,
|
|
@@ -4723,9 +4722,9 @@ function Yo() {
|
|
|
4723
4722
|
o
|
|
4724
4723
|
]), c = e.styleRoot;
|
|
4725
4724
|
ne(() => {
|
|
4726
|
-
s.theme &&
|
|
4725
|
+
s.theme && is(s.theme, c ?? document);
|
|
4727
4726
|
}, [s.theme, c]), b(() => {
|
|
4728
|
-
s.theme &&
|
|
4727
|
+
s.theme && qo(s.theme.fontFamily);
|
|
4729
4728
|
}, [s.theme]);
|
|
4730
4729
|
let l = e.onLocaleStrategy;
|
|
4731
4730
|
return b(() => {
|
|
@@ -4743,7 +4742,7 @@ function Yo() {
|
|
|
4743
4742
|
error: n.error
|
|
4744
4743
|
};
|
|
4745
4744
|
}
|
|
4746
|
-
function
|
|
4745
|
+
function Zo(e, t) {
|
|
4747
4746
|
return {
|
|
4748
4747
|
...e,
|
|
4749
4748
|
...t,
|
|
@@ -4758,7 +4757,7 @@ function Xo(e, t) {
|
|
|
4758
4757
|
theme: t.theme === void 0 ? e.theme : t.theme
|
|
4759
4758
|
};
|
|
4760
4759
|
}
|
|
4761
|
-
var
|
|
4760
|
+
var Qo = {
|
|
4762
4761
|
background: "--wx-bg",
|
|
4763
4762
|
surface: "--wx-bg-elevated",
|
|
4764
4763
|
surfaceElevated: "--wx-bg-elevated-2",
|
|
@@ -4774,30 +4773,30 @@ var Zo = {
|
|
|
4774
4773
|
launcherForeground: "--wx-launcher-fg",
|
|
4775
4774
|
success: "--wx-success",
|
|
4776
4775
|
danger: "--wx-danger"
|
|
4777
|
-
},
|
|
4776
|
+
}, $o = {
|
|
4778
4777
|
sm: "--wx-radius-sm",
|
|
4779
4778
|
md: "--wx-radius",
|
|
4780
4779
|
lg: "--wx-radius-lg",
|
|
4781
4780
|
xl: "--wx-radius-xl"
|
|
4782
4781
|
};
|
|
4783
|
-
function $o(e) {
|
|
4784
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "string" && e.length > 0).map(([e, t]) => `${Zo[e]}: ${t};`).join(" ") : "";
|
|
4785
|
-
}
|
|
4786
4782
|
function es(e) {
|
|
4787
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "
|
|
4783
|
+
return e ? Object.entries(e).filter(([, e]) => typeof e == "string" && e.length > 0).map(([e, t]) => `${Qo[e]}: ${t};`).join(" ") : "";
|
|
4784
|
+
}
|
|
4785
|
+
function ts(e) {
|
|
4786
|
+
return e ? Object.entries(e).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e, t]) => `${$o[e]}: ${t}px;`).join(" ") : "";
|
|
4788
4787
|
}
|
|
4789
|
-
var
|
|
4790
|
-
function
|
|
4791
|
-
let t = [
|
|
4788
|
+
var ns = /* @__PURE__ */ new WeakMap();
|
|
4789
|
+
function rs(e) {
|
|
4790
|
+
let t = [ts(e.radii), typeof e.fontFamily == "string" && e.fontFamily.trim().length > 0 ? `--wx-font: ${e.fontFamily};` : ""].filter(Boolean).join(" "), n = [es(e.light), t].filter(Boolean).join(" "), r = [es(e.dark), t].filter(Boolean).join(" "), i = [];
|
|
4792
4791
|
return n && i.push(`:root, :host { ${n} }`), r && i.push(`[data-theme="dark"] { ${r} }`), i.join(" ");
|
|
4793
4792
|
}
|
|
4794
|
-
function
|
|
4795
|
-
let n =
|
|
4793
|
+
function is(e, t) {
|
|
4794
|
+
let n = rs(e);
|
|
4796
4795
|
if (!(t instanceof Document)) {
|
|
4797
4796
|
let e = t;
|
|
4798
4797
|
if (typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype) {
|
|
4799
|
-
let t =
|
|
4800
|
-
t || (t = new CSSStyleSheet(),
|
|
4798
|
+
let t = ns.get(e);
|
|
4799
|
+
t || (t = new CSSStyleSheet(), ns.set(e, t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, t]), t.replaceSync(n);
|
|
4801
4800
|
return;
|
|
4802
4801
|
}
|
|
4803
4802
|
let r = e.querySelector("#wexio-theme-vars");
|
|
@@ -4807,19 +4806,19 @@ function rs(e, t) {
|
|
|
4807
4806
|
let r = t.getElementById("wexio-theme-vars");
|
|
4808
4807
|
r || (r = document.createElement("style"), r.id = "wexio-theme-vars", t.head.appendChild(r)), r.textContent = n;
|
|
4809
4808
|
}
|
|
4810
|
-
var
|
|
4809
|
+
var as = m("check", [["path", {
|
|
4811
4810
|
d: "M20 6 9 17l-5-5",
|
|
4812
4811
|
key: "1gmf2c"
|
|
4813
|
-
}]]),
|
|
4812
|
+
}]]), os = m("chevron-down", [["path", {
|
|
4814
4813
|
d: "m6 9 6 6 6-6",
|
|
4815
4814
|
key: "qrunsl"
|
|
4816
|
-
}]]),
|
|
4815
|
+
}]]), ss = m("chevron-left", [["path", {
|
|
4817
4816
|
d: "m15 18-6-6 6-6",
|
|
4818
4817
|
key: "1wnfg3"
|
|
4819
|
-
}]]),
|
|
4818
|
+
}]]), cs = m("chevron-right", [["path", {
|
|
4820
4819
|
d: "m9 18 6-6-6-6",
|
|
4821
4820
|
key: "mthhwq"
|
|
4822
|
-
}]]),
|
|
4821
|
+
}]]), ls = m("x", [["path", {
|
|
4823
4822
|
d: "M18 6 6 18",
|
|
4824
4823
|
key: "1bl5f8"
|
|
4825
4824
|
}], ["path", {
|
|
@@ -4828,77 +4827,77 @@ var is = m("check", [["path", {
|
|
|
4828
4827
|
}]]);
|
|
4829
4828
|
//#endregion
|
|
4830
4829
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4831
|
-
function
|
|
4830
|
+
function us(e, t) {
|
|
4832
4831
|
if (typeof e == "function") return e(t);
|
|
4833
4832
|
e != null && (e.current = t);
|
|
4834
4833
|
}
|
|
4835
|
-
function
|
|
4834
|
+
function ds(...e) {
|
|
4836
4835
|
return (t) => {
|
|
4837
4836
|
let n = !1, r = e.map((e) => {
|
|
4838
|
-
let r =
|
|
4837
|
+
let r = us(e, t);
|
|
4839
4838
|
return !n && typeof r == "function" && (n = !0), r;
|
|
4840
4839
|
});
|
|
4841
4840
|
if (n) return () => {
|
|
4842
4841
|
for (let t = 0; t < r.length; t++) {
|
|
4843
4842
|
let n = r[t];
|
|
4844
|
-
typeof n == "function" ? n() :
|
|
4843
|
+
typeof n == "function" ? n() : us(e[t], null);
|
|
4845
4844
|
}
|
|
4846
4845
|
};
|
|
4847
4846
|
};
|
|
4848
4847
|
}
|
|
4849
4848
|
function Y(...e) {
|
|
4850
|
-
return h.useCallback(
|
|
4849
|
+
return h.useCallback(ds(...e), e);
|
|
4851
4850
|
}
|
|
4852
4851
|
//#endregion
|
|
4853
4852
|
//#region components/ui/card.tsx
|
|
4854
|
-
var
|
|
4853
|
+
var fs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4855
4854
|
ref: n,
|
|
4856
4855
|
className: f("rounded-wx-lg bg-wx-bg-elevated text-wx-fg", e),
|
|
4857
4856
|
...t
|
|
4858
4857
|
}));
|
|
4859
|
-
|
|
4860
|
-
var
|
|
4858
|
+
fs.displayName = "Card";
|
|
4859
|
+
var ps = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4861
4860
|
ref: n,
|
|
4862
4861
|
className: f("rounded-wx bg-wx-bg-elevated-2 text-wx-fg", e),
|
|
4863
4862
|
...t
|
|
4864
4863
|
}));
|
|
4865
|
-
|
|
4866
|
-
var
|
|
4864
|
+
ps.displayName = "CardNested";
|
|
4865
|
+
var ms = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4867
4866
|
ref: n,
|
|
4868
4867
|
className: f("flex flex-col gap-1 px-5 pt-5", e),
|
|
4869
4868
|
...t
|
|
4870
4869
|
}));
|
|
4871
|
-
|
|
4872
|
-
var
|
|
4870
|
+
ms.displayName = "CardHeader";
|
|
4871
|
+
var hs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4873
4872
|
ref: n,
|
|
4874
4873
|
className: f("text-base font-semibold text-wx-fg", e),
|
|
4875
4874
|
...t
|
|
4876
4875
|
}));
|
|
4877
|
-
|
|
4878
|
-
var
|
|
4876
|
+
hs.displayName = "CardTitle";
|
|
4877
|
+
var gs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4879
4878
|
ref: n,
|
|
4880
4879
|
className: f("text-sm text-wx-fg-muted", e),
|
|
4881
4880
|
...t
|
|
4882
4881
|
}));
|
|
4883
|
-
|
|
4884
|
-
var
|
|
4882
|
+
gs.displayName = "CardSubtitle";
|
|
4883
|
+
var _s = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4885
4884
|
ref: n,
|
|
4886
4885
|
className: f("px-5 py-4", e),
|
|
4887
4886
|
...t
|
|
4888
4887
|
}));
|
|
4889
|
-
|
|
4890
|
-
var
|
|
4888
|
+
_s.displayName = "CardBody";
|
|
4889
|
+
var vs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4891
4890
|
ref: n,
|
|
4892
4891
|
className: f("flex items-center justify-between px-5 py-3 border-t border-wx-border", e),
|
|
4893
4892
|
...t
|
|
4894
4893
|
}));
|
|
4895
|
-
|
|
4894
|
+
vs.displayName = "CardFooter";
|
|
4896
4895
|
//#endregion
|
|
4897
4896
|
//#region node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
4898
4897
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4899
|
-
function
|
|
4900
|
-
let t = /* @__PURE__ */
|
|
4901
|
-
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(
|
|
4898
|
+
function ys(e) {
|
|
4899
|
+
let t = /* @__PURE__ */ bs(e), n = h.forwardRef((e, n) => {
|
|
4900
|
+
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(Ss);
|
|
4902
4901
|
if (o) {
|
|
4903
4902
|
let e = o.props.children, r = a.map((t) => t === o ? h.Children.count(e) > 1 ? h.Children.only(null) : h.isValidElement(e) ? e.props.children : null : t);
|
|
4904
4903
|
return /* @__PURE__ */ w(t, {
|
|
@@ -4916,22 +4915,22 @@ function vs(e) {
|
|
|
4916
4915
|
return n.displayName = `${e}.Slot`, n;
|
|
4917
4916
|
}
|
|
4918
4917
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4919
|
-
function
|
|
4918
|
+
function bs(e) {
|
|
4920
4919
|
let t = h.forwardRef((e, t) => {
|
|
4921
4920
|
let { children: n, ...r } = e;
|
|
4922
4921
|
if (h.isValidElement(n)) {
|
|
4923
|
-
let e =
|
|
4924
|
-
return n.type !== h.Fragment && (i.ref = t ?
|
|
4922
|
+
let e = ws(n), i = Cs(r, n.props);
|
|
4923
|
+
return n.type !== h.Fragment && (i.ref = t ? ds(t, e) : e), h.cloneElement(n, i);
|
|
4925
4924
|
}
|
|
4926
4925
|
return h.Children.count(n) > 1 ? h.Children.only(null) : null;
|
|
4927
4926
|
});
|
|
4928
4927
|
return t.displayName = `${e}.SlotClone`, t;
|
|
4929
4928
|
}
|
|
4930
|
-
var
|
|
4931
|
-
function
|
|
4932
|
-
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
4929
|
+
var xs = Symbol("radix.slottable");
|
|
4930
|
+
function Ss(e) {
|
|
4931
|
+
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xs;
|
|
4933
4932
|
}
|
|
4934
|
-
function
|
|
4933
|
+
function Cs(e, t) {
|
|
4935
4934
|
let n = { ...t };
|
|
4936
4935
|
for (let r in t) {
|
|
4937
4936
|
let i = e[r], a = t[r];
|
|
@@ -4948,13 +4947,13 @@ function Ss(e, t) {
|
|
|
4948
4947
|
...n
|
|
4949
4948
|
};
|
|
4950
4949
|
}
|
|
4951
|
-
function
|
|
4950
|
+
function ws(e) {
|
|
4952
4951
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4953
4952
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4954
4953
|
}
|
|
4955
4954
|
//#endregion
|
|
4956
4955
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
4957
|
-
var
|
|
4956
|
+
var Ts = [
|
|
4958
4957
|
"a",
|
|
4959
4958
|
"button",
|
|
4960
4959
|
"div",
|
|
@@ -4973,7 +4972,7 @@ var ws = [
|
|
|
4973
4972
|
"svg",
|
|
4974
4973
|
"ul"
|
|
4975
4974
|
].reduce((e, t) => {
|
|
4976
|
-
let n = /* @__PURE__ */
|
|
4975
|
+
let n = /* @__PURE__ */ ys(`Primitive.${t}`), r = h.forwardRef((e, r) => {
|
|
4977
4976
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
4978
4977
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(o, {
|
|
4979
4978
|
...a,
|
|
@@ -4985,24 +4984,24 @@ var ws = [
|
|
|
4985
4984
|
[t]: r
|
|
4986
4985
|
};
|
|
4987
4986
|
}, {});
|
|
4988
|
-
function
|
|
4987
|
+
function Es(e, t) {
|
|
4989
4988
|
e && ae.flushSync(() => e.dispatchEvent(t));
|
|
4990
4989
|
}
|
|
4991
4990
|
//#endregion
|
|
4992
4991
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
4993
|
-
var
|
|
4992
|
+
var Ds = globalThis?.document ? h.useLayoutEffect : () => {};
|
|
4994
4993
|
//#endregion
|
|
4995
4994
|
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4996
|
-
function
|
|
4995
|
+
function Os(e, t) {
|
|
4997
4996
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
4998
4997
|
}
|
|
4999
|
-
var
|
|
5000
|
-
let { present: t, children: n } = e, r =
|
|
4998
|
+
var ks = (e) => {
|
|
4999
|
+
let { present: t, children: n } = e, r = As(t), i = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a = Y(r.ref, Ms(i));
|
|
5001
5000
|
return typeof n == "function" || r.isPresent ? h.cloneElement(i, { ref: a }) : null;
|
|
5002
5001
|
};
|
|
5003
|
-
|
|
5004
|
-
function
|
|
5005
|
-
let [t, n] = h.useState(), r = h.useRef(null), i = h.useRef(e), a = h.useRef("none"), [o, s] =
|
|
5002
|
+
ks.displayName = "Presence";
|
|
5003
|
+
function As(e) {
|
|
5004
|
+
let [t, n] = h.useState(), r = h.useRef(null), i = h.useRef(e), a = h.useRef("none"), [o, s] = Os(e ? "mounted" : "unmounted", {
|
|
5006
5005
|
mounted: {
|
|
5007
5006
|
UNMOUNT: "unmounted",
|
|
5008
5007
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -5014,18 +5013,18 @@ function ks(e) {
|
|
|
5014
5013
|
unmounted: { MOUNT: "mounted" }
|
|
5015
5014
|
});
|
|
5016
5015
|
return h.useEffect(() => {
|
|
5017
|
-
let e =
|
|
5016
|
+
let e = js(r.current);
|
|
5018
5017
|
a.current = o === "mounted" ? e : "none";
|
|
5019
|
-
}, [o]),
|
|
5018
|
+
}, [o]), Ds(() => {
|
|
5020
5019
|
let t = r.current, n = i.current;
|
|
5021
5020
|
if (n !== e) {
|
|
5022
|
-
let r = a.current, o =
|
|
5021
|
+
let r = a.current, o = js(t);
|
|
5023
5022
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
5024
5023
|
}
|
|
5025
|
-
}, [e, s]),
|
|
5024
|
+
}, [e, s]), Ds(() => {
|
|
5026
5025
|
if (t) {
|
|
5027
5026
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
5028
|
-
let o =
|
|
5027
|
+
let o = js(r.current).includes(CSS.escape(a.animationName));
|
|
5029
5028
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
5030
5029
|
let r = t.style.animationFillMode;
|
|
5031
5030
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -5033,7 +5032,7 @@ function ks(e) {
|
|
|
5033
5032
|
});
|
|
5034
5033
|
}
|
|
5035
5034
|
}, c = (e) => {
|
|
5036
|
-
e.target === t && (a.current =
|
|
5035
|
+
e.target === t && (a.current = js(r.current));
|
|
5037
5036
|
};
|
|
5038
5037
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
5039
5038
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -5046,16 +5045,16 @@ function ks(e) {
|
|
|
5046
5045
|
}, [])
|
|
5047
5046
|
};
|
|
5048
5047
|
}
|
|
5049
|
-
function
|
|
5048
|
+
function js(e) {
|
|
5050
5049
|
return e?.animationName || "none";
|
|
5051
5050
|
}
|
|
5052
|
-
function
|
|
5051
|
+
function Ms(e) {
|
|
5053
5052
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
5054
5053
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
5055
5054
|
}
|
|
5056
5055
|
//#endregion
|
|
5057
5056
|
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
5058
|
-
function
|
|
5057
|
+
function Ns(e, t = []) {
|
|
5059
5058
|
let n = [];
|
|
5060
5059
|
function r(t, r) {
|
|
5061
5060
|
let i = h.createContext(r), a = n.length;
|
|
@@ -5086,9 +5085,9 @@ function Ms(e, t = []) {
|
|
|
5086
5085
|
} }), [n, r]);
|
|
5087
5086
|
};
|
|
5088
5087
|
};
|
|
5089
|
-
return i.scopeName = e, [r,
|
|
5088
|
+
return i.scopeName = e, [r, Ps(i, ...t)];
|
|
5090
5089
|
}
|
|
5091
|
-
function
|
|
5090
|
+
function Ps(...e) {
|
|
5092
5091
|
let t = e[0];
|
|
5093
5092
|
if (e.length === 1) return t;
|
|
5094
5093
|
let n = () => {
|
|
@@ -5119,14 +5118,14 @@ function X(e) {
|
|
|
5119
5118
|
}
|
|
5120
5119
|
//#endregion
|
|
5121
5120
|
//#region node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
5122
|
-
var
|
|
5123
|
-
function
|
|
5124
|
-
let t = h.useContext(
|
|
5121
|
+
var Fs = h.createContext(void 0);
|
|
5122
|
+
function Is(e) {
|
|
5123
|
+
let t = h.useContext(Fs);
|
|
5125
5124
|
return e || t || "ltr";
|
|
5126
5125
|
}
|
|
5127
5126
|
//#endregion
|
|
5128
5127
|
//#region node_modules/@radix-ui/number/dist/index.mjs
|
|
5129
|
-
function
|
|
5128
|
+
function Ls(e, [t, n]) {
|
|
5130
5129
|
return Math.min(n, Math.max(t, e));
|
|
5131
5130
|
}
|
|
5132
5131
|
typeof window < "u" && window.document && window.document.createElement;
|
|
@@ -5137,12 +5136,12 @@ function Z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
5137
5136
|
}
|
|
5138
5137
|
//#endregion
|
|
5139
5138
|
//#region node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
5140
|
-
function
|
|
5139
|
+
function Rs(e, t) {
|
|
5141
5140
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
5142
5141
|
}
|
|
5143
|
-
var
|
|
5144
|
-
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = h.useState(null), [l, u] = h.useState(null), [d, f] = h.useState(null), [p, m] = h.useState(null), [g, _] = h.useState(null), [v, y] = h.useState(0), [ee, b] = h.useState(0), [x, te] = h.useState(!1), [ne, S] = h.useState(!1), re = Y(t, (e) => c(e)), C =
|
|
5145
|
-
return /* @__PURE__ */ w(
|
|
5142
|
+
var zs = "ScrollArea", [Bs, Vs] = Ns(zs), [Hs, Q] = Bs(zs), Us = h.forwardRef((e, t) => {
|
|
5143
|
+
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = h.useState(null), [l, u] = h.useState(null), [d, f] = h.useState(null), [p, m] = h.useState(null), [g, _] = h.useState(null), [v, y] = h.useState(0), [ee, b] = h.useState(0), [x, te] = h.useState(!1), [ne, S] = h.useState(!1), re = Y(t, (e) => c(e)), C = Is(i);
|
|
5144
|
+
return /* @__PURE__ */ w(Hs, {
|
|
5146
5145
|
scope: n,
|
|
5147
5146
|
type: r,
|
|
5148
5147
|
dir: C,
|
|
@@ -5162,7 +5161,7 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5162
5161
|
onScrollbarYEnabledChange: S,
|
|
5163
5162
|
onCornerWidthChange: y,
|
|
5164
5163
|
onCornerHeightChange: b,
|
|
5165
|
-
children: /* @__PURE__ */ w(
|
|
5164
|
+
children: /* @__PURE__ */ w(Ts.div, {
|
|
5166
5165
|
dir: C,
|
|
5167
5166
|
...o,
|
|
5168
5167
|
ref: re,
|
|
@@ -5175,13 +5174,13 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5175
5174
|
})
|
|
5176
5175
|
});
|
|
5177
5176
|
});
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5180
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(
|
|
5177
|
+
Us.displayName = zs;
|
|
5178
|
+
var Ws = "ScrollAreaViewport", Gs = h.forwardRef((e, t) => {
|
|
5179
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(Ws, n), s = Y(t, h.useRef(null), o.onViewportChange);
|
|
5181
5180
|
return /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("style", {
|
|
5182
5181
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
5183
5182
|
nonce: i
|
|
5184
|
-
}), /* @__PURE__ */ w(
|
|
5183
|
+
}), /* @__PURE__ */ w(Ts.div, {
|
|
5185
5184
|
"data-radix-scroll-area-viewport": "",
|
|
5186
5185
|
...a,
|
|
5187
5186
|
ref: s,
|
|
@@ -5200,8 +5199,8 @@ var Us = "ScrollAreaViewport", Ws = h.forwardRef((e, t) => {
|
|
|
5200
5199
|
})
|
|
5201
5200
|
})] });
|
|
5202
5201
|
});
|
|
5203
|
-
|
|
5204
|
-
var $ = "ScrollAreaScrollbar",
|
|
5202
|
+
Gs.displayName = Ws;
|
|
5203
|
+
var $ = "ScrollAreaScrollbar", Ks = h.forwardRef((e, t) => {
|
|
5205
5204
|
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
|
|
5206
5205
|
return h.useEffect(() => (s ? a(!0) : o(!0), () => {
|
|
5207
5206
|
s ? a(!1) : o(!1);
|
|
@@ -5209,25 +5208,25 @@ var $ = "ScrollAreaScrollbar", Gs = h.forwardRef((e, t) => {
|
|
|
5209
5208
|
s,
|
|
5210
5209
|
a,
|
|
5211
5210
|
o
|
|
5212
|
-
]), i.type === "hover" ? /* @__PURE__ */ w(
|
|
5211
|
+
]), i.type === "hover" ? /* @__PURE__ */ w(qs, {
|
|
5213
5212
|
...r,
|
|
5214
5213
|
ref: t,
|
|
5215
5214
|
forceMount: n
|
|
5216
|
-
}) : i.type === "scroll" ? /* @__PURE__ */ w(
|
|
5215
|
+
}) : i.type === "scroll" ? /* @__PURE__ */ w(Js, {
|
|
5217
5216
|
...r,
|
|
5218
5217
|
ref: t,
|
|
5219
5218
|
forceMount: n
|
|
5220
|
-
}) : i.type === "auto" ? /* @__PURE__ */ w(
|
|
5219
|
+
}) : i.type === "auto" ? /* @__PURE__ */ w(Ys, {
|
|
5221
5220
|
...r,
|
|
5222
5221
|
ref: t,
|
|
5223
5222
|
forceMount: n
|
|
5224
|
-
}) : i.type === "always" ? /* @__PURE__ */ w(
|
|
5223
|
+
}) : i.type === "always" ? /* @__PURE__ */ w(Xs, {
|
|
5225
5224
|
...r,
|
|
5226
5225
|
ref: t
|
|
5227
5226
|
}) : null;
|
|
5228
5227
|
});
|
|
5229
|
-
|
|
5230
|
-
var
|
|
5228
|
+
Ks.displayName = $;
|
|
5229
|
+
var qs = h.forwardRef((e, t) => {
|
|
5231
5230
|
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), [a, o] = h.useState(!1);
|
|
5232
5231
|
return h.useEffect(() => {
|
|
5233
5232
|
let e = i.scrollArea, t = 0;
|
|
@@ -5241,16 +5240,16 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5241
5240
|
window.clearTimeout(t), e.removeEventListener("pointerenter", n), e.removeEventListener("pointerleave", r);
|
|
5242
5241
|
};
|
|
5243
5242
|
}
|
|
5244
|
-
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ w(
|
|
5243
|
+
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ w(ks, {
|
|
5245
5244
|
present: n || a,
|
|
5246
|
-
children: /* @__PURE__ */ w(
|
|
5245
|
+
children: /* @__PURE__ */ w(Ys, {
|
|
5247
5246
|
"data-state": a ? "visible" : "hidden",
|
|
5248
5247
|
...r,
|
|
5249
5248
|
ref: t
|
|
5250
5249
|
})
|
|
5251
5250
|
});
|
|
5252
|
-
}),
|
|
5253
|
-
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), a = e.orientation === "horizontal", o =
|
|
5251
|
+
}), Js = h.forwardRef((e, t) => {
|
|
5252
|
+
let { forceMount: n, ...r } = e, i = Q($, e.__scopeScrollArea), a = e.orientation === "horizontal", o = gc(() => c("SCROLL_END"), 100), [s, c] = Rs("hidden", {
|
|
5254
5253
|
hidden: { SCROLL: "scrolling" },
|
|
5255
5254
|
scrolling: {
|
|
5256
5255
|
SCROLL_END: "idle",
|
|
@@ -5289,9 +5288,9 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5289
5288
|
a,
|
|
5290
5289
|
c,
|
|
5291
5290
|
o
|
|
5292
|
-
]), /* @__PURE__ */ w(
|
|
5291
|
+
]), /* @__PURE__ */ w(ks, {
|
|
5293
5292
|
present: n || s !== "hidden",
|
|
5294
|
-
children: /* @__PURE__ */ w(
|
|
5293
|
+
children: /* @__PURE__ */ w(Xs, {
|
|
5295
5294
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
5296
5295
|
...r,
|
|
5297
5296
|
ref: t,
|
|
@@ -5299,22 +5298,22 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5299
5298
|
onPointerLeave: Z(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
5300
5299
|
})
|
|
5301
5300
|
});
|
|
5302
|
-
}),
|
|
5303
|
-
let n = Q($, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = h.useState(!1), s = e.orientation === "horizontal", c =
|
|
5301
|
+
}), Ys = h.forwardRef((e, t) => {
|
|
5302
|
+
let n = Q($, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = h.useState(!1), s = e.orientation === "horizontal", c = gc(() => {
|
|
5304
5303
|
if (n.viewport) {
|
|
5305
5304
|
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
5306
5305
|
o(s ? e : t);
|
|
5307
5306
|
}
|
|
5308
5307
|
}, 10);
|
|
5309
|
-
return
|
|
5308
|
+
return _c(n.viewport, c), _c(n.content, c), /* @__PURE__ */ w(ks, {
|
|
5310
5309
|
present: r || a,
|
|
5311
|
-
children: /* @__PURE__ */ w(
|
|
5310
|
+
children: /* @__PURE__ */ w(Xs, {
|
|
5312
5311
|
"data-state": a ? "visible" : "hidden",
|
|
5313
5312
|
...i,
|
|
5314
5313
|
ref: t
|
|
5315
5314
|
})
|
|
5316
5315
|
});
|
|
5317
|
-
}),
|
|
5316
|
+
}), Xs = h.forwardRef((e, t) => {
|
|
5318
5317
|
let { orientation: n = "vertical", ...r } = e, i = Q($, e.__scopeScrollArea), a = h.useRef(null), o = h.useRef(0), [s, c] = h.useState({
|
|
5319
5318
|
content: 0,
|
|
5320
5319
|
viewport: 0,
|
|
@@ -5323,7 +5322,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5323
5322
|
paddingStart: 0,
|
|
5324
5323
|
paddingEnd: 0
|
|
5325
5324
|
}
|
|
5326
|
-
}), l =
|
|
5325
|
+
}), l = lc(s.viewport, s.content), u = {
|
|
5327
5326
|
...r,
|
|
5328
5327
|
sizes: s,
|
|
5329
5328
|
onSizesChange: c,
|
|
@@ -5333,14 +5332,14 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5333
5332
|
onThumbPointerDown: (e) => o.current = e
|
|
5334
5333
|
};
|
|
5335
5334
|
function d(e, t) {
|
|
5336
|
-
return
|
|
5335
|
+
return dc(e, o.current, s, t);
|
|
5337
5336
|
}
|
|
5338
|
-
return n === "horizontal" ? /* @__PURE__ */ w(
|
|
5337
|
+
return n === "horizontal" ? /* @__PURE__ */ w(Zs, {
|
|
5339
5338
|
...u,
|
|
5340
5339
|
ref: t,
|
|
5341
5340
|
onThumbPositionChange: () => {
|
|
5342
5341
|
if (i.viewport && a.current) {
|
|
5343
|
-
let e = i.viewport.scrollLeft, t =
|
|
5342
|
+
let e = i.viewport.scrollLeft, t = fc(e, s, i.dir);
|
|
5344
5343
|
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
5345
5344
|
}
|
|
5346
5345
|
},
|
|
@@ -5350,12 +5349,12 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5350
5349
|
onDragScroll: (e) => {
|
|
5351
5350
|
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
|
|
5352
5351
|
}
|
|
5353
|
-
}) : n === "vertical" ? /* @__PURE__ */ w(
|
|
5352
|
+
}) : n === "vertical" ? /* @__PURE__ */ w(Qs, {
|
|
5354
5353
|
...u,
|
|
5355
5354
|
ref: t,
|
|
5356
5355
|
onThumbPositionChange: () => {
|
|
5357
5356
|
if (i.viewport && a.current) {
|
|
5358
|
-
let e = i.viewport.scrollTop, t =
|
|
5357
|
+
let e = i.viewport.scrollTop, t = fc(e, s);
|
|
5359
5358
|
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
5360
5359
|
}
|
|
5361
5360
|
},
|
|
@@ -5366,11 +5365,11 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5366
5365
|
i.viewport && (i.viewport.scrollTop = d(e));
|
|
5367
5366
|
}
|
|
5368
5367
|
}) : null;
|
|
5369
|
-
}),
|
|
5368
|
+
}), Zs = h.forwardRef((e, t) => {
|
|
5370
5369
|
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l = Y(t, c, a.onScrollbarXChange);
|
|
5371
5370
|
return h.useEffect(() => {
|
|
5372
5371
|
c.current && s(getComputedStyle(c.current));
|
|
5373
|
-
}, [c]), /* @__PURE__ */ w(
|
|
5372
|
+
}, [c]), /* @__PURE__ */ w(tc, {
|
|
5374
5373
|
"data-orientation": "horizontal",
|
|
5375
5374
|
...i,
|
|
5376
5375
|
ref: l,
|
|
@@ -5379,7 +5378,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5379
5378
|
bottom: 0,
|
|
5380
5379
|
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
5381
5380
|
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
5382
|
-
"--radix-scroll-area-thumb-width":
|
|
5381
|
+
"--radix-scroll-area-thumb-width": uc(n) + "px",
|
|
5383
5382
|
...e.style
|
|
5384
5383
|
},
|
|
5385
5384
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
@@ -5387,7 +5386,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5387
5386
|
onWheelScroll: (t, n) => {
|
|
5388
5387
|
if (a.viewport) {
|
|
5389
5388
|
let r = a.viewport.scrollLeft + t.deltaX;
|
|
5390
|
-
e.onWheelScroll(r),
|
|
5389
|
+
e.onWheelScroll(r), mc(r, n) && t.preventDefault();
|
|
5391
5390
|
}
|
|
5392
5391
|
},
|
|
5393
5392
|
onResize: () => {
|
|
@@ -5396,17 +5395,17 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5396
5395
|
viewport: a.viewport.offsetWidth,
|
|
5397
5396
|
scrollbar: {
|
|
5398
5397
|
size: c.current.clientWidth,
|
|
5399
|
-
paddingStart:
|
|
5400
|
-
paddingEnd:
|
|
5398
|
+
paddingStart: cc(o.paddingLeft),
|
|
5399
|
+
paddingEnd: cc(o.paddingRight)
|
|
5401
5400
|
}
|
|
5402
5401
|
});
|
|
5403
5402
|
}
|
|
5404
5403
|
});
|
|
5405
|
-
}),
|
|
5404
|
+
}), Qs = h.forwardRef((e, t) => {
|
|
5406
5405
|
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l = Y(t, c, a.onScrollbarYChange);
|
|
5407
5406
|
return h.useEffect(() => {
|
|
5408
5407
|
c.current && s(getComputedStyle(c.current));
|
|
5409
|
-
}, [c]), /* @__PURE__ */ w(
|
|
5408
|
+
}, [c]), /* @__PURE__ */ w(tc, {
|
|
5410
5409
|
"data-orientation": "vertical",
|
|
5411
5410
|
...i,
|
|
5412
5411
|
ref: l,
|
|
@@ -5416,7 +5415,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5416
5415
|
right: a.dir === "ltr" ? 0 : void 0,
|
|
5417
5416
|
left: a.dir === "rtl" ? 0 : void 0,
|
|
5418
5417
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
5419
|
-
"--radix-scroll-area-thumb-height":
|
|
5418
|
+
"--radix-scroll-area-thumb-height": uc(n) + "px",
|
|
5420
5419
|
...e.style
|
|
5421
5420
|
},
|
|
5422
5421
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
@@ -5424,7 +5423,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5424
5423
|
onWheelScroll: (t, n) => {
|
|
5425
5424
|
if (a.viewport) {
|
|
5426
5425
|
let r = a.viewport.scrollTop + t.deltaY;
|
|
5427
|
-
e.onWheelScroll(r),
|
|
5426
|
+
e.onWheelScroll(r), mc(r, n) && t.preventDefault();
|
|
5428
5427
|
}
|
|
5429
5428
|
},
|
|
5430
5429
|
onResize: () => {
|
|
@@ -5433,14 +5432,14 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5433
5432
|
viewport: a.viewport.offsetHeight,
|
|
5434
5433
|
scrollbar: {
|
|
5435
5434
|
size: c.current.clientHeight,
|
|
5436
|
-
paddingStart:
|
|
5437
|
-
paddingEnd:
|
|
5435
|
+
paddingStart: cc(o.paddingTop),
|
|
5436
|
+
paddingEnd: cc(o.paddingBottom)
|
|
5438
5437
|
}
|
|
5439
5438
|
});
|
|
5440
5439
|
}
|
|
5441
5440
|
});
|
|
5442
|
-
}), [
|
|
5443
|
-
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Q($, n), [m, g] = h.useState(null), _ = Y(t, (e) => g(e)), v = h.useRef(null), y = h.useRef(""), ee = p.viewport, b = r.content - r.viewport, x = X(u), te = X(c), ne =
|
|
5441
|
+
}), [$s, ec] = Bs($), tc = h.forwardRef((e, t) => {
|
|
5442
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = Q($, n), [m, g] = h.useState(null), _ = Y(t, (e) => g(e)), v = h.useRef(null), y = h.useRef(""), ee = p.viewport, b = r.content - r.viewport, x = X(u), te = X(c), ne = gc(d, 10);
|
|
5444
5443
|
function S(e) {
|
|
5445
5444
|
v.current && l({
|
|
5446
5445
|
x: e.clientX - v.current.left,
|
|
@@ -5458,7 +5457,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5458
5457
|
m,
|
|
5459
5458
|
b,
|
|
5460
5459
|
x
|
|
5461
|
-
]), h.useEffect(te, [r, te]),
|
|
5460
|
+
]), h.useEffect(te, [r, te]), _c(m, ne), _c(p.content, ne), /* @__PURE__ */ w($s, {
|
|
5462
5461
|
scope: n,
|
|
5463
5462
|
scrollbar: m,
|
|
5464
5463
|
hasThumb: i,
|
|
@@ -5466,7 +5465,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5466
5465
|
onThumbPointerUp: X(o),
|
|
5467
5466
|
onThumbPositionChange: te,
|
|
5468
5467
|
onThumbPointerDown: X(s),
|
|
5469
|
-
children: /* @__PURE__ */ w(
|
|
5468
|
+
children: /* @__PURE__ */ w(Ts.div, {
|
|
5470
5469
|
...f,
|
|
5471
5470
|
ref: _,
|
|
5472
5471
|
style: {
|
|
@@ -5483,24 +5482,24 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5483
5482
|
})
|
|
5484
5483
|
})
|
|
5485
5484
|
});
|
|
5486
|
-
}),
|
|
5487
|
-
let { forceMount: n, ...r } = e, i =
|
|
5488
|
-
return /* @__PURE__ */ w(
|
|
5485
|
+
}), nc = "ScrollAreaThumb", rc = h.forwardRef((e, t) => {
|
|
5486
|
+
let { forceMount: n, ...r } = e, i = ec(nc, e.__scopeScrollArea);
|
|
5487
|
+
return /* @__PURE__ */ w(ks, {
|
|
5489
5488
|
present: n || i.hasThumb,
|
|
5490
|
-
children: /* @__PURE__ */ w(
|
|
5489
|
+
children: /* @__PURE__ */ w(ic, {
|
|
5491
5490
|
ref: t,
|
|
5492
5491
|
...r
|
|
5493
5492
|
})
|
|
5494
5493
|
});
|
|
5495
|
-
}),
|
|
5496
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(
|
|
5494
|
+
}), ic = h.forwardRef((e, t) => {
|
|
5495
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(nc, n), o = ec(nc, n), { onThumbPositionChange: s } = o, c = Y(t, (e) => o.onThumbChange(e)), l = h.useRef(void 0), u = gc(() => {
|
|
5497
5496
|
l.current && (l.current(), l.current = void 0);
|
|
5498
5497
|
}, 100);
|
|
5499
5498
|
return h.useEffect(() => {
|
|
5500
5499
|
let e = a.viewport;
|
|
5501
5500
|
if (e) {
|
|
5502
5501
|
let t = () => {
|
|
5503
|
-
u(), l.current || (l.current =
|
|
5502
|
+
u(), l.current || (l.current = hc(e, s), s());
|
|
5504
5503
|
};
|
|
5505
5504
|
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
5506
5505
|
}
|
|
@@ -5508,7 +5507,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5508
5507
|
a.viewport,
|
|
5509
5508
|
u,
|
|
5510
5509
|
s
|
|
5511
|
-
]), /* @__PURE__ */ w(
|
|
5510
|
+
]), /* @__PURE__ */ w(Ts.div, {
|
|
5512
5511
|
"data-state": o.hasThumb ? "visible" : "hidden",
|
|
5513
5512
|
...i,
|
|
5514
5513
|
ref: c,
|
|
@@ -5527,24 +5526,24 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5527
5526
|
onPointerUp: Z(e.onPointerUp, o.onThumbPointerUp)
|
|
5528
5527
|
});
|
|
5529
5528
|
});
|
|
5530
|
-
|
|
5531
|
-
var
|
|
5532
|
-
let n = Q(
|
|
5533
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ w(
|
|
5529
|
+
rc.displayName = nc;
|
|
5530
|
+
var ac = "ScrollAreaCorner", oc = h.forwardRef((e, t) => {
|
|
5531
|
+
let n = Q(ac, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
5532
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ w(sc, {
|
|
5534
5533
|
...e,
|
|
5535
5534
|
ref: t
|
|
5536
5535
|
}) : null;
|
|
5537
5536
|
});
|
|
5538
|
-
|
|
5539
|
-
var
|
|
5540
|
-
let { __scopeScrollArea: n, ...r } = e, i = Q(
|
|
5541
|
-
return
|
|
5537
|
+
oc.displayName = ac;
|
|
5538
|
+
var sc = h.forwardRef((e, t) => {
|
|
5539
|
+
let { __scopeScrollArea: n, ...r } = e, i = Q(ac, n), [a, o] = h.useState(0), [s, c] = h.useState(0), l = !!(a && s);
|
|
5540
|
+
return _c(i.scrollbarX, () => {
|
|
5542
5541
|
let e = i.scrollbarX?.offsetHeight || 0;
|
|
5543
5542
|
i.onCornerHeightChange(e), c(e);
|
|
5544
|
-
}),
|
|
5543
|
+
}), _c(i.scrollbarY, () => {
|
|
5545
5544
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
5546
5545
|
i.onCornerWidthChange(e), o(e);
|
|
5547
|
-
}), l ? /* @__PURE__ */ w(
|
|
5546
|
+
}), l ? /* @__PURE__ */ w(Ts.div, {
|
|
5548
5547
|
...r,
|
|
5549
5548
|
ref: t,
|
|
5550
5549
|
style: {
|
|
@@ -5558,36 +5557,36 @@ var oc = h.forwardRef((e, t) => {
|
|
|
5558
5557
|
}
|
|
5559
5558
|
}) : null;
|
|
5560
5559
|
});
|
|
5561
|
-
function
|
|
5560
|
+
function cc(e) {
|
|
5562
5561
|
return e ? parseInt(e, 10) : 0;
|
|
5563
5562
|
}
|
|
5564
|
-
function
|
|
5563
|
+
function lc(e, t) {
|
|
5565
5564
|
let n = e / t;
|
|
5566
5565
|
return isNaN(n) ? 0 : n;
|
|
5567
5566
|
}
|
|
5568
|
-
function
|
|
5569
|
-
let t =
|
|
5567
|
+
function uc(e) {
|
|
5568
|
+
let t = lc(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
5570
5569
|
return Math.max(r, 18);
|
|
5571
5570
|
}
|
|
5572
|
-
function
|
|
5573
|
-
let i =
|
|
5574
|
-
return
|
|
5571
|
+
function dc(e, t, n, r = "ltr") {
|
|
5572
|
+
let i = uc(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
5573
|
+
return pc([c, l], d)(e);
|
|
5575
5574
|
}
|
|
5576
|
-
function
|
|
5577
|
-
let r =
|
|
5578
|
-
return
|
|
5575
|
+
function fc(e, t, n = "ltr") {
|
|
5576
|
+
let r = uc(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = Ls(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
5577
|
+
return pc([0, o], [0, s])(c);
|
|
5579
5578
|
}
|
|
5580
|
-
function
|
|
5579
|
+
function pc(e, t) {
|
|
5581
5580
|
return (n) => {
|
|
5582
5581
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
5583
5582
|
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
5584
5583
|
return t[0] + r * (n - e[0]);
|
|
5585
5584
|
};
|
|
5586
5585
|
}
|
|
5587
|
-
function
|
|
5586
|
+
function mc(e, t) {
|
|
5588
5587
|
return e > 0 && e < t;
|
|
5589
5588
|
}
|
|
5590
|
-
var
|
|
5589
|
+
var hc = (e, t = () => {}) => {
|
|
5591
5590
|
let n = {
|
|
5592
5591
|
left: e.scrollLeft,
|
|
5593
5592
|
top: e.scrollTop
|
|
@@ -5600,15 +5599,15 @@ var mc = (e, t = () => {}) => {
|
|
|
5600
5599
|
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
|
|
5601
5600
|
})(), () => window.cancelAnimationFrame(r);
|
|
5602
5601
|
};
|
|
5603
|
-
function
|
|
5602
|
+
function gc(e, t) {
|
|
5604
5603
|
let n = X(e), r = h.useRef(0);
|
|
5605
5604
|
return h.useEffect(() => () => window.clearTimeout(r.current), []), h.useCallback(() => {
|
|
5606
5605
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
5607
5606
|
}, [n, t]);
|
|
5608
5607
|
}
|
|
5609
|
-
function
|
|
5608
|
+
function _c(e, t) {
|
|
5610
5609
|
let n = X(t);
|
|
5611
|
-
|
|
5610
|
+
Ds(() => {
|
|
5612
5611
|
let t = 0;
|
|
5613
5612
|
if (e) {
|
|
5614
5613
|
let r = new ResizeObserver(() => {
|
|
@@ -5620,34 +5619,34 @@ function gc(e, t) {
|
|
|
5620
5619
|
}
|
|
5621
5620
|
}, [e, n]);
|
|
5622
5621
|
}
|
|
5623
|
-
var
|
|
5622
|
+
var vc = Us, yc = Gs, bc = oc;
|
|
5624
5623
|
//#endregion
|
|
5625
5624
|
//#region components/ui/scroll-area.tsx
|
|
5626
|
-
function
|
|
5627
|
-
return /* @__PURE__ */ T(
|
|
5625
|
+
function xc({ className: e, viewportRef: t, children: n, onScroll: r, ...i }) {
|
|
5626
|
+
return /* @__PURE__ */ T(vc, {
|
|
5628
5627
|
"data-slot": "scroll-area",
|
|
5629
5628
|
className: f("relative min-h-0 min-w-0 overflow-hidden", e),
|
|
5630
5629
|
...i,
|
|
5631
5630
|
children: [
|
|
5632
|
-
/* @__PURE__ */ w(
|
|
5631
|
+
/* @__PURE__ */ w(yc, {
|
|
5633
5632
|
ref: t,
|
|
5634
5633
|
"data-slot": "scroll-area-viewport",
|
|
5635
5634
|
onScroll: r,
|
|
5636
5635
|
className: f("h-full w-full rounded-[inherit]", "[&>div]:!block [&>div]:!w-full [&>div]:!max-w-full", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/40"),
|
|
5637
5636
|
children: n
|
|
5638
5637
|
}),
|
|
5639
|
-
/* @__PURE__ */ w(
|
|
5640
|
-
/* @__PURE__ */ w(
|
|
5638
|
+
/* @__PURE__ */ w(Sc, {}),
|
|
5639
|
+
/* @__PURE__ */ w(bc, {})
|
|
5641
5640
|
]
|
|
5642
5641
|
});
|
|
5643
5642
|
}
|
|
5644
|
-
function
|
|
5645
|
-
return /* @__PURE__ */ w(
|
|
5643
|
+
function Sc({ className: e, orientation: t = "vertical", ...n }) {
|
|
5644
|
+
return /* @__PURE__ */ w(Ks, {
|
|
5646
5645
|
"data-slot": "scroll-area-scrollbar",
|
|
5647
5646
|
orientation: t,
|
|
5648
5647
|
className: f("flex touch-none select-none transition-opacity duration-150", "opacity-0 data-[state=visible]:opacity-100", "hover:opacity-100", t === "vertical" && "h-full w-1.5 border-l border-l-transparent p-px", t === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-px", e),
|
|
5649
5648
|
...n,
|
|
5650
|
-
children: /* @__PURE__ */ w(
|
|
5649
|
+
children: /* @__PURE__ */ w(rc, {
|
|
5651
5650
|
"data-slot": "scroll-area-thumb",
|
|
5652
5651
|
className: f("relative flex-1 rounded-full", "bg-wx-fg-muted/40 hover:bg-wx-fg-muted/60 transition-colors")
|
|
5653
5652
|
})
|
|
@@ -5655,7 +5654,7 @@ function xc({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
5655
5654
|
}
|
|
5656
5655
|
//#endregion
|
|
5657
5656
|
//#region components/widget/tabs/messages-tab/message/media-lightbox.tsx
|
|
5658
|
-
function
|
|
5657
|
+
function Cc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
5659
5658
|
let a = d("lightbox"), [o, s] = C(t), c = Ao(), l = !(c.embedded ?? !1) || (c.lightboxViewport ?? !0);
|
|
5660
5659
|
b(() => {
|
|
5661
5660
|
r && s(t);
|
|
@@ -5701,7 +5700,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5701
5700
|
},
|
|
5702
5701
|
"aria-label": a("close"),
|
|
5703
5702
|
className: f("absolute top-4 right-4 z-10 flex h-9 w-9 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5704
|
-
children: /* @__PURE__ */ w(
|
|
5703
|
+
children: /* @__PURE__ */ w(ls, { size: 18 })
|
|
5705
5704
|
}),
|
|
5706
5705
|
u > 1 && /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("button", {
|
|
5707
5706
|
type: "button",
|
|
@@ -5710,7 +5709,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5710
5709
|
},
|
|
5711
5710
|
"aria-label": a("previous"),
|
|
5712
5711
|
className: f("absolute left-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5713
|
-
children: /* @__PURE__ */ w(
|
|
5712
|
+
children: /* @__PURE__ */ w(ss, { size: 20 })
|
|
5714
5713
|
}), /* @__PURE__ */ w("button", {
|
|
5715
5714
|
type: "button",
|
|
5716
5715
|
onClick: (e) => {
|
|
@@ -5718,7 +5717,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5718
5717
|
},
|
|
5719
5718
|
"aria-label": a("next"),
|
|
5720
5719
|
className: f("absolute right-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full", "bg-white/10 text-white transition-colors hover:bg-white/20"),
|
|
5721
|
-
children: /* @__PURE__ */ w(
|
|
5720
|
+
children: /* @__PURE__ */ w(cs, { size: 20 })
|
|
5722
5721
|
})] }),
|
|
5723
5722
|
/* @__PURE__ */ w(n.div, {
|
|
5724
5723
|
initial: {
|
|
@@ -5780,7 +5779,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5780
5779
|
}
|
|
5781
5780
|
//#endregion
|
|
5782
5781
|
//#region lib/content-languages.ts
|
|
5783
|
-
var
|
|
5782
|
+
var wc = [
|
|
5784
5783
|
{
|
|
5785
5784
|
value: "en",
|
|
5786
5785
|
label: "English"
|
|
@@ -5914,13 +5913,13 @@ var Cc = [
|
|
|
5914
5913
|
label: "中文(繁體)"
|
|
5915
5914
|
}
|
|
5916
5915
|
];
|
|
5917
|
-
function
|
|
5918
|
-
let t =
|
|
5916
|
+
function Tc(e) {
|
|
5917
|
+
let t = wc.find((t) => t.value === e);
|
|
5919
5918
|
if (t) return t.label;
|
|
5920
|
-
let n = e.split("-")[0].toLowerCase(), r =
|
|
5919
|
+
let n = e.split("-")[0].toLowerCase(), r = wc.find((e) => e.value === n);
|
|
5921
5920
|
return r ? r.label : n.toUpperCase();
|
|
5922
5921
|
}
|
|
5923
5922
|
//#endregion
|
|
5924
|
-
export { H as $,
|
|
5923
|
+
export { H as $, Rt as $t, mo as A, nr as At, ba as B, un as Bt, Yo as C, cr as Ct, Ao as D, Wn as Dt, ko as E, ur as Et, Ja as F, En as Ft, fa as G, $t as Gt, G as H, dn as Ht, Za as I, Tn as It, ua as J, Gt as Jt, ca as K, en as Kt, J as L, Cn as Lt, oo as M, kn as Mt, no as N, Dn as Nt, Eo as O, Un as Ot, co as P, On as Pt, V as Q, Lt as Qt, Ha as R, bn as Rt, Xo as S, ar as St, Po as T, lr as Tt, _a as U, sn as Ut, Sa as V, cn as Vt, pa as W, nn as Wt, Ji as X, Vt as Xt, W as Y, Ht as Yt, qi as Z, Bt as Zt, Y as _, _r as _t, Ls as a, Ce as an, Ii as at, os as b, hr as bt, Ns as c, ye as cn, ii as ct, Es as d, ce as dn, $r as dt, nt as en, Gi as et, fs as f, de as fn, Tr as ft, ds as g, mr as gt, hs as h, gr as ht, Z as i, Te as in, Li as it, to as j, zn as jt, wo as k, sr as kt, Ds as l, E as ln, ai as lt, gs as m, D as mn, vr as mt, Cc as n, Ae as nn, B as nt, Is as o, Se as on, Mi as ot, _s as p, le as pn, dr as pt, la as q, Xt as qt, xc as r, A as rn, Ri as rt, X as s, k as sn, ki as st, Tc as t, M as tn, zi as tt, Ts as u, ue as un, ri as ut, ls as v, fr as vt, Go as w, Gn as wt, as as x, or as xt, cs as y, pr as yt, Na as z, ln as zt };
|
|
5925
5924
|
|
|
5926
|
-
//# sourceMappingURL=widget-react-
|
|
5925
|
+
//# sourceMappingURL=widget-react-Chf-xoIT.js.map
|