zudoku 0.0.0-eff6f9b → 0.0.0-f114fe8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/config.d.ts +2 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/authentication/state.d.ts +16 -0
- package/dist/lib/authentication/state.js +5 -0
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +1 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +9 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +21 -9
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
- package/dist/lib/plugins/openapi/Endpoint.js +46 -8
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +14 -3
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +10 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +26 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +87 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +13 -5
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/vite/config.d.ts +1 -1
- package/dist/vite/config.js +19 -15
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +9 -4
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -0
- package/dist/vite/plugin-frontmatter.js +30 -0
- package/dist/vite/plugin-frontmatter.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +14 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AuthenticationPlugin-gtf8JS3V.js → AuthenticationPlugin-Bx9FK124.js} +2 -2
- package/lib/{AuthenticationPlugin-gtf8JS3V.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
- package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-ovR-zHRq.js} +2 -2
- package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-ovR-zHRq.js.map} +1 -1
- package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-YeWHKvyr.js} +2 -2
- package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-YeWHKvyr.js.map} +1 -1
- package/lib/ErrorPage-CsZAN_za.js +16 -0
- package/lib/ErrorPage-CsZAN_za.js.map +1 -0
- package/lib/{Input-B1kkVL1R.js → Input-CtVUl3eT.js} +4 -4
- package/lib/{Input-B1kkVL1R.js.map → Input-CtVUl3eT.js.map} +1 -1
- package/lib/{Markdown-B4aR03g6.js → Markdown-DapSf3wG.js} +795 -793
- package/lib/Markdown-DapSf3wG.js.map +1 -0
- package/lib/{MdxPage-BcftTg5g.js → MdxPage-BqBWsXZ1.js} +23 -23
- package/lib/MdxPage-BqBWsXZ1.js.map +1 -0
- package/lib/{OperationList-Da36LrGl.js → OperationList-CYrmxPa8.js} +150 -108
- package/lib/OperationList-CYrmxPa8.js.map +1 -0
- package/lib/{Route-CWj1ECzh.js → Route-Q5mqNQrv.js} +2 -2
- package/lib/{Route-CWj1ECzh.js.map → Route-Q5mqNQrv.js.map} +1 -1
- package/lib/{SidebarBadge-DdvT2qep.js → SidebarBadge-Dx7jtnoA.js} +3 -3
- package/lib/{SidebarBadge-DdvT2qep.js.map → SidebarBadge-Dx7jtnoA.js.map} +1 -1
- package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-D3UD5Go3.js} +4 -4
- package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-D3UD5Go3.js.map} +1 -1
- package/lib/{ZudokuContext-em1gHkIY.js → ZudokuContext-cr-pTRY1.js} +4 -4
- package/lib/{ZudokuContext-em1gHkIY.js.map → ZudokuContext-cr-pTRY1.js.map} +1 -1
- package/lib/assets/{worker-TYRbYl6N.js → worker-Bcj4NA2p.js} +3429 -1350
- package/lib/assets/worker-Bcj4NA2p.js.map +1 -0
- package/lib/{index-DIkaYL-l.js → index-BlJ2rj99.js} +1775 -1644
- package/lib/index-BlJ2rj99.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/{index-B_9xr661.js → index-BngPzhKn.js} +3 -3
- package/lib/{index-B_9xr661.js.map → index-BngPzhKn.js.map} +1 -1
- package/lib/{index-BoXX7LeD.js → index-Dolisrci.js} +4 -4
- package/lib/{index-BoXX7LeD.js.map → index-Dolisrci.js.map} +1 -1
- package/lib/index-LNp6rxyU.js +2094 -0
- package/lib/index-LNp6rxyU.js.map +1 -0
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/state-hNe1dw4B.js +548 -0
- package/lib/state-hNe1dw4B.js.map +1 -0
- package/lib/{utils-DtEHoAvg.js → utils-ByIc_KIM.js} +100 -103
- package/lib/utils-ByIc_KIM.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.components.js +42 -41
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +731 -723
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +12 -3
- package/src/lib/authentication/state.ts +17 -0
- package/src/lib/components/ErrorPage.tsx +0 -2
- package/src/lib/components/InlineCode.tsx +10 -0
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +32 -12
- package/src/lib/oas/parser/index.ts +1 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/openapi/Endpoint.tsx +86 -22
- package/src/lib/plugins/openapi/OperationList.tsx +3 -1
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +17 -2
- package/src/lib/plugins/openapi/SimpleSelect.tsx +10 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +11 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +113 -1
- package/src/lib/plugins/openapi/index.tsx +2 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +39 -5
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
- package/dist/lib/util/slugify.d.ts +0 -2
- package/dist/lib/util/slugify.js +0 -3
- package/dist/lib/util/slugify.js.map +0 -1
- package/dist/vite/plugin-icons.d.ts +0 -3
- package/dist/vite/plugin-icons.js +0 -47
- package/dist/vite/plugin-icons.js.map +0 -1
- package/lib/ErrorPage-knunPbKI.js +0 -18
- package/lib/ErrorPage-knunPbKI.js.map +0 -1
- package/lib/Markdown-B4aR03g6.js.map +0 -1
- package/lib/MdxPage-BcftTg5g.js.map +0 -1
- package/lib/OperationList-Da36LrGl.js.map +0 -1
- package/lib/assets/worker-TYRbYl6N.js.map +0 -1
- package/lib/index-DIkaYL-l.js.map +0 -1
- package/lib/slugify-DbLhpSPt.js +0 -28
- package/lib/slugify-DbLhpSPt.js.map +0 -1
- package/lib/state-BUM4jc0J.js +0 -288
- package/lib/state-BUM4jc0J.js.map +0 -1
- package/lib/utils-DtEHoAvg.js.map +0 -1
- package/src/lib/util/slugify.ts +0 -3
|
@@ -3,9 +3,9 @@ var yo = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var Nl = (t, e, n) => e in t ? Ol(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
-
var
|
|
7
|
-
var l = (t, e, n) => (
|
|
8
|
-
var
|
|
6
|
+
var H = (t, e, n) => Nl(t, typeof e != "symbol" ? e + "" : e, n), Hr = (t, e, n) => e.has(t) || yo("Cannot " + n);
|
|
7
|
+
var l = (t, e, n) => (Hr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Q = (t, e, n) => e.has(t) ? yo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, i) => (Hr(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), k = (t, e, n) => (Hr(t, e, "access private method"), n);
|
|
8
|
+
var En = (t, e, n, i) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
$(t, e, r, n);
|
|
11
11
|
},
|
|
@@ -14,8 +14,8 @@ var vn = (t, e, n, i) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { C as Ua, c as Va, m as Ba, f as Ga } from "./urql-YhcsXYy8.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { a as Al } from "./index-LNp6rxyU.js";
|
|
18
|
+
import { g as xl } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
19
19
|
function Fl(t, e) {
|
|
20
20
|
for (var n = 0; n < e.length; n++) {
|
|
21
21
|
const i = e[n];
|
|
@@ -32,7 +32,7 @@ function Fl(t, e) {
|
|
|
32
32
|
}
|
|
33
33
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Yr(t) {
|
|
36
36
|
if (!$s(t))
|
|
37
37
|
throw new Error("Parameter was not an error");
|
|
38
38
|
}
|
|
@@ -71,16 +71,16 @@ class ft extends Error {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
static cause(e) {
|
|
74
|
-
return
|
|
74
|
+
return Yr(e), e._cause && $s(e._cause) ? e._cause : null;
|
|
75
75
|
}
|
|
76
76
|
static fullStack(e) {
|
|
77
|
-
|
|
77
|
+
Yr(e);
|
|
78
78
|
const n = ft.cause(e);
|
|
79
79
|
return n ? `${e.stack}
|
|
80
80
|
caused by: ${ft.fullStack(n)}` : e.stack;
|
|
81
81
|
}
|
|
82
82
|
static info(e) {
|
|
83
|
-
|
|
83
|
+
Yr(e);
|
|
84
84
|
const n = {}, i = ft.cause(e);
|
|
85
85
|
return i && Object.assign(n, ft.info(i)), e._info && Object.assign(n, e._info), n;
|
|
86
86
|
}
|
|
@@ -120,7 +120,7 @@ function $l(t, e) {
|
|
|
120
120
|
n = Ul(e) + n;
|
|
121
121
|
return n;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function vo(t, e) {
|
|
124
124
|
if (isNaN(t))
|
|
125
125
|
throw new ft({
|
|
126
126
|
info: {
|
|
@@ -166,10 +166,10 @@ function jl(t) {
|
|
|
166
166
|
}
|
|
167
167
|
}, "Incorrectly encoded string");
|
|
168
168
|
if (r === o) {
|
|
169
|
-
s =
|
|
169
|
+
s = Eo(s, n, Oi[0]);
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
|
-
e =
|
|
172
|
+
e = Eo(s, n, Oi[r + 1]);
|
|
173
173
|
}
|
|
174
174
|
if (typeof e == "string")
|
|
175
175
|
return e;
|
|
@@ -190,18 +190,18 @@ function Ml(t) {
|
|
|
190
190
|
const o = isNaN(s) ? Date.now() : s;
|
|
191
191
|
if (o <= n) {
|
|
192
192
|
const u = i = jl(i);
|
|
193
|
-
return
|
|
193
|
+
return vo(n, wo) + u;
|
|
194
194
|
}
|
|
195
195
|
n = o;
|
|
196
196
|
const a = i = $l(Ll, e);
|
|
197
|
-
return
|
|
197
|
+
return vo(o, wo) + a;
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
function Ul(t) {
|
|
201
201
|
let e = Math.floor(t() * Qn);
|
|
202
202
|
return e === Qn && (e = Qn - 1), Oi.charAt(e);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Eo(t, e, n) {
|
|
205
205
|
return e > t.length - 1 ? t : t.substr(0, e) + n + t.substr(e + 1);
|
|
206
206
|
}
|
|
207
207
|
const Vl = () => {
|
|
@@ -576,7 +576,7 @@ function Wl({ plugins: t }) {
|
|
|
576
576
|
});
|
|
577
577
|
throw I;
|
|
578
578
|
})), N;
|
|
579
|
-
} : o),
|
|
579
|
+
} : o), v = c.execute.length, b = _o(v ? async (O) => {
|
|
580
580
|
let x = s, A;
|
|
581
581
|
const L = [], T = O.contextValue || {};
|
|
582
582
|
for (const y of c.execute) {
|
|
@@ -647,11 +647,11 @@ function Wl({ plugins: t }) {
|
|
|
647
647
|
contextFactory: S
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Hl(t) {
|
|
651
651
|
return t != null;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
const e = t.plugins.filter(
|
|
653
|
+
function Yl(t) {
|
|
654
|
+
const e = t.plugins.filter(Hl), n = Wl({
|
|
655
655
|
plugins: e
|
|
656
656
|
}), i = (r = {}) => {
|
|
657
657
|
const s = n;
|
|
@@ -785,7 +785,7 @@ function ae(t, e) {
|
|
|
785
785
|
function uc(t) {
|
|
786
786
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Yt(t) {
|
|
789
789
|
return typeof t == "object" && t !== null;
|
|
790
790
|
}
|
|
791
791
|
function Wt(t, e) {
|
|
@@ -900,7 +900,7 @@ let j = class Qa extends Error {
|
|
|
900
900
|
(i = this.nodes) === null || i === void 0 ? void 0 : i.map((w) => w.loc).filter((w) => w != null)
|
|
901
901
|
);
|
|
902
902
|
this.source = a ?? (m == null || (r = m[0]) === null || r === void 0 ? void 0 : r.source), this.positions = u ?? (m == null ? void 0 : m.map((w) => w.start)), this.locations = u && a ? u.map((w) => cs(a, w)) : m == null ? void 0 : m.map((w) => cs(w.source, w.start));
|
|
903
|
-
const S =
|
|
903
|
+
const S = Yt(
|
|
904
904
|
f == null ? void 0 : f.extensions
|
|
905
905
|
) ? f == null ? void 0 : f.extensions : void 0;
|
|
906
906
|
this.extensions = (s = p ?? S) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -1037,7 +1037,7 @@ class Wa {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const Ha = {
|
|
1041
1041
|
Name: [],
|
|
1042
1042
|
Document: ["definitions"],
|
|
1043
1043
|
OperationDefinition: [
|
|
@@ -1111,7 +1111,7 @@ const Ya = {
|
|
|
1111
1111
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
1112
1112
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
1113
1113
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
1114
|
-
}, hc = new Set(Object.keys(
|
|
1114
|
+
}, hc = new Set(Object.keys(Ha));
|
|
1115
1115
|
function fs(t) {
|
|
1116
1116
|
const e = t == null ? void 0 : t.kind;
|
|
1117
1117
|
return typeof e == "string" && hc.has(e);
|
|
@@ -1134,15 +1134,15 @@ function ds(t) {
|
|
|
1134
1134
|
function Fi(t) {
|
|
1135
1135
|
return t >= 48 && t <= 57;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Ya(t) {
|
|
1138
1138
|
return t >= 97 && t <= 122 || // A-Z
|
|
1139
1139
|
t >= 65 && t <= 90;
|
|
1140
1140
|
}
|
|
1141
1141
|
function js(t) {
|
|
1142
|
-
return
|
|
1142
|
+
return Ya(t) || t === 95;
|
|
1143
1143
|
}
|
|
1144
1144
|
function Ja(t) {
|
|
1145
|
-
return
|
|
1145
|
+
return Ya(t) || Fi(t) || t === 95;
|
|
1146
1146
|
}
|
|
1147
1147
|
function pc(t) {
|
|
1148
1148
|
var e;
|
|
@@ -1270,7 +1270,7 @@ function wc(t, e) {
|
|
|
1270
1270
|
n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++t.line, t.lineStart = r;
|
|
1271
1271
|
continue;
|
|
1272
1272
|
case 35:
|
|
1273
|
-
return
|
|
1273
|
+
return vc(t, r);
|
|
1274
1274
|
case 33:
|
|
1275
1275
|
return Se(t, D.BANG, r, r + 1);
|
|
1276
1276
|
case 36:
|
|
@@ -1305,7 +1305,7 @@ function wc(t, e) {
|
|
|
1305
1305
|
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Oc(t, r) : Tc(t, r);
|
|
1306
1306
|
}
|
|
1307
1307
|
if (Fi(s) || s === 45)
|
|
1308
|
-
return
|
|
1308
|
+
return Ec(t, r, s);
|
|
1309
1309
|
if (js(s))
|
|
1310
1310
|
return Nc(t, r);
|
|
1311
1311
|
throw De(
|
|
@@ -1316,7 +1316,7 @@ function wc(t, e) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return Se(t, D.EOF, i, i);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function vc(t, e) {
|
|
1320
1320
|
const n = t.source.body, i = n.length;
|
|
1321
1321
|
let r = e + 1;
|
|
1322
1322
|
for (; r < i; ) {
|
|
@@ -1338,7 +1338,7 @@ function Ec(t, e) {
|
|
|
1338
1338
|
n.slice(e + 1, r)
|
|
1339
1339
|
);
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Ec(t, e, n) {
|
|
1342
1342
|
const i = t.source.body;
|
|
1343
1343
|
let r = e, s = n, o = !1;
|
|
1344
1344
|
if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
|
|
@@ -2849,15 +2849,15 @@ function ji(t, e) {
|
|
|
2849
2849
|
let n = 0, i = 0;
|
|
2850
2850
|
for (; n < t.length && i < e.length; ) {
|
|
2851
2851
|
let r = t.charCodeAt(n), s = e.charCodeAt(i);
|
|
2852
|
-
if (
|
|
2852
|
+
if (Hi(r) && Hi(s)) {
|
|
2853
2853
|
let o = 0;
|
|
2854
2854
|
do
|
|
2855
2855
|
++n, o = o * 10 + r - hs, r = t.charCodeAt(n);
|
|
2856
|
-
while (
|
|
2856
|
+
while (Hi(r) && o > 0);
|
|
2857
2857
|
let a = 0;
|
|
2858
2858
|
do
|
|
2859
2859
|
++i, a = a * 10 + s - hs, s = e.charCodeAt(i);
|
|
2860
|
-
while (
|
|
2860
|
+
while (Hi(s) && a > 0);
|
|
2861
2861
|
if (o < a)
|
|
2862
2862
|
return -1;
|
|
2863
2863
|
if (o > a)
|
|
@@ -2873,7 +2873,7 @@ function ji(t, e) {
|
|
|
2873
2873
|
return t.length - e.length;
|
|
2874
2874
|
}
|
|
2875
2875
|
const hs = 48, Mc = 57;
|
|
2876
|
-
function
|
|
2876
|
+
function Hi(t) {
|
|
2877
2877
|
return !isNaN(t) && hs <= t && t <= Mc;
|
|
2878
2878
|
}
|
|
2879
2879
|
function kn(t, e) {
|
|
@@ -2917,7 +2917,7 @@ class Uc {
|
|
|
2917
2917
|
let S = m[0] = f;
|
|
2918
2918
|
for (let w = 1; w <= a; w++) {
|
|
2919
2919
|
const C = r[f - 1] === s[w - 1] ? 0 : 1;
|
|
2920
|
-
let
|
|
2920
|
+
let v = Math.min(
|
|
2921
2921
|
p[w] + 1,
|
|
2922
2922
|
// delete
|
|
2923
2923
|
m[w - 1] + 1,
|
|
@@ -2927,9 +2927,9 @@ class Uc {
|
|
|
2927
2927
|
);
|
|
2928
2928
|
if (f > 1 && w > 1 && r[f - 1] === s[w - 2] && r[f - 2] === s[w - 1]) {
|
|
2929
2929
|
const b = u[(f - 2) % 3][w - 2];
|
|
2930
|
-
|
|
2930
|
+
v = Math.min(v, b + 1);
|
|
2931
2931
|
}
|
|
2932
|
-
|
|
2932
|
+
v < S && (S = v), m[w] = v;
|
|
2933
2933
|
}
|
|
2934
2934
|
if (S > n)
|
|
2935
2935
|
return;
|
|
@@ -3128,10 +3128,10 @@ const qc = [
|
|
|
3128
3128
|
"\\u009E",
|
|
3129
3129
|
"\\u009F"
|
|
3130
3130
|
], bi = Object.freeze({});
|
|
3131
|
-
function Ps(t, e, n =
|
|
3131
|
+
function Ps(t, e, n = Ha) {
|
|
3132
3132
|
const i = /* @__PURE__ */ new Map();
|
|
3133
3133
|
for (const b of Object.values(_))
|
|
3134
|
-
i.set(b,
|
|
3134
|
+
i.set(b, vr(e, b));
|
|
3135
3135
|
let r, s = Array.isArray(t), o = [t], a = -1, u = [], c = t, f, p;
|
|
3136
3136
|
const m = [], S = [];
|
|
3137
3137
|
do {
|
|
@@ -3183,14 +3183,14 @@ function Ps(t, e, n = Ya) {
|
|
|
3183
3183
|
if (x === void 0 && O && u.push([f, c]), b)
|
|
3184
3184
|
m.pop();
|
|
3185
3185
|
else {
|
|
3186
|
-
var
|
|
3186
|
+
var v;
|
|
3187
3187
|
r = {
|
|
3188
3188
|
inArray: s,
|
|
3189
3189
|
index: a,
|
|
3190
3190
|
keys: o,
|
|
3191
3191
|
edits: u,
|
|
3192
3192
|
prev: r
|
|
3193
|
-
}, s = Array.isArray(c), o = s ? c : (
|
|
3193
|
+
}, s = Array.isArray(c), o = s ? c : (v = n[c.kind]) !== null && v !== void 0 ? v : [], a = -1, u = [], p && S.push(p), p = c;
|
|
3194
3194
|
}
|
|
3195
3195
|
} while (r !== void 0);
|
|
3196
3196
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
@@ -3201,7 +3201,7 @@ function zc(t) {
|
|
|
3201
3201
|
let r = !1;
|
|
3202
3202
|
const s = new Array(t.length).fill(void 0), o = new Array(t.length).fill(void 0);
|
|
3203
3203
|
for (let u = 0; u < t.length; ++u) {
|
|
3204
|
-
const { enter: c, leave: f } =
|
|
3204
|
+
const { enter: c, leave: f } = vr(t[u], i);
|
|
3205
3205
|
r || (r = c != null || f != null), s[u] = c, o[u] = f;
|
|
3206
3206
|
}
|
|
3207
3207
|
if (!r)
|
|
@@ -3238,7 +3238,7 @@ function zc(t) {
|
|
|
3238
3238
|
}
|
|
3239
3239
|
return n;
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function vr(t, e) {
|
|
3242
3242
|
const n = t[e];
|
|
3243
3243
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
3244
3244
|
enter: n,
|
|
@@ -3550,7 +3550,7 @@ function qt(t) {
|
|
|
3550
3550
|
);
|
|
3551
3551
|
return t;
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3553
|
+
function Hc(t) {
|
|
3554
3554
|
if (t === "true" || t === "false" || t === "null")
|
|
3555
3555
|
throw new j(`Enum values cannot be named: ${t}`);
|
|
3556
3556
|
return qt(t);
|
|
@@ -3577,7 +3577,7 @@ function ze(t) {
|
|
|
3577
3577
|
return Gt(t, Ai);
|
|
3578
3578
|
}
|
|
3579
3579
|
function je(t) {
|
|
3580
|
-
return Gt(t,
|
|
3580
|
+
return Gt(t, Ve);
|
|
3581
3581
|
}
|
|
3582
3582
|
function re(t) {
|
|
3583
3583
|
return Gt(t, ne);
|
|
@@ -3597,7 +3597,7 @@ function yn(t) {
|
|
|
3597
3597
|
function tn(t) {
|
|
3598
3598
|
return we(t) || Vt(t);
|
|
3599
3599
|
}
|
|
3600
|
-
class
|
|
3600
|
+
class Ve {
|
|
3601
3601
|
constructor(e) {
|
|
3602
3602
|
Ms(e) || ae(!1, `Expected ${V(e)} to be a GraphQL type.`), this.ofType = e;
|
|
3603
3603
|
}
|
|
@@ -3613,7 +3613,7 @@ class Ue {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
class ne {
|
|
3615
3615
|
constructor(e) {
|
|
3616
|
-
|
|
3616
|
+
Yc(e) || ae(
|
|
3617
3617
|
!1,
|
|
3618
3618
|
`Expected ${V(e)} to be a GraphQL nullable type.`
|
|
3619
3619
|
), this.ofType = e;
|
|
@@ -3631,7 +3631,7 @@ class ne {
|
|
|
3631
3631
|
function Us(t) {
|
|
3632
3632
|
return je(t) || re(t);
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function Yc(t) {
|
|
3635
3635
|
return Ms(t) && !re(t);
|
|
3636
3636
|
}
|
|
3637
3637
|
function nu(t) {
|
|
@@ -3782,7 +3782,7 @@ function au(t) {
|
|
|
3782
3782
|
}));
|
|
3783
3783
|
}
|
|
3784
3784
|
function Wn(t) {
|
|
3785
|
-
return
|
|
3785
|
+
return Yt(t) && !Array.isArray(t);
|
|
3786
3786
|
}
|
|
3787
3787
|
function uu(t) {
|
|
3788
3788
|
return kr(t, (e) => ({
|
|
@@ -3918,13 +3918,13 @@ class ri {
|
|
|
3918
3918
|
if (typeof e != "string") {
|
|
3919
3919
|
const i = V(e);
|
|
3920
3920
|
throw new j(
|
|
3921
|
-
`Enum "${this.name}" cannot represent non-string value: ${i}.` +
|
|
3921
|
+
`Enum "${this.name}" cannot represent non-string value: ${i}.` + Yi(this, i)
|
|
3922
3922
|
);
|
|
3923
3923
|
}
|
|
3924
3924
|
const n = this.getValue(e);
|
|
3925
3925
|
if (n == null)
|
|
3926
3926
|
throw new j(
|
|
3927
|
-
`Value "${e}" does not exist in "${this.name}" enum.` +
|
|
3927
|
+
`Value "${e}" does not exist in "${this.name}" enum.` + Yi(this, e)
|
|
3928
3928
|
);
|
|
3929
3929
|
return n.value;
|
|
3930
3930
|
}
|
|
@@ -3932,7 +3932,7 @@ class ri {
|
|
|
3932
3932
|
if (e.kind !== _.ENUM) {
|
|
3933
3933
|
const r = be(e);
|
|
3934
3934
|
throw new j(
|
|
3935
|
-
`Enum "${this.name}" cannot represent non-enum value: ${r}.` +
|
|
3935
|
+
`Enum "${this.name}" cannot represent non-enum value: ${r}.` + Yi(this, r),
|
|
3936
3936
|
{
|
|
3937
3937
|
nodes: e
|
|
3938
3938
|
}
|
|
@@ -3942,7 +3942,7 @@ class ri {
|
|
|
3942
3942
|
if (i == null) {
|
|
3943
3943
|
const r = be(e);
|
|
3944
3944
|
throw new j(
|
|
3945
|
-
`Value "${r}" does not exist in "${this.name}" enum.` +
|
|
3945
|
+
`Value "${r}" does not exist in "${this.name}" enum.` + Yi(this, r),
|
|
3946
3946
|
{
|
|
3947
3947
|
nodes: e
|
|
3948
3948
|
}
|
|
@@ -3978,7 +3978,7 @@ class ri {
|
|
|
3978
3978
|
return this.toString();
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
|
-
function
|
|
3981
|
+
function Yi(t, e) {
|
|
3982
3982
|
const n = t.getValues().map((r) => r.name), i = kn(e, n);
|
|
3983
3983
|
return gn("the enum value", i);
|
|
3984
3984
|
}
|
|
@@ -3990,7 +3990,7 @@ function ko(t, e) {
|
|
|
3990
3990
|
!1,
|
|
3991
3991
|
`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${V(i)}.`
|
|
3992
3992
|
), {
|
|
3993
|
-
name:
|
|
3993
|
+
name: Hc(n),
|
|
3994
3994
|
description: i.description,
|
|
3995
3995
|
value: i.value !== void 0 ? i.value : n,
|
|
3996
3996
|
deprecationReason: i.deprecationReason,
|
|
@@ -4059,8 +4059,8 @@ function cu(t) {
|
|
|
4059
4059
|
function gs(t, e) {
|
|
4060
4060
|
return t === e ? !0 : re(t) && re(e) || je(t) && je(e) ? gs(t.ofType, e.ofType) : !1;
|
|
4061
4061
|
}
|
|
4062
|
-
function
|
|
4063
|
-
return e === n ? !0 : re(n) ? re(e) ?
|
|
4062
|
+
function Hn(t, e, n) {
|
|
4063
|
+
return e === n ? !0 : re(n) ? re(e) ? Hn(t, e.ofType, n.ofType) : !1 : re(e) ? Hn(t, e.ofType, n) : je(n) ? je(e) ? Hn(t, e.ofType, n.ofType) : !1 : je(e) ? !1 : tn(n) && (we(e) || pe(e)) && t.isSubType(n, e);
|
|
4064
4064
|
}
|
|
4065
4065
|
function Do(t, e, n) {
|
|
4066
4066
|
return e === n ? !0 : tn(e) ? tn(n) ? t.getPossibleTypes(e).some((i) => t.isSubType(n, i)) : t.isSubType(e, n) : tn(n) ? t.isSubType(n, e) : !1;
|
|
@@ -4241,10 +4241,10 @@ const Xr = 2147483647, Zr = -2147483648, Mi = new Ut({
|
|
|
4241
4241
|
Ui
|
|
4242
4242
|
]);
|
|
4243
4243
|
function Vi(t) {
|
|
4244
|
-
if (
|
|
4244
|
+
if (Yt(t)) {
|
|
4245
4245
|
if (typeof t.valueOf == "function") {
|
|
4246
4246
|
const e = t.valueOf();
|
|
4247
|
-
if (!
|
|
4247
|
+
if (!Yt(e))
|
|
4248
4248
|
return e;
|
|
4249
4249
|
}
|
|
4250
4250
|
if (typeof t.toJSON == "function")
|
|
@@ -4260,7 +4260,7 @@ class nn {
|
|
|
4260
4260
|
var n, i;
|
|
4261
4261
|
this.name = qt(e.name), this.description = e.description, this.locations = e.locations, this.isRepeatable = (n = e.isRepeatable) !== null && n !== void 0 ? n : !1, this.extensions = mt(e.extensions), this.astNode = e.astNode, Array.isArray(e.locations) || ae(!1, `@${e.name} locations must be an Array.`);
|
|
4262
4262
|
const r = (i = e.args) !== null && i !== void 0 ? i : {};
|
|
4263
|
-
|
|
4263
|
+
Yt(r) && !Array.isArray(r) || ae(
|
|
4264
4264
|
!1,
|
|
4265
4265
|
`@${e.name} args must be an object with argument names as keys.`
|
|
4266
4266
|
), this.args = au(r);
|
|
@@ -4382,7 +4382,7 @@ function wi(t, e) {
|
|
|
4382
4382
|
return wi(t, n);
|
|
4383
4383
|
}
|
|
4384
4384
|
if (ze(e)) {
|
|
4385
|
-
if (!
|
|
4385
|
+
if (!Yt(t))
|
|
4386
4386
|
return null;
|
|
4387
4387
|
const n = [];
|
|
4388
4388
|
for (const i of Object.values(e.getFields())) {
|
|
@@ -4445,7 +4445,7 @@ const $o = /^-?(?:0|[1-9][0-9]*)$/, Gs = new et({
|
|
|
4445
4445
|
},
|
|
4446
4446
|
types: {
|
|
4447
4447
|
description: "A list of all types supported by this server.",
|
|
4448
|
-
type: new ne(new
|
|
4448
|
+
type: new ne(new Ve(new ne(Mt))),
|
|
4449
4449
|
resolve(t) {
|
|
4450
4450
|
return Object.values(t.getTypeMap());
|
|
4451
4451
|
}
|
|
@@ -4468,7 +4468,7 @@ const $o = /^-?(?:0|[1-9][0-9]*)$/, Gs = new et({
|
|
|
4468
4468
|
directives: {
|
|
4469
4469
|
description: "A list of all directives supported by this server.",
|
|
4470
4470
|
type: new ne(
|
|
4471
|
-
new
|
|
4471
|
+
new Ve(new ne(pu))
|
|
4472
4472
|
),
|
|
4473
4473
|
resolve: (t) => t.getDirectives()
|
|
4474
4474
|
}
|
|
@@ -4493,13 +4493,13 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4493
4493
|
},
|
|
4494
4494
|
locations: {
|
|
4495
4495
|
type: new ne(
|
|
4496
|
-
new
|
|
4496
|
+
new Ve(new ne(gu))
|
|
4497
4497
|
),
|
|
4498
4498
|
resolve: (t) => t.locations
|
|
4499
4499
|
},
|
|
4500
4500
|
args: {
|
|
4501
4501
|
type: new ne(
|
|
4502
|
-
new
|
|
4502
|
+
new Ve(new ne($r))
|
|
4503
4503
|
),
|
|
4504
4504
|
args: {
|
|
4505
4505
|
includeDeprecated: {
|
|
@@ -4635,7 +4635,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4635
4635
|
resolve: (t) => "specifiedByURL" in t ? t.specifiedByURL : void 0
|
|
4636
4636
|
},
|
|
4637
4637
|
fields: {
|
|
4638
|
-
type: new
|
|
4638
|
+
type: new Ve(new ne(mu)),
|
|
4639
4639
|
args: {
|
|
4640
4640
|
includeDeprecated: {
|
|
4641
4641
|
type: $e,
|
|
@@ -4650,21 +4650,21 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4650
4650
|
}
|
|
4651
4651
|
},
|
|
4652
4652
|
interfaces: {
|
|
4653
|
-
type: new
|
|
4653
|
+
type: new Ve(new ne(Mt)),
|
|
4654
4654
|
resolve(t) {
|
|
4655
4655
|
if (pe(t) || we(t))
|
|
4656
4656
|
return t.getInterfaces();
|
|
4657
4657
|
}
|
|
4658
4658
|
},
|
|
4659
4659
|
possibleTypes: {
|
|
4660
|
-
type: new
|
|
4660
|
+
type: new Ve(new ne(Mt)),
|
|
4661
4661
|
resolve(t, e, n, { schema: i }) {
|
|
4662
4662
|
if (tn(t))
|
|
4663
4663
|
return i.getPossibleTypes(t);
|
|
4664
4664
|
}
|
|
4665
4665
|
},
|
|
4666
4666
|
enumValues: {
|
|
4667
|
-
type: new
|
|
4667
|
+
type: new Ve(new ne(yu)),
|
|
4668
4668
|
args: {
|
|
4669
4669
|
includeDeprecated: {
|
|
4670
4670
|
type: $e,
|
|
@@ -4679,7 +4679,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4679
4679
|
}
|
|
4680
4680
|
},
|
|
4681
4681
|
inputFields: {
|
|
4682
|
-
type: new
|
|
4682
|
+
type: new Ve(new ne($r)),
|
|
4683
4683
|
args: {
|
|
4684
4684
|
includeDeprecated: {
|
|
4685
4685
|
type: $e,
|
|
@@ -4719,7 +4719,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4719
4719
|
},
|
|
4720
4720
|
args: {
|
|
4721
4721
|
type: new ne(
|
|
4722
|
-
new
|
|
4722
|
+
new Ve(new ne($r))
|
|
4723
4723
|
),
|
|
4724
4724
|
args: {
|
|
4725
4725
|
includeDeprecated: {
|
|
@@ -4840,7 +4840,7 @@ const bu = new ri({
|
|
|
4840
4840
|
description: "Indicates this type is a non-null. `ofType` is a valid field."
|
|
4841
4841
|
}
|
|
4842
4842
|
}
|
|
4843
|
-
}),
|
|
4843
|
+
}), Er = {
|
|
4844
4844
|
name: "__schema",
|
|
4845
4845
|
type: new ne(Gs),
|
|
4846
4846
|
description: "Access the current type schema of this server.",
|
|
@@ -4887,14 +4887,14 @@ const bu = new ri({
|
|
|
4887
4887
|
yu,
|
|
4888
4888
|
bu
|
|
4889
4889
|
]);
|
|
4890
|
-
function
|
|
4890
|
+
function vu(t) {
|
|
4891
4891
|
return wu.some(({ name: e }) => t.name === e);
|
|
4892
4892
|
}
|
|
4893
|
-
function
|
|
4893
|
+
function Eu(t) {
|
|
4894
4894
|
return Gt(t, qs);
|
|
4895
4895
|
}
|
|
4896
4896
|
function rf(t) {
|
|
4897
|
-
if (!
|
|
4897
|
+
if (!Eu(t))
|
|
4898
4898
|
throw new Error(`Expected ${V(t)} to be a GraphQL schema.`);
|
|
4899
4899
|
return t;
|
|
4900
4900
|
}
|
|
@@ -4902,7 +4902,7 @@ class qs {
|
|
|
4902
4902
|
// Used as a cache for validateSchema().
|
|
4903
4903
|
constructor(e) {
|
|
4904
4904
|
var n, i;
|
|
4905
|
-
this.__validationErrors = e.assumeValid === !0 ? [] : void 0,
|
|
4905
|
+
this.__validationErrors = e.assumeValid === !0 ? [] : void 0, Yt(e) || ae(!1, "Must provide configuration object."), !e.types || Array.isArray(e.types) || ae(
|
|
4906
4906
|
!1,
|
|
4907
4907
|
`"types" must be Array if provided but got: ${V(e.types)}.`
|
|
4908
4908
|
), !e.directives || Array.isArray(e.directives) || ae(
|
|
@@ -5172,7 +5172,7 @@ function lf(t) {
|
|
|
5172
5172
|
);
|
|
5173
5173
|
continue;
|
|
5174
5174
|
}
|
|
5175
|
-
|
|
5175
|
+
vu(i) || Ln(t, i), pe(i) || we(i) ? (jo(t, i), Po(t, i)) : Vt(i) ? df(t, i) : Bt(i) ? hf(t, i) : ze(i) && (pf(t, i), e(i));
|
|
5176
5176
|
}
|
|
5177
5177
|
}
|
|
5178
5178
|
function jo(t, e) {
|
|
@@ -5249,7 +5249,7 @@ function cf(t, e, n) {
|
|
|
5249
5249
|
);
|
|
5250
5250
|
continue;
|
|
5251
5251
|
}
|
|
5252
|
-
if (!
|
|
5252
|
+
if (!Hn(t.schema, f.type, u.type)) {
|
|
5253
5253
|
var r, s;
|
|
5254
5254
|
t.reportError(
|
|
5255
5255
|
`Interface field ${n.name}.${c} expects type ${V(u.type)} but ${e.name}.${c} is type ${V(f.type)}.`,
|
|
@@ -5424,7 +5424,7 @@ function nt(t, e) {
|
|
|
5424
5424
|
switch (e.kind) {
|
|
5425
5425
|
case _.LIST_TYPE: {
|
|
5426
5426
|
const n = nt(t, e.type);
|
|
5427
|
-
return n && new
|
|
5427
|
+
return n && new Ve(n);
|
|
5428
5428
|
}
|
|
5429
5429
|
case _.NON_NULL_TYPE: {
|
|
5430
5430
|
const n = nt(t, e.type);
|
|
@@ -5577,8 +5577,8 @@ class Su {
|
|
|
5577
5577
|
}
|
|
5578
5578
|
function yf(t, e, n) {
|
|
5579
5579
|
const i = n.name.value;
|
|
5580
|
-
if (i ===
|
|
5581
|
-
return
|
|
5580
|
+
if (i === Er.name && t.getQueryType() === e)
|
|
5581
|
+
return Er;
|
|
5582
5582
|
if (i === Tr.name && t.getQueryType() === e)
|
|
5583
5583
|
return Tr;
|
|
5584
5584
|
if (i === Sr.name && yn(e))
|
|
@@ -5591,14 +5591,14 @@ function _u(t, e) {
|
|
|
5591
5591
|
enter(...n) {
|
|
5592
5592
|
const i = n[0];
|
|
5593
5593
|
t.enter(i);
|
|
5594
|
-
const r =
|
|
5594
|
+
const r = vr(e, i.kind).enter;
|
|
5595
5595
|
if (r) {
|
|
5596
5596
|
const s = r.apply(e, n);
|
|
5597
5597
|
return s !== void 0 && (t.leave(i), fs(s) && t.enter(s)), s;
|
|
5598
5598
|
}
|
|
5599
5599
|
},
|
|
5600
5600
|
leave(...n) {
|
|
5601
|
-
const i = n[0], r =
|
|
5601
|
+
const i = n[0], r = vr(e, i.kind).leave;
|
|
5602
5602
|
let s;
|
|
5603
5603
|
return r && (s = r.apply(e, n)), t.leave(i), s;
|
|
5604
5604
|
}
|
|
@@ -5613,13 +5613,13 @@ function wf(t) {
|
|
|
5613
5613
|
function Qs(t) {
|
|
5614
5614
|
return t.kind === _.SCALAR_TYPE_DEFINITION || t.kind === _.OBJECT_TYPE_DEFINITION || t.kind === _.INTERFACE_TYPE_DEFINITION || t.kind === _.UNION_TYPE_DEFINITION || t.kind === _.ENUM_TYPE_DEFINITION || t.kind === _.INPUT_OBJECT_TYPE_DEFINITION;
|
|
5615
5615
|
}
|
|
5616
|
-
function
|
|
5616
|
+
function vf(t) {
|
|
5617
5617
|
return t.kind === _.SCHEMA_EXTENSION || Iu(t);
|
|
5618
5618
|
}
|
|
5619
5619
|
function Iu(t) {
|
|
5620
5620
|
return t.kind === _.SCALAR_TYPE_EXTENSION || t.kind === _.OBJECT_TYPE_EXTENSION || t.kind === _.INTERFACE_TYPE_EXTENSION || t.kind === _.UNION_TYPE_EXTENSION || t.kind === _.ENUM_TYPE_EXTENSION || t.kind === _.INPUT_OBJECT_TYPE_EXTENSION;
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function Ef(t) {
|
|
5623
5623
|
return {
|
|
5624
5624
|
Document(e) {
|
|
5625
5625
|
for (const n of e.definitions)
|
|
@@ -5905,7 +5905,7 @@ const Uo = [...Zc, ...wu].map(
|
|
|
5905
5905
|
(t) => t.name
|
|
5906
5906
|
);
|
|
5907
5907
|
function Lf(t) {
|
|
5908
|
-
return "kind" in t && (wf(t) ||
|
|
5908
|
+
return "kind" in t && (wf(t) || vf(t));
|
|
5909
5909
|
}
|
|
5910
5910
|
function kf(t) {
|
|
5911
5911
|
let e = 0;
|
|
@@ -6117,7 +6117,7 @@ function Ou(t) {
|
|
|
6117
6117
|
).join(" and ") : t;
|
|
6118
6118
|
}
|
|
6119
6119
|
function Bf(t) {
|
|
6120
|
-
const e = new
|
|
6120
|
+
const e = new Hf(), n = /* @__PURE__ */ new Map();
|
|
6121
6121
|
return {
|
|
6122
6122
|
SelectionSet(i) {
|
|
6123
6123
|
const r = Gf(
|
|
@@ -6188,7 +6188,7 @@ function _r(t, e, n, i, r, s, o) {
|
|
|
6188
6188
|
a
|
|
6189
6189
|
);
|
|
6190
6190
|
if (s !== u) {
|
|
6191
|
-
|
|
6191
|
+
Hs(
|
|
6192
6192
|
t,
|
|
6193
6193
|
e,
|
|
6194
6194
|
n,
|
|
@@ -6237,7 +6237,7 @@ function Ir(t, e, n, i, r, s, o) {
|
|
|
6237
6237
|
n,
|
|
6238
6238
|
u
|
|
6239
6239
|
);
|
|
6240
|
-
|
|
6240
|
+
Hs(
|
|
6241
6241
|
t,
|
|
6242
6242
|
e,
|
|
6243
6243
|
n,
|
|
@@ -6279,7 +6279,7 @@ function qf(t, e, n, i, r, s, o, a) {
|
|
|
6279
6279
|
o,
|
|
6280
6280
|
a
|
|
6281
6281
|
);
|
|
6282
|
-
|
|
6282
|
+
Hs(
|
|
6283
6283
|
t,
|
|
6284
6284
|
u,
|
|
6285
6285
|
e,
|
|
@@ -6339,7 +6339,7 @@ function zf(t, e, n, i, r) {
|
|
|
6339
6339
|
c && e.push(c);
|
|
6340
6340
|
}
|
|
6341
6341
|
}
|
|
6342
|
-
function
|
|
6342
|
+
function Hs(t, e, n, i, r, s, o) {
|
|
6343
6343
|
for (const [a, u] of Object.entries(s)) {
|
|
6344
6344
|
const c = o[a];
|
|
6345
6345
|
if (c)
|
|
@@ -6387,15 +6387,15 @@ function Nu(t, e, n, i, r, s, o) {
|
|
|
6387
6387
|
[u],
|
|
6388
6388
|
[p]
|
|
6389
6389
|
];
|
|
6390
|
-
const
|
|
6391
|
-
if (
|
|
6390
|
+
const v = u.selectionSet, b = p.selectionSet;
|
|
6391
|
+
if (v && b) {
|
|
6392
6392
|
const O = qf(
|
|
6393
6393
|
t,
|
|
6394
6394
|
e,
|
|
6395
6395
|
n,
|
|
6396
6396
|
S,
|
|
6397
6397
|
Pt(w),
|
|
6398
|
-
|
|
6398
|
+
v,
|
|
6399
6399
|
Pt(C),
|
|
6400
6400
|
b
|
|
6401
6401
|
);
|
|
@@ -6482,7 +6482,7 @@ function Wf(t, e, n, i) {
|
|
|
6482
6482
|
[i, ...t.map(([, , r]) => r).flat()]
|
|
6483
6483
|
];
|
|
6484
6484
|
}
|
|
6485
|
-
class
|
|
6485
|
+
class Hf {
|
|
6486
6486
|
constructor() {
|
|
6487
6487
|
this._data = /* @__PURE__ */ new Map();
|
|
6488
6488
|
}
|
|
@@ -6496,7 +6496,7 @@ class Yf {
|
|
|
6496
6496
|
o === void 0 ? this._data.set(r, /* @__PURE__ */ new Map([[s, i]])) : o.set(s, i);
|
|
6497
6497
|
}
|
|
6498
6498
|
}
|
|
6499
|
-
function
|
|
6499
|
+
function Yf(t) {
|
|
6500
6500
|
return {
|
|
6501
6501
|
InlineFragment(e) {
|
|
6502
6502
|
const n = t.getType(), i = t.getParentType();
|
|
@@ -6666,16 +6666,16 @@ function Kt(t) {
|
|
|
6666
6666
|
return e.reverse();
|
|
6667
6667
|
}
|
|
6668
6668
|
function nd(t, e, n = id) {
|
|
6669
|
-
return
|
|
6669
|
+
return vi(t, e, n, void 0);
|
|
6670
6670
|
}
|
|
6671
6671
|
function id(t, e, n) {
|
|
6672
6672
|
let i = "Invalid value " + V(e);
|
|
6673
6673
|
throw t.length > 0 && (i += ` at "value${td(t)}"`), n.message = i + ": " + n.message, n;
|
|
6674
6674
|
}
|
|
6675
|
-
function
|
|
6675
|
+
function vi(t, e, n, i) {
|
|
6676
6676
|
if (re(e)) {
|
|
6677
6677
|
if (t != null)
|
|
6678
|
-
return
|
|
6678
|
+
return vi(t, e.ofType, n, i);
|
|
6679
6679
|
n(
|
|
6680
6680
|
Kt(i),
|
|
6681
6681
|
t,
|
|
@@ -6691,11 +6691,11 @@ function Ei(t, e, n, i) {
|
|
|
6691
6691
|
const r = e.ofType;
|
|
6692
6692
|
return hu(t) ? Array.from(t, (s, o) => {
|
|
6693
6693
|
const a = Bo(i, o, void 0);
|
|
6694
|
-
return
|
|
6695
|
-
}) : [
|
|
6694
|
+
return vi(s, r, n, a);
|
|
6695
|
+
}) : [vi(t, r, n, i)];
|
|
6696
6696
|
}
|
|
6697
6697
|
if (ze(e)) {
|
|
6698
|
-
if (!
|
|
6698
|
+
if (!Yt(t)) {
|
|
6699
6699
|
n(
|
|
6700
6700
|
Kt(i),
|
|
6701
6701
|
t,
|
|
@@ -6721,7 +6721,7 @@ function Ei(t, e, n, i) {
|
|
|
6721
6721
|
}
|
|
6722
6722
|
continue;
|
|
6723
6723
|
}
|
|
6724
|
-
r[o.name] =
|
|
6724
|
+
r[o.name] = vi(
|
|
6725
6725
|
a,
|
|
6726
6726
|
o.type,
|
|
6727
6727
|
n,
|
|
@@ -7405,12 +7405,12 @@ function wd(t, e, n, i, r) {
|
|
|
7405
7405
|
if (!(n != null && n.kind !== _.NULL) && !(r !== void 0))
|
|
7406
7406
|
return !1;
|
|
7407
7407
|
const a = i.ofType;
|
|
7408
|
-
return
|
|
7408
|
+
return Hn(t, e, a);
|
|
7409
7409
|
}
|
|
7410
|
-
return
|
|
7410
|
+
return Hn(t, e, i);
|
|
7411
7411
|
}
|
|
7412
|
-
const
|
|
7413
|
-
|
|
7412
|
+
const vd = Object.freeze([$f]), Fu = Object.freeze([
|
|
7413
|
+
Ef,
|
|
7414
7414
|
hd,
|
|
7415
7415
|
kf,
|
|
7416
7416
|
ud,
|
|
@@ -7422,7 +7422,7 @@ const Ed = Object.freeze([$f]), Fu = Object.freeze([
|
|
|
7422
7422
|
fd,
|
|
7423
7423
|
Cf,
|
|
7424
7424
|
Mf,
|
|
7425
|
-
|
|
7425
|
+
Yf,
|
|
7426
7426
|
jf,
|
|
7427
7427
|
pd,
|
|
7428
7428
|
Pf,
|
|
@@ -7436,9 +7436,9 @@ const Ed = Object.freeze([$f]), Fu = Object.freeze([
|
|
|
7436
7436
|
bd,
|
|
7437
7437
|
Bf,
|
|
7438
7438
|
dd,
|
|
7439
|
-
...
|
|
7439
|
+
...vd
|
|
7440
7440
|
]);
|
|
7441
|
-
class
|
|
7441
|
+
class Ed {
|
|
7442
7442
|
constructor(e, n) {
|
|
7443
7443
|
this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
|
|
7444
7444
|
}
|
|
@@ -7496,7 +7496,7 @@ class vd {
|
|
|
7496
7496
|
return n;
|
|
7497
7497
|
}
|
|
7498
7498
|
}
|
|
7499
|
-
class Td extends
|
|
7499
|
+
class Td extends Ed {
|
|
7500
7500
|
constructor(e, n, i, r) {
|
|
7501
7501
|
super(n, r), this._schema = e, this._typeInfo = i, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
|
|
7502
7502
|
}
|
|
@@ -7610,7 +7610,7 @@ function Od(t) {
|
|
|
7610
7610
|
return Array.isArray(t.path);
|
|
7611
7611
|
}
|
|
7612
7612
|
const zo = function(t, e, n, i) {
|
|
7613
|
-
if (
|
|
7613
|
+
if (Yt(t) && typeof t.__typename == "string")
|
|
7614
7614
|
return t.__typename;
|
|
7615
7615
|
const r = n.schema.getPossibleTypes(i), s = [];
|
|
7616
7616
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -7630,12 +7630,12 @@ const zo = function(t, e, n, i) {
|
|
|
7630
7630
|
return r[a].name;
|
|
7631
7631
|
});
|
|
7632
7632
|
}, cr = function(t, e, n, i) {
|
|
7633
|
-
if (
|
|
7633
|
+
if (Yt(t) || typeof t == "function") {
|
|
7634
7634
|
const r = t[i.fieldName];
|
|
7635
7635
|
return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
|
|
7636
7636
|
}
|
|
7637
7637
|
};
|
|
7638
|
-
function
|
|
7638
|
+
function Ys(t, e) {
|
|
7639
7639
|
let n = null;
|
|
7640
7640
|
for (const r of t.definitions)
|
|
7641
7641
|
if (r.kind === _.OPERATION_DEFINITION) {
|
|
@@ -7664,7 +7664,7 @@ function Nd(t) {
|
|
|
7664
7664
|
subscription: s(e.subscription)
|
|
7665
7665
|
});
|
|
7666
7666
|
function i(m) {
|
|
7667
|
-
return je(m) ? new
|
|
7667
|
+
return je(m) ? new Ve(i(m.ofType)) : re(m) ? new ne(i(m.ofType)) : r(m);
|
|
7668
7668
|
}
|
|
7669
7669
|
function r(m) {
|
|
7670
7670
|
return n[m.name];
|
|
@@ -7700,7 +7700,7 @@ function Nd(t) {
|
|
|
7700
7700
|
return ns(m).map(r);
|
|
7701
7701
|
}
|
|
7702
7702
|
function p(m) {
|
|
7703
|
-
if (Dn(m) ||
|
|
7703
|
+
if (Dn(m) || vu(m))
|
|
7704
7704
|
return m;
|
|
7705
7705
|
if (pe(m)) {
|
|
7706
7706
|
const S = m.toConfig();
|
|
@@ -8060,18 +8060,18 @@ function ws(t, e, n) {
|
|
|
8060
8060
|
};
|
|
8061
8061
|
throw new ie(`Expected input param ${a} to be an output type but got ${o}`);
|
|
8062
8062
|
}
|
|
8063
|
-
function
|
|
8063
|
+
function vs(t, e, n) {
|
|
8064
8064
|
const i = typeof n == "object" ? n.items : !0, r = typeof n == "object" ? n.list : !!n;
|
|
8065
8065
|
if (Array.isArray(t))
|
|
8066
8066
|
return {
|
|
8067
8067
|
kind: "List",
|
|
8068
|
-
type:
|
|
8068
|
+
type: vs(t[0], e, i),
|
|
8069
8069
|
required: r
|
|
8070
8070
|
};
|
|
8071
8071
|
if (t instanceof jr)
|
|
8072
8072
|
return {
|
|
8073
8073
|
kind: "List",
|
|
8074
|
-
type:
|
|
8074
|
+
type: vs(t.listType, e, t.required),
|
|
8075
8075
|
required: r
|
|
8076
8076
|
};
|
|
8077
8077
|
const s = e.getInputTypeRef(t), o = s instanceof Ne ? s.kind : e.getTypeConfig(s).graphqlKind, a = s instanceof Ne ? s.name : e.getTypeConfig(s).name;
|
|
@@ -8124,8 +8124,8 @@ builder.objectType('MyObject', {
|
|
|
8124
8124
|
function Qd(t) {
|
|
8125
8125
|
return typeof t == "object" && t !== null && Nr in t ? t[Nr] : null;
|
|
8126
8126
|
}
|
|
8127
|
-
function
|
|
8128
|
-
return Array.isArray(t) ?
|
|
8127
|
+
function Es(t) {
|
|
8128
|
+
return Array.isArray(t) ? Es(t[0]) : t instanceof Pr || t instanceof jr ? Es(t.listType) : t;
|
|
8129
8129
|
}
|
|
8130
8130
|
function dt(t, e, n) {
|
|
8131
8131
|
return e in t ? Object.defineProperty(t, e, {
|
|
@@ -8211,10 +8211,10 @@ class Wd {
|
|
|
8211
8211
|
this.types.set(e, n);
|
|
8212
8212
|
}
|
|
8213
8213
|
buildOutputTypeParam(e) {
|
|
8214
|
-
return e.kind === "List" ? e.nullable ? new
|
|
8214
|
+
return e.kind === "List" ? e.nullable ? new Ve(this.buildOutputTypeParam(e.type)) : new ne(new Ve(this.buildOutputTypeParam(e.type))) : e.nullable ? this.getOutputType(e.ref) : new ne(this.getOutputType(e.ref));
|
|
8215
8215
|
}
|
|
8216
8216
|
buildInputTypeParam(e) {
|
|
8217
|
-
return e.kind === "List" ? e.required ? new ne(new
|
|
8217
|
+
return e.kind === "List" ? e.required ? new ne(new Ve(this.buildInputTypeParam(e.type))) : new Ve(this.buildInputTypeParam(e.type)) : e.required ? new ne(this.getInputType(e.ref)) : this.getInputType(e.ref);
|
|
8218
8218
|
}
|
|
8219
8219
|
buildFields(e) {
|
|
8220
8220
|
const n = {};
|
|
@@ -8485,10 +8485,10 @@ function is(t, e, n) {
|
|
|
8485
8485
|
writable: !0
|
|
8486
8486
|
}) : t[e] = n, t;
|
|
8487
8487
|
}
|
|
8488
|
-
let
|
|
8489
|
-
class
|
|
8488
|
+
let Hd = qi;
|
|
8489
|
+
class Yd extends Ne {
|
|
8490
8490
|
constructor(e, n) {
|
|
8491
|
-
super(e, n), is(this, "kind", void 0), is(this, "$inferInput", void 0), is(this,
|
|
8491
|
+
super(e, n), is(this, "kind", void 0), is(this, "$inferInput", void 0), is(this, Hd, void 0), this.kind = e;
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
8494
8494
|
function Ki(t, e, n) {
|
|
@@ -8542,7 +8542,7 @@ class Zd {
|
|
|
8542
8542
|
addFieldRef(e, n, i, r) {
|
|
8543
8543
|
if (this.fieldRefs.has(e))
|
|
8544
8544
|
throw new ie(`FieldRef ${String(e)} has already been added to config store`);
|
|
8545
|
-
const s =
|
|
8545
|
+
const s = Es(n), o = Object.keys(i).map((u) => {
|
|
8546
8546
|
const c = i[u];
|
|
8547
8547
|
return c.fieldName = u, c.argFor = e, c;
|
|
8548
8548
|
}), a = () => {
|
|
@@ -8609,7 +8609,7 @@ class Zd {
|
|
|
8609
8609
|
const n = this.typeConfigs.get(e);
|
|
8610
8610
|
if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
|
|
8611
8611
|
throw new ie(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
|
|
8612
|
-
const i = new
|
|
8612
|
+
const i = new Yd(n.graphqlKind, n.name);
|
|
8613
8613
|
return this.refsToName.set(i, n.name), i;
|
|
8614
8614
|
}
|
|
8615
8615
|
}
|
|
@@ -8778,7 +8778,7 @@ class Ts {
|
|
|
8778
8778
|
kind: this.kind,
|
|
8779
8779
|
graphqlKind: this.kind,
|
|
8780
8780
|
parentType: s.name,
|
|
8781
|
-
type:
|
|
8781
|
+
type: vs(e.type, this.builder.configStore, (o = e.required) !== null && o !== void 0 ? o : this.builder.defaultInputFieldRequiredness),
|
|
8782
8782
|
pothosOptions: e,
|
|
8783
8783
|
description: e.description,
|
|
8784
8784
|
deprecationReason: e.deprecationReason,
|
|
@@ -9246,7 +9246,7 @@ class ch extends Du {
|
|
|
9246
9246
|
super(n), fr(this, "builder", void 0), this.builder = e;
|
|
9247
9247
|
}
|
|
9248
9248
|
}
|
|
9249
|
-
function
|
|
9249
|
+
function Ei(t, e, n) {
|
|
9250
9250
|
return e in t ? Object.defineProperty(t, e, {
|
|
9251
9251
|
value: n,
|
|
9252
9252
|
enumerable: !0,
|
|
@@ -9257,7 +9257,7 @@ function vi(t, e, n) {
|
|
|
9257
9257
|
let fh = $n, dh = ui;
|
|
9258
9258
|
class $u extends Ne {
|
|
9259
9259
|
constructor(e) {
|
|
9260
|
-
super("Interface", e),
|
|
9260
|
+
super("Interface", e), Ei(this, "kind", "Interface"), Ei(this, "$inferType", void 0), Ei(this, fh, void 0), Ei(this, dh, void 0);
|
|
9261
9261
|
}
|
|
9262
9262
|
}
|
|
9263
9263
|
class hh extends $u {
|
|
@@ -9265,7 +9265,7 @@ class hh extends $u {
|
|
|
9265
9265
|
return this.builder.interfaceType(this, e);
|
|
9266
9266
|
}
|
|
9267
9267
|
constructor(e, n) {
|
|
9268
|
-
super(n),
|
|
9268
|
+
super(n), Ei(this, "builder", void 0), this.builder = e;
|
|
9269
9269
|
}
|
|
9270
9270
|
}
|
|
9271
9271
|
function Ti(t, e, n) {
|
|
@@ -9554,11 +9554,11 @@ let Js = class {
|
|
|
9554
9554
|
};
|
|
9555
9555
|
qn(Js, "plugins", {});
|
|
9556
9556
|
qn(Js, "allowPluginReRegistration", !1);
|
|
9557
|
-
const
|
|
9558
|
-
function
|
|
9557
|
+
const vh = Js;
|
|
9558
|
+
function Ho(t) {
|
|
9559
9559
|
return t;
|
|
9560
9560
|
}
|
|
9561
|
-
function
|
|
9561
|
+
function Yo(t) {
|
|
9562
9562
|
if (typeof t != "object" || t === null || Array.isArray(t))
|
|
9563
9563
|
throw new TypeError("JSONObject cannot represent non-object value: " + t);
|
|
9564
9564
|
return t;
|
|
@@ -9591,12 +9591,12 @@ function Ks(t, e, n) {
|
|
|
9591
9591
|
throw new TypeError(t + " cannot represent value: " + be(e));
|
|
9592
9592
|
}
|
|
9593
9593
|
}
|
|
9594
|
-
var
|
|
9594
|
+
var Eh = new Ut({
|
|
9595
9595
|
name: "JSON",
|
|
9596
9596
|
description: "The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
9597
9597
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
9598
|
-
serialize:
|
|
9599
|
-
parseValue:
|
|
9598
|
+
serialize: Ho,
|
|
9599
|
+
parseValue: Ho,
|
|
9600
9600
|
parseLiteral: function(e, n) {
|
|
9601
9601
|
return Ks("JSON", e, n);
|
|
9602
9602
|
}
|
|
@@ -9604,8 +9604,8 @@ var vh = new Ut({
|
|
|
9604
9604
|
name: "JSONObject",
|
|
9605
9605
|
description: "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
9606
9606
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
9607
|
-
serialize:
|
|
9608
|
-
parseValue:
|
|
9607
|
+
serialize: Yo,
|
|
9608
|
+
parseValue: Yo,
|
|
9609
9609
|
parseLiteral: function(e, n) {
|
|
9610
9610
|
if (e.kind !== _.OBJECT)
|
|
9611
9611
|
throw new TypeError("JSONObject cannot represent non-object value: " + be(e));
|
|
@@ -9690,8 +9690,8 @@ const Nh = [
|
|
|
9690
9690
|
function Ah(t) {
|
|
9691
9691
|
return t != null && typeof t == "object" && Object.keys(t).every((e) => Nh.includes(e));
|
|
9692
9692
|
}
|
|
9693
|
-
function
|
|
9694
|
-
return e != null && e.originalError && !(e.originalError instanceof Error) && Ah(e.originalError) && (e.originalError =
|
|
9693
|
+
function Y(t, e) {
|
|
9694
|
+
return e != null && e.originalError && !(e.originalError instanceof Error) && Ah(e.originalError) && (e.originalError = Y(e.originalError.message, e.originalError)), ac.major >= 17 ? new j(t, e) : new j(t, e == null ? void 0 : e.nodes, e == null ? void 0 : e.source, e == null ? void 0 : e.positions, e == null ? void 0 : e.path, e == null ? void 0 : e.originalError, e == null ? void 0 : e.extensions);
|
|
9695
9695
|
}
|
|
9696
9696
|
function xh(t) {
|
|
9697
9697
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
@@ -9722,7 +9722,7 @@ function Vu(t, e, n = {}) {
|
|
|
9722
9722
|
if (u !== void 0)
|
|
9723
9723
|
i[o] = u;
|
|
9724
9724
|
else if (re(a))
|
|
9725
|
-
throw
|
|
9725
|
+
throw Y(`Argument "${o}" of required type "${tt(a)}" was not provided.`, {
|
|
9726
9726
|
nodes: [e]
|
|
9727
9727
|
});
|
|
9728
9728
|
continue;
|
|
@@ -9735,7 +9735,7 @@ function Vu(t, e, n = {}) {
|
|
|
9735
9735
|
if (u !== void 0)
|
|
9736
9736
|
i[o] = u;
|
|
9737
9737
|
else if (re(a))
|
|
9738
|
-
throw
|
|
9738
|
+
throw Y(`Argument "${o}" of required type "${tt(a)}" was provided the variable "$${S}" which was not provided a runtime value.`, {
|
|
9739
9739
|
nodes: [f]
|
|
9740
9740
|
});
|
|
9741
9741
|
continue;
|
|
@@ -9743,12 +9743,12 @@ function Vu(t, e, n = {}) {
|
|
|
9743
9743
|
p = n[S] == null;
|
|
9744
9744
|
}
|
|
9745
9745
|
if (p && re(a))
|
|
9746
|
-
throw
|
|
9746
|
+
throw Y(`Argument "${o}" of non-null type "${tt(a)}" must not be null.`, {
|
|
9747
9747
|
nodes: [f]
|
|
9748
9748
|
});
|
|
9749
9749
|
const m = Nn(f, a, n);
|
|
9750
9750
|
if (m === void 0)
|
|
9751
|
-
throw
|
|
9751
|
+
throw Y(`Argument "${o}" has invalid value ${be(f)}.`, {
|
|
9752
9752
|
nodes: [f]
|
|
9753
9753
|
});
|
|
9754
9754
|
i[o] = m;
|
|
@@ -9803,8 +9803,8 @@ function Rh(t) {
|
|
|
9803
9803
|
S.set(s, w);
|
|
9804
9804
|
const C = /* @__PURE__ */ new WeakMap();
|
|
9805
9805
|
w.set(o, C);
|
|
9806
|
-
const
|
|
9807
|
-
return C.set(a,
|
|
9806
|
+
const v = t(i, r, s, o, a);
|
|
9807
|
+
return C.set(a, v), v;
|
|
9808
9808
|
}
|
|
9809
9809
|
let c = u.get(r);
|
|
9810
9810
|
if (!c) {
|
|
@@ -9841,7 +9841,7 @@ function Rh(t) {
|
|
|
9841
9841
|
function Lh(t, e, n) {
|
|
9842
9842
|
const r = kh(t).get(e);
|
|
9843
9843
|
if (r == null)
|
|
9844
|
-
throw
|
|
9844
|
+
throw Y(`Schema is not configured to execute ${e} operation.`, {
|
|
9845
9845
|
nodes: n
|
|
9846
9846
|
});
|
|
9847
9847
|
return r;
|
|
@@ -10054,20 +10054,20 @@ function dr(t, e, n) {
|
|
|
10054
10054
|
}
|
|
10055
10055
|
else if (e) {
|
|
10056
10056
|
const r = e.maskError(t, e.errorMessage, e.isDev);
|
|
10057
|
-
r !== t && n.error(t), i.add(oi(r) ? r :
|
|
10057
|
+
r !== t && n.error(t), i.add(oi(r) ? r : Y(r.message, {
|
|
10058
10058
|
originalError: r
|
|
10059
10059
|
}));
|
|
10060
|
-
} else oi(t) ? i.add(t) : t instanceof Error ? i.add(
|
|
10060
|
+
} else oi(t) ? i.add(t) : t instanceof Error ? i.add(Y(t.message, {
|
|
10061
10061
|
originalError: t
|
|
10062
|
-
})) : typeof t == "string" ? i.add(
|
|
10062
|
+
})) : typeof t == "string" ? i.add(Y(t, {
|
|
10063
10063
|
extensions: {
|
|
10064
10064
|
unexpected: !0
|
|
10065
10065
|
}
|
|
10066
|
-
})) : Vh(t) ? i.add(
|
|
10066
|
+
})) : Vh(t) ? i.add(Y(t.toString(), {
|
|
10067
10067
|
extensions: {
|
|
10068
10068
|
unexpected: !0
|
|
10069
10069
|
}
|
|
10070
|
-
})) : (n.error(t), i.add(
|
|
10070
|
+
})) : (n.error(t), i.add(Y("Unexpected error.", {
|
|
10071
10071
|
extensions: {
|
|
10072
10072
|
http: {
|
|
10073
10073
|
unexpected: !0
|
|
@@ -10119,23 +10119,23 @@ const bn = {
|
|
|
10119
10119
|
error: n > gi.error ? sr : Qh
|
|
10120
10120
|
};
|
|
10121
10121
|
}, Wh = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.2.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.2.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
|
|
10122
|
-
function
|
|
10122
|
+
function Hh({ headers: t, method: e }) {
|
|
10123
10123
|
var n;
|
|
10124
10124
|
return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
|
|
10125
10125
|
}
|
|
10126
|
-
const
|
|
10126
|
+
const Yh = (t) => Wh.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
|
|
10127
10127
|
function Jh(t) {
|
|
10128
10128
|
const e = t.logger ?? console;
|
|
10129
10129
|
let n;
|
|
10130
10130
|
typeof (t == null ? void 0 : t.options) == "function" ? n = t == null ? void 0 : t.options : typeof (t == null ? void 0 : t.options) == "object" ? n = () => t == null ? void 0 : t.options : (t == null ? void 0 : t.options) === !1 ? n = () => !1 : n = () => ({});
|
|
10131
|
-
const i = (t == null ? void 0 : t.render) ??
|
|
10131
|
+
const i = (t == null ? void 0 : t.render) ?? Yh;
|
|
10132
10132
|
let r;
|
|
10133
10133
|
const s = ({ URLPattern: o }) => (r || (r = new o({
|
|
10134
10134
|
pathname: t.graphqlEndpoint
|
|
10135
10135
|
})), r);
|
|
10136
10136
|
return {
|
|
10137
10137
|
async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: c, url: f }) {
|
|
10138
|
-
if (
|
|
10138
|
+
if (Hh(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || f.pathname === t.graphqlEndpoint || f.pathname === `${t.graphqlEndpoint}/` || s(u).test(f))) {
|
|
10139
10139
|
e.debug("Rendering GraphiQL");
|
|
10140
10140
|
const p = await n(o, a);
|
|
10141
10141
|
if (p) {
|
|
@@ -10156,7 +10156,7 @@ function Jh(t) {
|
|
|
10156
10156
|
const Kh = (t) => {
|
|
10157
10157
|
if (t == null)
|
|
10158
10158
|
return {};
|
|
10159
|
-
if (
|
|
10159
|
+
if (Eu(t))
|
|
10160
10160
|
return {
|
|
10161
10161
|
onPluginInit({ setSchema: n }) {
|
|
10162
10162
|
n(t);
|
|
@@ -10210,7 +10210,7 @@ const Zh = (t) => {
|
|
|
10210
10210
|
};
|
|
10211
10211
|
class ht {
|
|
10212
10212
|
constructor(e) {
|
|
10213
|
-
|
|
10213
|
+
H(this, "state");
|
|
10214
10214
|
let n;
|
|
10215
10215
|
try {
|
|
10216
10216
|
n = e();
|
|
@@ -10325,7 +10325,7 @@ function tp(t, e, n, i) {
|
|
|
10325
10325
|
try {
|
|
10326
10326
|
const o = np(t, e, n, (a) => {
|
|
10327
10327
|
if (s != null && r.length >= s)
|
|
10328
|
-
throw
|
|
10328
|
+
throw Y("Too many errors processing variables, error limit reached. Execution aborted.");
|
|
10329
10329
|
r.push(a);
|
|
10330
10330
|
});
|
|
10331
10331
|
if (r.length === 0)
|
|
@@ -10341,7 +10341,7 @@ function np(t, e, n, i) {
|
|
|
10341
10341
|
const o = s.variable.name.value, a = nt(t, s.type);
|
|
10342
10342
|
if (!jt(a)) {
|
|
10343
10343
|
const c = be(s.type);
|
|
10344
|
-
i(
|
|
10344
|
+
i(Y(`Variable "$${o}" expected value of type "${c}" which cannot be used as an input type.`, { nodes: s.type }));
|
|
10345
10345
|
continue;
|
|
10346
10346
|
}
|
|
10347
10347
|
if (!Uu(n, o)) {
|
|
@@ -10349,7 +10349,7 @@ function np(t, e, n, i) {
|
|
|
10349
10349
|
r[o] = Nn(s.defaultValue, a);
|
|
10350
10350
|
else if (re(a)) {
|
|
10351
10351
|
const c = tt(a);
|
|
10352
|
-
i(
|
|
10352
|
+
i(Y(`Variable "$${o}" of required type "${c}" was not provided.`, {
|
|
10353
10353
|
nodes: s
|
|
10354
10354
|
}));
|
|
10355
10355
|
}
|
|
@@ -10358,14 +10358,14 @@ function np(t, e, n, i) {
|
|
|
10358
10358
|
const u = n[o];
|
|
10359
10359
|
if (u === null && re(a)) {
|
|
10360
10360
|
const c = tt(a);
|
|
10361
|
-
i(
|
|
10361
|
+
i(Y(`Variable "$${o}" of non-null type "${c}" must not be null.`, {
|
|
10362
10362
|
nodes: s
|
|
10363
10363
|
}));
|
|
10364
10364
|
continue;
|
|
10365
10365
|
}
|
|
10366
10366
|
r[o] = nd(u, a, (c, f, p) => {
|
|
10367
10367
|
let m = `Variable "$${o}" got invalid value ` + tt(f);
|
|
10368
|
-
c.length > 0 && (m += ` at "${o}${Mh(c)}"`), i(
|
|
10368
|
+
c.length > 0 && (m += ` at "${o}${Mh(c)}"`), i(Y(m + "; " + p.message, {
|
|
10369
10369
|
nodes: s,
|
|
10370
10370
|
originalError: p.originalError
|
|
10371
10371
|
}));
|
|
@@ -10418,20 +10418,20 @@ function Wu(t) {
|
|
|
10418
10418
|
Tu(e);
|
|
10419
10419
|
const p = sp(n);
|
|
10420
10420
|
let m;
|
|
10421
|
-
for (const
|
|
10422
|
-
switch (
|
|
10421
|
+
for (const v of n.definitions)
|
|
10422
|
+
switch (v.kind) {
|
|
10423
10423
|
case _.OPERATION_DEFINITION:
|
|
10424
10424
|
if (o == null) {
|
|
10425
10425
|
if (m !== void 0)
|
|
10426
10426
|
return [
|
|
10427
|
-
|
|
10427
|
+
Y("Must provide operation name if query contains multiple operations.")
|
|
10428
10428
|
];
|
|
10429
|
-
m =
|
|
10430
|
-
} else ((C =
|
|
10429
|
+
m = v;
|
|
10430
|
+
} else ((C = v.name) == null ? void 0 : C.value) === o && (m = v);
|
|
10431
10431
|
break;
|
|
10432
10432
|
}
|
|
10433
10433
|
if (m == null)
|
|
10434
|
-
return o != null ? [
|
|
10434
|
+
return o != null ? [Y(`Unknown operation named "${o}".`)] : [Y("Must provide an operation.")];
|
|
10435
10435
|
const S = m.variableDefinitions ?? [], w = tp(e, S, s ?? {}, {
|
|
10436
10436
|
maxErrors: 50
|
|
10437
10437
|
});
|
|
@@ -10460,7 +10460,7 @@ function op(t, e) {
|
|
|
10460
10460
|
}
|
|
10461
10461
|
function ap(t) {
|
|
10462
10462
|
const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Lh(n, e.operation, [e]);
|
|
10463
|
-
o == null &&
|
|
10463
|
+
o == null && Y(`Schema is not configured to execute ${e.operation} operation.`, {
|
|
10464
10464
|
nodes: e
|
|
10465
10465
|
});
|
|
10466
10466
|
const { fields: a, patches: u } = qu(n, i, r, o, e.selectionSet), c = void 0;
|
|
@@ -10477,9 +10477,9 @@ function up(t, e, n, i, r) {
|
|
|
10477
10477
|
return Fh(r, (o, [a, u]) => {
|
|
10478
10478
|
var f;
|
|
10479
10479
|
const c = li(i, a, e.name);
|
|
10480
|
-
return (f = t.signal) != null && f.aborted ? (o[a] = null, o) : new ht(() =>
|
|
10480
|
+
return (f = t.signal) != null && f.aborted ? (o[a] = null, o) : new ht(() => Hu(t, e, n, u, c)).then((p) => {
|
|
10481
10481
|
var m, S;
|
|
10482
|
-
return p === void 0 || (o[a] = p, (m = t.signal) != null && m.aborted && !s && (t.errors.push(
|
|
10482
|
+
return p === void 0 || (o[a] = p, (m = t.signal) != null && m.aborted && !s && (t.errors.push(Y("Execution aborted", {
|
|
10483
10483
|
nodes: u,
|
|
10484
10484
|
path: Me(c),
|
|
10485
10485
|
originalError: (S = t.signal) == null ? void 0 : S.reason
|
|
@@ -10497,8 +10497,8 @@ function Zs(t, e, n, i, r, s) {
|
|
|
10497
10497
|
o[m] = null;
|
|
10498
10498
|
continue;
|
|
10499
10499
|
}
|
|
10500
|
-
const w = li(i, m, e.name), C =
|
|
10501
|
-
C !== void 0 && (o[m] = C, Pe(C) && (a = !0)), (f = t.signal) != null && f.aborted && !u && (t.errors.push(
|
|
10500
|
+
const w = li(i, m, e.name), C = Hu(t, e, n, S, w, s);
|
|
10501
|
+
C !== void 0 && (o[m] = C, Pe(C) && (a = !0)), (f = t.signal) != null && f.aborted && !u && (t.errors.push(Y("Execution aborted", {
|
|
10502
10502
|
nodes: S,
|
|
10503
10503
|
path: Me(w),
|
|
10504
10504
|
originalError: (p = t.signal) == null ? void 0 : p.reason
|
|
@@ -10513,24 +10513,24 @@ function Zs(t, e, n, i, r, s) {
|
|
|
10513
10513
|
}
|
|
10514
10514
|
return a ? aa(o, t.signal) : o;
|
|
10515
10515
|
}
|
|
10516
|
-
function
|
|
10516
|
+
function Hu(t, e, n, i, r, s) {
|
|
10517
10517
|
const o = (s == null ? void 0 : s.errors) ?? t.errors, a = tl(t.schema, e, i[0]);
|
|
10518
10518
|
if (!a)
|
|
10519
10519
|
return;
|
|
10520
|
-
const u = a.type, c = a.resolve ?? t.fieldResolver, f =
|
|
10520
|
+
const u = a.type, c = a.resolve ?? t.fieldResolver, f = Yu(t, a, i, e, r);
|
|
10521
10521
|
try {
|
|
10522
10522
|
const p = Vu(a, i[0], t.variableValues), m = t.contextValue, S = c(n, p, m, f);
|
|
10523
10523
|
let w;
|
|
10524
10524
|
return Pe(S) ? w = S.then((C) => wn(t, u, i, f, r, C, s)) : w = wn(t, u, i, f, r, S, s), Pe(w) ? w.then(void 0, (C) => {
|
|
10525
|
-
const
|
|
10525
|
+
const v = gt(C, i, Me(r)), b = Ht(v, u, o);
|
|
10526
10526
|
return pt(t, r, s), b;
|
|
10527
10527
|
}) : w;
|
|
10528
10528
|
} catch (p) {
|
|
10529
|
-
const m = gt(p, i, Me(r)), S =
|
|
10529
|
+
const m = gt(p, i, Me(r)), S = Ht(m, u, o);
|
|
10530
10530
|
return pt(t, r, s), S;
|
|
10531
10531
|
}
|
|
10532
10532
|
}
|
|
10533
|
-
function
|
|
10533
|
+
function Yu(t, e, n, i, r) {
|
|
10534
10534
|
return {
|
|
10535
10535
|
fieldName: e.name,
|
|
10536
10536
|
fieldNodes: n,
|
|
@@ -10544,7 +10544,7 @@ function Hu(t, e, n, i, r) {
|
|
|
10544
10544
|
variableValues: t.variableValues
|
|
10545
10545
|
};
|
|
10546
10546
|
}
|
|
10547
|
-
function
|
|
10547
|
+
function Ht(t, e, n) {
|
|
10548
10548
|
if (re(e))
|
|
10549
10549
|
throw t;
|
|
10550
10550
|
return n.push(t), null;
|
|
@@ -10584,7 +10584,7 @@ async function lp(t, e, n, i, r, s, o) {
|
|
|
10584
10584
|
var m;
|
|
10585
10585
|
(m = t.signal) == null || m.addEventListener("abort", () => {
|
|
10586
10586
|
var S, w;
|
|
10587
|
-
(S = s.return) == null || S.call(s), t.errors.push(
|
|
10587
|
+
(S = s.return) == null || S.call(s), t.errors.push(Y("Execution aborted", {
|
|
10588
10588
|
nodes: n,
|
|
10589
10589
|
path: Me(r),
|
|
10590
10590
|
originalError: (w = t.signal) == null ? void 0 : w.reason
|
|
@@ -10596,7 +10596,7 @@ async function lp(t, e, n, i, r, s, o) {
|
|
|
10596
10596
|
let p = 0;
|
|
10597
10597
|
for (; ; ) {
|
|
10598
10598
|
if (u && typeof u.initialCount == "number" && p >= u.initialCount) {
|
|
10599
|
-
|
|
10599
|
+
vp(p, s, t, n, i, e, r, u.label, o);
|
|
10600
10600
|
break;
|
|
10601
10601
|
}
|
|
10602
10602
|
const S = li(r, p, void 0);
|
|
@@ -10605,8 +10605,8 @@ async function lp(t, e, n, i, r, s, o) {
|
|
|
10605
10605
|
if (w = await s.next(), w.done)
|
|
10606
10606
|
break;
|
|
10607
10607
|
} catch (C) {
|
|
10608
|
-
const
|
|
10609
|
-
f.push(
|
|
10608
|
+
const v = gt(C, n, Me(S));
|
|
10609
|
+
f.push(Ht(v, e, a));
|
|
10610
10610
|
break;
|
|
10611
10611
|
}
|
|
10612
10612
|
Ku(w.value, f, a, t, e, n, i, S, o) && (c = !0), p += 1;
|
|
@@ -10620,7 +10620,7 @@ function cp(t, e, n, i, r, s, o) {
|
|
|
10620
10620
|
return lp(t, a, n, i, r, w, o);
|
|
10621
10621
|
}
|
|
10622
10622
|
if (!xh(s))
|
|
10623
|
-
throw
|
|
10623
|
+
throw Y(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
|
|
10624
10624
|
const c = Ju(t, n, r);
|
|
10625
10625
|
let f = !1, p = o;
|
|
10626
10626
|
const m = [];
|
|
@@ -10640,12 +10640,12 @@ function Ku(t, e, n, i, r, s, o, a, u) {
|
|
|
10640
10640
|
let c;
|
|
10641
10641
|
if (Pe(t) ? c = t.then((f) => wn(i, r, s, o, a, f, u)) : c = wn(i, r, s, o, a, t, u), Pe(c))
|
|
10642
10642
|
return e.push(c.then(void 0, (f) => {
|
|
10643
|
-
const p = gt(f, s, Me(a)), m =
|
|
10643
|
+
const p = gt(f, s, Me(a)), m = Ht(p, r, n);
|
|
10644
10644
|
return pt(i, a, u), m;
|
|
10645
10645
|
})), !0;
|
|
10646
10646
|
e.push(c);
|
|
10647
10647
|
} catch (c) {
|
|
10648
|
-
const f = gt(c, s, Me(a)), p =
|
|
10648
|
+
const f = gt(c, s, Me(a)), p = Ht(f, r, n);
|
|
10649
10649
|
pt(i, a, u), e.push(p);
|
|
10650
10650
|
}
|
|
10651
10651
|
return !1;
|
|
@@ -10667,18 +10667,18 @@ function dp(t, e, n, i, r, s, o) {
|
|
|
10667
10667
|
}
|
|
10668
10668
|
function la(t, e, n, i, r, s) {
|
|
10669
10669
|
if (t == null)
|
|
10670
|
-
throw
|
|
10670
|
+
throw Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, { nodes: i });
|
|
10671
10671
|
if (pe(t))
|
|
10672
|
-
throw
|
|
10672
|
+
throw Y("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");
|
|
10673
10673
|
if (typeof t != "string")
|
|
10674
|
-
throw
|
|
10674
|
+
throw Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}" with value ${tt(s)}, received "${tt(t)}".`);
|
|
10675
10675
|
const o = e.schema.getType(t);
|
|
10676
10676
|
if (o == null)
|
|
10677
|
-
throw
|
|
10677
|
+
throw Y(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`, { nodes: i });
|
|
10678
10678
|
if (!pe(o))
|
|
10679
|
-
throw
|
|
10679
|
+
throw Y(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`, { nodes: i });
|
|
10680
10680
|
if (!e.schema.isSubType(n, o))
|
|
10681
|
-
throw
|
|
10681
|
+
throw Y(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`, { nodes: i });
|
|
10682
10682
|
return o;
|
|
10683
10683
|
}
|
|
10684
10684
|
function _s(t, e, n, i, r, s, o) {
|
|
@@ -10696,7 +10696,7 @@ function _s(t, e, n, i, r, s, o) {
|
|
|
10696
10696
|
return fa(t, e, n, r, s, o);
|
|
10697
10697
|
}
|
|
10698
10698
|
function ca(t, e, n) {
|
|
10699
|
-
return
|
|
10699
|
+
return Y(`Expected value of type "${t.name}" but got: ${tt(e)}.`, {
|
|
10700
10700
|
nodes: n
|
|
10701
10701
|
});
|
|
10702
10702
|
}
|
|
@@ -10786,7 +10786,7 @@ async function* gp(t, e) {
|
|
|
10786
10786
|
}
|
|
10787
10787
|
function ha(t, e) {
|
|
10788
10788
|
return Vr(e) ? ep(Gu(e[Symbol.asyncIterator](), async (n) => gp(await Qu(op(t, n)), t.signal), (n) => {
|
|
10789
|
-
throw
|
|
10789
|
+
throw Y(n.message, {
|
|
10790
10790
|
originalError: n,
|
|
10791
10791
|
nodes: [t.operation]
|
|
10792
10792
|
});
|
|
@@ -10803,15 +10803,15 @@ function mp(t) {
|
|
|
10803
10803
|
function yp(t) {
|
|
10804
10804
|
const { schema: e, fragments: n, operation: i, variableValues: r, rootValue: s } = t, o = e.getSubscriptionType();
|
|
10805
10805
|
if (o == null)
|
|
10806
|
-
throw
|
|
10806
|
+
throw Y("Schema is not configured to execute subscription operation.", {
|
|
10807
10807
|
nodes: i
|
|
10808
10808
|
});
|
|
10809
10809
|
const { fields: a } = qu(e, n, r, o, i.selectionSet), [u, c] = [...a.entries()][0], f = c[0].name.value, p = tl(e, o, c[0]);
|
|
10810
10810
|
if (!p)
|
|
10811
|
-
throw
|
|
10811
|
+
throw Y(`The subscription field "${f}" is not defined.`, {
|
|
10812
10812
|
nodes: c
|
|
10813
10813
|
});
|
|
10814
|
-
const m = li(void 0, u, o.name), S =
|
|
10814
|
+
const m = li(void 0, u, o.name), S = Yu(t, p, c, o, m);
|
|
10815
10815
|
try {
|
|
10816
10816
|
const w = Vu(p, c[0], r), C = t.contextValue, b = (p.subscribe ?? t.subscribeFieldResolver)(s, w, C, S);
|
|
10817
10817
|
return Pe(b) ? b.then(pa).then(void 0, (O) => {
|
|
@@ -10825,7 +10825,7 @@ function pa(t, e) {
|
|
|
10825
10825
|
if (t instanceof Error)
|
|
10826
10826
|
throw t;
|
|
10827
10827
|
if (!Vr(t))
|
|
10828
|
-
throw
|
|
10828
|
+
throw Y(`Subscription field must return Async Iterable. Received: ${tt(t)}.`);
|
|
10829
10829
|
return {
|
|
10830
10830
|
[Symbol.asyncIterator]() {
|
|
10831
10831
|
const n = t[Symbol.asyncIterator]();
|
|
@@ -10862,12 +10862,12 @@ function bp(t, e, n, i, r, s, o, a, u) {
|
|
|
10862
10862
|
try {
|
|
10863
10863
|
try {
|
|
10864
10864
|
Pe(n) ? f = n.then((m) => wn(i, o, r, s, e, m, c)) : f = wn(i, o, r, s, e, n, c), Pe(f) && (f = f.then(void 0, (m) => {
|
|
10865
|
-
const S = gt(m, r, Me(e)), w =
|
|
10865
|
+
const S = gt(m, r, Me(e)), w = Ht(S, o, c.errors);
|
|
10866
10866
|
return pt(i, e, c), w;
|
|
10867
10867
|
}));
|
|
10868
10868
|
} catch (m) {
|
|
10869
10869
|
const S = gt(m, r, Me(e));
|
|
10870
|
-
f =
|
|
10870
|
+
f = Ht(S, o, c.errors), pt(i, e, c);
|
|
10871
10871
|
}
|
|
10872
10872
|
} catch (m) {
|
|
10873
10873
|
return c.errors.push(m), pt(i, t, c), c.addItems(null), c;
|
|
@@ -10884,20 +10884,20 @@ async function wp(t, e, n, i, r, s, o) {
|
|
|
10884
10884
|
a = c;
|
|
10885
10885
|
} catch (c) {
|
|
10886
10886
|
const f = gt(c, n, Me(o));
|
|
10887
|
-
return { done: !0, value:
|
|
10887
|
+
return { done: !0, value: Ht(f, r, s.errors) };
|
|
10888
10888
|
}
|
|
10889
10889
|
let u;
|
|
10890
10890
|
try {
|
|
10891
10891
|
return u = wn(e, r, n, i, o, a, s), Pe(u) && (u = u.then(void 0, (c) => {
|
|
10892
|
-
const f = gt(c, n, Me(o)), p =
|
|
10892
|
+
const f = gt(c, n, Me(o)), p = Ht(f, r, s.errors);
|
|
10893
10893
|
return pt(e, o, s), p;
|
|
10894
10894
|
})), { done: !1, value: u };
|
|
10895
10895
|
} catch (c) {
|
|
10896
|
-
const f = gt(c, n, Me(o)), p =
|
|
10896
|
+
const f = gt(c, n, Me(o)), p = Ht(f, r, s.errors);
|
|
10897
10897
|
return pt(e, o, s), { done: !1, value: p };
|
|
10898
10898
|
}
|
|
10899
10899
|
}
|
|
10900
|
-
async function
|
|
10900
|
+
async function vp(t, e, n, i, r, s, o, a, u) {
|
|
10901
10901
|
let c = t, f = u ?? void 0;
|
|
10902
10902
|
for (; ; ) {
|
|
10903
10903
|
const p = li(o, c, void 0), m = new el({
|
|
@@ -10916,8 +10916,8 @@ async function Ep(t, e, n, i, r, s, o, a, u) {
|
|
|
10916
10916
|
return;
|
|
10917
10917
|
}
|
|
10918
10918
|
const { done: w, value: C } = S;
|
|
10919
|
-
let
|
|
10920
|
-
if (Pe(C) ?
|
|
10919
|
+
let v;
|
|
10920
|
+
if (Pe(C) ? v = C.then((b) => [b], (b) => (m.errors.push(b), pt(n, o, m), null)) : v = [C], m.addItems(v), w)
|
|
10921
10921
|
break;
|
|
10922
10922
|
f = m, c++;
|
|
10923
10923
|
}
|
|
@@ -10935,7 +10935,7 @@ function pt(t, e, n) {
|
|
|
10935
10935
|
}
|
|
10936
10936
|
});
|
|
10937
10937
|
}
|
|
10938
|
-
function
|
|
10938
|
+
function Ep(t) {
|
|
10939
10939
|
const e = [];
|
|
10940
10940
|
for (const n of t.subsequentPayloads) {
|
|
10941
10941
|
const i = {};
|
|
@@ -10961,7 +10961,7 @@ function Tp(t) {
|
|
|
10961
10961
|
return { value: void 0, done: !0 };
|
|
10962
10962
|
if (await Promise.race(Array.from(t.subsequentPayloads).map((o) => o.promise)), e)
|
|
10963
10963
|
return { value: void 0, done: !0 };
|
|
10964
|
-
const r =
|
|
10964
|
+
const r = Ep(t), s = t.subsequentPayloads.size > 0;
|
|
10965
10965
|
return !r.length && s ? n() : (s || (e = !0), {
|
|
10966
10966
|
value: r.length ? { incremental: r, hasNext: s } : { hasNext: s },
|
|
10967
10967
|
done: !1
|
|
@@ -11035,10 +11035,10 @@ function eo(t) {
|
|
|
11035
11035
|
}
|
|
11036
11036
|
function tl(t, e, n) {
|
|
11037
11037
|
const i = n.name.value;
|
|
11038
|
-
return i ===
|
|
11038
|
+
return i === Er.name && t.getQueryType() === e ? Er : i === Tr.name && t.getQueryType() === e ? Tr : i === Sr.name ? Sr : e.getFields()[i];
|
|
11039
11039
|
}
|
|
11040
11040
|
function ga(t) {
|
|
11041
|
-
const e =
|
|
11041
|
+
const e = Ys(t.document, t.operationName);
|
|
11042
11042
|
if (e == null)
|
|
11043
11043
|
throw new Error("Must provide an operation.");
|
|
11044
11044
|
return e.operation === "subscription" ? pp(t) : new ht(() => rp(t)).then((n) => "initialResult" in n ? Xu(n, t.signal) : n).resolve();
|
|
@@ -11269,7 +11269,7 @@ function ba(t, e, n) {
|
|
|
11269
11269
|
if (sl(s))
|
|
11270
11270
|
return Wp(e, s);
|
|
11271
11271
|
}
|
|
11272
|
-
function
|
|
11272
|
+
function Hp(t) {
|
|
11273
11273
|
return t != null && typeof t == "object" && ("body" in t || "cache" in t || "credentials" in t || "headers" in t || "integrity" in t || "keepalive" in t || "method" in t || "mode" in t || "redirect" in t || "referrer" in t || "referrerPolicy" in t || "signal" in t || "window" in t);
|
|
11274
11274
|
}
|
|
11275
11275
|
function or(...t) {
|
|
@@ -11311,7 +11311,7 @@ function ar(t, e) {
|
|
|
11311
11311
|
status: t.status || 500
|
|
11312
11312
|
});
|
|
11313
11313
|
}
|
|
11314
|
-
function
|
|
11314
|
+
function va(t, e) {
|
|
11315
11315
|
if (t == null)
|
|
11316
11316
|
return {};
|
|
11317
11317
|
const n = {}, i = /* @__PURE__ */ new Set();
|
|
@@ -11351,7 +11351,7 @@ function Ea(t, e) {
|
|
|
11351
11351
|
}
|
|
11352
11352
|
});
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function Yp() {
|
|
11355
11355
|
let t, e;
|
|
11356
11356
|
return {
|
|
11357
11357
|
promise: new Promise(function(r, s) {
|
|
@@ -11365,9 +11365,9 @@ function Hp() {
|
|
|
11365
11365
|
}
|
|
11366
11366
|
};
|
|
11367
11367
|
}
|
|
11368
|
-
function
|
|
11368
|
+
function Ea(t, e) {
|
|
11369
11369
|
if (dn(t) && e) {
|
|
11370
|
-
const n =
|
|
11370
|
+
const n = Yp();
|
|
11371
11371
|
return e.addEventListener("abort", function() {
|
|
11372
11372
|
n.reject(new DOMException("Aborted", "AbortError"));
|
|
11373
11373
|
}), t.then(function(r) {
|
|
@@ -11470,8 +11470,8 @@ function ng(t, e) {
|
|
|
11470
11470
|
...e == null ? void 0 : e.fetchAPI
|
|
11471
11471
|
}, i = typeof t == "function" ? t : t.handle, r = [], s = [];
|
|
11472
11472
|
if ((e == null ? void 0 : e.plugins) != null)
|
|
11473
|
-
for (const
|
|
11474
|
-
|
|
11473
|
+
for (const v of e.plugins)
|
|
11474
|
+
v.onRequest && r.push(v.onRequest), v.onResponse && s.push(v.onResponse);
|
|
11475
11475
|
const o = r.length > 0 || s.length > 0 ? function(b, O) {
|
|
11476
11476
|
let x = i, A;
|
|
11477
11477
|
if (r.length === 0)
|
|
@@ -11513,13 +11513,13 @@ function ng(t, e) {
|
|
|
11513
11513
|
}
|
|
11514
11514
|
return dn(T) ? T.then(g) : g();
|
|
11515
11515
|
} : i;
|
|
11516
|
-
function a(
|
|
11517
|
-
const O = b.length > 1 ? or(...b) : b[0] || {}, x = Gp(
|
|
11516
|
+
function a(v, ...b) {
|
|
11517
|
+
const O = b.length > 1 ? or(...b) : b[0] || {}, x = Gp(v, n.Request);
|
|
11518
11518
|
return o(x, O);
|
|
11519
11519
|
}
|
|
11520
|
-
function u(
|
|
11520
|
+
function u(v, b, ...O) {
|
|
11521
11521
|
const x = [], A = {
|
|
11522
|
-
req:
|
|
11522
|
+
req: v,
|
|
11523
11523
|
res: b,
|
|
11524
11524
|
waitUntil(T) {
|
|
11525
11525
|
x.push(T.catch((N) => console.error(N)));
|
|
@@ -11527,34 +11527,34 @@ function ng(t, e) {
|
|
|
11527
11527
|
};
|
|
11528
11528
|
let L;
|
|
11529
11529
|
try {
|
|
11530
|
-
L = a(
|
|
11530
|
+
L = a(v, A, ...O);
|
|
11531
11531
|
} catch (T) {
|
|
11532
11532
|
L = ar(T, n.Response);
|
|
11533
11533
|
}
|
|
11534
11534
|
if (dn(L))
|
|
11535
|
-
return L.catch((T) => ar(T, n.Response)).then((T) => ba(T, b,
|
|
11535
|
+
return L.catch((T) => ar(T, n.Response)).then((T) => ba(T, b, v)).catch((T) => {
|
|
11536
11536
|
console.error(`Unexpected error while handling request: ${T.message || T}`);
|
|
11537
11537
|
});
|
|
11538
11538
|
try {
|
|
11539
|
-
return ba(L, b,
|
|
11539
|
+
return ba(L, b, v);
|
|
11540
11540
|
} catch (T) {
|
|
11541
11541
|
console.error(`Unexpected error while handling request: ${T.message || T}`);
|
|
11542
11542
|
}
|
|
11543
11543
|
}
|
|
11544
|
-
function c(
|
|
11544
|
+
function c(v, b, ...O) {
|
|
11545
11545
|
const x = [], A = {
|
|
11546
|
-
res:
|
|
11546
|
+
res: v,
|
|
11547
11547
|
req: b,
|
|
11548
11548
|
waitUntil(d) {
|
|
11549
11549
|
x.push(d.catch((I) => console.error(I)));
|
|
11550
11550
|
}
|
|
11551
11551
|
}, T = O.filter((d) => d != null).length > 0 ? or(A, ...O) : A, N = Kp({
|
|
11552
11552
|
req: b,
|
|
11553
|
-
res:
|
|
11553
|
+
res: v,
|
|
11554
11554
|
fetchAPI: n
|
|
11555
11555
|
});
|
|
11556
11556
|
let g = !1;
|
|
11557
|
-
|
|
11557
|
+
v.onAborted(() => {
|
|
11558
11558
|
g = !0, N.signal.sendAbort();
|
|
11559
11559
|
});
|
|
11560
11560
|
let y;
|
|
@@ -11566,52 +11566,52 @@ function ng(t, e) {
|
|
|
11566
11566
|
if (dn(y))
|
|
11567
11567
|
return y.catch((d) => ar(d, n.Response)).then((d) => {
|
|
11568
11568
|
if (!g)
|
|
11569
|
-
return Ta(
|
|
11569
|
+
return Ta(v, d);
|
|
11570
11570
|
}).catch((d) => {
|
|
11571
11571
|
console.error(`Unexpected error while handling request: ${d.message || d}`);
|
|
11572
11572
|
});
|
|
11573
11573
|
try {
|
|
11574
|
-
return Ta(
|
|
11574
|
+
return Ta(v, y);
|
|
11575
11575
|
} catch (d) {
|
|
11576
11576
|
console.error(`Unexpected error while handling request: ${d.message || d}`);
|
|
11577
11577
|
}
|
|
11578
11578
|
}
|
|
11579
|
-
function f(
|
|
11580
|
-
if (!
|
|
11581
|
-
throw new TypeError(`Expected FetchEvent, got ${
|
|
11582
|
-
const O = b.filter((L) => L != null), x = O.length > 0 ? or({},
|
|
11583
|
-
|
|
11579
|
+
function f(v, ...b) {
|
|
11580
|
+
if (!v.respondWith || !v.request)
|
|
11581
|
+
throw new TypeError(`Expected FetchEvent, got ${v}`);
|
|
11582
|
+
const O = b.filter((L) => L != null), x = O.length > 0 ? or({}, v, ...O) : va(v), A = o(v.request, x);
|
|
11583
|
+
v.respondWith(A);
|
|
11584
11584
|
}
|
|
11585
|
-
function p(
|
|
11585
|
+
function p(v, ...b) {
|
|
11586
11586
|
const O = b.filter((T) => T != null);
|
|
11587
11587
|
let x;
|
|
11588
|
-
const A = O.length > 1 ? or(...O) :
|
|
11588
|
+
const A = O.length > 1 ? or(...O) : va(O[0], O[0] == null || O[0].waitUntil == null ? x = [] : void 0), L = o(v, A);
|
|
11589
11589
|
return x != null && x.length ? Zp(x).then(() => L) : L;
|
|
11590
11590
|
}
|
|
11591
|
-
const m = (
|
|
11592
|
-
if (typeof
|
|
11591
|
+
const m = (v, ...b) => {
|
|
11592
|
+
if (typeof v == "string" || "href" in v) {
|
|
11593
11593
|
const [x, ...A] = b;
|
|
11594
|
-
if (
|
|
11595
|
-
const T = new n.Request(
|
|
11596
|
-
return
|
|
11594
|
+
if (Hp(x)) {
|
|
11595
|
+
const T = new n.Request(v, x), N = p(T, ...A);
|
|
11596
|
+
return Ea(N, x == null ? void 0 : x.signal);
|
|
11597
11597
|
}
|
|
11598
|
-
const L = new n.Request(
|
|
11598
|
+
const L = new n.Request(v);
|
|
11599
11599
|
return p(L, ...b);
|
|
11600
11600
|
}
|
|
11601
|
-
const O = p(
|
|
11602
|
-
return
|
|
11603
|
-
}, S = (
|
|
11601
|
+
const O = p(v, ...b);
|
|
11602
|
+
return Ea(O, v._signal);
|
|
11603
|
+
}, S = (v, ...b) => {
|
|
11604
11604
|
const [O, ...x] = b;
|
|
11605
|
-
if (qp(
|
|
11605
|
+
if (qp(v)) {
|
|
11606
11606
|
if (!ya(O))
|
|
11607
11607
|
throw new TypeError(`Expected ServerResponse, got ${O}`);
|
|
11608
|
-
return u(
|
|
11608
|
+
return u(v, O, ...x);
|
|
11609
11609
|
}
|
|
11610
|
-
if (Jp(
|
|
11611
|
-
return c(
|
|
11610
|
+
if (Jp(v))
|
|
11611
|
+
return c(v, O, ...x);
|
|
11612
11612
|
if (ya(O))
|
|
11613
11613
|
throw new TypeError("Got Node response without Node request");
|
|
11614
|
-
return eg(
|
|
11614
|
+
return eg(v) ? zp(v) ? f(v, ...b) : p(v.request, v, ...b) : m(v, ...b);
|
|
11615
11615
|
}, w = {
|
|
11616
11616
|
handleRequest: o,
|
|
11617
11617
|
fetch: m,
|
|
@@ -11622,8 +11622,8 @@ function ng(t, e) {
|
|
|
11622
11622
|
handle: S
|
|
11623
11623
|
}, C = new Proxy(S, {
|
|
11624
11624
|
// It should have all the attributes of the handler function and the server instance
|
|
11625
|
-
has: (
|
|
11626
|
-
get: (
|
|
11625
|
+
has: (v, b) => b in w || b in S || t && b in t,
|
|
11626
|
+
get: (v, b) => {
|
|
11627
11627
|
const O = w[b];
|
|
11628
11628
|
if (O)
|
|
11629
11629
|
return O.bind ? O.bind(w) : O;
|
|
@@ -11639,7 +11639,7 @@ function ng(t, e) {
|
|
|
11639
11639
|
} : A;
|
|
11640
11640
|
}
|
|
11641
11641
|
},
|
|
11642
|
-
apply(
|
|
11642
|
+
apply(v, b, O) {
|
|
11643
11643
|
return S(...O);
|
|
11644
11644
|
}
|
|
11645
11645
|
});
|
|
@@ -11782,12 +11782,12 @@ async function mg(t) {
|
|
|
11782
11782
|
throw i instanceof Error && (r.originalError = {
|
|
11783
11783
|
name: i.name,
|
|
11784
11784
|
message: i.message
|
|
11785
|
-
}),
|
|
11785
|
+
}), Y("POST body sent invalid JSON.", {
|
|
11786
11786
|
extensions: r
|
|
11787
11787
|
});
|
|
11788
11788
|
}
|
|
11789
11789
|
if (e == null)
|
|
11790
|
-
throw
|
|
11790
|
+
throw Y(`POST body is expected to be object but received ${e}`, {
|
|
11791
11791
|
extensions: {
|
|
11792
11792
|
http: {
|
|
11793
11793
|
status: 400
|
|
@@ -11796,7 +11796,7 @@ async function mg(t) {
|
|
|
11796
11796
|
});
|
|
11797
11797
|
const n = typeof e;
|
|
11798
11798
|
if (n !== "object")
|
|
11799
|
-
throw
|
|
11799
|
+
throw Y(`POST body is expected to be object but received ${n}`, {
|
|
11800
11800
|
extensions: {
|
|
11801
11801
|
http: {
|
|
11802
11802
|
status: 400
|
|
@@ -11818,7 +11818,7 @@ async function wg(t) {
|
|
|
11818
11818
|
try {
|
|
11819
11819
|
e = await t.formData();
|
|
11820
11820
|
} catch (s) {
|
|
11821
|
-
throw s instanceof Error && s.message.startsWith("File size limit exceeded: ") ?
|
|
11821
|
+
throw s instanceof Error && s.message.startsWith("File size limit exceeded: ") ? Y(s.message, {
|
|
11822
11822
|
extensions: {
|
|
11823
11823
|
http: {
|
|
11824
11824
|
status: 413
|
|
@@ -11828,24 +11828,24 @@ async function wg(t) {
|
|
|
11828
11828
|
}
|
|
11829
11829
|
const n = e.get("operations");
|
|
11830
11830
|
if (!n)
|
|
11831
|
-
throw
|
|
11831
|
+
throw Y('Missing multipart form field "operations"');
|
|
11832
11832
|
if (typeof n != "string")
|
|
11833
|
-
throw
|
|
11833
|
+
throw Y('Multipart form field "operations" must be a string');
|
|
11834
11834
|
let i;
|
|
11835
11835
|
try {
|
|
11836
11836
|
i = JSON.parse(n);
|
|
11837
11837
|
} catch {
|
|
11838
|
-
throw
|
|
11838
|
+
throw Y('Multipart form field "operations" must be a valid JSON string');
|
|
11839
11839
|
}
|
|
11840
11840
|
const r = e.get("map");
|
|
11841
11841
|
if (r != null) {
|
|
11842
11842
|
if (typeof r != "string")
|
|
11843
|
-
throw
|
|
11843
|
+
throw Y('Multipart form field "map" must be a string');
|
|
11844
11844
|
let s;
|
|
11845
11845
|
try {
|
|
11846
11846
|
s = JSON.parse(r);
|
|
11847
11847
|
} catch {
|
|
11848
|
-
throw
|
|
11848
|
+
throw Y('Multipart form field "map" must be a valid JSON string');
|
|
11849
11849
|
}
|
|
11850
11850
|
for (const o in s) {
|
|
11851
11851
|
const a = e.get(o), u = s[o];
|
|
@@ -11855,10 +11855,10 @@ async function wg(t) {
|
|
|
11855
11855
|
}
|
|
11856
11856
|
return i;
|
|
11857
11857
|
}
|
|
11858
|
-
const
|
|
11859
|
-
function
|
|
11858
|
+
const vg = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
|
|
11859
|
+
function Eg(t) {
|
|
11860
11860
|
if (t == null || typeof t != "object")
|
|
11861
|
-
throw
|
|
11861
|
+
throw Y('Invalid "params" in the request body', {
|
|
11862
11862
|
extensions: {
|
|
11863
11863
|
http: {
|
|
11864
11864
|
spec: !0,
|
|
@@ -11867,8 +11867,8 @@ function vg(t) {
|
|
|
11867
11867
|
}
|
|
11868
11868
|
});
|
|
11869
11869
|
for (const e in t)
|
|
11870
|
-
if (t[e] != null && !
|
|
11871
|
-
throw
|
|
11870
|
+
if (t[e] != null && !vg.has(e))
|
|
11871
|
+
throw Y(`Unexpected parameter "${e}" in the request body.`, {
|
|
11872
11872
|
extensions: {
|
|
11873
11873
|
http: {
|
|
11874
11874
|
status: 400
|
|
@@ -11878,7 +11878,7 @@ function vg(t) {
|
|
|
11878
11878
|
}
|
|
11879
11879
|
function Tg(t) {
|
|
11880
11880
|
if (!_g(t))
|
|
11881
|
-
throw
|
|
11881
|
+
throw Y(`Expected params to be an object but given ${Si(t)}.`, {
|
|
11882
11882
|
extensions: {
|
|
11883
11883
|
http: {
|
|
11884
11884
|
status: 400,
|
|
@@ -11888,8 +11888,8 @@ function Tg(t) {
|
|
|
11888
11888
|
}
|
|
11889
11889
|
}
|
|
11890
11890
|
});
|
|
11891
|
-
if (
|
|
11892
|
-
throw
|
|
11891
|
+
if (Eg(t), t.query == null)
|
|
11892
|
+
throw Y("Must provide query string.", {
|
|
11893
11893
|
extensions: {
|
|
11894
11894
|
http: {
|
|
11895
11895
|
spec: !0,
|
|
@@ -11902,7 +11902,7 @@ function Tg(t) {
|
|
|
11902
11902
|
});
|
|
11903
11903
|
const e = Si(t.query);
|
|
11904
11904
|
if (e !== "string")
|
|
11905
|
-
throw
|
|
11905
|
+
throw Y(`Expected "query" param to be a string, but given ${e}.`, {
|
|
11906
11906
|
extensions: {
|
|
11907
11907
|
http: {
|
|
11908
11908
|
status: 400,
|
|
@@ -11914,7 +11914,7 @@ function Tg(t) {
|
|
|
11914
11914
|
});
|
|
11915
11915
|
const n = Si(t.variables);
|
|
11916
11916
|
if (!["object", "null", "undefined"].includes(n))
|
|
11917
|
-
throw
|
|
11917
|
+
throw Y(`Expected "variables" param to be empty or an object, but given ${n}.`, {
|
|
11918
11918
|
extensions: {
|
|
11919
11919
|
http: {
|
|
11920
11920
|
status: 400,
|
|
@@ -11926,7 +11926,7 @@ function Tg(t) {
|
|
|
11926
11926
|
});
|
|
11927
11927
|
const i = Si(t.extensions);
|
|
11928
11928
|
if (!["object", "null", "undefined"].includes(i))
|
|
11929
|
-
throw
|
|
11929
|
+
throw Y(`Expected "extensions" param to be empty or an object, but given ${i}.`, {
|
|
11930
11930
|
extensions: {
|
|
11931
11931
|
http: {
|
|
11932
11932
|
status: 400,
|
|
@@ -11958,7 +11958,7 @@ function Og() {
|
|
|
11958
11958
|
return {
|
|
11959
11959
|
onRequestParse({ request: t }) {
|
|
11960
11960
|
if (!Ig(t.method))
|
|
11961
|
-
throw
|
|
11961
|
+
throw Y("GraphQL only supports GET and POST requests.", {
|
|
11962
11962
|
extensions: {
|
|
11963
11963
|
http: {
|
|
11964
11964
|
status: 405,
|
|
@@ -11994,7 +11994,7 @@ function Ag(t) {
|
|
|
11994
11994
|
onRequestParseDone({ requestParserResult: e }) {
|
|
11995
11995
|
if (Array.isArray(e)) {
|
|
11996
11996
|
if (!t)
|
|
11997
|
-
throw
|
|
11997
|
+
throw Y("Batching is not supported.", {
|
|
11998
11998
|
extensions: {
|
|
11999
11999
|
http: {
|
|
12000
12000
|
status: 400
|
|
@@ -12002,7 +12002,7 @@ function Ag(t) {
|
|
|
12002
12002
|
}
|
|
12003
12003
|
});
|
|
12004
12004
|
if (e.length > t)
|
|
12005
|
-
throw
|
|
12005
|
+
throw Y(`Batching is limited to ${t} operations per request.`, {
|
|
12006
12006
|
extensions: {
|
|
12007
12007
|
http: {
|
|
12008
12008
|
status: 413
|
|
@@ -12016,9 +12016,9 @@ function Ag(t) {
|
|
|
12016
12016
|
};
|
|
12017
12017
|
}
|
|
12018
12018
|
function xg(t, e, n) {
|
|
12019
|
-
const i = e ?
|
|
12019
|
+
const i = e ? Ys(e, n) ?? void 0 : void 0;
|
|
12020
12020
|
if (!i)
|
|
12021
|
-
throw
|
|
12021
|
+
throw Y("Could not determine what operation to execute.", {
|
|
12022
12022
|
extensions: {
|
|
12023
12023
|
http: {
|
|
12024
12024
|
status: 400
|
|
@@ -12026,7 +12026,7 @@ function xg(t, e, n) {
|
|
|
12026
12026
|
}
|
|
12027
12027
|
});
|
|
12028
12028
|
if (i.operation === "mutation" && t === "GET")
|
|
12029
|
-
throw
|
|
12029
|
+
throw Y("Can only perform a mutation operation from a POST request.", {
|
|
12030
12030
|
extensions: {
|
|
12031
12031
|
http: {
|
|
12032
12032
|
status: 405,
|
|
@@ -12082,17 +12082,17 @@ var ka;
|
|
|
12082
12082
|
if (typeof xr > "u") {
|
|
12083
12083
|
Sa = class {
|
|
12084
12084
|
constructor() {
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12085
|
+
H(this, "onabort");
|
|
12086
|
+
H(this, "_onabort", []);
|
|
12087
|
+
H(this, "reason");
|
|
12088
|
+
H(this, "aborted", !1);
|
|
12089
12089
|
}
|
|
12090
12090
|
addEventListener(i, r) {
|
|
12091
12091
|
this._onabort.push(r);
|
|
12092
12092
|
}
|
|
12093
12093
|
}, xr = class {
|
|
12094
12094
|
constructor() {
|
|
12095
|
-
|
|
12095
|
+
H(this, "signal", new Sa());
|
|
12096
12096
|
e();
|
|
12097
12097
|
}
|
|
12098
12098
|
abort(i) {
|
|
@@ -12116,12 +12116,12 @@ let pr = class extends Array {
|
|
|
12116
12116
|
super(e), this.fill(0);
|
|
12117
12117
|
}
|
|
12118
12118
|
};
|
|
12119
|
-
var Qt,
|
|
12119
|
+
var Qt, Yn;
|
|
12120
12120
|
let Lg = (Qt = class {
|
|
12121
12121
|
constructor(e, n) {
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
if (!l(Qt,
|
|
12122
|
+
H(this, "heap");
|
|
12123
|
+
H(this, "length");
|
|
12124
|
+
if (!l(Qt, Yn))
|
|
12125
12125
|
throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
12126
12126
|
this.heap = new n(e), this.length = 0;
|
|
12127
12127
|
}
|
|
@@ -12129,9 +12129,9 @@ let Lg = (Qt = class {
|
|
|
12129
12129
|
const n = cl(e);
|
|
12130
12130
|
if (!n)
|
|
12131
12131
|
return [];
|
|
12132
|
-
$(Qt,
|
|
12132
|
+
$(Qt, Yn, !0);
|
|
12133
12133
|
const i = new Qt(e, n);
|
|
12134
|
-
return $(Qt,
|
|
12134
|
+
return $(Qt, Yn, !1), i;
|
|
12135
12135
|
}
|
|
12136
12136
|
push(e) {
|
|
12137
12137
|
this.heap[this.length++] = e;
|
|
@@ -12139,84 +12139,84 @@ let Lg = (Qt = class {
|
|
|
12139
12139
|
pop() {
|
|
12140
12140
|
return this.heap[--this.length];
|
|
12141
12141
|
}
|
|
12142
|
-
},
|
|
12143
|
-
Q(Qt,
|
|
12144
|
-
var Da, $a,
|
|
12142
|
+
}, Yn = new WeakMap(), // private constructor
|
|
12143
|
+
Q(Qt, Yn, !1), Qt);
|
|
12144
|
+
var Da, $a, vt, it, Et, Tt, Jn, Ie, St, Ee, de, ee, Qe, rt, Ge, Fe, _t, Ce, It, Ot, st, Nt, hn, We, z, Os, An, Zt, Li, ot, fl, xn, Kn, ki, sn, on, Ns, gr, mr, ce, As, _i, Xn;
|
|
12145
12145
|
let kg = (Xn = class {
|
|
12146
12146
|
constructor(e) {
|
|
12147
12147
|
Q(this, z);
|
|
12148
12148
|
// properties coming in from the options of these, only max and maxSize
|
|
12149
12149
|
// really *need* to be protected. The rest can be modified, as they just
|
|
12150
12150
|
// set defaults for various methods.
|
|
12151
|
-
Q(this, Et);
|
|
12152
|
-
Q(this, it);
|
|
12153
12151
|
Q(this, vt);
|
|
12152
|
+
Q(this, it);
|
|
12153
|
+
Q(this, Et);
|
|
12154
12154
|
Q(this, Tt);
|
|
12155
12155
|
Q(this, Jn);
|
|
12156
12156
|
/**
|
|
12157
12157
|
* {@link LRUCache.OptionsBase.ttl}
|
|
12158
12158
|
*/
|
|
12159
|
-
|
|
12159
|
+
H(this, "ttl");
|
|
12160
12160
|
/**
|
|
12161
12161
|
* {@link LRUCache.OptionsBase.ttlResolution}
|
|
12162
12162
|
*/
|
|
12163
|
-
|
|
12163
|
+
H(this, "ttlResolution");
|
|
12164
12164
|
/**
|
|
12165
12165
|
* {@link LRUCache.OptionsBase.ttlAutopurge}
|
|
12166
12166
|
*/
|
|
12167
|
-
|
|
12167
|
+
H(this, "ttlAutopurge");
|
|
12168
12168
|
/**
|
|
12169
12169
|
* {@link LRUCache.OptionsBase.updateAgeOnGet}
|
|
12170
12170
|
*/
|
|
12171
|
-
|
|
12171
|
+
H(this, "updateAgeOnGet");
|
|
12172
12172
|
/**
|
|
12173
12173
|
* {@link LRUCache.OptionsBase.updateAgeOnHas}
|
|
12174
12174
|
*/
|
|
12175
|
-
|
|
12175
|
+
H(this, "updateAgeOnHas");
|
|
12176
12176
|
/**
|
|
12177
12177
|
* {@link LRUCache.OptionsBase.allowStale}
|
|
12178
12178
|
*/
|
|
12179
|
-
|
|
12179
|
+
H(this, "allowStale");
|
|
12180
12180
|
/**
|
|
12181
12181
|
* {@link LRUCache.OptionsBase.noDisposeOnSet}
|
|
12182
12182
|
*/
|
|
12183
|
-
|
|
12183
|
+
H(this, "noDisposeOnSet");
|
|
12184
12184
|
/**
|
|
12185
12185
|
* {@link LRUCache.OptionsBase.noUpdateTTL}
|
|
12186
12186
|
*/
|
|
12187
|
-
|
|
12187
|
+
H(this, "noUpdateTTL");
|
|
12188
12188
|
/**
|
|
12189
12189
|
* {@link LRUCache.OptionsBase.maxEntrySize}
|
|
12190
12190
|
*/
|
|
12191
|
-
|
|
12191
|
+
H(this, "maxEntrySize");
|
|
12192
12192
|
/**
|
|
12193
12193
|
* {@link LRUCache.OptionsBase.sizeCalculation}
|
|
12194
12194
|
*/
|
|
12195
|
-
|
|
12195
|
+
H(this, "sizeCalculation");
|
|
12196
12196
|
/**
|
|
12197
12197
|
* {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
|
|
12198
12198
|
*/
|
|
12199
|
-
|
|
12199
|
+
H(this, "noDeleteOnFetchRejection");
|
|
12200
12200
|
/**
|
|
12201
12201
|
* {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
|
|
12202
12202
|
*/
|
|
12203
|
-
|
|
12203
|
+
H(this, "noDeleteOnStaleGet");
|
|
12204
12204
|
/**
|
|
12205
12205
|
* {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
|
|
12206
12206
|
*/
|
|
12207
|
-
|
|
12207
|
+
H(this, "allowStaleOnFetchAbort");
|
|
12208
12208
|
/**
|
|
12209
12209
|
* {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
|
|
12210
12210
|
*/
|
|
12211
|
-
|
|
12211
|
+
H(this, "allowStaleOnFetchRejection");
|
|
12212
12212
|
/**
|
|
12213
12213
|
* {@link LRUCache.OptionsBase.ignoreFetchAbort}
|
|
12214
12214
|
*/
|
|
12215
|
-
|
|
12215
|
+
H(this, "ignoreFetchAbort");
|
|
12216
12216
|
// computed properties
|
|
12217
12217
|
Q(this, Ie);
|
|
12218
12218
|
Q(this, St);
|
|
12219
|
-
Q(this,
|
|
12219
|
+
Q(this, Ee);
|
|
12220
12220
|
Q(this, de);
|
|
12221
12221
|
Q(this, ee);
|
|
12222
12222
|
Q(this, Qe);
|
|
@@ -12253,22 +12253,22 @@ let kg = (Xn = class {
|
|
|
12253
12253
|
* A String value that is used in the creation of the default string description of an object.
|
|
12254
12254
|
* Called by the built-in method Object.prototype.toString.
|
|
12255
12255
|
*/
|
|
12256
|
-
|
|
12257
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: S = 0, maxEntrySize: w = 0, sizeCalculation: C, fetchMethod:
|
|
12256
|
+
H(this, Da, "LRUCache");
|
|
12257
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: S = 0, maxEntrySize: w = 0, sizeCalculation: C, fetchMethod: v, noDeleteOnFetchRejection: b, noDeleteOnStaleGet: O, allowStaleOnFetchRejection: x, allowStaleOnFetchAbort: A, ignoreFetchAbort: L } = e;
|
|
12258
12258
|
if (n !== 0 && !rn(n))
|
|
12259
12259
|
throw new TypeError("max option must be a nonnegative integer");
|
|
12260
12260
|
const T = n ? cl(n) : Array;
|
|
12261
12261
|
if (!T)
|
|
12262
12262
|
throw new Error("invalid max value: " + n);
|
|
12263
|
-
if ($(this,
|
|
12263
|
+
if ($(this, vt, n), $(this, it, S), this.maxEntrySize = w || l(this, it), this.sizeCalculation = C, this.sizeCalculation) {
|
|
12264
12264
|
if (!l(this, it) && !this.maxEntrySize)
|
|
12265
12265
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
12266
12266
|
if (typeof this.sizeCalculation != "function")
|
|
12267
12267
|
throw new TypeError("sizeCalculation set to non-function");
|
|
12268
12268
|
}
|
|
12269
|
-
if (
|
|
12269
|
+
if (v !== void 0 && typeof v != "function")
|
|
12270
12270
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
12271
|
-
if ($(this, Jn,
|
|
12271
|
+
if ($(this, Jn, v), $(this, hn, !!v), $(this, Ee, /* @__PURE__ */ new Map()), $(this, de, new Array(n).fill(void 0)), $(this, ee, new Array(n).fill(void 0)), $(this, Qe, new T(n)), $(this, rt, new T(n)), $(this, Ge, 0), $(this, Fe, 0), $(this, _t, Lg.create(n)), $(this, Ie, 0), $(this, St, 0), typeof c == "function" && $(this, Et, c), typeof f == "function" ? ($(this, Tt, f), $(this, Ce, [])) : ($(this, Tt, void 0), $(this, Ce, void 0)), $(this, Nt, !!l(this, Et)), $(this, We, !!l(this, Tt)), this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!b, this.allowStaleOnFetchRejection = !!x, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!L, this.maxEntrySize !== 0) {
|
|
12272
12272
|
if (l(this, it) !== 0 && !rn(l(this, it)))
|
|
12273
12273
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
12274
12274
|
if (!rn(this.maxEntrySize))
|
|
@@ -12280,9 +12280,9 @@ let kg = (Xn = class {
|
|
|
12280
12280
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
12281
12281
|
k(this, z, Os).call(this);
|
|
12282
12282
|
}
|
|
12283
|
-
if (l(this,
|
|
12283
|
+
if (l(this, vt) === 0 && this.ttl === 0 && l(this, it) === 0)
|
|
12284
12284
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
12285
|
-
if (!this.ttlAutopurge && !l(this,
|
|
12285
|
+
if (!this.ttlAutopurge && !l(this, vt) && !l(this, it)) {
|
|
12286
12286
|
const N = "LRU_CACHE_UNBOUNDED";
|
|
12287
12287
|
Rg(N) && (ul.add(N), ll("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", N, Xn));
|
|
12288
12288
|
}
|
|
@@ -12302,7 +12302,7 @@ let kg = (Xn = class {
|
|
|
12302
12302
|
starts: l(e, Ot),
|
|
12303
12303
|
ttls: l(e, st),
|
|
12304
12304
|
sizes: l(e, It),
|
|
12305
|
-
keyMap: l(e,
|
|
12305
|
+
keyMap: l(e, Ee),
|
|
12306
12306
|
keyList: l(e, de),
|
|
12307
12307
|
valList: l(e, ee),
|
|
12308
12308
|
next: l(e, Qe),
|
|
@@ -12346,7 +12346,7 @@ let kg = (Xn = class {
|
|
|
12346
12346
|
* {@link LRUCache.OptionsBase.max} (read-only)
|
|
12347
12347
|
*/
|
|
12348
12348
|
get max() {
|
|
12349
|
-
return l(this,
|
|
12349
|
+
return l(this, vt);
|
|
12350
12350
|
}
|
|
12351
12351
|
/**
|
|
12352
12352
|
* {@link LRUCache.OptionsBase.maxSize} (read-only)
|
|
@@ -12376,7 +12376,7 @@ let kg = (Xn = class {
|
|
|
12376
12376
|
* {@link LRUCache.OptionsBase.dispose} (read-only)
|
|
12377
12377
|
*/
|
|
12378
12378
|
get dispose() {
|
|
12379
|
-
return l(this,
|
|
12379
|
+
return l(this, Et);
|
|
12380
12380
|
}
|
|
12381
12381
|
/**
|
|
12382
12382
|
* {@link LRUCache.OptionsBase.disposeAfter} (read-only)
|
|
@@ -12388,7 +12388,7 @@ let kg = (Xn = class {
|
|
|
12388
12388
|
* Return the remaining TTL time for a given entry key
|
|
12389
12389
|
*/
|
|
12390
12390
|
getRemainingTTL(e) {
|
|
12391
|
-
return l(this,
|
|
12391
|
+
return l(this, Ee).has(e) ? 1 / 0 : 0;
|
|
12392
12392
|
}
|
|
12393
12393
|
/**
|
|
12394
12394
|
* Return a generator yielding `[key, value]` pairs,
|
|
@@ -12505,7 +12505,7 @@ let kg = (Xn = class {
|
|
|
12505
12505
|
* cache, so be sure to check for expired TTLs if relevant.
|
|
12506
12506
|
*/
|
|
12507
12507
|
info(e) {
|
|
12508
|
-
const n = l(this,
|
|
12508
|
+
const n = l(this, Ee).get(e);
|
|
12509
12509
|
if (n === void 0)
|
|
12510
12510
|
return;
|
|
12511
12511
|
const i = l(this, ee)[n], r = k(this, z, ce).call(this, i) ? i.__staleWhileFetching : i;
|
|
@@ -12563,7 +12563,7 @@ let kg = (Xn = class {
|
|
|
12563
12563
|
* {@link LRUCache#delete}
|
|
12564
12564
|
*/
|
|
12565
12565
|
set(e, n, i = {}) {
|
|
12566
|
-
var m, S, w, C,
|
|
12566
|
+
var m, S, w, C, v;
|
|
12567
12567
|
if (n === void 0)
|
|
12568
12568
|
return this.delete(e), this;
|
|
12569
12569
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -12571,9 +12571,9 @@ let kg = (Xn = class {
|
|
|
12571
12571
|
const f = l(this, ki).call(this, e, n, i.size || 0, a);
|
|
12572
12572
|
if (this.maxEntrySize && f > this.maxEntrySize)
|
|
12573
12573
|
return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), this.delete(e), this;
|
|
12574
|
-
let p = l(this, Ie) === 0 ? void 0 : l(this,
|
|
12574
|
+
let p = l(this, Ie) === 0 ? void 0 : l(this, Ee).get(e);
|
|
12575
12575
|
if (p === void 0)
|
|
12576
|
-
p = l(this, Ie) === 0 ? l(this, Fe) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this,
|
|
12576
|
+
p = l(this, Ie) === 0 ? l(this, Fe) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this, vt) ? k(this, z, gr).call(this, !1) : l(this, Ie), l(this, de)[p] = e, l(this, ee)[p] = n, l(this, Ee).set(e, p), l(this, Qe)[l(this, Fe)] = p, l(this, rt)[p] = l(this, Fe), $(this, Fe, p), En(this, Ie)._++, l(this, Kn).call(this, p, f, u), u && (u.set = "add"), c = !1;
|
|
12577
12577
|
else {
|
|
12578
12578
|
k(this, z, _i).call(this, p);
|
|
12579
12579
|
const b = l(this, ee)[p];
|
|
@@ -12581,8 +12581,8 @@ let kg = (Xn = class {
|
|
|
12581
12581
|
if (l(this, hn) && k(this, z, ce).call(this, b)) {
|
|
12582
12582
|
b.__abortController.abort(new Error("replaced"));
|
|
12583
12583
|
const { __staleWhileFetching: O } = b;
|
|
12584
|
-
O !== void 0 && !o && (l(this, Nt) && ((m = l(this,
|
|
12585
|
-
} else o || (l(this, Nt) && ((w = l(this,
|
|
12584
|
+
O !== void 0 && !o && (l(this, Nt) && ((m = l(this, Et)) == null || m.call(this, O, e, "set")), l(this, We) && ((S = l(this, Ce)) == null || S.push([O, e, "set"])));
|
|
12585
|
+
} else o || (l(this, Nt) && ((w = l(this, Et)) == null || w.call(this, b, e, "set")), l(this, We) && ((C = l(this, Ce)) == null || C.push([b, e, "set"])));
|
|
12586
12586
|
if (l(this, xn).call(this, p), l(this, Kn).call(this, p, f, u), l(this, ee)[p] = n, u) {
|
|
12587
12587
|
u.set = "replace";
|
|
12588
12588
|
const O = b && k(this, z, ce).call(this, b) ? b.__staleWhileFetching : b;
|
|
@@ -12594,7 +12594,7 @@ let kg = (Xn = class {
|
|
|
12594
12594
|
const b = l(this, Ce);
|
|
12595
12595
|
let O;
|
|
12596
12596
|
for (; O = b == null ? void 0 : b.shift(); )
|
|
12597
|
-
(
|
|
12597
|
+
(v = l(this, Tt)) == null || v.call(this, ...O);
|
|
12598
12598
|
}
|
|
12599
12599
|
return this;
|
|
12600
12600
|
}
|
|
@@ -12631,7 +12631,7 @@ let kg = (Xn = class {
|
|
|
12631
12631
|
* {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
|
|
12632
12632
|
*/
|
|
12633
12633
|
has(e, n = {}) {
|
|
12634
|
-
const { updateAgeOnHas: i = this.updateAgeOnHas, status: r } = n, s = l(this,
|
|
12634
|
+
const { updateAgeOnHas: i = this.updateAgeOnHas, status: r } = n, s = l(this, Ee).get(e);
|
|
12635
12635
|
if (s !== void 0) {
|
|
12636
12636
|
const o = l(this, ee)[s];
|
|
12637
12637
|
if (k(this, z, ce).call(this, o) && o.__staleWhileFetching === void 0)
|
|
@@ -12650,7 +12650,7 @@ let kg = (Xn = class {
|
|
|
12650
12650
|
* {@link LRUCache.OptionsBase.allowStale} is set.
|
|
12651
12651
|
*/
|
|
12652
12652
|
peek(e, n = {}) {
|
|
12653
|
-
const { allowStale: i = this.allowStale } = n, r = l(this,
|
|
12653
|
+
const { allowStale: i = this.allowStale } = n, r = l(this, Ee).get(e);
|
|
12654
12654
|
if (r === void 0 || !i && l(this, ot).call(this, r))
|
|
12655
12655
|
return;
|
|
12656
12656
|
const s = l(this, ee)[r];
|
|
@@ -12674,7 +12674,7 @@ let kg = (Xn = class {
|
|
|
12674
12674
|
ignoreFetchAbort: S = this.ignoreFetchAbort,
|
|
12675
12675
|
allowStaleOnFetchAbort: w = this.allowStaleOnFetchAbort,
|
|
12676
12676
|
context: C,
|
|
12677
|
-
forceRefresh:
|
|
12677
|
+
forceRefresh: v = !1,
|
|
12678
12678
|
status: b,
|
|
12679
12679
|
signal: O
|
|
12680
12680
|
} = n;
|
|
@@ -12701,7 +12701,7 @@ let kg = (Xn = class {
|
|
|
12701
12701
|
status: b,
|
|
12702
12702
|
signal: O
|
|
12703
12703
|
};
|
|
12704
|
-
let A = l(this,
|
|
12704
|
+
let A = l(this, Ee).get(e);
|
|
12705
12705
|
if (A === void 0) {
|
|
12706
12706
|
b && (b.fetch = "miss");
|
|
12707
12707
|
const L = k(this, z, mr).call(this, e, A, x, C);
|
|
@@ -12713,7 +12713,7 @@ let kg = (Xn = class {
|
|
|
12713
12713
|
return b && (b.fetch = "inflight", d && (b.returnedStale = !0)), d ? L.__staleWhileFetching : L.__returned = L;
|
|
12714
12714
|
}
|
|
12715
12715
|
const T = l(this, ot).call(this, A);
|
|
12716
|
-
if (!
|
|
12716
|
+
if (!v && !T)
|
|
12717
12717
|
return b && (b.fetch = "hit"), k(this, z, _i).call(this, A), r && l(this, An).call(this, A), b && l(this, Zt).call(this, b, A), L;
|
|
12718
12718
|
const N = k(this, z, mr).call(this, e, A, x, C), y = N.__staleWhileFetching !== void 0 && i;
|
|
12719
12719
|
return b && (b.fetch = T ? "stale" : "refresh", y && T && (b.returnedStale = !0)), y ? N.__staleWhileFetching : N.__returned = N;
|
|
@@ -12726,7 +12726,7 @@ let kg = (Xn = class {
|
|
|
12726
12726
|
* If the key is not found, get() will return `undefined`.
|
|
12727
12727
|
*/
|
|
12728
12728
|
get(e, n = {}) {
|
|
12729
|
-
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this,
|
|
12729
|
+
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Ee).get(e);
|
|
12730
12730
|
if (a !== void 0) {
|
|
12731
12731
|
const u = l(this, ee)[a], c = k(this, z, ce).call(this, u);
|
|
12732
12732
|
return o && l(this, Zt).call(this, o, a), l(this, ot).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || this.delete(e), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, z, _i).call(this, a), r && l(this, An).call(this, a), u));
|
|
@@ -12740,14 +12740,14 @@ let kg = (Xn = class {
|
|
|
12740
12740
|
var i, r, s, o;
|
|
12741
12741
|
let n = !1;
|
|
12742
12742
|
if (l(this, Ie) !== 0) {
|
|
12743
|
-
const a = l(this,
|
|
12743
|
+
const a = l(this, Ee).get(e);
|
|
12744
12744
|
if (a !== void 0)
|
|
12745
12745
|
if (n = !0, l(this, Ie) === 1)
|
|
12746
12746
|
this.clear();
|
|
12747
12747
|
else {
|
|
12748
12748
|
l(this, xn).call(this, a);
|
|
12749
12749
|
const u = l(this, ee)[a];
|
|
12750
|
-
if (k(this, z, ce).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (l(this, Nt) || l(this, We)) && (l(this, Nt) && ((i = l(this,
|
|
12750
|
+
if (k(this, z, ce).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (l(this, Nt) || l(this, We)) && (l(this, Nt) && ((i = l(this, Et)) == null || i.call(this, u, e, "delete")), l(this, We) && ((r = l(this, Ce)) == null || r.push([u, e, "delete"]))), l(this, Ee).delete(e), l(this, de)[a] = void 0, l(this, ee)[a] = void 0, a === l(this, Fe))
|
|
12751
12751
|
$(this, Fe, l(this, rt)[a]);
|
|
12752
12752
|
else if (a === l(this, Ge))
|
|
12753
12753
|
$(this, Ge, l(this, Qe)[a]);
|
|
@@ -12757,7 +12757,7 @@ let kg = (Xn = class {
|
|
|
12757
12757
|
const f = l(this, Qe)[a];
|
|
12758
12758
|
l(this, rt)[f] = l(this, rt)[a];
|
|
12759
12759
|
}
|
|
12760
|
-
|
|
12760
|
+
En(this, Ie)._--, l(this, _t).push(a);
|
|
12761
12761
|
}
|
|
12762
12762
|
}
|
|
12763
12763
|
if (l(this, We) && ((s = l(this, Ce)) != null && s.length)) {
|
|
@@ -12779,18 +12779,18 @@ let kg = (Xn = class {
|
|
|
12779
12779
|
s.__abortController.abort(new Error("deleted"));
|
|
12780
12780
|
else {
|
|
12781
12781
|
const o = l(this, de)[r];
|
|
12782
|
-
l(this, Nt) && ((e = l(this,
|
|
12782
|
+
l(this, Nt) && ((e = l(this, Et)) == null || e.call(this, s, o, "delete")), l(this, We) && ((n = l(this, Ce)) == null || n.push([s, o, "delete"]));
|
|
12783
12783
|
}
|
|
12784
12784
|
}
|
|
12785
|
-
if (l(this,
|
|
12785
|
+
if (l(this, Ee).clear(), l(this, ee).fill(void 0), l(this, de).fill(void 0), l(this, st) && l(this, Ot) && (l(this, st).fill(0), l(this, Ot).fill(0)), l(this, It) && l(this, It).fill(0), $(this, Ge, 0), $(this, Fe, 0), l(this, _t).length = 0, $(this, St, 0), $(this, Ie, 0), l(this, We) && l(this, Ce)) {
|
|
12786
12786
|
const r = l(this, Ce);
|
|
12787
12787
|
let s;
|
|
12788
12788
|
for (; s = r == null ? void 0 : r.shift(); )
|
|
12789
12789
|
(i = l(this, Tt)) == null || i.call(this, ...s);
|
|
12790
12790
|
}
|
|
12791
12791
|
}
|
|
12792
|
-
},
|
|
12793
|
-
const e = new pr(l(this,
|
|
12792
|
+
}, vt = new WeakMap(), it = new WeakMap(), Et = new WeakMap(), Tt = new WeakMap(), Jn = new WeakMap(), Ie = new WeakMap(), St = new WeakMap(), Ee = new WeakMap(), de = new WeakMap(), ee = new WeakMap(), Qe = new WeakMap(), rt = new WeakMap(), Ge = new WeakMap(), Fe = new WeakMap(), _t = new WeakMap(), Ce = new WeakMap(), It = new WeakMap(), Ot = new WeakMap(), st = new WeakMap(), Nt = new WeakMap(), hn = new WeakMap(), We = new WeakMap(), z = new WeakSet(), Os = function() {
|
|
12793
|
+
const e = new pr(l(this, vt)), n = new pr(l(this, vt));
|
|
12794
12794
|
$(this, st, e), $(this, Ot, n), $(this, Li, (s, o, a = Vn.now()) => {
|
|
12795
12795
|
if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
|
|
12796
12796
|
const u = setTimeout(() => {
|
|
@@ -12821,7 +12821,7 @@ let kg = (Xn = class {
|
|
|
12821
12821
|
return s;
|
|
12822
12822
|
};
|
|
12823
12823
|
this.getRemainingTTL = (s) => {
|
|
12824
|
-
const o = l(this,
|
|
12824
|
+
const o = l(this, Ee).get(s);
|
|
12825
12825
|
if (o === void 0)
|
|
12826
12826
|
return 0;
|
|
12827
12827
|
const a = e[o], u = n[o];
|
|
@@ -12834,7 +12834,7 @@ let kg = (Xn = class {
|
|
|
12834
12834
|
return !!a && !!o && (i || r()) - o > a;
|
|
12835
12835
|
});
|
|
12836
12836
|
}, An = new WeakMap(), Zt = new WeakMap(), Li = new WeakMap(), ot = new WeakMap(), fl = function() {
|
|
12837
|
-
const e = new pr(l(this,
|
|
12837
|
+
const e = new pr(l(this, vt));
|
|
12838
12838
|
$(this, St, 0), $(this, It, e), $(this, xn, (n) => {
|
|
12839
12839
|
$(this, St, l(this, St) - e[n]), e[n] = 0;
|
|
12840
12840
|
}), $(this, ki, (n, i, r, s) => {
|
|
@@ -12866,11 +12866,11 @@ let kg = (Xn = class {
|
|
|
12866
12866
|
for (let n = l(this, Ge); !(!k(this, z, Ns).call(this, n) || ((e || !l(this, ot).call(this, n)) && (yield n), n === l(this, Fe))); )
|
|
12867
12867
|
n = l(this, Qe)[n];
|
|
12868
12868
|
}, Ns = function(e) {
|
|
12869
|
-
return e !== void 0 && l(this,
|
|
12869
|
+
return e !== void 0 && l(this, Ee).get(l(this, de)[e]) === e;
|
|
12870
12870
|
}, gr = function(e) {
|
|
12871
12871
|
var s, o;
|
|
12872
12872
|
const n = l(this, Ge), i = l(this, de)[n], r = l(this, ee)[n];
|
|
12873
|
-
return l(this, hn) && k(this, z, ce).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (l(this, Nt) || l(this, We)) && (l(this, Nt) && ((s = l(this,
|
|
12873
|
+
return l(this, hn) && k(this, z, ce).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (l(this, Nt) || l(this, We)) && (l(this, Nt) && ((s = l(this, Et)) == null || s.call(this, r, i, "evict")), l(this, We) && ((o = l(this, Ce)) == null || o.push([r, i, "evict"]))), l(this, xn).call(this, n), e && (l(this, de)[n] = void 0, l(this, ee)[n] = void 0, l(this, _t).push(n)), l(this, Ie) === 1 ? ($(this, Ge, $(this, Fe, 0)), l(this, _t).length = 0) : $(this, Ge, l(this, Qe)[n]), l(this, Ee).delete(i), En(this, Ie)._--, n;
|
|
12874
12874
|
}, mr = function(e, n, i, r) {
|
|
12875
12875
|
const s = n === void 0 ? void 0 : l(this, ee)[n];
|
|
12876
12876
|
if (k(this, z, ce).call(this, s))
|
|
@@ -12883,22 +12883,22 @@ let kg = (Xn = class {
|
|
|
12883
12883
|
signal: o.signal,
|
|
12884
12884
|
options: i,
|
|
12885
12885
|
context: r
|
|
12886
|
-
}, c = (C,
|
|
12886
|
+
}, c = (C, v = !1) => {
|
|
12887
12887
|
const { aborted: b } = o.signal, O = i.ignoreFetchAbort && C !== void 0;
|
|
12888
|
-
if (i.status && (b && !
|
|
12888
|
+
if (i.status && (b && !v ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, O && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !O && !v)
|
|
12889
12889
|
return p(o.signal.reason);
|
|
12890
12890
|
const x = S;
|
|
12891
12891
|
return l(this, ee)[n] === S && (C === void 0 ? x.__staleWhileFetching ? l(this, ee)[n] = x.__staleWhileFetching : this.delete(e) : (i.status && (i.status.fetchUpdated = !0), this.set(e, C, u.options))), C;
|
|
12892
12892
|
}, f = (C) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = C), p(C)), p = (C) => {
|
|
12893
|
-
const { aborted:
|
|
12893
|
+
const { aborted: v } = o.signal, b = v && i.allowStaleOnFetchAbort, O = b || i.allowStaleOnFetchRejection, x = O || i.noDeleteOnFetchRejection, A = S;
|
|
12894
12894
|
if (l(this, ee)[n] === S && (!x || A.__staleWhileFetching === void 0 ? this.delete(e) : b || (l(this, ee)[n] = A.__staleWhileFetching)), O)
|
|
12895
12895
|
return i.status && A.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), A.__staleWhileFetching;
|
|
12896
12896
|
if (A.__returned === A)
|
|
12897
12897
|
throw C;
|
|
12898
|
-
}, m = (C,
|
|
12898
|
+
}, m = (C, v) => {
|
|
12899
12899
|
var O;
|
|
12900
12900
|
const b = (O = l(this, Jn)) == null ? void 0 : O.call(this, e, s, u);
|
|
12901
|
-
b && b instanceof Promise && b.then((x) => C(x === void 0 ? void 0 : x),
|
|
12901
|
+
b && b instanceof Promise && b.then((x) => C(x === void 0 ? void 0 : x), v), o.signal.addEventListener("abort", () => {
|
|
12902
12902
|
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (C(void 0), i.allowStaleOnFetchAbort && (C = (x) => c(x, !0)));
|
|
12903
12903
|
});
|
|
12904
12904
|
};
|
|
@@ -12908,7 +12908,7 @@ let kg = (Xn = class {
|
|
|
12908
12908
|
__staleWhileFetching: s,
|
|
12909
12909
|
__returned: void 0
|
|
12910
12910
|
});
|
|
12911
|
-
return n === void 0 ? (this.set(e, w, { ...u.options, status: void 0 }), n = l(this,
|
|
12911
|
+
return n === void 0 ? (this.set(e, w, { ...u.options, status: void 0 }), n = l(this, Ee).get(e)) : l(this, ee)[n] = w, w;
|
|
12912
12912
|
}, ce = function(e) {
|
|
12913
12913
|
if (!l(this, hn))
|
|
12914
12914
|
return !1;
|
|
@@ -13007,7 +13007,7 @@ function _a(t) {
|
|
|
13007
13007
|
function dl(t) {
|
|
13008
13008
|
if (oi(t)) {
|
|
13009
13009
|
const e = "toJSON" in t && typeof t.toJSON == "function" ? t.toJSON() : Object(t), { http: n, unexpected: i, ...r } = e.extensions || {};
|
|
13010
|
-
return
|
|
13010
|
+
return Y(t.message, {
|
|
13011
13011
|
nodes: t.nodes,
|
|
13012
13012
|
source: t.source,
|
|
13013
13013
|
positions: t.positions,
|
|
@@ -13186,7 +13186,7 @@ const yoga = createYoga({
|
|
|
13186
13186
|
})
|
|
13187
13187
|
</code>
|
|
13188
13188
|
</pre></section></main></body></html>`;
|
|
13189
|
-
function
|
|
13189
|
+
function Hg(t) {
|
|
13190
13190
|
let e;
|
|
13191
13191
|
function n({ URLPattern: i }) {
|
|
13192
13192
|
return e || (e = new i({
|
|
@@ -13240,7 +13240,7 @@ async function Oa({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i
|
|
|
13240
13240
|
}
|
|
13241
13241
|
});
|
|
13242
13242
|
}
|
|
13243
|
-
async function
|
|
13243
|
+
async function Yg({ params: t, enveloped: e }) {
|
|
13244
13244
|
const n = e.parse(t.query), i = e.validate(e.schema, n);
|
|
13245
13245
|
if (i.length > 0)
|
|
13246
13246
|
return { errors: i };
|
|
@@ -13250,7 +13250,7 @@ async function Hg({ params: t, enveloped: e }) {
|
|
|
13250
13250
|
contextValue: r,
|
|
13251
13251
|
variableValues: t.variables,
|
|
13252
13252
|
operationName: t.operationName
|
|
13253
|
-
}, o =
|
|
13253
|
+
}, o = Ys(n, t.operationName);
|
|
13254
13254
|
return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
|
|
13255
13255
|
}
|
|
13256
13256
|
const Jg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
|
|
@@ -13265,7 +13265,7 @@ const Jg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
|
|
|
13265
13265
|
return n && (s.originalError = {
|
|
13266
13266
|
message: t.originalError.message,
|
|
13267
13267
|
stack: t.originalError.stack
|
|
13268
|
-
}),
|
|
13268
|
+
}), Y(e, {
|
|
13269
13269
|
nodes: t.nodes,
|
|
13270
13270
|
source: t.source,
|
|
13271
13271
|
positions: t.positions,
|
|
@@ -13275,7 +13275,7 @@ const Jg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
|
|
|
13275
13275
|
}
|
|
13276
13276
|
return t;
|
|
13277
13277
|
}
|
|
13278
|
-
return
|
|
13278
|
+
return Y(e, {
|
|
13279
13279
|
extensions: {
|
|
13280
13280
|
unexpected: !0,
|
|
13281
13281
|
originalError: n ? t instanceof Error ? {
|
|
@@ -13290,17 +13290,17 @@ class Kg {
|
|
|
13290
13290
|
/**
|
|
13291
13291
|
* Instance of envelop
|
|
13292
13292
|
*/
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13293
|
+
H(this, "getEnveloped");
|
|
13294
|
+
H(this, "logger");
|
|
13295
|
+
H(this, "graphqlEndpoint");
|
|
13296
|
+
H(this, "fetchAPI");
|
|
13297
|
+
H(this, "plugins");
|
|
13298
|
+
H(this, "onRequestParseHooks");
|
|
13299
|
+
H(this, "onParamsHooks");
|
|
13300
|
+
H(this, "onResultProcessHooks");
|
|
13301
|
+
H(this, "maskedErrorsOpts");
|
|
13302
|
+
H(this, "id");
|
|
13303
|
+
H(this, "handle", async (e, n) => {
|
|
13304
13304
|
let i = new Proxy({}, {
|
|
13305
13305
|
get: (u, c, f) => (i = new this.fetchAPI.URL(e.url, "http://localhost"), Reflect.get(i, c, i))
|
|
13306
13306
|
}), r;
|
|
@@ -13436,7 +13436,7 @@ class Kg {
|
|
|
13436
13436
|
jg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
13437
13437
|
), u(Ag(o)), u(Sg()), u(
|
|
13438
13438
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13439
|
-
|
|
13439
|
+
Hg({
|
|
13440
13440
|
graphqlEndpoint: a,
|
|
13441
13441
|
showLandingPage: (e == null ? void 0 : e.landingPage) ?? !0
|
|
13442
13442
|
})
|
|
@@ -13446,7 +13446,7 @@ class Kg {
|
|
|
13446
13446
|
);
|
|
13447
13447
|
}
|
|
13448
13448
|
}
|
|
13449
|
-
], this.getEnveloped =
|
|
13449
|
+
], this.getEnveloped = Yl({
|
|
13450
13450
|
plugins: this.plugins
|
|
13451
13451
|
}), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onResultProcessHooks = [];
|
|
13452
13452
|
for (const u of this.plugins)
|
|
@@ -13477,7 +13477,7 @@ class Kg {
|
|
|
13477
13477
|
request: n,
|
|
13478
13478
|
params: e
|
|
13479
13479
|
}, u = r[0] ? i ? Object.assign({}, r[0], a) : Object.assign(r[0], a) : a, c = this.getEnveloped(u);
|
|
13480
|
-
this.logger.debug("Processing GraphQL Parameters"), o = await
|
|
13480
|
+
this.logger.debug("Processing GraphQL Parameters"), o = await Yg({
|
|
13481
13481
|
params: e,
|
|
13482
13482
|
enveloped: c
|
|
13483
13483
|
}), this.logger.debug("Processing GraphQL Parameters done.");
|
|
@@ -13511,17 +13511,17 @@ var ja;
|
|
|
13511
13511
|
if (typeof Fr > "u") {
|
|
13512
13512
|
Na = class {
|
|
13513
13513
|
constructor() {
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13514
|
+
H(this, "onabort");
|
|
13515
|
+
H(this, "_onabort", []);
|
|
13516
|
+
H(this, "reason");
|
|
13517
|
+
H(this, "aborted", !1);
|
|
13518
13518
|
}
|
|
13519
13519
|
addEventListener(i, r) {
|
|
13520
13520
|
this._onabort.push(r);
|
|
13521
13521
|
}
|
|
13522
13522
|
}, Fr = class {
|
|
13523
13523
|
constructor() {
|
|
13524
|
-
|
|
13524
|
+
H(this, "signal", new Na());
|
|
13525
13525
|
e();
|
|
13526
13526
|
}
|
|
13527
13527
|
abort(i) {
|
|
@@ -13548,8 +13548,8 @@ class yr extends Array {
|
|
|
13548
13548
|
var Zn;
|
|
13549
13549
|
const In = class In {
|
|
13550
13550
|
constructor(e, n) {
|
|
13551
|
-
|
|
13552
|
-
|
|
13551
|
+
H(this, "heap");
|
|
13552
|
+
H(this, "length");
|
|
13553
13553
|
if (!l(In, Zn))
|
|
13554
13554
|
throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
13555
13555
|
this.heap = new n(e), this.length = 0;
|
|
@@ -13572,7 +13572,7 @@ const In = class In {
|
|
|
13572
13572
|
Zn = new WeakMap(), // private constructor
|
|
13573
13573
|
Q(In, Zn, !1);
|
|
13574
13574
|
let Fs = In;
|
|
13575
|
-
var Pa, Ma, At, at, xt, Ft, ei, ti, Oe, Ct, Te, he, te,
|
|
13575
|
+
var Pa, Ma, At, at, xt, Ft, ei, ti, Oe, Ct, Te, he, te, He, ut, qe, Re, Rt, Le, Lt, kt, lt, Dt, pn, Ye, U, Rs, Fn, en, Di, ct, ml, Cn, ni, $i, un, ln, Ls, br, wr, fe, ks, Ii, cn, Ds;
|
|
13576
13576
|
const fo = class fo {
|
|
13577
13577
|
constructor(e) {
|
|
13578
13578
|
Q(this, U);
|
|
@@ -13586,70 +13586,70 @@ const fo = class fo {
|
|
|
13586
13586
|
/**
|
|
13587
13587
|
* {@link LRUCache.OptionsBase.ttl}
|
|
13588
13588
|
*/
|
|
13589
|
-
|
|
13589
|
+
H(this, "ttl");
|
|
13590
13590
|
/**
|
|
13591
13591
|
* {@link LRUCache.OptionsBase.ttlResolution}
|
|
13592
13592
|
*/
|
|
13593
|
-
|
|
13593
|
+
H(this, "ttlResolution");
|
|
13594
13594
|
/**
|
|
13595
13595
|
* {@link LRUCache.OptionsBase.ttlAutopurge}
|
|
13596
13596
|
*/
|
|
13597
|
-
|
|
13597
|
+
H(this, "ttlAutopurge");
|
|
13598
13598
|
/**
|
|
13599
13599
|
* {@link LRUCache.OptionsBase.updateAgeOnGet}
|
|
13600
13600
|
*/
|
|
13601
|
-
|
|
13601
|
+
H(this, "updateAgeOnGet");
|
|
13602
13602
|
/**
|
|
13603
13603
|
* {@link LRUCache.OptionsBase.updateAgeOnHas}
|
|
13604
13604
|
*/
|
|
13605
|
-
|
|
13605
|
+
H(this, "updateAgeOnHas");
|
|
13606
13606
|
/**
|
|
13607
13607
|
* {@link LRUCache.OptionsBase.allowStale}
|
|
13608
13608
|
*/
|
|
13609
|
-
|
|
13609
|
+
H(this, "allowStale");
|
|
13610
13610
|
/**
|
|
13611
13611
|
* {@link LRUCache.OptionsBase.noDisposeOnSet}
|
|
13612
13612
|
*/
|
|
13613
|
-
|
|
13613
|
+
H(this, "noDisposeOnSet");
|
|
13614
13614
|
/**
|
|
13615
13615
|
* {@link LRUCache.OptionsBase.noUpdateTTL}
|
|
13616
13616
|
*/
|
|
13617
|
-
|
|
13617
|
+
H(this, "noUpdateTTL");
|
|
13618
13618
|
/**
|
|
13619
13619
|
* {@link LRUCache.OptionsBase.maxEntrySize}
|
|
13620
13620
|
*/
|
|
13621
|
-
|
|
13621
|
+
H(this, "maxEntrySize");
|
|
13622
13622
|
/**
|
|
13623
13623
|
* {@link LRUCache.OptionsBase.sizeCalculation}
|
|
13624
13624
|
*/
|
|
13625
|
-
|
|
13625
|
+
H(this, "sizeCalculation");
|
|
13626
13626
|
/**
|
|
13627
13627
|
* {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
|
|
13628
13628
|
*/
|
|
13629
|
-
|
|
13629
|
+
H(this, "noDeleteOnFetchRejection");
|
|
13630
13630
|
/**
|
|
13631
13631
|
* {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
|
|
13632
13632
|
*/
|
|
13633
|
-
|
|
13633
|
+
H(this, "noDeleteOnStaleGet");
|
|
13634
13634
|
/**
|
|
13635
13635
|
* {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
|
|
13636
13636
|
*/
|
|
13637
|
-
|
|
13637
|
+
H(this, "allowStaleOnFetchAbort");
|
|
13638
13638
|
/**
|
|
13639
13639
|
* {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
|
|
13640
13640
|
*/
|
|
13641
|
-
|
|
13641
|
+
H(this, "allowStaleOnFetchRejection");
|
|
13642
13642
|
/**
|
|
13643
13643
|
* {@link LRUCache.OptionsBase.ignoreFetchAbort}
|
|
13644
13644
|
*/
|
|
13645
|
-
|
|
13645
|
+
H(this, "ignoreFetchAbort");
|
|
13646
13646
|
// computed properties
|
|
13647
13647
|
Q(this, Oe);
|
|
13648
13648
|
Q(this, Ct);
|
|
13649
13649
|
Q(this, Te);
|
|
13650
13650
|
Q(this, he);
|
|
13651
13651
|
Q(this, te);
|
|
13652
|
-
Q(this,
|
|
13652
|
+
Q(this, He);
|
|
13653
13653
|
Q(this, ut);
|
|
13654
13654
|
Q(this, qe);
|
|
13655
13655
|
Q(this, Re);
|
|
@@ -13660,7 +13660,7 @@ const fo = class fo {
|
|
|
13660
13660
|
Q(this, lt);
|
|
13661
13661
|
Q(this, Dt);
|
|
13662
13662
|
Q(this, pn);
|
|
13663
|
-
Q(this,
|
|
13663
|
+
Q(this, Ye);
|
|
13664
13664
|
// conditionally set private methods related to TTL
|
|
13665
13665
|
Q(this, Fn, () => {
|
|
13666
13666
|
});
|
|
@@ -13684,8 +13684,8 @@ const fo = class fo {
|
|
|
13684
13684
|
* description of an object. Called by the built-in method
|
|
13685
13685
|
* `Object.prototype.toString`.
|
|
13686
13686
|
*/
|
|
13687
|
-
|
|
13688
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: S = 0, maxEntrySize: w = 0, sizeCalculation: C, fetchMethod:
|
|
13687
|
+
H(this, Pa, "LRUCache");
|
|
13688
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: S = 0, maxEntrySize: w = 0, sizeCalculation: C, fetchMethod: v, memoMethod: b, noDeleteOnFetchRejection: O, noDeleteOnStaleGet: x, allowStaleOnFetchRejection: A, allowStaleOnFetchAbort: L, ignoreFetchAbort: T } = e;
|
|
13689
13689
|
if (n !== 0 && !an(n))
|
|
13690
13690
|
throw new TypeError("max option must be a nonnegative integer");
|
|
13691
13691
|
const N = n ? gl(n) : Array;
|
|
@@ -13699,9 +13699,9 @@ const fo = class fo {
|
|
|
13699
13699
|
}
|
|
13700
13700
|
if (b !== void 0 && typeof b != "function")
|
|
13701
13701
|
throw new TypeError("memoMethod must be a function if defined");
|
|
13702
|
-
if ($(this, ti, b),
|
|
13702
|
+
if ($(this, ti, b), v !== void 0 && typeof v != "function")
|
|
13703
13703
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
13704
|
-
if ($(this, ei,
|
|
13704
|
+
if ($(this, ei, v), $(this, pn, !!v), $(this, Te, /* @__PURE__ */ new Map()), $(this, he, new Array(n).fill(void 0)), $(this, te, new Array(n).fill(void 0)), $(this, He, new N(n)), $(this, ut, new N(n)), $(this, qe, 0), $(this, Re, 0), $(this, Rt, Fs.create(n)), $(this, Oe, 0), $(this, Ct, 0), typeof c == "function" && $(this, xt, c), typeof f == "function" ? ($(this, Ft, f), $(this, Le, [])) : ($(this, Ft, void 0), $(this, Le, void 0)), $(this, Dt, !!l(this, xt)), $(this, Ye, !!l(this, Ft)), this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!O, this.allowStaleOnFetchRejection = !!A, this.allowStaleOnFetchAbort = !!L, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
|
|
13705
13705
|
if (l(this, at) !== 0 && !an(l(this, at)))
|
|
13706
13706
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
13707
13707
|
if (!an(this.maxEntrySize))
|
|
@@ -13738,7 +13738,7 @@ const fo = class fo {
|
|
|
13738
13738
|
keyMap: l(e, Te),
|
|
13739
13739
|
keyList: l(e, he),
|
|
13740
13740
|
valList: l(e, te),
|
|
13741
|
-
next: l(e,
|
|
13741
|
+
next: l(e, He),
|
|
13742
13742
|
prev: l(e, ut),
|
|
13743
13743
|
get head() {
|
|
13744
13744
|
return l(e, qe);
|
|
@@ -14048,7 +14048,7 @@ const fo = class fo {
|
|
|
14048
14048
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
14049
14049
|
*/
|
|
14050
14050
|
set(e, n, i = {}) {
|
|
14051
|
-
var m, S, w, C,
|
|
14051
|
+
var m, S, w, C, v;
|
|
14052
14052
|
if (n === void 0)
|
|
14053
14053
|
return this.delete(e), this;
|
|
14054
14054
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -14058,7 +14058,7 @@ const fo = class fo {
|
|
|
14058
14058
|
return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), k(this, U, cn).call(this, e, "set"), this;
|
|
14059
14059
|
let p = l(this, Oe) === 0 ? void 0 : l(this, Te).get(e);
|
|
14060
14060
|
if (p === void 0)
|
|
14061
|
-
p = l(this, Oe) === 0 ? l(this, Re) : l(this, Rt).length !== 0 ? l(this, Rt).pop() : l(this, Oe) === l(this, At) ? k(this, U, br).call(this, !1) : l(this, Oe), l(this, he)[p] = e, l(this, te)[p] = n, l(this, Te).set(e, p), l(this,
|
|
14061
|
+
p = l(this, Oe) === 0 ? l(this, Re) : l(this, Rt).length !== 0 ? l(this, Rt).pop() : l(this, Oe) === l(this, At) ? k(this, U, br).call(this, !1) : l(this, Oe), l(this, he)[p] = e, l(this, te)[p] = n, l(this, Te).set(e, p), l(this, He)[l(this, Re)] = p, l(this, ut)[p] = l(this, Re), $(this, Re, p), En(this, Oe)._++, l(this, ni).call(this, p, f, u), u && (u.set = "add"), c = !1;
|
|
14062
14062
|
else {
|
|
14063
14063
|
k(this, U, Ii).call(this, p);
|
|
14064
14064
|
const b = l(this, te)[p];
|
|
@@ -14066,8 +14066,8 @@ const fo = class fo {
|
|
|
14066
14066
|
if (l(this, pn) && k(this, U, fe).call(this, b)) {
|
|
14067
14067
|
b.__abortController.abort(new Error("replaced"));
|
|
14068
14068
|
const { __staleWhileFetching: O } = b;
|
|
14069
|
-
O !== void 0 && !o && (l(this, Dt) && ((m = l(this, xt)) == null || m.call(this, O, e, "set")), l(this,
|
|
14070
|
-
} else o || (l(this, Dt) && ((w = l(this, xt)) == null || w.call(this, b, e, "set")), l(this,
|
|
14069
|
+
O !== void 0 && !o && (l(this, Dt) && ((m = l(this, xt)) == null || m.call(this, O, e, "set")), l(this, Ye) && ((S = l(this, Le)) == null || S.push([O, e, "set"])));
|
|
14070
|
+
} else o || (l(this, Dt) && ((w = l(this, xt)) == null || w.call(this, b, e, "set")), l(this, Ye) && ((C = l(this, Le)) == null || C.push([b, e, "set"])));
|
|
14071
14071
|
if (l(this, Cn).call(this, p), l(this, ni).call(this, p, f, u), l(this, te)[p] = n, u) {
|
|
14072
14072
|
u.set = "replace";
|
|
14073
14073
|
const O = b && k(this, U, fe).call(this, b) ? b.__staleWhileFetching : b;
|
|
@@ -14075,11 +14075,11 @@ const fo = class fo {
|
|
|
14075
14075
|
}
|
|
14076
14076
|
} else u && (u.set = "update");
|
|
14077
14077
|
}
|
|
14078
|
-
if (r !== 0 && !l(this, lt) && k(this, U, Rs).call(this), l(this, lt) && (c || l(this, Di).call(this, p, r, s), u && l(this, en).call(this, u, p)), !o && l(this,
|
|
14078
|
+
if (r !== 0 && !l(this, lt) && k(this, U, Rs).call(this), l(this, lt) && (c || l(this, Di).call(this, p, r, s), u && l(this, en).call(this, u, p)), !o && l(this, Ye) && l(this, Le)) {
|
|
14079
14079
|
const b = l(this, Le);
|
|
14080
14080
|
let O;
|
|
14081
14081
|
for (; O = b == null ? void 0 : b.shift(); )
|
|
14082
|
-
(
|
|
14082
|
+
(v = l(this, Ft)) == null || v.call(this, ...O);
|
|
14083
14083
|
}
|
|
14084
14084
|
return this;
|
|
14085
14085
|
}
|
|
@@ -14099,7 +14099,7 @@ const fo = class fo {
|
|
|
14099
14099
|
return n;
|
|
14100
14100
|
}
|
|
14101
14101
|
} finally {
|
|
14102
|
-
if (l(this,
|
|
14102
|
+
if (l(this, Ye) && l(this, Le)) {
|
|
14103
14103
|
const n = l(this, Le);
|
|
14104
14104
|
let i;
|
|
14105
14105
|
for (; i = n == null ? void 0 : n.shift(); )
|
|
@@ -14167,7 +14167,7 @@ const fo = class fo {
|
|
|
14167
14167
|
ignoreFetchAbort: S = this.ignoreFetchAbort,
|
|
14168
14168
|
allowStaleOnFetchAbort: w = this.allowStaleOnFetchAbort,
|
|
14169
14169
|
context: C,
|
|
14170
|
-
forceRefresh:
|
|
14170
|
+
forceRefresh: v = !1,
|
|
14171
14171
|
status: b,
|
|
14172
14172
|
signal: O
|
|
14173
14173
|
} = n;
|
|
@@ -14206,7 +14206,7 @@ const fo = class fo {
|
|
|
14206
14206
|
return b && (b.fetch = "inflight", d && (b.returnedStale = !0)), d ? L.__staleWhileFetching : L.__returned = L;
|
|
14207
14207
|
}
|
|
14208
14208
|
const T = l(this, ct).call(this, A);
|
|
14209
|
-
if (!
|
|
14209
|
+
if (!v && !T)
|
|
14210
14210
|
return b && (b.fetch = "hit"), k(this, U, Ii).call(this, A), r && l(this, Fn).call(this, A), b && l(this, en).call(this, b, A), L;
|
|
14211
14211
|
const N = k(this, U, wr).call(this, e, A, x, C), y = N.__staleWhileFetching !== void 0 && i;
|
|
14212
14212
|
return b && (b.fetch = T ? "stale" : "refresh", y && T && (b.returnedStale = !0)), y ? N.__staleWhileFetching : N.__returned = N;
|
|
@@ -14259,7 +14259,7 @@ const fo = class fo {
|
|
|
14259
14259
|
return k(this, U, Ds).call(this, "delete");
|
|
14260
14260
|
}
|
|
14261
14261
|
};
|
|
14262
|
-
At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(), ei = new WeakMap(), ti = new WeakMap(), Oe = new WeakMap(), Ct = new WeakMap(), Te = new WeakMap(), he = new WeakMap(), te = new WeakMap(),
|
|
14262
|
+
At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(), ei = new WeakMap(), ti = new WeakMap(), Oe = new WeakMap(), Ct = new WeakMap(), Te = new WeakMap(), he = new WeakMap(), te = new WeakMap(), He = new WeakMap(), ut = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), Rt = new WeakMap(), Le = new WeakMap(), Lt = new WeakMap(), kt = new WeakMap(), lt = new WeakMap(), Dt = new WeakMap(), pn = new WeakMap(), Ye = new WeakMap(), U = new WeakSet(), Rs = function() {
|
|
14263
14263
|
const e = new yr(l(this, At)), n = new yr(l(this, At));
|
|
14264
14264
|
$(this, lt, e), $(this, kt, n), $(this, Di, (s, o, a = Bn.now()) => {
|
|
14265
14265
|
if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
|
|
@@ -14334,13 +14334,13 @@ At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
14334
14334
|
}, ln = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
14335
14335
|
if (l(this, Oe))
|
|
14336
14336
|
for (let n = l(this, qe); !(!k(this, U, Ls).call(this, n) || ((e || !l(this, ct).call(this, n)) && (yield n), n === l(this, Re))); )
|
|
14337
|
-
n = l(this,
|
|
14337
|
+
n = l(this, He)[n];
|
|
14338
14338
|
}, Ls = function(e) {
|
|
14339
14339
|
return e !== void 0 && l(this, Te).get(l(this, he)[e]) === e;
|
|
14340
14340
|
}, br = function(e) {
|
|
14341
14341
|
var s, o;
|
|
14342
14342
|
const n = l(this, qe), i = l(this, he)[n], r = l(this, te)[n];
|
|
14343
|
-
return l(this, pn) && k(this, U, fe).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (l(this, Dt) || l(this,
|
|
14343
|
+
return l(this, pn) && k(this, U, fe).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (l(this, Dt) || l(this, Ye)) && (l(this, Dt) && ((s = l(this, xt)) == null || s.call(this, r, i, "evict")), l(this, Ye) && ((o = l(this, Le)) == null || o.push([r, i, "evict"]))), l(this, Cn).call(this, n), e && (l(this, he)[n] = void 0, l(this, te)[n] = void 0, l(this, Rt).push(n)), l(this, Oe) === 1 ? ($(this, qe, $(this, Re, 0)), l(this, Rt).length = 0) : $(this, qe, l(this, He)[n]), l(this, Te).delete(i), En(this, Oe)._--, n;
|
|
14344
14344
|
}, wr = function(e, n, i, r) {
|
|
14345
14345
|
const s = n === void 0 ? void 0 : l(this, te)[n];
|
|
14346
14346
|
if (k(this, U, fe).call(this, s))
|
|
@@ -14353,22 +14353,22 @@ At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
14353
14353
|
signal: o.signal,
|
|
14354
14354
|
options: i,
|
|
14355
14355
|
context: r
|
|
14356
|
-
}, c = (C,
|
|
14356
|
+
}, c = (C, v = !1) => {
|
|
14357
14357
|
const { aborted: b } = o.signal, O = i.ignoreFetchAbort && C !== void 0;
|
|
14358
|
-
if (i.status && (b && !
|
|
14358
|
+
if (i.status && (b && !v ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, O && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !O && !v)
|
|
14359
14359
|
return p(o.signal.reason);
|
|
14360
14360
|
const x = S;
|
|
14361
14361
|
return l(this, te)[n] === S && (C === void 0 ? x.__staleWhileFetching ? l(this, te)[n] = x.__staleWhileFetching : k(this, U, cn).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, C, u.options))), C;
|
|
14362
14362
|
}, f = (C) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = C), p(C)), p = (C) => {
|
|
14363
|
-
const { aborted:
|
|
14363
|
+
const { aborted: v } = o.signal, b = v && i.allowStaleOnFetchAbort, O = b || i.allowStaleOnFetchRejection, x = O || i.noDeleteOnFetchRejection, A = S;
|
|
14364
14364
|
if (l(this, te)[n] === S && (!x || A.__staleWhileFetching === void 0 ? k(this, U, cn).call(this, e, "fetch") : b || (l(this, te)[n] = A.__staleWhileFetching)), O)
|
|
14365
14365
|
return i.status && A.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), A.__staleWhileFetching;
|
|
14366
14366
|
if (A.__returned === A)
|
|
14367
14367
|
throw C;
|
|
14368
|
-
}, m = (C,
|
|
14368
|
+
}, m = (C, v) => {
|
|
14369
14369
|
var O;
|
|
14370
14370
|
const b = (O = l(this, ei)) == null ? void 0 : O.call(this, e, s, u);
|
|
14371
|
-
b && b instanceof Promise && b.then((x) => C(x === void 0 ? void 0 : x),
|
|
14371
|
+
b && b instanceof Promise && b.then((x) => C(x === void 0 ? void 0 : x), v), o.signal.addEventListener("abort", () => {
|
|
14372
14372
|
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (C(void 0), i.allowStaleOnFetchAbort && (C = (x) => c(x, !0)));
|
|
14373
14373
|
});
|
|
14374
14374
|
};
|
|
@@ -14385,9 +14385,9 @@ At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
14385
14385
|
const n = e;
|
|
14386
14386
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Fr;
|
|
14387
14387
|
}, ks = function(e, n) {
|
|
14388
|
-
l(this, ut)[n] = e, l(this,
|
|
14388
|
+
l(this, ut)[n] = e, l(this, He)[e] = n;
|
|
14389
14389
|
}, Ii = function(e) {
|
|
14390
|
-
e !== l(this, Re) && (e === l(this, qe) ? $(this, qe, l(this,
|
|
14390
|
+
e !== l(this, Re) && (e === l(this, qe) ? $(this, qe, l(this, He)[e]) : k(this, U, ks).call(this, l(this, ut)[e], l(this, He)[e]), k(this, U, ks).call(this, l(this, Re), e), $(this, Re, e));
|
|
14391
14391
|
}, cn = function(e, n) {
|
|
14392
14392
|
var r, s, o, a;
|
|
14393
14393
|
let i = !1;
|
|
@@ -14399,20 +14399,20 @@ At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
14399
14399
|
else {
|
|
14400
14400
|
l(this, Cn).call(this, u);
|
|
14401
14401
|
const c = l(this, te)[u];
|
|
14402
|
-
if (k(this, U, fe).call(this, c) ? c.__abortController.abort(new Error("deleted")) : (l(this, Dt) || l(this,
|
|
14402
|
+
if (k(this, U, fe).call(this, c) ? c.__abortController.abort(new Error("deleted")) : (l(this, Dt) || l(this, Ye)) && (l(this, Dt) && ((r = l(this, xt)) == null || r.call(this, c, e, n)), l(this, Ye) && ((s = l(this, Le)) == null || s.push([c, e, n]))), l(this, Te).delete(e), l(this, he)[u] = void 0, l(this, te)[u] = void 0, u === l(this, Re))
|
|
14403
14403
|
$(this, Re, l(this, ut)[u]);
|
|
14404
14404
|
else if (u === l(this, qe))
|
|
14405
|
-
$(this, qe, l(this,
|
|
14405
|
+
$(this, qe, l(this, He)[u]);
|
|
14406
14406
|
else {
|
|
14407
14407
|
const f = l(this, ut)[u];
|
|
14408
|
-
l(this,
|
|
14409
|
-
const p = l(this,
|
|
14408
|
+
l(this, He)[f] = l(this, He)[u];
|
|
14409
|
+
const p = l(this, He)[u];
|
|
14410
14410
|
l(this, ut)[p] = l(this, ut)[u];
|
|
14411
14411
|
}
|
|
14412
|
-
|
|
14412
|
+
En(this, Oe)._--, l(this, Rt).push(u);
|
|
14413
14413
|
}
|
|
14414
14414
|
}
|
|
14415
|
-
if (l(this,
|
|
14415
|
+
if (l(this, Ye) && ((o = l(this, Le)) != null && o.length)) {
|
|
14416
14416
|
const u = l(this, Le);
|
|
14417
14417
|
let c;
|
|
14418
14418
|
for (; c = u == null ? void 0 : u.shift(); )
|
|
@@ -14427,10 +14427,10 @@ At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
14427
14427
|
o.__abortController.abort(new Error("deleted"));
|
|
14428
14428
|
else {
|
|
14429
14429
|
const a = l(this, he)[s];
|
|
14430
|
-
l(this, Dt) && ((n = l(this, xt)) == null || n.call(this, o, a, e)), l(this,
|
|
14430
|
+
l(this, Dt) && ((n = l(this, xt)) == null || n.call(this, o, a, e)), l(this, Ye) && ((i = l(this, Le)) == null || i.push([o, a, e]));
|
|
14431
14431
|
}
|
|
14432
14432
|
}
|
|
14433
|
-
if (l(this, Te).clear(), l(this, te).fill(void 0), l(this, he).fill(void 0), l(this, lt) && l(this, kt) && (l(this, lt).fill(0), l(this, kt).fill(0)), l(this, Lt) && l(this, Lt).fill(0), $(this, qe, 0), $(this, Re, 0), l(this, Rt).length = 0, $(this, Ct, 0), $(this, Oe, 0), l(this,
|
|
14433
|
+
if (l(this, Te).clear(), l(this, te).fill(void 0), l(this, he).fill(void 0), l(this, lt) && l(this, kt) && (l(this, lt).fill(0), l(this, kt).fill(0)), l(this, Lt) && l(this, Lt).fill(0), $(this, qe, 0), $(this, Re, 0), l(this, Rt).length = 0, $(this, Ct, 0), $(this, Oe, 0), l(this, Ye) && l(this, Le)) {
|
|
14434
14434
|
const s = l(this, Le);
|
|
14435
14435
|
let o;
|
|
14436
14436
|
for (; o = s == null ? void 0 : s.shift(); )
|
|
@@ -14481,12 +14481,12 @@ var yl = { exports: {} };
|
|
|
14481
14481
|
}, r.keysMD5 = function(T) {
|
|
14482
14482
|
return C(T, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
|
|
14483
14483
|
};
|
|
14484
|
-
var
|
|
14484
|
+
var v = w.getHashes ? w.getHashes().slice() : ["sha1", "md5"], b = (v.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
|
|
14485
14485
|
function O(T, N) {
|
|
14486
14486
|
var g = {};
|
|
14487
14487
|
if (g.algorithm = (N = N || {}).algorithm || "sha1", g.encoding = N.encoding || "hex", g.excludeValues = !!N.excludeValues, g.algorithm = g.algorithm.toLowerCase(), g.encoding = g.encoding.toLowerCase(), g.ignoreUnknown = N.ignoreUnknown === !0, g.respectType = N.respectType !== !1, g.respectFunctionNames = N.respectFunctionNames !== !1, g.respectFunctionProperties = N.respectFunctionProperties !== !1, g.unorderedArrays = N.unorderedArrays === !0, g.unorderedSets = N.unorderedSets !== !1, g.unorderedObjects = N.unorderedObjects !== !1, g.replacer = N.replacer || void 0, g.excludeKeys = N.excludeKeys || void 0, T === void 0) throw new Error("Object argument required.");
|
|
14488
|
-
for (var y = 0; y <
|
|
14489
|
-
if (
|
|
14488
|
+
for (var y = 0; y < v.length; ++y) v[y].toLowerCase() === g.algorithm.toLowerCase() && (g.algorithm = v[y]);
|
|
14489
|
+
if (v.indexOf(g.algorithm) === -1) throw new Error('Algorithm "' + g.algorithm + '" not supported. supported values: ' + v.join(", "));
|
|
14490
14490
|
if (b.indexOf(g.encoding) === -1 && g.algorithm !== "passthrough") throw new Error('Encoding "' + g.encoding + '" not supported. supported values: ' + b.join(", "));
|
|
14491
14491
|
return g;
|
|
14492
14492
|
}
|
|
@@ -14637,9 +14637,9 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
14637
14637
|
}, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(n, i, r) {
|
|
14638
14638
|
(function(s, o, a, u, c, f, p, m, S) {
|
|
14639
14639
|
(function(w) {
|
|
14640
|
-
var C = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
14640
|
+
var C = typeof Uint8Array < "u" ? Uint8Array : Array, v = 43, b = 47, O = 48, x = 97, A = 65, L = 45, T = 95;
|
|
14641
14641
|
function N(g) {
|
|
14642
|
-
return g = g.charCodeAt(0), g ===
|
|
14642
|
+
return g = g.charCodeAt(0), g === v || g === L ? 62 : g === b || g === T ? 63 : g < O ? -1 : g < O + 10 ? g - O + 26 + 26 : g < A + 26 ? g - A : g < x + 26 ? g - x + 26 : void 0;
|
|
14643
14643
|
}
|
|
14644
14644
|
w.toByteArray = function(g) {
|
|
14645
14645
|
var y, d;
|
|
@@ -14668,92 +14668,92 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
14668
14668
|
})(r === void 0 ? this.base64js = {} : r);
|
|
14669
14669
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
|
|
14670
14670
|
}, { buffer: 3, lYpoI2: 11 }], 3: [function(n, i, r) {
|
|
14671
|
-
(function(s, o,
|
|
14671
|
+
(function(s, o, v, u, c, f, p, m, S) {
|
|
14672
14672
|
var w = n("base64-js"), C = n("ieee754");
|
|
14673
|
-
function
|
|
14674
|
-
if (!(this instanceof
|
|
14673
|
+
function v(h, E, F) {
|
|
14674
|
+
if (!(this instanceof v)) return new v(h, E, F);
|
|
14675
14675
|
var M, P, G, oe, ye = typeof h;
|
|
14676
|
-
if (
|
|
14676
|
+
if (E === "base64" && ye == "string") for (h = (oe = h).trim ? oe.trim() : oe.replace(/^\s+|\s+$/g, ""); h.length % 4 != 0; ) h += "=";
|
|
14677
14677
|
if (ye == "number") M = Be(h);
|
|
14678
|
-
else if (ye == "string") M =
|
|
14678
|
+
else if (ye == "string") M = v.byteLength(h, E);
|
|
14679
14679
|
else {
|
|
14680
14680
|
if (ye != "object") throw new Error("First argument needs to be a number, array or string.");
|
|
14681
14681
|
M = Be(h.length);
|
|
14682
14682
|
}
|
|
14683
|
-
if (
|
|
14684
|
-
else if (me(oe = h) ||
|
|
14685
|
-
else if (ye == "string") P.write(h, 0,
|
|
14686
|
-
else if (ye == "number" && !
|
|
14683
|
+
if (v._useTypedArrays ? P = v._augment(new Uint8Array(M)) : ((P = this).length = M, P._isBuffer = !0), v._useTypedArrays && typeof h.byteLength == "number") P._set(h);
|
|
14684
|
+
else if (me(oe = h) || v.isBuffer(oe) || oe && typeof oe == "object" && typeof oe.length == "number") for (G = 0; G < M; G++) v.isBuffer(h) ? P[G] = h.readUInt8(G) : P[G] = h[G];
|
|
14685
|
+
else if (ye == "string") P.write(h, 0, E);
|
|
14686
|
+
else if (ye == "number" && !v._useTypedArrays && !F) for (G = 0; G < M; G++) P[G] = 0;
|
|
14687
14687
|
return P;
|
|
14688
14688
|
}
|
|
14689
|
-
function b(h,
|
|
14690
|
-
return
|
|
14689
|
+
function b(h, E, F, M) {
|
|
14690
|
+
return v._charsWritten = zi(function(P) {
|
|
14691
14691
|
for (var G = [], oe = 0; oe < P.length; oe++) G.push(255 & P.charCodeAt(oe));
|
|
14692
14692
|
return G;
|
|
14693
|
-
}(
|
|
14693
|
+
}(E), h, F, M);
|
|
14694
14694
|
}
|
|
14695
|
-
function O(h,
|
|
14696
|
-
return
|
|
14695
|
+
function O(h, E, F, M) {
|
|
14696
|
+
return v._charsWritten = zi(function(P) {
|
|
14697
14697
|
for (var G, oe, ye = [], Ae = 0; Ae < P.length; Ae++) oe = P.charCodeAt(Ae), G = oe >> 8, oe = oe % 256, ye.push(oe), ye.push(G);
|
|
14698
14698
|
return ye;
|
|
14699
|
-
}(
|
|
14699
|
+
}(E), h, F, M);
|
|
14700
14700
|
}
|
|
14701
|
-
function x(h,
|
|
14701
|
+
function x(h, E, F) {
|
|
14702
14702
|
var M = "";
|
|
14703
14703
|
F = Math.min(h.length, F);
|
|
14704
|
-
for (var P =
|
|
14704
|
+
for (var P = E; P < F; P++) M += String.fromCharCode(h[P]);
|
|
14705
14705
|
return M;
|
|
14706
14706
|
}
|
|
14707
|
-
function A(h,
|
|
14708
|
-
G || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14707
|
+
function A(h, E, F, G) {
|
|
14708
|
+
G || (B(typeof F == "boolean", "missing or invalid endian"), B(E != null, "missing offset"), B(E + 1 < h.length, "Trying to read beyond buffer length"));
|
|
14709
14709
|
var P, G = h.length;
|
|
14710
|
-
if (!(G <=
|
|
14710
|
+
if (!(G <= E)) return F ? (P = h[E], E + 1 < G && (P |= h[E + 1] << 8)) : (P = h[E] << 8, E + 1 < G && (P |= h[E + 1])), P;
|
|
14711
14711
|
}
|
|
14712
|
-
function L(h,
|
|
14713
|
-
G || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14712
|
+
function L(h, E, F, G) {
|
|
14713
|
+
G || (B(typeof F == "boolean", "missing or invalid endian"), B(E != null, "missing offset"), B(E + 3 < h.length, "Trying to read beyond buffer length"));
|
|
14714
14714
|
var P, G = h.length;
|
|
14715
|
-
if (!(G <=
|
|
14715
|
+
if (!(G <= E)) return F ? (E + 2 < G && (P = h[E + 2] << 16), E + 1 < G && (P |= h[E + 1] << 8), P |= h[E], E + 3 < G && (P += h[E + 3] << 24 >>> 0)) : (E + 1 < G && (P = h[E + 1] << 16), E + 2 < G && (P |= h[E + 2] << 8), E + 3 < G && (P |= h[E + 3]), P += h[E] << 24 >>> 0), P;
|
|
14716
14716
|
}
|
|
14717
|
-
function T(h,
|
|
14718
|
-
if (M || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14717
|
+
function T(h, E, F, M) {
|
|
14718
|
+
if (M || (B(typeof F == "boolean", "missing or invalid endian"), B(E != null, "missing offset"), B(E + 1 < h.length, "Trying to read beyond buffer length")), !(h.length <= E)) return M = A(h, E, F, !0), 32768 & M ? -1 * (65535 - M + 1) : M;
|
|
14719
14719
|
}
|
|
14720
|
-
function N(h,
|
|
14721
|
-
if (M || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14720
|
+
function N(h, E, F, M) {
|
|
14721
|
+
if (M || (B(typeof F == "boolean", "missing or invalid endian"), B(E != null, "missing offset"), B(E + 3 < h.length, "Trying to read beyond buffer length")), !(h.length <= E)) return M = L(h, E, F, !0), 2147483648 & M ? -1 * (4294967295 - M + 1) : M;
|
|
14722
14722
|
}
|
|
14723
|
-
function g(h,
|
|
14724
|
-
return M || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14723
|
+
function g(h, E, F, M) {
|
|
14724
|
+
return M || (B(typeof F == "boolean", "missing or invalid endian"), B(E + 3 < h.length, "Trying to read beyond buffer length")), C.read(h, E, F, 23, 4);
|
|
14725
14725
|
}
|
|
14726
|
-
function y(h,
|
|
14727
|
-
return M || (B(typeof F == "boolean", "missing or invalid endian"), B(
|
|
14726
|
+
function y(h, E, F, M) {
|
|
14727
|
+
return M || (B(typeof F == "boolean", "missing or invalid endian"), B(E + 7 < h.length, "Trying to read beyond buffer length")), C.read(h, E, F, 52, 8);
|
|
14728
14728
|
}
|
|
14729
|
-
function d(h,
|
|
14730
|
-
if (P || (B(
|
|
14729
|
+
function d(h, E, F, M, P) {
|
|
14730
|
+
if (P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 1 < h.length, "trying to write beyond buffer length"), Qr(E, 65535)), P = h.length, !(P <= F)) for (var G = 0, oe = Math.min(P - F, 2); G < oe; G++) h[F + G] = (E & 255 << 8 * (M ? G : 1 - G)) >>> 8 * (M ? G : 1 - G);
|
|
14731
14731
|
}
|
|
14732
|
-
function I(h,
|
|
14733
|
-
if (P || (B(
|
|
14732
|
+
function I(h, E, F, M, P) {
|
|
14733
|
+
if (P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 3 < h.length, "trying to write beyond buffer length"), Qr(E, 4294967295)), P = h.length, !(P <= F)) for (var G = 0, oe = Math.min(P - F, 4); G < oe; G++) h[F + G] = E >>> 8 * (M ? G : 3 - G) & 255;
|
|
14734
14734
|
}
|
|
14735
|
-
function R(h,
|
|
14736
|
-
P || (B(
|
|
14735
|
+
function R(h, E, F, M, P) {
|
|
14736
|
+
P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 1 < h.length, "Trying to write beyond buffer length"), Wr(E, 32767, -32768)), h.length <= F || d(h, 0 <= E ? E : 65535 + E + 1, F, M, P);
|
|
14737
14737
|
}
|
|
14738
|
-
function Z(h,
|
|
14739
|
-
P || (B(
|
|
14738
|
+
function Z(h, E, F, M, P) {
|
|
14739
|
+
P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 3 < h.length, "Trying to write beyond buffer length"), Wr(E, 2147483647, -2147483648)), h.length <= F || I(h, 0 <= E ? E : 4294967295 + E + 1, F, M, P);
|
|
14740
14740
|
}
|
|
14741
|
-
function K(h,
|
|
14742
|
-
P || (B(
|
|
14741
|
+
function K(h, E, F, M, P) {
|
|
14742
|
+
P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 3 < h.length, "Trying to write beyond buffer length"), go(E, 34028234663852886e22, -34028234663852886e22)), h.length <= F || C.write(h, E, F, M, 23, 4);
|
|
14743
14743
|
}
|
|
14744
|
-
function X(h,
|
|
14745
|
-
P || (B(
|
|
14744
|
+
function X(h, E, F, M, P) {
|
|
14745
|
+
P || (B(E != null, "missing value"), B(typeof M == "boolean", "missing or invalid endian"), B(F != null, "missing offset"), B(F + 7 < h.length, "Trying to write beyond buffer length"), go(E, 17976931348623157e292, -17976931348623157e292)), h.length <= F || C.write(h, E, F, M, 52, 8);
|
|
14746
14746
|
}
|
|
14747
|
-
r.Buffer =
|
|
14747
|
+
r.Buffer = v, r.SlowBuffer = v, r.INSPECT_MAX_BYTES = 50, v.poolSize = 8192, v._useTypedArrays = function() {
|
|
14748
14748
|
try {
|
|
14749
|
-
var h = new ArrayBuffer(0),
|
|
14750
|
-
return
|
|
14749
|
+
var h = new ArrayBuffer(0), E = new Uint8Array(h);
|
|
14750
|
+
return E.foo = function() {
|
|
14751
14751
|
return 42;
|
|
14752
|
-
},
|
|
14752
|
+
}, E.foo() === 42 && typeof E.subarray == "function";
|
|
14753
14753
|
} catch {
|
|
14754
14754
|
return !1;
|
|
14755
14755
|
}
|
|
14756
|
-
}(),
|
|
14756
|
+
}(), v.isEncoding = function(h) {
|
|
14757
14757
|
switch (String(h).toLowerCase()) {
|
|
14758
14758
|
case "hex":
|
|
14759
14759
|
case "utf8":
|
|
@@ -14770,11 +14770,11 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
14770
14770
|
default:
|
|
14771
14771
|
return !1;
|
|
14772
14772
|
}
|
|
14773
|
-
},
|
|
14773
|
+
}, v.isBuffer = function(h) {
|
|
14774
14774
|
return !(h == null || !h._isBuffer);
|
|
14775
|
-
},
|
|
14775
|
+
}, v.byteLength = function(h, E) {
|
|
14776
14776
|
var F;
|
|
14777
|
-
switch (h += "",
|
|
14777
|
+
switch (h += "", E || "utf8") {
|
|
14778
14778
|
case "hex":
|
|
14779
14779
|
F = h.length / 2;
|
|
14780
14780
|
break;
|
|
@@ -14800,213 +14800,213 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
14800
14800
|
throw new Error("Unknown encoding");
|
|
14801
14801
|
}
|
|
14802
14802
|
return F;
|
|
14803
|
-
},
|
|
14803
|
+
}, v.concat = function(h, E) {
|
|
14804
14804
|
if (B(me(h), `Usage: Buffer.concat(list, [totalLength])
|
|
14805
|
-
list should be an Array.`), h.length === 0) return new
|
|
14805
|
+
list should be an Array.`), h.length === 0) return new v(0);
|
|
14806
14806
|
if (h.length === 1) return h[0];
|
|
14807
|
-
if (typeof
|
|
14808
|
-
for (var F = new E
|
|
14807
|
+
if (typeof E != "number") for (P = E = 0; P < h.length; P++) E += h[P].length;
|
|
14808
|
+
for (var F = new v(E), M = 0, P = 0; P < h.length; P++) {
|
|
14809
14809
|
var G = h[P];
|
|
14810
14810
|
G.copy(F, M), M += G.length;
|
|
14811
14811
|
}
|
|
14812
14812
|
return F;
|
|
14813
|
-
},
|
|
14814
|
-
isFinite(
|
|
14815
|
-
var P, G, oe, ye, Ae = this.length -
|
|
14813
|
+
}, v.prototype.write = function(h, E, F, M) {
|
|
14814
|
+
isFinite(E) ? isFinite(F) || (M = F, F = void 0) : (Ae = M, M = E, E = F, F = Ae), E = Number(E) || 0;
|
|
14815
|
+
var P, G, oe, ye, Ae = this.length - E;
|
|
14816
14816
|
switch ((!F || Ae < (F = Number(F))) && (F = Ae), M = String(M || "utf8").toLowerCase()) {
|
|
14817
14817
|
case "hex":
|
|
14818
14818
|
P = function(yt, Ke, Xe, xe) {
|
|
14819
14819
|
Xe = Number(Xe) || 0;
|
|
14820
|
-
var
|
|
14821
|
-
(!xe ||
|
|
14820
|
+
var ve = yt.length - Xe;
|
|
14821
|
+
(!xe || ve < (xe = Number(xe))) && (xe = ve), B((ve = Ke.length) % 2 == 0, "Invalid hex string"), ve / 2 < xe && (xe = ve / 2);
|
|
14822
14822
|
for (var jn = 0; jn < xe; jn++) {
|
|
14823
14823
|
var mo = parseInt(Ke.substr(2 * jn, 2), 16);
|
|
14824
14824
|
B(!isNaN(mo), "Invalid hex string"), yt[Xe + jn] = mo;
|
|
14825
14825
|
}
|
|
14826
|
-
return
|
|
14827
|
-
}(this, h,
|
|
14826
|
+
return v._charsWritten = 2 * jn, jn;
|
|
14827
|
+
}(this, h, E, F);
|
|
14828
14828
|
break;
|
|
14829
14829
|
case "utf8":
|
|
14830
14830
|
case "utf-8":
|
|
14831
|
-
G = this, oe =
|
|
14831
|
+
G = this, oe = E, ye = F, P = v._charsWritten = zi(Jt(h), G, oe, ye);
|
|
14832
14832
|
break;
|
|
14833
14833
|
case "ascii":
|
|
14834
14834
|
case "binary":
|
|
14835
|
-
P = b(this, h,
|
|
14835
|
+
P = b(this, h, E, F);
|
|
14836
14836
|
break;
|
|
14837
14837
|
case "base64":
|
|
14838
|
-
G = this, oe =
|
|
14838
|
+
G = this, oe = E, ye = F, P = v._charsWritten = zi(ho(h), G, oe, ye);
|
|
14839
14839
|
break;
|
|
14840
14840
|
case "ucs2":
|
|
14841
14841
|
case "ucs-2":
|
|
14842
14842
|
case "utf16le":
|
|
14843
14843
|
case "utf-16le":
|
|
14844
|
-
P = O(this, h,
|
|
14844
|
+
P = O(this, h, E, F);
|
|
14845
14845
|
break;
|
|
14846
14846
|
default:
|
|
14847
14847
|
throw new Error("Unknown encoding");
|
|
14848
14848
|
}
|
|
14849
14849
|
return P;
|
|
14850
|
-
},
|
|
14850
|
+
}, v.prototype.toString = function(h, E, F) {
|
|
14851
14851
|
var M, P, G, oe, ye = this;
|
|
14852
|
-
if (h = String(h || "utf8").toLowerCase(),
|
|
14852
|
+
if (h = String(h || "utf8").toLowerCase(), E = Number(E) || 0, (F = F !== void 0 ? Number(F) : ye.length) === E) return "";
|
|
14853
14853
|
switch (h) {
|
|
14854
14854
|
case "hex":
|
|
14855
14855
|
M = function(Ae, yt, Ke) {
|
|
14856
14856
|
var Xe = Ae.length;
|
|
14857
14857
|
(!yt || yt < 0) && (yt = 0), (!Ke || Ke < 0 || Xe < Ke) && (Ke = Xe);
|
|
14858
|
-
for (var xe = "",
|
|
14858
|
+
for (var xe = "", ve = yt; ve < Ke; ve++) xe += le(Ae[ve]);
|
|
14859
14859
|
return xe;
|
|
14860
|
-
}(ye,
|
|
14860
|
+
}(ye, E, F);
|
|
14861
14861
|
break;
|
|
14862
14862
|
case "utf8":
|
|
14863
14863
|
case "utf-8":
|
|
14864
14864
|
M = function(Ae, yt, Ke) {
|
|
14865
14865
|
var Xe = "", xe = "";
|
|
14866
14866
|
Ke = Math.min(Ae.length, Ke);
|
|
14867
|
-
for (var
|
|
14867
|
+
for (var ve = yt; ve < Ke; ve++) Ae[ve] <= 127 ? (Xe += po(xe) + String.fromCharCode(Ae[ve]), xe = "") : xe += "%" + Ae[ve].toString(16);
|
|
14868
14868
|
return Xe + po(xe);
|
|
14869
|
-
}(ye,
|
|
14869
|
+
}(ye, E, F);
|
|
14870
14870
|
break;
|
|
14871
14871
|
case "ascii":
|
|
14872
14872
|
case "binary":
|
|
14873
|
-
M = x(ye,
|
|
14873
|
+
M = x(ye, E, F);
|
|
14874
14874
|
break;
|
|
14875
14875
|
case "base64":
|
|
14876
|
-
P = ye, oe = F, M = (G =
|
|
14876
|
+
P = ye, oe = F, M = (G = E) === 0 && oe === P.length ? w.fromByteArray(P) : w.fromByteArray(P.slice(G, oe));
|
|
14877
14877
|
break;
|
|
14878
14878
|
case "ucs2":
|
|
14879
14879
|
case "ucs-2":
|
|
14880
14880
|
case "utf16le":
|
|
14881
14881
|
case "utf-16le":
|
|
14882
14882
|
M = function(Ae, yt, Ke) {
|
|
14883
|
-
for (var Xe = Ae.slice(yt, Ke), xe = "",
|
|
14883
|
+
for (var Xe = Ae.slice(yt, Ke), xe = "", ve = 0; ve < Xe.length; ve += 2) xe += String.fromCharCode(Xe[ve] + 256 * Xe[ve + 1]);
|
|
14884
14884
|
return xe;
|
|
14885
|
-
}(ye,
|
|
14885
|
+
}(ye, E, F);
|
|
14886
14886
|
break;
|
|
14887
14887
|
default:
|
|
14888
14888
|
throw new Error("Unknown encoding");
|
|
14889
14889
|
}
|
|
14890
14890
|
return M;
|
|
14891
|
-
},
|
|
14891
|
+
}, v.prototype.toJSON = function() {
|
|
14892
14892
|
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
14893
|
-
},
|
|
14894
|
-
if (
|
|
14895
|
-
B(F <= M, "sourceEnd < sourceStart"), B(0 <=
|
|
14896
|
-
var P = (M = h.length -
|
|
14897
|
-
if (P < 100 || !
|
|
14898
|
-
else h._set(this.subarray(F, F + P),
|
|
14893
|
+
}, v.prototype.copy = function(h, E, F, M) {
|
|
14894
|
+
if (E = E || 0, (M = M || M === 0 ? M : this.length) !== (F = F || 0) && h.length !== 0 && this.length !== 0) {
|
|
14895
|
+
B(F <= M, "sourceEnd < sourceStart"), B(0 <= E && E < h.length, "targetStart out of bounds"), B(0 <= F && F < this.length, "sourceStart out of bounds"), B(0 <= M && M <= this.length, "sourceEnd out of bounds"), M > this.length && (M = this.length);
|
|
14896
|
+
var P = (M = h.length - E < M - F ? h.length - E + F : M) - F;
|
|
14897
|
+
if (P < 100 || !v._useTypedArrays) for (var G = 0; G < P; G++) h[G + E] = this[G + F];
|
|
14898
|
+
else h._set(this.subarray(F, F + P), E);
|
|
14899
14899
|
}
|
|
14900
|
-
},
|
|
14900
|
+
}, v.prototype.slice = function(h, E) {
|
|
14901
14901
|
var F = this.length;
|
|
14902
|
-
if (h = ge(h, F, 0),
|
|
14903
|
-
for (var M =
|
|
14902
|
+
if (h = ge(h, F, 0), E = ge(E, F, F), v._useTypedArrays) return v._augment(this.subarray(h, E));
|
|
14903
|
+
for (var M = E - h, P = new v(M, void 0, !0), G = 0; G < M; G++) P[G] = this[G + h];
|
|
14904
14904
|
return P;
|
|
14905
|
-
},
|
|
14905
|
+
}, v.prototype.get = function(h) {
|
|
14906
14906
|
return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(h);
|
|
14907
|
-
},
|
|
14908
|
-
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(h,
|
|
14909
|
-
},
|
|
14910
|
-
if (
|
|
14911
|
-
},
|
|
14912
|
-
return A(this, h, !0,
|
|
14913
|
-
},
|
|
14914
|
-
return A(this, h, !1,
|
|
14915
|
-
},
|
|
14916
|
-
return L(this, h, !0,
|
|
14917
|
-
},
|
|
14918
|
-
return L(this, h, !1,
|
|
14919
|
-
},
|
|
14920
|
-
if (
|
|
14921
|
-
},
|
|
14922
|
-
return T(this, h, !0,
|
|
14923
|
-
},
|
|
14924
|
-
return T(this, h, !1,
|
|
14925
|
-
},
|
|
14926
|
-
return N(this, h, !0,
|
|
14927
|
-
},
|
|
14928
|
-
return N(this, h, !1,
|
|
14929
|
-
},
|
|
14930
|
-
return g(this, h, !0,
|
|
14931
|
-
},
|
|
14932
|
-
return g(this, h, !1,
|
|
14933
|
-
},
|
|
14934
|
-
return y(this, h, !0,
|
|
14935
|
-
},
|
|
14936
|
-
return y(this, h, !1,
|
|
14937
|
-
},
|
|
14938
|
-
F || (B(h != null, "missing value"), B(
|
|
14939
|
-
},
|
|
14940
|
-
d(this, h,
|
|
14941
|
-
},
|
|
14942
|
-
d(this, h,
|
|
14943
|
-
},
|
|
14944
|
-
I(this, h,
|
|
14945
|
-
},
|
|
14946
|
-
I(this, h,
|
|
14947
|
-
},
|
|
14948
|
-
F || (B(h != null, "missing value"), B(
|
|
14949
|
-
},
|
|
14950
|
-
R(this, h,
|
|
14951
|
-
},
|
|
14952
|
-
R(this, h,
|
|
14953
|
-
},
|
|
14954
|
-
Z(this, h,
|
|
14955
|
-
},
|
|
14956
|
-
Z(this, h,
|
|
14957
|
-
},
|
|
14958
|
-
K(this, h,
|
|
14959
|
-
},
|
|
14960
|
-
K(this, h,
|
|
14961
|
-
},
|
|
14962
|
-
X(this, h,
|
|
14963
|
-
},
|
|
14964
|
-
X(this, h,
|
|
14965
|
-
},
|
|
14966
|
-
if (
|
|
14967
|
-
B(0 <=
|
|
14968
|
-
for (var M =
|
|
14907
|
+
}, v.prototype.set = function(h, E) {
|
|
14908
|
+
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(h, E);
|
|
14909
|
+
}, v.prototype.readUInt8 = function(h, E) {
|
|
14910
|
+
if (E || (B(h != null, "missing offset"), B(h < this.length, "Trying to read beyond buffer length")), !(h >= this.length)) return this[h];
|
|
14911
|
+
}, v.prototype.readUInt16LE = function(h, E) {
|
|
14912
|
+
return A(this, h, !0, E);
|
|
14913
|
+
}, v.prototype.readUInt16BE = function(h, E) {
|
|
14914
|
+
return A(this, h, !1, E);
|
|
14915
|
+
}, v.prototype.readUInt32LE = function(h, E) {
|
|
14916
|
+
return L(this, h, !0, E);
|
|
14917
|
+
}, v.prototype.readUInt32BE = function(h, E) {
|
|
14918
|
+
return L(this, h, !1, E);
|
|
14919
|
+
}, v.prototype.readInt8 = function(h, E) {
|
|
14920
|
+
if (E || (B(h != null, "missing offset"), B(h < this.length, "Trying to read beyond buffer length")), !(h >= this.length)) return 128 & this[h] ? -1 * (255 - this[h] + 1) : this[h];
|
|
14921
|
+
}, v.prototype.readInt16LE = function(h, E) {
|
|
14922
|
+
return T(this, h, !0, E);
|
|
14923
|
+
}, v.prototype.readInt16BE = function(h, E) {
|
|
14924
|
+
return T(this, h, !1, E);
|
|
14925
|
+
}, v.prototype.readInt32LE = function(h, E) {
|
|
14926
|
+
return N(this, h, !0, E);
|
|
14927
|
+
}, v.prototype.readInt32BE = function(h, E) {
|
|
14928
|
+
return N(this, h, !1, E);
|
|
14929
|
+
}, v.prototype.readFloatLE = function(h, E) {
|
|
14930
|
+
return g(this, h, !0, E);
|
|
14931
|
+
}, v.prototype.readFloatBE = function(h, E) {
|
|
14932
|
+
return g(this, h, !1, E);
|
|
14933
|
+
}, v.prototype.readDoubleLE = function(h, E) {
|
|
14934
|
+
return y(this, h, !0, E);
|
|
14935
|
+
}, v.prototype.readDoubleBE = function(h, E) {
|
|
14936
|
+
return y(this, h, !1, E);
|
|
14937
|
+
}, v.prototype.writeUInt8 = function(h, E, F) {
|
|
14938
|
+
F || (B(h != null, "missing value"), B(E != null, "missing offset"), B(E < this.length, "trying to write beyond buffer length"), Qr(h, 255)), E >= this.length || (this[E] = h);
|
|
14939
|
+
}, v.prototype.writeUInt16LE = function(h, E, F) {
|
|
14940
|
+
d(this, h, E, !0, F);
|
|
14941
|
+
}, v.prototype.writeUInt16BE = function(h, E, F) {
|
|
14942
|
+
d(this, h, E, !1, F);
|
|
14943
|
+
}, v.prototype.writeUInt32LE = function(h, E, F) {
|
|
14944
|
+
I(this, h, E, !0, F);
|
|
14945
|
+
}, v.prototype.writeUInt32BE = function(h, E, F) {
|
|
14946
|
+
I(this, h, E, !1, F);
|
|
14947
|
+
}, v.prototype.writeInt8 = function(h, E, F) {
|
|
14948
|
+
F || (B(h != null, "missing value"), B(E != null, "missing offset"), B(E < this.length, "Trying to write beyond buffer length"), Wr(h, 127, -128)), E >= this.length || (0 <= h ? this.writeUInt8(h, E, F) : this.writeUInt8(255 + h + 1, E, F));
|
|
14949
|
+
}, v.prototype.writeInt16LE = function(h, E, F) {
|
|
14950
|
+
R(this, h, E, !0, F);
|
|
14951
|
+
}, v.prototype.writeInt16BE = function(h, E, F) {
|
|
14952
|
+
R(this, h, E, !1, F);
|
|
14953
|
+
}, v.prototype.writeInt32LE = function(h, E, F) {
|
|
14954
|
+
Z(this, h, E, !0, F);
|
|
14955
|
+
}, v.prototype.writeInt32BE = function(h, E, F) {
|
|
14956
|
+
Z(this, h, E, !1, F);
|
|
14957
|
+
}, v.prototype.writeFloatLE = function(h, E, F) {
|
|
14958
|
+
K(this, h, E, !0, F);
|
|
14959
|
+
}, v.prototype.writeFloatBE = function(h, E, F) {
|
|
14960
|
+
K(this, h, E, !1, F);
|
|
14961
|
+
}, v.prototype.writeDoubleLE = function(h, E, F) {
|
|
14962
|
+
X(this, h, E, !0, F);
|
|
14963
|
+
}, v.prototype.writeDoubleBE = function(h, E, F) {
|
|
14964
|
+
X(this, h, E, !1, F);
|
|
14965
|
+
}, v.prototype.fill = function(h, E, F) {
|
|
14966
|
+
if (E = E || 0, F = F || this.length, B(typeof (h = typeof (h = h || 0) == "string" ? h.charCodeAt(0) : h) == "number" && !isNaN(h), "value is not a number"), B(E <= F, "end < start"), F !== E && this.length !== 0) {
|
|
14967
|
+
B(0 <= E && E < this.length, "start out of bounds"), B(0 <= F && F <= this.length, "end out of bounds");
|
|
14968
|
+
for (var M = E; M < F; M++) this[M] = h;
|
|
14969
14969
|
}
|
|
14970
|
-
},
|
|
14971
|
-
for (var h = [],
|
|
14970
|
+
}, v.prototype.inspect = function() {
|
|
14971
|
+
for (var h = [], E = this.length, F = 0; F < E; F++) if (h[F] = le(this[F]), F === r.INSPECT_MAX_BYTES) {
|
|
14972
14972
|
h[F + 1] = "...";
|
|
14973
14973
|
break;
|
|
14974
14974
|
}
|
|
14975
14975
|
return "<Buffer " + h.join(" ") + ">";
|
|
14976
|
-
},
|
|
14976
|
+
}, v.prototype.toArrayBuffer = function() {
|
|
14977
14977
|
if (typeof Uint8Array > "u") throw new Error("Buffer.toArrayBuffer not supported in this browser");
|
|
14978
|
-
if (
|
|
14979
|
-
for (var h = new Uint8Array(this.length),
|
|
14978
|
+
if (v._useTypedArrays) return new v(this).buffer;
|
|
14979
|
+
for (var h = new Uint8Array(this.length), E = 0, F = h.length; E < F; E += 1) h[E] = this[E];
|
|
14980
14980
|
return h.buffer;
|
|
14981
14981
|
};
|
|
14982
|
-
var q =
|
|
14983
|
-
function ge(h,
|
|
14984
|
-
return typeof h != "number" ? F :
|
|
14982
|
+
var q = v.prototype;
|
|
14983
|
+
function ge(h, E, F) {
|
|
14984
|
+
return typeof h != "number" ? F : E <= (h = ~~h) ? E : 0 <= h || 0 <= (h += E) ? h : 0;
|
|
14985
14985
|
}
|
|
14986
14986
|
function Be(h) {
|
|
14987
14987
|
return (h = ~~Math.ceil(+h)) < 0 ? 0 : h;
|
|
14988
14988
|
}
|
|
14989
14989
|
function me(h) {
|
|
14990
|
-
return (Array.isArray || function(
|
|
14991
|
-
return Object.prototype.toString.call(
|
|
14990
|
+
return (Array.isArray || function(E) {
|
|
14991
|
+
return Object.prototype.toString.call(E) === "[object Array]";
|
|
14992
14992
|
})(h);
|
|
14993
14993
|
}
|
|
14994
14994
|
function le(h) {
|
|
14995
14995
|
return h < 16 ? "0" + h.toString(16) : h.toString(16);
|
|
14996
14996
|
}
|
|
14997
14997
|
function Jt(h) {
|
|
14998
|
-
for (var
|
|
14998
|
+
for (var E = [], F = 0; F < h.length; F++) {
|
|
14999
14999
|
var M = h.charCodeAt(F);
|
|
15000
|
-
if (M <= 127)
|
|
15001
|
-
else for (var P = F, G = (55296 <= M && M <= 57343 && F++, encodeURIComponent(h.slice(P, F + 1)).substr(1).split("%")), oe = 0; oe < G.length; oe++)
|
|
15000
|
+
if (M <= 127) E.push(h.charCodeAt(F));
|
|
15001
|
+
else for (var P = F, G = (55296 <= M && M <= 57343 && F++, encodeURIComponent(h.slice(P, F + 1)).substr(1).split("%")), oe = 0; oe < G.length; oe++) E.push(parseInt(G[oe], 16));
|
|
15002
15002
|
}
|
|
15003
|
-
return
|
|
15003
|
+
return E;
|
|
15004
15004
|
}
|
|
15005
15005
|
function ho(h) {
|
|
15006
15006
|
return w.toByteArray(h);
|
|
15007
15007
|
}
|
|
15008
|
-
function zi(h,
|
|
15009
|
-
for (var P = 0; P < M && !(P + F >=
|
|
15008
|
+
function zi(h, E, F, M) {
|
|
15009
|
+
for (var P = 0; P < M && !(P + F >= E.length || P >= h.length); P++) E[P + F] = h[P];
|
|
15010
15010
|
return P;
|
|
15011
15011
|
}
|
|
15012
15012
|
function po(h) {
|
|
@@ -15016,28 +15016,28 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15016
15016
|
return "�";
|
|
15017
15017
|
}
|
|
15018
15018
|
}
|
|
15019
|
-
function Qr(h,
|
|
15020
|
-
B(typeof h == "number", "cannot write a non-number as a number"), B(0 <= h, "specified a negative value for writing an unsigned value"), B(h <=
|
|
15019
|
+
function Qr(h, E) {
|
|
15020
|
+
B(typeof h == "number", "cannot write a non-number as a number"), B(0 <= h, "specified a negative value for writing an unsigned value"), B(h <= E, "value is larger than maximum value for type"), B(Math.floor(h) === h, "value has a fractional component");
|
|
15021
15021
|
}
|
|
15022
|
-
function Wr(h,
|
|
15023
|
-
B(typeof h == "number", "cannot write a non-number as a number"), B(h <=
|
|
15022
|
+
function Wr(h, E, F) {
|
|
15023
|
+
B(typeof h == "number", "cannot write a non-number as a number"), B(h <= E, "value larger than maximum allowed value"), B(F <= h, "value smaller than minimum allowed value"), B(Math.floor(h) === h, "value has a fractional component");
|
|
15024
15024
|
}
|
|
15025
|
-
function go(h,
|
|
15026
|
-
B(typeof h == "number", "cannot write a non-number as a number"), B(h <=
|
|
15025
|
+
function go(h, E, F) {
|
|
15026
|
+
B(typeof h == "number", "cannot write a non-number as a number"), B(h <= E, "value larger than maximum allowed value"), B(F <= h, "value smaller than minimum allowed value");
|
|
15027
15027
|
}
|
|
15028
|
-
function B(h,
|
|
15029
|
-
if (!h) throw new Error(
|
|
15028
|
+
function B(h, E) {
|
|
15029
|
+
if (!h) throw new Error(E || "Failed assertion");
|
|
15030
15030
|
}
|
|
15031
|
-
|
|
15031
|
+
v._augment = function(h) {
|
|
15032
15032
|
return h._isBuffer = !0, h._get = h.get, h._set = h.set, h.get = q.get, h.set = q.set, h.write = q.write, h.toString = q.toString, h.toLocaleString = q.toString, h.toJSON = q.toJSON, h.copy = q.copy, h.slice = q.slice, h.readUInt8 = q.readUInt8, h.readUInt16LE = q.readUInt16LE, h.readUInt16BE = q.readUInt16BE, h.readUInt32LE = q.readUInt32LE, h.readUInt32BE = q.readUInt32BE, h.readInt8 = q.readInt8, h.readInt16LE = q.readInt16LE, h.readInt16BE = q.readInt16BE, h.readInt32LE = q.readInt32LE, h.readInt32BE = q.readInt32BE, h.readFloatLE = q.readFloatLE, h.readFloatBE = q.readFloatBE, h.readDoubleLE = q.readDoubleLE, h.readDoubleBE = q.readDoubleBE, h.writeUInt8 = q.writeUInt8, h.writeUInt16LE = q.writeUInt16LE, h.writeUInt16BE = q.writeUInt16BE, h.writeUInt32LE = q.writeUInt32LE, h.writeUInt32BE = q.writeUInt32BE, h.writeInt8 = q.writeInt8, h.writeInt16LE = q.writeInt16LE, h.writeInt16BE = q.writeInt16BE, h.writeInt32LE = q.writeInt32LE, h.writeInt32BE = q.writeInt32BE, h.writeFloatLE = q.writeFloatLE, h.writeFloatBE = q.writeFloatBE, h.writeDoubleLE = q.writeDoubleLE, h.writeDoubleBE = q.writeDoubleBE, h.fill = q.fill, h.inspect = q.inspect, h.toArrayBuffer = q.toArrayBuffer, h;
|
|
15033
15033
|
};
|
|
15034
15034
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
|
|
15035
15035
|
}, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(n, i, r) {
|
|
15036
15036
|
(function(s, o, w, u, c, f, p, m, S) {
|
|
15037
|
-
var w = n("buffer").Buffer, C = 4,
|
|
15038
|
-
|
|
15037
|
+
var w = n("buffer").Buffer, C = 4, v = new w(C);
|
|
15038
|
+
v.fill(0), i.exports = { hash: function(b, O, x, A) {
|
|
15039
15039
|
for (var L = O(function(d, I) {
|
|
15040
|
-
d.length % C != 0 && (R = d.length + (C - d.length % C), d = w.concat([d,
|
|
15040
|
+
d.length % C != 0 && (R = d.length + (C - d.length % C), d = w.concat([d, v], R));
|
|
15041
15041
|
for (var R, Z = [], K = I ? d.readInt32BE : d.readInt32LE, X = 0; X < d.length; X += C) Z.push(K.call(d, X));
|
|
15042
15042
|
return Z;
|
|
15043
15043
|
}(b = w.isBuffer(b) ? b : new w(b), A), 8 * b.length), O = A, T = new w(x), N = O ? T.writeInt32BE : T.writeInt32LE, g = 0; g < L.length; g++) N.call(T, L[g], 4 * g, !0);
|
|
@@ -15046,7 +15046,7 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15046
15046
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
15047
15047
|
}, { buffer: 3, lYpoI2: 11 }], 5: [function(n, i, r) {
|
|
15048
15048
|
(function(s, o, w, u, c, f, p, m, S) {
|
|
15049
|
-
var w = n("buffer").Buffer, C = n("./sha"),
|
|
15049
|
+
var w = n("buffer").Buffer, C = n("./sha"), v = n("./sha256"), b = n("./rng"), O = { sha1: C, sha256: v, md5: n("./md5") }, x = 64, A = new w(x);
|
|
15050
15050
|
function L(d, I) {
|
|
15051
15051
|
var R = O[d = d || "sha1"], Z = [];
|
|
15052
15052
|
return R || T("algorithm:", d, "is not yet supported"), { update: function(K) {
|
|
@@ -15093,20 +15093,20 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15093
15093
|
}
|
|
15094
15094
|
return Array(g, y, d, I);
|
|
15095
15095
|
}
|
|
15096
|
-
function
|
|
15096
|
+
function v(T, N, g, y, d, I) {
|
|
15097
15097
|
return L((N = L(L(N, T), L(y, I))) << d | N >>> 32 - d, g);
|
|
15098
15098
|
}
|
|
15099
15099
|
function b(T, N, g, y, d, I, R) {
|
|
15100
|
-
return
|
|
15100
|
+
return v(N & g | ~N & y, T, N, d, I, R);
|
|
15101
15101
|
}
|
|
15102
15102
|
function O(T, N, g, y, d, I, R) {
|
|
15103
|
-
return
|
|
15103
|
+
return v(N & y | g & ~y, T, N, d, I, R);
|
|
15104
15104
|
}
|
|
15105
15105
|
function x(T, N, g, y, d, I, R) {
|
|
15106
|
-
return
|
|
15106
|
+
return v(N ^ g ^ y, T, N, d, I, R);
|
|
15107
15107
|
}
|
|
15108
15108
|
function A(T, N, g, y, d, I, R) {
|
|
15109
|
-
return
|
|
15109
|
+
return v(g ^ (N | ~y), T, N, d, I, R);
|
|
15110
15110
|
}
|
|
15111
15111
|
function L(T, N) {
|
|
15112
15112
|
var g = (65535 & T) + (65535 & N);
|
|
@@ -15119,8 +15119,8 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15119
15119
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(n, i, r) {
|
|
15120
15120
|
(function(s, o, a, u, c, f, p, m, S) {
|
|
15121
15121
|
i.exports = function(w) {
|
|
15122
|
-
for (var C,
|
|
15123
|
-
return
|
|
15122
|
+
for (var C, v = new Array(w), b = 0; b < w; b++) !(3 & b) && (C = 4294967296 * Math.random()), v[b] = C >>> ((3 & b) << 3) & 255;
|
|
15123
|
+
return v;
|
|
15124
15124
|
};
|
|
15125
15125
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
15126
15126
|
}, { buffer: 3, lYpoI2: 11 }], 8: [function(n, i, r) {
|
|
@@ -15131,13 +15131,13 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15131
15131
|
for (var A, L, T, N = Array(80), g = 1732584193, y = -271733879, d = -1732584194, I = 271733878, R = -1009589776, Z = 0; Z < O.length; Z += 16) {
|
|
15132
15132
|
for (var K = g, X = y, q = d, ge = I, Be = R, me = 0; me < 80; me++) {
|
|
15133
15133
|
N[me] = me < 16 ? O[Z + me] : b(N[me - 3] ^ N[me - 8] ^ N[me - 14] ^ N[me - 16], 1);
|
|
15134
|
-
var le =
|
|
15134
|
+
var le = v(v(b(g, 5), (le = y, L = d, T = I, (A = me) < 20 ? le & L | ~le & T : !(A < 40) && A < 60 ? le & L | le & T | L & T : le ^ L ^ T)), v(v(R, N[me]), (A = me) < 20 ? 1518500249 : A < 40 ? 1859775393 : A < 60 ? -1894007588 : -899497514)), R = I, I = d, d = b(y, 30), y = g, g = le;
|
|
15135
15135
|
}
|
|
15136
|
-
g =
|
|
15136
|
+
g = v(g, K), y = v(y, X), d = v(d, q), I = v(I, ge), R = v(R, Be);
|
|
15137
15137
|
}
|
|
15138
15138
|
return Array(g, y, d, I, R);
|
|
15139
15139
|
}
|
|
15140
|
-
function
|
|
15140
|
+
function v(O, x) {
|
|
15141
15141
|
var A = (65535 & O) + (65535 & x);
|
|
15142
15142
|
return (O >> 16) + (x >> 16) + (A >> 16) << 16 | 65535 & A;
|
|
15143
15143
|
}
|
|
@@ -15163,19 +15163,19 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15163
15163
|
}
|
|
15164
15164
|
return N;
|
|
15165
15165
|
}
|
|
15166
|
-
var
|
|
15166
|
+
var v = n("./helpers"), b = function(x, A) {
|
|
15167
15167
|
return x >>> A | x << 32 - A;
|
|
15168
15168
|
}, O = function(x, A) {
|
|
15169
15169
|
return x >>> A;
|
|
15170
15170
|
};
|
|
15171
15171
|
i.exports = function(x) {
|
|
15172
|
-
return
|
|
15172
|
+
return v.hash(x, C, 32, !0);
|
|
15173
15173
|
};
|
|
15174
15174
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
15175
15175
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(n, i, r) {
|
|
15176
15176
|
(function(s, o, a, u, c, f, p, m, S) {
|
|
15177
|
-
r.read = function(w, C,
|
|
15178
|
-
var x, A, L = 8 * I - b - 1, T = (1 << L) - 1, N = T >> 1, g = -7, y =
|
|
15177
|
+
r.read = function(w, C, v, b, I) {
|
|
15178
|
+
var x, A, L = 8 * I - b - 1, T = (1 << L) - 1, N = T >> 1, g = -7, y = v ? I - 1 : 0, d = v ? -1 : 1, I = w[C + y];
|
|
15179
15179
|
for (y += d, x = I & (1 << -g) - 1, I >>= -g, g += L; 0 < g; x = 256 * x + w[C + y], y += d, g -= 8) ;
|
|
15180
15180
|
for (A = x & (1 << -g) - 1, x >>= -g, g += b; 0 < g; A = 256 * A + w[C + y], y += d, g -= 8) ;
|
|
15181
15181
|
if (x === 0) x = 1 - N;
|
|
@@ -15184,21 +15184,21 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15184
15184
|
A += Math.pow(2, b), x -= N;
|
|
15185
15185
|
}
|
|
15186
15186
|
return (I ? -1 : 1) * A * Math.pow(2, x - b);
|
|
15187
|
-
}, r.write = function(w, C,
|
|
15187
|
+
}, r.write = function(w, C, v, b, O, R) {
|
|
15188
15188
|
var A, L, T = 8 * R - O - 1, N = (1 << T) - 1, g = N >> 1, y = O === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, d = b ? 0 : R - 1, I = b ? 1 : -1, R = C < 0 || C === 0 && 1 / C < 0 ? 1 : 0;
|
|
15189
|
-
for (C = Math.abs(C), isNaN(C) || C === 1 / 0 ? (L = isNaN(C) ? 1 : 0, A = N) : (A = Math.floor(Math.log(C) / Math.LN2), C * (b = Math.pow(2, -A)) < 1 && (A--, b *= 2), 2 <= (C += 1 <= A + g ? y / b : y * Math.pow(2, 1 - g)) * b && (A++, b /= 2), N <= A + g ? (L = 0, A = N) : 1 <= A + g ? (L = (C * b - 1) * Math.pow(2, O), A += g) : (L = C * Math.pow(2, g - 1) * Math.pow(2, O), A = 0)); 8 <= O; w[
|
|
15190
|
-
for (A = A << O | L, T += O; 0 < T; w[
|
|
15191
|
-
w[
|
|
15189
|
+
for (C = Math.abs(C), isNaN(C) || C === 1 / 0 ? (L = isNaN(C) ? 1 : 0, A = N) : (A = Math.floor(Math.log(C) / Math.LN2), C * (b = Math.pow(2, -A)) < 1 && (A--, b *= 2), 2 <= (C += 1 <= A + g ? y / b : y * Math.pow(2, 1 - g)) * b && (A++, b /= 2), N <= A + g ? (L = 0, A = N) : 1 <= A + g ? (L = (C * b - 1) * Math.pow(2, O), A += g) : (L = C * Math.pow(2, g - 1) * Math.pow(2, O), A = 0)); 8 <= O; w[v + d] = 255 & L, d += I, L /= 256, O -= 8) ;
|
|
15190
|
+
for (A = A << O | L, T += O; 0 < T; w[v + d] = 255 & A, d += I, A /= 256, T -= 8) ;
|
|
15191
|
+
w[v + d - I] |= 128 * R;
|
|
15192
15192
|
};
|
|
15193
15193
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
|
|
15194
15194
|
}, { buffer: 3, lYpoI2: 11 }], 11: [function(n, i, r) {
|
|
15195
15195
|
(function(s, o, a, u, c, f, p, m, S) {
|
|
15196
|
-
var w, C,
|
|
15196
|
+
var w, C, v;
|
|
15197
15197
|
function b() {
|
|
15198
15198
|
}
|
|
15199
|
-
(s = i.exports = {}).nextTick = (C = typeof window < "u" && window.setImmediate,
|
|
15199
|
+
(s = i.exports = {}).nextTick = (C = typeof window < "u" && window.setImmediate, v = typeof window < "u" && window.postMessage && window.addEventListener, C ? function(O) {
|
|
15200
15200
|
return window.setImmediate(O);
|
|
15201
|
-
} :
|
|
15201
|
+
} : v ? (w = [], window.addEventListener("message", function(O) {
|
|
15202
15202
|
var x = O.source;
|
|
15203
15203
|
x !== window && x !== null || O.data !== "process-tick" || (O.stopPropagation(), 0 < w.length && w.shift()());
|
|
15204
15204
|
}, !0), function(O) {
|
|
@@ -15217,8 +15217,8 @@ list should be an Array.`), h.length === 0) return new E(0);
|
|
|
15217
15217
|
});
|
|
15218
15218
|
})(yl);
|
|
15219
15219
|
var em = yl.exports;
|
|
15220
|
-
const tm = /* @__PURE__ */
|
|
15221
|
-
var _n = {},
|
|
15220
|
+
const tm = /* @__PURE__ */ xl(em);
|
|
15221
|
+
var _n = {}, vn = {}, ro = {};
|
|
15222
15222
|
Object.defineProperty(ro, "__esModule", {
|
|
15223
15223
|
value: !0
|
|
15224
15224
|
});
|
|
@@ -15295,12 +15295,12 @@ function Aa(t) {
|
|
|
15295
15295
|
return e.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
|
|
15296
15296
|
`);
|
|
15297
15297
|
}
|
|
15298
|
-
Object.defineProperty(
|
|
15298
|
+
Object.defineProperty(vn, "__esModule", {
|
|
15299
15299
|
value: !0
|
|
15300
15300
|
});
|
|
15301
|
-
|
|
15302
|
-
|
|
15303
|
-
|
|
15301
|
+
vn.GraphQLError = void 0;
|
|
15302
|
+
vn.formatError = dm;
|
|
15303
|
+
vn.printError = fm;
|
|
15304
15304
|
var lm = ro, xa = Gr, Fa = qr;
|
|
15305
15305
|
function cm(t) {
|
|
15306
15306
|
const e = t[0];
|
|
@@ -15421,7 +15421,7 @@ class oo extends Error {
|
|
|
15421
15421
|
return this.locations != null && (e.locations = this.locations), this.path != null && (e.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (e.extensions = this.extensions), e;
|
|
15422
15422
|
}
|
|
15423
15423
|
}
|
|
15424
|
-
|
|
15424
|
+
vn.GraphQLError = oo;
|
|
15425
15425
|
function Ca(t) {
|
|
15426
15426
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
15427
15427
|
}
|
|
@@ -15436,7 +15436,7 @@ Object.defineProperty(ao, "__esModule", {
|
|
|
15436
15436
|
value: !0
|
|
15437
15437
|
});
|
|
15438
15438
|
ao.syntaxError = pm;
|
|
15439
|
-
var hm =
|
|
15439
|
+
var hm = vn;
|
|
15440
15440
|
function pm(t, e, n) {
|
|
15441
15441
|
return new hm.GraphQLError(`Syntax Error: ${n}`, {
|
|
15442
15442
|
source: t,
|
|
@@ -15475,7 +15475,7 @@ function ym(t, e) {
|
|
|
15475
15475
|
if (i !== t)
|
|
15476
15476
|
return typeof i == "string" ? i : zr(i, n);
|
|
15477
15477
|
} else if (Array.isArray(t))
|
|
15478
|
-
return
|
|
15478
|
+
return vm(t, n);
|
|
15479
15479
|
return wm(t, n);
|
|
15480
15480
|
}
|
|
15481
15481
|
function bm(t) {
|
|
@@ -15483,11 +15483,11 @@ function bm(t) {
|
|
|
15483
15483
|
}
|
|
15484
15484
|
function wm(t, e) {
|
|
15485
15485
|
const n = Object.entries(t);
|
|
15486
|
-
return n.length === 0 ? "{}" : e.length > wl ? "[" +
|
|
15486
|
+
return n.length === 0 ? "{}" : e.length > wl ? "[" + Em(t) + "]" : "{ " + n.map(
|
|
15487
15487
|
([r, s]) => r + ": " + zr(s, e)
|
|
15488
15488
|
).join(", ") + " }";
|
|
15489
15489
|
}
|
|
15490
|
-
function
|
|
15490
|
+
function vm(t, e) {
|
|
15491
15491
|
if (t.length === 0)
|
|
15492
15492
|
return "[]";
|
|
15493
15493
|
if (e.length > wl)
|
|
@@ -15497,7 +15497,7 @@ function Em(t, e) {
|
|
|
15497
15497
|
r.push(zr(t[s], e));
|
|
15498
15498
|
return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
|
|
15499
15499
|
}
|
|
15500
|
-
function
|
|
15500
|
+
function Em(t) {
|
|
15501
15501
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
15502
15502
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
15503
15503
|
const n = t.constructor.name;
|
|
@@ -15523,7 +15523,7 @@ Object.defineProperty(uo, "__esModule", {
|
|
|
15523
15523
|
value: !0
|
|
15524
15524
|
});
|
|
15525
15525
|
uo.locatedError = Nm;
|
|
15526
|
-
var Im = lo, Om =
|
|
15526
|
+
var Im = lo, Om = vn;
|
|
15527
15527
|
function Nm(t, e, n) {
|
|
15528
15528
|
var i;
|
|
15529
15529
|
const r = (0, Im.toError)(t);
|
|
@@ -15567,9 +15567,9 @@ function Am(t) {
|
|
|
15567
15567
|
return n.syntaxError;
|
|
15568
15568
|
}
|
|
15569
15569
|
});
|
|
15570
|
-
var e =
|
|
15570
|
+
var e = vn, n = ao, i = uo;
|
|
15571
15571
|
})(_n);
|
|
15572
|
-
var
|
|
15572
|
+
var vl = {};
|
|
15573
15573
|
(function(t) {
|
|
15574
15574
|
t.__esModule = !0, t.OpenAPIV2 = t.OpenAPIV3 = void 0, function(e) {
|
|
15575
15575
|
(function(n) {
|
|
@@ -15580,7 +15580,7 @@ var El = {};
|
|
|
15580
15580
|
n.GET = "get", n.PUT = "put", n.POST = "post", n.DELETE = "delete", n.OPTIONS = "options", n.HEAD = "head", n.PATCH = "patch";
|
|
15581
15581
|
})(e.HttpMethods || (e.HttpMethods = {}));
|
|
15582
15582
|
}(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
|
|
15583
|
-
})(
|
|
15583
|
+
})(vl);
|
|
15584
15584
|
const as = /* @__PURE__ */ new Map(), xm = (t, e) => {
|
|
15585
15585
|
as.has(t) || as.set(t, /* @__PURE__ */ new Map());
|
|
15586
15586
|
const n = as.get(t);
|
|
@@ -15643,7 +15643,7 @@ const Rm = (t) => {
|
|
|
15643
15643
|
type: "string",
|
|
15644
15644
|
contentEncoding: "base64"
|
|
15645
15645
|
} : n), t;
|
|
15646
|
-
}, Lm = Object.values(
|
|
15646
|
+
}, Lm = Object.values(vl.OpenAPIV3.HttpMethods), km = async (t) => {
|
|
15647
15647
|
if (typeof t == "string") {
|
|
15648
15648
|
if (t.trim().startsWith("{"))
|
|
15649
15649
|
try {
|
|
@@ -15688,59 +15688,58 @@ const Rm = (t) => {
|
|
|
15688
15688
|
throw new _n.GraphQLError("OpenAPI version is not defined");
|
|
15689
15689
|
const n = await Cm(e);
|
|
15690
15690
|
return Rm(n);
|
|
15691
|
-
}, $m = (t, e) => {
|
|
15692
|
-
const
|
|
15693
|
-
return
|
|
15694
|
-
(
|
|
15695
|
-
{ lower: !0, trim: !0 }
|
|
15691
|
+
}, $m = (t, e, n) => {
|
|
15692
|
+
const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
|
|
15693
|
+
return t(
|
|
15694
|
+
(n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
|
|
15696
15695
|
);
|
|
15697
15696
|
}, ls = new Cs({
|
|
15698
15697
|
ttl: 60 * 10 * 1e3,
|
|
15699
15698
|
ttlAutopurge: !0
|
|
15700
|
-
}),
|
|
15699
|
+
}), Ue = new vh({}), Ri = Ue.addScalarType("JSON", Eh), jm = Ue.addScalarType("JSONObject", Th), El = (t) => {
|
|
15701
15700
|
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
|
|
15702
15701
|
(r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
|
|
15703
15702
|
), i = [...new Set(n)].filter(
|
|
15704
15703
|
(r) => !e.some((s) => s.name === r)
|
|
15705
15704
|
);
|
|
15706
15705
|
return [...e, ...i.map((r) => ({ name: r }))];
|
|
15707
|
-
}, Tl = (t, e) =>
|
|
15708
|
-
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
e
|
|
15733
|
-
|
|
15734
|
-
}
|
|
15735
|
-
|
|
15736
|
-
|
|
15706
|
+
}, Tl = (t, e) => {
|
|
15707
|
+
const n = Al();
|
|
15708
|
+
return Object.entries(t ?? {}).flatMap(
|
|
15709
|
+
([i, r]) => Lm.flatMap((s) => {
|
|
15710
|
+
if (!(r != null && r[s])) return [];
|
|
15711
|
+
const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], c = [
|
|
15712
|
+
...a.filter(
|
|
15713
|
+
// remove path parameters that are already defined in the operation
|
|
15714
|
+
(p) => !u.some(
|
|
15715
|
+
(m) => m.name === p.name && m.in === p.in
|
|
15716
|
+
)
|
|
15717
|
+
),
|
|
15718
|
+
...u
|
|
15719
|
+
], f = {
|
|
15720
|
+
summary: o.summary,
|
|
15721
|
+
operationId: o.operationId,
|
|
15722
|
+
path: i,
|
|
15723
|
+
method: s
|
|
15724
|
+
};
|
|
15725
|
+
return {
|
|
15726
|
+
...o,
|
|
15727
|
+
method: s,
|
|
15728
|
+
path: i,
|
|
15729
|
+
parameters: c,
|
|
15730
|
+
tags: o.tags ?? [],
|
|
15731
|
+
slug: $m(n, f, e)
|
|
15732
|
+
};
|
|
15733
|
+
})
|
|
15734
|
+
);
|
|
15735
|
+
}, Pm = Ue.objectRef("SchemaTag").implement({
|
|
15737
15736
|
fields: (t) => ({
|
|
15738
15737
|
name: t.exposeString("name", { nullable: !0 }),
|
|
15739
15738
|
description: t.exposeString("description", { nullable: !0 }),
|
|
15740
15739
|
operations: t.field({
|
|
15741
15740
|
type: [Il],
|
|
15742
15741
|
resolve: (e, n, i) => {
|
|
15743
|
-
const r =
|
|
15742
|
+
const r = El(i.schema).map((s) => s.name);
|
|
15744
15743
|
return Tl(i.schema.paths, e.name).filter(
|
|
15745
15744
|
(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
|
|
15746
15745
|
s.tags.every((o) => !r.includes(o))
|
|
@@ -15748,17 +15747,22 @@ const Rm = (t) => {
|
|
|
15748
15747
|
}
|
|
15749
15748
|
})
|
|
15750
15749
|
})
|
|
15751
|
-
}), Mm =
|
|
15750
|
+
}), Mm = Ue.objectRef("Server").implement({
|
|
15751
|
+
fields: (t) => ({
|
|
15752
|
+
url: t.exposeString("url"),
|
|
15753
|
+
description: t.exposeString("description", { nullable: !0 })
|
|
15754
|
+
})
|
|
15755
|
+
}), Um = Ue.objectRef("PathItem").implement({
|
|
15752
15756
|
fields: (t) => ({
|
|
15753
15757
|
path: t.exposeString("path"),
|
|
15754
15758
|
methods: t.exposeStringList("methods")
|
|
15755
15759
|
})
|
|
15756
|
-
}),
|
|
15760
|
+
}), Vm = Ue.objectRef("TagItem").implement({
|
|
15757
15761
|
fields: (t) => ({
|
|
15758
15762
|
name: t.exposeString("name"),
|
|
15759
15763
|
description: t.exposeString("description", { nullable: !0 })
|
|
15760
15764
|
})
|
|
15761
|
-
}),
|
|
15765
|
+
}), Bm = Ue.objectRef("EncodingItem").implement({
|
|
15762
15766
|
fields: (t) => ({
|
|
15763
15767
|
name: t.exposeString("name"),
|
|
15764
15768
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
@@ -15767,7 +15771,7 @@ const Rm = (t) => {
|
|
|
15767
15771
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
15768
15772
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
|
|
15769
15773
|
})
|
|
15770
|
-
}), Sl =
|
|
15774
|
+
}), Sl = Ue.objectRef("ExampleItem").implement({
|
|
15771
15775
|
fields: (t) => ({
|
|
15772
15776
|
name: t.exposeString("name"),
|
|
15773
15777
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
@@ -15775,13 +15779,13 @@ const Rm = (t) => {
|
|
|
15775
15779
|
value: t.exposeString("value", { nullable: !0 }),
|
|
15776
15780
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
15777
15781
|
})
|
|
15778
|
-
}),
|
|
15782
|
+
}), Gm = Ue.enumType("ParameterIn", {
|
|
15779
15783
|
values: ["query", "header", "path", "cookie"]
|
|
15780
|
-
}),
|
|
15784
|
+
}), qm = Ue.objectRef("ParameterItem").implement({
|
|
15781
15785
|
fields: (t) => ({
|
|
15782
15786
|
name: t.exposeString("name"),
|
|
15783
15787
|
in: t.field({
|
|
15784
|
-
type:
|
|
15788
|
+
type: Gm,
|
|
15785
15789
|
resolve: (e) => e.in
|
|
15786
15790
|
}),
|
|
15787
15791
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -15801,20 +15805,20 @@ const Rm = (t) => {
|
|
|
15801
15805
|
}),
|
|
15802
15806
|
schema: t.expose("schema", { type: Ri, nullable: !0 })
|
|
15803
15807
|
})
|
|
15804
|
-
}), _l =
|
|
15808
|
+
}), _l = Ue.objectRef("MediaTypeObject").implement({
|
|
15805
15809
|
fields: (t) => ({
|
|
15806
15810
|
mediaType: t.exposeString("mediaType"),
|
|
15807
15811
|
schema: t.expose("schema", { type: Ri, nullable: !0 }),
|
|
15808
15812
|
examples: t.expose("examples", { type: [Sl], nullable: !0 }),
|
|
15809
|
-
encoding: t.expose("encoding", { type: [
|
|
15813
|
+
encoding: t.expose("encoding", { type: [Bm], nullable: !0 })
|
|
15810
15814
|
})
|
|
15811
|
-
}),
|
|
15815
|
+
}), zm = Ue.objectRef("RequestBodyObject").implement({
|
|
15812
15816
|
fields: (t) => ({
|
|
15813
15817
|
description: t.exposeString("description", { nullable: !0 }),
|
|
15814
15818
|
content: t.expose("content", { type: [_l], nullable: !0 }),
|
|
15815
15819
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
15816
15820
|
})
|
|
15817
|
-
}),
|
|
15821
|
+
}), Qm = Ue.objectRef("ResponseItem").implement({
|
|
15818
15822
|
fields: (t) => ({
|
|
15819
15823
|
statusCode: t.exposeString("statusCode"),
|
|
15820
15824
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -15822,7 +15826,7 @@ const Rm = (t) => {
|
|
|
15822
15826
|
headers: t.expose("headers", { type: Ri, nullable: !0 }),
|
|
15823
15827
|
links: t.expose("links", { type: Ri, nullable: !0 })
|
|
15824
15828
|
})
|
|
15825
|
-
}), Il =
|
|
15829
|
+
}), Il = Ue.objectRef("OperationItem").implement({
|
|
15826
15830
|
fields: (t) => ({
|
|
15827
15831
|
slug: t.exposeString("slug"),
|
|
15828
15832
|
path: t.exposeString("path"),
|
|
@@ -15837,11 +15841,11 @@ const Rm = (t) => {
|
|
|
15837
15841
|
}
|
|
15838
15842
|
}),
|
|
15839
15843
|
parameters: t.expose("parameters", {
|
|
15840
|
-
type: [
|
|
15844
|
+
type: [qm],
|
|
15841
15845
|
nullable: !0
|
|
15842
15846
|
}),
|
|
15843
15847
|
requestBody: t.field({
|
|
15844
|
-
type:
|
|
15848
|
+
type: zm,
|
|
15845
15849
|
resolve: (e) => {
|
|
15846
15850
|
var n, i, r;
|
|
15847
15851
|
return {
|
|
@@ -15864,7 +15868,7 @@ const Rm = (t) => {
|
|
|
15864
15868
|
nullable: !0
|
|
15865
15869
|
}),
|
|
15866
15870
|
responses: t.field({
|
|
15867
|
-
type: [
|
|
15871
|
+
type: [Qm],
|
|
15868
15872
|
resolve: (e) => Object.entries(e.responses ?? {}).map(
|
|
15869
15873
|
([n, i]) => ({
|
|
15870
15874
|
statusCode: n,
|
|
@@ -15884,7 +15888,7 @@ const Rm = (t) => {
|
|
|
15884
15888
|
)
|
|
15885
15889
|
}),
|
|
15886
15890
|
tags: t.field({
|
|
15887
|
-
type: [
|
|
15891
|
+
type: [Vm],
|
|
15888
15892
|
resolve: (e, n, i) => {
|
|
15889
15893
|
var r;
|
|
15890
15894
|
return (r = e.tags) == null ? void 0 : r.map((s) => {
|
|
@@ -15899,13 +15903,17 @@ const Rm = (t) => {
|
|
|
15899
15903
|
}),
|
|
15900
15904
|
deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
|
|
15901
15905
|
})
|
|
15902
|
-
}),
|
|
15906
|
+
}), Wm = Ue.objectRef("Schema").implement({
|
|
15903
15907
|
fields: (t) => ({
|
|
15904
15908
|
openapi: t.string({ resolve: (e) => e.openapi }),
|
|
15905
15909
|
url: t.string({ resolve: (e) => {
|
|
15906
15910
|
var n, i;
|
|
15907
15911
|
return ((i = (n = e.servers) == null ? void 0 : n.at(0)) == null ? void 0 : i.url) ?? "/";
|
|
15908
15912
|
} }),
|
|
15913
|
+
servers: t.field({
|
|
15914
|
+
type: [Mm],
|
|
15915
|
+
resolve: (e) => e.servers ?? []
|
|
15916
|
+
}),
|
|
15909
15917
|
title: t.string({ resolve: (e) => e.info.title }),
|
|
15910
15918
|
version: t.string({ resolve: (e) => e.info.version }),
|
|
15911
15919
|
description: t.string({
|
|
@@ -15913,7 +15921,7 @@ const Rm = (t) => {
|
|
|
15913
15921
|
nullable: !0
|
|
15914
15922
|
}),
|
|
15915
15923
|
paths: t.field({
|
|
15916
|
-
type: [
|
|
15924
|
+
type: [Um],
|
|
15917
15925
|
resolve: (e) => Object.entries(e.paths ?? {}).map(([n, i]) => ({
|
|
15918
15926
|
path: n,
|
|
15919
15927
|
methods: Object.keys(i)
|
|
@@ -15925,7 +15933,7 @@ const Rm = (t) => {
|
|
|
15925
15933
|
},
|
|
15926
15934
|
type: [Pm],
|
|
15927
15935
|
resolve: (e, n) => {
|
|
15928
|
-
const i = [...
|
|
15936
|
+
const i = [...El(e), { name: "" }];
|
|
15929
15937
|
return n.name ? i.filter((r) => r.name === n.name) : i;
|
|
15930
15938
|
}
|
|
15931
15939
|
}),
|
|
@@ -15942,32 +15950,32 @@ const Rm = (t) => {
|
|
|
15942
15950
|
)
|
|
15943
15951
|
})
|
|
15944
15952
|
})
|
|
15945
|
-
}),
|
|
15953
|
+
}), Hm = async (t) => {
|
|
15946
15954
|
const e = tm(t);
|
|
15947
15955
|
if (ls.has(e))
|
|
15948
15956
|
return ls.get(e);
|
|
15949
15957
|
const n = Dm(t);
|
|
15950
15958
|
return ls.set(e, n), n;
|
|
15951
|
-
}, Ym =
|
|
15959
|
+
}, Ym = Ue.enumType("SchemaType", {
|
|
15952
15960
|
values: ["url", "file", "raw"]
|
|
15953
15961
|
});
|
|
15954
|
-
|
|
15962
|
+
Ue.queryType({
|
|
15955
15963
|
fields: (t) => ({
|
|
15956
15964
|
// https://tan-cow-main-bce8a06.d2.zuplo.dev/openapi
|
|
15957
15965
|
schema: t.field({
|
|
15958
|
-
type:
|
|
15966
|
+
type: Wm,
|
|
15959
15967
|
args: {
|
|
15960
15968
|
type: t.arg({ type: Ym, required: !0 }),
|
|
15961
15969
|
input: t.arg({ type: Ri, required: !0 })
|
|
15962
15970
|
},
|
|
15963
15971
|
resolve: async (e, n, i) => {
|
|
15964
|
-
const r = await
|
|
15972
|
+
const r = await Hm(n.input);
|
|
15965
15973
|
return i.schema = r, r;
|
|
15966
15974
|
}
|
|
15967
15975
|
})
|
|
15968
15976
|
})
|
|
15969
15977
|
});
|
|
15970
|
-
const
|
|
15978
|
+
const Jm = Ue.toSchema(), Km = (t) => Xg({ schema: Jm, ...t }), Xm = () => Km({
|
|
15971
15979
|
plugins: [
|
|
15972
15980
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
15973
15981
|
Jl({
|
|
@@ -15975,12 +15983,12 @@ const Hm = Ve.toSchema(), Jm = (t) => Xg({ schema: Hm, ...t }), Km = () => Jm({
|
|
|
15975
15983
|
}
|
|
15976
15984
|
})
|
|
15977
15985
|
]
|
|
15978
|
-
}),
|
|
15986
|
+
}), Zm = Xm(), ey = () => new Ua({
|
|
15979
15987
|
url: "/__z/graphql",
|
|
15980
15988
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
15981
15989
|
fetch: async (t, e) => {
|
|
15982
15990
|
if (!(e != null && e.body)) throw new Error("No body");
|
|
15983
|
-
return await
|
|
15991
|
+
return await Zm.fetch(
|
|
15984
15992
|
new Request("http://localhost/__z/graphql", {
|
|
15985
15993
|
method: "POST",
|
|
15986
15994
|
body: e.body,
|
|
@@ -16000,14 +16008,14 @@ const Hm = Ve.toSchema(), Jm = (t) => Xg({ schema: Hm, ...t }), Km = () => Jm({
|
|
|
16000
16008
|
}),
|
|
16001
16009
|
Ga
|
|
16002
16010
|
]
|
|
16003
|
-
}),
|
|
16011
|
+
}), ty = Ml(), hy = ({
|
|
16004
16012
|
useMemoryClient: t
|
|
16005
16013
|
}) => {
|
|
16006
16014
|
if (t || typeof SharedWorker > "u")
|
|
16007
|
-
return
|
|
16015
|
+
return ey();
|
|
16008
16016
|
const e = new SharedWorker(new URL(
|
|
16009
16017
|
/* @vite-ignore */
|
|
16010
|
-
"./assets/worker-
|
|
16018
|
+
"./assets/worker-Bcj4NA2p.js",
|
|
16011
16019
|
import.meta.url
|
|
16012
16020
|
), {
|
|
16013
16021
|
type: "module"
|
|
@@ -16023,7 +16031,7 @@ const Hm = Ve.toSchema(), Jm = (t) => Xg({ schema: Hm, ...t }), Km = () => Jm({
|
|
|
16023
16031
|
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
16024
16032
|
fetch: async (r, s) => {
|
|
16025
16033
|
if (!(s != null && s.body)) throw new Error("No body");
|
|
16026
|
-
const o =
|
|
16034
|
+
const o = ty();
|
|
16027
16035
|
e.port.postMessage({
|
|
16028
16036
|
id: o,
|
|
16029
16037
|
body: s.body
|
|
@@ -16048,6 +16056,6 @@ const Hm = Ve.toSchema(), Jm = (t) => Xg({ schema: Hm, ...t }), Km = () => Jm({
|
|
|
16048
16056
|
});
|
|
16049
16057
|
};
|
|
16050
16058
|
export {
|
|
16051
|
-
|
|
16059
|
+
hy as createClient
|
|
16052
16060
|
};
|
|
16053
16061
|
//# sourceMappingURL=zudoku.openapi-worker.js.map
|