@gjsify/formdata 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/globals.mjs +23 -0
- package/lib/esm/file.js +24 -0
- package/lib/esm/form-data-to-blob.js +45 -0
- package/lib/esm/formdata.js +93 -0
- package/lib/esm/index.js +8 -0
- package/lib/types/file.d.ts +16 -0
- package/lib/types/form-data-to-blob.d.ts +11 -0
- package/lib/types/formdata.d.ts +30 -0
- package/lib/types/index.d.ts +3 -0
- package/package.json +40 -0
- package/src/file.ts +32 -0
- package/src/form-data-to-blob.ts +57 -0
- package/src/formdata.ts +127 -0
- package/src/index.spec.ts +219 -0
- package/src/index.ts +3 -0
- package/src/test.mts +6 -0
- package/tsconfig.json +31 -0
- package/tsconfig.tsbuildinfo +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @gjsify/formdata
|
|
2
|
+
|
|
3
|
+
GJS implementation of the Web FormData and File APIs.
|
|
4
|
+
|
|
5
|
+
Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @gjsify/formdata
|
|
11
|
+
# or
|
|
12
|
+
yarn add @gjsify/formdata
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { FormData, File } from '@gjsify/formdata';
|
|
19
|
+
|
|
20
|
+
const form = new FormData();
|
|
21
|
+
form.append('name', 'value');
|
|
22
|
+
form.append('file', new File(['content'], 'file.txt', { type: 'text/plain' }));
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
MIT
|
package/globals.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports native FormData/File globals for use in Node.js builds.
|
|
3
|
+
* On Node.js 21+, FormData and File are native globals.
|
|
4
|
+
*/
|
|
5
|
+
export const FormData = globalThis.FormData;
|
|
6
|
+
export const File = globalThis.File;
|
|
7
|
+
export function formDataToBlob(formData) {
|
|
8
|
+
// Use native FormData — formDataToBlob is a @gjsify/formdata utility,
|
|
9
|
+
// not a Web standard. Return a Blob from the native FormData entries.
|
|
10
|
+
const boundary = '----FormDataBoundary' + Math.random().toString(36).slice(2);
|
|
11
|
+
const parts = [];
|
|
12
|
+
for (const [key, value] of formData.entries()) {
|
|
13
|
+
if (typeof value === 'string') {
|
|
14
|
+
parts.push(`--${boundary}\r\nContent-Disposition: form-data; name="${key}"\r\n\r\n${value}\r\n`);
|
|
15
|
+
} else {
|
|
16
|
+
parts.push(`--${boundary}\r\nContent-Disposition: form-data; name="${key}"; filename="${value.name}"\r\nContent-Type: ${value.type || 'application/octet-stream'}\r\n\r\n`);
|
|
17
|
+
parts.push(value);
|
|
18
|
+
parts.push('\r\n');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
parts.push(`--${boundary}--\r\n`);
|
|
22
|
+
return new Blob(parts, { type: `multipart/form-data; boundary=${boundary}` });
|
|
23
|
+
}
|
package/lib/esm/file.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const _name = /* @__PURE__ */ Symbol("File.name");
|
|
2
|
+
const _lastModified = /* @__PURE__ */ Symbol("File.lastModified");
|
|
3
|
+
class File extends Blob {
|
|
4
|
+
[_name];
|
|
5
|
+
[_lastModified];
|
|
6
|
+
webkitRelativePath = "";
|
|
7
|
+
constructor(fileBits, fileName, options) {
|
|
8
|
+
super(fileBits, options);
|
|
9
|
+
this[_name] = String(fileName);
|
|
10
|
+
this[_lastModified] = options?.lastModified ?? Date.now();
|
|
11
|
+
}
|
|
12
|
+
get name() {
|
|
13
|
+
return this[_name];
|
|
14
|
+
}
|
|
15
|
+
get lastModified() {
|
|
16
|
+
return this[_lastModified];
|
|
17
|
+
}
|
|
18
|
+
get [Symbol.toStringTag]() {
|
|
19
|
+
return "File";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
File
|
|
24
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { File } from "./file.js";
|
|
2
|
+
function generateBoundary() {
|
|
3
|
+
let boundary = "----formdata-";
|
|
4
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
|
+
for (let i = 0; i < 24; i++) {
|
|
6
|
+
boundary += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
7
|
+
}
|
|
8
|
+
return boundary;
|
|
9
|
+
}
|
|
10
|
+
function escape(str) {
|
|
11
|
+
return str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
|
|
12
|
+
}
|
|
13
|
+
function formDataToBlob(formData, boundary) {
|
|
14
|
+
boundary = boundary ?? generateBoundary();
|
|
15
|
+
const chunks = [];
|
|
16
|
+
const prefix = `--${boundary}\r
|
|
17
|
+
Content-Disposition: form-data; name="`;
|
|
18
|
+
for (const [name, value] of formData.entries()) {
|
|
19
|
+
if (typeof value === "string") {
|
|
20
|
+
chunks.push(
|
|
21
|
+
`${prefix}${escape(name)}"\r
|
|
22
|
+
\r
|
|
23
|
+
${value.replace(/\r(?!\n)|(?<!\r)\n/g, "\r\n")}\r
|
|
24
|
+
`
|
|
25
|
+
);
|
|
26
|
+
} else {
|
|
27
|
+
const file = value instanceof File ? value : new File([value], "blob", { type: value.type });
|
|
28
|
+
chunks.push(
|
|
29
|
+
`${prefix}${escape(name)}"; filename="${escape(file.name)}"\r
|
|
30
|
+
Content-Type: ${file.type || "application/octet-stream"}\r
|
|
31
|
+
\r
|
|
32
|
+
`
|
|
33
|
+
);
|
|
34
|
+
chunks.push(file);
|
|
35
|
+
chunks.push("\r\n");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
chunks.push(`--${boundary}--`);
|
|
39
|
+
return new Blob(chunks, {
|
|
40
|
+
type: `multipart/form-data; boundary=${boundary}`
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
formDataToBlob
|
|
45
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { File } from "./file.js";
|
|
2
|
+
const _entries = /* @__PURE__ */ Symbol("FormData.entries");
|
|
3
|
+
function normalizeValue(name, value, filename) {
|
|
4
|
+
if (typeof value === "string") {
|
|
5
|
+
return value;
|
|
6
|
+
}
|
|
7
|
+
if (value instanceof Blob && !(value instanceof File)) {
|
|
8
|
+
value = new File([value], filename ?? "blob", { type: value.type });
|
|
9
|
+
}
|
|
10
|
+
if (value instanceof File && filename !== void 0) {
|
|
11
|
+
value = new File([value], filename, {
|
|
12
|
+
type: value.type,
|
|
13
|
+
lastModified: value.lastModified
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
class FormData {
|
|
19
|
+
[_entries] = [];
|
|
20
|
+
constructor() {
|
|
21
|
+
}
|
|
22
|
+
append(name, value, filename) {
|
|
23
|
+
this[_entries].push({
|
|
24
|
+
name: String(name),
|
|
25
|
+
value: normalizeValue(name, value, filename)
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
delete(name) {
|
|
29
|
+
const n = String(name);
|
|
30
|
+
this[_entries] = this[_entries].filter((e) => e.name !== n);
|
|
31
|
+
}
|
|
32
|
+
get(name) {
|
|
33
|
+
const n = String(name);
|
|
34
|
+
const entry = this[_entries].find((e) => e.name === n);
|
|
35
|
+
return entry ? entry.value : null;
|
|
36
|
+
}
|
|
37
|
+
getAll(name) {
|
|
38
|
+
const n = String(name);
|
|
39
|
+
return this[_entries].filter((e) => e.name === n).map((e) => e.value);
|
|
40
|
+
}
|
|
41
|
+
has(name) {
|
|
42
|
+
const n = String(name);
|
|
43
|
+
return this[_entries].some((e) => e.name === n);
|
|
44
|
+
}
|
|
45
|
+
set(name, value, filename) {
|
|
46
|
+
const n = String(name);
|
|
47
|
+
const normalized = normalizeValue(n, value, filename);
|
|
48
|
+
let found = false;
|
|
49
|
+
this[_entries] = this[_entries].filter((e) => {
|
|
50
|
+
if (e.name === n) {
|
|
51
|
+
if (!found) {
|
|
52
|
+
found = true;
|
|
53
|
+
e.value = normalized;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return true;
|
|
59
|
+
});
|
|
60
|
+
if (!found) {
|
|
61
|
+
this[_entries].push({ name: n, value: normalized });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
forEach(callback, thisArg) {
|
|
65
|
+
for (const entry of this[_entries]) {
|
|
66
|
+
callback.call(thisArg, entry.value, entry.name, this);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
*entries() {
|
|
70
|
+
for (const entry of this[_entries]) {
|
|
71
|
+
yield [entry.name, entry.value];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
*keys() {
|
|
75
|
+
for (const entry of this[_entries]) {
|
|
76
|
+
yield entry.name;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
*values() {
|
|
80
|
+
for (const entry of this[_entries]) {
|
|
81
|
+
yield entry.value;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
[Symbol.iterator]() {
|
|
85
|
+
return this.entries();
|
|
86
|
+
}
|
|
87
|
+
get [Symbol.toStringTag]() {
|
|
88
|
+
return "FormData";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
FormData
|
|
93
|
+
};
|
package/lib/esm/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File class — extends Blob with name and lastModified.
|
|
3
|
+
* Used by FormData when appending Blob values with a filename.
|
|
4
|
+
*/
|
|
5
|
+
declare const _name: unique symbol;
|
|
6
|
+
declare const _lastModified: unique symbol;
|
|
7
|
+
export declare class File extends Blob {
|
|
8
|
+
[_name]: string;
|
|
9
|
+
[_lastModified]: number;
|
|
10
|
+
readonly webkitRelativePath: string;
|
|
11
|
+
constructor(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag);
|
|
12
|
+
get name(): string;
|
|
13
|
+
get lastModified(): number;
|
|
14
|
+
get [Symbol.toStringTag](): string;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize FormData to a multipart/form-data Blob.
|
|
3
|
+
*
|
|
4
|
+
* This is the equivalent of formdata-polyfill's formDataToBlob().
|
|
5
|
+
* Used by the Body mixin to convert FormData bodies for transmission.
|
|
6
|
+
*/
|
|
7
|
+
import type { FormData } from './formdata.ts';
|
|
8
|
+
/**
|
|
9
|
+
* Converts a FormData instance into a Blob with multipart/form-data content type.
|
|
10
|
+
*/
|
|
11
|
+
export declare function formDataToBlob(formData: FormData, boundary?: string): Blob;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormData implementation for GJS.
|
|
3
|
+
* Spec: https://xhr.spec.whatwg.org/#interface-formdata
|
|
4
|
+
*/
|
|
5
|
+
import { File } from './file.ts';
|
|
6
|
+
type FormDataEntryValue = string | File;
|
|
7
|
+
interface FormDataEntry {
|
|
8
|
+
name: string;
|
|
9
|
+
value: FormDataEntryValue;
|
|
10
|
+
}
|
|
11
|
+
declare const _entries: unique symbol;
|
|
12
|
+
export declare class FormData {
|
|
13
|
+
[_entries]: FormDataEntry[];
|
|
14
|
+
constructor();
|
|
15
|
+
append(name: string, value: string): void;
|
|
16
|
+
append(name: string, blobValue: Blob, filename?: string): void;
|
|
17
|
+
delete(name: string): void;
|
|
18
|
+
get(name: string): FormDataEntryValue | null;
|
|
19
|
+
getAll(name: string): FormDataEntryValue[];
|
|
20
|
+
has(name: string): boolean;
|
|
21
|
+
set(name: string, value: string): void;
|
|
22
|
+
set(name: string, blobValue: Blob, filename?: string): void;
|
|
23
|
+
forEach(callback: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
|
|
24
|
+
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
25
|
+
keys(): IterableIterator<string>;
|
|
26
|
+
values(): IterableIterator<FormDataEntryValue>;
|
|
27
|
+
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gjsify/formdata",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Web FormData implementation for Gjs",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "lib/esm/index.js",
|
|
7
|
+
"types": "lib/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"default": "./lib/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./globals": "./globals.mjs"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clear": "rm -rf lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs test.node.mjs || exit 0",
|
|
17
|
+
"check": "tsc --noEmit",
|
|
18
|
+
"build": "yarn build:gjsify && yarn build:types",
|
|
19
|
+
"build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}'",
|
|
20
|
+
"build:types": "tsc",
|
|
21
|
+
"build:test": "yarn build:test:gjs && yarn build:test:node",
|
|
22
|
+
"build:test:gjs": "gjsify build src/test.mts --app gjs --outfile test.gjs.mjs",
|
|
23
|
+
"build:test:node": "gjsify build src/test.mts --app node --outfile test.node.mjs",
|
|
24
|
+
"test": "yarn build:gjsify && yarn build:test && yarn test:node",
|
|
25
|
+
"test:gjs": "gjs -m test.gjs.mjs",
|
|
26
|
+
"test:node": "node test.node.mjs"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"gjs",
|
|
30
|
+
"node",
|
|
31
|
+
"formdata",
|
|
32
|
+
"web"
|
|
33
|
+
],
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@gjsify/cli": "^0.1.0",
|
|
36
|
+
"@gjsify/unit": "^0.1.0",
|
|
37
|
+
"@types/node": "^25.5.0",
|
|
38
|
+
"typescript": "^6.0.2"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/file.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File class — extends Blob with name and lastModified.
|
|
3
|
+
* Used by FormData when appending Blob values with a filename.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const _name = Symbol('File.name');
|
|
7
|
+
const _lastModified = Symbol('File.lastModified');
|
|
8
|
+
|
|
9
|
+
export class File extends Blob {
|
|
10
|
+
[_name]: string;
|
|
11
|
+
[_lastModified]: number;
|
|
12
|
+
|
|
13
|
+
readonly webkitRelativePath: string = '';
|
|
14
|
+
|
|
15
|
+
constructor(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag) {
|
|
16
|
+
super(fileBits, options);
|
|
17
|
+
this[_name] = String(fileName);
|
|
18
|
+
this[_lastModified] = options?.lastModified ?? Date.now();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get name(): string {
|
|
22
|
+
return this[_name];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
get lastModified(): number {
|
|
26
|
+
return this[_lastModified];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get [Symbol.toStringTag](): string {
|
|
30
|
+
return 'File';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize FormData to a multipart/form-data Blob.
|
|
3
|
+
*
|
|
4
|
+
* This is the equivalent of formdata-polyfill's formDataToBlob().
|
|
5
|
+
* Used by the Body mixin to convert FormData bodies for transmission.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { FormData } from './formdata.ts';
|
|
9
|
+
import { File } from './file.ts';
|
|
10
|
+
|
|
11
|
+
function generateBoundary(): string {
|
|
12
|
+
let boundary = '----formdata-';
|
|
13
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
14
|
+
for (let i = 0; i < 24; i++) {
|
|
15
|
+
boundary += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
16
|
+
}
|
|
17
|
+
return boundary;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function escape(str: string): string {
|
|
21
|
+
return str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Converts a FormData instance into a Blob with multipart/form-data content type.
|
|
26
|
+
*/
|
|
27
|
+
export function formDataToBlob(formData: FormData, boundary?: string): Blob {
|
|
28
|
+
boundary = boundary ?? generateBoundary();
|
|
29
|
+
const chunks: BlobPart[] = [];
|
|
30
|
+
const prefix = `--${boundary}\r\nContent-Disposition: form-data; name="`;
|
|
31
|
+
|
|
32
|
+
for (const [name, value] of formData.entries()) {
|
|
33
|
+
if (typeof value === 'string') {
|
|
34
|
+
chunks.push(
|
|
35
|
+
`${prefix}${escape(name)}"\r\n\r\n${value.replace(/\r(?!\n)|(?<!\r)\n/g, '\r\n')}\r\n`
|
|
36
|
+
);
|
|
37
|
+
} else {
|
|
38
|
+
// File or Blob
|
|
39
|
+
const file = value instanceof File
|
|
40
|
+
? value
|
|
41
|
+
: new File([value as Blob], 'blob', { type: (value as Blob).type });
|
|
42
|
+
|
|
43
|
+
chunks.push(
|
|
44
|
+
`${prefix}${escape(name)}"; filename="${escape(file.name)}"\r\n` +
|
|
45
|
+
`Content-Type: ${file.type || 'application/octet-stream'}\r\n\r\n`
|
|
46
|
+
);
|
|
47
|
+
chunks.push(file);
|
|
48
|
+
chunks.push('\r\n');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
chunks.push(`--${boundary}--`);
|
|
53
|
+
|
|
54
|
+
return new Blob(chunks, {
|
|
55
|
+
type: `multipart/form-data; boundary=${boundary}`,
|
|
56
|
+
});
|
|
57
|
+
}
|
package/src/formdata.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormData implementation for GJS.
|
|
3
|
+
* Spec: https://xhr.spec.whatwg.org/#interface-formdata
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { File } from './file.ts';
|
|
7
|
+
|
|
8
|
+
type FormDataEntryValue = string | File;
|
|
9
|
+
interface FormDataEntry {
|
|
10
|
+
name: string;
|
|
11
|
+
value: FormDataEntryValue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const _entries = Symbol('FormData.entries');
|
|
15
|
+
|
|
16
|
+
function normalizeValue(name: string, value: FormDataEntryValue | Blob, filename?: string): FormDataEntryValue {
|
|
17
|
+
if (typeof value === 'string') {
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// If value is a Blob but not a File, wrap it in a File
|
|
22
|
+
if (value instanceof Blob && !(value instanceof File)) {
|
|
23
|
+
value = new File([value], filename ?? 'blob', { type: value.type });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// If value is a File and filename is given, create new File with that name
|
|
27
|
+
if (value instanceof File && filename !== undefined) {
|
|
28
|
+
value = new File([value], filename, {
|
|
29
|
+
type: value.type,
|
|
30
|
+
lastModified: value.lastModified,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return value as FormDataEntryValue;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class FormData {
|
|
38
|
+
[_entries]: FormDataEntry[] = [];
|
|
39
|
+
|
|
40
|
+
constructor() {
|
|
41
|
+
// No-arg constructor per spec
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
append(name: string, value: string): void;
|
|
45
|
+
append(name: string, blobValue: Blob, filename?: string): void;
|
|
46
|
+
append(name: string, value: string | Blob, filename?: string): void {
|
|
47
|
+
this[_entries].push({
|
|
48
|
+
name: String(name),
|
|
49
|
+
value: normalizeValue(name, value as FormDataEntryValue | Blob, filename),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
delete(name: string): void {
|
|
54
|
+
const n = String(name);
|
|
55
|
+
this[_entries] = this[_entries].filter(e => e.name !== n);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
get(name: string): FormDataEntryValue | null {
|
|
59
|
+
const n = String(name);
|
|
60
|
+
const entry = this[_entries].find(e => e.name === n);
|
|
61
|
+
return entry ? entry.value : null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
getAll(name: string): FormDataEntryValue[] {
|
|
65
|
+
const n = String(name);
|
|
66
|
+
return this[_entries].filter(e => e.name === n).map(e => e.value);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
has(name: string): boolean {
|
|
70
|
+
const n = String(name);
|
|
71
|
+
return this[_entries].some(e => e.name === n);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
set(name: string, value: string): void;
|
|
75
|
+
set(name: string, blobValue: Blob, filename?: string): void;
|
|
76
|
+
set(name: string, value: string | Blob, filename?: string): void {
|
|
77
|
+
const n = String(name);
|
|
78
|
+
const normalized = normalizeValue(n, value as FormDataEntryValue | Blob, filename);
|
|
79
|
+
let found = false;
|
|
80
|
+
this[_entries] = this[_entries].filter(e => {
|
|
81
|
+
if (e.name === n) {
|
|
82
|
+
if (!found) {
|
|
83
|
+
found = true;
|
|
84
|
+
e.value = normalized;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
return false; // remove duplicates
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
});
|
|
91
|
+
if (!found) {
|
|
92
|
+
this[_entries].push({ name: n, value: normalized });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
forEach(callback: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void {
|
|
97
|
+
for (const entry of this[_entries]) {
|
|
98
|
+
callback.call(thisArg, entry.value, entry.name, this);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
*entries(): IterableIterator<[string, FormDataEntryValue]> {
|
|
103
|
+
for (const entry of this[_entries]) {
|
|
104
|
+
yield [entry.name, entry.value];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
*keys(): IterableIterator<string> {
|
|
109
|
+
for (const entry of this[_entries]) {
|
|
110
|
+
yield entry.name;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
*values(): IterableIterator<FormDataEntryValue> {
|
|
115
|
+
for (const entry of this[_entries]) {
|
|
116
|
+
yield entry.value;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]> {
|
|
121
|
+
return this.entries();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
get [Symbol.toStringTag](): string {
|
|
125
|
+
return 'FormData';
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { describe, it, expect } from '@gjsify/unit';
|
|
2
|
+
import { FormData, File, formDataToBlob } from 'formdata';
|
|
3
|
+
|
|
4
|
+
export default async () => {
|
|
5
|
+
await describe('FormData', async () => {
|
|
6
|
+
await describe('constructor', async () => {
|
|
7
|
+
await it('should create an empty FormData', async () => {
|
|
8
|
+
const fd = new FormData();
|
|
9
|
+
expect([...fd.entries()].length).toBe(0);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
await describe('append and get', async () => {
|
|
14
|
+
await it('should append and get string values', async () => {
|
|
15
|
+
const fd = new FormData();
|
|
16
|
+
fd.append('key', 'value');
|
|
17
|
+
expect(fd.get('key')).toBe('value');
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
await it('should append multiple values for same key', async () => {
|
|
21
|
+
const fd = new FormData();
|
|
22
|
+
fd.append('key', 'a');
|
|
23
|
+
fd.append('key', 'b');
|
|
24
|
+
const all = fd.getAll('key');
|
|
25
|
+
expect(all.length).toBe(2);
|
|
26
|
+
expect(all[0]).toBe('a');
|
|
27
|
+
expect(all[1]).toBe('b');
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
await it('should return null for missing key', async () => {
|
|
31
|
+
const fd = new FormData();
|
|
32
|
+
expect(fd.get('missing')).toBe(null);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
await it('should return empty array for missing key with getAll', async () => {
|
|
36
|
+
const fd = new FormData();
|
|
37
|
+
expect(fd.getAll('missing').length).toBe(0);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
await describe('set', async () => {
|
|
42
|
+
await it('should set a value replacing previous', async () => {
|
|
43
|
+
const fd = new FormData();
|
|
44
|
+
fd.append('key', 'a');
|
|
45
|
+
fd.append('key', 'b');
|
|
46
|
+
fd.set('key', 'c');
|
|
47
|
+
expect(fd.getAll('key').length).toBe(1);
|
|
48
|
+
expect(fd.get('key')).toBe('c');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
await it('should add if key does not exist', async () => {
|
|
52
|
+
const fd = new FormData();
|
|
53
|
+
fd.set('key', 'value');
|
|
54
|
+
expect(fd.get('key')).toBe('value');
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
await describe('delete', async () => {
|
|
59
|
+
await it('should remove all entries for a key', async () => {
|
|
60
|
+
const fd = new FormData();
|
|
61
|
+
fd.append('key', 'a');
|
|
62
|
+
fd.append('key', 'b');
|
|
63
|
+
fd.append('other', 'c');
|
|
64
|
+
fd.delete('key');
|
|
65
|
+
expect(fd.has('key')).toBe(false);
|
|
66
|
+
expect(fd.has('other')).toBe(true);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
await describe('has', async () => {
|
|
71
|
+
await it('should return true for existing key', async () => {
|
|
72
|
+
const fd = new FormData();
|
|
73
|
+
fd.append('key', 'value');
|
|
74
|
+
expect(fd.has('key')).toBe(true);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
await it('should return false for missing key', async () => {
|
|
78
|
+
const fd = new FormData();
|
|
79
|
+
expect(fd.has('key')).toBe(false);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
await describe('iterators', async () => {
|
|
84
|
+
await it('should iterate entries', async () => {
|
|
85
|
+
const fd = new FormData();
|
|
86
|
+
fd.append('a', '1');
|
|
87
|
+
fd.append('b', '2');
|
|
88
|
+
const entries = [...fd.entries()];
|
|
89
|
+
expect(entries.length).toBe(2);
|
|
90
|
+
expect(entries[0][0]).toBe('a');
|
|
91
|
+
expect(entries[0][1]).toBe('1');
|
|
92
|
+
expect(entries[1][0]).toBe('b');
|
|
93
|
+
expect(entries[1][1]).toBe('2');
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
await it('should iterate keys', async () => {
|
|
97
|
+
const fd = new FormData();
|
|
98
|
+
fd.append('a', '1');
|
|
99
|
+
fd.append('b', '2');
|
|
100
|
+
const keys = [...fd.keys()];
|
|
101
|
+
expect(keys.length).toBe(2);
|
|
102
|
+
expect(keys[0]).toBe('a');
|
|
103
|
+
expect(keys[1]).toBe('b');
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
await it('should iterate values', async () => {
|
|
107
|
+
const fd = new FormData();
|
|
108
|
+
fd.append('a', '1');
|
|
109
|
+
fd.append('b', '2');
|
|
110
|
+
const values = [...fd.values()];
|
|
111
|
+
expect(values.length).toBe(2);
|
|
112
|
+
expect(values[0]).toBe('1');
|
|
113
|
+
expect(values[1]).toBe('2');
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
await it('should work with for...of', async () => {
|
|
117
|
+
const fd = new FormData();
|
|
118
|
+
fd.append('x', 'y');
|
|
119
|
+
let count = 0;
|
|
120
|
+
for (const [key, val] of fd) {
|
|
121
|
+
expect(key).toBe('x');
|
|
122
|
+
expect(val).toBe('y');
|
|
123
|
+
count++;
|
|
124
|
+
}
|
|
125
|
+
expect(count).toBe(1);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
await describe('forEach', async () => {
|
|
130
|
+
await it('should call callback for each entry', async () => {
|
|
131
|
+
const fd = new FormData();
|
|
132
|
+
fd.append('a', '1');
|
|
133
|
+
fd.append('b', '2');
|
|
134
|
+
const results: [string, string][] = [];
|
|
135
|
+
fd.forEach((value, key) => {
|
|
136
|
+
results.push([key, value as string]);
|
|
137
|
+
});
|
|
138
|
+
expect(results.length).toBe(2);
|
|
139
|
+
expect(results[0][0]).toBe('a');
|
|
140
|
+
expect(results[1][0]).toBe('b');
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
await describe('Symbol.toStringTag', async () => {
|
|
145
|
+
await it('should return FormData', async () => {
|
|
146
|
+
const fd = new FormData();
|
|
147
|
+
expect(Object.prototype.toString.call(fd)).toBe('[object FormData]');
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
await describe('File', async () => {
|
|
153
|
+
await it('should create a File with name', async () => {
|
|
154
|
+
const f = new File(['hello'], 'test.txt', { type: 'text/plain' });
|
|
155
|
+
expect(f.name).toBe('test.txt');
|
|
156
|
+
expect(f.type).toBe('text/plain');
|
|
157
|
+
expect(f.size).toBe(5);
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
await it('should have lastModified', async () => {
|
|
161
|
+
const now = Date.now();
|
|
162
|
+
const f = new File(['data'], 'file.bin');
|
|
163
|
+
expect(f.lastModified >= now - 1000).toBeTruthy();
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
await it('should accept custom lastModified', async () => {
|
|
167
|
+
const f = new File(['data'], 'file.bin', { lastModified: 12345 });
|
|
168
|
+
expect(f.lastModified).toBe(12345);
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
await it('should have correct Symbol.toStringTag', async () => {
|
|
172
|
+
const f = new File([], 'empty');
|
|
173
|
+
expect(Object.prototype.toString.call(f)).toBe('[object File]');
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
await describe('FormData with Blob/File', async () => {
|
|
178
|
+
await it('should wrap Blob in File when appending', async () => {
|
|
179
|
+
const fd = new FormData();
|
|
180
|
+
const blob = new Blob(['data'], { type: 'text/plain' });
|
|
181
|
+
fd.append('file', blob, 'test.txt');
|
|
182
|
+
const val = fd.get('file');
|
|
183
|
+
expect(val instanceof File).toBeTruthy();
|
|
184
|
+
expect((val as File).name).toBe('test.txt');
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
await it('should keep File as File', async () => {
|
|
188
|
+
const fd = new FormData();
|
|
189
|
+
const file = new File(['data'], 'original.txt');
|
|
190
|
+
fd.append('file', file);
|
|
191
|
+
const val = fd.get('file');
|
|
192
|
+
expect(val instanceof File).toBeTruthy();
|
|
193
|
+
expect((val as File).name).toBe('original.txt');
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
await describe('formDataToBlob', async () => {
|
|
198
|
+
await it('should create a Blob from FormData', async () => {
|
|
199
|
+
const fd = new FormData();
|
|
200
|
+
fd.append('name', 'world');
|
|
201
|
+
const blob = formDataToBlob(fd);
|
|
202
|
+
expect(blob instanceof Blob).toBeTruthy();
|
|
203
|
+
expect(blob.type.startsWith('multipart/form-data; boundary=')).toBeTruthy();
|
|
204
|
+
const text = await blob.text();
|
|
205
|
+
expect(text.includes('name="name"')).toBeTruthy();
|
|
206
|
+
expect(text.includes('world')).toBeTruthy();
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
await it('should include file entries', async () => {
|
|
210
|
+
const fd = new FormData();
|
|
211
|
+
fd.append('doc', new File(['content'], 'doc.txt', { type: 'text/plain' }));
|
|
212
|
+
const blob = formDataToBlob(fd);
|
|
213
|
+
const text = await blob.text();
|
|
214
|
+
expect(text.includes('filename="doc.txt"')).toBeTruthy();
|
|
215
|
+
expect(text.includes('Content-Type: text/plain')).toBeTruthy();
|
|
216
|
+
expect(text.includes('content')).toBeTruthy();
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
package/src/index.ts
ADDED
package/src/test.mts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"types": [
|
|
7
|
+
"node"
|
|
8
|
+
],
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"emitDeclarationOnly": true,
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"outDir": "lib",
|
|
14
|
+
"rootDir": "src",
|
|
15
|
+
"declarationDir": "lib/types",
|
|
16
|
+
"composite": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"allowJs": true,
|
|
19
|
+
"checkJs": false,
|
|
20
|
+
"strict": false
|
|
21
|
+
},
|
|
22
|
+
"include": [
|
|
23
|
+
"src/**/*.ts"
|
|
24
|
+
],
|
|
25
|
+
"exclude": [
|
|
26
|
+
"src/test.ts",
|
|
27
|
+
"src/test.mts",
|
|
28
|
+
"src/**/*.spec.ts",
|
|
29
|
+
"src/**/*.spec.mts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -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.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.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/typescript/lib/lib.esnext.full.d.ts","./src/file.ts","./src/formdata.ts","./src/form-data-to-blob.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/blob.d.ts","../../../node_modules/@types/node/web-globals/console.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/encoding.d.ts","../../../node_modules/@types/node/web-globals/events.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/round-robin-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/importmeta.d.ts","../../../node_modules/@types/node/web-globals/messaging.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/performance.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/@types/node/web-globals/timers.d.ts","../../../node_modules/@types/node/web-globals/url.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/inspector/promises.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/path/posix.d.ts","../../../node_modules/@types/node/path/win32.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/quic.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/consumers.d.ts","../../../node_modules/@types/node/stream/promises.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/test/reporters.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/util/types.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"],"fileIdsList":[[100,160,161,163,171,175,178,180,181,182,195],[100,162,163,171,175,178,180,181,182,195],[163,171,175,178,180,181,182,195],[100,163,171,175,178,180,181,182,195,203],[100,163,164,169,171,174,175,178,180,181,182,184,195,200,212],[100,163,164,165,171,174,175,178,180,181,182,195],[100,163,171,175,178,180,181,182,195],[100,163,166,171,175,178,180,181,182,195,213],[100,163,167,168,171,175,178,180,181,182,186,195],[100,163,168,171,175,178,180,181,182,195,200,209],[100,163,169,171,174,175,178,180,181,182,184,195],[100,162,163,170,171,175,178,180,181,182,195],[100,163,171,172,175,178,180,181,182,195],[100,163,171,173,174,175,178,180,181,182,195],[100,162,163,171,174,175,178,180,181,182,195],[100,163,171,174,175,176,178,180,181,182,195,200,212],[100,163,171,174,175,176,178,180,181,182,195,200,203],[100,150,163,171,174,175,177,178,180,181,182,184,195,200,212],[100,163,171,174,175,177,178,180,181,182,184,195,200,209,212],[100,163,171,175,177,178,179,180,181,182,195,200,209,212],[98,99,100,101,102,103,104,105,106,107,108,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,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219],[100,163,171,174,175,178,180,181,182,195],[100,163,171,175,178,180,182,195],[100,163,171,175,178,180,181,182,183,195,212],[100,163,171,174,175,178,180,181,182,184,195,200],[100,163,171,175,178,180,181,182,186,195],[100,163,171,175,178,180,181,182,187,195],[100,163,171,174,175,178,180,181,182,190,195],[100,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,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219],[100,163,171,175,178,180,181,182,192,195],[100,163,171,175,178,180,181,182,193,195],[100,163,168,171,175,178,180,181,182,184,195,203],[100,163,171,174,175,178,180,181,182,195,196],[100,163,171,175,178,180,181,182,195,197,213,216],[100,163,171,174,175,178,180,181,182,195,200,202,203],[100,163,171,175,178,180,181,182,195,201,203],[100,163,171,175,178,180,181,182,195,203,213],[100,163,171,175,178,180,181,182,195,204],[100,160,163,171,175,178,180,181,182,195,200,206,212],[100,163,171,175,178,180,181,182,195,200,205],[100,163,171,174,175,178,180,181,182,195,207,208],[100,163,171,175,178,180,181,182,195,207,208],[100,163,168,171,175,178,180,181,182,184,195,200,209],[100,163,171,175,178,180,181,182,195,210],[100,163,171,175,178,180,181,182,184,195,211],[100,163,171,175,177,178,180,181,182,193,195,212],[100,163,171,175,178,180,181,182,195,213,214],[100,163,168,171,175,178,180,181,182,195,214],[100,163,171,175,178,180,181,182,195,200,215],[100,163,171,175,178,180,181,182,183,195,216],[100,163,171,175,178,180,181,182,195,217],[100,163,166,171,175,178,180,181,182,195],[100,163,168,171,175,178,180,181,182,195],[100,163,171,175,178,180,181,182,195,213],[100,150,163,171,175,178,180,181,182,195],[100,163,171,175,178,180,181,182,195,212],[100,163,171,175,178,180,181,182,195,218],[100,163,171,175,178,180,181,182,190,195],[100,163,171,175,178,180,181,182,195,208],[100,150,163,171,174,175,176,178,180,181,182,190,195,200,203,212,215,216,218],[100,163,171,175,178,180,181,182,195,200,219],[100,115,118,121,122,163,171,175,178,180,181,182,195,212],[100,118,163,171,175,178,180,181,182,195,200,212],[100,118,122,163,171,175,178,180,181,182,195,212],[100,163,171,175,178,180,181,182,195,200],[100,112,163,171,175,178,180,181,182,195],[100,116,163,171,175,178,180,181,182,195],[100,114,115,118,163,171,175,178,180,181,182,195,212],[100,163,171,175,178,180,181,182,184,195,209],[100,163,171,175,178,180,181,182,195,220],[100,112,163,171,175,178,180,181,182,195,220],[100,114,118,163,171,175,178,180,181,182,184,195,212],[100,109,110,111,113,117,163,171,174,175,178,180,181,182,195,200,212],[100,118,127,135,163,171,175,178,180,181,182,195],[100,110,116,163,171,175,178,180,181,182,195],[100,118,144,145,163,171,175,178,180,181,182,195],[100,110,113,118,163,171,175,178,180,181,182,195,203,212,220],[100,118,163,171,175,178,180,181,182,195],[100,114,118,163,171,175,178,180,181,182,195,212],[100,109,163,171,175,178,180,181,182,195],[100,112,113,114,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,163,171,175,178,180,181,182,195],[100,118,137,140,163,171,175,178,180,181,182,195],[100,118,127,128,129,163,171,175,178,180,181,182,195],[100,116,118,128,130,163,171,175,178,180,181,182,195],[100,117,163,171,175,178,180,181,182,195],[100,110,112,118,163,171,175,178,180,181,182,195],[100,118,122,128,130,163,171,175,178,180,181,182,195],[100,122,163,171,175,178,180,181,182,195],[100,116,118,121,163,171,175,178,180,181,182,195,212],[100,110,114,118,127,163,171,175,178,180,181,182,195],[100,118,137,163,171,175,178,180,181,182,195],[100,130,163,171,175,178,180,181,182,195],[100,112,118,144,163,171,175,178,180,181,182,195,203,218,220],[94,95,100,163,171,175,178,180,181,182,195],[94,100,163,171,175,178,180,181,182,195],[94,95,96,100,163,171,175,178,180,181,182,195]],"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":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"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":"ef4a897cd2a3f91000c10264e400b3667c7e51e1b7365f03b62e8081dc53bde6","impliedFormat":1},{"version":"051f4b258b75383402e4e44bd36404be67f0fcfb0c022b1917c25bbdfdbeaff0","signature":"73ede905a7c1b19f5b30df183283845fc7878de30ddc46e774581c352e6ac9cb"},{"version":"57a906a4e11a87a52f8d14868e7e14b935909d14dea4fa6c96cde2fcd95d07a6","signature":"69ec221363249c162c9fd312ac29a54712328597f8ebebc178ab46ed14f44cf1"},{"version":"75c66936ab5216cd6b1d53975ca1c8ac518f106f57d3c9645f198dc6681f0fff","signature":"83236c6001adeee8b2a2154e711c605b64069ccbe2e8169686c306ce4c75c0dd"},"11d80b2cdbccca0a524d4542298caf6b861c7d4018249b631936f1c5c242e35f",{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"438b41419b1df9f1fbe33b5e1b18f5853432be205991d1b19f5b7f351675541e","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"10ec5e82144dfac6f04fa5d1d6c11763b3e4dbbac6d99101427219ab3e2ae887","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"074de5b2fdead0165a2757e3aaef20f27a6347b1c36adea27d51456795b37682","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"24371e69a38fc33e268d4a8716dbcda430d6c2c414a99ff9669239c4b8f40dea","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"3e11fce78ad8c0e1d1db4ba5f0652285509be3acdd519529bc8fcef85f7dafd9","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","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":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"c63b9ada8c72f95aac5db92aea07e5e87ec810353cdf63b2d78f49a58662cf6c","impliedFormat":1},{"version":"1cc2a09e1a61a5222d4174ab358a9f9de5e906afe79dbf7363d871a7edda3955","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"b64d4d1c5f877f9c666e98e833f0205edb9384acc46e98a1fef344f64d6aba44","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"c9381908473a1c92cb8c516b184e75f4d226dad95c3a85a5af35f670064d9a2f","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"3fad5618174d74a34ee006406d4eb37e8d07dd62eb1315dbf52f48d31a337547","impliedFormat":1},{"version":"7e49f52a159435fc8df4de9dc377ef5860732ca2dc9efec1640531d3cf5da7a3","impliedFormat":1},{"version":"dd4bde4bdc2e5394aed6855e98cf135dfdf5dd6468cad842e03116d31bbcc9bc","impliedFormat":1},{"version":"4d4e879009a84a47c05350b8dca823036ba3a29a3038efed1be76c9f81e45edf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b50a819485ffe0d237bf0d131e92178d14d11e2aa873d73615a9ec578b341f5","impliedFormat":1},{"version":"9ba13b47cb450a438e3076c4a3f6afb9dc85e17eae50f26d4b2d72c0688c9251","impliedFormat":1},{"version":"b64cd4401633ea4ecadfd700ddc8323a13b63b106ac7127c1d2726f32424622c","impliedFormat":1},{"version":"37c6e5fe5715814412b43cc9b50b24c67a63c4e04e753e0d1305970d65417a60","impliedFormat":1},{"version":"1d024184fb57c58c5c91823f9d10b4915a4867b7934e89115fd0d861a9df27c8","impliedFormat":1},{"version":"ee0e4946247f842c6dd483cbb60a5e6b484fee07996e3a7bc7343dfb68a04c5d","impliedFormat":1},{"version":"ef051f42b7e0ef5ca04552f54c4552eac84099d64b6c5ad0ef4033574b6035b8","impliedFormat":1},{"version":"853a43154f1d01b0173d9cbd74063507ece57170bad7a3b68f3fa1229ad0a92f","impliedFormat":1},{"version":"56231e3c39a031bfb0afb797690b20ed4537670c93c0318b72d5180833d98b72","impliedFormat":1},{"version":"5cc7c39031bfd8b00ad58f32143d59eb6ffc24f5d41a20931269011dccd36c5e","impliedFormat":1},{"version":"12d602a8fe4c2f2ba4f7804f5eda8ba07e0c83bf5cf0cda8baffa2e9967bfb77","affectsGlobalScope":true,"impliedFormat":1},{"version":"a856ab781967b62b288dfd85b860bef0e62f005ed4b1b8fa25c53ce17856acaf","impliedFormat":1},{"version":"cc25940cfb27aa538e60d465f98bb5068d4d7d33131861ace43f04fe6947d68f","impliedFormat":1},{"version":"8db46b61a690f15b245cf16270db044dc047dce9f93b103a59f50262f677ea1f","impliedFormat":1},{"version":"01ff95aa1443e3f7248974e5a771f513cb2ac158c8898f470a1792f817bee497","impliedFormat":1},{"version":"757227c8b345c57d76f7f0e3bbad7a91ffca23f1b2547cbed9e10025816c9cb7","impliedFormat":1},{"version":"959d0327c96dd9bb5521f3ed6af0c435996504cc8dd46baa8e12cb3b3518cef1","impliedFormat":1},{"version":"e1c1a0b4d1ead0de9eca52203aeb1f771f21e6238d6fcd15aa56ac2a02f1b7bf","impliedFormat":1},{"version":"101f482fd48cb4c7c0468dcc6d62c843d842977aea6235644b1edd05e81fbf22","impliedFormat":1},{"version":"266bee0a41e9c3ba335583e21e9277ae03822402cf5e8e1d99f5196853613b98","affectsGlobalScope":true,"impliedFormat":1},{"version":"386606f8a297988535cb1401959041cfa7f59d54b8a9ed09738e65c98684c976","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"3ef397f12387eff17f550bc484ea7c27d21d43816bbe609d495107f44b97e933","impliedFormat":1},{"version":"1023282e2ba810bc07905d3668349fbd37a26411f0c8f94a70ef3c05fe523fcf","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"e236b5eba291f51bdf32c231673e6cab81b5410850e61f51a7a524dddadc0f95","impliedFormat":1},{"version":"ce8653341224f8b45ff46d2a06f2cacb96f841f768a886c9d8dd8ec0878b11bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f2c62938251b45715fd2a9887060ec4fbc8724727029d1cbce373747252bdd7","impliedFormat":1},{"version":"e3ace08b6bbd84655d41e244677b474fd995923ffef7149ddb68af8848b60b05","impliedFormat":1},{"version":"132580b0e86c48fab152bab850fc57a4b74fe915c8958d2ccb052b809a44b61c","impliedFormat":1},{"version":"90a278f5fab7557e69e97056c0841adf269c42697194f0bd5c5e69152637d4b3","impliedFormat":1},{"version":"69c9a5a9392e8564bd81116e1ed93b13205201fb44cb35a7fde8c9f9e21c4b23","impliedFormat":1},{"version":"5f8fc37f8434691ffac1bfd8fc2634647da2c0e84253ab5d2dd19a7718915b35","impliedFormat":1},{"version":"5981c2340fd8b076cae8efbae818d42c11ffc615994cb060b1cd390795f1be2b","impliedFormat":1},{"version":"f263485c9ca90df9fe7bb3a906db9701997dc6cae86ace1f8106ac8d2f7f677b","impliedFormat":1},{"version":"1edcf2f36fc332615846bde6dcc71a8fe526065505bc5e3dcfd65a14becdf698","affectsGlobalScope":true,"impliedFormat":1},{"version":"0250da3eb85c99624f974e77ef355cdf86f43980251bc371475c2b397ba55bcd","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"3d3a5f27ffbc06c885dd4d5f9ee20de61faf877fe2c3a7051c4825903d9a7fdc","impliedFormat":1},{"version":"12806f9f085598ef930edaf2467a5fa1789a878fba077cd27e85dc5851e11834","impliedFormat":1},{"version":"1dbca38aa4b0db1f4f9e6edacc2780af7e028b733d2a98dd3598cd235ca0c97d","impliedFormat":1},{"version":"a43fe41c33d0a192a0ecaf9b92e87bef3709c9972e6d53c42c49251ccb962d69","impliedFormat":1},{"version":"a177959203c017fad3ecc4f3d96c8757a840957a4959a3ae00dab9d35961ca6c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc727ccf9b36e257ff982ea0badeffbfc2c151802f741bddff00c6af3b784cf","impliedFormat":1},{"version":"19143c930aef7ccf248549f3e78992f2f1049118ec5d4622e95025057d8e392b","impliedFormat":1},{"version":"4844a4c9b4b1e812b257676ed8a80b3f3be0e29bf05e742cc2ea9c3c6865e6c6","impliedFormat":1},{"version":"064878a60367e0407c42fb7ba02a2ea4d83257357dc20088e549bd4d89433e9c","impliedFormat":1},{"version":"cca8917838a876e2d7016c9b6af57cbf11fdf903c5fdd8e613fa31840b2957bf","impliedFormat":1},{"version":"d91ae55e4282c22b9c21bc26bd3ef637d3fe132507b10529ae68bf76f5de785b","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"7e8a671604329e178bb479c8f387715ebd40a091fc4a7552a0a75c2f3a21c65c","impliedFormat":1},{"version":"41ef7992c555671a8fe54db302788adefa191ded810a50329b79d20a6772d14c","impliedFormat":1},{"version":"041a7781b9127ab568d2cdcce62c58fdea7c7407f40b8c50045d7866a2727130","impliedFormat":1},{"version":"4c5e90ddbcd177ad3f2ffc909ae217c87820f1e968f6959e4b6ba38a8cec935e","impliedFormat":1},{"version":"b70dd9a44e1ac42f030bb12e7d79117eac7cb74170d72d381a1e7913320af23a","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[[94,97]],"options":{"allowImportingTsExtensions":true,"allowJs":true,"checkJs":false,"composite":true,"declaration":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":99,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"strict":false,"target":99},"referencedMap":[[160,1],[161,1],[162,2],[100,3],[163,4],[164,5],[165,6],[98,7],[166,8],[167,9],[168,10],[169,11],[170,12],[171,13],[172,13],[173,14],[174,15],[175,16],[176,17],[101,7],[99,7],[177,18],[178,19],[179,20],[220,21],[180,22],[181,23],[182,22],[183,24],[184,25],[186,26],[187,27],[188,27],[189,27],[190,28],[191,29],[192,30],[193,31],[194,32],[195,33],[196,33],[197,34],[198,7],[199,7],[200,35],[201,36],[202,35],[203,37],[204,38],[205,39],[206,40],[207,41],[208,42],[209,43],[210,44],[211,45],[212,46],[213,47],[214,48],[215,49],[216,50],[217,51],[102,22],[103,7],[104,52],[105,53],[106,7],[107,54],[108,7],[151,55],[152,56],[153,57],[154,57],[155,58],[156,7],[157,4],[158,59],[159,56],[218,60],[219,61],[185,7],[91,7],[92,7],[16,7],[14,7],[15,7],[20,7],[19,7],[2,7],[21,7],[22,7],[23,7],[24,7],[25,7],[26,7],[27,7],[28,7],[3,7],[29,7],[30,7],[4,7],[31,7],[35,7],[32,7],[33,7],[34,7],[36,7],[37,7],[38,7],[5,7],[39,7],[40,7],[41,7],[42,7],[6,7],[46,7],[43,7],[44,7],[45,7],[47,7],[7,7],[48,7],[53,7],[54,7],[49,7],[50,7],[51,7],[52,7],[8,7],[58,7],[55,7],[56,7],[57,7],[59,7],[9,7],[60,7],[61,7],[62,7],[64,7],[63,7],[65,7],[66,7],[10,7],[67,7],[68,7],[69,7],[11,7],[70,7],[71,7],[72,7],[73,7],[74,7],[75,7],[12,7],[76,7],[77,7],[78,7],[79,7],[80,7],[1,7],[81,7],[82,7],[13,7],[83,7],[84,7],[85,7],[86,7],[93,7],[87,7],[88,7],[89,7],[90,7],[18,7],[17,7],[127,62],[139,63],[124,64],[140,65],[149,66],[115,67],[116,68],[114,69],[148,70],[143,71],[147,72],[118,73],[136,74],[117,75],[146,76],[112,77],[113,71],[119,78],[120,7],[126,79],[123,78],[110,80],[150,81],[141,82],[130,83],[129,78],[131,84],[134,85],[128,86],[132,87],[144,70],[121,88],[122,89],[135,90],[111,65],[138,91],[137,78],[125,89],[133,92],[142,7],[109,7],[145,93],[94,7],[96,94],[95,95],[97,96]],"latestChangedDtsFile":"./lib/types/index.d.ts","version":"6.0.2"}
|