@contember/graphql-client 2.1.0-alpha.37 → 2.1.0-alpha.39
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/development/index.cjs +7 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +7 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/GraphQlClient.cjs +95 -0
- package/dist/development/src/GraphQlClient.cjs.map +1 -0
- package/dist/development/src/GraphQlClient.js +95 -0
- package/dist/development/src/GraphQlClient.js.map +1 -0
- package/dist/development/src/GraphQlClientError.cjs +14 -0
- package/dist/development/src/GraphQlClientError.cjs.map +1 -0
- package/dist/development/src/GraphQlClientError.js +14 -0
- package/dist/development/src/GraphQlClientError.js.map +1 -0
- package/dist/production/index.cjs +7 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +7 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/GraphQlClient.cjs +95 -0
- package/dist/production/src/GraphQlClient.cjs.map +1 -0
- package/dist/production/src/GraphQlClient.js +95 -0
- package/dist/production/src/GraphQlClient.js.map +1 -0
- package/dist/production/src/GraphQlClientError.cjs +14 -0
- package/dist/production/src/GraphQlClientError.cjs.map +1 -0
- package/dist/production/src/GraphQlClientError.js +14 -0
- package/dist/production/src/GraphQlClientError.js.map +1 -0
- package/dist/types/GraphQlClient.d.ts +10 -0
- package/dist/types/GraphQlClient.d.ts.map +1 -0
- package/dist/types/GraphQlClientError.d.ts +14 -0
- package/dist/types/GraphQlClientError.d.ts.map +1 -0
- package/dist/types/GraphQlClientRequestOptions.d.ts +22 -0
- package/dist/types/GraphQlClientRequestOptions.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const GraphQlClient = require("./src/GraphQlClient.cjs");
|
|
4
|
+
const GraphQlClientError = require("./src/GraphQlClientError.cjs");
|
|
5
|
+
exports.GraphQlClient = GraphQlClient.GraphQlClient;
|
|
6
|
+
exports.GraphQlClientError = GraphQlClientError.GraphQlClientError;
|
|
7
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const GraphQlClientError = require("./GraphQlClientError.cjs");
|
|
4
|
+
class GraphQlClient {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
8
|
+
get apiUrl() {
|
|
9
|
+
return this.options.url;
|
|
10
|
+
}
|
|
11
|
+
withOptions(options) {
|
|
12
|
+
return new GraphQlClient({ ...this.options, ...options });
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options = {}) {
|
|
15
|
+
let body = null;
|
|
16
|
+
let response = null;
|
|
17
|
+
const createError = (type, errors, cause) => {
|
|
18
|
+
const request = {
|
|
19
|
+
url: this.options.url,
|
|
20
|
+
query,
|
|
21
|
+
variables: options.variables ?? {}
|
|
22
|
+
};
|
|
23
|
+
const message = `GraphQL request failed: ${type}
|
|
24
|
+
|
|
25
|
+
HTTP response: ${response ? response.status + " " + response.statusText : "<no response>"}
|
|
26
|
+
HTTP body:
|
|
27
|
+
${body !== null ? body : "<no body>"}
|
|
28
|
+
|
|
29
|
+
GraphQL query:
|
|
30
|
+
${query}`;
|
|
31
|
+
return new GraphQlClientError.GraphQlClientError(message, type, request, response ?? void 0, errors, cause);
|
|
32
|
+
};
|
|
33
|
+
this.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
34
|
+
options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
35
|
+
try {
|
|
36
|
+
response = await this.doExecute(query, options);
|
|
37
|
+
this.options?.onResponse?.(response);
|
|
38
|
+
options?.onResponse?.(response);
|
|
39
|
+
body = await response.text();
|
|
40
|
+
} catch (e) {
|
|
41
|
+
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
42
|
+
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
43
|
+
}
|
|
44
|
+
let data;
|
|
45
|
+
try {
|
|
46
|
+
data = JSON.parse(body);
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw createError("invalid response body", void 0, e);
|
|
49
|
+
}
|
|
50
|
+
this.options?.onData?.(data);
|
|
51
|
+
options?.onData?.(data);
|
|
52
|
+
if (response.status === 401) {
|
|
53
|
+
throw createError("unauthorized");
|
|
54
|
+
}
|
|
55
|
+
if (response.status === 403) {
|
|
56
|
+
throw createError("forbidden");
|
|
57
|
+
}
|
|
58
|
+
if (response.status >= 400 && response.status < 500) {
|
|
59
|
+
throw createError("bad request", data.errors);
|
|
60
|
+
}
|
|
61
|
+
if (response.status >= 500) {
|
|
62
|
+
throw createError("server error");
|
|
63
|
+
}
|
|
64
|
+
if (!(typeof data === "object") || data === null) {
|
|
65
|
+
throw createError("invalid response body");
|
|
66
|
+
}
|
|
67
|
+
if ("errors" in data) {
|
|
68
|
+
throw createError("response errors", data.errors);
|
|
69
|
+
}
|
|
70
|
+
if (!("data" in data)) {
|
|
71
|
+
throw createError("invalid response body");
|
|
72
|
+
}
|
|
73
|
+
return data.data;
|
|
74
|
+
}
|
|
75
|
+
async doExecute(query, { apiToken, signal, variables, headers } = {}) {
|
|
76
|
+
const resolvedHeaders = {
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
...this.options.headers,
|
|
79
|
+
...headers
|
|
80
|
+
};
|
|
81
|
+
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
82
|
+
if (resolvedToken !== void 0) {
|
|
83
|
+
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
84
|
+
}
|
|
85
|
+
return await (this.options.fetcher ?? defaultFetcher)(this.options.url, {
|
|
86
|
+
method: "POST",
|
|
87
|
+
headers: resolvedHeaders,
|
|
88
|
+
signal,
|
|
89
|
+
body: JSON.stringify({ query, variables })
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
94
|
+
exports.GraphQlClient = GraphQlClient;
|
|
95
|
+
//# sourceMappingURL=GraphQlClient.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\t{ apiToken, signal, variables, headers }: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":["GraphQlClientError"],"mappings":";;;AAGO,MAAM,cAAc;AAAA,EAC1B,YACkB,SAChB;AADgB,SAAA,UAAA;AAAA,EACf;AAAA,EAEH,IAAI,SAAiB;AACpB,WAAO,KAAK,QAAQ;AAAA,EACrB;AAAA,EAEA,YAAY,SAAuD;AAClE,WAAO,IAAI,cAAc,EAAE,GAAG,KAAK,SAAS,GAAG,SAAS;AAAA,EACzD;AAAA,EAEA,MAAM,QAAqB,OAAe,UAAuC,IAAgB;AAChG,QAAI,OAAsB;AAC1B,QAAI,WAA4B;AAChC,UAAM,cAAc,CAAC,MAAwB,QAAgB,UAAoB;AAChF,YAAM,UAAU;AAAA,QACf,KAAK,KAAK,QAAQ;AAAA,QAClB;AAAA,QACA,WAAW,QAAQ,aAAa,CAAA;AAAA,MAAC;AAGlC,YAAM,UAAU,2BAA2B,IAAI;AAAA;AAAA,iBAEjC,WAAY,SAAS,SAAS,MAAM,SAAS,aAAc,eAAe;AAAA;AAAA,EAEzF,SAAS,OAAO,OAAO,WAAW;AAAA;AAAA;AAAA,EAGlC,KAAK;AAEJ,aAAO,IAAIA,mBAAAA,mBAAmB,SAAS,MAAM,SAAS,YAAY,QAAW,QAAQ,KAAK;AAAA,IAC3F;AAEA,SAAK,SAAS,kBAAkB,EAAE,OAAO,WAAW,QAAQ,aAAa,CAAA,GAAI;AAC7E,aAAS,kBAAkB,EAAE,OAAO,WAAW,QAAQ,aAAa,CAAA,GAAI;AAExE,QAAI;AACH,iBAAW,MAAM,KAAK,UAAU,OAAO,OAAO;AAC9C,WAAK,SAAS,aAAa,QAAQ;AACnC,eAAS,aAA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O,OAAO,KAAK,QAAQ,WAAW,gBAAgB,KAAK,QAAQ,KAAK;AAAA,MACvE,QAAQ;AAAA,MACR,SAAS;AAAA,MACT;AAAA,MACA,MAAM,KAAK,UAAU,EAAE,OAAO,WAAW;AAAA,IAAA,CACzC;AAAA,EACF;AACD;AAEA,MAAM,iBAAiB,OAAO,KAAa,YAAyB,MAAM,KAAK,OAAO;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { GraphQlClientError } from "./GraphQlClientError.js";
|
|
2
|
+
class GraphQlClient {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
this.options = options;
|
|
5
|
+
}
|
|
6
|
+
get apiUrl() {
|
|
7
|
+
return this.options.url;
|
|
8
|
+
}
|
|
9
|
+
withOptions(options) {
|
|
10
|
+
return new GraphQlClient({ ...this.options, ...options });
|
|
11
|
+
}
|
|
12
|
+
async execute(query, options = {}) {
|
|
13
|
+
let body = null;
|
|
14
|
+
let response = null;
|
|
15
|
+
const createError = (type, errors, cause) => {
|
|
16
|
+
const request = {
|
|
17
|
+
url: this.options.url,
|
|
18
|
+
query,
|
|
19
|
+
variables: options.variables ?? {}
|
|
20
|
+
};
|
|
21
|
+
const message = `GraphQL request failed: ${type}
|
|
22
|
+
|
|
23
|
+
HTTP response: ${response ? response.status + " " + response.statusText : "<no response>"}
|
|
24
|
+
HTTP body:
|
|
25
|
+
${body !== null ? body : "<no body>"}
|
|
26
|
+
|
|
27
|
+
GraphQL query:
|
|
28
|
+
${query}`;
|
|
29
|
+
return new GraphQlClientError(message, type, request, response ?? void 0, errors, cause);
|
|
30
|
+
};
|
|
31
|
+
this.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
32
|
+
options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
33
|
+
try {
|
|
34
|
+
response = await this.doExecute(query, options);
|
|
35
|
+
this.options?.onResponse?.(response);
|
|
36
|
+
options?.onResponse?.(response);
|
|
37
|
+
body = await response.text();
|
|
38
|
+
} catch (e) {
|
|
39
|
+
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
40
|
+
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
41
|
+
}
|
|
42
|
+
let data;
|
|
43
|
+
try {
|
|
44
|
+
data = JSON.parse(body);
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw createError("invalid response body", void 0, e);
|
|
47
|
+
}
|
|
48
|
+
this.options?.onData?.(data);
|
|
49
|
+
options?.onData?.(data);
|
|
50
|
+
if (response.status === 401) {
|
|
51
|
+
throw createError("unauthorized");
|
|
52
|
+
}
|
|
53
|
+
if (response.status === 403) {
|
|
54
|
+
throw createError("forbidden");
|
|
55
|
+
}
|
|
56
|
+
if (response.status >= 400 && response.status < 500) {
|
|
57
|
+
throw createError("bad request", data.errors);
|
|
58
|
+
}
|
|
59
|
+
if (response.status >= 500) {
|
|
60
|
+
throw createError("server error");
|
|
61
|
+
}
|
|
62
|
+
if (!(typeof data === "object") || data === null) {
|
|
63
|
+
throw createError("invalid response body");
|
|
64
|
+
}
|
|
65
|
+
if ("errors" in data) {
|
|
66
|
+
throw createError("response errors", data.errors);
|
|
67
|
+
}
|
|
68
|
+
if (!("data" in data)) {
|
|
69
|
+
throw createError("invalid response body");
|
|
70
|
+
}
|
|
71
|
+
return data.data;
|
|
72
|
+
}
|
|
73
|
+
async doExecute(query, { apiToken, signal, variables, headers } = {}) {
|
|
74
|
+
const resolvedHeaders = {
|
|
75
|
+
"Content-Type": "application/json",
|
|
76
|
+
...this.options.headers,
|
|
77
|
+
...headers
|
|
78
|
+
};
|
|
79
|
+
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
80
|
+
if (resolvedToken !== void 0) {
|
|
81
|
+
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
82
|
+
}
|
|
83
|
+
return await (this.options.fetcher ?? defaultFetcher)(this.options.url, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: resolvedHeaders,
|
|
86
|
+
signal,
|
|
87
|
+
body: JSON.stringify({ query, variables })
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
92
|
+
export {
|
|
93
|
+
GraphQlClient
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=GraphQlClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\t{ apiToken, signal, variables, headers }: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":[],"mappings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@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
class GraphQlClientError extends Error {
|
|
4
|
+
constructor(message, type, request, response, errors, cause) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.type = type;
|
|
7
|
+
this.request = request;
|
|
8
|
+
this.response = response;
|
|
9
|
+
this.errors = errors;
|
|
10
|
+
this.cause = cause;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.GraphQlClientError = GraphQlClientError;
|
|
14
|
+
//# sourceMappingURL=GraphQlClientError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientError.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClientError.ts"],"sourcesContent":["export type GraphQlErrorRequest = { url: string; query: string; variables: Record<string, any> }\n\nexport type GraphQlErrorType =\n\t| 'aborted'\n\t| 'network error'\n\t| 'invalid response body'\n\t| 'bad request'\n\t| 'unauthorized'\n\t| 'forbidden'\n\t| 'server error'\n\t| 'response errors'\n\nexport class GraphQlClientError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly type: GraphQlErrorType,\n\t\tpublic readonly request: GraphQlErrorRequest,\n\t\tpublic readonly response?: Response,\n\t\tpublic readonly errors?: readonly any[],\n\t\tcause?: unknown,\n\t) {\n\t\tsuper(message)\n\t\tthis.cause = cause\n\t}\n}\n"],"names":[],"mappings":";;AAYO,MAAM,2BAA2B,MAAM;AAAA,EAC7C,YACC,SACgB,MACA,SACA,UACA,QAChB,OACC;AACD,UAAM,OAAO;AANG,SAAA,OAAA;AACA,SAAA,UAAA;AACA,SAAA,WAAA;AACA,SAAA,SAAA;AAIhB,SAAK,QAAQ;AAAA,EACd;AACD;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class GraphQlClientError extends Error {
|
|
2
|
+
constructor(message, type, request, response, errors, cause) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.type = type;
|
|
5
|
+
this.request = request;
|
|
6
|
+
this.response = response;
|
|
7
|
+
this.errors = errors;
|
|
8
|
+
this.cause = cause;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
GraphQlClientError
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=GraphQlClientError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientError.js","sources":["../../../../packages/graphql-client/src/GraphQlClientError.ts"],"sourcesContent":["export type GraphQlErrorRequest = { url: string; query: string; variables: Record<string, any> }\n\nexport type GraphQlErrorType =\n\t| 'aborted'\n\t| 'network error'\n\t| 'invalid response body'\n\t| 'bad request'\n\t| 'unauthorized'\n\t| 'forbidden'\n\t| 'server error'\n\t| 'response errors'\n\nexport class GraphQlClientError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly type: GraphQlErrorType,\n\t\tpublic readonly request: GraphQlErrorRequest,\n\t\tpublic readonly response?: Response,\n\t\tpublic readonly errors?: readonly any[],\n\t\tcause?: unknown,\n\t) {\n\t\tsuper(message)\n\t\tthis.cause = cause\n\t}\n}\n"],"names":[],"mappings":"AAYO,MAAM,2BAA2B,MAAM;AAAA,EAC7C,YACC,SACgB,MACA,SACA,UACA,QAChB,OACC;AACD,UAAM,OAAO;AANG,SAAA,OAAA;AACA,SAAA,UAAA;AACA,SAAA,WAAA;AACA,SAAA,SAAA;AAIhB,SAAK,QAAQ;AAAA,EACd;AACD;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const GraphQlClient = require("./src/GraphQlClient.cjs");
|
|
4
|
+
const GraphQlClientError = require("./src/GraphQlClientError.cjs");
|
|
5
|
+
exports.GraphQlClient = GraphQlClient.GraphQlClient;
|
|
6
|
+
exports.GraphQlClientError = GraphQlClientError.GraphQlClientError;
|
|
7
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const GraphQlClientError = require("./GraphQlClientError.cjs");
|
|
4
|
+
class GraphQlClient {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
8
|
+
get apiUrl() {
|
|
9
|
+
return this.options.url;
|
|
10
|
+
}
|
|
11
|
+
withOptions(options) {
|
|
12
|
+
return new GraphQlClient({ ...this.options, ...options });
|
|
13
|
+
}
|
|
14
|
+
async execute(query, options = {}) {
|
|
15
|
+
let body = null;
|
|
16
|
+
let response = null;
|
|
17
|
+
const createError = (type, errors, cause) => {
|
|
18
|
+
const request = {
|
|
19
|
+
url: this.options.url,
|
|
20
|
+
query,
|
|
21
|
+
variables: options.variables ?? {}
|
|
22
|
+
};
|
|
23
|
+
const message = `GraphQL request failed: ${type}
|
|
24
|
+
|
|
25
|
+
HTTP response: ${response ? response.status + " " + response.statusText : "<no response>"}
|
|
26
|
+
HTTP body:
|
|
27
|
+
${body !== null ? body : "<no body>"}
|
|
28
|
+
|
|
29
|
+
GraphQL query:
|
|
30
|
+
${query}`;
|
|
31
|
+
return new GraphQlClientError.GraphQlClientError(message, type, request, response ?? void 0, errors, cause);
|
|
32
|
+
};
|
|
33
|
+
this.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
34
|
+
options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
35
|
+
try {
|
|
36
|
+
response = await this.doExecute(query, options);
|
|
37
|
+
this.options?.onResponse?.(response);
|
|
38
|
+
options?.onResponse?.(response);
|
|
39
|
+
body = await response.text();
|
|
40
|
+
} catch (e) {
|
|
41
|
+
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
42
|
+
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
43
|
+
}
|
|
44
|
+
let data;
|
|
45
|
+
try {
|
|
46
|
+
data = JSON.parse(body);
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw createError("invalid response body", void 0, e);
|
|
49
|
+
}
|
|
50
|
+
this.options?.onData?.(data);
|
|
51
|
+
options?.onData?.(data);
|
|
52
|
+
if (response.status === 401) {
|
|
53
|
+
throw createError("unauthorized");
|
|
54
|
+
}
|
|
55
|
+
if (response.status === 403) {
|
|
56
|
+
throw createError("forbidden");
|
|
57
|
+
}
|
|
58
|
+
if (response.status >= 400 && response.status < 500) {
|
|
59
|
+
throw createError("bad request", data.errors);
|
|
60
|
+
}
|
|
61
|
+
if (response.status >= 500) {
|
|
62
|
+
throw createError("server error");
|
|
63
|
+
}
|
|
64
|
+
if (!(typeof data === "object") || data === null) {
|
|
65
|
+
throw createError("invalid response body");
|
|
66
|
+
}
|
|
67
|
+
if ("errors" in data) {
|
|
68
|
+
throw createError("response errors", data.errors);
|
|
69
|
+
}
|
|
70
|
+
if (!("data" in data)) {
|
|
71
|
+
throw createError("invalid response body");
|
|
72
|
+
}
|
|
73
|
+
return data.data;
|
|
74
|
+
}
|
|
75
|
+
async doExecute(query, { apiToken, signal, variables, headers } = {}) {
|
|
76
|
+
const resolvedHeaders = {
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
...this.options.headers,
|
|
79
|
+
...headers
|
|
80
|
+
};
|
|
81
|
+
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
82
|
+
if (resolvedToken !== void 0) {
|
|
83
|
+
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
84
|
+
}
|
|
85
|
+
return await (this.options.fetcher ?? defaultFetcher)(this.options.url, {
|
|
86
|
+
method: "POST",
|
|
87
|
+
headers: resolvedHeaders,
|
|
88
|
+
signal,
|
|
89
|
+
body: JSON.stringify({ query, variables })
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
94
|
+
exports.GraphQlClient = GraphQlClient;
|
|
95
|
+
//# sourceMappingURL=GraphQlClient.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\t{ apiToken, signal, variables, headers }: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: Request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a,YAAyB,MAAM,KAAK,OAAO;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { GraphQlClientError } from "./GraphQlClientError.js";
|
|
2
|
+
class GraphQlClient {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
this.options = options;
|
|
5
|
+
}
|
|
6
|
+
get apiUrl() {
|
|
7
|
+
return this.options.url;
|
|
8
|
+
}
|
|
9
|
+
withOptions(options) {
|
|
10
|
+
return new GraphQlClient({ ...this.options, ...options });
|
|
11
|
+
}
|
|
12
|
+
async execute(query, options = {}) {
|
|
13
|
+
let body = null;
|
|
14
|
+
let response = null;
|
|
15
|
+
const createError = (type, errors, cause) => {
|
|
16
|
+
const request = {
|
|
17
|
+
url: this.options.url,
|
|
18
|
+
query,
|
|
19
|
+
variables: options.variables ?? {}
|
|
20
|
+
};
|
|
21
|
+
const message = `GraphQL request failed: ${type}
|
|
22
|
+
|
|
23
|
+
HTTP response: ${response ? response.status + " " + response.statusText : "<no response>"}
|
|
24
|
+
HTTP body:
|
|
25
|
+
${body !== null ? body : "<no body>"}
|
|
26
|
+
|
|
27
|
+
GraphQL query:
|
|
28
|
+
${query}`;
|
|
29
|
+
return new GraphQlClientError(message, type, request, response ?? void 0, errors, cause);
|
|
30
|
+
};
|
|
31
|
+
this.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
32
|
+
options?.onBeforeRequest?.({ query, variables: options.variables ?? {} });
|
|
33
|
+
try {
|
|
34
|
+
response = await this.doExecute(query, options);
|
|
35
|
+
this.options?.onResponse?.(response);
|
|
36
|
+
options?.onResponse?.(response);
|
|
37
|
+
body = await response.text();
|
|
38
|
+
} catch (e) {
|
|
39
|
+
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
40
|
+
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
41
|
+
}
|
|
42
|
+
let data;
|
|
43
|
+
try {
|
|
44
|
+
data = JSON.parse(body);
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw createError("invalid response body", void 0, e);
|
|
47
|
+
}
|
|
48
|
+
this.options?.onData?.(data);
|
|
49
|
+
options?.onData?.(data);
|
|
50
|
+
if (response.status === 401) {
|
|
51
|
+
throw createError("unauthorized");
|
|
52
|
+
}
|
|
53
|
+
if (response.status === 403) {
|
|
54
|
+
throw createError("forbidden");
|
|
55
|
+
}
|
|
56
|
+
if (response.status >= 400 && response.status < 500) {
|
|
57
|
+
throw createError("bad request", data.errors);
|
|
58
|
+
}
|
|
59
|
+
if (response.status >= 500) {
|
|
60
|
+
throw createError("server error");
|
|
61
|
+
}
|
|
62
|
+
if (!(typeof data === "object") || data === null) {
|
|
63
|
+
throw createError("invalid response body");
|
|
64
|
+
}
|
|
65
|
+
if ("errors" in data) {
|
|
66
|
+
throw createError("response errors", data.errors);
|
|
67
|
+
}
|
|
68
|
+
if (!("data" in data)) {
|
|
69
|
+
throw createError("invalid response body");
|
|
70
|
+
}
|
|
71
|
+
return data.data;
|
|
72
|
+
}
|
|
73
|
+
async doExecute(query, { apiToken, signal, variables, headers } = {}) {
|
|
74
|
+
const resolvedHeaders = {
|
|
75
|
+
"Content-Type": "application/json",
|
|
76
|
+
...this.options.headers,
|
|
77
|
+
...headers
|
|
78
|
+
};
|
|
79
|
+
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
80
|
+
if (resolvedToken !== void 0) {
|
|
81
|
+
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
82
|
+
}
|
|
83
|
+
return await (this.options.fetcher ?? defaultFetcher)(this.options.url, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: resolvedHeaders,
|
|
86
|
+
signal,
|
|
87
|
+
body: JSON.stringify({ query, variables })
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
92
|
+
export {
|
|
93
|
+
GraphQlClient
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=GraphQlClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\t{ apiToken, signal, variables, headers }: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":[],"mappings":";AAGO,MAAM,cAAc;AAAA,EAC1B,YACkB,SAChB;AADgB,SAAA,UAAA;AAAA,EACf;AAAA,EAEH,IAAI,SAAiB;AACpB,WAAO,KAAK,QAAQ;AAAA,EACrB;AAAA,EAEA,YAAY,SAAuD;AAClE,WAAO,IAAI,cAAc,EAAE,GAAG,KAAK,SAAS,GA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,YAAY,WAAW;AAAA,IAC9B;AACA,QAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAAK;AACpD,YAAM,YAAY,eAAe,KAAK,MAAM;AAAA,IAC7C;AACA,QAAI,SAAS,UAAU,KAAK;AAC3B,YAAM,YAAY,cAAc;AAAA,IACjC;AACA,QAAI,EAAE,OAAO,SAAS,aAAa,SAAS,MAAM;AACjD,YAAM,YAAY,uBAAuB;AAAA,IAC1C;AACA,QAAI,YAAY,MAAM;AACrB,YAAM,YAAY,mBAAmB,KAAK,MAAM;AAAA,IACjD;AACA,QAAI,EAAE,UAAU,OAAO;AACtB,YAAM,YAAY,uBAAuB;AAAA,IAC1C;AAEA,WAAO,KAAK;AAAA,EACb;AAAA,EAEA,MAAgB,UACf,OACA,EAAE,UAAU,QAAQ,WAAW,QAAA,IAAyC,IACpD;AACpB,UAAM,kBAA0C;AAAA,MAC/C,gBAAgB;AAAA,MAChB,GAAG,KAAK,QAAQ;AAAA,MAChB,GAAG;AAAA,IAAA;AAEJ,UAAM,gBAAgB,YAAY,KAAK,QAAQ;AAE/C,QAAI,kBAAkB,QAAW;AAChC,sBAAgB,eAAe,IAAI,UAAU,aAAa;AAAA,IAC3D;AAEA,WAAO,OAAO,KAAK,QAAQ,WAAW,gBAAgB,KAAK,QAAQ,KAAK;AAAA,MACvE,QAAQ;AAAA,MACR,SAAS;AAAA,MACT;AAAA,MACA,MAAM,KAAK,UAAU,EAAE,OAAO,WAAW;AAAA,IAAA,CACzC;AAAA,EACF;AACD;AAEA,MAAM,iBAAiB,OAAO,KAAa,YAAyB,MAAM,KAAK,OAAO;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
class GraphQlClientError extends Error {
|
|
4
|
+
constructor(message, type, request, response, errors, cause) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.type = type;
|
|
7
|
+
this.request = request;
|
|
8
|
+
this.response = response;
|
|
9
|
+
this.errors = errors;
|
|
10
|
+
this.cause = cause;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.GraphQlClientError = GraphQlClientError;
|
|
14
|
+
//# sourceMappingURL=GraphQlClientError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientError.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClientError.ts"],"sourcesContent":["export type GraphQlErrorRequest = { url: string; query: string; variables: Record<string, any> }\n\nexport type GraphQlErrorType =\n\t| 'aborted'\n\t| 'network error'\n\t| 'invalid response body'\n\t| 'bad request'\n\t| 'unauthorized'\n\t| 'forbidden'\n\t| 'server error'\n\t| 'response errors'\n\nexport class GraphQlClientError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly type: GraphQlErrorType,\n\t\tpublic readonly request: GraphQlErrorRequest,\n\t\tpublic readonly response?: Response,\n\t\tpublic readonly errors?: readonly any[],\n\t\tcause?: unknown,\n\t) {\n\t\tsuper(message)\n\t\tthis.cause = cause\n\t}\n}\n"],"names":[],"mappings":";;AAYO,MAAM,2BAA2B,MAAM;AAAA,EAC7C,YACC,SACgB,MACA,SACA,UACA,QAChB,OACC;AACD,UAAM,OAAO;AANG,SAAA,OAAA;AACA,SAAA,UAAA;AACA,SAAA,WAAA;AACA,SAAA,SAAA;AAIhB,SAAK,QAAQ;AAAA,EACd;AACD;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class GraphQlClientError extends Error {
|
|
2
|
+
constructor(message, type, request, response, errors, cause) {
|
|
3
|
+
super(message);
|
|
4
|
+
this.type = type;
|
|
5
|
+
this.request = request;
|
|
6
|
+
this.response = response;
|
|
7
|
+
this.errors = errors;
|
|
8
|
+
this.cause = cause;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
GraphQlClientError
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=GraphQlClientError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientError.js","sources":["../../../../packages/graphql-client/src/GraphQlClientError.ts"],"sourcesContent":["export type GraphQlErrorRequest = { url: string; query: string; variables: Record<string, any> }\n\nexport type GraphQlErrorType =\n\t| 'aborted'\n\t| 'network error'\n\t| 'invalid response body'\n\t| 'bad request'\n\t| 'unauthorized'\n\t| 'forbidden'\n\t| 'server error'\n\t| 'response errors'\n\nexport class GraphQlClientError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly type: GraphQlErrorType,\n\t\tpublic readonly request: GraphQlErrorRequest,\n\t\tpublic readonly response?: Response,\n\t\tpublic readonly errors?: readonly any[],\n\t\tcause?: unknown,\n\t) {\n\t\tsuper(message)\n\t\tthis.cause = cause\n\t}\n}\n"],"names":[],"mappings":"AAYO,MAAM,2BAA2B,MAAM;AAAA,EAC7C,YACC,SACgB,MACA,SACA,UACA,QAChB,OACC;AACD,UAAM,OAAO;AANG,SAAA,OAAA;AACA,SAAA,UAAA;AACA,SAAA,WAAA;AACA,SAAA,SAAA;AAIhB,SAAK,QAAQ;AAAA,EACd;AACD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions';
|
|
2
|
+
export declare class GraphQlClient {
|
|
3
|
+
private readonly options;
|
|
4
|
+
constructor(options: GraphQlClientOptions);
|
|
5
|
+
get apiUrl(): string;
|
|
6
|
+
withOptions(options: Partial<GraphQlClientOptions>): GraphQlClient;
|
|
7
|
+
execute<T = unknown>(query: string, options?: GraphQlClientRequestOptions): Promise<T>;
|
|
8
|
+
protected doExecute(query: string, { apiToken, signal, variables, headers }?: GraphQlClientRequestOptions): Promise<Response>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GraphQlClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClient.d.ts","sourceRoot":"","sources":["../../src/GraphQlClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAEjG,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAG/C,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,aAAa;IAI5D,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,2BAAgC,GAAG,OAAO,CAAC,CAAC,CAAC;cAsEhF,SAAS,CACxB,KAAK,EAAE,MAAM,EACb,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAE,2BAAgC,GACxE,OAAO,CAAC,QAAQ,CAAC;CAmBpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type GraphQlErrorRequest = {
|
|
2
|
+
url: string;
|
|
3
|
+
query: string;
|
|
4
|
+
variables: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export type GraphQlErrorType = 'aborted' | 'network error' | 'invalid response body' | 'bad request' | 'unauthorized' | 'forbidden' | 'server error' | 'response errors';
|
|
7
|
+
export declare class GraphQlClientError extends Error {
|
|
8
|
+
readonly type: GraphQlErrorType;
|
|
9
|
+
readonly request: GraphQlErrorRequest;
|
|
10
|
+
readonly response?: Response | undefined;
|
|
11
|
+
readonly errors?: readonly any[] | undefined;
|
|
12
|
+
constructor(message: string, type: GraphQlErrorType, request: GraphQlErrorRequest, response?: Response | undefined, errors?: readonly any[] | undefined, cause?: unknown);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GraphQlClientError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientError.d.ts","sourceRoot":"","sources":["../../src/GraphQlClientError.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,CAAA;AAEhG,MAAM,MAAM,gBAAgB,GACzB,SAAS,GACT,eAAe,GACf,uBAAuB,GACvB,aAAa,GACb,cAAc,GACd,WAAW,GACX,cAAc,GACd,iBAAiB,CAAA;AAEpB,qBAAa,kBAAmB,SAAQ,KAAK;aAG3B,IAAI,EAAE,gBAAgB;aACtB,OAAO,EAAE,mBAAmB;aAC5B,QAAQ,CAAC,EAAE,QAAQ;aACnB,MAAM,CAAC,EAAE,SAAS,GAAG,EAAE;gBAJvC,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,QAAQ,YAAA,EACnB,MAAM,CAAC,EAAE,SAAS,GAAG,EAAE,YAAA,EACvC,KAAK,CAAC,EAAE,OAAO;CAKhB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface GraphQlClientBaseOptions {
|
|
2
|
+
readonly apiToken?: string;
|
|
3
|
+
readonly headers?: Record<string, string>;
|
|
4
|
+
readonly onBeforeRequest?: (query: {
|
|
5
|
+
query: string;
|
|
6
|
+
variables: GraphQlClientVariables;
|
|
7
|
+
}) => void;
|
|
8
|
+
readonly onResponse?: (response: Response) => void;
|
|
9
|
+
readonly onData?: (json: unknown) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface GraphQlClientOptions extends GraphQlClientBaseOptions {
|
|
12
|
+
readonly url: string;
|
|
13
|
+
readonly fetcher?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
14
|
+
}
|
|
15
|
+
export interface GraphQlClientRequestOptions extends GraphQlClientBaseOptions {
|
|
16
|
+
readonly variables?: GraphQlClientVariables;
|
|
17
|
+
readonly signal?: AbortSignal;
|
|
18
|
+
}
|
|
19
|
+
export interface GraphQlClientVariables {
|
|
20
|
+
[name: string]: any;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=GraphQlClientRequestOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQlClientRequestOptions.d.ts","sourceRoot":"","sources":["../../src/GraphQlClientRequestOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,sBAAsB,CAAA;KAAE,KAAK,IAAI,CAAA;IAChG,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC;AAED,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CAChF;AAED,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IAC5E,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,CAAA;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACtC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../../node_modules/typescript/lib/lib.es2025.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../../node_modules/typescript/lib/lib.es2025.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2025.float16.d.ts","../../../../node_modules/typescript/lib/lib.es2025.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../../../../node_modules/typescript/lib/lib.es2025.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.date.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.error.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.esnext.temporal.d.ts","../../../../node_modules/typescript/lib/lib.esnext.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/GraphQlClientError.ts","../../src/GraphQlClientRequestOptions.ts","../../src/GraphQlClient.ts","../../src/index.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/utility.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client-stats.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/h2c-client.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-call-history.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/snapshot-agent.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cache-interceptor.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/web-globals/streams.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/bun-types/globals.d.ts","../../../../node_modules/bun-types/s3.d.ts","../../../../node_modules/bun-types/fetch.d.ts","../../../../node_modules/bun-types/jsx.d.ts","../../../../node_modules/bun-types/bun.d.ts","../../../../node_modules/bun-types/extensions.d.ts","../../../../node_modules/bun-types/devserver.d.ts","../../../../node_modules/bun-types/ffi.d.ts","../../../../node_modules/bun-types/html-rewriter.d.ts","../../../../node_modules/bun-types/jsc.d.ts","../../../../node_modules/bun-types/sqlite.d.ts","../../../../node_modules/bun-types/vendor/expect-type/utils.d.ts","../../../../node_modules/bun-types/vendor/expect-type/overloads.d.ts","../../../../node_modules/bun-types/vendor/expect-type/branding.d.ts","../../../../node_modules/bun-types/vendor/expect-type/messages.d.ts","../../../../node_modules/bun-types/vendor/expect-type/index.d.ts","../../../../node_modules/bun-types/test.d.ts","../../../../node_modules/bun-types/wasm.d.ts","../../../../node_modules/bun-types/overrides.d.ts","../../../../node_modules/bun-types/deprecated.d.ts","../../../../node_modules/bun-types/redis.d.ts","../../../../node_modules/bun-types/shell.d.ts","../../../../node_modules/bun-types/serve.d.ts","../../../../node_modules/bun-types/sql.d.ts","../../../../node_modules/bun-types/security.d.ts","../../../../node_modules/bun-types/bundle.d.ts","../../../../node_modules/bun-types/bun.ns.d.ts","../../../../node_modules/bun-types/index.d.ts","../../../../node_modules/@types/bun/index.d.ts"],"fileIdsList":[[100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230,233],[100,152,153,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,154,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,160,172,173,190,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,156,161,166,172,173,175,187,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,156,157,166,172,173,175,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,158,172,173,199,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,159,160,167,172,173,176,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,160,172,173,187,195,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,161,163,166,172,173,175,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,154,155,162,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,163,164,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,165,166,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,154,155,166,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,167,168,172,173,187,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,167,168,172,173,182,187,190,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,147,155,163,166,169,172,173,175,187,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,167,169,170,172,173,175,187,195,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,169,171,172,173,187,195,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[98,99,100,101,102,103,104,105,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,174,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,163,166,172,173,175,187,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,176,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,177,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,154,155,172,173,178,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,180,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,181,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,172,173,182,183,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,182,184,199,201,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,167,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,172,173,187,188,190,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,189,190,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,187,188,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,190,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,191,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,152,155,172,173,187,192,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,166,172,173,193,194,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,193,194,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,160,172,173,175,187,195,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,196,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,175,197,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,169,172,173,181,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,160,172,173,199,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,187,200,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,174,201,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,202,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,160,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,147,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,203,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,147,155,166,168,172,173,178,187,190,198,200,201,203,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,187,204,206,207,208,210,212,223,224,225,226,227,228,229,230],[90,91,100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[92,100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,147,155,160,167,169,172,173,195,199,203,206,207,208,209,212,213,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,223,224,226,227,228,229,230],[100,155,172,173,206,207,208,210,223,224,225,226,227,228,229,230],[100,147,155,172,173,206,207,210,212,223,224,225,226,227,228,229,230],[100,147,155,160,172,173,178,187,190,195,199,203,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,205,206,207,208,210,211,212,213,214,215,216,222,223,224,225,226,227,228,229,230,231,232],[14,100,101,155,158,160,167,168,172,173,176,190,195,198,204,206,207,208,210,212,223,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,223,224,225,227,228,229,230],[100,155,167,172,173,206,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229],[100,155,172,173,206,207,208,210,212,223,224,225,226,227,229,230],[100,155,172,173,206,207,208,210,212,223,224,225,226,228,229,230],[100,155,172,173,206,207,208,210,212,216,223,224,225,226,227,228,230],[100,155,172,173,206,207,208,210,212,221,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,217,218,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,217,218,219,220,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,217,219,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,217,223,224,225,226,227,228,229,230],[100,155,172,173,206,207,208,210,212,224,225,226,227,228,229,230],[100,113,116,119,120,155,172,173,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,155,172,173,187,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,120,155,172,173,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,187,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,110,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,114,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,112,113,116,155,172,173,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,175,195,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,155,172,173,205,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,110,155,172,173,205,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,112,116,155,172,173,175,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,107,108,109,111,115,155,166,172,173,187,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,124,132,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,108,114,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,141,142,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,108,111,116,155,172,173,190,198,205,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,112,116,155,172,173,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,107,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,110,111,112,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,144,145,146,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,134,137,155,163,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,124,125,126,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,114,116,125,127,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,115,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,108,110,116,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,120,125,127,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,120,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,114,116,119,155,172,173,198,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,108,112,116,124,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,116,134,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,127,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[100,110,116,141,155,172,173,190,203,205,206,207,208,210,212,223,224,225,226,227,228,229,230],[93,94,95,100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[93,100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230],[93,94,95,96,100,155,172,173,206,207,208,210,212,223,224,225,226,227,228,229,230]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"17f13ecb98cbc39243f2eee1f16d45cd8ec4706b03ee314f1915f1a8b42f6984","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"5fcab789c73a97cd43828ee3cc94a61264cf24d4c44472ce64ced0e0f148bdb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"db59a81f070c1880ad645b2c0275022baa6a0c4f0acdc58d29d349c6efcf0903","affectsGlobalScope":true,"impliedFormat":1},{"version":"673294292640f5722b700e7d814e17aaf7d93f83a48a2c9b38f33cbc940ad8b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d786b48f934cbca483b3c6d0a798cb43bbb4ada283e76fb22c28e53ae05b9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ecb8e347cb6b2a8927c09b86263663289418df375f5e68e11a0ae683776978f","affectsGlobalScope":true,"impliedFormat":1},{"version":"142efd4ce210576f777dc34df121777be89eda476942d6d6663b03dcb53be3ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"379bc41580c2d774f82e828c70308f24a005b490c25ba34d679d84bcf05c3d9d","affectsGlobalScope":true,"impliedFormat":1},{"version":"ed484fb2aa8a1a23d0277056ec3336e0a0b52f9b8d6a961f338a642faf43235d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ffedae1d1c2d53fdbca1c96d3c7dda544281f7d262f99b6880634f8fd8d9820","affectsGlobalScope":true,"impliedFormat":1},{"version":"83a730b125d477dd264df8ba479afab27a3dae7152b005c214ab94dc7ee44fd3","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e29f41b158de217f94cb9676bf9cbd0cd9b5a46e1985141ed36e075c52bf6ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"dc0a7f107690ee5cd8afc8dbf05c4df78085471ce16bdd9881642ec738bc81fe","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"8c6a0770a6193f20f9913210b07b40738537fa5b87a726b601083c372fd5950d","signature":"9380030f7e24b1db8a92db237e4114eb9ec4e0e4fb1f9a74977f89bf27345a2f"},{"version":"cf0f2abb2dbd03e987e4f2c0a6ba960d7ddd3526b5d530ff02b11fffd0d9c729","signature":"063a16a89e56dc3a27c4c353ff81f80e4a5074817db8f8989f6d4553df2f3850"},{"version":"f5f0d2353efeb293b7e65fea289817026aff8720a130489f9f0a3376f70d37c3","signature":"8ef2193f6663c97e78c2a1b304b315620665bde3d5ec88cb9e6cdebbeab88291"},{"version":"5f2c3b244c56a91793fe2c4e81c47fce91cede200a1ef4190d31cd7ea5efc4a3","signature":"e17fbde86ef68adc663fff12c63cce11175482b3f108afd90fa3c11754afe6c6"},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"378281aa35786c27d5811af7e6bcaa492eebd0c7013d48137c35bbc69a2b9751","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b2dd1cbeb0cc6ae20795958ba5950395ebb2849b7c8326853dd15530c77ab0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"387a023d363f755eb63450a66c28b14cdd7bc30a104565e2dbf0a8988bb4a56c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"f724236417941ea77ec8d38c6b7021f5fb7f8521c7f8c1538e87661f2c6a0774","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ea15fd99b2e34cb25fe8346c955000bb70c8b423ae4377a972ef46bfb37f595","impliedFormat":1},{"version":"7cf69dd5502c41644c9e5106210b5da7144800670cbe861f66726fa209e231c4","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"f9b4137a0d285bd77dba2e6e895530112264310ae47e07bf311feae428fb8b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"c06b2652ffeb89afd0f1c52c165ced77032f9cd09bc481153fbd6b5504c69494","impliedFormat":1},{"version":"51aecd2df90a3cffea1eb4696b33b2d78594ea2aa2138e6b9471ec4841c6c2ee","impliedFormat":1},{"version":"9d8f9e63e29a3396285620908e7f14d874d066caea747dc4b2c378f0599166b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"612422d5ba6b4a5c4537f423e9199645468ad80a689801da63ab7edb43f7b835","impliedFormat":1},{"version":"db9ada976f9e52e13f7ae8b9a320f4b67b87685938c5879187d8864b2fbe97f3","impliedFormat":1},{"version":"9f39e70a354d0fba29ac3cdf6eca00b7f9e96f64b2b2780c432e8ea27f133743","impliedFormat":1},{"version":"0dace96cc0f7bc6d0ee2044921bdf19fe42d16284dbcc8ae200800d1c9579335","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"c64e1888baaa3253ca4405b455e4bf44f76357868a1bd0a52998ade9a092ad78","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc8c6f5322961b56d9906601b20798725df60baeab45ec014fba9f795d5596fd","impliedFormat":1},{"version":"0904660ae854e6d41f6ff25356db1d654436c6305b0f0aa89d1532df0253486e","impliedFormat":1},{"version":"060d305fe4494d8cb2b99d620928d369d1ee55c1645f5e729a2aca07d0f108cb","impliedFormat":1},{"version":"230bdc111d7578276e4a3bb9d075d85c78c6b68f428c3a9935e2eaa10f4ae1f5","impliedFormat":1},{"version":"0c50296ee73dae94efc3f0da4936b1146ca6ce2217acfabb44c19c9a33fa30e5","impliedFormat":1},{"version":"bbf42f98a5819f4f06e18c8b669a994afe9a17fe520ae3454a195e6eabf7700d","impliedFormat":1},{"version":"0e5974dfff7a97181c7c376545f126b20acf2f1341db7d3fccea4977bf3ce19c","impliedFormat":1},{"version":"c7f977ea78a1b060a30554c1c4ec0e2269c6e305a349ca2ada14931ac27ecc0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"145dcf25fd4967c610c53d93d7bc4dce8fbb1b6dd7935362472d4ae49363c7ba","impliedFormat":1},{"version":"ff65b8a8bd380c6d129becc35de02f7c29ad7ce03300331ca91311fb4044d1a9","impliedFormat":1},{"version":"04bf1aa481d1adfb16d93d76e44ce71c51c8ef68039d849926551199489637f6","impliedFormat":1},{"version":"2c9adcc85574b002c9a6311ff2141055769e0071856ec979d92ff989042b1f1b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b8bf3fe89ec8baa335f6370b9fa36308e1bc7a72e2eb2dad1e94f31e27fa28b5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"5fb39858b2459864b139950a09adae4f38dad87c25bf572ce414f10e4bd7baab","impliedFormat":1},{"version":"35390d6fa94bdb432c5d0bcb6547bdd11406c2692a6b90b9e47be2105ea19bd6","impliedFormat":1},{"version":"b33b74b97952d9bf4fbd2951dcfbb5136656ddb310ce1c84518aaa77dbca9992","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"8d117798e5228c7fdff887f44851d07320739c5cc0d511afae8f250c51809a36","affectsGlobalScope":true,"impliedFormat":1},{"version":"c119835edf36415081dfd9ed15fc0cd37aaa28d232be029ad073f15f3d88c323","impliedFormat":1},{"version":"8e7c3bed5f19ade8f911677ddc83052e2283e25b0a8654cd89db9079d4b323c7","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"ccf3afaeebbeee4ca9092101e99fd6abd681116b6e5ec23e381bbb1e1f32262c","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"ab7818a9d57a9297b90e456fc68b77f84d74395a9210a3cfa9d87db33aff8b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb08062718a5470cd864c1fae0eb5b3a3adc5bcd05dcf87608d6f60b65eca3f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"3a815b7d1aebc0646b91548eab2fc19dada09ff255d04c71ced00bbd3058c8eb","impliedFormat":1},{"version":"255d948f87f24ffd57bcb2fdf95792fd418a2e1f712a98cf2cce88744d75085c","impliedFormat":1},{"version":"0d5b085f36e6dc55bc6332ecb9c733be3a534958c238fb8d8d18d4a2b6f2a15a","impliedFormat":1},{"version":"836b36913830645ac3b28fe33731aac3fdb3524ee8adbb4cdab9a5c189f41943","affectsGlobalScope":true,"impliedFormat":1},{"version":"bfd3b3c21a56104693183942e221c1896ee23bcb8f8d91ab0b941f7b32985411","impliedFormat":1},{"version":"d7e9ab1b0996639047c61c1e62f85c620e4382206b3abb430d9a21fb7bc23c77","impliedFormat":1},{"version":"6e215dac8b234548d91b718f9c07d5b09473cd5cabb29053fcd8be0af190acb6","affectsGlobalScope":true,"impliedFormat":1},{"version":"dbecf494aac7d3ee1b23cdaafae0d0bfea8590567fc153db58fe00ed9fa66c24","impliedFormat":1},{"version":"f3d3e999a323c85c8a63ce90c6e4624ff89fe137a0e2508fddc08e0556d08abf","impliedFormat":1},{"version":"314607151cc203975193d5f44765f38597be3b0a43f466d3c1bfb17176dd3bd3","impliedFormat":1},{"version":"c0aefa42fc76bf16b3d00c983405a9ad7bcde623caabc598d66d93d3c4aa7c54","impliedFormat":1},{"version":"f40aad6c91017f20fc542f5701ec41e0f6aeba63c61bbf7aa13266ec29a50a3b","impliedFormat":1},{"version":"fc9e630f9302d0414ccd6c8ed2706659cff5ae454a56560c6122fa4a3fac5bbd","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa0a44af370a2d7c1aac988a17836f57910a6c52689f52f5b3ac1d4c6cadcb23","impliedFormat":1},{"version":"0ac74c7586880e26b6a599c710b59284a284e084a2bbc82cd40fb3fbfdea71ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ce12357dadbb8efc4e4ec4dab709c8071bf992722fc9adfea2fe0bd5b50923f","impliedFormat":1},{"version":"b5a907deaba678e5083ccdd7cc063a3a8c3413c688098f6de29d6e4cefabc85f","impliedFormat":1},{"version":"ffd344731abee98a0a85a735b19052817afd2156d97d1410819cd9bcd1bd575e","impliedFormat":1},{"version":"475e07c959f4766f90678425b45cf58ac9b95e50de78367759c1e5118e85d5c3","impliedFormat":1},{"version":"a524ae401b30a1b0814f1bbcdae459da97fa30ae6e22476e506bb3f82e3d9456","impliedFormat":1},{"version":"7375e803c033425e27cb33bae21917c106cb37b508fd242cccd978ef2ee244c7","impliedFormat":1},{"version":"eeb890c7e9218afdad2f30ad8a76b0b0b5161d11ce13b6723879de408e6bc47a","impliedFormat":1},{"version":"998da6b85ebace9ebea67040dd1a640f0156064e3d28dbe9bd9c0229b6f72347","impliedFormat":1},{"version":"dfbcc400ac6d20b941ccc7bd9031b9d9f54e4d495dd79117334e771959df4805","affectsGlobalScope":true,"impliedFormat":1},{"version":"944d65951e33a13068be5cd525ec42bf9bc180263ba0b723fa236970aa21f611","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b386c7b6ce6f369d18246904fa5eac73566167c88fb6508feba74fa7501a384","affectsGlobalScope":true,"impliedFormat":1},{"version":"592a109e67b907ffd2078cd6f727d5c326e06eaada169eef8fb18546d96f6797","impliedFormat":1},{"version":"f2eb1e35cae499d57e34b4ac3650248776fe7dbd9a3ec34b23754cfd8c22fceb","impliedFormat":1},{"version":"fbed43a6fcf5b675f5ec6fc960328114777862b58a2bb19c109e8fc1906caa09","impliedFormat":1},{"version":"9e98bd421e71f70c75dae7029e316745c89fa7b8bc8b43a91adf9b82c206099c","impliedFormat":1},{"version":"fc803e6b01f4365f71f51f9ce13f71396766848204d4f7a1b2b6154434b84b15","impliedFormat":1},{"version":"f3afcc0d6f77a9ca2d2c5c92eb4b89cd38d6fa4bdc1410d626bd701760a977ec","impliedFormat":1},{"version":"c8109fe76467db6e801d0edfbc50e6826934686467c9418ce6b246232ce7f109","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6f803e4e45915d58e721c04ec17830c6e6678d1e3e00e28edf3d52720909cea","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be812b06e518320ba82e2aff3ac2ca37370a9df917db708f081b9043fa3315","impliedFormat":1}],"root":[[94,97]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[234,1],[152,2],[153,2],[154,3],[100,4],[155,5],[156,6],[157,7],[98,8],[158,9],[159,10],[160,11],[161,12],[162,13],[163,14],[164,14],[165,15],[166,16],[167,17],[168,18],[101,8],[99,8],[169,19],[170,20],[171,21],[205,22],[172,23],[173,8],[174,24],[175,25],[176,26],[177,27],[178,28],[179,29],[180,30],[181,31],[182,32],[183,32],[184,33],[185,8],[186,34],[187,35],[189,36],[188,37],[190,38],[191,39],[192,40],[193,41],[194,42],[195,43],[196,44],[197,45],[198,46],[199,47],[200,48],[201,49],[202,50],[102,8],[103,51],[104,8],[105,8],[148,52],[149,53],[150,8],[151,38],[203,54],[204,55],[90,8],[92,56],[93,57],[106,8],[210,58],[232,8],[231,8],[225,59],[212,60],[211,8],[208,61],[213,8],[206,62],[214,8],[233,63],[215,8],[209,8],[224,64],[226,65],[207,66],[230,67],[228,68],[227,69],[229,70],[216,8],[222,71],[219,72],[221,73],[220,74],[218,75],[217,8],[223,76],[91,8],[88,8],[89,8],[14,8],[15,8],[17,8],[16,8],[2,8],[18,8],[19,8],[20,8],[21,8],[22,8],[23,8],[24,8],[25,8],[3,8],[26,8],[27,8],[4,8],[28,8],[32,8],[29,8],[30,8],[31,8],[33,8],[34,8],[35,8],[5,8],[36,8],[37,8],[38,8],[39,8],[6,8],[43,8],[40,8],[41,8],[42,8],[44,8],[7,8],[45,8],[50,8],[51,8],[46,8],[47,8],[48,8],[49,8],[8,8],[55,8],[52,8],[53,8],[54,8],[56,8],[9,8],[57,8],[58,8],[59,8],[61,8],[60,8],[62,8],[63,8],[10,8],[64,8],[65,8],[66,8],[11,8],[67,8],[68,8],[69,8],[70,8],[71,8],[72,8],[12,8],[73,8],[74,8],[75,8],[76,8],[77,8],[1,8],[78,8],[79,8],[13,8],[80,8],[81,8],[82,8],[83,8],[84,8],[85,8],[86,8],[87,8],[124,77],[136,78],[122,79],[137,80],[146,81],[113,82],[114,83],[112,84],[145,85],[140,86],[144,87],[116,88],[133,89],[115,90],[143,91],[110,92],[111,86],[117,93],[118,8],[123,94],[121,93],[108,95],[147,96],[138,97],[127,98],[126,93],[128,99],[131,100],[125,101],[129,102],[141,85],[119,103],[120,104],[132,105],[109,80],[135,106],[134,93],[130,107],[139,8],[107,8],[142,108],[96,109],[94,110],[95,110],[97,111]],"latestChangedDtsFile":"./index.d.ts","version":"6.0.1-rc"}
|