@secure-exec/browser 0.0.0-agentos-dylib-base.edaa4a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/child-process-bridge.d.ts +25 -0
- package/dist/child-process-bridge.js +50 -0
- package/dist/converged-base64.d.ts +2 -0
- package/dist/converged-base64.js +41 -0
- package/dist/converged-dgram-bridge.d.ts +11 -0
- package/dist/converged-dgram-bridge.js +147 -0
- package/dist/converged-driver-setup.d.ts +22 -0
- package/dist/converged-driver-setup.js +72 -0
- package/dist/converged-execution-host-bridge.d.ts +7 -0
- package/dist/converged-execution-host-bridge.js +85 -0
- package/dist/converged-executor-session.d.ts +60 -0
- package/dist/converged-executor-session.js +127 -0
- package/dist/converged-fs-bridge.d.ts +42 -0
- package/dist/converged-fs-bridge.js +245 -0
- package/dist/converged-module-servicer.d.ts +8 -0
- package/dist/converged-module-servicer.js +79 -0
- package/dist/converged-net-bridge.d.ts +28 -0
- package/dist/converged-net-bridge.js +155 -0
- package/dist/converged-permissions.d.ts +9 -0
- package/dist/converged-permissions.js +46 -0
- package/dist/converged-sync-bridge-handler.d.ts +47 -0
- package/dist/converged-sync-bridge-handler.js +140 -0
- package/dist/converged-sync-bridge-router.d.ts +33 -0
- package/dist/converged-sync-bridge-router.js +41 -0
- package/dist/driver.d.ts +91 -0
- package/dist/driver.js +386 -0
- package/dist/encoding.d.ts +4 -0
- package/dist/encoding.js +102 -0
- package/dist/generated/util-polyfill.d.ts +1 -0
- package/dist/generated/util-polyfill.js +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +5 -0
- package/dist/kernel-backed-filesystem.d.ts +33 -0
- package/dist/kernel-backed-filesystem.js +205 -0
- package/dist/os-filesystem.d.ts +47 -0
- package/dist/os-filesystem.js +409 -0
- package/dist/permission-validation.d.ts +15 -0
- package/dist/permission-validation.js +62 -0
- package/dist/root-filesystem-from-vfs.d.ts +13 -0
- package/dist/root-filesystem-from-vfs.js +95 -0
- package/dist/runtime-driver.d.ts +66 -0
- package/dist/runtime-driver.js +611 -0
- package/dist/runtime.d.ts +248 -0
- package/dist/runtime.js +2296 -0
- package/dist/sidecar-wasm-module.d.ts +62 -0
- package/dist/sidecar-wasm-module.js +28 -0
- package/dist/sidecar-worker-protocol.d.ts +14 -0
- package/dist/sidecar-worker-protocol.js +9 -0
- package/dist/sidecar-worker.d.ts +19 -0
- package/dist/sidecar-worker.js +63 -0
- package/dist/signals.d.ts +13 -0
- package/dist/signals.js +89 -0
- package/dist/sync-bridge.d.ts +50 -0
- package/dist/sync-bridge.js +93 -0
- package/dist/wasi-polyfill.d.ts +1 -0
- package/dist/wasi-polyfill.js +2154 -0
- package/dist/worker-adapter.d.ts +21 -0
- package/dist/worker-adapter.js +41 -0
- package/dist/worker-protocol.d.ts +104 -0
- package/dist/worker-protocol.js +1 -0
- package/dist/worker-sidecar-client.d.ts +71 -0
- package/dist/worker-sidecar-client.js +152 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +2125 -0
- package/package.json +111 -0
package/dist/encoding.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export function toUint8Array(value) {
|
|
2
|
+
if (value instanceof Uint8Array) {
|
|
3
|
+
return value;
|
|
4
|
+
}
|
|
5
|
+
if (ArrayBuffer.isView(value)) {
|
|
6
|
+
return new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
7
|
+
}
|
|
8
|
+
if (value instanceof ArrayBuffer) {
|
|
9
|
+
return new Uint8Array(value);
|
|
10
|
+
}
|
|
11
|
+
return new TextEncoder().encode(String(value));
|
|
12
|
+
}
|
|
13
|
+
export function bytesToBase64(value) {
|
|
14
|
+
const bufferCtor = globalThis.Buffer;
|
|
15
|
+
if (bufferCtor) {
|
|
16
|
+
return bufferCtor.from(value).toString("base64");
|
|
17
|
+
}
|
|
18
|
+
let binary = "";
|
|
19
|
+
for (let offset = 0; offset < value.byteLength; offset += 0x8000) {
|
|
20
|
+
const chunk = value.subarray(offset, offset + 0x8000);
|
|
21
|
+
binary += String.fromCharCode(...chunk);
|
|
22
|
+
}
|
|
23
|
+
return btoa(binary);
|
|
24
|
+
}
|
|
25
|
+
export function base64ToBytes(value) {
|
|
26
|
+
const bufferCtor = globalThis.Buffer;
|
|
27
|
+
if (bufferCtor) {
|
|
28
|
+
return new Uint8Array(bufferCtor.from(value, "base64"));
|
|
29
|
+
}
|
|
30
|
+
const binary = atob(value);
|
|
31
|
+
const out = new Uint8Array(binary.length);
|
|
32
|
+
for (let offset = 0; offset < binary.length; offset += 1) {
|
|
33
|
+
out[offset] = binary.charCodeAt(offset);
|
|
34
|
+
}
|
|
35
|
+
return out;
|
|
36
|
+
}
|
|
37
|
+
export function guestEncodingBootstrapCode() {
|
|
38
|
+
return `
|
|
39
|
+
if (!globalThis.__agentOsEncoding) {
|
|
40
|
+
const encoder = new TextEncoder();
|
|
41
|
+
const bytesToBase64 = (bytes) => {
|
|
42
|
+
let binary = "";
|
|
43
|
+
for (let offset = 0; offset < bytes.byteLength; offset += 0x8000) {
|
|
44
|
+
const chunk = bytes.subarray(offset, offset + 0x8000);
|
|
45
|
+
binary += String.fromCharCode(...chunk);
|
|
46
|
+
}
|
|
47
|
+
return btoa(binary);
|
|
48
|
+
};
|
|
49
|
+
const base64ToBytes = (value) => {
|
|
50
|
+
const binary = atob(value);
|
|
51
|
+
const out = new Uint8Array(binary.length);
|
|
52
|
+
for (let index = 0; index < binary.length; index += 1) {
|
|
53
|
+
out[index] = binary.charCodeAt(index);
|
|
54
|
+
}
|
|
55
|
+
return out;
|
|
56
|
+
};
|
|
57
|
+
const toBytes = (value, encoding) => {
|
|
58
|
+
if (value == null) return new Uint8Array(0);
|
|
59
|
+
if (typeof value === "string") {
|
|
60
|
+
if (encoding === "hex") {
|
|
61
|
+
const out = new Uint8Array(Math.floor(value.length / 2));
|
|
62
|
+
for (let index = 0; index < out.length; index += 1) {
|
|
63
|
+
out[index] = parseInt(value.slice(index * 2, index * 2 + 2), 16);
|
|
64
|
+
}
|
|
65
|
+
return out;
|
|
66
|
+
}
|
|
67
|
+
if (encoding === "base64") return base64ToBytes(value);
|
|
68
|
+
return encoder.encode(value);
|
|
69
|
+
}
|
|
70
|
+
if (ArrayBuffer.isView(value)) {
|
|
71
|
+
return new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
72
|
+
}
|
|
73
|
+
if (value instanceof ArrayBuffer) return new Uint8Array(value);
|
|
74
|
+
if (Array.isArray(value)) return new Uint8Array(value);
|
|
75
|
+
if (value && value.type === "Buffer" && Array.isArray(value.data)) return new Uint8Array(value.data);
|
|
76
|
+
if (value && typeof value === "object" && value.type === "secret" && typeof value.export === "function") {
|
|
77
|
+
return toBytes(value.export());
|
|
78
|
+
}
|
|
79
|
+
return encoder.encode(String(value));
|
|
80
|
+
};
|
|
81
|
+
Object.defineProperty(globalThis, "__agentOsEncoding", {
|
|
82
|
+
configurable: true,
|
|
83
|
+
value: {
|
|
84
|
+
base64ToBytes,
|
|
85
|
+
bytesToBase64,
|
|
86
|
+
decodeBytesPayload(value) {
|
|
87
|
+
if (typeof value === "string") return encoder.encode(value);
|
|
88
|
+
if (!value || value.__agentOsType !== "bytes" || typeof value.base64 !== "string") {
|
|
89
|
+
return new Uint8Array(0);
|
|
90
|
+
}
|
|
91
|
+
return base64ToBytes(value.base64);
|
|
92
|
+
},
|
|
93
|
+
encodeBytesPayload(value) {
|
|
94
|
+
if (value == null) return null;
|
|
95
|
+
return { __agentOsType: "bytes", base64: bytesToBase64(toBytes(value)) };
|
|
96
|
+
},
|
|
97
|
+
toBytes,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BROWSER_UTIL_POLYFILL_CODE = "var process = globalThis.process || {\n env: {},\n nextTick: (fn, ...args) => queueMicrotask(() => fn(...args)),\n};\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\n\n// node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js\nvar require_shams = __commonJS({\n \"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = function hasSymbols() {\n if (typeof Symbol !== \"function\" || typeof Object.getOwnPropertySymbols !== \"function\") {\n return false;\n }\n if (typeof Symbol.iterator === \"symbol\") {\n return true;\n }\n var obj = {};\n var sym = /* @__PURE__ */ Symbol(\"test\");\n var symObj = Object(sym);\n if (typeof sym === \"string\") {\n return false;\n }\n if (Object.prototype.toString.call(sym) !== \"[object Symbol]\") {\n return false;\n }\n if (Object.prototype.toString.call(symObj) !== \"[object Symbol]\") {\n return false;\n }\n var symVal = 42;\n obj[sym] = symVal;\n for (var _ in obj) {\n return false;\n }\n if (typeof Object.keys === \"function\" && Object.keys(obj).length !== 0) {\n return false;\n }\n if (typeof Object.getOwnPropertyNames === \"function\" && Object.getOwnPropertyNames(obj).length !== 0) {\n return false;\n }\n var syms = Object.getOwnPropertySymbols(obj);\n if (syms.length !== 1 || syms[0] !== sym) {\n return false;\n }\n if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {\n return false;\n }\n if (typeof Object.getOwnPropertyDescriptor === \"function\") {\n var descriptor = (\n /** @type {PropertyDescriptor} */\n Object.getOwnPropertyDescriptor(obj, sym)\n );\n if (descriptor.value !== symVal || descriptor.enumerable !== true) {\n return false;\n }\n }\n return true;\n };\n }\n});\n\n// node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js\nvar require_shams2 = __commonJS({\n \"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js\"(exports2, module2) {\n \"use strict\";\n var hasSymbols = require_shams();\n module2.exports = function hasToStringTagShams() {\n return hasSymbols() && !!Symbol.toStringTag;\n };\n }\n});\n\n// node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\nvar require_es_object_atoms = __commonJS({\n \"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Object;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\nvar require_es_errors = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Error;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\nvar require_eval = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = EvalError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\nvar require_range = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = RangeError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\nvar require_ref = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = ReferenceError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\nvar require_syntax = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = SyntaxError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\nvar require_type = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = TypeError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\nvar require_uri = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = URIError;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\nvar require_abs = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.abs;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\nvar require_floor = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.floor;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\nvar require_max = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.max;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\nvar require_min = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.min;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\nvar require_pow = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.pow;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\nvar require_round = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.round;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js\nvar require_isNaN = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Number.isNaN || function isNaN2(a) {\n return a !== a;\n };\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\nvar require_sign = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\"(exports2, module2) {\n \"use strict\";\n var $isNaN = require_isNaN();\n module2.exports = function sign(number) {\n if ($isNaN(number) || number === 0) {\n return number;\n }\n return number < 0 ? -1 : 1;\n };\n }\n});\n\n// node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js\nvar require_gOPD = __commonJS({\n \"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Object.getOwnPropertyDescriptor;\n }\n});\n\n// node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\nvar require_gopd = __commonJS({\n \"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\"(exports2, module2) {\n \"use strict\";\n var $gOPD = require_gOPD();\n if ($gOPD) {\n try {\n $gOPD([], \"length\");\n } catch (e) {\n $gOPD = null;\n }\n }\n module2.exports = $gOPD;\n }\n});\n\n// node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\nvar require_es_define_property = __commonJS({\n \"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = Object.defineProperty || false;\n if ($defineProperty) {\n try {\n $defineProperty({}, \"a\", { value: 1 });\n } catch (e) {\n $defineProperty = false;\n }\n }\n module2.exports = $defineProperty;\n }\n});\n\n// node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\nvar require_has_symbols = __commonJS({\n \"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\"(exports2, module2) {\n \"use strict\";\n var origSymbol = typeof Symbol !== \"undefined\" && Symbol;\n var hasSymbolSham = require_shams();\n module2.exports = function hasNativeSymbols() {\n if (typeof origSymbol !== \"function\") {\n return false;\n }\n if (typeof Symbol !== \"function\") {\n return false;\n }\n if (typeof origSymbol(\"foo\") !== \"symbol\") {\n return false;\n }\n if (typeof /* @__PURE__ */ Symbol(\"bar\") !== \"symbol\") {\n return false;\n }\n return hasSymbolSham();\n };\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\nvar require_Reflect_getPrototypeOf = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = typeof Reflect !== \"undefined\" && Reflect.getPrototypeOf || null;\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\nvar require_Object_getPrototypeOf = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\"(exports2, module2) {\n \"use strict\";\n var $Object = require_es_object_atoms();\n module2.exports = $Object.getPrototypeOf || null;\n }\n});\n\n// node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js\nvar require_implementation = __commonJS({\n \"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js\"(exports2, module2) {\n \"use strict\";\n var ERROR_MESSAGE = \"Function.prototype.bind called on incompatible \";\n var toStr = Object.prototype.toString;\n var max = Math.max;\n var funcType = \"[object Function]\";\n var concatty = function concatty2(a, b) {\n var arr = [];\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n return arr;\n };\n var slicy = function slicy2(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n };\n var joiny = function(arr, joiner) {\n var str = \"\";\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n };\n module2.exports = function bind(that) {\n var target = this;\n if (typeof target !== \"function\" || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n var bound;\n var binder = function() {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n };\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = \"$\" + i;\n }\n bound = Function(\"binder\", \"return function (\" + joiny(boundArgs, \",\") + \"){ return binder.apply(this,arguments); }\")(binder);\n if (target.prototype) {\n var Empty = function Empty2() {\n };\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n return bound;\n };\n }\n});\n\n// node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\nvar require_function_bind = __commonJS({\n \"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\"(exports2, module2) {\n \"use strict\";\n var implementation = require_implementation();\n module2.exports = Function.prototype.bind || implementation;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\nvar require_functionCall = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Function.prototype.call;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\nvar require_functionApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Function.prototype.apply;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js\nvar require_reflectApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = typeof Reflect !== \"undefined\" && Reflect && Reflect.apply;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js\nvar require_actualApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $apply = require_functionApply();\n var $call = require_functionCall();\n var $reflectApply = require_reflectApply();\n module2.exports = $reflectApply || bind.call($call, $apply);\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js\nvar require_call_bind_apply_helpers = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $TypeError = require_type();\n var $call = require_functionCall();\n var $actualApply = require_actualApply();\n module2.exports = function callBindBasic(args) {\n if (args.length < 1 || typeof args[0] !== \"function\") {\n throw new $TypeError(\"a function is required\");\n }\n return $actualApply(bind, $call, args);\n };\n }\n});\n\n// node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js\nvar require_get = __commonJS({\n \"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js\"(exports2, module2) {\n \"use strict\";\n var callBind = require_call_bind_apply_helpers();\n var gOPD = require_gopd();\n var hasProtoAccessor;\n try {\n hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */\n [].__proto__ === Array.prototype;\n } catch (e) {\n if (!e || typeof e !== \"object\" || !(\"code\" in e) || e.code !== \"ERR_PROTO_ACCESS\") {\n throw e;\n }\n }\n var desc = !!hasProtoAccessor && gOPD && gOPD(\n Object.prototype,\n /** @type {keyof typeof Object.prototype} */\n \"__proto__\"\n );\n var $Object = Object;\n var $getPrototypeOf = $Object.getPrototypeOf;\n module2.exports = desc && typeof desc.get === \"function\" ? callBind([desc.get]) : typeof $getPrototypeOf === \"function\" ? (\n /** @type {import('./get')} */\n function getDunder(value) {\n return $getPrototypeOf(value == null ? value : $Object(value));\n }\n ) : false;\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\nvar require_get_proto = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\"(exports2, module2) {\n \"use strict\";\n var reflectGetProto = require_Reflect_getPrototypeOf();\n var originalGetProto = require_Object_getPrototypeOf();\n var getDunderProto = require_get();\n module2.exports = reflectGetProto ? function getProto(O) {\n return reflectGetProto(O);\n } : originalGetProto ? function getProto(O) {\n if (!O || typeof O !== \"object\" && typeof O !== \"function\") {\n throw new TypeError(\"getProto: not an object\");\n }\n return originalGetProto(O);\n } : getDunderProto ? function getProto(O) {\n return getDunderProto(O);\n } : null;\n }\n});\n\n// node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\nvar require_hasown = __commonJS({\n \"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\"(exports2, module2) {\n \"use strict\";\n var call = Function.prototype.call;\n var $hasOwn = Object.prototype.hasOwnProperty;\n var bind = require_function_bind();\n module2.exports = bind.call(call, $hasOwn);\n }\n});\n\n// node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js\nvar require_get_intrinsic = __commonJS({\n \"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js\"(exports2, module2) {\n \"use strict\";\n var undefined2;\n var $Object = require_es_object_atoms();\n var $Error = require_es_errors();\n var $EvalError = require_eval();\n var $RangeError = require_range();\n var $ReferenceError = require_ref();\n var $SyntaxError = require_syntax();\n var $TypeError = require_type();\n var $URIError = require_uri();\n var abs = require_abs();\n var floor = require_floor();\n var max = require_max();\n var min = require_min();\n var pow = require_pow();\n var round = require_round();\n var sign = require_sign();\n var $Function = Function;\n var getEvalledConstructor = function(expressionSyntax) {\n try {\n return $Function('\"use strict\"; return (' + expressionSyntax + \").constructor;\")();\n } catch (e) {\n }\n };\n var $gOPD = require_gopd();\n var $defineProperty = require_es_define_property();\n var throwTypeError = function() {\n throw new $TypeError();\n };\n var ThrowTypeError = $gOPD ? (function() {\n try {\n arguments.callee;\n return throwTypeError;\n } catch (calleeThrows) {\n try {\n return $gOPD(arguments, \"callee\").get;\n } catch (gOPDthrows) {\n return throwTypeError;\n }\n }\n })() : throwTypeError;\n var hasSymbols = require_has_symbols()();\n var getProto = require_get_proto();\n var $ObjectGPO = require_Object_getPrototypeOf();\n var $ReflectGPO = require_Reflect_getPrototypeOf();\n var $apply = require_functionApply();\n var $call = require_functionCall();\n var needsEval = {};\n var TypedArray = typeof Uint8Array === \"undefined\" || !getProto ? undefined2 : getProto(Uint8Array);\n var INTRINSICS = {\n __proto__: null,\n \"%AggregateError%\": typeof AggregateError === \"undefined\" ? undefined2 : AggregateError,\n \"%Array%\": Array,\n \"%ArrayBuffer%\": typeof ArrayBuffer === \"undefined\" ? undefined2 : ArrayBuffer,\n \"%ArrayIteratorPrototype%\": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,\n \"%AsyncFromSyncIteratorPrototype%\": undefined2,\n \"%AsyncFunction%\": needsEval,\n \"%AsyncGenerator%\": needsEval,\n \"%AsyncGeneratorFunction%\": needsEval,\n \"%AsyncIteratorPrototype%\": needsEval,\n \"%Atomics%\": typeof Atomics === \"undefined\" ? undefined2 : Atomics,\n \"%BigInt%\": typeof BigInt === \"undefined\" ? undefined2 : BigInt,\n \"%BigInt64Array%\": typeof BigInt64Array === \"undefined\" ? undefined2 : BigInt64Array,\n \"%BigUint64Array%\": typeof BigUint64Array === \"undefined\" ? undefined2 : BigUint64Array,\n \"%Boolean%\": Boolean,\n \"%DataView%\": typeof DataView === \"undefined\" ? undefined2 : DataView,\n \"%Date%\": Date,\n \"%decodeURI%\": decodeURI,\n \"%decodeURIComponent%\": decodeURIComponent,\n \"%encodeURI%\": encodeURI,\n \"%encodeURIComponent%\": encodeURIComponent,\n \"%Error%\": $Error,\n \"%eval%\": eval,\n // eslint-disable-line no-eval\n \"%EvalError%\": $EvalError,\n \"%Float16Array%\": typeof Float16Array === \"undefined\" ? undefined2 : Float16Array,\n \"%Float32Array%\": typeof Float32Array === \"undefined\" ? undefined2 : Float32Array,\n \"%Float64Array%\": typeof Float64Array === \"undefined\" ? undefined2 : Float64Array,\n \"%FinalizationRegistry%\": typeof FinalizationRegistry === \"undefined\" ? undefined2 : FinalizationRegistry,\n \"%Function%\": $Function,\n \"%GeneratorFunction%\": needsEval,\n \"%Int8Array%\": typeof Int8Array === \"undefined\" ? undefined2 : Int8Array,\n \"%Int16Array%\": typeof Int16Array === \"undefined\" ? undefined2 : Int16Array,\n \"%Int32Array%\": typeof Int32Array === \"undefined\" ? undefined2 : Int32Array,\n \"%isFinite%\": isFinite,\n \"%isNaN%\": isNaN,\n \"%IteratorPrototype%\": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,\n \"%JSON%\": typeof JSON === \"object\" ? JSON : undefined2,\n \"%Map%\": typeof Map === \"undefined\" ? undefined2 : Map,\n \"%MapIteratorPrototype%\": typeof Map === \"undefined\" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),\n \"%Math%\": Math,\n \"%Number%\": Number,\n \"%Object%\": $Object,\n \"%Object.getOwnPropertyDescriptor%\": $gOPD,\n \"%parseFloat%\": parseFloat,\n \"%parseInt%\": parseInt,\n \"%Promise%\": typeof Promise === \"undefined\" ? undefined2 : Promise,\n \"%Proxy%\": typeof Proxy === \"undefined\" ? undefined2 : Proxy,\n \"%RangeError%\": $RangeError,\n \"%ReferenceError%\": $ReferenceError,\n \"%Reflect%\": typeof Reflect === \"undefined\" ? undefined2 : Reflect,\n \"%RegExp%\": RegExp,\n \"%Set%\": typeof Set === \"undefined\" ? undefined2 : Set,\n \"%SetIteratorPrototype%\": typeof Set === \"undefined\" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),\n \"%SharedArrayBuffer%\": typeof SharedArrayBuffer === \"undefined\" ? undefined2 : SharedArrayBuffer,\n \"%String%\": String,\n \"%StringIteratorPrototype%\": hasSymbols && getProto ? getProto(\"\"[Symbol.iterator]()) : undefined2,\n \"%Symbol%\": hasSymbols ? Symbol : undefined2,\n \"%SyntaxError%\": $SyntaxError,\n \"%ThrowTypeError%\": ThrowTypeError,\n \"%TypedArray%\": TypedArray,\n \"%TypeError%\": $TypeError,\n \"%Uint8Array%\": typeof Uint8Array === \"undefined\" ? undefined2 : Uint8Array,\n \"%Uint8ClampedArray%\": typeof Uint8ClampedArray === \"undefined\" ? undefined2 : Uint8ClampedArray,\n \"%Uint16Array%\": typeof Uint16Array === \"undefined\" ? undefined2 : Uint16Array,\n \"%Uint32Array%\": typeof Uint32Array === \"undefined\" ? undefined2 : Uint32Array,\n \"%URIError%\": $URIError,\n \"%WeakMap%\": typeof WeakMap === \"undefined\" ? undefined2 : WeakMap,\n \"%WeakRef%\": typeof WeakRef === \"undefined\" ? undefined2 : WeakRef,\n \"%WeakSet%\": typeof WeakSet === \"undefined\" ? undefined2 : WeakSet,\n \"%Function.prototype.call%\": $call,\n \"%Function.prototype.apply%\": $apply,\n \"%Object.defineProperty%\": $defineProperty,\n \"%Object.getPrototypeOf%\": $ObjectGPO,\n \"%Math.abs%\": abs,\n \"%Math.floor%\": floor,\n \"%Math.max%\": max,\n \"%Math.min%\": min,\n \"%Math.pow%\": pow,\n \"%Math.round%\": round,\n \"%Math.sign%\": sign,\n \"%Reflect.getPrototypeOf%\": $ReflectGPO\n };\n if (getProto) {\n try {\n null.error;\n } catch (e) {\n errorProto = getProto(getProto(e));\n INTRINSICS[\"%Error.prototype%\"] = errorProto;\n }\n }\n var errorProto;\n var doEval = function doEval2(name) {\n var value;\n if (name === \"%AsyncFunction%\") {\n value = getEvalledConstructor(\"async function () {}\");\n } else if (name === \"%GeneratorFunction%\") {\n value = getEvalledConstructor(\"function* () {}\");\n } else if (name === \"%AsyncGeneratorFunction%\") {\n value = getEvalledConstructor(\"async function* () {}\");\n } else if (name === \"%AsyncGenerator%\") {\n var fn = doEval2(\"%AsyncGeneratorFunction%\");\n if (fn) {\n value = fn.prototype;\n }\n } else if (name === \"%AsyncIteratorPrototype%\") {\n var gen = doEval2(\"%AsyncGenerator%\");\n if (gen && getProto) {\n value = getProto(gen.prototype);\n }\n }\n INTRINSICS[name] = value;\n return value;\n };\n var LEGACY_ALIASES = {\n __proto__: null,\n \"%ArrayBufferPrototype%\": [\"ArrayBuffer\", \"prototype\"],\n \"%ArrayPrototype%\": [\"Array\", \"prototype\"],\n \"%ArrayProto_entries%\": [\"Array\", \"prototype\", \"entries\"],\n \"%ArrayProto_forEach%\": [\"Array\", \"prototype\", \"forEach\"],\n \"%ArrayProto_keys%\": [\"Array\", \"prototype\", \"keys\"],\n \"%ArrayProto_values%\": [\"Array\", \"prototype\", \"values\"],\n \"%AsyncFunctionPrototype%\": [\"AsyncFunction\", \"prototype\"],\n \"%AsyncGenerator%\": [\"AsyncGeneratorFunction\", \"prototype\"],\n \"%AsyncGeneratorPrototype%\": [\"AsyncGeneratorFunction\", \"prototype\", \"prototype\"],\n \"%BooleanPrototype%\": [\"Boolean\", \"prototype\"],\n \"%DataViewPrototype%\": [\"DataView\", \"prototype\"],\n \"%DatePrototype%\": [\"Date\", \"prototype\"],\n \"%ErrorPrototype%\": [\"Error\", \"prototype\"],\n \"%EvalErrorPrototype%\": [\"EvalError\", \"prototype\"],\n \"%Float32ArrayPrototype%\": [\"Float32Array\", \"prototype\"],\n \"%Float64ArrayPrototype%\": [\"Float64Array\", \"prototype\"],\n \"%FunctionPrototype%\": [\"Function\", \"prototype\"],\n \"%Generator%\": [\"GeneratorFunction\", \"prototype\"],\n \"%GeneratorPrototype%\": [\"GeneratorFunction\", \"prototype\", \"prototype\"],\n \"%Int8ArrayPrototype%\": [\"Int8Array\", \"prototype\"],\n \"%Int16ArrayPrototype%\": [\"Int16Array\", \"prototype\"],\n \"%Int32ArrayPrototype%\": [\"Int32Array\", \"prototype\"],\n \"%JSONParse%\": [\"JSON\", \"parse\"],\n \"%JSONStringify%\": [\"JSON\", \"stringify\"],\n \"%MapPrototype%\": [\"Map\", \"prototype\"],\n \"%NumberPrototype%\": [\"Number\", \"prototype\"],\n \"%ObjectPrototype%\": [\"Object\", \"prototype\"],\n \"%ObjProto_toString%\": [\"Object\", \"prototype\", \"toString\"],\n \"%ObjProto_valueOf%\": [\"Object\", \"prototype\", \"valueOf\"],\n \"%PromisePrototype%\": [\"Promise\", \"prototype\"],\n \"%PromiseProto_then%\": [\"Promise\", \"prototype\", \"then\"],\n \"%Promise_all%\": [\"Promise\", \"all\"],\n \"%Promise_reject%\": [\"Promise\", \"reject\"],\n \"%Promise_resolve%\": [\"Promise\", \"resolve\"],\n \"%RangeErrorPrototype%\": [\"RangeError\", \"prototype\"],\n \"%ReferenceErrorPrototype%\": [\"ReferenceError\", \"prototype\"],\n \"%RegExpPrototype%\": [\"RegExp\", \"prototype\"],\n \"%SetPrototype%\": [\"Set\", \"prototype\"],\n \"%SharedArrayBufferPrototype%\": [\"SharedArrayBuffer\", \"prototype\"],\n \"%StringPrototype%\": [\"String\", \"prototype\"],\n \"%SymbolPrototype%\": [\"Symbol\", \"prototype\"],\n \"%SyntaxErrorPrototype%\": [\"SyntaxError\", \"prototype\"],\n \"%TypedArrayPrototype%\": [\"TypedArray\", \"prototype\"],\n \"%TypeErrorPrototype%\": [\"TypeError\", \"prototype\"],\n \"%Uint8ArrayPrototype%\": [\"Uint8Array\", \"prototype\"],\n \"%Uint8ClampedArrayPrototype%\": [\"Uint8ClampedArray\", \"prototype\"],\n \"%Uint16ArrayPrototype%\": [\"Uint16Array\", \"prototype\"],\n \"%Uint32ArrayPrototype%\": [\"Uint32Array\", \"prototype\"],\n \"%URIErrorPrototype%\": [\"URIError\", \"prototype\"],\n \"%WeakMapPrototype%\": [\"WeakMap\", \"prototype\"],\n \"%WeakSetPrototype%\": [\"WeakSet\", \"prototype\"]\n };\n var bind = require_function_bind();\n var hasOwn = require_hasown();\n var $concat = bind.call($call, Array.prototype.concat);\n var $spliceApply = bind.call($apply, Array.prototype.splice);\n var $replace = bind.call($call, String.prototype.replace);\n var $strSlice = bind.call($call, String.prototype.slice);\n var $exec = bind.call($call, RegExp.prototype.exec);\n var rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\n var reEscapeChar = /\\\\(\\\\)?/g;\n var stringToPath = function stringToPath2(string) {\n var first = $strSlice(string, 0, 1);\n var last = $strSlice(string, -1);\n if (first === \"%\" && last !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected closing `%`\");\n } else if (last === \"%\" && first !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected opening `%`\");\n }\n var result = [];\n $replace(string, rePropName, function(match, number, quote, subString) {\n result[result.length] = quote ? $replace(subString, reEscapeChar, \"$1\") : number || match;\n });\n return result;\n };\n var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {\n var intrinsicName = name;\n var alias;\n if (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n alias = LEGACY_ALIASES[intrinsicName];\n intrinsicName = \"%\" + alias[0] + \"%\";\n }\n if (hasOwn(INTRINSICS, intrinsicName)) {\n var value = INTRINSICS[intrinsicName];\n if (value === needsEval) {\n value = doEval(intrinsicName);\n }\n if (typeof value === \"undefined\" && !allowMissing) {\n throw new $TypeError(\"intrinsic \" + name + \" exists, but is not available. Please file an issue!\");\n }\n return {\n alias,\n name: intrinsicName,\n value\n };\n }\n throw new $SyntaxError(\"intrinsic \" + name + \" does not exist!\");\n };\n module2.exports = function GetIntrinsic(name, allowMissing) {\n if (typeof name !== \"string\" || name.length === 0) {\n throw new $TypeError(\"intrinsic name must be a non-empty string\");\n }\n if (arguments.length > 1 && typeof allowMissing !== \"boolean\") {\n throw new $TypeError('\"allowMissing\" argument must be a boolean');\n }\n if ($exec(/^%?[^%]*%?$/, name) === null) {\n throw new $SyntaxError(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");\n }\n var parts = stringToPath(name);\n var intrinsicBaseName = parts.length > 0 ? parts[0] : \"\";\n var intrinsic = getBaseIntrinsic(\"%\" + intrinsicBaseName + \"%\", allowMissing);\n var intrinsicRealName = intrinsic.name;\n var value = intrinsic.value;\n var skipFurtherCaching = false;\n var alias = intrinsic.alias;\n if (alias) {\n intrinsicBaseName = alias[0];\n $spliceApply(parts, $concat([0, 1], alias));\n }\n for (var i = 1, isOwn = true; i < parts.length; i += 1) {\n var part = parts[i];\n var first = $strSlice(part, 0, 1);\n var last = $strSlice(part, -1);\n if ((first === '\"' || first === \"'\" || first === \"`\" || (last === '\"' || last === \"'\" || last === \"`\")) && first !== last) {\n throw new $SyntaxError(\"property names with quotes must have matching quotes\");\n }\n if (part === \"constructor\" || !isOwn) {\n skipFurtherCaching = true;\n }\n intrinsicBaseName += \".\" + part;\n intrinsicRealName = \"%\" + intrinsicBaseName + \"%\";\n if (hasOwn(INTRINSICS, intrinsicRealName)) {\n value = INTRINSICS[intrinsicRealName];\n } else if (value != null) {\n if (!(part in value)) {\n if (!allowMissing) {\n throw new $TypeError(\"base intrinsic for \" + name + \" exists, but the property is not available.\");\n }\n return void undefined2;\n }\n if ($gOPD && i + 1 >= parts.length) {\n var desc = $gOPD(value, part);\n isOwn = !!desc;\n if (isOwn && \"get\" in desc && !(\"originalValue\" in desc.get)) {\n value = desc.get;\n } else {\n value = value[part];\n }\n } else {\n isOwn = hasOwn(value, part);\n value = value[part];\n }\n if (isOwn && !skipFurtherCaching) {\n INTRINSICS[intrinsicRealName] = value;\n }\n }\n }\n return value;\n };\n }\n});\n\n// node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js\nvar require_call_bound = __commonJS({\n \"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js\"(exports2, module2) {\n \"use strict\";\n var GetIntrinsic = require_get_intrinsic();\n var callBindBasic = require_call_bind_apply_helpers();\n var $indexOf = callBindBasic([GetIntrinsic(\"%String.prototype.indexOf%\")]);\n module2.exports = function callBoundIntrinsic(name, allowMissing) {\n var intrinsic = (\n /** @type {(this: unknown, ...args: unknown[]) => unknown} */\n GetIntrinsic(name, !!allowMissing)\n );\n if (typeof intrinsic === \"function\" && $indexOf(name, \".prototype.\") > -1) {\n return callBindBasic(\n /** @type {const} */\n [intrinsic]\n );\n }\n return intrinsic;\n };\n }\n});\n\n// node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js\nvar require_is_arguments = __commonJS({\n \"node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js\"(exports2, module2) {\n \"use strict\";\n var hasToStringTag = require_shams2()();\n var callBound = require_call_bound();\n var $toString = callBound(\"Object.prototype.toString\");\n var isStandardArguments = function isArguments(value) {\n if (hasToStringTag && value && typeof value === \"object\" && Symbol.toStringTag in value) {\n return false;\n }\n return $toString(value) === \"[object Arguments]\";\n };\n var isLegacyArguments = function isArguments(value) {\n if (isStandardArguments(value)) {\n return true;\n }\n return value !== null && typeof value === \"object\" && \"length\" in value && typeof value.length === \"number\" && value.length >= 0 && $toString(value) !== \"[object Array]\" && \"callee\" in value && $toString(value.callee) === \"[object Function]\";\n };\n var supportsStandardArguments = (function() {\n return isStandardArguments(arguments);\n })();\n isStandardArguments.isLegacyArguments = isLegacyArguments;\n module2.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n }\n});\n\n// node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js\nvar require_is_regex = __commonJS({\n \"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var hasToStringTag = require_shams2()();\n var hasOwn = require_hasown();\n var gOPD = require_gopd();\n var fn;\n if (hasToStringTag) {\n $exec = callBound(\"RegExp.prototype.exec\");\n isRegexMarker = {};\n throwRegexMarker = function() {\n throw isRegexMarker;\n };\n badStringifier = {\n toString: throwRegexMarker,\n valueOf: throwRegexMarker\n };\n if (typeof Symbol.toPrimitive === \"symbol\") {\n badStringifier[Symbol.toPrimitive] = throwRegexMarker;\n }\n fn = function isRegex(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n var descriptor = (\n /** @type {NonNullable<typeof gOPD>} */\n gOPD(\n /** @type {{ lastIndex?: unknown }} */\n value,\n \"lastIndex\"\n )\n );\n var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, \"value\");\n if (!hasLastIndexDataProperty) {\n return false;\n }\n try {\n $exec(\n value,\n /** @type {string} */\n /** @type {unknown} */\n badStringifier\n );\n } catch (e) {\n return e === isRegexMarker;\n }\n };\n } else {\n $toString = callBound(\"Object.prototype.toString\");\n regexClass = \"[object RegExp]\";\n fn = function isRegex(value) {\n if (!value || typeof value !== \"object\" && typeof value !== \"function\") {\n return false;\n }\n return $toString(value) === regexClass;\n };\n }\n var $exec;\n var isRegexMarker;\n var throwRegexMarker;\n var badStringifier;\n var $toString;\n var regexClass;\n module2.exports = fn;\n }\n});\n\n// node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js\nvar require_safe_regex_test = __commonJS({\n \"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var isRegex = require_is_regex();\n var $exec = callBound(\"RegExp.prototype.exec\");\n var $TypeError = require_type();\n module2.exports = function regexTester(regex) {\n if (!isRegex(regex)) {\n throw new $TypeError(\"`regex` must be a RegExp\");\n }\n return function test(s) {\n return $exec(regex, s) !== null;\n };\n };\n }\n});\n\n// node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js\nvar require_generator_function = __commonJS({\n \"node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js\"(exports2, module2) {\n \"use strict\";\n var cached = (\n /** @type {GeneratorFunctionConstructor} */\n function* () {\n }.constructor\n );\n module2.exports = () => cached;\n }\n});\n\n// node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js\nvar require_is_generator_function = __commonJS({\n \"node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var safeRegexTest = require_safe_regex_test();\n var isFnRegex = safeRegexTest(/^\\s*(?:function)?\\*/);\n var hasToStringTag = require_shams2()();\n var getProto = require_get_proto();\n var toStr = callBound(\"Object.prototype.toString\");\n var fnToStr = callBound(\"Function.prototype.toString\");\n var getGeneratorFunction = require_generator_function();\n module2.exports = function isGeneratorFunction(fn) {\n if (typeof fn !== \"function\") {\n return false;\n }\n if (isFnRegex(fnToStr(fn))) {\n return true;\n }\n if (!hasToStringTag) {\n var str = toStr(fn);\n return str === \"[object GeneratorFunction]\";\n }\n if (!getProto) {\n return false;\n }\n var GeneratorFunction = getGeneratorFunction();\n return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;\n };\n }\n});\n\n// node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js\nvar require_is_callable = __commonJS({\n \"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js\"(exports2, module2) {\n \"use strict\";\n var fnToStr = Function.prototype.toString;\n var reflectApply = typeof Reflect === \"object\" && Reflect !== null && Reflect.apply;\n var badArrayLike;\n var isCallableMarker;\n if (typeof reflectApply === \"function\" && typeof Object.defineProperty === \"function\") {\n try {\n badArrayLike = Object.defineProperty({}, \"length\", {\n get: function() {\n throw isCallableMarker;\n }\n });\n isCallableMarker = {};\n reflectApply(function() {\n throw 42;\n }, null, badArrayLike);\n } catch (_) {\n if (_ !== isCallableMarker) {\n reflectApply = null;\n }\n }\n } else {\n reflectApply = null;\n }\n var constructorRegex = /^\\s*class\\b/;\n var isES6ClassFn = function isES6ClassFunction(value) {\n try {\n var fnStr = fnToStr.call(value);\n return constructorRegex.test(fnStr);\n } catch (e) {\n return false;\n }\n };\n var tryFunctionObject = function tryFunctionToStr(value) {\n try {\n if (isES6ClassFn(value)) {\n return false;\n }\n fnToStr.call(value);\n return true;\n } catch (e) {\n return false;\n }\n };\n var toStr = Object.prototype.toString;\n var objectClass = \"[object Object]\";\n var fnClass = \"[object Function]\";\n var genClass = \"[object GeneratorFunction]\";\n var ddaClass = \"[object HTMLAllCollection]\";\n var ddaClass2 = \"[object HTML document.all class]\";\n var ddaClass3 = \"[object HTMLCollection]\";\n var hasToStringTag = typeof Symbol === \"function\" && !!Symbol.toStringTag;\n var isIE68 = !(0 in [,]);\n var isDDA = function isDocumentDotAll() {\n return false;\n };\n if (typeof document === \"object\") {\n all = document.all;\n if (toStr.call(all) === toStr.call(document.all)) {\n isDDA = function isDocumentDotAll(value) {\n if ((isIE68 || !value) && (typeof value === \"undefined\" || typeof value === \"object\")) {\n try {\n var str = toStr.call(value);\n return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value(\"\") == null;\n } catch (e) {\n }\n }\n return false;\n };\n }\n }\n var all;\n module2.exports = reflectApply ? function isCallable(value) {\n if (isDDA(value)) {\n return true;\n }\n if (!value) {\n return false;\n }\n if (typeof value !== \"function\" && typeof value !== \"object\") {\n return false;\n }\n try {\n reflectApply(value, null, badArrayLike);\n } catch (e) {\n if (e !== isCallableMarker) {\n return false;\n }\n }\n return !isES6ClassFn(value) && tryFunctionObject(value);\n } : function isCallable(value) {\n if (isDDA(value)) {\n return true;\n }\n if (!value) {\n return false;\n }\n if (typeof value !== \"function\" && typeof value !== \"object\") {\n return false;\n }\n if (hasToStringTag) {\n return tryFunctionObject(value);\n }\n if (isES6ClassFn(value)) {\n return false;\n }\n var strClass = toStr.call(value);\n if (strClass !== fnClass && strClass !== genClass && !/^\\[object HTML/.test(strClass)) {\n return false;\n }\n return tryFunctionObject(value);\n };\n }\n});\n\n// node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js\nvar require_for_each = __commonJS({\n \"node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js\"(exports2, module2) {\n \"use strict\";\n var isCallable = require_is_callable();\n var toStr = Object.prototype.toString;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var forEachArray = function forEachArray2(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n };\n var forEachString = function forEachString2(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n };\n var forEachObject = function forEachObject2(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n };\n function isArray(x) {\n return toStr.call(x) === \"[object Array]\";\n }\n module2.exports = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError(\"iterator must be a function\");\n }\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n if (isArray(list)) {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === \"string\") {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n };\n }\n});\n\n// node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js\nvar require_possible_typed_array_names = __commonJS({\n \"node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = [\n \"Float16Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\"\n ];\n }\n});\n\n// node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js\nvar require_available_typed_arrays = __commonJS({\n \"node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js\"(exports2, module2) {\n \"use strict\";\n var possibleNames = require_possible_typed_array_names();\n var g = typeof globalThis === \"undefined\" ? global : globalThis;\n module2.exports = function availableTypedArrays() {\n var out = [];\n for (var i = 0; i < possibleNames.length; i++) {\n if (typeof g[possibleNames[i]] === \"function\") {\n out[out.length] = possibleNames[i];\n }\n }\n return out;\n };\n }\n});\n\n// node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js\nvar require_define_data_property = __commonJS({\n \"node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = require_es_define_property();\n var $SyntaxError = require_syntax();\n var $TypeError = require_type();\n var gopd = require_gopd();\n module2.exports = function defineDataProperty(obj, property, value) {\n if (!obj || typeof obj !== \"object\" && typeof obj !== \"function\") {\n throw new $TypeError(\"`obj` must be an object or a function`\");\n }\n if (typeof property !== \"string\" && typeof property !== \"symbol\") {\n throw new $TypeError(\"`property` must be a string or a symbol`\");\n }\n if (arguments.length > 3 && typeof arguments[3] !== \"boolean\" && arguments[3] !== null) {\n throw new $TypeError(\"`nonEnumerable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 4 && typeof arguments[4] !== \"boolean\" && arguments[4] !== null) {\n throw new $TypeError(\"`nonWritable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 5 && typeof arguments[5] !== \"boolean\" && arguments[5] !== null) {\n throw new $TypeError(\"`nonConfigurable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 6 && typeof arguments[6] !== \"boolean\") {\n throw new $TypeError(\"`loose`, if provided, must be a boolean\");\n }\n var nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n var nonWritable = arguments.length > 4 ? arguments[4] : null;\n var nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n var loose = arguments.length > 6 ? arguments[6] : false;\n var desc = !!gopd && gopd(obj, property);\n if ($defineProperty) {\n $defineProperty(obj, property, {\n configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n value,\n writable: nonWritable === null && desc ? desc.writable : !nonWritable\n });\n } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {\n obj[property] = value;\n } else {\n throw new $SyntaxError(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");\n }\n };\n }\n});\n\n// node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js\nvar require_has_property_descriptors = __commonJS({\n \"node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = require_es_define_property();\n var hasPropertyDescriptors = function hasPropertyDescriptors2() {\n return !!$defineProperty;\n };\n hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n if (!$defineProperty) {\n return null;\n }\n try {\n return $defineProperty([], \"length\", { value: 1 }).length !== 1;\n } catch (e) {\n return true;\n }\n };\n module2.exports = hasPropertyDescriptors;\n }\n});\n\n// node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js\nvar require_set_function_length = __commonJS({\n \"node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js\"(exports2, module2) {\n \"use strict\";\n var GetIntrinsic = require_get_intrinsic();\n var define = require_define_data_property();\n var hasDescriptors = require_has_property_descriptors()();\n var gOPD = require_gopd();\n var $TypeError = require_type();\n var $floor = GetIntrinsic(\"%Math.floor%\");\n module2.exports = function setFunctionLength(fn, length) {\n if (typeof fn !== \"function\") {\n throw new $TypeError(\"`fn` is not a function\");\n }\n if (typeof length !== \"number\" || length < 0 || length > 4294967295 || $floor(length) !== length) {\n throw new $TypeError(\"`length` must be a positive 32-bit integer\");\n }\n var loose = arguments.length > 2 && !!arguments[2];\n var functionLengthIsConfigurable = true;\n var functionLengthIsWritable = true;\n if (\"length\" in fn && gOPD) {\n var desc = gOPD(fn, \"length\");\n if (desc && !desc.configurable) {\n functionLengthIsConfigurable = false;\n }\n if (desc && !desc.writable) {\n functionLengthIsWritable = false;\n }\n }\n if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n if (hasDescriptors) {\n define(\n /** @type {Parameters<define>[0]} */\n fn,\n \"length\",\n length,\n true,\n true\n );\n } else {\n define(\n /** @type {Parameters<define>[0]} */\n fn,\n \"length\",\n length\n );\n }\n }\n return fn;\n };\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js\nvar require_applyBind = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $apply = require_functionApply();\n var actualApply = require_actualApply();\n module2.exports = function applyBind() {\n return actualApply(bind, $apply, arguments);\n };\n }\n});\n\n// node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js\nvar require_call_bind = __commonJS({\n \"node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js\"(exports2, module2) {\n \"use strict\";\n var setFunctionLength = require_set_function_length();\n var $defineProperty = require_es_define_property();\n var callBindBasic = require_call_bind_apply_helpers();\n var applyBind = require_applyBind();\n module2.exports = function callBind(originalFunction) {\n var func = callBindBasic(arguments);\n var adjustedLength = originalFunction.length - (arguments.length - 1);\n return setFunctionLength(\n func,\n 1 + (adjustedLength > 0 ? adjustedLength : 0),\n true\n );\n };\n if ($defineProperty) {\n $defineProperty(module2.exports, \"apply\", { value: applyBind });\n } else {\n module2.exports.apply = applyBind;\n }\n }\n});\n\n// node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js\nvar require_which_typed_array = __commonJS({\n \"node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js\"(exports2, module2) {\n \"use strict\";\n var forEach = require_for_each();\n var availableTypedArrays = require_available_typed_arrays();\n var callBind = require_call_bind();\n var callBound = require_call_bound();\n var gOPD = require_gopd();\n var getProto = require_get_proto();\n var $toString = callBound(\"Object.prototype.toString\");\n var hasToStringTag = require_shams2()();\n var g = typeof globalThis === \"undefined\" ? global : globalThis;\n var typedArrays = availableTypedArrays();\n var $slice = callBound(\"String.prototype.slice\");\n var $indexOf = callBound(\"Array.prototype.indexOf\", true) || function indexOf(array, value) {\n for (var i = 0; i < array.length; i += 1) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n };\n var cache = { __proto__: null };\n if (hasToStringTag && gOPD && getProto) {\n forEach(typedArrays, function(typedArray) {\n var arr = new g[typedArray]();\n if (Symbol.toStringTag in arr && getProto) {\n var proto = getProto(arr);\n var descriptor = gOPD(proto, Symbol.toStringTag);\n if (!descriptor && proto) {\n var superProto = getProto(proto);\n descriptor = gOPD(superProto, Symbol.toStringTag);\n }\n if (descriptor && descriptor.get) {\n var bound = callBind(descriptor.get);\n cache[\n /** @type {`$${import('.').TypedArrayName}`} */\n \"$\" + typedArray\n ] = bound;\n }\n }\n });\n } else {\n forEach(typedArrays, function(typedArray) {\n var arr = new g[typedArray]();\n var fn = arr.slice || arr.set;\n if (fn) {\n var bound = (\n /** @type {import('./types').BoundSlice | import('./types').BoundSet} */\n // @ts-expect-error TODO FIXME\n callBind(fn)\n );\n cache[\n /** @type {`$${import('.').TypedArrayName}`} */\n \"$\" + typedArray\n ] = bound;\n }\n });\n }\n var tryTypedArrays = function tryAllTypedArrays(value) {\n var found = false;\n forEach(\n /** @type {Record<`\\$${import('.').TypedArrayName}`, Getter>} */\n cache,\n /** @type {(getter: Getter, name: `\\$${import('.').TypedArrayName}`) => void} */\n function(getter, typedArray) {\n if (!found) {\n try {\n if (\"$\" + getter(value) === typedArray) {\n found = /** @type {import('.').TypedArrayName} */\n $slice(typedArray, 1);\n }\n } catch (e) {\n }\n }\n }\n );\n return found;\n };\n var trySlices = function tryAllSlices(value) {\n var found = false;\n forEach(\n /** @type {Record<`\\$${import('.').TypedArrayName}`, Getter>} */\n cache,\n /** @type {(getter: Getter, name: `\\$${import('.').TypedArrayName}`) => void} */\n function(getter, name) {\n if (!found) {\n try {\n getter(value);\n found = /** @type {import('.').TypedArrayName} */\n $slice(name, 1);\n } catch (e) {\n }\n }\n }\n );\n return found;\n };\n module2.exports = function whichTypedArray(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n if (!hasToStringTag) {\n var tag = $slice($toString(value), 8, -1);\n if ($indexOf(typedArrays, tag) > -1) {\n return tag;\n }\n if (tag !== \"Object\") {\n return false;\n }\n return trySlices(value);\n }\n if (!gOPD) {\n return null;\n }\n return tryTypedArrays(value);\n };\n }\n});\n\n// node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js\nvar require_is_typed_array = __commonJS({\n \"node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js\"(exports2, module2) {\n \"use strict\";\n var whichTypedArray = require_which_typed_array();\n module2.exports = function isTypedArray(value) {\n return !!whichTypedArray(value);\n };\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js\nvar require_types = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js\"(exports2) {\n \"use strict\";\n var isArgumentsObject = require_is_arguments();\n var isGeneratorFunction = require_is_generator_function();\n var whichTypedArray = require_which_typed_array();\n var isTypedArray = require_is_typed_array();\n function uncurryThis(f) {\n return f.call.bind(f);\n }\n var BigIntSupported = typeof BigInt !== \"undefined\";\n var SymbolSupported = typeof Symbol !== \"undefined\";\n var ObjectToString = uncurryThis(Object.prototype.toString);\n var numberValue = uncurryThis(Number.prototype.valueOf);\n var stringValue = uncurryThis(String.prototype.valueOf);\n var booleanValue = uncurryThis(Boolean.prototype.valueOf);\n if (BigIntSupported) {\n bigIntValue = uncurryThis(BigInt.prototype.valueOf);\n }\n var bigIntValue;\n if (SymbolSupported) {\n symbolValue = uncurryThis(Symbol.prototype.valueOf);\n }\n var symbolValue;\n function checkBoxedPrimitive(value, prototypeValueOf) {\n if (typeof value !== \"object\") {\n return false;\n }\n try {\n prototypeValueOf(value);\n return true;\n } catch (e) {\n return false;\n }\n }\n exports2.isArgumentsObject = isArgumentsObject;\n exports2.isGeneratorFunction = isGeneratorFunction;\n exports2.isTypedArray = isTypedArray;\n function isPromise(input) {\n return typeof Promise !== \"undefined\" && input instanceof Promise || input !== null && typeof input === \"object\" && typeof input.then === \"function\" && typeof input.catch === \"function\";\n }\n exports2.isPromise = isPromise;\n function isArrayBufferView(value) {\n if (typeof ArrayBuffer !== \"undefined\" && ArrayBuffer.isView) {\n return ArrayBuffer.isView(value);\n }\n return isTypedArray(value) || isDataView(value);\n }\n exports2.isArrayBufferView = isArrayBufferView;\n function isUint8Array(value) {\n return whichTypedArray(value) === \"Uint8Array\";\n }\n exports2.isUint8Array = isUint8Array;\n function isUint8ClampedArray(value) {\n return whichTypedArray(value) === \"Uint8ClampedArray\";\n }\n exports2.isUint8ClampedArray = isUint8ClampedArray;\n function isUint16Array(value) {\n return whichTypedArray(value) === \"Uint16Array\";\n }\n exports2.isUint16Array = isUint16Array;\n function isUint32Array(value) {\n return whichTypedArray(value) === \"Uint32Array\";\n }\n exports2.isUint32Array = isUint32Array;\n function isInt8Array(value) {\n return whichTypedArray(value) === \"Int8Array\";\n }\n exports2.isInt8Array = isInt8Array;\n function isInt16Array(value) {\n return whichTypedArray(value) === \"Int16Array\";\n }\n exports2.isInt16Array = isInt16Array;\n function isInt32Array(value) {\n return whichTypedArray(value) === \"Int32Array\";\n }\n exports2.isInt32Array = isInt32Array;\n function isFloat32Array(value) {\n return whichTypedArray(value) === \"Float32Array\";\n }\n exports2.isFloat32Array = isFloat32Array;\n function isFloat64Array(value) {\n return whichTypedArray(value) === \"Float64Array\";\n }\n exports2.isFloat64Array = isFloat64Array;\n function isBigInt64Array(value) {\n return whichTypedArray(value) === \"BigInt64Array\";\n }\n exports2.isBigInt64Array = isBigInt64Array;\n function isBigUint64Array(value) {\n return whichTypedArray(value) === \"BigUint64Array\";\n }\n exports2.isBigUint64Array = isBigUint64Array;\n function isMapToString(value) {\n return ObjectToString(value) === \"[object Map]\";\n }\n isMapToString.working = typeof Map !== \"undefined\" && isMapToString(/* @__PURE__ */ new Map());\n function isMap(value) {\n if (typeof Map === \"undefined\") {\n return false;\n }\n return isMapToString.working ? isMapToString(value) : value instanceof Map;\n }\n exports2.isMap = isMap;\n function isSetToString(value) {\n return ObjectToString(value) === \"[object Set]\";\n }\n isSetToString.working = typeof Set !== \"undefined\" && isSetToString(/* @__PURE__ */ new Set());\n function isSet(value) {\n if (typeof Set === \"undefined\") {\n return false;\n }\n return isSetToString.working ? isSetToString(value) : value instanceof Set;\n }\n exports2.isSet = isSet;\n function isWeakMapToString(value) {\n return ObjectToString(value) === \"[object WeakMap]\";\n }\n isWeakMapToString.working = typeof WeakMap !== \"undefined\" && isWeakMapToString(/* @__PURE__ */ new WeakMap());\n function isWeakMap(value) {\n if (typeof WeakMap === \"undefined\") {\n return false;\n }\n return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;\n }\n exports2.isWeakMap = isWeakMap;\n function isWeakSetToString(value) {\n return ObjectToString(value) === \"[object WeakSet]\";\n }\n isWeakSetToString.working = typeof WeakSet !== \"undefined\" && isWeakSetToString(/* @__PURE__ */ new WeakSet());\n function isWeakSet(value) {\n return isWeakSetToString(value);\n }\n exports2.isWeakSet = isWeakSet;\n function isArrayBufferToString(value) {\n return ObjectToString(value) === \"[object ArrayBuffer]\";\n }\n isArrayBufferToString.working = typeof ArrayBuffer !== \"undefined\" && isArrayBufferToString(new ArrayBuffer());\n function isArrayBuffer(value) {\n if (typeof ArrayBuffer === \"undefined\") {\n return false;\n }\n return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;\n }\n exports2.isArrayBuffer = isArrayBuffer;\n function isDataViewToString(value) {\n return ObjectToString(value) === \"[object DataView]\";\n }\n isDataViewToString.working = typeof ArrayBuffer !== \"undefined\" && typeof DataView !== \"undefined\" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));\n function isDataView(value) {\n if (typeof DataView === \"undefined\") {\n return false;\n }\n return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;\n }\n exports2.isDataView = isDataView;\n var SharedArrayBufferCopy = typeof SharedArrayBuffer !== \"undefined\" ? SharedArrayBuffer : void 0;\n function isSharedArrayBufferToString(value) {\n return ObjectToString(value) === \"[object SharedArrayBuffer]\";\n }\n function isSharedArrayBuffer(value) {\n if (typeof SharedArrayBufferCopy === \"undefined\") {\n return false;\n }\n if (typeof isSharedArrayBufferToString.working === \"undefined\") {\n isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());\n }\n return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;\n }\n exports2.isSharedArrayBuffer = isSharedArrayBuffer;\n function isAsyncFunction(value) {\n return ObjectToString(value) === \"[object AsyncFunction]\";\n }\n exports2.isAsyncFunction = isAsyncFunction;\n function isMapIterator(value) {\n return ObjectToString(value) === \"[object Map Iterator]\";\n }\n exports2.isMapIterator = isMapIterator;\n function isSetIterator(value) {\n return ObjectToString(value) === \"[object Set Iterator]\";\n }\n exports2.isSetIterator = isSetIterator;\n function isGeneratorObject(value) {\n return ObjectToString(value) === \"[object Generator]\";\n }\n exports2.isGeneratorObject = isGeneratorObject;\n function isWebAssemblyCompiledModule(value) {\n return ObjectToString(value) === \"[object WebAssembly.Module]\";\n }\n exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;\n function isNumberObject(value) {\n return checkBoxedPrimitive(value, numberValue);\n }\n exports2.isNumberObject = isNumberObject;\n function isStringObject(value) {\n return checkBoxedPrimitive(value, stringValue);\n }\n exports2.isStringObject = isStringObject;\n function isBooleanObject(value) {\n return checkBoxedPrimitive(value, booleanValue);\n }\n exports2.isBooleanObject = isBooleanObject;\n function isBigIntObject(value) {\n return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);\n }\n exports2.isBigIntObject = isBigIntObject;\n function isSymbolObject(value) {\n return SymbolSupported && checkBoxedPrimitive(value, symbolValue);\n }\n exports2.isSymbolObject = isSymbolObject;\n function isBoxedPrimitive(value) {\n return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);\n }\n exports2.isBoxedPrimitive = isBoxedPrimitive;\n function isAnyArrayBuffer(value) {\n return typeof Uint8Array !== \"undefined\" && (isArrayBuffer(value) || isSharedArrayBuffer(value));\n }\n exports2.isAnyArrayBuffer = isAnyArrayBuffer;\n [\"isProxy\", \"isExternal\", \"isModuleNamespaceObject\"].forEach(function(method) {\n Object.defineProperty(exports2, method, {\n enumerable: false,\n value: function() {\n throw new Error(method + \" is not supported in userland\");\n }\n });\n });\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js\nvar require_isBufferBrowser = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js\"(exports2, module2) {\n module2.exports = function isBuffer(arg) {\n return arg && typeof arg === \"object\" && typeof arg.copy === \"function\" && typeof arg.fill === \"function\" && typeof arg.readUInt8 === \"function\";\n };\n }\n});\n\n// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js\nvar require_inherits_browser = __commonJS({\n \"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js\"(exports2, module2) {\n if (typeof Object.create === \"function\") {\n module2.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n }\n };\n } else {\n module2.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function() {\n };\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n };\n }\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/util.js\nvar require_util = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js\"(exports2) {\n var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n var formatRegExp = /%[sdj%]/g;\n exports2.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(\" \");\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x2) {\n if (x2 === \"%%\") return \"%\";\n if (i >= len) return x2;\n switch (x2) {\n case \"%s\":\n return String(args[i++]);\n case \"%d\":\n return Number(args[i++]);\n case \"%j\":\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return \"[Circular]\";\n }\n default:\n return x2;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += \" \" + x;\n } else {\n str += \" \" + inspect(x);\n }\n }\n return str;\n };\n exports2.deprecate = function(fn, msg) {\n if (typeof process !== \"undefined\" && process.noDeprecation === true) {\n return fn;\n }\n if (typeof process === \"undefined\") {\n return function() {\n return exports2.deprecate(fn, msg).apply(this, arguments);\n };\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n };\n var debugs = {};\n var debugEnvRegex = /^$/;\n if (process.env.NODE_DEBUG) {\n debugEnv = process.env.NODE_DEBUG;\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, \"\\\\$&\").replace(/\\*/g, \".*\").replace(/,/g, \"$|^\").toUpperCase();\n debugEnvRegex = new RegExp(\"^\" + debugEnv + \"$\", \"i\");\n }\n var debugEnv;\n exports2.debuglog = function(set) {\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (debugEnvRegex.test(set)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports2.format.apply(exports2, arguments);\n console.error(\"%s %d: %s\", set, pid, msg);\n };\n } else {\n debugs[set] = function() {\n };\n }\n }\n return debugs[set];\n };\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n ctx.showHidden = opts;\n } else if (opts) {\n exports2._extend(ctx, opts);\n }\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n }\n exports2.inspect = inspect;\n inspect.colors = {\n \"bold\": [1, 22],\n \"italic\": [3, 23],\n \"underline\": [4, 24],\n \"inverse\": [7, 27],\n \"white\": [37, 39],\n \"grey\": [90, 39],\n \"black\": [30, 39],\n \"blue\": [34, 39],\n \"cyan\": [36, 39],\n \"green\": [32, 39],\n \"magenta\": [35, 39],\n \"red\": [31, 39],\n \"yellow\": [33, 39]\n };\n inspect.styles = {\n \"special\": \"cyan\",\n \"number\": \"yellow\",\n \"boolean\": \"yellow\",\n \"undefined\": \"grey\",\n \"null\": \"bold\",\n \"string\": \"green\",\n \"date\": \"magenta\",\n // \"name\": intentionally not styling\n \"regexp\": \"red\"\n };\n function stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return \"\\x1B[\" + inspect.colors[style][0] + \"m\" + str + \"\\x1B[\" + inspect.colors[style][1] + \"m\";\n } else {\n return str;\n }\n }\n function stylizeNoColor(str, styleType) {\n return str;\n }\n function arrayToHash(array) {\n var hash = {};\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n return hash;\n }\n function formatValue(ctx, value, recurseTimes) {\n if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special\n value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n if (isError(value) && (keys.indexOf(\"message\") >= 0 || keys.indexOf(\"description\") >= 0)) {\n return formatError(value);\n }\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? \": \" + value.name : \"\";\n return ctx.stylize(\"[Function\" + name + \"]\", \"special\");\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), \"regexp\");\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), \"date\");\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = \"\", array = false, braces = [\"{\", \"}\"];\n if (isArray(value)) {\n array = true;\n braces = [\"[\", \"]\"];\n }\n if (isFunction(value)) {\n var n = value.name ? \": \" + value.name : \"\";\n base = \" [Function\" + n + \"]\";\n }\n if (isRegExp(value)) {\n base = \" \" + RegExp.prototype.toString.call(value);\n }\n if (isDate(value)) {\n base = \" \" + Date.prototype.toUTCString.call(value);\n }\n if (isError(value)) {\n base = \" \" + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), \"regexp\");\n } else {\n return ctx.stylize(\"[Object]\", \"special\");\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n }\n function formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize(\"undefined\", \"undefined\");\n if (isString(value)) {\n var simple = \"'\" + JSON.stringify(value).replace(/^\"|\"$/g, \"\").replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + \"'\";\n return ctx.stylize(simple, \"string\");\n }\n if (isNumber(value))\n return ctx.stylize(\"\" + value, \"number\");\n if (isBoolean(value))\n return ctx.stylize(\"\" + value, \"boolean\");\n if (isNull(value))\n return ctx.stylize(\"null\", \"null\");\n }\n function formatError(value) {\n return \"[\" + Error.prototype.toString.call(value) + \"]\";\n }\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n String(i),\n true\n ));\n } else {\n output.push(\"\");\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n key,\n true\n ));\n }\n });\n return output;\n }\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize(\"[Getter/Setter]\", \"special\");\n } else {\n str = ctx.stylize(\"[Getter]\", \"special\");\n }\n } else {\n if (desc.set) {\n str = ctx.stylize(\"[Setter]\", \"special\");\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = \"[\" + key + \"]\";\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf(\"\\n\") > -1) {\n if (array) {\n str = str.split(\"\\n\").map(function(line) {\n return \" \" + line;\n }).join(\"\\n\").slice(2);\n } else {\n str = \"\\n\" + str.split(\"\\n\").map(function(line) {\n return \" \" + line;\n }).join(\"\\n\");\n }\n }\n } else {\n str = ctx.stylize(\"[Circular]\", \"special\");\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify(\"\" + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.slice(1, -1);\n name = ctx.stylize(name, \"name\");\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, \"string\");\n }\n }\n return name + \": \" + str;\n }\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf(\"\\n\") >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, \"\").length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === \"\" ? \"\" : base + \"\\n \") + \" \" + output.join(\",\\n \") + \" \" + braces[1];\n }\n return braces[0] + base + \" \" + output.join(\", \") + \" \" + braces[1];\n }\n exports2.types = require_types();\n function isArray(ar) {\n return Array.isArray(ar);\n }\n exports2.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === \"boolean\";\n }\n exports2.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports2.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports2.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === \"number\";\n }\n exports2.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === \"string\";\n }\n exports2.isString = isString;\n function isSymbol(arg) {\n return typeof arg === \"symbol\";\n }\n exports2.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports2.isUndefined = isUndefined;\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === \"[object RegExp]\";\n }\n exports2.isRegExp = isRegExp;\n exports2.types.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === \"object\" && arg !== null;\n }\n exports2.isObject = isObject;\n function isDate(d) {\n return isObject(d) && objectToString(d) === \"[object Date]\";\n }\n exports2.isDate = isDate;\n exports2.types.isDate = isDate;\n function isError(e) {\n return isObject(e) && (objectToString(e) === \"[object Error]\" || e instanceof Error);\n }\n exports2.isError = isError;\n exports2.types.isNativeError = isError;\n function isFunction(arg) {\n return typeof arg === \"function\";\n }\n exports2.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === \"boolean\" || typeof arg === \"number\" || typeof arg === \"string\" || typeof arg === \"symbol\" || // ES6 symbol\n typeof arg === \"undefined\";\n }\n exports2.isPrimitive = isPrimitive;\n exports2.isBuffer = require_isBufferBrowser();\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n function pad(n) {\n return n < 10 ? \"0\" + n.toString(10) : n.toString(10);\n }\n var months = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\"\n ];\n function timestamp() {\n var d = /* @__PURE__ */ new Date();\n var time = [\n pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())\n ].join(\":\");\n return [d.getDate(), months[d.getMonth()], time].join(\" \");\n }\n exports2.log = function() {\n console.log(\"%s - %s\", timestamp(), exports2.format.apply(exports2, arguments));\n };\n exports2.inherits = require_inherits_browser();\n exports2._extend = function(origin, add) {\n if (!add || !isObject(add)) return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n };\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n var kCustomPromisifiedSymbol = typeof Symbol !== \"undefined\" ? /* @__PURE__ */ Symbol(\"util.promisify.custom\") : void 0;\n exports2.promisify = function promisify(original) {\n if (typeof original !== \"function\")\n throw new TypeError('The \"original\" argument must be of type Function');\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== \"function\") {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn,\n enumerable: false,\n writable: false,\n configurable: true\n });\n return fn;\n }\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function(resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function(err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n return promise;\n }\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn,\n enumerable: false,\n writable: false,\n configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n };\n exports2.promisify.custom = kCustomPromisifiedSymbol;\n function callbackifyOnRejected(reason, cb) {\n if (!reason) {\n var newReason = new Error(\"Promise was rejected with a falsy value\");\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n }\n function callbackify(original) {\n if (typeof original !== \"function\") {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n var maybeCb = args.pop();\n if (typeof maybeCb !== \"function\") {\n throw new TypeError(\"The last argument must be of type Function\");\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n original.apply(this, args).then(\n function(ret) {\n process.nextTick(cb.bind(null, null, ret));\n },\n function(rej) {\n process.nextTick(callbackifyOnRejected.bind(null, rej, cb));\n }\n );\n }\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(\n callbackified,\n getOwnPropertyDescriptors(original)\n );\n return callbackified;\n }\n exports2.callbackify = callbackify;\n }\n});\n\n// <stdin>\nvar util = require_util();\nmodule.exports = util.default ?? util;\n\nfunction installBuiltinUtilFormatWithOptions(builtinUtilModule) {\n if (!builtinUtilModule || typeof builtinUtilModule.formatWithOptions === \"function\") {\n return builtinUtilModule;\n }\n builtinUtilModule.formatWithOptions = function formatWithOptions(inspectOptions, format, ...args) {\n const inspectValue = (value) => {\n if (typeof builtinUtilModule.inspect === \"function\") {\n return builtinUtilModule.inspect(value, inspectOptions);\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n };\n const formatValue = (value) => typeof value === \"string\" ? value : inspectValue(value);\n if (typeof format !== \"string\") {\n return [format, ...args].map(formatValue).join(\" \");\n }\n let index = 0;\n const formatted = format.replace(/%[sdifjoO%]/g, (token) => {\n if (token === \"%%\") {\n return \"%\";\n }\n if (index >= args.length) {\n return token;\n }\n const value = args[index++];\n switch (token) {\n case \"%s\":\n return String(value);\n case \"%d\":\n return Number(value).toString();\n case \"%i\":\n return Number.parseInt(value, 10).toString();\n case \"%f\":\n return Number.parseFloat(value).toString();\n case \"%j\":\n try {\n return JSON.stringify(value);\n } catch {\n return \"[Circular]\";\n }\n case \"%o\":\n case \"%O\":\n return inspectValue(value);\n default:\n return token;\n }\n });\n if (index >= args.length) {\n return formatted;\n }\n return [formatted, ...args.slice(index).map(formatValue)].join(\" \");\n };\n return builtinUtilModule;\n }\nmodule.exports = installBuiltinUtilFormatWithOptions(module.exports);\nif (module.exports && module.exports.default == null) module.exports.default = module.exports;\n";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @generated - run node packages/build-tools/scripts/build-browser-util-polyfill.mjs
|
|
2
|
+
export const BROWSER_UTIL_POLYFILL_CODE = "var process = globalThis.process || {\n env: {},\n nextTick: (fn, ...args) => queueMicrotask(() => fn(...args)),\n};\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\n\n// node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js\nvar require_shams = __commonJS({\n \"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = function hasSymbols() {\n if (typeof Symbol !== \"function\" || typeof Object.getOwnPropertySymbols !== \"function\") {\n return false;\n }\n if (typeof Symbol.iterator === \"symbol\") {\n return true;\n }\n var obj = {};\n var sym = /* @__PURE__ */ Symbol(\"test\");\n var symObj = Object(sym);\n if (typeof sym === \"string\") {\n return false;\n }\n if (Object.prototype.toString.call(sym) !== \"[object Symbol]\") {\n return false;\n }\n if (Object.prototype.toString.call(symObj) !== \"[object Symbol]\") {\n return false;\n }\n var symVal = 42;\n obj[sym] = symVal;\n for (var _ in obj) {\n return false;\n }\n if (typeof Object.keys === \"function\" && Object.keys(obj).length !== 0) {\n return false;\n }\n if (typeof Object.getOwnPropertyNames === \"function\" && Object.getOwnPropertyNames(obj).length !== 0) {\n return false;\n }\n var syms = Object.getOwnPropertySymbols(obj);\n if (syms.length !== 1 || syms[0] !== sym) {\n return false;\n }\n if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {\n return false;\n }\n if (typeof Object.getOwnPropertyDescriptor === \"function\") {\n var descriptor = (\n /** @type {PropertyDescriptor} */\n Object.getOwnPropertyDescriptor(obj, sym)\n );\n if (descriptor.value !== symVal || descriptor.enumerable !== true) {\n return false;\n }\n }\n return true;\n };\n }\n});\n\n// node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js\nvar require_shams2 = __commonJS({\n \"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js\"(exports2, module2) {\n \"use strict\";\n var hasSymbols = require_shams();\n module2.exports = function hasToStringTagShams() {\n return hasSymbols() && !!Symbol.toStringTag;\n };\n }\n});\n\n// node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\nvar require_es_object_atoms = __commonJS({\n \"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Object;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\nvar require_es_errors = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Error;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\nvar require_eval = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = EvalError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\nvar require_range = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = RangeError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\nvar require_ref = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = ReferenceError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\nvar require_syntax = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = SyntaxError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\nvar require_type = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = TypeError;\n }\n});\n\n// node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\nvar require_uri = __commonJS({\n \"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = URIError;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\nvar require_abs = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.abs;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\nvar require_floor = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.floor;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\nvar require_max = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.max;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\nvar require_min = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.min;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\nvar require_pow = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.pow;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\nvar require_round = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Math.round;\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js\nvar require_isNaN = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Number.isNaN || function isNaN2(a) {\n return a !== a;\n };\n }\n});\n\n// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\nvar require_sign = __commonJS({\n \"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js\"(exports2, module2) {\n \"use strict\";\n var $isNaN = require_isNaN();\n module2.exports = function sign(number) {\n if ($isNaN(number) || number === 0) {\n return number;\n }\n return number < 0 ? -1 : 1;\n };\n }\n});\n\n// node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js\nvar require_gOPD = __commonJS({\n \"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Object.getOwnPropertyDescriptor;\n }\n});\n\n// node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\nvar require_gopd = __commonJS({\n \"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js\"(exports2, module2) {\n \"use strict\";\n var $gOPD = require_gOPD();\n if ($gOPD) {\n try {\n $gOPD([], \"length\");\n } catch (e) {\n $gOPD = null;\n }\n }\n module2.exports = $gOPD;\n }\n});\n\n// node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\nvar require_es_define_property = __commonJS({\n \"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = Object.defineProperty || false;\n if ($defineProperty) {\n try {\n $defineProperty({}, \"a\", { value: 1 });\n } catch (e) {\n $defineProperty = false;\n }\n }\n module2.exports = $defineProperty;\n }\n});\n\n// node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\nvar require_has_symbols = __commonJS({\n \"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js\"(exports2, module2) {\n \"use strict\";\n var origSymbol = typeof Symbol !== \"undefined\" && Symbol;\n var hasSymbolSham = require_shams();\n module2.exports = function hasNativeSymbols() {\n if (typeof origSymbol !== \"function\") {\n return false;\n }\n if (typeof Symbol !== \"function\") {\n return false;\n }\n if (typeof origSymbol(\"foo\") !== \"symbol\") {\n return false;\n }\n if (typeof /* @__PURE__ */ Symbol(\"bar\") !== \"symbol\") {\n return false;\n }\n return hasSymbolSham();\n };\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\nvar require_Reflect_getPrototypeOf = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = typeof Reflect !== \"undefined\" && Reflect.getPrototypeOf || null;\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\nvar require_Object_getPrototypeOf = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js\"(exports2, module2) {\n \"use strict\";\n var $Object = require_es_object_atoms();\n module2.exports = $Object.getPrototypeOf || null;\n }\n});\n\n// node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js\nvar require_implementation = __commonJS({\n \"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js\"(exports2, module2) {\n \"use strict\";\n var ERROR_MESSAGE = \"Function.prototype.bind called on incompatible \";\n var toStr = Object.prototype.toString;\n var max = Math.max;\n var funcType = \"[object Function]\";\n var concatty = function concatty2(a, b) {\n var arr = [];\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n return arr;\n };\n var slicy = function slicy2(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n };\n var joiny = function(arr, joiner) {\n var str = \"\";\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n };\n module2.exports = function bind(that) {\n var target = this;\n if (typeof target !== \"function\" || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n var bound;\n var binder = function() {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n };\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = \"$\" + i;\n }\n bound = Function(\"binder\", \"return function (\" + joiny(boundArgs, \",\") + \"){ return binder.apply(this,arguments); }\")(binder);\n if (target.prototype) {\n var Empty = function Empty2() {\n };\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n return bound;\n };\n }\n});\n\n// node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\nvar require_function_bind = __commonJS({\n \"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js\"(exports2, module2) {\n \"use strict\";\n var implementation = require_implementation();\n module2.exports = Function.prototype.bind || implementation;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\nvar require_functionCall = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Function.prototype.call;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\nvar require_functionApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = Function.prototype.apply;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js\nvar require_reflectApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = typeof Reflect !== \"undefined\" && Reflect && Reflect.apply;\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js\nvar require_actualApply = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $apply = require_functionApply();\n var $call = require_functionCall();\n var $reflectApply = require_reflectApply();\n module2.exports = $reflectApply || bind.call($call, $apply);\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js\nvar require_call_bind_apply_helpers = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $TypeError = require_type();\n var $call = require_functionCall();\n var $actualApply = require_actualApply();\n module2.exports = function callBindBasic(args) {\n if (args.length < 1 || typeof args[0] !== \"function\") {\n throw new $TypeError(\"a function is required\");\n }\n return $actualApply(bind, $call, args);\n };\n }\n});\n\n// node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js\nvar require_get = __commonJS({\n \"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js\"(exports2, module2) {\n \"use strict\";\n var callBind = require_call_bind_apply_helpers();\n var gOPD = require_gopd();\n var hasProtoAccessor;\n try {\n hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */\n [].__proto__ === Array.prototype;\n } catch (e) {\n if (!e || typeof e !== \"object\" || !(\"code\" in e) || e.code !== \"ERR_PROTO_ACCESS\") {\n throw e;\n }\n }\n var desc = !!hasProtoAccessor && gOPD && gOPD(\n Object.prototype,\n /** @type {keyof typeof Object.prototype} */\n \"__proto__\"\n );\n var $Object = Object;\n var $getPrototypeOf = $Object.getPrototypeOf;\n module2.exports = desc && typeof desc.get === \"function\" ? callBind([desc.get]) : typeof $getPrototypeOf === \"function\" ? (\n /** @type {import('./get')} */\n function getDunder(value) {\n return $getPrototypeOf(value == null ? value : $Object(value));\n }\n ) : false;\n }\n});\n\n// node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\nvar require_get_proto = __commonJS({\n \"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js\"(exports2, module2) {\n \"use strict\";\n var reflectGetProto = require_Reflect_getPrototypeOf();\n var originalGetProto = require_Object_getPrototypeOf();\n var getDunderProto = require_get();\n module2.exports = reflectGetProto ? function getProto(O) {\n return reflectGetProto(O);\n } : originalGetProto ? function getProto(O) {\n if (!O || typeof O !== \"object\" && typeof O !== \"function\") {\n throw new TypeError(\"getProto: not an object\");\n }\n return originalGetProto(O);\n } : getDunderProto ? function getProto(O) {\n return getDunderProto(O);\n } : null;\n }\n});\n\n// node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\nvar require_hasown = __commonJS({\n \"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js\"(exports2, module2) {\n \"use strict\";\n var call = Function.prototype.call;\n var $hasOwn = Object.prototype.hasOwnProperty;\n var bind = require_function_bind();\n module2.exports = bind.call(call, $hasOwn);\n }\n});\n\n// node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js\nvar require_get_intrinsic = __commonJS({\n \"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js\"(exports2, module2) {\n \"use strict\";\n var undefined2;\n var $Object = require_es_object_atoms();\n var $Error = require_es_errors();\n var $EvalError = require_eval();\n var $RangeError = require_range();\n var $ReferenceError = require_ref();\n var $SyntaxError = require_syntax();\n var $TypeError = require_type();\n var $URIError = require_uri();\n var abs = require_abs();\n var floor = require_floor();\n var max = require_max();\n var min = require_min();\n var pow = require_pow();\n var round = require_round();\n var sign = require_sign();\n var $Function = Function;\n var getEvalledConstructor = function(expressionSyntax) {\n try {\n return $Function('\"use strict\"; return (' + expressionSyntax + \").constructor;\")();\n } catch (e) {\n }\n };\n var $gOPD = require_gopd();\n var $defineProperty = require_es_define_property();\n var throwTypeError = function() {\n throw new $TypeError();\n };\n var ThrowTypeError = $gOPD ? (function() {\n try {\n arguments.callee;\n return throwTypeError;\n } catch (calleeThrows) {\n try {\n return $gOPD(arguments, \"callee\").get;\n } catch (gOPDthrows) {\n return throwTypeError;\n }\n }\n })() : throwTypeError;\n var hasSymbols = require_has_symbols()();\n var getProto = require_get_proto();\n var $ObjectGPO = require_Object_getPrototypeOf();\n var $ReflectGPO = require_Reflect_getPrototypeOf();\n var $apply = require_functionApply();\n var $call = require_functionCall();\n var needsEval = {};\n var TypedArray = typeof Uint8Array === \"undefined\" || !getProto ? undefined2 : getProto(Uint8Array);\n var INTRINSICS = {\n __proto__: null,\n \"%AggregateError%\": typeof AggregateError === \"undefined\" ? undefined2 : AggregateError,\n \"%Array%\": Array,\n \"%ArrayBuffer%\": typeof ArrayBuffer === \"undefined\" ? undefined2 : ArrayBuffer,\n \"%ArrayIteratorPrototype%\": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,\n \"%AsyncFromSyncIteratorPrototype%\": undefined2,\n \"%AsyncFunction%\": needsEval,\n \"%AsyncGenerator%\": needsEval,\n \"%AsyncGeneratorFunction%\": needsEval,\n \"%AsyncIteratorPrototype%\": needsEval,\n \"%Atomics%\": typeof Atomics === \"undefined\" ? undefined2 : Atomics,\n \"%BigInt%\": typeof BigInt === \"undefined\" ? undefined2 : BigInt,\n \"%BigInt64Array%\": typeof BigInt64Array === \"undefined\" ? undefined2 : BigInt64Array,\n \"%BigUint64Array%\": typeof BigUint64Array === \"undefined\" ? undefined2 : BigUint64Array,\n \"%Boolean%\": Boolean,\n \"%DataView%\": typeof DataView === \"undefined\" ? undefined2 : DataView,\n \"%Date%\": Date,\n \"%decodeURI%\": decodeURI,\n \"%decodeURIComponent%\": decodeURIComponent,\n \"%encodeURI%\": encodeURI,\n \"%encodeURIComponent%\": encodeURIComponent,\n \"%Error%\": $Error,\n \"%eval%\": eval,\n // eslint-disable-line no-eval\n \"%EvalError%\": $EvalError,\n \"%Float16Array%\": typeof Float16Array === \"undefined\" ? undefined2 : Float16Array,\n \"%Float32Array%\": typeof Float32Array === \"undefined\" ? undefined2 : Float32Array,\n \"%Float64Array%\": typeof Float64Array === \"undefined\" ? undefined2 : Float64Array,\n \"%FinalizationRegistry%\": typeof FinalizationRegistry === \"undefined\" ? undefined2 : FinalizationRegistry,\n \"%Function%\": $Function,\n \"%GeneratorFunction%\": needsEval,\n \"%Int8Array%\": typeof Int8Array === \"undefined\" ? undefined2 : Int8Array,\n \"%Int16Array%\": typeof Int16Array === \"undefined\" ? undefined2 : Int16Array,\n \"%Int32Array%\": typeof Int32Array === \"undefined\" ? undefined2 : Int32Array,\n \"%isFinite%\": isFinite,\n \"%isNaN%\": isNaN,\n \"%IteratorPrototype%\": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,\n \"%JSON%\": typeof JSON === \"object\" ? JSON : undefined2,\n \"%Map%\": typeof Map === \"undefined\" ? undefined2 : Map,\n \"%MapIteratorPrototype%\": typeof Map === \"undefined\" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),\n \"%Math%\": Math,\n \"%Number%\": Number,\n \"%Object%\": $Object,\n \"%Object.getOwnPropertyDescriptor%\": $gOPD,\n \"%parseFloat%\": parseFloat,\n \"%parseInt%\": parseInt,\n \"%Promise%\": typeof Promise === \"undefined\" ? undefined2 : Promise,\n \"%Proxy%\": typeof Proxy === \"undefined\" ? undefined2 : Proxy,\n \"%RangeError%\": $RangeError,\n \"%ReferenceError%\": $ReferenceError,\n \"%Reflect%\": typeof Reflect === \"undefined\" ? undefined2 : Reflect,\n \"%RegExp%\": RegExp,\n \"%Set%\": typeof Set === \"undefined\" ? undefined2 : Set,\n \"%SetIteratorPrototype%\": typeof Set === \"undefined\" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),\n \"%SharedArrayBuffer%\": typeof SharedArrayBuffer === \"undefined\" ? undefined2 : SharedArrayBuffer,\n \"%String%\": String,\n \"%StringIteratorPrototype%\": hasSymbols && getProto ? getProto(\"\"[Symbol.iterator]()) : undefined2,\n \"%Symbol%\": hasSymbols ? Symbol : undefined2,\n \"%SyntaxError%\": $SyntaxError,\n \"%ThrowTypeError%\": ThrowTypeError,\n \"%TypedArray%\": TypedArray,\n \"%TypeError%\": $TypeError,\n \"%Uint8Array%\": typeof Uint8Array === \"undefined\" ? undefined2 : Uint8Array,\n \"%Uint8ClampedArray%\": typeof Uint8ClampedArray === \"undefined\" ? undefined2 : Uint8ClampedArray,\n \"%Uint16Array%\": typeof Uint16Array === \"undefined\" ? undefined2 : Uint16Array,\n \"%Uint32Array%\": typeof Uint32Array === \"undefined\" ? undefined2 : Uint32Array,\n \"%URIError%\": $URIError,\n \"%WeakMap%\": typeof WeakMap === \"undefined\" ? undefined2 : WeakMap,\n \"%WeakRef%\": typeof WeakRef === \"undefined\" ? undefined2 : WeakRef,\n \"%WeakSet%\": typeof WeakSet === \"undefined\" ? undefined2 : WeakSet,\n \"%Function.prototype.call%\": $call,\n \"%Function.prototype.apply%\": $apply,\n \"%Object.defineProperty%\": $defineProperty,\n \"%Object.getPrototypeOf%\": $ObjectGPO,\n \"%Math.abs%\": abs,\n \"%Math.floor%\": floor,\n \"%Math.max%\": max,\n \"%Math.min%\": min,\n \"%Math.pow%\": pow,\n \"%Math.round%\": round,\n \"%Math.sign%\": sign,\n \"%Reflect.getPrototypeOf%\": $ReflectGPO\n };\n if (getProto) {\n try {\n null.error;\n } catch (e) {\n errorProto = getProto(getProto(e));\n INTRINSICS[\"%Error.prototype%\"] = errorProto;\n }\n }\n var errorProto;\n var doEval = function doEval2(name) {\n var value;\n if (name === \"%AsyncFunction%\") {\n value = getEvalledConstructor(\"async function () {}\");\n } else if (name === \"%GeneratorFunction%\") {\n value = getEvalledConstructor(\"function* () {}\");\n } else if (name === \"%AsyncGeneratorFunction%\") {\n value = getEvalledConstructor(\"async function* () {}\");\n } else if (name === \"%AsyncGenerator%\") {\n var fn = doEval2(\"%AsyncGeneratorFunction%\");\n if (fn) {\n value = fn.prototype;\n }\n } else if (name === \"%AsyncIteratorPrototype%\") {\n var gen = doEval2(\"%AsyncGenerator%\");\n if (gen && getProto) {\n value = getProto(gen.prototype);\n }\n }\n INTRINSICS[name] = value;\n return value;\n };\n var LEGACY_ALIASES = {\n __proto__: null,\n \"%ArrayBufferPrototype%\": [\"ArrayBuffer\", \"prototype\"],\n \"%ArrayPrototype%\": [\"Array\", \"prototype\"],\n \"%ArrayProto_entries%\": [\"Array\", \"prototype\", \"entries\"],\n \"%ArrayProto_forEach%\": [\"Array\", \"prototype\", \"forEach\"],\n \"%ArrayProto_keys%\": [\"Array\", \"prototype\", \"keys\"],\n \"%ArrayProto_values%\": [\"Array\", \"prototype\", \"values\"],\n \"%AsyncFunctionPrototype%\": [\"AsyncFunction\", \"prototype\"],\n \"%AsyncGenerator%\": [\"AsyncGeneratorFunction\", \"prototype\"],\n \"%AsyncGeneratorPrototype%\": [\"AsyncGeneratorFunction\", \"prototype\", \"prototype\"],\n \"%BooleanPrototype%\": [\"Boolean\", \"prototype\"],\n \"%DataViewPrototype%\": [\"DataView\", \"prototype\"],\n \"%DatePrototype%\": [\"Date\", \"prototype\"],\n \"%ErrorPrototype%\": [\"Error\", \"prototype\"],\n \"%EvalErrorPrototype%\": [\"EvalError\", \"prototype\"],\n \"%Float32ArrayPrototype%\": [\"Float32Array\", \"prototype\"],\n \"%Float64ArrayPrototype%\": [\"Float64Array\", \"prototype\"],\n \"%FunctionPrototype%\": [\"Function\", \"prototype\"],\n \"%Generator%\": [\"GeneratorFunction\", \"prototype\"],\n \"%GeneratorPrototype%\": [\"GeneratorFunction\", \"prototype\", \"prototype\"],\n \"%Int8ArrayPrototype%\": [\"Int8Array\", \"prototype\"],\n \"%Int16ArrayPrototype%\": [\"Int16Array\", \"prototype\"],\n \"%Int32ArrayPrototype%\": [\"Int32Array\", \"prototype\"],\n \"%JSONParse%\": [\"JSON\", \"parse\"],\n \"%JSONStringify%\": [\"JSON\", \"stringify\"],\n \"%MapPrototype%\": [\"Map\", \"prototype\"],\n \"%NumberPrototype%\": [\"Number\", \"prototype\"],\n \"%ObjectPrototype%\": [\"Object\", \"prototype\"],\n \"%ObjProto_toString%\": [\"Object\", \"prototype\", \"toString\"],\n \"%ObjProto_valueOf%\": [\"Object\", \"prototype\", \"valueOf\"],\n \"%PromisePrototype%\": [\"Promise\", \"prototype\"],\n \"%PromiseProto_then%\": [\"Promise\", \"prototype\", \"then\"],\n \"%Promise_all%\": [\"Promise\", \"all\"],\n \"%Promise_reject%\": [\"Promise\", \"reject\"],\n \"%Promise_resolve%\": [\"Promise\", \"resolve\"],\n \"%RangeErrorPrototype%\": [\"RangeError\", \"prototype\"],\n \"%ReferenceErrorPrototype%\": [\"ReferenceError\", \"prototype\"],\n \"%RegExpPrototype%\": [\"RegExp\", \"prototype\"],\n \"%SetPrototype%\": [\"Set\", \"prototype\"],\n \"%SharedArrayBufferPrototype%\": [\"SharedArrayBuffer\", \"prototype\"],\n \"%StringPrototype%\": [\"String\", \"prototype\"],\n \"%SymbolPrototype%\": [\"Symbol\", \"prototype\"],\n \"%SyntaxErrorPrototype%\": [\"SyntaxError\", \"prototype\"],\n \"%TypedArrayPrototype%\": [\"TypedArray\", \"prototype\"],\n \"%TypeErrorPrototype%\": [\"TypeError\", \"prototype\"],\n \"%Uint8ArrayPrototype%\": [\"Uint8Array\", \"prototype\"],\n \"%Uint8ClampedArrayPrototype%\": [\"Uint8ClampedArray\", \"prototype\"],\n \"%Uint16ArrayPrototype%\": [\"Uint16Array\", \"prototype\"],\n \"%Uint32ArrayPrototype%\": [\"Uint32Array\", \"prototype\"],\n \"%URIErrorPrototype%\": [\"URIError\", \"prototype\"],\n \"%WeakMapPrototype%\": [\"WeakMap\", \"prototype\"],\n \"%WeakSetPrototype%\": [\"WeakSet\", \"prototype\"]\n };\n var bind = require_function_bind();\n var hasOwn = require_hasown();\n var $concat = bind.call($call, Array.prototype.concat);\n var $spliceApply = bind.call($apply, Array.prototype.splice);\n var $replace = bind.call($call, String.prototype.replace);\n var $strSlice = bind.call($call, String.prototype.slice);\n var $exec = bind.call($call, RegExp.prototype.exec);\n var rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\n var reEscapeChar = /\\\\(\\\\)?/g;\n var stringToPath = function stringToPath2(string) {\n var first = $strSlice(string, 0, 1);\n var last = $strSlice(string, -1);\n if (first === \"%\" && last !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected closing `%`\");\n } else if (last === \"%\" && first !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected opening `%`\");\n }\n var result = [];\n $replace(string, rePropName, function(match, number, quote, subString) {\n result[result.length] = quote ? $replace(subString, reEscapeChar, \"$1\") : number || match;\n });\n return result;\n };\n var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {\n var intrinsicName = name;\n var alias;\n if (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n alias = LEGACY_ALIASES[intrinsicName];\n intrinsicName = \"%\" + alias[0] + \"%\";\n }\n if (hasOwn(INTRINSICS, intrinsicName)) {\n var value = INTRINSICS[intrinsicName];\n if (value === needsEval) {\n value = doEval(intrinsicName);\n }\n if (typeof value === \"undefined\" && !allowMissing) {\n throw new $TypeError(\"intrinsic \" + name + \" exists, but is not available. Please file an issue!\");\n }\n return {\n alias,\n name: intrinsicName,\n value\n };\n }\n throw new $SyntaxError(\"intrinsic \" + name + \" does not exist!\");\n };\n module2.exports = function GetIntrinsic(name, allowMissing) {\n if (typeof name !== \"string\" || name.length === 0) {\n throw new $TypeError(\"intrinsic name must be a non-empty string\");\n }\n if (arguments.length > 1 && typeof allowMissing !== \"boolean\") {\n throw new $TypeError('\"allowMissing\" argument must be a boolean');\n }\n if ($exec(/^%?[^%]*%?$/, name) === null) {\n throw new $SyntaxError(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");\n }\n var parts = stringToPath(name);\n var intrinsicBaseName = parts.length > 0 ? parts[0] : \"\";\n var intrinsic = getBaseIntrinsic(\"%\" + intrinsicBaseName + \"%\", allowMissing);\n var intrinsicRealName = intrinsic.name;\n var value = intrinsic.value;\n var skipFurtherCaching = false;\n var alias = intrinsic.alias;\n if (alias) {\n intrinsicBaseName = alias[0];\n $spliceApply(parts, $concat([0, 1], alias));\n }\n for (var i = 1, isOwn = true; i < parts.length; i += 1) {\n var part = parts[i];\n var first = $strSlice(part, 0, 1);\n var last = $strSlice(part, -1);\n if ((first === '\"' || first === \"'\" || first === \"`\" || (last === '\"' || last === \"'\" || last === \"`\")) && first !== last) {\n throw new $SyntaxError(\"property names with quotes must have matching quotes\");\n }\n if (part === \"constructor\" || !isOwn) {\n skipFurtherCaching = true;\n }\n intrinsicBaseName += \".\" + part;\n intrinsicRealName = \"%\" + intrinsicBaseName + \"%\";\n if (hasOwn(INTRINSICS, intrinsicRealName)) {\n value = INTRINSICS[intrinsicRealName];\n } else if (value != null) {\n if (!(part in value)) {\n if (!allowMissing) {\n throw new $TypeError(\"base intrinsic for \" + name + \" exists, but the property is not available.\");\n }\n return void undefined2;\n }\n if ($gOPD && i + 1 >= parts.length) {\n var desc = $gOPD(value, part);\n isOwn = !!desc;\n if (isOwn && \"get\" in desc && !(\"originalValue\" in desc.get)) {\n value = desc.get;\n } else {\n value = value[part];\n }\n } else {\n isOwn = hasOwn(value, part);\n value = value[part];\n }\n if (isOwn && !skipFurtherCaching) {\n INTRINSICS[intrinsicRealName] = value;\n }\n }\n }\n return value;\n };\n }\n});\n\n// node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js\nvar require_call_bound = __commonJS({\n \"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js\"(exports2, module2) {\n \"use strict\";\n var GetIntrinsic = require_get_intrinsic();\n var callBindBasic = require_call_bind_apply_helpers();\n var $indexOf = callBindBasic([GetIntrinsic(\"%String.prototype.indexOf%\")]);\n module2.exports = function callBoundIntrinsic(name, allowMissing) {\n var intrinsic = (\n /** @type {(this: unknown, ...args: unknown[]) => unknown} */\n GetIntrinsic(name, !!allowMissing)\n );\n if (typeof intrinsic === \"function\" && $indexOf(name, \".prototype.\") > -1) {\n return callBindBasic(\n /** @type {const} */\n [intrinsic]\n );\n }\n return intrinsic;\n };\n }\n});\n\n// node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js\nvar require_is_arguments = __commonJS({\n \"node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js\"(exports2, module2) {\n \"use strict\";\n var hasToStringTag = require_shams2()();\n var callBound = require_call_bound();\n var $toString = callBound(\"Object.prototype.toString\");\n var isStandardArguments = function isArguments(value) {\n if (hasToStringTag && value && typeof value === \"object\" && Symbol.toStringTag in value) {\n return false;\n }\n return $toString(value) === \"[object Arguments]\";\n };\n var isLegacyArguments = function isArguments(value) {\n if (isStandardArguments(value)) {\n return true;\n }\n return value !== null && typeof value === \"object\" && \"length\" in value && typeof value.length === \"number\" && value.length >= 0 && $toString(value) !== \"[object Array]\" && \"callee\" in value && $toString(value.callee) === \"[object Function]\";\n };\n var supportsStandardArguments = (function() {\n return isStandardArguments(arguments);\n })();\n isStandardArguments.isLegacyArguments = isLegacyArguments;\n module2.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n }\n});\n\n// node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js\nvar require_is_regex = __commonJS({\n \"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var hasToStringTag = require_shams2()();\n var hasOwn = require_hasown();\n var gOPD = require_gopd();\n var fn;\n if (hasToStringTag) {\n $exec = callBound(\"RegExp.prototype.exec\");\n isRegexMarker = {};\n throwRegexMarker = function() {\n throw isRegexMarker;\n };\n badStringifier = {\n toString: throwRegexMarker,\n valueOf: throwRegexMarker\n };\n if (typeof Symbol.toPrimitive === \"symbol\") {\n badStringifier[Symbol.toPrimitive] = throwRegexMarker;\n }\n fn = function isRegex(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n var descriptor = (\n /** @type {NonNullable<typeof gOPD>} */\n gOPD(\n /** @type {{ lastIndex?: unknown }} */\n value,\n \"lastIndex\"\n )\n );\n var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, \"value\");\n if (!hasLastIndexDataProperty) {\n return false;\n }\n try {\n $exec(\n value,\n /** @type {string} */\n /** @type {unknown} */\n badStringifier\n );\n } catch (e) {\n return e === isRegexMarker;\n }\n };\n } else {\n $toString = callBound(\"Object.prototype.toString\");\n regexClass = \"[object RegExp]\";\n fn = function isRegex(value) {\n if (!value || typeof value !== \"object\" && typeof value !== \"function\") {\n return false;\n }\n return $toString(value) === regexClass;\n };\n }\n var $exec;\n var isRegexMarker;\n var throwRegexMarker;\n var badStringifier;\n var $toString;\n var regexClass;\n module2.exports = fn;\n }\n});\n\n// node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js\nvar require_safe_regex_test = __commonJS({\n \"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var isRegex = require_is_regex();\n var $exec = callBound(\"RegExp.prototype.exec\");\n var $TypeError = require_type();\n module2.exports = function regexTester(regex) {\n if (!isRegex(regex)) {\n throw new $TypeError(\"`regex` must be a RegExp\");\n }\n return function test(s) {\n return $exec(regex, s) !== null;\n };\n };\n }\n});\n\n// node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js\nvar require_generator_function = __commonJS({\n \"node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js\"(exports2, module2) {\n \"use strict\";\n var cached = (\n /** @type {GeneratorFunctionConstructor} */\n function* () {\n }.constructor\n );\n module2.exports = () => cached;\n }\n});\n\n// node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js\nvar require_is_generator_function = __commonJS({\n \"node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js\"(exports2, module2) {\n \"use strict\";\n var callBound = require_call_bound();\n var safeRegexTest = require_safe_regex_test();\n var isFnRegex = safeRegexTest(/^\\s*(?:function)?\\*/);\n var hasToStringTag = require_shams2()();\n var getProto = require_get_proto();\n var toStr = callBound(\"Object.prototype.toString\");\n var fnToStr = callBound(\"Function.prototype.toString\");\n var getGeneratorFunction = require_generator_function();\n module2.exports = function isGeneratorFunction(fn) {\n if (typeof fn !== \"function\") {\n return false;\n }\n if (isFnRegex(fnToStr(fn))) {\n return true;\n }\n if (!hasToStringTag) {\n var str = toStr(fn);\n return str === \"[object GeneratorFunction]\";\n }\n if (!getProto) {\n return false;\n }\n var GeneratorFunction = getGeneratorFunction();\n return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;\n };\n }\n});\n\n// node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js\nvar require_is_callable = __commonJS({\n \"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js\"(exports2, module2) {\n \"use strict\";\n var fnToStr = Function.prototype.toString;\n var reflectApply = typeof Reflect === \"object\" && Reflect !== null && Reflect.apply;\n var badArrayLike;\n var isCallableMarker;\n if (typeof reflectApply === \"function\" && typeof Object.defineProperty === \"function\") {\n try {\n badArrayLike = Object.defineProperty({}, \"length\", {\n get: function() {\n throw isCallableMarker;\n }\n });\n isCallableMarker = {};\n reflectApply(function() {\n throw 42;\n }, null, badArrayLike);\n } catch (_) {\n if (_ !== isCallableMarker) {\n reflectApply = null;\n }\n }\n } else {\n reflectApply = null;\n }\n var constructorRegex = /^\\s*class\\b/;\n var isES6ClassFn = function isES6ClassFunction(value) {\n try {\n var fnStr = fnToStr.call(value);\n return constructorRegex.test(fnStr);\n } catch (e) {\n return false;\n }\n };\n var tryFunctionObject = function tryFunctionToStr(value) {\n try {\n if (isES6ClassFn(value)) {\n return false;\n }\n fnToStr.call(value);\n return true;\n } catch (e) {\n return false;\n }\n };\n var toStr = Object.prototype.toString;\n var objectClass = \"[object Object]\";\n var fnClass = \"[object Function]\";\n var genClass = \"[object GeneratorFunction]\";\n var ddaClass = \"[object HTMLAllCollection]\";\n var ddaClass2 = \"[object HTML document.all class]\";\n var ddaClass3 = \"[object HTMLCollection]\";\n var hasToStringTag = typeof Symbol === \"function\" && !!Symbol.toStringTag;\n var isIE68 = !(0 in [,]);\n var isDDA = function isDocumentDotAll() {\n return false;\n };\n if (typeof document === \"object\") {\n all = document.all;\n if (toStr.call(all) === toStr.call(document.all)) {\n isDDA = function isDocumentDotAll(value) {\n if ((isIE68 || !value) && (typeof value === \"undefined\" || typeof value === \"object\")) {\n try {\n var str = toStr.call(value);\n return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value(\"\") == null;\n } catch (e) {\n }\n }\n return false;\n };\n }\n }\n var all;\n module2.exports = reflectApply ? function isCallable(value) {\n if (isDDA(value)) {\n return true;\n }\n if (!value) {\n return false;\n }\n if (typeof value !== \"function\" && typeof value !== \"object\") {\n return false;\n }\n try {\n reflectApply(value, null, badArrayLike);\n } catch (e) {\n if (e !== isCallableMarker) {\n return false;\n }\n }\n return !isES6ClassFn(value) && tryFunctionObject(value);\n } : function isCallable(value) {\n if (isDDA(value)) {\n return true;\n }\n if (!value) {\n return false;\n }\n if (typeof value !== \"function\" && typeof value !== \"object\") {\n return false;\n }\n if (hasToStringTag) {\n return tryFunctionObject(value);\n }\n if (isES6ClassFn(value)) {\n return false;\n }\n var strClass = toStr.call(value);\n if (strClass !== fnClass && strClass !== genClass && !/^\\[object HTML/.test(strClass)) {\n return false;\n }\n return tryFunctionObject(value);\n };\n }\n});\n\n// node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js\nvar require_for_each = __commonJS({\n \"node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js\"(exports2, module2) {\n \"use strict\";\n var isCallable = require_is_callable();\n var toStr = Object.prototype.toString;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var forEachArray = function forEachArray2(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n };\n var forEachString = function forEachString2(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n };\n var forEachObject = function forEachObject2(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n };\n function isArray(x) {\n return toStr.call(x) === \"[object Array]\";\n }\n module2.exports = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError(\"iterator must be a function\");\n }\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n if (isArray(list)) {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === \"string\") {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n };\n }\n});\n\n// node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js\nvar require_possible_typed_array_names = __commonJS({\n \"node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js\"(exports2, module2) {\n \"use strict\";\n module2.exports = [\n \"Float16Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\"\n ];\n }\n});\n\n// node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js\nvar require_available_typed_arrays = __commonJS({\n \"node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js\"(exports2, module2) {\n \"use strict\";\n var possibleNames = require_possible_typed_array_names();\n var g = typeof globalThis === \"undefined\" ? global : globalThis;\n module2.exports = function availableTypedArrays() {\n var out = [];\n for (var i = 0; i < possibleNames.length; i++) {\n if (typeof g[possibleNames[i]] === \"function\") {\n out[out.length] = possibleNames[i];\n }\n }\n return out;\n };\n }\n});\n\n// node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js\nvar require_define_data_property = __commonJS({\n \"node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = require_es_define_property();\n var $SyntaxError = require_syntax();\n var $TypeError = require_type();\n var gopd = require_gopd();\n module2.exports = function defineDataProperty(obj, property, value) {\n if (!obj || typeof obj !== \"object\" && typeof obj !== \"function\") {\n throw new $TypeError(\"`obj` must be an object or a function`\");\n }\n if (typeof property !== \"string\" && typeof property !== \"symbol\") {\n throw new $TypeError(\"`property` must be a string or a symbol`\");\n }\n if (arguments.length > 3 && typeof arguments[3] !== \"boolean\" && arguments[3] !== null) {\n throw new $TypeError(\"`nonEnumerable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 4 && typeof arguments[4] !== \"boolean\" && arguments[4] !== null) {\n throw new $TypeError(\"`nonWritable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 5 && typeof arguments[5] !== \"boolean\" && arguments[5] !== null) {\n throw new $TypeError(\"`nonConfigurable`, if provided, must be a boolean or null\");\n }\n if (arguments.length > 6 && typeof arguments[6] !== \"boolean\") {\n throw new $TypeError(\"`loose`, if provided, must be a boolean\");\n }\n var nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n var nonWritable = arguments.length > 4 ? arguments[4] : null;\n var nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n var loose = arguments.length > 6 ? arguments[6] : false;\n var desc = !!gopd && gopd(obj, property);\n if ($defineProperty) {\n $defineProperty(obj, property, {\n configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n value,\n writable: nonWritable === null && desc ? desc.writable : !nonWritable\n });\n } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {\n obj[property] = value;\n } else {\n throw new $SyntaxError(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\");\n }\n };\n }\n});\n\n// node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js\nvar require_has_property_descriptors = __commonJS({\n \"node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js\"(exports2, module2) {\n \"use strict\";\n var $defineProperty = require_es_define_property();\n var hasPropertyDescriptors = function hasPropertyDescriptors2() {\n return !!$defineProperty;\n };\n hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n if (!$defineProperty) {\n return null;\n }\n try {\n return $defineProperty([], \"length\", { value: 1 }).length !== 1;\n } catch (e) {\n return true;\n }\n };\n module2.exports = hasPropertyDescriptors;\n }\n});\n\n// node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js\nvar require_set_function_length = __commonJS({\n \"node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js\"(exports2, module2) {\n \"use strict\";\n var GetIntrinsic = require_get_intrinsic();\n var define = require_define_data_property();\n var hasDescriptors = require_has_property_descriptors()();\n var gOPD = require_gopd();\n var $TypeError = require_type();\n var $floor = GetIntrinsic(\"%Math.floor%\");\n module2.exports = function setFunctionLength(fn, length) {\n if (typeof fn !== \"function\") {\n throw new $TypeError(\"`fn` is not a function\");\n }\n if (typeof length !== \"number\" || length < 0 || length > 4294967295 || $floor(length) !== length) {\n throw new $TypeError(\"`length` must be a positive 32-bit integer\");\n }\n var loose = arguments.length > 2 && !!arguments[2];\n var functionLengthIsConfigurable = true;\n var functionLengthIsWritable = true;\n if (\"length\" in fn && gOPD) {\n var desc = gOPD(fn, \"length\");\n if (desc && !desc.configurable) {\n functionLengthIsConfigurable = false;\n }\n if (desc && !desc.writable) {\n functionLengthIsWritable = false;\n }\n }\n if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n if (hasDescriptors) {\n define(\n /** @type {Parameters<define>[0]} */\n fn,\n \"length\",\n length,\n true,\n true\n );\n } else {\n define(\n /** @type {Parameters<define>[0]} */\n fn,\n \"length\",\n length\n );\n }\n }\n return fn;\n };\n }\n});\n\n// node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js\nvar require_applyBind = __commonJS({\n \"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js\"(exports2, module2) {\n \"use strict\";\n var bind = require_function_bind();\n var $apply = require_functionApply();\n var actualApply = require_actualApply();\n module2.exports = function applyBind() {\n return actualApply(bind, $apply, arguments);\n };\n }\n});\n\n// node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js\nvar require_call_bind = __commonJS({\n \"node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js\"(exports2, module2) {\n \"use strict\";\n var setFunctionLength = require_set_function_length();\n var $defineProperty = require_es_define_property();\n var callBindBasic = require_call_bind_apply_helpers();\n var applyBind = require_applyBind();\n module2.exports = function callBind(originalFunction) {\n var func = callBindBasic(arguments);\n var adjustedLength = originalFunction.length - (arguments.length - 1);\n return setFunctionLength(\n func,\n 1 + (adjustedLength > 0 ? adjustedLength : 0),\n true\n );\n };\n if ($defineProperty) {\n $defineProperty(module2.exports, \"apply\", { value: applyBind });\n } else {\n module2.exports.apply = applyBind;\n }\n }\n});\n\n// node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js\nvar require_which_typed_array = __commonJS({\n \"node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js\"(exports2, module2) {\n \"use strict\";\n var forEach = require_for_each();\n var availableTypedArrays = require_available_typed_arrays();\n var callBind = require_call_bind();\n var callBound = require_call_bound();\n var gOPD = require_gopd();\n var getProto = require_get_proto();\n var $toString = callBound(\"Object.prototype.toString\");\n var hasToStringTag = require_shams2()();\n var g = typeof globalThis === \"undefined\" ? global : globalThis;\n var typedArrays = availableTypedArrays();\n var $slice = callBound(\"String.prototype.slice\");\n var $indexOf = callBound(\"Array.prototype.indexOf\", true) || function indexOf(array, value) {\n for (var i = 0; i < array.length; i += 1) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n };\n var cache = { __proto__: null };\n if (hasToStringTag && gOPD && getProto) {\n forEach(typedArrays, function(typedArray) {\n var arr = new g[typedArray]();\n if (Symbol.toStringTag in arr && getProto) {\n var proto = getProto(arr);\n var descriptor = gOPD(proto, Symbol.toStringTag);\n if (!descriptor && proto) {\n var superProto = getProto(proto);\n descriptor = gOPD(superProto, Symbol.toStringTag);\n }\n if (descriptor && descriptor.get) {\n var bound = callBind(descriptor.get);\n cache[\n /** @type {`$${import('.').TypedArrayName}`} */\n \"$\" + typedArray\n ] = bound;\n }\n }\n });\n } else {\n forEach(typedArrays, function(typedArray) {\n var arr = new g[typedArray]();\n var fn = arr.slice || arr.set;\n if (fn) {\n var bound = (\n /** @type {import('./types').BoundSlice | import('./types').BoundSet} */\n // @ts-expect-error TODO FIXME\n callBind(fn)\n );\n cache[\n /** @type {`$${import('.').TypedArrayName}`} */\n \"$\" + typedArray\n ] = bound;\n }\n });\n }\n var tryTypedArrays = function tryAllTypedArrays(value) {\n var found = false;\n forEach(\n /** @type {Record<`\\$${import('.').TypedArrayName}`, Getter>} */\n cache,\n /** @type {(getter: Getter, name: `\\$${import('.').TypedArrayName}`) => void} */\n function(getter, typedArray) {\n if (!found) {\n try {\n if (\"$\" + getter(value) === typedArray) {\n found = /** @type {import('.').TypedArrayName} */\n $slice(typedArray, 1);\n }\n } catch (e) {\n }\n }\n }\n );\n return found;\n };\n var trySlices = function tryAllSlices(value) {\n var found = false;\n forEach(\n /** @type {Record<`\\$${import('.').TypedArrayName}`, Getter>} */\n cache,\n /** @type {(getter: Getter, name: `\\$${import('.').TypedArrayName}`) => void} */\n function(getter, name) {\n if (!found) {\n try {\n getter(value);\n found = /** @type {import('.').TypedArrayName} */\n $slice(name, 1);\n } catch (e) {\n }\n }\n }\n );\n return found;\n };\n module2.exports = function whichTypedArray(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n if (!hasToStringTag) {\n var tag = $slice($toString(value), 8, -1);\n if ($indexOf(typedArrays, tag) > -1) {\n return tag;\n }\n if (tag !== \"Object\") {\n return false;\n }\n return trySlices(value);\n }\n if (!gOPD) {\n return null;\n }\n return tryTypedArrays(value);\n };\n }\n});\n\n// node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js\nvar require_is_typed_array = __commonJS({\n \"node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js\"(exports2, module2) {\n \"use strict\";\n var whichTypedArray = require_which_typed_array();\n module2.exports = function isTypedArray(value) {\n return !!whichTypedArray(value);\n };\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js\nvar require_types = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js\"(exports2) {\n \"use strict\";\n var isArgumentsObject = require_is_arguments();\n var isGeneratorFunction = require_is_generator_function();\n var whichTypedArray = require_which_typed_array();\n var isTypedArray = require_is_typed_array();\n function uncurryThis(f) {\n return f.call.bind(f);\n }\n var BigIntSupported = typeof BigInt !== \"undefined\";\n var SymbolSupported = typeof Symbol !== \"undefined\";\n var ObjectToString = uncurryThis(Object.prototype.toString);\n var numberValue = uncurryThis(Number.prototype.valueOf);\n var stringValue = uncurryThis(String.prototype.valueOf);\n var booleanValue = uncurryThis(Boolean.prototype.valueOf);\n if (BigIntSupported) {\n bigIntValue = uncurryThis(BigInt.prototype.valueOf);\n }\n var bigIntValue;\n if (SymbolSupported) {\n symbolValue = uncurryThis(Symbol.prototype.valueOf);\n }\n var symbolValue;\n function checkBoxedPrimitive(value, prototypeValueOf) {\n if (typeof value !== \"object\") {\n return false;\n }\n try {\n prototypeValueOf(value);\n return true;\n } catch (e) {\n return false;\n }\n }\n exports2.isArgumentsObject = isArgumentsObject;\n exports2.isGeneratorFunction = isGeneratorFunction;\n exports2.isTypedArray = isTypedArray;\n function isPromise(input) {\n return typeof Promise !== \"undefined\" && input instanceof Promise || input !== null && typeof input === \"object\" && typeof input.then === \"function\" && typeof input.catch === \"function\";\n }\n exports2.isPromise = isPromise;\n function isArrayBufferView(value) {\n if (typeof ArrayBuffer !== \"undefined\" && ArrayBuffer.isView) {\n return ArrayBuffer.isView(value);\n }\n return isTypedArray(value) || isDataView(value);\n }\n exports2.isArrayBufferView = isArrayBufferView;\n function isUint8Array(value) {\n return whichTypedArray(value) === \"Uint8Array\";\n }\n exports2.isUint8Array = isUint8Array;\n function isUint8ClampedArray(value) {\n return whichTypedArray(value) === \"Uint8ClampedArray\";\n }\n exports2.isUint8ClampedArray = isUint8ClampedArray;\n function isUint16Array(value) {\n return whichTypedArray(value) === \"Uint16Array\";\n }\n exports2.isUint16Array = isUint16Array;\n function isUint32Array(value) {\n return whichTypedArray(value) === \"Uint32Array\";\n }\n exports2.isUint32Array = isUint32Array;\n function isInt8Array(value) {\n return whichTypedArray(value) === \"Int8Array\";\n }\n exports2.isInt8Array = isInt8Array;\n function isInt16Array(value) {\n return whichTypedArray(value) === \"Int16Array\";\n }\n exports2.isInt16Array = isInt16Array;\n function isInt32Array(value) {\n return whichTypedArray(value) === \"Int32Array\";\n }\n exports2.isInt32Array = isInt32Array;\n function isFloat32Array(value) {\n return whichTypedArray(value) === \"Float32Array\";\n }\n exports2.isFloat32Array = isFloat32Array;\n function isFloat64Array(value) {\n return whichTypedArray(value) === \"Float64Array\";\n }\n exports2.isFloat64Array = isFloat64Array;\n function isBigInt64Array(value) {\n return whichTypedArray(value) === \"BigInt64Array\";\n }\n exports2.isBigInt64Array = isBigInt64Array;\n function isBigUint64Array(value) {\n return whichTypedArray(value) === \"BigUint64Array\";\n }\n exports2.isBigUint64Array = isBigUint64Array;\n function isMapToString(value) {\n return ObjectToString(value) === \"[object Map]\";\n }\n isMapToString.working = typeof Map !== \"undefined\" && isMapToString(/* @__PURE__ */ new Map());\n function isMap(value) {\n if (typeof Map === \"undefined\") {\n return false;\n }\n return isMapToString.working ? isMapToString(value) : value instanceof Map;\n }\n exports2.isMap = isMap;\n function isSetToString(value) {\n return ObjectToString(value) === \"[object Set]\";\n }\n isSetToString.working = typeof Set !== \"undefined\" && isSetToString(/* @__PURE__ */ new Set());\n function isSet(value) {\n if (typeof Set === \"undefined\") {\n return false;\n }\n return isSetToString.working ? isSetToString(value) : value instanceof Set;\n }\n exports2.isSet = isSet;\n function isWeakMapToString(value) {\n return ObjectToString(value) === \"[object WeakMap]\";\n }\n isWeakMapToString.working = typeof WeakMap !== \"undefined\" && isWeakMapToString(/* @__PURE__ */ new WeakMap());\n function isWeakMap(value) {\n if (typeof WeakMap === \"undefined\") {\n return false;\n }\n return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;\n }\n exports2.isWeakMap = isWeakMap;\n function isWeakSetToString(value) {\n return ObjectToString(value) === \"[object WeakSet]\";\n }\n isWeakSetToString.working = typeof WeakSet !== \"undefined\" && isWeakSetToString(/* @__PURE__ */ new WeakSet());\n function isWeakSet(value) {\n return isWeakSetToString(value);\n }\n exports2.isWeakSet = isWeakSet;\n function isArrayBufferToString(value) {\n return ObjectToString(value) === \"[object ArrayBuffer]\";\n }\n isArrayBufferToString.working = typeof ArrayBuffer !== \"undefined\" && isArrayBufferToString(new ArrayBuffer());\n function isArrayBuffer(value) {\n if (typeof ArrayBuffer === \"undefined\") {\n return false;\n }\n return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;\n }\n exports2.isArrayBuffer = isArrayBuffer;\n function isDataViewToString(value) {\n return ObjectToString(value) === \"[object DataView]\";\n }\n isDataViewToString.working = typeof ArrayBuffer !== \"undefined\" && typeof DataView !== \"undefined\" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));\n function isDataView(value) {\n if (typeof DataView === \"undefined\") {\n return false;\n }\n return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;\n }\n exports2.isDataView = isDataView;\n var SharedArrayBufferCopy = typeof SharedArrayBuffer !== \"undefined\" ? SharedArrayBuffer : void 0;\n function isSharedArrayBufferToString(value) {\n return ObjectToString(value) === \"[object SharedArrayBuffer]\";\n }\n function isSharedArrayBuffer(value) {\n if (typeof SharedArrayBufferCopy === \"undefined\") {\n return false;\n }\n if (typeof isSharedArrayBufferToString.working === \"undefined\") {\n isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());\n }\n return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;\n }\n exports2.isSharedArrayBuffer = isSharedArrayBuffer;\n function isAsyncFunction(value) {\n return ObjectToString(value) === \"[object AsyncFunction]\";\n }\n exports2.isAsyncFunction = isAsyncFunction;\n function isMapIterator(value) {\n return ObjectToString(value) === \"[object Map Iterator]\";\n }\n exports2.isMapIterator = isMapIterator;\n function isSetIterator(value) {\n return ObjectToString(value) === \"[object Set Iterator]\";\n }\n exports2.isSetIterator = isSetIterator;\n function isGeneratorObject(value) {\n return ObjectToString(value) === \"[object Generator]\";\n }\n exports2.isGeneratorObject = isGeneratorObject;\n function isWebAssemblyCompiledModule(value) {\n return ObjectToString(value) === \"[object WebAssembly.Module]\";\n }\n exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;\n function isNumberObject(value) {\n return checkBoxedPrimitive(value, numberValue);\n }\n exports2.isNumberObject = isNumberObject;\n function isStringObject(value) {\n return checkBoxedPrimitive(value, stringValue);\n }\n exports2.isStringObject = isStringObject;\n function isBooleanObject(value) {\n return checkBoxedPrimitive(value, booleanValue);\n }\n exports2.isBooleanObject = isBooleanObject;\n function isBigIntObject(value) {\n return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);\n }\n exports2.isBigIntObject = isBigIntObject;\n function isSymbolObject(value) {\n return SymbolSupported && checkBoxedPrimitive(value, symbolValue);\n }\n exports2.isSymbolObject = isSymbolObject;\n function isBoxedPrimitive(value) {\n return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);\n }\n exports2.isBoxedPrimitive = isBoxedPrimitive;\n function isAnyArrayBuffer(value) {\n return typeof Uint8Array !== \"undefined\" && (isArrayBuffer(value) || isSharedArrayBuffer(value));\n }\n exports2.isAnyArrayBuffer = isAnyArrayBuffer;\n [\"isProxy\", \"isExternal\", \"isModuleNamespaceObject\"].forEach(function(method) {\n Object.defineProperty(exports2, method, {\n enumerable: false,\n value: function() {\n throw new Error(method + \" is not supported in userland\");\n }\n });\n });\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js\nvar require_isBufferBrowser = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js\"(exports2, module2) {\n module2.exports = function isBuffer(arg) {\n return arg && typeof arg === \"object\" && typeof arg.copy === \"function\" && typeof arg.fill === \"function\" && typeof arg.readUInt8 === \"function\";\n };\n }\n});\n\n// node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js\nvar require_inherits_browser = __commonJS({\n \"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js\"(exports2, module2) {\n if (typeof Object.create === \"function\") {\n module2.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n }\n };\n } else {\n module2.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function() {\n };\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n };\n }\n }\n});\n\n// node_modules/.pnpm/util@0.12.5/node_modules/util/util.js\nvar require_util = __commonJS({\n \"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js\"(exports2) {\n var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n var formatRegExp = /%[sdj%]/g;\n exports2.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(\" \");\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x2) {\n if (x2 === \"%%\") return \"%\";\n if (i >= len) return x2;\n switch (x2) {\n case \"%s\":\n return String(args[i++]);\n case \"%d\":\n return Number(args[i++]);\n case \"%j\":\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return \"[Circular]\";\n }\n default:\n return x2;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += \" \" + x;\n } else {\n str += \" \" + inspect(x);\n }\n }\n return str;\n };\n exports2.deprecate = function(fn, msg) {\n if (typeof process !== \"undefined\" && process.noDeprecation === true) {\n return fn;\n }\n if (typeof process === \"undefined\") {\n return function() {\n return exports2.deprecate(fn, msg).apply(this, arguments);\n };\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n };\n var debugs = {};\n var debugEnvRegex = /^$/;\n if (process.env.NODE_DEBUG) {\n debugEnv = process.env.NODE_DEBUG;\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, \"\\\\$&\").replace(/\\*/g, \".*\").replace(/,/g, \"$|^\").toUpperCase();\n debugEnvRegex = new RegExp(\"^\" + debugEnv + \"$\", \"i\");\n }\n var debugEnv;\n exports2.debuglog = function(set) {\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (debugEnvRegex.test(set)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports2.format.apply(exports2, arguments);\n console.error(\"%s %d: %s\", set, pid, msg);\n };\n } else {\n debugs[set] = function() {\n };\n }\n }\n return debugs[set];\n };\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n ctx.showHidden = opts;\n } else if (opts) {\n exports2._extend(ctx, opts);\n }\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n }\n exports2.inspect = inspect;\n inspect.colors = {\n \"bold\": [1, 22],\n \"italic\": [3, 23],\n \"underline\": [4, 24],\n \"inverse\": [7, 27],\n \"white\": [37, 39],\n \"grey\": [90, 39],\n \"black\": [30, 39],\n \"blue\": [34, 39],\n \"cyan\": [36, 39],\n \"green\": [32, 39],\n \"magenta\": [35, 39],\n \"red\": [31, 39],\n \"yellow\": [33, 39]\n };\n inspect.styles = {\n \"special\": \"cyan\",\n \"number\": \"yellow\",\n \"boolean\": \"yellow\",\n \"undefined\": \"grey\",\n \"null\": \"bold\",\n \"string\": \"green\",\n \"date\": \"magenta\",\n // \"name\": intentionally not styling\n \"regexp\": \"red\"\n };\n function stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return \"\\x1B[\" + inspect.colors[style][0] + \"m\" + str + \"\\x1B[\" + inspect.colors[style][1] + \"m\";\n } else {\n return str;\n }\n }\n function stylizeNoColor(str, styleType) {\n return str;\n }\n function arrayToHash(array) {\n var hash = {};\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n return hash;\n }\n function formatValue(ctx, value, recurseTimes) {\n if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special\n value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n if (isError(value) && (keys.indexOf(\"message\") >= 0 || keys.indexOf(\"description\") >= 0)) {\n return formatError(value);\n }\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? \": \" + value.name : \"\";\n return ctx.stylize(\"[Function\" + name + \"]\", \"special\");\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), \"regexp\");\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), \"date\");\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = \"\", array = false, braces = [\"{\", \"}\"];\n if (isArray(value)) {\n array = true;\n braces = [\"[\", \"]\"];\n }\n if (isFunction(value)) {\n var n = value.name ? \": \" + value.name : \"\";\n base = \" [Function\" + n + \"]\";\n }\n if (isRegExp(value)) {\n base = \" \" + RegExp.prototype.toString.call(value);\n }\n if (isDate(value)) {\n base = \" \" + Date.prototype.toUTCString.call(value);\n }\n if (isError(value)) {\n base = \" \" + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), \"regexp\");\n } else {\n return ctx.stylize(\"[Object]\", \"special\");\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n }\n function formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize(\"undefined\", \"undefined\");\n if (isString(value)) {\n var simple = \"'\" + JSON.stringify(value).replace(/^\"|\"$/g, \"\").replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + \"'\";\n return ctx.stylize(simple, \"string\");\n }\n if (isNumber(value))\n return ctx.stylize(\"\" + value, \"number\");\n if (isBoolean(value))\n return ctx.stylize(\"\" + value, \"boolean\");\n if (isNull(value))\n return ctx.stylize(\"null\", \"null\");\n }\n function formatError(value) {\n return \"[\" + Error.prototype.toString.call(value) + \"]\";\n }\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n String(i),\n true\n ));\n } else {\n output.push(\"\");\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n key,\n true\n ));\n }\n });\n return output;\n }\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize(\"[Getter/Setter]\", \"special\");\n } else {\n str = ctx.stylize(\"[Getter]\", \"special\");\n }\n } else {\n if (desc.set) {\n str = ctx.stylize(\"[Setter]\", \"special\");\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = \"[\" + key + \"]\";\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf(\"\\n\") > -1) {\n if (array) {\n str = str.split(\"\\n\").map(function(line) {\n return \" \" + line;\n }).join(\"\\n\").slice(2);\n } else {\n str = \"\\n\" + str.split(\"\\n\").map(function(line) {\n return \" \" + line;\n }).join(\"\\n\");\n }\n }\n } else {\n str = ctx.stylize(\"[Circular]\", \"special\");\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify(\"\" + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.slice(1, -1);\n name = ctx.stylize(name, \"name\");\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, \"string\");\n }\n }\n return name + \": \" + str;\n }\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf(\"\\n\") >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, \"\").length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === \"\" ? \"\" : base + \"\\n \") + \" \" + output.join(\",\\n \") + \" \" + braces[1];\n }\n return braces[0] + base + \" \" + output.join(\", \") + \" \" + braces[1];\n }\n exports2.types = require_types();\n function isArray(ar) {\n return Array.isArray(ar);\n }\n exports2.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === \"boolean\";\n }\n exports2.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports2.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports2.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === \"number\";\n }\n exports2.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === \"string\";\n }\n exports2.isString = isString;\n function isSymbol(arg) {\n return typeof arg === \"symbol\";\n }\n exports2.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports2.isUndefined = isUndefined;\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === \"[object RegExp]\";\n }\n exports2.isRegExp = isRegExp;\n exports2.types.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === \"object\" && arg !== null;\n }\n exports2.isObject = isObject;\n function isDate(d) {\n return isObject(d) && objectToString(d) === \"[object Date]\";\n }\n exports2.isDate = isDate;\n exports2.types.isDate = isDate;\n function isError(e) {\n return isObject(e) && (objectToString(e) === \"[object Error]\" || e instanceof Error);\n }\n exports2.isError = isError;\n exports2.types.isNativeError = isError;\n function isFunction(arg) {\n return typeof arg === \"function\";\n }\n exports2.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === \"boolean\" || typeof arg === \"number\" || typeof arg === \"string\" || typeof arg === \"symbol\" || // ES6 symbol\n typeof arg === \"undefined\";\n }\n exports2.isPrimitive = isPrimitive;\n exports2.isBuffer = require_isBufferBrowser();\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n function pad(n) {\n return n < 10 ? \"0\" + n.toString(10) : n.toString(10);\n }\n var months = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\"\n ];\n function timestamp() {\n var d = /* @__PURE__ */ new Date();\n var time = [\n pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())\n ].join(\":\");\n return [d.getDate(), months[d.getMonth()], time].join(\" \");\n }\n exports2.log = function() {\n console.log(\"%s - %s\", timestamp(), exports2.format.apply(exports2, arguments));\n };\n exports2.inherits = require_inherits_browser();\n exports2._extend = function(origin, add) {\n if (!add || !isObject(add)) return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n };\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n var kCustomPromisifiedSymbol = typeof Symbol !== \"undefined\" ? /* @__PURE__ */ Symbol(\"util.promisify.custom\") : void 0;\n exports2.promisify = function promisify(original) {\n if (typeof original !== \"function\")\n throw new TypeError('The \"original\" argument must be of type Function');\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== \"function\") {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn,\n enumerable: false,\n writable: false,\n configurable: true\n });\n return fn;\n }\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function(resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function(err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n return promise;\n }\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn,\n enumerable: false,\n writable: false,\n configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n };\n exports2.promisify.custom = kCustomPromisifiedSymbol;\n function callbackifyOnRejected(reason, cb) {\n if (!reason) {\n var newReason = new Error(\"Promise was rejected with a falsy value\");\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n }\n function callbackify(original) {\n if (typeof original !== \"function\") {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n var maybeCb = args.pop();\n if (typeof maybeCb !== \"function\") {\n throw new TypeError(\"The last argument must be of type Function\");\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n original.apply(this, args).then(\n function(ret) {\n process.nextTick(cb.bind(null, null, ret));\n },\n function(rej) {\n process.nextTick(callbackifyOnRejected.bind(null, rej, cb));\n }\n );\n }\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(\n callbackified,\n getOwnPropertyDescriptors(original)\n );\n return callbackified;\n }\n exports2.callbackify = callbackify;\n }\n});\n\n// <stdin>\nvar util = require_util();\nmodule.exports = util.default ?? util;\n\nfunction installBuiltinUtilFormatWithOptions(builtinUtilModule) {\n if (!builtinUtilModule || typeof builtinUtilModule.formatWithOptions === \"function\") {\n return builtinUtilModule;\n }\n builtinUtilModule.formatWithOptions = function formatWithOptions(inspectOptions, format, ...args) {\n const inspectValue = (value) => {\n if (typeof builtinUtilModule.inspect === \"function\") {\n return builtinUtilModule.inspect(value, inspectOptions);\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n };\n const formatValue = (value) => typeof value === \"string\" ? value : inspectValue(value);\n if (typeof format !== \"string\") {\n return [format, ...args].map(formatValue).join(\" \");\n }\n let index = 0;\n const formatted = format.replace(/%[sdifjoO%]/g, (token) => {\n if (token === \"%%\") {\n return \"%\";\n }\n if (index >= args.length) {\n return token;\n }\n const value = args[index++];\n switch (token) {\n case \"%s\":\n return String(value);\n case \"%d\":\n return Number(value).toString();\n case \"%i\":\n return Number.parseInt(value, 10).toString();\n case \"%f\":\n return Number.parseFloat(value).toString();\n case \"%j\":\n try {\n return JSON.stringify(value);\n } catch {\n return \"[Circular]\";\n }\n case \"%o\":\n case \"%O\":\n return inspectValue(value);\n default:\n return token;\n }\n });\n if (index >= args.length) {\n return formatted;\n }\n return [formatted, ...args.slice(index).map(formatValue)].join(\" \");\n };\n return builtinUtilModule;\n }\nmodule.exports = installBuiltinUtilFormatWithOptions(module.exports);\nif (module.exports && module.exports.default == null) module.exports.default = module.exports;\n";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { BrowserDriverOptions, BrowserRuntimeSystemOptions, } from "./driver.js";
|
|
2
|
+
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, } from "./driver.js";
|
|
3
|
+
export { InMemoryFileSystem } from "./os-filesystem.js";
|
|
4
|
+
export type { ExecOptions, ExecResult, NodeRuntimeDriver, StdioChannel, StdioEvent, TimingMitigation, } from "./runtime.js";
|
|
5
|
+
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "./runtime.js";
|
|
6
|
+
export type { BrowserRuntimeDriverFactoryOptions } from "./runtime-driver.js";
|
|
7
|
+
export { createBrowserRuntimeDriverFactory } from "./runtime-driver.js";
|
|
8
|
+
export type { WorkerHandle } from "./worker-adapter.js";
|
|
9
|
+
export { BrowserWorkerAdapter } from "./worker-adapter.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createBrowserDriver, createBrowserNetworkAdapter, createOpfsFileSystem, } from "./driver.js";
|
|
2
|
+
export { InMemoryFileSystem } from "./os-filesystem.js";
|
|
3
|
+
export { allowAll, allowAllChildProcess, allowAllEnv, allowAllFs, allowAllNetwork, createInMemoryFileSystem, } from "./runtime.js";
|
|
4
|
+
export { createBrowserRuntimeDriverFactory } from "./runtime-driver.js";
|
|
5
|
+
export { BrowserWorkerAdapter } from "./worker-adapter.js";
|