zudoku 0.27.0 → 0.28.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.
Files changed (103) hide show
  1. package/dist/lib/components/navigation/SidebarCategory.js +3 -3
  2. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  3. package/dist/lib/oas/graphql/index.d.ts +1 -0
  4. package/dist/lib/oas/graphql/index.js +41 -23
  5. package/dist/lib/oas/graphql/index.js.map +1 -1
  6. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  7. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  8. package/dist/lib/plugins/openapi/{Route.d.ts → OpenApiRoute.d.ts} +2 -1
  9. package/dist/lib/plugins/openapi/{Route.js → OpenApiRoute.js} +3 -4
  10. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +1 -0
  11. package/dist/lib/plugins/openapi/OperationList.d.ts +4 -1
  12. package/dist/lib/plugins/openapi/OperationList.js +20 -14
  13. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  14. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +1 -1
  15. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -0
  16. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  17. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  18. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  19. package/dist/lib/plugins/openapi/SidecarExamples.js +17 -14
  20. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  21. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
  22. package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
  23. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  24. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +47 -26
  25. package/dist/lib/plugins/openapi/graphql/graphql.js +20 -16
  26. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  27. package/dist/lib/plugins/openapi/index.js +97 -54
  28. package/dist/lib/plugins/openapi/index.js.map +1 -1
  29. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -0
  30. package/dist/lib/util/joinUrl.js +1 -1
  31. package/dist/lib/util/joinUrl.js.map +1 -1
  32. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  33. package/dist/lib/util/joinUrl.test.js +43 -0
  34. package/dist/lib/util/joinUrl.test.js.map +1 -0
  35. package/dist/vite/plugin-api.js +7 -1
  36. package/dist/vite/plugin-api.js.map +1 -1
  37. package/lib/{AuthenticationPlugin-CO_YCd2x.js → AuthenticationPlugin-Du8cLBSr.js} +2 -2
  38. package/lib/{AuthenticationPlugin-CO_YCd2x.js.map → AuthenticationPlugin-Du8cLBSr.js.map} +1 -1
  39. package/lib/{Markdown-B8o9Qz4q.js → Markdown-Cyrx_JrO.js} +8 -9
  40. package/lib/{Markdown-B8o9Qz4q.js.map → Markdown-Cyrx_JrO.js.map} +1 -1
  41. package/lib/{MdxPage-BxRt3Ly7.js → MdxPage-DewragjB.js} +5 -5
  42. package/lib/{MdxPage-BxRt3Ly7.js.map → MdxPage-DewragjB.js.map} +1 -1
  43. package/lib/OpenApiRoute-UrC_t0e5.js +36 -0
  44. package/lib/OpenApiRoute-UrC_t0e5.js.map +1 -0
  45. package/lib/{OperationList-DH-zIgtq.js → OperationList-D_ejrepA.js} +1373 -1372
  46. package/lib/OperationList-D_ejrepA.js.map +1 -0
  47. package/lib/{Select-B7UXR0SB.js → Select-CnCZ4WhS.js} +3 -3
  48. package/lib/{Select-B7UXR0SB.js.map → Select-CnCZ4WhS.js.map} +1 -1
  49. package/lib/{SlotletProvider-CtIp8rP3.js → SlotletProvider-mQiPDQIH.js} +2 -2
  50. package/lib/{SlotletProvider-CtIp8rP3.js.map → SlotletProvider-mQiPDQIH.js.map} +1 -1
  51. package/lib/{SyntaxHighlight-C1w1QPdY.js → SyntaxHighlight-B0L4SC_N.js} +11 -5
  52. package/lib/SyntaxHighlight-B0L4SC_N.js.map +1 -0
  53. package/lib/{ZudokuContext-8jts0fF3.js → ZudokuContext-BTUJPpQl.js} +21 -21
  54. package/lib/{ZudokuContext-8jts0fF3.js.map → ZudokuContext-BTUJPpQl.js.map} +1 -1
  55. package/lib/{createServer-BV0tHzLK.js → createServer-BydbkTsd.js} +821 -808
  56. package/lib/{createServer-BV0tHzLK.js.map → createServer-BydbkTsd.js.map} +1 -1
  57. package/lib/{hook-BG02esyv.js → hook-FT3SJLe_.js} +2 -2
  58. package/lib/{hook-BG02esyv.js.map → hook-FT3SJLe_.js.map} +1 -1
  59. package/lib/{index-LNp6rxyU.js → index-CjJS0l4l.js} +2 -2
  60. package/lib/{index-LNp6rxyU.js.map → index-CjJS0l4l.js.map} +1 -1
  61. package/lib/{index-DmqsUPcm.js → index-DGugJOLc.js} +836 -777
  62. package/lib/index-DGugJOLc.js.map +1 -0
  63. package/lib/{joinUrl-BTy9bvoK.js → joinUrl-nLx9pD-Z.js} +2 -2
  64. package/lib/joinUrl-nLx9pD-Z.js.map +1 -0
  65. package/lib/{useScrollToAnchor-Bl6mz9_x.js → useScrollToAnchor-eRM9tVvD.js} +10 -9
  66. package/lib/useScrollToAnchor-eRM9tVvD.js.map +1 -0
  67. package/lib/zudoku.auth-clerk.js +1 -1
  68. package/lib/zudoku.auth-openid.js +3 -3
  69. package/lib/zudoku.components.js +153 -154
  70. package/lib/zudoku.components.js.map +1 -1
  71. package/lib/zudoku.plugin-api-catalog.js +3 -3
  72. package/lib/zudoku.plugin-api-keys.js +4 -4
  73. package/lib/zudoku.plugin-custom-pages.js +1 -1
  74. package/lib/zudoku.plugin-markdown.js +1 -1
  75. package/lib/zudoku.plugin-openapi.js +6 -5
  76. package/lib/zudoku.plugin-openapi.js.map +1 -1
  77. package/package.json +1 -1
  78. package/src/lib/components/navigation/SidebarCategory.tsx +3 -2
  79. package/src/lib/oas/graphql/index.ts +63 -35
  80. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  81. package/src/lib/plugins/openapi/{Route.tsx → OpenApiRoute.tsx} +3 -3
  82. package/src/lib/plugins/openapi/OperationList.tsx +34 -12
  83. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -0
  84. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  85. package/src/lib/plugins/openapi/SidecarExamples.tsx +24 -24
  86. package/src/lib/plugins/openapi/graphql/gql.ts +12 -4
  87. package/src/lib/plugins/openapi/graphql/graphql.ts +66 -43
  88. package/src/lib/plugins/openapi/index.tsx +125 -67
  89. package/src/lib/plugins/openapi/interfaces.ts +1 -0
  90. package/src/lib/util/joinUrl.test.ts +62 -0
  91. package/src/lib/util/joinUrl.ts +1 -1
  92. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  93. package/lib/OperationList-DH-zIgtq.js.map +0 -1
  94. package/lib/Route-DJ0ZlVq1.js +0 -35
  95. package/lib/Route-DJ0ZlVq1.js.map +0 -1
  96. package/lib/StaggeredRender-DgsamH_G.js +0 -17
  97. package/lib/StaggeredRender-DgsamH_G.js.map +0 -1
  98. package/lib/SyntaxHighlight-C1w1QPdY.js.map +0 -1
  99. package/lib/index-Bn6Lc9tq.js +0 -9
  100. package/lib/index-Bn6Lc9tq.js.map +0 -1
  101. package/lib/index-DmqsUPcm.js.map +0 -1
  102. package/lib/joinUrl-BTy9bvoK.js.map +0 -1
  103. package/lib/useScrollToAnchor-Bl6mz9_x.js.map +0 -1
@@ -1,10 +1,10 @@
1
- var Jo = Object.defineProperty;
1
+ var Ho = Object.defineProperty;
2
2
  var br = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Yo = (t, e, n) => e in t ? Jo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var F = (t, e, n) => Yo(t, typeof e != "symbol" ? e + "" : e, n), Ti = (t, e, n) => e.has(t) || br("Cannot " + n);
7
- var f = (t, e, n) => (Ti(t, e, "read from private field"), n ? n.call(t) : e.get(t)), q = (t, e, n) => e.has(t) ? br("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, i) => (Ti(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), R = (t, e, n) => (Ti(t, e, "access private method"), n);
5
+ var Wo = (t, e, n) => e in t ? Ho(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var F = (t, e, n) => Wo(t, typeof e != "symbol" ? e + "" : e, n), Ei = (t, e, n) => e.has(t) || br("Cannot " + n);
7
+ var f = (t, e, n) => (Ei(t, e, "read from private field"), n ? n.call(t) : e.get(t)), q = (t, e, n) => e.has(t) ? br("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, i) => (Ei(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), R = (t, e, n) => (Ei(t, e, "access private method"), n);
8
8
  var Nn = (t, e, n, i) => ({
9
9
  set _(r) {
10
10
  M(t, e, r, n);
@@ -13,11 +13,11 @@ var Nn = (t, e, n, i) => ({
13
13
  return f(t, e, i);
14
14
  }
15
15
  });
16
- import { G as w, T as Rs, i as Yn, a as As, d as Xo, b as Zo, c as Ye, e as C, f as Zi, K as p, O as Re, L as ea, g as B, h as pe, j as nt, k as ge, l as Y, m as ft, p as ce, n as dt, o as ta, t as Cs, q as na, r as ia, s as U, u as Ce, v as ht, w as Vt, x as it, y as Fe, z as he, A as gn, B as ks, D as qt, E as ze, F as We, H as Tn, I as ra, J as Vn, M as xs, N as pt, P as Ds, Q as Er, R as sa, S as St, U as ui, V as Kt, W as mn, X as oa, Y as Ls, Z as aa, _ as ua, $ as Ct, a0 as rn, a1 as qn, a2 as ca, C as la, a3 as fa, a4 as da, a5 as ha } from "./circular-Dgpd6AN-.js";
17
- import { a as pa } from "./index-LNp6rxyU.js";
16
+ import { G as w, T as Rs, i as Yn, a as As, d as Jo, b as Yo, c as Ye, e as C, f as Zi, K as p, O as Re, L as Xo, g as B, h as pe, j as nt, k as ge, l as Y, m as ft, p as ce, n as dt, o as Zo, t as Cs, q as ea, r as ta, s as U, u as Ce, v as ht, w as Vt, x as it, y as Fe, z as he, A as gn, B as ks, D as qt, E as ze, F as We, H as En, I as na, J as Vn, M as xs, N as pt, P as Ds, Q as Tr, R as ia, S as St, U as ui, V as Kt, W as mn, X as ra, Y as Ls, Z as sa, _ as oa, $ as Ct, a0 as rn, a1 as qn, a2 as aa, C as ua, a3 as ca, a4 as la, a5 as fa } from "./circular-Dgpd6AN-.js";
17
+ import { a as da } from "./index-CjJS0l4l.js";
18
18
  import { traverse as Ot } from "./post-processors/traverse.js";
19
- import { g as ga } from "./_commonjsHelpers-BkfeUUK-.js";
20
- function ma(t, e) {
19
+ import { g as ha } from "./_commonjsHelpers-BkfeUUK-.js";
20
+ function pa(t, e) {
21
21
  for (var n = 0; n < e.length; n++) {
22
22
  const i = e[n];
23
23
  if (typeof i != "string" && !Array.isArray(i)) {
@@ -33,11 +33,11 @@ function ma(t, e) {
33
33
  }
34
34
  return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
35
35
  }
36
- const ya = /* @__PURE__ */ new WeakMap(), wi = Symbol("ENVELOP_IS_INTROSPECTION");
37
- function ba(t) {
36
+ const ga = /* @__PURE__ */ new WeakMap(), wi = Symbol("ENVELOP_IS_INTROSPECTION");
37
+ function ma(t) {
38
38
  return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
39
39
  }
40
- function Ea(t) {
40
+ function ya(t) {
41
41
  return t.length === 1 ? t[0] : {
42
42
  schema: t[0],
43
43
  document: t[1],
@@ -49,7 +49,7 @@ function Ea(t) {
49
49
  subscribeFieldResolver: t[7]
50
50
  };
51
51
  }
52
- const Tr = (t) => (...e) => t(Ea(e));
52
+ const Er = (t) => (...e) => t(ya(e));
53
53
  function wr(t, e) {
54
54
  const n = t[Symbol.asyncIterator]();
55
55
  async function i(s) {
@@ -88,7 +88,7 @@ function wr(t, e) {
88
88
  };
89
89
  return r;
90
90
  }
91
- function Ta(t) {
91
+ function ba(t) {
92
92
  return t.length === 1 ? t[0] : {
93
93
  schema: t[0],
94
94
  document: t[1],
@@ -100,7 +100,7 @@ function Ta(t) {
100
100
  typeResolver: t[7]
101
101
  };
102
102
  }
103
- const Sr = (t) => (...e) => t(Ta(e));
103
+ const Sr = (t) => (...e) => t(ba(e));
104
104
  function Je(t) {
105
105
  return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
106
106
  }
@@ -139,7 +139,7 @@ function vr(t, e) {
139
139
  };
140
140
  return r;
141
141
  }
142
- function wa(t, e) {
142
+ function Ta(t, e) {
143
143
  const n = t[Symbol.asyncIterator](), i = {
144
144
  [Symbol.asyncIterator]() {
145
145
  return i;
@@ -169,15 +169,15 @@ function wa(t, e) {
169
169
  function Fn(t) {
170
170
  throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
171
171
  }
172
- function Sa({ plugins: t }) {
172
+ function Ea({ plugins: t }) {
173
173
  let e = null, n = !1;
174
174
  const i = () => Fn("parse"), r = () => Fn("validate"), s = () => Fn("execute"), o = () => Fn("subscribe"), a = (S, A = -1) => {
175
175
  if (e !== S && (e = S, n))
176
176
  for (const [O, m] of t.entries())
177
177
  O !== A && m.onSchemaChange && m.onSchemaChange({
178
178
  schema: e,
179
- replaceSchema: (T) => {
180
- a(T, O);
179
+ replaceSchema: (E) => {
180
+ a(E, O);
181
181
  }
182
182
  });
183
183
  }, u = [];
@@ -200,8 +200,8 @@ function Sa({ plugins: t }) {
200
200
  execute: [],
201
201
  context: []
202
202
  };
203
- for (const { onContextBuilding: S, onExecute: A, onParse: O, onSubscribe: m, onValidate: T, onEnveloped: E } of t)
204
- E && c.init.push(E), S && c.context.push(S), A && c.execute.push(A), O && c.parse.push(O), m && c.subscribe.push(m), T && c.validate.push(T);
203
+ for (const { onContextBuilding: S, onExecute: A, onParse: O, onSubscribe: m, onValidate: E, onEnveloped: T } of t)
204
+ T && c.init.push(T), S && c.context.push(S), A && c.execute.push(A), O && c.parse.push(O), m && c.subscribe.push(m), E && c.validate.push(E);
205
205
  const l = (S) => {
206
206
  for (const [A, O] of c.init.entries())
207
207
  O({
@@ -212,18 +212,18 @@ function Sa({ plugins: t }) {
212
212
  setSchema: (m) => a(m, A)
213
213
  });
214
214
  }, h = c.parse.length ? (S) => (A, O) => {
215
- let m = null, T = i;
216
- const E = S, k = [];
215
+ let m = null, E = i;
216
+ const T = S, k = [];
217
217
  for (const P of c.parse) {
218
218
  const N = P({
219
- context: E,
219
+ context: T,
220
220
  extendContext: (x) => {
221
- Object.assign(E, x);
221
+ Object.assign(T, x);
222
222
  },
223
223
  params: { source: A, options: O },
224
- parseFn: T,
224
+ parseFn: E,
225
225
  setParseFn: (x) => {
226
- T = x;
226
+ E = x;
227
227
  },
228
228
  setParsedDocument: (x) => {
229
229
  m = x;
@@ -233,15 +233,15 @@ function Sa({ plugins: t }) {
233
233
  }
234
234
  if (m === null)
235
235
  try {
236
- m = T(A, O);
236
+ m = E(A, O);
237
237
  } catch (P) {
238
238
  m = P;
239
239
  }
240
240
  for (const P of k)
241
241
  P({
242
- context: E,
242
+ context: T,
243
243
  extendContext: (N) => {
244
- Object.assign(E, N);
244
+ Object.assign(T, N);
245
245
  },
246
246
  replaceParseResult: (N) => {
247
247
  m = N;
@@ -252,12 +252,12 @@ function Sa({ plugins: t }) {
252
252
  throw new Error("Failed to parse document.");
253
253
  if (m instanceof Error)
254
254
  throw m;
255
- return ya.set(m, A.toString()), m;
256
- } : () => i, d = c.validate.length ? (S) => (A, O, m, T, E) => {
255
+ return ga.set(m, A.toString()), m;
256
+ } : () => i, d = c.validate.length ? (S) => (A, O, m, E, T) => {
257
257
  let k = m ? [...m] : void 0, P = r, N = null;
258
258
  const x = S, J = [];
259
259
  for (const le of c.validate) {
260
- const Ee = le({
260
+ const Te = le({
261
261
  context: x,
262
262
  extendContext: (z) => {
263
263
  Object.assign(x, z);
@@ -266,8 +266,8 @@ function Sa({ plugins: t }) {
266
266
  schema: A,
267
267
  documentAST: O,
268
268
  rules: k,
269
- typeInfo: T,
270
- options: E
269
+ typeInfo: E,
270
+ options: T
271
271
  },
272
272
  validateFn: P,
273
273
  addValidationRule: (z) => {
@@ -280,9 +280,9 @@ function Sa({ plugins: t }) {
280
280
  N = z;
281
281
  }
282
282
  });
283
- Ee && J.push(Ee);
283
+ Te && J.push(Te);
284
284
  }
285
- if (N || (N = P(A, O, k, T, E)), !N)
285
+ if (N || (N = P(A, O, k, E, T)), !N)
286
286
  return;
287
287
  const $e = N.length === 0;
288
288
  for (const le of J)
@@ -290,11 +290,11 @@ function Sa({ plugins: t }) {
290
290
  valid: $e,
291
291
  result: N,
292
292
  context: x,
293
- extendContext: (Ee) => {
294
- Object.assign(x, Ee);
293
+ extendContext: (Te) => {
294
+ Object.assign(x, Te);
295
295
  },
296
- setResult: (Ee) => {
297
- N = Ee;
296
+ setResult: (Te) => {
297
+ N = Te;
298
298
  }
299
299
  });
300
300
  return N;
@@ -302,44 +302,44 @@ function Sa({ plugins: t }) {
302
302
  const O = [], m = S;
303
303
  A && Object.assign(m, A);
304
304
  try {
305
- let T = !1;
306
- for (const E of c.context) {
307
- const k = await E({
305
+ let E = !1;
306
+ for (const T of c.context) {
307
+ const k = await T({
308
308
  context: m,
309
309
  extendContext: (P) => {
310
310
  Object.assign(m, P);
311
311
  },
312
312
  breakContextBuilding: () => {
313
- T = !0;
313
+ E = !0;
314
314
  }
315
315
  });
316
- if (typeof k == "function" && O.push(k), T === !0)
316
+ if (typeof k == "function" && O.push(k), E === !0)
317
317
  break;
318
318
  }
319
- for (const E of O)
320
- E({
319
+ for (const T of O)
320
+ T({
321
321
  context: m,
322
322
  extendContext: (k) => {
323
323
  Object.assign(m, k);
324
324
  }
325
325
  });
326
326
  return m;
327
- } catch (T) {
328
- let E = T;
327
+ } catch (E) {
328
+ let T = E;
329
329
  for (const k of u)
330
330
  k({
331
331
  context: m,
332
- error: E,
332
+ error: T,
333
333
  setError: (P) => {
334
- E = P;
334
+ T = P;
335
335
  }
336
336
  });
337
- throw E;
337
+ throw T;
338
338
  }
339
- } : (S) => (A) => (A && Object.assign(S, A), S), y = c.subscribe.length, v = Tr(y ? async (S) => {
339
+ } : (S) => (A) => (A && Object.assign(S, A), S), y = c.subscribe.length, v = Er(y ? async (S) => {
340
340
  let A = o;
341
- const O = [], m = [], T = S.contextValue || {};
342
- let E;
341
+ const O = [], m = [], E = S.contextValue || {};
342
+ let T;
343
343
  for (const N of c.subscribe) {
344
344
  const x = await N({
345
345
  subscribeFn: A,
@@ -347,35 +347,35 @@ function Sa({ plugins: t }) {
347
347
  A = J;
348
348
  },
349
349
  extendContext: (J) => {
350
- Object.assign(T, J);
350
+ Object.assign(E, J);
351
351
  },
352
352
  args: S,
353
353
  setResultAndStopExecution: (J) => {
354
- E = J;
354
+ T = J;
355
355
  }
356
356
  });
357
- if (x && (x.onSubscribeResult && O.push(x.onSubscribeResult), x.onSubscribeError && m.push(x.onSubscribeError)), E !== void 0)
357
+ if (x && (x.onSubscribeResult && O.push(x.onSubscribeResult), x.onSubscribeError && m.push(x.onSubscribeError)), T !== void 0)
358
358
  break;
359
359
  }
360
- if (E === void 0 && (E = await A({
360
+ if (T === void 0 && (T = await A({
361
361
  ...S,
362
- contextValue: T
362
+ contextValue: E
363
363
  // Casted for GraphQL.js 15 compatibility
364
364
  // Can be removed once we drop support for GraphQL.js 15
365
- })), !E)
365
+ })), !T)
366
366
  return;
367
367
  const k = [], P = [];
368
368
  for (const N of O) {
369
369
  const x = N({
370
370
  args: S,
371
- result: E,
371
+ result: T,
372
372
  setResult: (J) => {
373
- E = J;
373
+ T = J;
374
374
  }
375
375
  });
376
376
  x && (x.onNext && k.push(x.onNext), x.onEnd && P.push(x.onEnd));
377
377
  }
378
- return k.length && Je(E) && (E = wr(E, async (N) => {
378
+ return k.length && Je(T) && (T = wr(T, async (N) => {
379
379
  for (const x of k)
380
380
  await x({
381
381
  args: S,
@@ -383,10 +383,10 @@ function Sa({ plugins: t }) {
383
383
  setResult: (J) => N = J
384
384
  });
385
385
  return N;
386
- })), P.length && Je(E) && (E = vr(E, () => {
386
+ })), P.length && Je(T) && (T = vr(T, () => {
387
387
  for (const N of P)
388
388
  N();
389
- })), m.length && Je(E) && (E = wa(E, (N) => {
389
+ })), m.length && Je(T) && (T = Ta(T, (N) => {
390
390
  let x = N;
391
391
  for (const J of m)
392
392
  J({
@@ -396,10 +396,10 @@ function Sa({ plugins: t }) {
396
396
  }
397
397
  });
398
398
  throw x;
399
- })), E;
399
+ })), T;
400
400
  } : o), $ = c.execute.length, _ = Sr($ ? async (S) => {
401
401
  let A = s, O;
402
- const m = [], T = S.contextValue || {};
402
+ const m = [], E = S.contextValue || {};
403
403
  for (const P of c.execute) {
404
404
  const N = await P({
405
405
  executeFn: A,
@@ -411,7 +411,7 @@ function Sa({ plugins: t }) {
411
411
  },
412
412
  extendContext: (x) => {
413
413
  if (typeof x == "object")
414
- Object.assign(T, x);
414
+ Object.assign(E, x);
415
415
  else
416
416
  throw new Error(`Invalid context extension provided! Expected "object", got: "${JSON.stringify(x)}" (${typeof x})`);
417
417
  },
@@ -422,9 +422,9 @@ function Sa({ plugins: t }) {
422
422
  }
423
423
  O === void 0 && (O = await A({
424
424
  ...S,
425
- contextValue: T
425
+ contextValue: E
426
426
  }));
427
- const E = [], k = [];
427
+ const T = [], k = [];
428
428
  for (const P of m) {
429
429
  const N = await P({
430
430
  args: S,
@@ -433,10 +433,10 @@ function Sa({ plugins: t }) {
433
433
  O = x;
434
434
  }
435
435
  });
436
- N && (N.onNext && E.push(N.onNext), N.onEnd && k.push(N.onEnd));
436
+ N && (N.onNext && T.push(N.onNext), N.onEnd && k.push(N.onEnd));
437
437
  }
438
- return E.length && Je(O) && (O = wr(O, async (P) => {
439
- for (const N of E)
438
+ return T.length && Je(O) && (O = wr(O, async (P) => {
439
+ for (const N of T)
440
440
  await N({
441
441
  args: S,
442
442
  result: P,
@@ -468,11 +468,11 @@ function Sa({ plugins: t }) {
468
468
  contextFactory: g
469
469
  };
470
470
  }
471
- function Ia(t) {
471
+ function wa(t) {
472
472
  return t != null;
473
473
  }
474
- function va(t) {
475
- const e = t.plugins.filter(Ia), n = Sa({
474
+ function Sa(t) {
475
+ const e = t.plugins.filter(wa), n = Ea({
476
476
  plugins: e
477
477
  }), i = (r = {}) => {
478
478
  const s = n;
@@ -489,14 +489,14 @@ function va(t) {
489
489
  }
490
490
  const _r = {
491
491
  logFn: console.log
492
- }, _a = (t = _r) => {
492
+ }, Ia = (t = _r) => {
493
493
  const e = {
494
494
  DEFAULT_OPTIONS: _r,
495
495
  ...t
496
496
  };
497
497
  return {
498
498
  onParse({ extendContext: n, params: i }) {
499
- e.skipIntrospection && ba(i.source) && n({
499
+ e.skipIntrospection && ma(i.source) && n({
500
500
  [wi]: !0
501
501
  });
502
502
  },
@@ -517,14 +517,14 @@ const _r = {
517
517
  };
518
518
  }
519
519
  };
520
- }, Oa = "Unexpected error.";
521
- function Na(t) {
520
+ }, va = "Unexpected error.";
521
+ function _a(t) {
522
522
  return t instanceof Error && t.name === "GraphQLError";
523
523
  }
524
524
  function $s(t) {
525
- return Na(t) ? t.originalError != null ? $s(t.originalError) : !0 : !1;
525
+ return _a(t) ? t.originalError != null ? $s(t.originalError) : !0 : !1;
526
526
  }
527
- function Fa(t, e, n) {
527
+ function Oa(t, e, n) {
528
528
  const i = new Error(t);
529
529
  if (i.name = "GraphQLError", n) {
530
530
  const r = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
@@ -543,13 +543,13 @@ function Fa(t, e, n) {
543
543
  }
544
544
  }), i;
545
545
  }
546
- const Ra = (t) => (e, n) => $s(e) ? e : Fa(n, e, t);
546
+ const Na = (t) => (e, n) => $s(e) ? e : Oa(n, e, t);
547
547
  var Ss, Is;
548
- const Aa = ((Is = (Ss = globalThis.process) == null ? void 0 : Ss.env) == null ? void 0 : Is.NODE_ENV) === "development", Ca = Ra(Aa), ka = (t, e) => ({ result: n, setResult: i }) => {
548
+ const Fa = ((Is = (Ss = globalThis.process) == null ? void 0 : Ss.env) == null ? void 0 : Is.NODE_ENV) === "development", Ra = Na(Fa), Aa = (t, e) => ({ result: n, setResult: i }) => {
549
549
  n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
550
550
  };
551
- function xa(t) {
552
- const e = (t == null ? void 0 : t.maskError) ?? Ca, n = (t == null ? void 0 : t.errorMessage) || Oa, i = ka(e, n);
551
+ function Ca(t) {
552
+ const e = (t == null ? void 0 : t.maskError) ?? Ra, n = (t == null ? void 0 : t.errorMessage) || va, i = Aa(e, n);
553
553
  return {
554
554
  onPluginInit(r) {
555
555
  r.registerContextErrorHandler(({ error: s, setError: o }) => {
@@ -575,11 +575,11 @@ function xa(t) {
575
575
  }
576
576
  };
577
577
  }
578
- const Da = (t) => ({
578
+ const ka = (t) => ({
579
579
  async onContextBuilding({ context: e, extendContext: n }) {
580
580
  n(await t(e));
581
581
  }
582
- }), La = (t) => ({
582
+ }), xa = (t) => ({
583
583
  onExecute: ({ setExecuteFn: e }) => {
584
584
  t.execute && e(t.execute);
585
585
  },
@@ -599,7 +599,7 @@ const Da = (t) => ({
599
599
  patch: 0,
600
600
  preReleaseTag: null
601
601
  });
602
- function $a(t) {
602
+ function Da(t) {
603
603
  return typeof (t == null ? void 0 : t.then) == "function";
604
604
  }
605
605
  function ae(t, e, n) {
@@ -616,7 +616,7 @@ var b;
616
616
  (function(t) {
617
617
  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";
618
618
  })(b || (b = {}));
619
- class Pa {
619
+ class La {
620
620
  /**
621
621
  * The previously focused non-ignored token.
622
622
  */
@@ -653,14 +653,14 @@ class Pa {
653
653
  if (e.next)
654
654
  e = e.next;
655
655
  else {
656
- const n = ja(this, e.end);
656
+ const n = Pa(this, e.end);
657
657
  e.next = n, n.prev = e, e = n;
658
658
  }
659
659
  while (e.kind === b.COMMENT);
660
660
  return e;
661
661
  }
662
662
  }
663
- function Ma(t) {
663
+ function $a(t) {
664
664
  return t === b.BANG || t === b.DOLLAR || t === b.AMP || t === b.PAREN_L || t === b.PAREN_R || t === b.SPREAD || t === b.COLON || t === b.EQUALS || t === b.AT || t === b.BRACKET_L || t === b.BRACKET_R || t === b.BRACE_L || t === b.PIPE || t === b.BRACE_R;
665
665
  }
666
666
  function zt(t) {
@@ -689,7 +689,7 @@ function Z(t, e, n, i, r) {
689
689
  const s = t.line, o = 1 + n - t.lineStart;
690
690
  return new Rs(e, n, i, s, o, r);
691
691
  }
692
- function ja(t, e) {
692
+ function Pa(t, e) {
693
693
  const n = t.source.body, i = n.length;
694
694
  let r = e;
695
695
  for (; r < i; ) {
@@ -730,7 +730,7 @@ function ja(t, e) {
730
730
  continue;
731
731
  // Comment
732
732
  case 35:
733
- return Ua(t, r);
733
+ return Ma(t, r);
734
734
  // Token ::
735
735
  // - Punctuator
736
736
  // - Name
@@ -771,12 +771,12 @@ function ja(t, e) {
771
771
  return Z(t, b.BRACE_R, r, r + 1);
772
772
  // StringValue
773
773
  case 34:
774
- return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Ka(t, r) : qa(t, r);
774
+ return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Ga(t, r) : Ua(t, r);
775
775
  }
776
776
  if (Yn(s) || s === 45)
777
- return Va(t, r, s);
777
+ return ja(t, r, s);
778
778
  if (As(s))
779
- return za(t, r);
779
+ return Qa(t, r);
780
780
  throw ae(
781
781
  t.source,
782
782
  r,
@@ -785,7 +785,7 @@ function ja(t, e) {
785
785
  }
786
786
  return Z(t, b.EOF, i, i);
787
787
  }
788
- function Ua(t, e) {
788
+ function Ma(t, e) {
789
789
  const n = t.source.body, i = n.length;
790
790
  let r = e + 1;
791
791
  for (; r < i; ) {
@@ -807,7 +807,7 @@ function Ua(t, e) {
807
807
  n.slice(e + 1, r)
808
808
  );
809
809
  }
810
- function Va(t, e, n) {
810
+ function ja(t, e, n) {
811
811
  const i = t.source.body;
812
812
  let r = e, s = n, o = !1;
813
813
  if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
@@ -855,7 +855,7 @@ function Si(t, e, n) {
855
855
  ++r;
856
856
  return r;
857
857
  }
858
- function qa(t, e) {
858
+ function Ua(t, e) {
859
859
  const n = t.source.body, i = n.length;
860
860
  let r = e + 1, s = r, o = "";
861
861
  for (; r < i; ) {
@@ -864,7 +864,7 @@ function qa(t, e) {
864
864
  return o += n.slice(s, r), Z(t, b.STRING, e, r + 1, o);
865
865
  if (a === 92) {
866
866
  o += n.slice(s, r);
867
- const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Ba(t, r) : Ga(t, r) : Qa(t, r);
867
+ const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Va(t, r) : qa(t, r) : Ba(t, r);
868
868
  o += u.value, r += u.size, s = r;
869
869
  continue;
870
870
  }
@@ -886,7 +886,7 @@ function qa(t, e) {
886
886
  }
887
887
  throw ae(t.source, r, "Unterminated string.");
888
888
  }
889
- function Ba(t, e) {
889
+ function Va(t, e) {
890
890
  const n = t.source.body;
891
891
  let i = 0, r = 3;
892
892
  for (; r < 12; ) {
@@ -911,7 +911,7 @@ function Ba(t, e) {
911
911
  )}".`
912
912
  );
913
913
  }
914
- function Ga(t, e) {
914
+ function qa(t, e) {
915
915
  const n = t.source.body, i = Or(n, e + 2);
916
916
  if (zt(i))
917
917
  return {
@@ -938,7 +938,7 @@ function Or(t, e) {
938
938
  function sn(t) {
939
939
  return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
940
940
  }
941
- function Qa(t, e) {
941
+ function Ba(t, e) {
942
942
  const n = t.source.body;
943
943
  switch (n.charCodeAt(e + 1)) {
944
944
  case 34:
@@ -992,7 +992,7 @@ function Qa(t, e) {
992
992
  )}".`
993
993
  );
994
994
  }
995
- function Ka(t, e) {
995
+ function Ga(t, e) {
996
996
  const n = t.source.body, i = n.length;
997
997
  let r = t.lineStart, s = e + 3, o = s, a = "";
998
998
  const u = [];
@@ -1006,7 +1006,7 @@ function Ka(t, e) {
1006
1006
  e,
1007
1007
  s + 3,
1008
1008
  // Return a string of the lines joined with U+000A.
1009
- Xo(u).join(`
1009
+ Jo(u).join(`
1010
1010
  `)
1011
1011
  );
1012
1012
  return t.line += u.length - 1, t.lineStart = r, l;
@@ -1035,12 +1035,12 @@ function Ka(t, e) {
1035
1035
  }
1036
1036
  throw ae(t.source, s, "Unterminated string.");
1037
1037
  }
1038
- function za(t, e) {
1038
+ function Qa(t, e) {
1039
1039
  const n = t.source.body, i = n.length;
1040
1040
  let r = e + 1;
1041
1041
  for (; r < i; ) {
1042
1042
  const s = n.charCodeAt(r);
1043
- if (Zo(s))
1043
+ if (Yo(s))
1044
1044
  ++r;
1045
1045
  else
1046
1046
  break;
@@ -1070,20 +1070,20 @@ class Us {
1070
1070
  return "Source";
1071
1071
  }
1072
1072
  }
1073
- function Ha(t) {
1073
+ function Ka(t) {
1074
1074
  return Zi(t, Us);
1075
1075
  }
1076
- function Wa(t, e) {
1077
- const n = new Ja(t, e), i = n.parseDocument();
1076
+ function za(t, e) {
1077
+ const n = new Ha(t, e), i = n.parseDocument();
1078
1078
  return Object.defineProperty(i, "tokenCount", {
1079
1079
  enumerable: !1,
1080
1080
  value: n.tokenCount
1081
1081
  }), i;
1082
1082
  }
1083
- class Ja {
1083
+ class Ha {
1084
1084
  constructor(e, n = {}) {
1085
- const i = Ha(e) ? e : new Us(e);
1086
- this._lexer = new Pa(i), this._options = n, this._tokenCounter = 0;
1085
+ const i = Ka(e) ? e : new Us(e);
1086
+ this._lexer = new La(i), this._options = n, this._tokenCounter = 0;
1087
1087
  }
1088
1088
  get tokenCount() {
1089
1089
  return this._tokenCounter;
@@ -2053,7 +2053,7 @@ class Ja {
2053
2053
  * given parsed object.
2054
2054
  */
2055
2055
  node(e, n) {
2056
- return this._options.noLocation !== !0 && (n.loc = new ea(
2056
+ return this._options.noLocation !== !0 && (n.loc = new Xo(
2057
2057
  e,
2058
2058
  this._lexer.lastToken,
2059
2059
  this._lexer.source
@@ -2189,7 +2189,7 @@ function Rn(t) {
2189
2189
  return Vs(t.kind) + (e != null ? ` "${e}"` : "");
2190
2190
  }
2191
2191
  function Vs(t) {
2192
- return Ma(t) ? `"${t}"` : t;
2192
+ return $a(t) ? `"${t}"` : t;
2193
2193
  }
2194
2194
  function Li(t, e) {
2195
2195
  return t === e ? !0 : B(t) && B(e) || pe(t) && pe(e) ? Li(t.ofType, e.ofType) : !1;
@@ -2368,7 +2368,7 @@ const Ii = 2147483647, vi = -2147483648, wn = new ft({
2368
2368
  );
2369
2369
  return t.value;
2370
2370
  }
2371
- }), Ya = Object.freeze([
2371
+ }), Wa = Object.freeze([
2372
2372
  G,
2373
2373
  wn,
2374
2374
  li,
@@ -2393,12 +2393,12 @@ function qs(t) {
2393
2393
  class st {
2394
2394
  constructor(e) {
2395
2395
  var n, i;
2396
- this.name = ta(e.name), this.description = e.description, this.locations = e.locations, this.isRepeatable = (n = e.isRepeatable) !== null && n !== void 0 ? n : !1, this.extensions = Cs(e.extensions), this.astNode = e.astNode, Array.isArray(e.locations) || Ye(!1, `@${e.name} locations must be an Array.`);
2396
+ this.name = Zo(e.name), this.description = e.description, this.locations = e.locations, this.isRepeatable = (n = e.isRepeatable) !== null && n !== void 0 ? n : !1, this.extensions = Cs(e.extensions), this.astNode = e.astNode, Array.isArray(e.locations) || Ye(!1, `@${e.name} locations must be an Array.`);
2397
2397
  const r = (i = e.args) !== null && i !== void 0 ? i : {};
2398
2398
  dt(r) && !Array.isArray(r) || Ye(
2399
2399
  !1,
2400
2400
  `@${e.name} args must be an object with argument names as keys.`
2401
- ), this.args = na(r);
2401
+ ), this.args = ea(r);
2402
2402
  }
2403
2403
  get [Symbol.toStringTag]() {
2404
2404
  return "GraphQLDirective";
@@ -2408,7 +2408,7 @@ class st {
2408
2408
  name: this.name,
2409
2409
  description: this.description,
2410
2410
  locations: this.locations,
2411
- args: ia(this.args),
2411
+ args: ta(this.args),
2412
2412
  isRepeatable: this.isRepeatable,
2413
2413
  extensions: this.extensions,
2414
2414
  astNode: this.astNode
@@ -2449,7 +2449,7 @@ const er = new st({
2449
2449
  description: "Skipped when true."
2450
2450
  }
2451
2451
  }
2452
- }), Xa = "No longer supported", Bs = new st({
2452
+ }), Ja = "No longer supported", Bs = new st({
2453
2453
  name: "deprecated",
2454
2454
  description: "Marks an element of a GraphQL schema as no longer supported.",
2455
2455
  locations: [
@@ -2462,10 +2462,10 @@ const er = new st({
2462
2462
  reason: {
2463
2463
  type: G,
2464
2464
  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/).",
2465
- defaultValue: Xa
2465
+ defaultValue: Ja
2466
2466
  }
2467
2467
  }
2468
- }), Za = new st({
2468
+ }), Ya = new st({
2469
2469
  name: "specifiedBy",
2470
2470
  description: "Exposes a URL that specifies the behavior of this scalar.",
2471
2471
  locations: [D.SCALAR],
@@ -2475,7 +2475,7 @@ const er = new st({
2475
2475
  description: "The URL that specifies the behavior of this scalar."
2476
2476
  }
2477
2477
  }
2478
- }), eu = new st({
2478
+ }), Xa = new st({
2479
2479
  name: "oneOf",
2480
2480
  description: "Indicates exactly one field must be supplied and this field must not be `null`.",
2481
2481
  locations: [D.INPUT_OBJECT],
@@ -2484,8 +2484,8 @@ const er = new st({
2484
2484
  er,
2485
2485
  tr,
2486
2486
  Bs,
2487
- Za,
2488
- eu
2487
+ Ya,
2488
+ Xa
2489
2489
  ]);
2490
2490
  function Gs(t) {
2491
2491
  return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
@@ -3028,7 +3028,7 @@ function Ys(t) {
3028
3028
  function Xs(t) {
3029
3029
  return Zi(t, ir);
3030
3030
  }
3031
- function tu(t) {
3031
+ function Za(t) {
3032
3032
  if (!Xs(t))
3033
3033
  throw new Error(`Expected ${C(t)} to be a GraphQL schema.`);
3034
3034
  return t;
@@ -3182,22 +3182,22 @@ function Ke(t, e) {
3182
3182
  }
3183
3183
  return e;
3184
3184
  }
3185
- function nu(t) {
3186
- if (tu(t), t.__validationErrors)
3185
+ function eu(t) {
3186
+ if (Za(t), t.__validationErrors)
3187
3187
  return t.__validationErrors;
3188
- const e = new iu(t);
3189
- ru(e), su(e), ou(e);
3188
+ const e = new tu(t);
3189
+ nu(e), iu(e), ru(e);
3190
3190
  const n = e.getErrors();
3191
3191
  return t.__validationErrors = n, n;
3192
3192
  }
3193
3193
  function Zs(t) {
3194
- const e = nu(t);
3194
+ const e = eu(t);
3195
3195
  if (e.length !== 0)
3196
3196
  throw new Error(e.map((n) => n.message).join(`
3197
3197
 
3198
3198
  `));
3199
3199
  }
3200
- class iu {
3200
+ class tu {
3201
3201
  constructor(e) {
3202
3202
  this._errors = [], this.schema = e;
3203
3203
  }
@@ -3213,7 +3213,7 @@ class iu {
3213
3213
  return this._errors;
3214
3214
  }
3215
3215
  }
3216
- function ru(t) {
3216
+ function nu(t) {
3217
3217
  const e = t.schema, n = e.getQueryType();
3218
3218
  if (!n)
3219
3219
  t.reportError("Query root type must be provided.", e.astNode);
@@ -3265,7 +3265,7 @@ function _i(t, e) {
3265
3265
  }
3266
3266
  ).find((i) => i.operation === e)) === null || n === void 0 ? void 0 : n.type;
3267
3267
  }
3268
- function su(t) {
3268
+ function iu(t) {
3269
3269
  for (const n of t.schema.getDirectives()) {
3270
3270
  if (!qs(n)) {
3271
3271
  t.reportError(
@@ -3282,7 +3282,7 @@ function su(t) {
3282
3282
  if (vt(t, i), We(i.type) || t.reportError(
3283
3283
  `The type of @${n.name}(${i.name}:) must be Input Type but got: ${C(i.type)}.`,
3284
3284
  i.astNode
3285
- ), Tn(i) && i.deprecationReason != null) {
3285
+ ), En(i) && i.deprecationReason != null) {
3286
3286
  var e;
3287
3287
  t.reportError(
3288
3288
  `Required argument @${n.name}(${i.name}:) cannot be deprecated.`,
@@ -3300,17 +3300,17 @@ function vt(t, e) {
3300
3300
  e.astNode
3301
3301
  );
3302
3302
  }
3303
- function ou(t) {
3304
- const e = hu(t), n = t.schema.getTypeMap();
3303
+ function ru(t) {
3304
+ const e = fu(t), n = t.schema.getTypeMap();
3305
3305
  for (const i of Object.values(n)) {
3306
- if (!ra(i)) {
3306
+ if (!na(i)) {
3307
3307
  t.reportError(
3308
3308
  `Expected GraphQL named type but got: ${C(i)}.`,
3309
3309
  i.astNode
3310
3310
  );
3311
3311
  continue;
3312
3312
  }
3313
- Ys(i) || vt(t, i), Y(i) || ge(i) ? (Rr(t, i), Ar(t, i)) : qt(i) ? cu(t, i) : Vt(i) ? lu(t, i) : Ce(i) && (fu(t, i), e(i));
3313
+ Ys(i) || vt(t, i), Y(i) || ge(i) ? (Rr(t, i), Ar(t, i)) : qt(i) ? au(t, i) : Vt(i) ? uu(t, i) : Ce(i) && (cu(t, i), e(i));
3314
3314
  }
3315
3315
  }
3316
3316
  function Rr(t, e) {
@@ -3336,7 +3336,7 @@ function Rr(t, e) {
3336
3336
  (r = a.astNode) === null || r === void 0 ? void 0 : r.type
3337
3337
  );
3338
3338
  }
3339
- if (Tn(a) && a.deprecationReason != null) {
3339
+ if (En(a) && a.deprecationReason != null) {
3340
3340
  var s;
3341
3341
  t.reportError(
3342
3342
  `Required argument ${e.name}.${o.name}(${u}:) cannot be deprecated.`,
@@ -3373,10 +3373,10 @@ function Ar(t, e) {
3373
3373
  );
3374
3374
  continue;
3375
3375
  }
3376
- n[i.name] = !0, uu(t, e, i), au(t, e, i);
3376
+ n[i.name] = !0, ou(t, e, i), su(t, e, i);
3377
3377
  }
3378
3378
  }
3379
- function au(t, e, n) {
3379
+ function su(t, e, n) {
3380
3380
  const i = e.getFields();
3381
3381
  for (const u of Object.values(n.getFields())) {
3382
3382
  const c = u.name, l = i[c];
@@ -3419,14 +3419,14 @@ function au(t, e, n) {
3419
3419
  }
3420
3420
  for (const h of l.args) {
3421
3421
  const d = h.name;
3422
- !u.args.find((y) => y.name === d) && Tn(h) && t.reportError(
3422
+ !u.args.find((y) => y.name === d) && En(h) && t.reportError(
3423
3423
  `Object field ${e.name}.${c} includes required argument ${d} that is missing from the Interface field ${n.name}.${c}.`,
3424
3424
  [h.astNode, u.astNode]
3425
3425
  );
3426
3426
  }
3427
3427
  }
3428
3428
  }
3429
- function uu(t, e, n) {
3429
+ function ou(t, e, n) {
3430
3430
  const i = e.getInterfaces();
3431
3431
  for (const r of n.getInterfaces())
3432
3432
  i.includes(r) || t.reportError(
@@ -3437,7 +3437,7 @@ function uu(t, e, n) {
3437
3437
  ]
3438
3438
  );
3439
3439
  }
3440
- function cu(t, e) {
3440
+ function au(t, e) {
3441
3441
  const n = e.getTypes();
3442
3442
  n.length === 0 && t.reportError(
3443
3443
  `Union type ${e.name} must define one or more member types.`,
@@ -3458,7 +3458,7 @@ function cu(t, e) {
3458
3458
  );
3459
3459
  }
3460
3460
  }
3461
- function lu(t, e) {
3461
+ function uu(t, e) {
3462
3462
  const n = e.getValues();
3463
3463
  n.length === 0 && t.reportError(
3464
3464
  `Enum type ${e.name} must define one or more values.`,
@@ -3467,7 +3467,7 @@ function lu(t, e) {
3467
3467
  for (const i of n)
3468
3468
  vt(t, i);
3469
3469
  }
3470
- function fu(t, e) {
3470
+ function cu(t, e) {
3471
3471
  const n = Object.values(e.getFields());
3472
3472
  n.length === 0 && t.reportError(
3473
3473
  `Input Object type ${e.name} must define one or more fields.`,
@@ -3491,10 +3491,10 @@ function fu(t, e) {
3491
3491
  ]
3492
3492
  );
3493
3493
  }
3494
- e.isOneOf && du(e, s, t);
3494
+ e.isOneOf && lu(e, s, t);
3495
3495
  }
3496
3496
  }
3497
- function du(t, e, n) {
3497
+ function lu(t, e, n) {
3498
3498
  if (B(e.type)) {
3499
3499
  var i;
3500
3500
  n.reportError(
@@ -3507,7 +3507,7 @@ function du(t, e, n) {
3507
3507
  e.astNode
3508
3508
  );
3509
3509
  }
3510
- function hu(t) {
3510
+ function fu(t) {
3511
3511
  const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
3512
3512
  return r;
3513
3513
  function r(s) {
@@ -3574,7 +3574,7 @@ function Ie(t, e) {
3574
3574
  }
3575
3575
  class eo {
3576
3576
  constructor(e, n, i) {
3577
- this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? pu, n && (We(n) && this._inputTypeStack.push(n), pt(n) && this._parentTypeStack.push(n), Vn(n) && this._typeStack.push(n));
3577
+ this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? du, n && (We(n) && this._inputTypeStack.push(n), pt(n) && this._parentTypeStack.push(n), Vn(n) && this._typeStack.push(n));
3578
3578
  }
3579
3579
  get [Symbol.toStringTag]() {
3580
3580
  return "TypeInfo";
@@ -3713,7 +3713,7 @@ class eo {
3713
3713
  }
3714
3714
  }
3715
3715
  }
3716
- function pu(t, e, n) {
3716
+ function du(t, e, n) {
3717
3717
  const i = n.name.value;
3718
3718
  if (i === Xn.name && t.getQueryType() === e)
3719
3719
  return Xn;
@@ -3729,39 +3729,39 @@ function to(t, e) {
3729
3729
  enter(...n) {
3730
3730
  const i = n[0];
3731
3731
  t.enter(i);
3732
- const r = Er(e, i.kind).enter;
3732
+ const r = Tr(e, i.kind).enter;
3733
3733
  if (r) {
3734
3734
  const s = r.apply(e, n);
3735
- return s !== void 0 && (t.leave(i), sa(s) && t.enter(s)), s;
3735
+ return s !== void 0 && (t.leave(i), ia(s) && t.enter(s)), s;
3736
3736
  }
3737
3737
  },
3738
3738
  leave(...n) {
3739
- const i = n[0], r = Er(e, i.kind).leave;
3739
+ const i = n[0], r = Tr(e, i.kind).leave;
3740
3740
  let s;
3741
3741
  return r && (s = r.apply(e, n)), t.leave(i), s;
3742
3742
  }
3743
3743
  };
3744
3744
  }
3745
- function gu(t) {
3745
+ function hu(t) {
3746
3746
  return t.kind === p.OPERATION_DEFINITION || t.kind === p.FRAGMENT_DEFINITION;
3747
3747
  }
3748
- function mu(t) {
3748
+ function pu(t) {
3749
3749
  return t.kind === p.SCHEMA_DEFINITION || sr(t) || t.kind === p.DIRECTIVE_DEFINITION;
3750
3750
  }
3751
3751
  function sr(t) {
3752
3752
  return t.kind === p.SCALAR_TYPE_DEFINITION || t.kind === p.OBJECT_TYPE_DEFINITION || t.kind === p.INTERFACE_TYPE_DEFINITION || t.kind === p.UNION_TYPE_DEFINITION || t.kind === p.ENUM_TYPE_DEFINITION || t.kind === p.INPUT_OBJECT_TYPE_DEFINITION;
3753
3753
  }
3754
- function yu(t) {
3754
+ function gu(t) {
3755
3755
  return t.kind === p.SCHEMA_EXTENSION || no(t);
3756
3756
  }
3757
3757
  function no(t) {
3758
3758
  return t.kind === p.SCALAR_TYPE_EXTENSION || t.kind === p.OBJECT_TYPE_EXTENSION || t.kind === p.INTERFACE_TYPE_EXTENSION || t.kind === p.UNION_TYPE_EXTENSION || t.kind === p.ENUM_TYPE_EXTENSION || t.kind === p.INPUT_OBJECT_TYPE_EXTENSION;
3759
3759
  }
3760
- function bu(t) {
3760
+ function mu(t) {
3761
3761
  return {
3762
3762
  Document(e) {
3763
3763
  for (const n of e.definitions)
3764
- if (!gu(n)) {
3764
+ if (!hu(n)) {
3765
3765
  const i = n.kind === p.SCHEMA_DEFINITION || n.kind === p.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
3766
3766
  t.reportError(
3767
3767
  new w(`The ${i} definition is not executable.`, {
@@ -3773,7 +3773,7 @@ function bu(t) {
3773
3773
  }
3774
3774
  };
3775
3775
  }
3776
- function Eu(t) {
3776
+ function yu(t) {
3777
3777
  return {
3778
3778
  Field(e) {
3779
3779
  const n = t.getParentType();
@@ -3781,9 +3781,9 @@ function Eu(t) {
3781
3781
  const r = t.getSchema(), s = e.name.value;
3782
3782
  let o = St(
3783
3783
  "to use an inline fragment on",
3784
- Tu(r, n, s)
3784
+ bu(r, n, s)
3785
3785
  );
3786
- o === "" && (o = St(wu(n, s))), t.reportError(
3786
+ o === "" && (o = St(Tu(n, s))), t.reportError(
3787
3787
  new w(
3788
3788
  `Cannot query field "${s}" on type "${n.name}".` + o,
3789
3789
  {
@@ -3795,7 +3795,7 @@ function Eu(t) {
3795
3795
  }
3796
3796
  };
3797
3797
  }
3798
- function Tu(t, e, n) {
3798
+ function bu(t, e, n) {
3799
3799
  if (!nt(e))
3800
3800
  return [];
3801
3801
  const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ Object.create(null);
@@ -3812,14 +3812,14 @@ function Tu(t, e, n) {
3812
3812
  return u !== 0 ? u : ge(o) && t.isSubType(o, a) ? -1 : ge(a) && t.isSubType(a, o) ? 1 : ui(o.name, a.name);
3813
3813
  }).map((o) => o.name);
3814
3814
  }
3815
- function wu(t, e) {
3815
+ function Tu(t, e) {
3816
3816
  if (Y(t) || ge(t)) {
3817
3817
  const n = Object.keys(t.getFields());
3818
3818
  return Kt(e, n);
3819
3819
  }
3820
3820
  return [];
3821
3821
  }
3822
- function Su(t) {
3822
+ function Eu(t) {
3823
3823
  return {
3824
3824
  InlineFragment(e) {
3825
3825
  const n = e.typeCondition;
@@ -3854,10 +3854,10 @@ function Su(t) {
3854
3854
  }
3855
3855
  };
3856
3856
  }
3857
- function Iu(t) {
3857
+ function wu(t) {
3858
3858
  return {
3859
3859
  // eslint-disable-next-line new-cap
3860
- ...vu(t),
3860
+ ...Su(t),
3861
3861
  Argument(e) {
3862
3862
  const n = t.getArgument(), i = t.getFieldDef(), r = t.getParentType();
3863
3863
  if (!n && i && r) {
@@ -3874,7 +3874,7 @@ function Iu(t) {
3874
3874
  }
3875
3875
  };
3876
3876
  }
3877
- function vu(t) {
3877
+ function Su(t) {
3878
3878
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : vn;
3879
3879
  for (const o of i)
3880
3880
  e[o.name] = o.args.map((a) => a.name);
@@ -3907,7 +3907,7 @@ function vu(t) {
3907
3907
  }
3908
3908
  };
3909
3909
  }
3910
- function _u(t) {
3910
+ function Iu(t) {
3911
3911
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : vn;
3912
3912
  for (const s of i)
3913
3913
  e[s.name] = s.locations;
@@ -3925,7 +3925,7 @@ function _u(t) {
3925
3925
  );
3926
3926
  return;
3927
3927
  }
3928
- const d = Ou(c);
3928
+ const d = vu(c);
3929
3929
  d && !h.includes(d) && t.reportError(
3930
3930
  new w(
3931
3931
  `Directive "@${l}" may not be used on ${d}.`,
@@ -3937,11 +3937,11 @@ function _u(t) {
3937
3937
  }
3938
3938
  };
3939
3939
  }
3940
- function Ou(t) {
3940
+ function vu(t) {
3941
3941
  const e = t[t.length - 1];
3942
3942
  switch ("kind" in e || it(!1), e.kind) {
3943
3943
  case p.OPERATION_DEFINITION:
3944
- return Nu(e.operation);
3944
+ return _u(e.operation);
3945
3945
  case p.FIELD:
3946
3946
  return D.FIELD;
3947
3947
  case p.FRAGMENT_SPREAD:
@@ -3987,7 +3987,7 @@ function Ou(t) {
3987
3987
  it(!1, "Unexpected kind: " + C(e.kind));
3988
3988
  }
3989
3989
  }
3990
- function Nu(t) {
3990
+ function _u(t) {
3991
3991
  switch (t) {
3992
3992
  case Re.QUERY:
3993
3993
  return D.QUERY;
@@ -3997,7 +3997,7 @@ function Nu(t) {
3997
3997
  return D.SUBSCRIPTION;
3998
3998
  }
3999
3999
  }
4000
- function Fu(t) {
4000
+ function Ou(t) {
4001
4001
  return {
4002
4002
  FragmentSpread(e) {
4003
4003
  const n = e.name.value;
@@ -4009,7 +4009,7 @@ function Fu(t) {
4009
4009
  }
4010
4010
  };
4011
4011
  }
4012
- function Ru(t) {
4012
+ function Nu(t) {
4013
4013
  const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
4014
4014
  for (const s of t.getDocument().definitions)
4015
4015
  sr(s) && (i[s.name.value] = !0);
@@ -4022,7 +4022,7 @@ function Ru(t) {
4022
4022
  const l = s.name.value;
4023
4023
  if (!n[l] && !i[l]) {
4024
4024
  var h;
4025
- const d = (h = c[2]) !== null && h !== void 0 ? h : a, g = d != null && Au(d);
4025
+ const d = (h = c[2]) !== null && h !== void 0 ? h : a, g = d != null && Fu(d);
4026
4026
  if (g && kr.includes(l))
4027
4027
  return;
4028
4028
  const y = Kt(
@@ -4041,13 +4041,13 @@ function Ru(t) {
4041
4041
  }
4042
4042
  };
4043
4043
  }
4044
- const kr = [...Ya, ...Js].map(
4044
+ const kr = [...Wa, ...Js].map(
4045
4045
  (t) => t.name
4046
4046
  );
4047
- function Au(t) {
4048
- return "kind" in t && (mu(t) || yu(t));
4047
+ function Fu(t) {
4048
+ return "kind" in t && (pu(t) || gu(t));
4049
4049
  }
4050
- function Cu(t) {
4050
+ function Ru(t) {
4051
4051
  let e = 0;
4052
4052
  return {
4053
4053
  Document(n) {
@@ -4067,8 +4067,8 @@ function Cu(t) {
4067
4067
  }
4068
4068
  };
4069
4069
  }
4070
- const ku = 3;
4071
- function xu(t) {
4070
+ const Au = 3;
4071
+ function Cu(t) {
4072
4072
  function e(n, i = /* @__PURE__ */ Object.create(null), r = 0) {
4073
4073
  if (n.kind === p.FRAGMENT_SPREAD) {
4074
4074
  const s = n.name.value;
@@ -4084,7 +4084,7 @@ function xu(t) {
4084
4084
  }
4085
4085
  }
4086
4086
  if (n.kind === p.FIELD && // check all introspection lists
4087
- (n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= ku))
4087
+ (n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= Au))
4088
4088
  return !0;
4089
4089
  if ("selectionSet" in n && n.selectionSet) {
4090
4090
  for (const s of n.selectionSet.selections)
@@ -4104,7 +4104,7 @@ function xu(t) {
4104
4104
  }
4105
4105
  };
4106
4106
  }
4107
- function Du(t) {
4107
+ function ku(t) {
4108
4108
  const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
4109
4109
  return {
4110
4110
  OperationDefinition: () => !1,
@@ -4142,7 +4142,7 @@ function Du(t) {
4142
4142
  }
4143
4143
  }
4144
4144
  }
4145
- function Lu(t) {
4145
+ function xu(t) {
4146
4146
  let e = /* @__PURE__ */ Object.create(null);
4147
4147
  return {
4148
4148
  OperationDefinition: {
@@ -4169,7 +4169,7 @@ function Lu(t) {
4169
4169
  }
4170
4170
  };
4171
4171
  }
4172
- function $u(t) {
4172
+ function Du(t) {
4173
4173
  const e = [], n = [];
4174
4174
  return {
4175
4175
  OperationDefinition(i) {
@@ -4198,7 +4198,7 @@ function $u(t) {
4198
4198
  }
4199
4199
  };
4200
4200
  }
4201
- function Pu(t) {
4201
+ function Lu(t) {
4202
4202
  let e = [];
4203
4203
  return {
4204
4204
  OperationDefinition: {
@@ -4230,7 +4230,7 @@ function Pu(t) {
4230
4230
  function or(t) {
4231
4231
  switch (t.kind) {
4232
4232
  case p.OBJECT:
4233
- return { ...t, fields: Mu(t.fields) };
4233
+ return { ...t, fields: $u(t.fields) };
4234
4234
  case p.LIST:
4235
4235
  return { ...t, values: t.values.map(or) };
4236
4236
  case p.INT:
@@ -4243,7 +4243,7 @@ function or(t) {
4243
4243
  return t;
4244
4244
  }
4245
4245
  }
4246
- function Mu(t) {
4246
+ function $u(t) {
4247
4247
  return t.map((e) => ({
4248
4248
  ...e,
4249
4249
  value: or(e.value)
@@ -4256,11 +4256,11 @@ function io(t) {
4256
4256
  ([e, n]) => `subfields "${e}" conflict because ` + io(n)
4257
4257
  ).join(" and ") : t;
4258
4258
  }
4259
- function ju(t) {
4260
- const e = new oo(), n = new Qu(), i = /* @__PURE__ */ new Map();
4259
+ function Pu(t) {
4260
+ const e = new oo(), n = new Bu(), i = /* @__PURE__ */ new Map();
4261
4261
  return {
4262
4262
  SelectionSet(r) {
4263
- const s = Uu(
4263
+ const s = Mu(
4264
4264
  t,
4265
4265
  i,
4266
4266
  e,
@@ -4282,14 +4282,14 @@ function ju(t) {
4282
4282
  }
4283
4283
  };
4284
4284
  }
4285
- function Uu(t, e, n, i, r, s) {
4285
+ function Mu(t, e, n, i, r, s) {
4286
4286
  const o = [], [a, u] = ii(
4287
4287
  t,
4288
4288
  e,
4289
4289
  r,
4290
4290
  s
4291
4291
  );
4292
- if (qu(
4292
+ if (Uu(
4293
4293
  t,
4294
4294
  o,
4295
4295
  e,
@@ -4419,7 +4419,7 @@ function ni(t, e, n, i, r, s, o, a) {
4419
4419
  a
4420
4420
  );
4421
4421
  }
4422
- function Vu(t, e, n, i, r, s, o, a, u) {
4422
+ function ju(t, e, n, i, r, s, o, a, u) {
4423
4423
  const c = [], [l, h] = ii(
4424
4424
  t,
4425
4425
  e,
@@ -4477,7 +4477,7 @@ function Vu(t, e, n, i, r, s, o, a, u) {
4477
4477
  );
4478
4478
  return c;
4479
4479
  }
4480
- function qu(t, e, n, i, r, s) {
4480
+ function Uu(t, e, n, i, r, s) {
4481
4481
  for (const [o, a] of Object.entries(s))
4482
4482
  if (a.length > 1)
4483
4483
  for (let u = 0; u < a.length; u++)
@@ -4526,7 +4526,7 @@ function ro(t, e, n, i, r, s, o, a) {
4526
4526
  [c],
4527
4527
  [d]
4528
4528
  ];
4529
- if (!Bu(c, d))
4529
+ if (!Vu(c, d))
4530
4530
  return [
4531
4531
  [s, "they have differing arguments"],
4532
4532
  [c],
@@ -4547,7 +4547,7 @@ function ro(t, e, n, i, r, s, o, a) {
4547
4547
  ];
4548
4548
  const _ = c.selectionSet, S = d.selectionSet;
4549
4549
  if (_ && S) {
4550
- const A = Vu(
4550
+ const A = ju(
4551
4551
  t,
4552
4552
  e,
4553
4553
  n,
@@ -4558,10 +4558,10 @@ function ro(t, e, n, i, r, s, o, a) {
4558
4558
  ze($),
4559
4559
  S
4560
4560
  );
4561
- return Gu(A, s, c, d);
4561
+ return qu(A, s, c, d);
4562
4562
  }
4563
4563
  }
4564
- function Bu(t, e) {
4564
+ function Vu(t, e) {
4565
4565
  const n = t.arguments, i = e.arguments;
4566
4566
  if (n === void 0 || n.length === 0)
4567
4567
  return i === void 0 || i.length === 0;
@@ -4633,7 +4633,7 @@ function so(t, e, n, i, r) {
4633
4633
  }
4634
4634
  }
4635
4635
  }
4636
- function Gu(t, e, n, i) {
4636
+ function qu(t, e, n, i) {
4637
4637
  if (t.length > 0)
4638
4638
  return [
4639
4639
  [e, t.map(([r]) => r)],
@@ -4655,7 +4655,7 @@ class oo {
4655
4655
  r === void 0 ? this._data.set(e, /* @__PURE__ */ new Map([[n, i]])) : r.set(n, i);
4656
4656
  }
4657
4657
  }
4658
- class Qu {
4658
+ class Bu {
4659
4659
  constructor() {
4660
4660
  this._orderedPairSet = new oo();
4661
4661
  }
@@ -4666,7 +4666,7 @@ class Qu {
4666
4666
  e < n ? this._orderedPairSet.add(e, n, i) : this._orderedPairSet.add(n, e, i);
4667
4667
  }
4668
4668
  }
4669
- function Ku(t) {
4669
+ function Gu(t) {
4670
4670
  return {
4671
4671
  InlineFragment(e) {
4672
4672
  const n = t.getType(), i = t.getParentType();
@@ -4683,7 +4683,7 @@ function Ku(t) {
4683
4683
  }
4684
4684
  },
4685
4685
  FragmentSpread(e) {
4686
- const n = e.name.value, i = zu(t, n), r = t.getParentType();
4686
+ const n = e.name.value, i = Qu(t, n), r = t.getParentType();
4687
4687
  if (i && r && !Nr(t.getSchema(), i, r)) {
4688
4688
  const s = C(r), o = C(i);
4689
4689
  t.reportError(
@@ -4698,7 +4698,7 @@ function Ku(t) {
4698
4698
  }
4699
4699
  };
4700
4700
  }
4701
- function zu(t, e) {
4701
+ function Qu(t, e) {
4702
4702
  const n = t.getFragment(e);
4703
4703
  if (n) {
4704
4704
  const i = Ie(t.getSchema(), n.typeCondition);
@@ -4706,10 +4706,10 @@ function zu(t, e) {
4706
4706
  return i;
4707
4707
  }
4708
4708
  }
4709
- function Hu(t) {
4709
+ function Ku(t) {
4710
4710
  return {
4711
4711
  // eslint-disable-next-line new-cap
4712
- ...Wu(t),
4712
+ ...zu(t),
4713
4713
  Field: {
4714
4714
  // Validate on leave to allow for deeper errors to appear first.
4715
4715
  leave(e) {
@@ -4723,7 +4723,7 @@ function Hu(t) {
4723
4723
  (n = e.arguments) === null || n === void 0 ? void 0 : n.map((s) => s.name.value)
4724
4724
  );
4725
4725
  for (const s of i.args)
4726
- if (!r.has(s.name) && Tn(s)) {
4726
+ if (!r.has(s.name) && En(s)) {
4727
4727
  const o = C(s.type);
4728
4728
  t.reportError(
4729
4729
  new w(
@@ -4738,12 +4738,12 @@ function Hu(t) {
4738
4738
  }
4739
4739
  };
4740
4740
  }
4741
- function Wu(t) {
4741
+ function zu(t) {
4742
4742
  var e;
4743
4743
  const n = /* @__PURE__ */ Object.create(null), i = t.getSchema(), r = (e = i == null ? void 0 : i.getDirectives()) !== null && e !== void 0 ? e : vn;
4744
4744
  for (const a of r)
4745
4745
  n[a.name] = mn(
4746
- a.args.filter(Tn),
4746
+ a.args.filter(En),
4747
4747
  (u) => u.name
4748
4748
  );
4749
4749
  const s = t.getDocument().definitions;
@@ -4752,7 +4752,7 @@ function Wu(t) {
4752
4752
  var o;
4753
4753
  const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
4754
4754
  n[a.name.value] = mn(
4755
- u.filter(Ju),
4755
+ u.filter(Hu),
4756
4756
  (c) => c.name.value
4757
4757
  );
4758
4758
  }
@@ -4766,7 +4766,7 @@ function Wu(t) {
4766
4766
  const h = (l = a.arguments) !== null && l !== void 0 ? l : [], d = new Set(h.map((g) => g.name.value));
4767
4767
  for (const [g, y] of Object.entries(c))
4768
4768
  if (!d.has(g)) {
4769
- const v = oa(y.type) ? C(y.type) : ce(y.type);
4769
+ const v = ra(y.type) ? C(y.type) : ce(y.type);
4770
4770
  t.reportError(
4771
4771
  new w(
4772
4772
  `Directive "@${u}" argument "${g}" of type "${v}" is required, but it was not provided.`,
@@ -4781,10 +4781,10 @@ function Wu(t) {
4781
4781
  }
4782
4782
  };
4783
4783
  }
4784
- function Ju(t) {
4784
+ function Hu(t) {
4785
4785
  return t.type.kind === p.NON_NULL_TYPE && t.defaultValue == null;
4786
4786
  }
4787
- function Yu(t) {
4787
+ function Wu(t) {
4788
4788
  return {
4789
4789
  Field(e) {
4790
4790
  const n = t.getType(), i = e.selectionSet;
@@ -4827,7 +4827,7 @@ function Yu(t) {
4827
4827
  }
4828
4828
  };
4829
4829
  }
4830
- function Xu(t) {
4830
+ function Ju(t) {
4831
4831
  return t.map(
4832
4832
  (e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
4833
4833
  ).join("");
@@ -4846,12 +4846,12 @@ function Ze(t) {
4846
4846
  e.push(n.key), n = n.prev;
4847
4847
  return e.reverse();
4848
4848
  }
4849
- function Zu(t, e, n = ec) {
4849
+ function Yu(t, e, n = Xu) {
4850
4850
  return an(t, e, n, void 0);
4851
4851
  }
4852
- function ec(t, e, n) {
4852
+ function Xu(t, e, n) {
4853
4853
  let i = "Invalid value " + C(e);
4854
- throw t.length > 0 && (i += ` at "value${Xu(t)}"`), n.message = i + ": " + n.message, n;
4854
+ throw t.length > 0 && (i += ` at "value${Ju(t)}"`), n.message = i + ": " + n.message, n;
4855
4855
  }
4856
4856
  function an(t, e, n, i) {
4857
4857
  if (B(e)) {
@@ -4963,7 +4963,7 @@ function an(t, e, n, i) {
4963
4963
  }
4964
4964
  it(!1, "Unexpected input type: " + C(e));
4965
4965
  }
4966
- function Et(t, e, n) {
4966
+ function Tt(t, e, n) {
4967
4967
  if (t) {
4968
4968
  if (t.kind === p.VARIABLE) {
4969
4969
  const i = t.name.value;
@@ -4973,7 +4973,7 @@ function Et(t, e, n) {
4973
4973
  return r === null && B(e) ? void 0 : r;
4974
4974
  }
4975
4975
  if (B(e))
4976
- return t.kind === p.NULL ? void 0 : Et(t, e.ofType, n);
4976
+ return t.kind === p.NULL ? void 0 : Tt(t, e.ofType, n);
4977
4977
  if (t.kind === p.NULL)
4978
4978
  return null;
4979
4979
  if (pe(e)) {
@@ -4986,14 +4986,14 @@ function Et(t, e, n) {
4986
4986
  return;
4987
4987
  s.push(null);
4988
4988
  } else {
4989
- const a = Et(o, i, n);
4989
+ const a = Tt(o, i, n);
4990
4990
  if (a === void 0)
4991
4991
  return;
4992
4992
  s.push(a);
4993
4993
  }
4994
4994
  return s;
4995
4995
  }
4996
- const r = Et(t, i, n);
4996
+ const r = Tt(t, i, n);
4997
4997
  return r === void 0 ? void 0 : [r];
4998
4998
  }
4999
4999
  if (Ce(e)) {
@@ -5009,7 +5009,7 @@ function Et(t, e, n) {
5009
5009
  return;
5010
5010
  continue;
5011
5011
  }
5012
- const a = Et(o.value, s.type, n);
5012
+ const a = Tt(o.value, s.type, n);
5013
5013
  if (a === void 0)
5014
5014
  return;
5015
5015
  i[s.name] = a;
@@ -5036,7 +5036,7 @@ function Et(t, e, n) {
5036
5036
  function Lr(t, e) {
5037
5037
  return t.kind === p.VARIABLE && (e == null || e[t.name.value] === void 0);
5038
5038
  }
5039
- function tc(t, e, n) {
5039
+ function Zu(t, e, n) {
5040
5040
  var i;
5041
5041
  const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = mn(s, (a) => a.name.value);
5042
5042
  for (const a of t.args) {
@@ -5057,7 +5057,7 @@ function tc(t, e, n) {
5057
5057
  let d = h.kind === p.NULL;
5058
5058
  if (h.kind === p.VARIABLE) {
5059
5059
  const y = h.name.value;
5060
- if (n == null || !nc(n, y)) {
5060
+ if (n == null || !ec(n, y)) {
5061
5061
  if (a.defaultValue !== void 0)
5062
5062
  r[u] = a.defaultValue;
5063
5063
  else if (B(c))
@@ -5078,7 +5078,7 @@ function tc(t, e, n) {
5078
5078
  nodes: h
5079
5079
  }
5080
5080
  );
5081
- const g = Et(h, c, n);
5081
+ const g = Tt(h, c, n);
5082
5082
  if (g === void 0)
5083
5083
  throw new w(
5084
5084
  `Argument "${u}" has invalid value ${ce(h)}.`,
@@ -5096,12 +5096,12 @@ function Bt(t, e, n) {
5096
5096
  (s) => s.name.value === t.name
5097
5097
  );
5098
5098
  if (r)
5099
- return tc(t, r, n);
5099
+ return Zu(t, r, n);
5100
5100
  }
5101
- function nc(t, e) {
5101
+ function ec(t, e) {
5102
5102
  return Object.prototype.hasOwnProperty.call(t, e);
5103
5103
  }
5104
- function ic(t, e, n, i, r) {
5104
+ function tc(t, e, n, i, r) {
5105
5105
  const s = /* @__PURE__ */ new Map();
5106
5106
  return Mi(
5107
5107
  t,
@@ -5119,7 +5119,7 @@ function Mi(t, e, n, i, r, s, o) {
5119
5119
  case p.FIELD: {
5120
5120
  if (!Oi(n, a))
5121
5121
  continue;
5122
- const u = rc(a), c = s.get(u);
5122
+ const u = nc(a), c = s.get(u);
5123
5123
  c !== void 0 ? c.push(a) : s.set(u, [a]);
5124
5124
  break;
5125
5125
  }
@@ -5176,10 +5176,10 @@ function $r(t, e, n) {
5176
5176
  const r = Ie(t, i);
5177
5177
  return r === n ? !0 : nt(r) ? t.isSubType(r, n) : !1;
5178
5178
  }
5179
- function rc(t) {
5179
+ function nc(t) {
5180
5180
  return t.alias ? t.alias.value : t.name.value;
5181
5181
  }
5182
- function sc(t) {
5182
+ function ic(t) {
5183
5183
  return {
5184
5184
  OperationDefinition(e) {
5185
5185
  if (e.operation === "subscription") {
@@ -5188,7 +5188,7 @@ function sc(t) {
5188
5188
  const r = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
5189
5189
  for (const c of o.definitions)
5190
5190
  c.kind === p.FRAGMENT_DEFINITION && (a[c.name.value] = c);
5191
- const u = ic(
5191
+ const u = tc(
5192
5192
  n,
5193
5193
  a,
5194
5194
  s,
@@ -5228,7 +5228,7 @@ function ao(t, e) {
5228
5228
  }
5229
5229
  return n;
5230
5230
  }
5231
- function oc(t) {
5231
+ function rc(t) {
5232
5232
  return {
5233
5233
  Field: e,
5234
5234
  Directive: e
@@ -5247,7 +5247,7 @@ function oc(t) {
5247
5247
  );
5248
5248
  }
5249
5249
  }
5250
- function ac(t) {
5250
+ function sc(t) {
5251
5251
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : vn;
5252
5252
  for (const a of i)
5253
5253
  e[a.name] = !a.isRepeatable;
@@ -5284,7 +5284,7 @@ function ac(t) {
5284
5284
  }
5285
5285
  };
5286
5286
  }
5287
- function uc(t) {
5287
+ function oc(t) {
5288
5288
  const e = /* @__PURE__ */ Object.create(null);
5289
5289
  return {
5290
5290
  OperationDefinition: () => !1,
@@ -5301,7 +5301,7 @@ function uc(t) {
5301
5301
  }
5302
5302
  };
5303
5303
  }
5304
- function cc(t) {
5304
+ function ac(t) {
5305
5305
  const e = [];
5306
5306
  let n = /* @__PURE__ */ Object.create(null);
5307
5307
  return {
@@ -5327,7 +5327,7 @@ function cc(t) {
5327
5327
  }
5328
5328
  };
5329
5329
  }
5330
- function lc(t) {
5330
+ function uc(t) {
5331
5331
  const e = /* @__PURE__ */ Object.create(null);
5332
5332
  return {
5333
5333
  OperationDefinition(n) {
@@ -5347,7 +5347,7 @@ function lc(t) {
5347
5347
  FragmentDefinition: () => !1
5348
5348
  };
5349
5349
  }
5350
- function fc(t) {
5350
+ function cc(t) {
5351
5351
  return {
5352
5352
  OperationDefinition(e) {
5353
5353
  var n;
@@ -5367,7 +5367,7 @@ function fc(t) {
5367
5367
  }
5368
5368
  };
5369
5369
  }
5370
- function dc(t) {
5370
+ function lc(t) {
5371
5371
  let e = {};
5372
5372
  return {
5373
5373
  OperationDefinition: {
@@ -5400,7 +5400,7 @@ function dc(t) {
5400
5400
  )
5401
5401
  );
5402
5402
  }
5403
- i.isOneOf && hc(
5403
+ i.isOneOf && fc(
5404
5404
  t,
5405
5405
  n,
5406
5406
  i,
@@ -5489,7 +5489,7 @@ function yt(t, e) {
5489
5489
  );
5490
5490
  }
5491
5491
  }
5492
- function hc(t, e, n, i, r) {
5492
+ function fc(t, e, n, i, r) {
5493
5493
  var s;
5494
5494
  const o = Object.keys(i);
5495
5495
  if (o.length !== 1) {
@@ -5524,7 +5524,7 @@ function hc(t, e, n, i, r) {
5524
5524
  );
5525
5525
  }
5526
5526
  }
5527
- function pc(t) {
5527
+ function dc(t) {
5528
5528
  return {
5529
5529
  VariableDefinition(e) {
5530
5530
  const n = Ie(t.getSchema(), e.type);
@@ -5542,7 +5542,7 @@ function pc(t) {
5542
5542
  }
5543
5543
  };
5544
5544
  }
5545
- function gc(t) {
5545
+ function hc(t) {
5546
5546
  let e = /* @__PURE__ */ Object.create(null);
5547
5547
  return {
5548
5548
  OperationDefinition: {
@@ -5555,7 +5555,7 @@ function gc(t) {
5555
5555
  const a = r.name.value, u = e[a];
5556
5556
  if (u && s) {
5557
5557
  const c = t.getSchema(), l = Ie(c, u.type);
5558
- if (l && !mc(
5558
+ if (l && !pc(
5559
5559
  c,
5560
5560
  l,
5561
5561
  u.defaultValue,
@@ -5581,7 +5581,7 @@ function gc(t) {
5581
5581
  }
5582
5582
  };
5583
5583
  }
5584
- function mc(t, e, n, i, r) {
5584
+ function pc(t, e, n, i, r) {
5585
5585
  if (B(i) && !B(e)) {
5586
5586
  if (!(n != null && n.kind !== p.NULL) && !(r !== void 0))
5587
5587
  return !1;
@@ -5590,36 +5590,36 @@ function mc(t, e, n, i, r) {
5590
5590
  }
5591
5591
  return $t(t, e, i);
5592
5592
  }
5593
- const yc = Object.freeze([xu]), uo = Object.freeze([
5594
- bu,
5595
- lc,
5596
- Cu,
5597
- sc,
5593
+ const gc = Object.freeze([Cu]), uo = Object.freeze([
5594
+ mu,
5595
+ uc,
5598
5596
  Ru,
5599
- Su,
5600
- pc,
5601
- Yu,
5597
+ ic,
5598
+ Nu,
5602
5599
  Eu,
5603
- uc,
5604
- Fu,
5605
- $u,
5606
- Ku,
5600
+ dc,
5601
+ Wu,
5602
+ yu,
5603
+ oc,
5604
+ Ou,
5607
5605
  Du,
5608
- fc,
5606
+ Gu,
5607
+ ku,
5608
+ cc,
5609
+ xu,
5609
5610
  Lu,
5611
+ Iu,
5612
+ sc,
5613
+ wu,
5614
+ rc,
5615
+ lc,
5616
+ Ku,
5617
+ hc,
5610
5618
  Pu,
5611
- _u,
5612
5619
  ac,
5613
- Iu,
5614
- oc,
5615
- dc,
5616
- Hu,
5617
- gc,
5618
- ju,
5619
- cc,
5620
- ...yc
5620
+ ...gc
5621
5621
  ]);
5622
- class bc {
5622
+ class mc {
5623
5623
  constructor(e, n) {
5624
5624
  this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
5625
5625
  }
@@ -5677,7 +5677,7 @@ class bc {
5677
5677
  return n;
5678
5678
  }
5679
5679
  }
5680
- class Ec extends bc {
5680
+ class yc extends mc {
5681
5681
  constructor(e, n, i, r) {
5682
5682
  super(n, r), this._schema = e, this._typeInfo = i, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
5683
5683
  }
@@ -5742,11 +5742,11 @@ class Ec extends bc {
5742
5742
  return this._typeInfo.getEnumValue();
5743
5743
  }
5744
5744
  }
5745
- function Tc(t, e, n = uo, i, r = new eo(t)) {
5745
+ function bc(t, e, n = uo, i, r = new eo(t)) {
5746
5746
  var s;
5747
5747
  const o = (s = i == null ? void 0 : i.maxErrors) !== null && s !== void 0 ? s : 100;
5748
5748
  e || Ye(!1, "Must provide document."), Zs(t);
5749
- const a = Object.freeze({}), u = [], c = new Ec(
5749
+ const a = Object.freeze({}), u = [], c = new yc(
5750
5750
  t,
5751
5751
  e,
5752
5752
  r,
@@ -5759,7 +5759,7 @@ function Tc(t, e, n = uo, i, r = new eo(t)) {
5759
5759
  ), a;
5760
5760
  u.push(h);
5761
5761
  }
5762
- ), l = aa(n.map((h) => h(c)));
5762
+ ), l = sa(n.map((h) => h(c)));
5763
5763
  try {
5764
5764
  Ls(e, to(r, l));
5765
5765
  } catch (h) {
@@ -5768,18 +5768,18 @@ function Tc(t, e, n = uo, i, r = new eo(t)) {
5768
5768
  }
5769
5769
  return u;
5770
5770
  }
5771
- function wc(t) {
5772
- return t instanceof Error ? t : new Sc(t);
5771
+ function Tc(t) {
5772
+ return t instanceof Error ? t : new Ec(t);
5773
5773
  }
5774
- class Sc extends Error {
5774
+ class Ec extends Error {
5775
5775
  constructor(e) {
5776
5776
  super("Unexpected error value: " + C(e)), this.name = "NonErrorThrown", this.thrownValue = e;
5777
5777
  }
5778
5778
  }
5779
5779
  function we(t, e, n) {
5780
5780
  var i;
5781
- const r = wc(t);
5782
- return Ic(r) ? r : new w(r.message, {
5781
+ const r = Tc(t);
5782
+ return wc(r) ? r : new w(r.message, {
5783
5783
  nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
5784
5784
  source: r.source,
5785
5785
  positions: r.positions,
@@ -5787,7 +5787,7 @@ function we(t, e, n) {
5787
5787
  originalError: r
5788
5788
  });
5789
5789
  }
5790
- function Ic(t) {
5790
+ function wc(t) {
5791
5791
  return Array.isArray(t.path);
5792
5792
  }
5793
5793
  const Pr = function(t, e, n, i) {
@@ -5798,7 +5798,7 @@ const Pr = function(t, e, n, i) {
5798
5798
  const a = r[o];
5799
5799
  if (a.isTypeOf) {
5800
5800
  const u = a.isTypeOf(t, e, n);
5801
- if ($a(u))
5801
+ if (Da(u))
5802
5802
  s[o] = u;
5803
5803
  else if (u)
5804
5804
  return a.name;
@@ -5830,8 +5830,8 @@ function ur(t, e) {
5830
5830
  }
5831
5831
  return n;
5832
5832
  }
5833
- function vc(t) {
5834
- const e = t.toConfig(), n = ua(
5833
+ function Sc(t) {
5834
+ const e = t.toConfig(), n = oa(
5835
5835
  Ni(e.types),
5836
5836
  (d) => d.name,
5837
5837
  h
@@ -5948,11 +5948,11 @@ class V extends _n {
5948
5948
  super(e, n), this.name = "PothosSchemaError";
5949
5949
  }
5950
5950
  }
5951
- const _c = Symbol.for("Pothos.contextCache");
5952
- function Oc(t) {
5951
+ const Ic = Symbol.for("Pothos.contextCache");
5952
+ function vc(t) {
5953
5953
  const e = /* @__PURE__ */ new WeakMap();
5954
5954
  return (n, ...i) => {
5955
- const r = n[_c] || n;
5955
+ const r = n[Ic] || n;
5956
5956
  if (e.has(r))
5957
5957
  return e.get(r);
5958
5958
  const s = t(n, ...i);
@@ -5968,7 +5968,7 @@ function Jt(t, e, n) {
5968
5968
  }) : t[e] = n, t;
5969
5969
  }
5970
5970
  const Yt = /* @__PURE__ */ new WeakMap();
5971
- class Nc {
5971
+ class _c {
5972
5972
  /**
5973
5973
  * Called for each type defined with the SchemaBuilder
5974
5974
  * @param {PothosTypeConfig} typeConfig - Config object describing the added type
@@ -6074,10 +6074,10 @@ class Nc {
6074
6074
  return this.requestDataMap(e);
6075
6075
  }
6076
6076
  constructor(e, n) {
6077
- Jt(this, "name", void 0), Jt(this, "builder", void 0), Jt(this, "buildCache", void 0), Jt(this, "options", void 0), Jt(this, "requestDataMap", Oc((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
6077
+ Jt(this, "name", void 0), Jt(this, "builder", void 0), Jt(this, "buildCache", void 0), Jt(this, "options", void 0), Jt(this, "requestDataMap", vc((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
6078
6078
  }
6079
6079
  }
6080
- function Fc(t, e, n) {
6080
+ function Oc(t, e, n) {
6081
6081
  return e in t ? Object.defineProperty(t, e, {
6082
6082
  value: n,
6083
6083
  enumerable: !0,
@@ -6085,7 +6085,7 @@ function Fc(t, e, n) {
6085
6085
  writable: !0
6086
6086
  }) : t[e] = n, t;
6087
6087
  }
6088
- class Rc extends Nc {
6088
+ class Nc extends _c {
6089
6089
  onTypeConfig(e) {
6090
6090
  return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
6091
6091
  }
@@ -6118,10 +6118,10 @@ class Rc extends Nc {
6118
6118
  return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
6119
6119
  }
6120
6120
  constructor(e, n) {
6121
- super(e, "PothosMergedPlugin"), Fc(this, "plugins", void 0), this.plugins = n;
6121
+ super(e, "PothosMergedPlugin"), Oc(this, "plugins", void 0), this.plugins = n;
6122
6122
  }
6123
6123
  }
6124
- const _t = Symbol.for("Pothos.outputShapeKey"), Ht = Symbol.for("Pothos.parentShapeKey"), On = Symbol.for("Pothos.inputShapeKey"), Ac = Symbol.for("Pothos.inputFieldShapeKey"), Cc = Symbol.for("Pothos.outputFieldShapeKey"), ri = Symbol.for("Pothos.typeBrandKey");
6124
+ const _t = Symbol.for("Pothos.outputShapeKey"), Ht = Symbol.for("Pothos.parentShapeKey"), On = Symbol.for("Pothos.inputShapeKey"), Fc = Symbol.for("Pothos.inputFieldShapeKey"), Rc = Symbol.for("Pothos.outputFieldShapeKey"), ri = Symbol.for("Pothos.typeBrandKey");
6125
6125
  function Mr(t, e, n) {
6126
6126
  return e in t ? Object.defineProperty(t, e, {
6127
6127
  value: n,
@@ -6146,13 +6146,13 @@ function Nt(t, e, n) {
6146
6146
  writable: !0
6147
6147
  }) : t[e] = n, t;
6148
6148
  }
6149
- let kc = _t, xc = Ht, Dc = On;
6149
+ let Ac = _t, Cc = Ht, kc = On;
6150
6150
  class lo extends te {
6151
6151
  constructor(e) {
6152
- super("Scalar", e), Nt(this, "kind", "Scalar"), Nt(this, "$inferType", void 0), Nt(this, "$inferInput", void 0), Nt(this, kc, void 0), Nt(this, xc, void 0), Nt(this, Dc, void 0);
6152
+ super("Scalar", e), Nt(this, "kind", "Scalar"), Nt(this, "$inferType", void 0), Nt(this, "$inferInput", void 0), Nt(this, Ac, void 0), Nt(this, Cc, void 0), Nt(this, kc, void 0);
6153
6153
  }
6154
6154
  }
6155
- function Lc(t, e, n) {
6155
+ function xc(t, e, n) {
6156
6156
  return e in t ? Object.defineProperty(t, e, {
6157
6157
  value: n,
6158
6158
  enumerable: !0,
@@ -6162,7 +6162,7 @@ function Lc(t, e, n) {
6162
6162
  }
6163
6163
  class fo extends lo {
6164
6164
  constructor(e) {
6165
- super(e.name), Lc(this, "type", void 0), this.type = e;
6165
+ super(e.name), xc(this, "type", void 0), this.type = e;
6166
6166
  }
6167
6167
  }
6168
6168
  function Xt(t, e, n) {
@@ -6173,10 +6173,10 @@ function Xt(t, e, n) {
6173
6173
  writable: !0
6174
6174
  }) : t[e] = n, t;
6175
6175
  }
6176
- let $c = On;
6176
+ let Dc = On;
6177
6177
  class di extends te {
6178
6178
  constructor(e, n) {
6179
- super("InputList", `InputList<${String(e)}>`), Xt(this, "kind", "InputList"), Xt(this, $c, void 0), Xt(this, "$inferInput", void 0), Xt(this, "listType", void 0), Xt(this, "required", void 0), this.listType = e, this.required = n;
6179
+ super("InputList", `InputList<${String(e)}>`), Xt(this, "kind", "InputList"), Xt(this, Dc, void 0), Xt(this, "$inferInput", void 0), Xt(this, "listType", void 0), Xt(this, "required", void 0), this.listType = e, this.required = n;
6180
6180
  }
6181
6181
  }
6182
6182
  function Ft(t, e, n) {
@@ -6187,13 +6187,13 @@ function Ft(t, e, n) {
6187
6187
  writable: !0
6188
6188
  }) : t[e] = n, t;
6189
6189
  }
6190
- let Pc = _t, Mc = Ht;
6190
+ let Lc = _t, $c = Ht;
6191
6191
  class hi extends te {
6192
6192
  constructor(e, n) {
6193
- super("List", `List<${String(e)}>`), Ft(this, "kind", "List"), Ft(this, "$inferType", void 0), Ft(this, Pc, void 0), Ft(this, Mc, void 0), Ft(this, "listType", void 0), Ft(this, "nullable", void 0), this.listType = e, this.nullable = n;
6193
+ super("List", `List<${String(e)}>`), Ft(this, "kind", "List"), Ft(this, "$inferType", void 0), Ft(this, Lc, void 0), Ft(this, $c, void 0), Ft(this, "listType", void 0), Ft(this, "nullable", void 0), this.listType = e, this.nullable = n;
6194
6194
  }
6195
6195
  }
6196
- function jc(t) {
6196
+ function Pc(t) {
6197
6197
  const e = {};
6198
6198
  return Array.isArray(t) ? t.forEach((n) => {
6199
6199
  e[String(n)] = {
@@ -6208,7 +6208,7 @@ function jc(t) {
6208
6208
  });
6209
6209
  }), e;
6210
6210
  }
6211
- function Uc(t, e) {
6211
+ function Mc(t, e) {
6212
6212
  const n = {};
6213
6213
  return Object.keys(t).filter((i) => typeof t[t[i]] != "number").forEach((i) => {
6214
6214
  n[i] = {
@@ -6264,10 +6264,10 @@ function Ui(t, e, n) {
6264
6264
  };
6265
6265
  throw new V(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
6266
6266
  }
6267
- function Vc(t) {
6267
+ function jc(t) {
6268
6268
  throw new TypeError(`Unexpected value: ${t}`);
6269
6269
  }
6270
- function qc(t) {
6270
+ function Uc(t) {
6271
6271
  return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
6272
6272
  }
6273
6273
  function et(t) {
@@ -6302,7 +6302,7 @@ builder.objectType('MyObject', {
6302
6302
  `);
6303
6303
  }
6304
6304
  }
6305
- function Bc(t) {
6305
+ function Vc(t) {
6306
6306
  return typeof t == "object" && t !== null && ri in t ? t[ri] : null;
6307
6307
  }
6308
6308
  function Vi(t) {
@@ -6316,7 +6316,7 @@ function ke(t, e, n) {
6316
6316
  writable: !0
6317
6317
  }) : t[e] = n, t;
6318
6318
  }
6319
- class Gc {
6319
+ class qc {
6320
6320
  getTypeConfig(e, n) {
6321
6321
  const i = this.configStore.getTypeConfig(e, n);
6322
6322
  return this.typeConfigs.has(i.name) || this.typeConfigs.set(i.name, this.plugin.onTypeConfig(i)), this.typeConfigs.get(i.name);
@@ -6383,7 +6383,7 @@ class Gc {
6383
6383
  this.addType(i, this.buildObject(n));
6384
6384
  break;
6385
6385
  default:
6386
- Vc(n);
6386
+ jc(n);
6387
6387
  }
6388
6388
  }
6389
6389
  addType(e, n) {
@@ -6558,7 +6558,7 @@ class Gc {
6558
6558
  }
6559
6559
  buildInterface(e) {
6560
6560
  const n = (r, s, o) => {
6561
- const a = Bc(r);
6561
+ const a = Vc(r);
6562
6562
  if (a)
6563
6563
  return typeof a == "string" ? a : this.getTypeConfig(a).name;
6564
6564
  var u;
@@ -6595,7 +6595,7 @@ class Gc {
6595
6595
  }
6596
6596
  return c;
6597
6597
  };
6598
- return qc(a) ? a.then(u) : u(a);
6598
+ return Uc(a) ? a.then(u) : u(a);
6599
6599
  };
6600
6600
  return new rn({
6601
6601
  ...e,
@@ -6655,7 +6655,7 @@ class Gc {
6655
6655
  if (!o)
6656
6656
  throw new _n(`No plugin named ${s} was registered`);
6657
6657
  return i[s] = new o(this, s), i[s];
6658
- }), this.pluginMap = i, this.plugin = new Rc(this, this.pluginList);
6658
+ }), this.pluginMap = i, this.plugin = new Nc(this, this.pluginList);
6659
6659
  }
6660
6660
  }
6661
6661
  function Fi(t, e, n) {
@@ -6666,10 +6666,10 @@ function Fi(t, e, n) {
6666
6666
  writable: !0
6667
6667
  }) : t[e] = n, t;
6668
6668
  }
6669
- let Qc = On;
6670
- class Kc extends te {
6669
+ let Bc = On;
6670
+ class Gc extends te {
6671
6671
  constructor(e, n) {
6672
- super(e, n), Fi(this, "kind", void 0), Fi(this, "$inferInput", void 0), Fi(this, Qc, void 0), this.kind = e;
6672
+ super(e, n), Fi(this, "kind", void 0), Fi(this, "$inferInput", void 0), Fi(this, Bc, void 0), this.kind = e;
6673
6673
  }
6674
6674
  }
6675
6675
  function Cn(t, e, n) {
@@ -6680,10 +6680,10 @@ function Cn(t, e, n) {
6680
6680
  writable: !0
6681
6681
  }) : t[e] = n, t;
6682
6682
  }
6683
- let zc = _t, Hc = Ht;
6684
- class Wc extends te {
6683
+ let Qc = _t, Kc = Ht;
6684
+ class zc extends te {
6685
6685
  constructor(e, n) {
6686
- super(e, n), Cn(this, "kind", void 0), Cn(this, "$inferType", void 0), Cn(this, zc, void 0), Cn(this, Hc, void 0), this.kind = e;
6686
+ super(e, n), Cn(this, "kind", void 0), Cn(this, "$inferType", void 0), Cn(this, Qc, void 0), Cn(this, Kc, void 0), this.kind = e;
6687
6687
  }
6688
6688
  }
6689
6689
  function Pe(t, e, n) {
@@ -6694,7 +6694,7 @@ function Pe(t, e, n) {
6694
6694
  writable: !0
6695
6695
  }) : t[e] = n, t;
6696
6696
  }
6697
- class Jc {
6697
+ class Hc {
6698
6698
  hasConfig(e) {
6699
6699
  return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
6700
6700
  }
@@ -6790,7 +6790,7 @@ class Jc {
6790
6790
  const n = this.typeConfigs.get(e);
6791
6791
  if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
6792
6792
  throw new V(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
6793
- const i = new Kc(n.graphqlKind, n.name);
6793
+ const i = new Gc(n.graphqlKind, n.name);
6794
6794
  return this.refsToName.set(i, n.name), i;
6795
6795
  }
6796
6796
  }
@@ -6811,7 +6811,7 @@ class Jc {
6811
6811
  const n = this.typeConfigs.get(e);
6812
6812
  if (n.graphqlKind === "InputObject")
6813
6813
  throw new V(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
6814
- const i = new Wc(n.graphqlKind, n.name);
6814
+ const i = new zc(n.graphqlKind, n.name);
6815
6815
  return this.refsToName.set(i, n.name), i;
6816
6816
  }
6817
6817
  }
@@ -6911,8 +6911,8 @@ function Rt(t, e, n) {
6911
6911
  writable: !0
6912
6912
  }) : t[e] = n, t;
6913
6913
  }
6914
- let Yc = Ac;
6915
- class Xc {
6914
+ let Wc = Fc;
6915
+ class Jc {
6916
6916
  toString() {
6917
6917
  var e;
6918
6918
  if (this.kind !== "Arg")
@@ -6924,10 +6924,10 @@ class Xc {
6924
6924
  return `${this.parentTypename}.${i}(${s})`;
6925
6925
  }
6926
6926
  constructor(e, n) {
6927
- Rt(this, "kind", void 0), Rt(this, "parentTypename", void 0), Rt(this, "fieldName", void 0), Rt(this, "argFor", void 0), Rt(this, "$inferInput", void 0), Rt(this, Yc, void 0), this.kind = e, this.parentTypename = n;
6927
+ Rt(this, "kind", void 0), Rt(this, "parentTypename", void 0), Rt(this, "fieldName", void 0), Rt(this, "argFor", void 0), Rt(this, "$inferInput", void 0), Rt(this, Wc, void 0), this.kind = e, this.parentTypename = n;
6928
6928
  }
6929
6929
  }
6930
- function Te(t, e, n) {
6930
+ function Ee(t, e, n) {
6931
6931
  return e in t ? Object.defineProperty(t, e, {
6932
6932
  value: n,
6933
6933
  enumerable: !0,
@@ -6950,7 +6950,7 @@ class qi {
6950
6950
  * @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
6951
6951
  */
6952
6952
  field(e) {
6953
- const n = new Xc(this.kind, this.typename);
6953
+ const n = new Jc(this.kind, this.typename);
6954
6954
  return this.builder.configStore.addFieldRef(n, e.type, {}, (i, r, s) => {
6955
6955
  var o;
6956
6956
  return {
@@ -6978,17 +6978,17 @@ class qi {
6978
6978
  };
6979
6979
  }
6980
6980
  constructor(e, n, i) {
6981
- Te(this, "builder", void 0), Te(this, "kind", void 0), Te(this, "typename", void 0), Te(this, "boolean", this.helper("Boolean")), Te(this, "float", this.helper("Float")), Te(this, "id", this.helper("ID")), Te(this, "int", this.helper("Int")), Te(this, "string", this.helper("String")), Te(this, "booleanList", this.helper([
6981
+ Ee(this, "builder", void 0), Ee(this, "kind", void 0), Ee(this, "typename", void 0), Ee(this, "boolean", this.helper("Boolean")), Ee(this, "float", this.helper("Float")), Ee(this, "id", this.helper("ID")), Ee(this, "int", this.helper("Int")), Ee(this, "string", this.helper("String")), Ee(this, "booleanList", this.helper([
6982
6982
  "Boolean"
6983
- ])), Te(this, "floatList", this.helper([
6983
+ ])), Ee(this, "floatList", this.helper([
6984
6984
  "Float"
6985
- ])), Te(this, "idList", this.helper([
6985
+ ])), Ee(this, "idList", this.helper([
6986
6986
  "ID"
6987
- ])), Te(this, "intList", this.helper([
6987
+ ])), Ee(this, "intList", this.helper([
6988
6988
  "Int"
6989
- ])), Te(this, "stringList", this.helper([
6989
+ ])), Ee(this, "stringList", this.helper([
6990
6990
  "String"
6991
- ])), Te(this, "listRef", (r, s) => {
6991
+ ])), Ee(this, "listRef", (r, s) => {
6992
6992
  var o;
6993
6993
  return new di(r, (o = s == null ? void 0 : s.required) !== null && o !== void 0 ? o : !0);
6994
6994
  }), this.builder = e, this.kind = n, this.typename = i;
@@ -7002,13 +7002,13 @@ function Zt(t, e, n) {
7002
7002
  writable: !0
7003
7003
  }) : t[e] = n, t;
7004
7004
  }
7005
- let Zc = Cc;
7006
- class el {
7005
+ let Yc = Rc;
7006
+ class Xc {
7007
7007
  toString() {
7008
7008
  return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
7009
7009
  }
7010
7010
  constructor(e, n) {
7011
- Zt(this, "kind", void 0), Zt(this, "parentTypename", void 0), Zt(this, "fieldName", void 0), Zt(this, "$inferType", void 0), Zt(this, Zc, void 0), this.kind = e, this.parentTypename = n;
7011
+ Zt(this, "kind", void 0), Zt(this, "parentTypename", void 0), Zt(this, "fieldName", void 0), Zt(this, "$inferType", void 0), Zt(this, Yc, void 0), this.kind = e, this.parentTypename = n;
7012
7012
  }
7013
7013
  }
7014
7014
  function kn(t, e, n) {
@@ -7019,9 +7019,9 @@ function kn(t, e, n) {
7019
7019
  writable: !0
7020
7020
  }) : t[e] = n, t;
7021
7021
  }
7022
- class tl {
7022
+ class Zc {
7023
7023
  createField(e) {
7024
- const n = new el(this.kind, this.typename);
7024
+ const n = new Xc(this.kind, this.typename);
7025
7025
  var i;
7026
7026
  return this.builder.configStore.addFieldRef(n, e.type, (i = e.args) !== null && i !== void 0 ? i : {}, (r, s, o) => {
7027
7027
  var a;
@@ -7071,7 +7071,7 @@ class tl {
7071
7071
  kn(this, "typename", void 0), kn(this, "builder", void 0), kn(this, "kind", void 0), kn(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = i, this.graphqlKind = r;
7072
7072
  }
7073
7073
  }
7074
- function nl(t, e, n) {
7074
+ function el(t, e, n) {
7075
7075
  return e in t ? Object.defineProperty(t, e, {
7076
7076
  value: n,
7077
7077
  enumerable: !0,
@@ -7079,7 +7079,7 @@ function nl(t, e, n) {
7079
7079
  writable: !0
7080
7080
  }) : t[e] = n, t;
7081
7081
  }
7082
- class pi extends tl {
7082
+ class pi extends Zc {
7083
7083
  /**
7084
7084
  * Create a Boolean field
7085
7085
  * @param {PothosSchemaTypes.FieldOptions} options - Options for this field
@@ -7222,7 +7222,7 @@ class pi extends tl {
7222
7222
  return new hi(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
7223
7223
  }
7224
7224
  constructor(...e) {
7225
- super(...e), nl(this, "arg", new qi(this.builder, "Arg", this.typename).argBuilder());
7225
+ super(...e), el(this, "arg", new qi(this.builder, "Arg", this.typename).argBuilder());
7226
7226
  }
7227
7227
  }
7228
7228
  class ho extends pi {
@@ -7399,10 +7399,10 @@ function en(t, e, n) {
7399
7399
  writable: !0
7400
7400
  }) : t[e] = n, t;
7401
7401
  }
7402
- let il = _t, rl = On;
7403
- class sl extends te {
7402
+ let tl = _t, nl = On;
7403
+ class il extends te {
7404
7404
  constructor(e) {
7405
- super("Enum", e), en(this, "kind", "Enum"), en(this, "$inferType", void 0), en(this, "$inferInput", void 0), en(this, il, void 0), en(this, rl, void 0);
7405
+ super("Enum", e), en(this, "kind", "Enum"), en(this, "$inferType", void 0), en(this, "$inferInput", void 0), en(this, tl, void 0), en(this, nl, void 0);
7406
7406
  }
7407
7407
  }
7408
7408
  function Gn(t, e, n) {
@@ -7413,13 +7413,13 @@ function Gn(t, e, n) {
7413
7413
  writable: !0
7414
7414
  }) : t[e] = n, t;
7415
7415
  }
7416
- let ol = On;
7416
+ let rl = On;
7417
7417
  class po extends te {
7418
7418
  constructor(e) {
7419
- super("InputObject", e), Gn(this, "kind", "InputObject"), Gn(this, "$inferInput", void 0), Gn(this, ol, void 0);
7419
+ super("InputObject", e), Gn(this, "kind", "InputObject"), Gn(this, "$inferInput", void 0), Gn(this, rl, void 0);
7420
7420
  }
7421
7421
  }
7422
- class al extends po {
7422
+ class sl extends po {
7423
7423
  implement(e) {
7424
7424
  return this.builder.inputType(this, e), this;
7425
7425
  }
@@ -7435,13 +7435,13 @@ function un(t, e, n) {
7435
7435
  writable: !0
7436
7436
  }) : t[e] = n, t;
7437
7437
  }
7438
- let ul = _t, cl = Ht;
7438
+ let ol = _t, al = Ht;
7439
7439
  class go extends te {
7440
7440
  constructor(e) {
7441
- super("Interface", e), un(this, "kind", "Interface"), un(this, "$inferType", void 0), un(this, ul, void 0), un(this, cl, void 0);
7441
+ super("Interface", e), un(this, "kind", "Interface"), un(this, "$inferType", void 0), un(this, ol, void 0), un(this, al, void 0);
7442
7442
  }
7443
7443
  }
7444
- class ll extends go {
7444
+ class ul extends go {
7445
7445
  implement(e) {
7446
7446
  return this.builder.interfaceType(this, e);
7447
7447
  }
@@ -7457,13 +7457,13 @@ function cn(t, e, n) {
7457
7457
  writable: !0
7458
7458
  }) : t[e] = n, t;
7459
7459
  }
7460
- let fl = _t, dl = Ht;
7460
+ let cl = _t, ll = Ht;
7461
7461
  class Bi extends te {
7462
7462
  constructor(e) {
7463
- super("Object", e), cn(this, "kind", "Object"), cn(this, "$inferType", void 0), cn(this, fl, void 0), cn(this, dl, void 0);
7463
+ super("Object", e), cn(this, "kind", "Object"), cn(this, "$inferType", void 0), cn(this, cl, void 0), cn(this, ll, void 0);
7464
7464
  }
7465
7465
  }
7466
- class hl extends Bi {
7466
+ class fl extends Bi {
7467
7467
  implement(e) {
7468
7468
  return this.builder.objectType(this, e);
7469
7469
  }
@@ -7479,10 +7479,10 @@ function Mn(t, e, n) {
7479
7479
  writable: !0
7480
7480
  }) : t[e] = n, t;
7481
7481
  }
7482
- let pl = _t, gl = Ht;
7483
- class ml extends te {
7482
+ let dl = _t, hl = Ht;
7483
+ class pl extends te {
7484
7484
  constructor(e) {
7485
- super("Union", e), Mn(this, "kind", "Union"), Mn(this, "$inferType", void 0), Mn(this, pl, void 0), Mn(this, gl, void 0);
7485
+ super("Union", e), Mn(this, "kind", "Union"), Mn(this, "$inferType", void 0), Mn(this, dl, void 0), Mn(this, hl, void 0);
7486
7486
  }
7487
7487
  }
7488
7488
  function xt(t, e, n) {
@@ -7620,7 +7620,7 @@ let cr = class {
7620
7620
  });
7621
7621
  }
7622
7622
  unionType(e, n) {
7623
- const i = new ml(e);
7623
+ const i = new pl(e);
7624
7624
  Array.isArray(n.types) && n.types.forEach((s) => {
7625
7625
  et(s);
7626
7626
  });
@@ -7638,11 +7638,11 @@ let cr = class {
7638
7638
  }
7639
7639
  enumType(e, n) {
7640
7640
  et(e);
7641
- const i = typeof e == "string" ? e : n.name, r = new sl(i), s = typeof e == "object" ? Uc(
7641
+ const i = typeof e == "string" ? e : n.name, r = new il(i), s = typeof e == "object" ? Mc(
7642
7642
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
7643
7643
  e,
7644
7644
  n == null ? void 0 : n.values
7645
- ) : jc(n.values), o = {
7645
+ ) : Pc(n.values), o = {
7646
7646
  kind: "Enum",
7647
7647
  graphqlKind: "Enum",
7648
7648
  name: i,
@@ -7692,13 +7692,13 @@ let cr = class {
7692
7692
  return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new qi(this, "InputObject", i))), r;
7693
7693
  }
7694
7694
  inputRef(e) {
7695
- return new al(this, e);
7695
+ return new sl(this, e);
7696
7696
  }
7697
7697
  objectRef(e) {
7698
- return new hl(this, e);
7698
+ return new fl(this, e);
7699
7699
  }
7700
7700
  interfaceRef(e) {
7701
- return new ll(this, e);
7701
+ return new ul(this, e);
7702
7702
  }
7703
7703
  toSchema(...e) {
7704
7704
  const [n = {}] = e, { directives: i, extensions: r } = n;
@@ -7711,7 +7711,7 @@ let cr = class {
7711
7711
  ].forEach((l) => {
7712
7712
  this.configStore.hasConfig(l.name) || this.addScalarType(l.name, l);
7713
7713
  });
7714
- const o = new Gc(this, n);
7714
+ const o = new qc(this, n);
7715
7715
  o.plugin.beforeBuild(), o.buildAll();
7716
7716
  const a = [
7717
7717
  ...o.types.values()
@@ -7723,10 +7723,10 @@ let cr = class {
7723
7723
  directives: i,
7724
7724
  types: a
7725
7725
  }), c = o.plugin.afterBuild(u);
7726
- return n.sortSchema === !1 ? c : vc(c);
7726
+ return n.sortSchema === !1 ? c : Sc(c);
7727
7727
  }
7728
7728
  constructor(e) {
7729
- xt(this, "configStore", void 0), xt(this, "options", void 0), xt(this, "defaultFieldNullability", void 0), xt(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new Jc();
7729
+ xt(this, "configStore", void 0), xt(this, "options", void 0), xt(this, "defaultFieldNullability", void 0), xt(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new Hc();
7730
7730
  var n;
7731
7731
  this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
7732
7732
  var i;
@@ -7735,7 +7735,7 @@ let cr = class {
7735
7735
  };
7736
7736
  xt(cr, "plugins", {});
7737
7737
  xt(cr, "allowPluginReRegistration", !1);
7738
- const yl = cr, gt = {
7738
+ const gl = cr, gt = {
7739
7739
  red: "\x1B[31m",
7740
7740
  yellow: "\x1B[33m",
7741
7741
  magenta: "\x1B[35m",
@@ -7748,32 +7748,32 @@ const yl = cr, gt = {
7748
7748
  error: 3,
7749
7749
  silent: 4
7750
7750
  }, jn = () => {
7751
- }, gi = (t) => (...e) => console.log(t, ...e), bl = console.debug ? (...t) => console.debug(Br, ...t) : gi(Br), El = console.info ? (...t) => console.info(Vr, ...t) : gi(Vr), Tl = console.warn ? (...t) => console.warn(Ur, ...t) : gi(Ur), wl = console.error ? (...t) => console.error(qr, ...t) : gi(qr), Ri = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
7751
+ }, gi = (t) => (...e) => console.log(t, ...e), ml = console.debug ? (...t) => console.debug(Br, ...t) : gi(Br), yl = console.info ? (...t) => console.info(Vr, ...t) : gi(Vr), bl = console.warn ? (...t) => console.warn(Ur, ...t) : gi(Ur), Tl = console.error ? (...t) => console.error(qr, ...t) : gi(qr), Ri = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
7752
7752
  const n = tn[t];
7753
7753
  return {
7754
- debug: n > tn.debug ? jn : bl,
7755
- info: n > tn.info ? jn : El,
7756
- warn: n > tn.warn ? jn : Tl,
7757
- error: n > tn.error ? jn : wl
7754
+ debug: n > tn.debug ? jn : ml,
7755
+ info: n > tn.info ? jn : yl,
7756
+ warn: n > tn.warn ? jn : bl,
7757
+ error: n > tn.error ? jn : Tl
7758
7758
  };
7759
- }, Sl = '<!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 crossorigin rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.4/dist/graphiql.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.3.4/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
7760
- function Il({ headers: t, method: e }) {
7759
+ }, El = '<!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 crossorigin rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.4/dist/graphiql.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.3.4/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
7760
+ function wl({ headers: t, method: e }) {
7761
7761
  var n;
7762
7762
  return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
7763
7763
  }
7764
- const vl = (t) => Sl.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
7765
- function _l(t) {
7764
+ const Sl = (t) => El.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
7765
+ function Il(t) {
7766
7766
  const e = t.logger ?? console;
7767
7767
  let n;
7768
7768
  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 = () => ({});
7769
- const i = (t == null ? void 0 : t.render) ?? vl;
7769
+ const i = (t == null ? void 0 : t.render) ?? Sl;
7770
7770
  let r;
7771
7771
  const s = ({ URLPattern: o }) => (r || (r = new o({
7772
7772
  pathname: t.graphqlEndpoint
7773
7773
  })), r);
7774
7774
  return {
7775
7775
  async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: c, url: l }) {
7776
- if (Il(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || l.pathname === t.graphqlEndpoint || l.pathname === `${t.graphqlEndpoint}/` || s(u).test(l))) {
7776
+ if (wl(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || l.pathname === t.graphqlEndpoint || l.pathname === `${t.graphqlEndpoint}/` || s(u).test(l))) {
7777
7777
  e.debug("Rendering GraphiQL");
7778
7778
  const h = await n(o, a);
7779
7779
  if (h) {
@@ -7791,7 +7791,7 @@ function _l(t) {
7791
7791
  }
7792
7792
  };
7793
7793
  }
7794
- const Ol = (t) => {
7794
+ const vl = (t) => {
7795
7795
  if (t == null)
7796
7796
  return {};
7797
7797
  if (Xs(t))
@@ -7850,7 +7850,7 @@ function mi(t, e) {
7850
7850
  case "function":
7851
7851
  return t.name ? `[function ${t.name}]` : "[function]";
7852
7852
  case "object":
7853
- return Nl(t, e);
7853
+ return _l(t, e);
7854
7854
  default:
7855
7855
  return String(t);
7856
7856
  }
@@ -7859,7 +7859,7 @@ function Gr(t) {
7859
7859
  return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
7860
7860
  ${t.stack}`;
7861
7861
  }
7862
- function Nl(t, e) {
7862
+ function _l(t, e) {
7863
7863
  if (t === null)
7864
7864
  return "null";
7865
7865
  if (t instanceof Error)
@@ -7868,20 +7868,20 @@ function Nl(t, e) {
7868
7868
  if (e.includes(t))
7869
7869
  return "[Circular]";
7870
7870
  const n = [...e, t];
7871
- if (Fl(t)) {
7871
+ if (Ol(t)) {
7872
7872
  const i = t.toJSON();
7873
7873
  if (i !== t)
7874
7874
  return typeof i == "string" ? i : mi(i, n);
7875
7875
  } else if (Array.isArray(t))
7876
7876
  return Qr(t, n);
7877
- return Rl(t, n);
7877
+ return Nl(t, n);
7878
7878
  }
7879
- function Fl(t) {
7879
+ function Ol(t) {
7880
7880
  return typeof t.toJSON == "function";
7881
7881
  }
7882
- function Rl(t, e) {
7882
+ function Nl(t, e) {
7883
7883
  const n = Object.entries(t);
7884
- return n.length === 0 ? "{}" : e.length > mo ? "[" + Al(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + mi(s, e)).join(", ") + " }";
7884
+ return n.length === 0 ? "{}" : e.length > mo ? "[" + Fl(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + mi(s, e)).join(", ") + " }";
7885
7885
  }
7886
7886
  function Qr(t, e) {
7887
7887
  if (t.length === 0)
@@ -7893,7 +7893,7 @@ function Qr(t, e) {
7893
7893
  i.push(mi(t[r], e));
7894
7894
  return "[" + i.join(", ") + "]";
7895
7895
  }
7896
- function Al(t) {
7896
+ function Fl(t) {
7897
7897
  const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
7898
7898
  if (e === "Object" && typeof t.constructor == "function") {
7899
7899
  const n = t.constructor.name;
@@ -7902,7 +7902,7 @@ function Al(t) {
7902
7902
  }
7903
7903
  return e;
7904
7904
  }
7905
- const Cl = [
7905
+ const Rl = [
7906
7906
  "message",
7907
7907
  "locations",
7908
7908
  "path",
@@ -7914,11 +7914,11 @@ const Cl = [
7914
7914
  "stack",
7915
7915
  "extensions"
7916
7916
  ];
7917
- function kl(t) {
7918
- return t != null && typeof t == "object" && Object.keys(t).every((e) => Cl.includes(e));
7917
+ function Al(t) {
7918
+ return t != null && typeof t == "object" && Object.keys(t).every((e) => Rl.includes(e));
7919
7919
  }
7920
7920
  function L(t, e) {
7921
- return e != null && e.originalError && !(e.originalError instanceof Error) && kl(e.originalError) && (e.originalError = L(e.originalError.message, e.originalError)), Ps.major >= 17 ? new w(t, e) : new w(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);
7921
+ return e != null && e.originalError && !(e.originalError instanceof Error) && Al(e.originalError) && (e.originalError = L(e.originalError.message, e.originalError)), Ps.major >= 17 ? new w(t, e) : new w(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);
7922
7922
  }
7923
7923
  function ln(t, e, n) {
7924
7924
  if (ne(t)) {
@@ -7938,7 +7938,7 @@ function ln(t, e, n) {
7938
7938
  }
7939
7939
  return e(t);
7940
7940
  }
7941
- function xl(t) {
7941
+ function Cl(t) {
7942
7942
  return t != null && typeof t == "object" && Symbol.iterator in t;
7943
7943
  }
7944
7944
  function yo(t) {
@@ -7947,7 +7947,7 @@ function yo(t) {
7947
7947
  function ne(t) {
7948
7948
  return (t == null ? void 0 : t.then) != null;
7949
7949
  }
7950
- function Dl(t, e, n) {
7950
+ function kl(t, e, n) {
7951
7951
  let i = n;
7952
7952
  for (const r of t)
7953
7953
  i = ln(i, (s) => e(s, r));
@@ -7956,7 +7956,7 @@ function Dl(t, e, n) {
7956
7956
  function bo(t, e) {
7957
7957
  return Object.prototype.hasOwnProperty.call(t, e);
7958
7958
  }
7959
- function Eo(t, e, n = {}) {
7959
+ function To(t, e, n = {}) {
7960
7960
  const i = {}, s = (e.arguments ?? []).reduce((o, a) => ({
7961
7961
  ...o,
7962
7962
  [a.name.value]: a
@@ -7991,7 +7991,7 @@ function Eo(t, e, n = {}) {
7991
7991
  throw L(`Argument "${o}" of non-null type "${Se(a)}" must not be null.`, {
7992
7992
  nodes: [l]
7993
7993
  });
7994
- const d = Et(l, a, n);
7994
+ const d = Tt(l, a, n);
7995
7995
  if (d === void 0)
7996
7996
  throw L(`Argument "${o}" has invalid value ${ce(l)}.`, {
7997
7997
  nodes: [l]
@@ -8011,7 +8011,7 @@ function yi(t) {
8011
8011
  return r;
8012
8012
  };
8013
8013
  }
8014
- function Ll(t) {
8014
+ function xl(t) {
8015
8015
  const e = /* @__PURE__ */ new WeakMap();
8016
8016
  return function(i, r, s) {
8017
8017
  let o = e.get(i);
@@ -8036,7 +8036,7 @@ function Ll(t) {
8036
8036
  return u;
8037
8037
  };
8038
8038
  }
8039
- function $l(t) {
8039
+ function Dl(t) {
8040
8040
  const e = /* @__PURE__ */ new WeakMap();
8041
8041
  return function(i, r, s, o, a) {
8042
8042
  let u = e.get(i);
@@ -8083,15 +8083,15 @@ function $l(t) {
8083
8083
  return d;
8084
8084
  };
8085
8085
  }
8086
- function Pl(t, e, n) {
8087
- const r = Ml(t).get(e);
8086
+ function Ll(t, e, n) {
8087
+ const r = $l(t).get(e);
8088
8088
  if (r == null)
8089
8089
  throw L(`Schema is not configured to execute ${e} operation.`, {
8090
8090
  nodes: n
8091
8091
  });
8092
8092
  return r;
8093
8093
  }
8094
- const Ml = yi(function(e) {
8094
+ const $l = yi(function(e) {
8095
8095
  const n = /* @__PURE__ */ new Map(), i = e.getQueryType();
8096
8096
  i && n.set("query", i);
8097
8097
  const r = e.getMutationType();
@@ -8102,7 +8102,7 @@ const Ml = yi(function(e) {
8102
8102
  function Qn(t) {
8103
8103
  return (t == null ? void 0 : t.then) != null;
8104
8104
  }
8105
- function jl(t) {
8105
+ function Pl(t) {
8106
8106
  return Qn(t) ? t : {
8107
8107
  then() {
8108
8108
  return this;
@@ -8138,7 +8138,7 @@ function Gt(t) {
8138
8138
  [Symbol.toStringTag]: "Promise"
8139
8139
  };
8140
8140
  }
8141
- function To(t, e, n, i) {
8141
+ function Eo(t, e, n, i) {
8142
8142
  Symbol.asyncIterator in t && (t = t[Symbol.asyncIterator]());
8143
8143
  let r, s;
8144
8144
  typeof t.return == "function" && (r = t.return, s = (u) => {
@@ -8164,7 +8164,7 @@ function To(t, e, n, i) {
8164
8164
  return r ? r.call(t).then(o, a) : Gt({ value: void 0, done: !0 });
8165
8165
  },
8166
8166
  throw(u) {
8167
- return typeof t.throw == "function" ? t.throw(u).then(o, a) : s ? s(u) : jl(u);
8167
+ return typeof t.throw == "function" ? t.throw(u).then(o, a) : s ? s(u) : Pl(u);
8168
8168
  },
8169
8169
  [Symbol.asyncIterator]() {
8170
8170
  return this;
@@ -8183,7 +8183,7 @@ class si extends Map {
8183
8183
  i === void 0 ? this.set(e, [n]) : i.push(n);
8184
8184
  }
8185
8185
  }
8186
- const Ul = new st({
8186
+ const Ml = new st({
8187
8187
  name: "defer",
8188
8188
  description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
8189
8189
  locations: [D.FRAGMENT_SPREAD, D.INLINE_FRAGMENT],
@@ -8198,7 +8198,7 @@ const Ul = new st({
8198
8198
  description: "Unique name"
8199
8199
  }
8200
8200
  }
8201
- }), Vl = new st({
8201
+ }), jl = new st({
8202
8202
  name: "stream",
8203
8203
  description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
8204
8204
  locations: [D.FIELD],
@@ -8225,7 +8225,7 @@ function Dt(t, e, n, i, r, s, o, a) {
8225
8225
  case p.FIELD: {
8226
8226
  if (!Ai(n, u))
8227
8227
  continue;
8228
- s.add(ql(u), u);
8228
+ s.add(Ul(u), u);
8229
8229
  break;
8230
8230
  }
8231
8231
  case p.INLINE_FRAGMENT: {
@@ -8282,17 +8282,17 @@ function zr(t, e, n) {
8282
8282
  const r = Ie(t, i);
8283
8283
  return r === n ? !0 : nt(r) ? t.getPossibleTypes(r).includes(n) : !1;
8284
8284
  }
8285
- function ql(t) {
8285
+ function Ul(t) {
8286
8286
  return t.alias ? t.alias.value : t.name.value;
8287
8287
  }
8288
8288
  function Hr(t, e) {
8289
- const n = Bt(Ul, e, t);
8289
+ const n = Bt(Ml, e, t);
8290
8290
  if (n && n.if !== !1)
8291
8291
  return {
8292
8292
  label: typeof n.label == "string" ? n.label : void 0
8293
8293
  };
8294
8294
  }
8295
- const Bl = $l(function(e, n, i, r, s) {
8295
+ const Vl = Dl(function(e, n, i, r, s) {
8296
8296
  const o = new si(), a = /* @__PURE__ */ new Set(), u = [], c = {
8297
8297
  fields: o,
8298
8298
  patches: u
@@ -8314,10 +8314,10 @@ function fe(t) {
8314
8314
  e.push(n.key), n = n.prev;
8315
8315
  return e.reverse();
8316
8316
  }
8317
- function Gl(t) {
8317
+ function ql(t) {
8318
8318
  return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
8319
8319
  }
8320
- const Ql = yi(function(e) {
8320
+ const Bl = yi(function(e) {
8321
8321
  const n = /* @__PURE__ */ new Set();
8322
8322
  return e.addEventListener("abort", (i) => {
8323
8323
  for (const r of n)
@@ -8329,7 +8329,7 @@ function lr(t, e) {
8329
8329
  e();
8330
8330
  return;
8331
8331
  }
8332
- Ql(t).add(e);
8332
+ Bl(t).add(e);
8333
8333
  }
8334
8334
  const So = yi(function(e) {
8335
8335
  return new Promise((n, i) => {
@@ -8342,10 +8342,10 @@ const So = yi(function(e) {
8342
8342
  });
8343
8343
  });
8344
8344
  });
8345
- function Kl(t) {
8345
+ function Gl(t) {
8346
8346
  return t != null && typeof t.then == "function";
8347
8347
  }
8348
- const zl = (t) => {
8348
+ const Ql = (t) => {
8349
8349
  throw t;
8350
8350
  };
8351
8351
  class xe {
@@ -8358,7 +8358,7 @@ class xe {
8358
8358
  this.state = { status: "rejected", value: i };
8359
8359
  return;
8360
8360
  }
8361
- if (Kl(n)) {
8361
+ if (Gl(n)) {
8362
8362
  this.state = { status: "pending", value: n };
8363
8363
  return;
8364
8364
  }
@@ -8368,7 +8368,7 @@ class xe {
8368
8368
  const i = this.state;
8369
8369
  if (i.status === "pending")
8370
8370
  return new xe(() => i.value.then(e, n));
8371
- const r = typeof n == "function" ? n : zl;
8371
+ const r = typeof n == "function" ? n : Ql;
8372
8372
  if (i.status === "rejected")
8373
8373
  return new xe(() => r(i.value));
8374
8374
  try {
@@ -8408,7 +8408,7 @@ class xe {
8408
8408
  })) : new xe(() => Promise.all(s)) : new xe(() => s);
8409
8409
  }
8410
8410
  }
8411
- class Hl extends Error {
8411
+ class Kl extends Error {
8412
8412
  // eslint-disable-next-line n/handle-callback-err
8413
8413
  constructor(n, i, r) {
8414
8414
  super(r);
@@ -8425,13 +8425,13 @@ const be = {
8425
8425
  return Symbol.asyncDispose || Symbol.for("asyncDispose");
8426
8426
  }
8427
8427
  };
8428
- function Wl(t) {
8428
+ function zl(t) {
8429
8429
  return (t == null ? void 0 : t[be.dispose]) != null;
8430
8430
  }
8431
- function Jl(t) {
8431
+ function Hl(t) {
8432
8432
  return (t == null ? void 0 : t[be.asyncDispose]) != null;
8433
8433
  }
8434
- const Wr = globalThis.SuppressedError || Hl;
8434
+ const Wr = globalThis.SuppressedError || Kl;
8435
8435
  var vs, _s;
8436
8436
  class fr {
8437
8437
  constructor() {
@@ -8443,7 +8443,7 @@ class fr {
8443
8443
  return this.callbacks.length === 0;
8444
8444
  }
8445
8445
  use(e) {
8446
- return Jl(e) ? this.callbacks.push(() => e[be.asyncDispose]()) : Wl(e) && this.callbacks.push(() => e[be.dispose]()), e;
8446
+ return Hl(e) ? this.callbacks.push(() => e[be.asyncDispose]()) : zl(e) && this.callbacks.push(() => e[be.dispose]()), e;
8447
8447
  }
8448
8448
  adopt(e, n) {
8449
8449
  return n && this.callbacks.push(() => n(e)), e;
@@ -8486,7 +8486,7 @@ class fr {
8486
8486
  }
8487
8487
  }
8488
8488
  }
8489
- const Yl = globalThis.AsyncDisposableStack || fr;
8489
+ const Wl = globalThis.AsyncDisposableStack || fr;
8490
8490
  function Xe(t) {
8491
8491
  if (t instanceof Error)
8492
8492
  return t;
@@ -8498,7 +8498,7 @@ function Xe(t) {
8498
8498
  }
8499
8499
  return new Error(String(t));
8500
8500
  }
8501
- function Xl(t) {
8501
+ function Jl(t) {
8502
8502
  const e = t[Symbol.asyncIterator]();
8503
8503
  let n, i, r = !1;
8504
8504
  async function s() {
@@ -8557,10 +8557,10 @@ async function Yr(t, e) {
8557
8557
  }
8558
8558
  return i.then(() => n);
8559
8559
  }
8560
- function Zl(t, e, n, i) {
8560
+ function Yl(t, e, n, i) {
8561
8561
  const r = [], s = i == null ? void 0 : i.maxErrors;
8562
8562
  try {
8563
- const o = ef(t, e, n, (a) => {
8563
+ const o = Xl(t, e, n, (a) => {
8564
8564
  if (s != null && r.length >= s)
8565
8565
  throw L("Too many errors processing variables, error limit reached. Execution aborted.");
8566
8566
  r.push(a);
@@ -8572,7 +8572,7 @@ function Zl(t, e, n, i) {
8572
8572
  }
8573
8573
  return { errors: r };
8574
8574
  }
8575
- function ef(t, e, n, i) {
8575
+ function Xl(t, e, n, i) {
8576
8576
  const r = {};
8577
8577
  for (const s of e) {
8578
8578
  const o = s.variable.name.value, a = Ie(t, s.type);
@@ -8583,7 +8583,7 @@ function ef(t, e, n, i) {
8583
8583
  }
8584
8584
  if (!bo(n, o)) {
8585
8585
  if (s.defaultValue)
8586
- r[o] = Et(s.defaultValue, a);
8586
+ r[o] = Tt(s.defaultValue, a);
8587
8587
  else if (B(a)) {
8588
8588
  const c = Se(a);
8589
8589
  i(L(`Variable "$${o}" of required type "${c}" was not provided.`, {
@@ -8600,9 +8600,9 @@ function ef(t, e, n, i) {
8600
8600
  }));
8601
8601
  continue;
8602
8602
  }
8603
- r[o] = Zu(u, a, (c, l, h) => {
8603
+ r[o] = Yu(u, a, (c, l, h) => {
8604
8604
  let d = `Variable "$${o}" got invalid value ` + Se(l);
8605
- c.length > 0 && (d += ` at "${o}${Gl(c)}"`), i(L(d + "; " + h.message, {
8605
+ c.length > 0 && (d += ` at "${o}${ql(c)}"`), i(L(d + "; " + h.message, {
8606
8606
  nodes: s,
8607
8607
  originalError: h
8608
8608
  }));
@@ -8610,8 +8610,8 @@ function ef(t, e, n, i) {
8610
8610
  }
8611
8611
  return r;
8612
8612
  }
8613
- const tf = Ll((t, e, n) => Bl(t.schema, t.fragments, t.variableValues, e, n));
8614
- function nf(t) {
8613
+ const Zl = xl((t, e, n) => Vl(t.schema, t.fragments, t.variableValues, e, n));
8614
+ function ef(t) {
8615
8615
  const e = vo(t);
8616
8616
  return "schema" in e ? Io(e) : {
8617
8617
  errors: e.map((n) => {
@@ -8630,14 +8630,14 @@ function nf(t) {
8630
8630
  }
8631
8631
  function Io(t) {
8632
8632
  var n;
8633
- return (n = t.signal) == null || n.throwIfAborted(), new xe(() => of(t)).then((i) => {
8633
+ return (n = t.signal) == null || n.throwIfAborted(), new xe(() => rf(t)).then((i) => {
8634
8634
  const r = Xr(i, t.errors);
8635
8635
  return t.subsequentPayloads.size > 0 ? {
8636
8636
  initialResult: {
8637
8637
  ...r,
8638
8638
  hasNext: !0
8639
8639
  },
8640
- subsequentResults: Sf(t)
8640
+ subsequentResults: Ef(t)
8641
8641
  } : r;
8642
8642
  }, (i) => {
8643
8643
  var r;
@@ -8647,7 +8647,7 @@ function Io(t) {
8647
8647
  function Xr(t, e) {
8648
8648
  return e.length === 0 ? { data: t } : { errors: e, data: t };
8649
8649
  }
8650
- const rf = yi(function(e) {
8650
+ const tf = yi(function(e) {
8651
8651
  const n = /* @__PURE__ */ Object.create(null);
8652
8652
  for (const i of e.definitions)
8653
8653
  i.kind === p.FRAGMENT_DEFINITION && (n[i.name.value] = i);
@@ -8657,7 +8657,7 @@ function vo(t) {
8657
8657
  var v;
8658
8658
  const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: c, signal: l } = t;
8659
8659
  Zs(e);
8660
- const h = rf(n);
8660
+ const h = tf(n);
8661
8661
  let d;
8662
8662
  for (const $ of n.definitions)
8663
8663
  switch ($.kind) {
@@ -8673,7 +8673,7 @@ function vo(t) {
8673
8673
  }
8674
8674
  if (d == null)
8675
8675
  return o != null ? [L(`Unknown operation named "${o}".`)] : [L("Must provide an operation.")];
8676
- const g = d.variableDefinitions ?? [], y = Zl(e, g, s ?? {}, {
8676
+ const g = d.variableDefinitions ?? [], y = Yl(e, g, s ?? {}, {
8677
8677
  maxErrors: 50
8678
8678
  });
8679
8679
  return y.errors ? y.errors : {
@@ -8684,14 +8684,14 @@ function vo(t) {
8684
8684
  operation: d,
8685
8685
  variableValues: y.coerced,
8686
8686
  fieldResolver: a ?? ns,
8687
- typeResolver: u ?? hf,
8687
+ typeResolver: u ?? ff,
8688
8688
  subscribeFieldResolver: c ?? ns,
8689
8689
  subsequentPayloads: /* @__PURE__ */ new Set(),
8690
8690
  errors: [],
8691
8691
  signal: l
8692
8692
  };
8693
8693
  }
8694
- function sf(t, e) {
8694
+ function nf(t, e) {
8695
8695
  return {
8696
8696
  ...t,
8697
8697
  rootValue: e,
@@ -8699,22 +8699,22 @@ function sf(t, e) {
8699
8699
  errors: []
8700
8700
  };
8701
8701
  }
8702
- function of(t) {
8703
- const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Pl(n, e.operation, [e]);
8702
+ function rf(t) {
8703
+ const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Ll(n, e.operation, [e]);
8704
8704
  o == null && L(`Schema is not configured to execute ${e.operation} operation.`, {
8705
8705
  nodes: e
8706
8706
  });
8707
8707
  const { fields: a, patches: u } = wo(n, i, r, o, e.selectionSet), c = void 0;
8708
8708
  let l;
8709
- e.operation === "mutation" ? l = af(t, o, s, c, a) : l = dr(t, o, s, c, a);
8709
+ e.operation === "mutation" ? l = sf(t, o, s, c, a) : l = dr(t, o, s, c, a);
8710
8710
  for (const h of u) {
8711
8711
  const { label: d, fields: g } = h;
8712
8712
  Ao(t, o, s, g, d, c);
8713
8713
  }
8714
8714
  return l;
8715
8715
  }
8716
- function af(t, e, n, i, r) {
8717
- return Dl(r, (s, [o, a]) => {
8716
+ function sf(t, e, n, i, r) {
8717
+ return kl(r, (s, [o, a]) => {
8718
8718
  var c;
8719
8719
  const u = Wt(i, o, e.name);
8720
8720
  return (c = t.signal) == null || c.throwIfAborted(), new xe(() => _o(t, e, n, a, u)).then((l) => (l === void 0 || (s[o] = l), s));
@@ -8745,7 +8745,7 @@ function _o(t, e, n, i, r, s) {
8745
8745
  return;
8746
8746
  const u = a.type, c = a.resolve ?? t.fieldResolver, l = Oo(t, a, i, e, r);
8747
8747
  try {
8748
- const h = Eo(a, i[0], t.variableValues), d = t.contextValue, g = c(n, h, d, l);
8748
+ const h = To(a, i[0], t.variableValues), d = t.contextValue, g = c(n, h, d, l);
8749
8749
  let y;
8750
8750
  return ne(g) ? y = g.then((v) => mt(t, u, i, l, r, v, s)) : y = mt(t, u, i, l, r, g, s), ne(y) ? y.then(void 0, (v) => {
8751
8751
  if (v instanceof AggregateError)
@@ -8783,10 +8783,10 @@ function Oo(t, e, n, i, r) {
8783
8783
  signal: t.signal
8784
8784
  };
8785
8785
  }
8786
- const uf = "CRITICAL_ERROR";
8786
+ const of = "CRITICAL_ERROR";
8787
8787
  function Le(t, e, n) {
8788
8788
  var i;
8789
- if (B(e) || (i = t.extensions) != null && i[uf])
8789
+ if (B(e) || (i = t.extensions) != null && i[of])
8790
8790
  throw t;
8791
8791
  return n.push(t), null;
8792
8792
  }
@@ -8802,11 +8802,11 @@ function mt(t, e, n, i, r, s, o) {
8802
8802
  if (s == null)
8803
8803
  return null;
8804
8804
  if (pe(e))
8805
- return lf(t, e, n, i, r, s, o);
8805
+ return uf(t, e, n, i, r, s, o);
8806
8806
  if (ht(e))
8807
- return ff(e, s);
8807
+ return cf(e, s);
8808
8808
  if (nt(e))
8809
- return df(t, e, n, i, r, s, o);
8809
+ return lf(t, e, n, i, r, s, o);
8810
8810
  if (Y(e))
8811
8811
  return Gi(t, e, n, i, r, s, o);
8812
8812
  console.assert(!1, "Cannot complete value of unexpected output type: " + Se(e));
@@ -8814,14 +8814,14 @@ function mt(t, e, n, i, r, s, o) {
8814
8814
  function No(t, e, n) {
8815
8815
  if (typeof n.key == "number")
8816
8816
  return;
8817
- const i = Bt(Vl, e[0], t.variableValues);
8817
+ const i = Bt(jl, e[0], t.variableValues);
8818
8818
  if (i && i.if !== !1)
8819
8819
  return Jr(typeof i.initialCount == "number", "initialCount must be a number"), Jr(i.initialCount >= 0, "initialCount must be a positive integer"), {
8820
8820
  initialCount: i.initialCount,
8821
8821
  label: typeof i.label == "string" ? i.label : void 0
8822
8822
  };
8823
8823
  }
8824
- async function cf(t, e, n, i, r, s, o) {
8824
+ async function af(t, e, n, i, r, s, o) {
8825
8825
  t.signal && s.return && lr(t.signal, () => {
8826
8826
  var d;
8827
8827
  (d = s.return) == null || d.call(s);
@@ -8832,7 +8832,7 @@ async function cf(t, e, n, i, r, s, o) {
8832
8832
  let h = 0;
8833
8833
  for (; ; ) {
8834
8834
  if (u && typeof u.initialCount == "number" && h >= u.initialCount) {
8835
- Tf(h, s, t, n, i, e, r, u.label, o);
8835
+ bf(h, s, t, n, i, e, r, u.label, o);
8836
8836
  break;
8837
8837
  }
8838
8838
  const d = Wt(r, h, void 0);
@@ -8849,13 +8849,13 @@ async function cf(t, e, n, i, r, s, o) {
8849
8849
  }
8850
8850
  return c ? Promise.all(l) : l;
8851
8851
  }
8852
- function lf(t, e, n, i, r, s, o) {
8852
+ function uf(t, e, n, i, r, s, o) {
8853
8853
  const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
8854
8854
  if (bi(s)) {
8855
8855
  const y = s[Symbol.asyncIterator]();
8856
- return cf(t, a, n, i, r, y, o);
8856
+ return af(t, a, n, i, r, y, o);
8857
8857
  }
8858
- if (!xl(s))
8858
+ if (!Cl(s))
8859
8859
  throw L(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
8860
8860
  const c = No(t, n, r);
8861
8861
  let l = !1, h = o;
@@ -8864,7 +8864,7 @@ function lf(t, e, n, i, r, s, o) {
8864
8864
  for (const y of s) {
8865
8865
  const v = Wt(r, g, void 0);
8866
8866
  if (c && typeof c.initialCount == "number" && g >= c.initialCount) {
8867
- h = bf(r, v, y, t, n, i, a, c.label, h), g++;
8867
+ h = mf(r, v, y, t, n, i, a, c.label, h), g++;
8868
8868
  continue;
8869
8869
  }
8870
8870
  Fo(y, d, u, t, a, n, i, v, o) && (l = !0), g++;
@@ -8887,7 +8887,7 @@ function Fo(t, e, n, i, r, s, o, a, u) {
8887
8887
  }
8888
8888
  return !1;
8889
8889
  }
8890
- function ff(t, e) {
8890
+ function cf(t, e) {
8891
8891
  let n;
8892
8892
  try {
8893
8893
  n = t.serialize(e);
@@ -8898,7 +8898,7 @@ function ff(t, e) {
8898
8898
  throw new Error(`Expected \`${Se(t)}.serialize(${Se(e)})\` to return non-nullable value, returned: ${Se(n)}`);
8899
8899
  return n;
8900
8900
  }
8901
- function df(t, e, n, i, r, s, o) {
8901
+ function lf(t, e, n, i, r, s, o) {
8902
8902
  const a = e.resolveType ?? t.typeResolver, u = t.contextValue, c = a(s, u, i, e);
8903
8903
  return ne(c) ? c.then((l) => Gi(t, Zr(l, t, e, n, i, s), n, i, r, s, o)) : Gi(t, Zr(c, t, e, n, i, s), n, i, r, s, o);
8904
8904
  }
@@ -8941,14 +8941,14 @@ function es(t, e, n) {
8941
8941
  });
8942
8942
  }
8943
8943
  function ts(t, e, n, i, r, s) {
8944
- const { fields: o, patches: a } = tf(t, e, n), u = dr(t, e, r, i, o, s);
8944
+ const { fields: o, patches: a } = Zl(t, e, n), u = dr(t, e, r, i, o, s);
8945
8945
  for (const c of a) {
8946
8946
  const { label: l, fields: h } = c;
8947
8947
  Ao(t, e, r, h, l, i, s);
8948
8948
  }
8949
8949
  return u;
8950
8950
  }
8951
- const hf = function(t, e, n, i) {
8951
+ const ff = function(t, e, n, i) {
8952
8952
  if (yo(t) && typeof t.__typename == "string")
8953
8953
  return t.__typename;
8954
8954
  const r = n.schema.getPossibleTypes(i), s = [];
@@ -8974,7 +8974,7 @@ const hf = function(t, e, n, i) {
8974
8974
  return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
8975
8975
  }
8976
8976
  };
8977
- function pf(t) {
8977
+ function df(t) {
8978
8978
  const e = vo(t);
8979
8979
  if (!("schema" in e))
8980
8980
  return {
@@ -8991,7 +8991,7 @@ function pf(t) {
8991
8991
  }), i;
8992
8992
  })
8993
8993
  };
8994
- const n = mf(e);
8994
+ const n = pf(e);
8995
8995
  return ne(n) ? n.then((i) => is(e, i)) : is(e, n);
8996
8996
  }
8997
8997
  function Ro(t) {
@@ -9019,11 +9019,11 @@ function Ro(t) {
9019
9019
  }
9020
9020
  };
9021
9021
  }
9022
- async function* gf(t) {
9022
+ async function* hf(t) {
9023
9023
  "initialResult" in t ? yield* Ro(t) : yield t;
9024
9024
  }
9025
9025
  function is(t, e) {
9026
- return bi(e) ? Xl(To(e, async (n) => gf(await Io(sf(t, n))), (n) => {
9026
+ return bi(e) ? Jl(Eo(e, async (n) => hf(await Io(nf(t, n))), (n) => {
9027
9027
  throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => rs(i, t.operation)), n.message) : rs(n, t.operation);
9028
9028
  })) : e;
9029
9029
  }
@@ -9033,15 +9033,15 @@ function rs(t, e) {
9033
9033
  nodes: [e]
9034
9034
  });
9035
9035
  }
9036
- function mf(t) {
9036
+ function pf(t) {
9037
9037
  try {
9038
- const e = yf(t);
9038
+ const e = gf(t);
9039
9039
  return ne(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
9040
9040
  } catch (e) {
9041
9041
  return { errors: [e] };
9042
9042
  }
9043
9043
  }
9044
- function yf(t) {
9044
+ function gf(t) {
9045
9045
  const { schema: e, fragments: n, operation: i, variableValues: r, rootValue: s } = t, o = e.getSubscriptionType();
9046
9046
  if (o == null)
9047
9047
  throw L("Schema is not configured to execute subscription operation.", {
@@ -9054,7 +9054,7 @@ function yf(t) {
9054
9054
  });
9055
9055
  const d = Wt(void 0, u, o.name), g = Oo(t, h, c, o, d);
9056
9056
  try {
9057
- const y = Eo(h, c[0], r), v = t.contextValue, _ = (h.subscribe ?? t.subscribeFieldResolver)(s, y, v, g);
9057
+ const y = To(h, c[0], r), v = t.contextValue, _ = (h.subscribe ?? t.subscribeFieldResolver)(s, y, v, g);
9058
9058
  return ne(_) ? _.then(ss).then(void 0, (S) => {
9059
9059
  throw we(S, c, fe(d));
9060
9060
  }) : ss(_, t.signal);
@@ -9078,7 +9078,7 @@ function ss(t, e) {
9078
9078
  } : t;
9079
9079
  }
9080
9080
  function Ao(t, e, n, i, r, s, o) {
9081
- const a = new If({
9081
+ const a = new wf({
9082
9082
  label: r,
9083
9083
  path: s,
9084
9084
  parentContext: o,
@@ -9092,7 +9092,7 @@ function Ao(t, e, n, i, r, s, o) {
9092
9092
  }
9093
9093
  a.addData(u);
9094
9094
  }
9095
- function bf(t, e, n, i, r, s, o, a, u) {
9095
+ function mf(t, e, n, i, r, s, o, a, u) {
9096
9096
  const c = new Co({
9097
9097
  label: a,
9098
9098
  path: e,
@@ -9117,7 +9117,7 @@ function bf(t, e, n, i, r, s, o, a, u) {
9117
9117
  let h;
9118
9118
  return ne(l) ? h = l.then((d) => [d], (d) => (c.errors.push(d), Ae(i, t, c), null)) : h = [l], c.addItems(h), c;
9119
9119
  }
9120
- async function Ef(t, e, n, i, r, s, o) {
9120
+ async function yf(t, e, n, i, r, s, o) {
9121
9121
  let a;
9122
9122
  try {
9123
9123
  const { value: c, done: l } = await t.next();
@@ -9139,7 +9139,7 @@ async function Ef(t, e, n, i, r, s, o) {
9139
9139
  return Ae(e, o, s), { done: !1, value: h };
9140
9140
  }
9141
9141
  }
9142
- async function Tf(t, e, n, i, r, s, o, a, u) {
9142
+ async function bf(t, e, n, i, r, s, o, a, u) {
9143
9143
  let c = t, l = u ?? void 0;
9144
9144
  for (; ; ) {
9145
9145
  const h = Wt(o, c, void 0), d = new Co({
@@ -9151,7 +9151,7 @@ async function Tf(t, e, n, i, r, s, o, a, u) {
9151
9151
  });
9152
9152
  let g;
9153
9153
  try {
9154
- g = await Ef(e, n, i, r, s, d, h);
9154
+ g = await yf(e, n, i, r, s, d, h);
9155
9155
  } catch (_) {
9156
9156
  d.errors.push(_), Ae(n, o, d), d.addItems(null), e != null && e.return && e.return().catch(() => {
9157
9157
  });
@@ -9177,7 +9177,7 @@ function Ae(t, e, n) {
9177
9177
  }
9178
9178
  });
9179
9179
  }
9180
- function wf(t) {
9180
+ function Tf(t) {
9181
9181
  const e = [];
9182
9182
  for (const n of t.subsequentPayloads) {
9183
9183
  const i = {};
@@ -9196,7 +9196,7 @@ function wf(t) {
9196
9196
  }
9197
9197
  return e;
9198
9198
  }
9199
- function Sf(t) {
9199
+ function Ef(t) {
9200
9200
  let e = !1;
9201
9201
  const n = t.signal ? So(t.signal) : void 0;
9202
9202
  async function i() {
@@ -9205,7 +9205,7 @@ function Sf(t) {
9205
9205
  const s = Array.from(t.subsequentPayloads).map((u) => u.promise);
9206
9206
  if (n ? await Promise.race([n, ...s]) : await Promise.race(s), e)
9207
9207
  return { value: void 0, done: !0 };
9208
- const o = wf(t), a = t.subsequentPayloads.size > 0;
9208
+ const o = Tf(t), a = t.subsequentPayloads.size > 0;
9209
9209
  return !o.length && a ? i() : (a || (e = !0), {
9210
9210
  value: o.length ? { incremental: o, hasNext: a } : { hasNext: a },
9211
9211
  done: !1
@@ -9234,7 +9234,7 @@ function Sf(t) {
9234
9234
  }
9235
9235
  };
9236
9236
  }
9237
- class If {
9237
+ class wf {
9238
9238
  constructor(e) {
9239
9239
  F(this, "type");
9240
9240
  F(this, "errors");
@@ -9310,45 +9310,45 @@ function os(t) {
9310
9310
  const e = ur(t.document, t.operationName);
9311
9311
  if (e == null)
9312
9312
  throw new Error("Must provide an operation.");
9313
- return e.operation === "subscription" ? pf(t) : new xe(() => nf(t)).then((n) => "initialResult" in n ? Ro(n) : n).resolve();
9313
+ return e.operation === "subscription" ? df(t) : new xe(() => ef(t)).then((n) => "initialResult" in n ? Ro(n) : n).resolve();
9314
9314
  }
9315
9315
  var H = {}, as;
9316
- function vf() {
9316
+ function Sf() {
9317
9317
  return as || (as = 1, H.fetch = globalThis.fetch, H.Headers = globalThis.Headers, H.Request = globalThis.Request, H.Response = globalThis.Response, H.FormData = globalThis.FormData, H.ReadableStream = globalThis.ReadableStream, H.WritableStream = globalThis.WritableStream, H.TransformStream = globalThis.TransformStream, H.CompressionStream = globalThis.CompressionStream, H.DecompressionStream = globalThis.DecompressionStream, H.TextDecoderStream = globalThis.TextDecoderStream, H.TextEncoderStream = globalThis.TextEncoderStream, H.Blob = globalThis.Blob, H.File = globalThis.File, H.crypto = globalThis.crypto, H.btoa = globalThis.btoa, H.TextEncoder = globalThis.TextEncoder, H.TextDecoder = globalThis.TextDecoder, H.URLPattern = globalThis.URLPattern, H.URL = globalThis.URL, H.URLSearchParams = globalThis.URLSearchParams, H.createFetch = () => globalThis), H;
9318
9318
  }
9319
- var Ei = /* @__PURE__ */ vf();
9320
- const _f = /* @__PURE__ */ ga(Ei), xo = /* @__PURE__ */ ma({
9319
+ var Ti = /* @__PURE__ */ Sf();
9320
+ const If = /* @__PURE__ */ ha(Ti), xo = /* @__PURE__ */ pa({
9321
9321
  __proto__: null,
9322
- default: _f
9323
- }, [Ei]);
9322
+ default: If
9323
+ }, [Ti]);
9324
9324
  function Do(t) {
9325
9325
  return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
9326
9326
  }
9327
- function Of(t) {
9327
+ function vf(t) {
9328
9328
  var i, r, s, o, a;
9329
9329
  if ((i = t.socket) != null && i.localPort)
9330
9330
  return (r = t.socket) == null ? void 0 : r.localPort;
9331
9331
  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];
9332
9332
  return n || 80;
9333
9333
  }
9334
- function Nf(t) {
9334
+ function _f(t) {
9335
9335
  var i, r, s, o, a;
9336
9336
  if ((i = t.headers) != null && i[":authority"])
9337
9337
  return (r = t.headers) == null ? void 0 : r[":authority"];
9338
9338
  if ((s = t.headers) != null && s.host)
9339
9339
  return (o = t.headers) == null ? void 0 : o.host;
9340
- const e = Of(t);
9340
+ const e = vf(t);
9341
9341
  if (t.hostname)
9342
9342
  return t.hostname + ":" + e;
9343
9343
  const n = (a = t.socket) == null ? void 0 : a.localAddress;
9344
9344
  return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
9345
9345
  }
9346
- function Ff(t) {
9346
+ function Of(t) {
9347
9347
  var r;
9348
- const e = Nf(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
9348
+ const e = _f(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
9349
9349
  return `${n}://${e}${i}`;
9350
9350
  }
9351
- function Rf(t) {
9351
+ function Nf(t) {
9352
9352
  const e = t[Symbol.toStringTag];
9353
9353
  return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || Do(t));
9354
9354
  }
@@ -9378,10 +9378,10 @@ class Lo extends EventTarget {
9378
9378
  }
9379
9379
  let us = !1;
9380
9380
  const Qi = /* @__PURE__ */ new WeakMap();
9381
- function Af(t, e, n) {
9381
+ function Ff(t, e, n) {
9382
9382
  var c, l, h, d;
9383
9383
  const i = t.raw || t.req || t;
9384
- let r = Ff(i);
9384
+ let r = Of(i);
9385
9385
  if (t.query) {
9386
9386
  const g = new e.URL(r);
9387
9387
  for (const y in t.query)
@@ -9420,7 +9420,7 @@ function Af(t, e, n) {
9420
9420
  });
9421
9421
  const u = t.body;
9422
9422
  if (u != null && Object.keys(u).length > 0) {
9423
- if (Rf(u))
9423
+ if (Nf(u))
9424
9424
  return new e.Request(r, {
9425
9425
  method: t.method,
9426
9426
  headers: a,
@@ -9476,26 +9476,26 @@ It will affect your performance. Please check our Bun integration recipe, and av
9476
9476
  function pr(t) {
9477
9477
  return t.read != null;
9478
9478
  }
9479
- function Cf(t) {
9479
+ function Rf(t) {
9480
9480
  return pr(t);
9481
9481
  }
9482
9482
  function cs(t) {
9483
9483
  return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
9484
9484
  }
9485
- function kf(t) {
9485
+ function Af(t) {
9486
9486
  return t != null && t.getReader != null;
9487
9487
  }
9488
- function xf(t) {
9488
+ function Cf(t) {
9489
9489
  return t != null && t.request != null && t.respondWith != null;
9490
9490
  }
9491
- function Df(t) {
9491
+ function kf(t) {
9492
9492
  var e, n, i, r, s, o;
9493
9493
  (n = (e = t == null ? void 0 : t.socket) == null ? void 0 : e.setTimeout) == null || n.call(e, 0), (r = (i = t == null ? void 0 : t.socket) == null ? void 0 : i.setNoDelay) == null || r.call(i, !0), (o = (s = t == null ? void 0 : t.socket) == null ? void 0 : s.setKeepAlive) == null || o.call(s, !0);
9494
9494
  }
9495
9495
  function Lt(t) {
9496
9496
  t.end(null, null, null);
9497
9497
  }
9498
- async function Lf(t, e) {
9498
+ async function xf(t, e) {
9499
9499
  let n = !1;
9500
9500
  const i = () => {
9501
9501
  n = !0;
@@ -9551,18 +9551,18 @@ function ls(t, e, n) {
9551
9551
  e.write(s), Lt(e);
9552
9552
  return;
9553
9553
  }
9554
- if (Df(n), pr(s)) {
9554
+ if (kf(n), pr(s)) {
9555
9555
  e.once("close", () => {
9556
9556
  s.destroy();
9557
9557
  }), s.pipe(e);
9558
9558
  return;
9559
9559
  }
9560
- if (kf(s))
9561
- return $f(e, s);
9560
+ if (Af(s))
9561
+ return Df(e, s);
9562
9562
  if (Do(s))
9563
- return Lf(e, s);
9563
+ return xf(e, s);
9564
9564
  }
9565
- async function $f(t, e) {
9565
+ async function Df(t, e) {
9566
9566
  const n = e.getReader();
9567
9567
  for (t.req.once("error", (i) => {
9568
9568
  n.cancel(i);
@@ -9574,7 +9574,7 @@ async function $f(t, e) {
9574
9574
  }
9575
9575
  Lt(t);
9576
9576
  }
9577
- function Pf(t) {
9577
+ function Lf(t) {
9578
9578
  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);
9579
9579
  }
9580
9580
  function fn(...t) {
@@ -9623,7 +9623,7 @@ function ds(t, e) {
9623
9623
  waitUntil: e
9624
9624
  }, t);
9625
9625
  }
9626
- function Mf() {
9626
+ function $f() {
9627
9627
  let t, e;
9628
9628
  return {
9629
9629
  promise: new Promise(function(r, s) {
@@ -9639,7 +9639,7 @@ function Mf() {
9639
9639
  }
9640
9640
  function hs(t, e) {
9641
9641
  if (De(t) && e) {
9642
- const n = Mf();
9642
+ const n = $f();
9643
9643
  return e.addEventListener("abort", function() {
9644
9644
  n.reject(e.reason);
9645
9645
  }), t.then(function(r) {
@@ -9650,26 +9650,26 @@ function hs(t, e) {
9650
9650
  }
9651
9651
  return t;
9652
9652
  }
9653
- const jf = ["SIGINT", "exit", "SIGTERM"], Kn = /* @__PURE__ */ new Set();
9653
+ const Pf = ["SIGINT", "exit", "SIGTERM"], Kn = /* @__PURE__ */ new Set();
9654
9654
  let ps = !1;
9655
- function Uf() {
9655
+ function Mf() {
9656
9656
  if (!ps) {
9657
9657
  ps = !0;
9658
- for (const t of jf)
9658
+ for (const t of Pf)
9659
9659
  globalThis.process.once(t, function() {
9660
9660
  return Promise.allSettled([...Kn].map((n) => !n.disposed && n.disposeAsync()));
9661
9661
  });
9662
9662
  }
9663
9663
  }
9664
- function Vf(t) {
9665
- globalThis.process && (Uf(), Kn.has(t) || (Kn.add(t), t.defer(() => {
9664
+ function jf(t) {
9665
+ globalThis.process && (Mf(), Kn.has(t) || (Kn.add(t), t.defer(() => {
9666
9666
  Kn.delete(t);
9667
9667
  })));
9668
9668
  }
9669
- function qf(t) {
9669
+ function Uf(t) {
9670
9670
  return !!t.onData;
9671
9671
  }
9672
- function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9672
+ function Vf({ req: t, res: e, fetchAPI: n, signal: i }) {
9673
9673
  const r = t.getMethod();
9674
9674
  let s;
9675
9675
  const o = [], a = [
@@ -9677,8 +9677,8 @@ function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9677
9677
  o.push(m);
9678
9678
  }
9679
9679
  ], u = (m) => {
9680
- for (const T of a)
9681
- T(m);
9680
+ for (const E of a)
9681
+ E(m);
9682
9682
  };
9683
9683
  let c = !1;
9684
9684
  const l = [
@@ -9689,8 +9689,8 @@ function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9689
9689
  for (const m of l)
9690
9690
  m();
9691
9691
  };
9692
- e.onData(function(m, T) {
9693
- u(Buffer.from(Buffer.from(m, 0, m.byteLength))), T && h();
9692
+ e.onData(function(m, E) {
9693
+ u(Buffer.from(Buffer.from(m, 0, m.byteLength))), E && h();
9694
9694
  });
9695
9695
  let d;
9696
9696
  if (r !== "get" && r !== "head") {
@@ -9699,24 +9699,24 @@ function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9699
9699
  });
9700
9700
  let m;
9701
9701
  d = () => (m || (m = new n.ReadableStream({
9702
- start(T) {
9703
- for (const E of o)
9704
- T.enqueue(E);
9702
+ start(E) {
9703
+ for (const T of o)
9704
+ E.enqueue(T);
9705
9705
  if (c) {
9706
- T.close();
9706
+ E.close();
9707
9707
  return;
9708
9708
  }
9709
- a.push((E) => {
9710
- T.enqueue(E);
9709
+ a.push((T) => {
9710
+ E.enqueue(T);
9711
9711
  }), l.push(() => {
9712
- T.desiredSize && T.close();
9712
+ E.desiredSize && E.close();
9713
9713
  });
9714
9714
  }
9715
9715
  })), m);
9716
9716
  }
9717
9717
  const g = new n.Headers();
9718
- t.forEach((m, T) => {
9719
- g.append(m, T);
9718
+ t.forEach((m, E) => {
9719
+ g.append(m, E);
9720
9720
  });
9721
9721
  let y = `http://localhost${t.getUrl()}`;
9722
9722
  const v = t.getQuery();
@@ -9740,13 +9740,13 @@ function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9740
9740
  return $ || ($ = o.length === 1 ? o[0] : Buffer.concat(o)), $;
9741
9741
  }
9742
9742
  function O() {
9743
- return c ? rt(A()) : new Promise((m, T) => {
9743
+ return c ? rt(A()) : new Promise((m, E) => {
9744
9744
  try {
9745
9745
  l.push(() => {
9746
9746
  m(A());
9747
9747
  });
9748
- } catch (E) {
9749
- T(E);
9748
+ } catch (T) {
9749
+ E(T);
9750
9750
  }
9751
9751
  });
9752
9752
  }
@@ -9781,7 +9781,7 @@ function Bf({ req: t, res: e, fetchAPI: n, signal: i }) {
9781
9781
  }
9782
9782
  }), S;
9783
9783
  }
9784
- function Gf(t, e) {
9784
+ function qf(t, e) {
9785
9785
  return new e.WritableStream({
9786
9786
  write(n) {
9787
9787
  t.cork(() => {
@@ -9821,7 +9821,7 @@ function gs(t, e, n, i) {
9821
9821
  return n.addEventListener("abort", () => {
9822
9822
  var s, o;
9823
9823
  (s = e.body) != null && s.locked || (o = e.body) == null || o.cancel(n.reason);
9824
- }), e.body.pipeTo(Gf(t, i), {
9824
+ }), e.body.pipeTo(qf(t, i), {
9825
9825
  signal: n
9826
9826
  }).catch((s) => {
9827
9827
  if (!n.aborted)
@@ -9850,22 +9850,22 @@ function rt(t) {
9850
9850
  [Symbol.toStringTag]: "Promise"
9851
9851
  };
9852
9852
  }
9853
- function Qf(t) {
9853
+ function Bf(t) {
9854
9854
  try {
9855
9855
  return !!(t != null && t.request);
9856
9856
  } catch {
9857
9857
  return !1;
9858
9858
  }
9859
9859
  }
9860
- const Kf = {};
9861
- function zf(t, e) {
9860
+ const Gf = {};
9861
+ function Qf(t, e) {
9862
9862
  const n = {
9863
9863
  ...xo,
9864
9864
  ...e == null ? void 0 : e.fetchAPI
9865
9865
  }, i = typeof t == "function" ? t : t.handle, r = [], s = [], o = /* @__PURE__ */ new Set();
9866
9866
  let a;
9867
9867
  function u() {
9868
- return a || (a = new Yl(), e != null && e.disposeOnProcessTerminate && Vf(a), a.defer(() => {
9868
+ return a || (a = new Wl(), e != null && e.disposeOnProcessTerminate && jf(a), a.defer(() => {
9869
9869
  if (o.size > 0)
9870
9870
  return Promise.allSettled(o).then(() => {
9871
9871
  o.clear();
@@ -9877,33 +9877,33 @@ function zf(t, e) {
9877
9877
  function c(m) {
9878
9878
  De(m) && (u(), o.add(m), m.then(() => {
9879
9879
  o.delete(m);
9880
- }, (T) => {
9881
- console.error(`Unexpected error while waiting: ${T.message || T}`), o.delete(m);
9880
+ }, (E) => {
9881
+ console.error(`Unexpected error while waiting: ${E.message || E}`), o.delete(m);
9882
9882
  }));
9883
9883
  }
9884
9884
  if ((e == null ? void 0 : e.plugins) != null)
9885
9885
  for (const m of e.plugins) {
9886
9886
  m.onRequest && r.push(m.onRequest), m.onResponse && s.push(m.onResponse);
9887
- const T = m[be.dispose];
9888
- T && u().defer(T);
9889
- const E = m[be.asyncDispose];
9890
- E && u().defer(E), m.onDispose && u().defer(m.onDispose);
9887
+ const E = m[be.dispose];
9888
+ E && u().defer(E);
9889
+ const T = m[be.asyncDispose];
9890
+ T && u().defer(T), m.onDispose && u().defer(m.onDispose);
9891
9891
  }
9892
- const l = r.length > 0 || s.length > 0 ? function(T, E) {
9892
+ const l = r.length > 0 || s.length > 0 ? function(E, T) {
9893
9893
  let k = i, P;
9894
9894
  if (r.length === 0)
9895
9895
  return $e();
9896
- let N = T.parsedUrl || new Proxy(Kf, {
9897
- get(le, Ee, z) {
9898
- return N = new n.URL(T.url, "http://localhost"), Reflect.get(N, Ee, N);
9896
+ let N = E.parsedUrl || new Proxy(Gf, {
9897
+ get(le, Te, z) {
9898
+ return N = new n.URL(E.url, "http://localhost"), Reflect.get(N, Te, N);
9899
9899
  }
9900
9900
  });
9901
- const x = fs(r, (le, Ee) => le({
9902
- request: T,
9901
+ const x = fs(r, (le, Te) => le({
9902
+ request: E,
9903
9903
  setRequest(z) {
9904
- T = z;
9904
+ E = z;
9905
9905
  },
9906
- serverContext: E,
9906
+ serverContext: T,
9907
9907
  fetchAPI: n,
9908
9908
  url: N,
9909
9909
  requestHandler: k,
@@ -9911,70 +9911,70 @@ function zf(t, e) {
9911
9911
  k = z;
9912
9912
  },
9913
9913
  endResponse(z) {
9914
- P = z, z && Ee();
9914
+ P = z, z && Te();
9915
9915
  }
9916
9916
  }));
9917
9917
  function J(le) {
9918
9918
  if (s.length === 0)
9919
9919
  return le;
9920
- const Ee = {
9921
- request: T,
9920
+ const Te = {
9921
+ request: E,
9922
9922
  response: le,
9923
- serverContext: E,
9923
+ serverContext: T,
9924
9924
  setResponse(W) {
9925
9925
  le = W;
9926
9926
  },
9927
9927
  fetchAPI: n
9928
- }, z = fs(s, (W) => W(Ee));
9928
+ }, z = fs(s, (W) => W(Te));
9929
9929
  return De(z) ? z.then(() => le) : le;
9930
9930
  }
9931
9931
  function $e() {
9932
9932
  if (!P) {
9933
- const le = k(T, E);
9933
+ const le = k(E, T);
9934
9934
  return De(le) ? le.then(J) : J(le);
9935
9935
  }
9936
9936
  return J(P);
9937
9937
  }
9938
9938
  return De(x) ? x.then($e) : $e();
9939
9939
  } : i;
9940
- function h(m, ...T) {
9941
- const E = T.length > 1 ? fn(...T) : T[0] || {};
9942
- E.waitUntil || (E.waitUntil = c);
9943
- const k = Af(m, n);
9944
- return l(k, E);
9940
+ function h(m, ...E) {
9941
+ const T = E.length > 1 ? fn(...E) : E[0] || {};
9942
+ T.waitUntil || (T.waitUntil = c);
9943
+ const k = Ff(m, n);
9944
+ return l(k, T);
9945
9945
  }
9946
- function d(m, T, ...E) {
9947
- const k = T.raw || T;
9948
- return Qi.set(m, k), h(m, ...E);
9946
+ function d(m, E, ...T) {
9947
+ const k = E.raw || E;
9948
+ return Qi.set(m, k), h(m, ...T);
9949
9949
  }
9950
- function g(m, T, ...E) {
9950
+ function g(m, E, ...T) {
9951
9951
  const k = {
9952
9952
  req: m,
9953
- res: T,
9953
+ res: E,
9954
9954
  waitUntil: c
9955
9955
  };
9956
9956
  let P;
9957
9957
  try {
9958
- P = d(m, T, k, ...E);
9958
+ P = d(m, E, k, ...T);
9959
9959
  } catch (N) {
9960
9960
  P = Un(N, n.Response);
9961
9961
  }
9962
9962
  if (De(P))
9963
- return P.catch((N) => Un(N, n.Response)).then((N) => ls(N, T, m)).catch((N) => {
9963
+ return P.catch((N) => Un(N, n.Response)).then((N) => ls(N, E, m)).catch((N) => {
9964
9964
  console.error(`Unexpected error while handling request: ${N.message || N}`);
9965
9965
  });
9966
9966
  try {
9967
- return ls(P, T, m);
9967
+ return ls(P, E, m);
9968
9968
  } catch (N) {
9969
9969
  console.error(`Unexpected error while handling request: ${N.message || N}`);
9970
9970
  }
9971
9971
  }
9972
- function y(m, T, ...E) {
9972
+ function y(m, E, ...T) {
9973
9973
  const k = {
9974
9974
  res: m,
9975
- req: T,
9975
+ req: E,
9976
9976
  waitUntil: c
9977
- }, N = E.filter((W) => W != null).length > 0 ? fn(k, ...E) : k, x = new Lo(), J = m.end.bind(m);
9977
+ }, N = T.filter((W) => W != null).length > 0 ? fn(k, ...T) : k, x = new Lo(), J = m.end.bind(m);
9978
9978
  let $e = !1;
9979
9979
  m.end = function(W) {
9980
9980
  return $e = !0, J(W);
@@ -9983,15 +9983,15 @@ function zf(t, e) {
9983
9983
  }), m.onAborted = function(W) {
9984
9984
  x.addEventListener("abort", W);
9985
9985
  };
9986
- const Ee = Bf({
9987
- req: T,
9986
+ const Te = Vf({
9987
+ req: E,
9988
9988
  res: m,
9989
9989
  fetchAPI: n,
9990
9990
  signal: x
9991
9991
  });
9992
9992
  let z;
9993
9993
  try {
9994
- z = l(Ee, N);
9994
+ z = l(Te, N);
9995
9995
  } catch (W) {
9996
9996
  z = Un(W, n.Response);
9997
9997
  }
@@ -10011,40 +10011,40 @@ ${W.stack || W.message || W}`);
10011
10011
  ${W.stack || W.message || W}`);
10012
10012
  }
10013
10013
  }
10014
- function v(m, ...T) {
10014
+ function v(m, ...E) {
10015
10015
  if (!m.respondWith || !m.request)
10016
10016
  throw new TypeError(`Expected FetchEvent, got ${m}`);
10017
- const E = T.filter((N) => N != null), k = E.length > 0 ? fn({}, m, ...E) : ds(m), P = l(m.request, k);
10017
+ const T = E.filter((N) => N != null), k = T.length > 0 ? fn({}, m, ...T) : ds(m), P = l(m.request, k);
10018
10018
  m.respondWith(P);
10019
10019
  }
10020
- function $(m, ...T) {
10021
- const E = T.filter((P) => P != null), k = E.length > 1 ? fn({}, ...E) : ds(E[0], E[0] == null || E[0].waitUntil == null ? c : void 0);
10020
+ function $(m, ...E) {
10021
+ const T = E.filter((P) => P != null), k = T.length > 1 ? fn({}, ...T) : ds(T[0], T[0] == null || T[0].waitUntil == null ? c : void 0);
10022
10022
  return l(m, k);
10023
10023
  }
10024
- const _ = (m, ...T) => {
10024
+ const _ = (m, ...E) => {
10025
10025
  if (typeof m == "string" || "href" in m) {
10026
- const [k, ...P] = T;
10027
- if (Pf(k)) {
10026
+ const [k, ...P] = E;
10027
+ if (Lf(k)) {
10028
10028
  const x = new n.Request(m, k), J = $(x, ...P);
10029
10029
  return hs(J, k == null ? void 0 : k.signal);
10030
10030
  }
10031
10031
  const N = new n.Request(m);
10032
- return $(N, ...T);
10033
- }
10034
- const E = $(m, ...T);
10035
- return hs(E, m._signal);
10036
- }, S = (m, ...T) => {
10037
- const [E, ...k] = T;
10038
- if (Cf(m)) {
10039
- if (!cs(E))
10040
- throw new TypeError(`Expected ServerResponse, got ${E}`);
10041
- return g(m, E, ...k);
10042
- }
10043
- if (qf(m))
10044
- return y(m, E, ...k);
10045
- if (cs(E))
10032
+ return $(N, ...E);
10033
+ }
10034
+ const T = $(m, ...E);
10035
+ return hs(T, m._signal);
10036
+ }, S = (m, ...E) => {
10037
+ const [T, ...k] = E;
10038
+ if (Rf(m)) {
10039
+ if (!cs(T))
10040
+ throw new TypeError(`Expected ServerResponse, got ${T}`);
10041
+ return g(m, T, ...k);
10042
+ }
10043
+ if (Uf(m))
10044
+ return y(m, T, ...k);
10045
+ if (cs(T))
10046
10046
  throw new TypeError("Got Node response without Node request");
10047
- return Qf(m) ? xf(m) ? v(m, ...T) : $(m.request, m, ...T) : _(m, ...T);
10047
+ return Bf(m) ? Cf(m) ? v(m, ...E) : $(m.request, m, ...E) : _(m, ...E);
10048
10048
  }, A = {
10049
10049
  handleRequest: $,
10050
10050
  fetch: _,
@@ -10065,30 +10065,30 @@ ${W.stack || W.message || W}`);
10065
10065
  }
10066
10066
  }, O = new Proxy(S, {
10067
10067
  // It should have all the attributes of the handler function and the server instance
10068
- has: (m, T) => T in A || T in S || t && T in t,
10069
- get: (m, T) => {
10070
- const E = A[T];
10071
- if (E)
10072
- return E.bind ? E.bind(A) : E;
10073
- const k = S[T];
10068
+ has: (m, E) => E in A || E in S || t && E in t,
10069
+ get: (m, E) => {
10070
+ const T = A[E];
10071
+ if (T)
10072
+ return T.bind ? T.bind(A) : T;
10073
+ const k = S[E];
10074
10074
  if (k)
10075
10075
  return k.bind ? k.bind(S) : k;
10076
10076
  if (t) {
10077
- const P = t[T];
10077
+ const P = t[E];
10078
10078
  if (P)
10079
10079
  return P.bind ? function(...N) {
10080
- const x = t[T](...N);
10080
+ const x = t[E](...N);
10081
10081
  return x === t ? O : x;
10082
10082
  } : P;
10083
10083
  }
10084
10084
  },
10085
- apply(m, T, E) {
10086
- return S(...E);
10085
+ apply(m, E, T) {
10086
+ return S(...T);
10087
10087
  }
10088
10088
  });
10089
10089
  return O;
10090
10090
  }
10091
- function Hf(t, e) {
10091
+ function Kf(t, e) {
10092
10092
  var r, s;
10093
10093
  const n = t.headers.get("origin");
10094
10094
  if (e === !1 || n == null)
@@ -10108,11 +10108,11 @@ function Hf(t, e) {
10108
10108
  }
10109
10109
  return e.credentials != null ? e.credentials === !0 && (i["Access-Control-Allow-Credentials"] = "true") : i["Access-Control-Allow-Origin"] !== "*" && (i["Access-Control-Allow-Credentials"] = "true"), e.exposedHeaders && (i["Access-Control-Expose-Headers"] = e.exposedHeaders.join(", ")), e.maxAge && (i["Access-Control-Max-Age"] = e.maxAge.toString()), i;
10110
10110
  }
10111
- async function Wf(t, e, n) {
10111
+ async function zf(t, e, n) {
10112
10112
  const i = await e(t, n);
10113
- return Hf(t, i);
10113
+ return Kf(t, i);
10114
10114
  }
10115
- function Jf(t) {
10115
+ function Hf(t) {
10116
10116
  let e = () => ({});
10117
10117
  if (t != null)
10118
10118
  if (typeof t == "function")
@@ -10139,7 +10139,7 @@ function Jf(t) {
10139
10139
  }
10140
10140
  },
10141
10141
  async onResponse({ request: n, serverContext: i, response: r }) {
10142
- const s = await Wf(n, e, i);
10142
+ const s = await zf(n, e, i);
10143
10143
  if (s != null)
10144
10144
  for (const o in s)
10145
10145
  r.headers.set(o, s[o]);
@@ -10149,7 +10149,7 @@ function Jf(t) {
10149
10149
  function ms(t) {
10150
10150
  return t.error ? t.error() : new t(null, { status: 500 });
10151
10151
  }
10152
- function Yf(t) {
10152
+ function Wf(t) {
10153
10153
  return {
10154
10154
  onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
10155
10155
  const r = t;
@@ -10164,10 +10164,10 @@ function Yf(t) {
10164
10164
  }
10165
10165
  };
10166
10166
  }
10167
- function Xf(t) {
10167
+ function Jf(t) {
10168
10168
  return t != null && typeof t == "object" && "errors" in t;
10169
10169
  }
10170
- function Zf(t) {
10170
+ function Yf(t) {
10171
10171
  return t != null && typeof t.toString == "function";
10172
10172
  }
10173
10173
  function Qt(t) {
@@ -10182,7 +10182,7 @@ function Po(t) {
10182
10182
  }
10183
10183
  function zn(t, e, n) {
10184
10184
  const i = /* @__PURE__ */ new Set();
10185
- if (Xf(t))
10185
+ if (Jf(t))
10186
10186
  for (const r of t.errors) {
10187
10187
  const s = zn(r, e, n);
10188
10188
  for (const o of s)
@@ -10201,7 +10201,7 @@ function zn(t, e, n) {
10201
10201
  extensions: {
10202
10202
  unexpected: !0
10203
10203
  }
10204
- })) : Zf(t) ? i.add(L(t.toString(), {
10204
+ })) : Yf(t) ? i.add(L(t.toString(), {
10205
10205
  extensions: {
10206
10206
  unexpected: !0
10207
10207
  }
@@ -10231,7 +10231,7 @@ function gr(t, e = {}, n = !1) {
10231
10231
  headers: e
10232
10232
  };
10233
10233
  }
10234
- function ed(t) {
10234
+ function Xf(t) {
10235
10235
  return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
10236
10236
  t.some(Qt);
10237
10237
  }
@@ -10244,40 +10244,40 @@ function Mo(t) {
10244
10244
  extensions: r ? JSON.parse(r) : void 0
10245
10245
  };
10246
10246
  }
10247
- function td(t) {
10248
- const e = new Ei.URLSearchParams(t);
10247
+ function Zf(t) {
10248
+ const e = new Ti.URLSearchParams(t);
10249
10249
  return Mo(e);
10250
10250
  }
10251
10251
  function yn(t, e) {
10252
10252
  let n = t.headers.get("content-type");
10253
10253
  return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
10254
10254
  }
10255
- function nd(t) {
10255
+ function ed(t) {
10256
10256
  return t.method === "GET";
10257
10257
  }
10258
- function id(t) {
10259
- const e = t.url.substring(t.url.indexOf("?") + 1), n = new Ei.URLSearchParams(e);
10258
+ function td(t) {
10259
+ const e = t.url.substring(t.url.indexOf("?") + 1), n = new Ti.URLSearchParams(e);
10260
10260
  return Mo(n);
10261
10261
  }
10262
- function rd(t) {
10262
+ function nd(t) {
10263
10263
  return t.method === "POST" && yn(t, "application/x-www-form-urlencoded");
10264
10264
  }
10265
- async function sd(t) {
10265
+ async function id(t) {
10266
10266
  const e = await t.text();
10267
- return td(e);
10267
+ return Zf(e);
10268
10268
  }
10269
- function od(t) {
10269
+ function rd(t) {
10270
10270
  return t.method === "POST" && yn(t, "application/graphql");
10271
10271
  }
10272
- async function ad(t) {
10272
+ async function sd(t) {
10273
10273
  return {
10274
10274
  query: await t.text()
10275
10275
  };
10276
10276
  }
10277
- function ud(t) {
10277
+ function od(t) {
10278
10278
  return t.method === "POST" && (yn(t, "application/json") || yn(t, "application/graphql+json"));
10279
10279
  }
10280
- async function cd(t) {
10280
+ async function ad(t) {
10281
10281
  let e;
10282
10282
  try {
10283
10283
  e = await t.json();
@@ -10314,15 +10314,15 @@ async function cd(t) {
10314
10314
  });
10315
10315
  return e;
10316
10316
  }
10317
- function ld(t, e, n) {
10317
+ function ud(t, e, n) {
10318
10318
  e.split && (e = e.split("."));
10319
10319
  for (var i = 0, r = e.length, s = t, o, a; i < r && (a = "" + e[i++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
10320
10320
  s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
10321
10321
  }
10322
- function fd(t) {
10322
+ function cd(t) {
10323
10323
  return t.method === "POST" && yn(t, "multipart/form-data");
10324
10324
  }
10325
- async function dd(t) {
10325
+ async function ld(t) {
10326
10326
  let e;
10327
10327
  try {
10328
10328
  e = await t.formData();
@@ -10359,13 +10359,13 @@ async function dd(t) {
10359
10359
  for (const o in s) {
10360
10360
  const a = e.get(o), u = s[o];
10361
10361
  for (const c of u)
10362
- ld(i, c, a);
10362
+ ud(i, c, a);
10363
10363
  }
10364
10364
  }
10365
10365
  return i;
10366
10366
  }
10367
- const hd = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
10368
- function pd(t, e) {
10367
+ const fd = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
10368
+ function dd(t, e) {
10369
10369
  if (t == null || typeof t != "object")
10370
10370
  throw L('Invalid "params" in the request body', {
10371
10371
  extensions: {
@@ -10376,7 +10376,7 @@ function pd(t, e) {
10376
10376
  }
10377
10377
  });
10378
10378
  for (const n in t)
10379
- if (t[n] != null && !hd.has(n)) {
10379
+ if (t[n] != null && !fd.has(n)) {
10380
10380
  if (e != null && e.includes(n))
10381
10381
  continue;
10382
10382
  throw L(`Unexpected parameter "${n}" in the request body.`, {
@@ -10388,8 +10388,8 @@ function pd(t, e) {
10388
10388
  });
10389
10389
  }
10390
10390
  }
10391
- function gd(t, e) {
10392
- if (!yd(t))
10391
+ function hd(t, e) {
10392
+ if (!gd(t))
10393
10393
  throw L(`Expected params to be an object but given ${dn(t)}.`, {
10394
10394
  extensions: {
10395
10395
  http: {
@@ -10400,7 +10400,7 @@ function gd(t, e) {
10400
10400
  }
10401
10401
  }
10402
10402
  });
10403
- if (pd(t, e), t.query == null)
10403
+ if (dd(t, e), t.query == null)
10404
10404
  throw L("Must provide query string.", {
10405
10405
  extensions: {
10406
10406
  http: {
@@ -10450,26 +10450,26 @@ function gd(t, e) {
10450
10450
  });
10451
10451
  return t;
10452
10452
  }
10453
- function md(t) {
10453
+ function pd(t) {
10454
10454
  return {
10455
10455
  onParams({ params: e }) {
10456
- gd(e, t);
10456
+ hd(e, t);
10457
10457
  }
10458
10458
  };
10459
10459
  }
10460
10460
  function dn(t) {
10461
10461
  return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
10462
10462
  }
10463
- function yd(t) {
10463
+ function gd(t) {
10464
10464
  return dn(t) === "object";
10465
10465
  }
10466
- function bd(t) {
10466
+ function md(t) {
10467
10467
  return t === "GET" || t === "POST";
10468
10468
  }
10469
- function Ed() {
10469
+ function yd() {
10470
10470
  return {
10471
10471
  onRequestParse({ request: t }) {
10472
- if (!bd(t.method))
10472
+ if (!md(t.method))
10473
10473
  throw L("GraphQL only supports GET and POST requests.", {
10474
10474
  extensions: {
10475
10475
  http: {
@@ -10483,7 +10483,7 @@ function Ed() {
10483
10483
  }
10484
10484
  };
10485
10485
  }
10486
- function Td() {
10486
+ function bd() {
10487
10487
  return {
10488
10488
  onValidate() {
10489
10489
  return ({ valid: t, result: e }) => {
@@ -10499,7 +10499,7 @@ function Td() {
10499
10499
  }
10500
10500
  };
10501
10501
  }
10502
- function wd(t) {
10502
+ function Td(t) {
10503
10503
  return {
10504
10504
  onRequestParse() {
10505
10505
  return {
@@ -10527,7 +10527,7 @@ function wd(t) {
10527
10527
  }
10528
10528
  };
10529
10529
  }
10530
- function Sd(t, e, n) {
10530
+ function Ed(t, e, n) {
10531
10531
  const i = e ? ur(e, n) ?? void 0 : void 0;
10532
10532
  if (!i)
10533
10533
  throw L("Could not determine what operation to execute.", {
@@ -10549,7 +10549,7 @@ function Sd(t, e, n) {
10549
10549
  }
10550
10550
  });
10551
10551
  }
10552
- function Id() {
10552
+ function wd() {
10553
10553
  return {
10554
10554
  onParse() {
10555
10555
  return ({ result: t, context: {
@@ -10564,13 +10564,13 @@ function Id() {
10564
10564
  spec: !0,
10565
10565
  status: 400
10566
10566
  }), t;
10567
- Sd(e.method, t, n);
10567
+ Ed(e.method, t, n);
10568
10568
  }
10569
10569
  };
10570
10570
  }
10571
10571
  };
10572
10572
  }
10573
- function vd({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
10573
+ function Sd({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
10574
10574
  return {
10575
10575
  onRequest({ endResponse: i, fetchAPI: r, request: s }) {
10576
10576
  if (s.url.endsWith(n)) {
@@ -10622,7 +10622,7 @@ if (typeof oi > "u") {
10622
10622
  t && (t = !1, Uo("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));
10623
10623
  };
10624
10624
  }
10625
- const _d = (t) => !jo.has(t), ot = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Vo = (t) => ot(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Hn : null : null;
10625
+ const Id = (t) => !jo.has(t), ot = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Vo = (t) => ot(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Hn : null : null;
10626
10626
  class Hn extends Array {
10627
10627
  constructor(e) {
10628
10628
  super(e), this.fill(0);
@@ -10655,7 +10655,7 @@ const bt = class bt {
10655
10655
  Pt = new WeakMap(), // private constructor
10656
10656
  q(bt, Pt, !1);
10657
10657
  let zi = bt;
10658
- var Ns, Fs, Me, ve, je, Ue, Mt, jt, ee, Ve, X, K, j, me, _e, de, re, qe, se, Be, Ge, Oe, Qe, lt, ye, I, Wi, Tt, tt, bn, Ne, qo, wt, Ut, En, at, ut, Ji, Wn, Jn, Q, Yi, hn, ct, Xi;
10658
+ var Ns, Fs, Me, ve, je, Ue, Mt, jt, ee, Ve, X, K, j, me, _e, de, re, qe, se, Be, Ge, Oe, Qe, lt, ye, I, Wi, Et, tt, bn, Ne, qo, wt, Ut, Tn, at, ut, Ji, Wn, Jn, Q, Yi, hn, ct, Xi;
10659
10659
  const yr = class yr {
10660
10660
  constructor(e) {
10661
10661
  q(this, I);
@@ -10745,7 +10745,7 @@ const yr = class yr {
10745
10745
  q(this, lt);
10746
10746
  q(this, ye);
10747
10747
  // conditionally set private methods related to TTL
10748
- q(this, Tt, () => {
10748
+ q(this, Et, () => {
10749
10749
  });
10750
10750
  q(this, tt, () => {
10751
10751
  });
@@ -10757,7 +10757,7 @@ const yr = class yr {
10757
10757
  });
10758
10758
  q(this, Ut, (e, n, i) => {
10759
10759
  });
10760
- q(this, En, (e, n, i, r) => {
10760
+ q(this, Tn, (e, n, i, r) => {
10761
10761
  if (i || r)
10762
10762
  throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
10763
10763
  return 0;
@@ -10768,11 +10768,11 @@ const yr = class yr {
10768
10768
  * `Object.prototype.toString`.
10769
10769
  */
10770
10770
  F(this, Ns, "LRUCache");
10771
- const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: l, noDisposeOnSet: h, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: y = 0, sizeCalculation: v, fetchMethod: $, memoMethod: _, noDeleteOnFetchRejection: S, noDeleteOnStaleGet: A, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: m, ignoreFetchAbort: T } = e;
10771
+ const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: l, noDisposeOnSet: h, noUpdateTTL: d, maxSize: g = 0, maxEntrySize: y = 0, sizeCalculation: v, fetchMethod: $, memoMethod: _, noDeleteOnFetchRejection: S, noDeleteOnStaleGet: A, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: m, ignoreFetchAbort: E } = e;
10772
10772
  if (n !== 0 && !ot(n))
10773
10773
  throw new TypeError("max option must be a nonnegative integer");
10774
- const E = n ? Vo(n) : Array;
10775
- if (!E)
10774
+ const T = n ? Vo(n) : Array;
10775
+ if (!T)
10776
10776
  throw new Error("invalid max value: " + n);
10777
10777
  if (M(this, Me, n), M(this, ve, g), this.maxEntrySize = y || f(this, ve), this.sizeCalculation = v, this.sizeCalculation) {
10778
10778
  if (!f(this, ve) && !this.maxEntrySize)
@@ -10784,7 +10784,7 @@ const yr = class yr {
10784
10784
  throw new TypeError("memoMethod must be a function if defined");
10785
10785
  if (M(this, jt, _), $ !== void 0 && typeof $ != "function")
10786
10786
  throw new TypeError("fetchMethod must be a function if specified");
10787
- if (M(this, Mt, $), M(this, lt, !!$), M(this, X, /* @__PURE__ */ new Map()), M(this, K, new Array(n).fill(void 0)), M(this, j, new Array(n).fill(void 0)), M(this, me, new E(n)), M(this, _e, new E(n)), M(this, de, 0), M(this, re, 0), M(this, qe, zi.create(n)), M(this, ee, 0), M(this, Ve, 0), typeof c == "function" && M(this, je, c), typeof l == "function" ? (M(this, Ue, l), M(this, se, [])) : (M(this, Ue, void 0), M(this, se, void 0)), M(this, Qe, !!f(this, je)), M(this, ye, !!f(this, Ue)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!m, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
10787
+ if (M(this, Mt, $), M(this, lt, !!$), M(this, X, /* @__PURE__ */ new Map()), M(this, K, new Array(n).fill(void 0)), M(this, j, new Array(n).fill(void 0)), M(this, me, new T(n)), M(this, _e, new T(n)), M(this, de, 0), M(this, re, 0), M(this, qe, zi.create(n)), M(this, ee, 0), M(this, Ve, 0), typeof c == "function" && M(this, je, c), typeof l == "function" ? (M(this, Ue, l), M(this, se, [])) : (M(this, Ue, void 0), M(this, se, void 0)), M(this, Qe, !!f(this, je)), M(this, ye, !!f(this, Ue)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!m, this.ignoreFetchAbort = !!E, this.maxEntrySize !== 0) {
10788
10788
  if (f(this, ve) !== 0 && !ot(f(this, ve)))
10789
10789
  throw new TypeError("maxSize must be a positive integer if specified");
10790
10790
  if (!ot(this.maxEntrySize))
@@ -10800,7 +10800,7 @@ const yr = class yr {
10800
10800
  throw new TypeError("At least one of max, maxSize, or ttl is required");
10801
10801
  if (!this.ttlAutopurge && !f(this, Me) && !f(this, ve)) {
10802
10802
  const k = "LRU_CACHE_UNBOUNDED";
10803
- _d(k) && (jo.add(k), Uo("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", k, yr));
10803
+ Id(k) && (jo.add(k), Uo("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", k, yr));
10804
10804
  }
10805
10805
  }
10806
10806
  /**
@@ -11136,7 +11136,7 @@ const yr = class yr {
11136
11136
  return this.delete(e), this;
11137
11137
  const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
11138
11138
  let { noUpdateTTL: c = this.noUpdateTTL } = i;
11139
- const l = f(this, En).call(this, e, n, i.size || 0, a);
11139
+ const l = f(this, Tn).call(this, e, n, i.size || 0, a);
11140
11140
  if (this.maxEntrySize && l > this.maxEntrySize)
11141
11141
  return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), R(this, I, ct).call(this, e, "set"), this;
11142
11142
  let h = f(this, ee) === 0 ? void 0 : f(this, X).get(e);
@@ -11214,7 +11214,7 @@ const yr = class yr {
11214
11214
  return !1;
11215
11215
  if (f(this, Ne).call(this, s))
11216
11216
  r && (r.has = "stale", f(this, tt).call(this, r, s));
11217
- else return i && f(this, Tt).call(this, s), r && (r.has = "hit", f(this, tt).call(this, r, s)), !0;
11217
+ else return i && f(this, Et).call(this, s), r && (r.has = "hit", f(this, tt).call(this, r, s)), !0;
11218
11218
  } else r && (r.has = "miss");
11219
11219
  return !1;
11220
11220
  }
@@ -11288,11 +11288,11 @@ const yr = class yr {
11288
11288
  const N = i && m.__staleWhileFetching !== void 0;
11289
11289
  return _ && (_.fetch = "inflight", N && (_.returnedStale = !0)), N ? m.__staleWhileFetching : m.__returned = m;
11290
11290
  }
11291
- const T = f(this, Ne).call(this, O);
11292
- if (!$ && !T)
11293
- return _ && (_.fetch = "hit"), R(this, I, hn).call(this, O), r && f(this, Tt).call(this, O), _ && f(this, tt).call(this, _, O), m;
11294
- const E = R(this, I, Jn).call(this, e, O, A, v), P = E.__staleWhileFetching !== void 0 && i;
11295
- return _ && (_.fetch = T ? "stale" : "refresh", P && T && (_.returnedStale = !0)), P ? E.__staleWhileFetching : E.__returned = E;
11291
+ const E = f(this, Ne).call(this, O);
11292
+ if (!$ && !E)
11293
+ return _ && (_.fetch = "hit"), R(this, I, hn).call(this, O), r && f(this, Et).call(this, O), _ && f(this, tt).call(this, _, O), m;
11294
+ const T = R(this, I, Jn).call(this, e, O, A, v), P = T.__staleWhileFetching !== void 0 && i;
11295
+ return _ && (_.fetch = E ? "stale" : "refresh", P && E && (_.returnedStale = !0)), P ? T.__staleWhileFetching : T.__returned = T;
11296
11296
  }
11297
11297
  }
11298
11298
  async forceFetch(e, n = {}) {
@@ -11324,7 +11324,7 @@ const yr = class yr {
11324
11324
  const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = f(this, X).get(e);
11325
11325
  if (a !== void 0) {
11326
11326
  const u = f(this, j)[a], c = R(this, I, Q).call(this, u);
11327
- return o && f(this, tt).call(this, o, a), f(this, Ne).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || R(this, I, ct).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (R(this, I, hn).call(this, a), r && f(this, Tt).call(this, a), u));
11327
+ return o && f(this, tt).call(this, o, a), f(this, Ne).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || R(this, I, ct).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (R(this, I, hn).call(this, a), r && f(this, Et).call(this, a), u));
11328
11328
  } else o && (o.get = "miss");
11329
11329
  }
11330
11330
  /**
@@ -11351,7 +11351,7 @@ Me = new WeakMap(), ve = new WeakMap(), je = new WeakMap(), Ue = new WeakMap(),
11351
11351
  }, o + 1);
11352
11352
  u.unref && u.unref();
11353
11353
  }
11354
- }), M(this, Tt, (s) => {
11354
+ }), M(this, Et, (s) => {
11355
11355
  n[s] = e[s] !== 0 ? At.now() : 0;
11356
11356
  }), M(this, tt, (s, o) => {
11357
11357
  if (e[o]) {
@@ -11386,11 +11386,11 @@ Me = new WeakMap(), ve = new WeakMap(), je = new WeakMap(), Ue = new WeakMap(),
11386
11386
  const o = n[s], a = e[s];
11387
11387
  return !!a && !!o && (i || r()) - o > a;
11388
11388
  });
11389
- }, Tt = new WeakMap(), tt = new WeakMap(), bn = new WeakMap(), Ne = new WeakMap(), qo = function() {
11389
+ }, Et = new WeakMap(), tt = new WeakMap(), bn = new WeakMap(), Ne = new WeakMap(), qo = function() {
11390
11390
  const e = new Hn(f(this, Me));
11391
11391
  M(this, Ve, 0), M(this, Be, e), M(this, wt, (n) => {
11392
11392
  M(this, Ve, f(this, Ve) - e[n]), e[n] = 0;
11393
- }), M(this, En, (n, i, r, s) => {
11393
+ }), M(this, Tn, (n, i, r, s) => {
11394
11394
  if (R(this, I, Q).call(this, i))
11395
11395
  return 0;
11396
11396
  if (!ot(r))
@@ -11410,7 +11410,7 @@ Me = new WeakMap(), ve = new WeakMap(), je = new WeakMap(), Ue = new WeakMap(),
11410
11410
  }
11411
11411
  M(this, Ve, f(this, Ve) + e[n]), r && (r.entrySize = i, r.totalCalculatedSize = f(this, Ve));
11412
11412
  });
11413
- }, wt = new WeakMap(), Ut = new WeakMap(), En = new WeakMap(), at = function* ({ allowStale: e = this.allowStale } = {}) {
11413
+ }, wt = new WeakMap(), Ut = new WeakMap(), Tn = new WeakMap(), at = function* ({ allowStale: e = this.allowStale } = {}) {
11414
11414
  if (f(this, ee))
11415
11415
  for (let n = f(this, re); !(!R(this, I, Ji).call(this, n) || ((e || !f(this, Ne).call(this, n)) && (yield n), n === f(this, de))); )
11416
11416
  n = f(this, _e)[n];
@@ -11521,11 +11521,11 @@ Me = new WeakMap(), ve = new WeakMap(), je = new WeakMap(), Ue = new WeakMap(),
11521
11521
  }
11522
11522
  };
11523
11523
  let Hi = yr;
11524
- const Od = 1024, Nd = 36e5;
11525
- function Ci({ max: t = Od, ttl: e = Nd } = {}) {
11524
+ const vd = 1024, _d = 36e5;
11525
+ function Ci({ max: t = vd, ttl: e = _d } = {}) {
11526
11526
  return new Hi({ max: t, ttl: e });
11527
11527
  }
11528
- function Fd({ documentCache: t = Ci(), errorCache: e = Ci(), validationCache: n = !0 }) {
11528
+ function Od({ documentCache: t = Ci(), errorCache: e = Ci(), validationCache: n = !0 }) {
11529
11529
  const i = Ci();
11530
11530
  return {
11531
11531
  onParse({ params: r, setParsedDocument: s }) {
@@ -11564,16 +11564,16 @@ function Fd({ documentCache: t = Ci(), errorCache: e = Ci(), validationCache: n
11564
11564
  }
11565
11565
  };
11566
11566
  }
11567
- const Rd = () => !0;
11567
+ const Nd = () => !0;
11568
11568
  function nn(t) {
11569
- const e = t.match || Rd;
11569
+ const e = t.match || Nd;
11570
11570
  return {
11571
11571
  onRequestParse({ request: n, setRequestParser: i }) {
11572
11572
  e(n) && i(t.parse);
11573
11573
  }
11574
11574
  };
11575
11575
  }
11576
- function Ad(t) {
11576
+ function Fd(t) {
11577
11577
  const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
11578
11578
  for (const i of e) {
11579
11579
  const [r, ...s] = i.split(";");
@@ -11581,7 +11581,7 @@ function Ad(t) {
11581
11581
  }
11582
11582
  return n.reverse();
11583
11583
  }
11584
- function Cd(t, e) {
11584
+ function Rd(t, e) {
11585
11585
  const [n, i] = t.split("/"), [r, s] = e.split("/");
11586
11586
  return (r === "*" || r === n) && (s === "*" || s === i);
11587
11587
  }
@@ -11620,7 +11620,7 @@ function Bo(t) {
11620
11620
  }
11621
11621
  return t;
11622
11622
  }
11623
- function kd(t, e) {
11623
+ function Ad(t, e) {
11624
11624
  const i = gr(t, {
11625
11625
  Connection: "keep-alive",
11626
11626
  "Content-Type": 'multipart/mixed; boundary="-"',
@@ -11666,7 +11666,7 @@ function kd(t, e) {
11666
11666
  });
11667
11667
  return new e.Response(o, i);
11668
11668
  }
11669
- function xd(t, e, n) {
11669
+ function Cd(t, e, n) {
11670
11670
  if (bi(t))
11671
11671
  return new e.Response(null, {
11672
11672
  status: 406,
@@ -11681,14 +11681,14 @@ function xd(t, e, n) {
11681
11681
  t,
11682
11682
  i,
11683
11683
  // prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
11684
- n === "application/json" && !Array.isArray(t) && ed(t.errors) && t.errors.some((o) => {
11684
+ n === "application/json" && !Array.isArray(t) && Xf(t.errors) && t.errors.some((o) => {
11685
11685
  var a;
11686
11686
  return !((a = o.extensions) != null && a.originalError) || Qt(o.extensions.originalError);
11687
11687
  })
11688
11688
  ), s = mr(t);
11689
11689
  return new e.Response(s, r);
11690
11690
  }
11691
- function Dd() {
11691
+ function kd() {
11692
11692
  return function(e, n) {
11693
11693
  var l, h;
11694
11694
  let i = 12e3;
@@ -11748,40 +11748,40 @@ function Dd() {
11748
11748
  return new n.Response(c, s);
11749
11749
  };
11750
11750
  }
11751
- const Ld = {
11751
+ const xd = {
11752
11752
  mediaTypes: ["multipart/mixed"],
11753
11753
  asyncIterables: !0,
11754
- processResult: kd
11754
+ processResult: Ad
11755
11755
  };
11756
- function $d() {
11756
+ function Dd() {
11757
11757
  return {
11758
11758
  mediaTypes: ["text/event-stream"],
11759
11759
  asyncIterables: !0,
11760
- processResult: Dd()
11760
+ processResult: kd()
11761
11761
  };
11762
11762
  }
11763
- const Es = {
11763
+ const Ts = {
11764
11764
  mediaTypes: ["application/graphql-response+json", "application/json"],
11765
11765
  asyncIterables: !1,
11766
- processResult: xd
11766
+ processResult: Cd
11767
11767
  };
11768
- function Pd() {
11769
- const t = /* @__PURE__ */ new WeakMap(), e = $d(), n = [e, Ld, Es], i = [e, Es];
11768
+ function Ld() {
11769
+ const t = /* @__PURE__ */ new WeakMap(), e = Dd(), n = [e, xd, Ts], i = [e, Ts];
11770
11770
  return {
11771
11771
  onSubscribe({ args: { contextValue: r } }) {
11772
11772
  r.request && t.set(r.request, !0);
11773
11773
  },
11774
11774
  onResultProcess({ request: r, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
11775
- const c = t.get(r) ? i : n, l = Ad(r), h = Je(s);
11775
+ const c = t.get(r) ? i : n, l = Fd(r), h = Je(s);
11776
11776
  for (const d of c)
11777
11777
  for (const g of l)
11778
11778
  if (!(h && !d.asyncIterables))
11779
11779
  for (const y of d.mediaTypes)
11780
- o.push(y), Cd(y, g) && a(d.processResult, y);
11780
+ o.push(y), Rd(y, g) && a(d.processResult, y);
11781
11781
  }
11782
11782
  };
11783
11783
  }
11784
- const Md = `<!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><p>Version: 5.10.10</p></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>
11784
+ const $d = `<!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><p>Version: 5.10.10</p></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>
11785
11785
  <code>
11786
11786
  import { createYoga } from 'graphql-yoga';
11787
11787
 
@@ -11797,8 +11797,8 @@ const yoga = createYoga({
11797
11797
  graphqlEndpoint: '__REQUEST_PATH__',
11798
11798
  })
11799
11799
  </code>
11800
- </pre></section></main></body></html>`, jd = function(e) {
11801
- return new e.fetchAPI.Response(Md.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
11800
+ </pre></section></main></body></html>`, Pd = function(e) {
11801
+ return new e.fetchAPI.Response($d.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
11802
11802
  status: 200,
11803
11803
  statusText: "OK",
11804
11804
  headers: {
@@ -11806,14 +11806,14 @@ const yoga = createYoga({
11806
11806
  }
11807
11807
  });
11808
11808
  };
11809
- function Ud(t) {
11809
+ function Md(t) {
11810
11810
  let e;
11811
11811
  function n({ URLPattern: r }) {
11812
11812
  return e || (e = new r({
11813
11813
  pathname: t.graphqlEndpoint
11814
11814
  })), e;
11815
11815
  }
11816
- const i = t.landingPageRenderer || jd;
11816
+ const i = t.landingPageRenderer || Pd;
11817
11817
  return {
11818
11818
  onRequest({ request: r, fetchAPI: s, endResponse: o, url: a }) {
11819
11819
  var u, c;
@@ -11841,7 +11841,7 @@ function Ud(t) {
11841
11841
  }
11842
11842
  };
11843
11843
  }
11844
- async function Ts({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i, serverContext: r }) {
11844
+ async function Es({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i, serverContext: r }) {
11845
11845
  let s;
11846
11846
  const o = [];
11847
11847
  let a = "*/*";
@@ -11867,7 +11867,7 @@ async function Ts({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i,
11867
11867
  }
11868
11868
  });
11869
11869
  }
11870
- async function Vd({ params: t, enveloped: e }) {
11870
+ async function jd({ params: t, enveloped: e }) {
11871
11871
  const n = e.parse(t.query), i = e.validate(e.schema, n);
11872
11872
  if (i.length > 0)
11873
11873
  return { errors: i };
@@ -11880,7 +11880,7 @@ async function Vd({ params: t, enveloped: e }) {
11880
11880
  }, o = ur(n, t.operationName);
11881
11881
  return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
11882
11882
  }
11883
- const qd = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
11883
+ const Ud = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
11884
11884
  if (Qt(t)) {
11885
11885
  if (t.originalError) {
11886
11886
  if (t.originalError.name === "GraphQLError")
@@ -11912,7 +11912,7 @@ const qd = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
11912
11912
  }
11913
11913
  });
11914
11914
  };
11915
- class Bd {
11915
+ class Vd {
11916
11916
  constructor(e) {
11917
11917
  /**
11918
11918
  * Instance of envelop
@@ -11966,7 +11966,7 @@ class Bd {
11966
11966
  params: o,
11967
11967
  request: e
11968
11968
  }, n));
11969
- return Ts({
11969
+ return Es({
11970
11970
  request: e,
11971
11971
  result: a,
11972
11972
  fetchAPI: this.fetchAPI,
@@ -11981,7 +11981,7 @@ class Bd {
11981
11981
  e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
11982
11982
  const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
11983
11983
  this.logger = typeof n == "boolean" ? n === !0 ? Ri() : Ri("silent") : typeof n == "string" ? Ri(n) : n;
11984
- const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || qd, r = /* @__PURE__ */ new WeakSet();
11984
+ const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || Ud, r = /* @__PURE__ */ new WeakSet();
11985
11985
  this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
11986
11986
  errorMessage: "Unexpected error.",
11987
11987
  ...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
@@ -11998,24 +11998,24 @@ class Bd {
11998
11998
  e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
11999
11999
  const a = this.graphqlEndpoint;
12000
12000
  this.plugins = [
12001
- La({
12002
- parse: Wa,
12003
- validate: Tc,
12001
+ xa({
12002
+ parse: za,
12003
+ validate: bc,
12004
12004
  execute: os,
12005
12005
  subscribe: os,
12006
12006
  specifiedRules: uo
12007
12007
  }),
12008
12008
  // Use the schema provided by the user
12009
- !!(e != null && e.schema) && Ol(e.schema),
12010
- (e == null ? void 0 : e.context) != null && Da((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
12009
+ !!(e != null && e.schema) && vl(e.schema),
12010
+ (e == null ? void 0 : e.context) != null && ka((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
12011
12011
  // Middlewares before processing the incoming HTTP request
12012
- vd({
12012
+ Sd({
12013
12013
  id: this.id,
12014
12014
  logger: this.logger,
12015
12015
  endpoint: e == null ? void 0 : e.healthCheckEndpoint
12016
12016
  }),
12017
- (e == null ? void 0 : e.cors) !== !1 && Jf(e == null ? void 0 : e.cors),
12018
- (e == null ? void 0 : e.graphiql) !== !1 && _l({
12017
+ (e == null ? void 0 : e.cors) !== !1 && Hf(e == null ? void 0 : e.cors),
12018
+ (e == null ? void 0 : e.graphiql) !== !1 && Il({
12019
12019
  graphqlEndpoint: a,
12020
12020
  options: e == null ? void 0 : e.graphiql,
12021
12021
  render: e == null ? void 0 : e.renderGraphiQL,
@@ -12023,32 +12023,32 @@ class Bd {
12023
12023
  }),
12024
12024
  // Middlewares before the GraphQL execution
12025
12025
  nn({
12026
- match: nd,
12027
- parse: id
12028
- }),
12029
- nn({
12030
- match: ud,
12031
- parse: cd
12032
- }),
12033
- (e == null ? void 0 : e.multipart) !== !1 && nn({
12034
- match: fd,
12035
- parse: dd
12026
+ match: ed,
12027
+ parse: td
12036
12028
  }),
12037
12029
  nn({
12038
12030
  match: od,
12039
12031
  parse: ad
12040
12032
  }),
12033
+ (e == null ? void 0 : e.multipart) !== !1 && nn({
12034
+ match: cd,
12035
+ parse: ld
12036
+ }),
12041
12037
  nn({
12042
12038
  match: rd,
12043
12039
  parse: sd
12044
12040
  }),
12041
+ nn({
12042
+ match: nd,
12043
+ parse: id
12044
+ }),
12045
12045
  // Middlewares after the GraphQL execution
12046
- Pd(),
12047
- Yf((u, c, l) => {
12046
+ Ld(),
12047
+ Wf((u, c, l) => {
12048
12048
  const d = {
12049
12049
  errors: zn(u, this.maskedErrorsOpts, this.logger)
12050
12050
  };
12051
- return Ts({
12051
+ return Es({
12052
12052
  request: c,
12053
12053
  result: d,
12054
12054
  fetchAPI: this.fetchAPI,
@@ -12062,17 +12062,17 @@ class Bd {
12062
12062
  onPluginInit({ addPlugin: u }) {
12063
12063
  (e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
12064
12064
  // @ts-expect-error Add plugins has context but this hook doesn't care
12065
- Fd(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
12066
- ), u(wd(o)), u(md(e == null ? void 0 : e.extraParamNames));
12065
+ Od(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
12066
+ ), u(Td(o)), u(pd(e == null ? void 0 : e.extraParamNames));
12067
12067
  const c = !!((e == null ? void 0 : e.landingPage) ?? !0);
12068
12068
  u(
12069
12069
  // @ts-expect-error Add plugins has context but this hook doesn't care
12070
- Ud({
12070
+ Md({
12071
12071
  graphqlEndpoint: a,
12072
12072
  showLandingPage: c,
12073
12073
  landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
12074
12074
  })
12075
- ), u(Ed()), u(Id()), s && (u({
12075
+ ), u(yd()), u(wd()), s && (u({
12076
12076
  onSubscribe() {
12077
12077
  return {
12078
12078
  onSubscribeError({ error: l }) {
@@ -12081,13 +12081,13 @@ class Bd {
12081
12081
  }
12082
12082
  };
12083
12083
  }
12084
- }), u(xa(s))), u(
12084
+ }), u(Ca(s))), u(
12085
12085
  // We handle validation errors at the end
12086
- Td()
12086
+ bd()
12087
12087
  );
12088
12088
  }
12089
12089
  }
12090
- ], this.getEnveloped = va({
12090
+ ], this.getEnveloped = Sa({
12091
12091
  plugins: this.plugins
12092
12092
  }), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onExecutionResultHooks = [], this.onResultProcessHooks = [];
12093
12093
  for (const u of this.plugins)
@@ -12120,12 +12120,12 @@ class Bd {
12120
12120
  };
12121
12121
  Object.assign(i, s);
12122
12122
  const o = this.getEnveloped(i);
12123
- this.logger.debug("Processing GraphQL Parameters"), r = await Vd({
12123
+ this.logger.debug("Processing GraphQL Parameters"), r = await jd({
12124
12124
  params: e,
12125
12125
  enveloped: o
12126
12126
  }), this.logger.debug("Processing GraphQL Parameters done.");
12127
12127
  }
12128
- Je(r) && (r = To(r, (s) => s, (s) => {
12128
+ Je(r) && (r = Eo(r, (s) => s, (s) => {
12129
12129
  if (s.name === "AbortError")
12130
12130
  throw this.logger.debug("Request aborted"), s;
12131
12131
  return {
@@ -12149,15 +12149,15 @@ class Bd {
12149
12149
  return r;
12150
12150
  }
12151
12151
  }
12152
- function Gd(t) {
12153
- const e = new Bd(t);
12154
- return zf(e, {
12152
+ function qd(t) {
12153
+ const e = new Vd(t);
12154
+ return Qf(e, {
12155
12155
  fetchAPI: e.fetchAPI,
12156
12156
  plugins: e.plugins
12157
12157
  });
12158
12158
  }
12159
- var kt = /* @__PURE__ */ ca(), ki = {}, ws;
12160
- function Qd() {
12159
+ var kt = /* @__PURE__ */ aa(), ki = {}, ws;
12160
+ function Bd() {
12161
12161
  return ws || (ws = 1, function(t) {
12162
12162
  t.__esModule = !0, t.OpenAPIV2 = t.OpenAPIV3 = void 0, function(e) {
12163
12163
  (function(n) {
@@ -12170,8 +12170,8 @@ function Qd() {
12170
12170
  }(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
12171
12171
  }(ki)), ki;
12172
12172
  }
12173
- var Kd = Qd();
12174
- const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12173
+ var Gd = Bd();
12174
+ const xi = /* @__PURE__ */ new Map(), Qd = (t, e) => {
12175
12175
  xi.has(t) || xi.set(t, /* @__PURE__ */ new Map());
12176
12176
  const n = xi.get(t);
12177
12177
  if (n.has(e))
@@ -12181,13 +12181,13 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12181
12181
  for (const s of i)
12182
12182
  (!r || typeof r != "object") && (r = null), r = r[s] ?? null;
12183
12183
  return n.set(e, r), r;
12184
- }, Di = /* @__PURE__ */ new Map(), Hd = (t) => t !== null && typeof t == "object", Wd = async (t, e = []) => {
12184
+ }, Di = /* @__PURE__ */ new Map(), Kd = (t) => t !== null && typeof t == "object", zd = async (t, e = []) => {
12185
12185
  if (Di.has(t))
12186
12186
  return Di.get(t);
12187
12187
  const n = structuredClone(t), i = /* @__PURE__ */ new Set(), r = async (o, a) => {
12188
- if (Hd(o)) {
12188
+ if (Kd(o)) {
12189
12189
  if (i.has(o))
12190
- return la;
12190
+ return ua;
12191
12191
  if (i.add(o), Array.isArray(o))
12192
12192
  for (let u = 0; u < o.length; u++)
12193
12193
  o[u] = await r(o[u]);
@@ -12197,7 +12197,7 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12197
12197
  const l = await c(o.$ref);
12198
12198
  if (l) return await r(l);
12199
12199
  }
12200
- const u = await zd(n, o.$ref);
12200
+ const u = await Qd(n, o.$ref);
12201
12201
  return await r(u);
12202
12202
  }
12203
12203
  for (const u in o)
@@ -12208,7 +12208,7 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12208
12208
  return o;
12209
12209
  }, s = await r(n);
12210
12210
  return Di.set(t, s), s;
12211
- }, Jd = (t) => {
12211
+ }, Hd = (t) => {
12212
12212
  var e;
12213
12213
  return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = Ot(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = Ot(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 = Ot(t, (n) => {
12214
12214
  if (n.example !== void 0) {
@@ -12233,7 +12233,7 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12233
12233
  type: "string",
12234
12234
  contentEncoding: "base64"
12235
12235
  } : n), t;
12236
- }, Yd = Object.values(Kd.OpenAPIV3.HttpMethods), Xd = async (t) => {
12236
+ }, Wd = Object.values(Gd.OpenAPIV3.HttpMethods), Jd = async (t) => {
12237
12237
  if (typeof t == "string") {
12238
12238
  if (t.trim().startsWith("{"))
12239
12239
  try {
@@ -12272,65 +12272,62 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12272
12272
  }
12273
12273
  if (typeof t == "object") return t;
12274
12274
  throw new kt.GraphQLError("Unsupported schema input: " + t);
12275
- }, Zd = async (t) => {
12276
- const e = await Xd(t);
12275
+ }, Yd = async (t) => {
12276
+ const e = await Jd(t);
12277
12277
  if (!e.openapi)
12278
12278
  throw new kt.GraphQLError("OpenAPI version is not defined");
12279
- const n = await Wd(e);
12280
- return Jd(n);
12281
- }, eh = (t, e, n) => {
12279
+ const n = await zd(e);
12280
+ return Hd(n);
12281
+ }, Xd = (t, e, n) => {
12282
12282
  const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId : "");
12283
12283
  return t(
12284
12284
  (n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
12285
12285
  );
12286
- }, ie = new yl({}), ai = ie.addScalarType("JSON", fa), th = ie.addScalarType("JSONObject", da), Go = ie.addScalarType("JSONSchema", ha), Qo = (t) => {
12286
+ }, ie = new gl({}), ai = ie.addScalarType("JSON", ca), Zd = ie.addScalarType("JSONObject", la), Go = ie.addScalarType("JSONSchema", fa), eh = (t) => {
12287
12287
  const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
12288
12288
  (r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
12289
12289
  ), i = [...new Set(n)].filter(
12290
12290
  (r) => !e.some((s) => s.name === r)
12291
12291
  );
12292
12292
  return [...e, ...i.map((r) => ({ name: r }))];
12293
- }, Ko = (t, e) => {
12294
- const n = pa();
12295
- return Object.entries(t ?? {}).flatMap(
12296
- ([i, r]) => Yd.flatMap((s) => {
12297
- if (!(r != null && r[s])) return [];
12298
- const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], c = [
12299
- ...a.filter(
12300
- // remove path parameters that are already defined in the operation
12301
- (h) => !u.some(
12302
- (d) => d.name === h.name && d.in === h.in
12303
- )
12304
- ),
12305
- ...u
12306
- ], l = {
12307
- summary: o.summary,
12308
- operationId: o.operationId,
12309
- path: i,
12310
- method: s
12311
- };
12312
- return {
12313
- ...o,
12314
- method: s,
12315
- path: i,
12316
- parameters: c,
12317
- tags: o.tags ?? [],
12318
- slug: eh(n, l, e)
12319
- };
12320
- })
12321
- );
12322
- }, nh = ie.objectRef("SchemaTag").implement({
12293
+ }, th = (t) => (performance.now(), Object.entries(t ?? {}).flatMap(
12294
+ ([n, i]) => Wd.flatMap((r) => {
12295
+ if (!(i != null && i[r])) return [];
12296
+ const s = i[r], o = i.parameters ?? [], a = s.parameters ?? [], u = [
12297
+ ...o.filter(
12298
+ // remove path parameters that are already defined in the operation
12299
+ (c) => !a.some(
12300
+ (l) => l.name === c.name && l.in === c.in
12301
+ )
12302
+ ),
12303
+ ...a
12304
+ ];
12305
+ return {
12306
+ ...s,
12307
+ method: r,
12308
+ path: n,
12309
+ parameters: u,
12310
+ tags: s.tags ?? []
12311
+ };
12312
+ })
12313
+ )), nh = ie.objectRef("SchemaTag").implement({
12323
12314
  fields: (t) => ({
12324
12315
  name: t.exposeString("name", { nullable: !0 }),
12325
12316
  description: t.exposeString("description", { nullable: !0 }),
12326
12317
  operations: t.field({
12327
- type: [Wo],
12318
+ type: [zo],
12328
12319
  resolve: (e, n, i) => {
12329
- const r = Qo(i.schema).map((s) => s.name);
12330
- return Ko(i.schema.paths, e.name).filter(
12331
- (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
12332
- s.tags.every((o) => !r.includes(o))
12333
- );
12320
+ const r = i.tags.map((s) => s.name);
12321
+ return i.operations.filter(
12322
+ (s) => {
12323
+ var o, a, u;
12324
+ return e.name ? (o = s.tags) == null ? void 0 : o.includes(e.name) : ((a = s.tags) == null ? void 0 : a.length) === 0 || // If none of the tags are present in the root tags, then show them here
12325
+ ((u = s.tags) == null ? void 0 : u.every((c) => !r.includes(c)));
12326
+ }
12327
+ ).map((s) => ({
12328
+ ...s,
12329
+ parentTag: e.name
12330
+ }));
12334
12331
  }
12335
12332
  })
12336
12333
  })
@@ -12353,12 +12350,12 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12353
12350
  fields: (t) => ({
12354
12351
  name: t.exposeString("name"),
12355
12352
  contentType: t.exposeString("contentType", { nullable: !0 }),
12356
- headers: t.expose("headers", { type: th, nullable: !0 }),
12353
+ headers: t.expose("headers", { type: Zd, nullable: !0 }),
12357
12354
  style: t.exposeString("style", { nullable: !0 }),
12358
12355
  explode: t.exposeBoolean("explode", { nullable: !0 }),
12359
12356
  allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
12360
12357
  })
12361
- }), zo = ie.objectRef("ExampleItem").implement({
12358
+ }), Qo = ie.objectRef("ExampleItem").implement({
12362
12359
  fields: (t) => ({
12363
12360
  name: t.exposeString("name"),
12364
12361
  summary: t.exposeString("summary", { nullable: !0 }),
@@ -12383,7 +12380,7 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12383
12380
  explode: t.exposeBoolean("explode", { nullable: !0 }),
12384
12381
  allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 }),
12385
12382
  examples: t.field({
12386
- type: [zo],
12383
+ type: [Qo],
12387
12384
  resolve: (e) => Object.entries(e.examples ?? {}).map(([n, i]) => ({
12388
12385
  name: n,
12389
12386
  ...typeof i == "string" ? { value: i } : i
@@ -12392,30 +12389,41 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12392
12389
  }),
12393
12390
  schema: t.expose("schema", { type: Go, nullable: !0 })
12394
12391
  })
12395
- }), Ho = ie.objectRef("MediaTypeObject").implement({
12392
+ }), Ko = ie.objectRef("MediaTypeObject").implement({
12396
12393
  fields: (t) => ({
12397
12394
  mediaType: t.exposeString("mediaType"),
12398
12395
  schema: t.expose("schema", { type: Go, nullable: !0 }),
12399
- examples: t.expose("examples", { type: [zo], nullable: !0 }),
12396
+ examples: t.expose("examples", { type: [Qo], nullable: !0 }),
12400
12397
  encoding: t.expose("encoding", { type: [oh], nullable: !0 })
12401
12398
  })
12402
12399
  }), ch = ie.objectRef("RequestBodyObject").implement({
12403
12400
  fields: (t) => ({
12404
12401
  description: t.exposeString("description", { nullable: !0 }),
12405
- content: t.expose("content", { type: [Ho], nullable: !0 }),
12402
+ content: t.expose("content", { type: [Ko], nullable: !0 }),
12406
12403
  required: t.exposeBoolean("required", { nullable: !0 })
12407
12404
  })
12408
12405
  }), lh = ie.objectRef("ResponseItem").implement({
12409
12406
  fields: (t) => ({
12410
12407
  statusCode: t.exposeString("statusCode"),
12411
12408
  description: t.exposeString("description", { nullable: !0 }),
12412
- content: t.expose("content", { type: [Ho], nullable: !0 }),
12409
+ content: t.expose("content", { type: [Ko], nullable: !0 }),
12413
12410
  headers: t.expose("headers", { type: ai, nullable: !0 }),
12414
12411
  links: t.expose("links", { type: ai, nullable: !0 })
12415
12412
  })
12416
- }), Wo = ie.objectRef("OperationItem").implement({
12413
+ }), zo = ie.objectRef("OperationItem").implement({
12417
12414
  fields: (t) => ({
12418
- slug: t.exposeString("slug"),
12415
+ slug: t.field({
12416
+ type: "String",
12417
+ resolve: (e, n, i) => {
12418
+ const r = {
12419
+ summary: e.summary,
12420
+ operationId: e.operationId,
12421
+ path: e.path,
12422
+ method: e.method
12423
+ };
12424
+ return Xd(i.slugify, r, e.parentTag);
12425
+ }
12426
+ }),
12419
12427
  path: t.exposeString("path"),
12420
12428
  method: t.exposeString("method"),
12421
12429
  operationId: t.exposeString("operationId", { nullable: !0 }),
@@ -12528,22 +12536,27 @@ const xi = /* @__PURE__ */ new Map(), zd = (t, e) => {
12528
12536
  name: t.arg.string()
12529
12537
  },
12530
12538
  type: [nh],
12531
- resolve: (e, n) => {
12532
- const i = [...Qo(e), { name: "" }];
12533
- return n.name ? i.filter((r) => r.name === n.name) : i;
12539
+ resolve: (e, n, i) => {
12540
+ const r = [...i.tags, { name: "" }];
12541
+ return n.name ? r.filter((s) => s.name === n.name) : r;
12534
12542
  }
12535
12543
  }),
12536
12544
  operations: t.field({
12537
- type: [Wo],
12545
+ type: [zo],
12538
12546
  args: {
12539
12547
  path: t.arg.string(),
12540
12548
  method: t.arg.string(),
12541
12549
  operationId: t.arg.string(),
12542
- tag: t.arg.string()
12550
+ tag: t.arg.string(),
12551
+ untagged: t.arg.boolean()
12543
12552
  },
12544
- resolve: (e, n) => Ko(e.paths).filter(
12545
- (i) => (!n.operationId || i.operationId === n.operationId) && (!n.path || i.path === n.path) && (!n.method || i.method === n.method) && (!n.tag || i.tags.includes(n.tag))
12546
- )
12553
+ resolve: (e, n, i) => i.operations.filter((r) => {
12554
+ var s;
12555
+ return (!n.operationId || r.operationId === n.operationId) && (!n.path || r.path === n.path) && (!n.method || r.method === n.method) && (!n.tag || ((s = r.tags) == null ? void 0 : s.some((o) => {
12556
+ var a;
12557
+ return (a = n.tag) == null ? void 0 : a.includes(o);
12558
+ }))) && (!n.untagged || (r.tags ?? []).length === 0);
12559
+ })
12547
12560
  })
12548
12561
  })
12549
12562
  }), dh = ie.enumType("SchemaType", {
@@ -12566,19 +12579,19 @@ ie.queryType({
12566
12579
  throw new Error(`No schema loader found for path: ${n.input}`);
12567
12580
  r = (await o()).schema;
12568
12581
  } else
12569
- r = await Zd(n.input);
12570
- return i.schema = r, r;
12582
+ r = await Yd(n.input);
12583
+ return i.schema = r, i.operations = th(r.paths), i.slugify = da(), i.tags = eh(r), r;
12571
12584
  }
12572
12585
  })
12573
12586
  })
12574
12587
  });
12575
- const hh = ie.toSchema(), ph = (t) => Gd({ schema: hh, ...t }), Ih = (t) => ph({
12588
+ const hh = ie.toSchema(), ph = (t) => qd({ schema: hh, ...t }), Ih = (t) => ph({
12576
12589
  context: {
12577
12590
  schemaImports: t.schemaImports
12578
12591
  },
12579
12592
  plugins: [
12580
12593
  // eslint-disable-next-line react-hooks/rules-of-hooks
12581
- _a({
12594
+ Ia({
12582
12595
  logFn: (e, { args: n }) => {
12583
12596
  }
12584
12597
  })
@@ -12587,4 +12600,4 @@ const hh = ie.toSchema(), ph = (t) => Gd({ schema: hh, ...t }), Ih = (t) => ph({
12587
12600
  export {
12588
12601
  Ih as createServer
12589
12602
  };
12590
- //# sourceMappingURL=createServer-BV0tHzLK.js.map
12603
+ //# sourceMappingURL=createServer-BydbkTsd.js.map