zudoku 0.3.0-dev.99 → 0.3.0
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/demo.js +5 -9
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +9 -7
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +12 -8
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/dev/handler.js +1 -1
- package/dist/config/validators/SidebarSchema.js +9 -4
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +3 -0
- package/dist/lib/components/ClientOnly.js +7 -0
- package/dist/lib/components/ClientOnly.js.map +1 -0
- package/dist/lib/components/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Markdown.js +3 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Search.js +5 -8
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/SlotletProvider.js +7 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +6 -2
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -1
- package/dist/lib/core/plugins.js +1 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +18 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +5 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +58 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +6 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/index.js +3 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/themeToggle.d.ts +1 -0
- package/dist/lib/themeToggle.js +7 -0
- package/dist/lib/themeToggle.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +4 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.d.ts +4 -5
- package/dist/vite/config.js +7 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +2 -2
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +2 -21
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +2 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +3 -3
- package/dist/vite/plugin-api-keys.js +2 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +3 -3
- package/dist/vite/plugin-api.js +2 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +3 -3
- package/dist/vite/plugin-auth.js +2 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +3 -3
- package/dist/vite/plugin-component.js +17 -14
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -0
- package/dist/vite/plugin-config-reload.js +24 -0
- package/dist/vite/plugin-config-reload.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +3 -3
- package/dist/vite/plugin-custom-css.js +2 -1
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +3 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html-transform.d.ts +2 -0
- package/dist/vite/plugin-html-transform.js +15 -0
- package/dist/vite/plugin-html-transform.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +3 -3
- package/dist/vite/plugin-mdx.js +2 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-redirect.d.ts +3 -3
- package/dist/vite/plugin-redirect.js +2 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -3
- package/dist/vite/plugin-sidebar.js +5 -4
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.d.ts +3 -2
- package/dist/vite/plugin.js +16 -11
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{CategoryHeading-BWq12Bfa.js → CategoryHeading-z15xh7Jb.js} +2 -2
- package/lib/{CategoryHeading-BWq12Bfa.js.map → CategoryHeading-z15xh7Jb.js.map} +1 -1
- package/lib/{Combination-D-9IH0zy.js → Combination-DTfV-c98.js} +2 -2
- package/lib/{Combination-D-9IH0zy.js.map → Combination-DTfV-c98.js.map} +1 -1
- package/lib/{Input-HmAaR6kw.js → Input-DB9VROFR.js} +3 -3
- package/lib/{Input-HmAaR6kw.js.map → Input-DB9VROFR.js.map} +1 -1
- package/lib/Markdown-CEccPMI_.js +20508 -0
- package/lib/Markdown-CEccPMI_.js.map +1 -0
- package/lib/{MdxPage-oN3huD58.js → MdxPage-CnqOoqvp.js} +12 -15
- package/lib/MdxPage-CnqOoqvp.js.map +1 -0
- package/lib/OperationList-Cxiw2Z-v.js +457 -0
- package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
- package/lib/{Route-DAF15JAU.js → Route-DfAFiR7v.js} +2 -2
- package/lib/{Route-DAF15JAU.js.map → Route-DfAFiR7v.js.map} +1 -1
- package/lib/SlotletProvider-ByLSCZQa.js +262 -0
- package/lib/SlotletProvider-ByLSCZQa.js.map +1 -0
- package/lib/{Spinner-BCz1kNGw.js → Spinner-BT_AYFrA.js} +3 -3
- package/lib/{Spinner-BCz1kNGw.js.map → Spinner-BT_AYFrA.js.map} +1 -1
- package/lib/assets/{worker-CR7aeKop.js → worker-CzHUifWA.js} +710 -703
- package/lib/assets/{worker-CR7aeKop.js.map → worker-CzHUifWA.js.map} +1 -1
- package/lib/{index-CtKkHGcd.js → index-D-9zqIOh.js} +1159 -1147
- package/lib/index-D-9zqIOh.js.map +1 -0
- package/lib/{index-D-9Z7HSn.js → index-Dz4LyXZI.js} +3 -3
- package/lib/{index-D-9Z7HSn.js.map → index-Dz4LyXZI.js.map} +1 -1
- package/lib/zudoku.components.js +775 -759
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +734 -727
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +23 -22
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +99 -78
- package/src/app/demo-cdn.html +1 -1
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +7 -9
- package/src/app/main.css +22 -0
- package/src/app/main.tsx +11 -8
- package/src/app/standalone.html +1 -1
- package/src/app/standalone.tsx +13 -8
- package/src/lib/components/ClientOnly.tsx +13 -0
- package/src/lib/components/Header.tsx +3 -0
- package/src/lib/components/Markdown.tsx +3 -2
- package/src/lib/components/Search.tsx +7 -7
- package/src/lib/components/SlotletProvider.tsx +10 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +13 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +20 -18
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/oas/graphql/index.ts +26 -7
- package/src/lib/plugins/markdown/MdxPage.tsx +0 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +22 -17
- package/src/lib/plugins/openapi/ParameterList.tsx +10 -8
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -39
- package/src/lib/plugins/openapi/Sidecar.tsx +34 -19
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -6
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -5
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +172 -0
- package/src/lib/plugins/openapi/schema/utils.ts +10 -0
- package/src/lib/plugins/search-inkeep/index.tsx +11 -9
- package/src/lib/themeToggle.ts +7 -0
- package/src/lib/util/MdxComponents.tsx +12 -12
- package/LICENSE.md +0 -21
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
- package/dist/lib/plugins/openapi/SchemaListView.js +0 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -25
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
- package/lib/Markdown-B_Gax7at.js +0 -14108
- package/lib/Markdown-B_Gax7at.js.map +0 -1
- package/lib/MdxPage-oN3huD58.js.map +0 -1
- package/lib/OperationList-Ctj0ihBN.js +0 -448
- package/lib/OperationList-Ctj0ihBN.js.map +0 -1
- package/lib/SlotletProvider-CzMAO73_.js +0 -82
- package/lib/SlotletProvider-CzMAO73_.js.map +0 -1
- package/lib/index-CtKkHGcd.js.map +0 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +0 -75
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -125
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Tu = Object.defineProperty;
|
|
2
2
|
var vs = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var te = (t, e, n) =>
|
|
5
|
+
var Su = (t, e, n) => e in t ? Tu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var te = (t, e, n) => Su(t, typeof e != "symbol" ? e + "" : e, n), ii = (t, e, n) => e.has(t) || vs("Cannot " + n);
|
|
7
7
|
var m = (t, e, n) => (ii(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ie = (t, e, n) => e.has(t) ? vs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), J = (t, e, n, r) => (ii(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Q = (t, e, n) => (ii(t, e, "access private method"), n);
|
|
8
8
|
var ir = (t, e, n, r) => ({
|
|
9
9
|
set _(i) {
|
|
@@ -14,9 +14,9 @@ var ir = (t, e, n, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { C as Uo, c as Vo, m as Bo, f as Go } from "./urql-DrBfkb92.js";
|
|
17
|
-
import { a as
|
|
18
|
-
import { s as
|
|
19
|
-
function
|
|
17
|
+
import { a as Iu } from "./_commonjsHelpers-BVfed4GL.js";
|
|
18
|
+
import { s as _u } from "./slugify-CiPVjteN.js";
|
|
19
|
+
function Ou(t, e) {
|
|
20
20
|
for (var n = 0; n < e.length; n++) {
|
|
21
21
|
const r = e[n];
|
|
22
22
|
if (typeof r != "string" && !Array.isArray(r)) {
|
|
@@ -37,12 +37,12 @@ function si(t) {
|
|
|
37
37
|
throw new Error("Parameter was not an error");
|
|
38
38
|
}
|
|
39
39
|
function Ui(t) {
|
|
40
|
-
return
|
|
40
|
+
return Nu(t) === "[object Error]" || t instanceof Error;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Nu(t) {
|
|
43
43
|
return Object.prototype.toString.call(t);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Au(t) {
|
|
46
46
|
let e, n = "";
|
|
47
47
|
if (t.length === 0)
|
|
48
48
|
e = {};
|
|
@@ -63,7 +63,7 @@ function Nu(t) {
|
|
|
63
63
|
}
|
|
64
64
|
class He extends Error {
|
|
65
65
|
constructor(e, n) {
|
|
66
|
-
const r = [...arguments], { options: i, shortMessage: s } =
|
|
66
|
+
const r = [...arguments], { options: i, shortMessage: s } = Au(r);
|
|
67
67
|
let o = s;
|
|
68
68
|
if (i.cause && (o = `${o}: ${i.cause.message}`), super(o), this.message = o, i.name && typeof i.name == "string" ? this.name = i.name : this.name = "Layerr", i.cause && Object.defineProperty(this, "_cause", { value: i.cause }), Object.defineProperty(this, "_info", { value: {} }), i.info && typeof i.info == "object" && Object.assign(this._info, i.info), Error.captureStackTrace) {
|
|
69
69
|
const a = i.constructorOpt || this.constructor;
|
|
@@ -92,11 +92,11 @@ caused by: ${He.fullStack(n)}` : e.stack;
|
|
|
92
92
|
return this.message && (e = `${e}: ${this.message}`), e;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
const Un = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", dn = 32, ws = 281474976710655, Ts = 10,
|
|
95
|
+
const Un = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", dn = 32, ws = 281474976710655, Ts = 10, xu = 16, Jt = Object.freeze({
|
|
96
96
|
source: "ulid"
|
|
97
97
|
});
|
|
98
|
-
function
|
|
99
|
-
const e =
|
|
98
|
+
function Fu(t) {
|
|
99
|
+
const e = Lu(), n = e && (e.crypto || e.msCrypto) || null;
|
|
100
100
|
if (typeof (n == null ? void 0 : n.getRandomValues) == "function")
|
|
101
101
|
return () => {
|
|
102
102
|
const r = new Uint8Array(1);
|
|
@@ -111,13 +111,13 @@ function xu(t) {
|
|
|
111
111
|
}
|
|
112
112
|
}, "Failed to find a reliable PRNG");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
114
|
+
function Lu() {
|
|
115
|
+
return ku() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Cu(t, e) {
|
|
118
118
|
let n = "";
|
|
119
119
|
for (; t > 0; t--)
|
|
120
|
-
n =
|
|
120
|
+
n = $u(e) + n;
|
|
121
121
|
return n;
|
|
122
122
|
}
|
|
123
123
|
function Ss(t, e) {
|
|
@@ -154,7 +154,7 @@ function Ss(t, e) {
|
|
|
154
154
|
n = t % dn, r = Un.charAt(n) + r, t = (t - n) / dn;
|
|
155
155
|
return r;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Ru(t) {
|
|
158
158
|
let e, n = t.length, r, i, s = t;
|
|
159
159
|
const o = dn - 1;
|
|
160
160
|
for (; !e && n-- >= 0; ) {
|
|
@@ -180,31 +180,31 @@ function Cu(t) {
|
|
|
180
180
|
}
|
|
181
181
|
}, "Failed incrementing string");
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function ku() {
|
|
184
184
|
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const e =
|
|
186
|
+
function Du(t) {
|
|
187
|
+
const e = Fu();
|
|
188
188
|
let n = 0, r;
|
|
189
189
|
return function(s) {
|
|
190
190
|
const o = isNaN(s) ? Date.now() : s;
|
|
191
191
|
if (o <= n) {
|
|
192
|
-
const u = r =
|
|
192
|
+
const u = r = Ru(r);
|
|
193
193
|
return Ss(n, Ts) + u;
|
|
194
194
|
}
|
|
195
195
|
n = o;
|
|
196
|
-
const a = r =
|
|
196
|
+
const a = r = Cu(xu, e);
|
|
197
197
|
return Ss(o, Ts) + a;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function $u(t) {
|
|
201
201
|
let e = Math.floor(t() * dn);
|
|
202
202
|
return e === dn && (e = dn - 1), Un.charAt(e);
|
|
203
203
|
}
|
|
204
204
|
function Is(t, e, n) {
|
|
205
205
|
return e > t.length - 1 ? t : t.substr(0, e) + n + t.substr(e + 1);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const ju = () => {
|
|
208
208
|
const t = /* @__PURE__ */ new Map();
|
|
209
209
|
return [(r) => new Promise((i) => {
|
|
210
210
|
t.set(r, i);
|
|
@@ -212,11 +212,11 @@ const $u = () => {
|
|
|
212
212
|
const s = t.get(r);
|
|
213
213
|
s && (s(i), t.delete(r));
|
|
214
214
|
}];
|
|
215
|
-
},
|
|
216
|
-
function
|
|
215
|
+
}, Pu = /* @__PURE__ */ new WeakMap(), oi = Symbol("ENVELOP_IS_INTROSPECTION");
|
|
216
|
+
function Mu(t) {
|
|
217
217
|
return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Uu(t) {
|
|
220
220
|
return t.length === 1 ? t[0] : {
|
|
221
221
|
schema: t[0],
|
|
222
222
|
document: t[1],
|
|
@@ -228,7 +228,7 @@ function Mu(t) {
|
|
|
228
228
|
subscribeFieldResolver: t[7]
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const _s = (t) => (...e) => t(
|
|
231
|
+
const _s = (t) => (...e) => t(Uu(e));
|
|
232
232
|
function Os(t, e) {
|
|
233
233
|
const n = t[Symbol.asyncIterator]();
|
|
234
234
|
async function r(s) {
|
|
@@ -267,7 +267,7 @@ function Os(t, e) {
|
|
|
267
267
|
};
|
|
268
268
|
return i;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Vu(t) {
|
|
271
271
|
return t.length === 1 ? t[0] : {
|
|
272
272
|
schema: t[0],
|
|
273
273
|
document: t[1],
|
|
@@ -279,7 +279,7 @@ function Uu(t) {
|
|
|
279
279
|
typeResolver: t[7]
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
|
-
const Ns = (t) => (...e) => t(
|
|
282
|
+
const Ns = (t) => (...e) => t(Vu(e));
|
|
283
283
|
function Tt(t) {
|
|
284
284
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
285
285
|
}
|
|
@@ -318,7 +318,7 @@ function xs(t, e) {
|
|
|
318
318
|
};
|
|
319
319
|
return i;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Bu(t, e) {
|
|
322
322
|
const n = t[Symbol.asyncIterator](), r = {
|
|
323
323
|
[Symbol.asyncIterator]() {
|
|
324
324
|
return r;
|
|
@@ -348,7 +348,7 @@ function Vu(t, e) {
|
|
|
348
348
|
function sr(t) {
|
|
349
349
|
throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Gu({ plugins: t }) {
|
|
352
352
|
let e = null, n = !1;
|
|
353
353
|
const r = () => sr("parse"), i = () => sr("validate"), s = () => sr("execute"), o = () => sr("subscribe"), a = (A, x = -1) => {
|
|
354
354
|
if (e = A, n)
|
|
@@ -431,7 +431,7 @@ function Bu({ plugins: t }) {
|
|
|
431
431
|
throw new Error("Failed to parse document.");
|
|
432
432
|
if (R instanceof Error)
|
|
433
433
|
throw R;
|
|
434
|
-
return
|
|
434
|
+
return Pu.set(R, x.toString()), R;
|
|
435
435
|
} : () => r, g = l.validate.length ? (A) => (x, F, R, w, O) => {
|
|
436
436
|
let h = R ? [...R] : void 0, y = i, f = null;
|
|
437
437
|
const S = A, L = [];
|
|
@@ -565,7 +565,7 @@ function Bu({ plugins: t }) {
|
|
|
565
565
|
})), y.length && Tt(O) && (O = xs(O, () => {
|
|
566
566
|
for (const f of y)
|
|
567
567
|
f();
|
|
568
|
-
})), R.length && Tt(O) && (O =
|
|
568
|
+
})), R.length && Tt(O) && (O = Bu(O, (f) => {
|
|
569
569
|
let S = f;
|
|
570
570
|
for (const L of R)
|
|
571
571
|
L({
|
|
@@ -647,11 +647,11 @@ function Bu({ plugins: t }) {
|
|
|
647
647
|
contextFactory: I
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function qu(t) {
|
|
651
651
|
return t != null;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
const e = t.plugins.filter(
|
|
653
|
+
function Qu(t) {
|
|
654
|
+
const e = t.plugins.filter(qu), n = Gu({
|
|
655
655
|
plugins: e
|
|
656
656
|
}), r = (i = {}) => {
|
|
657
657
|
const s = n;
|
|
@@ -668,14 +668,14 @@ function qu(t) {
|
|
|
668
668
|
}
|
|
669
669
|
const Fs = {
|
|
670
670
|
logFn: console.log
|
|
671
|
-
},
|
|
671
|
+
}, zu = (t = Fs) => {
|
|
672
672
|
const e = {
|
|
673
673
|
DEFAULT_OPTIONS: Fs,
|
|
674
674
|
...t
|
|
675
675
|
};
|
|
676
676
|
return {
|
|
677
677
|
onParse({ extendContext: n, params: r }) {
|
|
678
|
-
e.skipIntrospection &&
|
|
678
|
+
e.skipIntrospection && Mu(r.source) && n({
|
|
679
679
|
[oi]: !0
|
|
680
680
|
});
|
|
681
681
|
},
|
|
@@ -696,14 +696,14 @@ const Fs = {
|
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
|
-
},
|
|
700
|
-
function
|
|
699
|
+
}, Yu = "Unexpected error.";
|
|
700
|
+
function Ju(t) {
|
|
701
701
|
return t instanceof Error && t.name === "GraphQLError";
|
|
702
702
|
}
|
|
703
703
|
function qo(t) {
|
|
704
|
-
return
|
|
704
|
+
return Ju(t) ? t.originalError != null ? qo(t.originalError) : !0 : !1;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Wu(t, e, n) {
|
|
707
707
|
const r = new Error(t);
|
|
708
708
|
if (r.name = "GraphQLError", n) {
|
|
709
709
|
const i = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
|
|
@@ -722,13 +722,13 @@ function Ju(t, e, n) {
|
|
|
722
722
|
}
|
|
723
723
|
}), r;
|
|
724
724
|
}
|
|
725
|
-
const
|
|
725
|
+
const Hu = (t) => (e, n) => qo(e) ? e : Wu(n, e, t);
|
|
726
726
|
var Do, $o;
|
|
727
|
-
const
|
|
727
|
+
const Ku = (($o = (Do = globalThis.process) == null ? void 0 : Do.env) == null ? void 0 : $o.NODE_ENV) === "development", Xu = Hu(Ku), Zu = (t, e) => ({ result: n, setResult: r }) => {
|
|
728
728
|
n.errors != null && r({ ...n, errors: n.errors.map((i) => t(i, e)) });
|
|
729
729
|
};
|
|
730
|
-
function
|
|
731
|
-
const e = (t == null ? void 0 : t.maskError) ??
|
|
730
|
+
function el(t) {
|
|
731
|
+
const e = (t == null ? void 0 : t.maskError) ?? Xu, n = (t == null ? void 0 : t.errorMessage) || Yu, r = Zu(e, n);
|
|
732
732
|
return {
|
|
733
733
|
onPluginInit(i) {
|
|
734
734
|
i.registerContextErrorHandler(({ error: s, setError: o }) => {
|
|
@@ -754,11 +754,11 @@ function Zu(t) {
|
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
const
|
|
757
|
+
const tl = (t) => ({
|
|
758
758
|
async onContextBuilding({ context: e, extendContext: n }) {
|
|
759
759
|
n(await t(e));
|
|
760
760
|
}
|
|
761
|
-
}),
|
|
761
|
+
}), nl = (t) => ({
|
|
762
762
|
onExecute: ({ setExecuteFn: e }) => {
|
|
763
763
|
t.execute && e(t.execute);
|
|
764
764
|
},
|
|
@@ -772,7 +772,7 @@ const el = (t) => ({
|
|
|
772
772
|
onSubscribe: ({ setSubscribeFn: e }) => {
|
|
773
773
|
t.subscribe && e(t.subscribe);
|
|
774
774
|
}
|
|
775
|
-
}),
|
|
775
|
+
}), rl = Object.freeze({
|
|
776
776
|
major: 16,
|
|
777
777
|
minor: 9,
|
|
778
778
|
patch: 0,
|
|
@@ -782,7 +782,7 @@ function se(t, e) {
|
|
|
782
782
|
if (!!!t)
|
|
783
783
|
throw new Error(e);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function il(t) {
|
|
786
786
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
787
787
|
}
|
|
788
788
|
function _t(t) {
|
|
@@ -794,10 +794,10 @@ function St(t, e) {
|
|
|
794
794
|
e ?? "Unexpected invariant triggered."
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
const
|
|
797
|
+
const sl = /\r\n|[\n\r]/g;
|
|
798
798
|
function vi(t, e) {
|
|
799
799
|
let n = 0, r = 1;
|
|
800
|
-
for (const i of t.body.matchAll(
|
|
800
|
+
for (const i of t.body.matchAll(sl)) {
|
|
801
801
|
if (typeof i.index == "number" || St(!1), i.index >= e)
|
|
802
802
|
break;
|
|
803
803
|
n = i.index + i[0].length, r += 1;
|
|
@@ -807,7 +807,7 @@ function vi(t, e) {
|
|
|
807
807
|
column: e + 1 - n
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function ol(t) {
|
|
811
811
|
return Qo(
|
|
812
812
|
t.source,
|
|
813
813
|
vi(t.source, t.start)
|
|
@@ -840,7 +840,7 @@ function Ls(t) {
|
|
|
840
840
|
return e.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
|
|
841
841
|
`);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function al(t) {
|
|
844
844
|
const e = t[0];
|
|
845
845
|
return e == null || "kind" in e || "length" in e ? {
|
|
846
846
|
nodes: e,
|
|
@@ -892,7 +892,7 @@ let D = class zo extends Error {
|
|
|
892
892
|
*/
|
|
893
893
|
constructor(e, ...n) {
|
|
894
894
|
var r, i, s;
|
|
895
|
-
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } =
|
|
895
|
+
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } = al(n);
|
|
896
896
|
super(e), this.name = "GraphQLError", this.path = l ?? void 0, this.originalError = c ?? void 0, this.nodes = Cs(
|
|
897
897
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
898
898
|
);
|
|
@@ -942,7 +942,7 @@ let D = class zo extends Error {
|
|
|
942
942
|
for (const n of this.nodes)
|
|
943
943
|
n.loc && (e += `
|
|
944
944
|
|
|
945
|
-
` +
|
|
945
|
+
` + ol(n.loc));
|
|
946
946
|
else if (this.source && this.locations)
|
|
947
947
|
for (const n of this.locations)
|
|
948
948
|
e += `
|
|
@@ -966,7 +966,7 @@ function Ne(t, e, n) {
|
|
|
966
966
|
positions: [e]
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
|
-
class
|
|
969
|
+
class ul {
|
|
970
970
|
/**
|
|
971
971
|
* The character offset at which this Node begins.
|
|
972
972
|
*/
|
|
@@ -1111,10 +1111,10 @@ const Jo = {
|
|
|
1111
1111
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
1112
1112
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
1113
1113
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
1114
|
-
},
|
|
1114
|
+
}, ll = new Set(Object.keys(Jo));
|
|
1115
1115
|
function wi(t) {
|
|
1116
1116
|
const e = t == null ? void 0 : t.kind;
|
|
1117
|
-
return typeof e == "string" &&
|
|
1117
|
+
return typeof e == "string" && ll.has(e);
|
|
1118
1118
|
}
|
|
1119
1119
|
var Me;
|
|
1120
1120
|
(function(t) {
|
|
@@ -1144,12 +1144,12 @@ function Vi(t) {
|
|
|
1144
1144
|
function Ho(t) {
|
|
1145
1145
|
return Wo(t) || qn(t) || t === 95;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function cl(t) {
|
|
1148
1148
|
var e;
|
|
1149
1149
|
let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
|
|
1150
1150
|
for (let o = 0; o < t.length; ++o) {
|
|
1151
1151
|
var s;
|
|
1152
|
-
const a = t[o], u =
|
|
1152
|
+
const a = t[o], u = fl(a);
|
|
1153
1153
|
u !== a.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && u < n && (n = u));
|
|
1154
1154
|
}
|
|
1155
1155
|
return t.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -1157,13 +1157,13 @@ function ll(t) {
|
|
|
1157
1157
|
i + 1
|
|
1158
1158
|
);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function fl(t) {
|
|
1161
1161
|
let e = 0;
|
|
1162
1162
|
for (; e < t.length && Ti(t.charCodeAt(e)); )
|
|
1163
1163
|
++e;
|
|
1164
1164
|
return e;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function dl(t, e) {
|
|
1167
1167
|
const n = t.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((I) => I.length === 0 || Ti(I.charCodeAt(0))), o = n.endsWith('\\"""'), a = t.endsWith('"') && !o, u = t.endsWith("\\"), l = a || u, c = (
|
|
1168
1168
|
// add leading and trailing new lines only if it improves readability
|
|
1169
1169
|
!i || t.length > 70 || l || s || o
|
|
@@ -1178,7 +1178,7 @@ var k;
|
|
|
1178
1178
|
(function(t) {
|
|
1179
1179
|
t.SOF = "<SOF>", t.EOF = "<EOF>", t.BANG = "!", t.DOLLAR = "$", t.AMP = "&", t.PAREN_L = "(", t.PAREN_R = ")", t.SPREAD = "...", t.COLON = ":", t.EQUALS = "=", t.AT = "@", t.BRACKET_L = "[", t.BRACKET_R = "]", t.BRACE_L = "{", t.PIPE = "|", t.BRACE_R = "}", t.NAME = "Name", t.INT = "Int", t.FLOAT = "Float", t.STRING = "String", t.BLOCK_STRING = "BlockString", t.COMMENT = "Comment";
|
|
1180
1180
|
})(k || (k = {}));
|
|
1181
|
-
class
|
|
1181
|
+
class hl {
|
|
1182
1182
|
/**
|
|
1183
1183
|
* The previously focused non-ignored token.
|
|
1184
1184
|
*/
|
|
@@ -1215,14 +1215,14 @@ class dl {
|
|
|
1215
1215
|
if (e.next)
|
|
1216
1216
|
e = e.next;
|
|
1217
1217
|
else {
|
|
1218
|
-
const n =
|
|
1218
|
+
const n = gl(this, e.end);
|
|
1219
1219
|
e.next = n, n.prev = e, e = n;
|
|
1220
1220
|
}
|
|
1221
1221
|
while (e.kind === k.COMMENT);
|
|
1222
1222
|
return e;
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function pl(t) {
|
|
1226
1226
|
return t === k.BANG || t === k.DOLLAR || t === k.AMP || t === k.PAREN_L || t === k.PAREN_R || t === k.SPREAD || t === k.COLON || t === k.EQUALS || t === k.AT || t === k.BRACKET_L || t === k.BRACKET_R || t === k.BRACE_L || t === k.PIPE || t === k.BRACE_R;
|
|
1227
1227
|
}
|
|
1228
1228
|
function Tn(t) {
|
|
@@ -1251,7 +1251,7 @@ function be(t, e, n, r, i) {
|
|
|
1251
1251
|
const s = t.line, o = 1 + n - t.lineStart;
|
|
1252
1252
|
return new Yo(e, n, r, s, o, i);
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function gl(t, e) {
|
|
1255
1255
|
const n = t.source.body, r = n.length;
|
|
1256
1256
|
let i = e;
|
|
1257
1257
|
for (; i < r; ) {
|
|
@@ -1270,7 +1270,7 @@ function pl(t, e) {
|
|
|
1270
1270
|
n.charCodeAt(i + 1) === 10 ? i += 2 : ++i, ++t.line, t.lineStart = i;
|
|
1271
1271
|
continue;
|
|
1272
1272
|
case 35:
|
|
1273
|
-
return
|
|
1273
|
+
return ml(t, i);
|
|
1274
1274
|
case 33:
|
|
1275
1275
|
return be(t, k.BANG, i, i + 1);
|
|
1276
1276
|
case 36:
|
|
@@ -1302,12 +1302,12 @@ function pl(t, e) {
|
|
|
1302
1302
|
case 125:
|
|
1303
1303
|
return be(t, k.BRACE_R, i, i + 1);
|
|
1304
1304
|
case 34:
|
|
1305
|
-
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
1305
|
+
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Tl(t, i) : bl(t, i);
|
|
1306
1306
|
}
|
|
1307
1307
|
if (qn(s) || s === 45)
|
|
1308
|
-
return
|
|
1308
|
+
return yl(t, i, s);
|
|
1309
1309
|
if (Vi(s))
|
|
1310
|
-
return
|
|
1310
|
+
return Sl(t, i);
|
|
1311
1311
|
throw Ne(
|
|
1312
1312
|
t.source,
|
|
1313
1313
|
i,
|
|
@@ -1316,7 +1316,7 @@ function pl(t, e) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return be(t, k.EOF, r, r);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function ml(t, e) {
|
|
1320
1320
|
const n = t.source.body, r = n.length;
|
|
1321
1321
|
let i = e + 1;
|
|
1322
1322
|
for (; i < r; ) {
|
|
@@ -1338,7 +1338,7 @@ function gl(t, e) {
|
|
|
1338
1338
|
n.slice(e + 1, i)
|
|
1339
1339
|
);
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function yl(t, e, n) {
|
|
1342
1342
|
const r = t.source.body;
|
|
1343
1343
|
let i = e, s = n, o = !1;
|
|
1344
1344
|
if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
|
|
@@ -1386,7 +1386,7 @@ function ai(t, e, n) {
|
|
|
1386
1386
|
++i;
|
|
1387
1387
|
return i;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function bl(t, e) {
|
|
1390
1390
|
const n = t.source.body, r = n.length;
|
|
1391
1391
|
let i = e + 1, s = i, o = "";
|
|
1392
1392
|
for (; i < r; ) {
|
|
@@ -1395,7 +1395,7 @@ function yl(t, e) {
|
|
|
1395
1395
|
return o += n.slice(s, i), be(t, k.STRING, e, i + 1, o);
|
|
1396
1396
|
if (a === 92) {
|
|
1397
1397
|
o += n.slice(s, i);
|
|
1398
|
-
const u = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
1398
|
+
const u = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? El(t, i) : vl(t, i) : wl(t, i);
|
|
1399
1399
|
o += u.value, i += u.size, s = i;
|
|
1400
1400
|
continue;
|
|
1401
1401
|
}
|
|
@@ -1417,7 +1417,7 @@ function yl(t, e) {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
throw Ne(t.source, i, "Unterminated string.");
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function El(t, e) {
|
|
1421
1421
|
const n = t.source.body;
|
|
1422
1422
|
let r = 0, i = 3;
|
|
1423
1423
|
for (; i < 12; ) {
|
|
@@ -1442,7 +1442,7 @@ function bl(t, e) {
|
|
|
1442
1442
|
)}".`
|
|
1443
1443
|
);
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function vl(t, e) {
|
|
1446
1446
|
const n = t.source.body, r = Rs(n, e + 2);
|
|
1447
1447
|
if (Tn(r))
|
|
1448
1448
|
return {
|
|
@@ -1469,7 +1469,7 @@ function Rs(t, e) {
|
|
|
1469
1469
|
function Cn(t) {
|
|
1470
1470
|
return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function wl(t, e) {
|
|
1473
1473
|
const n = t.source.body;
|
|
1474
1474
|
switch (n.charCodeAt(e + 1)) {
|
|
1475
1475
|
case 34:
|
|
@@ -1523,7 +1523,7 @@ function vl(t, e) {
|
|
|
1523
1523
|
)}".`
|
|
1524
1524
|
);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Tl(t, e) {
|
|
1527
1527
|
const n = t.source.body, r = n.length;
|
|
1528
1528
|
let i = t.lineStart, s = e + 3, o = s, a = "";
|
|
1529
1529
|
const u = [];
|
|
@@ -1537,7 +1537,7 @@ function wl(t, e) {
|
|
|
1537
1537
|
e,
|
|
1538
1538
|
s + 3,
|
|
1539
1539
|
// Return a string of the lines joined with U+000A.
|
|
1540
|
-
|
|
1540
|
+
cl(u).join(`
|
|
1541
1541
|
`)
|
|
1542
1542
|
);
|
|
1543
1543
|
return t.line += u.length - 1, t.lineStart = i, c;
|
|
@@ -1566,7 +1566,7 @@ function wl(t, e) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
throw Ne(t.source, s, "Unterminated string.");
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Sl(t, e) {
|
|
1570
1570
|
const n = t.source.body, r = n.length;
|
|
1571
1571
|
let i = e + 1;
|
|
1572
1572
|
for (; i < r; ) {
|
|
@@ -1584,7 +1584,7 @@ function Tl(t, e) {
|
|
|
1584
1584
|
n.slice(e, i)
|
|
1585
1585
|
);
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const Il = 10, Zo = 2;
|
|
1588
1588
|
function P(t) {
|
|
1589
1589
|
return Br(t, []);
|
|
1590
1590
|
}
|
|
@@ -1595,45 +1595,45 @@ function Br(t, e) {
|
|
|
1595
1595
|
case "function":
|
|
1596
1596
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
1597
1597
|
case "object":
|
|
1598
|
-
return
|
|
1598
|
+
return _l(t, e);
|
|
1599
1599
|
default:
|
|
1600
1600
|
return String(t);
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function _l(t, e) {
|
|
1604
1604
|
if (t === null)
|
|
1605
1605
|
return "null";
|
|
1606
1606
|
if (e.includes(t))
|
|
1607
1607
|
return "[Circular]";
|
|
1608
1608
|
const n = [...e, t];
|
|
1609
|
-
if (
|
|
1609
|
+
if (Ol(t)) {
|
|
1610
1610
|
const r = t.toJSON();
|
|
1611
1611
|
if (r !== t)
|
|
1612
1612
|
return typeof r == "string" ? r : Br(r, n);
|
|
1613
1613
|
} else if (Array.isArray(t))
|
|
1614
|
-
return
|
|
1615
|
-
return
|
|
1614
|
+
return Al(t, n);
|
|
1615
|
+
return Nl(t, n);
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Ol(t) {
|
|
1618
1618
|
return typeof t.toJSON == "function";
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Nl(t, e) {
|
|
1621
1621
|
const n = Object.entries(t);
|
|
1622
|
-
return n.length === 0 ? "{}" : e.length > Zo ? "[" +
|
|
1622
|
+
return n.length === 0 ? "{}" : e.length > Zo ? "[" + xl(t) + "]" : "{ " + n.map(
|
|
1623
1623
|
([i, s]) => i + ": " + Br(s, e)
|
|
1624
1624
|
).join(", ") + " }";
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function Al(t, e) {
|
|
1627
1627
|
if (t.length === 0)
|
|
1628
1628
|
return "[]";
|
|
1629
1629
|
if (e.length > Zo)
|
|
1630
1630
|
return "[Array]";
|
|
1631
|
-
const n = Math.min(
|
|
1631
|
+
const n = Math.min(Il, t.length), r = t.length - n, i = [];
|
|
1632
1632
|
for (let s = 0; s < n; ++s)
|
|
1633
1633
|
i.push(Br(t[s], e));
|
|
1634
1634
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function xl(t) {
|
|
1637
1637
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
1638
1638
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
1639
1639
|
const n = t.constructor.name;
|
|
@@ -1642,11 +1642,11 @@ function Al(t) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
return e;
|
|
1644
1644
|
}
|
|
1645
|
-
const
|
|
1645
|
+
const Fl = globalThis.process && // eslint-disable-next-line no-undef
|
|
1646
1646
|
process.env.NODE_ENV === "production", vt = (
|
|
1647
1647
|
/* c8 ignore next 6 */
|
|
1648
1648
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
1649
|
-
|
|
1649
|
+
Fl ? function(e, n) {
|
|
1650
1650
|
return e instanceof n;
|
|
1651
1651
|
} : function(e, n) {
|
|
1652
1652
|
if (e instanceof n)
|
|
@@ -1693,16 +1693,16 @@ class ea {
|
|
|
1693
1693
|
return "Source";
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Ll(t) {
|
|
1697
1697
|
return vt(t, ea);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
return new
|
|
1699
|
+
function Cl(t, e) {
|
|
1700
|
+
return new Rl(t, e).parseDocument();
|
|
1701
1701
|
}
|
|
1702
|
-
class
|
|
1702
|
+
class Rl {
|
|
1703
1703
|
constructor(e, n = {}) {
|
|
1704
|
-
const r =
|
|
1705
|
-
this._lexer = new
|
|
1704
|
+
const r = Ll(e) ? e : new ea(e);
|
|
1705
|
+
this._lexer = new hl(r), this._options = n, this._tokenCounter = 0;
|
|
1706
1706
|
}
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Converts a name lex token into a name parse node.
|
|
@@ -2669,7 +2669,7 @@ class Cl {
|
|
|
2669
2669
|
* given parsed object.
|
|
2670
2670
|
*/
|
|
2671
2671
|
node(e, n) {
|
|
2672
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
2672
|
+
return this._options.noLocation !== !0 && (n.loc = new ul(
|
|
2673
2673
|
e,
|
|
2674
2674
|
this._lexer.lastToken,
|
|
2675
2675
|
this._lexer.source
|
|
@@ -2805,9 +2805,9 @@ function or(t) {
|
|
|
2805
2805
|
return ta(t.kind) + (e != null ? ` "${e}"` : "");
|
|
2806
2806
|
}
|
|
2807
2807
|
function ta(t) {
|
|
2808
|
-
return
|
|
2808
|
+
return pl(t) ? `"${t}"` : t;
|
|
2809
2809
|
}
|
|
2810
|
-
const
|
|
2810
|
+
const kl = 5;
|
|
2811
2811
|
function Pt(t, e) {
|
|
2812
2812
|
const [n, r] = e ? [t, e] : [void 0, t];
|
|
2813
2813
|
let i = " Did you mean ";
|
|
@@ -2821,7 +2821,7 @@ function Pt(t, e) {
|
|
|
2821
2821
|
case 2:
|
|
2822
2822
|
return i + s[0] + " or " + s[1] + "?";
|
|
2823
2823
|
}
|
|
2824
|
-
const o = s.slice(0,
|
|
2824
|
+
const o = s.slice(0, kl), a = o.pop();
|
|
2825
2825
|
return i + o.join(", ") + ", or " + a + "?";
|
|
2826
2826
|
}
|
|
2827
2827
|
function ks(t) {
|
|
@@ -2872,12 +2872,12 @@ function Wn(t, e) {
|
|
|
2872
2872
|
}
|
|
2873
2873
|
return t.length - e.length;
|
|
2874
2874
|
}
|
|
2875
|
-
const Si = 48,
|
|
2875
|
+
const Si = 48, Dl = 57;
|
|
2876
2876
|
function ar(t) {
|
|
2877
|
-
return !isNaN(t) && Si <= t && t <=
|
|
2877
|
+
return !isNaN(t) && Si <= t && t <= Dl;
|
|
2878
2878
|
}
|
|
2879
2879
|
function en(t, e) {
|
|
2880
|
-
const n = /* @__PURE__ */ Object.create(null), r = new
|
|
2880
|
+
const n = /* @__PURE__ */ Object.create(null), r = new $l(t), i = Math.floor(t.length * 0.4) + 1;
|
|
2881
2881
|
for (const s of e) {
|
|
2882
2882
|
const o = r.measure(s, i);
|
|
2883
2883
|
o !== void 0 && (n[s] = o);
|
|
@@ -2887,7 +2887,7 @@ function en(t, e) {
|
|
|
2887
2887
|
return a !== 0 ? a : Wn(s, o);
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
class
|
|
2890
|
+
class $l {
|
|
2891
2891
|
constructor(e) {
|
|
2892
2892
|
this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = Ds(this._inputLowerCase), this._rows = [
|
|
2893
2893
|
new Array(e.length + 1).fill(0),
|
|
@@ -2954,14 +2954,14 @@ function tt(t) {
|
|
|
2954
2954
|
e[n] = r;
|
|
2955
2955
|
return e;
|
|
2956
2956
|
}
|
|
2957
|
-
function
|
|
2958
|
-
return `"${t.replace(
|
|
2957
|
+
function jl(t) {
|
|
2958
|
+
return `"${t.replace(Pl, Ml)}"`;
|
|
2959
2959
|
}
|
|
2960
|
-
const
|
|
2961
|
-
function
|
|
2962
|
-
return
|
|
2960
|
+
const Pl = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2961
|
+
function Ml(t) {
|
|
2962
|
+
return Ul[t.charCodeAt(0)];
|
|
2963
2963
|
}
|
|
2964
|
-
const
|
|
2964
|
+
const Ul = [
|
|
2965
2965
|
"\\u0000",
|
|
2966
2966
|
"\\u0001",
|
|
2967
2967
|
"\\u0002",
|
|
@@ -3195,7 +3195,7 @@ function Bi(t, e, n = Jo) {
|
|
|
3195
3195
|
} while (i !== void 0);
|
|
3196
3196
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function Vl(t) {
|
|
3199
3199
|
const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
|
|
3200
3200
|
for (const r of Object.values(T)) {
|
|
3201
3201
|
let i = !1;
|
|
@@ -3249,9 +3249,9 @@ function Fr(t, e) {
|
|
|
3249
3249
|
};
|
|
3250
3250
|
}
|
|
3251
3251
|
function pe(t) {
|
|
3252
|
-
return Bi(t,
|
|
3252
|
+
return Bi(t, Gl);
|
|
3253
3253
|
}
|
|
3254
|
-
const
|
|
3254
|
+
const Bl = 80, Gl = {
|
|
3255
3255
|
Name: {
|
|
3256
3256
|
leave: (t) => t.value
|
|
3257
3257
|
},
|
|
@@ -3287,7 +3287,7 @@ const Vl = 80, Bl = {
|
|
|
3287
3287
|
leave({ alias: t, name: e, arguments: n, directives: r, selectionSet: i }) {
|
|
3288
3288
|
const s = ne("", t, ": ") + e;
|
|
3289
3289
|
let o = s + ne("(", G(n, ", "), ")");
|
|
3290
|
-
return o.length >
|
|
3290
|
+
return o.length > Bl && (o = s + ne(`(
|
|
3291
3291
|
`, Tr(G(n, `
|
|
3292
3292
|
`)), `
|
|
3293
3293
|
)`)), G([o, G(r, " "), i], " ");
|
|
@@ -3325,7 +3325,7 @@ const Vl = 80, Bl = {
|
|
|
3325
3325
|
leave: ({ value: t }) => t
|
|
3326
3326
|
},
|
|
3327
3327
|
StringValue: {
|
|
3328
|
-
leave: ({ value: t, block: e }) => e ?
|
|
3328
|
+
leave: ({ value: t, block: e }) => e ? dl(t) : jl(t)
|
|
3329
3329
|
},
|
|
3330
3330
|
BooleanValue: {
|
|
3331
3331
|
leave: ({ value: t }) => t ? "true" : "false"
|
|
@@ -3550,7 +3550,7 @@ function wt(t) {
|
|
|
3550
3550
|
);
|
|
3551
3551
|
return t;
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3553
|
+
function ql(t) {
|
|
3554
3554
|
if (t === "true" || t === "false" || t === "null")
|
|
3555
3555
|
throw new D(`Enum values cannot be named: ${t}`);
|
|
3556
3556
|
return wt(t);
|
|
@@ -3613,7 +3613,7 @@ class Ce {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
class X {
|
|
3615
3615
|
constructor(e) {
|
|
3616
|
-
|
|
3616
|
+
Ql(e) || se(
|
|
3617
3617
|
!1,
|
|
3618
3618
|
`Expected ${P(e)} to be a GraphQL nullable type.`
|
|
3619
3619
|
), this.ofType = e;
|
|
@@ -3631,14 +3631,14 @@ class X {
|
|
|
3631
3631
|
function qi(t) {
|
|
3632
3632
|
return xe(t) || ee(t);
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function Ql(t) {
|
|
3635
3635
|
return Gi(t) && !ee(t);
|
|
3636
3636
|
}
|
|
3637
3637
|
function na(t) {
|
|
3638
3638
|
if (t)
|
|
3639
3639
|
return ee(t) ? t.ofType : t;
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function zl(t) {
|
|
3642
3642
|
return tn(t) || ce(t) || ge(t) || bt(t) || Et(t) || $e(t);
|
|
3643
3643
|
}
|
|
3644
3644
|
function gt(t) {
|
|
@@ -3852,7 +3852,7 @@ class Qt {
|
|
|
3852
3852
|
class ln {
|
|
3853
3853
|
constructor(e) {
|
|
3854
3854
|
var n;
|
|
3855
|
-
this.name = wt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = tt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types =
|
|
3855
|
+
this.name = wt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = tt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = Yl.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || se(
|
|
3856
3856
|
!1,
|
|
3857
3857
|
`${this.name} must provide "resolveType" as a function, but got: ${P(e.resolveType)}.`
|
|
3858
3858
|
);
|
|
@@ -3881,7 +3881,7 @@ class ln {
|
|
|
3881
3881
|
return this.toString();
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
3884
|
-
function
|
|
3884
|
+
function Yl(t) {
|
|
3885
3885
|
const e = ra(t.types);
|
|
3886
3886
|
return Array.isArray(e) || se(
|
|
3887
3887
|
!1,
|
|
@@ -3990,7 +3990,7 @@ function js(t, e) {
|
|
|
3990
3990
|
!1,
|
|
3991
3991
|
`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${P(r)}.`
|
|
3992
3992
|
), {
|
|
3993
|
-
name:
|
|
3993
|
+
name: ql(n),
|
|
3994
3994
|
description: r.description,
|
|
3995
3995
|
value: r.value !== void 0 ? r.value : n,
|
|
3996
3996
|
deprecationReason: r.deprecationReason,
|
|
@@ -4001,7 +4001,7 @@ function js(t, e) {
|
|
|
4001
4001
|
class Bn {
|
|
4002
4002
|
constructor(e) {
|
|
4003
4003
|
var n, r;
|
|
4004
|
-
this.name = wt(e.name), this.description = e.description, this.extensions = tt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (r = e.isOneOf) !== null && r !== void 0 ? r : !1, this._fields =
|
|
4004
|
+
this.name = wt(e.name), this.description = e.description, this.extensions = tt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (r = e.isOneOf) !== null && r !== void 0 ? r : !1, this._fields = Jl.bind(void 0, e);
|
|
4005
4005
|
}
|
|
4006
4006
|
get [Symbol.toStringTag]() {
|
|
4007
4007
|
return "GraphQLInputObjectType";
|
|
@@ -4035,7 +4035,7 @@ class Bn {
|
|
|
4035
4035
|
return this.toString();
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
4038
|
-
function
|
|
4038
|
+
function Jl(t) {
|
|
4039
4039
|
const e = ia(t.fields);
|
|
4040
4040
|
return hn(e) || se(
|
|
4041
4041
|
!1,
|
|
@@ -4233,7 +4233,7 @@ const ui = 2147483647, li = -2147483648, Kn = new yt({
|
|
|
4233
4233
|
);
|
|
4234
4234
|
return t.value;
|
|
4235
4235
|
}
|
|
4236
|
-
}),
|
|
4236
|
+
}), Wl = Object.freeze([
|
|
4237
4237
|
oe,
|
|
4238
4238
|
Kn,
|
|
4239
4239
|
Qr,
|
|
@@ -4314,7 +4314,7 @@ const Qi = new Lt({
|
|
|
4314
4314
|
description: "Skipped when true."
|
|
4315
4315
|
}
|
|
4316
4316
|
}
|
|
4317
|
-
}),
|
|
4317
|
+
}), Hl = "No longer supported", da = new Lt({
|
|
4318
4318
|
name: "deprecated",
|
|
4319
4319
|
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
4320
4320
|
locations: [
|
|
@@ -4327,10 +4327,10 @@ const Qi = new Lt({
|
|
|
4327
4327
|
reason: {
|
|
4328
4328
|
type: oe,
|
|
4329
4329
|
description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
|
|
4330
|
-
defaultValue:
|
|
4330
|
+
defaultValue: Hl
|
|
4331
4331
|
}
|
|
4332
4332
|
}
|
|
4333
|
-
}),
|
|
4333
|
+
}), Kl = new Lt({
|
|
4334
4334
|
name: "specifiedBy",
|
|
4335
4335
|
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
4336
4336
|
locations: [z.SCALAR],
|
|
@@ -4340,7 +4340,7 @@ const Qi = new Lt({
|
|
|
4340
4340
|
description: "The URL that specifies the behavior of this scalar."
|
|
4341
4341
|
}
|
|
4342
4342
|
}
|
|
4343
|
-
}),
|
|
4343
|
+
}), Xl = new Lt({
|
|
4344
4344
|
name: "oneOf",
|
|
4345
4345
|
description: "Indicates exactly one field must be supplied and this field must not be `null`.",
|
|
4346
4346
|
locations: [z.INPUT_OBJECT],
|
|
@@ -4349,8 +4349,8 @@ const Qi = new Lt({
|
|
|
4349
4349
|
Qi,
|
|
4350
4350
|
zi,
|
|
4351
4351
|
da,
|
|
4352
|
-
|
|
4353
|
-
|
|
4352
|
+
Kl,
|
|
4353
|
+
Xl
|
|
4354
4354
|
]);
|
|
4355
4355
|
function ha(t) {
|
|
4356
4356
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
@@ -4893,7 +4893,7 @@ function va(t) {
|
|
|
4893
4893
|
function wa(t) {
|
|
4894
4894
|
return vt(t, Ji);
|
|
4895
4895
|
}
|
|
4896
|
-
function
|
|
4896
|
+
function Zl(t) {
|
|
4897
4897
|
if (!wa(t))
|
|
4898
4898
|
throw new Error(`Expected ${P(t)} to be a GraphQL schema.`);
|
|
4899
4899
|
return t;
|
|
@@ -5047,22 +5047,22 @@ function ht(t, e) {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
return e;
|
|
5049
5049
|
}
|
|
5050
|
-
function
|
|
5051
|
-
if (
|
|
5050
|
+
function ec(t) {
|
|
5051
|
+
if (Zl(t), t.__validationErrors)
|
|
5052
5052
|
return t.__validationErrors;
|
|
5053
|
-
const e = new
|
|
5054
|
-
|
|
5053
|
+
const e = new tc(t);
|
|
5054
|
+
nc(e), rc(e), ic(e);
|
|
5055
5055
|
const n = e.getErrors();
|
|
5056
5056
|
return t.__validationErrors = n, n;
|
|
5057
5057
|
}
|
|
5058
5058
|
function Ta(t) {
|
|
5059
|
-
const e =
|
|
5059
|
+
const e = ec(t);
|
|
5060
5060
|
if (e.length !== 0)
|
|
5061
5061
|
throw new Error(e.map((n) => n.message).join(`
|
|
5062
5062
|
|
|
5063
5063
|
`));
|
|
5064
5064
|
}
|
|
5065
|
-
class
|
|
5065
|
+
class tc {
|
|
5066
5066
|
constructor(e) {
|
|
5067
5067
|
this._errors = [], this.schema = e;
|
|
5068
5068
|
}
|
|
@@ -5078,7 +5078,7 @@ class ec {
|
|
|
5078
5078
|
return this._errors;
|
|
5079
5079
|
}
|
|
5080
5080
|
}
|
|
5081
|
-
function
|
|
5081
|
+
function nc(t) {
|
|
5082
5082
|
const e = t.schema, n = e.getQueryType();
|
|
5083
5083
|
if (!n)
|
|
5084
5084
|
t.reportError("Query root type must be provided.", e.astNode);
|
|
@@ -5130,7 +5130,7 @@ function ci(t, e) {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
).find((r) => r.operation === e)) === null || n === void 0 ? void 0 : n.type;
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function rc(t) {
|
|
5134
5134
|
for (const n of t.schema.getDirectives()) {
|
|
5135
5135
|
if (!fa(n)) {
|
|
5136
5136
|
t.reportError(
|
|
@@ -5162,17 +5162,17 @@ function Zt(t, e) {
|
|
|
5162
5162
|
e.astNode
|
|
5163
5163
|
);
|
|
5164
5164
|
}
|
|
5165
|
-
function
|
|
5166
|
-
const e =
|
|
5165
|
+
function ic(t) {
|
|
5166
|
+
const e = fc(t), n = t.schema.getTypeMap();
|
|
5167
5167
|
for (const r of Object.values(n)) {
|
|
5168
|
-
if (!
|
|
5168
|
+
if (!zl(r)) {
|
|
5169
5169
|
t.reportError(
|
|
5170
5170
|
`Expected GraphQL named type but got: ${P(r)}.`,
|
|
5171
5171
|
r.astNode
|
|
5172
5172
|
);
|
|
5173
5173
|
continue;
|
|
5174
5174
|
}
|
|
5175
|
-
va(r) || Zt(t, r), ce(r) || ge(r) ? (Us(t, r), Vs(t, r)) : bt(r) ?
|
|
5175
|
+
va(r) || Zt(t, r), ce(r) || ge(r) ? (Us(t, r), Vs(t, r)) : bt(r) ? ac(t, r) : Et(r) ? uc(t, r) : $e(r) && (lc(t, r), e(r));
|
|
5176
5176
|
}
|
|
5177
5177
|
}
|
|
5178
5178
|
function Us(t, e) {
|
|
@@ -5235,10 +5235,10 @@ function Vs(t, e) {
|
|
|
5235
5235
|
);
|
|
5236
5236
|
continue;
|
|
5237
5237
|
}
|
|
5238
|
-
n[r.name] = !0,
|
|
5238
|
+
n[r.name] = !0, oc(t, e, r), sc(t, e, r);
|
|
5239
5239
|
}
|
|
5240
5240
|
}
|
|
5241
|
-
function
|
|
5241
|
+
function sc(t, e, n) {
|
|
5242
5242
|
const r = e.getFields();
|
|
5243
5243
|
for (const u of Object.values(n.getFields())) {
|
|
5244
5244
|
const l = u.name, c = r[l];
|
|
@@ -5288,7 +5288,7 @@ function ic(t, e, n) {
|
|
|
5288
5288
|
}
|
|
5289
5289
|
}
|
|
5290
5290
|
}
|
|
5291
|
-
function
|
|
5291
|
+
function oc(t, e, n) {
|
|
5292
5292
|
const r = e.getInterfaces();
|
|
5293
5293
|
for (const i of n.getInterfaces())
|
|
5294
5294
|
r.includes(i) || t.reportError(
|
|
@@ -5299,7 +5299,7 @@ function sc(t, e, n) {
|
|
|
5299
5299
|
]
|
|
5300
5300
|
);
|
|
5301
5301
|
}
|
|
5302
|
-
function
|
|
5302
|
+
function ac(t, e) {
|
|
5303
5303
|
const n = e.getTypes();
|
|
5304
5304
|
n.length === 0 && t.reportError(
|
|
5305
5305
|
`Union type ${e.name} must define one or more member types.`,
|
|
@@ -5320,7 +5320,7 @@ function oc(t, e) {
|
|
|
5320
5320
|
);
|
|
5321
5321
|
}
|
|
5322
5322
|
}
|
|
5323
|
-
function
|
|
5323
|
+
function uc(t, e) {
|
|
5324
5324
|
const n = e.getValues();
|
|
5325
5325
|
n.length === 0 && t.reportError(
|
|
5326
5326
|
`Enum type ${e.name} must define one or more values.`,
|
|
@@ -5329,7 +5329,7 @@ function ac(t, e) {
|
|
|
5329
5329
|
for (const r of n)
|
|
5330
5330
|
Zt(t, r);
|
|
5331
5331
|
}
|
|
5332
|
-
function
|
|
5332
|
+
function lc(t, e) {
|
|
5333
5333
|
const n = Object.values(e.getFields());
|
|
5334
5334
|
n.length === 0 && t.reportError(
|
|
5335
5335
|
`Input Object type ${e.name} must define one or more fields.`,
|
|
@@ -5353,10 +5353,10 @@ function uc(t, e) {
|
|
|
5353
5353
|
]
|
|
5354
5354
|
);
|
|
5355
5355
|
}
|
|
5356
|
-
e.isOneOf &&
|
|
5356
|
+
e.isOneOf && cc(e, s, t);
|
|
5357
5357
|
}
|
|
5358
5358
|
}
|
|
5359
|
-
function
|
|
5359
|
+
function cc(t, e, n) {
|
|
5360
5360
|
if (ee(e.type)) {
|
|
5361
5361
|
var r;
|
|
5362
5362
|
n.reportError(
|
|
@@ -5369,7 +5369,7 @@ function lc(t, e, n) {
|
|
|
5369
5369
|
e.astNode
|
|
5370
5370
|
);
|
|
5371
5371
|
}
|
|
5372
|
-
function
|
|
5372
|
+
function fc(t) {
|
|
5373
5373
|
const e = /* @__PURE__ */ Object.create(null), n = [], r = /* @__PURE__ */ Object.create(null);
|
|
5374
5374
|
return i;
|
|
5375
5375
|
function i(s) {
|
|
@@ -5436,7 +5436,7 @@ function Qe(t, e) {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
class Sa {
|
|
5438
5438
|
constructor(e, n, r) {
|
|
5439
|
-
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = r ??
|
|
5439
|
+
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = r ?? dc, n && (pt(n) && this._inputTypeStack.push(n), Ut(n) && this._parentTypeStack.push(n), Vn(n) && this._typeStack.push(n));
|
|
5440
5440
|
}
|
|
5441
5441
|
get [Symbol.toStringTag]() {
|
|
5442
5442
|
return "TypeInfo";
|
|
@@ -5575,7 +5575,7 @@ class Sa {
|
|
|
5575
5575
|
}
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5578
|
+
function dc(t, e, n) {
|
|
5579
5579
|
const r = n.name.value;
|
|
5580
5580
|
if (r === Lr.name && t.getQueryType() === e)
|
|
5581
5581
|
return Lr;
|
|
@@ -5604,26 +5604,26 @@ function Ia(t, e) {
|
|
|
5604
5604
|
}
|
|
5605
5605
|
};
|
|
5606
5606
|
}
|
|
5607
|
-
function
|
|
5607
|
+
function hc(t) {
|
|
5608
5608
|
return t.kind === T.OPERATION_DEFINITION || t.kind === T.FRAGMENT_DEFINITION;
|
|
5609
5609
|
}
|
|
5610
|
-
function
|
|
5610
|
+
function pc(t) {
|
|
5611
5611
|
return t.kind === T.SCHEMA_DEFINITION || Hi(t) || t.kind === T.DIRECTIVE_DEFINITION;
|
|
5612
5612
|
}
|
|
5613
5613
|
function Hi(t) {
|
|
5614
5614
|
return t.kind === T.SCALAR_TYPE_DEFINITION || t.kind === T.OBJECT_TYPE_DEFINITION || t.kind === T.INTERFACE_TYPE_DEFINITION || t.kind === T.UNION_TYPE_DEFINITION || t.kind === T.ENUM_TYPE_DEFINITION || t.kind === T.INPUT_OBJECT_TYPE_DEFINITION;
|
|
5615
5615
|
}
|
|
5616
|
-
function
|
|
5616
|
+
function gc(t) {
|
|
5617
5617
|
return t.kind === T.SCHEMA_EXTENSION || _a(t);
|
|
5618
5618
|
}
|
|
5619
5619
|
function _a(t) {
|
|
5620
5620
|
return t.kind === T.SCALAR_TYPE_EXTENSION || t.kind === T.OBJECT_TYPE_EXTENSION || t.kind === T.INTERFACE_TYPE_EXTENSION || t.kind === T.UNION_TYPE_EXTENSION || t.kind === T.ENUM_TYPE_EXTENSION || t.kind === T.INPUT_OBJECT_TYPE_EXTENSION;
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function mc(t) {
|
|
5623
5623
|
return {
|
|
5624
5624
|
Document(e) {
|
|
5625
5625
|
for (const n of e.definitions)
|
|
5626
|
-
if (!
|
|
5626
|
+
if (!hc(n)) {
|
|
5627
5627
|
const r = n.kind === T.SCHEMA_DEFINITION || n.kind === T.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
|
|
5628
5628
|
t.reportError(
|
|
5629
5629
|
new D(`The ${r} definition is not executable.`, {
|
|
@@ -5635,7 +5635,7 @@ function gc(t) {
|
|
|
5635
5635
|
}
|
|
5636
5636
|
};
|
|
5637
5637
|
}
|
|
5638
|
-
function
|
|
5638
|
+
function yc(t) {
|
|
5639
5639
|
return {
|
|
5640
5640
|
Field(e) {
|
|
5641
5641
|
const n = t.getParentType();
|
|
@@ -5643,9 +5643,9 @@ function mc(t) {
|
|
|
5643
5643
|
const i = t.getSchema(), s = e.name.value;
|
|
5644
5644
|
let o = Pt(
|
|
5645
5645
|
"to use an inline fragment on",
|
|
5646
|
-
|
|
5646
|
+
bc(i, n, s)
|
|
5647
5647
|
);
|
|
5648
|
-
o === "" && (o = Pt(
|
|
5648
|
+
o === "" && (o = Pt(Ec(n, s))), t.reportError(
|
|
5649
5649
|
new D(
|
|
5650
5650
|
`Cannot query field "${s}" on type "${n.name}".` + o,
|
|
5651
5651
|
{
|
|
@@ -5657,7 +5657,7 @@ function mc(t) {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
};
|
|
5659
5659
|
}
|
|
5660
|
-
function
|
|
5660
|
+
function bc(t, e, n) {
|
|
5661
5661
|
if (!Ft(e))
|
|
5662
5662
|
return [];
|
|
5663
5663
|
const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ Object.create(null);
|
|
@@ -5674,14 +5674,14 @@ function yc(t, e, n) {
|
|
|
5674
5674
|
return u !== 0 ? u : ge(o) && t.isSubType(o, a) ? -1 : ge(a) && t.isSubType(a, o) ? 1 : Wn(o.name, a.name);
|
|
5675
5675
|
}).map((o) => o.name);
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function Ec(t, e) {
|
|
5678
5678
|
if (ce(t) || ge(t)) {
|
|
5679
5679
|
const n = Object.keys(t.getFields());
|
|
5680
5680
|
return en(e, n);
|
|
5681
5681
|
}
|
|
5682
5682
|
return [];
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5684
|
+
function vc(t) {
|
|
5685
5685
|
return {
|
|
5686
5686
|
InlineFragment(e) {
|
|
5687
5687
|
const n = e.typeCondition;
|
|
@@ -5716,10 +5716,10 @@ function Ec(t) {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
};
|
|
5718
5718
|
}
|
|
5719
|
-
function
|
|
5719
|
+
function wc(t) {
|
|
5720
5720
|
return {
|
|
5721
5721
|
// eslint-disable-next-line new-cap
|
|
5722
|
-
...
|
|
5722
|
+
...Tc(t),
|
|
5723
5723
|
Argument(e) {
|
|
5724
5724
|
const n = t.getArgument(), r = t.getFieldDef(), i = t.getParentType();
|
|
5725
5725
|
if (!n && r && i) {
|
|
@@ -5736,7 +5736,7 @@ function vc(t) {
|
|
|
5736
5736
|
}
|
|
5737
5737
|
};
|
|
5738
5738
|
}
|
|
5739
|
-
function
|
|
5739
|
+
function Tc(t) {
|
|
5740
5740
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : er;
|
|
5741
5741
|
for (const o of r)
|
|
5742
5742
|
e[o.name] = o.args.map((a) => a.name);
|
|
@@ -5769,7 +5769,7 @@ function wc(t) {
|
|
|
5769
5769
|
}
|
|
5770
5770
|
};
|
|
5771
5771
|
}
|
|
5772
|
-
function
|
|
5772
|
+
function Sc(t) {
|
|
5773
5773
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : er;
|
|
5774
5774
|
for (const s of r)
|
|
5775
5775
|
e[s.name] = s.locations;
|
|
@@ -5787,7 +5787,7 @@ function Tc(t) {
|
|
|
5787
5787
|
);
|
|
5788
5788
|
return;
|
|
5789
5789
|
}
|
|
5790
|
-
const g =
|
|
5790
|
+
const g = Ic(l);
|
|
5791
5791
|
g && !p.includes(g) && t.reportError(
|
|
5792
5792
|
new D(
|
|
5793
5793
|
`Directive "@${c}" may not be used on ${g}.`,
|
|
@@ -5799,11 +5799,11 @@ function Tc(t) {
|
|
|
5799
5799
|
}
|
|
5800
5800
|
};
|
|
5801
5801
|
}
|
|
5802
|
-
function
|
|
5802
|
+
function Ic(t) {
|
|
5803
5803
|
const e = t[t.length - 1];
|
|
5804
5804
|
switch ("kind" in e || St(!1), e.kind) {
|
|
5805
5805
|
case T.OPERATION_DEFINITION:
|
|
5806
|
-
return
|
|
5806
|
+
return _c(e.operation);
|
|
5807
5807
|
case T.FIELD:
|
|
5808
5808
|
return z.FIELD;
|
|
5809
5809
|
case T.FRAGMENT_SPREAD:
|
|
@@ -5847,7 +5847,7 @@ function Sc(t) {
|
|
|
5847
5847
|
St(!1, "Unexpected kind: " + P(e.kind));
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
|
-
function
|
|
5850
|
+
function _c(t) {
|
|
5851
5851
|
switch (t) {
|
|
5852
5852
|
case Me.QUERY:
|
|
5853
5853
|
return z.QUERY;
|
|
@@ -5857,7 +5857,7 @@ function Ic(t) {
|
|
|
5857
5857
|
return z.SUBSCRIPTION;
|
|
5858
5858
|
}
|
|
5859
5859
|
}
|
|
5860
|
-
function
|
|
5860
|
+
function Oc(t) {
|
|
5861
5861
|
return {
|
|
5862
5862
|
FragmentSpread(e) {
|
|
5863
5863
|
const n = e.name.value;
|
|
@@ -5869,7 +5869,7 @@ function _c(t) {
|
|
|
5869
5869
|
}
|
|
5870
5870
|
};
|
|
5871
5871
|
}
|
|
5872
|
-
function
|
|
5872
|
+
function Nc(t) {
|
|
5873
5873
|
const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
5874
5874
|
for (const s of t.getDocument().definitions)
|
|
5875
5875
|
Hi(s) && (r[s.name.value] = !0);
|
|
@@ -5882,7 +5882,7 @@ function Oc(t) {
|
|
|
5882
5882
|
const c = s.name.value;
|
|
5883
5883
|
if (!n[c] && !r[c]) {
|
|
5884
5884
|
var p;
|
|
5885
|
-
const g = (p = l[2]) !== null && p !== void 0 ? p : a, I = g != null &&
|
|
5885
|
+
const g = (p = l[2]) !== null && p !== void 0 ? p : a, I = g != null && Ac(g);
|
|
5886
5886
|
if (I && Gs.includes(c))
|
|
5887
5887
|
return;
|
|
5888
5888
|
const E = en(
|
|
@@ -5901,13 +5901,13 @@ function Oc(t) {
|
|
|
5901
5901
|
}
|
|
5902
5902
|
};
|
|
5903
5903
|
}
|
|
5904
|
-
const Gs = [...
|
|
5904
|
+
const Gs = [...Wl, ...Ea].map(
|
|
5905
5905
|
(t) => t.name
|
|
5906
5906
|
);
|
|
5907
|
-
function Nc(t) {
|
|
5908
|
-
return "kind" in t && (hc(t) || pc(t));
|
|
5909
|
-
}
|
|
5910
5907
|
function Ac(t) {
|
|
5908
|
+
return "kind" in t && (pc(t) || gc(t));
|
|
5909
|
+
}
|
|
5910
|
+
function xc(t) {
|
|
5911
5911
|
let e = 0;
|
|
5912
5912
|
return {
|
|
5913
5913
|
Document(n) {
|
|
@@ -5927,8 +5927,8 @@ function Ac(t) {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
};
|
|
5929
5929
|
}
|
|
5930
|
-
const
|
|
5931
|
-
function
|
|
5930
|
+
const Fc = 3;
|
|
5931
|
+
function Lc(t) {
|
|
5932
5932
|
function e(n, r = /* @__PURE__ */ Object.create(null), i = 0) {
|
|
5933
5933
|
if (n.kind === T.FRAGMENT_SPREAD) {
|
|
5934
5934
|
const s = n.name.value;
|
|
@@ -5944,7 +5944,7 @@ function Fc(t) {
|
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
5946
|
if (n.kind === T.FIELD && // check all introspection lists
|
|
5947
|
-
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (i++, i >=
|
|
5947
|
+
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (i++, i >= Fc))
|
|
5948
5948
|
return !0;
|
|
5949
5949
|
if ("selectionSet" in n && n.selectionSet) {
|
|
5950
5950
|
for (const s of n.selectionSet.selections)
|
|
@@ -5964,7 +5964,7 @@ function Fc(t) {
|
|
|
5964
5964
|
}
|
|
5965
5965
|
};
|
|
5966
5966
|
}
|
|
5967
|
-
function
|
|
5967
|
+
function Cc(t) {
|
|
5968
5968
|
const e = /* @__PURE__ */ Object.create(null), n = [], r = /* @__PURE__ */ Object.create(null);
|
|
5969
5969
|
return {
|
|
5970
5970
|
OperationDefinition: () => !1,
|
|
@@ -6002,7 +6002,7 @@ function Lc(t) {
|
|
|
6002
6002
|
}
|
|
6003
6003
|
}
|
|
6004
6004
|
}
|
|
6005
|
-
function
|
|
6005
|
+
function Rc(t) {
|
|
6006
6006
|
let e = /* @__PURE__ */ Object.create(null);
|
|
6007
6007
|
return {
|
|
6008
6008
|
OperationDefinition: {
|
|
@@ -6029,7 +6029,7 @@ function Cc(t) {
|
|
|
6029
6029
|
}
|
|
6030
6030
|
};
|
|
6031
6031
|
}
|
|
6032
|
-
function
|
|
6032
|
+
function kc(t) {
|
|
6033
6033
|
const e = [], n = [];
|
|
6034
6034
|
return {
|
|
6035
6035
|
OperationDefinition(r) {
|
|
@@ -6058,7 +6058,7 @@ function Rc(t) {
|
|
|
6058
6058
|
}
|
|
6059
6059
|
};
|
|
6060
6060
|
}
|
|
6061
|
-
function
|
|
6061
|
+
function Dc(t) {
|
|
6062
6062
|
let e = [];
|
|
6063
6063
|
return {
|
|
6064
6064
|
OperationDefinition: {
|
|
@@ -6090,7 +6090,7 @@ function kc(t) {
|
|
|
6090
6090
|
function Ki(t) {
|
|
6091
6091
|
switch (t.kind) {
|
|
6092
6092
|
case T.OBJECT:
|
|
6093
|
-
return { ...t, fields:
|
|
6093
|
+
return { ...t, fields: $c(t.fields) };
|
|
6094
6094
|
case T.LIST:
|
|
6095
6095
|
return { ...t, values: t.values.map(Ki) };
|
|
6096
6096
|
case T.INT:
|
|
@@ -6103,7 +6103,7 @@ function Ki(t) {
|
|
|
6103
6103
|
return t;
|
|
6104
6104
|
}
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function $c(t) {
|
|
6107
6107
|
return t.map((e) => ({
|
|
6108
6108
|
...e,
|
|
6109
6109
|
value: Ki(e.value)
|
|
@@ -6116,11 +6116,11 @@ function Oa(t) {
|
|
|
6116
6116
|
([e, n]) => `subfields "${e}" conflict because ` + Oa(n)
|
|
6117
6117
|
).join(" and ") : t;
|
|
6118
6118
|
}
|
|
6119
|
-
function
|
|
6120
|
-
const e = new
|
|
6119
|
+
function jc(t) {
|
|
6120
|
+
const e = new Gc(), n = /* @__PURE__ */ new Map();
|
|
6121
6121
|
return {
|
|
6122
6122
|
SelectionSet(r) {
|
|
6123
|
-
const i =
|
|
6123
|
+
const i = Pc(
|
|
6124
6124
|
t,
|
|
6125
6125
|
n,
|
|
6126
6126
|
e,
|
|
@@ -6141,14 +6141,14 @@ function $c(t) {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
};
|
|
6143
6143
|
}
|
|
6144
|
-
function
|
|
6144
|
+
function Pc(t, e, n, r, i) {
|
|
6145
6145
|
const s = [], [o, a] = $r(
|
|
6146
6146
|
t,
|
|
6147
6147
|
e,
|
|
6148
6148
|
r,
|
|
6149
6149
|
i
|
|
6150
6150
|
);
|
|
6151
|
-
if (
|
|
6151
|
+
if (Uc(
|
|
6152
6152
|
t,
|
|
6153
6153
|
s,
|
|
6154
6154
|
e,
|
|
@@ -6267,7 +6267,7 @@ function Dr(t, e, n, r, i, s, o) {
|
|
|
6267
6267
|
o
|
|
6268
6268
|
);
|
|
6269
6269
|
}
|
|
6270
|
-
function
|
|
6270
|
+
function Mc(t, e, n, r, i, s, o, a) {
|
|
6271
6271
|
const u = [], [l, c] = $r(
|
|
6272
6272
|
t,
|
|
6273
6273
|
e,
|
|
@@ -6321,7 +6321,7 @@ function Pc(t, e, n, r, i, s, o, a) {
|
|
|
6321
6321
|
);
|
|
6322
6322
|
return u;
|
|
6323
6323
|
}
|
|
6324
|
-
function
|
|
6324
|
+
function Uc(t, e, n, r, i) {
|
|
6325
6325
|
for (const [s, o] of Object.entries(i))
|
|
6326
6326
|
if (o.length > 1)
|
|
6327
6327
|
for (let a = 0; a < o.length; a++)
|
|
@@ -6368,7 +6368,7 @@ function Na(t, e, n, r, i, s, o) {
|
|
|
6368
6368
|
[u],
|
|
6369
6369
|
[p]
|
|
6370
6370
|
];
|
|
6371
|
-
if (!
|
|
6371
|
+
if (!Vc(u, p))
|
|
6372
6372
|
return [
|
|
6373
6373
|
[i, "they have differing arguments"],
|
|
6374
6374
|
[u],
|
|
@@ -6389,7 +6389,7 @@ function Na(t, e, n, r, i, s, o) {
|
|
|
6389
6389
|
];
|
|
6390
6390
|
const v = u.selectionSet, _ = p.selectionSet;
|
|
6391
6391
|
if (v && _) {
|
|
6392
|
-
const A =
|
|
6392
|
+
const A = Mc(
|
|
6393
6393
|
t,
|
|
6394
6394
|
e,
|
|
6395
6395
|
n,
|
|
@@ -6399,10 +6399,10 @@ function Na(t, e, n, r, i, s, o) {
|
|
|
6399
6399
|
gt(C),
|
|
6400
6400
|
_
|
|
6401
6401
|
);
|
|
6402
|
-
return
|
|
6402
|
+
return Bc(A, i, u, p);
|
|
6403
6403
|
}
|
|
6404
6404
|
}
|
|
6405
|
-
function
|
|
6405
|
+
function Vc(t, e) {
|
|
6406
6406
|
const n = t.arguments, r = e.arguments;
|
|
6407
6407
|
if (n === void 0 || n.length === 0)
|
|
6408
6408
|
return r === void 0 || r.length === 0;
|
|
@@ -6474,7 +6474,7 @@ function Aa(t, e, n, r, i) {
|
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
6476
|
}
|
|
6477
|
-
function
|
|
6477
|
+
function Bc(t, e, n, r) {
|
|
6478
6478
|
if (t.length > 0)
|
|
6479
6479
|
return [
|
|
6480
6480
|
[e, t.map(([i]) => i)],
|
|
@@ -6482,7 +6482,7 @@ function Vc(t, e, n, r) {
|
|
|
6482
6482
|
[r, ...t.map(([, , i]) => i).flat()]
|
|
6483
6483
|
];
|
|
6484
6484
|
}
|
|
6485
|
-
class
|
|
6485
|
+
class Gc {
|
|
6486
6486
|
constructor() {
|
|
6487
6487
|
this._data = /* @__PURE__ */ new Map();
|
|
6488
6488
|
}
|
|
@@ -6496,7 +6496,7 @@ class Bc {
|
|
|
6496
6496
|
o === void 0 ? this._data.set(i, /* @__PURE__ */ new Map([[s, r]])) : o.set(s, r);
|
|
6497
6497
|
}
|
|
6498
6498
|
}
|
|
6499
|
-
function
|
|
6499
|
+
function qc(t) {
|
|
6500
6500
|
return {
|
|
6501
6501
|
InlineFragment(e) {
|
|
6502
6502
|
const n = t.getType(), r = t.getParentType();
|
|
@@ -6513,7 +6513,7 @@ function Gc(t) {
|
|
|
6513
6513
|
}
|
|
6514
6514
|
},
|
|
6515
6515
|
FragmentSpread(e) {
|
|
6516
|
-
const n = e.name.value, r =
|
|
6516
|
+
const n = e.name.value, r = Qc(t, n), i = t.getParentType();
|
|
6517
6517
|
if (r && i && !Ps(t.getSchema(), r, i)) {
|
|
6518
6518
|
const s = P(i), o = P(r);
|
|
6519
6519
|
t.reportError(
|
|
@@ -6528,7 +6528,7 @@ function Gc(t) {
|
|
|
6528
6528
|
}
|
|
6529
6529
|
};
|
|
6530
6530
|
}
|
|
6531
|
-
function
|
|
6531
|
+
function Qc(t, e) {
|
|
6532
6532
|
const n = t.getFragment(e);
|
|
6533
6533
|
if (n) {
|
|
6534
6534
|
const r = Qe(t.getSchema(), n.typeCondition);
|
|
@@ -6536,10 +6536,10 @@ function qc(t, e) {
|
|
|
6536
6536
|
return r;
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
6539
|
-
function
|
|
6539
|
+
function zc(t) {
|
|
6540
6540
|
return {
|
|
6541
6541
|
// eslint-disable-next-line new-cap
|
|
6542
|
-
...
|
|
6542
|
+
...Yc(t),
|
|
6543
6543
|
Field: {
|
|
6544
6544
|
// Validate on leave to allow for deeper errors to appear first.
|
|
6545
6545
|
leave(e) {
|
|
@@ -6568,7 +6568,7 @@ function Qc(t) {
|
|
|
6568
6568
|
}
|
|
6569
6569
|
};
|
|
6570
6570
|
}
|
|
6571
|
-
function
|
|
6571
|
+
function Yc(t) {
|
|
6572
6572
|
var e;
|
|
6573
6573
|
const n = /* @__PURE__ */ Object.create(null), r = t.getSchema(), i = (e = r == null ? void 0 : r.getDirectives()) !== null && e !== void 0 ? e : er;
|
|
6574
6574
|
for (const a of i)
|
|
@@ -6582,7 +6582,7 @@ function zc(t) {
|
|
|
6582
6582
|
var o;
|
|
6583
6583
|
const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
|
|
6584
6584
|
n[a.name.value] = bn(
|
|
6585
|
-
u.filter(
|
|
6585
|
+
u.filter(Jc),
|
|
6586
6586
|
(l) => l.name.value
|
|
6587
6587
|
);
|
|
6588
6588
|
}
|
|
@@ -6611,10 +6611,10 @@ function zc(t) {
|
|
|
6611
6611
|
}
|
|
6612
6612
|
};
|
|
6613
6613
|
}
|
|
6614
|
-
function
|
|
6614
|
+
function Jc(t) {
|
|
6615
6615
|
return t.type.kind === T.NON_NULL_TYPE && t.defaultValue == null;
|
|
6616
6616
|
}
|
|
6617
|
-
function
|
|
6617
|
+
function Wc(t) {
|
|
6618
6618
|
return {
|
|
6619
6619
|
Field(e) {
|
|
6620
6620
|
const n = t.getType(), r = e.selectionSet;
|
|
@@ -6646,7 +6646,7 @@ function Jc(t) {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
};
|
|
6648
6648
|
}
|
|
6649
|
-
function
|
|
6649
|
+
function Hc(t) {
|
|
6650
6650
|
return t.map(
|
|
6651
6651
|
(e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
|
|
6652
6652
|
).join("");
|
|
@@ -6665,12 +6665,12 @@ function Nt(t) {
|
|
|
6665
6665
|
e.push(n.key), n = n.prev;
|
|
6666
6666
|
return e.reverse();
|
|
6667
6667
|
}
|
|
6668
|
-
function
|
|
6668
|
+
function Kc(t, e, n = Xc) {
|
|
6669
6669
|
return Dn(t, e, n, void 0);
|
|
6670
6670
|
}
|
|
6671
|
-
function
|
|
6671
|
+
function Xc(t, e, n) {
|
|
6672
6672
|
let r = "Invalid value " + P(e);
|
|
6673
|
-
throw t.length > 0 && (r += ` at "value${
|
|
6673
|
+
throw t.length > 0 && (r += ` at "value${Hc(t)}"`), n.message = r + ": " + n.message, n;
|
|
6674
6674
|
}
|
|
6675
6675
|
function Dn(t, e, n, r) {
|
|
6676
6676
|
if (ee(e)) {
|
|
@@ -6855,7 +6855,7 @@ function Wt(t, e, n) {
|
|
|
6855
6855
|
function zs(t, e) {
|
|
6856
6856
|
return t.kind === T.VARIABLE && (e == null || e[t.name.value] === void 0);
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function Zc(t, e, n) {
|
|
6859
6859
|
var r;
|
|
6860
6860
|
const i = {}, s = (r = e.arguments) !== null && r !== void 0 ? r : [], o = bn(s, (a) => a.name.value);
|
|
6861
6861
|
for (const a of t.args) {
|
|
@@ -6876,7 +6876,7 @@ function Xc(t, e, n) {
|
|
|
6876
6876
|
let g = p.kind === T.NULL;
|
|
6877
6877
|
if (p.kind === T.VARIABLE) {
|
|
6878
6878
|
const E = p.name.value;
|
|
6879
|
-
if (n == null || !
|
|
6879
|
+
if (n == null || !ef(n, E)) {
|
|
6880
6880
|
if (a.defaultValue !== void 0)
|
|
6881
6881
|
i[u] = a.defaultValue;
|
|
6882
6882
|
else if (ee(l))
|
|
@@ -6915,12 +6915,12 @@ function vn(t, e, n) {
|
|
|
6915
6915
|
(s) => s.name.value === t.name
|
|
6916
6916
|
);
|
|
6917
6917
|
if (i)
|
|
6918
|
-
return
|
|
6918
|
+
return Zc(t, i, n);
|
|
6919
6919
|
}
|
|
6920
|
-
function
|
|
6920
|
+
function ef(t, e) {
|
|
6921
6921
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
6922
6922
|
}
|
|
6923
|
-
function
|
|
6923
|
+
function tf(t, e, n, r, i) {
|
|
6924
6924
|
const s = /* @__PURE__ */ new Map();
|
|
6925
6925
|
return Ai(
|
|
6926
6926
|
t,
|
|
@@ -6938,7 +6938,7 @@ function Ai(t, e, n, r, i, s, o) {
|
|
|
6938
6938
|
case T.FIELD: {
|
|
6939
6939
|
if (!fi(n, a))
|
|
6940
6940
|
continue;
|
|
6941
|
-
const u =
|
|
6941
|
+
const u = nf(a), l = s.get(u);
|
|
6942
6942
|
l !== void 0 ? l.push(a) : s.set(u, [a]);
|
|
6943
6943
|
break;
|
|
6944
6944
|
}
|
|
@@ -6995,10 +6995,10 @@ function Ys(t, e, n) {
|
|
|
6995
6995
|
const i = Qe(t, r);
|
|
6996
6996
|
return i === n ? !0 : Ft(i) ? t.isSubType(i, n) : !1;
|
|
6997
6997
|
}
|
|
6998
|
-
function
|
|
6998
|
+
function nf(t) {
|
|
6999
6999
|
return t.alias ? t.alias.value : t.name.value;
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function rf(t) {
|
|
7002
7002
|
return {
|
|
7003
7003
|
OperationDefinition(e) {
|
|
7004
7004
|
if (e.operation === "subscription") {
|
|
@@ -7007,7 +7007,7 @@ function nf(t) {
|
|
|
7007
7007
|
const i = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
|
|
7008
7008
|
for (const l of o.definitions)
|
|
7009
7009
|
l.kind === T.FRAGMENT_DEFINITION && (a[l.name.value] = l);
|
|
7010
|
-
const u =
|
|
7010
|
+
const u = tf(
|
|
7011
7011
|
n,
|
|
7012
7012
|
a,
|
|
7013
7013
|
s,
|
|
@@ -7047,7 +7047,7 @@ function xa(t, e) {
|
|
|
7047
7047
|
}
|
|
7048
7048
|
return n;
|
|
7049
7049
|
}
|
|
7050
|
-
function
|
|
7050
|
+
function sf(t) {
|
|
7051
7051
|
return {
|
|
7052
7052
|
Field: e,
|
|
7053
7053
|
Directive: e
|
|
@@ -7066,7 +7066,7 @@ function rf(t) {
|
|
|
7066
7066
|
);
|
|
7067
7067
|
}
|
|
7068
7068
|
}
|
|
7069
|
-
function
|
|
7069
|
+
function of(t) {
|
|
7070
7070
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : er;
|
|
7071
7071
|
for (const a of r)
|
|
7072
7072
|
e[a.name] = !a.isRepeatable;
|
|
@@ -7103,7 +7103,7 @@ function sf(t) {
|
|
|
7103
7103
|
}
|
|
7104
7104
|
};
|
|
7105
7105
|
}
|
|
7106
|
-
function
|
|
7106
|
+
function af(t) {
|
|
7107
7107
|
const e = /* @__PURE__ */ Object.create(null);
|
|
7108
7108
|
return {
|
|
7109
7109
|
OperationDefinition: () => !1,
|
|
@@ -7120,7 +7120,7 @@ function of(t) {
|
|
|
7120
7120
|
}
|
|
7121
7121
|
};
|
|
7122
7122
|
}
|
|
7123
|
-
function
|
|
7123
|
+
function uf(t) {
|
|
7124
7124
|
const e = [];
|
|
7125
7125
|
let n = /* @__PURE__ */ Object.create(null);
|
|
7126
7126
|
return {
|
|
@@ -7146,7 +7146,7 @@ function af(t) {
|
|
|
7146
7146
|
}
|
|
7147
7147
|
};
|
|
7148
7148
|
}
|
|
7149
|
-
function
|
|
7149
|
+
function lf(t) {
|
|
7150
7150
|
const e = /* @__PURE__ */ Object.create(null);
|
|
7151
7151
|
return {
|
|
7152
7152
|
OperationDefinition(n) {
|
|
@@ -7166,7 +7166,7 @@ function uf(t) {
|
|
|
7166
7166
|
FragmentDefinition: () => !1
|
|
7167
7167
|
};
|
|
7168
7168
|
}
|
|
7169
|
-
function
|
|
7169
|
+
function cf(t) {
|
|
7170
7170
|
return {
|
|
7171
7171
|
OperationDefinition(e) {
|
|
7172
7172
|
var n;
|
|
@@ -7186,7 +7186,7 @@ function lf(t) {
|
|
|
7186
7186
|
}
|
|
7187
7187
|
};
|
|
7188
7188
|
}
|
|
7189
|
-
function
|
|
7189
|
+
function ff(t) {
|
|
7190
7190
|
let e = {};
|
|
7191
7191
|
return {
|
|
7192
7192
|
OperationDefinition: {
|
|
@@ -7219,7 +7219,7 @@ function cf(t) {
|
|
|
7219
7219
|
)
|
|
7220
7220
|
);
|
|
7221
7221
|
}
|
|
7222
|
-
r.isOneOf &&
|
|
7222
|
+
r.isOneOf && df(
|
|
7223
7223
|
t,
|
|
7224
7224
|
n,
|
|
7225
7225
|
r,
|
|
@@ -7308,7 +7308,7 @@ function qt(t, e) {
|
|
|
7308
7308
|
);
|
|
7309
7309
|
}
|
|
7310
7310
|
}
|
|
7311
|
-
function
|
|
7311
|
+
function df(t, e, n, r, i) {
|
|
7312
7312
|
var s;
|
|
7313
7313
|
const o = Object.keys(r);
|
|
7314
7314
|
if (o.length !== 1) {
|
|
@@ -7343,7 +7343,7 @@ function ff(t, e, n, r, i) {
|
|
|
7343
7343
|
);
|
|
7344
7344
|
}
|
|
7345
7345
|
}
|
|
7346
|
-
function
|
|
7346
|
+
function hf(t) {
|
|
7347
7347
|
return {
|
|
7348
7348
|
VariableDefinition(e) {
|
|
7349
7349
|
const n = Qe(t.getSchema(), e.type);
|
|
@@ -7361,7 +7361,7 @@ function df(t) {
|
|
|
7361
7361
|
}
|
|
7362
7362
|
};
|
|
7363
7363
|
}
|
|
7364
|
-
function
|
|
7364
|
+
function pf(t) {
|
|
7365
7365
|
let e = /* @__PURE__ */ Object.create(null);
|
|
7366
7366
|
return {
|
|
7367
7367
|
OperationDefinition: {
|
|
@@ -7374,7 +7374,7 @@ function hf(t) {
|
|
|
7374
7374
|
const a = i.name.value, u = e[a];
|
|
7375
7375
|
if (u && s) {
|
|
7376
7376
|
const l = t.getSchema(), c = Qe(l, u.type);
|
|
7377
|
-
if (c && !
|
|
7377
|
+
if (c && !gf(
|
|
7378
7378
|
l,
|
|
7379
7379
|
c,
|
|
7380
7380
|
u.defaultValue,
|
|
@@ -7400,7 +7400,7 @@ function hf(t) {
|
|
|
7400
7400
|
}
|
|
7401
7401
|
};
|
|
7402
7402
|
}
|
|
7403
|
-
function
|
|
7403
|
+
function gf(t, e, n, r, i) {
|
|
7404
7404
|
if (ee(r) && !ee(e)) {
|
|
7405
7405
|
if (!(n != null && n.kind !== T.NULL) && !(i !== void 0))
|
|
7406
7406
|
return !1;
|
|
@@ -7409,36 +7409,36 @@ function pf(t, e, n, r, i) {
|
|
|
7409
7409
|
}
|
|
7410
7410
|
return pn(t, e, r);
|
|
7411
7411
|
}
|
|
7412
|
-
const
|
|
7413
|
-
gc,
|
|
7414
|
-
uf,
|
|
7415
|
-
Ac,
|
|
7416
|
-
nf,
|
|
7417
|
-
Oc,
|
|
7418
|
-
Ec,
|
|
7419
|
-
df,
|
|
7420
|
-
Jc,
|
|
7412
|
+
const mf = Object.freeze([Lc]), Fa = Object.freeze([
|
|
7421
7413
|
mc,
|
|
7422
|
-
of,
|
|
7423
|
-
_c,
|
|
7424
|
-
Rc,
|
|
7425
|
-
Gc,
|
|
7426
|
-
Lc,
|
|
7427
7414
|
lf,
|
|
7428
|
-
|
|
7429
|
-
kc,
|
|
7430
|
-
Tc,
|
|
7431
|
-
sf,
|
|
7432
|
-
vc,
|
|
7415
|
+
xc,
|
|
7433
7416
|
rf,
|
|
7434
|
-
|
|
7435
|
-
|
|
7417
|
+
Nc,
|
|
7418
|
+
vc,
|
|
7436
7419
|
hf,
|
|
7437
|
-
|
|
7420
|
+
Wc,
|
|
7421
|
+
yc,
|
|
7438
7422
|
af,
|
|
7439
|
-
|
|
7423
|
+
Oc,
|
|
7424
|
+
kc,
|
|
7425
|
+
qc,
|
|
7426
|
+
Cc,
|
|
7427
|
+
cf,
|
|
7428
|
+
Rc,
|
|
7429
|
+
Dc,
|
|
7430
|
+
Sc,
|
|
7431
|
+
of,
|
|
7432
|
+
wc,
|
|
7433
|
+
sf,
|
|
7434
|
+
ff,
|
|
7435
|
+
zc,
|
|
7436
|
+
pf,
|
|
7437
|
+
jc,
|
|
7438
|
+
uf,
|
|
7439
|
+
...mf
|
|
7440
7440
|
]);
|
|
7441
|
-
class
|
|
7441
|
+
class yf {
|
|
7442
7442
|
constructor(e, n) {
|
|
7443
7443
|
this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
|
|
7444
7444
|
}
|
|
@@ -7496,7 +7496,7 @@ class mf {
|
|
|
7496
7496
|
return n;
|
|
7497
7497
|
}
|
|
7498
7498
|
}
|
|
7499
|
-
class
|
|
7499
|
+
class bf extends yf {
|
|
7500
7500
|
constructor(e, n, r, i) {
|
|
7501
7501
|
super(n, i), this._schema = e, this._typeInfo = r, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
|
|
7502
7502
|
}
|
|
@@ -7561,11 +7561,11 @@ class yf extends mf {
|
|
|
7561
7561
|
return this._typeInfo.getEnumValue();
|
|
7562
7562
|
}
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function Ef(t, e, n = Fa, r, i = new Sa(t)) {
|
|
7565
7565
|
var s;
|
|
7566
7566
|
const o = (s = r == null ? void 0 : r.maxErrors) !== null && s !== void 0 ? s : 100;
|
|
7567
7567
|
e || se(!1, "Must provide document."), Ta(t);
|
|
7568
|
-
const a = Object.freeze({}), u = [], l = new
|
|
7568
|
+
const a = Object.freeze({}), u = [], l = new bf(
|
|
7569
7569
|
t,
|
|
7570
7570
|
e,
|
|
7571
7571
|
i,
|
|
@@ -7578,7 +7578,7 @@ function bf(t, e, n = Fa, r, i = new Sa(t)) {
|
|
|
7578
7578
|
), a;
|
|
7579
7579
|
u.push(p);
|
|
7580
7580
|
}
|
|
7581
|
-
), c =
|
|
7581
|
+
), c = Vl(n.map((p) => p(l)));
|
|
7582
7582
|
try {
|
|
7583
7583
|
Bi(e, Ia(i, c));
|
|
7584
7584
|
} catch (p) {
|
|
@@ -7587,18 +7587,18 @@ function bf(t, e, n = Fa, r, i = new Sa(t)) {
|
|
|
7587
7587
|
}
|
|
7588
7588
|
return u;
|
|
7589
7589
|
}
|
|
7590
|
-
function
|
|
7591
|
-
return t instanceof Error ? t : new
|
|
7590
|
+
function vf(t) {
|
|
7591
|
+
return t instanceof Error ? t : new wf(t);
|
|
7592
7592
|
}
|
|
7593
|
-
let
|
|
7593
|
+
let wf = class extends Error {
|
|
7594
7594
|
constructor(e) {
|
|
7595
7595
|
super("Unexpected error value: " + P(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
7596
7596
|
}
|
|
7597
7597
|
};
|
|
7598
7598
|
function et(t, e, n) {
|
|
7599
7599
|
var r;
|
|
7600
|
-
const i =
|
|
7601
|
-
return
|
|
7600
|
+
const i = vf(t);
|
|
7601
|
+
return Tf(i) ? i : new D(i.message, {
|
|
7602
7602
|
nodes: (r = i.nodes) !== null && r !== void 0 ? r : e,
|
|
7603
7603
|
source: i.source,
|
|
7604
7604
|
positions: i.positions,
|
|
@@ -7606,7 +7606,7 @@ function et(t, e, n) {
|
|
|
7606
7606
|
originalError: i
|
|
7607
7607
|
});
|
|
7608
7608
|
}
|
|
7609
|
-
function
|
|
7609
|
+
function Tf(t) {
|
|
7610
7610
|
return Array.isArray(t.path);
|
|
7611
7611
|
}
|
|
7612
7612
|
const Js = function(t, e, n, r) {
|
|
@@ -7617,7 +7617,7 @@ const Js = function(t, e, n, r) {
|
|
|
7617
7617
|
const a = i[o];
|
|
7618
7618
|
if (a.isTypeOf) {
|
|
7619
7619
|
const u = a.isTypeOf(t, e, n);
|
|
7620
|
-
if (
|
|
7620
|
+
if (il(u))
|
|
7621
7621
|
s[o] = u;
|
|
7622
7622
|
else if (u)
|
|
7623
7623
|
return a.name;
|
|
@@ -7649,7 +7649,7 @@ function Zi(t, e) {
|
|
|
7649
7649
|
}
|
|
7650
7650
|
return n;
|
|
7651
7651
|
}
|
|
7652
|
-
function
|
|
7652
|
+
function Sf(t) {
|
|
7653
7653
|
const e = t.toConfig(), n = Gr(
|
|
7654
7654
|
di(e.types),
|
|
7655
7655
|
(g) => g.name,
|
|
@@ -7767,11 +7767,11 @@ class Z extends tr {
|
|
|
7767
7767
|
super(e, n), this.name = "PothosSchemaError";
|
|
7768
7768
|
}
|
|
7769
7769
|
}
|
|
7770
|
-
const
|
|
7771
|
-
function
|
|
7770
|
+
const If = Symbol.for("Pothos.contextCache");
|
|
7771
|
+
function _f(t) {
|
|
7772
7772
|
const e = /* @__PURE__ */ new WeakMap();
|
|
7773
7773
|
return (n, ...r) => {
|
|
7774
|
-
const i = n[
|
|
7774
|
+
const i = n[If] || n;
|
|
7775
7775
|
if (e.has(i))
|
|
7776
7776
|
return e.get(i);
|
|
7777
7777
|
const s = t(n, ...r);
|
|
@@ -7787,7 +7787,7 @@ function _n(t, e, n) {
|
|
|
7787
7787
|
}) : t[e] = n, t;
|
|
7788
7788
|
}
|
|
7789
7789
|
const On = /* @__PURE__ */ new WeakMap();
|
|
7790
|
-
class
|
|
7790
|
+
class Of {
|
|
7791
7791
|
/**
|
|
7792
7792
|
* Called for each type defined with the SchemaBuilder
|
|
7793
7793
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -7893,10 +7893,10 @@ class _f {
|
|
|
7893
7893
|
return this.requestDataMap(e);
|
|
7894
7894
|
}
|
|
7895
7895
|
constructor(e, n) {
|
|
7896
|
-
_n(this, "name", void 0), _n(this, "builder", void 0), _n(this, "buildCache", void 0), _n(this, "options", void 0), _n(this, "requestDataMap",
|
|
7896
|
+
_n(this, "name", void 0), _n(this, "builder", void 0), _n(this, "buildCache", void 0), _n(this, "options", void 0), _n(this, "requestDataMap", _f((r) => this.createRequestData(r))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7897
7897
|
}
|
|
7898
7898
|
}
|
|
7899
|
-
function
|
|
7899
|
+
function Nf(t, e, n) {
|
|
7900
7900
|
return e in t ? Object.defineProperty(t, e, {
|
|
7901
7901
|
value: n,
|
|
7902
7902
|
enumerable: !0,
|
|
@@ -7904,7 +7904,7 @@ function Of(t, e, n) {
|
|
|
7904
7904
|
writable: !0
|
|
7905
7905
|
}) : t[e] = n, t;
|
|
7906
7906
|
}
|
|
7907
|
-
class
|
|
7907
|
+
class Af extends Of {
|
|
7908
7908
|
onTypeConfig(e) {
|
|
7909
7909
|
return this.plugins.reduceRight((n, r) => n === null ? n : r.onTypeConfig(n), e);
|
|
7910
7910
|
}
|
|
@@ -7937,10 +7937,10 @@ class Nf extends _f {
|
|
|
7937
7937
|
return this.plugins.reduceRight((r, i) => i.wrapIsTypeOf(r, n), e);
|
|
7938
7938
|
}
|
|
7939
7939
|
constructor(e, n) {
|
|
7940
|
-
super(e, "PothosMergedPlugin"),
|
|
7940
|
+
super(e, "PothosMergedPlugin"), Nf(this, "plugins", void 0), this.plugins = n;
|
|
7941
7941
|
}
|
|
7942
7942
|
}
|
|
7943
|
-
const nn = Symbol.for("Pothos.outputShapeKey"), Sn = Symbol.for("Pothos.parentShapeKey"), nr = Symbol.for("Pothos.inputShapeKey"),
|
|
7943
|
+
const nn = Symbol.for("Pothos.outputShapeKey"), Sn = Symbol.for("Pothos.parentShapeKey"), nr = Symbol.for("Pothos.inputShapeKey"), xf = Symbol.for("Pothos.inputFieldShapeKey"), Ff = Symbol.for("Pothos.outputFieldShapeKey"), jr = Symbol.for("Pothos.typeBrandKey");
|
|
7944
7944
|
function Ws(t, e, n) {
|
|
7945
7945
|
return e in t ? Object.defineProperty(t, e, {
|
|
7946
7946
|
value: n,
|
|
@@ -7965,13 +7965,13 @@ function sn(t, e, n) {
|
|
|
7965
7965
|
writable: !0
|
|
7966
7966
|
}) : t[e] = n, t;
|
|
7967
7967
|
}
|
|
7968
|
-
let
|
|
7968
|
+
let Lf = nn, Cf = Sn, Rf = nr;
|
|
7969
7969
|
class Ca extends we {
|
|
7970
7970
|
constructor(e) {
|
|
7971
|
-
super("Scalar", e), sn(this, "kind", "Scalar"), sn(this, "$inferType", void 0), sn(this, "$inferInput", void 0), sn(this,
|
|
7971
|
+
super("Scalar", e), sn(this, "kind", "Scalar"), sn(this, "$inferType", void 0), sn(this, "$inferInput", void 0), sn(this, Lf, void 0), sn(this, Cf, void 0), sn(this, Rf, void 0);
|
|
7972
7972
|
}
|
|
7973
7973
|
}
|
|
7974
|
-
function
|
|
7974
|
+
function kf(t, e, n) {
|
|
7975
7975
|
return e in t ? Object.defineProperty(t, e, {
|
|
7976
7976
|
value: n,
|
|
7977
7977
|
enumerable: !0,
|
|
@@ -7981,7 +7981,7 @@ function Rf(t, e, n) {
|
|
|
7981
7981
|
}
|
|
7982
7982
|
class Ra extends Ca {
|
|
7983
7983
|
constructor(e) {
|
|
7984
|
-
super(e.name),
|
|
7984
|
+
super(e.name), kf(this, "type", void 0), this.type = e;
|
|
7985
7985
|
}
|
|
7986
7986
|
}
|
|
7987
7987
|
function Nn(t, e, n) {
|
|
@@ -7992,10 +7992,10 @@ function Nn(t, e, n) {
|
|
|
7992
7992
|
writable: !0
|
|
7993
7993
|
}) : t[e] = n, t;
|
|
7994
7994
|
}
|
|
7995
|
-
let
|
|
7995
|
+
let Df = nr;
|
|
7996
7996
|
class Yr extends we {
|
|
7997
7997
|
constructor(e, n) {
|
|
7998
|
-
super("InputList", `InputList<${String(e)}>`), Nn(this, "kind", "InputList"), Nn(this,
|
|
7998
|
+
super("InputList", `InputList<${String(e)}>`), Nn(this, "kind", "InputList"), Nn(this, Df, void 0), Nn(this, "$inferInput", void 0), Nn(this, "listType", void 0), Nn(this, "required", void 0), this.listType = e, this.required = n;
|
|
7999
7999
|
}
|
|
8000
8000
|
}
|
|
8001
8001
|
function on(t, e, n) {
|
|
@@ -8006,13 +8006,13 @@ function on(t, e, n) {
|
|
|
8006
8006
|
writable: !0
|
|
8007
8007
|
}) : t[e] = n, t;
|
|
8008
8008
|
}
|
|
8009
|
-
let
|
|
8009
|
+
let $f = nn, jf = Sn;
|
|
8010
8010
|
class Jr extends we {
|
|
8011
8011
|
constructor(e, n) {
|
|
8012
|
-
super("List", `List<${String(e)}>`), on(this, "kind", "List"), on(this, "$inferType", void 0), on(this,
|
|
8012
|
+
super("List", `List<${String(e)}>`), on(this, "kind", "List"), on(this, "$inferType", void 0), on(this, $f, void 0), on(this, jf, void 0), on(this, "listType", void 0), on(this, "nullable", void 0), this.listType = e, this.nullable = n;
|
|
8013
8013
|
}
|
|
8014
8014
|
}
|
|
8015
|
-
function
|
|
8015
|
+
function Pf(t) {
|
|
8016
8016
|
const e = {};
|
|
8017
8017
|
return Array.isArray(t) ? t.forEach((n) => {
|
|
8018
8018
|
e[String(n)] = {
|
|
@@ -8027,7 +8027,7 @@ function jf(t) {
|
|
|
8027
8027
|
});
|
|
8028
8028
|
}), e;
|
|
8029
8029
|
}
|
|
8030
|
-
function
|
|
8030
|
+
function Mf(t, e) {
|
|
8031
8031
|
const n = {};
|
|
8032
8032
|
return Object.keys(t).filter((r) => typeof t[t[r]] != "number").forEach((r) => {
|
|
8033
8033
|
n[r] = {
|
|
@@ -8083,10 +8083,10 @@ function Fi(t, e, n) {
|
|
|
8083
8083
|
};
|
|
8084
8084
|
throw new Z(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
|
|
8085
8085
|
}
|
|
8086
|
-
function
|
|
8086
|
+
function Uf(t) {
|
|
8087
8087
|
throw new TypeError(`Unexpected value: ${t}`);
|
|
8088
8088
|
}
|
|
8089
|
-
function
|
|
8089
|
+
function Vf(t) {
|
|
8090
8090
|
return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
|
|
8091
8091
|
}
|
|
8092
8092
|
function At(t) {
|
|
@@ -8121,7 +8121,7 @@ builder.objectType('MyObject', {
|
|
|
8121
8121
|
`);
|
|
8122
8122
|
}
|
|
8123
8123
|
}
|
|
8124
|
-
function
|
|
8124
|
+
function Bf(t) {
|
|
8125
8125
|
return typeof t == "object" && t !== null && jr in t ? t[jr] : null;
|
|
8126
8126
|
}
|
|
8127
8127
|
function Li(t) {
|
|
@@ -8135,7 +8135,7 @@ function Ke(t, e, n) {
|
|
|
8135
8135
|
writable: !0
|
|
8136
8136
|
}) : t[e] = n, t;
|
|
8137
8137
|
}
|
|
8138
|
-
class
|
|
8138
|
+
class Gf {
|
|
8139
8139
|
getTypeConfig(e, n) {
|
|
8140
8140
|
const r = this.configStore.getTypeConfig(e, n);
|
|
8141
8141
|
return this.typeConfigs.has(r.name) || this.typeConfigs.set(r.name, this.plugin.onTypeConfig(r)), this.typeConfigs.get(r.name);
|
|
@@ -8202,7 +8202,7 @@ class Bf {
|
|
|
8202
8202
|
this.addType(r, this.buildObject(n));
|
|
8203
8203
|
break;
|
|
8204
8204
|
default:
|
|
8205
|
-
|
|
8205
|
+
Uf(n);
|
|
8206
8206
|
}
|
|
8207
8207
|
}
|
|
8208
8208
|
addType(e, n) {
|
|
@@ -8377,7 +8377,7 @@ class Bf {
|
|
|
8377
8377
|
}
|
|
8378
8378
|
buildInterface(e) {
|
|
8379
8379
|
const n = (i, s, o) => {
|
|
8380
|
-
const a =
|
|
8380
|
+
const a = Bf(i);
|
|
8381
8381
|
if (a)
|
|
8382
8382
|
return typeof a == "string" ? a : this.getTypeConfig(a).name;
|
|
8383
8383
|
var u;
|
|
@@ -8414,7 +8414,7 @@ class Bf {
|
|
|
8414
8414
|
}
|
|
8415
8415
|
return l;
|
|
8416
8416
|
};
|
|
8417
|
-
return
|
|
8417
|
+
return Vf(a) ? a.then(u) : u(a);
|
|
8418
8418
|
};
|
|
8419
8419
|
return new ln({
|
|
8420
8420
|
...e,
|
|
@@ -8474,7 +8474,7 @@ class Bf {
|
|
|
8474
8474
|
if (!o)
|
|
8475
8475
|
throw new tr(`No plugin named ${s} was registered`);
|
|
8476
8476
|
return r[s] = new o(this, s), r[s];
|
|
8477
|
-
}), this.pluginMap = r, this.plugin = new
|
|
8477
|
+
}), this.pluginMap = r, this.plugin = new Af(this, this.pluginList);
|
|
8478
8478
|
}
|
|
8479
8479
|
}
|
|
8480
8480
|
function hi(t, e, n) {
|
|
@@ -8485,10 +8485,10 @@ function hi(t, e, n) {
|
|
|
8485
8485
|
writable: !0
|
|
8486
8486
|
}) : t[e] = n, t;
|
|
8487
8487
|
}
|
|
8488
|
-
let
|
|
8489
|
-
class
|
|
8488
|
+
let qf = nr;
|
|
8489
|
+
class Qf extends we {
|
|
8490
8490
|
constructor(e, n) {
|
|
8491
|
-
super(e, n), hi(this, "kind", void 0), hi(this, "$inferInput", void 0), hi(this,
|
|
8491
|
+
super(e, n), hi(this, "kind", void 0), hi(this, "$inferInput", void 0), hi(this, qf, void 0), this.kind = e;
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
8494
8494
|
function cr(t, e, n) {
|
|
@@ -8499,10 +8499,10 @@ function cr(t, e, n) {
|
|
|
8499
8499
|
writable: !0
|
|
8500
8500
|
}) : t[e] = n, t;
|
|
8501
8501
|
}
|
|
8502
|
-
let
|
|
8503
|
-
class
|
|
8502
|
+
let zf = nn, Yf = Sn;
|
|
8503
|
+
class Jf extends we {
|
|
8504
8504
|
constructor(e, n) {
|
|
8505
|
-
super(e, n), cr(this, "kind", void 0), cr(this, "$inferType", void 0), cr(this,
|
|
8505
|
+
super(e, n), cr(this, "kind", void 0), cr(this, "$inferType", void 0), cr(this, zf, void 0), cr(this, Yf, void 0), this.kind = e;
|
|
8506
8506
|
}
|
|
8507
8507
|
}
|
|
8508
8508
|
function it(t, e, n) {
|
|
@@ -8513,7 +8513,7 @@ function it(t, e, n) {
|
|
|
8513
8513
|
writable: !0
|
|
8514
8514
|
}) : t[e] = n, t;
|
|
8515
8515
|
}
|
|
8516
|
-
class
|
|
8516
|
+
class Wf {
|
|
8517
8517
|
hasConfig(e) {
|
|
8518
8518
|
return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
|
|
8519
8519
|
}
|
|
@@ -8609,7 +8609,7 @@ class Jf {
|
|
|
8609
8609
|
const n = this.typeConfigs.get(e);
|
|
8610
8610
|
if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
|
|
8611
8611
|
throw new Z(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
|
|
8612
|
-
const r = new
|
|
8612
|
+
const r = new Qf(n.graphqlKind, n.name);
|
|
8613
8613
|
return this.refsToName.set(r, n.name), r;
|
|
8614
8614
|
}
|
|
8615
8615
|
}
|
|
@@ -8630,7 +8630,7 @@ class Jf {
|
|
|
8630
8630
|
const n = this.typeConfigs.get(e);
|
|
8631
8631
|
if (n.graphqlKind === "InputObject")
|
|
8632
8632
|
throw new Z(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
|
|
8633
|
-
const r = new
|
|
8633
|
+
const r = new Jf(n.graphqlKind, n.name);
|
|
8634
8634
|
return this.refsToName.set(r, n.name), r;
|
|
8635
8635
|
}
|
|
8636
8636
|
}
|
|
@@ -8730,8 +8730,8 @@ function an(t, e, n) {
|
|
|
8730
8730
|
writable: !0
|
|
8731
8731
|
}) : t[e] = n, t;
|
|
8732
8732
|
}
|
|
8733
|
-
let
|
|
8734
|
-
class
|
|
8733
|
+
let Hf = xf;
|
|
8734
|
+
class Kf {
|
|
8735
8735
|
toString() {
|
|
8736
8736
|
var e;
|
|
8737
8737
|
if (this.kind !== "Arg")
|
|
@@ -8743,7 +8743,7 @@ class Hf {
|
|
|
8743
8743
|
return `${this.parentTypename}.${r}(${s})`;
|
|
8744
8744
|
}
|
|
8745
8745
|
constructor(e, n) {
|
|
8746
|
-
an(this, "kind", void 0), an(this, "parentTypename", void 0), an(this, "fieldName", void 0), an(this, "argFor", void 0), an(this, "$inferInput", void 0), an(this,
|
|
8746
|
+
an(this, "kind", void 0), an(this, "parentTypename", void 0), an(this, "fieldName", void 0), an(this, "argFor", void 0), an(this, "$inferInput", void 0), an(this, Hf, void 0), this.kind = e, this.parentTypename = n;
|
|
8747
8747
|
}
|
|
8748
8748
|
}
|
|
8749
8749
|
function Be(t, e, n) {
|
|
@@ -8769,7 +8769,7 @@ class Ci {
|
|
|
8769
8769
|
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
|
|
8770
8770
|
*/
|
|
8771
8771
|
field(e) {
|
|
8772
|
-
const n = new
|
|
8772
|
+
const n = new Kf(this.kind, this.typename);
|
|
8773
8773
|
return this.builder.configStore.addFieldRef(n, e.type, {}, (r, i, s) => {
|
|
8774
8774
|
var o;
|
|
8775
8775
|
return {
|
|
@@ -8821,13 +8821,13 @@ function An(t, e, n) {
|
|
|
8821
8821
|
writable: !0
|
|
8822
8822
|
}) : t[e] = n, t;
|
|
8823
8823
|
}
|
|
8824
|
-
let
|
|
8825
|
-
class
|
|
8824
|
+
let Xf = Ff;
|
|
8825
|
+
class Zf {
|
|
8826
8826
|
toString() {
|
|
8827
8827
|
return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
|
|
8828
8828
|
}
|
|
8829
8829
|
constructor(e, n) {
|
|
8830
|
-
An(this, "kind", void 0), An(this, "parentTypename", void 0), An(this, "fieldName", void 0), An(this, "$inferType", void 0), An(this,
|
|
8830
|
+
An(this, "kind", void 0), An(this, "parentTypename", void 0), An(this, "fieldName", void 0), An(this, "$inferType", void 0), An(this, Xf, void 0), this.kind = e, this.parentTypename = n;
|
|
8831
8831
|
}
|
|
8832
8832
|
}
|
|
8833
8833
|
function fr(t, e, n) {
|
|
@@ -8838,9 +8838,9 @@ function fr(t, e, n) {
|
|
|
8838
8838
|
writable: !0
|
|
8839
8839
|
}) : t[e] = n, t;
|
|
8840
8840
|
}
|
|
8841
|
-
class
|
|
8841
|
+
class ed {
|
|
8842
8842
|
createField(e) {
|
|
8843
|
-
const n = new
|
|
8843
|
+
const n = new Zf(this.kind, this.typename);
|
|
8844
8844
|
var r;
|
|
8845
8845
|
return this.builder.configStore.addFieldRef(n, e.type, (r = e.args) !== null && r !== void 0 ? r : {}, (i, s, o) => {
|
|
8846
8846
|
var a;
|
|
@@ -8890,7 +8890,7 @@ class Zf {
|
|
|
8890
8890
|
fr(this, "typename", void 0), fr(this, "builder", void 0), fr(this, "kind", void 0), fr(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = r, this.graphqlKind = i;
|
|
8891
8891
|
}
|
|
8892
8892
|
}
|
|
8893
|
-
function
|
|
8893
|
+
function td(t, e, n) {
|
|
8894
8894
|
return e in t ? Object.defineProperty(t, e, {
|
|
8895
8895
|
value: n,
|
|
8896
8896
|
enumerable: !0,
|
|
@@ -8898,7 +8898,7 @@ function ed(t, e, n) {
|
|
|
8898
8898
|
writable: !0
|
|
8899
8899
|
}) : t[e] = n, t;
|
|
8900
8900
|
}
|
|
8901
|
-
class Wr extends
|
|
8901
|
+
class Wr extends ed {
|
|
8902
8902
|
/**
|
|
8903
8903
|
* Create a Boolean field
|
|
8904
8904
|
* @param {PothosSchemaTypes.FieldOptions} options - Options for this field
|
|
@@ -9041,7 +9041,7 @@ class Wr extends Zf {
|
|
|
9041
9041
|
return new Jr(e, (r = n == null ? void 0 : n.nullable) !== null && r !== void 0 ? r : !1);
|
|
9042
9042
|
}
|
|
9043
9043
|
constructor(...e) {
|
|
9044
|
-
super(...e),
|
|
9044
|
+
super(...e), td(this, "arg", new Ci(this.builder, "Arg", this.typename).argBuilder());
|
|
9045
9045
|
}
|
|
9046
9046
|
}
|
|
9047
9047
|
class ka extends Wr {
|
|
@@ -9218,10 +9218,10 @@ function xn(t, e, n) {
|
|
|
9218
9218
|
writable: !0
|
|
9219
9219
|
}) : t[e] = n, t;
|
|
9220
9220
|
}
|
|
9221
|
-
let
|
|
9222
|
-
class
|
|
9221
|
+
let nd = nn, rd = nr;
|
|
9222
|
+
class id extends we {
|
|
9223
9223
|
constructor(e) {
|
|
9224
|
-
super("Enum", e), xn(this, "kind", "Enum"), xn(this, "$inferType", void 0), xn(this, "$inferInput", void 0), xn(this,
|
|
9224
|
+
super("Enum", e), xn(this, "kind", "Enum"), xn(this, "$inferType", void 0), xn(this, "$inferInput", void 0), xn(this, nd, void 0), xn(this, rd, void 0);
|
|
9225
9225
|
}
|
|
9226
9226
|
}
|
|
9227
9227
|
function Ir(t, e, n) {
|
|
@@ -9232,13 +9232,13 @@ function Ir(t, e, n) {
|
|
|
9232
9232
|
writable: !0
|
|
9233
9233
|
}) : t[e] = n, t;
|
|
9234
9234
|
}
|
|
9235
|
-
let
|
|
9235
|
+
let sd = nr;
|
|
9236
9236
|
class Da extends we {
|
|
9237
9237
|
constructor(e) {
|
|
9238
|
-
super("InputObject", e), Ir(this, "kind", "InputObject"), Ir(this, "$inferInput", void 0), Ir(this,
|
|
9238
|
+
super("InputObject", e), Ir(this, "kind", "InputObject"), Ir(this, "$inferInput", void 0), Ir(this, sd, void 0);
|
|
9239
9239
|
}
|
|
9240
9240
|
}
|
|
9241
|
-
class
|
|
9241
|
+
class od extends Da {
|
|
9242
9242
|
implement(e) {
|
|
9243
9243
|
return this.builder.inputType(this, e), this;
|
|
9244
9244
|
}
|
|
@@ -9254,13 +9254,13 @@ function $n(t, e, n) {
|
|
|
9254
9254
|
writable: !0
|
|
9255
9255
|
}) : t[e] = n, t;
|
|
9256
9256
|
}
|
|
9257
|
-
let
|
|
9257
|
+
let ad = nn, ud = Sn;
|
|
9258
9258
|
class $a extends we {
|
|
9259
9259
|
constructor(e) {
|
|
9260
|
-
super("Interface", e), $n(this, "kind", "Interface"), $n(this, "$inferType", void 0), $n(this,
|
|
9260
|
+
super("Interface", e), $n(this, "kind", "Interface"), $n(this, "$inferType", void 0), $n(this, ad, void 0), $n(this, ud, void 0);
|
|
9261
9261
|
}
|
|
9262
9262
|
}
|
|
9263
|
-
class
|
|
9263
|
+
class ld extends $a {
|
|
9264
9264
|
implement(e) {
|
|
9265
9265
|
return this.builder.interfaceType(this, e);
|
|
9266
9266
|
}
|
|
@@ -9276,13 +9276,13 @@ function jn(t, e, n) {
|
|
|
9276
9276
|
writable: !0
|
|
9277
9277
|
}) : t[e] = n, t;
|
|
9278
9278
|
}
|
|
9279
|
-
let
|
|
9279
|
+
let cd = nn, fd = Sn;
|
|
9280
9280
|
class Ri extends we {
|
|
9281
9281
|
constructor(e) {
|
|
9282
|
-
super("Object", e), jn(this, "kind", "Object"), jn(this, "$inferType", void 0), jn(this,
|
|
9282
|
+
super("Object", e), jn(this, "kind", "Object"), jn(this, "$inferType", void 0), jn(this, cd, void 0), jn(this, fd, void 0);
|
|
9283
9283
|
}
|
|
9284
9284
|
}
|
|
9285
|
-
class
|
|
9285
|
+
class dd extends Ri {
|
|
9286
9286
|
implement(e) {
|
|
9287
9287
|
return this.builder.objectType(this, e);
|
|
9288
9288
|
}
|
|
@@ -9298,10 +9298,10 @@ function yr(t, e, n) {
|
|
|
9298
9298
|
writable: !0
|
|
9299
9299
|
}) : t[e] = n, t;
|
|
9300
9300
|
}
|
|
9301
|
-
let
|
|
9302
|
-
class
|
|
9301
|
+
let hd = nn, pd = Sn;
|
|
9302
|
+
class gd extends we {
|
|
9303
9303
|
constructor(e) {
|
|
9304
|
-
super("Union", e), yr(this, "kind", "Union"), yr(this, "$inferType", void 0), yr(this,
|
|
9304
|
+
super("Union", e), yr(this, "kind", "Union"), yr(this, "$inferType", void 0), yr(this, hd, void 0), yr(this, pd, void 0);
|
|
9305
9305
|
}
|
|
9306
9306
|
}
|
|
9307
9307
|
function cn(t, e, n) {
|
|
@@ -9439,7 +9439,7 @@ let es = class {
|
|
|
9439
9439
|
});
|
|
9440
9440
|
}
|
|
9441
9441
|
unionType(e, n) {
|
|
9442
|
-
const r = new
|
|
9442
|
+
const r = new gd(e);
|
|
9443
9443
|
Array.isArray(n.types) && n.types.forEach((s) => {
|
|
9444
9444
|
At(s);
|
|
9445
9445
|
});
|
|
@@ -9457,11 +9457,11 @@ let es = class {
|
|
|
9457
9457
|
}
|
|
9458
9458
|
enumType(e, n) {
|
|
9459
9459
|
At(e);
|
|
9460
|
-
const r = typeof e == "string" ? e : n.name, i = new
|
|
9460
|
+
const r = typeof e == "string" ? e : n.name, i = new id(r), s = typeof e == "object" ? Mf(
|
|
9461
9461
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
9462
9462
|
e,
|
|
9463
9463
|
n == null ? void 0 : n.values
|
|
9464
|
-
) :
|
|
9464
|
+
) : Pf(n.values), o = {
|
|
9465
9465
|
kind: "Enum",
|
|
9466
9466
|
graphqlKind: "Enum",
|
|
9467
9467
|
name: r,
|
|
@@ -9511,13 +9511,13 @@ let es = class {
|
|
|
9511
9511
|
return this.configStore.addTypeConfig(s, i), this.configStore.addFields(i, () => n.fields(new Ci(this, "InputObject", r))), i;
|
|
9512
9512
|
}
|
|
9513
9513
|
inputRef(e) {
|
|
9514
|
-
return new
|
|
9514
|
+
return new od(this, e);
|
|
9515
9515
|
}
|
|
9516
9516
|
objectRef(e) {
|
|
9517
|
-
return new
|
|
9517
|
+
return new dd(this, e);
|
|
9518
9518
|
}
|
|
9519
9519
|
interfaceRef(e) {
|
|
9520
|
-
return new
|
|
9520
|
+
return new ld(this, e);
|
|
9521
9521
|
}
|
|
9522
9522
|
toSchema(...e) {
|
|
9523
9523
|
const [n = {}] = e, { directives: r, extensions: i } = n;
|
|
@@ -9530,7 +9530,7 @@ let es = class {
|
|
|
9530
9530
|
].forEach((c) => {
|
|
9531
9531
|
this.configStore.hasConfig(c.name) || this.addScalarType(c.name, c);
|
|
9532
9532
|
});
|
|
9533
|
-
const o = new
|
|
9533
|
+
const o = new Gf(this, n);
|
|
9534
9534
|
o.plugin.beforeBuild(), o.buildAll();
|
|
9535
9535
|
const a = [
|
|
9536
9536
|
...o.types.values()
|
|
@@ -9542,10 +9542,10 @@ let es = class {
|
|
|
9542
9542
|
directives: r,
|
|
9543
9543
|
types: a
|
|
9544
9544
|
}), l = o.plugin.afterBuild(u);
|
|
9545
|
-
return n.sortSchema === !1 ? l :
|
|
9545
|
+
return n.sortSchema === !1 ? l : Sf(l);
|
|
9546
9546
|
}
|
|
9547
9547
|
constructor(e) {
|
|
9548
|
-
cn(this, "configStore", void 0), cn(this, "options", void 0), cn(this, "defaultFieldNullability", void 0), cn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new
|
|
9548
|
+
cn(this, "configStore", void 0), cn(this, "options", void 0), cn(this, "defaultFieldNullability", void 0), cn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new Wf();
|
|
9549
9549
|
var n;
|
|
9550
9550
|
this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
|
|
9551
9551
|
var r;
|
|
@@ -9554,7 +9554,7 @@ let es = class {
|
|
|
9554
9554
|
};
|
|
9555
9555
|
cn(es, "plugins", {});
|
|
9556
9556
|
cn(es, "allowPluginReRegistration", !1);
|
|
9557
|
-
const
|
|
9557
|
+
const md = es;
|
|
9558
9558
|
function Ks(t) {
|
|
9559
9559
|
return t;
|
|
9560
9560
|
}
|
|
@@ -9591,7 +9591,7 @@ function ts(t, e, n) {
|
|
|
9591
9591
|
throw new TypeError(t + " cannot represent value: " + pe(e));
|
|
9592
9592
|
}
|
|
9593
9593
|
}
|
|
9594
|
-
var
|
|
9594
|
+
var yd = new yt({
|
|
9595
9595
|
name: "JSON",
|
|
9596
9596
|
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).",
|
|
9597
9597
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9600,7 +9600,7 @@ var md = new yt({
|
|
|
9600
9600
|
parseLiteral: function(e, n) {
|
|
9601
9601
|
return ts("JSON", e, n);
|
|
9602
9602
|
}
|
|
9603
|
-
}),
|
|
9603
|
+
}), bd = new yt({
|
|
9604
9604
|
name: "JSONObject",
|
|
9605
9605
|
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).",
|
|
9606
9606
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9623,7 +9623,7 @@ function Hr(t, e) {
|
|
|
9623
9623
|
case "function":
|
|
9624
9624
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
9625
9625
|
case "object":
|
|
9626
|
-
return
|
|
9626
|
+
return Ed(t, e);
|
|
9627
9627
|
default:
|
|
9628
9628
|
return String(t);
|
|
9629
9629
|
}
|
|
@@ -9632,7 +9632,7 @@ function Zs(t) {
|
|
|
9632
9632
|
return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
|
|
9633
9633
|
${t.stack}`;
|
|
9634
9634
|
}
|
|
9635
|
-
function
|
|
9635
|
+
function Ed(t, e) {
|
|
9636
9636
|
if (t === null)
|
|
9637
9637
|
return "null";
|
|
9638
9638
|
if (t instanceof Error)
|
|
@@ -9641,20 +9641,20 @@ function bd(t, e) {
|
|
|
9641
9641
|
if (e.includes(t))
|
|
9642
9642
|
return "[Circular]";
|
|
9643
9643
|
const n = [...e, t];
|
|
9644
|
-
if (
|
|
9644
|
+
if (vd(t)) {
|
|
9645
9645
|
const r = t.toJSON();
|
|
9646
9646
|
if (r !== t)
|
|
9647
9647
|
return typeof r == "string" ? r : Hr(r, n);
|
|
9648
9648
|
} else if (Array.isArray(t))
|
|
9649
9649
|
return eo(t, n);
|
|
9650
|
-
return
|
|
9650
|
+
return wd(t, n);
|
|
9651
9651
|
}
|
|
9652
|
-
function
|
|
9652
|
+
function vd(t) {
|
|
9653
9653
|
return typeof t.toJSON == "function";
|
|
9654
9654
|
}
|
|
9655
|
-
function
|
|
9655
|
+
function wd(t, e) {
|
|
9656
9656
|
const n = Object.entries(t);
|
|
9657
|
-
return n.length === 0 ? "{}" : e.length > Pa ? "[" +
|
|
9657
|
+
return n.length === 0 ? "{}" : e.length > Pa ? "[" + Td(t) + "]" : "{ " + n.map(([i, s]) => i + ": " + Hr(s, e)).join(", ") + " }";
|
|
9658
9658
|
}
|
|
9659
9659
|
function eo(t, e) {
|
|
9660
9660
|
if (t.length === 0)
|
|
@@ -9666,7 +9666,7 @@ function eo(t, e) {
|
|
|
9666
9666
|
r.push(Hr(t[i], e));
|
|
9667
9667
|
return "[" + r.join(", ") + "]";
|
|
9668
9668
|
}
|
|
9669
|
-
function
|
|
9669
|
+
function Td(t) {
|
|
9670
9670
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
9671
9671
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
9672
9672
|
const n = t.constructor.name;
|
|
@@ -9675,7 +9675,7 @@ function wd(t) {
|
|
|
9675
9675
|
}
|
|
9676
9676
|
return e;
|
|
9677
9677
|
}
|
|
9678
|
-
const
|
|
9678
|
+
const Sd = [
|
|
9679
9679
|
"message",
|
|
9680
9680
|
"locations",
|
|
9681
9681
|
"path",
|
|
@@ -9687,13 +9687,13 @@ const Td = [
|
|
|
9687
9687
|
"stack",
|
|
9688
9688
|
"extensions"
|
|
9689
9689
|
];
|
|
9690
|
-
function
|
|
9691
|
-
return t != null && typeof t == "object" && Object.keys(t).every((e) =>
|
|
9690
|
+
function Id(t) {
|
|
9691
|
+
return t != null && typeof t == "object" && Object.keys(t).every((e) => Sd.includes(e));
|
|
9692
9692
|
}
|
|
9693
9693
|
function q(t, e) {
|
|
9694
|
-
return e != null && e.originalError && !(e.originalError instanceof Error) &&
|
|
9694
|
+
return e != null && e.originalError && !(e.originalError instanceof Error) && Id(e.originalError) && (e.originalError = q(e.originalError.message, e.originalError)), rl.major >= 17 ? new D(t, e) : new D(t, e == null ? void 0 : e.nodes, e == null ? void 0 : e.source, e == null ? void 0 : e.positions, e == null ? void 0 : e.path, e == null ? void 0 : e.originalError, e == null ? void 0 : e.extensions);
|
|
9695
9695
|
}
|
|
9696
|
-
function
|
|
9696
|
+
function _d(t) {
|
|
9697
9697
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
9698
9698
|
}
|
|
9699
9699
|
function Ma(t) {
|
|
@@ -9702,7 +9702,7 @@ function Ma(t) {
|
|
|
9702
9702
|
function Fe(t) {
|
|
9703
9703
|
return (t == null ? void 0 : t.then) != null;
|
|
9704
9704
|
}
|
|
9705
|
-
function
|
|
9705
|
+
function Od(t, e, n) {
|
|
9706
9706
|
let r = n;
|
|
9707
9707
|
for (const i of t)
|
|
9708
9708
|
r = Fe(r) ? r.then((s) => e(s, i)) : e(r, i);
|
|
@@ -9766,7 +9766,7 @@ function Ba(t) {
|
|
|
9766
9766
|
return i;
|
|
9767
9767
|
};
|
|
9768
9768
|
}
|
|
9769
|
-
function
|
|
9769
|
+
function Nd(t) {
|
|
9770
9770
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9771
9771
|
return function(r, i, s) {
|
|
9772
9772
|
let o = e.get(r);
|
|
@@ -9791,7 +9791,7 @@ function Od(t) {
|
|
|
9791
9791
|
return u;
|
|
9792
9792
|
};
|
|
9793
9793
|
}
|
|
9794
|
-
function
|
|
9794
|
+
function Ad(t) {
|
|
9795
9795
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9796
9796
|
return function(r, i, s, o, a) {
|
|
9797
9797
|
let u = e.get(r);
|
|
@@ -9838,15 +9838,15 @@ function Nd(t) {
|
|
|
9838
9838
|
return g;
|
|
9839
9839
|
};
|
|
9840
9840
|
}
|
|
9841
|
-
function
|
|
9842
|
-
const i =
|
|
9841
|
+
function xd(t, e, n) {
|
|
9842
|
+
const i = Fd(t).get(e);
|
|
9843
9843
|
if (i == null)
|
|
9844
9844
|
throw q(`Schema is not configured to execute ${e} operation.`, {
|
|
9845
9845
|
nodes: n
|
|
9846
9846
|
});
|
|
9847
9847
|
return i;
|
|
9848
9848
|
}
|
|
9849
|
-
const
|
|
9849
|
+
const Fd = Ba(function(e) {
|
|
9850
9850
|
const n = /* @__PURE__ */ new Map(), r = e.getQueryType();
|
|
9851
9851
|
r && n.set("query", r);
|
|
9852
9852
|
const i = e.getMutationType();
|
|
@@ -9898,7 +9898,7 @@ class Pr extends Map {
|
|
|
9898
9898
|
r === void 0 ? this.set(e, [n]) : r.push(n);
|
|
9899
9899
|
}
|
|
9900
9900
|
}
|
|
9901
|
-
const
|
|
9901
|
+
const Ld = new Lt({
|
|
9902
9902
|
name: "defer",
|
|
9903
9903
|
description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
|
|
9904
9904
|
locations: [z.FRAGMENT_SPREAD, z.INLINE_FRAGMENT],
|
|
@@ -9913,7 +9913,7 @@ const Fd = new Lt({
|
|
|
9913
9913
|
description: "Unique name"
|
|
9914
9914
|
}
|
|
9915
9915
|
}
|
|
9916
|
-
}),
|
|
9916
|
+
}), Cd = new Lt({
|
|
9917
9917
|
name: "stream",
|
|
9918
9918
|
description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
|
|
9919
9919
|
locations: [z.FIELD],
|
|
@@ -9940,7 +9940,7 @@ function fn(t, e, n, r, i, s, o, a) {
|
|
|
9940
9940
|
case T.FIELD: {
|
|
9941
9941
|
if (!pi(n, u))
|
|
9942
9942
|
continue;
|
|
9943
|
-
s.add(
|
|
9943
|
+
s.add(Rd(u), u);
|
|
9944
9944
|
break;
|
|
9945
9945
|
}
|
|
9946
9946
|
case T.INLINE_FRAGMENT: {
|
|
@@ -9997,17 +9997,17 @@ function ro(t, e, n) {
|
|
|
9997
9997
|
const i = Qe(t, r);
|
|
9998
9998
|
return i === n ? !0 : Ft(i) ? t.getPossibleTypes(i).includes(n) : !1;
|
|
9999
9999
|
}
|
|
10000
|
-
function
|
|
10000
|
+
function Rd(t) {
|
|
10001
10001
|
return t.alias ? t.alias.value : t.name.value;
|
|
10002
10002
|
}
|
|
10003
10003
|
function io(t, e) {
|
|
10004
|
-
const n = vn(
|
|
10004
|
+
const n = vn(Ld, e, t);
|
|
10005
10005
|
if (n && n.if !== !1)
|
|
10006
10006
|
return {
|
|
10007
10007
|
label: typeof n.label == "string" ? n.label : void 0
|
|
10008
10008
|
};
|
|
10009
10009
|
}
|
|
10010
|
-
const
|
|
10010
|
+
const kd = Ad(function(e, n, r, i, s) {
|
|
10011
10011
|
const o = new Pr(), a = /* @__PURE__ */ new Set(), u = [], l = {
|
|
10012
10012
|
fields: o,
|
|
10013
10013
|
patches: u
|
|
@@ -10029,13 +10029,13 @@ function Le(t) {
|
|
|
10029
10029
|
e.push(n.key), n = n.prev;
|
|
10030
10030
|
return e.reverse();
|
|
10031
10031
|
}
|
|
10032
|
-
function
|
|
10032
|
+
function Dd(t) {
|
|
10033
10033
|
return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
|
|
10034
10034
|
}
|
|
10035
|
-
function
|
|
10035
|
+
function $d(t) {
|
|
10036
10036
|
return t != null && typeof t == "object" && "errors" in t;
|
|
10037
10037
|
}
|
|
10038
|
-
function
|
|
10038
|
+
function jd(t) {
|
|
10039
10039
|
return t != null && typeof t.toString == "function";
|
|
10040
10040
|
}
|
|
10041
10041
|
function wn(t) {
|
|
@@ -10046,7 +10046,7 @@ function Qa(t) {
|
|
|
10046
10046
|
}
|
|
10047
10047
|
function _r(t, e, n) {
|
|
10048
10048
|
const r = /* @__PURE__ */ new Set();
|
|
10049
|
-
if (
|
|
10049
|
+
if ($d(t))
|
|
10050
10050
|
for (const i of t.errors) {
|
|
10051
10051
|
const s = _r(i, e, n);
|
|
10052
10052
|
for (const o of s)
|
|
@@ -10063,7 +10063,7 @@ function _r(t, e, n) {
|
|
|
10063
10063
|
extensions: {
|
|
10064
10064
|
unexpected: !0
|
|
10065
10065
|
}
|
|
10066
|
-
})) :
|
|
10066
|
+
})) : jd(t) ? r.add(q(t.toString(), {
|
|
10067
10067
|
extensions: {
|
|
10068
10068
|
unexpected: !0
|
|
10069
10069
|
}
|
|
@@ -10093,7 +10093,7 @@ function ns(t, e = {}, n = !1) {
|
|
|
10093
10093
|
headers: e
|
|
10094
10094
|
};
|
|
10095
10095
|
}
|
|
10096
|
-
function
|
|
10096
|
+
function Pd(t) {
|
|
10097
10097
|
return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
|
|
10098
10098
|
t.some(wn);
|
|
10099
10099
|
}
|
|
@@ -10110,32 +10110,32 @@ const Vt = {
|
|
|
10110
10110
|
error: 3,
|
|
10111
10111
|
silent: 4
|
|
10112
10112
|
}, br = () => {
|
|
10113
|
-
}, Xr = (t) => (...e) => console.log(t, ...e),
|
|
10113
|
+
}, Xr = (t) => (...e) => console.log(t, ...e), Md = console.debug ? (...t) => console.debug(uo, ...t) : Xr(uo), Ud = console.info ? (...t) => console.info(oo, ...t) : Xr(oo), Vd = console.warn ? (...t) => console.warn(so, ...t) : Xr(so), Bd = console.error ? (...t) => console.error(ao, ...t) : Xr(ao), gi = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
|
|
10114
10114
|
const n = Fn[t];
|
|
10115
10115
|
return {
|
|
10116
|
-
debug: n > Fn.debug ? br :
|
|
10117
|
-
info: n > Fn.info ? br :
|
|
10118
|
-
warn: n > Fn.warn ? br :
|
|
10119
|
-
error: n > Fn.error ? br :
|
|
10116
|
+
debug: n > Fn.debug ? br : Md,
|
|
10117
|
+
info: n > Fn.info ? br : Ud,
|
|
10118
|
+
warn: n > Fn.warn ? br : Vd,
|
|
10119
|
+
error: n > Fn.error ? br : Bd
|
|
10120
10120
|
};
|
|
10121
|
-
},
|
|
10122
|
-
function
|
|
10121
|
+
}, Gd = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.2.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.2.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
|
|
10122
|
+
function qd({ headers: t, method: e }) {
|
|
10123
10123
|
var n;
|
|
10124
10124
|
return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
|
|
10125
10125
|
}
|
|
10126
|
-
const
|
|
10127
|
-
function
|
|
10126
|
+
const Qd = (t) => Gd.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
|
|
10127
|
+
function zd(t) {
|
|
10128
10128
|
const e = t.logger ?? console;
|
|
10129
10129
|
let n;
|
|
10130
10130
|
typeof (t == null ? void 0 : t.options) == "function" ? n = t == null ? void 0 : t.options : typeof (t == null ? void 0 : t.options) == "object" ? n = () => t == null ? void 0 : t.options : (t == null ? void 0 : t.options) === !1 ? n = () => !1 : n = () => ({});
|
|
10131
|
-
const r = (t == null ? void 0 : t.render) ??
|
|
10131
|
+
const r = (t == null ? void 0 : t.render) ?? Qd;
|
|
10132
10132
|
let i;
|
|
10133
10133
|
const s = ({ URLPattern: o }) => (i || (i = new o({
|
|
10134
10134
|
pathname: t.graphqlEndpoint
|
|
10135
10135
|
})), i);
|
|
10136
10136
|
return {
|
|
10137
10137
|
async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: l, url: c }) {
|
|
10138
|
-
if (
|
|
10138
|
+
if (qd(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || c.pathname === t.graphqlEndpoint || c.pathname === `${t.graphqlEndpoint}/` || s(u).test(c))) {
|
|
10139
10139
|
e.debug("Rendering GraphiQL");
|
|
10140
10140
|
const p = await n(o, a);
|
|
10141
10141
|
if (p) {
|
|
@@ -10153,7 +10153,7 @@ function Qd(t) {
|
|
|
10153
10153
|
}
|
|
10154
10154
|
};
|
|
10155
10155
|
}
|
|
10156
|
-
const
|
|
10156
|
+
const Yd = (t) => {
|
|
10157
10157
|
if (t == null)
|
|
10158
10158
|
return {};
|
|
10159
10159
|
if (wa(t))
|
|
@@ -10202,10 +10202,10 @@ const zd = (t) => {
|
|
|
10202
10202
|
}
|
|
10203
10203
|
};
|
|
10204
10204
|
};
|
|
10205
|
-
function
|
|
10205
|
+
function Jd(t) {
|
|
10206
10206
|
return t != null && typeof t.then == "function";
|
|
10207
10207
|
}
|
|
10208
|
-
const
|
|
10208
|
+
const Wd = (t) => {
|
|
10209
10209
|
throw t;
|
|
10210
10210
|
};
|
|
10211
10211
|
class Xe {
|
|
@@ -10218,7 +10218,7 @@ class Xe {
|
|
|
10218
10218
|
this.state = { status: "rejected", value: r };
|
|
10219
10219
|
return;
|
|
10220
10220
|
}
|
|
10221
|
-
if (
|
|
10221
|
+
if (Jd(n)) {
|
|
10222
10222
|
this.state = { status: "pending", value: n };
|
|
10223
10223
|
return;
|
|
10224
10224
|
}
|
|
@@ -10228,7 +10228,7 @@ class Xe {
|
|
|
10228
10228
|
const r = this.state;
|
|
10229
10229
|
if (r.status === "pending")
|
|
10230
10230
|
return new Xe(() => r.value.then(e, n));
|
|
10231
|
-
const i = typeof n == "function" ? n :
|
|
10231
|
+
const i = typeof n == "function" ? n : Wd;
|
|
10232
10232
|
if (r.status === "rejected")
|
|
10233
10233
|
return new Xe(() => i(r.value));
|
|
10234
10234
|
try {
|
|
@@ -10268,7 +10268,7 @@ class Xe {
|
|
|
10268
10268
|
})) : new Xe(() => Promise.all(s)) : new Xe(() => s);
|
|
10269
10269
|
}
|
|
10270
10270
|
}
|
|
10271
|
-
function
|
|
10271
|
+
function Hd(t) {
|
|
10272
10272
|
const e = t[Symbol.asyncIterator]();
|
|
10273
10273
|
let n, r, i = !1;
|
|
10274
10274
|
async function s() {
|
|
@@ -10320,10 +10320,10 @@ async function co(t, e) {
|
|
|
10320
10320
|
})).then(() => r(), i);
|
|
10321
10321
|
}), n;
|
|
10322
10322
|
}
|
|
10323
|
-
function
|
|
10323
|
+
function Kd(t, e, n, r) {
|
|
10324
10324
|
const i = [], s = r == null ? void 0 : r.maxErrors;
|
|
10325
10325
|
try {
|
|
10326
|
-
const o =
|
|
10326
|
+
const o = Xd(t, e, n, (a) => {
|
|
10327
10327
|
if (s != null && i.length >= s)
|
|
10328
10328
|
throw q("Too many errors processing variables, error limit reached. Execution aborted.");
|
|
10329
10329
|
i.push(a);
|
|
@@ -10335,7 +10335,7 @@ function Hd(t, e, n, r) {
|
|
|
10335
10335
|
}
|
|
10336
10336
|
return { errors: i };
|
|
10337
10337
|
}
|
|
10338
|
-
function
|
|
10338
|
+
function Xd(t, e, n, r) {
|
|
10339
10339
|
const i = {};
|
|
10340
10340
|
for (const s of e) {
|
|
10341
10341
|
const o = s.variable.name.value, a = Qe(t, s.type);
|
|
@@ -10363,9 +10363,9 @@ function Kd(t, e, n, r) {
|
|
|
10363
10363
|
}));
|
|
10364
10364
|
continue;
|
|
10365
10365
|
}
|
|
10366
|
-
i[o] =
|
|
10366
|
+
i[o] = Kc(u, a, (l, c, p) => {
|
|
10367
10367
|
let g = `Variable "$${o}" got invalid value ` + qe(c);
|
|
10368
|
-
l.length > 0 && (g += ` at "${o}${
|
|
10368
|
+
l.length > 0 && (g += ` at "${o}${Dd(l)}"`), r(q(g + "; " + p.message, {
|
|
10369
10369
|
nodes: s,
|
|
10370
10370
|
originalError: p.originalError
|
|
10371
10371
|
}));
|
|
@@ -10373,8 +10373,8 @@ function Kd(t, e, n, r) {
|
|
|
10373
10373
|
}
|
|
10374
10374
|
return i;
|
|
10375
10375
|
}
|
|
10376
|
-
const
|
|
10377
|
-
function
|
|
10376
|
+
const Zd = Nd((t, e, n) => kd(t.schema, t.fragments, t.variableValues, e, n));
|
|
10377
|
+
function eh(t) {
|
|
10378
10378
|
const e = Ya(t);
|
|
10379
10379
|
return "schema" in e ? za(e) : {
|
|
10380
10380
|
errors: e.map((n) => {
|
|
@@ -10392,21 +10392,21 @@ function Zd(t) {
|
|
|
10392
10392
|
};
|
|
10393
10393
|
}
|
|
10394
10394
|
function za(t) {
|
|
10395
|
-
return new Xe(() =>
|
|
10395
|
+
return new Xe(() => rh(t)).then((e) => {
|
|
10396
10396
|
const n = fo(e, t.errors);
|
|
10397
10397
|
return t.subsequentPayloads.size > 0 ? {
|
|
10398
10398
|
initialResult: {
|
|
10399
10399
|
...n,
|
|
10400
10400
|
hasNext: !0
|
|
10401
10401
|
},
|
|
10402
|
-
subsequentResults:
|
|
10402
|
+
subsequentResults: bh(t)
|
|
10403
10403
|
} : n;
|
|
10404
10404
|
}, (e) => (t.errors.push(e), fo(null, t.errors))).resolve();
|
|
10405
10405
|
}
|
|
10406
10406
|
function fo(t, e) {
|
|
10407
10407
|
return e.length === 0 ? { data: t } : { errors: e, data: t };
|
|
10408
10408
|
}
|
|
10409
|
-
const
|
|
10409
|
+
const th = Ba(function(e) {
|
|
10410
10410
|
const n = /* @__PURE__ */ Object.create(null);
|
|
10411
10411
|
for (const r of e.definitions)
|
|
10412
10412
|
r.kind === T.FRAGMENT_DEFINITION && (n[r.name.value] = r);
|
|
@@ -10416,7 +10416,7 @@ function Ya(t) {
|
|
|
10416
10416
|
var C;
|
|
10417
10417
|
const { schema: e, document: n, rootValue: r, contextValue: i, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: l, signal: c } = t;
|
|
10418
10418
|
Ta(e);
|
|
10419
|
-
const p =
|
|
10419
|
+
const p = th(n);
|
|
10420
10420
|
let g;
|
|
10421
10421
|
for (const v of n.definitions)
|
|
10422
10422
|
switch (v.kind) {
|
|
@@ -10432,7 +10432,7 @@ function Ya(t) {
|
|
|
10432
10432
|
}
|
|
10433
10433
|
if (g == null)
|
|
10434
10434
|
return o != null ? [q(`Unknown operation named "${o}".`)] : [q("Must provide an operation.")];
|
|
10435
|
-
const I = g.variableDefinitions ?? [], E =
|
|
10435
|
+
const I = g.variableDefinitions ?? [], E = Kd(e, I, s ?? {}, {
|
|
10436
10436
|
maxErrors: 50
|
|
10437
10437
|
});
|
|
10438
10438
|
return E.errors ? E.errors : {
|
|
@@ -10443,14 +10443,14 @@ function Ya(t) {
|
|
|
10443
10443
|
operation: g,
|
|
10444
10444
|
variableValues: E.coerced,
|
|
10445
10445
|
fieldResolver: a ?? mo,
|
|
10446
|
-
typeResolver: u ??
|
|
10446
|
+
typeResolver: u ?? lh,
|
|
10447
10447
|
subscribeFieldResolver: l ?? mo,
|
|
10448
10448
|
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
10449
10449
|
errors: [],
|
|
10450
10450
|
signal: c
|
|
10451
10451
|
};
|
|
10452
10452
|
}
|
|
10453
|
-
function
|
|
10453
|
+
function nh(t, e) {
|
|
10454
10454
|
return {
|
|
10455
10455
|
...t,
|
|
10456
10456
|
rootValue: e,
|
|
@@ -10458,23 +10458,23 @@ function th(t, e) {
|
|
|
10458
10458
|
errors: []
|
|
10459
10459
|
};
|
|
10460
10460
|
}
|
|
10461
|
-
function
|
|
10462
|
-
const { operation: e, schema: n, fragments: r, variableValues: i, rootValue: s } = t, o =
|
|
10461
|
+
function rh(t) {
|
|
10462
|
+
const { operation: e, schema: n, fragments: r, variableValues: i, rootValue: s } = t, o = xd(n, e.operation, [e]);
|
|
10463
10463
|
o == null && q(`Schema is not configured to execute ${e.operation} operation.`, {
|
|
10464
10464
|
nodes: e
|
|
10465
10465
|
});
|
|
10466
10466
|
const { fields: a, patches: u } = qa(n, r, i, o, e.selectionSet), l = void 0;
|
|
10467
10467
|
let c;
|
|
10468
|
-
e.operation === "mutation" ? c =
|
|
10468
|
+
e.operation === "mutation" ? c = ih(t, o, s, l, a) : c = rs(t, o, s, l, a);
|
|
10469
10469
|
for (const p of u) {
|
|
10470
10470
|
const { label: g, fields: I } = p;
|
|
10471
10471
|
Za(t, o, s, I, g, l);
|
|
10472
10472
|
}
|
|
10473
10473
|
return c;
|
|
10474
10474
|
}
|
|
10475
|
-
function
|
|
10475
|
+
function ih(t, e, n, r, i) {
|
|
10476
10476
|
let s = !1;
|
|
10477
|
-
return
|
|
10477
|
+
return Od(i, (o, [a, u]) => {
|
|
10478
10478
|
var c;
|
|
10479
10479
|
const l = In(r, a, e.name);
|
|
10480
10480
|
return (c = t.signal) != null && c.aborted ? (o[a] = null, o) : new Xe(() => Ja(t, e, n, u, l)).then((p) => {
|
|
@@ -10561,11 +10561,11 @@ function Bt(t, e, n, r, i, s, o) {
|
|
|
10561
10561
|
if (s == null)
|
|
10562
10562
|
return null;
|
|
10563
10563
|
if (xe(e))
|
|
10564
|
-
return
|
|
10564
|
+
return oh(t, e, n, r, i, s, o);
|
|
10565
10565
|
if (Mt(e))
|
|
10566
|
-
return
|
|
10566
|
+
return ah(e, s);
|
|
10567
10567
|
if (Ft(e))
|
|
10568
|
-
return
|
|
10568
|
+
return uh(t, e, n, r, i, s, o);
|
|
10569
10569
|
if (ce(e))
|
|
10570
10570
|
return ki(t, e, n, r, i, s, o);
|
|
10571
10571
|
console.assert(!1, "Cannot complete value of unexpected output type: " + qe(e));
|
|
@@ -10573,14 +10573,14 @@ function Bt(t, e, n, r, i, s, o) {
|
|
|
10573
10573
|
function Ha(t, e, n) {
|
|
10574
10574
|
if (typeof n.key == "number")
|
|
10575
10575
|
return;
|
|
10576
|
-
const r = vn(
|
|
10576
|
+
const r = vn(Cd, e[0], t.variableValues);
|
|
10577
10577
|
if (r && r.if !== !1)
|
|
10578
10578
|
return lo(typeof r.initialCount == "number", "initialCount must be a number"), lo(r.initialCount >= 0, "initialCount must be a positive integer"), {
|
|
10579
10579
|
initialCount: r.initialCount,
|
|
10580
10580
|
label: typeof r.label == "string" ? r.label : void 0
|
|
10581
10581
|
};
|
|
10582
10582
|
}
|
|
10583
|
-
async function
|
|
10583
|
+
async function sh(t, e, n, r, i, s, o) {
|
|
10584
10584
|
var g;
|
|
10585
10585
|
(g = t.signal) == null || g.addEventListener("abort", () => {
|
|
10586
10586
|
var I, E;
|
|
@@ -10596,7 +10596,7 @@ async function ih(t, e, n, r, i, s, o) {
|
|
|
10596
10596
|
let p = 0;
|
|
10597
10597
|
for (; ; ) {
|
|
10598
10598
|
if (u && typeof u.initialCount == "number" && p >= u.initialCount) {
|
|
10599
|
-
|
|
10599
|
+
mh(p, s, t, n, r, e, i, u.label, o);
|
|
10600
10600
|
break;
|
|
10601
10601
|
}
|
|
10602
10602
|
const I = In(i, p, void 0);
|
|
@@ -10613,13 +10613,13 @@ async function ih(t, e, n, r, i, s, o) {
|
|
|
10613
10613
|
}
|
|
10614
10614
|
return l ? Promise.all(c) : c;
|
|
10615
10615
|
}
|
|
10616
|
-
function
|
|
10616
|
+
function oh(t, e, n, r, i, s, o) {
|
|
10617
10617
|
const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
|
|
10618
10618
|
if (Kr(s)) {
|
|
10619
10619
|
const E = s[Symbol.asyncIterator]();
|
|
10620
|
-
return
|
|
10620
|
+
return sh(t, a, n, r, i, E, o);
|
|
10621
10621
|
}
|
|
10622
|
-
if (!
|
|
10622
|
+
if (!_d(s))
|
|
10623
10623
|
throw q(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);
|
|
10624
10624
|
const l = Ha(t, n, i);
|
|
10625
10625
|
let c = !1, p = o;
|
|
@@ -10628,7 +10628,7 @@ function sh(t, e, n, r, i, s, o) {
|
|
|
10628
10628
|
for (const E of s) {
|
|
10629
10629
|
const C = In(i, I, void 0);
|
|
10630
10630
|
if (l && typeof l.initialCount == "number" && I >= l.initialCount) {
|
|
10631
|
-
p =
|
|
10631
|
+
p = ph(i, C, E, t, n, r, a, l.label, p), I++;
|
|
10632
10632
|
continue;
|
|
10633
10633
|
}
|
|
10634
10634
|
Ka(E, g, u, t, a, n, r, C, o) && (c = !0), I++;
|
|
@@ -10650,7 +10650,7 @@ function Ka(t, e, n, r, i, s, o, a, u) {
|
|
|
10650
10650
|
}
|
|
10651
10651
|
return !1;
|
|
10652
10652
|
}
|
|
10653
|
-
function
|
|
10653
|
+
function ah(t, e) {
|
|
10654
10654
|
let n;
|
|
10655
10655
|
try {
|
|
10656
10656
|
n = t.serialize(e);
|
|
@@ -10661,7 +10661,7 @@ function oh(t, e) {
|
|
|
10661
10661
|
throw new Error(`Expected \`${qe(t)}.serialize(${qe(e)})\` to return non-nullable value, returned: ${qe(n)}`);
|
|
10662
10662
|
return n;
|
|
10663
10663
|
}
|
|
10664
|
-
function
|
|
10664
|
+
function uh(t, e, n, r, i, s, o) {
|
|
10665
10665
|
const a = e.resolveType ?? t.typeResolver, u = t.contextValue, l = a(s, u, r, e);
|
|
10666
10666
|
return Fe(l) ? l.then((c) => ki(t, ho(c, t, e, n, r, s), n, r, i, s, o)) : ki(t, ho(l, t, e, n, r, s), n, r, i, s, o);
|
|
10667
10667
|
}
|
|
@@ -10701,14 +10701,14 @@ function po(t, e, n) {
|
|
|
10701
10701
|
});
|
|
10702
10702
|
}
|
|
10703
10703
|
function go(t, e, n, r, i, s) {
|
|
10704
|
-
const { fields: o, patches: a } =
|
|
10704
|
+
const { fields: o, patches: a } = Zd(t, e, n), u = rs(t, e, i, r, o, s);
|
|
10705
10705
|
for (const l of a) {
|
|
10706
10706
|
const { label: c, fields: p } = l;
|
|
10707
10707
|
Za(t, e, i, p, c, r, s);
|
|
10708
10708
|
}
|
|
10709
10709
|
return u;
|
|
10710
10710
|
}
|
|
10711
|
-
const
|
|
10711
|
+
const lh = function(t, e, n, r) {
|
|
10712
10712
|
if (Ma(t) && typeof t.__typename == "string")
|
|
10713
10713
|
return t.__typename;
|
|
10714
10714
|
const i = n.schema.getPossibleTypes(r), s = [];
|
|
@@ -10734,7 +10734,7 @@ const uh = function(t, e, n, r) {
|
|
|
10734
10734
|
return typeof i == "function" ? t[r.fieldName](e, n, r) : i;
|
|
10735
10735
|
}
|
|
10736
10736
|
};
|
|
10737
|
-
function
|
|
10737
|
+
function ch(t) {
|
|
10738
10738
|
const e = Ya(t);
|
|
10739
10739
|
if (!("schema" in e))
|
|
10740
10740
|
return {
|
|
@@ -10751,7 +10751,7 @@ function lh(t) {
|
|
|
10751
10751
|
}), r;
|
|
10752
10752
|
})
|
|
10753
10753
|
};
|
|
10754
|
-
const n =
|
|
10754
|
+
const n = dh(e);
|
|
10755
10755
|
return Fe(n) ? n.then((r) => yo(e, r)) : yo(e, n);
|
|
10756
10756
|
}
|
|
10757
10757
|
function Xa(t, e) {
|
|
@@ -10781,26 +10781,26 @@ function Xa(t, e) {
|
|
|
10781
10781
|
}
|
|
10782
10782
|
};
|
|
10783
10783
|
}
|
|
10784
|
-
async function*
|
|
10784
|
+
async function* fh(t, e) {
|
|
10785
10785
|
"initialResult" in t ? yield* Xa(t, e) : yield t;
|
|
10786
10786
|
}
|
|
10787
10787
|
function yo(t, e) {
|
|
10788
|
-
return Kr(e) ?
|
|
10788
|
+
return Kr(e) ? Hd(Ga(e[Symbol.asyncIterator](), async (n) => fh(await za(nh(t, n)), t.signal), (n) => {
|
|
10789
10789
|
throw q(n.message, {
|
|
10790
10790
|
originalError: n,
|
|
10791
10791
|
nodes: [t.operation]
|
|
10792
10792
|
});
|
|
10793
10793
|
})) : e;
|
|
10794
10794
|
}
|
|
10795
|
-
function
|
|
10795
|
+
function dh(t) {
|
|
10796
10796
|
try {
|
|
10797
|
-
const e =
|
|
10797
|
+
const e = hh(t);
|
|
10798
10798
|
return Fe(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
|
|
10799
10799
|
} catch (e) {
|
|
10800
10800
|
return { errors: [e] };
|
|
10801
10801
|
}
|
|
10802
10802
|
}
|
|
10803
|
-
function
|
|
10803
|
+
function hh(t) {
|
|
10804
10804
|
const { schema: e, fragments: n, operation: r, variableValues: i, rootValue: s } = t, o = e.getSubscriptionType();
|
|
10805
10805
|
if (o == null)
|
|
10806
10806
|
throw q("Schema is not configured to execute subscription operation.", {
|
|
@@ -10837,7 +10837,7 @@ function bo(t, e) {
|
|
|
10837
10837
|
};
|
|
10838
10838
|
}
|
|
10839
10839
|
function Za(t, e, n, r, i, s, o) {
|
|
10840
|
-
const a = new
|
|
10840
|
+
const a = new Eh({
|
|
10841
10841
|
label: i,
|
|
10842
10842
|
path: s,
|
|
10843
10843
|
parentContext: o,
|
|
@@ -10851,7 +10851,7 @@ function Za(t, e, n, r, i, s, o) {
|
|
|
10851
10851
|
}
|
|
10852
10852
|
a.addData(u);
|
|
10853
10853
|
}
|
|
10854
|
-
function
|
|
10854
|
+
function ph(t, e, n, r, i, s, o, a, u) {
|
|
10855
10855
|
const l = new eu({
|
|
10856
10856
|
label: a,
|
|
10857
10857
|
path: e,
|
|
@@ -10875,7 +10875,7 @@ function hh(t, e, n, r, i, s, o, a, u) {
|
|
|
10875
10875
|
let p;
|
|
10876
10876
|
return Fe(c) ? p = c.then((g) => [g], (g) => (l.errors.push(g), Ze(r, t, l), null)) : p = [c], l.addItems(p), l;
|
|
10877
10877
|
}
|
|
10878
|
-
async function
|
|
10878
|
+
async function gh(t, e, n, r, i, s, o) {
|
|
10879
10879
|
let a;
|
|
10880
10880
|
try {
|
|
10881
10881
|
const { value: l, done: c } = await t.next();
|
|
@@ -10897,7 +10897,7 @@ async function ph(t, e, n, r, i, s, o) {
|
|
|
10897
10897
|
return Ze(e, o, s), { done: !1, value: p };
|
|
10898
10898
|
}
|
|
10899
10899
|
}
|
|
10900
|
-
async function
|
|
10900
|
+
async function mh(t, e, n, r, i, s, o, a, u) {
|
|
10901
10901
|
let l = t, c = u ?? void 0;
|
|
10902
10902
|
for (; ; ) {
|
|
10903
10903
|
const p = In(o, l, void 0), g = new eu({
|
|
@@ -10909,7 +10909,7 @@ async function gh(t, e, n, r, i, s, o, a, u) {
|
|
|
10909
10909
|
});
|
|
10910
10910
|
let I;
|
|
10911
10911
|
try {
|
|
10912
|
-
I = await
|
|
10912
|
+
I = await gh(e, n, r, i, s, g, p);
|
|
10913
10913
|
} catch (_) {
|
|
10914
10914
|
g.errors.push(_), Ze(n, o, g), g.addItems(null), e != null && e.return && e.return().catch(() => {
|
|
10915
10915
|
});
|
|
@@ -10935,7 +10935,7 @@ function Ze(t, e, n) {
|
|
|
10935
10935
|
}
|
|
10936
10936
|
});
|
|
10937
10937
|
}
|
|
10938
|
-
function
|
|
10938
|
+
function yh(t) {
|
|
10939
10939
|
const e = [];
|
|
10940
10940
|
for (const n of t.subsequentPayloads) {
|
|
10941
10941
|
const r = {};
|
|
@@ -10954,14 +10954,14 @@ function mh(t) {
|
|
|
10954
10954
|
}
|
|
10955
10955
|
return e;
|
|
10956
10956
|
}
|
|
10957
|
-
function
|
|
10957
|
+
function bh(t) {
|
|
10958
10958
|
let e = !1;
|
|
10959
10959
|
async function n() {
|
|
10960
10960
|
if (e)
|
|
10961
10961
|
return { value: void 0, done: !0 };
|
|
10962
10962
|
if (await Promise.race(Array.from(t.subsequentPayloads).map((o) => o.promise)), e)
|
|
10963
10963
|
return { value: void 0, done: !0 };
|
|
10964
|
-
const i =
|
|
10964
|
+
const i = yh(t), s = t.subsequentPayloads.size > 0;
|
|
10965
10965
|
return !i.length && s ? n() : (s || (e = !0), {
|
|
10966
10966
|
value: i.length ? { incremental: i, hasNext: s } : { hasNext: s },
|
|
10967
10967
|
done: !1
|
|
@@ -10987,7 +10987,7 @@ function yh(t) {
|
|
|
10987
10987
|
}
|
|
10988
10988
|
};
|
|
10989
10989
|
}
|
|
10990
|
-
class
|
|
10990
|
+
class Eh {
|
|
10991
10991
|
constructor(e) {
|
|
10992
10992
|
this.type = "defer", this.label = e.label, this.path = Le(e.path), this.parentContext = e.parentContext, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.isCompleted = !1, this.data = null, this.promise = new Promise((n) => {
|
|
10993
10993
|
this._resolve = (r) => {
|
|
@@ -11041,59 +11041,59 @@ function Eo(t) {
|
|
|
11041
11041
|
const e = Zi(t.document, t.operationName);
|
|
11042
11042
|
if (e == null)
|
|
11043
11043
|
throw new Error("Must provide an operation.");
|
|
11044
|
-
return e.operation === "subscription" ?
|
|
11044
|
+
return e.operation === "subscription" ? ch(t) : new Xe(() => eh(t)).then((n) => "initialResult" in n ? Xa(n, t.signal) : n).resolve();
|
|
11045
11045
|
}
|
|
11046
|
-
var Ee = {},
|
|
11047
|
-
const iu = /* @__PURE__ */
|
|
11046
|
+
var Ee = {}, vh = Ee.fetch = globalThis.fetch, wh = Ee.Headers = globalThis.Headers, Th = Ee.Request = globalThis.Request, nu = Ee.Response = globalThis.Response, Sh = Ee.FormData = globalThis.FormData, Ih = Ee.ReadableStream = globalThis.ReadableStream, _h = Ee.WritableStream = globalThis.WritableStream, Oh = Ee.TransformStream = globalThis.TransformStream, Nh = Ee.Blob = globalThis.Blob, Ah = Ee.File = globalThis.File, xh = Ee.crypto = globalThis.crypto, Fh = Ee.btoa = globalThis.btoa, Lh = Ee.TextEncoder = globalThis.TextEncoder, Ch = Ee.TextDecoder = globalThis.TextDecoder, Rh = Ee.URLPattern = globalThis.URLPattern, ru = Ee.URL = globalThis.URL, ss = Ee.URLSearchParams = globalThis.URLSearchParams, kh = Ee.createFetch = () => globalThis;
|
|
11047
|
+
const iu = /* @__PURE__ */ Ou({
|
|
11048
11048
|
__proto__: null,
|
|
11049
|
-
Blob:
|
|
11050
|
-
File:
|
|
11051
|
-
FormData:
|
|
11052
|
-
Headers:
|
|
11053
|
-
ReadableStream:
|
|
11054
|
-
Request:
|
|
11049
|
+
Blob: Nh,
|
|
11050
|
+
File: Ah,
|
|
11051
|
+
FormData: Sh,
|
|
11052
|
+
Headers: wh,
|
|
11053
|
+
ReadableStream: Ih,
|
|
11054
|
+
Request: Th,
|
|
11055
11055
|
Response: nu,
|
|
11056
|
-
TextDecoder:
|
|
11057
|
-
TextEncoder:
|
|
11058
|
-
TransformStream:
|
|
11056
|
+
TextDecoder: Ch,
|
|
11057
|
+
TextEncoder: Lh,
|
|
11058
|
+
TransformStream: Oh,
|
|
11059
11059
|
URL: ru,
|
|
11060
|
-
URLPattern:
|
|
11060
|
+
URLPattern: Rh,
|
|
11061
11061
|
URLSearchParams: ss,
|
|
11062
|
-
WritableStream:
|
|
11063
|
-
btoa:
|
|
11064
|
-
createFetch:
|
|
11065
|
-
crypto:
|
|
11062
|
+
WritableStream: _h,
|
|
11063
|
+
btoa: Fh,
|
|
11064
|
+
createFetch: kh,
|
|
11065
|
+
crypto: xh,
|
|
11066
11066
|
default: Ee,
|
|
11067
|
-
fetch:
|
|
11067
|
+
fetch: vh
|
|
11068
11068
|
}, [Ee]);
|
|
11069
11069
|
function su(t) {
|
|
11070
11070
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
11071
11071
|
}
|
|
11072
|
-
function
|
|
11072
|
+
function Dh(t) {
|
|
11073
11073
|
var r, i, s, o, a;
|
|
11074
11074
|
if ((r = t.socket) != null && r.localPort)
|
|
11075
11075
|
return (i = t.socket) == null ? void 0 : i.localPort;
|
|
11076
11076
|
const e = ((s = t.headers) == null ? void 0 : s[":authority"]) || ((o = t.headers) == null ? void 0 : o.host), n = (a = e == null ? void 0 : e.split(":")) == null ? void 0 : a[1];
|
|
11077
11077
|
return n || 80;
|
|
11078
11078
|
}
|
|
11079
|
-
function
|
|
11079
|
+
function $h(t) {
|
|
11080
11080
|
var r, i, s, o, a;
|
|
11081
11081
|
if ((r = t.headers) != null && r[":authority"])
|
|
11082
11082
|
return (i = t.headers) == null ? void 0 : i[":authority"];
|
|
11083
11083
|
if ((s = t.headers) != null && s.host)
|
|
11084
11084
|
return (o = t.headers) == null ? void 0 : o.host;
|
|
11085
|
-
const e =
|
|
11085
|
+
const e = Dh(t);
|
|
11086
11086
|
if (t.hostname)
|
|
11087
11087
|
return t.hostname + ":" + e;
|
|
11088
11088
|
const n = (a = t.socket) == null ? void 0 : a.localAddress;
|
|
11089
11089
|
return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
|
|
11090
11090
|
}
|
|
11091
|
-
function
|
|
11091
|
+
function jh(t) {
|
|
11092
11092
|
var i;
|
|
11093
|
-
const e =
|
|
11093
|
+
const e = $h(t), n = t.protocol || ((i = t.socket) != null && i.encrypted ? "https" : "http"), r = t.originalUrl || t.url || "/graphql";
|
|
11094
11094
|
return `${n}://${e}${r}`;
|
|
11095
11095
|
}
|
|
11096
|
-
function
|
|
11096
|
+
function Ph(t) {
|
|
11097
11097
|
const e = t[Symbol.toStringTag];
|
|
11098
11098
|
return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || su(t));
|
|
11099
11099
|
}
|
|
@@ -11116,10 +11116,10 @@ class ou extends EventTarget {
|
|
|
11116
11116
|
}
|
|
11117
11117
|
}
|
|
11118
11118
|
let vo = !1;
|
|
11119
|
-
function
|
|
11119
|
+
function Mh(t, e) {
|
|
11120
11120
|
var o, a, u;
|
|
11121
11121
|
const n = t.raw || t.req || t;
|
|
11122
|
-
let r =
|
|
11122
|
+
let r = jh(n);
|
|
11123
11123
|
if (t.query) {
|
|
11124
11124
|
const l = new ru(r);
|
|
11125
11125
|
for (const c in t.query)
|
|
@@ -11145,7 +11145,7 @@ function Ph(t, e) {
|
|
|
11145
11145
|
});
|
|
11146
11146
|
const s = t.body;
|
|
11147
11147
|
if (s != null && Object.keys(s).length > 0) {
|
|
11148
|
-
if (
|
|
11148
|
+
if (Ph(s))
|
|
11149
11149
|
return new e(r, {
|
|
11150
11150
|
method: t.method,
|
|
11151
11151
|
headers: t.headers,
|
|
@@ -11201,23 +11201,23 @@ It will affect your performance. Please check our Bun integration recipe, and av
|
|
|
11201
11201
|
function os(t) {
|
|
11202
11202
|
return t.read != null;
|
|
11203
11203
|
}
|
|
11204
|
-
function
|
|
11204
|
+
function Uh(t) {
|
|
11205
11205
|
return os(t);
|
|
11206
11206
|
}
|
|
11207
11207
|
function wo(t) {
|
|
11208
11208
|
return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
|
|
11209
11209
|
}
|
|
11210
|
-
function
|
|
11210
|
+
function Vh(t) {
|
|
11211
11211
|
return t != null && t.request != null && t.respondWith != null;
|
|
11212
11212
|
}
|
|
11213
|
-
function
|
|
11213
|
+
function Bh(t) {
|
|
11214
11214
|
var e, n, r, i, s, o;
|
|
11215
11215
|
(n = (e = t == null ? void 0 : t.socket) == null ? void 0 : e.setTimeout) == null || n.call(e, 0), (i = (r = t == null ? void 0 : t.socket) == null ? void 0 : r.setNoDelay) == null || i.call(r, !0), (o = (s = t == null ? void 0 : t.socket) == null ? void 0 : s.setKeepAlive) == null || o.call(s, !0);
|
|
11216
11216
|
}
|
|
11217
11217
|
function Or(t) {
|
|
11218
11218
|
t.end(null, null, null);
|
|
11219
11219
|
}
|
|
11220
|
-
async function
|
|
11220
|
+
async function Gh(t, e) {
|
|
11221
11221
|
for await (const n of e)
|
|
11222
11222
|
if (!t.write(n))
|
|
11223
11223
|
break;
|
|
@@ -11260,16 +11260,16 @@ function To(t, e, n) {
|
|
|
11260
11260
|
e.write(s), Or(e);
|
|
11261
11261
|
return;
|
|
11262
11262
|
}
|
|
11263
|
-
if (
|
|
11263
|
+
if (Bh(n), os(s)) {
|
|
11264
11264
|
e.once("close", () => {
|
|
11265
11265
|
s.destroy();
|
|
11266
11266
|
}), s.pipe(e);
|
|
11267
11267
|
return;
|
|
11268
11268
|
}
|
|
11269
11269
|
if (su(s))
|
|
11270
|
-
return
|
|
11270
|
+
return Gh(e, s);
|
|
11271
11271
|
}
|
|
11272
|
-
function
|
|
11272
|
+
function qh(t) {
|
|
11273
11273
|
return t != null && typeof t == "object" && ("body" in t || "cache" in t || "credentials" in t || "headers" in t || "integrity" in t || "keepalive" in t || "method" in t || "mode" in t || "redirect" in t || "referrer" in t || "referrerPolicy" in t || "signal" in t || "window" in t);
|
|
11274
11274
|
}
|
|
11275
11275
|
function Er(...t) {
|
|
@@ -11351,7 +11351,7 @@ function Io(t, e) {
|
|
|
11351
11351
|
}
|
|
11352
11352
|
});
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function Qh() {
|
|
11355
11355
|
let t, e;
|
|
11356
11356
|
return {
|
|
11357
11357
|
promise: new Promise(function(i, s) {
|
|
@@ -11367,7 +11367,7 @@ function qh() {
|
|
|
11367
11367
|
}
|
|
11368
11368
|
function _o(t, e) {
|
|
11369
11369
|
if ($t(t) && e) {
|
|
11370
|
-
const n =
|
|
11370
|
+
const n = Qh();
|
|
11371
11371
|
return e.addEventListener("abort", function() {
|
|
11372
11372
|
n.reject(new DOMException("Aborted", "AbortError"));
|
|
11373
11373
|
}), t.then(function(i) {
|
|
@@ -11378,10 +11378,10 @@ function _o(t, e) {
|
|
|
11378
11378
|
}
|
|
11379
11379
|
return t;
|
|
11380
11380
|
}
|
|
11381
|
-
function
|
|
11381
|
+
function zh(t) {
|
|
11382
11382
|
return !!t.onData;
|
|
11383
11383
|
}
|
|
11384
|
-
function
|
|
11384
|
+
function Yh({ req: t, res: e, fetchAPI: n }) {
|
|
11385
11385
|
let r;
|
|
11386
11386
|
const i = t.getMethod();
|
|
11387
11387
|
if (i !== "get" && i !== "head") {
|
|
@@ -11407,7 +11407,7 @@ function zh({ req: t, res: e, fetchAPI: n }) {
|
|
|
11407
11407
|
signal: new ou()
|
|
11408
11408
|
});
|
|
11409
11409
|
}
|
|
11410
|
-
async function
|
|
11410
|
+
async function Jh(t, e) {
|
|
11411
11411
|
let n = !1;
|
|
11412
11412
|
t.onAborted(function() {
|
|
11413
11413
|
n = !0;
|
|
@@ -11450,21 +11450,21 @@ function Oo(t, e) {
|
|
|
11450
11450
|
t.end();
|
|
11451
11451
|
return;
|
|
11452
11452
|
}
|
|
11453
|
-
return
|
|
11453
|
+
return Jh(t, e);
|
|
11454
11454
|
}
|
|
11455
11455
|
}
|
|
11456
|
-
async function
|
|
11456
|
+
async function Wh(t) {
|
|
11457
11457
|
await Promise.allSettled(t);
|
|
11458
11458
|
}
|
|
11459
|
-
function
|
|
11459
|
+
function Hh(t) {
|
|
11460
11460
|
try {
|
|
11461
11461
|
return !!(t != null && t.request);
|
|
11462
11462
|
} catch {
|
|
11463
11463
|
return !1;
|
|
11464
11464
|
}
|
|
11465
11465
|
}
|
|
11466
|
-
const
|
|
11467
|
-
function
|
|
11466
|
+
const Kh = {};
|
|
11467
|
+
function Xh(t, e) {
|
|
11468
11468
|
const n = {
|
|
11469
11469
|
...iu,
|
|
11470
11470
|
...e == null ? void 0 : e.fetchAPI
|
|
@@ -11476,7 +11476,7 @@ function Kh(t, e) {
|
|
|
11476
11476
|
let x = r, F;
|
|
11477
11477
|
if (i.length === 0)
|
|
11478
11478
|
return h();
|
|
11479
|
-
let R = new Proxy(
|
|
11479
|
+
let R = new Proxy(Kh, {
|
|
11480
11480
|
get(y, f, S) {
|
|
11481
11481
|
return R = new n.URL(_.url, "http://localhost"), Reflect.get(R, f, R);
|
|
11482
11482
|
}
|
|
@@ -11514,7 +11514,7 @@ function Kh(t, e) {
|
|
|
11514
11514
|
return $t(w) ? w.then(h) : h();
|
|
11515
11515
|
} : r;
|
|
11516
11516
|
function a(v, ..._) {
|
|
11517
|
-
const A = _.length > 1 ? Er(..._) : _[0] || {}, x =
|
|
11517
|
+
const A = _.length > 1 ? Er(..._) : _[0] || {}, x = Mh(v, n.Request);
|
|
11518
11518
|
return o(x, A);
|
|
11519
11519
|
}
|
|
11520
11520
|
function u(v, _, ...A) {
|
|
@@ -11548,7 +11548,7 @@ function Kh(t, e) {
|
|
|
11548
11548
|
waitUntil(f) {
|
|
11549
11549
|
x.push(f.catch((S) => console.error(S)));
|
|
11550
11550
|
}
|
|
11551
|
-
}, w = A.filter((f) => f != null).length > 0 ? Er(F, ...A) : F, O =
|
|
11551
|
+
}, w = A.filter((f) => f != null).length > 0 ? Er(F, ...A) : F, O = Yh({
|
|
11552
11552
|
req: _,
|
|
11553
11553
|
res: v,
|
|
11554
11554
|
fetchAPI: n
|
|
@@ -11586,12 +11586,12 @@ function Kh(t, e) {
|
|
|
11586
11586
|
const A = _.filter((w) => w != null);
|
|
11587
11587
|
let x;
|
|
11588
11588
|
const F = A.length > 1 ? Er(...A) : Io(A[0], A[0] == null || A[0].waitUntil == null ? x = [] : void 0), R = o(v, F);
|
|
11589
|
-
return x != null && x.length ?
|
|
11589
|
+
return x != null && x.length ? Wh(x).then(() => R) : R;
|
|
11590
11590
|
}
|
|
11591
11591
|
const g = (v, ..._) => {
|
|
11592
11592
|
if (typeof v == "string" || "href" in v) {
|
|
11593
11593
|
const [x, ...F] = _;
|
|
11594
|
-
if (
|
|
11594
|
+
if (qh(x)) {
|
|
11595
11595
|
const w = new n.Request(v, x), O = p(w, ...F);
|
|
11596
11596
|
return _o(O, x == null ? void 0 : x.signal);
|
|
11597
11597
|
}
|
|
@@ -11602,16 +11602,16 @@ function Kh(t, e) {
|
|
|
11602
11602
|
return _o(A, v._signal);
|
|
11603
11603
|
}, I = (v, ..._) => {
|
|
11604
11604
|
const [A, ...x] = _;
|
|
11605
|
-
if (
|
|
11605
|
+
if (Uh(v)) {
|
|
11606
11606
|
if (!wo(A))
|
|
11607
11607
|
throw new TypeError(`Expected ServerResponse, got ${A}`);
|
|
11608
11608
|
return u(v, A, ...x);
|
|
11609
11609
|
}
|
|
11610
|
-
if (
|
|
11610
|
+
if (zh(v))
|
|
11611
11611
|
return l(v, A, ...x);
|
|
11612
11612
|
if (wo(A))
|
|
11613
11613
|
throw new TypeError("Got Node response without Node request");
|
|
11614
|
-
return
|
|
11614
|
+
return Hh(v) ? Vh(v) ? c(v, ..._) : p(v.request, v, ..._) : g(v, ..._);
|
|
11615
11615
|
}, E = {
|
|
11616
11616
|
handleRequest: o,
|
|
11617
11617
|
fetch: g,
|
|
@@ -11645,7 +11645,7 @@ function Kh(t, e) {
|
|
|
11645
11645
|
});
|
|
11646
11646
|
return C;
|
|
11647
11647
|
}
|
|
11648
|
-
function
|
|
11648
|
+
function Zh(t, e) {
|
|
11649
11649
|
var i, s;
|
|
11650
11650
|
const n = t.headers.get("origin");
|
|
11651
11651
|
if (e === !1 || n == null)
|
|
@@ -11665,11 +11665,11 @@ function Xh(t, e) {
|
|
|
11665
11665
|
}
|
|
11666
11666
|
return e.credentials != null ? e.credentials === !0 && (r["Access-Control-Allow-Credentials"] = "true") : r["Access-Control-Allow-Origin"] !== "*" && (r["Access-Control-Allow-Credentials"] = "true"), e.exposedHeaders && (r["Access-Control-Expose-Headers"] = e.exposedHeaders.join(", ")), e.maxAge && (r["Access-Control-Max-Age"] = e.maxAge.toString()), r;
|
|
11667
11667
|
}
|
|
11668
|
-
async function
|
|
11668
|
+
async function ep(t, e, n) {
|
|
11669
11669
|
const r = await e(t, n);
|
|
11670
|
-
return
|
|
11670
|
+
return Zh(t, r);
|
|
11671
11671
|
}
|
|
11672
|
-
function
|
|
11672
|
+
function tp(t) {
|
|
11673
11673
|
let e = () => ({});
|
|
11674
11674
|
if (t != null)
|
|
11675
11675
|
if (typeof t == "function")
|
|
@@ -11696,14 +11696,14 @@ function ep(t) {
|
|
|
11696
11696
|
}
|
|
11697
11697
|
},
|
|
11698
11698
|
async onResponse({ request: n, serverContext: r, response: i }) {
|
|
11699
|
-
const s = await
|
|
11699
|
+
const s = await ep(n, e, r);
|
|
11700
11700
|
if (s != null)
|
|
11701
11701
|
for (const o in s)
|
|
11702
11702
|
i.headers.set(o, s[o]);
|
|
11703
11703
|
}
|
|
11704
11704
|
};
|
|
11705
11705
|
}
|
|
11706
|
-
function
|
|
11706
|
+
function np(t = nu) {
|
|
11707
11707
|
return function(n) {
|
|
11708
11708
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
11709
11709
|
status: n.status,
|
|
@@ -11711,10 +11711,10 @@ function tp(t = nu) {
|
|
|
11711
11711
|
}) : (console.error(n), t.error ? t.error() : new t(null, { status: 500 }));
|
|
11712
11712
|
};
|
|
11713
11713
|
}
|
|
11714
|
-
function
|
|
11714
|
+
function rp(t) {
|
|
11715
11715
|
return {
|
|
11716
11716
|
onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: r }) {
|
|
11717
|
-
const i = t ||
|
|
11717
|
+
const i = t || np(r.Response);
|
|
11718
11718
|
n(function(o, a) {
|
|
11719
11719
|
try {
|
|
11720
11720
|
const u = e(o, a);
|
|
@@ -11735,7 +11735,7 @@ function au(t) {
|
|
|
11735
11735
|
extensions: i ? JSON.parse(i) : void 0
|
|
11736
11736
|
};
|
|
11737
11737
|
}
|
|
11738
|
-
function
|
|
11738
|
+
function ip(t) {
|
|
11739
11739
|
const e = new ss(t);
|
|
11740
11740
|
return au(e);
|
|
11741
11741
|
}
|
|
@@ -11743,32 +11743,32 @@ function Qn(t, e) {
|
|
|
11743
11743
|
let n = t.headers.get("content-type");
|
|
11744
11744
|
return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
|
|
11745
11745
|
}
|
|
11746
|
-
function
|
|
11746
|
+
function sp(t) {
|
|
11747
11747
|
return t.method === "GET";
|
|
11748
11748
|
}
|
|
11749
|
-
function
|
|
11749
|
+
function op(t) {
|
|
11750
11750
|
const [, e = ""] = t.url.split("?"), n = new ss(e);
|
|
11751
11751
|
return au(n);
|
|
11752
11752
|
}
|
|
11753
|
-
function
|
|
11753
|
+
function ap(t) {
|
|
11754
11754
|
return t.method === "POST" && Qn(t, "application/x-www-form-urlencoded");
|
|
11755
11755
|
}
|
|
11756
|
-
async function
|
|
11756
|
+
async function up(t) {
|
|
11757
11757
|
const e = await t.text();
|
|
11758
|
-
return
|
|
11758
|
+
return ip(e);
|
|
11759
11759
|
}
|
|
11760
|
-
function
|
|
11760
|
+
function lp(t) {
|
|
11761
11761
|
return t.method === "POST" && Qn(t, "application/graphql");
|
|
11762
11762
|
}
|
|
11763
|
-
async function
|
|
11763
|
+
async function cp(t) {
|
|
11764
11764
|
return {
|
|
11765
11765
|
query: await t.text()
|
|
11766
11766
|
};
|
|
11767
11767
|
}
|
|
11768
|
-
function
|
|
11768
|
+
function fp(t) {
|
|
11769
11769
|
return t.method === "POST" && (Qn(t, "application/json") || Qn(t, "application/graphql+json"));
|
|
11770
11770
|
}
|
|
11771
|
-
async function
|
|
11771
|
+
async function dp(t) {
|
|
11772
11772
|
let e;
|
|
11773
11773
|
try {
|
|
11774
11774
|
e = await t.json();
|
|
@@ -11805,15 +11805,15 @@ async function fp(t) {
|
|
|
11805
11805
|
});
|
|
11806
11806
|
return e;
|
|
11807
11807
|
}
|
|
11808
|
-
function
|
|
11808
|
+
function hp(t, e, n) {
|
|
11809
11809
|
e.split && (e = e.split("."));
|
|
11810
11810
|
for (var r = 0, i = e.length, s = t, o, a; r < i && (a = e[r++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
|
|
11811
11811
|
s = s[a] = r === i ? n : typeof (o = s[a]) == typeof e ? o : e[r] * 0 !== 0 || ~("" + e[r]).indexOf(".") ? {} : [];
|
|
11812
11812
|
}
|
|
11813
|
-
function
|
|
11813
|
+
function pp(t) {
|
|
11814
11814
|
return t.method === "POST" && Qn(t, "multipart/form-data");
|
|
11815
11815
|
}
|
|
11816
|
-
async function
|
|
11816
|
+
async function gp(t) {
|
|
11817
11817
|
let e;
|
|
11818
11818
|
try {
|
|
11819
11819
|
e = await t.formData();
|
|
@@ -11850,13 +11850,13 @@ async function pp(t) {
|
|
|
11850
11850
|
for (const o in s) {
|
|
11851
11851
|
const a = e.get(o), u = s[o];
|
|
11852
11852
|
for (const l of u)
|
|
11853
|
-
|
|
11853
|
+
hp(r, l, a);
|
|
11854
11854
|
}
|
|
11855
11855
|
}
|
|
11856
11856
|
return r;
|
|
11857
11857
|
}
|
|
11858
|
-
const
|
|
11859
|
-
function
|
|
11858
|
+
const mp = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
|
|
11859
|
+
function yp(t) {
|
|
11860
11860
|
if (t == null || typeof t != "object")
|
|
11861
11861
|
throw q('Invalid "params" in the request body', {
|
|
11862
11862
|
extensions: {
|
|
@@ -11867,7 +11867,7 @@ function mp(t) {
|
|
|
11867
11867
|
}
|
|
11868
11868
|
});
|
|
11869
11869
|
for (const e in t)
|
|
11870
|
-
if (t[e] != null && !
|
|
11870
|
+
if (t[e] != null && !mp.has(e))
|
|
11871
11871
|
throw q(`Unexpected parameter "${e}" in the request body.`, {
|
|
11872
11872
|
extensions: {
|
|
11873
11873
|
http: {
|
|
@@ -11876,8 +11876,8 @@ function mp(t) {
|
|
|
11876
11876
|
}
|
|
11877
11877
|
});
|
|
11878
11878
|
}
|
|
11879
|
-
function
|
|
11880
|
-
if (!
|
|
11879
|
+
function bp(t) {
|
|
11880
|
+
if (!vp(t))
|
|
11881
11881
|
throw q(`Expected params to be an object but given ${Pn(t)}.`, {
|
|
11882
11882
|
extensions: {
|
|
11883
11883
|
http: {
|
|
@@ -11888,7 +11888,7 @@ function yp(t) {
|
|
|
11888
11888
|
}
|
|
11889
11889
|
}
|
|
11890
11890
|
});
|
|
11891
|
-
if (
|
|
11891
|
+
if (yp(t), t.query == null)
|
|
11892
11892
|
throw q("Must provide query string.", {
|
|
11893
11893
|
extensions: {
|
|
11894
11894
|
http: {
|
|
@@ -11938,26 +11938,26 @@ function yp(t) {
|
|
|
11938
11938
|
});
|
|
11939
11939
|
return t;
|
|
11940
11940
|
}
|
|
11941
|
-
function
|
|
11941
|
+
function Ep() {
|
|
11942
11942
|
return {
|
|
11943
11943
|
onParams({ params: t }) {
|
|
11944
|
-
|
|
11944
|
+
bp(t);
|
|
11945
11945
|
}
|
|
11946
11946
|
};
|
|
11947
11947
|
}
|
|
11948
11948
|
function Pn(t) {
|
|
11949
11949
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
11950
11950
|
}
|
|
11951
|
-
function
|
|
11951
|
+
function vp(t) {
|
|
11952
11952
|
return Pn(t) === "object";
|
|
11953
11953
|
}
|
|
11954
|
-
function
|
|
11954
|
+
function wp(t) {
|
|
11955
11955
|
return t === "GET" || t === "POST";
|
|
11956
11956
|
}
|
|
11957
|
-
function
|
|
11957
|
+
function Tp() {
|
|
11958
11958
|
return {
|
|
11959
11959
|
onRequestParse({ request: t }) {
|
|
11960
|
-
if (!
|
|
11960
|
+
if (!wp(t.method))
|
|
11961
11961
|
throw q("GraphQL only supports GET and POST requests.", {
|
|
11962
11962
|
extensions: {
|
|
11963
11963
|
http: {
|
|
@@ -11971,7 +11971,7 @@ function wp() {
|
|
|
11971
11971
|
}
|
|
11972
11972
|
};
|
|
11973
11973
|
}
|
|
11974
|
-
function
|
|
11974
|
+
function Sp() {
|
|
11975
11975
|
return {
|
|
11976
11976
|
onValidate() {
|
|
11977
11977
|
return ({ valid: t, result: e }) => {
|
|
@@ -11987,7 +11987,7 @@ function Tp() {
|
|
|
11987
11987
|
}
|
|
11988
11988
|
};
|
|
11989
11989
|
}
|
|
11990
|
-
function
|
|
11990
|
+
function Ip(t) {
|
|
11991
11991
|
return {
|
|
11992
11992
|
onRequestParse() {
|
|
11993
11993
|
return {
|
|
@@ -12015,7 +12015,7 @@ function Sp(t) {
|
|
|
12015
12015
|
}
|
|
12016
12016
|
};
|
|
12017
12017
|
}
|
|
12018
|
-
function
|
|
12018
|
+
function _p(t, e, n) {
|
|
12019
12019
|
const r = e ? Zi(e, n) ?? void 0 : void 0;
|
|
12020
12020
|
if (!r)
|
|
12021
12021
|
throw q("Could not determine what operation to execute.", {
|
|
@@ -12037,7 +12037,7 @@ function Ip(t, e, n) {
|
|
|
12037
12037
|
}
|
|
12038
12038
|
});
|
|
12039
12039
|
}
|
|
12040
|
-
function
|
|
12040
|
+
function Op() {
|
|
12041
12041
|
return {
|
|
12042
12042
|
onParse() {
|
|
12043
12043
|
return ({ result: t, context: {
|
|
@@ -12052,13 +12052,13 @@ function _p() {
|
|
|
12052
12052
|
spec: !0,
|
|
12053
12053
|
status: 400
|
|
12054
12054
|
}), t;
|
|
12055
|
-
|
|
12055
|
+
_p(e.method, t, n);
|
|
12056
12056
|
}
|
|
12057
12057
|
};
|
|
12058
12058
|
}
|
|
12059
12059
|
};
|
|
12060
12060
|
}
|
|
12061
|
-
function
|
|
12061
|
+
function Np({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
|
|
12062
12062
|
return {
|
|
12063
12063
|
onRequest({ endResponse: r, fetchAPI: i, request: s }) {
|
|
12064
12064
|
if (s.url.endsWith(n)) {
|
|
@@ -12110,7 +12110,7 @@ if (typeof Mr > "u") {
|
|
|
12110
12110
|
t && (t = !1, lu("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
|
|
12111
12111
|
};
|
|
12112
12112
|
}
|
|
12113
|
-
const
|
|
12113
|
+
const Ap = (t) => !uu.has(t), Ct = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), cu = (t) => Ct(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Nr : null : null;
|
|
12114
12114
|
class Nr extends Array {
|
|
12115
12115
|
constructor(e) {
|
|
12116
12116
|
super(e), this.fill(0);
|
|
@@ -12286,7 +12286,7 @@ const gs = class gs {
|
|
|
12286
12286
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
12287
12287
|
if (!this.ttlAutopurge && !m(this, st) && !m(this, ze)) {
|
|
12288
12288
|
const O = "LRU_CACHE_UNBOUNDED";
|
|
12289
|
-
|
|
12289
|
+
Ap(O) && (uu.add(O), lu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", O, gs));
|
|
12290
12290
|
}
|
|
12291
12291
|
}
|
|
12292
12292
|
/**
|
|
@@ -12923,11 +12923,11 @@ st = new WeakMap(), ze = new WeakMap(), ot = new WeakMap(), at = new WeakMap(),
|
|
|
12923
12923
|
e !== m(this, Ie) && (e === m(this, De) ? J(this, De, m(this, je)[e]) : Q(this, B, Mi).call(this, m(this, Ye)[e], m(this, je)[e]), Q(this, B, Mi).call(this, m(this, Ie), e), J(this, Ie, e));
|
|
12924
12924
|
};
|
|
12925
12925
|
let Ur = gs;
|
|
12926
|
-
const
|
|
12927
|
-
function mi({ max: t =
|
|
12926
|
+
const xp = 1024, Fp = 36e5;
|
|
12927
|
+
function mi({ max: t = xp, ttl: e = Fp } = {}) {
|
|
12928
12928
|
return new Ur({ max: t, ttl: e });
|
|
12929
12929
|
}
|
|
12930
|
-
function
|
|
12930
|
+
function Lp({ documentCache: t = mi(), errorCache: e = mi(), validationCache: n = !0 }) {
|
|
12931
12931
|
const r = mi();
|
|
12932
12932
|
return {
|
|
12933
12933
|
onParse({ params: i, setParsedDocument: s }) {
|
|
@@ -12966,16 +12966,16 @@ function Fp({ documentCache: t = mi(), errorCache: e = mi(), validationCache: n
|
|
|
12966
12966
|
}
|
|
12967
12967
|
};
|
|
12968
12968
|
}
|
|
12969
|
-
const
|
|
12969
|
+
const Cp = () => !0;
|
|
12970
12970
|
function Ln(t) {
|
|
12971
|
-
const e = t.match ||
|
|
12971
|
+
const e = t.match || Cp;
|
|
12972
12972
|
return {
|
|
12973
12973
|
onRequestParse({ request: n, setRequestParser: r }) {
|
|
12974
12974
|
e(n) && r(t.parse);
|
|
12975
12975
|
}
|
|
12976
12976
|
};
|
|
12977
12977
|
}
|
|
12978
|
-
function
|
|
12978
|
+
function Rp(t) {
|
|
12979
12979
|
const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
|
|
12980
12980
|
for (const r of e) {
|
|
12981
12981
|
const [i, ...s] = r.split(";");
|
|
@@ -12983,7 +12983,7 @@ function Cp(t) {
|
|
|
12983
12983
|
}
|
|
12984
12984
|
return n.reverse();
|
|
12985
12985
|
}
|
|
12986
|
-
function
|
|
12986
|
+
function kp(t, e) {
|
|
12987
12987
|
const [n, r] = t.split("/"), [i, s] = e.split("/");
|
|
12988
12988
|
return (i === "*" || i === n) && (s === "*" || s === r);
|
|
12989
12989
|
}
|
|
@@ -13022,7 +13022,7 @@ function du(t) {
|
|
|
13022
13022
|
}
|
|
13023
13023
|
return t;
|
|
13024
13024
|
}
|
|
13025
|
-
function
|
|
13025
|
+
function Dp(t, e) {
|
|
13026
13026
|
const r = ns(t, {
|
|
13027
13027
|
Connection: "keep-alive",
|
|
13028
13028
|
"Content-Type": 'multipart/mixed; boundary="-"',
|
|
@@ -13063,7 +13063,7 @@ function kp(t, e) {
|
|
|
13063
13063
|
});
|
|
13064
13064
|
return new e.Response(o, r);
|
|
13065
13065
|
}
|
|
13066
|
-
function
|
|
13066
|
+
function $p(t, e, n) {
|
|
13067
13067
|
if (Kr(t))
|
|
13068
13068
|
return new e.Response(null, {
|
|
13069
13069
|
status: 406,
|
|
@@ -13078,14 +13078,14 @@ function Dp(t, e, n) {
|
|
|
13078
13078
|
t,
|
|
13079
13079
|
r,
|
|
13080
13080
|
// prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
|
|
13081
|
-
n === "application/json" && !Array.isArray(t) &&
|
|
13081
|
+
n === "application/json" && !Array.isArray(t) && Pd(t.errors) && t.errors.some((o) => {
|
|
13082
13082
|
var a;
|
|
13083
13083
|
return !((a = o.extensions) != null && a.originalError) || wn(o.extensions.originalError);
|
|
13084
13084
|
})
|
|
13085
13085
|
), s = as(t);
|
|
13086
13086
|
return new e.Response(s, i);
|
|
13087
13087
|
}
|
|
13088
|
-
function
|
|
13088
|
+
function jp() {
|
|
13089
13089
|
return function(e, n) {
|
|
13090
13090
|
var c, p;
|
|
13091
13091
|
let r = 12e3;
|
|
@@ -13140,40 +13140,40 @@ function $p() {
|
|
|
13140
13140
|
return new n.Response(l, s);
|
|
13141
13141
|
};
|
|
13142
13142
|
}
|
|
13143
|
-
const
|
|
13143
|
+
const Pp = {
|
|
13144
13144
|
mediaTypes: ["multipart/mixed"],
|
|
13145
13145
|
asyncIterables: !0,
|
|
13146
|
-
processResult:
|
|
13146
|
+
processResult: Dp
|
|
13147
13147
|
};
|
|
13148
|
-
function
|
|
13148
|
+
function Mp() {
|
|
13149
13149
|
return {
|
|
13150
13150
|
mediaTypes: ["text/event-stream"],
|
|
13151
13151
|
asyncIterables: !0,
|
|
13152
|
-
processResult:
|
|
13152
|
+
processResult: jp()
|
|
13153
13153
|
};
|
|
13154
13154
|
}
|
|
13155
13155
|
const xo = {
|
|
13156
13156
|
mediaTypes: ["application/graphql-response+json", "application/json"],
|
|
13157
13157
|
asyncIterables: !1,
|
|
13158
|
-
processResult:
|
|
13158
|
+
processResult: $p
|
|
13159
13159
|
};
|
|
13160
|
-
function
|
|
13161
|
-
const t = /* @__PURE__ */ new WeakMap(), e =
|
|
13160
|
+
function Up() {
|
|
13161
|
+
const t = /* @__PURE__ */ new WeakMap(), e = Mp(), n = [e, Pp, xo], r = [e, xo];
|
|
13162
13162
|
return {
|
|
13163
13163
|
onSubscribe({ args: { contextValue: i } }) {
|
|
13164
13164
|
i.request && t.set(i.request, !0);
|
|
13165
13165
|
},
|
|
13166
13166
|
onResultProcess({ request: i, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
|
|
13167
|
-
const l = t.get(i) ? r : n, c =
|
|
13167
|
+
const l = t.get(i) ? r : n, c = Rp(i), p = Tt(s);
|
|
13168
13168
|
for (const g of l)
|
|
13169
13169
|
for (const I of c)
|
|
13170
13170
|
if (!(p && !g.asyncIterables))
|
|
13171
13171
|
for (const E of g.mediaTypes)
|
|
13172
|
-
o.push(E),
|
|
13172
|
+
o.push(E), kp(E, I) && a(g.processResult, E);
|
|
13173
13173
|
}
|
|
13174
13174
|
};
|
|
13175
13175
|
}
|
|
13176
|
-
const Up = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
|
|
13176
|
+
const Vp = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
|
|
13177
13177
|
<code>
|
|
13178
13178
|
import { createYoga } from 'graphql-yoga';
|
|
13179
13179
|
|
|
@@ -13190,7 +13190,7 @@ const yoga = createYoga({
|
|
|
13190
13190
|
})
|
|
13191
13191
|
</code>
|
|
13192
13192
|
</pre></section></main></body></html>`;
|
|
13193
|
-
function
|
|
13193
|
+
function Bp(t) {
|
|
13194
13194
|
let e;
|
|
13195
13195
|
function n({ URLPattern: r }) {
|
|
13196
13196
|
return e || (e = new r({
|
|
@@ -13202,7 +13202,7 @@ function Vp(t) {
|
|
|
13202
13202
|
var a, u;
|
|
13203
13203
|
if (!r.url.endsWith(t.graphqlEndpoint) && !r.url.endsWith(`${t.graphqlEndpoint}/`) && o.pathname !== t.graphqlEndpoint && o.pathname !== `${t.graphqlEndpoint}/` && !n(i).test(o)) {
|
|
13204
13204
|
if (t.showLandingPage === !0 && r.method === "GET" && ((u = (a = r.headers) == null ? void 0 : a.get("accept")) != null && u.includes("text/html"))) {
|
|
13205
|
-
s(new i.Response(
|
|
13205
|
+
s(new i.Response(Vp.replace(/__GRAPHIQL_LINK__/g, t.graphqlEndpoint).replace(/__REQUEST_PATH__/g, o.pathname), {
|
|
13206
13206
|
status: 200,
|
|
13207
13207
|
statusText: "OK",
|
|
13208
13208
|
headers: {
|
|
@@ -13244,7 +13244,7 @@ async function Fo({ request: t, result: e, fetchAPI: n, onResultProcessHooks: r
|
|
|
13244
13244
|
}
|
|
13245
13245
|
});
|
|
13246
13246
|
}
|
|
13247
|
-
async function
|
|
13247
|
+
async function Gp({ params: t, enveloped: e }) {
|
|
13248
13248
|
const n = e.parse(t.query), r = e.validate(e.schema, n);
|
|
13249
13249
|
if (r.length > 0)
|
|
13250
13250
|
return { errors: r };
|
|
@@ -13257,7 +13257,7 @@ async function Bp({ params: t, enveloped: e }) {
|
|
|
13257
13257
|
}, o = Zi(n, t.operationName);
|
|
13258
13258
|
return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
|
|
13259
13259
|
}
|
|
13260
|
-
const
|
|
13260
|
+
const qp = (t, e, n = ((i) => (i = ((r) => (r = globalThis.process) == null ? void 0 : r.env)()) == null ? void 0 : i.NODE_ENV)() === "development") => {
|
|
13261
13261
|
if (wn(t)) {
|
|
13262
13262
|
if (t.originalError) {
|
|
13263
13263
|
if (t.originalError.name === "GraphQLError")
|
|
@@ -13289,7 +13289,7 @@ const Gp = (t, e, n = ((i) => (i = ((r) => (r = globalThis.process) == null ? vo
|
|
|
13289
13289
|
}
|
|
13290
13290
|
});
|
|
13291
13291
|
};
|
|
13292
|
-
class
|
|
13292
|
+
class Qp {
|
|
13293
13293
|
constructor(e) {
|
|
13294
13294
|
/**
|
|
13295
13295
|
* Instance of envelop
|
|
@@ -13357,7 +13357,7 @@ class qp {
|
|
|
13357
13357
|
e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
|
|
13358
13358
|
const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
|
|
13359
13359
|
this.logger = typeof n == "boolean" ? n === !0 ? gi() : gi("silent") : typeof n == "string" ? gi(n) : n;
|
|
13360
|
-
const r = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError ||
|
|
13360
|
+
const r = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || qp, i = /* @__PURE__ */ new WeakSet();
|
|
13361
13361
|
this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
|
|
13362
13362
|
errorMessage: "Unexpected error.",
|
|
13363
13363
|
...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
|
|
@@ -13374,24 +13374,24 @@ class qp {
|
|
|
13374
13374
|
e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
|
|
13375
13375
|
const a = this.graphqlEndpoint;
|
|
13376
13376
|
this.plugins = [
|
|
13377
|
-
|
|
13378
|
-
parse:
|
|
13379
|
-
validate:
|
|
13377
|
+
nl({
|
|
13378
|
+
parse: Cl,
|
|
13379
|
+
validate: Ef,
|
|
13380
13380
|
execute: Eo,
|
|
13381
13381
|
subscribe: Eo,
|
|
13382
13382
|
specifiedRules: Fa
|
|
13383
13383
|
}),
|
|
13384
13384
|
// Use the schema provided by the user
|
|
13385
|
-
!!(e != null && e.schema) &&
|
|
13386
|
-
(e == null ? void 0 : e.context) != null &&
|
|
13385
|
+
!!(e != null && e.schema) && Yd(e.schema),
|
|
13386
|
+
(e == null ? void 0 : e.context) != null && tl((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
|
|
13387
13387
|
// Middlewares before processing the incoming HTTP request
|
|
13388
|
-
|
|
13388
|
+
Np({
|
|
13389
13389
|
id: this.id,
|
|
13390
13390
|
logger: this.logger,
|
|
13391
13391
|
endpoint: e == null ? void 0 : e.healthCheckEndpoint
|
|
13392
13392
|
}),
|
|
13393
|
-
(e == null ? void 0 : e.cors) !== !1 &&
|
|
13394
|
-
(e == null ? void 0 : e.graphiql) !== !1 &&
|
|
13393
|
+
(e == null ? void 0 : e.cors) !== !1 && tp(e == null ? void 0 : e.cors),
|
|
13394
|
+
(e == null ? void 0 : e.graphiql) !== !1 && zd({
|
|
13395
13395
|
graphqlEndpoint: a,
|
|
13396
13396
|
options: e == null ? void 0 : e.graphiql,
|
|
13397
13397
|
render: e == null ? void 0 : e.renderGraphiQL,
|
|
@@ -13399,28 +13399,28 @@ class qp {
|
|
|
13399
13399
|
}),
|
|
13400
13400
|
// Middlewares before the GraphQL execution
|
|
13401
13401
|
Ln({
|
|
13402
|
-
match:
|
|
13403
|
-
parse:
|
|
13402
|
+
match: sp,
|
|
13403
|
+
parse: op
|
|
13404
13404
|
}),
|
|
13405
13405
|
Ln({
|
|
13406
|
-
match:
|
|
13407
|
-
parse:
|
|
13406
|
+
match: fp,
|
|
13407
|
+
parse: dp
|
|
13408
13408
|
}),
|
|
13409
13409
|
(e == null ? void 0 : e.multipart) !== !1 && Ln({
|
|
13410
|
-
match:
|
|
13411
|
-
parse:
|
|
13410
|
+
match: pp,
|
|
13411
|
+
parse: gp
|
|
13412
13412
|
}),
|
|
13413
13413
|
Ln({
|
|
13414
|
-
match:
|
|
13415
|
-
parse:
|
|
13414
|
+
match: lp,
|
|
13415
|
+
parse: cp
|
|
13416
13416
|
}),
|
|
13417
13417
|
Ln({
|
|
13418
|
-
match:
|
|
13419
|
-
parse:
|
|
13418
|
+
match: ap,
|
|
13419
|
+
parse: up
|
|
13420
13420
|
}),
|
|
13421
13421
|
// Middlewares after the GraphQL execution
|
|
13422
|
-
|
|
13423
|
-
|
|
13422
|
+
Up(),
|
|
13423
|
+
rp((u, l) => {
|
|
13424
13424
|
const p = {
|
|
13425
13425
|
errors: _r(u, this.maskedErrorsOpts, this.logger)
|
|
13426
13426
|
};
|
|
@@ -13437,20 +13437,20 @@ class qp {
|
|
|
13437
13437
|
onPluginInit({ addPlugin: u }) {
|
|
13438
13438
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
|
|
13439
13439
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13440
|
-
|
|
13441
|
-
), u(
|
|
13440
|
+
Lp(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
13441
|
+
), u(Ip(o)), u(Ep()), u(
|
|
13442
13442
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13443
|
-
|
|
13443
|
+
Bp({
|
|
13444
13444
|
graphqlEndpoint: a,
|
|
13445
13445
|
showLandingPage: (e == null ? void 0 : e.landingPage) ?? !0
|
|
13446
13446
|
})
|
|
13447
|
-
), u(
|
|
13447
|
+
), u(Tp()), u(Op()), s && u(el(s)), u(
|
|
13448
13448
|
// We handle validation errors at the end
|
|
13449
|
-
|
|
13449
|
+
Sp()
|
|
13450
13450
|
);
|
|
13451
13451
|
}
|
|
13452
13452
|
}
|
|
13453
|
-
], this.getEnveloped =
|
|
13453
|
+
], this.getEnveloped = Qu({
|
|
13454
13454
|
plugins: this.plugins
|
|
13455
13455
|
}), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onResultProcessHooks = [];
|
|
13456
13456
|
for (const u of this.plugins)
|
|
@@ -13481,7 +13481,7 @@ class qp {
|
|
|
13481
13481
|
request: n,
|
|
13482
13482
|
params: e
|
|
13483
13483
|
}, u = i[0] ? r ? Object.assign({}, i[0], a) : Object.assign(i[0], a) : a, l = this.getEnveloped(u);
|
|
13484
|
-
this.logger.debug("Processing GraphQL Parameters"), o = await
|
|
13484
|
+
this.logger.debug("Processing GraphQL Parameters"), o = await Gp({
|
|
13485
13485
|
params: e,
|
|
13486
13486
|
enveloped: l
|
|
13487
13487
|
}), this.logger.debug("Processing GraphQL Parameters done.");
|
|
@@ -13500,9 +13500,9 @@ class qp {
|
|
|
13500
13500
|
}
|
|
13501
13501
|
}
|
|
13502
13502
|
}
|
|
13503
|
-
function
|
|
13504
|
-
const e = new
|
|
13505
|
-
return
|
|
13503
|
+
function zp(t) {
|
|
13504
|
+
const e = new Qp(t);
|
|
13505
|
+
return Xh(e, {
|
|
13506
13506
|
fetchAPI: e.fetchAPI,
|
|
13507
13507
|
plugins: e.plugins
|
|
13508
13508
|
});
|
|
@@ -14285,22 +14285,22 @@ list should be an Array.`), d.length === 0) return new v(0);
|
|
|
14285
14285
|
}, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
|
|
14286
14286
|
});
|
|
14287
14287
|
})(hu);
|
|
14288
|
-
var
|
|
14289
|
-
const
|
|
14288
|
+
var Yp = hu.exports;
|
|
14289
|
+
const Jp = /* @__PURE__ */ Iu(Yp);
|
|
14290
14290
|
var zt = {}, Gt = {}, us = {};
|
|
14291
14291
|
Object.defineProperty(us, "__esModule", {
|
|
14292
14292
|
value: !0
|
|
14293
14293
|
});
|
|
14294
|
-
us.isObjectLike =
|
|
14295
|
-
function
|
|
14294
|
+
us.isObjectLike = Wp;
|
|
14295
|
+
function Wp(t) {
|
|
14296
14296
|
return typeof t == "object" && t !== null;
|
|
14297
14297
|
}
|
|
14298
14298
|
var Zr = {}, ls = {};
|
|
14299
14299
|
Object.defineProperty(ls, "__esModule", {
|
|
14300
14300
|
value: !0
|
|
14301
14301
|
});
|
|
14302
|
-
ls.invariant =
|
|
14303
|
-
function
|
|
14302
|
+
ls.invariant = Hp;
|
|
14303
|
+
function Hp(t, e) {
|
|
14304
14304
|
if (!!!t)
|
|
14305
14305
|
throw new Error(
|
|
14306
14306
|
e ?? "Unexpected invariant triggered."
|
|
@@ -14309,13 +14309,13 @@ function Wp(t, e) {
|
|
|
14309
14309
|
Object.defineProperty(Zr, "__esModule", {
|
|
14310
14310
|
value: !0
|
|
14311
14311
|
});
|
|
14312
|
-
Zr.getLocation =
|
|
14313
|
-
var
|
|
14314
|
-
const
|
|
14315
|
-
function
|
|
14312
|
+
Zr.getLocation = Zp;
|
|
14313
|
+
var Kp = ls;
|
|
14314
|
+
const Xp = /\r\n|[\n\r]/g;
|
|
14315
|
+
function Zp(t, e) {
|
|
14316
14316
|
let n = 0, r = 1;
|
|
14317
|
-
for (const i of t.body.matchAll(
|
|
14318
|
-
if (typeof i.index == "number" || (0,
|
|
14317
|
+
for (const i of t.body.matchAll(Xp)) {
|
|
14318
|
+
if (typeof i.index == "number" || (0, Kp.invariant)(!1), i.index >= e)
|
|
14319
14319
|
break;
|
|
14320
14320
|
n = i.index + i[0].length, r += 1;
|
|
14321
14321
|
}
|
|
@@ -14328,13 +14328,13 @@ var ei = {};
|
|
|
14328
14328
|
Object.defineProperty(ei, "__esModule", {
|
|
14329
14329
|
value: !0
|
|
14330
14330
|
});
|
|
14331
|
-
ei.printLocation =
|
|
14331
|
+
ei.printLocation = tg;
|
|
14332
14332
|
ei.printSourceLocation = pu;
|
|
14333
|
-
var
|
|
14334
|
-
function
|
|
14333
|
+
var eg = Zr;
|
|
14334
|
+
function tg(t) {
|
|
14335
14335
|
return pu(
|
|
14336
14336
|
t.source,
|
|
14337
|
-
(0,
|
|
14337
|
+
(0, eg.getLocation)(t.source, t.start)
|
|
14338
14338
|
);
|
|
14339
14339
|
}
|
|
14340
14340
|
function pu(t, e) {
|
|
@@ -14368,10 +14368,10 @@ Object.defineProperty(Gt, "__esModule", {
|
|
|
14368
14368
|
value: !0
|
|
14369
14369
|
});
|
|
14370
14370
|
Gt.GraphQLError = void 0;
|
|
14371
|
-
Gt.formatError =
|
|
14372
|
-
Gt.printError =
|
|
14373
|
-
var
|
|
14374
|
-
function
|
|
14371
|
+
Gt.formatError = sg;
|
|
14372
|
+
Gt.printError = ig;
|
|
14373
|
+
var ng = us, Co = Zr, Ro = ei;
|
|
14374
|
+
function rg(t) {
|
|
14375
14375
|
const e = t[0];
|
|
14376
14376
|
return e == null || "kind" in e || "length" in e ? {
|
|
14377
14377
|
nodes: e,
|
|
@@ -14423,7 +14423,7 @@ class cs extends Error {
|
|
|
14423
14423
|
*/
|
|
14424
14424
|
constructor(e, ...n) {
|
|
14425
14425
|
var r, i, s;
|
|
14426
|
-
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } =
|
|
14426
|
+
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } = rg(n);
|
|
14427
14427
|
super(e), this.name = "GraphQLError", this.path = l ?? void 0, this.originalError = c ?? void 0, this.nodes = ko(
|
|
14428
14428
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
14429
14429
|
);
|
|
@@ -14433,7 +14433,7 @@ class cs extends Error {
|
|
|
14433
14433
|
this.source = a ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = u ?? (g == null ? void 0 : g.map((E) => E.start)), this.locations = u && a ? u.map((E) => (0, Co.getLocation)(a, E)) : g == null ? void 0 : g.map(
|
|
14434
14434
|
(E) => (0, Co.getLocation)(E.source, E.start)
|
|
14435
14435
|
);
|
|
14436
|
-
const I = (0,
|
|
14436
|
+
const I = (0, ng.isObjectLike)(
|
|
14437
14437
|
c == null ? void 0 : c.extensions
|
|
14438
14438
|
) ? c == null ? void 0 : c.extensions : void 0;
|
|
14439
14439
|
this.extensions = (s = p ?? I) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -14494,20 +14494,20 @@ Gt.GraphQLError = cs;
|
|
|
14494
14494
|
function ko(t) {
|
|
14495
14495
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
14496
14496
|
}
|
|
14497
|
-
function
|
|
14497
|
+
function ig(t) {
|
|
14498
14498
|
return t.toString();
|
|
14499
14499
|
}
|
|
14500
|
-
function
|
|
14500
|
+
function sg(t) {
|
|
14501
14501
|
return t.toJSON();
|
|
14502
14502
|
}
|
|
14503
14503
|
var fs = {};
|
|
14504
14504
|
Object.defineProperty(fs, "__esModule", {
|
|
14505
14505
|
value: !0
|
|
14506
14506
|
});
|
|
14507
|
-
fs.syntaxError =
|
|
14508
|
-
var
|
|
14509
|
-
function
|
|
14510
|
-
return new
|
|
14507
|
+
fs.syntaxError = ag;
|
|
14508
|
+
var og = Gt;
|
|
14509
|
+
function ag(t, e, n) {
|
|
14510
|
+
return new og.GraphQLError(`Syntax Error: ${n}`, {
|
|
14511
14511
|
source: t,
|
|
14512
14512
|
positions: [e]
|
|
14513
14513
|
});
|
|
@@ -14516,9 +14516,9 @@ var ds = {}, hs = {}, ps = {};
|
|
|
14516
14516
|
Object.defineProperty(ps, "__esModule", {
|
|
14517
14517
|
value: !0
|
|
14518
14518
|
});
|
|
14519
|
-
ps.inspect =
|
|
14520
|
-
const
|
|
14521
|
-
function
|
|
14519
|
+
ps.inspect = lg;
|
|
14520
|
+
const ug = 10, gu = 2;
|
|
14521
|
+
function lg(t) {
|
|
14522
14522
|
return ti(t, []);
|
|
14523
14523
|
}
|
|
14524
14524
|
function ti(t, e) {
|
|
@@ -14528,45 +14528,45 @@ function ti(t, e) {
|
|
|
14528
14528
|
case "function":
|
|
14529
14529
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
14530
14530
|
case "object":
|
|
14531
|
-
return
|
|
14531
|
+
return cg(t, e);
|
|
14532
14532
|
default:
|
|
14533
14533
|
return String(t);
|
|
14534
14534
|
}
|
|
14535
14535
|
}
|
|
14536
|
-
function
|
|
14536
|
+
function cg(t, e) {
|
|
14537
14537
|
if (t === null)
|
|
14538
14538
|
return "null";
|
|
14539
14539
|
if (e.includes(t))
|
|
14540
14540
|
return "[Circular]";
|
|
14541
14541
|
const n = [...e, t];
|
|
14542
|
-
if (
|
|
14542
|
+
if (fg(t)) {
|
|
14543
14543
|
const r = t.toJSON();
|
|
14544
14544
|
if (r !== t)
|
|
14545
14545
|
return typeof r == "string" ? r : ti(r, n);
|
|
14546
14546
|
} else if (Array.isArray(t))
|
|
14547
|
-
return
|
|
14548
|
-
return
|
|
14547
|
+
return hg(t, n);
|
|
14548
|
+
return dg(t, n);
|
|
14549
14549
|
}
|
|
14550
|
-
function
|
|
14550
|
+
function fg(t) {
|
|
14551
14551
|
return typeof t.toJSON == "function";
|
|
14552
14552
|
}
|
|
14553
|
-
function
|
|
14553
|
+
function dg(t, e) {
|
|
14554
14554
|
const n = Object.entries(t);
|
|
14555
|
-
return n.length === 0 ? "{}" : e.length > gu ? "[" +
|
|
14555
|
+
return n.length === 0 ? "{}" : e.length > gu ? "[" + pg(t) + "]" : "{ " + n.map(
|
|
14556
14556
|
([i, s]) => i + ": " + ti(s, e)
|
|
14557
14557
|
).join(", ") + " }";
|
|
14558
14558
|
}
|
|
14559
|
-
function
|
|
14559
|
+
function hg(t, e) {
|
|
14560
14560
|
if (t.length === 0)
|
|
14561
14561
|
return "[]";
|
|
14562
14562
|
if (e.length > gu)
|
|
14563
14563
|
return "[Array]";
|
|
14564
|
-
const n = Math.min(
|
|
14564
|
+
const n = Math.min(ug, t.length), r = t.length - n, i = [];
|
|
14565
14565
|
for (let s = 0; s < n; ++s)
|
|
14566
14566
|
i.push(ti(t[s], e));
|
|
14567
14567
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
14568
14568
|
}
|
|
14569
|
-
function
|
|
14569
|
+
function pg(t) {
|
|
14570
14570
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
14571
14571
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
14572
14572
|
const n = t.constructor.name;
|
|
@@ -14578,25 +14578,25 @@ function hg(t) {
|
|
|
14578
14578
|
Object.defineProperty(hs, "__esModule", {
|
|
14579
14579
|
value: !0
|
|
14580
14580
|
});
|
|
14581
|
-
hs.toError =
|
|
14582
|
-
var
|
|
14583
|
-
function
|
|
14584
|
-
return t instanceof Error ? t : new
|
|
14581
|
+
hs.toError = mg;
|
|
14582
|
+
var gg = ps;
|
|
14583
|
+
function mg(t) {
|
|
14584
|
+
return t instanceof Error ? t : new yg(t);
|
|
14585
14585
|
}
|
|
14586
|
-
class
|
|
14586
|
+
class yg extends Error {
|
|
14587
14587
|
constructor(e) {
|
|
14588
|
-
super("Unexpected error value: " + (0,
|
|
14588
|
+
super("Unexpected error value: " + (0, gg.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
14589
14589
|
}
|
|
14590
14590
|
}
|
|
14591
14591
|
Object.defineProperty(ds, "__esModule", {
|
|
14592
14592
|
value: !0
|
|
14593
14593
|
});
|
|
14594
|
-
ds.locatedError =
|
|
14595
|
-
var
|
|
14596
|
-
function
|
|
14594
|
+
ds.locatedError = vg;
|
|
14595
|
+
var bg = hs, Eg = Gt;
|
|
14596
|
+
function vg(t, e, n) {
|
|
14597
14597
|
var r;
|
|
14598
|
-
const i = (0,
|
|
14599
|
-
return
|
|
14598
|
+
const i = (0, bg.toError)(t);
|
|
14599
|
+
return wg(i) ? i : new Eg.GraphQLError(i.message, {
|
|
14600
14600
|
nodes: (r = i.nodes) !== null && r !== void 0 ? r : e,
|
|
14601
14601
|
source: i.source,
|
|
14602
14602
|
positions: i.positions,
|
|
@@ -14604,7 +14604,7 @@ function Eg(t, e, n) {
|
|
|
14604
14604
|
originalError: i
|
|
14605
14605
|
});
|
|
14606
14606
|
}
|
|
14607
|
-
function
|
|
14607
|
+
function wg(t) {
|
|
14608
14608
|
return Array.isArray(t.path);
|
|
14609
14609
|
}
|
|
14610
14610
|
(function(t) {
|
|
@@ -14650,7 +14650,7 @@ var mu = {};
|
|
|
14650
14650
|
})(e.HttpMethods || (e.HttpMethods = {}));
|
|
14651
14651
|
}(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
|
|
14652
14652
|
})(mu);
|
|
14653
|
-
const yi = /* @__PURE__ */ new Map(),
|
|
14653
|
+
const yi = /* @__PURE__ */ new Map(), Tg = (t, e) => {
|
|
14654
14654
|
yi.has(t) || yi.set(t, /* @__PURE__ */ new Map());
|
|
14655
14655
|
const n = yi.get(t);
|
|
14656
14656
|
if (n.has(e))
|
|
@@ -14660,11 +14660,11 @@ const yi = /* @__PURE__ */ new Map(), wg = (t, e) => {
|
|
|
14660
14660
|
for (const s of r)
|
|
14661
14661
|
(!i || typeof i != "object") && (i = null), i = i[s] ?? null;
|
|
14662
14662
|
return n.set(e, i), i;
|
|
14663
|
-
}, bi = /* @__PURE__ */ new Map(),
|
|
14663
|
+
}, bi = /* @__PURE__ */ new Map(), Sg = (t) => t !== null && typeof t == "object", Ig = async (t, e = []) => {
|
|
14664
14664
|
if (bi.has(t))
|
|
14665
14665
|
return bi.get(t);
|
|
14666
14666
|
const n = structuredClone(t), r = /* @__PURE__ */ new Set(), i = async (o, a) => {
|
|
14667
|
-
if (
|
|
14667
|
+
if (Sg(o)) {
|
|
14668
14668
|
if (r.has(o))
|
|
14669
14669
|
return o;
|
|
14670
14670
|
if (r.add(o), Array.isArray(o))
|
|
@@ -14676,7 +14676,7 @@ const yi = /* @__PURE__ */ new Map(), wg = (t, e) => {
|
|
|
14676
14676
|
const l = await u(o.$ref);
|
|
14677
14677
|
if (l) return l;
|
|
14678
14678
|
}
|
|
14679
|
-
return await
|
|
14679
|
+
return await Tg(n, o.$ref);
|
|
14680
14680
|
}
|
|
14681
14681
|
for (const u in o)
|
|
14682
14682
|
o[u] = await i(o[u]);
|
|
@@ -14694,7 +14694,7 @@ function Dt(t, e) {
|
|
|
14694
14694
|
) : typeof i == "object" && i !== null ? n[r] = Dt(i, e) : n[r] = i;
|
|
14695
14695
|
return e(n);
|
|
14696
14696
|
}
|
|
14697
|
-
const
|
|
14697
|
+
const _g = (t) => {
|
|
14698
14698
|
var e;
|
|
14699
14699
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = Dt(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = Dt(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = Dt(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
14700
14700
|
default: n.example
|
|
@@ -14712,7 +14712,7 @@ const Ig = (t) => {
|
|
|
14712
14712
|
type: "string",
|
|
14713
14713
|
contentEncoding: "base64"
|
|
14714
14714
|
} : n), t;
|
|
14715
|
-
},
|
|
14715
|
+
}, Og = Object.values(mu.OpenAPIV3.HttpMethods), Ng = async (t) => {
|
|
14716
14716
|
if (typeof t == "string") {
|
|
14717
14717
|
if (t.trim().startsWith("{"))
|
|
14718
14718
|
try {
|
|
@@ -14750,23 +14750,30 @@ const Ig = (t) => {
|
|
|
14750
14750
|
}
|
|
14751
14751
|
if (typeof t == "object") return t;
|
|
14752
14752
|
throw new zt.GraphQLError("Unsupported schema input: " + t);
|
|
14753
|
-
},
|
|
14754
|
-
const e = await
|
|
14753
|
+
}, Ag = async (t) => {
|
|
14754
|
+
const e = await Ng(t);
|
|
14755
14755
|
if (!e.openapi)
|
|
14756
14756
|
throw new zt.GraphQLError("OpenAPI version is not defined");
|
|
14757
|
-
const n = await
|
|
14758
|
-
return
|
|
14759
|
-
},
|
|
14757
|
+
const n = await Ig(e);
|
|
14758
|
+
return _g(n);
|
|
14759
|
+
}, xg = (t, e) => {
|
|
14760
14760
|
const n = (t.summary ?? "") + (t.operationId ? "-" + t.operationId.slice(0, (t.summary, 1 / 0)) : "");
|
|
14761
|
-
return
|
|
14761
|
+
return _u(
|
|
14762
14762
|
(e ? e + "-" : "") + (n || `${t.method}-${t.path}`),
|
|
14763
14763
|
{ lower: !0, trim: !0 }
|
|
14764
14764
|
);
|
|
14765
14765
|
}, Ei = new Ur({
|
|
14766
14766
|
ttl: 60 * 10 * 1e3,
|
|
14767
14767
|
ttlAutopurge: !0
|
|
14768
|
-
}), Re = new
|
|
14769
|
-
|
|
14768
|
+
}), Re = new md({}), zn = Re.addScalarType("JSON", yd), Fg = Re.addScalarType("JSONObject", bd), yu = (t) => {
|
|
14769
|
+
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((i) => Object.values(i ?? {})).flatMap(
|
|
14770
|
+
(i) => typeof i == "object" && "tags" in i ? i.tags ?? [] : []
|
|
14771
|
+
), r = [...new Set(n)].filter(
|
|
14772
|
+
(i) => !e.some((s) => s.name === i)
|
|
14773
|
+
);
|
|
14774
|
+
return [...e, ...r.map((i) => ({ name: i }))];
|
|
14775
|
+
}, bu = (t, e) => Object.entries(t ?? {}).flatMap(
|
|
14776
|
+
([n, r]) => Og.flatMap((i) => {
|
|
14770
14777
|
if (!(r != null && r[i])) return [];
|
|
14771
14778
|
const s = r[i], o = r.parameters ?? [], a = s.parameters ?? [], u = [
|
|
14772
14779
|
...o.filter(
|
|
@@ -14783,7 +14790,7 @@ const Ig = (t) => {
|
|
|
14783
14790
|
path: n,
|
|
14784
14791
|
parameters: u,
|
|
14785
14792
|
tags: s.tags ?? [],
|
|
14786
|
-
slug:
|
|
14793
|
+
slug: xg(
|
|
14787
14794
|
{
|
|
14788
14795
|
summary: s.summary,
|
|
14789
14796
|
operationId: s.operationId,
|
|
@@ -14794,42 +14801,41 @@ const Ig = (t) => {
|
|
|
14794
14801
|
)
|
|
14795
14802
|
};
|
|
14796
14803
|
})
|
|
14797
|
-
),
|
|
14804
|
+
), Lg = Re.objectRef("SchemaTag").implement({
|
|
14798
14805
|
fields: (t) => ({
|
|
14799
14806
|
name: t.exposeString("name", { nullable: !0 }),
|
|
14800
14807
|
description: t.exposeString("description", { nullable: !0 }),
|
|
14801
14808
|
operations: t.field({
|
|
14802
|
-
type: [
|
|
14809
|
+
type: [wu],
|
|
14803
14810
|
resolve: (e, n, r) => {
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
(o) =>
|
|
14808
|
-
o.tags.every((a) => !i.includes(a))
|
|
14811
|
+
const i = yu(r.schema).map((s) => s.name);
|
|
14812
|
+
return bu(r.schema.paths, e.name).filter(
|
|
14813
|
+
(s) => e.name ? s.tags.includes(e.name) : s.tags.length === 0 || // If none of the tags are present in the root tags, then show them here
|
|
14814
|
+
s.tags.every((o) => !i.includes(o))
|
|
14809
14815
|
);
|
|
14810
14816
|
}
|
|
14811
14817
|
})
|
|
14812
14818
|
})
|
|
14813
|
-
}),
|
|
14819
|
+
}), Cg = Re.objectRef("PathItem").implement({
|
|
14814
14820
|
fields: (t) => ({
|
|
14815
14821
|
path: t.exposeString("path"),
|
|
14816
14822
|
methods: t.exposeStringList("methods")
|
|
14817
14823
|
})
|
|
14818
|
-
}),
|
|
14824
|
+
}), Rg = Re.objectRef("TagItem").implement({
|
|
14819
14825
|
fields: (t) => ({
|
|
14820
14826
|
name: t.exposeString("name"),
|
|
14821
14827
|
description: t.exposeString("description", { nullable: !0 })
|
|
14822
14828
|
})
|
|
14823
|
-
}),
|
|
14829
|
+
}), kg = Re.objectRef("EncodingItem").implement({
|
|
14824
14830
|
fields: (t) => ({
|
|
14825
14831
|
name: t.exposeString("name"),
|
|
14826
14832
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
14827
|
-
headers: t.expose("headers", { type:
|
|
14833
|
+
headers: t.expose("headers", { type: Fg, nullable: !0 }),
|
|
14828
14834
|
style: t.exposeString("style", { nullable: !0 }),
|
|
14829
14835
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
14830
14836
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
|
|
14831
14837
|
})
|
|
14832
|
-
}),
|
|
14838
|
+
}), Eu = Re.objectRef("ExampleItem").implement({
|
|
14833
14839
|
fields: (t) => ({
|
|
14834
14840
|
name: t.exposeString("name"),
|
|
14835
14841
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
@@ -14837,13 +14843,13 @@ const Ig = (t) => {
|
|
|
14837
14843
|
value: t.exposeString("value", { nullable: !0 }),
|
|
14838
14844
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
14839
14845
|
})
|
|
14840
|
-
}),
|
|
14846
|
+
}), Dg = Re.enumType("ParameterIn", {
|
|
14841
14847
|
values: ["query", "header", "path", "cookie"]
|
|
14842
|
-
}),
|
|
14848
|
+
}), $g = Re.objectRef("ParameterItem").implement({
|
|
14843
14849
|
fields: (t) => ({
|
|
14844
14850
|
name: t.exposeString("name"),
|
|
14845
14851
|
in: t.field({
|
|
14846
|
-
type:
|
|
14852
|
+
type: Dg,
|
|
14847
14853
|
resolve: (e) => e.in
|
|
14848
14854
|
}),
|
|
14849
14855
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -14854,7 +14860,7 @@ const Ig = (t) => {
|
|
|
14854
14860
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
14855
14861
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 }),
|
|
14856
14862
|
examples: t.field({
|
|
14857
|
-
type: [
|
|
14863
|
+
type: [Eu],
|
|
14858
14864
|
resolve: (e) => Object.entries(e.examples ?? {}).map(([n, r]) => ({
|
|
14859
14865
|
name: n,
|
|
14860
14866
|
...typeof r == "string" ? { value: r } : r
|
|
@@ -14863,28 +14869,28 @@ const Ig = (t) => {
|
|
|
14863
14869
|
}),
|
|
14864
14870
|
schema: t.expose("schema", { type: zn, nullable: !0 })
|
|
14865
14871
|
})
|
|
14866
|
-
}),
|
|
14872
|
+
}), vu = Re.objectRef("MediaTypeObject").implement({
|
|
14867
14873
|
fields: (t) => ({
|
|
14868
14874
|
mediaType: t.exposeString("mediaType"),
|
|
14869
14875
|
schema: t.expose("schema", { type: zn, nullable: !0 }),
|
|
14870
|
-
examples: t.expose("examples", { type: [
|
|
14871
|
-
encoding: t.expose("encoding", { type: [
|
|
14876
|
+
examples: t.expose("examples", { type: [Eu], nullable: !0 }),
|
|
14877
|
+
encoding: t.expose("encoding", { type: [kg], nullable: !0 })
|
|
14872
14878
|
})
|
|
14873
|
-
}),
|
|
14879
|
+
}), jg = Re.objectRef("RequestBodyObject").implement({
|
|
14874
14880
|
fields: (t) => ({
|
|
14875
14881
|
description: t.exposeString("description", { nullable: !0 }),
|
|
14876
|
-
content: t.expose("content", { type: [
|
|
14882
|
+
content: t.expose("content", { type: [vu], nullable: !0 }),
|
|
14877
14883
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
14878
14884
|
})
|
|
14879
|
-
}),
|
|
14885
|
+
}), Pg = Re.objectRef("ResponseItem").implement({
|
|
14880
14886
|
fields: (t) => ({
|
|
14881
14887
|
statusCode: t.exposeString("statusCode"),
|
|
14882
|
-
description: t.exposeString("description"),
|
|
14883
|
-
content: t.expose("content", { type: [
|
|
14888
|
+
description: t.exposeString("description", { nullable: !0 }),
|
|
14889
|
+
content: t.expose("content", { type: [vu], nullable: !0 }),
|
|
14884
14890
|
headers: t.expose("headers", { type: zn, nullable: !0 }),
|
|
14885
14891
|
links: t.expose("links", { type: zn, nullable: !0 })
|
|
14886
14892
|
})
|
|
14887
|
-
}),
|
|
14893
|
+
}), wu = Re.objectRef("OperationItem").implement({
|
|
14888
14894
|
fields: (t) => ({
|
|
14889
14895
|
slug: t.exposeString("slug"),
|
|
14890
14896
|
path: t.exposeString("path"),
|
|
@@ -14899,11 +14905,11 @@ const Ig = (t) => {
|
|
|
14899
14905
|
}
|
|
14900
14906
|
}),
|
|
14901
14907
|
parameters: t.expose("parameters", {
|
|
14902
|
-
type: [
|
|
14908
|
+
type: [$g],
|
|
14903
14909
|
nullable: !0
|
|
14904
14910
|
}),
|
|
14905
14911
|
requestBody: t.field({
|
|
14906
|
-
type:
|
|
14912
|
+
type: jg,
|
|
14907
14913
|
resolve: (e) => {
|
|
14908
14914
|
var n, r, i;
|
|
14909
14915
|
return {
|
|
@@ -14926,7 +14932,7 @@ const Ig = (t) => {
|
|
|
14926
14932
|
nullable: !0
|
|
14927
14933
|
}),
|
|
14928
14934
|
responses: t.field({
|
|
14929
|
-
type: [
|
|
14935
|
+
type: [Pg],
|
|
14930
14936
|
resolve: (e) => Object.entries(e.responses ?? {}).map(
|
|
14931
14937
|
([n, r]) => ({
|
|
14932
14938
|
statusCode: n,
|
|
@@ -14946,7 +14952,7 @@ const Ig = (t) => {
|
|
|
14946
14952
|
)
|
|
14947
14953
|
}),
|
|
14948
14954
|
tags: t.field({
|
|
14949
|
-
type: [
|
|
14955
|
+
type: [Rg],
|
|
14950
14956
|
resolve: (e, n, r) => {
|
|
14951
14957
|
var i;
|
|
14952
14958
|
return (i = e.tags) == null ? void 0 : i.map((s) => {
|
|
@@ -14961,7 +14967,7 @@ const Ig = (t) => {
|
|
|
14961
14967
|
}),
|
|
14962
14968
|
deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
|
|
14963
14969
|
})
|
|
14964
|
-
}),
|
|
14970
|
+
}), Mg = Re.objectRef("Schema").implement({
|
|
14965
14971
|
fields: (t) => ({
|
|
14966
14972
|
openapi: t.string({ resolve: (e) => e.openapi }),
|
|
14967
14973
|
url: t.string({ resolve: (e) => {
|
|
@@ -14975,7 +14981,7 @@ const Ig = (t) => {
|
|
|
14975
14981
|
nullable: !0
|
|
14976
14982
|
}),
|
|
14977
14983
|
paths: t.field({
|
|
14978
|
-
type: [
|
|
14984
|
+
type: [Cg],
|
|
14979
14985
|
resolve: (e) => Object.entries(e.paths ?? {}).map(([n, r]) => ({
|
|
14980
14986
|
path: n,
|
|
14981
14987
|
methods: Object.keys(r)
|
|
@@ -14985,63 +14991,64 @@ const Ig = (t) => {
|
|
|
14985
14991
|
args: {
|
|
14986
14992
|
name: t.arg.string()
|
|
14987
14993
|
},
|
|
14988
|
-
type: [
|
|
14989
|
-
resolve: (e, n) =>
|
|
14990
|
-
|
|
14991
|
-
|
|
14994
|
+
type: [Lg],
|
|
14995
|
+
resolve: (e, n) => {
|
|
14996
|
+
const r = [...yu(e), { name: "" }];
|
|
14997
|
+
return n.name ? r.filter((i) => i.name === n.name) : r;
|
|
14998
|
+
}
|
|
14992
14999
|
}),
|
|
14993
15000
|
operations: t.field({
|
|
14994
|
-
type: [
|
|
15001
|
+
type: [wu],
|
|
14995
15002
|
args: {
|
|
14996
15003
|
path: t.arg.string(),
|
|
14997
15004
|
method: t.arg.string(),
|
|
14998
15005
|
operationId: t.arg.string(),
|
|
14999
15006
|
tag: t.arg.string()
|
|
15000
15007
|
},
|
|
15001
|
-
resolve: (e, n) =>
|
|
15008
|
+
resolve: (e, n) => bu(e.paths).filter(
|
|
15002
15009
|
(r) => (!n.operationId || r.operationId === n.operationId) && (!n.path || r.path === n.path) && (!n.method || r.method === n.method) && (!n.tag || r.tags.includes(n.tag))
|
|
15003
15010
|
)
|
|
15004
15011
|
})
|
|
15005
15012
|
})
|
|
15006
|
-
}),
|
|
15007
|
-
const e =
|
|
15013
|
+
}), Ug = async (t) => {
|
|
15014
|
+
const e = Jp(t);
|
|
15008
15015
|
if (Ei.has(e))
|
|
15009
15016
|
return Ei.get(e);
|
|
15010
|
-
const n =
|
|
15017
|
+
const n = Ag(t);
|
|
15011
15018
|
return Ei.set(e, n), n;
|
|
15012
|
-
},
|
|
15019
|
+
}, Vg = Re.enumType("SchemaType", {
|
|
15013
15020
|
values: ["url", "json", "yaml"]
|
|
15014
15021
|
});
|
|
15015
15022
|
Re.queryType({
|
|
15016
15023
|
fields: (t) => ({
|
|
15017
15024
|
// https://tan-cow-main-bce8a06.d2.zuplo.dev/openapi
|
|
15018
15025
|
schema: t.field({
|
|
15019
|
-
type:
|
|
15026
|
+
type: Mg,
|
|
15020
15027
|
args: {
|
|
15021
|
-
type: t.arg({ type:
|
|
15028
|
+
type: t.arg({ type: Vg, required: !0 }),
|
|
15022
15029
|
input: t.arg({ type: zn, required: !0 })
|
|
15023
15030
|
},
|
|
15024
15031
|
resolve: async (e, n, r) => {
|
|
15025
|
-
const i = await
|
|
15032
|
+
const i = await Ug(n.input);
|
|
15026
15033
|
return r.schema = i, i;
|
|
15027
15034
|
}
|
|
15028
15035
|
})
|
|
15029
15036
|
})
|
|
15030
15037
|
});
|
|
15031
|
-
const
|
|
15038
|
+
const Bg = Re.toSchema(), Gg = (t) => zp({ schema: Bg, ...t }), qg = () => Gg({
|
|
15032
15039
|
plugins: [
|
|
15033
15040
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
15034
|
-
|
|
15041
|
+
zu({
|
|
15035
15042
|
logFn: (t, { args: e }) => {
|
|
15036
15043
|
}
|
|
15037
15044
|
})
|
|
15038
15045
|
]
|
|
15039
|
-
}),
|
|
15046
|
+
}), Qg = qg(), zg = () => new Uo({
|
|
15040
15047
|
url: "/__z/graphql",
|
|
15041
15048
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
15042
15049
|
fetch: async (t, e) => {
|
|
15043
15050
|
if (!(e != null && e.body)) throw new Error("No body");
|
|
15044
|
-
return await
|
|
15051
|
+
return await Qg.fetch(
|
|
15045
15052
|
new Request("http://localhost/__z/graphql", {
|
|
15046
15053
|
method: "POST",
|
|
15047
15054
|
body: e.body,
|
|
@@ -15061,14 +15068,14 @@ const Vg = Re.toSchema(), Bg = (t) => Qp({ schema: Vg, ...t }), Gg = () => Bg({
|
|
|
15061
15068
|
}),
|
|
15062
15069
|
Go
|
|
15063
15070
|
]
|
|
15064
|
-
}),
|
|
15071
|
+
}), Yg = Du(), nm = ({
|
|
15065
15072
|
useMemoryClient: t
|
|
15066
15073
|
}) => {
|
|
15067
15074
|
if (t || typeof SharedWorker > "u")
|
|
15068
|
-
return
|
|
15075
|
+
return zg();
|
|
15069
15076
|
const e = new SharedWorker(new URL(
|
|
15070
15077
|
/* @vite-ignore */
|
|
15071
|
-
"./assets/worker-
|
|
15078
|
+
"./assets/worker-CzHUifWA.js",
|
|
15072
15079
|
import.meta.url
|
|
15073
15080
|
), {
|
|
15074
15081
|
type: "module"
|
|
@@ -15076,7 +15083,7 @@ const Vg = Re.toSchema(), Bg = (t) => Qp({ schema: Vg, ...t }), Gg = () => Bg({
|
|
|
15076
15083
|
e.onerror = (i) => {
|
|
15077
15084
|
console.error(i);
|
|
15078
15085
|
}, e.port.start();
|
|
15079
|
-
const [n, r] =
|
|
15086
|
+
const [n, r] = ju();
|
|
15080
15087
|
return e.port.onmessage = (i) => {
|
|
15081
15088
|
r(i.data.id, i.data.body);
|
|
15082
15089
|
}, new Uo({
|
|
@@ -15084,7 +15091,7 @@ const Vg = Re.toSchema(), Bg = (t) => Qp({ schema: Vg, ...t }), Gg = () => Bg({
|
|
|
15084
15091
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
15085
15092
|
fetch: async (i, s) => {
|
|
15086
15093
|
if (!(s != null && s.body)) throw new Error("No body");
|
|
15087
|
-
const o =
|
|
15094
|
+
const o = Yg();
|
|
15088
15095
|
e.port.postMessage({
|
|
15089
15096
|
id: o,
|
|
15090
15097
|
body: s.body
|
|
@@ -15109,6 +15116,6 @@ const Vg = Re.toSchema(), Bg = (t) => Qp({ schema: Vg, ...t }), Gg = () => Bg({
|
|
|
15109
15116
|
});
|
|
15110
15117
|
};
|
|
15111
15118
|
export {
|
|
15112
|
-
|
|
15119
|
+
nm as createClient
|
|
15113
15120
|
};
|
|
15114
15121
|
//# sourceMappingURL=zudoku.openapi-worker.js.map
|