zudoku 0.66.5 → 0.66.6
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/app/main.d.ts +6 -6
- package/dist/config/validators/InputNavigationSchema.d.ts +2 -0
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +6 -1
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/flat-config.d.ts +1 -0
- package/dist/lib/authentication/providers/auth0.js +11 -7
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +0 -22
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +6 -15
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.js +20 -5
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +5 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +11 -3
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +1 -0
- package/dist/vite/api/SchemaManager.js +9 -3
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/prerender/utils.js +9 -3
- package/dist/vite/prerender/utils.js.map +1 -1
- package/lib/{ClaudeLogo-ByzA8TYR.js → ClaudeLogo-BpqHBMS8.js} +3 -3
- package/lib/{ClaudeLogo-ByzA8TYR.js.map → ClaudeLogo-BpqHBMS8.js.map} +1 -1
- package/lib/{Input-nskrp_mj.js → Input-B6YcAPv-.js} +3 -3
- package/lib/{Input-nskrp_mj.js.map → Input-B6YcAPv-.js.map} +1 -1
- package/lib/{MdxPage-Bh5YNRV9.js → MdxPage-CeFSxGb_.js} +8 -8
- package/lib/{MdxPage-Bh5YNRV9.js.map → MdxPage-CeFSxGb_.js.map} +1 -1
- package/lib/{Mermaid-CGRoylZf.js → Mermaid-COVtAqcZ.js} +3 -3
- package/lib/{Mermaid-CGRoylZf.js.map → Mermaid-COVtAqcZ.js.map} +1 -1
- package/lib/{OAuthErrorPage-CsTKz5hX.js → OAuthErrorPage-XTPBOMN8.js} +6 -6
- package/lib/{OAuthErrorPage-CsTKz5hX.js.map → OAuthErrorPage-XTPBOMN8.js.map} +1 -1
- package/lib/{OasProvider-BBAbJiYa.js → OasProvider-BS4rdzZC.js} +4 -4
- package/lib/{OasProvider-BBAbJiYa.js.map → OasProvider-BS4rdzZC.js.map} +1 -1
- package/lib/{OperationList-DUxrNisd.js → OperationList-Dg0Nm1tg.js} +128 -125
- package/lib/{OperationList-DUxrNisd.js.map → OperationList-Dg0Nm1tg.js.map} +1 -1
- package/lib/{RouteGuard-CIN9Ou-r.js → RouteGuard-kCicqF3x.js} +4 -4
- package/lib/{RouteGuard-CIN9Ou-r.js.map → RouteGuard-kCicqF3x.js.map} +1 -1
- package/lib/{SchemaList-BbnkfjIe.js → SchemaList-DZKBH2WC.js} +7 -7
- package/lib/{SchemaList-BbnkfjIe.js.map → SchemaList-DZKBH2WC.js.map} +1 -1
- package/lib/{SchemaView-BrUf6_nP.js → SchemaView-DBaqV2yU.js} +94 -91
- package/lib/SchemaView-DBaqV2yU.js.map +1 -0
- package/lib/{SignUp-AlaaduyY.js → SignUp-DNmOFbLD.js} +4 -4
- package/lib/{SignUp-AlaaduyY.js.map → SignUp-DNmOFbLD.js.map} +1 -1
- package/lib/{SyntaxHighlight-DveJcTOQ.js → SyntaxHighlight-C75W8uCn.js} +372 -363
- package/lib/SyntaxHighlight-C75W8uCn.js.map +1 -0
- package/lib/{Toc-B4ShtN-I.js → Toc-ICilS65g.js} +2 -2
- package/lib/{Toc-B4ShtN-I.js.map → Toc-ICilS65g.js.map} +1 -1
- package/lib/{ZudokuContext-CDJYKqMY.js → ZudokuContext-Ea7gxmGq.js} +2 -2
- package/lib/{ZudokuContext-CDJYKqMY.js.map → ZudokuContext-Ea7gxmGq.js.map} +1 -1
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
- package/lib/{circular-CuSWVYOZ.js → circular-DleWPaPP.js} +767 -747
- package/lib/{circular-CuSWVYOZ.js.map → circular-DleWPaPP.js.map} +1 -1
- package/lib/{createServer-B1_RUTJP.js → createServer-nqMW9kro.js} +4 -4
- package/lib/{createServer-B1_RUTJP.js.map → createServer-nqMW9kro.js.map} +1 -1
- package/lib/{errors-iDfQAr_v.js → errors-D2FbERKl.js} +2 -2
- package/lib/{errors-iDfQAr_v.js.map → errors-D2FbERKl.js.map} +1 -1
- package/lib/{firebase-I54w2ZsH.js → firebase-Cn9CmB6h.js} +14 -14
- package/lib/{firebase-I54w2ZsH.js.map → firebase-Cn9CmB6h.js.map} +1 -1
- package/lib/{hook-BxWvqzB0.js → hook-B2nmfmYN.js} +3 -3
- package/lib/{hook-BxWvqzB0.js.map → hook-B2nmfmYN.js.map} +1 -1
- package/lib/{index-CjTisMeX.js → index-CC4L3gtM.js} +4 -4
- package/lib/{index-CjTisMeX.js.map → index-CC4L3gtM.js.map} +1 -1
- package/lib/{index-B4puReRo.js → index-CSDW7CHl.js} +12 -12
- package/lib/{index-B4puReRo.js.map → index-CSDW7CHl.js.map} +1 -1
- package/lib/{index-A5Cre871.js → index-D5NeW2z6.js} +7 -7
- package/lib/{index-A5Cre871.js.map → index-D5NeW2z6.js.map} +1 -1
- package/lib/{index-Dbrv6d94.js → index-DSKBOdpT.js} +2 -2
- package/lib/{index-Dbrv6d94.js.map → index-DSKBOdpT.js.map} +1 -1
- package/lib/{index.esm-BxIXRKtj.js → index.esm-B35e7P83.js} +2 -2
- package/lib/index.esm-B35e7P83.js.map +1 -0
- package/lib/{mutation-Cq0wKBqW.js → mutation-BOYnEDf6.js} +2 -2
- package/lib/{mutation-Cq0wKBqW.js.map → mutation-BOYnEDf6.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/zudoku.__internal.js +42 -42
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +16 -16
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +52 -75
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +4 -4
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.auth-supabase.js +31 -40
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +5 -5
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +4 -4
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +3 -3
- package/lib/zudoku.router.js +1130 -1404
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +10 -10
- package/src/lib/authentication/providers/auth0.tsx +15 -9
- package/src/lib/authentication/providers/clerk.tsx +0 -26
- package/src/lib/authentication/providers/supabase.tsx +6 -15
- package/src/lib/oas/graphql/circular.ts +36 -3
- package/src/lib/plugins/openapi/OperationList.tsx +6 -1
- package/src/lib/plugins/openapi/schema/utils.ts +15 -4
- package/lib/SchemaView-BrUf6_nP.js.map +0 -1
- package/lib/SyntaxHighlight-DveJcTOQ.js.map +0 -1
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js +0 -7965
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js.map +0 -1
- package/lib/index.esm-BxIXRKtj.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Q as
|
|
1
|
+
import { Q as Yo, i as yi, j as Ee, k as Ce, p as Jo, l as Je, m as zo, n as Xo, o as en, q as Ho } from "./index-CSDW7CHl.js";
|
|
2
2
|
var ye;
|
|
3
3
|
(function(e) {
|
|
4
4
|
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.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";
|
|
5
5
|
})(ye || (ye = {}));
|
|
6
|
-
const
|
|
7
|
-
function
|
|
6
|
+
const Wo = 5;
|
|
7
|
+
function Zo(e, n) {
|
|
8
8
|
const [a, i] = n ? [e, n] : [void 0, e];
|
|
9
9
|
let t = " Did you mean ";
|
|
10
10
|
a && (t += a + " ");
|
|
@@ -17,13 +17,13 @@ function Wo(e, n) {
|
|
|
17
17
|
case 2:
|
|
18
18
|
return t + r[0] + " or " + r[1] + "?";
|
|
19
19
|
}
|
|
20
|
-
const o = r.slice(0,
|
|
20
|
+
const o = r.slice(0, Wo), s = o.pop();
|
|
21
21
|
return t + o.join(", ") + ", or " + s + "?";
|
|
22
22
|
}
|
|
23
23
|
function hi(e) {
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function eu(e, n) {
|
|
27
27
|
const a = /* @__PURE__ */ Object.create(null);
|
|
28
28
|
for (const i of e)
|
|
29
29
|
a[n(i)] = i;
|
|
@@ -41,7 +41,7 @@ function _r(e, n) {
|
|
|
41
41
|
a[i] = n(e[i], i);
|
|
42
42
|
return a;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function nu(e, n) {
|
|
45
45
|
let a = 0, i = 0;
|
|
46
46
|
for (; a < e.length && i < n.length; ) {
|
|
47
47
|
let t = e.charCodeAt(a), r = n.charCodeAt(i);
|
|
@@ -68,22 +68,22 @@ function eu(e, n) {
|
|
|
68
68
|
}
|
|
69
69
|
return e.length - n.length;
|
|
70
70
|
}
|
|
71
|
-
const zr = 48,
|
|
71
|
+
const zr = 48, tu = 57;
|
|
72
72
|
function Hn(e) {
|
|
73
|
-
return !isNaN(e) && zr <= e && e <=
|
|
73
|
+
return !isNaN(e) && zr <= e && e <= tu;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
const a = /* @__PURE__ */ Object.create(null), i = new
|
|
75
|
+
function ru(e, n) {
|
|
76
|
+
const a = /* @__PURE__ */ Object.create(null), i = new iu(e), t = Math.floor(e.length * 0.4) + 1;
|
|
77
77
|
for (const r of n) {
|
|
78
78
|
const o = i.measure(r, t);
|
|
79
79
|
o !== void 0 && (a[r] = o);
|
|
80
80
|
}
|
|
81
81
|
return Object.keys(a).sort((r, o) => {
|
|
82
82
|
const s = a[r] - a[o];
|
|
83
|
-
return s !== 0 ? s :
|
|
83
|
+
return s !== 0 ? s : nu(r, o);
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
class
|
|
86
|
+
class iu {
|
|
87
87
|
constructor(n) {
|
|
88
88
|
this._input = n, this._inputLowerCase = n.toLowerCase(), this._inputArray = vi(this._inputLowerCase), this._rows = [
|
|
89
89
|
new Array(n.length + 1).fill(0),
|
|
@@ -150,14 +150,14 @@ function $e(e) {
|
|
|
150
150
|
n[a] = i;
|
|
151
151
|
return n;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return `"${e.replace(
|
|
153
|
+
function au(e) {
|
|
154
|
+
return `"${e.replace(su, ou)}"`;
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
function
|
|
158
|
-
return
|
|
156
|
+
const su = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
157
|
+
function ou(e) {
|
|
158
|
+
return uu[e.charCodeAt(0)];
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const uu = [
|
|
161
161
|
"\\u0000",
|
|
162
162
|
"\\u0001",
|
|
163
163
|
"\\u0002",
|
|
@@ -324,10 +324,10 @@ const ou = [
|
|
|
324
324
|
"\\u009E",
|
|
325
325
|
"\\u009F"
|
|
326
326
|
], qn = Object.freeze({});
|
|
327
|
-
function
|
|
327
|
+
function cu(e, n, a = Yo) {
|
|
328
328
|
const i = /* @__PURE__ */ new Map();
|
|
329
329
|
for (const y of Object.values(ye))
|
|
330
|
-
i.set(y,
|
|
330
|
+
i.set(y, Us(n, y));
|
|
331
331
|
let t, r = Array.isArray(e), o = [e], s = -1, l = [], d = e, m, u;
|
|
332
332
|
const c = [], f = [];
|
|
333
333
|
do {
|
|
@@ -388,13 +388,13 @@ function uu(e, n, a = xo) {
|
|
|
388
388
|
} while (t !== void 0);
|
|
389
389
|
return l.length !== 0 ? l[l.length - 1][1] : e;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function pc(e) {
|
|
392
392
|
const n = new Array(e.length).fill(null), a = /* @__PURE__ */ Object.create(null);
|
|
393
393
|
for (const i of Object.values(ye)) {
|
|
394
394
|
let t = !1;
|
|
395
395
|
const r = new Array(e.length).fill(void 0), o = new Array(e.length).fill(void 0);
|
|
396
396
|
for (let l = 0; l < e.length; ++l) {
|
|
397
|
-
const { enter: d, leave: m } =
|
|
397
|
+
const { enter: d, leave: m } = Us(e[l], i);
|
|
398
398
|
t || (t = d != null || m != null), r[l] = d, o[l] = m;
|
|
399
399
|
}
|
|
400
400
|
if (!t)
|
|
@@ -431,7 +431,7 @@ function lc(e) {
|
|
|
431
431
|
}
|
|
432
432
|
return a;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Us(e, n) {
|
|
435
435
|
const a = e[n];
|
|
436
436
|
return typeof a == "object" ? a : typeof a == "function" ? {
|
|
437
437
|
enter: a,
|
|
@@ -442,9 +442,9 @@ function $s(e, n) {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function Or(e) {
|
|
445
|
-
return
|
|
445
|
+
return cu(e, pu);
|
|
446
446
|
}
|
|
447
|
-
const
|
|
447
|
+
const lu = 80, pu = {
|
|
448
448
|
Name: {
|
|
449
449
|
leave: (e) => e.value
|
|
450
450
|
},
|
|
@@ -485,8 +485,8 @@ const cu = 80, lu = {
|
|
|
485
485
|
leave({ alias: e, name: n, arguments: a, directives: i, selectionSet: t }) {
|
|
486
486
|
const r = re("", e, ": ") + n;
|
|
487
487
|
let o = r + re("(", J(a, ", "), ")");
|
|
488
|
-
return o.length >
|
|
489
|
-
`,
|
|
488
|
+
return o.length > lu && (o = r + re(`(
|
|
489
|
+
`, Nr(J(a, `
|
|
490
490
|
`)), `
|
|
491
491
|
)`)), J([o, J(i, " "), t], " ");
|
|
492
492
|
}
|
|
@@ -530,7 +530,7 @@ const cu = 80, lu = {
|
|
|
530
530
|
leave: ({ value: e }) => e
|
|
531
531
|
},
|
|
532
532
|
StringValue: {
|
|
533
|
-
leave: ({ value: e, block: n }) => n ?
|
|
533
|
+
leave: ({ value: e, block: n }) => n ? Jo(e) : au(e)
|
|
534
534
|
},
|
|
535
535
|
BooleanValue: {
|
|
536
536
|
leave: ({ value: e }) => e ? "true" : "false"
|
|
@@ -592,7 +592,7 @@ const cu = 80, lu = {
|
|
|
592
592
|
FieldDefinition: {
|
|
593
593
|
leave: ({ description: e, name: n, arguments: a, type: i, directives: t }) => re("", e, `
|
|
594
594
|
`) + n + (Ur(a) ? re(`(
|
|
595
|
-
`,
|
|
595
|
+
`, Nr(J(a, `
|
|
596
596
|
`)), `
|
|
597
597
|
)`) : re("(", J(a, ", "), ")")) + ": " + i + re(" ", J(t, " "))
|
|
598
598
|
},
|
|
@@ -638,7 +638,7 @@ const cu = 80, lu = {
|
|
|
638
638
|
DirectiveDefinition: {
|
|
639
639
|
leave: ({ description: e, name: n, arguments: a, repeatable: i, locations: t }) => re("", e, `
|
|
640
640
|
`) + "directive @" + n + (Ur(a) ? re(`(
|
|
641
|
-
`,
|
|
641
|
+
`, Nr(J(a, `
|
|
642
642
|
`)), `
|
|
643
643
|
)`) : re("(", J(a, ", "), ")")) + (i ? " repeatable" : "") + " on " + J(t, " | ")
|
|
644
644
|
},
|
|
@@ -715,14 +715,14 @@ function J(e, n = "") {
|
|
|
715
715
|
}
|
|
716
716
|
function we(e) {
|
|
717
717
|
return re(`{
|
|
718
|
-
`,
|
|
718
|
+
`, Nr(J(e, `
|
|
719
719
|
`)), `
|
|
720
720
|
}`);
|
|
721
721
|
}
|
|
722
722
|
function re(e, n, a = "") {
|
|
723
723
|
return n != null && n !== "" ? e + n + a : "";
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Nr(e) {
|
|
726
726
|
return re(" ", e.replace(/\n/g, `
|
|
727
727
|
`));
|
|
728
728
|
}
|
|
@@ -761,66 +761,66 @@ function Ue(e) {
|
|
|
761
761
|
if (e != null || Ee(!1, "Must provide name."), typeof e == "string" || Ee(!1, "Expected name to be a string."), e.length === 0)
|
|
762
762
|
throw new Je("Expected name to be a non-empty string.");
|
|
763
763
|
for (let n = 1; n < e.length; ++n)
|
|
764
|
-
if (!
|
|
764
|
+
if (!zo(e.charCodeAt(n)))
|
|
765
765
|
throw new Je(
|
|
766
766
|
`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`
|
|
767
767
|
);
|
|
768
|
-
if (!
|
|
768
|
+
if (!Xo(e.charCodeAt(0)))
|
|
769
769
|
throw new Je(
|
|
770
770
|
`Names must start with [_a-zA-Z] but "${e}" does not.`
|
|
771
771
|
);
|
|
772
772
|
return e;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function du(e) {
|
|
775
775
|
if (e === "true" || e === "false" || e === "null")
|
|
776
776
|
throw new Je(`Enum values cannot be named: ${e}`);
|
|
777
777
|
return Ue(e);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return Kn(e) || Ir(e) || Bn(e) || xn(e) || Yn(e) || Zr(e) ||
|
|
779
|
+
function Qs(e) {
|
|
780
|
+
return Kn(e) || Ir(e) || Bn(e) || xn(e) || Yn(e) || Zr(e) || qs(e) || Nn(e);
|
|
781
781
|
}
|
|
782
782
|
function Kn(e) {
|
|
783
783
|
return en(e, ni);
|
|
784
784
|
}
|
|
785
785
|
function Ir(e) {
|
|
786
|
-
return en(e,
|
|
786
|
+
return en(e, Tu);
|
|
787
787
|
}
|
|
788
788
|
function Bn(e) {
|
|
789
|
-
return en(e,
|
|
789
|
+
return en(e, gu);
|
|
790
790
|
}
|
|
791
791
|
function xn(e) {
|
|
792
792
|
return en(e, Nu);
|
|
793
793
|
}
|
|
794
794
|
function Yn(e) {
|
|
795
|
-
return en(e, Ou);
|
|
796
|
-
}
|
|
797
|
-
function Zr(e) {
|
|
798
795
|
return en(e, _u);
|
|
799
796
|
}
|
|
800
|
-
function
|
|
801
|
-
return en(e,
|
|
797
|
+
function Zr(e) {
|
|
798
|
+
return en(e, Iu);
|
|
802
799
|
}
|
|
803
|
-
function
|
|
800
|
+
function qs(e) {
|
|
804
801
|
return en(e, yu);
|
|
805
802
|
}
|
|
806
|
-
function
|
|
807
|
-
return
|
|
803
|
+
function Nn(e) {
|
|
804
|
+
return en(e, hu);
|
|
808
805
|
}
|
|
809
806
|
function fu(e) {
|
|
810
|
-
return Kn(e) ||
|
|
807
|
+
return Kn(e) || Yn(e) || Zr(e) || ei(e) && fu(e.ofType);
|
|
811
808
|
}
|
|
812
|
-
function
|
|
813
|
-
return Kn(e) || Yn(e);
|
|
809
|
+
function mu(e) {
|
|
810
|
+
return Kn(e) || Ir(e) || Bn(e) || xn(e) || Yn(e) || ei(e) && mu(e.ofType);
|
|
814
811
|
}
|
|
815
812
|
function dc(e) {
|
|
816
|
-
return
|
|
813
|
+
return Kn(e) || Yn(e);
|
|
817
814
|
}
|
|
818
815
|
function fc(e) {
|
|
816
|
+
return Ir(e) || Bn(e) || xn(e);
|
|
817
|
+
}
|
|
818
|
+
function mc(e) {
|
|
819
819
|
return Bn(e) || xn(e);
|
|
820
820
|
}
|
|
821
|
-
class
|
|
821
|
+
class yu {
|
|
822
822
|
constructor(n) {
|
|
823
|
-
|
|
823
|
+
Qs(n) || Ee(!1, `Expected ${Ce(n)} to be a GraphQL type.`), this.ofType = n;
|
|
824
824
|
}
|
|
825
825
|
get [Symbol.toStringTag]() {
|
|
826
826
|
return "GraphQLList";
|
|
@@ -832,9 +832,9 @@ class mu {
|
|
|
832
832
|
return this.toString();
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
class
|
|
835
|
+
class hu {
|
|
836
836
|
constructor(n) {
|
|
837
|
-
|
|
837
|
+
vu(n) || Ee(
|
|
838
838
|
!1,
|
|
839
839
|
`Expected ${Ce(n)} to be a GraphQL nullable type.`
|
|
840
840
|
), this.ofType = n;
|
|
@@ -850,19 +850,19 @@ class yu {
|
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
function ei(e) {
|
|
853
|
-
return
|
|
853
|
+
return qs(e) || Nn(e);
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
return
|
|
855
|
+
function vu(e) {
|
|
856
|
+
return Qs(e) && !Nn(e);
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function yc(e) {
|
|
859
859
|
if (e)
|
|
860
|
-
return
|
|
860
|
+
return Nn(e) ? e.ofType : e;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function hc(e) {
|
|
863
863
|
return Kn(e) || Ir(e) || Bn(e) || xn(e) || Yn(e) || Zr(e);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function vc(e) {
|
|
866
866
|
if (e) {
|
|
867
867
|
let n = e;
|
|
868
868
|
for (; ei(n); )
|
|
@@ -870,10 +870,10 @@ function hc(e) {
|
|
|
870
870
|
return n;
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Ks(e) {
|
|
874
874
|
return typeof e == "function" ? e() : e;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Bs(e) {
|
|
877
877
|
return typeof e == "function" ? e() : e;
|
|
878
878
|
}
|
|
879
879
|
class ni {
|
|
@@ -914,10 +914,10 @@ class ni {
|
|
|
914
914
|
return this.toString();
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
class
|
|
917
|
+
class Tu {
|
|
918
918
|
constructor(n) {
|
|
919
919
|
var a;
|
|
920
|
-
this.name = Ue(n.name), this.description = n.description, this.isTypeOf = n.isTypeOf, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._fields = () =>
|
|
920
|
+
this.name = Ue(n.name), this.description = n.description, this.isTypeOf = n.isTypeOf, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._fields = () => Ys(n), this._interfaces = () => xs(n), n.isTypeOf == null || typeof n.isTypeOf == "function" || Ee(
|
|
921
921
|
!1,
|
|
922
922
|
`${this.name} must provide "isTypeOf" as a function, but got: ${Ce(n.isTypeOf)}.`
|
|
923
923
|
);
|
|
@@ -936,7 +936,7 @@ class vu {
|
|
|
936
936
|
name: this.name,
|
|
937
937
|
description: this.description,
|
|
938
938
|
interfaces: this.getInterfaces(),
|
|
939
|
-
fields:
|
|
939
|
+
fields: Js(this.getFields()),
|
|
940
940
|
isTypeOf: this.isTypeOf,
|
|
941
941
|
extensions: this.extensions,
|
|
942
942
|
astNode: this.astNode,
|
|
@@ -950,9 +950,9 @@ class vu {
|
|
|
950
950
|
return this.toString();
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function xs(e) {
|
|
954
954
|
var n;
|
|
955
|
-
const a =
|
|
955
|
+
const a = Ks(
|
|
956
956
|
(n = e.interfaces) !== null && n !== void 0 ? n : []
|
|
957
957
|
);
|
|
958
958
|
return Array.isArray(a) || Ee(
|
|
@@ -960,14 +960,14 @@ function Bs(e) {
|
|
|
960
960
|
`${e.name} interfaces must be an Array or a function which returns an Array.`
|
|
961
961
|
), a;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
const n =
|
|
965
|
-
return
|
|
963
|
+
function Ys(e) {
|
|
964
|
+
const n = Bs(e.fields);
|
|
965
|
+
return gn(n) || Ee(
|
|
966
966
|
!1,
|
|
967
967
|
`${e.name} fields must be an object with field names as keys or a function which returns such an object.`
|
|
968
968
|
), _r(n, (a, i) => {
|
|
969
969
|
var t;
|
|
970
|
-
|
|
970
|
+
gn(a) || Ee(
|
|
971
971
|
!1,
|
|
972
972
|
`${e.name}.${i} field config must be an object.`
|
|
973
973
|
), a.resolve == null || typeof a.resolve == "function" || Ee(
|
|
@@ -975,14 +975,14 @@ function xs(e) {
|
|
|
975
975
|
`${e.name}.${i} field resolver must be a function if provided, but got: ${Ce(a.resolve)}.`
|
|
976
976
|
);
|
|
977
977
|
const r = (t = a.args) !== null && t !== void 0 ? t : {};
|
|
978
|
-
return
|
|
978
|
+
return gn(r) || Ee(
|
|
979
979
|
!1,
|
|
980
980
|
`${e.name}.${i} args must be an object with argument names as keys.`
|
|
981
981
|
), {
|
|
982
982
|
name: Ue(i),
|
|
983
983
|
description: a.description,
|
|
984
984
|
type: a.type,
|
|
985
|
-
args:
|
|
985
|
+
args: bu(r),
|
|
986
986
|
resolve: a.resolve,
|
|
987
987
|
subscribe: a.subscribe,
|
|
988
988
|
deprecationReason: a.deprecationReason,
|
|
@@ -991,7 +991,7 @@ function xs(e) {
|
|
|
991
991
|
};
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function bu(e) {
|
|
995
995
|
return Object.entries(e).map(([n, a]) => ({
|
|
996
996
|
name: Ue(n),
|
|
997
997
|
description: a.description,
|
|
@@ -1002,14 +1002,14 @@ function Tu(e) {
|
|
|
1002
1002
|
astNode: a.astNode
|
|
1003
1003
|
}));
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
return
|
|
1005
|
+
function gn(e) {
|
|
1006
|
+
return Ho(e) && !Array.isArray(e);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Js(e) {
|
|
1009
1009
|
return _r(e, (n) => ({
|
|
1010
1010
|
description: n.description,
|
|
1011
1011
|
type: n.type,
|
|
1012
|
-
args:
|
|
1012
|
+
args: Eu(n.args),
|
|
1013
1013
|
resolve: n.resolve,
|
|
1014
1014
|
subscribe: n.subscribe,
|
|
1015
1015
|
deprecationReason: n.deprecationReason,
|
|
@@ -1017,7 +1017,7 @@ function Ys(e) {
|
|
|
1017
1017
|
astNode: n.astNode
|
|
1018
1018
|
}));
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Eu(e) {
|
|
1021
1021
|
return Wr(
|
|
1022
1022
|
e,
|
|
1023
1023
|
(n) => n.name,
|
|
@@ -1031,13 +1031,13 @@ function bu(e) {
|
|
|
1031
1031
|
})
|
|
1032
1032
|
);
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return
|
|
1034
|
+
function Tc(e) {
|
|
1035
|
+
return Nn(e.type) && e.defaultValue === void 0;
|
|
1036
1036
|
}
|
|
1037
|
-
class
|
|
1037
|
+
class gu {
|
|
1038
1038
|
constructor(n) {
|
|
1039
1039
|
var a;
|
|
1040
|
-
this.name = Ue(n.name), this.description = n.description, this.resolveType = n.resolveType, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._fields =
|
|
1040
|
+
this.name = Ue(n.name), this.description = n.description, this.resolveType = n.resolveType, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._fields = Ys.bind(void 0, n), this._interfaces = xs.bind(void 0, n), n.resolveType == null || typeof n.resolveType == "function" || Ee(
|
|
1041
1041
|
!1,
|
|
1042
1042
|
`${this.name} must provide "resolveType" as a function, but got: ${Ce(n.resolveType)}.`
|
|
1043
1043
|
);
|
|
@@ -1056,7 +1056,7 @@ class Eu {
|
|
|
1056
1056
|
name: this.name,
|
|
1057
1057
|
description: this.description,
|
|
1058
1058
|
interfaces: this.getInterfaces(),
|
|
1059
|
-
fields:
|
|
1059
|
+
fields: Js(this.getFields()),
|
|
1060
1060
|
resolveType: this.resolveType,
|
|
1061
1061
|
extensions: this.extensions,
|
|
1062
1062
|
astNode: this.astNode,
|
|
@@ -1073,7 +1073,7 @@ class Eu {
|
|
|
1073
1073
|
class Nu {
|
|
1074
1074
|
constructor(n) {
|
|
1075
1075
|
var a;
|
|
1076
|
-
this.name = Ue(n.name), this.description = n.description, this.resolveType = n.resolveType, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._types =
|
|
1076
|
+
this.name = Ue(n.name), this.description = n.description, this.resolveType = n.resolveType, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this._types = Ou.bind(void 0, n), n.resolveType == null || typeof n.resolveType == "function" || Ee(
|
|
1077
1077
|
!1,
|
|
1078
1078
|
`${this.name} must provide "resolveType" as a function, but got: ${Ce(n.resolveType)}.`
|
|
1079
1079
|
);
|
|
@@ -1102,14 +1102,14 @@ class Nu {
|
|
|
1102
1102
|
return this.toString();
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
const n =
|
|
1105
|
+
function Ou(e) {
|
|
1106
|
+
const n = Ks(e.types);
|
|
1107
1107
|
return Array.isArray(n) || Ee(
|
|
1108
1108
|
!1,
|
|
1109
1109
|
`Must provide Array of types or a function which returns such an array for Union ${e.name}.`
|
|
1110
1110
|
), n;
|
|
1111
1111
|
}
|
|
1112
|
-
class
|
|
1112
|
+
class _u {
|
|
1113
1113
|
/* <T> */
|
|
1114
1114
|
constructor(n) {
|
|
1115
1115
|
var a;
|
|
@@ -1122,7 +1122,7 @@ class Ou {
|
|
|
1122
1122
|
return typeof this._values == "function" && (this._values = Ti(this.name, this._values())), this._values;
|
|
1123
1123
|
}
|
|
1124
1124
|
getValue(n) {
|
|
1125
|
-
return this._nameLookup === null && (this._nameLookup =
|
|
1125
|
+
return this._nameLookup === null && (this._nameLookup = eu(this.getValues(), (a) => a.name)), this._nameLookup[n];
|
|
1126
1126
|
}
|
|
1127
1127
|
serialize(n) {
|
|
1128
1128
|
this._valueLookup === null && (this._valueLookup = new Map(
|
|
@@ -1200,18 +1200,18 @@ class Ou {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
function Wn(e, n) {
|
|
1203
|
-
const a = e.getValues().map((t) => t.name), i =
|
|
1204
|
-
return
|
|
1203
|
+
const a = e.getValues().map((t) => t.name), i = ru(n, a);
|
|
1204
|
+
return Zo("the enum value", i);
|
|
1205
1205
|
}
|
|
1206
1206
|
function Ti(e, n) {
|
|
1207
|
-
return
|
|
1207
|
+
return gn(n) || Ee(
|
|
1208
1208
|
!1,
|
|
1209
1209
|
`${e} values must be an object with value names as keys.`
|
|
1210
|
-
), Object.entries(n).map(([a, i]) => (
|
|
1210
|
+
), Object.entries(n).map(([a, i]) => (gn(i) || Ee(
|
|
1211
1211
|
!1,
|
|
1212
1212
|
`${e}.${a} must refer to an object with a "value" key representing an internal value but got: ${Ce(i)}.`
|
|
1213
1213
|
), {
|
|
1214
|
-
name:
|
|
1214
|
+
name: du(a),
|
|
1215
1215
|
description: i.description,
|
|
1216
1216
|
value: i.value !== void 0 ? i.value : a,
|
|
1217
1217
|
deprecationReason: i.deprecationReason,
|
|
@@ -1219,10 +1219,10 @@ function Ti(e, n) {
|
|
|
1219
1219
|
astNode: i.astNode
|
|
1220
1220
|
}));
|
|
1221
1221
|
}
|
|
1222
|
-
class
|
|
1222
|
+
class Iu {
|
|
1223
1223
|
constructor(n) {
|
|
1224
1224
|
var a, i;
|
|
1225
|
-
this.name = Ue(n.name), this.description = n.description, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this.isOneOf = (i = n.isOneOf) !== null && i !== void 0 ? i : !1, this._fields =
|
|
1225
|
+
this.name = Ue(n.name), this.description = n.description, this.extensions = $e(n.extensions), this.astNode = n.astNode, this.extensionASTNodes = (a = n.extensionASTNodes) !== null && a !== void 0 ? a : [], this.isOneOf = (i = n.isOneOf) !== null && i !== void 0 ? i : !1, this._fields = Su.bind(void 0, n);
|
|
1226
1226
|
}
|
|
1227
1227
|
get [Symbol.toStringTag]() {
|
|
1228
1228
|
return "GraphQLInputObjectType";
|
|
@@ -1256,9 +1256,9 @@ class _u {
|
|
|
1256
1256
|
return this.toString();
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
const n =
|
|
1261
|
-
return
|
|
1259
|
+
function Su(e) {
|
|
1260
|
+
const n = Bs(e.fields);
|
|
1261
|
+
return gn(n) || Ee(
|
|
1262
1262
|
!1,
|
|
1263
1263
|
`${e.name} fields must be an object with field names as keys or a function which returns such an object.`
|
|
1264
1264
|
), _r(n, (a, i) => (!("resolve" in a) || Ee(
|
|
@@ -1274,8 +1274,8 @@ function Iu(e) {
|
|
|
1274
1274
|
astNode: a.astNode
|
|
1275
1275
|
}));
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return
|
|
1277
|
+
function bc(e) {
|
|
1278
|
+
return Nn(e.type) && e.defaultValue === void 0;
|
|
1279
1279
|
}
|
|
1280
1280
|
function bi(e) {
|
|
1281
1281
|
return e;
|
|
@@ -1285,7 +1285,7 @@ function Ei(e) {
|
|
|
1285
1285
|
throw new TypeError("JSONObject cannot represent non-object value: " + e);
|
|
1286
1286
|
return e;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function zs(e, n, a) {
|
|
1289
1289
|
var i = /* @__PURE__ */ Object.create(null);
|
|
1290
1290
|
return n.fields.forEach(function(t) {
|
|
1291
1291
|
i[t.name.value] = ti(e, t.value, a);
|
|
@@ -1300,7 +1300,7 @@ function ti(e, n, a) {
|
|
|
1300
1300
|
case ye.FLOAT:
|
|
1301
1301
|
return parseFloat(n.value);
|
|
1302
1302
|
case ye.OBJECT:
|
|
1303
|
-
return
|
|
1303
|
+
return zs(e, n, a);
|
|
1304
1304
|
case ye.LIST:
|
|
1305
1305
|
return n.values.map(function(i) {
|
|
1306
1306
|
return ti(e, i, a);
|
|
@@ -1313,7 +1313,7 @@ function ti(e, n, a) {
|
|
|
1313
1313
|
throw new TypeError(e + " cannot represent value: " + Or(n));
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
|
-
var
|
|
1316
|
+
var gi = new ni({
|
|
1317
1317
|
name: "JSON",
|
|
1318
1318
|
description: "The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
1319
1319
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -1322,7 +1322,7 @@ var Ni = new ni({
|
|
|
1322
1322
|
parseLiteral: function(n, a) {
|
|
1323
1323
|
return ti("JSON", n, a);
|
|
1324
1324
|
}
|
|
1325
|
-
}),
|
|
1325
|
+
}), Ec = new ni({
|
|
1326
1326
|
name: "JSONObject",
|
|
1327
1327
|
description: "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
1328
1328
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -1331,12 +1331,12 @@ var Ni = new ni({
|
|
|
1331
1331
|
parseLiteral: function(n, a) {
|
|
1332
1332
|
if (n.kind !== ye.OBJECT)
|
|
1333
1333
|
throw new TypeError("JSONObject cannot represent non-object value: " + Or(n));
|
|
1334
|
-
return
|
|
1334
|
+
return zs("JSONObject", n, a);
|
|
1335
1335
|
}
|
|
1336
|
-
}), Qr = {}, tn = {}, Zn = {},
|
|
1336
|
+
}), Qr = {}, tn = {}, Zn = {}, Ni;
|
|
1337
1337
|
function ze() {
|
|
1338
|
-
if (
|
|
1339
|
-
|
|
1338
|
+
if (Ni) return Zn;
|
|
1339
|
+
Ni = 1, Object.defineProperty(Zn, "__esModule", {
|
|
1340
1340
|
value: !0
|
|
1341
1341
|
}), Zn.isObjectLike = e;
|
|
1342
1342
|
function e(n) {
|
|
@@ -1381,7 +1381,7 @@ function ri() {
|
|
|
1381
1381
|
return et;
|
|
1382
1382
|
}
|
|
1383
1383
|
var Rn = {}, Ii;
|
|
1384
|
-
function
|
|
1384
|
+
function Xs() {
|
|
1385
1385
|
if (Ii) return Rn;
|
|
1386
1386
|
Ii = 1, Object.defineProperty(Rn, "__esModule", {
|
|
1387
1387
|
value: !0
|
|
@@ -1428,7 +1428,7 @@ function ne() {
|
|
|
1428
1428
|
Si = 1, Object.defineProperty(tn, "__esModule", {
|
|
1429
1429
|
value: !0
|
|
1430
1430
|
}), tn.GraphQLError = void 0, tn.formatError = s, tn.printError = o;
|
|
1431
|
-
var e = /* @__PURE__ */ ze(), n = /* @__PURE__ */ ri(), a = /* @__PURE__ */
|
|
1431
|
+
var e = /* @__PURE__ */ ze(), n = /* @__PURE__ */ ri(), a = /* @__PURE__ */ Xs();
|
|
1432
1432
|
function i(l) {
|
|
1433
1433
|
const d = l[0];
|
|
1434
1434
|
return d == null || "kind" in d || "length" in d ? {
|
|
@@ -1440,7 +1440,7 @@ function ne() {
|
|
|
1440
1440
|
extensions: l[5]
|
|
1441
1441
|
} : d;
|
|
1442
1442
|
}
|
|
1443
|
-
let t = class
|
|
1443
|
+
let t = class Hs extends Error {
|
|
1444
1444
|
/**
|
|
1445
1445
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
1446
1446
|
* which correspond to this error.
|
|
@@ -1518,7 +1518,7 @@ function ne() {
|
|
|
1518
1518
|
value: h.stack,
|
|
1519
1519
|
writable: !0,
|
|
1520
1520
|
configurable: !0
|
|
1521
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
1521
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, Hs) : Object.defineProperty(this, "stack", {
|
|
1522
1522
|
value: Error().stack,
|
|
1523
1523
|
writable: !0,
|
|
1524
1524
|
configurable: !0
|
|
@@ -1642,7 +1642,7 @@ function de() {
|
|
|
1642
1642
|
return at;
|
|
1643
1643
|
}
|
|
1644
1644
|
var Di;
|
|
1645
|
-
function
|
|
1645
|
+
function Lu() {
|
|
1646
1646
|
if (Di) return it;
|
|
1647
1647
|
Di = 1, Object.defineProperty(it, "__esModule", {
|
|
1648
1648
|
value: !0
|
|
@@ -1664,7 +1664,7 @@ function ii() {
|
|
|
1664
1664
|
Ai = 1, Object.defineProperty(rt, "__esModule", {
|
|
1665
1665
|
value: !0
|
|
1666
1666
|
}), rt.locatedError = a;
|
|
1667
|
-
var e = /* @__PURE__ */
|
|
1667
|
+
var e = /* @__PURE__ */ Lu(), n = /* @__PURE__ */ ne();
|
|
1668
1668
|
function a(t, r, o) {
|
|
1669
1669
|
var s;
|
|
1670
1670
|
const l = (0, e.toError)(t);
|
|
@@ -1682,7 +1682,7 @@ function ii() {
|
|
|
1682
1682
|
return rt;
|
|
1683
1683
|
}
|
|
1684
1684
|
var ji;
|
|
1685
|
-
function
|
|
1685
|
+
function Ru() {
|
|
1686
1686
|
return ji || (ji = 1, (function(e) {
|
|
1687
1687
|
Object.defineProperty(e, "__esModule", {
|
|
1688
1688
|
value: !0
|
|
@@ -1716,7 +1716,7 @@ function Lu() {
|
|
|
1716
1716
|
})(Qr)), Qr;
|
|
1717
1717
|
}
|
|
1718
1718
|
var qr = {}, rn = {}, Pi;
|
|
1719
|
-
function
|
|
1719
|
+
function Du() {
|
|
1720
1720
|
if (Pi) return rn;
|
|
1721
1721
|
Pi = 1, Object.defineProperty(rn, "__esModule", {
|
|
1722
1722
|
value: !0
|
|
@@ -2087,7 +2087,7 @@ function Dr() {
|
|
|
2087
2087
|
/**
|
|
2088
2088
|
* The character offset at which the current line begins.
|
|
2089
2089
|
*/
|
|
2090
|
-
constructor(
|
|
2090
|
+
constructor(N) {
|
|
2091
2091
|
const D = new n.Token(
|
|
2092
2092
|
t.TokenKind.SOF,
|
|
2093
2093
|
0,
|
|
@@ -2095,7 +2095,7 @@ function Dr() {
|
|
|
2095
2095
|
0,
|
|
2096
2096
|
0
|
|
2097
2097
|
);
|
|
2098
|
-
this.source =
|
|
2098
|
+
this.source = N, this.lastToken = D, this.token = D, this.line = 1, this.lineStart = 0;
|
|
2099
2099
|
}
|
|
2100
2100
|
get [Symbol.toStringTag]() {
|
|
2101
2101
|
return "Lexer";
|
|
@@ -2111,17 +2111,17 @@ function Dr() {
|
|
|
2111
2111
|
* the state of Lexer.
|
|
2112
2112
|
*/
|
|
2113
2113
|
lookahead() {
|
|
2114
|
-
let
|
|
2115
|
-
if (
|
|
2114
|
+
let N = this.token;
|
|
2115
|
+
if (N.kind !== t.TokenKind.EOF)
|
|
2116
2116
|
do
|
|
2117
|
-
if (
|
|
2118
|
-
|
|
2117
|
+
if (N.next)
|
|
2118
|
+
N = N.next;
|
|
2119
2119
|
else {
|
|
2120
|
-
const D = f(this,
|
|
2121
|
-
|
|
2120
|
+
const D = f(this, N.end);
|
|
2121
|
+
N.next = D, D.prev = N, N = D;
|
|
2122
2122
|
}
|
|
2123
|
-
while (
|
|
2124
|
-
return
|
|
2123
|
+
while (N.kind === t.TokenKind.COMMENT);
|
|
2124
|
+
return N;
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
Ke.Lexer = r;
|
|
@@ -2131,8 +2131,8 @@ function Dr() {
|
|
|
2131
2131
|
function s(_) {
|
|
2132
2132
|
return _ >= 0 && _ <= 55295 || _ >= 57344 && _ <= 1114111;
|
|
2133
2133
|
}
|
|
2134
|
-
function l(_,
|
|
2135
|
-
return d(_.charCodeAt(
|
|
2134
|
+
function l(_, N) {
|
|
2135
|
+
return d(_.charCodeAt(N)) && m(_.charCodeAt(N + 1));
|
|
2136
2136
|
}
|
|
2137
2137
|
function d(_) {
|
|
2138
2138
|
return _ >= 55296 && _ <= 56319;
|
|
@@ -2140,8 +2140,8 @@ function Dr() {
|
|
|
2140
2140
|
function m(_) {
|
|
2141
2141
|
return _ >= 56320 && _ <= 57343;
|
|
2142
2142
|
}
|
|
2143
|
-
function u(_,
|
|
2144
|
-
const D = _.source.body.codePointAt(
|
|
2143
|
+
function u(_, N) {
|
|
2144
|
+
const D = _.source.body.codePointAt(N);
|
|
2145
2145
|
if (D === void 0)
|
|
2146
2146
|
return t.TokenKind.EOF;
|
|
2147
2147
|
if (D >= 32 && D <= 126) {
|
|
@@ -2150,16 +2150,16 @@ function Dr() {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
return "U+" + D.toString(16).toUpperCase().padStart(4, "0");
|
|
2152
2152
|
}
|
|
2153
|
-
function c(_,
|
|
2154
|
-
const
|
|
2155
|
-
return new n.Token(
|
|
2153
|
+
function c(_, N, D, O, v) {
|
|
2154
|
+
const g = _.line, L = 1 + D - _.lineStart;
|
|
2155
|
+
return new n.Token(N, D, O, g, L, v);
|
|
2156
2156
|
}
|
|
2157
|
-
function f(_,
|
|
2157
|
+
function f(_, N) {
|
|
2158
2158
|
const D = _.source.body, O = D.length;
|
|
2159
|
-
let v =
|
|
2159
|
+
let v = N;
|
|
2160
2160
|
for (; v < O; ) {
|
|
2161
|
-
const
|
|
2162
|
-
switch (
|
|
2161
|
+
const g = D.charCodeAt(v);
|
|
2162
|
+
switch (g) {
|
|
2163
2163
|
// Ignored ::
|
|
2164
2164
|
// - UnicodeBOM
|
|
2165
2165
|
// - WhiteSpace
|
|
@@ -2308,26 +2308,26 @@ function Dr() {
|
|
|
2308
2308
|
case 34:
|
|
2309
2309
|
return D.charCodeAt(v + 1) === 34 && D.charCodeAt(v + 2) === 34 ? M(_, v) : y(_, v);
|
|
2310
2310
|
}
|
|
2311
|
-
if ((0, i.isDigit)(
|
|
2312
|
-
return b(_, v,
|
|
2313
|
-
if ((0, i.isNameStart)(
|
|
2311
|
+
if ((0, i.isDigit)(g) || g === 45)
|
|
2312
|
+
return b(_, v, g);
|
|
2313
|
+
if ((0, i.isNameStart)(g))
|
|
2314
2314
|
return C(_, v);
|
|
2315
2315
|
throw (0, e.syntaxError)(
|
|
2316
2316
|
_.source,
|
|
2317
2317
|
v,
|
|
2318
|
-
|
|
2318
|
+
g === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : s(g) || l(D, v) ? `Unexpected character: ${u(_, v)}.` : `Invalid character: ${u(_, v)}.`
|
|
2319
2319
|
);
|
|
2320
2320
|
}
|
|
2321
2321
|
return c(_, t.TokenKind.EOF, O, O);
|
|
2322
2322
|
}
|
|
2323
|
-
function p(_,
|
|
2323
|
+
function p(_, N) {
|
|
2324
2324
|
const D = _.source.body, O = D.length;
|
|
2325
|
-
let v =
|
|
2325
|
+
let v = N + 1;
|
|
2326
2326
|
for (; v < O; ) {
|
|
2327
|
-
const
|
|
2328
|
-
if (
|
|
2327
|
+
const g = D.charCodeAt(v);
|
|
2328
|
+
if (g === 10 || g === 13)
|
|
2329
2329
|
break;
|
|
2330
|
-
if (s(
|
|
2330
|
+
if (s(g))
|
|
2331
2331
|
++v;
|
|
2332
2332
|
else if (l(D, v))
|
|
2333
2333
|
v += 2;
|
|
@@ -2337,16 +2337,16 @@ function Dr() {
|
|
|
2337
2337
|
return c(
|
|
2338
2338
|
_,
|
|
2339
2339
|
t.TokenKind.COMMENT,
|
|
2340
|
-
|
|
2340
|
+
N,
|
|
2341
2341
|
v,
|
|
2342
|
-
D.slice(
|
|
2342
|
+
D.slice(N + 1, v)
|
|
2343
2343
|
);
|
|
2344
2344
|
}
|
|
2345
|
-
function b(_,
|
|
2345
|
+
function b(_, N, D) {
|
|
2346
2346
|
const O = _.source.body;
|
|
2347
|
-
let v =
|
|
2348
|
-
if (
|
|
2349
|
-
if (
|
|
2347
|
+
let v = N, g = D, L = !1;
|
|
2348
|
+
if (g === 45 && (g = O.charCodeAt(++v)), g === 48) {
|
|
2349
|
+
if (g = O.charCodeAt(++v), (0, i.isDigit)(g))
|
|
2350
2350
|
throw (0, e.syntaxError)(
|
|
2351
2351
|
_.source,
|
|
2352
2352
|
v,
|
|
@@ -2356,8 +2356,8 @@ function Dr() {
|
|
|
2356
2356
|
)}.`
|
|
2357
2357
|
);
|
|
2358
2358
|
} else
|
|
2359
|
-
v = T(_, v,
|
|
2360
|
-
if (
|
|
2359
|
+
v = T(_, v, g), g = O.charCodeAt(v);
|
|
2360
|
+
if (g === 46 && (L = !0, g = O.charCodeAt(++v), v = T(_, v, g), g = O.charCodeAt(v)), (g === 69 || g === 101) && (L = !0, g = O.charCodeAt(++v), (g === 43 || g === 45) && (g = O.charCodeAt(++v)), v = T(_, v, g), g = O.charCodeAt(v)), g === 46 || (0, i.isNameStart)(g))
|
|
2361
2361
|
throw (0, e.syntaxError)(
|
|
2362
2362
|
_.source,
|
|
2363
2363
|
v,
|
|
@@ -2369,44 +2369,44 @@ function Dr() {
|
|
|
2369
2369
|
return c(
|
|
2370
2370
|
_,
|
|
2371
2371
|
L ? t.TokenKind.FLOAT : t.TokenKind.INT,
|
|
2372
|
-
|
|
2372
|
+
N,
|
|
2373
2373
|
v,
|
|
2374
|
-
O.slice(
|
|
2374
|
+
O.slice(N, v)
|
|
2375
2375
|
);
|
|
2376
2376
|
}
|
|
2377
|
-
function T(_,
|
|
2377
|
+
function T(_, N, D) {
|
|
2378
2378
|
if (!(0, i.isDigit)(D))
|
|
2379
2379
|
throw (0, e.syntaxError)(
|
|
2380
2380
|
_.source,
|
|
2381
|
-
|
|
2381
|
+
N,
|
|
2382
2382
|
`Invalid number, expected digit but got: ${u(
|
|
2383
2383
|
_,
|
|
2384
|
-
|
|
2384
|
+
N
|
|
2385
2385
|
)}.`
|
|
2386
2386
|
);
|
|
2387
2387
|
const O = _.source.body;
|
|
2388
|
-
let v =
|
|
2388
|
+
let v = N + 1;
|
|
2389
2389
|
for (; (0, i.isDigit)(O.charCodeAt(v)); )
|
|
2390
2390
|
++v;
|
|
2391
2391
|
return v;
|
|
2392
2392
|
}
|
|
2393
|
-
function y(_,
|
|
2393
|
+
function y(_, N) {
|
|
2394
2394
|
const D = _.source.body, O = D.length;
|
|
2395
|
-
let v =
|
|
2395
|
+
let v = N + 1, g = v, L = "";
|
|
2396
2396
|
for (; v < O; ) {
|
|
2397
2397
|
const R = D.charCodeAt(v);
|
|
2398
2398
|
if (R === 34)
|
|
2399
|
-
return L += D.slice(
|
|
2399
|
+
return L += D.slice(g, v), c(
|
|
2400
2400
|
_,
|
|
2401
2401
|
t.TokenKind.STRING,
|
|
2402
|
-
|
|
2402
|
+
N,
|
|
2403
2403
|
v + 1,
|
|
2404
2404
|
L
|
|
2405
2405
|
);
|
|
2406
2406
|
if (R === 92) {
|
|
2407
|
-
L += D.slice(
|
|
2407
|
+
L += D.slice(g, v);
|
|
2408
2408
|
const j = D.charCodeAt(v + 1) === 117 ? D.charCodeAt(v + 2) === 123 ? h(_, v) : I(_, v) : k(_, v);
|
|
2409
|
-
L += j.value, v += j.size,
|
|
2409
|
+
L += j.value, v += j.size, g = v;
|
|
2410
2410
|
continue;
|
|
2411
2411
|
}
|
|
2412
2412
|
if (R === 10 || R === 13)
|
|
@@ -2431,12 +2431,12 @@ function Dr() {
|
|
|
2431
2431
|
"Unterminated string."
|
|
2432
2432
|
);
|
|
2433
2433
|
}
|
|
2434
|
-
function h(_,
|
|
2434
|
+
function h(_, N) {
|
|
2435
2435
|
const D = _.source.body;
|
|
2436
2436
|
let O = 0, v = 3;
|
|
2437
2437
|
for (; v < 12; ) {
|
|
2438
|
-
const
|
|
2439
|
-
if (
|
|
2438
|
+
const g = D.charCodeAt(N + v++);
|
|
2439
|
+
if (g === 125) {
|
|
2440
2440
|
if (v < 5 || !s(O))
|
|
2441
2441
|
break;
|
|
2442
2442
|
return {
|
|
@@ -2444,27 +2444,27 @@ function Dr() {
|
|
|
2444
2444
|
size: v
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
if (O = O << 4 | E(
|
|
2447
|
+
if (O = O << 4 | E(g), O < 0)
|
|
2448
2448
|
break;
|
|
2449
2449
|
}
|
|
2450
2450
|
throw (0, e.syntaxError)(
|
|
2451
2451
|
_.source,
|
|
2452
|
-
|
|
2452
|
+
N,
|
|
2453
2453
|
`Invalid Unicode escape sequence: "${D.slice(
|
|
2454
|
-
|
|
2455
|
-
|
|
2454
|
+
N,
|
|
2455
|
+
N + v
|
|
2456
2456
|
)}".`
|
|
2457
2457
|
);
|
|
2458
2458
|
}
|
|
2459
|
-
function I(_,
|
|
2460
|
-
const D = _.source.body, O = S(D,
|
|
2459
|
+
function I(_, N) {
|
|
2460
|
+
const D = _.source.body, O = S(D, N + 2);
|
|
2461
2461
|
if (s(O))
|
|
2462
2462
|
return {
|
|
2463
2463
|
value: String.fromCodePoint(O),
|
|
2464
2464
|
size: 6
|
|
2465
2465
|
};
|
|
2466
|
-
if (d(O) && D.charCodeAt(
|
|
2467
|
-
const v = S(D,
|
|
2466
|
+
if (d(O) && D.charCodeAt(N + 6) === 92 && D.charCodeAt(N + 7) === 117) {
|
|
2467
|
+
const v = S(D, N + 8);
|
|
2468
2468
|
if (m(v))
|
|
2469
2469
|
return {
|
|
2470
2470
|
value: String.fromCodePoint(O, v),
|
|
@@ -2473,19 +2473,19 @@ function Dr() {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
throw (0, e.syntaxError)(
|
|
2475
2475
|
_.source,
|
|
2476
|
-
|
|
2477
|
-
`Invalid Unicode escape sequence: "${D.slice(
|
|
2476
|
+
N,
|
|
2477
|
+
`Invalid Unicode escape sequence: "${D.slice(N, N + 6)}".`
|
|
2478
2478
|
);
|
|
2479
2479
|
}
|
|
2480
|
-
function S(_,
|
|
2481
|
-
return E(_.charCodeAt(
|
|
2480
|
+
function S(_, N) {
|
|
2481
|
+
return E(_.charCodeAt(N)) << 12 | E(_.charCodeAt(N + 1)) << 8 | E(_.charCodeAt(N + 2)) << 4 | E(_.charCodeAt(N + 3));
|
|
2482
2482
|
}
|
|
2483
2483
|
function E(_) {
|
|
2484
2484
|
return _ >= 48 && _ <= 57 ? _ - 48 : _ >= 65 && _ <= 70 ? _ - 55 : _ >= 97 && _ <= 102 ? _ - 87 : -1;
|
|
2485
2485
|
}
|
|
2486
|
-
function k(_,
|
|
2486
|
+
function k(_, N) {
|
|
2487
2487
|
const D = _.source.body;
|
|
2488
|
-
switch (D.charCodeAt(
|
|
2488
|
+
switch (D.charCodeAt(N + 1)) {
|
|
2489
2489
|
case 34:
|
|
2490
2490
|
return {
|
|
2491
2491
|
value: '"',
|
|
@@ -2530,66 +2530,66 @@ function Dr() {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
throw (0, e.syntaxError)(
|
|
2532
2532
|
_.source,
|
|
2533
|
-
|
|
2533
|
+
N,
|
|
2534
2534
|
`Invalid character escape sequence: "${D.slice(
|
|
2535
|
-
|
|
2536
|
-
|
|
2535
|
+
N,
|
|
2536
|
+
N + 2
|
|
2537
2537
|
)}".`
|
|
2538
2538
|
);
|
|
2539
2539
|
}
|
|
2540
|
-
function M(_,
|
|
2540
|
+
function M(_, N) {
|
|
2541
2541
|
const D = _.source.body, O = D.length;
|
|
2542
|
-
let v = _.lineStart,
|
|
2542
|
+
let v = _.lineStart, g = N + 3, L = g, R = "";
|
|
2543
2543
|
const j = [];
|
|
2544
|
-
for (;
|
|
2545
|
-
const V = D.charCodeAt(
|
|
2546
|
-
if (V === 34 && D.charCodeAt(
|
|
2547
|
-
R += D.slice(L,
|
|
2544
|
+
for (; g < O; ) {
|
|
2545
|
+
const V = D.charCodeAt(g);
|
|
2546
|
+
if (V === 34 && D.charCodeAt(g + 1) === 34 && D.charCodeAt(g + 2) === 34) {
|
|
2547
|
+
R += D.slice(L, g), j.push(R);
|
|
2548
2548
|
const U = c(
|
|
2549
2549
|
_,
|
|
2550
2550
|
t.TokenKind.BLOCK_STRING,
|
|
2551
|
-
|
|
2552
|
-
|
|
2551
|
+
N,
|
|
2552
|
+
g + 3,
|
|
2553
2553
|
// Return a string of the lines joined with U+000A.
|
|
2554
2554
|
(0, a.dedentBlockStringLines)(j).join(`
|
|
2555
2555
|
`)
|
|
2556
2556
|
);
|
|
2557
2557
|
return _.line += j.length - 1, _.lineStart = v, U;
|
|
2558
2558
|
}
|
|
2559
|
-
if (V === 92 && D.charCodeAt(
|
|
2560
|
-
R += D.slice(L,
|
|
2559
|
+
if (V === 92 && D.charCodeAt(g + 1) === 34 && D.charCodeAt(g + 2) === 34 && D.charCodeAt(g + 3) === 34) {
|
|
2560
|
+
R += D.slice(L, g), L = g + 1, g += 4;
|
|
2561
2561
|
continue;
|
|
2562
2562
|
}
|
|
2563
2563
|
if (V === 10 || V === 13) {
|
|
2564
|
-
R += D.slice(L,
|
|
2564
|
+
R += D.slice(L, g), j.push(R), V === 13 && D.charCodeAt(g + 1) === 10 ? g += 2 : ++g, R = "", L = g, v = g;
|
|
2565
2565
|
continue;
|
|
2566
2566
|
}
|
|
2567
2567
|
if (s(V))
|
|
2568
|
-
++
|
|
2569
|
-
else if (l(D,
|
|
2570
|
-
|
|
2568
|
+
++g;
|
|
2569
|
+
else if (l(D, g))
|
|
2570
|
+
g += 2;
|
|
2571
2571
|
else
|
|
2572
2572
|
throw (0, e.syntaxError)(
|
|
2573
2573
|
_.source,
|
|
2574
|
-
|
|
2574
|
+
g,
|
|
2575
2575
|
`Invalid character within String: ${u(
|
|
2576
2576
|
_,
|
|
2577
|
-
|
|
2577
|
+
g
|
|
2578
2578
|
)}.`
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
2581
|
throw (0, e.syntaxError)(
|
|
2582
2582
|
_.source,
|
|
2583
|
-
|
|
2583
|
+
g,
|
|
2584
2584
|
"Unterminated string."
|
|
2585
2585
|
);
|
|
2586
2586
|
}
|
|
2587
|
-
function C(_,
|
|
2587
|
+
function C(_, N) {
|
|
2588
2588
|
const D = _.source.body, O = D.length;
|
|
2589
|
-
let v =
|
|
2589
|
+
let v = N + 1;
|
|
2590
2590
|
for (; v < O; ) {
|
|
2591
|
-
const
|
|
2592
|
-
if ((0, i.isNameContinue)(
|
|
2591
|
+
const g = D.charCodeAt(v);
|
|
2592
|
+
if ((0, i.isNameContinue)(g))
|
|
2593
2593
|
++v;
|
|
2594
2594
|
else
|
|
2595
2595
|
break;
|
|
@@ -2597,15 +2597,15 @@ function Dr() {
|
|
|
2597
2597
|
return c(
|
|
2598
2598
|
_,
|
|
2599
2599
|
t.TokenKind.NAME,
|
|
2600
|
-
|
|
2600
|
+
N,
|
|
2601
2601
|
v,
|
|
2602
|
-
D.slice(
|
|
2602
|
+
D.slice(N, v)
|
|
2603
2603
|
);
|
|
2604
2604
|
}
|
|
2605
2605
|
return Ke;
|
|
2606
2606
|
}
|
|
2607
2607
|
var An = {}, Qi;
|
|
2608
|
-
function
|
|
2608
|
+
function Au() {
|
|
2609
2609
|
if (Qi) return An;
|
|
2610
2610
|
Qi = 1, Object.defineProperty(An, "__esModule", {
|
|
2611
2611
|
value: !0
|
|
@@ -2801,7 +2801,7 @@ function On() {
|
|
|
2801
2801
|
Bi = 1, Object.defineProperty(Me, "__esModule", {
|
|
2802
2802
|
value: !0
|
|
2803
2803
|
}), Me.Parser = void 0, Me.parse = l, Me.parseConstValue = m, Me.parseSchemaCoordinate = c, Me.parseType = u, Me.parseValue = d;
|
|
2804
|
-
var e = /* @__PURE__ */ Sr(), n = /* @__PURE__ */ Qe(), a = /* @__PURE__ */ Jn(), i = /* @__PURE__ */ se(), t = /* @__PURE__ */ Dr(), r = /* @__PURE__ */
|
|
2804
|
+
var e = /* @__PURE__ */ Sr(), n = /* @__PURE__ */ Qe(), a = /* @__PURE__ */ Jn(), i = /* @__PURE__ */ se(), t = /* @__PURE__ */ Dr(), r = /* @__PURE__ */ Au(), o = /* @__PURE__ */ si(), s = /* @__PURE__ */ zn();
|
|
2805
2805
|
function l(T, y) {
|
|
2806
2806
|
const h = new f(T, y), I = h.parseDocument();
|
|
2807
2807
|
return Object.defineProperty(I, "tokenCount", {
|
|
@@ -4047,7 +4047,7 @@ function on() {
|
|
|
4047
4047
|
return ut;
|
|
4048
4048
|
}
|
|
4049
4049
|
var ct = {}, Yi;
|
|
4050
|
-
function
|
|
4050
|
+
function ju() {
|
|
4051
4051
|
if (Yi) return ct;
|
|
4052
4052
|
Yi = 1, Object.defineProperty(ct, "__esModule", {
|
|
4053
4053
|
value: !0
|
|
@@ -4086,7 +4086,7 @@ function jr() {
|
|
|
4086
4086
|
return pt;
|
|
4087
4087
|
}
|
|
4088
4088
|
var dt = {}, Xi;
|
|
4089
|
-
function
|
|
4089
|
+
function Ws() {
|
|
4090
4090
|
if (Xi) return dt;
|
|
4091
4091
|
Xi = 1, Object.defineProperty(dt, "__esModule", {
|
|
4092
4092
|
value: !0
|
|
@@ -4234,7 +4234,7 @@ function oi() {
|
|
|
4234
4234
|
return yt;
|
|
4235
4235
|
}
|
|
4236
4236
|
var ht = {}, vt = {}, ea;
|
|
4237
|
-
function
|
|
4237
|
+
function Pu() {
|
|
4238
4238
|
if (ea) return vt;
|
|
4239
4239
|
ea = 1, Object.defineProperty(vt, "__esModule", {
|
|
4240
4240
|
value: !0
|
|
@@ -4426,26 +4426,26 @@ function _n() {
|
|
|
4426
4426
|
Be.BREAK = t;
|
|
4427
4427
|
function r(d, m, u = a.QueryDocumentKeys) {
|
|
4428
4428
|
const c = /* @__PURE__ */ new Map();
|
|
4429
|
-
for (const
|
|
4430
|
-
c.set(
|
|
4429
|
+
for (const N of Object.values(i.Kind))
|
|
4430
|
+
c.set(N, s(m, N));
|
|
4431
4431
|
let f, p = Array.isArray(d), b = [d], T = -1, y = [], h = d, I, S;
|
|
4432
4432
|
const E = [], k = [];
|
|
4433
4433
|
do {
|
|
4434
4434
|
T++;
|
|
4435
|
-
const
|
|
4436
|
-
if (
|
|
4435
|
+
const N = T === b.length, D = N && y.length !== 0;
|
|
4436
|
+
if (N) {
|
|
4437
4437
|
if (I = k.length === 0 ? void 0 : E[E.length - 1], h = S, S = k.pop(), D)
|
|
4438
4438
|
if (p) {
|
|
4439
4439
|
h = h.slice();
|
|
4440
4440
|
let v = 0;
|
|
4441
|
-
for (const [
|
|
4442
|
-
const R =
|
|
4441
|
+
for (const [g, L] of y) {
|
|
4442
|
+
const R = g - v;
|
|
4443
4443
|
L === null ? (h.splice(R, 1), v++) : h[R] = L;
|
|
4444
4444
|
}
|
|
4445
4445
|
} else {
|
|
4446
4446
|
h = { ...h };
|
|
4447
|
-
for (const [v,
|
|
4448
|
-
h[v] =
|
|
4447
|
+
for (const [v, g] of y)
|
|
4448
|
+
h[v] = g;
|
|
4449
4449
|
}
|
|
4450
4450
|
T = f.index, b = f.keys, y = f.edits, p = f.inArray, f = f.prev;
|
|
4451
4451
|
} else if (S) {
|
|
@@ -4460,15 +4460,15 @@ function _n() {
|
|
|
4460
4460
|
!1,
|
|
4461
4461
|
`Invalid AST Node: ${(0, n.inspect)(h)}.`
|
|
4462
4462
|
);
|
|
4463
|
-
const v =
|
|
4463
|
+
const v = N ? (M = c.get(h.kind)) === null || M === void 0 ? void 0 : M.leave : (C = c.get(h.kind)) === null || C === void 0 ? void 0 : C.enter;
|
|
4464
4464
|
if (O = v?.call(m, h, I, S, E, k), O === t)
|
|
4465
4465
|
break;
|
|
4466
4466
|
if (O === !1) {
|
|
4467
|
-
if (!
|
|
4467
|
+
if (!N) {
|
|
4468
4468
|
E.pop();
|
|
4469
4469
|
continue;
|
|
4470
4470
|
}
|
|
4471
|
-
} else if (O !== void 0 && (y.push([I, O]), !
|
|
4471
|
+
} else if (O !== void 0 && (y.push([I, O]), !N))
|
|
4472
4472
|
if ((0, a.isNode)(O))
|
|
4473
4473
|
h = O;
|
|
4474
4474
|
else {
|
|
@@ -4476,7 +4476,7 @@ function _n() {
|
|
|
4476
4476
|
continue;
|
|
4477
4477
|
}
|
|
4478
4478
|
}
|
|
4479
|
-
if (O === void 0 && D && y.push([I, h]),
|
|
4479
|
+
if (O === void 0 && D && y.push([I, h]), N)
|
|
4480
4480
|
E.pop();
|
|
4481
4481
|
else {
|
|
4482
4482
|
var _;
|
|
@@ -4556,7 +4556,7 @@ function Fe() {
|
|
|
4556
4556
|
ta = 1, Object.defineProperty(ht, "__esModule", {
|
|
4557
4557
|
value: !0
|
|
4558
4558
|
}), ht.print = i;
|
|
4559
|
-
var e = /* @__PURE__ */ Rr(), n = /* @__PURE__ */
|
|
4559
|
+
var e = /* @__PURE__ */ Rr(), n = /* @__PURE__ */ Pu(), a = /* @__PURE__ */ _n();
|
|
4560
4560
|
function i(u) {
|
|
4561
4561
|
return (0, a.visit)(u, r);
|
|
4562
4562
|
}
|
|
@@ -4850,7 +4850,7 @@ function Fe() {
|
|
|
4850
4850
|
return ht;
|
|
4851
4851
|
}
|
|
4852
4852
|
var Tt = {}, ra;
|
|
4853
|
-
function
|
|
4853
|
+
function Zs() {
|
|
4854
4854
|
if (ra) return Tt;
|
|
4855
4855
|
ra = 1, Object.defineProperty(Tt, "__esModule", {
|
|
4856
4856
|
value: !0
|
|
@@ -4921,10 +4921,10 @@ function oe() {
|
|
|
4921
4921
|
if (aa) return H;
|
|
4922
4922
|
aa = 1, Object.defineProperty(H, "__esModule", {
|
|
4923
4923
|
value: !0
|
|
4924
|
-
}), H.GraphQLUnionType = H.GraphQLScalarType = H.GraphQLObjectType = H.GraphQLNonNull = H.GraphQLList = H.GraphQLInterfaceType = H.GraphQLInputObjectType = H.GraphQLEnumType = void 0, H.argsToArgsConfig = fe, H.assertAbstractType = x, H.assertCompositeType = G, H.assertEnumType = D, H.assertInputObjectType = v, H.assertInputType = U, H.assertInterfaceType = M, H.assertLeafType = te, H.assertListType = L, H.assertNamedType = Oe, H.assertNonNullType = j, H.assertNullableType = ue, H.assertObjectType = E, H.assertOutputType = P, H.assertScalarType = I, H.assertType = y, H.assertUnionType = _, H.assertWrappingType = ee, H.defineArguments = z, H.getNamedType =
|
|
4925
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ on(), a = /* @__PURE__ */
|
|
4924
|
+
}), H.GraphQLUnionType = H.GraphQLScalarType = H.GraphQLObjectType = H.GraphQLNonNull = H.GraphQLList = H.GraphQLInterfaceType = H.GraphQLInputObjectType = H.GraphQLEnumType = void 0, H.argsToArgsConfig = fe, H.assertAbstractType = x, H.assertCompositeType = G, H.assertEnumType = D, H.assertInputObjectType = v, H.assertInputType = U, H.assertInterfaceType = M, H.assertLeafType = te, H.assertListType = L, H.assertNamedType = Oe, H.assertNonNullType = j, H.assertNullableType = ue, H.assertObjectType = E, H.assertOutputType = P, H.assertScalarType = I, H.assertType = y, H.assertUnionType = _, H.assertWrappingType = ee, H.defineArguments = z, H.getNamedType = ge, H.getNullableType = ce, H.isAbstractType = $, H.isCompositeType = pe, H.isEnumType = N, H.isInputObjectType = O, H.isInputType = V, H.isInterfaceType = k, H.isLeafType = K, H.isListType = g, H.isNamedType = he, H.isNonNullType = R, H.isNullableType = ie, H.isObjectType = S, H.isOutputType = W, H.isRequiredArgument = be, H.isRequiredInputField = Ko, H.isScalarType = h, H.isType = T, H.isUnionType = C, H.isWrappingType = B, H.resolveObjMapThunk = _e, H.resolveReadonlyArrayThunk = ve;
|
|
4925
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ on(), a = /* @__PURE__ */ ju(), i = /* @__PURE__ */ de(), t = /* @__PURE__ */ Ar(), r = /* @__PURE__ */ ze(), o = /* @__PURE__ */ un(), s = /* @__PURE__ */ jr(), l = /* @__PURE__ */ Ws(), d = /* @__PURE__ */ cn(), m = /* @__PURE__ */ oi(), u = /* @__PURE__ */ ne(), c = /* @__PURE__ */ se(), f = /* @__PURE__ */ Fe(), p = /* @__PURE__ */ Zs(), b = /* @__PURE__ */ kr();
|
|
4926
4926
|
function T(A) {
|
|
4927
|
-
return h(A) || S(A) || k(A) || C(A) ||
|
|
4927
|
+
return h(A) || S(A) || k(A) || C(A) || N(A) || O(A) || g(A) || R(A);
|
|
4928
4928
|
}
|
|
4929
4929
|
function y(A) {
|
|
4930
4930
|
if (!T(A))
|
|
@@ -4973,11 +4973,11 @@ function oe() {
|
|
|
4973
4973
|
);
|
|
4974
4974
|
return A;
|
|
4975
4975
|
}
|
|
4976
|
-
function
|
|
4976
|
+
function N(A) {
|
|
4977
4977
|
return (0, t.instanceOf)(A, ln);
|
|
4978
4978
|
}
|
|
4979
4979
|
function D(A) {
|
|
4980
|
-
if (!
|
|
4980
|
+
if (!N(A))
|
|
4981
4981
|
throw new Error(
|
|
4982
4982
|
`Expected ${(0, i.inspect)(A)} to be a GraphQL Enum type.`
|
|
4983
4983
|
);
|
|
@@ -4995,11 +4995,11 @@ function oe() {
|
|
|
4995
4995
|
);
|
|
4996
4996
|
return A;
|
|
4997
4997
|
}
|
|
4998
|
-
function
|
|
4998
|
+
function g(A) {
|
|
4999
4999
|
return (0, t.instanceOf)(A, Y);
|
|
5000
5000
|
}
|
|
5001
5001
|
function L(A) {
|
|
5002
|
-
if (!
|
|
5002
|
+
if (!g(A))
|
|
5003
5003
|
throw new Error(
|
|
5004
5004
|
`Expected ${(0, i.inspect)(A)} to be a GraphQL List type.`
|
|
5005
5005
|
);
|
|
@@ -5016,7 +5016,7 @@ function oe() {
|
|
|
5016
5016
|
return A;
|
|
5017
5017
|
}
|
|
5018
5018
|
function V(A) {
|
|
5019
|
-
return h(A) ||
|
|
5019
|
+
return h(A) || N(A) || O(A) || B(A) && V(A.ofType);
|
|
5020
5020
|
}
|
|
5021
5021
|
function U(A) {
|
|
5022
5022
|
if (!V(A))
|
|
@@ -5026,7 +5026,7 @@ function oe() {
|
|
|
5026
5026
|
return A;
|
|
5027
5027
|
}
|
|
5028
5028
|
function W(A) {
|
|
5029
|
-
return h(A) || S(A) || k(A) || C(A) ||
|
|
5029
|
+
return h(A) || S(A) || k(A) || C(A) || N(A) || B(A) && W(A.ofType);
|
|
5030
5030
|
}
|
|
5031
5031
|
function P(A) {
|
|
5032
5032
|
if (!W(A))
|
|
@@ -5036,7 +5036,7 @@ function oe() {
|
|
|
5036
5036
|
return A;
|
|
5037
5037
|
}
|
|
5038
5038
|
function K(A) {
|
|
5039
|
-
return h(A) ||
|
|
5039
|
+
return h(A) || N(A);
|
|
5040
5040
|
}
|
|
5041
5041
|
function te(A) {
|
|
5042
5042
|
if (!K(A))
|
|
@@ -5104,7 +5104,7 @@ function oe() {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
H.GraphQLNonNull = Z;
|
|
5106
5106
|
function B(A) {
|
|
5107
|
-
return
|
|
5107
|
+
return g(A) || R(A);
|
|
5108
5108
|
}
|
|
5109
5109
|
function ee(A) {
|
|
5110
5110
|
if (!B(A))
|
|
@@ -5128,7 +5128,7 @@ function oe() {
|
|
|
5128
5128
|
return R(A) ? A.ofType : A;
|
|
5129
5129
|
}
|
|
5130
5130
|
function he(A) {
|
|
5131
|
-
return h(A) || S(A) || k(A) || C(A) ||
|
|
5131
|
+
return h(A) || S(A) || k(A) || C(A) || N(A) || O(A);
|
|
5132
5132
|
}
|
|
5133
5133
|
function Oe(A) {
|
|
5134
5134
|
if (!he(A))
|
|
@@ -5137,7 +5137,7 @@ function oe() {
|
|
|
5137
5137
|
);
|
|
5138
5138
|
return A;
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function ge(A) {
|
|
5141
5141
|
if (A) {
|
|
5142
5142
|
let F = A;
|
|
5143
5143
|
for (; B(F); )
|
|
@@ -5155,8 +5155,8 @@ function oe() {
|
|
|
5155
5155
|
constructor(F) {
|
|
5156
5156
|
var Q, ae, Se, pn;
|
|
5157
5157
|
const mi = (Q = F.parseValue) !== null && Q !== void 0 ? Q : a.identityFunc;
|
|
5158
|
-
this.name = (0, b.assertName)(F.name), this.description = F.description, this.specifiedByURL = F.specifiedByURL, this.serialize = (ae = F.serialize) !== null && ae !== void 0 ? ae : a.identityFunc, this.parseValue = mi, this.parseLiteral = (Se = F.parseLiteral) !== null && Se !== void 0 ? Se : (
|
|
5159
|
-
(0, p.valueFromASTUntyped)(
|
|
5158
|
+
this.name = (0, b.assertName)(F.name), this.description = F.description, this.specifiedByURL = F.specifiedByURL, this.serialize = (ae = F.serialize) !== null && ae !== void 0 ? ae : a.identityFunc, this.parseValue = mi, this.parseLiteral = (Se = F.parseLiteral) !== null && Se !== void 0 ? Se : (Bo, xo) => mi(
|
|
5159
|
+
(0, p.valueFromASTUntyped)(Bo, xo)
|
|
5160
5160
|
), this.extensions = (0, m.toObjMap)(F.extensions), this.astNode = F.astNode, this.extensionASTNodes = (pn = F.extensionASTNodes) !== null && pn !== void 0 ? pn : [], F.specifiedByURL == null || typeof F.specifiedByURL == "string" || (0, e.devAssert)(
|
|
5161
5161
|
!1,
|
|
5162
5162
|
`${this.name} must provide "specifiedByURL" as a string, but got: ${(0, i.inspect)(F.specifiedByURL)}.`
|
|
@@ -5514,7 +5514,7 @@ function oe() {
|
|
|
5514
5514
|
class fi {
|
|
5515
5515
|
constructor(F) {
|
|
5516
5516
|
var Q, ae;
|
|
5517
|
-
this.name = (0, b.assertName)(F.name), this.description = F.description, this.extensions = (0, m.toObjMap)(F.extensions), this.astNode = F.astNode, this.extensionASTNodes = (Q = F.extensionASTNodes) !== null && Q !== void 0 ? Q : [], this.isOneOf = (ae = F.isOneOf) !== null && ae !== void 0 ? ae : !1, this._fields =
|
|
5517
|
+
this.name = (0, b.assertName)(F.name), this.description = F.description, this.extensions = (0, m.toObjMap)(F.extensions), this.astNode = F.astNode, this.extensionASTNodes = (Q = F.extensionASTNodes) !== null && Q !== void 0 ? Q : [], this.isOneOf = (ae = F.isOneOf) !== null && ae !== void 0 ? ae : !1, this._fields = qo.bind(void 0, F);
|
|
5518
5518
|
}
|
|
5519
5519
|
get [Symbol.toStringTag]() {
|
|
5520
5520
|
return "GraphQLInputObjectType";
|
|
@@ -5549,7 +5549,7 @@ function oe() {
|
|
|
5549
5549
|
}
|
|
5550
5550
|
}
|
|
5551
5551
|
H.GraphQLInputObjectType = fi;
|
|
5552
|
-
function
|
|
5552
|
+
function qo(A) {
|
|
5553
5553
|
const F = _e(A.fields);
|
|
5554
5554
|
return q(F) || (0, e.devAssert)(
|
|
5555
5555
|
!1,
|
|
@@ -5567,7 +5567,7 @@ function oe() {
|
|
|
5567
5567
|
astNode: Q.astNode
|
|
5568
5568
|
}));
|
|
5569
5569
|
}
|
|
5570
|
-
function
|
|
5570
|
+
function Ko(A) {
|
|
5571
5571
|
return R(A.type) && A.defaultValue === void 0;
|
|
5572
5572
|
}
|
|
5573
5573
|
return H;
|
|
@@ -5590,17 +5590,17 @@ function Fr() {
|
|
|
5590
5590
|
}
|
|
5591
5591
|
return vn;
|
|
5592
5592
|
}
|
|
5593
|
-
var Te = {},
|
|
5593
|
+
var Te = {}, Ne = {}, oa;
|
|
5594
5594
|
function Xe() {
|
|
5595
|
-
if (oa) return
|
|
5596
|
-
oa = 1, Object.defineProperty(
|
|
5595
|
+
if (oa) return Ne;
|
|
5596
|
+
oa = 1, Object.defineProperty(Ne, "__esModule", {
|
|
5597
5597
|
value: !0
|
|
5598
|
-
}),
|
|
5598
|
+
}), Ne.GraphQLString = Ne.GraphQLInt = Ne.GraphQLID = Ne.GraphQLFloat = Ne.GraphQLBoolean = Ne.GRAPHQL_MIN_INT = Ne.GRAPHQL_MAX_INT = void 0, Ne.isSpecifiedScalarType = p, Ne.specifiedScalarTypes = void 0;
|
|
5599
5599
|
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ ze(), a = /* @__PURE__ */ ne(), i = /* @__PURE__ */ se(), t = /* @__PURE__ */ Fe(), r = /* @__PURE__ */ oe();
|
|
5600
5600
|
const o = 2147483647;
|
|
5601
|
-
|
|
5601
|
+
Ne.GRAPHQL_MAX_INT = o;
|
|
5602
5602
|
const s = -2147483648;
|
|
5603
|
-
|
|
5603
|
+
Ne.GRAPHQL_MIN_INT = s;
|
|
5604
5604
|
const l = new r.GraphQLScalarType({
|
|
5605
5605
|
name: "Int",
|
|
5606
5606
|
description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
|
|
@@ -5655,7 +5655,7 @@ function Xe() {
|
|
|
5655
5655
|
return y;
|
|
5656
5656
|
}
|
|
5657
5657
|
});
|
|
5658
|
-
|
|
5658
|
+
Ne.GraphQLInt = l;
|
|
5659
5659
|
const d = new r.GraphQLScalarType({
|
|
5660
5660
|
name: "Float",
|
|
5661
5661
|
description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
|
|
@@ -5692,7 +5692,7 @@ function Xe() {
|
|
|
5692
5692
|
return parseFloat(T.value);
|
|
5693
5693
|
}
|
|
5694
5694
|
});
|
|
5695
|
-
|
|
5695
|
+
Ne.GraphQLFloat = d;
|
|
5696
5696
|
const m = new r.GraphQLScalarType({
|
|
5697
5697
|
name: "String",
|
|
5698
5698
|
description: "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
|
|
@@ -5730,7 +5730,7 @@ function Xe() {
|
|
|
5730
5730
|
return T.value;
|
|
5731
5731
|
}
|
|
5732
5732
|
});
|
|
5733
|
-
|
|
5733
|
+
Ne.GraphQLString = m;
|
|
5734
5734
|
const u = new r.GraphQLScalarType({
|
|
5735
5735
|
name: "Boolean",
|
|
5736
5736
|
description: "The `Boolean` scalar type represents `true` or `false`.",
|
|
@@ -5768,7 +5768,7 @@ function Xe() {
|
|
|
5768
5768
|
return T.value;
|
|
5769
5769
|
}
|
|
5770
5770
|
});
|
|
5771
|
-
|
|
5771
|
+
Ne.GraphQLBoolean = u;
|
|
5772
5772
|
const c = new r.GraphQLScalarType({
|
|
5773
5773
|
name: "ID",
|
|
5774
5774
|
description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',
|
|
@@ -5802,7 +5802,7 @@ function Xe() {
|
|
|
5802
5802
|
return T.value;
|
|
5803
5803
|
}
|
|
5804
5804
|
});
|
|
5805
|
-
|
|
5805
|
+
Ne.GraphQLID = c;
|
|
5806
5806
|
const f = Object.freeze([
|
|
5807
5807
|
m,
|
|
5808
5808
|
l,
|
|
@@ -5810,7 +5810,7 @@ function Xe() {
|
|
|
5810
5810
|
u,
|
|
5811
5811
|
c
|
|
5812
5812
|
]);
|
|
5813
|
-
|
|
5813
|
+
Ne.specifiedScalarTypes = f;
|
|
5814
5814
|
function p(T) {
|
|
5815
5815
|
return f.some(({ name: y }) => T.name === y);
|
|
5816
5816
|
}
|
|
@@ -5826,7 +5826,7 @@ function Xe() {
|
|
|
5826
5826
|
}
|
|
5827
5827
|
return T;
|
|
5828
5828
|
}
|
|
5829
|
-
return
|
|
5829
|
+
return Ne;
|
|
5830
5830
|
}
|
|
5831
5831
|
var ua;
|
|
5832
5832
|
function Pe() {
|
|
@@ -6758,13 +6758,13 @@ function Vr() {
|
|
|
6758
6758
|
return O.__validationErrors;
|
|
6759
6759
|
const v = new m(O);
|
|
6760
6760
|
u(v), f(v), b(v);
|
|
6761
|
-
const
|
|
6762
|
-
return O.__validationErrors =
|
|
6761
|
+
const g = v.getErrors();
|
|
6762
|
+
return O.__validationErrors = g, g;
|
|
6763
6763
|
}
|
|
6764
6764
|
function d(O) {
|
|
6765
6765
|
const v = l(O);
|
|
6766
6766
|
if (v.length !== 0)
|
|
6767
|
-
throw new Error(v.map((
|
|
6767
|
+
throw new Error(v.map((g) => g.message).join(`
|
|
6768
6768
|
|
|
6769
6769
|
`));
|
|
6770
6770
|
}
|
|
@@ -6772,8 +6772,8 @@ function Vr() {
|
|
|
6772
6772
|
constructor(v) {
|
|
6773
6773
|
this._errors = [], this.schema = v;
|
|
6774
6774
|
}
|
|
6775
|
-
reportError(v,
|
|
6776
|
-
const L = Array.isArray(
|
|
6775
|
+
reportError(v, g) {
|
|
6776
|
+
const L = Array.isArray(g) ? g.filter(Boolean) : g;
|
|
6777
6777
|
this._errors.push(
|
|
6778
6778
|
new n.GraphQLError(v, {
|
|
6779
6779
|
nodes: L
|
|
@@ -6785,17 +6785,17 @@ function Vr() {
|
|
|
6785
6785
|
}
|
|
6786
6786
|
}
|
|
6787
6787
|
function u(O) {
|
|
6788
|
-
const v = O.schema,
|
|
6789
|
-
if (!
|
|
6788
|
+
const v = O.schema, g = v.getQueryType();
|
|
6789
|
+
if (!g)
|
|
6790
6790
|
O.reportError("Query root type must be provided.", v.astNode);
|
|
6791
|
-
else if (!(0, t.isObjectType)(
|
|
6791
|
+
else if (!(0, t.isObjectType)(g)) {
|
|
6792
6792
|
var L;
|
|
6793
6793
|
O.reportError(
|
|
6794
|
-
`Query root type must be Object type, it cannot be ${(0, e.inspect)(
|
|
6794
|
+
`Query root type must be Object type, it cannot be ${(0, e.inspect)(g)}.`,
|
|
6795
6795
|
(L = c(
|
|
6796
6796
|
v,
|
|
6797
6797
|
a.OperationTypeNode.QUERY
|
|
6798
|
-
)) !== null && L !== void 0 ? L :
|
|
6798
|
+
)) !== null && L !== void 0 ? L : g.astNode
|
|
6799
6799
|
);
|
|
6800
6800
|
}
|
|
6801
6801
|
const R = v.getMutationType();
|
|
@@ -6822,8 +6822,8 @@ function Vr() {
|
|
|
6822
6822
|
}
|
|
6823
6823
|
}
|
|
6824
6824
|
function c(O, v) {
|
|
6825
|
-
var
|
|
6826
|
-
return (
|
|
6825
|
+
var g;
|
|
6826
|
+
return (g = [O.astNode, ...O.extensionASTNodes].flatMap(
|
|
6827
6827
|
// FIXME: https://github.com/graphql/graphql-js/issues/2203
|
|
6828
6828
|
(L) => {
|
|
6829
6829
|
var R;
|
|
@@ -6832,29 +6832,29 @@ function Vr() {
|
|
|
6832
6832
|
(R = L?.operationTypes) !== null && R !== void 0 ? R : []
|
|
6833
6833
|
);
|
|
6834
6834
|
}
|
|
6835
|
-
).find((L) => L.operation === v)) === null ||
|
|
6835
|
+
).find((L) => L.operation === v)) === null || g === void 0 ? void 0 : g.type;
|
|
6836
6836
|
}
|
|
6837
6837
|
function f(O) {
|
|
6838
|
-
for (const
|
|
6839
|
-
if (!(0, r.isDirective)(
|
|
6838
|
+
for (const g of O.schema.getDirectives()) {
|
|
6839
|
+
if (!(0, r.isDirective)(g)) {
|
|
6840
6840
|
O.reportError(
|
|
6841
|
-
`Expected directive but got: ${(0, e.inspect)(
|
|
6842
|
-
|
|
6841
|
+
`Expected directive but got: ${(0, e.inspect)(g)}.`,
|
|
6842
|
+
g?.astNode
|
|
6843
6843
|
);
|
|
6844
6844
|
continue;
|
|
6845
6845
|
}
|
|
6846
|
-
p(O,
|
|
6847
|
-
`Directive @${
|
|
6848
|
-
|
|
6846
|
+
p(O, g), g.locations.length === 0 && O.reportError(
|
|
6847
|
+
`Directive @${g.name} must include 1 or more locations.`,
|
|
6848
|
+
g.astNode
|
|
6849
6849
|
);
|
|
6850
|
-
for (const L of
|
|
6850
|
+
for (const L of g.args)
|
|
6851
6851
|
if (p(O, L), (0, t.isInputType)(L.type) || O.reportError(
|
|
6852
|
-
`The type of @${
|
|
6852
|
+
`The type of @${g.name}(${L.name}:) must be Input Type but got: ${(0, e.inspect)(L.type)}.`,
|
|
6853
6853
|
L.astNode
|
|
6854
6854
|
), (0, t.isRequiredArgument)(L) && L.deprecationReason != null) {
|
|
6855
6855
|
var v;
|
|
6856
6856
|
O.reportError(
|
|
6857
|
-
`Required argument @${
|
|
6857
|
+
`Required argument @${g.name}(${L.name}:) cannot be deprecated.`,
|
|
6858
6858
|
[
|
|
6859
6859
|
D(L.astNode),
|
|
6860
6860
|
(v = L.astNode) === null || v === void 0 ? void 0 : v.type
|
|
@@ -6870,8 +6870,8 @@ function Vr() {
|
|
|
6870
6870
|
);
|
|
6871
6871
|
}
|
|
6872
6872
|
function b(O) {
|
|
6873
|
-
const v = C(O),
|
|
6874
|
-
for (const L of Object.values(
|
|
6873
|
+
const v = C(O), g = O.schema.getTypeMap();
|
|
6874
|
+
for (const L of Object.values(g)) {
|
|
6875
6875
|
if (!(0, t.isNamedType)(L)) {
|
|
6876
6876
|
O.reportError(
|
|
6877
6877
|
`Expected GraphQL named type but got: ${(0, e.inspect)(L)}.`,
|
|
@@ -6883,12 +6883,12 @@ function Vr() {
|
|
|
6883
6883
|
}
|
|
6884
6884
|
}
|
|
6885
6885
|
function T(O, v) {
|
|
6886
|
-
const
|
|
6887
|
-
|
|
6886
|
+
const g = Object.values(v.getFields());
|
|
6887
|
+
g.length === 0 && O.reportError(`Type ${v.name} must define one or more fields.`, [
|
|
6888
6888
|
v.astNode,
|
|
6889
6889
|
...v.extensionASTNodes
|
|
6890
6890
|
]);
|
|
6891
|
-
for (const V of
|
|
6891
|
+
for (const V of g) {
|
|
6892
6892
|
if (p(O, V), !(0, t.isOutputType)(V.type)) {
|
|
6893
6893
|
var L;
|
|
6894
6894
|
O.reportError(
|
|
@@ -6919,7 +6919,7 @@ function Vr() {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
}
|
|
6921
6921
|
function y(O, v) {
|
|
6922
|
-
const
|
|
6922
|
+
const g = /* @__PURE__ */ Object.create(null);
|
|
6923
6923
|
for (const L of v.getInterfaces()) {
|
|
6924
6924
|
if (!(0, t.isInterfaceType)(L)) {
|
|
6925
6925
|
O.reportError(
|
|
@@ -6937,23 +6937,23 @@ function Vr() {
|
|
|
6937
6937
|
);
|
|
6938
6938
|
continue;
|
|
6939
6939
|
}
|
|
6940
|
-
if (
|
|
6940
|
+
if (g[L.name]) {
|
|
6941
6941
|
O.reportError(
|
|
6942
6942
|
`Type ${v.name} can only implement ${L.name} once.`,
|
|
6943
6943
|
_(v, L)
|
|
6944
6944
|
);
|
|
6945
6945
|
continue;
|
|
6946
6946
|
}
|
|
6947
|
-
|
|
6947
|
+
g[L.name] = !0, I(O, v, L), h(O, v, L);
|
|
6948
6948
|
}
|
|
6949
6949
|
}
|
|
6950
|
-
function h(O, v,
|
|
6950
|
+
function h(O, v, g) {
|
|
6951
6951
|
const L = v.getFields();
|
|
6952
|
-
for (const W of Object.values(
|
|
6952
|
+
for (const W of Object.values(g.getFields())) {
|
|
6953
6953
|
const P = W.name, K = L[P];
|
|
6954
6954
|
if (!K) {
|
|
6955
6955
|
O.reportError(
|
|
6956
|
-
`Interface field ${
|
|
6956
|
+
`Interface field ${g.name}.${P} expected but ${v.name} does not provide it.`,
|
|
6957
6957
|
[W.astNode, v.astNode, ...v.extensionASTNodes]
|
|
6958
6958
|
);
|
|
6959
6959
|
continue;
|
|
@@ -6965,7 +6965,7 @@ function Vr() {
|
|
|
6965
6965
|
)) {
|
|
6966
6966
|
var R, j;
|
|
6967
6967
|
O.reportError(
|
|
6968
|
-
`Interface field ${
|
|
6968
|
+
`Interface field ${g.name}.${P} expects type ${(0, e.inspect)(W.type)} but ${v.name}.${P} is type ${(0, e.inspect)(K.type)}.`,
|
|
6969
6969
|
[
|
|
6970
6970
|
(R = W.astNode) === null || R === void 0 ? void 0 : R.type,
|
|
6971
6971
|
(j = K.astNode) === null || j === void 0 ? void 0 : j.type
|
|
@@ -6976,7 +6976,7 @@ function Vr() {
|
|
|
6976
6976
|
const pe = te.name, G = K.args.find(($) => $.name === pe);
|
|
6977
6977
|
if (!G) {
|
|
6978
6978
|
O.reportError(
|
|
6979
|
-
`Interface field argument ${
|
|
6979
|
+
`Interface field argument ${g.name}.${P}(${pe}:) expected but ${v.name}.${P} does not provide it.`,
|
|
6980
6980
|
[te.astNode, K.astNode]
|
|
6981
6981
|
);
|
|
6982
6982
|
continue;
|
|
@@ -6984,7 +6984,7 @@ function Vr() {
|
|
|
6984
6984
|
if (!(0, i.isEqualType)(te.type, G.type)) {
|
|
6985
6985
|
var V, U;
|
|
6986
6986
|
O.reportError(
|
|
6987
|
-
`Interface field argument ${
|
|
6987
|
+
`Interface field argument ${g.name}.${P}(${pe}:) expects type ${(0, e.inspect)(te.type)} but ${v.name}.${P}(${pe}:) is type ${(0, e.inspect)(G.type)}.`,
|
|
6988
6988
|
[
|
|
6989
6989
|
(V = te.astNode) === null || V === void 0 ? void 0 : V.type,
|
|
6990
6990
|
(U = G.astNode) === null || U === void 0 ? void 0 : U.type
|
|
@@ -6995,60 +6995,60 @@ function Vr() {
|
|
|
6995
6995
|
for (const te of K.args) {
|
|
6996
6996
|
const pe = te.name;
|
|
6997
6997
|
!W.args.find(($) => $.name === pe) && (0, t.isRequiredArgument)(te) && O.reportError(
|
|
6998
|
-
`Object field ${v.name}.${P} includes required argument ${pe} that is missing from the Interface field ${
|
|
6998
|
+
`Object field ${v.name}.${P} includes required argument ${pe} that is missing from the Interface field ${g.name}.${P}.`,
|
|
6999
6999
|
[te.astNode, W.astNode]
|
|
7000
7000
|
);
|
|
7001
7001
|
}
|
|
7002
7002
|
}
|
|
7003
7003
|
}
|
|
7004
|
-
function I(O, v,
|
|
7004
|
+
function I(O, v, g) {
|
|
7005
7005
|
const L = v.getInterfaces();
|
|
7006
|
-
for (const R of
|
|
7006
|
+
for (const R of g.getInterfaces())
|
|
7007
7007
|
L.includes(R) || O.reportError(
|
|
7008
|
-
R === v ? `Type ${v.name} cannot implement ${
|
|
7008
|
+
R === v ? `Type ${v.name} cannot implement ${g.name} because it would create a circular reference.` : `Type ${v.name} must implement ${R.name} because it is implemented by ${g.name}.`,
|
|
7009
7009
|
[
|
|
7010
|
-
..._(
|
|
7011
|
-
..._(v,
|
|
7010
|
+
..._(g, R),
|
|
7011
|
+
..._(v, g)
|
|
7012
7012
|
]
|
|
7013
7013
|
);
|
|
7014
7014
|
}
|
|
7015
7015
|
function S(O, v) {
|
|
7016
|
-
const
|
|
7017
|
-
|
|
7016
|
+
const g = v.getTypes();
|
|
7017
|
+
g.length === 0 && O.reportError(
|
|
7018
7018
|
`Union type ${v.name} must define one or more member types.`,
|
|
7019
7019
|
[v.astNode, ...v.extensionASTNodes]
|
|
7020
7020
|
);
|
|
7021
7021
|
const L = /* @__PURE__ */ Object.create(null);
|
|
7022
|
-
for (const R of
|
|
7022
|
+
for (const R of g) {
|
|
7023
7023
|
if (L[R.name]) {
|
|
7024
7024
|
O.reportError(
|
|
7025
7025
|
`Union type ${v.name} can only include type ${R.name} once.`,
|
|
7026
|
-
|
|
7026
|
+
N(v, R.name)
|
|
7027
7027
|
);
|
|
7028
7028
|
continue;
|
|
7029
7029
|
}
|
|
7030
7030
|
L[R.name] = !0, (0, t.isObjectType)(R) || O.reportError(
|
|
7031
7031
|
`Union type ${v.name} can only include Object types, it cannot include ${(0, e.inspect)(R)}.`,
|
|
7032
|
-
|
|
7032
|
+
N(v, String(R))
|
|
7033
7033
|
);
|
|
7034
7034
|
}
|
|
7035
7035
|
}
|
|
7036
7036
|
function E(O, v) {
|
|
7037
|
-
const
|
|
7038
|
-
|
|
7037
|
+
const g = v.getValues();
|
|
7038
|
+
g.length === 0 && O.reportError(
|
|
7039
7039
|
`Enum type ${v.name} must define one or more values.`,
|
|
7040
7040
|
[v.astNode, ...v.extensionASTNodes]
|
|
7041
7041
|
);
|
|
7042
|
-
for (const L of
|
|
7042
|
+
for (const L of g)
|
|
7043
7043
|
p(O, L);
|
|
7044
7044
|
}
|
|
7045
7045
|
function k(O, v) {
|
|
7046
|
-
const
|
|
7047
|
-
|
|
7046
|
+
const g = Object.values(v.getFields());
|
|
7047
|
+
g.length === 0 && O.reportError(
|
|
7048
7048
|
`Input Object type ${v.name} must define one or more fields.`,
|
|
7049
7049
|
[v.astNode, ...v.extensionASTNodes]
|
|
7050
7050
|
);
|
|
7051
|
-
for (const j of
|
|
7051
|
+
for (const j of g) {
|
|
7052
7052
|
if (p(O, j), !(0, t.isInputType)(j.type)) {
|
|
7053
7053
|
var L;
|
|
7054
7054
|
O.reportError(
|
|
@@ -7069,47 +7069,47 @@ function Vr() {
|
|
|
7069
7069
|
v.isOneOf && M(v, j, O);
|
|
7070
7070
|
}
|
|
7071
7071
|
}
|
|
7072
|
-
function M(O, v,
|
|
7072
|
+
function M(O, v, g) {
|
|
7073
7073
|
if ((0, t.isNonNullType)(v.type)) {
|
|
7074
7074
|
var L;
|
|
7075
|
-
|
|
7075
|
+
g.reportError(
|
|
7076
7076
|
`OneOf input field ${O.name}.${v.name} must be nullable.`,
|
|
7077
7077
|
(L = v.astNode) === null || L === void 0 ? void 0 : L.type
|
|
7078
7078
|
);
|
|
7079
7079
|
}
|
|
7080
|
-
v.defaultValue !== void 0 &&
|
|
7080
|
+
v.defaultValue !== void 0 && g.reportError(
|
|
7081
7081
|
`OneOf input field ${O.name}.${v.name} cannot have a default value.`,
|
|
7082
7082
|
v.astNode
|
|
7083
7083
|
);
|
|
7084
7084
|
}
|
|
7085
7085
|
function C(O) {
|
|
7086
|
-
const v = /* @__PURE__ */ Object.create(null),
|
|
7086
|
+
const v = /* @__PURE__ */ Object.create(null), g = [], L = /* @__PURE__ */ Object.create(null);
|
|
7087
7087
|
return R;
|
|
7088
7088
|
function R(j) {
|
|
7089
7089
|
if (v[j.name])
|
|
7090
7090
|
return;
|
|
7091
|
-
v[j.name] = !0, L[j.name] =
|
|
7091
|
+
v[j.name] = !0, L[j.name] = g.length;
|
|
7092
7092
|
const V = Object.values(j.getFields());
|
|
7093
7093
|
for (const U of V)
|
|
7094
7094
|
if ((0, t.isNonNullType)(U.type) && (0, t.isInputObjectType)(U.type.ofType)) {
|
|
7095
7095
|
const W = U.type.ofType, P = L[W.name];
|
|
7096
|
-
if (
|
|
7096
|
+
if (g.push(U), P === void 0)
|
|
7097
7097
|
R(W);
|
|
7098
7098
|
else {
|
|
7099
|
-
const K =
|
|
7099
|
+
const K = g.slice(P), te = K.map((pe) => pe.name).join(".");
|
|
7100
7100
|
O.reportError(
|
|
7101
7101
|
`Cannot reference Input Object "${W.name}" within itself through a series of non-null fields: "${te}".`,
|
|
7102
7102
|
K.map((pe) => pe.astNode)
|
|
7103
7103
|
);
|
|
7104
7104
|
}
|
|
7105
|
-
|
|
7105
|
+
g.pop();
|
|
7106
7106
|
}
|
|
7107
7107
|
L[j.name] = void 0;
|
|
7108
7108
|
}
|
|
7109
7109
|
}
|
|
7110
7110
|
function _(O, v) {
|
|
7111
|
-
const { astNode:
|
|
7112
|
-
return (
|
|
7111
|
+
const { astNode: g, extensionASTNodes: L } = O;
|
|
7112
|
+
return (g != null ? [g, ...L] : L).flatMap((j) => {
|
|
7113
7113
|
var V;
|
|
7114
7114
|
return (
|
|
7115
7115
|
/* c8 ignore next */
|
|
@@ -7117,9 +7117,9 @@ function Vr() {
|
|
|
7117
7117
|
);
|
|
7118
7118
|
}).filter((j) => j.name.value === v.name);
|
|
7119
7119
|
}
|
|
7120
|
-
function
|
|
7121
|
-
const { astNode:
|
|
7122
|
-
return (
|
|
7120
|
+
function N(O, v) {
|
|
7121
|
+
const { astNode: g, extensionASTNodes: L } = O;
|
|
7122
|
+
return (g != null ? [g, ...L] : L).flatMap((j) => {
|
|
7123
7123
|
var V;
|
|
7124
7124
|
return (
|
|
7125
7125
|
/* c8 ignore next */
|
|
@@ -7130,17 +7130,17 @@ function Vr() {
|
|
|
7130
7130
|
function D(O) {
|
|
7131
7131
|
var v;
|
|
7132
7132
|
return O == null || (v = O.directives) === null || v === void 0 ? void 0 : v.find(
|
|
7133
|
-
(
|
|
7133
|
+
(g) => g.name.value === r.GraphQLDeprecatedDirective.name
|
|
7134
7134
|
);
|
|
7135
7135
|
}
|
|
7136
7136
|
return Pn;
|
|
7137
7137
|
}
|
|
7138
|
-
var sn = {}, Tn = {},
|
|
7138
|
+
var sn = {}, Tn = {}, gt = {}, ma;
|
|
7139
7139
|
function He() {
|
|
7140
|
-
if (ma) return
|
|
7141
|
-
ma = 1, Object.defineProperty(
|
|
7140
|
+
if (ma) return gt;
|
|
7141
|
+
ma = 1, Object.defineProperty(gt, "__esModule", {
|
|
7142
7142
|
value: !0
|
|
7143
|
-
}),
|
|
7143
|
+
}), gt.typeFromAST = a;
|
|
7144
7144
|
var e = /* @__PURE__ */ se(), n = /* @__PURE__ */ oe();
|
|
7145
7145
|
function a(i, t) {
|
|
7146
7146
|
switch (t.kind) {
|
|
@@ -7156,7 +7156,7 @@ function He() {
|
|
|
7156
7156
|
return i.getType(t.name.value);
|
|
7157
7157
|
}
|
|
7158
7158
|
}
|
|
7159
|
-
return
|
|
7159
|
+
return gt;
|
|
7160
7160
|
}
|
|
7161
7161
|
var ya;
|
|
7162
7162
|
function ci() {
|
|
@@ -7348,7 +7348,7 @@ function ci() {
|
|
|
7348
7348
|
}
|
|
7349
7349
|
return Tn;
|
|
7350
7350
|
}
|
|
7351
|
-
var xe = {},
|
|
7351
|
+
var xe = {}, Nt = {}, Re = {}, ha;
|
|
7352
7352
|
function Sn() {
|
|
7353
7353
|
if (ha) return Re;
|
|
7354
7354
|
ha = 1, Object.defineProperty(Re, "__esModule", {
|
|
@@ -7391,11 +7391,11 @@ function Sn() {
|
|
|
7391
7391
|
return Re;
|
|
7392
7392
|
}
|
|
7393
7393
|
var va;
|
|
7394
|
-
function
|
|
7395
|
-
if (va) return
|
|
7396
|
-
va = 1, Object.defineProperty(
|
|
7394
|
+
function eo() {
|
|
7395
|
+
if (va) return Nt;
|
|
7396
|
+
va = 1, Object.defineProperty(Nt, "__esModule", {
|
|
7397
7397
|
value: !0
|
|
7398
|
-
}),
|
|
7398
|
+
}), Nt.ExecutableDefinitionsRule = i;
|
|
7399
7399
|
var e = /* @__PURE__ */ ne(), n = /* @__PURE__ */ se(), a = /* @__PURE__ */ Sn();
|
|
7400
7400
|
function i(t) {
|
|
7401
7401
|
return {
|
|
@@ -7416,10 +7416,10 @@ function Zs() {
|
|
|
7416
7416
|
}
|
|
7417
7417
|
};
|
|
7418
7418
|
}
|
|
7419
|
-
return
|
|
7419
|
+
return Nt;
|
|
7420
7420
|
}
|
|
7421
7421
|
var Ot = {}, Ta;
|
|
7422
|
-
function
|
|
7422
|
+
function no() {
|
|
7423
7423
|
if (Ta) return Ot;
|
|
7424
7424
|
Ta = 1, Object.defineProperty(Ot, "__esModule", {
|
|
7425
7425
|
value: !0
|
|
@@ -7476,7 +7476,7 @@ function eo() {
|
|
|
7476
7476
|
return Ot;
|
|
7477
7477
|
}
|
|
7478
7478
|
var _t = {}, ba;
|
|
7479
|
-
function
|
|
7479
|
+
function to() {
|
|
7480
7480
|
if (ba) return _t;
|
|
7481
7481
|
ba = 1, Object.defineProperty(_t, "__esModule", {
|
|
7482
7482
|
value: !0
|
|
@@ -7526,7 +7526,7 @@ function no() {
|
|
|
7526
7526
|
return _t;
|
|
7527
7527
|
}
|
|
7528
7528
|
var Fn = {}, Ea;
|
|
7529
|
-
function
|
|
7529
|
+
function ro() {
|
|
7530
7530
|
if (Ea) return Fn;
|
|
7531
7531
|
Ea = 1, Object.defineProperty(Fn, "__esModule", {
|
|
7532
7532
|
value: !0
|
|
@@ -7593,10 +7593,10 @@ function to() {
|
|
|
7593
7593
|
}
|
|
7594
7594
|
return Fn;
|
|
7595
7595
|
}
|
|
7596
|
-
var It = {},
|
|
7597
|
-
function
|
|
7598
|
-
if (
|
|
7599
|
-
|
|
7596
|
+
var It = {}, ga;
|
|
7597
|
+
function io() {
|
|
7598
|
+
if (ga) return It;
|
|
7599
|
+
ga = 1, Object.defineProperty(It, "__esModule", {
|
|
7600
7600
|
value: !0
|
|
7601
7601
|
}), It.KnownDirectivesRule = s;
|
|
7602
7602
|
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ Le(), a = /* @__PURE__ */ ne(), i = /* @__PURE__ */ Qe(), t = /* @__PURE__ */ Jn(), r = /* @__PURE__ */ se(), o = /* @__PURE__ */ Pe();
|
|
@@ -7695,10 +7695,10 @@ function ro() {
|
|
|
7695
7695
|
}
|
|
7696
7696
|
return It;
|
|
7697
7697
|
}
|
|
7698
|
-
var St = {},
|
|
7699
|
-
function
|
|
7700
|
-
if (
|
|
7701
|
-
|
|
7698
|
+
var St = {}, Na;
|
|
7699
|
+
function ao() {
|
|
7700
|
+
if (Na) return St;
|
|
7701
|
+
Na = 1, Object.defineProperty(St, "__esModule", {
|
|
7702
7702
|
value: !0
|
|
7703
7703
|
}), St.KnownFragmentNamesRule = n;
|
|
7704
7704
|
var e = /* @__PURE__ */ ne();
|
|
@@ -7720,7 +7720,7 @@ function io() {
|
|
|
7720
7720
|
return St;
|
|
7721
7721
|
}
|
|
7722
7722
|
var Lt = {}, Oa;
|
|
7723
|
-
function
|
|
7723
|
+
function so() {
|
|
7724
7724
|
if (Oa) return Lt;
|
|
7725
7725
|
Oa = 1, Object.defineProperty(Lt, "__esModule", {
|
|
7726
7726
|
value: !0
|
|
@@ -7768,7 +7768,7 @@ function ao() {
|
|
|
7768
7768
|
return Lt;
|
|
7769
7769
|
}
|
|
7770
7770
|
var Rt = {}, _a;
|
|
7771
|
-
function
|
|
7771
|
+
function oo() {
|
|
7772
7772
|
if (_a) return Rt;
|
|
7773
7773
|
_a = 1, Object.defineProperty(Rt, "__esModule", {
|
|
7774
7774
|
value: !0
|
|
@@ -7797,7 +7797,7 @@ function so() {
|
|
|
7797
7797
|
return Rt;
|
|
7798
7798
|
}
|
|
7799
7799
|
var Dt = {}, Ia;
|
|
7800
|
-
function
|
|
7800
|
+
function uo() {
|
|
7801
7801
|
if (Ia) return Dt;
|
|
7802
7802
|
Ia = 1, Object.defineProperty(Dt, "__esModule", {
|
|
7803
7803
|
value: !0
|
|
@@ -7834,7 +7834,7 @@ function oo() {
|
|
|
7834
7834
|
return Dt;
|
|
7835
7835
|
}
|
|
7836
7836
|
var At = {}, Sa;
|
|
7837
|
-
function
|
|
7837
|
+
function co() {
|
|
7838
7838
|
if (Sa) return At;
|
|
7839
7839
|
Sa = 1, Object.defineProperty(At, "__esModule", {
|
|
7840
7840
|
value: !0
|
|
@@ -7883,7 +7883,7 @@ function uo() {
|
|
|
7883
7883
|
return At;
|
|
7884
7884
|
}
|
|
7885
7885
|
var jt = {}, La;
|
|
7886
|
-
function
|
|
7886
|
+
function lo() {
|
|
7887
7887
|
if (La) return jt;
|
|
7888
7888
|
La = 1, Object.defineProperty(jt, "__esModule", {
|
|
7889
7889
|
value: !0
|
|
@@ -7930,7 +7930,7 @@ function co() {
|
|
|
7930
7930
|
return jt;
|
|
7931
7931
|
}
|
|
7932
7932
|
var Pt = {}, Ra;
|
|
7933
|
-
function
|
|
7933
|
+
function po() {
|
|
7934
7934
|
if (Ra) return Pt;
|
|
7935
7935
|
Ra = 1, Object.defineProperty(Pt, "__esModule", {
|
|
7936
7936
|
value: !0
|
|
@@ -7966,7 +7966,7 @@ function lo() {
|
|
|
7966
7966
|
return Pt;
|
|
7967
7967
|
}
|
|
7968
7968
|
var kt = {}, Da;
|
|
7969
|
-
function
|
|
7969
|
+
function fo() {
|
|
7970
7970
|
if (Da) return kt;
|
|
7971
7971
|
Da = 1, Object.defineProperty(kt, "__esModule", {
|
|
7972
7972
|
value: !0
|
|
@@ -8007,7 +8007,7 @@ function po() {
|
|
|
8007
8007
|
return kt;
|
|
8008
8008
|
}
|
|
8009
8009
|
var Ft = {}, Aa;
|
|
8010
|
-
function
|
|
8010
|
+
function mo() {
|
|
8011
8011
|
if (Aa) return Ft;
|
|
8012
8012
|
Aa = 1, Object.defineProperty(Ft, "__esModule", {
|
|
8013
8013
|
value: !0
|
|
@@ -8045,7 +8045,7 @@ function fo() {
|
|
|
8045
8045
|
return Ft;
|
|
8046
8046
|
}
|
|
8047
8047
|
var wt = {}, Vt = {}, ja;
|
|
8048
|
-
function
|
|
8048
|
+
function yo() {
|
|
8049
8049
|
if (ja) return Vt;
|
|
8050
8050
|
ja = 1, Object.defineProperty(Vt, "__esModule", {
|
|
8051
8051
|
value: !0
|
|
@@ -8078,30 +8078,30 @@ function mo() {
|
|
|
8078
8078
|
return Vt;
|
|
8079
8079
|
}
|
|
8080
8080
|
var Pa;
|
|
8081
|
-
function
|
|
8081
|
+
function ho() {
|
|
8082
8082
|
if (Pa) return wt;
|
|
8083
8083
|
Pa = 1, Object.defineProperty(wt, "__esModule", {
|
|
8084
8084
|
value: !0
|
|
8085
8085
|
}), wt.OverlappingFieldsCanBeMergedRule = l;
|
|
8086
|
-
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ ne(), a = /* @__PURE__ */ se(), i = /* @__PURE__ */ Fe(), t = /* @__PURE__ */ oe(), r = /* @__PURE__ */
|
|
8086
|
+
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ ne(), a = /* @__PURE__ */ se(), i = /* @__PURE__ */ Fe(), t = /* @__PURE__ */ oe(), r = /* @__PURE__ */ yo(), o = /* @__PURE__ */ He();
|
|
8087
8087
|
function s(_) {
|
|
8088
8088
|
return Array.isArray(_) ? _.map(
|
|
8089
|
-
([
|
|
8089
|
+
([N, D]) => `subfields "${N}" conflict because ` + s(D)
|
|
8090
8090
|
).join(" and ") : _;
|
|
8091
8091
|
}
|
|
8092
8092
|
function l(_) {
|
|
8093
|
-
const
|
|
8093
|
+
const N = new M(), D = new C(), O = /* @__PURE__ */ new Map();
|
|
8094
8094
|
return {
|
|
8095
8095
|
SelectionSet(v) {
|
|
8096
|
-
const
|
|
8096
|
+
const g = d(
|
|
8097
8097
|
_,
|
|
8098
8098
|
O,
|
|
8099
|
-
|
|
8099
|
+
N,
|
|
8100
8100
|
D,
|
|
8101
8101
|
_.getParentType(),
|
|
8102
8102
|
v
|
|
8103
8103
|
);
|
|
8104
|
-
for (const [[L, R], j, V] of
|
|
8104
|
+
for (const [[L, R], j, V] of g) {
|
|
8105
8105
|
const U = s(R);
|
|
8106
8106
|
_.reportError(
|
|
8107
8107
|
new n.GraphQLError(
|
|
@@ -8115,17 +8115,17 @@ function yo() {
|
|
|
8115
8115
|
}
|
|
8116
8116
|
};
|
|
8117
8117
|
}
|
|
8118
|
-
function d(_,
|
|
8118
|
+
function d(_, N, D, O, v, g) {
|
|
8119
8119
|
const L = [], [R, j] = I(
|
|
8120
8120
|
_,
|
|
8121
|
-
|
|
8121
|
+
N,
|
|
8122
8122
|
v,
|
|
8123
|
-
|
|
8123
|
+
g
|
|
8124
8124
|
);
|
|
8125
8125
|
if (f(
|
|
8126
8126
|
_,
|
|
8127
8127
|
L,
|
|
8128
|
-
|
|
8128
|
+
N,
|
|
8129
8129
|
D,
|
|
8130
8130
|
O,
|
|
8131
8131
|
R
|
|
@@ -8134,7 +8134,7 @@ function yo() {
|
|
|
8134
8134
|
m(
|
|
8135
8135
|
_,
|
|
8136
8136
|
L,
|
|
8137
|
-
|
|
8137
|
+
N,
|
|
8138
8138
|
D,
|
|
8139
8139
|
O,
|
|
8140
8140
|
!1,
|
|
@@ -8145,7 +8145,7 @@ function yo() {
|
|
|
8145
8145
|
u(
|
|
8146
8146
|
_,
|
|
8147
8147
|
L,
|
|
8148
|
-
|
|
8148
|
+
N,
|
|
8149
8149
|
D,
|
|
8150
8150
|
O,
|
|
8151
8151
|
!1,
|
|
@@ -8155,17 +8155,17 @@ function yo() {
|
|
|
8155
8155
|
}
|
|
8156
8156
|
return L;
|
|
8157
8157
|
}
|
|
8158
|
-
function m(_,
|
|
8158
|
+
function m(_, N, D, O, v, g, L, R) {
|
|
8159
8159
|
if (O.has(
|
|
8160
8160
|
L,
|
|
8161
8161
|
R,
|
|
8162
|
-
|
|
8162
|
+
g
|
|
8163
8163
|
))
|
|
8164
8164
|
return;
|
|
8165
8165
|
O.add(
|
|
8166
8166
|
L,
|
|
8167
8167
|
R,
|
|
8168
|
-
|
|
8168
|
+
g
|
|
8169
8169
|
);
|
|
8170
8170
|
const j = _.getFragment(R);
|
|
8171
8171
|
if (!j)
|
|
@@ -8178,35 +8178,35 @@ function yo() {
|
|
|
8178
8178
|
if (L !== V) {
|
|
8179
8179
|
p(
|
|
8180
8180
|
_,
|
|
8181
|
-
|
|
8181
|
+
N,
|
|
8182
8182
|
D,
|
|
8183
8183
|
O,
|
|
8184
8184
|
v,
|
|
8185
|
-
|
|
8185
|
+
g,
|
|
8186
8186
|
L,
|
|
8187
8187
|
V
|
|
8188
8188
|
);
|
|
8189
8189
|
for (const W of U)
|
|
8190
8190
|
m(
|
|
8191
8191
|
_,
|
|
8192
|
-
|
|
8192
|
+
N,
|
|
8193
8193
|
D,
|
|
8194
8194
|
O,
|
|
8195
8195
|
v,
|
|
8196
|
-
|
|
8196
|
+
g,
|
|
8197
8197
|
L,
|
|
8198
8198
|
W
|
|
8199
8199
|
);
|
|
8200
8200
|
}
|
|
8201
8201
|
}
|
|
8202
|
-
function u(_,
|
|
8202
|
+
function u(_, N, D, O, v, g, L, R) {
|
|
8203
8203
|
if (L === R || v.has(
|
|
8204
8204
|
L,
|
|
8205
8205
|
R,
|
|
8206
|
-
|
|
8206
|
+
g
|
|
8207
8207
|
))
|
|
8208
8208
|
return;
|
|
8209
|
-
v.add(L, R,
|
|
8209
|
+
v.add(L, R, g);
|
|
8210
8210
|
const j = _.getFragment(L), V = _.getFragment(R);
|
|
8211
8211
|
if (!j || !V)
|
|
8212
8212
|
return;
|
|
@@ -8221,53 +8221,53 @@ function yo() {
|
|
|
8221
8221
|
);
|
|
8222
8222
|
p(
|
|
8223
8223
|
_,
|
|
8224
|
-
|
|
8224
|
+
N,
|
|
8225
8225
|
D,
|
|
8226
8226
|
O,
|
|
8227
8227
|
v,
|
|
8228
|
-
|
|
8228
|
+
g,
|
|
8229
8229
|
U,
|
|
8230
8230
|
P
|
|
8231
8231
|
);
|
|
8232
8232
|
for (const te of K)
|
|
8233
8233
|
u(
|
|
8234
8234
|
_,
|
|
8235
|
-
|
|
8235
|
+
N,
|
|
8236
8236
|
D,
|
|
8237
8237
|
O,
|
|
8238
8238
|
v,
|
|
8239
|
-
|
|
8239
|
+
g,
|
|
8240
8240
|
L,
|
|
8241
8241
|
te
|
|
8242
8242
|
);
|
|
8243
8243
|
for (const te of W)
|
|
8244
8244
|
u(
|
|
8245
8245
|
_,
|
|
8246
|
-
|
|
8246
|
+
N,
|
|
8247
8247
|
D,
|
|
8248
8248
|
O,
|
|
8249
8249
|
v,
|
|
8250
|
-
|
|
8250
|
+
g,
|
|
8251
8251
|
te,
|
|
8252
8252
|
R
|
|
8253
8253
|
);
|
|
8254
8254
|
}
|
|
8255
|
-
function c(_,
|
|
8255
|
+
function c(_, N, D, O, v, g, L, R, j) {
|
|
8256
8256
|
const V = [], [U, W] = I(
|
|
8257
8257
|
_,
|
|
8258
|
-
g,
|
|
8259
8258
|
N,
|
|
8259
|
+
g,
|
|
8260
8260
|
L
|
|
8261
8261
|
), [P, K] = I(
|
|
8262
8262
|
_,
|
|
8263
|
-
|
|
8263
|
+
N,
|
|
8264
8264
|
R,
|
|
8265
8265
|
j
|
|
8266
8266
|
);
|
|
8267
8267
|
p(
|
|
8268
8268
|
_,
|
|
8269
8269
|
V,
|
|
8270
|
-
|
|
8270
|
+
N,
|
|
8271
8271
|
D,
|
|
8272
8272
|
O,
|
|
8273
8273
|
v,
|
|
@@ -8278,7 +8278,7 @@ function yo() {
|
|
|
8278
8278
|
m(
|
|
8279
8279
|
_,
|
|
8280
8280
|
V,
|
|
8281
|
-
|
|
8281
|
+
N,
|
|
8282
8282
|
D,
|
|
8283
8283
|
O,
|
|
8284
8284
|
v,
|
|
@@ -8289,7 +8289,7 @@ function yo() {
|
|
|
8289
8289
|
m(
|
|
8290
8290
|
_,
|
|
8291
8291
|
V,
|
|
8292
|
-
|
|
8292
|
+
N,
|
|
8293
8293
|
D,
|
|
8294
8294
|
O,
|
|
8295
8295
|
v,
|
|
@@ -8301,7 +8301,7 @@ function yo() {
|
|
|
8301
8301
|
u(
|
|
8302
8302
|
_,
|
|
8303
8303
|
V,
|
|
8304
|
-
|
|
8304
|
+
N,
|
|
8305
8305
|
D,
|
|
8306
8306
|
O,
|
|
8307
8307
|
v,
|
|
@@ -8310,8 +8310,8 @@ function yo() {
|
|
|
8310
8310
|
);
|
|
8311
8311
|
return V;
|
|
8312
8312
|
}
|
|
8313
|
-
function f(_,
|
|
8314
|
-
for (const [L, R] of Object.entries(
|
|
8313
|
+
function f(_, N, D, O, v, g) {
|
|
8314
|
+
for (const [L, R] of Object.entries(g))
|
|
8315
8315
|
if (R.length > 1)
|
|
8316
8316
|
for (let j = 0; j < R.length; j++)
|
|
8317
8317
|
for (let V = j + 1; V < R.length; V++) {
|
|
@@ -8326,10 +8326,10 @@ function yo() {
|
|
|
8326
8326
|
R[j],
|
|
8327
8327
|
R[V]
|
|
8328
8328
|
);
|
|
8329
|
-
U &&
|
|
8329
|
+
U && N.push(U);
|
|
8330
8330
|
}
|
|
8331
8331
|
}
|
|
8332
|
-
function p(_,
|
|
8332
|
+
function p(_, N, D, O, v, g, L, R) {
|
|
8333
8333
|
for (const [j, V] of Object.entries(L)) {
|
|
8334
8334
|
const U = R[j];
|
|
8335
8335
|
if (U)
|
|
@@ -8340,28 +8340,28 @@ function yo() {
|
|
|
8340
8340
|
D,
|
|
8341
8341
|
O,
|
|
8342
8342
|
v,
|
|
8343
|
-
|
|
8343
|
+
g,
|
|
8344
8344
|
j,
|
|
8345
8345
|
W,
|
|
8346
8346
|
P
|
|
8347
8347
|
);
|
|
8348
|
-
K &&
|
|
8348
|
+
K && N.push(K);
|
|
8349
8349
|
}
|
|
8350
8350
|
}
|
|
8351
8351
|
}
|
|
8352
|
-
function b(_,
|
|
8352
|
+
function b(_, N, D, O, v, g, L, R) {
|
|
8353
8353
|
const [j, V, U] = L, [W, P, K] = R, te = v || j !== W && (0, t.isObjectType)(j) && (0, t.isObjectType)(W);
|
|
8354
8354
|
if (!te) {
|
|
8355
8355
|
const Y = V.name.value, Z = P.name.value;
|
|
8356
8356
|
if (Y !== Z)
|
|
8357
8357
|
return [
|
|
8358
|
-
[
|
|
8358
|
+
[g, `"${Y}" and "${Z}" are different fields`],
|
|
8359
8359
|
[V],
|
|
8360
8360
|
[P]
|
|
8361
8361
|
];
|
|
8362
8362
|
if (!T(V, P))
|
|
8363
8363
|
return [
|
|
8364
|
-
[
|
|
8364
|
+
[g, "they have differing arguments"],
|
|
8365
8365
|
[V],
|
|
8366
8366
|
[P]
|
|
8367
8367
|
];
|
|
@@ -8370,7 +8370,7 @@ function yo() {
|
|
|
8370
8370
|
if (pe && G && h(pe, G))
|
|
8371
8371
|
return [
|
|
8372
8372
|
[
|
|
8373
|
-
|
|
8373
|
+
g,
|
|
8374
8374
|
`they return conflicting types "${(0, e.inspect)(
|
|
8375
8375
|
pe
|
|
8376
8376
|
)}" and "${(0, e.inspect)(G)}"`
|
|
@@ -8382,7 +8382,7 @@ function yo() {
|
|
|
8382
8382
|
if ($ && x) {
|
|
8383
8383
|
const Y = c(
|
|
8384
8384
|
_,
|
|
8385
|
-
|
|
8385
|
+
N,
|
|
8386
8386
|
D,
|
|
8387
8387
|
O,
|
|
8388
8388
|
te,
|
|
@@ -8391,44 +8391,44 @@ function yo() {
|
|
|
8391
8391
|
(0, t.getNamedType)(G),
|
|
8392
8392
|
x
|
|
8393
8393
|
);
|
|
8394
|
-
return k(Y,
|
|
8394
|
+
return k(Y, g, V, P);
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
|
-
function T(_,
|
|
8398
|
-
const D = _.arguments, O =
|
|
8397
|
+
function T(_, N) {
|
|
8398
|
+
const D = _.arguments, O = N.arguments;
|
|
8399
8399
|
if (D === void 0 || D.length === 0)
|
|
8400
8400
|
return O === void 0 || O.length === 0;
|
|
8401
8401
|
if (O === void 0 || O.length === 0 || D.length !== O.length)
|
|
8402
8402
|
return !1;
|
|
8403
|
-
const v = new Map(O.map(({ name:
|
|
8404
|
-
return D.every((
|
|
8405
|
-
const L =
|
|
8403
|
+
const v = new Map(O.map(({ name: g, value: L }) => [g.value, L]));
|
|
8404
|
+
return D.every((g) => {
|
|
8405
|
+
const L = g.value, R = v.get(g.name.value);
|
|
8406
8406
|
return R === void 0 ? !1 : y(L) === y(R);
|
|
8407
8407
|
});
|
|
8408
8408
|
}
|
|
8409
8409
|
function y(_) {
|
|
8410
8410
|
return (0, i.print)((0, r.sortValueNode)(_));
|
|
8411
8411
|
}
|
|
8412
|
-
function h(_,
|
|
8413
|
-
return (0, t.isListType)(_) ? (0, t.isListType)(
|
|
8412
|
+
function h(_, N) {
|
|
8413
|
+
return (0, t.isListType)(_) ? (0, t.isListType)(N) ? h(_.ofType, N.ofType) : !0 : (0, t.isListType)(N) ? !0 : (0, t.isNonNullType)(_) ? (0, t.isNonNullType)(N) ? h(_.ofType, N.ofType) : !0 : (0, t.isNonNullType)(N) ? !0 : (0, t.isLeafType)(_) || (0, t.isLeafType)(N) ? _ !== N : !1;
|
|
8414
8414
|
}
|
|
8415
|
-
function I(_,
|
|
8416
|
-
const v =
|
|
8415
|
+
function I(_, N, D, O) {
|
|
8416
|
+
const v = N.get(O);
|
|
8417
8417
|
if (v)
|
|
8418
8418
|
return v;
|
|
8419
|
-
const
|
|
8419
|
+
const g = /* @__PURE__ */ Object.create(null), L = /* @__PURE__ */ Object.create(null);
|
|
8420
8420
|
E(
|
|
8421
8421
|
_,
|
|
8422
8422
|
D,
|
|
8423
8423
|
O,
|
|
8424
|
-
|
|
8424
|
+
g,
|
|
8425
8425
|
L
|
|
8426
8426
|
);
|
|
8427
|
-
const R = [
|
|
8428
|
-
return
|
|
8427
|
+
const R = [g, Object.keys(L)];
|
|
8428
|
+
return N.set(O, R), R;
|
|
8429
8429
|
}
|
|
8430
|
-
function S(_,
|
|
8431
|
-
const O =
|
|
8430
|
+
function S(_, N, D) {
|
|
8431
|
+
const O = N.get(D.selectionSet);
|
|
8432
8432
|
if (O)
|
|
8433
8433
|
return O;
|
|
8434
8434
|
const v = (0, o.typeFromAST)(
|
|
@@ -8437,31 +8437,31 @@ function yo() {
|
|
|
8437
8437
|
);
|
|
8438
8438
|
return I(
|
|
8439
8439
|
_,
|
|
8440
|
-
|
|
8440
|
+
N,
|
|
8441
8441
|
v,
|
|
8442
8442
|
D.selectionSet
|
|
8443
8443
|
);
|
|
8444
8444
|
}
|
|
8445
|
-
function E(_,
|
|
8446
|
-
for (const
|
|
8447
|
-
switch (
|
|
8445
|
+
function E(_, N, D, O, v) {
|
|
8446
|
+
for (const g of D.selections)
|
|
8447
|
+
switch (g.kind) {
|
|
8448
8448
|
case a.Kind.FIELD: {
|
|
8449
|
-
const L =
|
|
8449
|
+
const L = g.name.value;
|
|
8450
8450
|
let R;
|
|
8451
|
-
((0, t.isObjectType)(
|
|
8452
|
-
const j =
|
|
8453
|
-
O[j] || (O[j] = []), O[j].push([
|
|
8451
|
+
((0, t.isObjectType)(N) || (0, t.isInterfaceType)(N)) && (R = N.getFields()[L]);
|
|
8452
|
+
const j = g.alias ? g.alias.value : L;
|
|
8453
|
+
O[j] || (O[j] = []), O[j].push([N, g, R]);
|
|
8454
8454
|
break;
|
|
8455
8455
|
}
|
|
8456
8456
|
case a.Kind.FRAGMENT_SPREAD:
|
|
8457
|
-
v[
|
|
8457
|
+
v[g.name.value] = !0;
|
|
8458
8458
|
break;
|
|
8459
8459
|
case a.Kind.INLINE_FRAGMENT: {
|
|
8460
|
-
const L =
|
|
8460
|
+
const L = g.typeCondition, R = L ? (0, o.typeFromAST)(_.getSchema(), L) : N;
|
|
8461
8461
|
E(
|
|
8462
8462
|
_,
|
|
8463
8463
|
R,
|
|
8464
|
-
|
|
8464
|
+
g.selectionSet,
|
|
8465
8465
|
O,
|
|
8466
8466
|
v
|
|
8467
8467
|
);
|
|
@@ -8469,10 +8469,10 @@ function yo() {
|
|
|
8469
8469
|
}
|
|
8470
8470
|
}
|
|
8471
8471
|
}
|
|
8472
|
-
function k(_,
|
|
8472
|
+
function k(_, N, D, O) {
|
|
8473
8473
|
if (_.length > 0)
|
|
8474
8474
|
return [
|
|
8475
|
-
[
|
|
8475
|
+
[N, _.map(([v]) => v)],
|
|
8476
8476
|
[D, ..._.map(([, v]) => v).flat()],
|
|
8477
8477
|
[O, ..._.map(([, , v]) => v).flat()]
|
|
8478
8478
|
];
|
|
@@ -8481,31 +8481,31 @@ function yo() {
|
|
|
8481
8481
|
constructor() {
|
|
8482
8482
|
this._data = /* @__PURE__ */ new Map();
|
|
8483
8483
|
}
|
|
8484
|
-
has(
|
|
8484
|
+
has(N, D, O) {
|
|
8485
8485
|
var v;
|
|
8486
|
-
const
|
|
8487
|
-
return
|
|
8486
|
+
const g = (v = this._data.get(N)) === null || v === void 0 ? void 0 : v.get(D);
|
|
8487
|
+
return g === void 0 ? !1 : O ? !0 : O === g;
|
|
8488
8488
|
}
|
|
8489
|
-
add(
|
|
8490
|
-
const v = this._data.get(
|
|
8491
|
-
v === void 0 ? this._data.set(
|
|
8489
|
+
add(N, D, O) {
|
|
8490
|
+
const v = this._data.get(N);
|
|
8491
|
+
v === void 0 ? this._data.set(N, /* @__PURE__ */ new Map([[D, O]])) : v.set(D, O);
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
8494
8494
|
class C {
|
|
8495
8495
|
constructor() {
|
|
8496
8496
|
this._orderedPairSet = new M();
|
|
8497
8497
|
}
|
|
8498
|
-
has(
|
|
8499
|
-
return
|
|
8498
|
+
has(N, D, O) {
|
|
8499
|
+
return N < D ? this._orderedPairSet.has(N, D, O) : this._orderedPairSet.has(D, N, O);
|
|
8500
8500
|
}
|
|
8501
|
-
add(
|
|
8502
|
-
|
|
8501
|
+
add(N, D, O) {
|
|
8502
|
+
N < D ? this._orderedPairSet.add(N, D, O) : this._orderedPairSet.add(D, N, O);
|
|
8503
8503
|
}
|
|
8504
8504
|
}
|
|
8505
8505
|
return wt;
|
|
8506
8506
|
}
|
|
8507
8507
|
var Ct = {}, ka;
|
|
8508
|
-
function
|
|
8508
|
+
function vo() {
|
|
8509
8509
|
if (ka) return Ct;
|
|
8510
8510
|
ka = 1, Object.defineProperty(Ct, "__esModule", {
|
|
8511
8511
|
value: !0
|
|
@@ -8565,7 +8565,7 @@ function ho() {
|
|
|
8565
8565
|
return Ct;
|
|
8566
8566
|
}
|
|
8567
8567
|
var Gt = {}, Fa;
|
|
8568
|
-
function
|
|
8568
|
+
function To() {
|
|
8569
8569
|
if (Fa) return Gt;
|
|
8570
8570
|
Fa = 1, Object.defineProperty(Gt, "__esModule", {
|
|
8571
8571
|
value: !0
|
|
@@ -8669,7 +8669,7 @@ function vo() {
|
|
|
8669
8669
|
return Gt;
|
|
8670
8670
|
}
|
|
8671
8671
|
var wn = {}, wa;
|
|
8672
|
-
function
|
|
8672
|
+
function bo() {
|
|
8673
8673
|
if (wa) return wn;
|
|
8674
8674
|
wa = 1, Object.defineProperty(wn, "__esModule", {
|
|
8675
8675
|
value: !0
|
|
@@ -8756,7 +8756,7 @@ function To() {
|
|
|
8756
8756
|
return wn;
|
|
8757
8757
|
}
|
|
8758
8758
|
var Mt = {}, Va;
|
|
8759
|
-
function
|
|
8759
|
+
function Eo() {
|
|
8760
8760
|
if (Va) return Mt;
|
|
8761
8761
|
Va = 1, Object.defineProperty(Mt, "__esModule", {
|
|
8762
8762
|
value: !0
|
|
@@ -8808,7 +8808,7 @@ function bo() {
|
|
|
8808
8808
|
return Mt;
|
|
8809
8809
|
}
|
|
8810
8810
|
var $t = {}, Vn = {}, bn = {}, Ut = {}, Ca;
|
|
8811
|
-
function
|
|
8811
|
+
function go() {
|
|
8812
8812
|
if (Ca) return Ut;
|
|
8813
8813
|
Ca = 1, Object.defineProperty(Ut, "__esModule", {
|
|
8814
8814
|
value: !0
|
|
@@ -8848,7 +8848,7 @@ function No() {
|
|
|
8848
8848
|
Ma = 1, Object.defineProperty(Qt, "__esModule", {
|
|
8849
8849
|
value: !0
|
|
8850
8850
|
}), Qt.coerceInputValue = m;
|
|
8851
|
-
var e = /* @__PURE__ */ on(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ ui(), t = /* @__PURE__ */ ze(), r = /* @__PURE__ */ Cr(), o = /* @__PURE__ */
|
|
8851
|
+
var e = /* @__PURE__ */ on(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ ui(), t = /* @__PURE__ */ ze(), r = /* @__PURE__ */ Cr(), o = /* @__PURE__ */ go(), s = /* @__PURE__ */ cn(), l = /* @__PURE__ */ ne(), d = /* @__PURE__ */ oe();
|
|
8852
8852
|
function m(f, p, b = u) {
|
|
8853
8853
|
return c(f, p, b, void 0);
|
|
8854
8854
|
}
|
|
@@ -9072,7 +9072,7 @@ function Xn() {
|
|
|
9072
9072
|
Ua = 1, Object.defineProperty(bn, "__esModule", {
|
|
9073
9073
|
value: !0
|
|
9074
9074
|
}), bn.getArgumentValues = c, bn.getDirectiveValues = f, bn.getVariableValues = m;
|
|
9075
|
-
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ un(), a = /* @__PURE__ */
|
|
9075
|
+
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ un(), a = /* @__PURE__ */ go(), i = /* @__PURE__ */ ne(), t = /* @__PURE__ */ se(), r = /* @__PURE__ */ Fe(), o = /* @__PURE__ */ oe(), s = /* @__PURE__ */ No(), l = /* @__PURE__ */ He(), d = /* @__PURE__ */ Gr();
|
|
9076
9076
|
function m(b, T, y, h) {
|
|
9077
9077
|
const I = [], S = h?.maxErrors;
|
|
9078
9078
|
try {
|
|
@@ -9150,14 +9150,14 @@ function Xn() {
|
|
|
9150
9150
|
I[E] = (0, s.coerceInputValue)(
|
|
9151
9151
|
M,
|
|
9152
9152
|
k,
|
|
9153
|
-
(C, _,
|
|
9153
|
+
(C, _, N) => {
|
|
9154
9154
|
let D = `Variable "$${E}" got invalid value ` + (0, e.inspect)(_);
|
|
9155
9155
|
C.length > 0 && (D += ` at "${E}${(0, a.printPathArray)(
|
|
9156
9156
|
C
|
|
9157
9157
|
)}"`), h(
|
|
9158
|
-
new i.GraphQLError(D + "; " +
|
|
9158
|
+
new i.GraphQLError(D + "; " + N.message, {
|
|
9159
9159
|
nodes: S,
|
|
9160
|
-
originalError:
|
|
9160
|
+
originalError: N
|
|
9161
9161
|
})
|
|
9162
9162
|
);
|
|
9163
9163
|
}
|
|
@@ -9187,10 +9187,10 @@ function Xn() {
|
|
|
9187
9187
|
);
|
|
9188
9188
|
continue;
|
|
9189
9189
|
}
|
|
9190
|
-
const
|
|
9191
|
-
let D =
|
|
9192
|
-
if (
|
|
9193
|
-
const v =
|
|
9190
|
+
const N = _.value;
|
|
9191
|
+
let D = N.kind === t.Kind.NULL;
|
|
9192
|
+
if (N.kind === t.Kind.VARIABLE) {
|
|
9193
|
+
const v = N.name.value;
|
|
9194
9194
|
if (y == null || !p(y, v)) {
|
|
9195
9195
|
if (k.defaultValue !== void 0)
|
|
9196
9196
|
I[M] = k.defaultValue;
|
|
@@ -9200,7 +9200,7 @@ function Xn() {
|
|
|
9200
9200
|
C
|
|
9201
9201
|
)}" was provided the variable "$${v}" which was not provided a runtime value.`,
|
|
9202
9202
|
{
|
|
9203
|
-
nodes:
|
|
9203
|
+
nodes: N
|
|
9204
9204
|
}
|
|
9205
9205
|
);
|
|
9206
9206
|
continue;
|
|
@@ -9213,21 +9213,21 @@ function Xn() {
|
|
|
9213
9213
|
C
|
|
9214
9214
|
)}" must not be null.`,
|
|
9215
9215
|
{
|
|
9216
|
-
nodes:
|
|
9216
|
+
nodes: N
|
|
9217
9217
|
}
|
|
9218
9218
|
);
|
|
9219
9219
|
const O = (0, d.valueFromAST)(
|
|
9220
|
-
|
|
9220
|
+
N,
|
|
9221
9221
|
C,
|
|
9222
9222
|
y
|
|
9223
9223
|
);
|
|
9224
9224
|
if (O === void 0)
|
|
9225
9225
|
throw new i.GraphQLError(
|
|
9226
9226
|
`Argument "${M}" has invalid value ${(0, r.print)(
|
|
9227
|
-
|
|
9227
|
+
N
|
|
9228
9228
|
)}.`,
|
|
9229
9229
|
{
|
|
9230
|
-
nodes:
|
|
9230
|
+
nodes: N
|
|
9231
9231
|
}
|
|
9232
9232
|
);
|
|
9233
9233
|
I[M] = O;
|
|
@@ -9356,7 +9356,7 @@ function li() {
|
|
|
9356
9356
|
return Vn;
|
|
9357
9357
|
}
|
|
9358
9358
|
var qa;
|
|
9359
|
-
function
|
|
9359
|
+
function Oo() {
|
|
9360
9360
|
if (qa) return $t;
|
|
9361
9361
|
qa = 1, Object.defineProperty($t, "__esModule", {
|
|
9362
9362
|
value: !0
|
|
@@ -9422,7 +9422,7 @@ function pi() {
|
|
|
9422
9422
|
return Bt;
|
|
9423
9423
|
}
|
|
9424
9424
|
var Ba;
|
|
9425
|
-
function
|
|
9425
|
+
function _o() {
|
|
9426
9426
|
if (Ba) return Kt;
|
|
9427
9427
|
Ba = 1, Object.defineProperty(Kt, "__esModule", {
|
|
9428
9428
|
value: !0
|
|
@@ -9470,7 +9470,7 @@ function Oo() {
|
|
|
9470
9470
|
return Kt;
|
|
9471
9471
|
}
|
|
9472
9472
|
var xt = {}, xa;
|
|
9473
|
-
function
|
|
9473
|
+
function Io() {
|
|
9474
9474
|
if (xa) return xt;
|
|
9475
9475
|
xa = 1, Object.defineProperty(xt, "__esModule", {
|
|
9476
9476
|
value: !0
|
|
@@ -9501,7 +9501,7 @@ function _o() {
|
|
|
9501
9501
|
return xt;
|
|
9502
9502
|
}
|
|
9503
9503
|
var Yt = {}, Ya;
|
|
9504
|
-
function
|
|
9504
|
+
function So() {
|
|
9505
9505
|
if (Ya) return Yt;
|
|
9506
9506
|
Ya = 1, Object.defineProperty(Yt, "__esModule", {
|
|
9507
9507
|
value: !0
|
|
@@ -9537,7 +9537,7 @@ function Io() {
|
|
|
9537
9537
|
return Yt;
|
|
9538
9538
|
}
|
|
9539
9539
|
var Jt = {}, Ja;
|
|
9540
|
-
function
|
|
9540
|
+
function Lo() {
|
|
9541
9541
|
if (Ja) return Jt;
|
|
9542
9542
|
Ja = 1, Object.defineProperty(Jt, "__esModule", {
|
|
9543
9543
|
value: !0
|
|
@@ -9583,7 +9583,7 @@ function So() {
|
|
|
9583
9583
|
return Jt;
|
|
9584
9584
|
}
|
|
9585
9585
|
var zt = {}, za;
|
|
9586
|
-
function
|
|
9586
|
+
function Ro() {
|
|
9587
9587
|
if (za) return zt;
|
|
9588
9588
|
za = 1, Object.defineProperty(zt, "__esModule", {
|
|
9589
9589
|
value: !0
|
|
@@ -9624,7 +9624,7 @@ function Lo() {
|
|
|
9624
9624
|
return zt;
|
|
9625
9625
|
}
|
|
9626
9626
|
var Xt = {}, Xa;
|
|
9627
|
-
function
|
|
9627
|
+
function Do() {
|
|
9628
9628
|
if (Xa) return Xt;
|
|
9629
9629
|
Xa = 1, Object.defineProperty(Xt, "__esModule", {
|
|
9630
9630
|
value: !0
|
|
@@ -9672,7 +9672,7 @@ function Ro() {
|
|
|
9672
9672
|
return Xt;
|
|
9673
9673
|
}
|
|
9674
9674
|
var Ht = {}, Ha;
|
|
9675
|
-
function
|
|
9675
|
+
function Ao() {
|
|
9676
9676
|
if (Ha) return Ht;
|
|
9677
9677
|
Ha = 1, Object.defineProperty(Ht, "__esModule", {
|
|
9678
9678
|
value: !0
|
|
@@ -9698,7 +9698,7 @@ function Do() {
|
|
|
9698
9698
|
return Ht;
|
|
9699
9699
|
}
|
|
9700
9700
|
var Wt = {}, Wa;
|
|
9701
|
-
function
|
|
9701
|
+
function jo() {
|
|
9702
9702
|
if (Wa) return Wt;
|
|
9703
9703
|
Wa = 1, Object.defineProperty(Wt, "__esModule", {
|
|
9704
9704
|
value: !0
|
|
@@ -9733,7 +9733,7 @@ function Ao() {
|
|
|
9733
9733
|
return Wt;
|
|
9734
9734
|
}
|
|
9735
9735
|
var Zt = {}, Za;
|
|
9736
|
-
function
|
|
9736
|
+
function Po() {
|
|
9737
9737
|
if (Za) return Zt;
|
|
9738
9738
|
Za = 1, Object.defineProperty(Zt, "__esModule", {
|
|
9739
9739
|
value: !0
|
|
@@ -9762,7 +9762,7 @@ function jo() {
|
|
|
9762
9762
|
return Zt;
|
|
9763
9763
|
}
|
|
9764
9764
|
var er = {}, es;
|
|
9765
|
-
function
|
|
9765
|
+
function ko() {
|
|
9766
9766
|
if (es) return er;
|
|
9767
9767
|
es = 1, Object.defineProperty(er, "__esModule", {
|
|
9768
9768
|
value: !0
|
|
@@ -9805,7 +9805,7 @@ function Po() {
|
|
|
9805
9805
|
return er;
|
|
9806
9806
|
}
|
|
9807
9807
|
var nr = {}, ns;
|
|
9808
|
-
function
|
|
9808
|
+
function Fo() {
|
|
9809
9809
|
if (ns) return nr;
|
|
9810
9810
|
ns = 1, Object.defineProperty(nr, "__esModule", {
|
|
9811
9811
|
value: !0
|
|
@@ -9847,7 +9847,7 @@ function ko() {
|
|
|
9847
9847
|
return nr;
|
|
9848
9848
|
}
|
|
9849
9849
|
var tr = {}, ts;
|
|
9850
|
-
function
|
|
9850
|
+
function wo() {
|
|
9851
9851
|
if (ts) return tr;
|
|
9852
9852
|
ts = 1, Object.defineProperty(tr, "__esModule", {
|
|
9853
9853
|
value: !0
|
|
@@ -9876,7 +9876,7 @@ function Fo() {
|
|
|
9876
9876
|
return tr;
|
|
9877
9877
|
}
|
|
9878
9878
|
var rr = {}, rs;
|
|
9879
|
-
function
|
|
9879
|
+
function Vo() {
|
|
9880
9880
|
if (rs) return rr;
|
|
9881
9881
|
rs = 1, Object.defineProperty(rr, "__esModule", {
|
|
9882
9882
|
value: !0
|
|
@@ -10040,7 +10040,7 @@ function wo() {
|
|
|
10040
10040
|
return rr;
|
|
10041
10041
|
}
|
|
10042
10042
|
var ir = {}, is;
|
|
10043
|
-
function
|
|
10043
|
+
function Co() {
|
|
10044
10044
|
if (is) return ir;
|
|
10045
10045
|
is = 1, Object.defineProperty(ir, "__esModule", {
|
|
10046
10046
|
value: !0
|
|
@@ -10070,7 +10070,7 @@ function Vo() {
|
|
|
10070
10070
|
return ir;
|
|
10071
10071
|
}
|
|
10072
10072
|
var ar = {}, as;
|
|
10073
|
-
function
|
|
10073
|
+
function Go() {
|
|
10074
10074
|
if (as) return ar;
|
|
10075
10075
|
as = 1, Object.defineProperty(ar, "__esModule", {
|
|
10076
10076
|
value: !0
|
|
@@ -10139,12 +10139,12 @@ function Co() {
|
|
|
10139
10139
|
return ar;
|
|
10140
10140
|
}
|
|
10141
10141
|
var ss;
|
|
10142
|
-
function
|
|
10142
|
+
function Mo() {
|
|
10143
10143
|
if (ss) return xe;
|
|
10144
10144
|
ss = 1, Object.defineProperty(xe, "__esModule", {
|
|
10145
10145
|
value: !0
|
|
10146
10146
|
}), xe.specifiedSDLRules = xe.specifiedRules = xe.recommendedRules = void 0;
|
|
10147
|
-
var e = /* @__PURE__ */
|
|
10147
|
+
var e = /* @__PURE__ */ eo(), n = /* @__PURE__ */ no(), a = /* @__PURE__ */ to(), i = /* @__PURE__ */ ro(), t = /* @__PURE__ */ io(), r = /* @__PURE__ */ ao(), o = /* @__PURE__ */ so(), s = /* @__PURE__ */ oo(), l = /* @__PURE__ */ uo(), d = /* @__PURE__ */ co(), m = /* @__PURE__ */ lo(), u = /* @__PURE__ */ po(), c = /* @__PURE__ */ fo(), f = /* @__PURE__ */ mo(), p = /* @__PURE__ */ ho(), b = /* @__PURE__ */ vo(), T = /* @__PURE__ */ To(), y = /* @__PURE__ */ bo(), h = /* @__PURE__ */ Eo(), I = /* @__PURE__ */ Oo(), S = /* @__PURE__ */ _o(), E = /* @__PURE__ */ Io(), k = /* @__PURE__ */ So(), M = /* @__PURE__ */ Lo(), C = /* @__PURE__ */ Ro(), _ = /* @__PURE__ */ Do(), N = /* @__PURE__ */ Ao(), D = /* @__PURE__ */ jo(), O = /* @__PURE__ */ Po(), v = /* @__PURE__ */ ko(), g = /* @__PURE__ */ Fo(), L = /* @__PURE__ */ wo(), R = /* @__PURE__ */ Vo(), j = /* @__PURE__ */ Co(), V = /* @__PURE__ */ Go();
|
|
10148
10148
|
const U = Object.freeze([
|
|
10149
10149
|
d.MaxIntrospectionDepthRule
|
|
10150
10150
|
]);
|
|
@@ -10159,7 +10159,7 @@ function Go() {
|
|
|
10159
10159
|
j.VariablesAreInputTypesRule,
|
|
10160
10160
|
h.ScalarLeafsRule,
|
|
10161
10161
|
n.FieldsOnCorrectTypeRule,
|
|
10162
|
-
|
|
10162
|
+
N.UniqueFragmentNamesRule,
|
|
10163
10163
|
r.KnownFragmentNamesRule,
|
|
10164
10164
|
c.NoUnusedFragmentsRule,
|
|
10165
10165
|
b.PossibleFragmentSpreadsRule,
|
|
@@ -10182,7 +10182,7 @@ function Go() {
|
|
|
10182
10182
|
const P = Object.freeze([
|
|
10183
10183
|
l.LoneSchemaDefinitionRule,
|
|
10184
10184
|
v.UniqueOperationTypesRule,
|
|
10185
|
-
|
|
10185
|
+
g.UniqueTypeNamesRule,
|
|
10186
10186
|
C.UniqueEnumValueNamesRule,
|
|
10187
10187
|
_.UniqueFieldDefinitionNamesRule,
|
|
10188
10188
|
S.UniqueArgumentDefinitionNamesRule,
|
|
@@ -10199,7 +10199,7 @@ function Go() {
|
|
|
10199
10199
|
return xe.specifiedSDLRules = P, xe;
|
|
10200
10200
|
}
|
|
10201
10201
|
var Ye = {}, os;
|
|
10202
|
-
function
|
|
10202
|
+
function $o() {
|
|
10203
10203
|
if (os) return Ye;
|
|
10204
10204
|
os = 1, Object.defineProperty(Ye, "__esModule", {
|
|
10205
10205
|
value: !0
|
|
@@ -10350,7 +10350,7 @@ function Mr() {
|
|
|
10350
10350
|
us = 1, Object.defineProperty(sn, "__esModule", {
|
|
10351
10351
|
value: !0
|
|
10352
10352
|
}), sn.assertValidSDL = d, sn.assertValidSDLExtension = m, sn.validate = s, sn.validateSDL = l;
|
|
10353
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ ne(), a = /* @__PURE__ */ _n(), i = /* @__PURE__ */ Vr(), t = /* @__PURE__ */ ci(), r = /* @__PURE__ */
|
|
10353
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ ne(), a = /* @__PURE__ */ _n(), i = /* @__PURE__ */ Vr(), t = /* @__PURE__ */ ci(), r = /* @__PURE__ */ Mo(), o = /* @__PURE__ */ $o();
|
|
10354
10354
|
function s(u, c, f = r.specifiedRules, p, b = new t.TypeInfo(u)) {
|
|
10355
10355
|
var T;
|
|
10356
10356
|
const y = (T = p?.maxErrors) !== null && T !== void 0 ? T : 100;
|
|
@@ -10409,7 +10409,7 @@ function Mr() {
|
|
|
10409
10409
|
return sn;
|
|
10410
10410
|
}
|
|
10411
10411
|
var je = {}, sr = {}, cs;
|
|
10412
|
-
function
|
|
10412
|
+
function ku() {
|
|
10413
10413
|
if (cs) return sr;
|
|
10414
10414
|
cs = 1, Object.defineProperty(sr, "__esModule", {
|
|
10415
10415
|
value: !0
|
|
@@ -10429,7 +10429,7 @@ function Pu() {
|
|
|
10429
10429
|
return sr;
|
|
10430
10430
|
}
|
|
10431
10431
|
var or = {}, ls;
|
|
10432
|
-
function
|
|
10432
|
+
function Fu() {
|
|
10433
10433
|
if (ls) return or;
|
|
10434
10434
|
ls = 1, Object.defineProperty(or, "__esModule", {
|
|
10435
10435
|
value: !0
|
|
@@ -10445,7 +10445,7 @@ function ku() {
|
|
|
10445
10445
|
return or;
|
|
10446
10446
|
}
|
|
10447
10447
|
var ur = {}, ps;
|
|
10448
|
-
function
|
|
10448
|
+
function wu() {
|
|
10449
10449
|
if (ps) return ur;
|
|
10450
10450
|
ps = 1, Object.defineProperty(ur, "__esModule", {
|
|
10451
10451
|
value: !0
|
|
@@ -10465,7 +10465,7 @@ function $r() {
|
|
|
10465
10465
|
ds = 1, Object.defineProperty(je, "__esModule", {
|
|
10466
10466
|
value: !0
|
|
10467
10467
|
}), je.assertValidExecutionArguments = M, je.buildExecutionContext = C, je.buildResolveInfo = v, je.defaultTypeResolver = je.defaultFieldResolver = void 0, je.execute = S, je.executeSync = E, je.getFieldDef = pe;
|
|
10468
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ ui(), t = /* @__PURE__ */ ze(), r = /* @__PURE__ */ ai(), o = /* @__PURE__ */
|
|
10468
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ ui(), t = /* @__PURE__ */ ze(), r = /* @__PURE__ */ ai(), o = /* @__PURE__ */ ku(), s = /* @__PURE__ */ Cr(), l = /* @__PURE__ */ Fu(), d = /* @__PURE__ */ wu(), m = /* @__PURE__ */ ne(), u = /* @__PURE__ */ ii(), c = /* @__PURE__ */ Qe(), f = /* @__PURE__ */ se(), p = /* @__PURE__ */ oe(), b = /* @__PURE__ */ Ge(), T = /* @__PURE__ */ Vr(), y = /* @__PURE__ */ li(), h = /* @__PURE__ */ Xn();
|
|
10469
10469
|
const I = (0, o.memoize3)(
|
|
10470
10470
|
(G, $, x) => (0, y.collectSubfields)(
|
|
10471
10471
|
G.schema,
|
|
@@ -10528,7 +10528,7 @@ function $r() {
|
|
|
10528
10528
|
operationName: ce,
|
|
10529
10529
|
fieldResolver: he,
|
|
10530
10530
|
typeResolver: Oe,
|
|
10531
|
-
subscribeFieldResolver:
|
|
10531
|
+
subscribeFieldResolver: ge,
|
|
10532
10532
|
options: ve
|
|
10533
10533
|
} = G;
|
|
10534
10534
|
let _e;
|
|
@@ -10573,7 +10573,7 @@ function $r() {
|
|
|
10573
10573
|
variableValues: We.coerced,
|
|
10574
10574
|
fieldResolver: he ?? te,
|
|
10575
10575
|
typeResolver: Oe ?? K,
|
|
10576
|
-
subscribeFieldResolver:
|
|
10576
|
+
subscribeFieldResolver: ge ?? te,
|
|
10577
10577
|
errors: []
|
|
10578
10578
|
};
|
|
10579
10579
|
}
|
|
@@ -10597,7 +10597,7 @@ function $r() {
|
|
|
10597
10597
|
case c.OperationTypeNode.QUERY:
|
|
10598
10598
|
return D(G, Y, x, B, Z);
|
|
10599
10599
|
case c.OperationTypeNode.MUTATION:
|
|
10600
|
-
return
|
|
10600
|
+
return N(
|
|
10601
10601
|
G,
|
|
10602
10602
|
Y,
|
|
10603
10603
|
x,
|
|
@@ -10608,7 +10608,7 @@ function $r() {
|
|
|
10608
10608
|
return D(G, Y, x, B, Z);
|
|
10609
10609
|
}
|
|
10610
10610
|
}
|
|
10611
|
-
function
|
|
10611
|
+
function N(G, $, x, Y, Z) {
|
|
10612
10612
|
return (0, d.promiseReduce)(
|
|
10613
10613
|
Z.entries(),
|
|
10614
10614
|
(B, [ee, ie]) => {
|
|
@@ -10664,9 +10664,9 @@ function $r() {
|
|
|
10664
10664
|
ee,
|
|
10665
10665
|
Y[0],
|
|
10666
10666
|
G.variableValues
|
|
10667
|
-
), Oe = G.contextValue,
|
|
10667
|
+
), Oe = G.contextValue, ge = ue(x, he, Oe, ce);
|
|
10668
10668
|
let ve;
|
|
10669
|
-
return (0, r.isPromise)(
|
|
10669
|
+
return (0, r.isPromise)(ge) ? ve = ge.then(
|
|
10670
10670
|
(_e) => L(G, ie, Y, ce, Z, _e)
|
|
10671
10671
|
) : ve = L(
|
|
10672
10672
|
G,
|
|
@@ -10674,14 +10674,14 @@ function $r() {
|
|
|
10674
10674
|
Y,
|
|
10675
10675
|
ce,
|
|
10676
10676
|
Z,
|
|
10677
|
-
|
|
10677
|
+
ge
|
|
10678
10678
|
), (0, r.isPromise)(ve) ? ve.then(void 0, (_e) => {
|
|
10679
10679
|
const ke = (0, u.locatedError)(
|
|
10680
10680
|
_e,
|
|
10681
10681
|
Y,
|
|
10682
10682
|
(0, s.pathToArray)(Z)
|
|
10683
10683
|
);
|
|
10684
|
-
return
|
|
10684
|
+
return g(ke, ie, G);
|
|
10685
10685
|
}) : ve;
|
|
10686
10686
|
} catch (he) {
|
|
10687
10687
|
const Oe = (0, u.locatedError)(
|
|
@@ -10689,7 +10689,7 @@ function $r() {
|
|
|
10689
10689
|
Y,
|
|
10690
10690
|
(0, s.pathToArray)(Z)
|
|
10691
10691
|
);
|
|
10692
|
-
return
|
|
10692
|
+
return g(Oe, ie, G);
|
|
10693
10693
|
}
|
|
10694
10694
|
}
|
|
10695
10695
|
function v(G, $, x, Y, Z) {
|
|
@@ -10706,7 +10706,7 @@ function $r() {
|
|
|
10706
10706
|
variableValues: G.variableValues
|
|
10707
10707
|
};
|
|
10708
10708
|
}
|
|
10709
|
-
function
|
|
10709
|
+
function g(G, $, x) {
|
|
10710
10710
|
if ((0, p.isNonNullType)($))
|
|
10711
10711
|
throw G;
|
|
10712
10712
|
return x.errors.push(G), null;
|
|
@@ -10775,8 +10775,8 @@ function $r() {
|
|
|
10775
10775
|
const ue = Array.from(B, (ce, he) => {
|
|
10776
10776
|
const Oe = (0, s.addPath)(Z, he, void 0);
|
|
10777
10777
|
try {
|
|
10778
|
-
let
|
|
10779
|
-
return (0, r.isPromise)(ce) ?
|
|
10778
|
+
let ge;
|
|
10779
|
+
return (0, r.isPromise)(ce) ? ge = ce.then(
|
|
10780
10780
|
(ve) => L(
|
|
10781
10781
|
G,
|
|
10782
10782
|
ee,
|
|
@@ -10785,28 +10785,28 @@ function $r() {
|
|
|
10785
10785
|
Oe,
|
|
10786
10786
|
ve
|
|
10787
10787
|
)
|
|
10788
|
-
) :
|
|
10788
|
+
) : ge = L(
|
|
10789
10789
|
G,
|
|
10790
10790
|
ee,
|
|
10791
10791
|
x,
|
|
10792
10792
|
Y,
|
|
10793
10793
|
Oe,
|
|
10794
10794
|
ce
|
|
10795
|
-
), (0, r.isPromise)(
|
|
10795
|
+
), (0, r.isPromise)(ge) ? (ie = !0, ge.then(void 0, (ve) => {
|
|
10796
10796
|
const _e = (0, u.locatedError)(
|
|
10797
10797
|
ve,
|
|
10798
10798
|
x,
|
|
10799
10799
|
(0, s.pathToArray)(Oe)
|
|
10800
10800
|
);
|
|
10801
|
-
return
|
|
10802
|
-
})) :
|
|
10803
|
-
} catch (
|
|
10801
|
+
return g(_e, ee, G);
|
|
10802
|
+
})) : ge;
|
|
10803
|
+
} catch (ge) {
|
|
10804
10804
|
const ve = (0, u.locatedError)(
|
|
10805
|
-
|
|
10805
|
+
ge,
|
|
10806
10806
|
x,
|
|
10807
10807
|
(0, s.pathToArray)(Oe)
|
|
10808
10808
|
);
|
|
10809
|
-
return
|
|
10809
|
+
return g(ve, ee, G);
|
|
10810
10810
|
}
|
|
10811
10811
|
});
|
|
10812
10812
|
return ie ? Promise.all(ue) : ue;
|
|
@@ -10960,7 +10960,7 @@ function $r() {
|
|
|
10960
10960
|
return je;
|
|
10961
10961
|
}
|
|
10962
10962
|
var fs;
|
|
10963
|
-
function
|
|
10963
|
+
function Vu() {
|
|
10964
10964
|
if (fs) return Dn;
|
|
10965
10965
|
fs = 1, Object.defineProperty(Dn, "__esModule", {
|
|
10966
10966
|
value: !0
|
|
@@ -11019,7 +11019,7 @@ function wu() {
|
|
|
11019
11019
|
return Dn;
|
|
11020
11020
|
}
|
|
11021
11021
|
var Kr = {}, ms;
|
|
11022
|
-
function
|
|
11022
|
+
function Cu() {
|
|
11023
11023
|
return ms || (ms = 1, (function(e) {
|
|
11024
11024
|
Object.defineProperty(e, "__esModule", {
|
|
11025
11025
|
value: !0
|
|
@@ -11473,7 +11473,7 @@ function Vu() {
|
|
|
11473
11473
|
})(Kr)), Kr;
|
|
11474
11474
|
}
|
|
11475
11475
|
var Br = {}, ys;
|
|
11476
|
-
function
|
|
11476
|
+
function Gu() {
|
|
11477
11477
|
return ys || (ys = 1, (function(e) {
|
|
11478
11478
|
Object.defineProperty(e, "__esModule", {
|
|
11479
11479
|
value: !0
|
|
@@ -11643,11 +11643,11 @@ function Cu() {
|
|
|
11643
11643
|
return d.visitInParallel;
|
|
11644
11644
|
}
|
|
11645
11645
|
});
|
|
11646
|
-
var n = /* @__PURE__ */ si(), a = /* @__PURE__ */ ri(), i = /* @__PURE__ */
|
|
11646
|
+
var n = /* @__PURE__ */ si(), a = /* @__PURE__ */ ri(), i = /* @__PURE__ */ Xs(), t = /* @__PURE__ */ se(), r = /* @__PURE__ */ zn(), o = /* @__PURE__ */ Dr(), s = /* @__PURE__ */ On(), l = /* @__PURE__ */ Fe(), d = /* @__PURE__ */ _n(), m = /* @__PURE__ */ Qe(), u = /* @__PURE__ */ Sn(), c = /* @__PURE__ */ Jn();
|
|
11647
11647
|
})(Br)), Br;
|
|
11648
11648
|
}
|
|
11649
11649
|
var xr = {}, Gn = {}, cr = {}, hs;
|
|
11650
|
-
function
|
|
11650
|
+
function Mu() {
|
|
11651
11651
|
if (hs) return cr;
|
|
11652
11652
|
hs = 1, Object.defineProperty(cr, "__esModule", {
|
|
11653
11653
|
value: !0
|
|
@@ -11658,7 +11658,7 @@ function Gu() {
|
|
|
11658
11658
|
return cr;
|
|
11659
11659
|
}
|
|
11660
11660
|
var lr = {}, vs;
|
|
11661
|
-
function
|
|
11661
|
+
function $u() {
|
|
11662
11662
|
if (vs) return lr;
|
|
11663
11663
|
vs = 1, Object.defineProperty(lr, "__esModule", {
|
|
11664
11664
|
value: !0
|
|
@@ -11705,12 +11705,12 @@ function Mu() {
|
|
|
11705
11705
|
return lr;
|
|
11706
11706
|
}
|
|
11707
11707
|
var Ts;
|
|
11708
|
-
function
|
|
11708
|
+
function Uu() {
|
|
11709
11709
|
if (Ts) return Gn;
|
|
11710
11710
|
Ts = 1, Object.defineProperty(Gn, "__esModule", {
|
|
11711
11711
|
value: !0
|
|
11712
11712
|
}), Gn.createSourceEventStream = c, Gn.subscribe = m;
|
|
11713
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */
|
|
11713
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Mu(), i = /* @__PURE__ */ Cr(), t = /* @__PURE__ */ ne(), r = /* @__PURE__ */ ii(), o = /* @__PURE__ */ li(), s = /* @__PURE__ */ $r(), l = /* @__PURE__ */ $u(), d = /* @__PURE__ */ Xn();
|
|
11714
11714
|
async function m(p) {
|
|
11715
11715
|
arguments.length < 2 || (0, e.devAssert)(
|
|
11716
11716
|
!1,
|
|
@@ -11786,7 +11786,7 @@ function $u() {
|
|
|
11786
11786
|
}
|
|
11787
11787
|
);
|
|
11788
11788
|
}
|
|
11789
|
-
const _ = (0, i.addPath)(void 0, k, S.name),
|
|
11789
|
+
const _ = (0, i.addPath)(void 0, k, S.name), N = (0, s.buildResolveInfo)(
|
|
11790
11790
|
p,
|
|
11791
11791
|
C,
|
|
11792
11792
|
M,
|
|
@@ -11799,7 +11799,7 @@ function $u() {
|
|
|
11799
11799
|
C,
|
|
11800
11800
|
M[0],
|
|
11801
11801
|
h
|
|
11802
|
-
), v = p.contextValue, L = await ((D = C.subscribe) !== null && D !== void 0 ? D : p.subscribeFieldResolver)(I, O, v,
|
|
11802
|
+
), v = p.contextValue, L = await ((D = C.subscribe) !== null && D !== void 0 ? D : p.subscribeFieldResolver)(I, O, v, N);
|
|
11803
11803
|
if (L instanceof Error)
|
|
11804
11804
|
throw L;
|
|
11805
11805
|
return L;
|
|
@@ -11814,7 +11814,7 @@ function $u() {
|
|
|
11814
11814
|
return Gn;
|
|
11815
11815
|
}
|
|
11816
11816
|
var bs;
|
|
11817
|
-
function
|
|
11817
|
+
function Qu() {
|
|
11818
11818
|
return bs || (bs = 1, (function(e) {
|
|
11819
11819
|
Object.defineProperty(e, "__esModule", {
|
|
11820
11820
|
value: !0
|
|
@@ -11869,11 +11869,11 @@ function Uu() {
|
|
|
11869
11869
|
return i.subscribe;
|
|
11870
11870
|
}
|
|
11871
11871
|
});
|
|
11872
|
-
var n = /* @__PURE__ */ Cr(), a = /* @__PURE__ */ $r(), i = /* @__PURE__ */
|
|
11872
|
+
var n = /* @__PURE__ */ Cr(), a = /* @__PURE__ */ $r(), i = /* @__PURE__ */ Uu(), t = /* @__PURE__ */ Xn();
|
|
11873
11873
|
})(xr)), xr;
|
|
11874
11874
|
}
|
|
11875
11875
|
var Yr = {}, pr = {}, Es;
|
|
11876
|
-
function
|
|
11876
|
+
function qu() {
|
|
11877
11877
|
if (Es) return pr;
|
|
11878
11878
|
Es = 1, Object.defineProperty(pr, "__esModule", {
|
|
11879
11879
|
value: !0
|
|
@@ -11957,10 +11957,10 @@ function Qu() {
|
|
|
11957
11957
|
}
|
|
11958
11958
|
return pr;
|
|
11959
11959
|
}
|
|
11960
|
-
var dr = {},
|
|
11961
|
-
function
|
|
11962
|
-
if (
|
|
11963
|
-
|
|
11960
|
+
var dr = {}, gs;
|
|
11961
|
+
function Ku() {
|
|
11962
|
+
if (gs) return dr;
|
|
11963
|
+
gs = 1, Object.defineProperty(dr, "__esModule", {
|
|
11964
11964
|
value: !0
|
|
11965
11965
|
}), dr.NoSchemaIntrospectionCustomRule = i;
|
|
11966
11966
|
var e = /* @__PURE__ */ ne(), n = /* @__PURE__ */ oe(), a = /* @__PURE__ */ Ge();
|
|
@@ -11981,9 +11981,9 @@ function qu() {
|
|
|
11981
11981
|
}
|
|
11982
11982
|
return dr;
|
|
11983
11983
|
}
|
|
11984
|
-
var
|
|
11985
|
-
function
|
|
11986
|
-
return
|
|
11984
|
+
var Ns;
|
|
11985
|
+
function Bu() {
|
|
11986
|
+
return Ns || (Ns = 1, (function(e) {
|
|
11987
11987
|
Object.defineProperty(e, "__esModule", {
|
|
11988
11988
|
value: !0
|
|
11989
11989
|
}), Object.defineProperty(e, "ExecutableDefinitionsRule", {
|
|
@@ -12034,7 +12034,7 @@ function Ku() {
|
|
|
12034
12034
|
}), Object.defineProperty(e, "MaxIntrospectionDepthRule", {
|
|
12035
12035
|
enumerable: !0,
|
|
12036
12036
|
get: function() {
|
|
12037
|
-
return
|
|
12037
|
+
return g.MaxIntrospectionDepthRule;
|
|
12038
12038
|
}
|
|
12039
12039
|
}), Object.defineProperty(e, "NoDeprecatedCustomRule", {
|
|
12040
12040
|
enumerable: !0,
|
|
@@ -12154,7 +12154,7 @@ function Ku() {
|
|
|
12154
12154
|
}), Object.defineProperty(e, "UniqueVariableNamesRule", {
|
|
12155
12155
|
enumerable: !0,
|
|
12156
12156
|
get: function() {
|
|
12157
|
-
return
|
|
12157
|
+
return N.UniqueVariableNamesRule;
|
|
12158
12158
|
}
|
|
12159
12159
|
}), Object.defineProperty(e, "ValidationContext", {
|
|
12160
12160
|
enumerable: !0,
|
|
@@ -12192,11 +12192,11 @@ function Ku() {
|
|
|
12192
12192
|
return n.validate;
|
|
12193
12193
|
}
|
|
12194
12194
|
});
|
|
12195
|
-
var n = /* @__PURE__ */ Mr(), a = /* @__PURE__ */
|
|
12195
|
+
var n = /* @__PURE__ */ Mr(), a = /* @__PURE__ */ $o(), i = /* @__PURE__ */ Mo(), t = /* @__PURE__ */ eo(), r = /* @__PURE__ */ no(), o = /* @__PURE__ */ to(), s = /* @__PURE__ */ ro(), l = /* @__PURE__ */ io(), d = /* @__PURE__ */ ao(), m = /* @__PURE__ */ so(), u = /* @__PURE__ */ oo(), c = /* @__PURE__ */ lo(), f = /* @__PURE__ */ po(), p = /* @__PURE__ */ fo(), b = /* @__PURE__ */ mo(), T = /* @__PURE__ */ ho(), y = /* @__PURE__ */ vo(), h = /* @__PURE__ */ bo(), I = /* @__PURE__ */ Eo(), S = /* @__PURE__ */ Oo(), E = /* @__PURE__ */ Io(), k = /* @__PURE__ */ Lo(), M = /* @__PURE__ */ Ao(), C = /* @__PURE__ */ jo(), _ = /* @__PURE__ */ Po(), N = /* @__PURE__ */ wo(), D = /* @__PURE__ */ Vo(), O = /* @__PURE__ */ Co(), v = /* @__PURE__ */ Go(), g = /* @__PURE__ */ co(), L = /* @__PURE__ */ uo(), R = /* @__PURE__ */ ko(), j = /* @__PURE__ */ Fo(), V = /* @__PURE__ */ Ro(), U = /* @__PURE__ */ Do(), W = /* @__PURE__ */ _o(), P = /* @__PURE__ */ So(), K = /* @__PURE__ */ To(), te = /* @__PURE__ */ qu(), pe = /* @__PURE__ */ Ku();
|
|
12196
12196
|
})(Yr)), Yr;
|
|
12197
12197
|
}
|
|
12198
12198
|
var Jr = {}, fr = {}, Os;
|
|
12199
|
-
function
|
|
12199
|
+
function Uo() {
|
|
12200
12200
|
if (Os) return fr;
|
|
12201
12201
|
Os = 1, Object.defineProperty(fr, "__esModule", {
|
|
12202
12202
|
value: !0
|
|
@@ -12326,7 +12326,7 @@ function $o() {
|
|
|
12326
12326
|
return fr;
|
|
12327
12327
|
}
|
|
12328
12328
|
var mr = {}, _s;
|
|
12329
|
-
function
|
|
12329
|
+
function xu() {
|
|
12330
12330
|
if (_s) return mr;
|
|
12331
12331
|
_s = 1, Object.defineProperty(mr, "__esModule", {
|
|
12332
12332
|
value: !0
|
|
@@ -12349,7 +12349,7 @@ function Bu() {
|
|
|
12349
12349
|
return mr;
|
|
12350
12350
|
}
|
|
12351
12351
|
var yr = {}, Is;
|
|
12352
|
-
function
|
|
12352
|
+
function Yu() {
|
|
12353
12353
|
if (Is) return yr;
|
|
12354
12354
|
Is = 1, Object.defineProperty(yr, "__esModule", {
|
|
12355
12355
|
value: !0
|
|
@@ -12399,12 +12399,12 @@ function xu() {
|
|
|
12399
12399
|
return yr;
|
|
12400
12400
|
}
|
|
12401
12401
|
var hr = {}, Ss;
|
|
12402
|
-
function
|
|
12402
|
+
function Ju() {
|
|
12403
12403
|
if (Ss) return hr;
|
|
12404
12404
|
Ss = 1, Object.defineProperty(hr, "__esModule", {
|
|
12405
12405
|
value: !0
|
|
12406
12406
|
}), hr.introspectionFromSchema = t;
|
|
12407
|
-
var e = /* @__PURE__ */ Le(), n = /* @__PURE__ */ On(), a = /* @__PURE__ */ $r(), i = /* @__PURE__ */
|
|
12407
|
+
var e = /* @__PURE__ */ Le(), n = /* @__PURE__ */ On(), a = /* @__PURE__ */ $r(), i = /* @__PURE__ */ Uo();
|
|
12408
12408
|
function t(r, o) {
|
|
12409
12409
|
const s = {
|
|
12410
12410
|
specifiedByUrl: !0,
|
|
@@ -12424,7 +12424,7 @@ function Yu() {
|
|
|
12424
12424
|
return hr;
|
|
12425
12425
|
}
|
|
12426
12426
|
var vr = {}, Ls;
|
|
12427
|
-
function
|
|
12427
|
+
function zu() {
|
|
12428
12428
|
if (Ls) return vr;
|
|
12429
12429
|
Ls = 1, Object.defineProperty(vr, "__esModule", {
|
|
12430
12430
|
value: !0
|
|
@@ -12504,7 +12504,7 @@ function Ju() {
|
|
|
12504
12504
|
case s.TypeKind.UNION:
|
|
12505
12505
|
return v(P);
|
|
12506
12506
|
case s.TypeKind.ENUM:
|
|
12507
|
-
return
|
|
12507
|
+
return g(P);
|
|
12508
12508
|
case s.TypeKind.INPUT_OBJECT:
|
|
12509
12509
|
return L(P);
|
|
12510
12510
|
}
|
|
@@ -12520,7 +12520,7 @@ function Ju() {
|
|
|
12520
12520
|
specifiedByURL: P.specifiedByURL
|
|
12521
12521
|
});
|
|
12522
12522
|
}
|
|
12523
|
-
function
|
|
12523
|
+
function N(P) {
|
|
12524
12524
|
if (P.interfaces === null && P.kind === s.TypeKind.INTERFACE)
|
|
12525
12525
|
return [];
|
|
12526
12526
|
if (!P.interfaces) {
|
|
@@ -12537,7 +12537,7 @@ function Ju() {
|
|
|
12537
12537
|
return new r.GraphQLObjectType({
|
|
12538
12538
|
name: P.name,
|
|
12539
12539
|
description: P.description,
|
|
12540
|
-
interfaces: () =>
|
|
12540
|
+
interfaces: () => N(P),
|
|
12541
12541
|
fields: () => R(P)
|
|
12542
12542
|
});
|
|
12543
12543
|
}
|
|
@@ -12545,7 +12545,7 @@ function Ju() {
|
|
|
12545
12545
|
return new r.GraphQLInterfaceType({
|
|
12546
12546
|
name: P.name,
|
|
12547
12547
|
description: P.description,
|
|
12548
|
-
interfaces: () =>
|
|
12548
|
+
interfaces: () => N(P),
|
|
12549
12549
|
fields: () => R(P)
|
|
12550
12550
|
});
|
|
12551
12551
|
}
|
|
@@ -12562,7 +12562,7 @@ function Ju() {
|
|
|
12562
12562
|
types: () => P.possibleTypes.map(k)
|
|
12563
12563
|
});
|
|
12564
12564
|
}
|
|
12565
|
-
function
|
|
12565
|
+
function g(P) {
|
|
12566
12566
|
if (!P.enumValues) {
|
|
12567
12567
|
const K = (0, n.inspect)(P);
|
|
12568
12568
|
throw new Error(
|
|
@@ -12687,20 +12687,20 @@ function Ju() {
|
|
|
12687
12687
|
return vr;
|
|
12688
12688
|
}
|
|
12689
12689
|
var Mn = {}, $n = {}, Rs;
|
|
12690
|
-
function
|
|
12690
|
+
function Qo() {
|
|
12691
12691
|
if (Rs) return $n;
|
|
12692
12692
|
Rs = 1, Object.defineProperty($n, "__esModule", {
|
|
12693
12693
|
value: !0
|
|
12694
12694
|
}), $n.extendSchema = b, $n.extendSchemaImpl = T;
|
|
12695
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ un(), t = /* @__PURE__ */
|
|
12695
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ de(), a = /* @__PURE__ */ Le(), i = /* @__PURE__ */ un(), t = /* @__PURE__ */ Ws(), r = /* @__PURE__ */ se(), o = /* @__PURE__ */ Sn(), s = /* @__PURE__ */ oe(), l = /* @__PURE__ */ Pe(), d = /* @__PURE__ */ Ge(), m = /* @__PURE__ */ Xe(), u = /* @__PURE__ */ In(), c = /* @__PURE__ */ Mr(), f = /* @__PURE__ */ Xn(), p = /* @__PURE__ */ Gr();
|
|
12696
12696
|
function b(E, k, M) {
|
|
12697
12697
|
(0, u.assertSchema)(E), k != null && k.kind === r.Kind.DOCUMENT || (0, e.devAssert)(!1, "Must provide valid Document AST."), M?.assumeValid !== !0 && M?.assumeValidSDL !== !0 && (0, c.assertValidSDLExtension)(k, E);
|
|
12698
12698
|
const C = E.toConfig(), _ = T(C, k, M);
|
|
12699
12699
|
return C === _ ? E : new u.GraphQLSchema(_);
|
|
12700
12700
|
}
|
|
12701
12701
|
function T(E, k, M) {
|
|
12702
|
-
var C, _,
|
|
12703
|
-
const O = [], v = /* @__PURE__ */ Object.create(null),
|
|
12702
|
+
var C, _, N, D;
|
|
12703
|
+
const O = [], v = /* @__PURE__ */ Object.create(null), g = [];
|
|
12704
12704
|
let L;
|
|
12705
12705
|
const R = [];
|
|
12706
12706
|
for (const w of k.definitions)
|
|
@@ -12713,8 +12713,8 @@ function Uo() {
|
|
|
12713
12713
|
else if ((0, o.isTypeExtensionNode)(w)) {
|
|
12714
12714
|
const z = w.name.value, q = v[z];
|
|
12715
12715
|
v[z] = q ? q.concat([w]) : [w];
|
|
12716
|
-
} else w.kind === r.Kind.DIRECTIVE_DEFINITION &&
|
|
12717
|
-
if (Object.keys(v).length === 0 && O.length === 0 &&
|
|
12716
|
+
} else w.kind === r.Kind.DIRECTIVE_DEFINITION && g.push(w);
|
|
12717
|
+
if (Object.keys(v).length === 0 && O.length === 0 && g.length === 0 && R.length === 0 && L == null)
|
|
12718
12718
|
return E;
|
|
12719
12719
|
const j = /* @__PURE__ */ Object.create(null);
|
|
12720
12720
|
for (const w of E.types)
|
|
@@ -12739,10 +12739,10 @@ function Uo() {
|
|
|
12739
12739
|
types: Object.values(j),
|
|
12740
12740
|
directives: [
|
|
12741
12741
|
...E.directives.map(K),
|
|
12742
|
-
...
|
|
12742
|
+
...g.map(he)
|
|
12743
12743
|
],
|
|
12744
12744
|
extensions: /* @__PURE__ */ Object.create(null),
|
|
12745
|
-
astNode: (
|
|
12745
|
+
astNode: (N = L) !== null && N !== void 0 ? N : E.astNode,
|
|
12746
12746
|
extensionASTNodes: E.extensionASTNodes.concat(R),
|
|
12747
12747
|
assumeValid: (D = M?.assumeValid) !== null && D !== void 0 ? D : !1
|
|
12748
12748
|
};
|
|
@@ -12902,7 +12902,7 @@ function Uo() {
|
|
|
12902
12902
|
// @ts-expect-error
|
|
12903
12903
|
locations: w.locations.map(({ value: q }) => q),
|
|
12904
12904
|
isRepeatable: w.repeatable,
|
|
12905
|
-
args:
|
|
12905
|
+
args: ge(w.arguments),
|
|
12906
12906
|
astNode: w
|
|
12907
12907
|
});
|
|
12908
12908
|
}
|
|
@@ -12922,7 +12922,7 @@ function Uo() {
|
|
|
12922
12922
|
// with validateSchema() will produce more actionable results.
|
|
12923
12923
|
type: ce(me.type),
|
|
12924
12924
|
description: (X = me.description) === null || X === void 0 ? void 0 : X.value,
|
|
12925
|
-
args:
|
|
12925
|
+
args: ge(me.arguments),
|
|
12926
12926
|
deprecationReason: h(me),
|
|
12927
12927
|
astNode: me
|
|
12928
12928
|
};
|
|
@@ -12930,7 +12930,7 @@ function Uo() {
|
|
|
12930
12930
|
}
|
|
12931
12931
|
return z;
|
|
12932
12932
|
}
|
|
12933
|
-
function
|
|
12933
|
+
function ge(w) {
|
|
12934
12934
|
const z = (
|
|
12935
12935
|
/* c8 ignore next */
|
|
12936
12936
|
w ?? []
|
|
@@ -13115,12 +13115,12 @@ function Uo() {
|
|
|
13115
13115
|
return $n;
|
|
13116
13116
|
}
|
|
13117
13117
|
var Ds;
|
|
13118
|
-
function
|
|
13118
|
+
function Xu() {
|
|
13119
13119
|
if (Ds) return Mn;
|
|
13120
13120
|
Ds = 1, Object.defineProperty(Mn, "__esModule", {
|
|
13121
13121
|
value: !0
|
|
13122
13122
|
}), Mn.buildASTSchema = s, Mn.buildSchema = l;
|
|
13123
|
-
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ se(), a = /* @__PURE__ */ On(), i = /* @__PURE__ */ Pe(), t = /* @__PURE__ */ In(), r = /* @__PURE__ */ Mr(), o = /* @__PURE__ */
|
|
13123
|
+
var e = /* @__PURE__ */ De(), n = /* @__PURE__ */ se(), a = /* @__PURE__ */ On(), i = /* @__PURE__ */ Pe(), t = /* @__PURE__ */ In(), r = /* @__PURE__ */ Mr(), o = /* @__PURE__ */ Qo();
|
|
13124
13124
|
function s(d, m) {
|
|
13125
13125
|
d != null && d.kind === n.Kind.DOCUMENT || (0, e.devAssert)(!1, "Must provide valid Document AST."), m?.assumeValid !== !0 && m?.assumeValidSDL !== !0 && (0, r.assertValidSDL)(d);
|
|
13126
13126
|
const u = {
|
|
@@ -13175,7 +13175,7 @@ function zu() {
|
|
|
13175
13175
|
return Mn;
|
|
13176
13176
|
}
|
|
13177
13177
|
var Tr = {}, As;
|
|
13178
|
-
function
|
|
13178
|
+
function Hu() {
|
|
13179
13179
|
if (As) return Tr;
|
|
13180
13180
|
As = 1, Object.defineProperty(Tr, "__esModule", {
|
|
13181
13181
|
value: !0
|
|
@@ -13208,7 +13208,7 @@ function Xu() {
|
|
|
13208
13208
|
const _ = C.toConfig();
|
|
13209
13209
|
return new r.GraphQLDirective({
|
|
13210
13210
|
..._,
|
|
13211
|
-
locations: u(_.locations, (
|
|
13211
|
+
locations: u(_.locations, (N) => N),
|
|
13212
13212
|
args: I(_.args)
|
|
13213
13213
|
});
|
|
13214
13214
|
}
|
|
@@ -13261,7 +13261,7 @@ function Xu() {
|
|
|
13261
13261
|
const _ = C.toConfig();
|
|
13262
13262
|
return new t.GraphQLEnumType({
|
|
13263
13263
|
..._,
|
|
13264
|
-
values: d(_.values, (
|
|
13264
|
+
values: d(_.values, (N) => N)
|
|
13265
13265
|
});
|
|
13266
13266
|
}
|
|
13267
13267
|
if ((0, t.isInputObjectType)(C)) {
|
|
@@ -13295,7 +13295,7 @@ function Xu() {
|
|
|
13295
13295
|
return Tr;
|
|
13296
13296
|
}
|
|
13297
13297
|
var En = {}, js;
|
|
13298
|
-
function
|
|
13298
|
+
function Wu() {
|
|
13299
13299
|
if (js) return En;
|
|
13300
13300
|
js = 1, Object.defineProperty(En, "__esModule", {
|
|
13301
13301
|
value: !0
|
|
@@ -13370,7 +13370,7 @@ ${j.join(`
|
|
|
13370
13370
|
);
|
|
13371
13371
|
}
|
|
13372
13372
|
function y(R) {
|
|
13373
|
-
return L(R) + `scalar ${R.name}` +
|
|
13373
|
+
return L(R) + `scalar ${R.name}` + g(R);
|
|
13374
13374
|
}
|
|
13375
13375
|
function h(R) {
|
|
13376
13376
|
const j = R.getInterfaces();
|
|
@@ -13400,7 +13400,7 @@ ${j.join(`
|
|
|
13400
13400
|
}
|
|
13401
13401
|
function C(R) {
|
|
13402
13402
|
const j = Object.values(R.getFields()).map(
|
|
13403
|
-
(V, U) => L(V, " ", !U) + " " + V.name +
|
|
13403
|
+
(V, U) => L(V, " ", !U) + " " + V.name + N(V.args, " ") + ": " + String(V.type) + v(V.deprecationReason)
|
|
13404
13404
|
);
|
|
13405
13405
|
return _(j);
|
|
13406
13406
|
}
|
|
@@ -13410,7 +13410,7 @@ ${j.join(`
|
|
|
13410
13410
|
`) + `
|
|
13411
13411
|
}` : "";
|
|
13412
13412
|
}
|
|
13413
|
-
function
|
|
13413
|
+
function N(R, j = "") {
|
|
13414
13414
|
return R.length === 0 ? "" : R.every((V) => !V.description) ? "(" + R.map(D).join(", ") + ")" : `(
|
|
13415
13415
|
` + R.map(
|
|
13416
13416
|
(V, U) => L(V, " " + j, !U) + " " + j + D(V)
|
|
@@ -13427,7 +13427,7 @@ ${j.join(`
|
|
|
13427
13427
|
return j && (V += ` = ${(0, t.print)(j)}`), V + v(R.deprecationReason);
|
|
13428
13428
|
}
|
|
13429
13429
|
function O(R) {
|
|
13430
|
-
return L(R) + "directive @" + R.name +
|
|
13430
|
+
return L(R) + "directive @" + R.name + N(R.args) + (R.isRepeatable ? " repeatable" : "") + " on " + R.locations.join(" | ");
|
|
13431
13431
|
}
|
|
13432
13432
|
function v(R) {
|
|
13433
13433
|
return R == null ? "" : R !== o.DEFAULT_DEPRECATION_REASON ? ` @deprecated(reason: ${(0, t.print)({
|
|
@@ -13435,7 +13435,7 @@ ${j.join(`
|
|
|
13435
13435
|
value: R
|
|
13436
13436
|
})})` : " @deprecated";
|
|
13437
13437
|
}
|
|
13438
|
-
function
|
|
13438
|
+
function g(R) {
|
|
13439
13439
|
return R.specifiedByURL == null ? "" : ` @specifiedBy(url: ${(0, t.print)({
|
|
13440
13440
|
kind: i.Kind.STRING,
|
|
13441
13441
|
value: R.specifiedByURL
|
|
@@ -13458,7 +13458,7 @@ ${j.join(`
|
|
|
13458
13458
|
return En;
|
|
13459
13459
|
}
|
|
13460
13460
|
var br = {}, Ps;
|
|
13461
|
-
function
|
|
13461
|
+
function Zu() {
|
|
13462
13462
|
if (Ps) return br;
|
|
13463
13463
|
Ps = 1, Object.defineProperty(br, "__esModule", {
|
|
13464
13464
|
value: !0
|
|
@@ -13476,7 +13476,7 @@ function Wu() {
|
|
|
13476
13476
|
return br;
|
|
13477
13477
|
}
|
|
13478
13478
|
var Er = {}, ks;
|
|
13479
|
-
function
|
|
13479
|
+
function ec() {
|
|
13480
13480
|
if (ks) return Er;
|
|
13481
13481
|
ks = 1, Object.defineProperty(Er, "__esModule", {
|
|
13482
13482
|
value: !0
|
|
@@ -13529,12 +13529,12 @@ function Zu() {
|
|
|
13529
13529
|
}
|
|
13530
13530
|
return Er;
|
|
13531
13531
|
}
|
|
13532
|
-
var
|
|
13533
|
-
function
|
|
13534
|
-
if (Fs) return
|
|
13535
|
-
Fs = 1, Object.defineProperty(
|
|
13532
|
+
var gr = {}, Fs;
|
|
13533
|
+
function nc() {
|
|
13534
|
+
if (Fs) return gr;
|
|
13535
|
+
Fs = 1, Object.defineProperty(gr, "__esModule", {
|
|
13536
13536
|
value: !0
|
|
13537
|
-
}),
|
|
13537
|
+
}), gr.stripIgnoredCharacters = t;
|
|
13538
13538
|
var e = /* @__PURE__ */ Rr(), n = /* @__PURE__ */ Dr(), a = /* @__PURE__ */ si(), i = /* @__PURE__ */ zn();
|
|
13539
13539
|
function t(r) {
|
|
13540
13540
|
const o = (0, a.isSource)(r) ? r : new a.Source(r), s = o.body, l = new n.Lexer(o);
|
|
@@ -13551,10 +13551,10 @@ function ec() {
|
|
|
13551
13551
|
}
|
|
13552
13552
|
return d;
|
|
13553
13553
|
}
|
|
13554
|
-
return
|
|
13554
|
+
return gr;
|
|
13555
13555
|
}
|
|
13556
13556
|
var Un = {}, ws;
|
|
13557
|
-
function
|
|
13557
|
+
function tc() {
|
|
13558
13558
|
if (ws) return Un;
|
|
13559
13559
|
ws = 1, Object.defineProperty(Un, "__esModule", {
|
|
13560
13560
|
value: !0
|
|
@@ -13580,290 +13580,290 @@ function nc() {
|
|
|
13580
13580
|
return Un;
|
|
13581
13581
|
}
|
|
13582
13582
|
var Ve = {}, Vs;
|
|
13583
|
-
function
|
|
13583
|
+
function rc() {
|
|
13584
13584
|
if (Vs) return Ve;
|
|
13585
13585
|
Vs = 1, Object.defineProperty(Ve, "__esModule", {
|
|
13586
13586
|
value: !0
|
|
13587
13587
|
}), Ve.DangerousChangeType = Ve.BreakingChangeType = void 0, Ve.findBreakingChanges = m, Ve.findDangerousChanges = u;
|
|
13588
|
-
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ Le(), a = /* @__PURE__ */ un(), i = /* @__PURE__ */ Fe(), t = /* @__PURE__ */ oe(), r = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ wr(), s = /* @__PURE__ */
|
|
13589
|
-
Ve.BreakingChangeType = l, (function(
|
|
13590
|
-
|
|
13588
|
+
var e = /* @__PURE__ */ de(), n = /* @__PURE__ */ Le(), a = /* @__PURE__ */ un(), i = /* @__PURE__ */ Fe(), t = /* @__PURE__ */ oe(), r = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ wr(), s = /* @__PURE__ */ yo(), l;
|
|
13589
|
+
Ve.BreakingChangeType = l, (function(N) {
|
|
13590
|
+
N.TYPE_REMOVED = "TYPE_REMOVED", N.TYPE_CHANGED_KIND = "TYPE_CHANGED_KIND", N.TYPE_REMOVED_FROM_UNION = "TYPE_REMOVED_FROM_UNION", N.VALUE_REMOVED_FROM_ENUM = "VALUE_REMOVED_FROM_ENUM", N.REQUIRED_INPUT_FIELD_ADDED = "REQUIRED_INPUT_FIELD_ADDED", N.IMPLEMENTED_INTERFACE_REMOVED = "IMPLEMENTED_INTERFACE_REMOVED", N.FIELD_REMOVED = "FIELD_REMOVED", N.FIELD_CHANGED_KIND = "FIELD_CHANGED_KIND", N.REQUIRED_ARG_ADDED = "REQUIRED_ARG_ADDED", N.ARG_REMOVED = "ARG_REMOVED", N.ARG_CHANGED_KIND = "ARG_CHANGED_KIND", N.DIRECTIVE_REMOVED = "DIRECTIVE_REMOVED", N.DIRECTIVE_ARG_REMOVED = "DIRECTIVE_ARG_REMOVED", N.REQUIRED_DIRECTIVE_ARG_ADDED = "REQUIRED_DIRECTIVE_ARG_ADDED", N.DIRECTIVE_REPEATABLE_REMOVED = "DIRECTIVE_REPEATABLE_REMOVED", N.DIRECTIVE_LOCATION_REMOVED = "DIRECTIVE_LOCATION_REMOVED";
|
|
13591
13591
|
})(
|
|
13592
13592
|
l || (Ve.BreakingChangeType = l = {})
|
|
13593
13593
|
);
|
|
13594
13594
|
var d;
|
|
13595
|
-
Ve.DangerousChangeType = d, (function(
|
|
13596
|
-
|
|
13595
|
+
Ve.DangerousChangeType = d, (function(N) {
|
|
13596
|
+
N.VALUE_ADDED_TO_ENUM = "VALUE_ADDED_TO_ENUM", N.TYPE_ADDED_TO_UNION = "TYPE_ADDED_TO_UNION", N.OPTIONAL_INPUT_FIELD_ADDED = "OPTIONAL_INPUT_FIELD_ADDED", N.OPTIONAL_ARG_ADDED = "OPTIONAL_ARG_ADDED", N.IMPLEMENTED_INTERFACE_ADDED = "IMPLEMENTED_INTERFACE_ADDED", N.ARG_DEFAULT_VALUE_CHANGE = "ARG_DEFAULT_VALUE_CHANGE";
|
|
13597
13597
|
})(
|
|
13598
13598
|
d || (Ve.DangerousChangeType = d = {})
|
|
13599
13599
|
);
|
|
13600
|
-
function m(
|
|
13601
|
-
return c(
|
|
13600
|
+
function m(N, D) {
|
|
13601
|
+
return c(N, D).filter(
|
|
13602
13602
|
(O) => O.type in l
|
|
13603
13603
|
);
|
|
13604
13604
|
}
|
|
13605
|
-
function u(
|
|
13606
|
-
return c(
|
|
13605
|
+
function u(N, D) {
|
|
13606
|
+
return c(N, D).filter(
|
|
13607
13607
|
(O) => O.type in d
|
|
13608
13608
|
);
|
|
13609
13609
|
}
|
|
13610
|
-
function c(
|
|
13610
|
+
function c(N, D) {
|
|
13611
13611
|
return [
|
|
13612
|
-
...p(
|
|
13613
|
-
...f(
|
|
13612
|
+
...p(N, D),
|
|
13613
|
+
...f(N, D)
|
|
13614
13614
|
];
|
|
13615
13615
|
}
|
|
13616
|
-
function f(
|
|
13616
|
+
function f(N, D) {
|
|
13617
13617
|
const O = [], v = _(
|
|
13618
|
-
|
|
13618
|
+
N.getDirectives(),
|
|
13619
13619
|
D.getDirectives()
|
|
13620
13620
|
);
|
|
13621
|
-
for (const
|
|
13621
|
+
for (const g of v.removed)
|
|
13622
13622
|
O.push({
|
|
13623
13623
|
type: l.DIRECTIVE_REMOVED,
|
|
13624
|
-
description: `${
|
|
13624
|
+
description: `${g.name} was removed.`
|
|
13625
13625
|
});
|
|
13626
|
-
for (const [
|
|
13627
|
-
const R = _(
|
|
13626
|
+
for (const [g, L] of v.persisted) {
|
|
13627
|
+
const R = _(g.args, L.args);
|
|
13628
13628
|
for (const j of R.added)
|
|
13629
13629
|
(0, t.isRequiredArgument)(j) && O.push({
|
|
13630
13630
|
type: l.REQUIRED_DIRECTIVE_ARG_ADDED,
|
|
13631
|
-
description: `A required arg ${j.name} on directive ${
|
|
13631
|
+
description: `A required arg ${j.name} on directive ${g.name} was added.`
|
|
13632
13632
|
});
|
|
13633
13633
|
for (const j of R.removed)
|
|
13634
13634
|
O.push({
|
|
13635
13635
|
type: l.DIRECTIVE_ARG_REMOVED,
|
|
13636
|
-
description: `${j.name} was removed from ${
|
|
13636
|
+
description: `${j.name} was removed from ${g.name}.`
|
|
13637
13637
|
});
|
|
13638
|
-
|
|
13638
|
+
g.isRepeatable && !L.isRepeatable && O.push({
|
|
13639
13639
|
type: l.DIRECTIVE_REPEATABLE_REMOVED,
|
|
13640
|
-
description: `Repeatable flag was removed from ${
|
|
13640
|
+
description: `Repeatable flag was removed from ${g.name}.`
|
|
13641
13641
|
});
|
|
13642
|
-
for (const j of
|
|
13642
|
+
for (const j of g.locations)
|
|
13643
13643
|
L.locations.includes(j) || O.push({
|
|
13644
13644
|
type: l.DIRECTIVE_LOCATION_REMOVED,
|
|
13645
|
-
description: `${j} was removed from ${
|
|
13645
|
+
description: `${j} was removed from ${g.name}.`
|
|
13646
13646
|
});
|
|
13647
13647
|
}
|
|
13648
13648
|
return O;
|
|
13649
13649
|
}
|
|
13650
|
-
function p(
|
|
13650
|
+
function p(N, D) {
|
|
13651
13651
|
const O = [], v = _(
|
|
13652
|
-
Object.values(
|
|
13652
|
+
Object.values(N.getTypeMap()),
|
|
13653
13653
|
Object.values(D.getTypeMap())
|
|
13654
13654
|
);
|
|
13655
|
-
for (const
|
|
13655
|
+
for (const g of v.removed)
|
|
13656
13656
|
O.push({
|
|
13657
13657
|
type: l.TYPE_REMOVED,
|
|
13658
|
-
description: (0, r.isSpecifiedScalarType)(
|
|
13658
|
+
description: (0, r.isSpecifiedScalarType)(g) ? `Standard scalar ${g.name} was removed because it is not referenced anymore.` : `${g.name} was removed.`
|
|
13659
13659
|
});
|
|
13660
|
-
for (const [
|
|
13661
|
-
(0, t.isEnumType)(
|
|
13662
|
-
...I(
|
|
13663
|
-
...h(
|
|
13664
|
-
) : (0, t.isInterfaceType)(
|
|
13665
|
-
...I(
|
|
13666
|
-
...h(
|
|
13667
|
-
) :
|
|
13660
|
+
for (const [g, L] of v.persisted)
|
|
13661
|
+
(0, t.isEnumType)(g) && (0, t.isEnumType)(L) ? O.push(...y(g, L)) : (0, t.isUnionType)(g) && (0, t.isUnionType)(L) ? O.push(...T(g, L)) : (0, t.isInputObjectType)(g) && (0, t.isInputObjectType)(L) ? O.push(...b(g, L)) : (0, t.isObjectType)(g) && (0, t.isObjectType)(L) ? O.push(
|
|
13662
|
+
...I(g, L),
|
|
13663
|
+
...h(g, L)
|
|
13664
|
+
) : (0, t.isInterfaceType)(g) && (0, t.isInterfaceType)(L) ? O.push(
|
|
13665
|
+
...I(g, L),
|
|
13666
|
+
...h(g, L)
|
|
13667
|
+
) : g.constructor !== L.constructor && O.push({
|
|
13668
13668
|
type: l.TYPE_CHANGED_KIND,
|
|
13669
|
-
description: `${
|
|
13669
|
+
description: `${g.name} changed from ${M(g)} to ${M(L)}.`
|
|
13670
13670
|
});
|
|
13671
13671
|
return O;
|
|
13672
13672
|
}
|
|
13673
|
-
function b(
|
|
13673
|
+
function b(N, D) {
|
|
13674
13674
|
const O = [], v = _(
|
|
13675
|
-
Object.values(
|
|
13675
|
+
Object.values(N.getFields()),
|
|
13676
13676
|
Object.values(D.getFields())
|
|
13677
13677
|
);
|
|
13678
|
-
for (const
|
|
13679
|
-
(0, t.isRequiredInputField)(
|
|
13678
|
+
for (const g of v.added)
|
|
13679
|
+
(0, t.isRequiredInputField)(g) ? O.push({
|
|
13680
13680
|
type: l.REQUIRED_INPUT_FIELD_ADDED,
|
|
13681
|
-
description: `A required field ${
|
|
13681
|
+
description: `A required field ${g.name} on input type ${N.name} was added.`
|
|
13682
13682
|
}) : O.push({
|
|
13683
13683
|
type: d.OPTIONAL_INPUT_FIELD_ADDED,
|
|
13684
|
-
description: `An optional field ${
|
|
13684
|
+
description: `An optional field ${g.name} on input type ${N.name} was added.`
|
|
13685
13685
|
});
|
|
13686
|
-
for (const
|
|
13686
|
+
for (const g of v.removed)
|
|
13687
13687
|
O.push({
|
|
13688
13688
|
type: l.FIELD_REMOVED,
|
|
13689
|
-
description: `${
|
|
13689
|
+
description: `${N.name}.${g.name} was removed.`
|
|
13690
13690
|
});
|
|
13691
|
-
for (const [
|
|
13691
|
+
for (const [g, L] of v.persisted)
|
|
13692
13692
|
k(
|
|
13693
|
-
|
|
13693
|
+
g.type,
|
|
13694
13694
|
L.type
|
|
13695
13695
|
) || O.push({
|
|
13696
13696
|
type: l.FIELD_CHANGED_KIND,
|
|
13697
|
-
description: `${
|
|
13697
|
+
description: `${N.name}.${g.name} changed type from ${String(g.type)} to ${String(L.type)}.`
|
|
13698
13698
|
});
|
|
13699
13699
|
return O;
|
|
13700
13700
|
}
|
|
13701
|
-
function T(
|
|
13702
|
-
const O = [], v = _(
|
|
13703
|
-
for (const
|
|
13701
|
+
function T(N, D) {
|
|
13702
|
+
const O = [], v = _(N.getTypes(), D.getTypes());
|
|
13703
|
+
for (const g of v.added)
|
|
13704
13704
|
O.push({
|
|
13705
13705
|
type: d.TYPE_ADDED_TO_UNION,
|
|
13706
|
-
description: `${
|
|
13706
|
+
description: `${g.name} was added to union type ${N.name}.`
|
|
13707
13707
|
});
|
|
13708
|
-
for (const
|
|
13708
|
+
for (const g of v.removed)
|
|
13709
13709
|
O.push({
|
|
13710
13710
|
type: l.TYPE_REMOVED_FROM_UNION,
|
|
13711
|
-
description: `${
|
|
13711
|
+
description: `${g.name} was removed from union type ${N.name}.`
|
|
13712
13712
|
});
|
|
13713
13713
|
return O;
|
|
13714
13714
|
}
|
|
13715
|
-
function y(
|
|
13716
|
-
const O = [], v = _(
|
|
13717
|
-
for (const
|
|
13715
|
+
function y(N, D) {
|
|
13716
|
+
const O = [], v = _(N.getValues(), D.getValues());
|
|
13717
|
+
for (const g of v.added)
|
|
13718
13718
|
O.push({
|
|
13719
13719
|
type: d.VALUE_ADDED_TO_ENUM,
|
|
13720
|
-
description: `${
|
|
13720
|
+
description: `${g.name} was added to enum type ${N.name}.`
|
|
13721
13721
|
});
|
|
13722
|
-
for (const
|
|
13722
|
+
for (const g of v.removed)
|
|
13723
13723
|
O.push({
|
|
13724
13724
|
type: l.VALUE_REMOVED_FROM_ENUM,
|
|
13725
|
-
description: `${
|
|
13725
|
+
description: `${g.name} was removed from enum type ${N.name}.`
|
|
13726
13726
|
});
|
|
13727
13727
|
return O;
|
|
13728
13728
|
}
|
|
13729
|
-
function h(
|
|
13730
|
-
const O = [], v = _(
|
|
13731
|
-
for (const
|
|
13729
|
+
function h(N, D) {
|
|
13730
|
+
const O = [], v = _(N.getInterfaces(), D.getInterfaces());
|
|
13731
|
+
for (const g of v.added)
|
|
13732
13732
|
O.push({
|
|
13733
13733
|
type: d.IMPLEMENTED_INTERFACE_ADDED,
|
|
13734
|
-
description: `${
|
|
13734
|
+
description: `${g.name} added to interfaces implemented by ${N.name}.`
|
|
13735
13735
|
});
|
|
13736
|
-
for (const
|
|
13736
|
+
for (const g of v.removed)
|
|
13737
13737
|
O.push({
|
|
13738
13738
|
type: l.IMPLEMENTED_INTERFACE_REMOVED,
|
|
13739
|
-
description: `${
|
|
13739
|
+
description: `${N.name} no longer implements interface ${g.name}.`
|
|
13740
13740
|
});
|
|
13741
13741
|
return O;
|
|
13742
13742
|
}
|
|
13743
|
-
function I(
|
|
13743
|
+
function I(N, D) {
|
|
13744
13744
|
const O = [], v = _(
|
|
13745
|
-
Object.values(
|
|
13745
|
+
Object.values(N.getFields()),
|
|
13746
13746
|
Object.values(D.getFields())
|
|
13747
13747
|
);
|
|
13748
|
-
for (const
|
|
13748
|
+
for (const g of v.removed)
|
|
13749
13749
|
O.push({
|
|
13750
13750
|
type: l.FIELD_REMOVED,
|
|
13751
|
-
description: `${
|
|
13751
|
+
description: `${N.name}.${g.name} was removed.`
|
|
13752
13752
|
});
|
|
13753
|
-
for (const [
|
|
13754
|
-
O.push(...S(
|
|
13755
|
-
|
|
13753
|
+
for (const [g, L] of v.persisted)
|
|
13754
|
+
O.push(...S(N, g, L)), E(
|
|
13755
|
+
g.type,
|
|
13756
13756
|
L.type
|
|
13757
13757
|
) || O.push({
|
|
13758
13758
|
type: l.FIELD_CHANGED_KIND,
|
|
13759
|
-
description: `${
|
|
13759
|
+
description: `${N.name}.${g.name} changed type from ${String(g.type)} to ${String(L.type)}.`
|
|
13760
13760
|
});
|
|
13761
13761
|
return O;
|
|
13762
13762
|
}
|
|
13763
|
-
function S(
|
|
13764
|
-
const v = [],
|
|
13765
|
-
for (const L of
|
|
13763
|
+
function S(N, D, O) {
|
|
13764
|
+
const v = [], g = _(D.args, O.args);
|
|
13765
|
+
for (const L of g.removed)
|
|
13766
13766
|
v.push({
|
|
13767
13767
|
type: l.ARG_REMOVED,
|
|
13768
|
-
description: `${
|
|
13768
|
+
description: `${N.name}.${D.name} arg ${L.name} was removed.`
|
|
13769
13769
|
});
|
|
13770
|
-
for (const [L, R] of
|
|
13770
|
+
for (const [L, R] of g.persisted)
|
|
13771
13771
|
if (!k(
|
|
13772
13772
|
L.type,
|
|
13773
13773
|
R.type
|
|
13774
13774
|
))
|
|
13775
13775
|
v.push({
|
|
13776
13776
|
type: l.ARG_CHANGED_KIND,
|
|
13777
|
-
description: `${
|
|
13777
|
+
description: `${N.name}.${D.name} arg ${L.name} has changed type from ${String(L.type)} to ${String(R.type)}.`
|
|
13778
13778
|
});
|
|
13779
13779
|
else if (L.defaultValue !== void 0)
|
|
13780
13780
|
if (R.defaultValue === void 0)
|
|
13781
13781
|
v.push({
|
|
13782
13782
|
type: d.ARG_DEFAULT_VALUE_CHANGE,
|
|
13783
|
-
description: `${
|
|
13783
|
+
description: `${N.name}.${D.name} arg ${L.name} defaultValue was removed.`
|
|
13784
13784
|
});
|
|
13785
13785
|
else {
|
|
13786
13786
|
const V = C(L.defaultValue, L.type), U = C(R.defaultValue, R.type);
|
|
13787
13787
|
V !== U && v.push({
|
|
13788
13788
|
type: d.ARG_DEFAULT_VALUE_CHANGE,
|
|
13789
|
-
description: `${
|
|
13789
|
+
description: `${N.name}.${D.name} arg ${L.name} has changed defaultValue from ${V} to ${U}.`
|
|
13790
13790
|
});
|
|
13791
13791
|
}
|
|
13792
|
-
for (const L of
|
|
13792
|
+
for (const L of g.added)
|
|
13793
13793
|
(0, t.isRequiredArgument)(L) ? v.push({
|
|
13794
13794
|
type: l.REQUIRED_ARG_ADDED,
|
|
13795
|
-
description: `A required arg ${L.name} on ${
|
|
13795
|
+
description: `A required arg ${L.name} on ${N.name}.${D.name} was added.`
|
|
13796
13796
|
}) : v.push({
|
|
13797
13797
|
type: d.OPTIONAL_ARG_ADDED,
|
|
13798
|
-
description: `An optional arg ${L.name} on ${
|
|
13798
|
+
description: `An optional arg ${L.name} on ${N.name}.${D.name} was added.`
|
|
13799
13799
|
});
|
|
13800
13800
|
return v;
|
|
13801
13801
|
}
|
|
13802
|
-
function E(
|
|
13803
|
-
return (0, t.isListType)(
|
|
13802
|
+
function E(N, D) {
|
|
13803
|
+
return (0, t.isListType)(N) ? (
|
|
13804
13804
|
// if they're both lists, make sure the underlying types are compatible
|
|
13805
13805
|
(0, t.isListType)(D) && E(
|
|
13806
|
-
|
|
13806
|
+
N.ofType,
|
|
13807
13807
|
D.ofType
|
|
13808
13808
|
) || // moving from nullable to non-null of the same underlying type is safe
|
|
13809
|
-
(0, t.isNonNullType)(D) && E(
|
|
13810
|
-
) : (0, t.isNonNullType)(
|
|
13809
|
+
(0, t.isNonNullType)(D) && E(N, D.ofType)
|
|
13810
|
+
) : (0, t.isNonNullType)(N) ? (0, t.isNonNullType)(D) && E(N.ofType, D.ofType) : (
|
|
13811
13811
|
// if they're both named types, see if their names are equivalent
|
|
13812
|
-
(0, t.isNamedType)(D) &&
|
|
13813
|
-
(0, t.isNonNullType)(D) && E(
|
|
13812
|
+
(0, t.isNamedType)(D) && N.name === D.name || // moving from nullable to non-null of the same underlying type is safe
|
|
13813
|
+
(0, t.isNonNullType)(D) && E(N, D.ofType)
|
|
13814
13814
|
);
|
|
13815
13815
|
}
|
|
13816
|
-
function k(
|
|
13817
|
-
return (0, t.isListType)(
|
|
13816
|
+
function k(N, D) {
|
|
13817
|
+
return (0, t.isListType)(N) ? (0, t.isListType)(D) && k(N.ofType, D.ofType) : (0, t.isNonNullType)(N) ? (
|
|
13818
13818
|
// if they're both non-null, make sure the underlying types are
|
|
13819
13819
|
// compatible
|
|
13820
13820
|
(0, t.isNonNullType)(D) && k(
|
|
13821
|
-
|
|
13821
|
+
N.ofType,
|
|
13822
13822
|
D.ofType
|
|
13823
13823
|
) || // moving from non-null to nullable of the same underlying type is safe
|
|
13824
|
-
!(0, t.isNonNullType)(D) && k(
|
|
13825
|
-
) : (0, t.isNamedType)(D) &&
|
|
13824
|
+
!(0, t.isNonNullType)(D) && k(N.ofType, D)
|
|
13825
|
+
) : (0, t.isNamedType)(D) && N.name === D.name;
|
|
13826
13826
|
}
|
|
13827
|
-
function M(
|
|
13828
|
-
if ((0, t.isScalarType)(
|
|
13827
|
+
function M(N) {
|
|
13828
|
+
if ((0, t.isScalarType)(N))
|
|
13829
13829
|
return "a Scalar type";
|
|
13830
|
-
if ((0, t.isObjectType)(
|
|
13830
|
+
if ((0, t.isObjectType)(N))
|
|
13831
13831
|
return "an Object type";
|
|
13832
|
-
if ((0, t.isInterfaceType)(
|
|
13832
|
+
if ((0, t.isInterfaceType)(N))
|
|
13833
13833
|
return "an Interface type";
|
|
13834
|
-
if ((0, t.isUnionType)(
|
|
13834
|
+
if ((0, t.isUnionType)(N))
|
|
13835
13835
|
return "a Union type";
|
|
13836
|
-
if ((0, t.isEnumType)(
|
|
13836
|
+
if ((0, t.isEnumType)(N))
|
|
13837
13837
|
return "an Enum type";
|
|
13838
|
-
if ((0, t.isInputObjectType)(
|
|
13838
|
+
if ((0, t.isInputObjectType)(N))
|
|
13839
13839
|
return "an Input type";
|
|
13840
13840
|
(0, n.invariant)(
|
|
13841
13841
|
!1,
|
|
13842
|
-
"Unexpected type: " + (0, e.inspect)(
|
|
13842
|
+
"Unexpected type: " + (0, e.inspect)(N)
|
|
13843
13843
|
);
|
|
13844
13844
|
}
|
|
13845
|
-
function C(
|
|
13846
|
-
const O = (0, o.astFromValue)(
|
|
13845
|
+
function C(N, D) {
|
|
13846
|
+
const O = (0, o.astFromValue)(N, D);
|
|
13847
13847
|
return O != null || (0, n.invariant)(!1), (0, i.print)((0, s.sortValueNode)(O));
|
|
13848
13848
|
}
|
|
13849
|
-
function _(
|
|
13850
|
-
const O = [], v = [],
|
|
13851
|
-
for (const j of
|
|
13849
|
+
function _(N, D) {
|
|
13850
|
+
const O = [], v = [], g = [], L = (0, a.keyMap)(N, ({ name: j }) => j), R = (0, a.keyMap)(D, ({ name: j }) => j);
|
|
13851
|
+
for (const j of N) {
|
|
13852
13852
|
const V = R[j.name];
|
|
13853
|
-
V === void 0 ? v.push(j) :
|
|
13853
|
+
V === void 0 ? v.push(j) : g.push([j, V]);
|
|
13854
13854
|
}
|
|
13855
13855
|
for (const j of D)
|
|
13856
13856
|
L[j.name] === void 0 && O.push(j);
|
|
13857
13857
|
return {
|
|
13858
13858
|
added: O,
|
|
13859
|
-
persisted:
|
|
13859
|
+
persisted: g,
|
|
13860
13860
|
removed: v
|
|
13861
13861
|
};
|
|
13862
13862
|
}
|
|
13863
13863
|
return Ve;
|
|
13864
13864
|
}
|
|
13865
13865
|
var Qn = {}, Cs;
|
|
13866
|
-
function
|
|
13866
|
+
function ic() {
|
|
13867
13867
|
if (Cs) return Qn;
|
|
13868
13868
|
Cs = 1, Object.defineProperty(Qn, "__esModule", {
|
|
13869
13869
|
value: !0
|
|
@@ -14000,7 +14000,7 @@ function rc() {
|
|
|
14000
14000
|
return Qn;
|
|
14001
14001
|
}
|
|
14002
14002
|
var Gs;
|
|
14003
|
-
function
|
|
14003
|
+
function ac() {
|
|
14004
14004
|
return Gs || (Gs = 1, (function(e) {
|
|
14005
14005
|
Object.defineProperty(e, "__esModule", {
|
|
14006
14006
|
value: !0
|
|
@@ -14170,11 +14170,11 @@ function ic() {
|
|
|
14170
14170
|
return p.visitWithTypeInfo;
|
|
14171
14171
|
}
|
|
14172
14172
|
});
|
|
14173
|
-
var n = /* @__PURE__ */
|
|
14173
|
+
var n = /* @__PURE__ */ Uo(), a = /* @__PURE__ */ xu(), i = /* @__PURE__ */ Yu(), t = /* @__PURE__ */ Ju(), r = /* @__PURE__ */ zu(), o = /* @__PURE__ */ Xu(), s = /* @__PURE__ */ Qo(), l = /* @__PURE__ */ Hu(), d = /* @__PURE__ */ Wu(), m = /* @__PURE__ */ He(), u = /* @__PURE__ */ Gr(), c = /* @__PURE__ */ Zs(), f = /* @__PURE__ */ wr(), p = /* @__PURE__ */ ci(), b = /* @__PURE__ */ No(), T = /* @__PURE__ */ Zu(), y = /* @__PURE__ */ ec(), h = /* @__PURE__ */ nc(), I = /* @__PURE__ */ Fr(), S = /* @__PURE__ */ tc(), E = /* @__PURE__ */ rc(), k = /* @__PURE__ */ ic();
|
|
14174
14174
|
})(Jr)), Jr;
|
|
14175
14175
|
}
|
|
14176
14176
|
var Ms;
|
|
14177
|
-
function
|
|
14177
|
+
function sc() {
|
|
14178
14178
|
return Ms || (Ms = 1, (function(e) {
|
|
14179
14179
|
Object.defineProperty(e, "__esModule", {
|
|
14180
14180
|
value: !0
|
|
@@ -15254,88 +15254,108 @@ function ac() {
|
|
|
15254
15254
|
return l.visitWithTypeInfo;
|
|
15255
15255
|
}
|
|
15256
15256
|
});
|
|
15257
|
-
var n = /* @__PURE__ */
|
|
15257
|
+
var n = /* @__PURE__ */ Du(), a = /* @__PURE__ */ Vu(), i = /* @__PURE__ */ Cu(), t = /* @__PURE__ */ Gu(), r = /* @__PURE__ */ Qu(), o = /* @__PURE__ */ Bu(), s = /* @__PURE__ */ Ru(), l = /* @__PURE__ */ ac();
|
|
15258
15258
|
})(qr)), qr;
|
|
15259
15259
|
}
|
|
15260
|
-
var
|
|
15261
|
-
const
|
|
15260
|
+
var oc = /* @__PURE__ */ sc();
|
|
15261
|
+
const uc = "$[Circular Reference]", $s = "$ref:", cc = /* @__PURE__ */ new Set([
|
|
15262
15262
|
"properties",
|
|
15263
15263
|
"items",
|
|
15264
15264
|
"additionalProperties",
|
|
15265
15265
|
"allOf",
|
|
15266
15266
|
"anyOf",
|
|
15267
15267
|
"oneOf"
|
|
15268
|
-
]), Hr = (e, n = /* @__PURE__ */ new WeakSet(), a = /* @__PURE__ */ new WeakMap(), i = []) => {
|
|
15268
|
+
]), Hr = (e, n = /* @__PURE__ */ new WeakSet(), a = /* @__PURE__ */ new WeakMap(), i = [], t = /* @__PURE__ */ new Set()) => {
|
|
15269
15269
|
if (e === null || typeof e != "object") return e;
|
|
15270
|
+
const r = e.__$ref;
|
|
15271
|
+
if (typeof r == "string" && t.has(r))
|
|
15272
|
+
return $s + r;
|
|
15270
15273
|
if (n.has(e)) {
|
|
15271
|
-
const
|
|
15272
|
-
if (
|
|
15273
|
-
|
|
15274
|
-
|
|
15274
|
+
const s = a.get(e);
|
|
15275
|
+
if (s)
|
|
15276
|
+
return typeof r == "string" ? (
|
|
15277
|
+
// If already processed, return ref marker to avoid duplicate serialization
|
|
15278
|
+
$s + r
|
|
15279
|
+
) : s;
|
|
15280
|
+
const l = i.find((d) => !cc.has(d)) || i[0];
|
|
15281
|
+
return [uc, l].filter(Boolean).join(":");
|
|
15275
15282
|
}
|
|
15276
15283
|
if (n.add(e), Array.isArray(e)) {
|
|
15277
|
-
const
|
|
15278
|
-
(
|
|
15284
|
+
const s = e.map(
|
|
15285
|
+
(l, d) => Hr(
|
|
15286
|
+
l,
|
|
15287
|
+
n,
|
|
15288
|
+
a,
|
|
15289
|
+
[...i, d.toString()],
|
|
15290
|
+
t
|
|
15291
|
+
)
|
|
15292
|
+
);
|
|
15293
|
+
return a.set(e, s), s;
|
|
15294
|
+
}
|
|
15295
|
+
const o = {};
|
|
15296
|
+
for (const [s, l] of Object.entries(e))
|
|
15297
|
+
o[s] = Hr(
|
|
15298
|
+
l,
|
|
15299
|
+
n,
|
|
15300
|
+
a,
|
|
15301
|
+
[...i, s],
|
|
15302
|
+
t
|
|
15279
15303
|
);
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
for (const [r, o] of Object.entries(e))
|
|
15284
|
-
t[r] = Hr(o, n, a, [...i, r]);
|
|
15285
|
-
return a.set(e, t), t;
|
|
15286
|
-
}, gc = new sc.GraphQLScalarType({
|
|
15287
|
-
...Ni,
|
|
15304
|
+
return a.set(e, o), typeof r == "string" && t.add(r), o;
|
|
15305
|
+
}, Oc = new oc.GraphQLScalarType({
|
|
15306
|
+
...gi,
|
|
15288
15307
|
name: "JSONSchema",
|
|
15289
15308
|
description: "OpenAPI schema scalar type that handles circular references",
|
|
15290
|
-
serialize: (e) =>
|
|
15309
|
+
serialize: (e) => gi.serialize(Hr(e))
|
|
15291
15310
|
});
|
|
15292
15311
|
export {
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15312
|
+
yc as A,
|
|
15313
|
+
Us as B,
|
|
15314
|
+
uc as C,
|
|
15315
|
+
Zo as D,
|
|
15316
|
+
nu as E,
|
|
15317
|
+
ru as F,
|
|
15299
15318
|
ni as G,
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15319
|
+
eu as H,
|
|
15320
|
+
Qs as I,
|
|
15321
|
+
vu as J,
|
|
15303
15322
|
ye as K,
|
|
15304
|
-
|
|
15305
|
-
|
|
15323
|
+
cu as L,
|
|
15324
|
+
pc as M,
|
|
15306
15325
|
Wr as N,
|
|
15307
|
-
|
|
15326
|
+
gu as O,
|
|
15308
15327
|
Nu as P,
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15328
|
+
Iu as Q,
|
|
15329
|
+
Ru as R,
|
|
15330
|
+
$s as S,
|
|
15331
|
+
gi as T,
|
|
15332
|
+
Ec as U,
|
|
15333
|
+
Oc as V,
|
|
15334
|
+
Nn as a,
|
|
15335
|
+
qs as b,
|
|
15316
15336
|
Bn as c,
|
|
15317
15337
|
Ir as d,
|
|
15318
|
-
|
|
15338
|
+
hu as e,
|
|
15319
15339
|
Ue as f,
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15340
|
+
bu as g,
|
|
15341
|
+
Eu as h,
|
|
15342
|
+
mc as i,
|
|
15323
15343
|
Zr as j,
|
|
15324
|
-
|
|
15344
|
+
dc as k,
|
|
15325
15345
|
Yn as l,
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15346
|
+
Tu as m,
|
|
15347
|
+
yu as n,
|
|
15348
|
+
_u as o,
|
|
15329
15349
|
Or as p,
|
|
15330
15350
|
Kn as q,
|
|
15331
15351
|
xn as r,
|
|
15332
|
-
|
|
15352
|
+
vc as s,
|
|
15333
15353
|
$e as t,
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15354
|
+
fu as u,
|
|
15355
|
+
Tc as v,
|
|
15356
|
+
hc as w,
|
|
15357
|
+
mu as x,
|
|
15358
|
+
bc as y,
|
|
15359
|
+
fc as z
|
|
15340
15360
|
};
|
|
15341
|
-
//# sourceMappingURL=circular-
|
|
15361
|
+
//# sourceMappingURL=circular-DleWPaPP.js.map
|