@gjsify/utils 0.3.16 → 0.3.18

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/lib/esm/base64.js CHANGED
@@ -1,74 +1 @@
1
- //#region src/base64.ts
2
- const B64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3
- const B64_LOOKUP = new Uint8Array(256);
4
- for (let i = 0; i < B64_CHARS.length; i++) B64_LOOKUP[B64_CHARS.charCodeAt(i)] = i;
5
- /** Decode a base64 string to a binary string. Uses native atob when available. */
6
- function atobPolyfill(str) {
7
- if (typeof globalThis.atob === "function") return globalThis.atob(str);
8
- const cleaned = str.replace(/[=\s]/g, "");
9
- let result = "";
10
- let bits = 0;
11
- let collected = 0;
12
- for (let i = 0; i < cleaned.length; i++) {
13
- bits = bits << 6 | B64_LOOKUP[cleaned.charCodeAt(i)];
14
- collected += 6;
15
- if (collected >= 8) {
16
- collected -= 8;
17
- result += String.fromCharCode(bits >> collected & 255);
18
- }
19
- }
20
- return result;
21
- }
22
- /** Encode a binary string to base64. Uses native btoa when available. */
23
- function btoaPolyfill(str) {
24
- if (typeof globalThis.btoa === "function") return globalThis.btoa(str);
25
- let result = "";
26
- let i = 0;
27
- for (; i + 2 < str.length; i += 3) {
28
- const n = str.charCodeAt(i) << 16 | str.charCodeAt(i + 1) << 8 | str.charCodeAt(i + 2);
29
- result += B64_CHARS[n >> 18 & 63] + B64_CHARS[n >> 12 & 63] + B64_CHARS[n >> 6 & 63] + B64_CHARS[n & 63];
30
- }
31
- if (i + 1 === str.length) {
32
- const n = str.charCodeAt(i) << 16;
33
- result += B64_CHARS[n >> 18 & 63] + B64_CHARS[n >> 12 & 63] + "==";
34
- } else if (i + 2 === str.length) {
35
- const n = str.charCodeAt(i) << 16 | str.charCodeAt(i + 1) << 8;
36
- result += B64_CHARS[n >> 18 & 63] + B64_CHARS[n >> 12 & 63] + B64_CHARS[n >> 6 & 63] + "=";
37
- }
38
- return result;
39
- }
40
- /** Decode a base64 string directly to Uint8Array (avoids lossy atob string round-trip). */
41
- function base64Decode(str) {
42
- const cleaned = str.replace(/[=\s]/g, "");
43
- const bytes = new Uint8Array(cleaned.length * 3 >> 2);
44
- let bits = 0;
45
- let collected = 0;
46
- let pos = 0;
47
- for (let i = 0; i < cleaned.length; i++) {
48
- bits = bits << 6 | B64_LOOKUP[cleaned.charCodeAt(i)];
49
- collected += 6;
50
- if (collected >= 8) {
51
- collected -= 8;
52
- bytes[pos++] = bits >> collected & 255;
53
- }
54
- }
55
- return bytes.subarray(0, pos);
56
- }
57
- /** Encode a Uint8Array to base64 string. */
58
- function base64Encode(bytes) {
59
- let result = "";
60
- const len = bytes.length;
61
- for (let i = 0; i < len; i += 3) {
62
- const b0 = bytes[i];
63
- const b1 = i + 1 < len ? bytes[i + 1] : 0;
64
- const b2 = i + 2 < len ? bytes[i + 2] : 0;
65
- result += B64_CHARS[b0 >> 2];
66
- result += B64_CHARS[(b0 & 3) << 4 | b1 >> 4];
67
- result += i + 1 < len ? B64_CHARS[(b1 & 15) << 2 | b2 >> 6] : "=";
68
- result += i + 2 < len ? B64_CHARS[b2 & 63] : "=";
69
- }
70
- return result;
71
- }
72
-
73
- //#endregion
74
- export { atobPolyfill, base64Decode, base64Encode, btoaPolyfill };
1
+ const e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,t=new Uint8Array(256);for(let n=0;n<64;n++)t[e.charCodeAt(n)]=n;function n(e){if(typeof globalThis.atob==`function`)return globalThis.atob(e);let n=e.replace(/[=\s]/g,``),r=``,i=0,a=0;for(let e=0;e<n.length;e++)i=i<<6|t[n.charCodeAt(e)],a+=6,a>=8&&(a-=8,r+=String.fromCharCode(i>>a&255));return r}function r(t){if(typeof globalThis.btoa==`function`)return globalThis.btoa(t);let n=``,r=0;for(;r+2<t.length;r+=3){let i=t.charCodeAt(r)<<16|t.charCodeAt(r+1)<<8|t.charCodeAt(r+2);n+=e[i>>18&63]+e[i>>12&63]+e[i>>6&63]+e[i&63]}if(r+1===t.length){let i=t.charCodeAt(r)<<16;n+=e[i>>18&63]+e[i>>12&63]+`==`}else if(r+2===t.length){let i=t.charCodeAt(r)<<16|t.charCodeAt(r+1)<<8;n+=e[i>>18&63]+e[i>>12&63]+e[i>>6&63]+`=`}return n}function i(e){let n=e.replace(/[=\s]/g,``),r=new Uint8Array(n.length*3>>2),i=0,a=0,o=0;for(let e=0;e<n.length;e++)i=i<<6|t[n.charCodeAt(e)],a+=6,a>=8&&(a-=8,r[o++]=i>>a&255);return r.subarray(0,o)}function a(t){let n=``,r=t.length;for(let i=0;i<r;i+=3){let a=t[i],o=i+1<r?t[i+1]:0,s=i+2<r?t[i+2]:0;n+=e[a>>2],n+=e[(a&3)<<4|o>>4],n+=i+1<r?e[(o&15)<<2|s>>6]:`=`,n+=i+2<r?e[s&63]:`=`}return n}export{n as atobPolyfill,i as base64Decode,a as base64Encode,r as btoaPolyfill};
@@ -1,12 +1 @@
1
- //#region src/byte-array.ts
2
- /**
3
- * Convert GLib.Bytes to Uint8Array using GJS's byteArray module.
4
- * This wraps the GJS-specific `imports.byteArray.fromGBytes()` API
5
- * with proper typing to eliminate `as any` casts throughout the codebase.
6
- */
7
- function gbytesToUint8Array(bytes) {
8
- return imports.byteArray.fromGBytes(bytes);
9
- }
10
-
11
- //#endregion
12
- export { gbytesToUint8Array };
1
+ function e(e){return imports.byteArray.fromGBytes(e)}export{e as gbytesToUint8Array};
@@ -1,25 +1 @@
1
- //#region src/callable.ts
2
- /**
3
- * Wrap an ES6 class so it supports both the modern `new Cls(...)` pattern and
4
- * the legacy `Cls.call(thisArg, ...)` pattern.
5
- *
6
- * The `apply` trap materialises a temporary instance via `Reflect.construct`
7
- * (so field initializers and constructor bodies run normally), then transplants
8
- * its own property descriptors onto `thisArg`. The default Proxy traps pass
9
- * `construct`, `get` and `getPrototypeOf` straight through, so `new Wrapped()`,
10
- * `Wrapped.prototype` (consulted by `util.inherits`) and `instance instanceof
11
- * Wrapped` all behave identically to the underlying class.
12
- */
13
- function makeCallable(Cls) {
14
- return new Proxy(Cls, { apply(target, thisArg, args) {
15
- const tmp = Reflect.construct(target, args, target);
16
- for (const key of Reflect.ownKeys(tmp)) {
17
- const desc = Object.getOwnPropertyDescriptor(tmp, key);
18
- if (desc) Object.defineProperty(thisArg, key, desc);
19
- }
20
- return thisArg;
21
- } });
22
- }
23
-
24
- //#endregion
25
- export { makeCallable };
1
+ function e(e){return new Proxy(e,{apply(e,t,n){let r=Reflect.construct(e,n,e);for(let e of Reflect.ownKeys(r)){let n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n)}return t}})}export{e as makeCallable};
package/lib/esm/cli.js CHANGED
@@ -1,12 +1 @@
1
- import GLib from "@girs/glib-2.0";
2
-
3
- //#region src/cli.ts
4
- const byteArray = imports.byteArray;
5
- const cli = (commandLine) => {
6
- const [res, out, err, status] = GLib.spawn_command_line_sync(commandLine);
7
- if (err.byteLength) throw new Error(byteArray.toString(err));
8
- return byteArray.toString(out);
9
- };
10
-
11
- //#endregion
12
- export { cli };
1
+ import e from"@girs/glib-2.0";const t=imports.byteArray,n=n=>{let[r,i,a,o]=e.spawn_command_line_sync(n);if(a.byteLength)throw Error(t.toString(a));return t.toString(i)};export{n as cli};
package/lib/esm/defer.js CHANGED
@@ -1,11 +1 @@
1
- //#region src/defer.ts
2
- /**
3
- * Defer an event emission to the next macrotask, matching Node.js behavior
4
- * for server 'listening', 'close', and 'error' events.
5
- */
6
- function deferEmit(emitter, event, ...args) {
7
- setTimeout(() => emitter.emit(event, ...args), 0);
8
- }
9
-
10
- //#endregion
11
- export { deferEmit };
1
+ function e(e,t,...n){setTimeout(()=>e.emit(t,...n),0)}export{e as deferEmit};
@@ -1,44 +1 @@
1
- //#region src/encoding.ts
2
- const VALID_ENCODINGS = [
3
- "utf8",
4
- "ascii",
5
- "latin1",
6
- "binary",
7
- "base64",
8
- "base64url",
9
- "hex",
10
- "ucs2",
11
- "utf16le"
12
- ];
13
- /**
14
- * Normalize an encoding string to a canonical encoding value.
15
- * Returns 'utf8' as default for undefined/null/empty input.
16
- */
17
- function normalizeEncoding(enc) {
18
- if (!enc || enc === "utf8" || enc === "utf-8") return "utf8";
19
- const lower = ("" + enc).toLowerCase().replace(/-/g, "");
20
- switch (lower) {
21
- case "utf8": return "utf8";
22
- case "ascii": return "ascii";
23
- case "latin1":
24
- case "binary": return "latin1";
25
- case "base64": return "base64";
26
- case "base64url": return "base64url";
27
- case "hex": return "hex";
28
- case "ucs2":
29
- case "utf16le": return "utf16le";
30
- default: return "utf8";
31
- }
32
- }
33
- /**
34
- * Check that an encoding string is valid. Throws TypeError if not.
35
- */
36
- function checkEncoding(encoding) {
37
- const lower = ("" + encoding).toLowerCase().replace(/-/g, "");
38
- if (!VALID_ENCODINGS.includes(lower)) {
39
- throw new TypeError(`Unknown encoding: ${encoding}`);
40
- }
41
- }
42
-
43
- //#endregion
44
- export { checkEncoding, normalizeEncoding };
1
+ const e=[`utf8`,`ascii`,`latin1`,`binary`,`base64`,`base64url`,`hex`,`ucs2`,`utf16le`];function t(e){if(!e||e===`utf8`||e===`utf-8`)return`utf8`;switch((``+e).toLowerCase().replace(/-/g,``)){case`utf8`:return`utf8`;case`ascii`:return`ascii`;case`latin1`:case`binary`:return`latin1`;case`base64`:return`base64`;case`base64url`:return`base64url`;case`hex`:return`hex`;case`ucs2`:case`utf16le`:return`utf16le`;default:return`utf8`}}function n(t){let n=(``+t).toLowerCase().replace(/-/g,``);if(!e.includes(n))throw TypeError(`Unknown encoding: ${t}`)}export{n as checkEncoding,t as normalizeEncoding};
package/lib/esm/error.js CHANGED
@@ -1,32 +1 @@
1
- //#region src/error.ts
2
- /**
3
- * Defines the static Error.captureStackTrace method,
4
- * this is not present in SpiderMonkey because it comes from V8
5
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#static_methods
6
- * @see https://nodejs.org/dist/latest-v18.x/docs/api/errors.html#errorcapturestacktracetargetobject-constructoropt
7
- */
8
- const initErrorV8Methods = (ErrorConstructor) => {
9
- if (!Error.captureStackTrace) {
10
- /**
11
- * A non-standard V8 function.
12
- * Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.
13
- * @param targetObject
14
- * @param constructorOpt
15
- */
16
- Error.captureStackTrace = function(targetObject, constructorOpt) {
17
- const container = new Error();
18
- const target = constructorOpt || targetObject;
19
- Object.defineProperty(target, "stack", {
20
- configurable: true,
21
- get: function getStack() {
22
- var stack = container.stack;
23
- Object.defineProperty(this, "stack", { value: stack });
24
- return stack;
25
- }
26
- });
27
- };
28
- }
29
- };
30
-
31
- //#endregion
32
- export { initErrorV8Methods };
1
+ const e=e=>{Error.captureStackTrace||(Error.captureStackTrace=function(e,t){let n=Error();Object.defineProperty(t||e,`stack`,{configurable:!0,get:function(){var e=n.stack;return Object.defineProperty(this,`stack`,{value:e}),e}})})};export{e as initErrorV8Methods};
package/lib/esm/file.js CHANGED
@@ -1,15 +1 @@
1
- import GLib from "@girs/glib-2.0";
2
-
3
- //#region src/file.ts
4
- const byteArray = imports.byteArray;
5
- const readJSON = (path) => {
6
- const [ok, contents] = GLib.file_get_contents(path);
7
- if (ok) {
8
- const map = JSON.parse(byteArray.toString(contents));
9
- return map;
10
- }
11
- throw new Error(`Error on require "${path}"`);
12
- };
13
-
14
- //#endregion
15
- export { readJSON };
1
+ import e from"@girs/glib-2.0";const t=imports.byteArray,n=n=>{let[r,i]=e.file_get_contents(n);if(r)return JSON.parse(t.toString(i));throw Error(`Error on require "${n}"`)};export{n as readJSON};
package/lib/esm/fs.js CHANGED
@@ -1,24 +1 @@
1
- import Gio from "@girs/gio-2.0";
2
- import GioUnix from "@girs/giounix-2.0";
3
-
4
- //#region src/fs.ts
5
- /** Check if a file descriptor exists */
6
- const existsFD = (fd) => {
7
- try {
8
- let stream = GioUnix.InputStream.new(fd, false);
9
- stream.close(null);
10
- return true;
11
- } catch (error) {
12
- return false;
13
- }
14
- };
15
- function existsSync(path) {
16
- if (typeof path !== "string" || path === "") {
17
- return false;
18
- }
19
- const file = Gio.File.new_for_path(path);
20
- return file.query_exists(null);
21
- }
22
-
23
- //#endregion
24
- export { existsFD, existsSync };
1
+ import e from"@girs/gio-2.0";import t from"@girs/giounix-2.0";const n=e=>{try{return t.InputStream.new(e,!1).close(null),!0}catch{return!1}};function r(t){return typeof t!=`string`||t===``?!1:e.File.new_for_path(t).query_exists(null)}export{n as existsFD,r as existsSync};
@@ -1,116 +1 @@
1
- //#region src/gio-errors.ts
2
- /** Map from Gio.IOErrorEnum numeric values to Node.js error code strings. */
3
- const GIO_ERROR_TO_NODE = {
4
- 0: "EIO",
5
- 1: "ENOENT",
6
- 2: "EEXIST",
7
- 3: "EISDIR",
8
- 4: "ENOTDIR",
9
- 5: "ENOTEMPTY",
10
- 6: "ENOENT",
11
- 7: "ENFILE",
12
- 9: "EACCES",
13
- 10: "ENFILE",
14
- 11: "EINVAL",
15
- 12: "ELOOP",
16
- 13: "ENOSPC",
17
- 14: "EACCES",
18
- 17: "ELOOP",
19
- 19: "ENOSPC",
20
- 20: "ENOTSUP",
21
- 22: "EMFILE",
22
- 24: "EROFS",
23
- 25: "ECANCELED",
24
- 26: "EBUSY",
25
- 27: "ETIMEDOUT",
26
- 28: "EHOSTUNREACH",
27
- 30: "EHOSTUNREACH",
28
- 31: "ENETUNREACH",
29
- 32: "ECONNREFUSED",
30
- 33: "EADDRINUSE",
31
- 34: "ECONNRESET",
32
- 36: "EPIPE",
33
- 38: "ENETUNREACH",
34
- 39: "ECONNREFUSED",
35
- 40: "ECONNREFUSED",
36
- 41: "EACCES",
37
- 44: "ECONNRESET",
38
- 46: "EMSGSIZE"
39
- };
40
- /**
41
- * Create a Node.js-style ErrnoException from a Gio error.
42
- * Works for fs, net, dns, child-process, and other modules.
43
- */
44
- function createNodeError(err, syscall, details) {
45
- const errObj = err;
46
- const code = GIO_ERROR_TO_NODE[errObj?.code ?? -1] || "EIO";
47
- let msg = `${code}: ${errObj?.message || "unknown error"}, ${syscall}`;
48
- if (details?.path) msg += ` '${details.path}'`;
49
- if (details?.dest) msg += ` -> '${details.dest}'`;
50
- if (details?.address) msg += ` ${details.address}`;
51
- if (details?.port != null) msg += `:${details.port}`;
52
- const error = new Error(msg);
53
- error.code = code;
54
- error.syscall = syscall;
55
- error.errno = -(errObj?.code || 0);
56
- if (details?.path) error.path = details.path;
57
- if (details?.address) error.address = details.address;
58
- if (details?.port != null) error.port = details.port;
59
- return error;
60
- }
61
- /**
62
- * Check if a Gio error is a "not found" error.
63
- */
64
- function isNotFoundError(err) {
65
- const errObj = err;
66
- return errObj?.code === 1 || errObj?.code === "ENOENT";
67
- }
68
- /**
69
- * Map from GLib.FileError numeric values to Node.js error code strings.
70
- * Distinct from Gio.IOErrorEnum — GLib.IOChannel.new_file() and some other
71
- * low-level GLib APIs throw GLib.FileError (domain "g-file-error"), which
72
- * has different numeric values than Gio.IOErrorEnum (domain "g-io-error-quark").
73
- */
74
- const GLIB_FILE_ERROR_TO_NODE = {
75
- 0: "EEXIST",
76
- 1: "EISDIR",
77
- 2: "EACCES",
78
- 3: "ENAMETOOLONG",
79
- 4: "ENOENT",
80
- 5: "ENOTDIR",
81
- 6: "ENXIO",
82
- 7: "ENODEV",
83
- 8: "EROFS",
84
- 11: "ELOOP",
85
- 12: "ENOSPC",
86
- 13: "ENOMEM",
87
- 14: "EMFILE",
88
- 15: "ENFILE",
89
- 16: "EBADF",
90
- 17: "EINVAL",
91
- 18: "EPIPE",
92
- 21: "EIO",
93
- 22: "EPERM",
94
- 24: "EIO"
95
- };
96
- /**
97
- * Map a GLib.FileError to a Node.js-style ErrnoException. Counterpart to
98
- * `createNodeError` for the Gio.IOErrorEnum case; kept separate because the
99
- * enum domains differ.
100
- */
101
- function createGLibFileError(err, syscall, details) {
102
- const errObj = err;
103
- const code = GLIB_FILE_ERROR_TO_NODE[errObj?.code ?? -1] ?? "EIO";
104
- let msg = `${code}: ${errObj?.message || "unknown error"}, ${syscall}`;
105
- if (details?.path) msg += ` '${details.path}'`;
106
- if (details?.dest) msg += ` -> '${details.dest}'`;
107
- const error = new Error(msg);
108
- error.code = code;
109
- error.syscall = syscall;
110
- error.errno = -(errObj?.code || 0);
111
- if (details?.path) error.path = details.path;
112
- return error;
113
- }
114
-
115
- //#endregion
116
- export { GIO_ERROR_TO_NODE, GLIB_FILE_ERROR_TO_NODE, createGLibFileError, createNodeError, isNotFoundError };
1
+ const e={0:`EIO`,1:`ENOENT`,2:`EEXIST`,3:`EISDIR`,4:`ENOTDIR`,5:`ENOTEMPTY`,6:`ENOENT`,7:`ENFILE`,9:`EACCES`,10:`ENFILE`,11:`EINVAL`,12:`ELOOP`,13:`ENOSPC`,14:`EACCES`,17:`ELOOP`,19:`ENOSPC`,20:`ENOTSUP`,22:`EMFILE`,24:`EROFS`,25:`ECANCELED`,26:`EBUSY`,27:`ETIMEDOUT`,28:`EHOSTUNREACH`,30:`EHOSTUNREACH`,31:`ENETUNREACH`,32:`ECONNREFUSED`,33:`EADDRINUSE`,34:`ECONNRESET`,36:`EPIPE`,38:`ENETUNREACH`,39:`ECONNREFUSED`,40:`ECONNREFUSED`,41:`EACCES`,44:`ECONNRESET`,46:`EMSGSIZE`};function t(t,n,r){let i=t,a=e[i?.code??-1]||`EIO`,o=`${a}: ${i?.message||`unknown error`}, ${n}`;r?.path&&(o+=` '${r.path}'`),r?.dest&&(o+=` -> '${r.dest}'`),r?.address&&(o+=` ${r.address}`),r?.port!=null&&(o+=`:${r.port}`);let s=Error(o);return s.code=a,s.syscall=n,s.errno=-(i?.code||0),r?.path&&(s.path=r.path),r?.address&&(s.address=r.address),r?.port!=null&&(s.port=r.port),s}function n(e){let t=e;return t?.code===1||t?.code===`ENOENT`}const r={0:`EEXIST`,1:`EISDIR`,2:`EACCES`,3:`ENAMETOOLONG`,4:`ENOENT`,5:`ENOTDIR`,6:`ENXIO`,7:`ENODEV`,8:`EROFS`,11:`ELOOP`,12:`ENOSPC`,13:`ENOMEM`,14:`EMFILE`,15:`ENFILE`,16:`EBADF`,17:`EINVAL`,18:`EPIPE`,21:`EIO`,22:`EPERM`,24:`EIO`};function i(e,t,n){let i=e,a=r[i?.code??-1]??`EIO`,o=`${a}: ${i?.message||`unknown error`}, ${t}`;n?.path&&(o+=` '${n.path}'`),n?.dest&&(o+=` -> '${n.dest}'`);let s=Error(o);return s.code=a,s.syscall=t,s.errno=-(i?.code||0),n?.path&&(s.path=n.path),s}export{e as GIO_ERROR_TO_NODE,r as GLIB_FILE_ERROR_TO_NODE,i as createGLibFileError,t as createNodeError,n as isNotFoundError};
package/lib/esm/gio.js CHANGED
@@ -1,52 +1 @@
1
- import GLib from "@girs/glib-2.0";
2
-
3
- //#region src/gio.ts
4
- const byteArray = imports.byteArray;
5
- /**
6
- * Generic promise wrapper for Gio async/finish method pairs.
7
- *
8
- * Example:
9
- * const stream = await gioAsync<Gio.InputStream>(session, 'send_async', 'send_finish', msg, priority, null);
10
- */
11
- function gioAsync(obj, asyncMethod, finishMethod, ...args) {
12
- return new Promise((resolve, reject) => {
13
- obj[asyncMethod](...args, (_self, asyncRes) => {
14
- try {
15
- resolve(obj[finishMethod](asyncRes));
16
- } catch (error) {
17
- reject(error);
18
- }
19
- });
20
- });
21
- }
22
- /**
23
- * Promise wrapper around `Gio.InputStream.read_bytes_async` / `read_bytes_finish`.
24
- * Returns a `Uint8Array` or `null` if the end of the stream is reached.
25
- */
26
- async function readBytesAsync(inputStream, count = 4096, ioPriority = GLib.PRIORITY_DEFAULT, cancellable = null) {
27
- return new Promise((resolve, reject) => {
28
- inputStream.read_bytes_async(count, ioPriority, cancellable, (_self, asyncRes) => {
29
- try {
30
- const res = inputStream.read_bytes_finish(asyncRes);
31
- if (res.get_size() === 0) {
32
- return resolve(null);
33
- }
34
- return resolve(byteArray.fromGBytes(res));
35
- } catch (error) {
36
- reject(error);
37
- }
38
- });
39
- });
40
- }
41
- /**
42
- * Async generator that yields `Uint8Array` chunks from a `Gio.InputStream`.
43
- */
44
- async function* inputStreamAsyncIterator(inputStream, count = 4096, ioPriority = GLib.PRIORITY_DEFAULT, cancellable = null) {
45
- let chunk;
46
- while ((chunk = await readBytesAsync(inputStream, count, ioPriority, cancellable)) !== null) {
47
- yield chunk;
48
- }
49
- }
50
-
51
- //#endregion
52
- export { gioAsync, inputStreamAsyncIterator, readBytesAsync };
1
+ import e from"@girs/glib-2.0";const t=imports.byteArray;function n(e,t,n,...r){return new Promise((i,a)=>{e[t](...r,(t,r)=>{try{i(e[n](r))}catch(e){a(e)}})})}async function r(n,r=4096,i=e.PRIORITY_DEFAULT,a=null){return new Promise((e,o)=>{n.read_bytes_async(r,i,a,(r,i)=>{try{let r=n.read_bytes_finish(i);return r.get_size()===0?e(null):e(t.fromGBytes(r))}catch(e){o(e)}})})}async function*i(t,n=4096,i=e.PRIORITY_DEFAULT,a=null){let o;for(;(o=await r(t,n,i,a))!==null;)yield o}export{n as gioAsync,i as inputStreamAsyncIterator,r as readBytesAsync};
@@ -1,13 +1 @@
1
- //#region src/globals.ts
2
- /**
3
- * Register a value as a global property if it doesn't already exist.
4
- * This is a no-op in environments where the global is already defined (e.g. Node.js).
5
- */
6
- function registerGlobal(name, value) {
7
- if (typeof globalThis[name] === "undefined") {
8
- globalThis[name] = value;
9
- }
10
- }
11
-
12
- //#endregion
13
- export { registerGlobal };
1
+ function e(e,t){globalThis[e]===void 0&&(globalThis[e]=t)}export{e as registerGlobal};
package/lib/esm/index.js CHANGED
@@ -1,20 +1 @@
1
- import { atobPolyfill, base64Decode, base64Encode, btoaPolyfill } from "./base64.js";
2
- import { gbytesToUint8Array } from "./byte-array.js";
3
- import { makeCallable } from "./callable.js";
4
- import { cli } from "./cli.js";
5
- import { deferEmit } from "./defer.js";
6
- import { checkEncoding, normalizeEncoding } from "./encoding.js";
7
- import { initErrorV8Methods } from "./error.js";
8
- import { readJSON } from "./file.js";
9
- import { existsFD, existsSync } from "./fs.js";
10
- import { GIO_ERROR_TO_NODE, GLIB_FILE_ERROR_TO_NODE, createGLibFileError, createNodeError, isNotFoundError } from "./gio-errors.js";
11
- import { gioAsync, inputStreamAsyncIterator, readBytesAsync } from "./gio.js";
12
- import { registerGlobal } from "./globals.js";
13
- import { notImplemented, warnNotImplemented } from "./message.js";
14
- import { queueMicrotask } from "./microtask.js";
15
- import { __resetBurstStateForTests, nextTick } from "./next-tick.js";
16
- import { getNodeModulesPath, getPathSeparator, getProgramDir, getProgramExe, resolve } from "./path.js";
17
- import { structuredClone } from "./structured-clone.js";
18
- import { ensureMainLoop, quitMainLoop } from "./main-loop.js";
19
-
20
- export { GIO_ERROR_TO_NODE, GLIB_FILE_ERROR_TO_NODE, __resetBurstStateForTests, atobPolyfill, base64Decode, base64Encode, btoaPolyfill, checkEncoding, cli, createGLibFileError, createNodeError, deferEmit, ensureMainLoop, existsFD, existsSync, gbytesToUint8Array, getNodeModulesPath, getPathSeparator, getProgramDir, getProgramExe, gioAsync, initErrorV8Methods, inputStreamAsyncIterator, isNotFoundError, makeCallable, nextTick, normalizeEncoding, notImplemented, queueMicrotask, quitMainLoop, readBytesAsync, readJSON, registerGlobal, resolve, structuredClone, warnNotImplemented };
1
+ import{atobPolyfill as e,base64Decode as t,base64Encode as n,btoaPolyfill as r}from"./base64.js";import{gbytesToUint8Array as i}from"./byte-array.js";import{makeCallable as a}from"./callable.js";import{cli as o}from"./cli.js";import{deferEmit as s}from"./defer.js";import{checkEncoding as c,normalizeEncoding as l}from"./encoding.js";import{initErrorV8Methods as u}from"./error.js";import{readJSON as d}from"./file.js";import{existsFD as f,existsSync as p}from"./fs.js";import{GIO_ERROR_TO_NODE as m,GLIB_FILE_ERROR_TO_NODE as h,createGLibFileError as g,createNodeError as _,isNotFoundError as v}from"./gio-errors.js";import{gioAsync as y,inputStreamAsyncIterator as b,readBytesAsync as x}from"./gio.js";import{registerGlobal as S}from"./globals.js";import{notImplemented as C,warnNotImplemented as w}from"./message.js";import{queueMicrotask as T}from"./microtask.js";import{__resetBurstStateForTests as E,nextTick as D}from"./next-tick.js";import{getNodeModulesPath as O,getPathSeparator as k,getProgramDir as A,getProgramExe as j,resolve as M}from"./path.js";import{structuredClone as N}from"./structured-clone.js";import{ensureMainLoop as P,quitMainLoop as F}from"./main-loop.js";export{m as GIO_ERROR_TO_NODE,h as GLIB_FILE_ERROR_TO_NODE,E as __resetBurstStateForTests,e as atobPolyfill,t as base64Decode,n as base64Encode,r as btoaPolyfill,c as checkEncoding,o as cli,g as createGLibFileError,_ as createNodeError,s as deferEmit,P as ensureMainLoop,f as existsFD,p as existsSync,i as gbytesToUint8Array,O as getNodeModulesPath,k as getPathSeparator,A as getProgramDir,j as getProgramExe,y as gioAsync,u as initErrorV8Methods,b as inputStreamAsyncIterator,v as isNotFoundError,a as makeCallable,D as nextTick,l as normalizeEncoding,C as notImplemented,T as queueMicrotask,F as quitMainLoop,x as readBytesAsync,d as readJSON,S as registerGlobal,M as resolve,N as structuredClone,w as warnNotImplemented};
@@ -1,46 +1 @@
1
- //#region src/main-loop.ts
2
- /** Sentinel to prevent double-start (setMainLoopHook throws if called twice). */
3
- let _started = false;
4
- /** The singleton MainLoop instance, if created. */
5
- let _loop = null;
6
- /**
7
- * Ensure a GLib MainLoop is running for async I/O dispatch (Soup.Server,
8
- * Gio.SocketService, etc.). No-op on Node.js. Idempotent.
9
- *
10
- * - Called automatically by `http.Server.listen()`, `net.Server.listen()`,
11
- * `dgram.Socket.bind()` etc.
12
- * - GTK apps should NOT call this — they use `Gtk.Application.runAsync()` instead.
13
- *
14
- * @returns The MainLoop instance on GJS, or `undefined` on Node.js.
15
- */
16
- function ensureMainLoop() {
17
- const gjsImports = globalThis.imports;
18
- if (!gjsImports) return undefined;
19
- if (_started) return _loop;
20
- const GLibModule = gjsImports.gi.GLib;
21
- _loop = new GLibModule.MainLoop(null, false);
22
- _started = true;
23
- if (GLibModule.main_depth() === 0) {
24
- try {
25
- _loop.runAsync();
26
- } catch {}
27
- }
28
- return _loop;
29
- }
30
- /**
31
- * Quit the MainLoop created by `ensureMainLoop()`. Idempotent, no-op on Node.js.
32
- *
33
- * Calling `quit()` on a loop that hasn't started yet pre-quits it — when the
34
- * `setMainLoopHook` later fires and calls `run()`, it returns immediately.
35
- * This is used by `@gjsify/unit` to prevent the loop from blocking after tests.
36
- */
37
- function quitMainLoop() {
38
- if (_loop) {
39
- _loop.quit();
40
- _started = false;
41
- _loop = null;
42
- }
43
- }
44
-
45
- //#endregion
46
- export { ensureMainLoop, quitMainLoop };
1
+ let e=!1,t=null;function n(){let n=globalThis.imports;if(!n)return;if(e)return t;let r=n.gi.GLib;if(t=new r.MainLoop(null,!1),e=!0,r.main_depth()===0)try{t.runAsync()}catch{}return t}function r(){t&&=(t.quit(),e=!1,null)}export{n as ensureMainLoop,r as quitMainLoop};
@@ -1,13 +1 @@
1
- //#region src/message.ts
2
- const notImplemented = (msg) => {
3
- const message = msg ? `Not implemented: ${msg}` : "Not implemented";
4
- throw new Error(message);
5
- };
6
- const warnNotImplemented = (msg) => {
7
- const message = msg ? `Not implemented: ${msg}` : "Not implemented";
8
- console.warn(message);
9
- return message;
10
- };
11
-
12
- //#endregion
13
- export { notImplemented, warnNotImplemented };
1
+ const e=e=>{let t=e?`Not implemented: ${e}`:`Not implemented`;throw Error(t)},t=e=>{let t=e?`Not implemented: ${e}`:`Not implemented`;return console.warn(t),t};export{e as notImplemented,t as warnNotImplemented};
@@ -1,7 +1 @@
1
- //#region src/microtask.ts
2
- const queueMicrotask = (fn) => {
3
- Promise.resolve().then(fn);
4
- };
5
-
6
- //#endregion
7
- export { queueMicrotask };
1
+ const e=e=>{Promise.resolve().then(e)};export{e as queueMicrotask};
@@ -1,65 +1 @@
1
- //#region src/next-tick.ts
2
- const CHUNK_SIZE = 64;
3
- const YIELD_DELAY_MS = 1;
4
- const _queue = [];
5
- let _drainerArmed = false;
6
- function drainOnce(GLib) {
7
- const end = Math.min(CHUNK_SIZE, _queue.length);
8
- for (let i = 0; i < end; i++) {
9
- const cb = _queue.shift();
10
- try {
11
- cb();
12
- } catch (err) {
13
- try {
14
- GLib.log_default_handler("gjsify-nextTick", GLib.LogLevelFlags.LEVEL_WARNING, String(err?.stack || err), null);
15
- } catch {}
16
- }
17
- }
18
- if (_queue.length > 0) {
19
- GLib.timeout_add(GLib.PRIORITY_DEFAULT, YIELD_DELAY_MS, () => {
20
- drainOnce(GLib);
21
- return false;
22
- });
23
- } else {
24
- _drainerArmed = false;
25
- }
26
- }
27
- function tryGLibTimeout(cb) {
28
- const GLib = globalThis.imports?.gi?.GLib;
29
- if (!GLib?.timeout_add) return false;
30
- _queue.push(cb);
31
- if (!_drainerArmed) {
32
- _drainerArmed = true;
33
- GLib.timeout_add(GLib.PRIORITY_DEFAULT, 0, () => {
34
- drainOnce(GLib);
35
- return false;
36
- });
37
- }
38
- return true;
39
- }
40
- /** @internal Test helper: reset burst state. */
41
- function __resetBurstStateForTests() {
42
- _queue.length = 0;
43
- _drainerArmed = false;
44
- }
45
- /**
46
- * Schedule a function on the next turn of the event loop.
47
- * On GJS: uses GLib.timeout_add(PRIORITY_DEFAULT, delay=0).
48
- * On Node.js: uses process.nextTick → queueMicrotask → Promise.resolve().then().
49
- */
50
- const nextTick = (fn, ...args) => {
51
- const cb = args.length > 0 ? () => fn(...args) : fn;
52
- if (tryGLibTimeout(cb)) return;
53
- if (typeof globalThis.process?.nextTick === "function") {
54
- globalThis.process.nextTick(fn, ...args);
55
- return;
56
- }
57
- if (typeof queueMicrotask === "function") {
58
- queueMicrotask(cb);
59
- return;
60
- }
61
- Promise.resolve().then(cb);
62
- };
63
-
64
- //#endregion
65
- export { __resetBurstStateForTests, nextTick };
1
+ const e=[];let t=!1;function n(r){let i=Math.min(64,e.length);for(let t=0;t<i;t++){let t=e.shift();try{t()}catch(e){try{r.log_default_handler(`gjsify-nextTick`,r.LogLevelFlags.LEVEL_WARNING,String(e?.stack||e),null)}catch{}}}e.length>0?r.timeout_add(r.PRIORITY_DEFAULT,1,()=>(n(r),!1)):t=!1}function r(r){let i=globalThis.imports?.gi?.GLib;return i?.timeout_add?(e.push(r),t||(t=!0,i.timeout_add(i.PRIORITY_DEFAULT,0,()=>(n(i),!1))),!0):!1}function i(){e.length=0,t=!1}const a=(e,...t)=>{let n=t.length>0?()=>e(...t):e;if(!r(n)){if(typeof globalThis.process?.nextTick==`function`){globalThis.process.nextTick(e,...t);return}if(typeof queueMicrotask==`function`){queueMicrotask(n);return}Promise.resolve().then(n)}};export{i as __resetBurstStateForTests,a as nextTick};
package/lib/esm/path.js CHANGED
@@ -1,48 +1 @@
1
- import GLib from "@girs/glib-2.0";
2
- import Gio from "@girs/gio-2.0";
3
-
4
- //#region src/path.ts
5
- const { File } = Gio;
6
- const _getProgramDir = (programFile) => {
7
- const info = programFile.query_info("standard::", Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);
8
- if (info.get_is_symlink()) {
9
- const symlinkFile = programFile.get_parent().resolve_relative_path(info.get_symlink_target());
10
- return symlinkFile.get_parent();
11
- } else {
12
- return programFile.get_parent();
13
- }
14
- };
15
- const resolve = (dir, ...filenames) => {
16
- let file = File.new_for_path(dir);
17
- for (const filename of filenames) {
18
- file = file.resolve_relative_path(filename);
19
- }
20
- return file;
21
- };
22
- const getProgramExe = () => {
23
- const currentDir = GLib.get_current_dir();
24
- return File.new_for_path(currentDir).resolve_relative_path(imports.system.programInvocationName);
25
- };
26
- const getProgramDir = () => {
27
- return _getProgramDir(getProgramExe()).get_path();
28
- };
29
- const getPathSeparator = () => {
30
- const currentDir = GLib.get_current_dir();
31
- return /^\//.test(currentDir) ? "/" : "\\";
32
- };
33
- const getNodeModulesPath = () => {
34
- let dir = File.new_for_path(getProgramDir());
35
- let found = false;
36
- do {
37
- dir = dir.resolve_relative_path("..");
38
- const nodeModulesDir = dir.resolve_relative_path("node_modules");
39
- found = nodeModulesDir.query_exists(null);
40
- if (found) {
41
- dir = nodeModulesDir;
42
- }
43
- } while (dir.has_parent(null) && !found);
44
- return dir;
45
- };
46
-
47
- //#endregion
48
- export { getNodeModulesPath, getPathSeparator, getProgramDir, getProgramExe, resolve };
1
+ import e from"@girs/glib-2.0";import t from"@girs/gio-2.0";const{File:n}=t,r=e=>{let n=e.query_info(`standard::`,t.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,null);return n.get_is_symlink()?e.get_parent().resolve_relative_path(n.get_symlink_target()).get_parent():e.get_parent()},i=(e,...t)=>{let r=n.new_for_path(e);for(let e of t)r=r.resolve_relative_path(e);return r},a=()=>{let t=e.get_current_dir();return n.new_for_path(t).resolve_relative_path(imports.system.programInvocationName)},o=()=>r(a()).get_path(),s=()=>{let t=e.get_current_dir();return/^\//.test(t)?`/`:`\\`},c=()=>{let e=n.new_for_path(o()),t=!1;do{e=e.resolve_relative_path(`..`);let n=e.resolve_relative_path(`node_modules`);t=n.query_exists(null),t&&(e=n)}while(e.has_parent(null)&&!t);return e};export{c as getNodeModulesPath,s as getPathSeparator,o as getProgramDir,a as getProgramExe,i as resolve};
@@ -1,199 +1 @@
1
- //#region src/structured-clone.ts
2
- const { toString } = Object.prototype;
3
- /**
4
- * Get the internal [[Class]] tag of a value via Object.prototype.toString.
5
- * Returns e.g. "Array", "Date", "RegExp", "Map", "Error", "Uint8Array", etc.
6
- */
7
- function classOf(value) {
8
- return toString.call(value).slice(8, -1);
9
- }
10
- /**
11
- * Throw a DataCloneError. Uses DOMException if available, otherwise a plain Error.
12
- */
13
- function throwDataCloneError(message) {
14
- const DOMExceptionCtor = globalThis.DOMException;
15
- if (typeof DOMExceptionCtor === "function") {
16
- throw new DOMExceptionCtor(message, "DataCloneError");
17
- }
18
- const error = new Error(message);
19
- error.name = "DataCloneError";
20
- throw error;
21
- }
22
- /** Error constructors that can be cloned per the HTML spec. */
23
- const ERROR_CONSTRUCTORS = {
24
- Error,
25
- EvalError,
26
- RangeError,
27
- ReferenceError,
28
- SyntaxError,
29
- TypeError,
30
- URIError
31
- };
32
- /** TypedArray constructors for reconstruction. */
33
- const TYPED_ARRAY_TAGS = new Set([
34
- "Int8Array",
35
- "Uint8Array",
36
- "Uint8ClampedArray",
37
- "Int16Array",
38
- "Uint16Array",
39
- "Int32Array",
40
- "Uint32Array",
41
- "Float32Array",
42
- "Float64Array",
43
- "BigInt64Array",
44
- "BigUint64Array"
45
- ]);
46
- /**
47
- * Internal recursive clone with circular/shared reference tracking.
48
- * The `seen` map stores original→clone mappings. It must be populated
49
- * with the clone BEFORE recursing into children to handle circular refs.
50
- */
51
- function internalClone(value, seen) {
52
- if (value === null || value === undefined) return value;
53
- const type = typeof value;
54
- if (type === "boolean" || type === "number" || type === "string" || type === "bigint") {
55
- return value;
56
- }
57
- if (type === "symbol") {
58
- throwDataCloneError("Symbol cannot be cloned");
59
- }
60
- if (type === "function") {
61
- throwDataCloneError("Function cannot be cloned");
62
- }
63
- const obj = value;
64
- if (seen.has(obj)) return seen.get(obj);
65
- const tag = classOf(obj);
66
- if (tag === "Date") {
67
- return new Date(obj.getTime());
68
- }
69
- if (tag === "RegExp") {
70
- return new RegExp(obj.source, obj.flags);
71
- }
72
- if (tag === "Boolean") return Object(obj.valueOf());
73
- if (tag === "Number") return Object(obj.valueOf());
74
- if (tag === "String") return Object(obj.valueOf());
75
- if (tag === "BigInt") return Object(BigInt.prototype.valueOf.call(obj));
76
- if (obj instanceof Error) {
77
- const src = obj;
78
- const ctorName = src.constructor?.name;
79
- const Ctor = ctorName && ERROR_CONSTRUCTORS[ctorName] || ERROR_CONSTRUCTORS[src.name] || Error;
80
- const cloned = new Ctor(src.message);
81
- cloned.name = src.name;
82
- if ("cause" in src) {
83
- Object.defineProperty(cloned, "cause", {
84
- value: internalClone(src.cause, seen),
85
- writable: true,
86
- enumerable: false,
87
- configurable: true
88
- });
89
- }
90
- return cloned;
91
- }
92
- if (tag === "DOMException") {
93
- const DOMExceptionCtor = globalThis.DOMException;
94
- if (typeof DOMExceptionCtor === "function") {
95
- const src = obj;
96
- return new DOMExceptionCtor(src.message, src.name);
97
- }
98
- }
99
- if (tag === "ArrayBuffer") {
100
- const src = obj;
101
- const cloned = src.slice(0);
102
- seen.set(obj, cloned);
103
- return cloned;
104
- }
105
- if (tag === "SharedArrayBuffer") {
106
- return obj;
107
- }
108
- if (tag === "DataView") {
109
- const src = obj;
110
- const bufferClone = internalClone(src.buffer, seen);
111
- const cloned = new DataView(bufferClone, src.byteOffset, src.byteLength);
112
- seen.set(obj, cloned);
113
- return cloned;
114
- }
115
- if (TYPED_ARRAY_TAGS.has(tag)) {
116
- const src = obj;
117
- const bufferClone = internalClone(src.buffer, seen);
118
- const Ctor = src.constructor;
119
- const cloned = new Ctor(bufferClone, src.byteOffset, src.length);
120
- seen.set(obj, cloned);
121
- return cloned;
122
- }
123
- if (tag === "Map") {
124
- const cloned = new Map();
125
- seen.set(obj, cloned);
126
- for (const [k, v] of obj) {
127
- cloned.set(internalClone(k, seen), internalClone(v, seen));
128
- }
129
- return cloned;
130
- }
131
- if (tag === "Set") {
132
- const cloned = new Set();
133
- seen.set(obj, cloned);
134
- for (const v of obj) {
135
- cloned.add(internalClone(v, seen));
136
- }
137
- return cloned;
138
- }
139
- {
140
- const g = globalThis;
141
- const BlobCtor = g.Blob;
142
- const FileCtor = g.File;
143
- if (typeof FileCtor === "function" && obj instanceof FileCtor) {
144
- const src = obj;
145
- return new FileCtor([obj], src.name, {
146
- type: src.type,
147
- lastModified: src.lastModified
148
- });
149
- }
150
- if (typeof BlobCtor === "function" && obj instanceof BlobCtor) {
151
- const src = obj;
152
- return new BlobCtor([obj], { type: src.type });
153
- }
154
- }
155
- if (obj instanceof WeakMap) throwDataCloneError("WeakMap cannot be cloned");
156
- if (obj instanceof WeakSet) throwDataCloneError("WeakSet cannot be cloned");
157
- if (obj instanceof WeakRef) throwDataCloneError("WeakRef cannot be cloned");
158
- if (typeof globalThis.Promise === "function" && obj instanceof Promise) {
159
- throwDataCloneError("Promise cannot be cloned");
160
- }
161
- if (tag === "Array") {
162
- const src = obj;
163
- const cloned = [];
164
- seen.set(obj, cloned);
165
- for (let i = 0; i < src.length; i++) {
166
- if (i in src) {
167
- cloned[i] = internalClone(src[i], seen);
168
- }
169
- }
170
- return cloned;
171
- }
172
- if (tag === "Object" || typeof obj === "object") {
173
- const cloned = {};
174
- seen.set(obj, cloned);
175
- for (const key of Object.keys(obj)) {
176
- cloned[key] = internalClone(obj[key], seen);
177
- }
178
- return cloned;
179
- }
180
- throwDataCloneError(`${tag} cannot be cloned`);
181
- }
182
- /**
183
- * structuredClone polyfill implementing the HTML structured clone algorithm.
184
- *
185
- * Supports: primitives (incl. -0, NaN, Infinity, BigInt), wrapper objects,
186
- * Date, RegExp, Error types, ArrayBuffer, TypedArrays, DataView, Map, Set,
187
- * Blob, File, circular/shared references, plain objects and arrays.
188
- *
189
- * Throws DataCloneError for: functions, symbols, WeakMap, WeakSet, WeakRef, Promise.
190
- *
191
- * @param value The value to clone
192
- * @param _options Reserved for future transfer list support (currently ignored)
193
- */
194
- function structuredClone(value, _options) {
195
- return internalClone(value, new Map());
196
- }
197
-
198
- //#endregion
199
- export { structuredClone };
1
+ const{toString:e}=Object.prototype;function t(t){return e.call(t).slice(8,-1)}function n(e){let t=globalThis.DOMException;if(typeof t==`function`)throw new t(e,`DataCloneError`);let n=Error(e);throw n.name=`DataCloneError`,n}const r={Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},i=new Set([`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function a(e,o){if(e==null)return e;let s=typeof e;if(s===`boolean`||s===`number`||s===`string`||s===`bigint`)return e;s===`symbol`&&n(`Symbol cannot be cloned`),s===`function`&&n(`Function cannot be cloned`);let c=e;if(o.has(c))return o.get(c);let l=t(c);if(l===`Date`)return new Date(c.getTime());if(l===`RegExp`)return new RegExp(c.source,c.flags);if(l===`Boolean`||l===`Number`||l===`String`)return Object(c.valueOf());if(l===`BigInt`)return Object(BigInt.prototype.valueOf.call(c));if(c instanceof Error){let e=c,t=e.constructor?.name,n=new(t&&r[t]||r[e.name]||Error)(e.message);return n.name=e.name,`cause`in e&&Object.defineProperty(n,`cause`,{value:a(e.cause,o),writable:!0,enumerable:!1,configurable:!0}),n}if(l===`DOMException`){let e=globalThis.DOMException;if(typeof e==`function`){let t=c;return new e(t.message,t.name)}}if(l===`ArrayBuffer`){let e=c.slice(0);return o.set(c,e),e}if(l===`SharedArrayBuffer`)return c;if(l===`DataView`){let e=c,t=a(e.buffer,o),n=new DataView(t,e.byteOffset,e.byteLength);return o.set(c,n),n}if(i.has(l)){let e=c,t=a(e.buffer,o),n=e.constructor,r=new n(t,e.byteOffset,e.length);return o.set(c,r),r}if(l===`Map`){let e=new Map;o.set(c,e);for(let[t,n]of c)e.set(a(t,o),a(n,o));return e}if(l===`Set`){let e=new Set;o.set(c,e);for(let t of c)e.add(a(t,o));return e}{let e=globalThis,t=e.Blob,n=e.File;if(typeof n==`function`&&c instanceof n){let e=c;return new n([c],e.name,{type:e.type,lastModified:e.lastModified})}if(typeof t==`function`&&c instanceof t)return new t([c],{type:c.type})}if(c instanceof WeakMap&&n(`WeakMap cannot be cloned`),c instanceof WeakSet&&n(`WeakSet cannot be cloned`),c instanceof WeakRef&&n(`WeakRef cannot be cloned`),typeof globalThis.Promise==`function`&&c instanceof Promise&&n(`Promise cannot be cloned`),l===`Array`){let e=c,t=[];o.set(c,t);for(let n=0;n<e.length;n++)n in e&&(t[n]=a(e[n],o));return t}if(l===`Object`||typeof c==`object`){let e={};o.set(c,e);for(let t of Object.keys(c))e[t]=a(c[t],o);return e}n(`${l} cannot be cloned`)}function o(e,t){return a(e,new Map)}export{o as structuredClone};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/utils",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Utils module for gjsify",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -32,13 +32,13 @@
32
32
  "fs"
33
33
  ],
34
34
  "devDependencies": {
35
- "@gjsify/cli": "^0.3.16",
35
+ "@gjsify/cli": "^0.3.18",
36
36
  "typescript": "^6.0.3"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gio-2.0": "2.88.0-4.0.0-rc.9",
40
- "@girs/giounix-2.0": "2.0.0-4.0.0-rc.9",
41
- "@girs/gjs": "4.0.0-rc.9",
42
- "@girs/glib-2.0": "2.88.0-4.0.0-rc.9"
39
+ "@girs/gio-2.0": "2.88.0-4.0.0-rc.14",
40
+ "@girs/giounix-2.0": "2.0.0-4.0.0-rc.14",
41
+ "@girs/gjs": "4.0.0-rc.14",
42
+ "@girs/glib-2.0": "2.88.0-4.0.0-rc.14"
43
43
  }
44
44
  }
@@ -1 +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.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","./src/callable.ts","./src/base64.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-ambient.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-import.d.ts","../../../node_modules/@girs/gjs/gettext.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-ambient.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-import.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0.d.ts","../../../node_modules/@girs/gobject-2.0/index.d.ts","../../../node_modules/@girs/gjs/system.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-ambient.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-import.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0.d.ts","../../../node_modules/@girs/cairo-1.0/index.d.ts","../../../node_modules/@girs/gjs/cairo.d.ts","../../../node_modules/@girs/gjs/console.d.ts","../../../node_modules/@girs/gjs/gi.d.ts","../../../node_modules/@girs/gjs/gjs-ambient.d.ts","../../../node_modules/@girs/gjs/gjs.d.ts","../../../node_modules/@girs/gjs/index.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0.d.ts","../../../node_modules/@girs/glib-2.0/index.d.ts","./src/byte-array.ts","./src/cli.ts","./src/defer.ts","./src/encoding.ts","./src/globals.ts","./src/error.ts","./src/file.ts","../../../node_modules/@girs/gio-2.0/gio-2.0-ambient.d.ts","../../../node_modules/@girs/gio-2.0/gio-2.0-import.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0-ambient.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0-import.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0.d.ts","../../../node_modules/@girs/gmodule-2.0/index.d.ts","../../../node_modules/@girs/gio-2.0/gio-2.0.d.ts","../../../node_modules/@girs/gio-2.0/index.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0-ambient.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0-import.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0.d.ts","../../../node_modules/@girs/giounix-2.0/index.d.ts","./src/fs.ts","./src/gio.ts","./src/gio-errors.ts","./src/message.ts","./src/microtask.ts","./src/next-tick.ts","./src/path.ts","./src/structured-clone.ts","./src/main-loop.ts","./src/index.ts","../../../node_modules/@girs/gjs/dom.d.ts"],"fileIdsList":[[98,101],[101],[96,107,109],[99,100],[117,124],[124],[96,107,109,122],[118,123],[125,128],[128],[96,107,109,122,124],[126,127],[96,101],[96,109],[92,97,102,103,104],[92,96,97,102,109],[106],[96],[90,109],[109],[96,107],[91,108],[119,122],[122],[120,121],[93,96],[107,109],[94,95],[124,128],[109,124],[88,89,110,111,112,113,114,115,116,129,130,131,132,133,134,135,136,137]],"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":"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":"3b00159041ddc439a199e53df5339f0583d31b63c5e1acf19b0ff6f12f8b4623","signature":"d2e00d708f8db8281e83b0966bb384491deccea1a1fecdf2e6cf600d8fdeda80","impliedFormat":99},{"version":"20abcc37a8c39848767fcc645d73b9a6d42db0d83d8702198b27e850317f4b49","signature":"004cd7c170c88793a62f0b831a52c8bec5835581048d81ec483105bb6fb569c8","impliedFormat":99},{"version":"2aed5de224f5094280addfaf59e82b362b3680083917cfa7f066c4b89cc58b74","impliedFormat":99},{"version":"86ecf772256f9205f72c768dc9b47d27b4254a64a1dd94f61c8c2f29219c24e1","affectsGlobalScope":true,"impliedFormat":99},{"version":"4936d25ba31379ce4e3d4289f6c0ea936510e111f823ec377015de6ba7047adf","impliedFormat":99},{"version":"1ffa53902f87f288dbaebc1dd9c754a0f0f1c4af2733fc7e173022209e7d4ef8","impliedFormat":99},{"version":"d7801240a49920afb07e1a83597b05a26e5e3758163a70448ba14df3f7ab5286","affectsGlobalScope":true,"impliedFormat":99},{"version":"e5d6263a1445260454a107fff13a53c0c8a30b3a9b62ef5539b2655753c3dc6a","impliedFormat":99},{"version":"048a292f9fb06d0aab8c52cabd81bc820c70d68500530afe1867c08e431d4e46","impliedFormat":99},{"version":"e2f9944677cba1c7f636dde67d7ca77982da3b52134c617bd86d3a4d8607b498","impliedFormat":99},{"version":"ceaf67c6cb2df4f38f466bd3709a72199d1d98377dcf215bf760b2a383fc73a8","impliedFormat":99},{"version":"c5f89dedf8e238012d580d16ee2286bf0681f1389f14d419c87711070430995c","affectsGlobalScope":true,"impliedFormat":99},{"version":"dc996a90baa100126e6014b2f55022930e1a44621ec68eb163f322714b7596bc","impliedFormat":99},{"version":"cdd5245a59183386c7b465ad56e2353a0a1b49c32733520ec5c0eeb718781012","impliedFormat":99},{"version":"35c6737b37a2c92e67a14ba7692f3216df6c140c28133835768f7c66cb15fa88","impliedFormat":99},{"version":"7b607f4711c496c7c4f57abddfc7b9912059e1f264417ff8f4280b65f756bf4d","impliedFormat":99},{"version":"17122ddf1e2ff9f0538a06af6edc8d2666d7e1a428239e86358afc09ac7a8779","impliedFormat":99},{"version":"2cc6a5c34041442caa16aff0686d41595296248c7c33bfac5b94cd4fe8ae20de","impliedFormat":99},{"version":"8384e3ab082eecd9d0faa07ddf7e9ff3879bfac60216e47328f799600e47ea80","affectsGlobalScope":true,"impliedFormat":99},{"version":"715e7c015d2f3f4de0da107d9be2db02b52cea3d2d446ad11d2e732848d8e3e7","impliedFormat":99},{"version":"6dcc4922dea06f4d0462462b300c7e0d7a98aa1c4e1e99e1792928ea2433c201","impliedFormat":99},{"version":"9462f849ff8d50a61639f09a8e369f7584c623a8cbcf9d99c6b81aacbca91fd2","impliedFormat":99},{"version":"b914609f1e239e89a080ab7f5ff72594deb7cde2e9747eac1a8095593ffb4ba9","signature":"55aac1cafba7e50f99fb9e8628a7f634e8354534e96ea8585821215c87de20be","impliedFormat":99},{"version":"4fb51536d048114117c829bb5f4f5846f3988bbda16f57326507323fe19888a6","signature":"f88f71f98c5b98896efe89d3a38dc6ec813b7e08d168f1006c4973839d77ca08","impliedFormat":99},{"version":"e3e990113befca442516787f1b0c38345ce97b6424711b8082d890659c88d9d3","signature":"b76aa9f47943110ec585bb2b743aecb6f000377700923632f0db301482bdd73c","impliedFormat":99},{"version":"c2b69bbc1bbf79f09e72e69716aaddc83142a04e57bf30c673570aaabd5384e8","signature":"af1988260c49b37553045ea830586a7aeb8e442f20579ee17b5a2ac26141ad6c","impliedFormat":99},{"version":"acb02c911ca0e588841b120e519904adb79fe7dacc55d16bc6cdd2e02e15c1b4","signature":"bcd5f304d453dd40284c9645b5de54e0d8c8df0f3d80f53d664d3f99782d0ef5","impliedFormat":99},{"version":"6f173d4e758b7ff70a3e0b3b2906869970cd23559eb6f19bfd6caa395e8e6f51","signature":"a7298076563ec3132348662dacd7512b67a8564714460cf092a0211bcca5ee20","impliedFormat":99},{"version":"90bf7a0f6125cfb40e3b9c1f5f471a235bc92c9a0bf9934a996648e5861e70c9","signature":"c99b7291b92920c8990726218d15eb170e32f6d74c63b7a020f0812f8546d288","impliedFormat":99},{"version":"1a7eec8977d21e8bf216ea62b836bdda1768c2a49ee689e5e09fb2f56a7837e4","impliedFormat":99},{"version":"8deb0c1eae578bb83a0056727ddec6be752d015acebfdd90f53797f8a035e57d","affectsGlobalScope":true,"impliedFormat":99},{"version":"d0b90b2c22bda9b6a7dabfb505a7fd3896e0267ab791d63a4a37098d0829e1b0","impliedFormat":99},{"version":"d26efa37b7cbdcc391dc201683de609900869d285213abf1dcbfb5275427142f","affectsGlobalScope":true,"impliedFormat":99},{"version":"91fef52fa405faea2655ba962976276354dd95a8a798d50093f0f36d892f284a","impliedFormat":99},{"version":"586cc6c492134b4680582124d2cd7d20efe0993917871647e0000dbf670bc0da","impliedFormat":99},{"version":"128dd324162f550efaa333faa60d5e1a906ddc721d0886ae3dbeb1bcc54215d2","impliedFormat":99},{"version":"4b8b7197750fcbfe01b0c3b0e42a18367763e07eb937e0a278a27c69489a2575","impliedFormat":99},{"version":"d4da538767f45678c255eed4eec91d41258f5131eb71cfbc2e91ebf16a594589","impliedFormat":99},{"version":"dfa521b1b4994a5d12b9623631ecb8d95946c5d713a10b166c696eea38f033a3","affectsGlobalScope":true,"impliedFormat":99},{"version":"8da68db739c372e4946fa6d90801a130b2a4a0911bf675a67cea1a46bc8ef9b5","impliedFormat":99},{"version":"5909822e51c156ca38c8128a3b4fd79bb1ac06bfaef5b5dc6fa7d2ac9b1cd709","impliedFormat":99},{"version":"b5fc3758badb6cba6058263b5ecbeef42bc4facd91e0c22f5b67bd9cbf6f3c38","signature":"1981a715841b053d196bd2fa7094a40e443550be04387c5bd61bd987c862a8c1","impliedFormat":99},{"version":"f443edf6e3ec017a14d0548b99e633d275550f30c992b11e637b58f06d81a873","signature":"2b9a95c45751bab93ad8f47330f6e9ca44fe49484c34678f186994e92c539819","impliedFormat":99},{"version":"09cf69a8522e2f0ad61f5f06064790879630e9a6286d2ee67cb5c5e2a8294b01","signature":"d99f0729ec70cb1c9f9a7e6352033a73dc082bf4b51ee2c2c1a78a19072af511","impliedFormat":99},{"version":"3ed8aa2be77f350abf0e3187f5a741705e574fc096ed17f2272f541fc1c2b174","signature":"49243f7ff940e6fa2bb1064e9db8579284331ebfdbbc40afa4c5579c11daed12","impliedFormat":99},{"version":"78d090343163533c491a6d5f7e78345028525dad8309018d6f1d35353df76be7","signature":"e13cb0a1ad0c178ffd4c18d55e4928100f372b9676636f5ae7d60e1ff815a256","impliedFormat":99},{"version":"57377e13a58d49bd0728c0ecd74ba5be92a88f73d95db22b51b2d792ad6172cf","signature":"ca44c014d4c7b60f6f7c547055de18485d94714fb9012de67c2220449c3f4afc","impliedFormat":99},{"version":"aee9b6d84ee4c14f2d1606405b03f7d0b369e28a17014fb9eeef93eb30d84b66","signature":"0f633f56c3e62663502f33a45c9e05f06c638e00f949bbaa3efcb6623af1f910","impliedFormat":99},{"version":"60edb57b6ae44feb35c099fd4f47a800bc4ae76b06d583c5f9f09f8690415a30","signature":"19764f46f5f49e9c0426e38e477f1ca75748f93e7314ff91fa92e4fd63df3eb8","impliedFormat":99},{"version":"330dd85a3b1d85485f78513f70b5ff7367e2b96b00278f140d5de0c263f0cef0","signature":"3978e1a4e65d355befa56b48fece71e9cee3985f568ad88de880a9ebc336b03a","impliedFormat":99},{"version":"0b6d588d7c2fa5b9a5b28cecffd371b63f5f730c9119120d19f8027d92ac7cfa","impliedFormat":99},{"version":"a1b8bcb1774f7f1ffb1e8fd0e411691ae561e866aedc8887e9f8f823da482a5c","affectsGlobalScope":true,"impliedFormat":99}],"root":[88,89,106,[110,116],[129,139]],"options":{"allowJs":true,"checkJs":false,"composite":true,"declaration":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":199,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"strict":false,"target":99},"referencedMap":[[98,1],[99,2],[100,3],[101,4],[117,5],[118,6],[123,7],[124,8],[125,9],[126,10],[127,11],[128,12],[102,13],[139,14],[105,15],[106,16],[107,17],[97,18],[90,19],[91,20],[108,21],[109,22],[119,23],[120,24],[121,3],[122,25],[93,26],[94,18],[95,27],[96,28],[110,20],[111,20],[116,20],[129,29],[130,30],[138,31],[137,20],[135,30]],"latestChangedDtsFile":"./lib/types/index.d.ts","version":"6.0.3"}
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.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","./src/callable.ts","./src/base64.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-ambient.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0-import.d.ts","../../../node_modules/@girs/gjs/gettext.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-ambient.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0-import.d.ts","../../../node_modules/@girs/gobject-2.0/gobject-2.0.d.ts","../../../node_modules/@girs/gobject-2.0/index.d.ts","../../../node_modules/@girs/gjs/system.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-ambient.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0-import.d.ts","../../../node_modules/@girs/cairo-1.0/cairo-1.0.d.ts","../../../node_modules/@girs/cairo-1.0/index.d.ts","../../../node_modules/@girs/gjs/cairo.d.ts","../../../node_modules/@girs/gjs/console.d.ts","../../../node_modules/@girs/gjs/gi.d.ts","../../../node_modules/@girs/gjs/gjs-ambient.d.ts","../../../node_modules/@girs/gjs/gjs.d.ts","../../../node_modules/@girs/gjs/index.d.ts","../../../node_modules/@girs/glib-2.0/glib-2.0.d.ts","../../../node_modules/@girs/glib-2.0/index.d.ts","./src/byte-array.ts","./src/cli.ts","./src/defer.ts","./src/encoding.ts","./src/globals.ts","./src/error.ts","./src/file.ts","../../../node_modules/@girs/gio-2.0/gio-2.0-ambient.d.ts","../../../node_modules/@girs/gio-2.0/gio-2.0-import.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0-ambient.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0-import.d.ts","../../../node_modules/@girs/gmodule-2.0/gmodule-2.0.d.ts","../../../node_modules/@girs/gmodule-2.0/index.d.ts","../../../node_modules/@girs/gio-2.0/gio-2.0.d.ts","../../../node_modules/@girs/gio-2.0/index.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0-ambient.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0-import.d.ts","../../../node_modules/@girs/giounix-2.0/giounix-2.0.d.ts","../../../node_modules/@girs/giounix-2.0/index.d.ts","./src/fs.ts","./src/gio.ts","./src/gio-errors.ts","./src/message.ts","./src/microtask.ts","./src/next-tick.ts","./src/path.ts","./src/structured-clone.ts","./src/main-loop.ts","./src/index.ts","../../../node_modules/@girs/gjs/dom.d.ts"],"fileIdsList":[[98,101],[101],[96,107,109],[99,100],[117,124],[124],[96,107,109,122],[118,123],[125,128],[128],[96,107,109,122,124],[126,127],[96,101],[96,109],[92,97,102,103,104],[92,96,97,102,109],[106],[96],[90,109],[109],[96,107],[91,108],[119,122],[122],[120,121],[93,96],[107,109],[94,95],[124,128],[109,124],[88,89,110,111,112,113,114,115,116,129,130,131,132,133,134,135,136,137]],"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":"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":"3b00159041ddc439a199e53df5339f0583d31b63c5e1acf19b0ff6f12f8b4623","signature":"d2e00d708f8db8281e83b0966bb384491deccea1a1fecdf2e6cf600d8fdeda80","impliedFormat":99},{"version":"20abcc37a8c39848767fcc645d73b9a6d42db0d83d8702198b27e850317f4b49","signature":"004cd7c170c88793a62f0b831a52c8bec5835581048d81ec483105bb6fb569c8","impliedFormat":99},{"version":"2aed5de224f5094280addfaf59e82b362b3680083917cfa7f066c4b89cc58b74","impliedFormat":99},{"version":"86ecf772256f9205f72c768dc9b47d27b4254a64a1dd94f61c8c2f29219c24e1","affectsGlobalScope":true,"impliedFormat":99},{"version":"4936d25ba31379ce4e3d4289f6c0ea936510e111f823ec377015de6ba7047adf","impliedFormat":99},{"version":"1ffa53902f87f288dbaebc1dd9c754a0f0f1c4af2733fc7e173022209e7d4ef8","impliedFormat":99},{"version":"d7801240a49920afb07e1a83597b05a26e5e3758163a70448ba14df3f7ab5286","affectsGlobalScope":true,"impliedFormat":99},{"version":"6da820ee582c593971e71a933dbf54d72b47984bb11f888d225c7a8476e74790","impliedFormat":99},{"version":"048a292f9fb06d0aab8c52cabd81bc820c70d68500530afe1867c08e431d4e46","impliedFormat":99},{"version":"e2f9944677cba1c7f636dde67d7ca77982da3b52134c617bd86d3a4d8607b498","impliedFormat":99},{"version":"ceaf67c6cb2df4f38f466bd3709a72199d1d98377dcf215bf760b2a383fc73a8","impliedFormat":99},{"version":"c5f89dedf8e238012d580d16ee2286bf0681f1389f14d419c87711070430995c","affectsGlobalScope":true,"impliedFormat":99},{"version":"dc996a90baa100126e6014b2f55022930e1a44621ec68eb163f322714b7596bc","impliedFormat":99},{"version":"cdd5245a59183386c7b465ad56e2353a0a1b49c32733520ec5c0eeb718781012","impliedFormat":99},{"version":"35c6737b37a2c92e67a14ba7692f3216df6c140c28133835768f7c66cb15fa88","impliedFormat":99},{"version":"7b607f4711c496c7c4f57abddfc7b9912059e1f264417ff8f4280b65f756bf4d","impliedFormat":99},{"version":"17122ddf1e2ff9f0538a06af6edc8d2666d7e1a428239e86358afc09ac7a8779","impliedFormat":99},{"version":"2cc6a5c34041442caa16aff0686d41595296248c7c33bfac5b94cd4fe8ae20de","impliedFormat":99},{"version":"8384e3ab082eecd9d0faa07ddf7e9ff3879bfac60216e47328f799600e47ea80","affectsGlobalScope":true,"impliedFormat":99},{"version":"715e7c015d2f3f4de0da107d9be2db02b52cea3d2d446ad11d2e732848d8e3e7","impliedFormat":99},{"version":"f62bcd0d626998f4b14a5e4bf6c65abf4dfeaa042243dd57e4e92125fd602ed6","impliedFormat":99},{"version":"9462f849ff8d50a61639f09a8e369f7584c623a8cbcf9d99c6b81aacbca91fd2","impliedFormat":99},{"version":"b914609f1e239e89a080ab7f5ff72594deb7cde2e9747eac1a8095593ffb4ba9","signature":"55aac1cafba7e50f99fb9e8628a7f634e8354534e96ea8585821215c87de20be","impliedFormat":99},{"version":"4fb51536d048114117c829bb5f4f5846f3988bbda16f57326507323fe19888a6","signature":"f88f71f98c5b98896efe89d3a38dc6ec813b7e08d168f1006c4973839d77ca08","impliedFormat":99},{"version":"e3e990113befca442516787f1b0c38345ce97b6424711b8082d890659c88d9d3","signature":"b76aa9f47943110ec585bb2b743aecb6f000377700923632f0db301482bdd73c","impliedFormat":99},{"version":"c2b69bbc1bbf79f09e72e69716aaddc83142a04e57bf30c673570aaabd5384e8","signature":"af1988260c49b37553045ea830586a7aeb8e442f20579ee17b5a2ac26141ad6c","impliedFormat":99},{"version":"acb02c911ca0e588841b120e519904adb79fe7dacc55d16bc6cdd2e02e15c1b4","signature":"bcd5f304d453dd40284c9645b5de54e0d8c8df0f3d80f53d664d3f99782d0ef5","impliedFormat":99},{"version":"6f173d4e758b7ff70a3e0b3b2906869970cd23559eb6f19bfd6caa395e8e6f51","signature":"a7298076563ec3132348662dacd7512b67a8564714460cf092a0211bcca5ee20","impliedFormat":99},{"version":"90bf7a0f6125cfb40e3b9c1f5f471a235bc92c9a0bf9934a996648e5861e70c9","signature":"c99b7291b92920c8990726218d15eb170e32f6d74c63b7a020f0812f8546d288","impliedFormat":99},{"version":"1a7eec8977d21e8bf216ea62b836bdda1768c2a49ee689e5e09fb2f56a7837e4","impliedFormat":99},{"version":"8deb0c1eae578bb83a0056727ddec6be752d015acebfdd90f53797f8a035e57d","affectsGlobalScope":true,"impliedFormat":99},{"version":"d0b90b2c22bda9b6a7dabfb505a7fd3896e0267ab791d63a4a37098d0829e1b0","impliedFormat":99},{"version":"d26efa37b7cbdcc391dc201683de609900869d285213abf1dcbfb5275427142f","affectsGlobalScope":true,"impliedFormat":99},{"version":"0fe0f52d9ee15bf4fbeef129a5841a706720641554be2220df52c994f343a2f1","impliedFormat":99},{"version":"586cc6c492134b4680582124d2cd7d20efe0993917871647e0000dbf670bc0da","impliedFormat":99},{"version":"eaac6969d2a0d853a8870b9ba9591b429b80f99308cc97c3fe223b54bfc4127f","impliedFormat":99},{"version":"4b8b7197750fcbfe01b0c3b0e42a18367763e07eb937e0a278a27c69489a2575","impliedFormat":99},{"version":"d4da538767f45678c255eed4eec91d41258f5131eb71cfbc2e91ebf16a594589","impliedFormat":99},{"version":"dfa521b1b4994a5d12b9623631ecb8d95946c5d713a10b166c696eea38f033a3","affectsGlobalScope":true,"impliedFormat":99},{"version":"8da68db739c372e4946fa6d90801a130b2a4a0911bf675a67cea1a46bc8ef9b5","impliedFormat":99},{"version":"5909822e51c156ca38c8128a3b4fd79bb1ac06bfaef5b5dc6fa7d2ac9b1cd709","impliedFormat":99},{"version":"b5fc3758badb6cba6058263b5ecbeef42bc4facd91e0c22f5b67bd9cbf6f3c38","signature":"1981a715841b053d196bd2fa7094a40e443550be04387c5bd61bd987c862a8c1","impliedFormat":99},{"version":"f443edf6e3ec017a14d0548b99e633d275550f30c992b11e637b58f06d81a873","signature":"2b9a95c45751bab93ad8f47330f6e9ca44fe49484c34678f186994e92c539819","impliedFormat":99},{"version":"09cf69a8522e2f0ad61f5f06064790879630e9a6286d2ee67cb5c5e2a8294b01","signature":"d99f0729ec70cb1c9f9a7e6352033a73dc082bf4b51ee2c2c1a78a19072af511","impliedFormat":99},{"version":"3ed8aa2be77f350abf0e3187f5a741705e574fc096ed17f2272f541fc1c2b174","signature":"49243f7ff940e6fa2bb1064e9db8579284331ebfdbbc40afa4c5579c11daed12","impliedFormat":99},{"version":"78d090343163533c491a6d5f7e78345028525dad8309018d6f1d35353df76be7","signature":"e13cb0a1ad0c178ffd4c18d55e4928100f372b9676636f5ae7d60e1ff815a256","impliedFormat":99},{"version":"57377e13a58d49bd0728c0ecd74ba5be92a88f73d95db22b51b2d792ad6172cf","signature":"ca44c014d4c7b60f6f7c547055de18485d94714fb9012de67c2220449c3f4afc","impliedFormat":99},{"version":"aee9b6d84ee4c14f2d1606405b03f7d0b369e28a17014fb9eeef93eb30d84b66","signature":"0f633f56c3e62663502f33a45c9e05f06c638e00f949bbaa3efcb6623af1f910","impliedFormat":99},{"version":"60edb57b6ae44feb35c099fd4f47a800bc4ae76b06d583c5f9f09f8690415a30","signature":"19764f46f5f49e9c0426e38e477f1ca75748f93e7314ff91fa92e4fd63df3eb8","impliedFormat":99},{"version":"330dd85a3b1d85485f78513f70b5ff7367e2b96b00278f140d5de0c263f0cef0","signature":"3978e1a4e65d355befa56b48fece71e9cee3985f568ad88de880a9ebc336b03a","impliedFormat":99},{"version":"0b6d588d7c2fa5b9a5b28cecffd371b63f5f730c9119120d19f8027d92ac7cfa","impliedFormat":99},{"version":"a1b8bcb1774f7f1ffb1e8fd0e411691ae561e866aedc8887e9f8f823da482a5c","affectsGlobalScope":true,"impliedFormat":99}],"root":[88,89,106,[110,116],[129,139]],"options":{"allowJs":true,"checkJs":false,"composite":true,"declaration":true,"declarationDir":"./lib/types","emitDeclarationOnly":true,"experimentalDecorators":true,"module":199,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"strict":false,"target":99},"referencedMap":[[98,1],[99,2],[100,3],[101,4],[117,5],[118,6],[123,7],[124,8],[125,9],[126,10],[127,11],[128,12],[102,13],[139,14],[105,15],[106,16],[107,17],[97,18],[90,19],[91,20],[108,21],[109,22],[119,23],[120,24],[121,3],[122,25],[93,26],[94,18],[95,27],[96,28],[110,20],[111,20],[116,20],[129,29],[130,30],[138,31],[137,20],[135,30]],"latestChangedDtsFile":"./lib/types/index.d.ts","version":"6.0.3"}