@kasperpeulen/vitest-plugin-nextjs 0.0.0-stage → 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +249 -2
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/action-ids.d.ts +18 -0
- package/dist/action-ids.js +44 -0
- package/dist/adapter.d.ts +8 -0
- package/dist/adapter.js +12 -0
- package/dist/app-requests.d.ts +63 -0
- package/dist/app-requests.js +253 -0
- package/dist/browser-context.d.ts +24 -0
- package/dist/browser-context.js +157 -0
- package/dist/build-output.d.ts +68 -0
- package/dist/build-output.js +216 -0
- package/dist/build.d.ts +26 -0
- package/dist/build.js +39 -0
- package/dist/built-files.d.ts +9 -0
- package/dist/built-files.js +22 -0
- package/dist/cache.d.ts +44 -0
- package/dist/cache.js +99 -0
- package/dist/client-components.d.ts +3 -0
- package/dist/client-components.js +4 -0
- package/dist/client-file-key.d.ts +5 -0
- package/dist/client-file-key.js +5 -0
- package/dist/client-files.d.ts +83 -0
- package/dist/client-files.js +186 -0
- package/dist/client-graph.d.ts +94 -0
- package/dist/client-graph.js +266 -0
- package/dist/client-modules.d.ts +10 -0
- package/dist/client-modules.js +43 -0
- package/dist/client.d.ts +42 -0
- package/dist/client.js +263 -0
- package/dist/commonjs.d.ts +44 -0
- package/dist/commonjs.js +111 -0
- package/dist/compat/browser/client.d.ts +19 -0
- package/dist/compat/browser/client.js +13 -0
- package/dist/compat/build.d.ts +145 -0
- package/dist/compat/build.js +149 -0
- package/dist/compat/checks.d.ts +16 -0
- package/dist/compat/checks.js +148 -0
- package/dist/compat/patches.d.ts +13 -0
- package/dist/compat/patches.js +30 -0
- package/dist/compat/paths.d.ts +74 -0
- package/dist/compat/paths.js +160 -0
- package/dist/compat/rsc/handlers.d.ts +2 -0
- package/dist/compat/rsc/handlers.js +2 -0
- package/dist/compat/rsc/prerender.d.ts +10 -0
- package/dist/compat/rsc/prerender.js +9 -0
- package/dist/compat/server/headers.d.ts +3 -0
- package/dist/compat/server/headers.js +3 -0
- package/dist/compat/ssr/build-output.d.ts +4 -0
- package/dist/compat/ssr/build-output.js +3 -0
- package/dist/compat/ssr/cache.d.ts +6 -0
- package/dist/compat/ssr/cache.js +6 -0
- package/dist/compat/ssr/handler.d.ts +8 -0
- package/dist/compat/ssr/handler.js +8 -0
- package/dist/compat/ssr/node-server.d.ts +5 -0
- package/dist/compat/ssr/node-server.js +4 -0
- package/dist/compat/ssr/render-errors.d.ts +4 -0
- package/dist/compat/ssr/render-errors.js +4 -0
- package/dist/compat/ssr/senders.d.ts +6 -0
- package/dist/compat/ssr/senders.js +6 -0
- package/dist/compat/types.d.ts +8 -0
- package/dist/compat/types.js +1 -0
- package/dist/compile.d.ts +31 -0
- package/dist/compile.js +140 -0
- package/dist/disk.d.ts +16 -0
- package/dist/disk.js +13 -0
- package/dist/document-loads.d.ts +15 -0
- package/dist/document-loads.js +53 -0
- package/dist/document.d.ts +79 -0
- package/dist/document.js +328 -0
- package/dist/downloads.d.ts +15 -0
- package/dist/downloads.js +71 -0
- package/dist/esm-require.d.ts +11 -0
- package/dist/esm-require.js +32 -0
- package/dist/fast-crypto/index.js +1093 -0
- package/dist/fast-crypto.d.ts +20 -0
- package/dist/fast-crypto.js +151 -0
- package/dist/flight.d.ts +19 -0
- package/dist/flight.js +42 -0
- package/dist/form-submission.d.ts +15 -0
- package/dist/form-submission.js +27 -0
- package/dist/from-page.d.ts +5 -0
- package/dist/from-page.js +44 -0
- package/dist/globals.d.ts +1 -0
- package/dist/globals.js +197 -0
- package/dist/host-document.d.ts +26 -0
- package/dist/host-document.js +34 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +281 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/leftovers.d.ts +11 -0
- package/dist/leftovers.js +55 -0
- package/dist/mode.d.ts +169 -0
- package/dist/mode.js +31 -0
- package/dist/node/LICENSES.md +3540 -0
- package/dist/node/assert/strict.js +29 -0
- package/dist/node/assert.js +3044 -0
- package/dist/node/buffer.js +1499 -0
- package/dist/node/child_process.js +45 -0
- package/dist/node/cluster.js +85 -0
- package/dist/node/console.js +96 -0
- package/dist/node/constants.js +495 -0
- package/dist/node/crypto.js +1388 -0
- package/dist/node/dgram.js +78 -0
- package/dist/node/diagnostics_channel.js +122 -0
- package/dist/node/dns/promises.js +129 -0
- package/dist/node/dns.js +137 -0
- package/dist/node/domain.js +43 -0
- package/dist/node/events.js +1155 -0
- package/dist/node/fs/promises.js +40 -0
- package/dist/node/fs.js +10375 -0
- package/dist/node/http.js +326 -0
- package/dist/node/http2.js +305 -0
- package/dist/node/https.js +57 -0
- package/dist/node/inspector/promises.js +66 -0
- package/dist/node/inspector.js +76 -0
- package/dist/node/module.js +205 -0
- package/dist/node/net.js +392 -0
- package/dist/node/os.js +259 -0
- package/dist/node/path/posix.js +25 -0
- package/dist/node/path/win32.js +25 -0
- package/dist/node/path.js +384 -0
- package/dist/node/perf_hooks.js +313 -0
- package/dist/node/process.js +452 -0
- package/dist/node/punycode.js +178 -0
- package/dist/node/querystring.js +934 -0
- package/dist/node/readline/promises.js +71 -0
- package/dist/node/readline.js +56 -0
- package/dist/node/repl.js +44 -0
- package/dist/node/sqlite.js +22 -0
- package/dist/node/stream/consumers.js +47 -0
- package/dist/node/stream/promises.js +6 -0
- package/dist/node/stream/web.js +52 -0
- package/dist/node/stream.js +4323 -0
- package/dist/node/string_decoder.js +276 -0
- package/dist/node/sys.js +6 -0
- package/dist/node/timers/promises.js +71 -0
- package/dist/node/timers.js +133 -0
- package/dist/node/tls.js +122 -0
- package/dist/node/trace_events.js +23 -0
- package/dist/node/tty.js +69 -0
- package/dist/node/url.js +1426 -0
- package/dist/node/util/types.js +1456 -0
- package/dist/node/util.js +4807 -0
- package/dist/node/v8.js +160 -0
- package/dist/node/vm.js +88 -0
- package/dist/node/wasi.js +16 -0
- package/dist/node/worker_threads.js +123 -0
- package/dist/node/zlib.js +1396 -0
- package/dist/node-builtins.d.ts +40 -0
- package/dist/node-builtins.js +74 -0
- package/dist/node-on-page.d.ts +46 -0
- package/dist/node-on-page.js +101 -0
- package/dist/node-platform.d.ts +36 -0
- package/dist/node-platform.js +152 -0
- package/dist/node-rendered.d.ts +21 -0
- package/dist/node-rendered.js +26 -0
- package/dist/node-server.d.ts +46 -0
- package/dist/node-server.js +193 -0
- package/dist/optimizer-cache-key.d.ts +26 -0
- package/dist/optimizer-cache-key.js +73 -0
- package/dist/own-package.d.ts +1 -0
- package/dist/own-package.js +6 -0
- package/dist/page-store.d.ts +33 -0
- package/dist/page-store.js +80 -0
- package/dist/page-timers.d.ts +22 -0
- package/dist/page-timers.js +47 -0
- package/dist/page.d.ts +112 -0
- package/dist/page.js +549 -0
- package/dist/paths.d.ts +13 -0
- package/dist/paths.js +47 -0
- package/dist/plugin.d.ts +22 -0
- package/dist/plugin.js +995 -0
- package/dist/prerender-verdict.d.ts +8 -0
- package/dist/prerender-verdict.js +67 -0
- package/dist/project/context.d.ts +546 -0
- package/dist/project/context.js +111 -0
- package/dist/project/entries.d.ts +42 -0
- package/dist/project/entries.js +189 -0
- package/dist/project/env-worker.d.ts +1 -0
- package/dist/project/env-worker.js +9 -0
- package/dist/project/env.d.ts +36 -0
- package/dist/project/env.js +82 -0
- package/dist/project/layers.d.ts +31 -0
- package/dist/project/layers.js +150 -0
- package/dist/project/loaders.d.ts +71 -0
- package/dist/project/loaders.js +300 -0
- package/dist/project/metadata.d.ts +8 -0
- package/dist/project/metadata.js +34 -0
- package/dist/project/module-exports.d.ts +29 -0
- package/dist/project/module-exports.js +77 -0
- package/dist/project/routes.d.ts +19 -0
- package/dist/project/routes.js +92 -0
- package/dist/project/routing.d.ts +46 -0
- package/dist/project/routing.js +280 -0
- package/dist/project/transform.d.ts +8 -0
- package/dist/project/transform.js +110 -0
- package/dist/project/webpack.d.ts +46 -0
- package/dist/project/webpack.js +160 -0
- package/dist/project.d.ts +264 -0
- package/dist/project.js +58 -0
- package/dist/registry-global.d.ts +5 -0
- package/dist/registry-global.js +5 -0
- package/dist/registry.d.ts +241 -0
- package/dist/registry.js +30 -0
- package/dist/route-chunks.d.ts +13 -0
- package/dist/route-chunks.js +32 -0
- package/dist/route-lookup.d.ts +34 -0
- package/dist/route-lookup.js +207 -0
- package/dist/routes-ahead-shared.d.ts +17 -0
- package/dist/routes-ahead-shared.js +9 -0
- package/dist/routes-ahead.d.ts +10 -0
- package/dist/routes-ahead.js +54 -0
- package/dist/rsc.d.ts +19 -0
- package/dist/rsc.js +171 -0
- package/dist/server-action.d.ts +9 -0
- package/dist/server-action.js +15 -0
- package/dist/server-code.d.ts +176 -0
- package/dist/server-code.js +357 -0
- package/dist/server-in-front.d.ts +37 -0
- package/dist/server-in-front.js +90 -0
- package/dist/server-layers.d.ts +22 -0
- package/dist/server-layers.js +33 -0
- package/dist/setup-browser.d.ts +1 -0
- package/dist/setup-browser.js +8 -0
- package/dist/setup-node.d.ts +1 -0
- package/dist/setup-node.js +6 -0
- package/dist/setup.d.ts +8 -0
- package/dist/setup.js +62 -0
- package/dist/speed-features.d.ts +13 -0
- package/dist/speed-features.js +95 -0
- package/dist/ssr.d.ts +70 -0
- package/dist/ssr.js +480 -0
- package/dist/static-build.d.ts +36 -0
- package/dist/static-build.js +92 -0
- package/dist/storage.d.ts +31 -0
- package/dist/storage.js +94 -0
- package/dist/styles-shared.d.ts +137 -0
- package/dist/styles-shared.js +124 -0
- package/dist/styles.d.ts +102 -0
- package/dist/styles.js +730 -0
- package/dist/stylesheet-versions.d.ts +17 -0
- package/dist/stylesheet-versions.js +43 -0
- package/dist/tester.html +10 -0
- package/dist/use-cache.d.ts +15 -0
- package/dist/use-cache.js +93 -0
- package/dist/vitest-version.d.ts +6 -0
- package/dist/vitest-version.js +12 -0
- package/package.json +125 -3
|
@@ -0,0 +1,1456 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
|
|
34
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
35
|
+
function createNotImplementedError(name) {
|
|
36
|
+
return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
|
|
37
|
+
}
|
|
38
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
39
|
+
function notImplemented(name) {
|
|
40
|
+
const fn = () => {
|
|
41
|
+
throw /* @__PURE__ */ createNotImplementedError(name);
|
|
42
|
+
};
|
|
43
|
+
return Object.assign(fn, { __unenv__: true });
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/util/types.mjs
|
|
47
|
+
var types_exports = /* @__PURE__ */ __exportAll({
|
|
48
|
+
isAnyArrayBuffer: () => isAnyArrayBuffer$1,
|
|
49
|
+
isArgumentsObject: () => isArgumentsObject$1,
|
|
50
|
+
isArrayBuffer: () => isArrayBuffer$1,
|
|
51
|
+
isArrayBufferView: () => isArrayBufferView$1,
|
|
52
|
+
isAsyncFunction: () => isAsyncFunction$1,
|
|
53
|
+
isBigInt64Array: () => isBigInt64Array$1,
|
|
54
|
+
isBigIntObject: () => isBigIntObject$1,
|
|
55
|
+
isBigUint64Array: () => isBigUint64Array$1,
|
|
56
|
+
isBooleanObject: () => isBooleanObject$1,
|
|
57
|
+
isBoxedPrimitive: () => isBoxedPrimitive$1,
|
|
58
|
+
isCryptoKey: () => isCryptoKey$1,
|
|
59
|
+
isDataView: () => isDataView$1,
|
|
60
|
+
isDate: () => isDate$1,
|
|
61
|
+
isExternal: () => isExternal$1,
|
|
62
|
+
isFloat32Array: () => isFloat32Array$1,
|
|
63
|
+
isFloat64Array: () => isFloat64Array$1,
|
|
64
|
+
isGeneratorFunction: () => isGeneratorFunction$1,
|
|
65
|
+
isGeneratorObject: () => isGeneratorObject$1,
|
|
66
|
+
isInt16Array: () => isInt16Array$1,
|
|
67
|
+
isInt32Array: () => isInt32Array$1,
|
|
68
|
+
isInt8Array: () => isInt8Array$1,
|
|
69
|
+
isKeyObject: () => isKeyObject$1,
|
|
70
|
+
isMap: () => isMap$1,
|
|
71
|
+
isMapIterator: () => isMapIterator$1,
|
|
72
|
+
isModuleNamespaceObject: () => isModuleNamespaceObject$1,
|
|
73
|
+
isNativeError: () => isNativeError$1,
|
|
74
|
+
isNumberObject: () => isNumberObject$1,
|
|
75
|
+
isPromise: () => isPromise$1,
|
|
76
|
+
isProxy: () => isProxy$1,
|
|
77
|
+
isRegExp: () => isRegExp$1,
|
|
78
|
+
isSet: () => isSet$1,
|
|
79
|
+
isSetIterator: () => isSetIterator$1,
|
|
80
|
+
isSharedArrayBuffer: () => isSharedArrayBuffer$1,
|
|
81
|
+
isStringObject: () => isStringObject$1,
|
|
82
|
+
isSymbolObject: () => isSymbolObject$1,
|
|
83
|
+
isTypedArray: () => isTypedArray$1,
|
|
84
|
+
isUint16Array: () => isUint16Array$1,
|
|
85
|
+
isUint32Array: () => isUint32Array$1,
|
|
86
|
+
isUint8Array: () => isUint8Array$1,
|
|
87
|
+
isUint8ClampedArray: () => isUint8ClampedArray$1,
|
|
88
|
+
isWeakMap: () => isWeakMap$1,
|
|
89
|
+
isWeakSet: () => isWeakSet$1
|
|
90
|
+
});
|
|
91
|
+
const isExternal$1 = (_obj) => false;
|
|
92
|
+
const isDate$1 = (val) => val instanceof Date;
|
|
93
|
+
const isArgumentsObject$1 = /* @__PURE__ */ notImplemented("util.types.isArgumentsObject");
|
|
94
|
+
const isBigIntObject$1 = (val) => typeof val === "bigint";
|
|
95
|
+
const isBooleanObject$1 = (val) => typeof val === "boolean";
|
|
96
|
+
const isNumberObject$1 = (val) => typeof val === "number";
|
|
97
|
+
const isStringObject$1 = (val) => typeof val === "string";
|
|
98
|
+
const isSymbolObject$1 = (val) => typeof val === "symbol";
|
|
99
|
+
const isNativeError$1 = /* @__PURE__ */ notImplemented("util.types.isNativeError");
|
|
100
|
+
const isRegExp$1 = (val) => val instanceof RegExp;
|
|
101
|
+
const isAsyncFunction$1 = /* @__PURE__ */ notImplemented("util.types.isAsyncFunction");
|
|
102
|
+
const isGeneratorFunction$1 = /* @__PURE__ */ notImplemented("util.types.isGeneratorFunction");
|
|
103
|
+
const isGeneratorObject$1 = /* @__PURE__ */ notImplemented("util.types.isGeneratorObject");
|
|
104
|
+
const isPromise$1 = (val) => val instanceof Promise;
|
|
105
|
+
const isMap$1 = (val) => val instanceof Map;
|
|
106
|
+
const isSet$1 = (val) => val instanceof Set;
|
|
107
|
+
const isMapIterator$1 = /* @__PURE__ */ notImplemented("util.types.isMapIterator");
|
|
108
|
+
const isSetIterator$1 = /* @__PURE__ */ notImplemented("util.types.isSetIterator");
|
|
109
|
+
const isWeakMap$1 = (val) => val instanceof WeakMap;
|
|
110
|
+
const isWeakSet$1 = (val) => val instanceof WeakSet;
|
|
111
|
+
const isArrayBuffer$1 = (val) => val instanceof ArrayBuffer;
|
|
112
|
+
const isDataView$1 = (val) => val instanceof DataView;
|
|
113
|
+
const isSharedArrayBuffer$1 = (val) => val instanceof SharedArrayBuffer;
|
|
114
|
+
const isProxy$1 = /* @__PURE__ */ notImplemented("util.types.isProxy");
|
|
115
|
+
const isModuleNamespaceObject$1 = /* @__PURE__ */ notImplemented("util.types.isModuleNamespaceObject");
|
|
116
|
+
const isAnyArrayBuffer$1 = /* @__PURE__ */ notImplemented("util.types.isAnyArrayBuffer");
|
|
117
|
+
const isBoxedPrimitive$1 = /* @__PURE__ */ notImplemented("util.types.isBoxedPrimitive");
|
|
118
|
+
const isArrayBufferView$1 = /* @__PURE__ */ notImplemented("util.types.isArrayBufferView");
|
|
119
|
+
const isTypedArray$1 = /* @__PURE__ */ notImplemented("util.types.isTypedArray");
|
|
120
|
+
const isUint8Array$1 = /* @__PURE__ */ notImplemented("util.types.isUint8Array");
|
|
121
|
+
const isUint8ClampedArray$1 = /* @__PURE__ */ notImplemented("util.types.isUint8ClampedArray");
|
|
122
|
+
const isUint16Array$1 = /* @__PURE__ */ notImplemented("util.types.isUint16Array");
|
|
123
|
+
const isUint32Array$1 = /* @__PURE__ */ notImplemented("util.types.isUint32Array");
|
|
124
|
+
const isInt8Array$1 = /* @__PURE__ */ notImplemented("util.types.isInt8Array");
|
|
125
|
+
const isInt16Array$1 = /* @__PURE__ */ notImplemented("util.types.isInt16Array");
|
|
126
|
+
const isInt32Array$1 = /* @__PURE__ */ notImplemented("util.types.isInt32Array");
|
|
127
|
+
const isFloat32Array$1 = /* @__PURE__ */ notImplemented("util.types.isFloat32Array");
|
|
128
|
+
const isFloat64Array$1 = /* @__PURE__ */ notImplemented("util.types.isFloat64Array");
|
|
129
|
+
const isBigInt64Array$1 = /* @__PURE__ */ notImplemented("util.types.isBigInt64Array");
|
|
130
|
+
const isBigUint64Array$1 = /* @__PURE__ */ notImplemented("util.types.isBigUint64Array");
|
|
131
|
+
const isKeyObject$1 = /* @__PURE__ */ notImplemented("util.types.isKeyObject");
|
|
132
|
+
const isCryptoKey$1 = /* @__PURE__ */ notImplemented("util.types.isCryptoKey");
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/util/types.mjs
|
|
135
|
+
var types_default = types_exports;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
|
|
138
|
+
var require_shams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
139
|
+
module.exports = function hasSymbols() {
|
|
140
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") return false;
|
|
141
|
+
if (typeof Symbol.iterator === "symbol") return true;
|
|
142
|
+
var obj = {};
|
|
143
|
+
var sym = Symbol("test");
|
|
144
|
+
var symObj = Object(sym);
|
|
145
|
+
if (typeof sym === "string") return false;
|
|
146
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") return false;
|
|
147
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") return false;
|
|
148
|
+
var symVal = 42;
|
|
149
|
+
obj[sym] = symVal;
|
|
150
|
+
for (var _ in obj) return false;
|
|
151
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) return false;
|
|
152
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) return false;
|
|
153
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
154
|
+
if (syms.length !== 1 || syms[0] !== sym) return false;
|
|
155
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return false;
|
|
156
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
157
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
158
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) return false;
|
|
159
|
+
}
|
|
160
|
+
return true;
|
|
161
|
+
};
|
|
162
|
+
}));
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
|
|
165
|
+
var require_shams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
166
|
+
var hasSymbols = require_shams$1();
|
|
167
|
+
module.exports = function hasToStringTagShams() {
|
|
168
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
169
|
+
};
|
|
170
|
+
}));
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
|
|
173
|
+
var require_es_object_atoms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
174
|
+
module.exports = Object;
|
|
175
|
+
}));
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
178
|
+
var require_es_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
179
|
+
module.exports = Error;
|
|
180
|
+
}));
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
183
|
+
var require_eval = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
184
|
+
module.exports = EvalError;
|
|
185
|
+
}));
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
188
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
189
|
+
module.exports = RangeError;
|
|
190
|
+
}));
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
193
|
+
var require_ref = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
194
|
+
module.exports = ReferenceError;
|
|
195
|
+
}));
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
198
|
+
var require_syntax = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
199
|
+
module.exports = SyntaxError;
|
|
200
|
+
}));
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
203
|
+
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
204
|
+
module.exports = TypeError;
|
|
205
|
+
}));
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
208
|
+
var require_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
209
|
+
module.exports = URIError;
|
|
210
|
+
}));
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
|
|
213
|
+
var require_abs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
214
|
+
module.exports = Math.abs;
|
|
215
|
+
}));
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
|
|
218
|
+
var require_floor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
219
|
+
module.exports = Math.floor;
|
|
220
|
+
}));
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
|
|
223
|
+
var require_max = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
224
|
+
module.exports = Math.max;
|
|
225
|
+
}));
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
|
|
228
|
+
var require_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
229
|
+
module.exports = Math.min;
|
|
230
|
+
}));
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
|
|
233
|
+
var require_pow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
234
|
+
module.exports = Math.pow;
|
|
235
|
+
}));
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
|
|
238
|
+
var require_round = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
239
|
+
module.exports = Math.round;
|
|
240
|
+
}));
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
|
|
243
|
+
var require_isNaN = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
244
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
245
|
+
return a !== a;
|
|
246
|
+
};
|
|
247
|
+
}));
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
|
|
250
|
+
var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
251
|
+
var $isNaN = require_isNaN();
|
|
252
|
+
module.exports = function sign(number) {
|
|
253
|
+
if ($isNaN(number) || number === 0) return number;
|
|
254
|
+
return number < 0 ? -1 : 1;
|
|
255
|
+
};
|
|
256
|
+
}));
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
|
|
259
|
+
var require_gOPD = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
260
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
261
|
+
}));
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
|
|
264
|
+
var require_gopd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
265
|
+
var $gOPD = require_gOPD();
|
|
266
|
+
if ($gOPD) try {
|
|
267
|
+
$gOPD([], "length");
|
|
268
|
+
} catch (e) {
|
|
269
|
+
$gOPD = null;
|
|
270
|
+
}
|
|
271
|
+
module.exports = $gOPD;
|
|
272
|
+
}));
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
|
|
275
|
+
var require_es_define_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
276
|
+
var $defineProperty = Object.defineProperty || false;
|
|
277
|
+
if ($defineProperty) try {
|
|
278
|
+
$defineProperty({}, "a", { value: 1 });
|
|
279
|
+
} catch (e) {
|
|
280
|
+
$defineProperty = false;
|
|
281
|
+
}
|
|
282
|
+
module.exports = $defineProperty;
|
|
283
|
+
}));
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
|
|
286
|
+
var require_has_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
287
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
288
|
+
var hasSymbolSham = require_shams$1();
|
|
289
|
+
module.exports = function hasNativeSymbols() {
|
|
290
|
+
if (typeof origSymbol !== "function") return false;
|
|
291
|
+
if (typeof Symbol !== "function") return false;
|
|
292
|
+
if (typeof origSymbol("foo") !== "symbol") return false;
|
|
293
|
+
if (typeof Symbol("bar") !== "symbol") return false;
|
|
294
|
+
return hasSymbolSham();
|
|
295
|
+
};
|
|
296
|
+
}));
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
299
|
+
var require_Reflect_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
300
|
+
module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
301
|
+
}));
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
|
|
304
|
+
var require_Object_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
305
|
+
module.exports = require_es_object_atoms().getPrototypeOf || null;
|
|
306
|
+
}));
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
309
|
+
var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
310
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
311
|
+
var toStr = Object.prototype.toString;
|
|
312
|
+
var max = Math.max;
|
|
313
|
+
var funcType = "[object Function]";
|
|
314
|
+
var concatty = function concatty(a, b) {
|
|
315
|
+
var arr = [];
|
|
316
|
+
for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
|
|
317
|
+
for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
|
|
318
|
+
return arr;
|
|
319
|
+
};
|
|
320
|
+
var slicy = function slicy(arrLike, offset) {
|
|
321
|
+
var arr = [];
|
|
322
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
|
|
323
|
+
return arr;
|
|
324
|
+
};
|
|
325
|
+
var joiny = function(arr, joiner) {
|
|
326
|
+
var str = "";
|
|
327
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
328
|
+
str += arr[i];
|
|
329
|
+
if (i + 1 < arr.length) str += joiner;
|
|
330
|
+
}
|
|
331
|
+
return str;
|
|
332
|
+
};
|
|
333
|
+
module.exports = function bind(that) {
|
|
334
|
+
var target = this;
|
|
335
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
|
|
336
|
+
var args = slicy(arguments, 1);
|
|
337
|
+
var bound;
|
|
338
|
+
var binder = function() {
|
|
339
|
+
if (this instanceof bound) {
|
|
340
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
341
|
+
if (Object(result) === result) return result;
|
|
342
|
+
return this;
|
|
343
|
+
}
|
|
344
|
+
return target.apply(that, concatty(args, arguments));
|
|
345
|
+
};
|
|
346
|
+
var boundLength = max(0, target.length - args.length);
|
|
347
|
+
var boundArgs = [];
|
|
348
|
+
for (var i = 0; i < boundLength; i++) boundArgs[i] = "$" + i;
|
|
349
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
350
|
+
if (target.prototype) {
|
|
351
|
+
var Empty = function Empty() {};
|
|
352
|
+
Empty.prototype = target.prototype;
|
|
353
|
+
bound.prototype = new Empty();
|
|
354
|
+
Empty.prototype = null;
|
|
355
|
+
}
|
|
356
|
+
return bound;
|
|
357
|
+
};
|
|
358
|
+
}));
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
361
|
+
var require_function_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
362
|
+
var implementation = require_implementation();
|
|
363
|
+
module.exports = Function.prototype.bind || implementation;
|
|
364
|
+
}));
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
|
|
367
|
+
var require_functionCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
368
|
+
module.exports = Function.prototype.call;
|
|
369
|
+
}));
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
|
|
372
|
+
var require_functionApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
373
|
+
module.exports = Function.prototype.apply;
|
|
374
|
+
}));
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
|
|
377
|
+
var require_reflectApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
378
|
+
module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
379
|
+
}));
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
|
|
382
|
+
var require_actualApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
383
|
+
var bind = require_function_bind();
|
|
384
|
+
var $apply = require_functionApply();
|
|
385
|
+
var $call = require_functionCall();
|
|
386
|
+
module.exports = require_reflectApply() || bind.call($call, $apply);
|
|
387
|
+
}));
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
|
|
390
|
+
var require_call_bind_apply_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
391
|
+
var bind = require_function_bind();
|
|
392
|
+
var $TypeError = require_type();
|
|
393
|
+
var $call = require_functionCall();
|
|
394
|
+
var $actualApply = require_actualApply();
|
|
395
|
+
module.exports = function callBindBasic(args) {
|
|
396
|
+
if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
|
|
397
|
+
return $actualApply(bind, $call, args);
|
|
398
|
+
};
|
|
399
|
+
}));
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
|
|
402
|
+
var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
403
|
+
var callBind = require_call_bind_apply_helpers();
|
|
404
|
+
var gOPD = require_gopd();
|
|
405
|
+
var hasProtoAccessor;
|
|
406
|
+
try {
|
|
407
|
+
hasProtoAccessor = [].__proto__ === Array.prototype;
|
|
408
|
+
} catch (e) {
|
|
409
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
|
|
410
|
+
}
|
|
411
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
|
|
412
|
+
var $Object = Object;
|
|
413
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
414
|
+
module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
|
|
415
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
416
|
+
} : false;
|
|
417
|
+
}));
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
|
|
420
|
+
var require_get_proto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
421
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
422
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
423
|
+
var getDunderProto = require_get();
|
|
424
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
425
|
+
return reflectGetProto(O);
|
|
426
|
+
} : originalGetProto ? function getProto(O) {
|
|
427
|
+
if (!O || typeof O !== "object" && typeof O !== "function") throw new TypeError("getProto: not an object");
|
|
428
|
+
return originalGetProto(O);
|
|
429
|
+
} : getDunderProto ? function getProto(O) {
|
|
430
|
+
return getDunderProto(O);
|
|
431
|
+
} : null;
|
|
432
|
+
}));
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
435
|
+
var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
436
|
+
var call = Function.prototype.call;
|
|
437
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
438
|
+
module.exports = require_function_bind().call(call, $hasOwn);
|
|
439
|
+
}));
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
|
|
442
|
+
var require_get_intrinsic = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
443
|
+
var undefined;
|
|
444
|
+
var $Object = require_es_object_atoms();
|
|
445
|
+
var $Error = require_es_errors();
|
|
446
|
+
var $EvalError = require_eval();
|
|
447
|
+
var $RangeError = require_range();
|
|
448
|
+
var $ReferenceError = require_ref();
|
|
449
|
+
var $SyntaxError = require_syntax();
|
|
450
|
+
var $TypeError = require_type();
|
|
451
|
+
var $URIError = require_uri();
|
|
452
|
+
var abs = require_abs();
|
|
453
|
+
var floor = require_floor();
|
|
454
|
+
var max = require_max();
|
|
455
|
+
var min = require_min();
|
|
456
|
+
var pow = require_pow();
|
|
457
|
+
var round = require_round();
|
|
458
|
+
var sign = require_sign();
|
|
459
|
+
var $Function = Function;
|
|
460
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
461
|
+
try {
|
|
462
|
+
return $Function("\"use strict\"; return (" + expressionSyntax + ").constructor;")();
|
|
463
|
+
} catch (e) {}
|
|
464
|
+
};
|
|
465
|
+
var $gOPD = require_gopd();
|
|
466
|
+
var $defineProperty = require_es_define_property();
|
|
467
|
+
var throwTypeError = function() {
|
|
468
|
+
throw new $TypeError();
|
|
469
|
+
};
|
|
470
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
471
|
+
try {
|
|
472
|
+
arguments.callee;
|
|
473
|
+
return throwTypeError;
|
|
474
|
+
} catch (calleeThrows) {
|
|
475
|
+
try {
|
|
476
|
+
return $gOPD(arguments, "callee").get;
|
|
477
|
+
} catch (gOPDthrows) {
|
|
478
|
+
return throwTypeError;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}() : throwTypeError;
|
|
482
|
+
var hasSymbols = require_has_symbols()();
|
|
483
|
+
var getProto = require_get_proto();
|
|
484
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
485
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
486
|
+
var $apply = require_functionApply();
|
|
487
|
+
var $call = require_functionCall();
|
|
488
|
+
var needsEval = {};
|
|
489
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined : getProto(Uint8Array);
|
|
490
|
+
var INTRINSICS = {
|
|
491
|
+
__proto__: null,
|
|
492
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined : AggregateError,
|
|
493
|
+
"%Array%": Array,
|
|
494
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined : ArrayBuffer,
|
|
495
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
496
|
+
"%AsyncFromSyncIteratorPrototype%": undefined,
|
|
497
|
+
"%AsyncFunction%": needsEval,
|
|
498
|
+
"%AsyncGenerator%": needsEval,
|
|
499
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
500
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
501
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined : Atomics,
|
|
502
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined : BigInt,
|
|
503
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined : BigInt64Array,
|
|
504
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined : BigUint64Array,
|
|
505
|
+
"%Boolean%": Boolean,
|
|
506
|
+
"%DataView%": typeof DataView === "undefined" ? undefined : DataView,
|
|
507
|
+
"%Date%": Date,
|
|
508
|
+
"%decodeURI%": decodeURI,
|
|
509
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
510
|
+
"%encodeURI%": encodeURI,
|
|
511
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
512
|
+
"%Error%": $Error,
|
|
513
|
+
"%eval%": eval,
|
|
514
|
+
"%EvalError%": $EvalError,
|
|
515
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined : Float16Array,
|
|
516
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined : Float32Array,
|
|
517
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined : Float64Array,
|
|
518
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined : FinalizationRegistry,
|
|
519
|
+
"%Function%": $Function,
|
|
520
|
+
"%GeneratorFunction%": needsEval,
|
|
521
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined : Int8Array,
|
|
522
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined : Int16Array,
|
|
523
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined : Int32Array,
|
|
524
|
+
"%isFinite%": isFinite,
|
|
525
|
+
"%isNaN%": isNaN,
|
|
526
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
527
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined,
|
|
528
|
+
"%Map%": typeof Map === "undefined" ? undefined : Map,
|
|
529
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
530
|
+
"%Math%": Math,
|
|
531
|
+
"%Number%": Number,
|
|
532
|
+
"%Object%": $Object,
|
|
533
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
534
|
+
"%parseFloat%": parseFloat,
|
|
535
|
+
"%parseInt%": parseInt,
|
|
536
|
+
"%Promise%": typeof Promise === "undefined" ? undefined : Promise,
|
|
537
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined : Proxy,
|
|
538
|
+
"%RangeError%": $RangeError,
|
|
539
|
+
"%ReferenceError%": $ReferenceError,
|
|
540
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined : Reflect,
|
|
541
|
+
"%RegExp%": RegExp,
|
|
542
|
+
"%Set%": typeof Set === "undefined" ? undefined : Set,
|
|
543
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
544
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined : SharedArrayBuffer,
|
|
545
|
+
"%String%": String,
|
|
546
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined,
|
|
547
|
+
"%Symbol%": hasSymbols ? Symbol : undefined,
|
|
548
|
+
"%SyntaxError%": $SyntaxError,
|
|
549
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
550
|
+
"%TypedArray%": TypedArray,
|
|
551
|
+
"%TypeError%": $TypeError,
|
|
552
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined : Uint8Array,
|
|
553
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined : Uint8ClampedArray,
|
|
554
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined : Uint16Array,
|
|
555
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined : Uint32Array,
|
|
556
|
+
"%URIError%": $URIError,
|
|
557
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined : WeakMap,
|
|
558
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined : WeakRef,
|
|
559
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined : WeakSet,
|
|
560
|
+
"%Function.prototype.call%": $call,
|
|
561
|
+
"%Function.prototype.apply%": $apply,
|
|
562
|
+
"%Object.defineProperty%": $defineProperty,
|
|
563
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
564
|
+
"%Math.abs%": abs,
|
|
565
|
+
"%Math.floor%": floor,
|
|
566
|
+
"%Math.max%": max,
|
|
567
|
+
"%Math.min%": min,
|
|
568
|
+
"%Math.pow%": pow,
|
|
569
|
+
"%Math.round%": round,
|
|
570
|
+
"%Math.sign%": sign,
|
|
571
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
572
|
+
};
|
|
573
|
+
if (getProto) try {
|
|
574
|
+
null.error;
|
|
575
|
+
} catch (e) {
|
|
576
|
+
INTRINSICS["%Error.prototype%"] = getProto(getProto(e));
|
|
577
|
+
}
|
|
578
|
+
var doEval = function doEval(name) {
|
|
579
|
+
var value;
|
|
580
|
+
if (name === "%AsyncFunction%") value = getEvalledConstructor("async function () {}");
|
|
581
|
+
else if (name === "%GeneratorFunction%") value = getEvalledConstructor("function* () {}");
|
|
582
|
+
else if (name === "%AsyncGeneratorFunction%") value = getEvalledConstructor("async function* () {}");
|
|
583
|
+
else if (name === "%AsyncGenerator%") {
|
|
584
|
+
var fn = doEval("%AsyncGeneratorFunction%");
|
|
585
|
+
if (fn) value = fn.prototype;
|
|
586
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
587
|
+
var gen = doEval("%AsyncGenerator%");
|
|
588
|
+
if (gen && getProto) value = getProto(gen.prototype);
|
|
589
|
+
}
|
|
590
|
+
INTRINSICS[name] = value;
|
|
591
|
+
return value;
|
|
592
|
+
};
|
|
593
|
+
var LEGACY_ALIASES = {
|
|
594
|
+
__proto__: null,
|
|
595
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
596
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
597
|
+
"%ArrayProto_entries%": [
|
|
598
|
+
"Array",
|
|
599
|
+
"prototype",
|
|
600
|
+
"entries"
|
|
601
|
+
],
|
|
602
|
+
"%ArrayProto_forEach%": [
|
|
603
|
+
"Array",
|
|
604
|
+
"prototype",
|
|
605
|
+
"forEach"
|
|
606
|
+
],
|
|
607
|
+
"%ArrayProto_keys%": [
|
|
608
|
+
"Array",
|
|
609
|
+
"prototype",
|
|
610
|
+
"keys"
|
|
611
|
+
],
|
|
612
|
+
"%ArrayProto_values%": [
|
|
613
|
+
"Array",
|
|
614
|
+
"prototype",
|
|
615
|
+
"values"
|
|
616
|
+
],
|
|
617
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
618
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
619
|
+
"%AsyncGeneratorPrototype%": [
|
|
620
|
+
"AsyncGeneratorFunction",
|
|
621
|
+
"prototype",
|
|
622
|
+
"prototype"
|
|
623
|
+
],
|
|
624
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
625
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
626
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
627
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
628
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
629
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
630
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
631
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
632
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
633
|
+
"%GeneratorPrototype%": [
|
|
634
|
+
"GeneratorFunction",
|
|
635
|
+
"prototype",
|
|
636
|
+
"prototype"
|
|
637
|
+
],
|
|
638
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
639
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
640
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
641
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
642
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
643
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
644
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
645
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
646
|
+
"%ObjProto_toString%": [
|
|
647
|
+
"Object",
|
|
648
|
+
"prototype",
|
|
649
|
+
"toString"
|
|
650
|
+
],
|
|
651
|
+
"%ObjProto_valueOf%": [
|
|
652
|
+
"Object",
|
|
653
|
+
"prototype",
|
|
654
|
+
"valueOf"
|
|
655
|
+
],
|
|
656
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
657
|
+
"%PromiseProto_then%": [
|
|
658
|
+
"Promise",
|
|
659
|
+
"prototype",
|
|
660
|
+
"then"
|
|
661
|
+
],
|
|
662
|
+
"%Promise_all%": ["Promise", "all"],
|
|
663
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
664
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
665
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
666
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
667
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
668
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
669
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
670
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
671
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
672
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
673
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
674
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
675
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
676
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
677
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
678
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
679
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
680
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
681
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
682
|
+
};
|
|
683
|
+
var bind = require_function_bind();
|
|
684
|
+
var hasOwn = require_hasown();
|
|
685
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
686
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
687
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
688
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
689
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
690
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
691
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
692
|
+
var stringToPath = function stringToPath(string) {
|
|
693
|
+
var first = $strSlice(string, 0, 1);
|
|
694
|
+
var last = $strSlice(string, -1);
|
|
695
|
+
if (first === "%" && last !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
696
|
+
else if (last === "%" && first !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
697
|
+
var result = [];
|
|
698
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
699
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
700
|
+
});
|
|
701
|
+
return result;
|
|
702
|
+
};
|
|
703
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
704
|
+
var intrinsicName = name;
|
|
705
|
+
var alias;
|
|
706
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
707
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
708
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
709
|
+
}
|
|
710
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
711
|
+
var value = INTRINSICS[intrinsicName];
|
|
712
|
+
if (value === needsEval) value = doEval(intrinsicName);
|
|
713
|
+
if (typeof value === "undefined" && !allowMissing) throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
714
|
+
return {
|
|
715
|
+
alias,
|
|
716
|
+
name: intrinsicName,
|
|
717
|
+
value
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
721
|
+
};
|
|
722
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
723
|
+
if (typeof name !== "string" || name.length === 0) throw new $TypeError("intrinsic name must be a non-empty string");
|
|
724
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") throw new $TypeError("\"allowMissing\" argument must be a boolean");
|
|
725
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
726
|
+
var parts = stringToPath(name);
|
|
727
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
728
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
729
|
+
var intrinsicRealName = intrinsic.name;
|
|
730
|
+
var value = intrinsic.value;
|
|
731
|
+
var skipFurtherCaching = false;
|
|
732
|
+
var alias = intrinsic.alias;
|
|
733
|
+
if (alias) {
|
|
734
|
+
intrinsicBaseName = alias[0];
|
|
735
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
736
|
+
}
|
|
737
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
738
|
+
var part = parts[i];
|
|
739
|
+
var first = $strSlice(part, 0, 1);
|
|
740
|
+
var last = $strSlice(part, -1);
|
|
741
|
+
if ((first === "\"" || first === "'" || first === "`" || last === "\"" || last === "'" || last === "`") && first !== last) throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
742
|
+
if (part === "constructor" || !isOwn) skipFurtherCaching = true;
|
|
743
|
+
intrinsicBaseName += "." + part;
|
|
744
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
745
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
|
|
746
|
+
else if (value != null) {
|
|
747
|
+
if (!(part in value)) {
|
|
748
|
+
if (!allowMissing) throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
752
|
+
var desc = $gOPD(value, part);
|
|
753
|
+
isOwn = !!desc;
|
|
754
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) value = desc.get;
|
|
755
|
+
else value = value[part];
|
|
756
|
+
} else {
|
|
757
|
+
isOwn = hasOwn(value, part);
|
|
758
|
+
value = value[part];
|
|
759
|
+
}
|
|
760
|
+
if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return value;
|
|
764
|
+
};
|
|
765
|
+
}));
|
|
766
|
+
//#endregion
|
|
767
|
+
//#region ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
768
|
+
var require_call_bound = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
769
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
770
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
771
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
772
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
773
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
774
|
+
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBindBasic([intrinsic]);
|
|
775
|
+
return intrinsic;
|
|
776
|
+
};
|
|
777
|
+
}));
|
|
778
|
+
//#endregion
|
|
779
|
+
//#region ../../node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js
|
|
780
|
+
var require_is_arguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
781
|
+
var hasToStringTag = require_shams()();
|
|
782
|
+
var $toString = require_call_bound()("Object.prototype.toString");
|
|
783
|
+
var isStandardArguments = function isArguments(value) {
|
|
784
|
+
if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) return false;
|
|
785
|
+
return $toString(value) === "[object Arguments]";
|
|
786
|
+
};
|
|
787
|
+
var isLegacyArguments = function isArguments(value) {
|
|
788
|
+
if (isStandardArguments(value)) return true;
|
|
789
|
+
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]";
|
|
790
|
+
};
|
|
791
|
+
var supportsStandardArguments = function() {
|
|
792
|
+
return isStandardArguments(arguments);
|
|
793
|
+
}();
|
|
794
|
+
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
795
|
+
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
796
|
+
}));
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region ../../node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js
|
|
799
|
+
var require_is_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
800
|
+
var callBound = require_call_bound();
|
|
801
|
+
var hasToStringTag = require_shams()();
|
|
802
|
+
var hasOwn = require_hasown();
|
|
803
|
+
var gOPD = require_gopd();
|
|
804
|
+
var fn;
|
|
805
|
+
if (hasToStringTag) {
|
|
806
|
+
var $exec = callBound("RegExp.prototype.exec");
|
|
807
|
+
var isRegexMarker = {};
|
|
808
|
+
var throwRegexMarker = function() {
|
|
809
|
+
throw isRegexMarker;
|
|
810
|
+
};
|
|
811
|
+
var badStringifier = {
|
|
812
|
+
toString: throwRegexMarker,
|
|
813
|
+
valueOf: throwRegexMarker
|
|
814
|
+
};
|
|
815
|
+
if (typeof Symbol.toPrimitive === "symbol") badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
816
|
+
fn = function isRegex(value) {
|
|
817
|
+
if (!value || typeof value !== "object") return false;
|
|
818
|
+
var descriptor = gOPD(value, "lastIndex");
|
|
819
|
+
if (!(descriptor && hasOwn(descriptor, "value"))) return false;
|
|
820
|
+
try {
|
|
821
|
+
$exec(value, badStringifier);
|
|
822
|
+
} catch (e) {
|
|
823
|
+
return e === isRegexMarker;
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
} else {
|
|
827
|
+
var $toString = callBound("Object.prototype.toString");
|
|
828
|
+
var regexClass = "[object RegExp]";
|
|
829
|
+
fn = function isRegex(value) {
|
|
830
|
+
if (!value || typeof value !== "object" && typeof value !== "function") return false;
|
|
831
|
+
return $toString(value) === regexClass;
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
module.exports = fn;
|
|
835
|
+
}));
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region ../../node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js
|
|
838
|
+
var require_safe_regex_test = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
839
|
+
var callBound = require_call_bound();
|
|
840
|
+
var isRegex = require_is_regex();
|
|
841
|
+
var $exec = callBound("RegExp.prototype.exec");
|
|
842
|
+
var $TypeError = require_type();
|
|
843
|
+
module.exports = function regexTester(regex) {
|
|
844
|
+
if (!isRegex(regex)) throw new $TypeError("`regex` must be a RegExp");
|
|
845
|
+
return function test(s) {
|
|
846
|
+
return $exec(regex, s) !== null;
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
}));
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region ../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js
|
|
852
|
+
var require_generator_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
853
|
+
const cached = function* () {}.constructor;
|
|
854
|
+
module.exports = () => cached;
|
|
855
|
+
}));
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region ../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js
|
|
858
|
+
var require_is_generator_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
859
|
+
var callBound = require_call_bound();
|
|
860
|
+
var isFnRegex = require_safe_regex_test()(/^\s*(?:function)?\*/);
|
|
861
|
+
var hasToStringTag = require_shams()();
|
|
862
|
+
var getProto = require_get_proto();
|
|
863
|
+
var toStr = callBound("Object.prototype.toString");
|
|
864
|
+
var fnToStr = callBound("Function.prototype.toString");
|
|
865
|
+
var getGeneratorFunction = require_generator_function();
|
|
866
|
+
module.exports = function isGeneratorFunction(fn) {
|
|
867
|
+
if (typeof fn !== "function") return false;
|
|
868
|
+
if (isFnRegex(fnToStr(fn))) return true;
|
|
869
|
+
if (!hasToStringTag) return toStr(fn) === "[object GeneratorFunction]";
|
|
870
|
+
if (!getProto) return false;
|
|
871
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
872
|
+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
|
873
|
+
};
|
|
874
|
+
}));
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
877
|
+
var require_is_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
878
|
+
var fnToStr = Function.prototype.toString;
|
|
879
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
880
|
+
var badArrayLike;
|
|
881
|
+
var isCallableMarker;
|
|
882
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") try {
|
|
883
|
+
badArrayLike = Object.defineProperty({}, "length", { get: function() {
|
|
884
|
+
throw isCallableMarker;
|
|
885
|
+
} });
|
|
886
|
+
isCallableMarker = {};
|
|
887
|
+
reflectApply(function() {
|
|
888
|
+
throw 42;
|
|
889
|
+
}, null, badArrayLike);
|
|
890
|
+
} catch (_) {
|
|
891
|
+
if (_ !== isCallableMarker) reflectApply = null;
|
|
892
|
+
}
|
|
893
|
+
else reflectApply = null;
|
|
894
|
+
var constructorRegex = /^\s*class\b/;
|
|
895
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
896
|
+
try {
|
|
897
|
+
var fnStr = fnToStr.call(value);
|
|
898
|
+
return constructorRegex.test(fnStr);
|
|
899
|
+
} catch (e) {
|
|
900
|
+
return false;
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
904
|
+
try {
|
|
905
|
+
if (isES6ClassFn(value)) return false;
|
|
906
|
+
fnToStr.call(value);
|
|
907
|
+
return true;
|
|
908
|
+
} catch (e) {
|
|
909
|
+
return false;
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
var toStr = Object.prototype.toString;
|
|
913
|
+
var objectClass = "[object Object]";
|
|
914
|
+
var fnClass = "[object Function]";
|
|
915
|
+
var genClass = "[object GeneratorFunction]";
|
|
916
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
917
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
918
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
919
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
920
|
+
var isIE68 = !(0 in [,]);
|
|
921
|
+
var isDDA = function isDocumentDotAll() {
|
|
922
|
+
return false;
|
|
923
|
+
};
|
|
924
|
+
if (typeof document === "object") {
|
|
925
|
+
var all = document.all;
|
|
926
|
+
if (toStr.call(all) === toStr.call(document.all)) isDDA = function isDocumentDotAll(value) {
|
|
927
|
+
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) try {
|
|
928
|
+
var str = toStr.call(value);
|
|
929
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
930
|
+
} catch (e) {}
|
|
931
|
+
return false;
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
module.exports = reflectApply ? function isCallable(value) {
|
|
935
|
+
if (isDDA(value)) return true;
|
|
936
|
+
if (!value) return false;
|
|
937
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
938
|
+
try {
|
|
939
|
+
reflectApply(value, null, badArrayLike);
|
|
940
|
+
} catch (e) {
|
|
941
|
+
if (e !== isCallableMarker) return false;
|
|
942
|
+
}
|
|
943
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
944
|
+
} : function isCallable(value) {
|
|
945
|
+
if (isDDA(value)) return true;
|
|
946
|
+
if (!value) return false;
|
|
947
|
+
if (typeof value !== "function" && typeof value !== "object") return false;
|
|
948
|
+
if (hasToStringTag) return tryFunctionObject(value);
|
|
949
|
+
if (isES6ClassFn(value)) return false;
|
|
950
|
+
var strClass = toStr.call(value);
|
|
951
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) return false;
|
|
952
|
+
return tryFunctionObject(value);
|
|
953
|
+
};
|
|
954
|
+
}));
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
957
|
+
var require_for_each = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
958
|
+
var isCallable = require_is_callable();
|
|
959
|
+
var toStr = Object.prototype.toString;
|
|
960
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
961
|
+
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
962
|
+
for (var i = 0, len = array.length; i < len; i++) if (hasOwnProperty.call(array, i)) {
|
|
963
|
+
if (receiver == null) iterator(array[i], i, array);
|
|
964
|
+
else iterator.call(receiver, array[i], i, array);
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
var forEachString = function forEachString(string, iterator, receiver) {
|
|
968
|
+
for (var i = 0, len = string.length; i < len; i++) if (receiver == null) iterator(string.charAt(i), i, string);
|
|
969
|
+
else iterator.call(receiver, string.charAt(i), i, string);
|
|
970
|
+
};
|
|
971
|
+
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
972
|
+
for (var k in object) if (hasOwnProperty.call(object, k)) {
|
|
973
|
+
if (receiver == null) iterator(object[k], k, object);
|
|
974
|
+
else iterator.call(receiver, object[k], k, object);
|
|
975
|
+
}
|
|
976
|
+
};
|
|
977
|
+
function isArray(x) {
|
|
978
|
+
return toStr.call(x) === "[object Array]";
|
|
979
|
+
}
|
|
980
|
+
module.exports = function forEach(list, iterator, thisArg) {
|
|
981
|
+
if (!isCallable(iterator)) throw new TypeError("iterator must be a function");
|
|
982
|
+
var receiver;
|
|
983
|
+
if (arguments.length >= 3) receiver = thisArg;
|
|
984
|
+
if (isArray(list)) forEachArray(list, iterator, receiver);
|
|
985
|
+
else if (typeof list === "string") forEachString(list, iterator, receiver);
|
|
986
|
+
else forEachObject(list, iterator, receiver);
|
|
987
|
+
};
|
|
988
|
+
}));
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region ../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
|
|
991
|
+
var require_possible_typed_array_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
992
|
+
module.exports = [
|
|
993
|
+
"Float16Array",
|
|
994
|
+
"Float32Array",
|
|
995
|
+
"Float64Array",
|
|
996
|
+
"Int8Array",
|
|
997
|
+
"Int16Array",
|
|
998
|
+
"Int32Array",
|
|
999
|
+
"Uint8Array",
|
|
1000
|
+
"Uint8ClampedArray",
|
|
1001
|
+
"Uint16Array",
|
|
1002
|
+
"Uint32Array",
|
|
1003
|
+
"BigInt64Array",
|
|
1004
|
+
"BigUint64Array"
|
|
1005
|
+
];
|
|
1006
|
+
}));
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
1009
|
+
var require_available_typed_arrays = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1010
|
+
var possibleNames = require_possible_typed_array_names();
|
|
1011
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1012
|
+
module.exports = function availableTypedArrays() {
|
|
1013
|
+
var out = [];
|
|
1014
|
+
for (var i = 0; i < possibleNames.length; i++) if (typeof g[possibleNames[i]] === "function") out[out.length] = possibleNames[i];
|
|
1015
|
+
return out;
|
|
1016
|
+
};
|
|
1017
|
+
}));
|
|
1018
|
+
//#endregion
|
|
1019
|
+
//#region ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
1020
|
+
var require_define_data_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1021
|
+
var $defineProperty = require_es_define_property();
|
|
1022
|
+
var $SyntaxError = require_syntax();
|
|
1023
|
+
var $TypeError = require_type();
|
|
1024
|
+
var gopd = require_gopd();
|
|
1025
|
+
module.exports = function defineDataProperty(obj, property, value) {
|
|
1026
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new $TypeError("`obj` must be an object or a function`");
|
|
1027
|
+
if (typeof property !== "string" && typeof property !== "symbol") throw new $TypeError("`property` must be a string or a symbol`");
|
|
1028
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
1029
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
1030
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
1031
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
1032
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
1033
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
1034
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
1035
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
1036
|
+
var desc = !!gopd && gopd(obj, property);
|
|
1037
|
+
if ($defineProperty) $defineProperty(obj, property, {
|
|
1038
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
1039
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
1040
|
+
value,
|
|
1041
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
1042
|
+
});
|
|
1043
|
+
else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) obj[property] = value;
|
|
1044
|
+
else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1045
|
+
};
|
|
1046
|
+
}));
|
|
1047
|
+
//#endregion
|
|
1048
|
+
//#region ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
1049
|
+
var require_has_property_descriptors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1050
|
+
var $defineProperty = require_es_define_property();
|
|
1051
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
1052
|
+
return !!$defineProperty;
|
|
1053
|
+
};
|
|
1054
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
1055
|
+
if (!$defineProperty) return null;
|
|
1056
|
+
try {
|
|
1057
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
1058
|
+
} catch (e) {
|
|
1059
|
+
return true;
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
module.exports = hasPropertyDescriptors;
|
|
1063
|
+
}));
|
|
1064
|
+
//#endregion
|
|
1065
|
+
//#region ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
1066
|
+
var require_set_function_length = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1067
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
1068
|
+
var define = require_define_data_property();
|
|
1069
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
1070
|
+
var gOPD = require_gopd();
|
|
1071
|
+
var $TypeError = require_type();
|
|
1072
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
1073
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
1074
|
+
if (typeof fn !== "function") throw new $TypeError("`fn` is not a function");
|
|
1075
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
1076
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
1077
|
+
var functionLengthIsConfigurable = true;
|
|
1078
|
+
var functionLengthIsWritable = true;
|
|
1079
|
+
if ("length" in fn && gOPD) {
|
|
1080
|
+
var desc = gOPD(fn, "length");
|
|
1081
|
+
if (desc && !desc.configurable) functionLengthIsConfigurable = false;
|
|
1082
|
+
if (desc && !desc.writable) functionLengthIsWritable = false;
|
|
1083
|
+
}
|
|
1084
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
1085
|
+
if (hasDescriptors) define(fn, "length", length, true, true);
|
|
1086
|
+
else define(fn, "length", length);
|
|
1087
|
+
}
|
|
1088
|
+
return fn;
|
|
1089
|
+
};
|
|
1090
|
+
}));
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
1093
|
+
var require_applyBind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1094
|
+
var bind = require_function_bind();
|
|
1095
|
+
var $apply = require_functionApply();
|
|
1096
|
+
var actualApply = require_actualApply();
|
|
1097
|
+
module.exports = function applyBind() {
|
|
1098
|
+
return actualApply(bind, $apply, arguments);
|
|
1099
|
+
};
|
|
1100
|
+
}));
|
|
1101
|
+
//#endregion
|
|
1102
|
+
//#region ../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js
|
|
1103
|
+
var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1104
|
+
var setFunctionLength = require_set_function_length();
|
|
1105
|
+
var $defineProperty = require_es_define_property();
|
|
1106
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
1107
|
+
var applyBind = require_applyBind();
|
|
1108
|
+
module.exports = function callBind(originalFunction) {
|
|
1109
|
+
var func = callBindBasic(arguments);
|
|
1110
|
+
var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
|
|
1111
|
+
return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
|
|
1112
|
+
};
|
|
1113
|
+
if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
|
|
1114
|
+
else module.exports.apply = applyBind;
|
|
1115
|
+
}));
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region ../../node_modules/.pnpm/which-typed-array@1.1.24/node_modules/which-typed-array/index.js
|
|
1118
|
+
var require_which_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1119
|
+
var forEach = require_for_each();
|
|
1120
|
+
var availableTypedArrays = require_available_typed_arrays();
|
|
1121
|
+
var callBind = require_call_bind();
|
|
1122
|
+
var callBound = require_call_bound();
|
|
1123
|
+
var gOPD = require_gopd();
|
|
1124
|
+
var getProto = require_get_proto();
|
|
1125
|
+
var $toString = callBound("Object.prototype.toString");
|
|
1126
|
+
var hasToStringTag = require_shams()();
|
|
1127
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1128
|
+
var typedArrays = availableTypedArrays();
|
|
1129
|
+
var $slice = callBound("String.prototype.slice");
|
|
1130
|
+
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
1131
|
+
for (var i = 0; i < array.length; i += 1) if (array[i] === value) return i;
|
|
1132
|
+
return -1;
|
|
1133
|
+
};
|
|
1134
|
+
var cache = { __proto__: null };
|
|
1135
|
+
if (hasToStringTag && gOPD && getProto) forEach(typedArrays, function(typedArray) {
|
|
1136
|
+
var arr = new g[typedArray]();
|
|
1137
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
1138
|
+
var proto = getProto(arr);
|
|
1139
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1140
|
+
if (!descriptor && proto) descriptor = gOPD(getProto(proto), Symbol.toStringTag);
|
|
1141
|
+
if (descriptor && descriptor.get) {
|
|
1142
|
+
var bound = callBind(descriptor.get);
|
|
1143
|
+
cache["$" + typedArray] = bound;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
else forEach(typedArrays, function(typedArray) {
|
|
1148
|
+
var arr = new g[typedArray]();
|
|
1149
|
+
var fn = arr.slice || arr.set;
|
|
1150
|
+
if (fn) {
|
|
1151
|
+
var bound = callBind(fn);
|
|
1152
|
+
cache["$" + typedArray] = bound;
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
function tryTypedArrays(value) {
|
|
1156
|
+
var found = false;
|
|
1157
|
+
forEach(cache, function(getter, typedArray) {
|
|
1158
|
+
if (!found) try {
|
|
1159
|
+
if ("$" + getter(value) === typedArray) found = $slice(typedArray, 1);
|
|
1160
|
+
} catch (e) {}
|
|
1161
|
+
});
|
|
1162
|
+
return found;
|
|
1163
|
+
}
|
|
1164
|
+
function trySlices(value) {
|
|
1165
|
+
var found = false;
|
|
1166
|
+
forEach(cache, function(getter, name) {
|
|
1167
|
+
if (!found) try {
|
|
1168
|
+
getter(value);
|
|
1169
|
+
found = $slice(name, 1);
|
|
1170
|
+
} catch (e) {}
|
|
1171
|
+
});
|
|
1172
|
+
return found;
|
|
1173
|
+
}
|
|
1174
|
+
function isTATag(tag) {
|
|
1175
|
+
return $indexOf(typedArrays, tag) > -1;
|
|
1176
|
+
}
|
|
1177
|
+
function whichTypedArray(value) {
|
|
1178
|
+
if (!value || typeof value !== "object") return false;
|
|
1179
|
+
if (!hasToStringTag) {
|
|
1180
|
+
var tag = $slice($toString(value), 8, -1);
|
|
1181
|
+
if (isTATag(tag)) return tag;
|
|
1182
|
+
if (tag !== "Object") return false;
|
|
1183
|
+
return trySlices(value);
|
|
1184
|
+
}
|
|
1185
|
+
if (!gOPD) return null;
|
|
1186
|
+
return tryTypedArrays(value);
|
|
1187
|
+
}
|
|
1188
|
+
module.exports = whichTypedArray;
|
|
1189
|
+
}));
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
1192
|
+
var require_is_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1193
|
+
var whichTypedArray = require_which_typed_array();
|
|
1194
|
+
module.exports = function isTypedArray(value) {
|
|
1195
|
+
return !!whichTypedArray(value);
|
|
1196
|
+
};
|
|
1197
|
+
}));
|
|
1198
|
+
//#endregion
|
|
1199
|
+
//#region src/node/util/types.ts
|
|
1200
|
+
var import_types = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1201
|
+
var isArgumentsObject = require_is_arguments();
|
|
1202
|
+
var isGeneratorFunction = require_is_generator_function();
|
|
1203
|
+
var whichTypedArray = require_which_typed_array();
|
|
1204
|
+
var isTypedArray = require_is_typed_array();
|
|
1205
|
+
function uncurryThis(f) {
|
|
1206
|
+
return f.call.bind(f);
|
|
1207
|
+
}
|
|
1208
|
+
var BigIntSupported = typeof BigInt !== "undefined";
|
|
1209
|
+
var SymbolSupported = typeof Symbol !== "undefined";
|
|
1210
|
+
var ObjectToString = uncurryThis(Object.prototype.toString);
|
|
1211
|
+
var numberValue = uncurryThis(Number.prototype.valueOf);
|
|
1212
|
+
var stringValue = uncurryThis(String.prototype.valueOf);
|
|
1213
|
+
var booleanValue = uncurryThis(Boolean.prototype.valueOf);
|
|
1214
|
+
if (BigIntSupported) var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
|
|
1215
|
+
if (SymbolSupported) var symbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
1216
|
+
function checkBoxedPrimitive(value, prototypeValueOf) {
|
|
1217
|
+
if (typeof value !== "object") return false;
|
|
1218
|
+
try {
|
|
1219
|
+
prototypeValueOf(value);
|
|
1220
|
+
return true;
|
|
1221
|
+
} catch (e) {
|
|
1222
|
+
return false;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
exports.isArgumentsObject = isArgumentsObject;
|
|
1226
|
+
exports.isGeneratorFunction = isGeneratorFunction;
|
|
1227
|
+
exports.isTypedArray = isTypedArray;
|
|
1228
|
+
function isPromise(input) {
|
|
1229
|
+
return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
|
|
1230
|
+
}
|
|
1231
|
+
exports.isPromise = isPromise;
|
|
1232
|
+
function isArrayBufferView(value) {
|
|
1233
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) return ArrayBuffer.isView(value);
|
|
1234
|
+
return isTypedArray(value) || isDataView(value);
|
|
1235
|
+
}
|
|
1236
|
+
exports.isArrayBufferView = isArrayBufferView;
|
|
1237
|
+
function isUint8Array(value) {
|
|
1238
|
+
return whichTypedArray(value) === "Uint8Array";
|
|
1239
|
+
}
|
|
1240
|
+
exports.isUint8Array = isUint8Array;
|
|
1241
|
+
function isUint8ClampedArray(value) {
|
|
1242
|
+
return whichTypedArray(value) === "Uint8ClampedArray";
|
|
1243
|
+
}
|
|
1244
|
+
exports.isUint8ClampedArray = isUint8ClampedArray;
|
|
1245
|
+
function isUint16Array(value) {
|
|
1246
|
+
return whichTypedArray(value) === "Uint16Array";
|
|
1247
|
+
}
|
|
1248
|
+
exports.isUint16Array = isUint16Array;
|
|
1249
|
+
function isUint32Array(value) {
|
|
1250
|
+
return whichTypedArray(value) === "Uint32Array";
|
|
1251
|
+
}
|
|
1252
|
+
exports.isUint32Array = isUint32Array;
|
|
1253
|
+
function isInt8Array(value) {
|
|
1254
|
+
return whichTypedArray(value) === "Int8Array";
|
|
1255
|
+
}
|
|
1256
|
+
exports.isInt8Array = isInt8Array;
|
|
1257
|
+
function isInt16Array(value) {
|
|
1258
|
+
return whichTypedArray(value) === "Int16Array";
|
|
1259
|
+
}
|
|
1260
|
+
exports.isInt16Array = isInt16Array;
|
|
1261
|
+
function isInt32Array(value) {
|
|
1262
|
+
return whichTypedArray(value) === "Int32Array";
|
|
1263
|
+
}
|
|
1264
|
+
exports.isInt32Array = isInt32Array;
|
|
1265
|
+
function isFloat32Array(value) {
|
|
1266
|
+
return whichTypedArray(value) === "Float32Array";
|
|
1267
|
+
}
|
|
1268
|
+
exports.isFloat32Array = isFloat32Array;
|
|
1269
|
+
function isFloat64Array(value) {
|
|
1270
|
+
return whichTypedArray(value) === "Float64Array";
|
|
1271
|
+
}
|
|
1272
|
+
exports.isFloat64Array = isFloat64Array;
|
|
1273
|
+
function isBigInt64Array(value) {
|
|
1274
|
+
return whichTypedArray(value) === "BigInt64Array";
|
|
1275
|
+
}
|
|
1276
|
+
exports.isBigInt64Array = isBigInt64Array;
|
|
1277
|
+
function isBigUint64Array(value) {
|
|
1278
|
+
return whichTypedArray(value) === "BigUint64Array";
|
|
1279
|
+
}
|
|
1280
|
+
exports.isBigUint64Array = isBigUint64Array;
|
|
1281
|
+
function isMapToString(value) {
|
|
1282
|
+
return ObjectToString(value) === "[object Map]";
|
|
1283
|
+
}
|
|
1284
|
+
isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
|
|
1285
|
+
function isMap(value) {
|
|
1286
|
+
if (typeof Map === "undefined") return false;
|
|
1287
|
+
return isMapToString.working ? isMapToString(value) : value instanceof Map;
|
|
1288
|
+
}
|
|
1289
|
+
exports.isMap = isMap;
|
|
1290
|
+
function isSetToString(value) {
|
|
1291
|
+
return ObjectToString(value) === "[object Set]";
|
|
1292
|
+
}
|
|
1293
|
+
isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
|
|
1294
|
+
function isSet(value) {
|
|
1295
|
+
if (typeof Set === "undefined") return false;
|
|
1296
|
+
return isSetToString.working ? isSetToString(value) : value instanceof Set;
|
|
1297
|
+
}
|
|
1298
|
+
exports.isSet = isSet;
|
|
1299
|
+
function isWeakMapToString(value) {
|
|
1300
|
+
return ObjectToString(value) === "[object WeakMap]";
|
|
1301
|
+
}
|
|
1302
|
+
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
|
|
1303
|
+
function isWeakMap(value) {
|
|
1304
|
+
if (typeof WeakMap === "undefined") return false;
|
|
1305
|
+
return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
|
|
1306
|
+
}
|
|
1307
|
+
exports.isWeakMap = isWeakMap;
|
|
1308
|
+
function isWeakSetToString(value) {
|
|
1309
|
+
return ObjectToString(value) === "[object WeakSet]";
|
|
1310
|
+
}
|
|
1311
|
+
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
|
|
1312
|
+
function isWeakSet(value) {
|
|
1313
|
+
return isWeakSetToString(value);
|
|
1314
|
+
}
|
|
1315
|
+
exports.isWeakSet = isWeakSet;
|
|
1316
|
+
function isArrayBufferToString(value) {
|
|
1317
|
+
return ObjectToString(value) === "[object ArrayBuffer]";
|
|
1318
|
+
}
|
|
1319
|
+
isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(/* @__PURE__ */ new ArrayBuffer());
|
|
1320
|
+
function isArrayBuffer(value) {
|
|
1321
|
+
if (typeof ArrayBuffer === "undefined") return false;
|
|
1322
|
+
return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
|
|
1323
|
+
}
|
|
1324
|
+
exports.isArrayBuffer = isArrayBuffer;
|
|
1325
|
+
function isDataViewToString(value) {
|
|
1326
|
+
return ObjectToString(value) === "[object DataView]";
|
|
1327
|
+
}
|
|
1328
|
+
isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(/* @__PURE__ */ new ArrayBuffer(1), 0, 1));
|
|
1329
|
+
function isDataView(value) {
|
|
1330
|
+
if (typeof DataView === "undefined") return false;
|
|
1331
|
+
return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
|
|
1332
|
+
}
|
|
1333
|
+
exports.isDataView = isDataView;
|
|
1334
|
+
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
|
|
1335
|
+
function isSharedArrayBufferToString(value) {
|
|
1336
|
+
return ObjectToString(value) === "[object SharedArrayBuffer]";
|
|
1337
|
+
}
|
|
1338
|
+
function isSharedArrayBuffer(value) {
|
|
1339
|
+
if (typeof SharedArrayBufferCopy === "undefined") return false;
|
|
1340
|
+
if (typeof isSharedArrayBufferToString.working === "undefined") isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
|
|
1341
|
+
return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
|
|
1342
|
+
}
|
|
1343
|
+
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
1344
|
+
function isAsyncFunction(value) {
|
|
1345
|
+
return ObjectToString(value) === "[object AsyncFunction]";
|
|
1346
|
+
}
|
|
1347
|
+
exports.isAsyncFunction = isAsyncFunction;
|
|
1348
|
+
function isMapIterator(value) {
|
|
1349
|
+
return ObjectToString(value) === "[object Map Iterator]";
|
|
1350
|
+
}
|
|
1351
|
+
exports.isMapIterator = isMapIterator;
|
|
1352
|
+
function isSetIterator(value) {
|
|
1353
|
+
return ObjectToString(value) === "[object Set Iterator]";
|
|
1354
|
+
}
|
|
1355
|
+
exports.isSetIterator = isSetIterator;
|
|
1356
|
+
function isGeneratorObject(value) {
|
|
1357
|
+
return ObjectToString(value) === "[object Generator]";
|
|
1358
|
+
}
|
|
1359
|
+
exports.isGeneratorObject = isGeneratorObject;
|
|
1360
|
+
function isWebAssemblyCompiledModule(value) {
|
|
1361
|
+
return ObjectToString(value) === "[object WebAssembly.Module]";
|
|
1362
|
+
}
|
|
1363
|
+
exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
1364
|
+
function isNumberObject(value) {
|
|
1365
|
+
return checkBoxedPrimitive(value, numberValue);
|
|
1366
|
+
}
|
|
1367
|
+
exports.isNumberObject = isNumberObject;
|
|
1368
|
+
function isStringObject(value) {
|
|
1369
|
+
return checkBoxedPrimitive(value, stringValue);
|
|
1370
|
+
}
|
|
1371
|
+
exports.isStringObject = isStringObject;
|
|
1372
|
+
function isBooleanObject(value) {
|
|
1373
|
+
return checkBoxedPrimitive(value, booleanValue);
|
|
1374
|
+
}
|
|
1375
|
+
exports.isBooleanObject = isBooleanObject;
|
|
1376
|
+
function isBigIntObject(value) {
|
|
1377
|
+
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
1378
|
+
}
|
|
1379
|
+
exports.isBigIntObject = isBigIntObject;
|
|
1380
|
+
function isSymbolObject(value) {
|
|
1381
|
+
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
1382
|
+
}
|
|
1383
|
+
exports.isSymbolObject = isSymbolObject;
|
|
1384
|
+
function isBoxedPrimitive(value) {
|
|
1385
|
+
return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
|
|
1386
|
+
}
|
|
1387
|
+
exports.isBoxedPrimitive = isBoxedPrimitive;
|
|
1388
|
+
function isAnyArrayBuffer(value) {
|
|
1389
|
+
return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
|
|
1390
|
+
}
|
|
1391
|
+
exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
1392
|
+
[
|
|
1393
|
+
"isProxy",
|
|
1394
|
+
"isExternal",
|
|
1395
|
+
"isModuleNamespaceObject"
|
|
1396
|
+
].forEach(function(method) {
|
|
1397
|
+
Object.defineProperty(exports, method, {
|
|
1398
|
+
enumerable: false,
|
|
1399
|
+
value: function() {
|
|
1400
|
+
throw new Error(method + " is not supported in userland");
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
});
|
|
1404
|
+
})))(), 1);
|
|
1405
|
+
const nativeError = (value) => value instanceof Error || Object.prototype.toString.call(value) === "[object Error]";
|
|
1406
|
+
const cryptoKey = (value) => typeof CryptoKey !== "undefined" && value instanceof CryptoKey;
|
|
1407
|
+
const types = {
|
|
1408
|
+
...types_default,
|
|
1409
|
+
...import_types.default,
|
|
1410
|
+
isNativeError: nativeError,
|
|
1411
|
+
isCryptoKey: cryptoKey
|
|
1412
|
+
};
|
|
1413
|
+
const isExternal = types.isExternal;
|
|
1414
|
+
const isDate = types.isDate;
|
|
1415
|
+
const isArgumentsObject = types.isArgumentsObject;
|
|
1416
|
+
const isBigIntObject = types.isBigIntObject;
|
|
1417
|
+
const isBooleanObject = types.isBooleanObject;
|
|
1418
|
+
const isNumberObject = types.isNumberObject;
|
|
1419
|
+
const isStringObject = types.isStringObject;
|
|
1420
|
+
const isSymbolObject = types.isSymbolObject;
|
|
1421
|
+
const isNativeError = types.isNativeError;
|
|
1422
|
+
const isRegExp = types.isRegExp;
|
|
1423
|
+
const isAsyncFunction = types.isAsyncFunction;
|
|
1424
|
+
const isGeneratorFunction = types.isGeneratorFunction;
|
|
1425
|
+
const isGeneratorObject = types.isGeneratorObject;
|
|
1426
|
+
const isPromise = types.isPromise;
|
|
1427
|
+
const isMap = types.isMap;
|
|
1428
|
+
const isSet = types.isSet;
|
|
1429
|
+
const isMapIterator = types.isMapIterator;
|
|
1430
|
+
const isSetIterator = types.isSetIterator;
|
|
1431
|
+
const isWeakMap = types.isWeakMap;
|
|
1432
|
+
const isWeakSet = types.isWeakSet;
|
|
1433
|
+
const isArrayBuffer = types.isArrayBuffer;
|
|
1434
|
+
const isDataView = types.isDataView;
|
|
1435
|
+
const isSharedArrayBuffer = types.isSharedArrayBuffer;
|
|
1436
|
+
const isProxy = types.isProxy;
|
|
1437
|
+
const isModuleNamespaceObject = types.isModuleNamespaceObject;
|
|
1438
|
+
const isAnyArrayBuffer = types.isAnyArrayBuffer;
|
|
1439
|
+
const isBoxedPrimitive = types.isBoxedPrimitive;
|
|
1440
|
+
const isArrayBufferView = types.isArrayBufferView;
|
|
1441
|
+
const isTypedArray = types.isTypedArray;
|
|
1442
|
+
const isUint8Array = types.isUint8Array;
|
|
1443
|
+
const isUint8ClampedArray = types.isUint8ClampedArray;
|
|
1444
|
+
const isUint16Array = types.isUint16Array;
|
|
1445
|
+
const isUint32Array = types.isUint32Array;
|
|
1446
|
+
const isInt8Array = types.isInt8Array;
|
|
1447
|
+
const isInt16Array = types.isInt16Array;
|
|
1448
|
+
const isInt32Array = types.isInt32Array;
|
|
1449
|
+
const isFloat32Array = types.isFloat32Array;
|
|
1450
|
+
const isFloat64Array = types.isFloat64Array;
|
|
1451
|
+
const isBigInt64Array = types.isBigInt64Array;
|
|
1452
|
+
const isBigUint64Array = types.isBigUint64Array;
|
|
1453
|
+
const isKeyObject = types.isKeyObject;
|
|
1454
|
+
const isCryptoKey = types.isCryptoKey;
|
|
1455
|
+
//#endregion
|
|
1456
|
+
export { types as default, isAnyArrayBuffer, isArgumentsObject, isArrayBuffer, isArrayBufferView, isAsyncFunction, isBigInt64Array, isBigIntObject, isBigUint64Array, isBooleanObject, isBoxedPrimitive, isCryptoKey, isDataView, isDate, isExternal, isFloat32Array, isFloat64Array, isGeneratorFunction, isGeneratorObject, isInt16Array, isInt32Array, isInt8Array, isKeyObject, isMap, isMapIterator, isModuleNamespaceObject, isNativeError, isNumberObject, isPromise, isProxy, isRegExp, isSet, isSetIterator, isSharedArrayBuffer, isStringObject, isSymbolObject, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isWeakMap, isWeakSet };
|