@wexio/messenger-widget-react 1.0.8 → 1.0.9
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-CVx50FQP2.js → widget-react-6gPN3d4-2.js} +4 -4
- package/dist/{widget-react-DAT3UgdW2.js → widget-react-BIdQeQWb2.js} +4 -4
- package/dist/{widget-react-DxkbC0xE.js → widget-react-DNT_Wjab.js} +2 -2
- package/dist/{widget-react-CB6Jxluy.js → widget-react-DiHG4jJv.js} +2 -2
- package/dist/{widget-react-B0fjhAJD.js → widget-react-ONbzn_cj.js} +2 -2
- package/dist/{widget-react-A2LiLuw0.js → widget-react-Xe5iO4UM.js} +1014 -1000
- package/dist/widget-react.js +197 -197
- 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 M;
|
|
579
579
|
(function(e) {
|
|
580
580
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
581
|
-
})(
|
|
581
|
+
})(M || (M = {}));
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region node_modules/graphql/language/directiveLocation.mjs
|
|
584
|
-
var
|
|
584
|
+
var qe;
|
|
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
|
+
})(qe || (qe = {}));
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region node_modules/graphql/language/kinds.mjs
|
|
590
|
-
var
|
|
590
|
+
var N;
|
|
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
|
+
})(N || (N = {}));
|
|
594
594
|
//#endregion
|
|
595
595
|
//#region node_modules/graphql/language/characterClasses.mjs
|
|
596
|
-
function
|
|
596
|
+
function Je(e) {
|
|
597
597
|
return e === 9 || e === 32;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Ye(e) {
|
|
600
600
|
return e >= 48 && e <= 57;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Xe(e) {
|
|
603
603
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
605
|
+
function Ze(e) {
|
|
606
|
+
return Xe(e) || e === 95;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function Qe(e) {
|
|
609
|
+
return Xe(e) || Ye(e) || e === 95;
|
|
610
610
|
}
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region node_modules/graphql/language/blockString.mjs
|
|
613
|
-
function
|
|
613
|
+
function $e(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 = et(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 et(e) {
|
|
622
622
|
let t = 0;
|
|
623
|
-
for (; t < e.length &&
|
|
623
|
+
for (; t < e.length && Je(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 tt(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 || Je(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 && Je(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 P;
|
|
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
|
+
})(P || (P = {}));
|
|
636
636
|
//#endregion
|
|
637
637
|
//#region node_modules/graphql/language/lexer.mjs
|
|
638
|
-
var
|
|
638
|
+
var nt = class {
|
|
639
639
|
constructor(e) {
|
|
640
|
-
let t = new Ue(
|
|
640
|
+
let t = new Ue(P.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 rt = class {
|
|
|
648
648
|
}
|
|
649
649
|
lookahead() {
|
|
650
650
|
let e = this.token;
|
|
651
|
-
if (e.kind !==
|
|
651
|
+
if (e.kind !== P.EOF) do
|
|
652
652
|
if (e.next) e = e.next;
|
|
653
653
|
else {
|
|
654
|
-
let t =
|
|
654
|
+
let t = ct(this, e.end);
|
|
655
655
|
e.next = t, t.prev = e, e = t;
|
|
656
656
|
}
|
|
657
|
-
while (e.kind ===
|
|
657
|
+
while (e.kind === P.COMMENT);
|
|
658
658
|
return e;
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
function
|
|
662
|
-
return e ===
|
|
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
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function it(e) {
|
|
665
665
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function at(e, t) {
|
|
668
|
+
return ot(e.charCodeAt(t)) && st(e.charCodeAt(t + 1));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function ot(e) {
|
|
671
671
|
return e >= 55296 && e <= 56319;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function st(e) {
|
|
674
674
|
return e >= 56320 && e <= 57343;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function F(e, t) {
|
|
677
677
|
let n = e.source.body.codePointAt(t);
|
|
678
|
-
if (n === void 0) return
|
|
678
|
+
if (n === void 0) return P.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 I(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 ct(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 lt(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 lt(e, i);
|
|
707
|
+
case 33: return I(e, P.BANG, i, i + 1);
|
|
708
|
+
case 36: return I(e, P.DOLLAR, i, i + 1);
|
|
709
|
+
case 38: return I(e, P.AMP, i, i + 1);
|
|
710
|
+
case 40: return I(e, P.PAREN_L, i, i + 1);
|
|
711
|
+
case 41: return I(e, P.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 I(e, P.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 I(e, P.COLON, i, i + 1);
|
|
716
|
+
case 61: return I(e, P.EQUALS, i, i + 1);
|
|
717
|
+
case 64: return I(e, P.AT, i, i + 1);
|
|
718
|
+
case 91: return I(e, P.BRACKET_L, i, i + 1);
|
|
719
|
+
case 93: return I(e, P.BRACKET_R, i, i + 1);
|
|
720
|
+
case 123: return I(e, P.BRACE_L, i, i + 1);
|
|
721
|
+
case 124: return I(e, P.PIPE, i, i + 1);
|
|
722
|
+
case 125: return I(e, P.BRACE_R, i, i + 1);
|
|
723
|
+
case 34: return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? vt(e, i) : ft(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 (Ye(t) || t === 45) return ut(e, i, t);
|
|
726
|
+
if (Ze(t)) return yt(e, i);
|
|
727
|
+
throw j(e.source, i, t === 39 ? "Unexpected single quote character ('), did you mean to use a double quote (\")?" : it(t) || at(n, i) ? `Unexpected character: ${F(e, i)}.` : `Invalid character: ${F(e, i)}.`);
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return I(e, P.EOF, r, r);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function lt(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 (it(e)) ++i;
|
|
737
|
+
else if (at(n, i)) i += 2;
|
|
738
738
|
else break;
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return I(e, P.COMMENT, t, i, n.slice(t + 1, i));
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function ut(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), Ye(a)) throw j(e.source, i, `Invalid number, unexpected digit after 0: ${F(e, i)}.`);
|
|
746
|
+
} else i = dt(e, i, a), a = r.charCodeAt(i);
|
|
747
|
+
if (a === 46 && (o = !0, a = r.charCodeAt(++i), i = dt(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 = dt(e, i, a), a = r.charCodeAt(i)), a === 46 || Ze(a)) throw j(e.source, i, `Invalid number, expected digit but got: ${F(e, i)}.`);
|
|
748
|
+
return I(e, o ? P.FLOAT : P.INT, t, i, r.slice(t, i));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
if (!
|
|
750
|
+
function dt(e, t, n) {
|
|
751
|
+
if (!Ye(n)) throw j(e.source, t, `Invalid number, expected digit but got: ${F(e, t)}.`);
|
|
752
752
|
let r = e.source.body, i = t + 1;
|
|
753
|
-
for (;
|
|
753
|
+
for (; Ye(r.charCodeAt(i));) ++i;
|
|
754
754
|
return i;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function ft(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), I(e, P.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 ? pt(e, i) : mt(e, i) : _t(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 (it(r)) ++i;
|
|
769
|
+
else if (at(n, i)) i += 2;
|
|
770
|
+
else throw j(e.source, i, `Invalid character within String: ${F(e, i)}.`);
|
|
771
771
|
}
|
|
772
772
|
throw j(e.source, i, "Unterminated string.");
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function pt(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 || !it(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 | gt(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 mt(e, t) {
|
|
790
|
+
let n = e.source.body, r = ht(n, t + 2);
|
|
791
|
+
if (it(r)) return {
|
|
792
792
|
value: String.fromCodePoint(r),
|
|
793
793
|
size: 6
|
|
794
794
|
};
|
|
795
|
-
if (
|
|
796
|
-
let e =
|
|
797
|
-
if (
|
|
795
|
+
if (ot(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
|
|
796
|
+
let e = ht(n, t + 8);
|
|
797
|
+
if (st(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 ht(e, t) {
|
|
805
|
+
return gt(e.charCodeAt(t)) << 12 | gt(e.charCodeAt(t + 1)) << 8 | gt(e.charCodeAt(t + 2)) << 4 | gt(e.charCodeAt(t + 3));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function gt(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 _t(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 vt(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 vt(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 = I(e, P.BLOCK_STRING, t, a + 3, $e(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 yt(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 (it(r)) ++a;
|
|
866
|
+
else if (at(n, a)) a += 2;
|
|
867
|
+
else throw j(e.source, a, `Invalid character within String: ${F(e, a)}.`);
|
|
868
868
|
}
|
|
869
869
|
throw j(e.source, a, "Unterminated string.");
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function yt(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 && Qe(n.charCodeAt(i));) ++i;
|
|
874
|
+
return I(e, P.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 bt = 10, xt = 2;
|
|
879
|
+
function St(e) {
|
|
880
|
+
return Ct(e, []);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Ct(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 wt(e, t);
|
|
887
887
|
default: return String(e);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function wt(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 (Tt(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 : Ct(t, n);
|
|
897
|
+
} else if (Array.isArray(e)) return Dt(e, n);
|
|
898
|
+
return Et(e, n);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Tt(e) {
|
|
901
901
|
return typeof e.toJSON == "function";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Et(e, t) {
|
|
904
904
|
let n = Object.entries(e);
|
|
905
|
-
return n.length === 0 ? "{}" : t.length >
|
|
905
|
+
return n.length === 0 ? "{}" : t.length > xt ? "[" + Ot(e) + "]" : "{ " + n.map(([e, n]) => e + ": " + Ct(n, t)).join(", ") + " }";
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Dt(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 > xt) return "[Array]";
|
|
910
|
+
let n = Math.min(bt, e.length), r = e.length - n, i = [];
|
|
911
|
+
for (let r = 0; r < n; ++r) i.push(Ct(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 Ot(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 kt(e) {
|
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
var
|
|
922
|
+
var kt = 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 = St(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
|
+
}, At = 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: ${St(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 jt(e) {
|
|
957
|
+
return kt(e, At);
|
|
958
958
|
}
|
|
959
959
|
//#endregion
|
|
960
960
|
//#region node_modules/graphql/language/parser.mjs
|
|
961
|
-
function
|
|
962
|
-
let n = new
|
|
961
|
+
function Mt(e, t) {
|
|
962
|
+
let n = new Nt(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 Nt = 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 = jt(e) ? e : new At(e);
|
|
974
|
+
this._lexer = new nt(t);
|
|
975
975
|
}
|
|
976
976
|
this._options = r, this._tokenCounter = 0;
|
|
977
977
|
}
|
|
@@ -979,23 +979,23 @@ var Pt = class {
|
|
|
979
979
|
return this._tokenCounter;
|
|
980
980
|
}
|
|
981
981
|
parseName() {
|
|
982
|
-
let e = this.expectToken(
|
|
982
|
+
let e = this.expectToken(P.NAME);
|
|
983
983
|
return this.node(e, {
|
|
984
|
-
kind:
|
|
984
|
+
kind: N.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: N.DOCUMENT,
|
|
991
|
+
definitions: this.many(P.SOF, this.parseDefinition, P.EOF)
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
parseDefinition() {
|
|
995
|
-
if (this.peek(
|
|
995
|
+
if (this.peek(P.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 === P.BRACE_L) throw j(this._lexer.source, this._lexer.token.start, "Unexpected description, descriptions are not supported on shorthand queries.");
|
|
998
|
+
if (t.kind === P.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 Pt = 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(P.BRACE_L)) return this.node(e, {
|
|
1025
|
+
kind: N.OPERATION_DEFINITION,
|
|
1026
|
+
operation: M.QUERY,
|
|
1027
1027
|
description: void 0,
|
|
1028
1028
|
name: void 0,
|
|
1029
1029
|
variableDefinitions: [],
|
|
@@ -1031,8 +1031,8 @@ var Pt = 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(P.NAME) && (r = this.parseName()), this.node(e, {
|
|
1035
|
+
kind: N.OPERATION_DEFINITION,
|
|
1036
1036
|
operation: n,
|
|
1037
1037
|
description: t,
|
|
1038
1038
|
name: r,
|
|
@@ -1042,62 +1042,62 @@ var Pt = class {
|
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
parseOperationType() {
|
|
1045
|
-
let e = this.expectToken(
|
|
1045
|
+
let e = this.expectToken(P.NAME);
|
|
1046
1046
|
switch (e.value) {
|
|
1047
|
-
case "query": return
|
|
1048
|
-
case "mutation": return
|
|
1049
|
-
case "subscription": return
|
|
1047
|
+
case "query": return M.QUERY;
|
|
1048
|
+
case "mutation": return M.MUTATION;
|
|
1049
|
+
case "subscription": return M.SUBSCRIPTION;
|
|
1050
1050
|
}
|
|
1051
1051
|
throw this.unexpected(e);
|
|
1052
1052
|
}
|
|
1053
1053
|
parseVariableDefinitions() {
|
|
1054
|
-
return this.optionalMany(
|
|
1054
|
+
return this.optionalMany(P.PAREN_L, this.parseVariableDefinition, P.PAREN_R);
|
|
1055
1055
|
}
|
|
1056
1056
|
parseVariableDefinition() {
|
|
1057
1057
|
return this.node(this._lexer.token, {
|
|
1058
|
-
kind:
|
|
1058
|
+
kind: N.VARIABLE_DEFINITION,
|
|
1059
1059
|
description: this.parseDescription(),
|
|
1060
1060
|
variable: this.parseVariable(),
|
|
1061
|
-
type: (this.expectToken(
|
|
1062
|
-
defaultValue: this.expectOptionalToken(
|
|
1061
|
+
type: (this.expectToken(P.COLON), this.parseTypeReference()),
|
|
1062
|
+
defaultValue: this.expectOptionalToken(P.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(P.DOLLAR), this.node(e, {
|
|
1069
|
+
kind: N.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: N.SELECTION_SET,
|
|
1076
|
+
selections: this.many(P.BRACE_L, this.parseSelection, P.BRACE_R)
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
parseSelection() {
|
|
1080
|
-
return this.peek(
|
|
1080
|
+
return this.peek(P.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(P.COLON) ? (n = t, r = this.parseName()) : r = t, this.node(e, {
|
|
1085
|
+
kind: N.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(P.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(P.PAREN_L, t, P.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(P.COLON), this.node(t, {
|
|
1100
|
+
kind: N.ARGUMENT,
|
|
1101
1101
|
name: n,
|
|
1102
1102
|
value: this.parseValueLiteral(e)
|
|
1103
1103
|
});
|
|
@@ -1107,14 +1107,14 @@ var Pt = class {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
parseFragment() {
|
|
1109
1109
|
let e = this._lexer.token;
|
|
1110
|
-
this.expectToken(
|
|
1110
|
+
this.expectToken(P.SPREAD);
|
|
1111
1111
|
let t = this.expectOptionalKeyword("on");
|
|
1112
|
-
return !t && this.peek(
|
|
1113
|
-
kind:
|
|
1112
|
+
return !t && this.peek(P.NAME) ? this.node(e, {
|
|
1113
|
+
kind: N.FRAGMENT_SPREAD,
|
|
1114
1114
|
name: this.parseFragmentName(),
|
|
1115
1115
|
directives: this.parseDirectives(!1)
|
|
1116
1116
|
}) : this.node(e, {
|
|
1117
|
-
kind:
|
|
1117
|
+
kind: N.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 Pt = 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: N.FRAGMENT_DEFINITION,
|
|
1127
1127
|
description: t,
|
|
1128
1128
|
name: this.parseFragmentName(),
|
|
1129
1129
|
variableDefinitions: this.parseVariableDefinitions(),
|
|
@@ -1131,7 +1131,7 @@ var Pt = class {
|
|
|
1131
1131
|
directives: this.parseDirectives(!1),
|
|
1132
1132
|
selectionSet: this.parseSelectionSet()
|
|
1133
1133
|
}) : this.node(e, {
|
|
1134
|
-
kind:
|
|
1134
|
+
kind: N.FRAGMENT_DEFINITION,
|
|
1135
1135
|
description: t,
|
|
1136
1136
|
name: this.parseFragmentName(),
|
|
1137
1137
|
typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
|
|
@@ -1146,35 +1146,35 @@ var Pt = 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 P.BRACKET_L: return this.parseList(e);
|
|
1150
|
+
case P.BRACE_L: return this.parseObject(e);
|
|
1151
|
+
case P.INT: return this.advanceLexer(), this.node(t, {
|
|
1152
|
+
kind: N.INT,
|
|
1153
1153
|
value: t.value
|
|
1154
1154
|
});
|
|
1155
|
-
case
|
|
1156
|
-
kind:
|
|
1155
|
+
case P.FLOAT: return this.advanceLexer(), this.node(t, {
|
|
1156
|
+
kind: N.FLOAT,
|
|
1157
1157
|
value: t.value
|
|
1158
1158
|
});
|
|
1159
|
-
case
|
|
1160
|
-
case
|
|
1161
|
-
case
|
|
1159
|
+
case P.STRING:
|
|
1160
|
+
case P.BLOCK_STRING: return this.parseStringLiteral();
|
|
1161
|
+
case P.NAME: switch (this.advanceLexer(), t.value) {
|
|
1162
1162
|
case "true": return this.node(t, {
|
|
1163
|
-
kind:
|
|
1163
|
+
kind: N.BOOLEAN,
|
|
1164
1164
|
value: !0
|
|
1165
1165
|
});
|
|
1166
1166
|
case "false": return this.node(t, {
|
|
1167
|
-
kind:
|
|
1167
|
+
kind: N.BOOLEAN,
|
|
1168
1168
|
value: !1
|
|
1169
1169
|
});
|
|
1170
|
-
case "null": return this.node(t, { kind:
|
|
1170
|
+
case "null": return this.node(t, { kind: N.NULL });
|
|
1171
1171
|
default: return this.node(t, {
|
|
1172
|
-
kind:
|
|
1172
|
+
kind: N.ENUM,
|
|
1173
1173
|
value: t.value
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
|
-
case
|
|
1177
|
-
if (e) if (this.expectToken(
|
|
1176
|
+
case P.DOLLAR:
|
|
1177
|
+
if (e) if (this.expectToken(P.DOLLAR), this._lexer.token.kind === P.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 Pt = class {
|
|
|
1188
1188
|
parseStringLiteral() {
|
|
1189
1189
|
let e = this._lexer.token;
|
|
1190
1190
|
return this.advanceLexer(), this.node(e, {
|
|
1191
|
-
kind:
|
|
1191
|
+
kind: N.STRING,
|
|
1192
1192
|
value: e.value,
|
|
1193
|
-
block: e.kind ===
|
|
1193
|
+
block: e.kind === P.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: N.LIST,
|
|
1199
|
+
values: this.any(P.BRACKET_L, () => this.parseValueLiteral(e), P.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: N.OBJECT,
|
|
1205
|
+
fields: this.any(P.BRACE_L, () => this.parseObjectField(e), P.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(P.COLON), this.node(t, {
|
|
1211
|
+
kind: N.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(P.AT);) t.push(this.parseDirective(e));
|
|
1219
1219
|
return t;
|
|
1220
1220
|
}
|
|
1221
1221
|
parseConstDirectives() {
|
|
@@ -1223,34 +1223,34 @@ var Pt = class {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
parseDirective(e) {
|
|
1225
1225
|
let t = this._lexer.token;
|
|
1226
|
-
return this.expectToken(
|
|
1227
|
-
kind:
|
|
1226
|
+
return this.expectToken(P.AT), this.node(t, {
|
|
1227
|
+
kind: N.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(P.BRACKET_L)) {
|
|
1235
1235
|
let n = this.parseTypeReference();
|
|
1236
|
-
this.expectToken(
|
|
1237
|
-
kind:
|
|
1236
|
+
this.expectToken(P.BRACKET_R), t = this.node(e, {
|
|
1237
|
+
kind: N.LIST_TYPE,
|
|
1238
1238
|
type: n
|
|
1239
1239
|
});
|
|
1240
1240
|
} else t = this.parseNamedType();
|
|
1241
|
-
return this.expectOptionalToken(
|
|
1242
|
-
kind:
|
|
1241
|
+
return this.expectOptionalToken(P.BANG) ? this.node(e, {
|
|
1242
|
+
kind: N.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: N.NAMED_TYPE,
|
|
1249
1249
|
name: this.parseName()
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
1252
|
peekDescription() {
|
|
1253
|
-
return this.peek(
|
|
1253
|
+
return this.peek(P.STRING) || this.peek(P.BLOCK_STRING);
|
|
1254
1254
|
}
|
|
1255
1255
|
parseDescription() {
|
|
1256
1256
|
if (this.peekDescription()) return this.parseStringLiteral();
|
|
@@ -1258,9 +1258,9 @@ var Pt = 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(P.BRACE_L, this.parseOperationTypeDefinition, P.BRACE_R);
|
|
1262
1262
|
return this.node(e, {
|
|
1263
|
-
kind:
|
|
1263
|
+
kind: N.SCHEMA_DEFINITION,
|
|
1264
1264
|
description: t,
|
|
1265
1265
|
directives: n,
|
|
1266
1266
|
operationTypes: r
|
|
@@ -1268,10 +1268,10 @@ var Pt = class {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
parseOperationTypeDefinition() {
|
|
1270
1270
|
let e = this._lexer.token, t = this.parseOperationType();
|
|
1271
|
-
this.expectToken(
|
|
1271
|
+
this.expectToken(P.COLON);
|
|
1272
1272
|
let n = this.parseNamedType();
|
|
1273
1273
|
return this.node(e, {
|
|
1274
|
-
kind:
|
|
1274
|
+
kind: N.OPERATION_TYPE_DEFINITION,
|
|
1275
1275
|
operation: t,
|
|
1276
1276
|
type: n
|
|
1277
1277
|
});
|
|
@@ -1281,7 +1281,7 @@ var Pt = 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: N.SCALAR_TYPE_DEFINITION,
|
|
1285
1285
|
description: t,
|
|
1286
1286
|
name: n,
|
|
1287
1287
|
directives: r
|
|
@@ -1292,7 +1292,7 @@ var Pt = 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: N.OBJECT_TYPE_DEFINITION,
|
|
1296
1296
|
description: t,
|
|
1297
1297
|
name: n,
|
|
1298
1298
|
interfaces: r,
|
|
@@ -1301,17 +1301,17 @@ var Pt = class {
|
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
parseImplementsInterfaces() {
|
|
1304
|
-
return this.expectOptionalKeyword("implements") ? this.delimitedMany(
|
|
1304
|
+
return this.expectOptionalKeyword("implements") ? this.delimitedMany(P.AMP, this.parseNamedType) : [];
|
|
1305
1305
|
}
|
|
1306
1306
|
parseFieldsDefinition() {
|
|
1307
|
-
return this.optionalMany(
|
|
1307
|
+
return this.optionalMany(P.BRACE_L, this.parseFieldDefinition, P.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(P.COLON);
|
|
1312
1312
|
let i = this.parseTypeReference(), a = this.parseConstDirectives();
|
|
1313
1313
|
return this.node(e, {
|
|
1314
|
-
kind:
|
|
1314
|
+
kind: N.FIELD_DEFINITION,
|
|
1315
1315
|
description: t,
|
|
1316
1316
|
name: n,
|
|
1317
1317
|
arguments: r,
|
|
@@ -1320,16 +1320,16 @@ var Pt = class {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
parseArgumentDefs() {
|
|
1323
|
-
return this.optionalMany(
|
|
1323
|
+
return this.optionalMany(P.PAREN_L, this.parseInputValueDef, P.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(P.COLON);
|
|
1328
1328
|
let r = this.parseTypeReference(), i;
|
|
1329
|
-
this.expectOptionalToken(
|
|
1329
|
+
this.expectOptionalToken(P.EQUALS) && (i = this.parseConstValueLiteral());
|
|
1330
1330
|
let a = this.parseConstDirectives();
|
|
1331
1331
|
return this.node(e, {
|
|
1332
|
-
kind:
|
|
1332
|
+
kind: N.INPUT_VALUE_DEFINITION,
|
|
1333
1333
|
description: t,
|
|
1334
1334
|
name: n,
|
|
1335
1335
|
type: r,
|
|
@@ -1342,7 +1342,7 @@ var Pt = 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: N.INTERFACE_TYPE_DEFINITION,
|
|
1346
1346
|
description: t,
|
|
1347
1347
|
name: n,
|
|
1348
1348
|
interfaces: r,
|
|
@@ -1355,7 +1355,7 @@ var Pt = 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: N.UNION_TYPE_DEFINITION,
|
|
1359
1359
|
description: t,
|
|
1360
1360
|
name: n,
|
|
1361
1361
|
directives: r,
|
|
@@ -1363,14 +1363,14 @@ var Pt = class {
|
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
1365
|
parseUnionMemberTypes() {
|
|
1366
|
-
return this.expectOptionalToken(
|
|
1366
|
+
return this.expectOptionalToken(P.EQUALS) ? this.delimitedMany(P.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: N.ENUM_TYPE_DEFINITION,
|
|
1374
1374
|
description: t,
|
|
1375
1375
|
name: n,
|
|
1376
1376
|
directives: r,
|
|
@@ -1378,19 +1378,19 @@ var Pt = class {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
parseEnumValuesDefinition() {
|
|
1381
|
-
return this.optionalMany(
|
|
1381
|
+
return this.optionalMany(P.BRACE_L, this.parseEnumValueDefinition, P.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: N.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, `${Pt(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 Pt = 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: N.INPUT_OBJECT_TYPE_DEFINITION,
|
|
1402
1402
|
description: t,
|
|
1403
1403
|
name: n,
|
|
1404
1404
|
directives: r,
|
|
@@ -1406,11 +1406,11 @@ var Pt = class {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
parseInputFieldsDefinition() {
|
|
1409
|
-
return this.optionalMany(
|
|
1409
|
+
return this.optionalMany(P.BRACE_L, this.parseInputValueDef, P.BRACE_R);
|
|
1410
1410
|
}
|
|
1411
1411
|
parseTypeSystemExtension() {
|
|
1412
1412
|
let e = this._lexer.lookahead();
|
|
1413
|
-
if (e.kind ===
|
|
1413
|
+
if (e.kind === P.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 Pt = 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(P.BRACE_L, this.parseOperationTypeDefinition, P.BRACE_R);
|
|
1431
1431
|
if (t.length === 0 && n.length === 0) throw this.unexpected();
|
|
1432
1432
|
return this.node(e, {
|
|
1433
|
-
kind:
|
|
1433
|
+
kind: N.SCHEMA_EXTENSION,
|
|
1434
1434
|
directives: t,
|
|
1435
1435
|
operationTypes: n
|
|
1436
1436
|
});
|
|
@@ -1441,7 +1441,7 @@ var Pt = 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: N.SCALAR_TYPE_EXTENSION,
|
|
1445
1445
|
name: t,
|
|
1446
1446
|
directives: n
|
|
1447
1447
|
});
|
|
@@ -1452,7 +1452,7 @@ var Pt = 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: N.OBJECT_TYPE_EXTENSION,
|
|
1456
1456
|
name: t,
|
|
1457
1457
|
interfaces: n,
|
|
1458
1458
|
directives: r,
|
|
@@ -1465,7 +1465,7 @@ var Pt = 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: N.INTERFACE_TYPE_EXTENSION,
|
|
1469
1469
|
name: t,
|
|
1470
1470
|
interfaces: n,
|
|
1471
1471
|
directives: r,
|
|
@@ -1478,7 +1478,7 @@ var Pt = 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: N.UNION_TYPE_EXTENSION,
|
|
1482
1482
|
name: t,
|
|
1483
1483
|
directives: n,
|
|
1484
1484
|
types: r
|
|
@@ -1490,7 +1490,7 @@ var Pt = 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: N.ENUM_TYPE_EXTENSION,
|
|
1494
1494
|
name: t,
|
|
1495
1495
|
directives: n,
|
|
1496
1496
|
values: r
|
|
@@ -1502,7 +1502,7 @@ var Pt = 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: N.INPUT_OBJECT_TYPE_EXTENSION,
|
|
1506
1506
|
name: t,
|
|
1507
1507
|
directives: n,
|
|
1508
1508
|
fields: r
|
|
@@ -1510,23 +1510,23 @@ var Pt = 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(P.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: N.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(P.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: N.DIRECTIVE_DEFINITION,
|
|
1530
1530
|
description: t,
|
|
1531
1531
|
name: n,
|
|
1532
1532
|
arguments: r,
|
|
@@ -1536,35 +1536,35 @@ var Pt = class {
|
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
parseDirectiveLocations() {
|
|
1539
|
-
return this.delimitedMany(
|
|
1539
|
+
return this.delimitedMany(P.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(qe, 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(P.AT), n = this.parseName(), r;
|
|
1548
|
+
!t && this.expectOptionalToken(P.DOT) && (r = this.parseName());
|
|
1549
1549
|
let i;
|
|
1550
|
-
return (t || r) && this.expectOptionalToken(
|
|
1551
|
-
kind:
|
|
1550
|
+
return (t || r) && this.expectOptionalToken(P.PAREN_L) && (i = this.parseName(), this.expectToken(P.COLON), this.expectToken(P.PAREN_R)), t ? i ? this.node(e, {
|
|
1551
|
+
kind: N.DIRECTIVE_ARGUMENT_COORDINATE,
|
|
1552
1552
|
name: n,
|
|
1553
1553
|
argumentName: i
|
|
1554
1554
|
}) : this.node(e, {
|
|
1555
|
-
kind:
|
|
1555
|
+
kind: N.DIRECTIVE_COORDINATE,
|
|
1556
1556
|
name: n
|
|
1557
1557
|
}) : r ? i ? this.node(e, {
|
|
1558
|
-
kind:
|
|
1558
|
+
kind: N.ARGUMENT_COORDINATE,
|
|
1559
1559
|
name: n,
|
|
1560
1560
|
fieldName: r,
|
|
1561
1561
|
argumentName: i
|
|
1562
1562
|
}) : this.node(e, {
|
|
1563
|
-
kind:
|
|
1563
|
+
kind: N.MEMBER_COORDINATE,
|
|
1564
1564
|
name: n,
|
|
1565
1565
|
memberName: r
|
|
1566
1566
|
}) : this.node(e, {
|
|
1567
|
-
kind:
|
|
1567
|
+
kind: N.TYPE_COORDINATE,
|
|
1568
1568
|
name: n
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
@@ -1577,23 +1577,23 @@ var Pt = 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 ${Ft(e)}, found ${Pt(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 === P.NAME && t.value === e) this.advanceLexer();
|
|
1588
|
+
else throw j(this._lexer.source, t.start, `Expected "${e}", found ${Pt(t)}.`);
|
|
1589
1589
|
}
|
|
1590
1590
|
expectOptionalKeyword(e) {
|
|
1591
1591
|
let t = this._lexer.token;
|
|
1592
|
-
return t.kind ===
|
|
1592
|
+
return t.kind === P.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 ${Pt(t)}.`);
|
|
1597
1597
|
}
|
|
1598
1598
|
any(e, t, n) {
|
|
1599
1599
|
this.expectToken(e);
|
|
@@ -1629,22 +1629,22 @@ var Pt = 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 !== P.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 Pt(e) {
|
|
1636
1636
|
let t = e.value;
|
|
1637
|
-
return
|
|
1637
|
+
return Ft(e.kind) + (t == null ? "" : ` "${t}"`);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1639
|
+
function Ft(e) {
|
|
1640
|
+
return rt(e) ? `"${e}"` : e;
|
|
1641
1641
|
}
|
|
1642
1642
|
//#endregion
|
|
1643
1643
|
//#region node_modules/graphql/language/visitor.mjs
|
|
1644
|
-
var
|
|
1645
|
-
function
|
|
1644
|
+
var It = Object.freeze({});
|
|
1645
|
+
function Lt(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(N)) r.set(e, Rt(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 Rt(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: ${St(l)}.`), h = (e ? r.get(l.kind)?.leave : r.get(l.kind)?.enter)?.call(t, l, u, d, f, p), h === It) break;
|
|
1672
1672
|
if (h === !1) {
|
|
1673
1673
|
if (!e) {
|
|
1674
1674
|
f.pop();
|
|
@@ -1690,7 +1690,7 @@ function Rt(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 Rt(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 zt(e, t) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
//#endregion
|
|
1704
1704
|
//#region node_modules/@apollo/client/utilities/graphql/directives.js
|
|
1705
|
-
function
|
|
1705
|
+
function zt(e, t) {
|
|
1706
1706
|
var n = e.directives;
|
|
1707
|
-
return !n || !n.length ? !0 :
|
|
1707
|
+
return !n || !n.length ? !0 : Ut(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 Bt(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 Lt(t, { Directive: function(e) {
|
|
1715
|
+
if (r.delete(e.name.value) && (!n || !r.size)) return It;
|
|
1716
1716
|
} }), n ? !r.size : r.size < i;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return e &&
|
|
1718
|
+
function Vt(e) {
|
|
1719
|
+
return e && Bt(["client", "export"], e, !0);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Ht(e) {
|
|
1722
1722
|
var t = e.name.value;
|
|
1723
1723
|
return t === "skip" || t === "include";
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Ut(e) {
|
|
1726
1726
|
var t = [];
|
|
1727
1727
|
return e && e.length && e.forEach(function(e) {
|
|
1728
|
-
if (
|
|
1728
|
+
if (Ht(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 Wt(e) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}), t;
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function Wt(e) {
|
|
1742
1742
|
var t = e.directives?.find(function(e) {
|
|
1743
1743
|
return e.name.value === "unmask";
|
|
1744
1744
|
});
|
|
@@ -1746,12 +1746,12 @@ function Gt(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 === N.VARIABLE ? globalThis.__DEV__ !== !1 && A.warn(109) : n.value.kind === N.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 Gt = () => Object.create(null), { forEach: Kt, slice: qt } = Array.prototype, { hasOwnProperty: Jt } = Object.prototype, Yt = class e {
|
|
1754
|
+
constructor(e = !0, t = Gt) {
|
|
1755
1755
|
this.weakness = e, this.makeData = t;
|
|
1756
1756
|
}
|
|
1757
1757
|
lookup() {
|
|
@@ -1759,7 +1759,7 @@ var Kt = () => Object.create(null), { forEach: qt, slice: Jt } = Array.prototype
|
|
|
1759
1759
|
}
|
|
1760
1760
|
lookupArray(e) {
|
|
1761
1761
|
let t = this;
|
|
1762
|
-
return
|
|
1762
|
+
return Kt.call(e, (e) => t = t.getChildTrie(e)), Jt.call(t, "data") ? t.data : t.data = this.makeData(qt.call(e));
|
|
1763
1763
|
}
|
|
1764
1764
|
peek() {
|
|
1765
1765
|
return this.peekArray(arguments);
|
|
@@ -1779,7 +1779,7 @@ var Kt = () => Object.create(null), { forEach: qt, slice: Jt } = 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(qt.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 Kt = () => Object.create(null), { forEach: qt, slice: Jt } = 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 && Xt(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 Xt(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 Zt(e) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
//#endregion
|
|
1802
1802
|
//#region node_modules/@apollo/client/utilities/common/canUse.js
|
|
1803
|
-
var
|
|
1803
|
+
var Zt = k(function() {
|
|
1804
1804
|
return navigator.product;
|
|
1805
|
-
}) == "ReactNative",
|
|
1805
|
+
}) == "ReactNative", Qt = typeof WeakMap == "function" && !(Zt && !global.HermesInternal), $t = typeof WeakSet == "function", en = typeof Symbol == "function" && typeof Symbol.for == "function", tn = en && Symbol.asyncIterator, nn = typeof k(function() {
|
|
1806
1806
|
return window.document.createElement;
|
|
1807
|
-
}) == "function",
|
|
1807
|
+
}) == "function", rn = k(function() {
|
|
1808
1808
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
1809
|
-
}) || !1,
|
|
1809
|
+
}) || !1, an = (nn || Zt) && !rn;
|
|
1810
1810
|
//#endregion
|
|
1811
1811
|
//#region node_modules/@apollo/client/utilities/common/objects.js
|
|
1812
|
-
function
|
|
1812
|
+
function on(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 sn(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 cn(e, t) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
}], e.definitions, !0) });
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function cn(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 ln(e, t) {
|
|
1845
1845
|
switch (e.kind) {
|
|
1846
1846
|
case "InlineFragment": return e;
|
|
1847
1847
|
case "FragmentSpread":
|
|
@@ -1852,19 +1852,19 @@ function un(e, t) {
|
|
|
1852
1852
|
default: return null;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function un(e) {
|
|
1856
1856
|
var t = !0;
|
|
1857
|
-
return
|
|
1857
|
+
return Lt(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 It;
|
|
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 dn() {}
|
|
1866
|
+
var fn = class {
|
|
1867
|
+
constructor(e = Infinity, t = dn) {
|
|
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 pn = class {
|
|
|
1904
1904
|
};
|
|
1905
1905
|
//#endregion
|
|
1906
1906
|
//#region node_modules/@wry/caches/lib/weak.js
|
|
1907
|
-
function
|
|
1908
|
-
var
|
|
1907
|
+
function pn() {}
|
|
1908
|
+
var mn = pn, hn = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
1909
1909
|
return { deref: () => e };
|
|
1910
|
-
},
|
|
1910
|
+
}, gn = typeof WeakMap < "u" ? WeakMap : Map, _n = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
1911
1911
|
return {
|
|
1912
|
-
register:
|
|
1913
|
-
unregister:
|
|
1912
|
+
register: pn,
|
|
1913
|
+
unregister: pn
|
|
1914
1914
|
};
|
|
1915
|
-
},
|
|
1916
|
-
constructor(e = Infinity, t =
|
|
1917
|
-
this.max = e, this.dispose = t, this.map = new
|
|
1915
|
+
}, vn = 10024, yn = class {
|
|
1916
|
+
constructor(e = Infinity, t = mn) {
|
|
1917
|
+
this.max = e, this.dispose = t, this.map = new gn(), 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 < vn; 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 hn(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 _n(this.deleteNode.bind(this));
|
|
1928
1928
|
}
|
|
1929
1929
|
has(e) {
|
|
1930
1930
|
return this.map.has(e);
|
|
@@ -1965,30 +1965,30 @@ var hn = mn, gn = 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
|
+
}, bn = /* @__PURE__ */ new WeakSet();
|
|
1969
|
+
function xn(e) {
|
|
1970
|
+
e.size <= (e.max || -1) || bn.has(e) || (bn.add(e), setTimeout(function() {
|
|
1971
|
+
e.clean(), bn.delete(e);
|
|
1972
1972
|
}, 100));
|
|
1973
1973
|
}
|
|
1974
|
-
var
|
|
1975
|
-
var n = new
|
|
1974
|
+
var Sn = function(e, t) {
|
|
1975
|
+
var n = new yn(e, t);
|
|
1976
1976
|
return n.set = function(e, t) {
|
|
1977
|
-
var n =
|
|
1978
|
-
return
|
|
1977
|
+
var n = yn.prototype.set.call(this, e, t);
|
|
1978
|
+
return xn(this), n;
|
|
1979
1979
|
}, n;
|
|
1980
|
-
},
|
|
1981
|
-
var n = new
|
|
1980
|
+
}, Cn = function(e, t) {
|
|
1981
|
+
var n = new fn(e, t);
|
|
1982
1982
|
return n.set = function(e, t) {
|
|
1983
|
-
var n =
|
|
1984
|
-
return
|
|
1983
|
+
var n = fn.prototype.set.call(this, e, t);
|
|
1984
|
+
return xn(this), n;
|
|
1985
1985
|
}, n;
|
|
1986
|
-
},
|
|
1987
|
-
function
|
|
1988
|
-
|
|
1986
|
+
}, wn = E({}, be[Symbol.for("apollo.cacheSize")]), L = {};
|
|
1987
|
+
function Tn(e, t) {
|
|
1988
|
+
L[e] = t;
|
|
1989
1989
|
}
|
|
1990
|
-
var
|
|
1991
|
-
function
|
|
1990
|
+
var En = globalThis.__DEV__ === !1 ? void 0 : An, Dn = globalThis.__DEV__ === !1 ? void 0 : Mn, On = globalThis.__DEV__ === !1 ? void 0 : jn;
|
|
1991
|
+
function kn() {
|
|
1992
1992
|
return Object.fromEntries(Object.entries({
|
|
1993
1993
|
parser: 1e3,
|
|
1994
1994
|
canonicalStringify: 1e3,
|
|
@@ -2006,88 +2006,88 @@ function An() {
|
|
|
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, wn[t] || n];
|
|
2010
2010
|
}));
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function An() {
|
|
2013
2013
|
var e;
|
|
2014
2014
|
if (globalThis.__DEV__ === !1) throw Error("only supported in development mode");
|
|
2015
2015
|
return {
|
|
2016
|
-
limits:
|
|
2016
|
+
limits: kn(),
|
|
2017
2017
|
sizes: E({
|
|
2018
|
-
print:
|
|
2019
|
-
parser:
|
|
2020
|
-
canonicalStringify:
|
|
2021
|
-
links:
|
|
2018
|
+
print: L.print?.call(L),
|
|
2019
|
+
parser: L.parser?.call(L),
|
|
2020
|
+
canonicalStringify: L.canonicalStringify?.call(L),
|
|
2021
|
+
links: Ln(this.link),
|
|
2022
2022
|
queryManager: {
|
|
2023
2023
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
2024
|
-
documentTransforms:
|
|
2024
|
+
documentTransforms: Fn(this.queryManager.documentTransform)
|
|
2025
2025
|
}
|
|
2026
2026
|
}, (e = this.cache).getMemoryInternals?.call(e))
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2030
|
-
return { cache: { fragmentQueryDocuments:
|
|
2029
|
+
function jn() {
|
|
2030
|
+
return { cache: { fragmentQueryDocuments: R(this.getFragmentDoc) } };
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Mn() {
|
|
2033
2033
|
var e = this.config.fragments;
|
|
2034
|
-
return E(E({},
|
|
2035
|
-
addTypenameDocumentTransform:
|
|
2034
|
+
return E(E({}, jn.apply(this)), {
|
|
2035
|
+
addTypenameDocumentTransform: Fn(this.addTypenameTransform),
|
|
2036
2036
|
inMemoryCache: {
|
|
2037
|
-
executeSelectionSet:
|
|
2038
|
-
executeSubSelectedArray:
|
|
2039
|
-
maybeBroadcastWatch:
|
|
2037
|
+
executeSelectionSet: R(this.storeReader.executeSelectionSet),
|
|
2038
|
+
executeSubSelectedArray: R(this.storeReader.executeSubSelectedArray),
|
|
2039
|
+
maybeBroadcastWatch: R(this.maybeBroadcastWatch)
|
|
2040
2040
|
},
|
|
2041
2041
|
fragmentRegistry: {
|
|
2042
|
-
findFragmentSpreads:
|
|
2043
|
-
lookup:
|
|
2044
|
-
transform:
|
|
2042
|
+
findFragmentSpreads: R(e?.findFragmentSpreads),
|
|
2043
|
+
lookup: R(e?.lookup),
|
|
2044
|
+
transform: R(e?.transform)
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Nn(e) {
|
|
2049
2049
|
return !!e && "dirtyKey" in e;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2051
|
+
function R(e) {
|
|
2052
|
+
return Nn(e) ? e.size : void 0;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function Pn(e) {
|
|
2055
2055
|
return e != null;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return
|
|
2057
|
+
function Fn(e) {
|
|
2058
|
+
return In(e).map(function(e) {
|
|
2059
2059
|
return { cache: e };
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return e ? D(D([
|
|
2062
|
+
function In(e) {
|
|
2063
|
+
return e ? D(D([R(e?.performWork)], In(e?.left), !0), In(e?.right), !0).filter(Pn) : [];
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2066
|
-
return e ? D(D([(e?.getMemoryInternals)?.call(e)],
|
|
2065
|
+
function Ln(e) {
|
|
2066
|
+
return e ? D(D([(e?.getMemoryInternals)?.call(e)], Ln(e?.left), !0), Ln(e?.right), !0).filter(Pn) : [];
|
|
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 Rn = Object.assign(function(e) {
|
|
2071
|
+
return JSON.stringify(e, Bn);
|
|
2072
2072
|
}, { reset: function() {
|
|
2073
|
-
|
|
2073
|
+
zn = new Cn(wn.canonicalStringify || 1e3);
|
|
2074
2074
|
} });
|
|
2075
|
-
globalThis.__DEV__ !== !1 &&
|
|
2076
|
-
return
|
|
2075
|
+
globalThis.__DEV__ !== !1 && Tn("canonicalStringify", function() {
|
|
2076
|
+
return zn.size;
|
|
2077
2077
|
});
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
function
|
|
2078
|
+
var zn;
|
|
2079
|
+
Rn.reset();
|
|
2080
|
+
function Bn(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(Vn)) return t;
|
|
2086
|
+
var i = JSON.stringify(r), a = zn.get(i);
|
|
2087
2087
|
if (!a) {
|
|
2088
2088
|
r.sort();
|
|
2089
2089
|
var o = JSON.stringify(r);
|
|
2090
|
-
a =
|
|
2090
|
+
a = zn.get(o) || r, zn.set(i, a), zn.set(o, a);
|
|
2091
2091
|
}
|
|
2092
2092
|
var s = Object.create(n);
|
|
2093
2093
|
return a.forEach(function(e) {
|
|
@@ -2097,81 +2097,81 @@ function Vn(e, t) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
return t;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Vn(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
|
|
2105
|
+
function Hn(e) {
|
|
2106
2106
|
return { __ref: String(e) };
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function Un(e) {
|
|
2109
2109
|
return !!(e && typeof e == "object" && typeof e.__ref == "string");
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return
|
|
2111
|
+
function Wn(e) {
|
|
2112
|
+
return on(e) && e.kind === "Document" && Array.isArray(e.definitions);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Gn(e) {
|
|
2115
2115
|
return e.kind === "StringValue";
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Kn(e) {
|
|
2118
2118
|
return e.kind === "BooleanValue";
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function qn(e) {
|
|
2121
2121
|
return e.kind === "IntValue";
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Jn(e) {
|
|
2124
2124
|
return e.kind === "FloatValue";
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function Yn(e) {
|
|
2127
2127
|
return e.kind === "Variable";
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Xn(e) {
|
|
2130
2130
|
return e.kind === "ObjectValue";
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Zn(e) {
|
|
2133
2133
|
return e.kind === "ListValue";
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Qn(e) {
|
|
2136
2136
|
return e.kind === "EnumValue";
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function $n(e) {
|
|
2139
2139
|
return e.kind === "NullValue";
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2142
|
-
if (
|
|
2143
|
-
else if (
|
|
2144
|
-
else if (
|
|
2141
|
+
function er(e, t, n, r) {
|
|
2142
|
+
if (qn(n) || Jn(n)) e[t.value] = Number(n.value);
|
|
2143
|
+
else if (Kn(n) || Gn(n)) e[t.value] = n.value;
|
|
2144
|
+
else if (Xn(n)) {
|
|
2145
2145
|
var i = {};
|
|
2146
2146
|
n.fields.map(function(e) {
|
|
2147
|
-
return
|
|
2147
|
+
return er(i, e.name, e.value, r);
|
|
2148
2148
|
}), e[t.value] = i;
|
|
2149
|
-
} else if (
|
|
2149
|
+
} else if (Yn(n)) {
|
|
2150
2150
|
var a = (r || {})[n.name.value];
|
|
2151
2151
|
e[t.value] = a;
|
|
2152
|
-
} else if (
|
|
2152
|
+
} else if (Zn(n)) e[t.value] = n.values.map(function(e) {
|
|
2153
2153
|
var n = {};
|
|
2154
|
-
return
|
|
2154
|
+
return er(n, t, e, r), n[t.value];
|
|
2155
2155
|
});
|
|
2156
|
-
else if (
|
|
2157
|
-
else if (
|
|
2156
|
+
else if (Qn(n)) e[t.value] = n.value;
|
|
2157
|
+
else if ($n(n)) e[t.value] = null;
|
|
2158
2158
|
else throw Te(123, t.value, n.kind);
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function tr(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 er(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 er(r, n, i, t);
|
|
2172
|
+
})), ir(e.name.value, r, n);
|
|
2173
2173
|
}
|
|
2174
|
-
var
|
|
2174
|
+
var nr = [
|
|
2175
2175
|
"connection",
|
|
2176
2176
|
"include",
|
|
2177
2177
|
"skip",
|
|
@@ -2179,62 +2179,62 @@ var rr = [
|
|
|
2179
2179
|
"rest",
|
|
2180
2180
|
"export",
|
|
2181
2181
|
"nonreactive"
|
|
2182
|
-
],
|
|
2182
|
+
], rr = Rn, ir = 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}(${rr(i)})`;
|
|
2190
2190
|
} else return n.connection.key;
|
|
2191
2191
|
var a = e;
|
|
2192
2192
|
if (t) {
|
|
2193
|
-
var o =
|
|
2193
|
+
var o = rr(t);
|
|
2194
2194
|
a += `(${o})`;
|
|
2195
2195
|
}
|
|
2196
2196
|
return n && Object.keys(n).forEach(function(e) {
|
|
2197
|
-
|
|
2197
|
+
nr.indexOf(e) === -1 && (n[e] && Object.keys(n[e]).length ? a += `@${e}(${rr(n[e])})` : a += `@${e}`);
|
|
2198
2198
|
}), a;
|
|
2199
2199
|
}, { setStringify: function(e) {
|
|
2200
|
-
var t =
|
|
2201
|
-
return
|
|
2200
|
+
var t = rr;
|
|
2201
|
+
return rr = e, t;
|
|
2202
2202
|
} });
|
|
2203
|
-
function
|
|
2203
|
+
function ar(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 er(n, r, i, t);
|
|
2209
2209
|
}), n;
|
|
2210
2210
|
}
|
|
2211
2211
|
return null;
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function or(e) {
|
|
2214
2214
|
return e.alias ? e.alias.value : e.name.value;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function sr(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 (cr(o)) {
|
|
2220
|
+
if (o.name.value === "__typename") return e[or(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 = sr(e, ln(o, n).selectionSet, n);
|
|
2226
2226
|
if (typeof l == "string") return l;
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function cr(e) {
|
|
2230
2230
|
return e.kind === "Field";
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function lr(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 ur(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 dr(e) {
|
|
|
2244
2244
|
});
|
|
2245
2245
|
return A(t.length <= 1, 117, t.length), e;
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2247
|
+
function dr(e) {
|
|
2248
|
+
return ur(e), e.definitions.filter(function(e) {
|
|
2249
2249
|
return e.kind === "OperationDefinition";
|
|
2250
2250
|
})[0];
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function fr(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 pr(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 mr(e) {
|
|
2265
|
+
var t = dr(e);
|
|
2266
2266
|
return A(t && t.operation === "query", 118), t;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function hr(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 gr(e) {
|
|
2274
|
+
ur(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 _r(e) {
|
|
|
2283
2283
|
if (t) return t;
|
|
2284
2284
|
throw Te(122);
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function _r(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 && er(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 z = null, vr = {}, yr = 1, br = () => class {
|
|
2295
2295
|
constructor() {
|
|
2296
2296
|
this.id = [
|
|
2297
2297
|
"slot",
|
|
2298
|
-
|
|
2298
|
+
yr++,
|
|
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 = z; 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 === vr) break;
|
|
2307
|
+
return e !== z && (z.slots[this.id] = t), !0;
|
|
2308
2308
|
}
|
|
2309
|
-
return
|
|
2309
|
+
return z && (z.slots[this.id] = vr), !1;
|
|
2310
2310
|
}
|
|
2311
2311
|
getValue() {
|
|
2312
|
-
if (this.hasValue()) return
|
|
2312
|
+
if (this.hasValue()) return z.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 = z;
|
|
2319
|
+
z = {
|
|
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
|
+
z = a;
|
|
2327
2327
|
}
|
|
2328
2328
|
}
|
|
2329
2329
|
static bind(e) {
|
|
2330
|
-
let t =
|
|
2330
|
+
let t = z;
|
|
2331
2331
|
return function() {
|
|
2332
|
-
let n =
|
|
2332
|
+
let n = z;
|
|
2333
2333
|
try {
|
|
2334
|
-
return
|
|
2334
|
+
return z = t, e.apply(this, arguments);
|
|
2335
2335
|
} finally {
|
|
2336
|
-
|
|
2336
|
+
z = n;
|
|
2337
2337
|
}
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
static noContext(e, t, n) {
|
|
2341
|
-
if (
|
|
2342
|
-
let r =
|
|
2341
|
+
if (z) {
|
|
2342
|
+
let r = z;
|
|
2343
2343
|
try {
|
|
2344
|
-
return
|
|
2344
|
+
return z = null, e.apply(n, t);
|
|
2345
2345
|
} finally {
|
|
2346
|
-
|
|
2346
|
+
z = r;
|
|
2347
2347
|
}
|
|
2348
2348
|
} else return e.apply(n, t);
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
|
-
function
|
|
2351
|
+
function xr(e) {
|
|
2352
2352
|
try {
|
|
2353
2353
|
return e();
|
|
2354
2354
|
} catch {}
|
|
2355
2355
|
}
|
|
2356
|
-
var
|
|
2356
|
+
var Sr = "@wry/context:Slot", Cr = xr(() => globalThis) || xr(() => global) || Object.create(null), wr = Cr[Sr] || Array[Sr] || (function(e) {
|
|
2357
2357
|
try {
|
|
2358
|
-
Object.defineProperty(
|
|
2358
|
+
Object.defineProperty(Cr, Sr, {
|
|
2359
2359
|
value: e,
|
|
2360
2360
|
enumerable: !1,
|
|
2361
2361
|
writable: !1,
|
|
@@ -2364,76 +2364,76 @@ var Cr = "@wry/context:Slot", wr = Sr(() => globalThis) || Sr(() => global) || O
|
|
|
2364
2364
|
} finally {
|
|
2365
2365
|
return e;
|
|
2366
2366
|
}
|
|
2367
|
-
})(
|
|
2367
|
+
})(br()), { bind: Tr, noContext: Er } = wr, Dr = new wr(), { hasOwnProperty: Or } = Object.prototype, kr = Array.from || function(e) {
|
|
2368
2368
|
let t = [];
|
|
2369
2369
|
return e.forEach((e) => t.push(e)), t;
|
|
2370
2370
|
};
|
|
2371
|
-
function
|
|
2371
|
+
function Ar(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 jr = [], Mr = 100;
|
|
2378
|
+
function Nr(e, t) {
|
|
2379
2379
|
if (!e) throw Error(t || "assertion failure");
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Pr(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 Fr(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 Ir(e) {
|
|
2393
2393
|
return e.slice(0);
|
|
2394
2394
|
}
|
|
2395
|
-
var
|
|
2395
|
+
var Lr = 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 && !B(this)) return Rr(this), this.value[0];
|
|
2401
2401
|
}
|
|
2402
2402
|
recompute(e) {
|
|
2403
|
-
return
|
|
2403
|
+
return Nr(!this.recomputing, "already recomputing"), Rr(this), B(this) ? zr(this, e) : Fr(this.value);
|
|
2404
2404
|
}
|
|
2405
2405
|
setDirty() {
|
|
2406
|
-
this.dirty || (this.dirty = !0,
|
|
2406
|
+
this.dirty || (this.dirty = !0, Hr(this), Ar(this));
|
|
2407
2407
|
}
|
|
2408
2408
|
dispose() {
|
|
2409
|
-
this.setDirty(),
|
|
2410
|
-
e.setDirty(),
|
|
2409
|
+
this.setDirty(), Jr(this), Wr(this, (e, t) => {
|
|
2410
|
+
e.setDirty(), Yr(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 = jr.pop() || /* @__PURE__ */ new Set()), this.deps.add(e);
|
|
2418
2418
|
}
|
|
2419
2419
|
forgetDeps() {
|
|
2420
|
-
this.deps && (
|
|
2420
|
+
this.deps && (kr(this.deps).forEach((e) => e.delete(this)), this.deps.clear(), jr.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, []),
|
|
2423
|
+
Lr.count = 0;
|
|
2424
|
+
function Rr(e) {
|
|
2425
|
+
let t = Dr.getValue();
|
|
2426
|
+
if (t) return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []), B(e) ? Gr(t, e) : Kr(t, e), t;
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return
|
|
2428
|
+
function zr(e, t) {
|
|
2429
|
+
return Jr(e), Dr.withValue(e, Br, [e, t]), Xr(e, t) && Vr(e), Fr(e.value);
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Br(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 = Ir(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 && !Pr(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 Vr(e, t) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
e.recomputing = !1;
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function B(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
|
+
}
|
|
2447
2450
|
function Hr(e) {
|
|
2448
|
-
e
|
|
2451
|
+
Wr(e, Gr);
|
|
2449
2452
|
}
|
|
2450
2453
|
function Ur(e) {
|
|
2451
|
-
|
|
2454
|
+
Wr(e, Kr);
|
|
2452
2455
|
}
|
|
2453
|
-
function Wr(e) {
|
|
2454
|
-
Gr(e, qr);
|
|
2455
|
-
}
|
|
2456
|
-
function Gr(e, t) {
|
|
2456
|
+
function Wr(e, t) {
|
|
2457
2457
|
let n = e.parents.size;
|
|
2458
2458
|
if (n) {
|
|
2459
|
-
let r =
|
|
2459
|
+
let r = kr(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 Gr(e, t) {
|
|
2464
|
+
Nr(e.childValues.has(t)), Nr(B(t));
|
|
2465
|
+
let n = !B(e);
|
|
2466
|
+
if (!e.dirtyChildren) e.dirtyChildren = jr.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 && Hr(e);
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2470
|
+
function Kr(e, t) {
|
|
2471
|
+
Nr(e.childValues.has(t)), Nr(!B(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, Ir(t.value)) : Pr(n, t.value) || e.setDirty(), qr(e, t), !B(e) && Ur(e);
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function qr(e, t) {
|
|
2476
2476
|
let n = e.dirtyChildren;
|
|
2477
|
-
n && (n.delete(t), n.size === 0 && (
|
|
2477
|
+
n && (n.delete(t), n.size === 0 && (jr.length < Mr && jr.push(n), e.dirtyChildren = null));
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function Jr(e) {
|
|
2480
2480
|
e.childValues.size > 0 && e.childValues.forEach((t, n) => {
|
|
2481
|
-
|
|
2482
|
-
}), e.forgetDeps(),
|
|
2481
|
+
Yr(e, n);
|
|
2482
|
+
}), e.forgetDeps(), Nr(e.dirtyChildren === null);
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
t.parents.delete(e), e.childValues.delete(t),
|
|
2484
|
+
function Yr(e, t) {
|
|
2485
|
+
t.parents.delete(e), e.childValues.delete(t), qr(e, t);
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function Xr(e, t) {
|
|
2488
2488
|
if (typeof e.subscribe == "function") try {
|
|
2489
|
-
|
|
2489
|
+
Ar(e), e.unsubscribe = e.subscribe.apply(null, t);
|
|
2490
2490
|
} catch {
|
|
2491
2491
|
return e.setDirty(), !1;
|
|
2492
2492
|
}
|
|
@@ -2494,43 +2494,43 @@ function Zr(e, t) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
//#endregion
|
|
2496
2496
|
//#region node_modules/optimism/lib/dep.js
|
|
2497
|
-
var
|
|
2497
|
+
var Zr = {
|
|
2498
2498
|
setDirty: !0,
|
|
2499
2499
|
dispose: !0,
|
|
2500
2500
|
forget: !0
|
|
2501
2501
|
};
|
|
2502
|
-
function
|
|
2502
|
+
function Qr(e) {
|
|
2503
2503
|
let t = /* @__PURE__ */ new Map(), n = e && e.subscribe;
|
|
2504
2504
|
function r(e) {
|
|
2505
|
-
let r =
|
|
2505
|
+
let r = Dr.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" && (Ar(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 && Or.call(Zr, n) ? n : "setDirty";
|
|
2515
|
+
kr(r).forEach((e) => e[i]()), t.delete(e), Ar(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 $r;
|
|
2522
|
+
function ei(...e) {
|
|
2523
|
+
return ($r || ($r = new Yt(typeof WeakMap == "function"))).lookupArray(e);
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2525
|
+
var ti = /* @__PURE__ */ new Set();
|
|
2526
|
+
function ni(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ei, normalizeResult: i, subscribe: a, cache: o = fn } = 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 Lr(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), ti.add(s), Dr.hasValue() || (ti.forEach((e) => e.clean()), ti.clear()), c;
|
|
2534
2534
|
};
|
|
2535
2535
|
Object.defineProperty(c, "size", {
|
|
2536
2536
|
get: () => s.size,
|
|
@@ -2569,16 +2569,16 @@ function ri(e, { max: t = 2 ** 16, keyArgs: n, makeCacheKey: r = ti, normalizeRe
|
|
|
2569
2569
|
}
|
|
2570
2570
|
//#endregion
|
|
2571
2571
|
//#region node_modules/@apollo/client/utilities/common/arrays.js
|
|
2572
|
-
var
|
|
2573
|
-
function
|
|
2572
|
+
var ri = Array.isArray;
|
|
2573
|
+
function ii(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 ai(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 = oi(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 oi(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 oi(e, t) {
|
|
2594
2594
|
if (e) {
|
|
2595
|
-
if (typeof e == "string") return
|
|
2595
|
+
if (typeof e == "string") return si(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 si(e, t);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function si(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 ci(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 li(e, t, n) {
|
|
2613
|
+
return t && ci(e.prototype, t), n && ci(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2615
|
+
var ui = function() {
|
|
2616
2616
|
return typeof Symbol == "function";
|
|
2617
|
+
}, di = function(e) {
|
|
2618
|
+
return ui() && !!Symbol[e];
|
|
2617
2619
|
}, fi = function(e) {
|
|
2618
|
-
return di()
|
|
2619
|
-
}, pi = function(e) {
|
|
2620
|
-
return fi(e) ? Symbol[e] : "@@" + e;
|
|
2620
|
+
return di(e) ? Symbol[e] : "@@" + e;
|
|
2621
2621
|
};
|
|
2622
|
-
|
|
2623
|
-
var
|
|
2624
|
-
function
|
|
2622
|
+
ui() && !di("observable") && (Symbol.observable = Symbol("observable"));
|
|
2623
|
+
var pi = fi("iterator"), mi = fi("observable"), hi = fi("species");
|
|
2624
|
+
function gi(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
|
|
2631
|
+
function _i(e) {
|
|
2632
2632
|
var t = e.constructor;
|
|
2633
|
-
return t !== void 0 && (t = t[
|
|
2633
|
+
return t !== void 0 && (t = t[hi], t === null && (t = void 0)), t === void 0 ? Oi : t;
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return e instanceof
|
|
2635
|
+
function vi(e) {
|
|
2636
|
+
return e instanceof Oi;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
|
|
2638
|
+
function yi(e) {
|
|
2639
|
+
yi.log ? yi.log(e) : setTimeout(function() {
|
|
2640
2640
|
throw e;
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function bi(e) {
|
|
2644
2644
|
Promise.resolve().then(function() {
|
|
2645
2645
|
try {
|
|
2646
2646
|
e();
|
|
2647
2647
|
} catch (e) {
|
|
2648
|
-
|
|
2648
|
+
yi(e);
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
2652
|
-
function
|
|
2652
|
+
function xi(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 = gi(t, "unsubscribe");
|
|
2658
2658
|
n && n.call(t);
|
|
2659
2659
|
}
|
|
2660
2660
|
} catch (e) {
|
|
2661
|
-
|
|
2661
|
+
yi(e);
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2664
|
+
function Si(e) {
|
|
2665
2665
|
e._observer = void 0, e._queue = void 0, e._state = "closed";
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Ci(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 && (wi(e, t[n].type, t[n].value), e._state !== "closed"); ++n);
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function wi(e, t, n) {
|
|
2675
2675
|
e._state = "running";
|
|
2676
2676
|
var r = e._observer;
|
|
2677
2677
|
try {
|
|
2678
|
-
var i =
|
|
2678
|
+
var i = gi(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 (Si(e), i) i.call(r, n);
|
|
2685
2685
|
else throw n;
|
|
2686
2686
|
break;
|
|
2687
2687
|
case "complete":
|
|
2688
|
-
|
|
2688
|
+
Si(e), i && i.call(r);
|
|
2689
2689
|
break;
|
|
2690
2690
|
}
|
|
2691
2691
|
} catch (e) {
|
|
2692
|
-
|
|
2692
|
+
yi(e);
|
|
2693
2693
|
}
|
|
2694
|
-
e._state === "closed" ?
|
|
2694
|
+
e._state === "closed" ? xi(e) : e._state === "running" && (e._state = "ready");
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2696
|
+
function Ti(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 Ei(e, t, n) {
|
|
|
2706
2706
|
e._state = "buffering", e._queue = [{
|
|
2707
2707
|
type: t,
|
|
2708
2708
|
value: n
|
|
2709
|
-
}],
|
|
2710
|
-
return
|
|
2709
|
+
}], bi(function() {
|
|
2710
|
+
return Ci(e);
|
|
2711
2711
|
});
|
|
2712
2712
|
return;
|
|
2713
2713
|
}
|
|
2714
|
-
|
|
2714
|
+
wi(e, t, n);
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
var
|
|
2717
|
+
var Ei = /* @__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 Di(this);
|
|
2721
2721
|
try {
|
|
2722
2722
|
this._cleanup = t.call(void 0, n);
|
|
2723
2723
|
} catch (e) {
|
|
@@ -2727,31 +2727,31 @@ var Di = /* @__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" && (Si(this), xi(this));
|
|
2731
|
+
}, li(e, [{
|
|
2732
2732
|
key: "closed",
|
|
2733
2733
|
get: function() {
|
|
2734
2734
|
return this._state === "closed";
|
|
2735
2735
|
}
|
|
2736
2736
|
}]), e;
|
|
2737
|
-
}(),
|
|
2737
|
+
}(), Di = /* @__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
|
+
Ti(this._subscription, "next", e);
|
|
2744
2744
|
}, t.error = function(e) {
|
|
2745
|
-
|
|
2745
|
+
Ti(this._subscription, "error", e);
|
|
2746
2746
|
}, t.complete = function() {
|
|
2747
|
-
|
|
2748
|
-
},
|
|
2747
|
+
Ti(this._subscription, "complete");
|
|
2748
|
+
}, li(e, [{
|
|
2749
2749
|
key: "closed",
|
|
2750
2750
|
get: function() {
|
|
2751
2751
|
return this._subscription._state === "closed";
|
|
2752
2752
|
}
|
|
2753
2753
|
}]), e;
|
|
2754
|
-
}(),
|
|
2754
|
+
}(), Oi = /* @__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 Di = /* @__PURE__ */ function() {
|
|
|
2763
2763
|
next: e,
|
|
2764
2764
|
error: arguments[1],
|
|
2765
2765
|
complete: arguments[2]
|
|
2766
|
-
}), new
|
|
2766
|
+
}), new Ei(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 Di = /* @__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 (_i(this))(function(n) {
|
|
2793
2793
|
return t.subscribe({
|
|
2794
2794
|
next: function(t) {
|
|
2795
2795
|
try {
|
|
@@ -2810,7 +2810,7 @@ var Di = /* @__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 (_i(this))(function(n) {
|
|
2814
2814
|
return t.subscribe({
|
|
2815
2815
|
next: function(t) {
|
|
2816
2816
|
try {
|
|
@@ -2831,7 +2831,7 @@ var Di = /* @__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 = _i(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 Di = /* @__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 = _i(this);
|
|
2857
2857
|
return new n(function(r) {
|
|
2858
2858
|
var i, a = 0;
|
|
2859
2859
|
function o(e) {
|
|
@@ -2876,7 +2876,7 @@ var Di = /* @__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 = _i(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 Di = /* @__PURE__ */ function() {
|
|
|
2915
2915
|
}), a.unsubscribe();
|
|
2916
2916
|
};
|
|
2917
2917
|
});
|
|
2918
|
-
}, t[
|
|
2918
|
+
}, t[mi] = 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 = gi(t, mi);
|
|
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 vi(i) && i.constructor === n ? i : new n(function(e) {
|
|
2928
2928
|
return i.subscribe(e);
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
|
-
if (
|
|
2932
|
-
|
|
2931
|
+
if (di("iterator") && (r = gi(t, pi), r)) return new n(function(e) {
|
|
2932
|
+
bi(function() {
|
|
2933
2933
|
if (!e.closed) {
|
|
2934
|
-
for (var n =
|
|
2934
|
+
for (var n = ai(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 Di = /* @__PURE__ */ function() {
|
|
|
2940
2940
|
});
|
|
2941
2941
|
});
|
|
2942
2942
|
if (Array.isArray(t)) return new n(function(e) {
|
|
2943
|
-
|
|
2943
|
+
bi(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 Di = /* @__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
|
+
bi(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
|
+
}, li(e, null, [{
|
|
2962
|
+
key: hi,
|
|
2963
2963
|
get: function() {
|
|
2964
2964
|
return this;
|
|
2965
2965
|
}
|
|
2966
2966
|
}]), e;
|
|
2967
2967
|
}();
|
|
2968
|
-
|
|
2968
|
+
ui() && Object.defineProperty(Oi, Symbol("extensions"), {
|
|
2969
2969
|
value: {
|
|
2970
|
-
symbol:
|
|
2971
|
-
hostReportError:
|
|
2970
|
+
symbol: mi,
|
|
2971
|
+
hostReportError: yi
|
|
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 ki(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 Ai = Object.prototype.toString;
|
|
2983
|
+
function ji(e) {
|
|
2984
|
+
return Mi(e);
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2987
|
-
switch (
|
|
2986
|
+
function Mi(e, t) {
|
|
2987
|
+
switch (Ai.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] = Mi(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] = Mi(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 Ni(e) {
|
|
3006
3006
|
var t = new Set([e]);
|
|
3007
3007
|
return t.forEach(function(e) {
|
|
3008
|
-
|
|
3009
|
-
|
|
3008
|
+
on(e) && Pi(e) === e && Object.getOwnPropertyNames(e).forEach(function(n) {
|
|
3009
|
+
on(e[n]) && t.add(e[n]);
|
|
3010
3010
|
});
|
|
3011
3011
|
}), e;
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function Pi(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 Fi(e) {
|
|
|
3019
3019
|
}
|
|
3020
3020
|
return e;
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3022
|
+
function Fi(e) {
|
|
3023
|
+
return globalThis.__DEV__ !== !1 && Ni(e), e;
|
|
3024
3024
|
}
|
|
3025
3025
|
//#endregion
|
|
3026
3026
|
//#region node_modules/@apollo/client/utilities/observables/iteration.js
|
|
3027
|
-
function
|
|
3027
|
+
function Ii(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 Li(e, t, n) {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
//#endregion
|
|
3036
3036
|
//#region node_modules/@apollo/client/utilities/observables/subclassing.js
|
|
3037
|
-
function
|
|
3037
|
+
function Li(e) {
|
|
3038
3038
|
function t(t) {
|
|
3039
|
-
Object.defineProperty(e, t, { value:
|
|
3039
|
+
Object.defineProperty(e, t, { value: Oi });
|
|
3040
3040
|
}
|
|
3041
|
-
return
|
|
3041
|
+
return en && 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 Ri() {
|
|
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) {
|
|
@@ -3053,35 +3053,35 @@ function zi() {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
//#endregion
|
|
3055
3055
|
//#region node_modules/@apollo/client/utilities/common/mergeOptions.js
|
|
3056
|
-
function
|
|
3057
|
-
return
|
|
3056
|
+
function zi(e, t) {
|
|
3057
|
+
return Ri(e, t, t.variables && { variables: Ri(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
|
|
3062
|
-
function
|
|
3063
|
-
return
|
|
3061
|
+
var Bi = Symbol.for("apollo.deprecations"), Vi = Symbol.for("apollo.deprecations.slot"), Hi = be, Ui = Hi[Vi] ?? (Hi[Vi] = new wr());
|
|
3062
|
+
function Wi(e) {
|
|
3063
|
+
return Hi[Bi] || (Ui.getValue() || []).includes(e);
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function V(e) {
|
|
3066
3066
|
var t = [...arguments].slice(1);
|
|
3067
|
-
return
|
|
3067
|
+
return Ui.withValue.apply(Ui, D([Array.isArray(e) ? e : [e]], t, !1));
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3070
|
-
r === void 0 && (r = "Please remove this option."),
|
|
3069
|
+
function Gi(e, t, n, r) {
|
|
3070
|
+
r === void 0 && (r = "Please remove this option."), H(t, function() {
|
|
3071
3071
|
t in e && globalThis.__DEV__ !== !1 && A.warn(103, n, t, r);
|
|
3072
3072
|
});
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3075
|
-
|
|
3074
|
+
function H(e, t) {
|
|
3075
|
+
Wi(e) || t();
|
|
3076
3076
|
}
|
|
3077
3077
|
//#endregion
|
|
3078
3078
|
//#region node_modules/@apollo/client/react/context/ApolloContext.js
|
|
3079
|
-
var
|
|
3080
|
-
function
|
|
3081
|
-
A("createContext" in
|
|
3082
|
-
var e =
|
|
3083
|
-
return e || (Object.defineProperty(
|
|
3084
|
-
value: e =
|
|
3079
|
+
var U = /* @__PURE__ */ l(Ae(), 1), Ki = en ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
3080
|
+
function qi() {
|
|
3081
|
+
A("createContext" in U, 69);
|
|
3082
|
+
var e = U.createContext[Ki];
|
|
3083
|
+
return e || (Object.defineProperty(U.createContext, Ki, {
|
|
3084
|
+
value: e = U.createContext({}),
|
|
3085
3085
|
enumerable: !1,
|
|
3086
3086
|
writable: !1,
|
|
3087
3087
|
configurable: !0
|
|
@@ -3089,24 +3089,24 @@ function Ji() {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
//#endregion
|
|
3091
3091
|
//#region node_modules/@apollo/client/react/hooks/useApolloClient.js
|
|
3092
|
-
function
|
|
3093
|
-
var t =
|
|
3092
|
+
function Ji(e) {
|
|
3093
|
+
var t = U.useContext(qi()), n = e || t.client;
|
|
3094
3094
|
return A(!!n, 78), n;
|
|
3095
3095
|
}
|
|
3096
3096
|
//#endregion
|
|
3097
3097
|
//#region node_modules/@apollo/client/react/hooks/useSyncExternalStore.js
|
|
3098
|
-
var
|
|
3098
|
+
var Yi = !1, Xi = U.useSyncExternalStore || (function(e, t, n) {
|
|
3099
3099
|
var r = t();
|
|
3100
|
-
globalThis.__DEV__ !== !1 && !
|
|
3101
|
-
var i =
|
|
3100
|
+
globalThis.__DEV__ !== !1 && !Yi && r !== t() && (Yi = !0, globalThis.__DEV__ !== !1 && A.error(91));
|
|
3101
|
+
var i = U.useState({ inst: {
|
|
3102
3102
|
value: r,
|
|
3103
3103
|
getSnapshot: t
|
|
3104
3104
|
} }), a = i[0].inst, o = i[1];
|
|
3105
|
-
return
|
|
3105
|
+
return an ? U.useLayoutEffect(function() {
|
|
3106
3106
|
Object.assign(a, {
|
|
3107
3107
|
value: r,
|
|
3108
3108
|
getSnapshot: t
|
|
3109
|
-
}),
|
|
3109
|
+
}), Zi(a) && o({ inst: a });
|
|
3110
3110
|
}, [
|
|
3111
3111
|
e,
|
|
3112
3112
|
r,
|
|
@@ -3114,13 +3114,13 @@ var Xi = !1, Zi = H.useSyncExternalStore || (function(e, t, n) {
|
|
|
3114
3114
|
]) : Object.assign(a, {
|
|
3115
3115
|
value: r,
|
|
3116
3116
|
getSnapshot: t
|
|
3117
|
-
}),
|
|
3118
|
-
return
|
|
3119
|
-
|
|
3117
|
+
}), U.useEffect(function() {
|
|
3118
|
+
return Zi(a) && o({ inst: a }), e(function() {
|
|
3119
|
+
Zi(a) && o({ inst: a });
|
|
3120
3120
|
});
|
|
3121
3121
|
}, [e]), r;
|
|
3122
3122
|
});
|
|
3123
|
-
function
|
|
3123
|
+
function Zi(e) {
|
|
3124
3124
|
var t = e.value, n = e.getSnapshot;
|
|
3125
3125
|
try {
|
|
3126
3126
|
return t !== n();
|
|
@@ -3130,28 +3130,28 @@ function Qi(e) {
|
|
|
3130
3130
|
}
|
|
3131
3131
|
//#endregion
|
|
3132
3132
|
//#region node_modules/@wry/equality/lib/index.js
|
|
3133
|
-
var { toString:
|
|
3134
|
-
function
|
|
3133
|
+
var { toString: Qi, hasOwnProperty: $i } = Object.prototype, ea = Function.prototype.toString, ta = /* @__PURE__ */ new Map();
|
|
3134
|
+
function W(e, t) {
|
|
3135
3135
|
try {
|
|
3136
|
-
return
|
|
3136
|
+
return na(e, t);
|
|
3137
3137
|
} finally {
|
|
3138
|
-
|
|
3138
|
+
ta.clear();
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function na(e, t) {
|
|
3142
3142
|
if (e === t) return !0;
|
|
3143
|
-
let n =
|
|
3144
|
-
if (n !==
|
|
3143
|
+
let n = Qi.call(e);
|
|
3144
|
+
if (n !== Qi.call(t)) return !1;
|
|
3145
3145
|
switch (n) {
|
|
3146
3146
|
case "[object Array]": if (e.length !== t.length) return !1;
|
|
3147
3147
|
case "[object Object]": {
|
|
3148
|
-
if (
|
|
3149
|
-
let n =
|
|
3148
|
+
if (sa(e, t)) return !0;
|
|
3149
|
+
let n = ra(e), r = ra(t), i = n.length;
|
|
3150
3150
|
if (i !== r.length) return !1;
|
|
3151
|
-
for (let e = 0; e < i; ++e) if (
|
|
3151
|
+
for (let e = 0; e < i; ++e) if (!$i.call(t, n[e])) return !1;
|
|
3152
3152
|
for (let r = 0; r < i; ++r) {
|
|
3153
3153
|
let i = n[r];
|
|
3154
|
-
if (!
|
|
3154
|
+
if (!na(e[i], t[i])) return !1;
|
|
3155
3155
|
}
|
|
3156
3156
|
return !0;
|
|
3157
3157
|
}
|
|
@@ -3164,13 +3164,13 @@ function ra(e, t) {
|
|
|
3164
3164
|
case "[object Map]":
|
|
3165
3165
|
case "[object Set]": {
|
|
3166
3166
|
if (e.size !== t.size) return !1;
|
|
3167
|
-
if (
|
|
3167
|
+
if (sa(e, t)) return !0;
|
|
3168
3168
|
let r = e.entries(), i = n === "[object Map]";
|
|
3169
3169
|
for (;;) {
|
|
3170
3170
|
let e = r.next();
|
|
3171
3171
|
if (e.done) break;
|
|
3172
3172
|
let [n, a] = e.value;
|
|
3173
|
-
if (!t.has(n) || i && !
|
|
3173
|
+
if (!t.has(n) || i && !na(a, t.get(n))) return !1;
|
|
3174
3174
|
}
|
|
3175
3175
|
return !0;
|
|
3176
3176
|
}
|
|
@@ -3190,49 +3190,49 @@ function ra(e, t) {
|
|
|
3190
3190
|
case "[object GeneratorFunction]":
|
|
3191
3191
|
case "[object AsyncGeneratorFunction]":
|
|
3192
3192
|
case "[object Function]": {
|
|
3193
|
-
let n =
|
|
3194
|
-
return n ===
|
|
3193
|
+
let n = ea.call(e);
|
|
3194
|
+
return n === ea.call(t) ? !oa(n, aa) : !1;
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
3197
|
return !1;
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3200
|
-
return Object.keys(e).filter(
|
|
3199
|
+
function ra(e) {
|
|
3200
|
+
return Object.keys(e).filter(ia, e);
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function ia(e) {
|
|
3203
3203
|
return this[e] !== void 0;
|
|
3204
3204
|
}
|
|
3205
|
-
var
|
|
3206
|
-
function
|
|
3205
|
+
var aa = "{ [native code] }";
|
|
3206
|
+
function oa(e, t) {
|
|
3207
3207
|
let n = e.length - t.length;
|
|
3208
3208
|
return n >= 0 && e.indexOf(t, n) === n;
|
|
3209
3209
|
}
|
|
3210
|
-
function
|
|
3211
|
-
let n =
|
|
3210
|
+
function sa(e, t) {
|
|
3211
|
+
let n = ta.get(e);
|
|
3212
3212
|
if (n) {
|
|
3213
3213
|
if (n.has(t)) return !0;
|
|
3214
|
-
} else
|
|
3214
|
+
} else ta.set(e, n = /* @__PURE__ */ new Set());
|
|
3215
3215
|
return n.add(t), !1;
|
|
3216
3216
|
}
|
|
3217
3217
|
//#endregion
|
|
3218
3218
|
//#region node_modules/@apollo/client/errors/index.js
|
|
3219
|
-
var
|
|
3220
|
-
function
|
|
3221
|
-
return e.extensions ? Array.isArray(e.extensions[
|
|
3219
|
+
var ca = Symbol();
|
|
3220
|
+
function la(e) {
|
|
3221
|
+
return e.extensions ? Array.isArray(e.extensions[ca]) : !1;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function ua(e) {
|
|
3224
3224
|
return e.hasOwnProperty("graphQLErrors");
|
|
3225
3225
|
}
|
|
3226
|
-
var
|
|
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 on(e) && e.message || "Error message not found.";
|
|
3230
3230
|
}).join("\n");
|
|
3231
|
-
},
|
|
3231
|
+
}, fa = function(e) {
|
|
3232
3232
|
ce(t, e);
|
|
3233
3233
|
function t(n) {
|
|
3234
3234
|
var r = n.graphQLErrors, i = n.protocolErrors, a = n.clientErrors, o = n.networkError, s = n.errorMessage, c = n.extraInfo, l = e.call(this, s) || this;
|
|
3235
|
-
return l.name = "ApolloError", l.graphQLErrors = r || [], l.protocolErrors = i || [], l.clientErrors = a || [], l.networkError = o || null, l.message = s ||
|
|
3235
|
+
return l.name = "ApolloError", l.graphQLErrors = r || [], l.protocolErrors = i || [], l.clientErrors = a || [], l.networkError = o || null, l.message = s || da(l), l.extraInfo = c, l.cause = D(D(D([o], r || [], !0), i || [], !0), a || [], !0).find(function(e) {
|
|
3236
3236
|
return !!e;
|
|
3237
3237
|
}) || null, l.__proto__ = t.prototype, l;
|
|
3238
3238
|
}
|
|
@@ -3240,54 +3240,54 @@ var fa = function(e) {
|
|
|
3240
3240
|
}(Error);
|
|
3241
3241
|
//#endregion
|
|
3242
3242
|
//#region node_modules/@apollo/client/core/equalByQuery.js
|
|
3243
|
-
function
|
|
3243
|
+
function pa(e, t, n, r) {
|
|
3244
3244
|
var i = t.data, a = le(t, ["data"]), o = n.data;
|
|
3245
|
-
return
|
|
3246
|
-
fragmentMap:
|
|
3245
|
+
return W(a, le(n, ["data"])) && ma(gr(e).selectionSet, i, o, {
|
|
3246
|
+
fragmentMap: cn(pr(e)),
|
|
3247
3247
|
variables: r
|
|
3248
3248
|
});
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
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 =
|
|
3257
|
-
if (!c) return
|
|
3254
|
+
if (i.has(e) || (i.add(e), !zt(e, r.variables)) || ha(e)) return !0;
|
|
3255
|
+
if (cr(e)) {
|
|
3256
|
+
var a = or(e), o = t && t[a], s = n && n[a], c = e.selectionSet;
|
|
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;
|
|
3260
3260
|
if (l && u) {
|
|
3261
3261
|
var d = o.length;
|
|
3262
3262
|
if (s.length !== d) return !1;
|
|
3263
|
-
for (var f = 0; f < d; ++f) if (!
|
|
3263
|
+
for (var f = 0; f < d; ++f) if (!ma(c, o[f], s[f], r)) return !1;
|
|
3264
3264
|
return !0;
|
|
3265
3265
|
}
|
|
3266
|
-
return
|
|
3266
|
+
return ma(c, o, s, r);
|
|
3267
3267
|
} else {
|
|
3268
|
-
var p =
|
|
3269
|
-
if (p) return
|
|
3268
|
+
var p = ln(e, r.fragmentMap);
|
|
3269
|
+
if (p) return ha(p) ? !0 : ma(p.selectionSet, t, n, r);
|
|
3270
3270
|
}
|
|
3271
3271
|
});
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3274
|
-
return !!e.directives && e.directives.some(
|
|
3273
|
+
function ha(e) {
|
|
3274
|
+
return !!e.directives && e.directives.some(ga);
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function ga(e) {
|
|
3277
3277
|
return e.name.value === "nonreactive";
|
|
3278
3278
|
}
|
|
3279
3279
|
//#endregion
|
|
3280
3280
|
//#region node_modules/@apollo/client/core/networkStatus.js
|
|
3281
|
-
var
|
|
3281
|
+
var G;
|
|
3282
3282
|
(function(e) {
|
|
3283
3283
|
e[e.loading = 1] = "loading", e[e.setVariables = 2] = "setVariables", e[e.fetchMore = 3] = "fetchMore", e[e.refetch = 4] = "refetch", e[e.poll = 6] = "poll", e[e.ready = 7] = "ready", e[e.error = 8] = "error";
|
|
3284
|
-
})(
|
|
3285
|
-
function
|
|
3284
|
+
})(G || (G = {}));
|
|
3285
|
+
function _a(e) {
|
|
3286
3286
|
return e ? e < 7 : !1;
|
|
3287
3287
|
}
|
|
3288
3288
|
//#endregion
|
|
3289
3289
|
//#region node_modules/@apollo/client/core/ObservableQuery.js
|
|
3290
|
-
var
|
|
3290
|
+
var va = Object.assign, ya = Object.hasOwnProperty, ba = function(e) {
|
|
3291
3291
|
ce(t, e);
|
|
3292
3292
|
function t(n) {
|
|
3293
3293
|
var r = n.queryManager, i = n.queryInfo, a = n.options, o = this, s = t.inactiveOnCreation.getValue();
|
|
@@ -3295,7 +3295,7 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3295
3295
|
o._getOrCreateQuery();
|
|
3296
3296
|
try {
|
|
3297
3297
|
var t = e._subscription._observer;
|
|
3298
|
-
t && !t.error && (t.error =
|
|
3298
|
+
t && !t.error && (t.error = xa);
|
|
3299
3299
|
} catch {}
|
|
3300
3300
|
var n = !o.observers.size;
|
|
3301
3301
|
o.observers.add(e);
|
|
@@ -3305,13 +3305,13 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3305
3305
|
};
|
|
3306
3306
|
}) || this, o.observers = /* @__PURE__ */ new Set(), o.subscriptions = /* @__PURE__ */ new Set(), o.dirty = !1, o._getOrCreateQuery = function() {
|
|
3307
3307
|
return s && (r.queries.set(o.queryId, i), s = !1), o.queryManager.getOrCreateQuery(o.queryId);
|
|
3308
|
-
}, o.queryInfo = i, o.queryManager = r, o.waitForOwnResult =
|
|
3308
|
+
}, o.queryInfo = i, o.queryManager = r, o.waitForOwnResult = Ca(a.fetchPolicy), o.isTornDown = !1, o.subscribeToMore = o.subscribeToMore.bind(o), o.maskResult = o.maskResult.bind(o);
|
|
3309
3309
|
var c = r.defaultOptions.watchQuery, l = (c === void 0 ? {} : c).fetchPolicy, u = l === void 0 ? "cache-first" : l, d = a.fetchPolicy, f = d === void 0 ? u : d, p = a.initialFetchPolicy, m = p === void 0 ? f === "standby" ? u : f : p;
|
|
3310
3310
|
o.options = E(E({}, a), {
|
|
3311
3311
|
initialFetchPolicy: m,
|
|
3312
3312
|
fetchPolicy: f
|
|
3313
3313
|
}), o.queryId = i.queryId || r.generateQueryId();
|
|
3314
|
-
var h =
|
|
3314
|
+
var h = dr(o.query);
|
|
3315
3315
|
return o.queryName = h && h.name && h.name.value, o;
|
|
3316
3316
|
}
|
|
3317
3317
|
return Object.defineProperty(t.prototype, "query", {
|
|
@@ -3328,7 +3328,7 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3328
3328
|
configurable: !0
|
|
3329
3329
|
}), t.prototype.result = function() {
|
|
3330
3330
|
var e = this;
|
|
3331
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3331
|
+
return globalThis.__DEV__ !== !1 && H("observableQuery.result", function() {
|
|
3332
3332
|
globalThis.__DEV__ !== !1 && A.warn(23);
|
|
3333
3333
|
}), new Promise(function(t, n) {
|
|
3334
3334
|
var r = {
|
|
@@ -3345,16 +3345,16 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3345
3345
|
}, t.prototype.getCurrentFullResult = function(e) {
|
|
3346
3346
|
var t = this;
|
|
3347
3347
|
e === void 0 && (e = !0);
|
|
3348
|
-
var n =
|
|
3348
|
+
var n = V("getLastResult", function() {
|
|
3349
3349
|
return t.getLastResult(!0);
|
|
3350
|
-
}), r = this.queryInfo.networkStatus || n && n.networkStatus ||
|
|
3351
|
-
loading:
|
|
3350
|
+
}), r = this.queryInfo.networkStatus || n && n.networkStatus || G.ready, i = E(E({}, n), {
|
|
3351
|
+
loading: _a(r),
|
|
3352
3352
|
networkStatus: r
|
|
3353
3353
|
}), a = this.options.fetchPolicy, o = a === void 0 ? "cache-first" : a;
|
|
3354
|
-
if (!(
|
|
3354
|
+
if (!(Ca(o) || this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)) if (this.waitForOwnResult) this.queryInfo.updateWatch();
|
|
3355
3355
|
else {
|
|
3356
3356
|
var s = this.queryInfo.getDiff();
|
|
3357
|
-
(s.complete || this.options.returnPartialData) && (i.data = s.result),
|
|
3357
|
+
(s.complete || this.options.returnPartialData) && (i.data = s.result), W(i.data, {}) && (i.data = void 0), s.complete ? (delete i.partial, s.complete && i.networkStatus === G.loading && (o === "cache-first" || o === "cache-only") && (i.networkStatus = G.ready, i.loading = !1)) : i.partial = !0, i.networkStatus === G.ready && (i.error || i.errors) && (i.networkStatus = G.error), globalThis.__DEV__ !== !1 && !s.complete && !this.options.partialRefetch && !i.loading && !i.data && !i.error && Sa(s.missing);
|
|
3358
3358
|
}
|
|
3359
3359
|
return e && this.updateLastResult(i), i;
|
|
3360
3360
|
}, t.prototype.getCurrentResult = function(e) {
|
|
@@ -3362,43 +3362,43 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3362
3362
|
}, t.prototype.isDifferentFromLastResult = function(e, t) {
|
|
3363
3363
|
if (!this.last) return !0;
|
|
3364
3364
|
var n = this.queryManager.getDocumentInfo(this.query), r = this.queryManager.dataMasking, i = r ? n.nonReactiveQuery : this.query;
|
|
3365
|
-
return (r || n.hasNonreactiveDirective ? !
|
|
3365
|
+
return (r || n.hasNonreactiveDirective ? !pa(i, this.last.result, e, this.variables) : !W(this.last.result, e)) || t && !W(this.last.variables, t);
|
|
3366
3366
|
}, t.prototype.getLast = function(e, t) {
|
|
3367
3367
|
var n = this.last;
|
|
3368
|
-
if (n && n[e] && (!t ||
|
|
3368
|
+
if (n && n[e] && (!t || W(n.variables, this.variables))) return n[e];
|
|
3369
3369
|
}, t.prototype.getLastResult = function(e) {
|
|
3370
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3370
|
+
return globalThis.__DEV__ !== !1 && H("getLastResult", function() {
|
|
3371
3371
|
globalThis.__DEV__ !== !1 && A.warn(24);
|
|
3372
3372
|
}), this.getLast("result", e);
|
|
3373
3373
|
}, t.prototype.getLastError = function(e) {
|
|
3374
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3374
|
+
return globalThis.__DEV__ !== !1 && H("getLastError", function() {
|
|
3375
3375
|
globalThis.__DEV__ !== !1 && A.warn(25);
|
|
3376
3376
|
}), this.getLast("error", e);
|
|
3377
3377
|
}, t.prototype.resetLastResults = function() {
|
|
3378
|
-
globalThis.__DEV__ !== !1 &&
|
|
3378
|
+
globalThis.__DEV__ !== !1 && H("resetLastResults", function() {
|
|
3379
3379
|
globalThis.__DEV__ !== !1 && A.warn(26);
|
|
3380
3380
|
}), delete this.last, this.isTornDown = !1;
|
|
3381
3381
|
}, t.prototype.resetQueryStoreErrors = function() {
|
|
3382
3382
|
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && A.warn(27), this.queryManager.resetErrors(this.queryId);
|
|
3383
3383
|
}, t.prototype.refetch = function(e) {
|
|
3384
3384
|
var t = { pollInterval: 0 };
|
|
3385
|
-
if (this.options.fetchPolicy === "no-cache" ? t.fetchPolicy = "no-cache" : t.fetchPolicy = "network-only", globalThis.__DEV__ !== !1 && e &&
|
|
3386
|
-
var n =
|
|
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 = mr(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);
|
|
3390
3390
|
}
|
|
3391
|
-
return e && !
|
|
3391
|
+
return e && !W(this.options.variables, e) && (t.variables = this.options.variables = E(E({}, this.options.variables), e)), this.queryInfo.resetLastWrite(), this.reobserve(t, G.refetch);
|
|
3392
3392
|
}, t.prototype.fetchMore = function(e) {
|
|
3393
3393
|
var t = this, n = E(E({}, e.query ? e : E(E(E(E({}, this.options), { query: this.options.query }), e), { variables: E(E({}, this.options.variables), e.variables) })), { fetchPolicy: "no-cache" });
|
|
3394
3394
|
n.query = this.transformDocument(n.query);
|
|
3395
3395
|
var r = this.queryManager.generateQueryId();
|
|
3396
3396
|
this.lastQuery = e.query ? this.transformDocument(this.options.query) : n.query;
|
|
3397
3397
|
var i = this.queryInfo, a = i.networkStatus;
|
|
3398
|
-
i.networkStatus =
|
|
3398
|
+
i.networkStatus = G.fetchMore, n.notifyOnNetworkStatusChange && this.observe();
|
|
3399
3399
|
var o = /* @__PURE__ */ new Set(), s = e?.updateQuery, c = this.options.fetchPolicy !== "no-cache";
|
|
3400
|
-
return c || A(s, 29), this.queryManager.fetchQuery(r, n,
|
|
3401
|
-
if (t.queryManager.removeQuery(r), i.networkStatus ===
|
|
3400
|
+
return c || A(s, 29), this.queryManager.fetchQuery(r, n, G.fetchMore).then(function(l) {
|
|
3401
|
+
if (t.queryManager.removeQuery(r), i.networkStatus === G.fetchMore && (i.networkStatus = a), c) t.queryManager.cache.batch({
|
|
3402
3402
|
update: function(r) {
|
|
3403
3403
|
var i = e.updateQuery;
|
|
3404
3404
|
i ? r.updateQuery({
|
|
@@ -3428,7 +3428,7 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3428
3428
|
});
|
|
3429
3429
|
t.reportResult(E(E({}, u), {
|
|
3430
3430
|
networkStatus: a,
|
|
3431
|
-
loading:
|
|
3431
|
+
loading: _a(a),
|
|
3432
3432
|
data: d
|
|
3433
3433
|
}), t.variables);
|
|
3434
3434
|
}
|
|
@@ -3460,20 +3460,20 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3460
3460
|
t.subscriptions.delete(n) && n.unsubscribe();
|
|
3461
3461
|
};
|
|
3462
3462
|
}, t.prototype.setOptions = function(e) {
|
|
3463
|
-
return globalThis.__DEV__ !== !1 && (
|
|
3463
|
+
return globalThis.__DEV__ !== !1 && (Gi(e, "canonizeResults", "setOptions"), H("setOptions", function() {
|
|
3464
3464
|
globalThis.__DEV__ !== !1 && A.warn(31);
|
|
3465
3465
|
})), this.reobserve(e);
|
|
3466
3466
|
}, t.prototype.silentSetOptions = function(e) {
|
|
3467
|
-
var t =
|
|
3468
|
-
|
|
3467
|
+
var t = Ri(this.options, e || {});
|
|
3468
|
+
va(this.options, t);
|
|
3469
3469
|
}, t.prototype.setVariables = function(e) {
|
|
3470
3470
|
var t = this;
|
|
3471
|
-
return
|
|
3471
|
+
return W(this.variables, e) ? this.observers.size ? V("observableQuery.result", function() {
|
|
3472
3472
|
return t.result();
|
|
3473
3473
|
}) : Promise.resolve() : (this.options.variables = e, this.observers.size ? this.reobserve({
|
|
3474
3474
|
fetchPolicy: this.options.initialFetchPolicy,
|
|
3475
3475
|
variables: e
|
|
3476
|
-
},
|
|
3476
|
+
}, G.setVariables) : Promise.resolve());
|
|
3477
3477
|
}, t.prototype.updateQuery = function(e) {
|
|
3478
3478
|
var t = this.queryManager, n = t.cache.diff({
|
|
3479
3479
|
query: this.options.query,
|
|
@@ -3522,7 +3522,7 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3522
3522
|
i.interval = r;
|
|
3523
3523
|
var a = function() {
|
|
3524
3524
|
var t;
|
|
3525
|
-
e.pollingInfo && (!
|
|
3525
|
+
e.pollingInfo && (!_a(e.queryInfo.networkStatus) && !(t = e.options).skipPollAttempt?.call(t) ? e.reobserve({ fetchPolicy: e.options.initialFetchPolicy === "no-cache" ? "no-cache" : "network-only" }, G.poll).then(o, o) : o());
|
|
3526
3526
|
}, o = function() {
|
|
3527
3527
|
var t = e.pollingInfo;
|
|
3528
3528
|
t && (clearTimeout(t.timeout), t.timeout = setTimeout(a, t.interval));
|
|
@@ -3533,35 +3533,35 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3533
3533
|
}, t.prototype.updateLastResult = function(e, t) {
|
|
3534
3534
|
var n = this;
|
|
3535
3535
|
t === void 0 && (t = this.variables);
|
|
3536
|
-
var r =
|
|
3536
|
+
var r = V("getLastError", function() {
|
|
3537
3537
|
return n.getLastError();
|
|
3538
3538
|
});
|
|
3539
|
-
return r && this.last && !
|
|
3540
|
-
result: this.queryManager.assumeImmutableResults ? e :
|
|
3539
|
+
return r && this.last && !W(t, this.last.variables) && (r = void 0), this.last = E({
|
|
3540
|
+
result: this.queryManager.assumeImmutableResults ? e : ji(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 ===
|
|
3547
|
-
this.lastQuery = c, r || (this.updatePolling(), e && e.variables && !
|
|
3546
|
+
var r = t === G.refetch || t === G.fetchMore || t === G.poll, i = this.options.variables, a = this.options.fetchPolicy, o = Ri(this.options, e || {}), s = r ? o : va(this.options, o), c = this.transformDocument(s.query);
|
|
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);
|
|
3550
3550
|
}, u = s.variables && E({}, s.variables), d = this.fetch(s, t, c), f = d.concast, p = d.fromLink, m = {
|
|
3551
3551
|
next: function(e) {
|
|
3552
|
-
|
|
3552
|
+
W(n.variables, u) && (l(), n.reportResult(e, u));
|
|
3553
3553
|
},
|
|
3554
3554
|
error: function(e) {
|
|
3555
|
-
|
|
3555
|
+
W(n.variables, u) && (ua(e) || (e = new fa({ networkError: e })), l(), n.reportError(e, u));
|
|
3556
3556
|
}
|
|
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 ki(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;
|
|
3564
|
-
|
|
3564
|
+
V("resetLastResults", function() {
|
|
3565
3565
|
return e.resetLastResults();
|
|
3566
3566
|
});
|
|
3567
3567
|
var i = this.subscribe.apply(this, t);
|
|
@@ -3569,20 +3569,20 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3569
3569
|
}, t.prototype.observe = function() {
|
|
3570
3570
|
this.reportResult(this.getCurrentFullResult(!1), this.variables);
|
|
3571
3571
|
}, t.prototype.reportResult = function(e, t) {
|
|
3572
|
-
var n = this, r =
|
|
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) && Ii(this.observers, "next", this.maskResult(e));
|
|
3576
3576
|
}, t.prototype.reportError = function(e, t) {
|
|
3577
|
-
var n = this, r = E(E({},
|
|
3577
|
+
var n = this, r = E(E({}, V("getLastResult", function() {
|
|
3578
3578
|
return n.getLastResult();
|
|
3579
3579
|
})), {
|
|
3580
3580
|
error: e,
|
|
3581
3581
|
errors: e.graphQLErrors,
|
|
3582
|
-
networkStatus:
|
|
3582
|
+
networkStatus: G.error,
|
|
3583
3583
|
loading: !1
|
|
3584
3584
|
});
|
|
3585
|
-
this.updateLastResult(r, t),
|
|
3585
|
+
this.updateLastResult(r, t), Ii(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() {
|
|
@@ -3608,7 +3608,7 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = function(e) {
|
|
|
3608
3608
|
return e.notify();
|
|
3609
3609
|
}, 0)));
|
|
3610
3610
|
}, t.prototype.notify = function() {
|
|
3611
|
-
this.cancelNotifyTimeout(), this.dirty && (this.options.fetchPolicy == "cache-only" || this.options.fetchPolicy == "cache-and-network" || !
|
|
3611
|
+
this.cancelNotifyTimeout(), this.dirty && (this.options.fetchPolicy == "cache-only" || this.options.fetchPolicy == "cache-and-network" || !_a(this.queryInfo.networkStatus)) && (this.queryInfo.getDiff().fromOptimisticTransaction ? this.observe() : this.reobserveCacheFirst()), this.dirty = !1;
|
|
3612
3612
|
}, t.prototype.reobserveCacheFirst = function() {
|
|
3613
3613
|
var e = this.options, t = e.fetchPolicy, n = e.nextFetchPolicy;
|
|
3614
3614
|
return t === "cache-and-network" || t === "network-only" ? this.reobserve({
|
|
@@ -3617,37 +3617,37 @@ var ya = Object.assign, ba = Object.hasOwnProperty, xa = 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
|
-
|
|
3623
|
-
function
|
|
3620
|
+
}, t.inactiveOnCreation = new wr(), t;
|
|
3621
|
+
}(Oi);
|
|
3622
|
+
Li(ba);
|
|
3623
|
+
function xa(e) {
|
|
3624
3624
|
globalThis.__DEV__ !== !1 && A.error(33, e.message, e.stack);
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function Sa(e) {
|
|
3627
3627
|
globalThis.__DEV__ !== !1 && e && globalThis.__DEV__ !== !1 && A.debug(34, e);
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3629
|
+
function Ca(e) {
|
|
3630
3630
|
return e === "network-only" || e === "no-cache" || e === "standby";
|
|
3631
3631
|
}
|
|
3632
3632
|
//#endregion
|
|
3633
3633
|
//#region node_modules/graphql-tag/lib/index.js
|
|
3634
|
-
var
|
|
3635
|
-
function
|
|
3634
|
+
var wa = /* @__PURE__ */ new Map(), Ta = /* @__PURE__ */ new Map(), Ea = !0, Da = !1;
|
|
3635
|
+
function Oa(e) {
|
|
3636
3636
|
return e.replace(/[\s,]+/g, " ").trim();
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3639
|
-
return
|
|
3638
|
+
function ka(e) {
|
|
3639
|
+
return Oa(e.source.body.substring(e.start, e.end));
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function Aa(e) {
|
|
3642
3642
|
var t = /* @__PURE__ */ new Set(), n = [];
|
|
3643
3643
|
return e.definitions.forEach(function(e) {
|
|
3644
3644
|
if (e.kind === "FragmentDefinition") {
|
|
3645
|
-
var r = e.name.value, i =
|
|
3646
|
-
a && !a.has(i) ?
|
|
3645
|
+
var r = e.name.value, i = ka(e.loc), a = Ta.get(r);
|
|
3646
|
+
a && !a.has(i) ? Ea && console.warn("Warning: fragment with name " + r + " already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names") : a || Ta.set(r, a = /* @__PURE__ */ new Set()), a.add(i), t.has(i) || (t.add(i), n.push(e));
|
|
3647
3647
|
} else n.push(e);
|
|
3648
3648
|
}), E(E({}, e), { definitions: n });
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function ja(e) {
|
|
3651
3651
|
var t = new Set(e.definitions);
|
|
3652
3652
|
t.forEach(function(e) {
|
|
3653
3653
|
e.loc && delete e.loc, Object.keys(e).forEach(function(n) {
|
|
@@ -3658,75 +3658,75 @@ function Ma(e) {
|
|
|
3658
3658
|
var n = e.loc;
|
|
3659
3659
|
return n && (delete n.startToken, delete n.endToken), e;
|
|
3660
3660
|
}
|
|
3661
|
-
function
|
|
3662
|
-
var t =
|
|
3663
|
-
if (!
|
|
3664
|
-
var n =
|
|
3665
|
-
experimentalFragmentVariables:
|
|
3666
|
-
allowLegacyFragmentVariables:
|
|
3661
|
+
function Ma(e) {
|
|
3662
|
+
var t = Oa(e);
|
|
3663
|
+
if (!wa.has(t)) {
|
|
3664
|
+
var n = Mt(e, {
|
|
3665
|
+
experimentalFragmentVariables: Da,
|
|
3666
|
+
allowLegacyFragmentVariables: Da
|
|
3667
3667
|
});
|
|
3668
3668
|
if (!n || n.kind !== "Document") throw Error("Not a valid GraphQL document.");
|
|
3669
|
-
|
|
3669
|
+
wa.set(t, ja(Aa(n)));
|
|
3670
3670
|
}
|
|
3671
|
-
return
|
|
3671
|
+
return wa.get(t);
|
|
3672
3672
|
}
|
|
3673
|
-
function
|
|
3673
|
+
function Na(e) {
|
|
3674
3674
|
var t = [...arguments].slice(1);
|
|
3675
3675
|
typeof e == "string" && (e = [e]);
|
|
3676
3676
|
var n = e[0];
|
|
3677
3677
|
return t.forEach(function(t, r) {
|
|
3678
3678
|
t && t.kind === "Document" ? n += t.loc.source.body : n += t, n += e[r + 1];
|
|
3679
|
-
}),
|
|
3679
|
+
}), Ma(n);
|
|
3680
|
+
}
|
|
3681
|
+
function Pa() {
|
|
3682
|
+
wa.clear(), Ta.clear();
|
|
3680
3683
|
}
|
|
3681
3684
|
function Fa() {
|
|
3682
|
-
|
|
3685
|
+
Ea = !1;
|
|
3683
3686
|
}
|
|
3684
3687
|
function Ia() {
|
|
3685
|
-
Da = !
|
|
3688
|
+
Da = !0;
|
|
3686
3689
|
}
|
|
3687
3690
|
function La() {
|
|
3688
|
-
|
|
3689
|
-
}
|
|
3690
|
-
function Ra() {
|
|
3691
|
-
Oa = !1;
|
|
3691
|
+
Da = !1;
|
|
3692
3692
|
}
|
|
3693
|
-
var
|
|
3694
|
-
gql:
|
|
3695
|
-
resetCaches:
|
|
3696
|
-
disableFragmentWarnings:
|
|
3697
|
-
enableExperimentalFragmentVariables:
|
|
3698
|
-
disableExperimentalFragmentVariables:
|
|
3693
|
+
var Ra = {
|
|
3694
|
+
gql: Na,
|
|
3695
|
+
resetCaches: Pa,
|
|
3696
|
+
disableFragmentWarnings: Fa,
|
|
3697
|
+
enableExperimentalFragmentVariables: Ia,
|
|
3698
|
+
disableExperimentalFragmentVariables: La
|
|
3699
3699
|
};
|
|
3700
3700
|
(function(e) {
|
|
3701
|
-
e.gql =
|
|
3702
|
-
})(
|
|
3701
|
+
e.gql = Ra.gql, e.resetCaches = Ra.resetCaches, e.disableFragmentWarnings = Ra.disableFragmentWarnings, e.enableExperimentalFragmentVariables = Ra.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = Ra.disableExperimentalFragmentVariables;
|
|
3702
|
+
})(Na || (Na = {})), Na.default = Na;
|
|
3703
3703
|
//#endregion
|
|
3704
3704
|
//#region node_modules/@apollo/client/react/parser/index.js
|
|
3705
|
-
var
|
|
3705
|
+
var K;
|
|
3706
3706
|
(function(e) {
|
|
3707
3707
|
e[e.Query = 0] = "Query", e[e.Mutation = 1] = "Mutation", e[e.Subscription = 2] = "Subscription";
|
|
3708
|
-
})(
|
|
3709
|
-
var
|
|
3710
|
-
function
|
|
3708
|
+
})(K || (K = {}));
|
|
3709
|
+
var q;
|
|
3710
|
+
function za(e) {
|
|
3711
3711
|
var t;
|
|
3712
3712
|
switch (e) {
|
|
3713
|
-
case
|
|
3713
|
+
case K.Query:
|
|
3714
3714
|
t = "Query";
|
|
3715
3715
|
break;
|
|
3716
|
-
case
|
|
3716
|
+
case K.Mutation:
|
|
3717
3717
|
t = "Mutation";
|
|
3718
3718
|
break;
|
|
3719
|
-
case
|
|
3719
|
+
case K.Subscription:
|
|
3720
3720
|
t = "Subscription";
|
|
3721
3721
|
break;
|
|
3722
3722
|
}
|
|
3723
3723
|
return t;
|
|
3724
3724
|
}
|
|
3725
|
-
function
|
|
3726
|
-
|
|
3725
|
+
function Ba(e) {
|
|
3726
|
+
H("parser", function() {
|
|
3727
3727
|
globalThis.__DEV__ !== !1 && A.warn(93);
|
|
3728
|
-
}),
|
|
3729
|
-
var t =
|
|
3728
|
+
}), q || (q = new Sn(wn.parser || 1e3));
|
|
3729
|
+
var t = q.get(e);
|
|
3730
3730
|
if (t) return t;
|
|
3731
3731
|
var n, r, i;
|
|
3732
3732
|
A(!!e && !!e.kind, 94, e);
|
|
@@ -3748,7 +3748,7 @@ function Va(e) {
|
|
|
3748
3748
|
break;
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
|
-
A(!a.length || o.length || s.length || c.length, 95), A(o.length + s.length + c.length <= 1, 96, e, o.length, c.length, s.length), r = o.length ?
|
|
3751
|
+
A(!a.length || o.length || s.length || c.length, 95), A(o.length + s.length + c.length <= 1, 96, e, o.length, c.length, s.length), r = o.length ? K.Query : K.Mutation, !o.length && !s.length && (r = K.Subscription);
|
|
3752
3752
|
var f = o.length ? o : s.length ? s : c;
|
|
3753
3753
|
A(f.length === 1, 97, e, f.length);
|
|
3754
3754
|
var p = f[0];
|
|
@@ -3758,67 +3758,67 @@ function Va(e) {
|
|
|
3758
3758
|
type: r,
|
|
3759
3759
|
variables: n
|
|
3760
3760
|
};
|
|
3761
|
-
return
|
|
3761
|
+
return q.set(e, m), m;
|
|
3762
3762
|
}
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
}, globalThis.__DEV__ !== !1 &&
|
|
3766
|
-
return
|
|
3763
|
+
Ba.resetCache = function() {
|
|
3764
|
+
q = void 0;
|
|
3765
|
+
}, globalThis.__DEV__ !== !1 && Tn("parser", function() {
|
|
3766
|
+
return q ? q.size : 0;
|
|
3767
3767
|
});
|
|
3768
|
-
function
|
|
3769
|
-
var n =
|
|
3768
|
+
function Va(e, t) {
|
|
3769
|
+
var n = V("parser", Ba, [e]), r = za(t), i = za(n.type);
|
|
3770
3770
|
A(n.type === t, 98, r, r, i);
|
|
3771
3771
|
}
|
|
3772
3772
|
//#endregion
|
|
3773
3773
|
//#region node_modules/@apollo/client/react/hooks/internal/useIsomorphicLayoutEffect.js
|
|
3774
|
-
var
|
|
3774
|
+
var Ha = nn ? U.useLayoutEffect : U.useEffect;
|
|
3775
3775
|
//#endregion
|
|
3776
3776
|
//#region node_modules/@apollo/client/react/hooks/internal/useWarnRemovedOption.js
|
|
3777
|
-
function
|
|
3777
|
+
function J(e, t, n, r) {
|
|
3778
3778
|
"use no memo";
|
|
3779
3779
|
r === void 0 && (r = "Please remove this option.");
|
|
3780
|
-
var i =
|
|
3781
|
-
globalThis.__DEV__ !== !1 && t in e && !i.current && (
|
|
3780
|
+
var i = U.useRef(!1);
|
|
3781
|
+
globalThis.__DEV__ !== !1 && t in e && !i.current && (Gi(e, t, n, r), i.current = !0);
|
|
3782
3782
|
}
|
|
3783
3783
|
//#endregion
|
|
3784
3784
|
//#region node_modules/@apollo/client/react/hooks/internal/wrapHook.js
|
|
3785
|
-
var
|
|
3786
|
-
function
|
|
3787
|
-
var r = n.queryManager, i = r && r[
|
|
3785
|
+
var Ua = Symbol.for("apollo.hook.wrappers");
|
|
3786
|
+
function Wa(e, t, n) {
|
|
3787
|
+
var r = n.queryManager, i = r && r[Ua], a = i && i[e];
|
|
3788
3788
|
return a ? a(t) : t;
|
|
3789
3789
|
}
|
|
3790
3790
|
//#endregion
|
|
3791
3791
|
//#region node_modules/@apollo/client/react/hooks/useQuery.js
|
|
3792
|
-
var
|
|
3793
|
-
function
|
|
3794
|
-
var
|
|
3795
|
-
function
|
|
3796
|
-
return t === void 0 && (t = Object.create(null)),
|
|
3792
|
+
var Ga = Object.prototype.hasOwnProperty;
|
|
3793
|
+
function Ka() {}
|
|
3794
|
+
var qa = Symbol();
|
|
3795
|
+
function Ja(e, t) {
|
|
3796
|
+
return t === void 0 && (t = Object.create(null)), Wa("useQuery", Ya, Ji(t && t.client))(e, t);
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3799
|
-
globalThis.__DEV__ !== !1 && (
|
|
3800
|
-
var n =
|
|
3801
|
-
return
|
|
3798
|
+
function Ya(e, t) {
|
|
3799
|
+
globalThis.__DEV__ !== !1 && (J(t, "canonizeResults", "useQuery"), J(t, "partialRefetch", "useQuery"), J(t, "defaultOptions", "useQuery", "Pass the options directly to the hook instead."), J(t, "onCompleted", "useQuery", "If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."), J(t, "onError", "useQuery", "If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));
|
|
3800
|
+
var n = Za(e, t), r = n.result, i = n.obsQueryFields;
|
|
3801
|
+
return U.useMemo(function() {
|
|
3802
3802
|
return E(E({}, r), i);
|
|
3803
3803
|
}, [r, i]);
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function Xa(e, t, n, r, i) {
|
|
3806
3806
|
function a(a) {
|
|
3807
|
-
return
|
|
3807
|
+
return Va(t, K.Query), {
|
|
3808
3808
|
client: e,
|
|
3809
3809
|
query: t,
|
|
3810
|
-
observable: r && r.getSSRObservable(i()) ||
|
|
3811
|
-
return
|
|
3812
|
-
return e.watchQuery(
|
|
3810
|
+
observable: r && r.getSSRObservable(i()) || ba.inactiveOnCreation.withValue(!r, function() {
|
|
3811
|
+
return V(["canonizeResults", "partialRefetch"], function() {
|
|
3812
|
+
return e.watchQuery(no(void 0, e, n, i()));
|
|
3813
3813
|
});
|
|
3814
3814
|
}),
|
|
3815
3815
|
resultData: { previousData: a?.resultData.current?.data }
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
|
-
var o =
|
|
3818
|
+
var o = U.useState(a), s = o[0], c = o[1];
|
|
3819
3819
|
function l(e) {
|
|
3820
3820
|
var t;
|
|
3821
|
-
Object.assign(s.observable, (t = {}, t[
|
|
3821
|
+
Object.assign(s.observable, (t = {}, t[qa] = e, t));
|
|
3822
3822
|
var n = s.resultData;
|
|
3823
3823
|
c(E(E({}, s), {
|
|
3824
3824
|
query: e.query,
|
|
@@ -3834,16 +3834,16 @@ function Za(e, t, n, r, i) {
|
|
|
3834
3834
|
}
|
|
3835
3835
|
return [s, l];
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3838
|
-
var n =
|
|
3839
|
-
|
|
3840
|
-
var h =
|
|
3841
|
-
return
|
|
3837
|
+
function Za(e, t) {
|
|
3838
|
+
var n = Ji(t.client), r = U.useContext(qi()).renderPromises, i = !!r, a = n.disableNetworkFetches, o = t.ssr !== !1 && !t.skip, s = t.partialRefetch, c = to(n, e, t, i), l = Xa(n, e, t, r, c), u = l[0], d = u.observable, f = u.resultData, p = l[1], m = c(d);
|
|
3839
|
+
eo(f, d, n, t, m);
|
|
3840
|
+
var h = U.useMemo(function() {
|
|
3841
|
+
return po(d);
|
|
3842
3842
|
}, [d]);
|
|
3843
|
-
return
|
|
3844
|
-
result:
|
|
3845
|
-
onCompleted: t.onCompleted ||
|
|
3846
|
-
onError: t.onError ||
|
|
3843
|
+
return $a(d, r, o), {
|
|
3844
|
+
result: Qa(f, d, n, t, m, a, s, i, {
|
|
3845
|
+
onCompleted: t.onCompleted || Ka,
|
|
3846
|
+
onError: t.onError || Ka
|
|
3847
3847
|
}),
|
|
3848
3848
|
obsQueryFields: h,
|
|
3849
3849
|
observable: d,
|
|
@@ -3852,32 +3852,32 @@ function Qa(e, t) {
|
|
|
3852
3852
|
onQueryExecuted: p
|
|
3853
3853
|
};
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3856
|
-
var l =
|
|
3857
|
-
|
|
3855
|
+
function Qa(e, t, n, r, i, a, o, s, c) {
|
|
3856
|
+
var l = U.useRef(c);
|
|
3857
|
+
U.useEffect(function() {
|
|
3858
3858
|
l.current = c;
|
|
3859
3859
|
});
|
|
3860
|
-
var u = (s || a) && r.ssr === !1 && !r.skip ?
|
|
3861
|
-
return u &&
|
|
3860
|
+
var u = (s || a) && r.ssr === !1 && !r.skip ? uo : r.skip || i.fetchPolicy === "standby" ? fo : void 0, d = e.previousData, f = U.useMemo(function() {
|
|
3861
|
+
return u && co(u, d, t, n);
|
|
3862
3862
|
}, [
|
|
3863
3863
|
n,
|
|
3864
3864
|
t,
|
|
3865
3865
|
u,
|
|
3866
3866
|
d
|
|
3867
3867
|
]);
|
|
3868
|
-
return
|
|
3868
|
+
return Xi(U.useCallback(function(r) {
|
|
3869
3869
|
if (s) return function() {};
|
|
3870
3870
|
var i = function() {
|
|
3871
3871
|
var i = e.current, a = t.getCurrentResult();
|
|
3872
|
-
i && i.loading === a.loading && i.networkStatus === a.networkStatus &&
|
|
3872
|
+
i && i.loading === a.loading && i.networkStatus === a.networkStatus && W(i.data, a.data) || ro(a, e, t, n, o, r, l.current);
|
|
3873
3873
|
}, a = function(s) {
|
|
3874
|
-
if (c.current.unsubscribe(), c.current = t.resubscribeAfterError(i, a), !
|
|
3874
|
+
if (c.current.unsubscribe(), c.current = t.resubscribeAfterError(i, a), !Ga.call(s, "graphQLErrors")) throw s;
|
|
3875
3875
|
var u = e.current;
|
|
3876
|
-
(!u || u && u.loading || !
|
|
3876
|
+
(!u || u && u.loading || !W(s, u.error)) && ro({
|
|
3877
3877
|
data: u && u.data,
|
|
3878
3878
|
error: s,
|
|
3879
3879
|
loading: !1,
|
|
3880
|
-
networkStatus:
|
|
3880
|
+
networkStatus: G.error
|
|
3881
3881
|
}, e, t, n, o, r, l.current);
|
|
3882
3882
|
}, c = { current: t.subscribe(i, a) };
|
|
3883
3883
|
return function() {
|
|
@@ -3893,18 +3893,18 @@ function $a(e, t, n, r, i, a, o, s, c) {
|
|
|
3893
3893
|
o,
|
|
3894
3894
|
n
|
|
3895
3895
|
]), function() {
|
|
3896
|
-
return f ||
|
|
3896
|
+
return f || ao(e, t, l.current, o, n);
|
|
3897
3897
|
}, function() {
|
|
3898
|
-
return f ||
|
|
3898
|
+
return f || ao(e, t, l.current, o, n);
|
|
3899
3899
|
});
|
|
3900
3900
|
}
|
|
3901
|
-
function
|
|
3901
|
+
function $a(e, t, n) {
|
|
3902
3902
|
t && n && (t.registerSSRObservable(e), e.getCurrentResult().loading && t.addObservableQueryPromise(e));
|
|
3903
3903
|
}
|
|
3904
|
-
function
|
|
3905
|
-
t[
|
|
3904
|
+
function eo(e, t, n, r, i) {
|
|
3905
|
+
t[qa] && !W(t[qa], i) && (t.reobserve(no(t, n, r, i)), e.previousData = e.current?.data || e.previousData, e.current = void 0), t[qa] = i;
|
|
3906
3906
|
}
|
|
3907
|
-
function
|
|
3907
|
+
function to(e, t, n, r) {
|
|
3908
3908
|
n === void 0 && (n = {});
|
|
3909
3909
|
var i = n.skip;
|
|
3910
3910
|
n.ssr, n.onCompleted, n.onError;
|
|
@@ -3917,37 +3917,37 @@ function no(e, t, n, r) {
|
|
|
3917
3917
|
]);
|
|
3918
3918
|
return function(n) {
|
|
3919
3919
|
var s = Object.assign(o, { query: t });
|
|
3920
|
-
return r && (s.fetchPolicy === "network-only" || s.fetchPolicy === "cache-and-network") && (s.fetchPolicy = "cache-first"), s.variables || (s.variables = {}), i ? (s.initialFetchPolicy = s.initialFetchPolicy || s.fetchPolicy ||
|
|
3920
|
+
return r && (s.fetchPolicy === "network-only" || s.fetchPolicy === "cache-and-network") && (s.fetchPolicy = "cache-first"), s.variables || (s.variables = {}), i ? (s.initialFetchPolicy = s.initialFetchPolicy || s.fetchPolicy || oo(a, e.defaultOptions), s.fetchPolicy = "standby") : s.fetchPolicy || (s.fetchPolicy = n?.options.initialFetchPolicy || oo(a, e.defaultOptions)), s;
|
|
3921
3921
|
};
|
|
3922
3922
|
}
|
|
3923
|
-
function
|
|
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(Ri(e && e.options, r)), i.reduce(zi);
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
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 && ii(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
|
-
function
|
|
3931
|
+
function io(e, t, n) {
|
|
3932
3932
|
if (!e.loading) {
|
|
3933
|
-
var r =
|
|
3933
|
+
var r = so(e);
|
|
3934
3934
|
Promise.resolve().then(function() {
|
|
3935
|
-
r ? n.onError(r) : e.data && t !== e.networkStatus && e.networkStatus ===
|
|
3935
|
+
r ? n.onError(r) : e.data && t !== e.networkStatus && e.networkStatus === G.ready && n.onCompleted(e.data);
|
|
3936
3936
|
}).catch(function(e) {
|
|
3937
3937
|
globalThis.__DEV__ !== !1 && A.warn(e);
|
|
3938
3938
|
});
|
|
3939
3939
|
}
|
|
3940
3940
|
}
|
|
3941
|
-
function
|
|
3942
|
-
return e.current ||
|
|
3941
|
+
function ao(e, t, n, r, i) {
|
|
3942
|
+
return e.current || ro(t.getCurrentResult(), e, t, i, r, function() {}, n), e.current;
|
|
3943
3943
|
}
|
|
3944
|
-
function
|
|
3944
|
+
function oo(e, t) {
|
|
3945
3945
|
return e?.fetchPolicy || t?.watchQuery?.fetchPolicy || "cache-first";
|
|
3946
3946
|
}
|
|
3947
|
-
function
|
|
3948
|
-
return
|
|
3947
|
+
function so(e) {
|
|
3948
|
+
return ii(e.errors) ? new fa({ graphQLErrors: e.errors }) : e.error;
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3950
|
+
function co(e, t, n, r) {
|
|
3951
3951
|
var i = e.data;
|
|
3952
3952
|
e.partial;
|
|
3953
3953
|
var a = le(e, ["data", "partial"]);
|
|
@@ -3955,28 +3955,28 @@ function lo(e, t, n, r) {
|
|
|
3955
3955
|
client: r,
|
|
3956
3956
|
observable: n,
|
|
3957
3957
|
variables: n.variables,
|
|
3958
|
-
called: e !==
|
|
3958
|
+
called: e !== uo && e !== fo,
|
|
3959
3959
|
previousData: t
|
|
3960
3960
|
});
|
|
3961
3961
|
}
|
|
3962
|
-
function
|
|
3962
|
+
function lo(e, t, n) {
|
|
3963
3963
|
return e.partial && n && !e.loading && (!e.data || Object.keys(e.data).length === 0) && t.options.fetchPolicy !== "cache-only" ? (t.refetch(), E(E({}, e), {
|
|
3964
3964
|
loading: !0,
|
|
3965
|
-
networkStatus:
|
|
3965
|
+
networkStatus: G.refetch
|
|
3966
3966
|
})) : e;
|
|
3967
3967
|
}
|
|
3968
|
-
var
|
|
3968
|
+
var uo = Fi({
|
|
3969
3969
|
loading: !0,
|
|
3970
3970
|
data: void 0,
|
|
3971
3971
|
error: void 0,
|
|
3972
|
-
networkStatus:
|
|
3973
|
-
}),
|
|
3972
|
+
networkStatus: G.loading
|
|
3973
|
+
}), fo = Fi({
|
|
3974
3974
|
loading: !1,
|
|
3975
3975
|
data: void 0,
|
|
3976
3976
|
error: void 0,
|
|
3977
|
-
networkStatus:
|
|
3977
|
+
networkStatus: G.ready
|
|
3978
3978
|
});
|
|
3979
|
-
function
|
|
3979
|
+
function po(e) {
|
|
3980
3980
|
return {
|
|
3981
3981
|
refetch: e.refetch.bind(e),
|
|
3982
3982
|
reobserve: function() {
|
|
@@ -3992,15 +3992,15 @@ function mo(e) {
|
|
|
3992
3992
|
}
|
|
3993
3993
|
//#endregion
|
|
3994
3994
|
//#region node_modules/@apollo/client/react/hooks/useMutation.js
|
|
3995
|
-
function
|
|
3996
|
-
globalThis.__DEV__ !== !1 &&
|
|
3997
|
-
var n =
|
|
3998
|
-
|
|
3999
|
-
var r =
|
|
3995
|
+
function mo(e, t) {
|
|
3996
|
+
globalThis.__DEV__ !== !1 && J(t || {}, "ignoreResults", "useMutation", "If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");
|
|
3997
|
+
var n = Ji(t?.client);
|
|
3998
|
+
Va(e, K.Mutation);
|
|
3999
|
+
var r = U.useState({
|
|
4000
4000
|
called: !1,
|
|
4001
4001
|
loading: !1,
|
|
4002
4002
|
client: n
|
|
4003
|
-
}), i = r[0], a = r[1], o =
|
|
4003
|
+
}), i = r[0], a = r[1], o = U.useRef({
|
|
4004
4004
|
result: i,
|
|
4005
4005
|
mutationId: 0,
|
|
4006
4006
|
isMounted: !0,
|
|
@@ -4008,14 +4008,14 @@ function ho(e, t) {
|
|
|
4008
4008
|
mutation: e,
|
|
4009
4009
|
options: t
|
|
4010
4010
|
});
|
|
4011
|
-
|
|
4011
|
+
Ha(function() {
|
|
4012
4012
|
Object.assign(o.current, {
|
|
4013
4013
|
client: n,
|
|
4014
4014
|
options: t,
|
|
4015
4015
|
mutation: e
|
|
4016
4016
|
});
|
|
4017
4017
|
});
|
|
4018
|
-
var s =
|
|
4018
|
+
var s = U.useCallback(function(e) {
|
|
4019
4019
|
e === void 0 && (e = {});
|
|
4020
4020
|
var t = o.current, n = t.options, r = t.mutation, i = E(E({}, n), { mutation: r }), s = e.client || o.current.client;
|
|
4021
4021
|
!o.current.result.loading && !i.ignoreResults && o.current.isMounted && a(o.current.result = {
|
|
@@ -4025,9 +4025,9 @@ function ho(e, t) {
|
|
|
4025
4025
|
called: !0,
|
|
4026
4026
|
client: s
|
|
4027
4027
|
});
|
|
4028
|
-
var c = ++o.current.mutationId, l =
|
|
4028
|
+
var c = ++o.current.mutationId, l = zi(i, e);
|
|
4029
4029
|
return s.mutate(l).then(function(t) {
|
|
4030
|
-
var n = t.data, r = t.errors, i = r && r.length > 0 ? new
|
|
4030
|
+
var n = t.data, r = t.errors, i = r && r.length > 0 ? new fa({ graphQLErrors: r }) : void 0, u = e.onError || o.current.options?.onError;
|
|
4031
4031
|
if (i && u && u(i, l), c === o.current.mutationId && !l.ignoreResults) {
|
|
4032
4032
|
var d = {
|
|
4033
4033
|
called: !0,
|
|
@@ -4036,7 +4036,7 @@ function ho(e, t) {
|
|
|
4036
4036
|
error: i,
|
|
4037
4037
|
client: s
|
|
4038
4038
|
};
|
|
4039
|
-
o.current.isMounted && !
|
|
4039
|
+
o.current.isMounted && !W(o.current.result, d) && a(o.current.result = d);
|
|
4040
4040
|
}
|
|
4041
4041
|
var f = e.onCompleted || o.current.options?.onCompleted;
|
|
4042
4042
|
return i || f?.(t.data, l), t;
|
|
@@ -4049,7 +4049,7 @@ function ho(e, t) {
|
|
|
4049
4049
|
called: !0,
|
|
4050
4050
|
client: s
|
|
4051
4051
|
};
|
|
4052
|
-
|
|
4052
|
+
W(o.current.result, n) || a(o.current.result = n);
|
|
4053
4053
|
}
|
|
4054
4054
|
var r = e.onError || o.current.options?.onError;
|
|
4055
4055
|
if (r) return r(t, l), {
|
|
@@ -4058,7 +4058,7 @@ function ho(e, t) {
|
|
|
4058
4058
|
};
|
|
4059
4059
|
throw t;
|
|
4060
4060
|
});
|
|
4061
|
-
}, []), c =
|
|
4061
|
+
}, []), c = U.useCallback(function() {
|
|
4062
4062
|
if (o.current.isMounted) {
|
|
4063
4063
|
var e = {
|
|
4064
4064
|
called: !1,
|
|
@@ -4071,7 +4071,7 @@ function ho(e, t) {
|
|
|
4071
4071
|
}), a(e);
|
|
4072
4072
|
}
|
|
4073
4073
|
}, []);
|
|
4074
|
-
return
|
|
4074
|
+
return U.useEffect(function() {
|
|
4075
4075
|
var e = o.current;
|
|
4076
4076
|
return e.isMounted = !0, function() {
|
|
4077
4077
|
e.isMounted = !1;
|
|
@@ -4080,30 +4080,30 @@ function ho(e, t) {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
//#endregion
|
|
4082
4082
|
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
|
|
4083
|
-
function
|
|
4083
|
+
function ho(e, t) {
|
|
4084
4084
|
if (typeof e == "function") return e(t);
|
|
4085
4085
|
e != null && (e.current = t);
|
|
4086
4086
|
}
|
|
4087
|
-
function
|
|
4087
|
+
function go(...e) {
|
|
4088
4088
|
return (t) => {
|
|
4089
4089
|
let n = !1, r = e.map((e) => {
|
|
4090
|
-
let r =
|
|
4090
|
+
let r = ho(e, t);
|
|
4091
4091
|
return !n && typeof r == "function" && (n = !0), r;
|
|
4092
4092
|
});
|
|
4093
4093
|
if (n) return () => {
|
|
4094
4094
|
for (let t = 0; t < r.length; t++) {
|
|
4095
4095
|
let n = r[t];
|
|
4096
|
-
typeof n == "function" ? n() :
|
|
4096
|
+
typeof n == "function" ? n() : ho(e[t], null);
|
|
4097
4097
|
}
|
|
4098
4098
|
};
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
|
-
function
|
|
4102
|
-
return h.useCallback(
|
|
4101
|
+
function _o(...e) {
|
|
4102
|
+
return h.useCallback(go(...e), e);
|
|
4103
4103
|
}
|
|
4104
4104
|
//#endregion
|
|
4105
4105
|
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
4106
|
-
var
|
|
4106
|
+
var vo = class extends h.Component {
|
|
4107
4107
|
getSnapshotBeforeUpdate(e) {
|
|
4108
4108
|
let t = this.props.childRef.current;
|
|
4109
4109
|
if (o(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
@@ -4117,7 +4117,7 @@ var yo = class extends h.Component {
|
|
|
4117
4117
|
return this.props.children;
|
|
4118
4118
|
}
|
|
4119
4119
|
};
|
|
4120
|
-
function
|
|
4120
|
+
function yo({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
|
|
4121
4121
|
let o = x(), c = re(null), l = re({
|
|
4122
4122
|
width: 0,
|
|
4123
4123
|
height: 0,
|
|
@@ -4125,7 +4125,7 @@ function bo({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
4125
4125
|
left: 0,
|
|
4126
4126
|
right: 0,
|
|
4127
4127
|
bottom: 0
|
|
4128
|
-
}), { nonce: u } = ee(s), d =
|
|
4128
|
+
}), { nonce: u } = ee(s), d = _o(c, e.props?.ref ?? e?.ref);
|
|
4129
4129
|
return te(() => {
|
|
4130
4130
|
let { width: e, height: s, top: d, left: f, right: p, bottom: m } = l.current;
|
|
4131
4131
|
if (t || a === !1 || !c.current || !e || !s) return;
|
|
@@ -4145,7 +4145,7 @@ function bo({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
4145
4145
|
`), () => {
|
|
4146
4146
|
c.current?.removeAttribute("data-motion-pop-id"), v.contains(_) && v.removeChild(_);
|
|
4147
4147
|
};
|
|
4148
|
-
}, [t]), w(
|
|
4148
|
+
}, [t]), w(vo, {
|
|
4149
4149
|
isPresent: t,
|
|
4150
4150
|
childRef: c,
|
|
4151
4151
|
sizeRef: l,
|
|
@@ -4155,8 +4155,8 @@ function bo({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
4155
4155
|
}
|
|
4156
4156
|
//#endregion
|
|
4157
4157
|
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
4158
|
-
var
|
|
4159
|
-
let f = t(
|
|
4158
|
+
var bo = ({ children: e, initial: n, isPresent: r, onExitComplete: i, custom: o, presenceAffectsLayout: s, mode: c, anchorX: l, anchorY: u, root: d }) => {
|
|
4159
|
+
let f = t(xo), p = x(), m = !0, g = S(() => (m = !1, {
|
|
4160
4160
|
id: p,
|
|
4161
4161
|
initial: n,
|
|
4162
4162
|
isPresent: r,
|
|
@@ -4176,7 +4176,7 @@ var xo = ({ children: e, initial: n, isPresent: r, onExitComplete: i, custom: o,
|
|
|
4176
4176
|
f.forEach((e, t) => f.set(t, !1));
|
|
4177
4177
|
}, [r]), h.useEffect(() => {
|
|
4178
4178
|
!r && !f.size && i && i();
|
|
4179
|
-
}, [r]), e = w(
|
|
4179
|
+
}, [r]), e = w(yo, {
|
|
4180
4180
|
pop: c === "popLayout",
|
|
4181
4181
|
isPresent: r,
|
|
4182
4182
|
anchorX: l,
|
|
@@ -4188,13 +4188,13 @@ var xo = ({ children: e, initial: n, isPresent: r, onExitComplete: i, custom: o,
|
|
|
4188
4188
|
children: e
|
|
4189
4189
|
});
|
|
4190
4190
|
};
|
|
4191
|
-
function
|
|
4191
|
+
function xo() {
|
|
4192
4192
|
return /* @__PURE__ */ new Map();
|
|
4193
4193
|
}
|
|
4194
4194
|
//#endregion
|
|
4195
4195
|
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
|
|
4196
|
-
var
|
|
4197
|
-
function
|
|
4196
|
+
var So = (e) => e.key || "";
|
|
4197
|
+
function Co(e) {
|
|
4198
4198
|
let t = [];
|
|
4199
4199
|
return g.forEach(e, (e) => {
|
|
4200
4200
|
v(e) && t.push(e);
|
|
@@ -4202,12 +4202,12 @@ function wo(e) {
|
|
|
4202
4202
|
}
|
|
4203
4203
|
//#endregion
|
|
4204
4204
|
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
4205
|
-
var
|
|
4206
|
-
let [m, h] = r(u), g = S(() =>
|
|
4205
|
+
var wo = ({ children: e, custom: n, initial: a = !0, onExitComplete: o, presenceAffectsLayout: s = !0, mode: l = "sync", propagate: u = !1, anchorX: d = "left", anchorY: f = "top", root: p }) => {
|
|
4206
|
+
let [m, h] = r(u), g = S(() => Co(e), [e]), _ = u && !m ? [] : g.map(So), v = re(!0), y = re(g), b = t(() => /* @__PURE__ */ new Map()), x = re(/* @__PURE__ */ new Set()), [te, ne] = C(g), [T, ae] = C(g);
|
|
4207
4207
|
i(() => {
|
|
4208
4208
|
v.current = !1, y.current = g;
|
|
4209
4209
|
for (let e = 0; e < T.length; e++) {
|
|
4210
|
-
let t =
|
|
4210
|
+
let t = So(T[e]);
|
|
4211
4211
|
_.includes(t) ? (b.delete(t), x.current.delete(t)) : b.get(t) !== !0 && b.set(t, !1);
|
|
4212
4212
|
}
|
|
4213
4213
|
}, [
|
|
@@ -4219,15 +4219,15 @@ var To = ({ children: e, custom: n, initial: a = !0, onExitComplete: o, presence
|
|
|
4219
4219
|
if (g !== te) {
|
|
4220
4220
|
let e = [...g];
|
|
4221
4221
|
for (let t = 0; t < T.length; t++) {
|
|
4222
|
-
let n = T[t], r =
|
|
4222
|
+
let n = T[t], r = So(n);
|
|
4223
4223
|
_.includes(r) || (e.splice(t, 0, n), oe.push(n));
|
|
4224
4224
|
}
|
|
4225
|
-
return l === "wait" && oe.length && (e = oe), ae(
|
|
4225
|
+
return l === "wait" && oe.length && (e = oe), ae(Co(e)), ne(g), null;
|
|
4226
4226
|
}
|
|
4227
4227
|
let { forceRender: se } = ee(c);
|
|
4228
4228
|
return w(ie, { children: T.map((e) => {
|
|
4229
|
-
let t =
|
|
4230
|
-
return w(
|
|
4229
|
+
let t = So(e), r = u && !m ? !1 : g === T || _.includes(t);
|
|
4230
|
+
return w(bo, {
|
|
4231
4231
|
isPresent: r,
|
|
4232
4232
|
initial: !v.current || a ? void 0 : !1,
|
|
4233
4233
|
custom: n,
|
|
@@ -4248,13 +4248,13 @@ var To = ({ children: e, custom: n, initial: a = !0, onExitComplete: o, presence
|
|
|
4248
4248
|
children: e
|
|
4249
4249
|
}, t);
|
|
4250
4250
|
}) });
|
|
4251
|
-
},
|
|
4252
|
-
function
|
|
4253
|
-
return /^https?:\/\//.test(e) ? e :
|
|
4251
|
+
}, To = "https://cdn.wexio.io";
|
|
4252
|
+
function Eo(e) {
|
|
4253
|
+
return /^https?:\/\//.test(e) ? e : To + (e.startsWith("/") ? e : `/${e}`);
|
|
4254
4254
|
}
|
|
4255
4255
|
//#endregion
|
|
4256
4256
|
//#region lib/use-widget-env.tsx
|
|
4257
|
-
function
|
|
4257
|
+
function Do() {
|
|
4258
4258
|
let e = (e) => {
|
|
4259
4259
|
typeof window > "u" || window.parent?.postMessage(e, "*");
|
|
4260
4260
|
};
|
|
@@ -4268,62 +4268,62 @@ function Oo() {
|
|
|
4268
4268
|
onClose: () => e({ type: "wexio:widget:close:v1" })
|
|
4269
4269
|
};
|
|
4270
4270
|
}
|
|
4271
|
-
var
|
|
4272
|
-
function
|
|
4273
|
-
return /* @__PURE__ */ w(
|
|
4271
|
+
var Oo = _(null);
|
|
4272
|
+
function ko({ env: e, children: t }) {
|
|
4273
|
+
return /* @__PURE__ */ w(Oo.Provider, {
|
|
4274
4274
|
value: e,
|
|
4275
4275
|
children: t
|
|
4276
4276
|
});
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4279
|
-
return ee(
|
|
4278
|
+
function Ao() {
|
|
4279
|
+
return ee(Oo) ?? Do();
|
|
4280
4280
|
}
|
|
4281
4281
|
//#endregion
|
|
4282
4282
|
//#region lib/api.ts
|
|
4283
|
-
var
|
|
4284
|
-
function
|
|
4283
|
+
var jo = "http://localhost:3001", Mo = "https://local.api.wexio.io:3443";
|
|
4284
|
+
function No() {
|
|
4285
4285
|
let e = process.env.NEXT_PUBLIC_WEXIO_API_URL;
|
|
4286
4286
|
if (e) return e;
|
|
4287
4287
|
if (typeof window < "u") {
|
|
4288
4288
|
let { protocol: e, hostname: t } = window.location;
|
|
4289
|
-
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return
|
|
4289
|
+
if (e === "https:" && /^local\.[a-z-]+\.wexio\.io$/i.test(t)) return Mo;
|
|
4290
4290
|
if (e === "https:" && /\.wexio\.io$/i.test(t)) {
|
|
4291
4291
|
let e = t.replace(/^(app|templates)\./i, "api.").replace(/\.(app|templates)\./i, ".api.");
|
|
4292
4292
|
return e === t ? "https://api.wexio.io" : `https://${e}`;
|
|
4293
4293
|
}
|
|
4294
4294
|
}
|
|
4295
|
-
return
|
|
4295
|
+
return jo;
|
|
4296
4296
|
}
|
|
4297
|
-
var
|
|
4298
|
-
function
|
|
4297
|
+
var Po = /* @__PURE__ */ new Map();
|
|
4298
|
+
function Fo(e, t) {
|
|
4299
4299
|
if (!e) return Promise.resolve(null);
|
|
4300
|
-
let n = `${e}|${t ?? ""}`, r =
|
|
4300
|
+
let n = `${e}|${t ?? ""}`, r = Po.get(n);
|
|
4301
4301
|
if (r) return r;
|
|
4302
4302
|
let i = (async () => {
|
|
4303
4303
|
try {
|
|
4304
|
-
let n = new URL(`${
|
|
4304
|
+
let n = new URL(`${No()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4305
4305
|
t && n.searchParams.set("locale", t);
|
|
4306
4306
|
let r = await fetch(n.toString(), {
|
|
4307
4307
|
method: "GET",
|
|
4308
4308
|
headers: { "x-web-public-key": e },
|
|
4309
4309
|
credentials: "omit"
|
|
4310
4310
|
});
|
|
4311
|
-
return r.ok ?
|
|
4311
|
+
return r.ok ? Bo(await r.json()) : null;
|
|
4312
4312
|
} catch {
|
|
4313
4313
|
return null;
|
|
4314
4314
|
}
|
|
4315
4315
|
})();
|
|
4316
|
-
return
|
|
4316
|
+
return Po.set(n, i.then((e) => (e === null && Po.delete(n), e))), Po.get(n) ?? i;
|
|
4317
4317
|
}
|
|
4318
|
-
var
|
|
4318
|
+
var Io = [
|
|
4319
4319
|
"NAME",
|
|
4320
4320
|
"EMAIL",
|
|
4321
4321
|
"PHONE",
|
|
4322
4322
|
"CUSTOM_TEXT"
|
|
4323
|
-
],
|
|
4324
|
-
function
|
|
4323
|
+
], Lo = ["HINT", "SYSTEM"];
|
|
4324
|
+
function Ro(e) {
|
|
4325
4325
|
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" &&
|
|
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" && Lo.includes(e.kind)).map((e) => ({
|
|
4327
4327
|
kind: e.kind,
|
|
4328
4328
|
text: e.text
|
|
4329
4329
|
})).slice(0, 10) : [];
|
|
@@ -4339,9 +4339,9 @@ function zo(e) {
|
|
|
4339
4339
|
profile: Array.isArray(e.profile?.fields) && e.profile.fields.length > 0 ? { fields: e.profile.fields.filter((e) => typeof e == "string") } : null
|
|
4340
4340
|
};
|
|
4341
4341
|
}
|
|
4342
|
-
function
|
|
4342
|
+
function zo(e) {
|
|
4343
4343
|
if (!e) return null;
|
|
4344
|
-
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e &&
|
|
4344
|
+
let t = (Array.isArray(e.fields) ? e.fields : []).filter((e) => e && Io.includes(e.kind)).map((e) => ({
|
|
4345
4345
|
kind: e.kind,
|
|
4346
4346
|
key: String(e.key ?? ""),
|
|
4347
4347
|
label: String(e.label ?? ""),
|
|
@@ -4352,7 +4352,7 @@ function Bo(e) {
|
|
|
4352
4352
|
fields: t
|
|
4353
4353
|
};
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function Bo(e) {
|
|
4356
4356
|
return {
|
|
4357
4357
|
status: e.status,
|
|
4358
4358
|
defaultTab: e.defaultTab?.toLowerCase() ?? "home",
|
|
@@ -4377,7 +4377,7 @@ function Vo(e) {
|
|
|
4377
4377
|
},
|
|
4378
4378
|
theme: e.theme ?? null,
|
|
4379
4379
|
themeMode: "auto",
|
|
4380
|
-
prechatForm:
|
|
4380
|
+
prechatForm: zo(e.prechatForm),
|
|
4381
4381
|
operatorAvatars: Array.isArray(e.operatorAvatars) ? e.operatorAvatars.filter((e) => !!e?.src).map((e) => ({
|
|
4382
4382
|
src: e.src,
|
|
4383
4383
|
alt: e.alt ?? ""
|
|
@@ -4398,21 +4398,21 @@ function Vo(e) {
|
|
|
4398
4398
|
outboundSoundId: e.sounds.outboundSoundId ?? null,
|
|
4399
4399
|
volume: typeof e.sounds.volume == "number" ? Math.max(0, Math.min(1, e.sounds.volume)) : .5
|
|
4400
4400
|
} : null,
|
|
4401
|
-
messenger:
|
|
4401
|
+
messenger: Ro(e.messenger),
|
|
4402
4402
|
botProtection: e.botProtection?.turnstile?.enabled && e.botProtection.turnstile.siteKey ? { turnstile: {
|
|
4403
4403
|
enabled: !0,
|
|
4404
4404
|
siteKey: e.botProtection.turnstile.siteKey
|
|
4405
4405
|
} } : null
|
|
4406
4406
|
};
|
|
4407
4407
|
}
|
|
4408
|
-
var
|
|
4409
|
-
function
|
|
4408
|
+
var Vo = /* @__PURE__ */ new Map();
|
|
4409
|
+
function Ho(e) {
|
|
4410
4410
|
if (!e) return Promise.resolve(null);
|
|
4411
|
-
let t =
|
|
4411
|
+
let t = Vo.get(e);
|
|
4412
4412
|
if (t) return t;
|
|
4413
4413
|
let n = (async () => {
|
|
4414
4414
|
try {
|
|
4415
|
-
let t = new URL(`${
|
|
4415
|
+
let t = new URL(`${No()}/api/web/config/${encodeURIComponent(e)}`);
|
|
4416
4416
|
t.searchParams.set("view", "gate");
|
|
4417
4417
|
let n = await fetch(t.toString(), {
|
|
4418
4418
|
method: "GET",
|
|
@@ -4437,11 +4437,11 @@ function Uo(e) {
|
|
|
4437
4437
|
return null;
|
|
4438
4438
|
}
|
|
4439
4439
|
})();
|
|
4440
|
-
return
|
|
4440
|
+
return Vo.set(e, n.then((t) => (t === null && Vo.delete(e), t))), Vo.get(e) ?? n;
|
|
4441
4441
|
}
|
|
4442
4442
|
//#endregion
|
|
4443
4443
|
//#region dummy/authors.ts
|
|
4444
|
-
var
|
|
4444
|
+
var Uo = {
|
|
4445
4445
|
maya: {
|
|
4446
4446
|
_id: "demo-author-maya",
|
|
4447
4447
|
name: "Maya Chen",
|
|
@@ -4463,12 +4463,12 @@ var Wo = {
|
|
|
4463
4463
|
photo: { url: "https://i.pravatar.cc/96?img=68" }
|
|
4464
4464
|
}
|
|
4465
4465
|
};
|
|
4466
|
-
function
|
|
4467
|
-
return e.map((e) =>
|
|
4466
|
+
function Wo(e) {
|
|
4467
|
+
return e.map((e) => Uo[e]);
|
|
4468
4468
|
}
|
|
4469
4469
|
//#endregion
|
|
4470
4470
|
//#region lib/theme-font.ts
|
|
4471
|
-
var
|
|
4471
|
+
var Go = {
|
|
4472
4472
|
inter: "Inter:wght@400;500;600;700",
|
|
4473
4473
|
poppins: "Poppins:wght@400;500;600;700",
|
|
4474
4474
|
"dm sans": "DM+Sans:wght@400;500;600;700",
|
|
@@ -4480,11 +4480,11 @@ var Ko = {
|
|
|
4480
4480
|
raleway: "Raleway:wght@400;500;600;700",
|
|
4481
4481
|
"work sans": "Work+Sans:wght@400;500;600;700"
|
|
4482
4482
|
};
|
|
4483
|
-
function
|
|
4483
|
+
function Ko(e) {
|
|
4484
4484
|
if (!e || typeof document > "u") return;
|
|
4485
4485
|
let t = e.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
|
|
4486
4486
|
if (!t) return;
|
|
4487
|
-
let n =
|
|
4487
|
+
let n = Go[t.toLowerCase()];
|
|
4488
4488
|
if (!n) return;
|
|
4489
4489
|
let r = `wexio-font-${t.toLowerCase().replace(/\s+/g, "-")}`;
|
|
4490
4490
|
if (document.getElementById(r)) return;
|
|
@@ -4493,7 +4493,7 @@ function qo(e) {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
//#endregion
|
|
4495
4495
|
//#region lib/widget-config.ts
|
|
4496
|
-
var
|
|
4496
|
+
var qo = {
|
|
4497
4497
|
status: "active",
|
|
4498
4498
|
defaultTab: "home",
|
|
4499
4499
|
localeStrategy: "AUTO",
|
|
@@ -4551,7 +4551,7 @@ var Jo = {
|
|
|
4551
4551
|
messenger: {
|
|
4552
4552
|
title: null,
|
|
4553
4553
|
description: null,
|
|
4554
|
-
aiAssistantAvatar:
|
|
4554
|
+
aiAssistantAvatar: Eo("/logo-dark.png"),
|
|
4555
4555
|
commands: [
|
|
4556
4556
|
"/start",
|
|
4557
4557
|
"/help",
|
|
@@ -4564,7 +4564,7 @@ var Jo = {
|
|
|
4564
4564
|
profile: null
|
|
4565
4565
|
},
|
|
4566
4566
|
botProtection: null
|
|
4567
|
-
},
|
|
4567
|
+
}, Jo = [
|
|
4568
4568
|
{ kind: "ask-question" },
|
|
4569
4569
|
{ kind: "recent-message" },
|
|
4570
4570
|
{ kind: "featured-article" },
|
|
@@ -4617,18 +4617,19 @@ var Jo = {
|
|
|
4617
4617
|
];
|
|
4618
4618
|
//#endregion
|
|
4619
4619
|
//#region lib/use-widget-config.ts
|
|
4620
|
-
function
|
|
4621
|
-
let e =
|
|
4620
|
+
function Yo() {
|
|
4621
|
+
let e = Ao(), t = p(), [n, r] = C({
|
|
4622
4622
|
mode: "demo",
|
|
4623
|
-
config:
|
|
4623
|
+
config: qo,
|
|
4624
4624
|
isDummy: !0,
|
|
4625
|
-
isLoading: !0
|
|
4625
|
+
isLoading: !0,
|
|
4626
|
+
error: null
|
|
4626
4627
|
}), [i, a] = C(null);
|
|
4627
4628
|
b(() => {
|
|
4628
4629
|
let n = new URL(window.location.href), i = n.searchParams.get("pk") ?? void 0, o = process.env.NEXT_PUBLIC_WEXIO_DEMO_PK || void 0, s = n.searchParams.get("mode"), c = e.publicKeyOverride ?? i ?? o, l = e.modeOverride ?? (c ? "production" : s === "preview" ? "preview" : "demo"), u = !1;
|
|
4629
4630
|
if ((async () => {
|
|
4630
4631
|
if (e.configBase) {
|
|
4631
|
-
let t = c ? await
|
|
4632
|
+
let t = c ? await Ho(c) : null;
|
|
4632
4633
|
if (u) return;
|
|
4633
4634
|
let n = e.configBase.security, i = t?.security, a = {
|
|
4634
4635
|
requireAuth: n?.requireAuth ?? i?.requireAuth ?? !1,
|
|
@@ -4647,37 +4648,49 @@ function Xo() {
|
|
|
4647
4648
|
status: t?.status ?? "active"
|
|
4648
4649
|
},
|
|
4649
4650
|
isDummy: e.forceDummyData === !0,
|
|
4650
|
-
isLoading: !1
|
|
4651
|
+
isLoading: !1,
|
|
4652
|
+
error: null
|
|
4651
4653
|
});
|
|
4652
4654
|
return;
|
|
4653
4655
|
}
|
|
4654
4656
|
if (e.forceDummyData !== void 0) {
|
|
4655
4657
|
r({
|
|
4656
4658
|
mode: l,
|
|
4657
|
-
config:
|
|
4659
|
+
config: qo,
|
|
4658
4660
|
isDummy: e.forceDummyData,
|
|
4659
|
-
isLoading: !1
|
|
4661
|
+
isLoading: !1,
|
|
4662
|
+
error: null
|
|
4660
4663
|
});
|
|
4661
4664
|
return;
|
|
4662
4665
|
}
|
|
4663
4666
|
if (c) {
|
|
4664
|
-
let e = await
|
|
4667
|
+
let e = await Fo(c, t);
|
|
4665
4668
|
if (u) return;
|
|
4666
4669
|
if (e) {
|
|
4667
4670
|
r({
|
|
4668
4671
|
mode: l,
|
|
4669
4672
|
config: e,
|
|
4670
4673
|
isDummy: !1,
|
|
4671
|
-
isLoading: !1
|
|
4674
|
+
isLoading: !1,
|
|
4675
|
+
error: null
|
|
4672
4676
|
});
|
|
4673
4677
|
return;
|
|
4674
4678
|
}
|
|
4679
|
+
r({
|
|
4680
|
+
mode: l,
|
|
4681
|
+
config: qo,
|
|
4682
|
+
isDummy: !0,
|
|
4683
|
+
isLoading: !1,
|
|
4684
|
+
error: "publicKeyInvalid"
|
|
4685
|
+
});
|
|
4686
|
+
return;
|
|
4675
4687
|
}
|
|
4676
4688
|
r({
|
|
4677
4689
|
mode: l,
|
|
4678
|
-
config:
|
|
4690
|
+
config: qo,
|
|
4679
4691
|
isDummy: !0,
|
|
4680
|
-
isLoading: !1
|
|
4692
|
+
isLoading: !1,
|
|
4693
|
+
error: null
|
|
4681
4694
|
});
|
|
4682
4695
|
})(), l !== "preview") return () => {
|
|
4683
4696
|
u = !0;
|
|
@@ -4685,7 +4698,7 @@ function Xo() {
|
|
|
4685
4698
|
let d = (e) => {
|
|
4686
4699
|
if (!e.data || typeof e.data != "object" || e.data.type !== "wexio:preview-config:v1") return;
|
|
4687
4700
|
let t = e.data.config;
|
|
4688
|
-
t && a((e) =>
|
|
4701
|
+
t && a((e) => Xo(e ?? {}, t));
|
|
4689
4702
|
};
|
|
4690
4703
|
return window.addEventListener("message", d), () => {
|
|
4691
4704
|
u = !0, window.removeEventListener("message", d);
|
|
@@ -4699,9 +4712,9 @@ function Xo() {
|
|
|
4699
4712
|
]);
|
|
4700
4713
|
let o = n.isDummy || e.forceDummyData === !0, s = S(() => {
|
|
4701
4714
|
let t = n.config;
|
|
4702
|
-
return i && (t =
|
|
4715
|
+
return i && (t = Xo(t, i)), e.configOverride && (t = Xo(t, e.configOverride)), o && t.operatorAvatars.length === 0 && (t = {
|
|
4703
4716
|
...t,
|
|
4704
|
-
operatorAvatars:
|
|
4717
|
+
operatorAvatars: qo.operatorAvatars
|
|
4705
4718
|
}), t;
|
|
4706
4719
|
}, [
|
|
4707
4720
|
n.config,
|
|
@@ -4710,9 +4723,9 @@ function Xo() {
|
|
|
4710
4723
|
o
|
|
4711
4724
|
]), c = e.styleRoot;
|
|
4712
4725
|
ne(() => {
|
|
4713
|
-
s.theme &&
|
|
4726
|
+
s.theme && rs(s.theme, c ?? document);
|
|
4714
4727
|
}, [s.theme, c]), b(() => {
|
|
4715
|
-
s.theme &&
|
|
4728
|
+
s.theme && Ko(s.theme.fontFamily);
|
|
4716
4729
|
}, [s.theme]);
|
|
4717
4730
|
let l = e.onLocaleStrategy;
|
|
4718
4731
|
return b(() => {
|
|
@@ -4726,10 +4739,11 @@ function Xo() {
|
|
|
4726
4739
|
mode: n.mode,
|
|
4727
4740
|
config: s,
|
|
4728
4741
|
isDummy: o,
|
|
4729
|
-
isLoading: n.isLoading
|
|
4742
|
+
isLoading: n.isLoading,
|
|
4743
|
+
error: n.error
|
|
4730
4744
|
};
|
|
4731
4745
|
}
|
|
4732
|
-
function
|
|
4746
|
+
function Xo(e, t) {
|
|
4733
4747
|
return {
|
|
4734
4748
|
...e,
|
|
4735
4749
|
...t,
|
|
@@ -4744,7 +4758,7 @@ function Zo(e, t) {
|
|
|
4744
4758
|
theme: t.theme === void 0 ? e.theme : t.theme
|
|
4745
4759
|
};
|
|
4746
4760
|
}
|
|
4747
|
-
var
|
|
4761
|
+
var Zo = {
|
|
4748
4762
|
background: "--wx-bg",
|
|
4749
4763
|
surface: "--wx-bg-elevated",
|
|
4750
4764
|
surfaceElevated: "--wx-bg-elevated-2",
|
|
@@ -4760,30 +4774,30 @@ var Qo = {
|
|
|
4760
4774
|
launcherForeground: "--wx-launcher-fg",
|
|
4761
4775
|
success: "--wx-success",
|
|
4762
4776
|
danger: "--wx-danger"
|
|
4763
|
-
},
|
|
4777
|
+
}, Qo = {
|
|
4764
4778
|
sm: "--wx-radius-sm",
|
|
4765
4779
|
md: "--wx-radius",
|
|
4766
4780
|
lg: "--wx-radius-lg",
|
|
4767
4781
|
xl: "--wx-radius-xl"
|
|
4768
4782
|
};
|
|
4769
|
-
function
|
|
4770
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "string" && e.length > 0).map(([e, t]) => `${
|
|
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(" ") : "";
|
|
4771
4785
|
}
|
|
4772
|
-
function
|
|
4773
|
-
return e ? Object.entries(e).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e, t]) => `${
|
|
4786
|
+
function es(e) {
|
|
4787
|
+
return e ? Object.entries(e).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e, t]) => `${Qo[e]}: ${t}px;`).join(" ") : "";
|
|
4774
4788
|
}
|
|
4775
|
-
var
|
|
4776
|
-
function
|
|
4777
|
-
let t = [
|
|
4789
|
+
var ts = /* @__PURE__ */ new WeakMap();
|
|
4790
|
+
function ns(e) {
|
|
4791
|
+
let t = [es(e.radii), typeof e.fontFamily == "string" && e.fontFamily.trim().length > 0 ? `--wx-font: ${e.fontFamily};` : ""].filter(Boolean).join(" "), n = [$o(e.light), t].filter(Boolean).join(" "), r = [$o(e.dark), t].filter(Boolean).join(" "), i = [];
|
|
4778
4792
|
return n && i.push(`:root, :host { ${n} }`), r && i.push(`[data-theme="dark"] { ${r} }`), i.join(" ");
|
|
4779
4793
|
}
|
|
4780
|
-
function
|
|
4781
|
-
let n =
|
|
4794
|
+
function rs(e, t) {
|
|
4795
|
+
let n = ns(e);
|
|
4782
4796
|
if (!(t instanceof Document)) {
|
|
4783
4797
|
let e = t;
|
|
4784
4798
|
if (typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype) {
|
|
4785
|
-
let t =
|
|
4786
|
-
t || (t = new CSSStyleSheet(),
|
|
4799
|
+
let t = ts.get(e);
|
|
4800
|
+
t || (t = new CSSStyleSheet(), ts.set(e, t), e.adoptedStyleSheets = [...e.adoptedStyleSheets, t]), t.replaceSync(n);
|
|
4787
4801
|
return;
|
|
4788
4802
|
}
|
|
4789
4803
|
let r = e.querySelector("#wexio-theme-vars");
|
|
@@ -4793,19 +4807,19 @@ function is(e, t) {
|
|
|
4793
4807
|
let r = t.getElementById("wexio-theme-vars");
|
|
4794
4808
|
r || (r = document.createElement("style"), r.id = "wexio-theme-vars", t.head.appendChild(r)), r.textContent = n;
|
|
4795
4809
|
}
|
|
4796
|
-
var
|
|
4810
|
+
var is = m("check", [["path", {
|
|
4797
4811
|
d: "M20 6 9 17l-5-5",
|
|
4798
4812
|
key: "1gmf2c"
|
|
4799
|
-
}]]),
|
|
4813
|
+
}]]), as = m("chevron-down", [["path", {
|
|
4800
4814
|
d: "m6 9 6 6 6-6",
|
|
4801
4815
|
key: "qrunsl"
|
|
4802
|
-
}]]),
|
|
4816
|
+
}]]), os = m("chevron-left", [["path", {
|
|
4803
4817
|
d: "m15 18-6-6 6-6",
|
|
4804
4818
|
key: "1wnfg3"
|
|
4805
|
-
}]]),
|
|
4819
|
+
}]]), ss = m("chevron-right", [["path", {
|
|
4806
4820
|
d: "m9 18 6-6-6-6",
|
|
4807
4821
|
key: "mthhwq"
|
|
4808
|
-
}]]),
|
|
4822
|
+
}]]), cs = m("x", [["path", {
|
|
4809
4823
|
d: "M18 6 6 18",
|
|
4810
4824
|
key: "1bl5f8"
|
|
4811
4825
|
}], ["path", {
|
|
@@ -4814,77 +4828,77 @@ var as = m("check", [["path", {
|
|
|
4814
4828
|
}]]);
|
|
4815
4829
|
//#endregion
|
|
4816
4830
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4817
|
-
function
|
|
4831
|
+
function ls(e, t) {
|
|
4818
4832
|
if (typeof e == "function") return e(t);
|
|
4819
4833
|
e != null && (e.current = t);
|
|
4820
4834
|
}
|
|
4821
|
-
function
|
|
4835
|
+
function us(...e) {
|
|
4822
4836
|
return (t) => {
|
|
4823
4837
|
let n = !1, r = e.map((e) => {
|
|
4824
|
-
let r =
|
|
4838
|
+
let r = ls(e, t);
|
|
4825
4839
|
return !n && typeof r == "function" && (n = !0), r;
|
|
4826
4840
|
});
|
|
4827
4841
|
if (n) return () => {
|
|
4828
4842
|
for (let t = 0; t < r.length; t++) {
|
|
4829
4843
|
let n = r[t];
|
|
4830
|
-
typeof n == "function" ? n() :
|
|
4844
|
+
typeof n == "function" ? n() : ls(e[t], null);
|
|
4831
4845
|
}
|
|
4832
4846
|
};
|
|
4833
4847
|
};
|
|
4834
4848
|
}
|
|
4835
|
-
function
|
|
4836
|
-
return h.useCallback(
|
|
4849
|
+
function Y(...e) {
|
|
4850
|
+
return h.useCallback(us(...e), e);
|
|
4837
4851
|
}
|
|
4838
4852
|
//#endregion
|
|
4839
4853
|
//#region components/ui/card.tsx
|
|
4840
|
-
var
|
|
4854
|
+
var ds = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4841
4855
|
ref: n,
|
|
4842
4856
|
className: f("rounded-wx-lg bg-wx-bg-elevated text-wx-fg", e),
|
|
4843
4857
|
...t
|
|
4844
4858
|
}));
|
|
4845
|
-
|
|
4846
|
-
var
|
|
4859
|
+
ds.displayName = "Card";
|
|
4860
|
+
var fs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4847
4861
|
ref: n,
|
|
4848
4862
|
className: f("rounded-wx bg-wx-bg-elevated-2 text-wx-fg", e),
|
|
4849
4863
|
...t
|
|
4850
4864
|
}));
|
|
4851
|
-
|
|
4852
|
-
var
|
|
4865
|
+
fs.displayName = "CardNested";
|
|
4866
|
+
var ps = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4853
4867
|
ref: n,
|
|
4854
4868
|
className: f("flex flex-col gap-1 px-5 pt-5", e),
|
|
4855
4869
|
...t
|
|
4856
4870
|
}));
|
|
4857
|
-
|
|
4858
|
-
var
|
|
4871
|
+
ps.displayName = "CardHeader";
|
|
4872
|
+
var ms = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4859
4873
|
ref: n,
|
|
4860
4874
|
className: f("text-base font-semibold text-wx-fg", e),
|
|
4861
4875
|
...t
|
|
4862
4876
|
}));
|
|
4863
|
-
|
|
4864
|
-
var
|
|
4877
|
+
ms.displayName = "CardTitle";
|
|
4878
|
+
var hs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("p", {
|
|
4865
4879
|
ref: n,
|
|
4866
4880
|
className: f("text-sm text-wx-fg-muted", e),
|
|
4867
4881
|
...t
|
|
4868
4882
|
}));
|
|
4869
|
-
|
|
4870
|
-
var
|
|
4883
|
+
hs.displayName = "CardSubtitle";
|
|
4884
|
+
var gs = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4871
4885
|
ref: n,
|
|
4872
4886
|
className: f("px-5 py-4", e),
|
|
4873
4887
|
...t
|
|
4874
4888
|
}));
|
|
4875
|
-
|
|
4876
|
-
var
|
|
4889
|
+
gs.displayName = "CardBody";
|
|
4890
|
+
var _s = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", {
|
|
4877
4891
|
ref: n,
|
|
4878
4892
|
className: f("flex items-center justify-between px-5 py-3 border-t border-wx-border", e),
|
|
4879
4893
|
...t
|
|
4880
4894
|
}));
|
|
4881
|
-
|
|
4895
|
+
_s.displayName = "CardFooter";
|
|
4882
4896
|
//#endregion
|
|
4883
4897
|
//#region node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
4884
4898
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4885
|
-
function
|
|
4886
|
-
let t = /* @__PURE__ */
|
|
4887
|
-
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(
|
|
4899
|
+
function vs(e) {
|
|
4900
|
+
let t = /* @__PURE__ */ ys(e), n = h.forwardRef((e, n) => {
|
|
4901
|
+
let { children: r, ...i } = e, a = h.Children.toArray(r), o = a.find(xs);
|
|
4888
4902
|
if (o) {
|
|
4889
4903
|
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);
|
|
4890
4904
|
return /* @__PURE__ */ w(t, {
|
|
@@ -4902,22 +4916,22 @@ function ys(e) {
|
|
|
4902
4916
|
return n.displayName = `${e}.Slot`, n;
|
|
4903
4917
|
}
|
|
4904
4918
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4905
|
-
function
|
|
4919
|
+
function ys(e) {
|
|
4906
4920
|
let t = h.forwardRef((e, t) => {
|
|
4907
4921
|
let { children: n, ...r } = e;
|
|
4908
4922
|
if (h.isValidElement(n)) {
|
|
4909
|
-
let e =
|
|
4910
|
-
return n.type !== h.Fragment && (i.ref = t ?
|
|
4923
|
+
let e = Cs(n), i = Ss(r, n.props);
|
|
4924
|
+
return n.type !== h.Fragment && (i.ref = t ? us(t, e) : e), h.cloneElement(n, i);
|
|
4911
4925
|
}
|
|
4912
4926
|
return h.Children.count(n) > 1 ? h.Children.only(null) : null;
|
|
4913
4927
|
});
|
|
4914
4928
|
return t.displayName = `${e}.SlotClone`, t;
|
|
4915
4929
|
}
|
|
4916
|
-
var
|
|
4917
|
-
function
|
|
4918
|
-
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
4930
|
+
var bs = Symbol("radix.slottable");
|
|
4931
|
+
function xs(e) {
|
|
4932
|
+
return h.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === bs;
|
|
4919
4933
|
}
|
|
4920
|
-
function
|
|
4934
|
+
function Ss(e, t) {
|
|
4921
4935
|
let n = { ...t };
|
|
4922
4936
|
for (let r in t) {
|
|
4923
4937
|
let i = e[r], a = t[r];
|
|
@@ -4934,13 +4948,13 @@ function Cs(e, t) {
|
|
|
4934
4948
|
...n
|
|
4935
4949
|
};
|
|
4936
4950
|
}
|
|
4937
|
-
function
|
|
4951
|
+
function Cs(e) {
|
|
4938
4952
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4939
4953
|
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);
|
|
4940
4954
|
}
|
|
4941
4955
|
//#endregion
|
|
4942
4956
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
4943
|
-
var
|
|
4957
|
+
var ws = [
|
|
4944
4958
|
"a",
|
|
4945
4959
|
"button",
|
|
4946
4960
|
"div",
|
|
@@ -4959,7 +4973,7 @@ var Y = [
|
|
|
4959
4973
|
"svg",
|
|
4960
4974
|
"ul"
|
|
4961
4975
|
].reduce((e, t) => {
|
|
4962
|
-
let n = /* @__PURE__ */
|
|
4976
|
+
let n = /* @__PURE__ */ vs(`Primitive.${t}`), r = h.forwardRef((e, r) => {
|
|
4963
4977
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
4964
4978
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(o, {
|
|
4965
4979
|
...a,
|
|
@@ -4983,7 +4997,7 @@ function Ds(e, t) {
|
|
|
4983
4997
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
4984
4998
|
}
|
|
4985
4999
|
var Os = (e) => {
|
|
4986
|
-
let { present: t, children: n } = e, r = ks(t), i = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a =
|
|
5000
|
+
let { present: t, children: n } = e, r = ks(t), i = typeof n == "function" ? n({ present: r.isPresent }) : h.Children.only(n), a = Y(r.ref, js(i));
|
|
4987
5001
|
return typeof n == "function" || r.isPresent ? h.cloneElement(i, { ref: a }) : null;
|
|
4988
5002
|
};
|
|
4989
5003
|
Os.displayName = "Presence";
|
|
@@ -5127,7 +5141,7 @@ function Ls(e, t) {
|
|
|
5127
5141
|
return h.useReducer((e, n) => t[e][n] ?? e, e);
|
|
5128
5142
|
}
|
|
5129
5143
|
var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e, t) => {
|
|
5130
|
-
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 =
|
|
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 = Fs(i);
|
|
5131
5145
|
return /* @__PURE__ */ w(Vs, {
|
|
5132
5146
|
scope: n,
|
|
5133
5147
|
type: r,
|
|
@@ -5148,7 +5162,7 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5148
5162
|
onScrollbarYEnabledChange: S,
|
|
5149
5163
|
onCornerWidthChange: y,
|
|
5150
5164
|
onCornerHeightChange: b,
|
|
5151
|
-
children: /* @__PURE__ */ w(
|
|
5165
|
+
children: /* @__PURE__ */ w(ws.div, {
|
|
5152
5166
|
dir: C,
|
|
5153
5167
|
...o,
|
|
5154
5168
|
ref: re,
|
|
@@ -5163,11 +5177,11 @@ var Rs = "ScrollArea", [zs, Bs] = Ms(Rs), [Vs, Q] = zs(Rs), Hs = h.forwardRef((e
|
|
|
5163
5177
|
});
|
|
5164
5178
|
Hs.displayName = Rs;
|
|
5165
5179
|
var Us = "ScrollAreaViewport", Ws = h.forwardRef((e, t) => {
|
|
5166
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(Us, n), s =
|
|
5180
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(Us, n), s = Y(t, h.useRef(null), o.onViewportChange);
|
|
5167
5181
|
return /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("style", {
|
|
5168
5182
|
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}" },
|
|
5169
5183
|
nonce: i
|
|
5170
|
-
}), /* @__PURE__ */ w(
|
|
5184
|
+
}), /* @__PURE__ */ w(ws.div, {
|
|
5171
5185
|
"data-radix-scroll-area-viewport": "",
|
|
5172
5186
|
...a,
|
|
5173
5187
|
ref: s,
|
|
@@ -5353,7 +5367,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5353
5367
|
}
|
|
5354
5368
|
}) : null;
|
|
5355
5369
|
}), Xs = h.forwardRef((e, t) => {
|
|
5356
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l =
|
|
5370
|
+
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);
|
|
5357
5371
|
return h.useEffect(() => {
|
|
5358
5372
|
c.current && s(getComputedStyle(c.current));
|
|
5359
5373
|
}, [c]), /* @__PURE__ */ w(ec, {
|
|
@@ -5389,7 +5403,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5389
5403
|
}
|
|
5390
5404
|
});
|
|
5391
5405
|
}), Zs = h.forwardRef((e, t) => {
|
|
5392
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = h.useState(), c = h.useRef(null), l =
|
|
5406
|
+
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);
|
|
5393
5407
|
return h.useEffect(() => {
|
|
5394
5408
|
c.current && s(getComputedStyle(c.current));
|
|
5395
5409
|
}, [c]), /* @__PURE__ */ w(ec, {
|
|
@@ -5426,7 +5440,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5426
5440
|
}
|
|
5427
5441
|
});
|
|
5428
5442
|
}), [Qs, $s] = zs($), ec = h.forwardRef((e, t) => {
|
|
5429
|
-
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), _ =
|
|
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 = hc(d, 10);
|
|
5430
5444
|
function S(e) {
|
|
5431
5445
|
v.current && l({
|
|
5432
5446
|
x: e.clientX - v.current.left,
|
|
@@ -5452,7 +5466,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5452
5466
|
onThumbPointerUp: X(o),
|
|
5453
5467
|
onThumbPositionChange: te,
|
|
5454
5468
|
onThumbPointerDown: X(s),
|
|
5455
|
-
children: /* @__PURE__ */ w(
|
|
5469
|
+
children: /* @__PURE__ */ w(ws.div, {
|
|
5456
5470
|
...f,
|
|
5457
5471
|
ref: _,
|
|
5458
5472
|
style: {
|
|
@@ -5479,7 +5493,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5479
5493
|
})
|
|
5480
5494
|
});
|
|
5481
5495
|
}), rc = h.forwardRef((e, t) => {
|
|
5482
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(tc, n), o = $s(tc, n), { onThumbPositionChange: s } = o, c =
|
|
5496
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(tc, n), o = $s(tc, n), { onThumbPositionChange: s } = o, c = Y(t, (e) => o.onThumbChange(e)), l = h.useRef(void 0), u = hc(() => {
|
|
5483
5497
|
l.current && (l.current(), l.current = void 0);
|
|
5484
5498
|
}, 100);
|
|
5485
5499
|
return h.useEffect(() => {
|
|
@@ -5494,7 +5508,7 @@ var Ks = h.forwardRef((e, t) => {
|
|
|
5494
5508
|
a.viewport,
|
|
5495
5509
|
u,
|
|
5496
5510
|
s
|
|
5497
|
-
]), /* @__PURE__ */ w(
|
|
5511
|
+
]), /* @__PURE__ */ w(ws.div, {
|
|
5498
5512
|
"data-state": o.hasThumb ? "visible" : "hidden",
|
|
5499
5513
|
...i,
|
|
5500
5514
|
ref: c,
|
|
@@ -5530,7 +5544,7 @@ var oc = h.forwardRef((e, t) => {
|
|
|
5530
5544
|
}), gc(i.scrollbarY, () => {
|
|
5531
5545
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
5532
5546
|
i.onCornerWidthChange(e), o(e);
|
|
5533
|
-
}), l ? /* @__PURE__ */ w(
|
|
5547
|
+
}), l ? /* @__PURE__ */ w(ws.div, {
|
|
5534
5548
|
...r,
|
|
5535
5549
|
ref: t,
|
|
5536
5550
|
style: {
|
|
@@ -5642,7 +5656,7 @@ function xc({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
5642
5656
|
//#endregion
|
|
5643
5657
|
//#region components/widget/tabs/messages-tab/message/media-lightbox.tsx
|
|
5644
5658
|
function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
5645
|
-
let a = d("lightbox"), [o, s] = C(t), c =
|
|
5659
|
+
let a = d("lightbox"), [o, s] = C(t), c = Ao(), l = c.embedded ?? !1, u = !l || (c.lightboxViewport ?? !0);
|
|
5646
5660
|
b(() => {
|
|
5647
5661
|
r && s(t);
|
|
5648
5662
|
}, [r, t]);
|
|
@@ -5669,7 +5683,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5669
5683
|
u
|
|
5670
5684
|
]);
|
|
5671
5685
|
let _ = l ? c.themeRoot ?? null : typeof document < "u" ? document.body : null;
|
|
5672
|
-
return _ ? oe(/* @__PURE__ */ w(
|
|
5686
|
+
return _ ? oe(/* @__PURE__ */ w(wo, { children: r && m && /* @__PURE__ */ T(n.div, {
|
|
5673
5687
|
initial: { opacity: 0 },
|
|
5674
5688
|
animate: { opacity: 1 },
|
|
5675
5689
|
exit: { opacity: 0 },
|
|
@@ -5687,7 +5701,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5687
5701
|
},
|
|
5688
5702
|
"aria-label": a("close"),
|
|
5689
5703
|
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"),
|
|
5690
|
-
children: /* @__PURE__ */ w(
|
|
5704
|
+
children: /* @__PURE__ */ w(cs, { size: 18 })
|
|
5691
5705
|
}),
|
|
5692
5706
|
p > 1 && /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w("button", {
|
|
5693
5707
|
type: "button",
|
|
@@ -5696,7 +5710,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5696
5710
|
},
|
|
5697
5711
|
"aria-label": a("previous"),
|
|
5698
5712
|
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"),
|
|
5699
|
-
children: /* @__PURE__ */ w(
|
|
5713
|
+
children: /* @__PURE__ */ w(os, { size: 20 })
|
|
5700
5714
|
}), /* @__PURE__ */ w("button", {
|
|
5701
5715
|
type: "button",
|
|
5702
5716
|
onClick: (e) => {
|
|
@@ -5704,7 +5718,7 @@ function Sc({ items: e, initialIndex: t, open: r, onClose: i }) {
|
|
|
5704
5718
|
},
|
|
5705
5719
|
"aria-label": a("next"),
|
|
5706
5720
|
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"),
|
|
5707
|
-
children: /* @__PURE__ */ w(
|
|
5721
|
+
children: /* @__PURE__ */ w(ss, { size: 20 })
|
|
5708
5722
|
})] }),
|
|
5709
5723
|
/* @__PURE__ */ w(n.div, {
|
|
5710
5724
|
initial: {
|
|
@@ -5907,6 +5921,6 @@ function wc(e) {
|
|
|
5907
5921
|
return r ? r.label : n.toUpperCase();
|
|
5908
5922
|
}
|
|
5909
5923
|
//#endregion
|
|
5910
|
-
export {
|
|
5924
|
+
export { H as $, Lt as $t, mo as A, tr as At, ba as B, ln as Bt, Jo as C, sr as Ct, Ao as D, Un as Dt, ko as E, lr as Et, Ja as F, Tn as Ft, fa as G, Qt as Gt, G as H, un as Ht, Za as I, wn as It, ua as J, Wt as Jt, ca as K, $t as Kt, J as L, Sn as Lt, oo as M, On as Mt, no as N, En as Nt, Eo as O, Hn as Ot, co as P, Dn as Pt, V as Q, It as Qt, Ha as R, yn as Rt, Yo as S, ir as St, No as T, cr as Tt, _a as U, on as Ut, Sa as V, sn as Vt, pa as W, tn as Wt, Ji as X, Bt as Xt, W as Y, Vt as Yt, qi as Z, zt as Zt, Y as _, gr as _t, Is as a, Ce as an, Fi as at, as as b, mr as bt, Ms as c, ye as cn, ri as ct, Ts as d, ce as dn, Qr as dt, tt as en, Gi as et, ds as f, de as fn, wr as ft, us as g, pr as gt, ms as h, hr as ht, Z as i, Te as in, Ii as it, to as j, Rn as jt, wo as k, or as kt, Es as l, E as ln, ii as lt, hs as m, D as mn, _r as mt, Sc as n, Ae as nn, Ri as nt, Fs as o, Se as on, ji as ot, gs as p, le as pn, ur as pt, la as q, Yt as qt, bc as r, A as rn, Li as rt, X as s, k as sn, Oi as st, wc as t, N as tn, zi as tt, ws as u, ue as un, ni as ut, cs as v, dr as vt, Wo as w, Wn as wt, is as x, ar as xt, ss as y, fr as yt, Na as z, cn as zt };
|
|
5911
5925
|
|
|
5912
|
-
//# sourceMappingURL=widget-react-
|
|
5926
|
+
//# sourceMappingURL=widget-react-Xe5iO4UM.js.map
|