@volter/browser-substrate 0.1.113 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shell/assets/{node-execution-worker-910d4c0de0f26c97.js → node-execution-worker-714dbca4282e90ae.js} +7 -7
- package/dist/shell/assets/{runtime-worker-DJbG60eD.js → runtime-worker-DH_89R1c.js} +57 -17
- package/dist/shell/bundler-worker.js +7 -7
- package/dist/shell/node-execution-worker.js +1 -1
- package/dist/shell/python-runtime-snapshot.bin +0 -0
- package/dist/shell/python-runtime-snapshot.json +1 -1
- package/dist/shell/rolldown/factory.mjs +67 -20
- package/package.json +1 -1
|
@@ -5763,7 +5763,7 @@ exports.minimatch.unescape = unescape_js_1.unescape;
|
|
|
5763
5763
|
`;var INTERNAL_FS_READ_CONTEXT="'use strict';\n\nconst {\n ArrayPrototypePush,\n MathMin,\n ReflectApply,\n} = primordials;\n\nconst {\n constants: {\n kReadFileBufferLength,\n kReadFileUnknownBufferLength,\n },\n} = require('internal/fs/utils');\n\nconst { Buffer } = require('buffer');\n\nconst { FSReqCallback, close, read } = internalBinding('fs');\n\nconst {\n AbortError,\n aggregateTwoErrors,\n} = require('internal/errors');\n\nfunction readFileAfterRead(err, bytesRead) {\n const context = this.context;\n\n if (err)\n return context.close(err);\n\n context.pos += bytesRead;\n\n if (context.pos === context.size || bytesRead === 0) {\n context.close();\n } else {\n if (context.size === 0) {\n // Unknown size, just read until we don't get bytes.\n const buffer = bytesRead === kReadFileUnknownBufferLength ?\n context.buffer : context.buffer.slice(0, bytesRead);\n ArrayPrototypePush(context.buffers, buffer);\n }\n context.read();\n }\n}\n\nfunction readFileAfterClose(err) {\n const context = this.context;\n const callback = context.callback;\n let buffer = null;\n\n if (context.err || err)\n return callback(aggregateTwoErrors(err, context.err));\n\n try {\n if (context.size === 0)\n buffer = Buffer.concat(context.buffers, context.pos);\n else if (context.pos < context.size)\n buffer = context.buffer.slice(0, context.pos);\n else\n buffer = context.buffer;\n\n if (context.encoding)\n buffer = buffer.toString(context.encoding);\n } catch (err) {\n return callback(err);\n }\n\n callback(null, buffer);\n}\n\nclass ReadFileContext {\n constructor(callback, encoding) {\n this.fd = undefined;\n this.isUserFd = undefined;\n this.size = 0;\n this.callback = callback;\n this.buffers = null;\n this.buffer = null;\n this.pos = 0;\n this.encoding = encoding;\n this.err = null;\n this.signal = undefined;\n }\n\n read() {\n let buffer;\n let offset;\n let length;\n\n if (this.signal?.aborted) {\n return this.close(\n new AbortError(undefined, { cause: this.signal.reason }));\n }\n if (this.size === 0) {\n buffer = Buffer.allocUnsafeSlow(kReadFileUnknownBufferLength);\n offset = 0;\n length = kReadFileUnknownBufferLength;\n this.buffer = buffer;\n } else {\n buffer = this.buffer;\n offset = this.pos;\n length = MathMin(kReadFileBufferLength, this.size - this.pos);\n }\n\n const req = new FSReqCallback();\n req.oncomplete = readFileAfterRead;\n req.context = this;\n\n read(this.fd, buffer, offset, length, -1, req);\n }\n\n close(err) {\n if (this.isUserFd) {\n process.nextTick(function tick(context) {\n ReflectApply(readFileAfterClose, { context }, [null]);\n }, this);\n return;\n }\n\n const req = new FSReqCallback();\n req.oncomplete = readFileAfterClose;\n req.context = this;\n this.err = err;\n\n close(this.fd, req);\n }\n}\n\nmodule.exports = ReadFileContext;\n";var INTERNAL_FS_CP_CP_SYNC="'use strict';\n\n// This file is a modified version of the fs-extra's copySync method.\n\nconst fsBinding = internalBinding('fs');\nconst { isSrcSubdir } = require('internal/fs/cp/cp');\nconst { codes: {\n ERR_FS_CP_EEXIST,\n ERR_FS_CP_EINVAL,\n ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY,\n ERR_INVALID_RETURN_VALUE,\n} } = require('internal/errors');\nconst {\n os: {\n errno: {\n EEXIST,\n EINVAL,\n },\n },\n} = internalBinding('constants');\nconst {\n chmodSync,\n copyFileSync,\n lstatSync,\n mkdirSync,\n opendirSync,\n readlinkSync,\n statSync,\n symlinkSync,\n unlinkSync,\n utimesSync,\n} = require('fs');\nconst {\n dirname,\n isAbsolute,\n join,\n resolve,\n} = require('path');\nconst { isPromise } = require('util/types');\n\nfunction cpSyncFn(src, dest, opts) {\n // Warn about using preserveTimestamps on 32-bit node\n if (opts.preserveTimestamps && process.arch === 'ia32') {\n const warning = 'Using the preserveTimestamps option in 32-bit ' +\n 'node is not recommended';\n process.emitWarning(warning, 'TimestampPrecisionWarning');\n }\n if (opts.filter) {\n const shouldCopy = opts.filter(src, dest);\n if (isPromise(shouldCopy)) {\n throw new ERR_INVALID_RETURN_VALUE('boolean', 'filter', shouldCopy);\n }\n if (!shouldCopy) return;\n }\n\n fsBinding.cpSyncCheckPaths(src, dest, opts.dereference, opts.recursive);\n\n return getStats(src, dest, opts);\n}\n\nfunction getStats(src, dest, opts) {\n // TODO(@anonrig): Avoid making two stat calls.\n const statSyncFn = opts.dereference ? statSync : lstatSync;\n const srcStat = statSyncFn(src);\n const destStat = statSyncFn(dest, { bigint: true, throwIfNoEntry: false });\n\n if (srcStat.isDirectory() && opts.recursive) {\n return onDir(srcStat, destStat, src, dest, opts);\n } else if (srcStat.isFile() ||\n srcStat.isCharacterDevice() ||\n srcStat.isBlockDevice()) {\n return onFile(srcStat, destStat, src, dest, opts);\n } else if (srcStat.isSymbolicLink()) {\n return onLink(destStat, src, dest, opts.verbatimSymlinks);\n }\n\n // It is not possible to get here because all possible cases are handled above.\n const assert = require('internal/assert');\n assert.fail('Unreachable code');\n}\n\nfunction onFile(srcStat, destStat, src, dest, opts) {\n if (!destStat) return copyFile(srcStat, src, dest, opts);\n\n if (opts.force) {\n return fsBinding.cpSyncOverrideFile(src, dest, opts.mode, opts.preserveTimestamps);\n }\n\n if (opts.errorOnExist) {\n throw new ERR_FS_CP_EEXIST({\n message: `${dest} already exists`,\n path: dest,\n syscall: 'cp',\n errno: EEXIST,\n code: 'EEXIST',\n });\n }\n}\n\nfunction copyFile(srcStat, src, dest, opts) {\n copyFileSync(src, dest, opts.mode);\n if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);\n return setDestMode(dest, srcStat.mode);\n}\n\nfunction handleTimestamps(srcMode, src, dest) {\n // Make sure the file is writable before setting the timestamp\n // otherwise open fails with EPERM when invoked with 'r+'\n // (through utimes call)\n if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode);\n return setDestTimestamps(src, dest);\n}\n\nfunction fileIsNotWritable(srcMode) {\n return (srcMode & 0o200) === 0;\n}\n\nfunction makeFileWritable(dest, srcMode) {\n return setDestMode(dest, srcMode | 0o200);\n}\n\nfunction setDestMode(dest, srcMode) {\n return chmodSync(dest, srcMode);\n}\n\nfunction setDestTimestamps(src, dest) {\n // The initial srcStat.atime cannot be trusted\n // because it is modified by the read(2) system call\n // (See https://nodejs.org/api/fs.html#fs_stat_time_values)\n const updatedSrcStat = statSync(src);\n return utimesSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);\n}\n\n// TODO(@anonrig): Move this function to C++.\nfunction onDir(srcStat, destStat, src, dest, opts) {\n if (!destStat) return copyDir(src, dest, opts, true, srcStat.mode);\n return copyDir(src, dest, opts);\n}\n\nfunction copyDir(src, dest, opts, mkDir, srcMode) {\n if (!opts.filter) {\n // The caller didn't provide a js filter function, in this case\n // we can run the whole function faster in C++\n // TODO(dario-piotrowicz): look into making cpSyncCopyDir also accept the potential filter function\n return fsBinding.cpSyncCopyDir(src, dest,\n opts.force,\n opts.dereference,\n opts.errorOnExist,\n opts.verbatimSymlinks,\n opts.preserveTimestamps);\n }\n\n if (mkDir) {\n mkdirSync(dest);\n }\n\n const dir = opendirSync(src);\n\n try {\n let dirent;\n\n while ((dirent = dir.readSync()) !== null) {\n const { name } = dirent;\n const srcItem = join(src, name);\n const destItem = join(dest, name);\n let shouldCopy = true;\n\n if (opts.filter) {\n shouldCopy = opts.filter(srcItem, destItem);\n if (isPromise(shouldCopy)) {\n throw new ERR_INVALID_RETURN_VALUE('boolean', 'filter', shouldCopy);\n }\n }\n\n if (shouldCopy) {\n getStats(srcItem, destItem, opts);\n }\n }\n } finally {\n dir.closeSync();\n\n if (srcMode !== undefined) {\n setDestMode(dest, srcMode);\n }\n }\n}\n\n// TODO(@anonrig): Move this function to C++.\nfunction onLink(destStat, src, dest, verbatimSymlinks) {\n let resolvedSrc = readlinkSync(src);\n if (!verbatimSymlinks && !isAbsolute(resolvedSrc)) {\n resolvedSrc = resolve(dirname(src), resolvedSrc);\n }\n if (!destStat) {\n return symlinkSync(resolvedSrc, dest);\n }\n let resolvedDest;\n try {\n resolvedDest = readlinkSync(dest);\n } catch (err) {\n // Dest exists and is a regular file or directory,\n // Windows may throw UNKNOWN error. If dest already exists,\n // fs throws error anyway, so no need to guard against it here.\n if (err.code === 'EINVAL' || err.code === 'UNKNOWN') {\n return symlinkSync(resolvedSrc, dest);\n }\n throw err;\n }\n if (!isAbsolute(resolvedDest)) {\n resolvedDest = resolve(dirname(dest), resolvedDest);\n }\n if (isSrcSubdir(resolvedSrc, resolvedDest)) {\n throw new ERR_FS_CP_EINVAL({\n message: `cannot copy ${resolvedSrc} to a subdirectory of self ` +\n `${resolvedDest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n // Prevent copy if src is a subdir of dest since unlinking\n // dest in this case would result in removing src contents\n // and therefore a broken symlink would be created.\n if (statSync(dest).isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) {\n throw new ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY({\n message: `cannot overwrite ${resolvedDest} with ${resolvedSrc}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n return copyLink(resolvedSrc, dest);\n}\n\nfunction copyLink(resolvedSrc, dest) {\n unlinkSync(dest);\n return symlinkSync(resolvedSrc, dest);\n}\n\nmodule.exports = { cpSyncFn };\n";var INTERNAL_FS_CP_CP="'use strict';\n\n// This file is a modified version of the fs-extra's copy method.\n\nconst {\n ArrayPrototypeEvery,\n ArrayPrototypeFilter,\n Boolean,\n PromisePrototypeThen,\n PromiseReject,\n SafePromiseAll,\n StringPrototypeSplit,\n} = primordials;\nconst {\n codes: {\n ERR_FS_CP_DIR_TO_NON_DIR,\n ERR_FS_CP_EEXIST,\n ERR_FS_CP_EINVAL,\n ERR_FS_CP_FIFO_PIPE,\n ERR_FS_CP_NON_DIR_TO_DIR,\n ERR_FS_CP_SOCKET,\n ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY,\n ERR_FS_CP_UNKNOWN,\n ERR_FS_EISDIR,\n },\n} = require('internal/errors');\nconst {\n os: {\n errno: {\n EEXIST,\n EISDIR,\n EINVAL,\n ENOTDIR,\n },\n },\n} = internalBinding('constants');\nconst {\n chmod,\n copyFile,\n lstat,\n mkdir,\n opendir,\n readlink,\n stat,\n symlink,\n unlink,\n utimes,\n} = require('fs/promises');\nconst {\n dirname,\n isAbsolute,\n join,\n parse,\n resolve,\n sep,\n} = require('path');\n\nasync function cpFn(src, dest, opts) {\n // Warn about using preserveTimestamps on 32-bit node\n if (opts.preserveTimestamps && process.arch === 'ia32') {\n const warning = 'Using the preserveTimestamps option in 32-bit ' +\n 'node is not recommended';\n process.emitWarning(warning, 'TimestampPrecisionWarning');\n }\n const stats = await checkPaths(src, dest, opts);\n const { srcStat, destStat, skipped } = stats;\n if (skipped) return;\n await checkParentPaths(src, srcStat, dest);\n return checkParentDir(destStat, src, dest, opts);\n}\n\nasync function checkPaths(src, dest, opts) {\n if (opts.filter && !(await opts.filter(src, dest))) {\n return { __proto__: null, skipped: true };\n }\n const { 0: srcStat, 1: destStat } = await getStats(src, dest, opts);\n if (destStat) {\n if (areIdentical(srcStat, destStat)) {\n throw new ERR_FS_CP_EINVAL({\n message: 'src and dest cannot be the same',\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n if (srcStat.isDirectory() && !destStat.isDirectory()) {\n throw new ERR_FS_CP_DIR_TO_NON_DIR({\n message: `cannot overwrite non-directory ${dest} ` +\n `with directory ${src}`,\n path: dest,\n syscall: 'cp',\n errno: EISDIR,\n code: 'EISDIR',\n });\n }\n if (!srcStat.isDirectory() && destStat.isDirectory()) {\n throw new ERR_FS_CP_NON_DIR_TO_DIR({\n message: `cannot overwrite directory ${dest} ` +\n `with non-directory ${src}`,\n path: dest,\n syscall: 'cp',\n errno: ENOTDIR,\n code: 'ENOTDIR',\n });\n }\n }\n\n if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {\n throw new ERR_FS_CP_EINVAL({\n message: `cannot copy ${src} to a subdirectory of self ${dest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n return { __proto__: null, srcStat, destStat, skipped: false };\n}\n\nfunction areIdentical(srcStat, destStat) {\n return destStat.ino && destStat.dev && destStat.ino === srcStat.ino &&\n destStat.dev === srcStat.dev;\n}\n\nfunction getStats(src, dest, opts) {\n const statFunc = opts.dereference ?\n (file) => stat(file, { bigint: true }) :\n (file) => lstat(file, { bigint: true });\n return SafePromiseAll([\n statFunc(src),\n PromisePrototypeThen(statFunc(dest), undefined, (err) => {\n if (err.code === 'ENOENT') return null;\n throw err;\n }),\n ]);\n}\n\nasync function checkParentDir(destStat, src, dest, opts) {\n const destParent = dirname(dest);\n const dirExists = await pathExists(destParent);\n if (dirExists) return getStatsForCopy(destStat, src, dest, opts);\n await mkdir(destParent, { recursive: true });\n return getStatsForCopy(destStat, src, dest, opts);\n}\n\nfunction pathExists(dest) {\n return PromisePrototypeThen(\n stat(dest),\n () => true,\n (err) => (err.code === 'ENOENT' ? false : PromiseReject(err)));\n}\n\n// Recursively check if dest parent is a subdirectory of src.\n// It works for all file types including symlinks since it\n// checks the src and dest inodes. It starts from the deepest\n// parent and stops once it reaches the src parent or the root path.\nasync function checkParentPaths(src, srcStat, dest) {\n const srcParent = resolve(dirname(src));\n const destParent = resolve(dirname(dest));\n if (destParent === srcParent || destParent === parse(destParent).root) {\n return;\n }\n let destStat;\n try {\n destStat = await stat(destParent, { bigint: true });\n } catch (err) {\n if (err.code === 'ENOENT') return;\n throw err;\n }\n if (areIdentical(srcStat, destStat)) {\n throw new ERR_FS_CP_EINVAL({\n message: `cannot copy ${src} to a subdirectory of self ${dest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n return checkParentPaths(src, srcStat, destParent);\n}\n\nconst normalizePathToArray = (path) =>\n ArrayPrototypeFilter(StringPrototypeSplit(resolve(path), sep), Boolean);\n\n// Return true if dest is a subdir of src, otherwise false.\n// It only checks the path strings.\nfunction isSrcSubdir(src, dest) {\n const srcArr = normalizePathToArray(src);\n const destArr = normalizePathToArray(dest);\n return ArrayPrototypeEvery(srcArr, (cur, i) => destArr[i] === cur);\n}\n\nasync function getStatsForCopy(destStat, src, dest, opts) {\n const statFn = opts.dereference ? stat : lstat;\n const srcStat = await statFn(src);\n if (srcStat.isDirectory() && opts.recursive) {\n return onDir(srcStat, destStat, src, dest, opts);\n } else if (srcStat.isDirectory()) {\n throw new ERR_FS_EISDIR({\n message: `${src} is a directory (not copied)`,\n path: src,\n syscall: 'cp',\n errno: EISDIR,\n code: 'EISDIR',\n });\n } else if (srcStat.isFile() ||\n srcStat.isCharacterDevice() ||\n srcStat.isBlockDevice()) {\n return onFile(srcStat, destStat, src, dest, opts);\n } else if (srcStat.isSymbolicLink()) {\n return onLink(destStat, src, dest, opts);\n } else if (srcStat.isSocket()) {\n throw new ERR_FS_CP_SOCKET({\n message: `cannot copy a socket file: ${dest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n } else if (srcStat.isFIFO()) {\n throw new ERR_FS_CP_FIFO_PIPE({\n message: `cannot copy a FIFO pipe: ${dest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n throw new ERR_FS_CP_UNKNOWN({\n message: `cannot copy an unknown file type: ${dest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n}\n\nfunction onFile(srcStat, destStat, src, dest, opts) {\n if (!destStat) return _copyFile(srcStat, src, dest, opts);\n return mayCopyFile(srcStat, src, dest, opts);\n}\n\nasync function mayCopyFile(srcStat, src, dest, opts) {\n if (opts.force) {\n await unlink(dest);\n return _copyFile(srcStat, src, dest, opts);\n } else if (opts.errorOnExist) {\n throw new ERR_FS_CP_EEXIST({\n message: `${dest} already exists`,\n path: dest,\n syscall: 'cp',\n errno: EEXIST,\n code: 'EEXIST',\n });\n }\n}\n\nasync function _copyFile(srcStat, src, dest, opts) {\n await copyFile(src, dest, opts.mode);\n if (opts.preserveTimestamps) {\n return handleTimestampsAndMode(srcStat.mode, src, dest);\n }\n return setDestMode(dest, srcStat.mode);\n}\n\nasync function handleTimestampsAndMode(srcMode, src, dest) {\n // Make sure the file is writable before setting the timestamp\n // otherwise open fails with EPERM when invoked with 'r+'\n // (through utimes call)\n if (fileIsNotWritable(srcMode)) {\n await makeFileWritable(dest, srcMode);\n }\n return setDestTimestampsAndMode(srcMode, src, dest);\n}\n\nfunction fileIsNotWritable(srcMode) {\n return (srcMode & 0o200) === 0;\n}\n\nfunction makeFileWritable(dest, srcMode) {\n return setDestMode(dest, srcMode | 0o200);\n}\n\nasync function setDestTimestampsAndMode(srcMode, src, dest) {\n await setDestTimestamps(src, dest);\n return setDestMode(dest, srcMode);\n}\n\nfunction setDestMode(dest, srcMode) {\n return chmod(dest, srcMode);\n}\n\nasync function setDestTimestamps(src, dest) {\n // The initial srcStat.atime cannot be trusted\n // because it is modified by the read(2) system call\n // (See https://nodejs.org/api/fs.html#fs_stat_time_values)\n const updatedSrcStat = await stat(src);\n return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime);\n}\n\nfunction onDir(srcStat, destStat, src, dest, opts) {\n if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts);\n return copyDir(src, dest, opts);\n}\n\nasync function mkDirAndCopy(srcMode, src, dest, opts) {\n await mkdir(dest);\n await copyDir(src, dest, opts);\n return setDestMode(dest, srcMode);\n}\n\nasync function copyDir(src, dest, opts) {\n const dir = await opendir(src);\n\n for await (const { name } of dir) {\n const srcItem = join(src, name);\n const destItem = join(dest, name);\n const { destStat, skipped } = await checkPaths(srcItem, destItem, opts);\n if (!skipped) await getStatsForCopy(destStat, srcItem, destItem, opts);\n }\n}\n\nasync function onLink(destStat, src, dest, opts) {\n let resolvedSrc = await readlink(src);\n if (!opts.verbatimSymlinks && !isAbsolute(resolvedSrc)) {\n resolvedSrc = resolve(dirname(src), resolvedSrc);\n }\n if (!destStat) {\n return symlink(resolvedSrc, dest);\n }\n let resolvedDest;\n try {\n resolvedDest = await readlink(dest);\n } catch (err) {\n // Dest exists and is a regular file or directory,\n // Windows may throw UNKNOWN error. If dest already exists,\n // fs throws error anyway, so no need to guard against it here.\n if (err.code === 'EINVAL' || err.code === 'UNKNOWN') {\n return symlink(resolvedSrc, dest);\n }\n throw err;\n }\n if (!isAbsolute(resolvedDest)) {\n resolvedDest = resolve(dirname(dest), resolvedDest);\n }\n if (isSrcSubdir(resolvedSrc, resolvedDest)) {\n throw new ERR_FS_CP_EINVAL({\n message: `cannot copy ${resolvedSrc} to a subdirectory of self ` +\n `${resolvedDest}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n // Do not copy if src is a subdir of dest since unlinking\n // dest in this case would result in removing src contents\n // and therefore a broken symlink would be created.\n const srcStat = await stat(src);\n if (srcStat.isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) {\n throw new ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY({\n message: `cannot overwrite ${resolvedDest} with ${resolvedSrc}`,\n path: dest,\n syscall: 'cp',\n errno: EINVAL,\n code: 'EINVAL',\n });\n }\n return copyLink(resolvedSrc, dest);\n}\n\nasync function copyLink(resolvedSrc, dest) {\n await unlink(dest);\n return symlink(resolvedSrc, dest);\n}\n\nmodule.exports = {\n areIdentical,\n cpFn,\n isSrcSubdir,\n};\n";var INTERNAL_PARSE_ARGS="'use strict';\n\nconst {\n ArrayPrototypeForEach,\n ArrayPrototypeIncludes,\n ArrayPrototypeMap,\n ArrayPrototypePush,\n ArrayPrototypePushApply,\n ArrayPrototypeShift,\n ArrayPrototypeSlice,\n ArrayPrototypeUnshiftApply,\n ObjectEntries,\n ObjectPrototypeHasOwnProperty: ObjectHasOwn,\n StringPrototypeCharAt,\n StringPrototypeIndexOf,\n StringPrototypeSlice,\n StringPrototypeStartsWith,\n} = primordials;\n\nconst {\n validateArray,\n validateBoolean,\n validateBooleanArray,\n validateObject,\n validateString,\n validateStringArray,\n validateUnion,\n} = require('internal/validators');\n\nconst {\n findLongOptionForShort,\n isLoneLongOption,\n isLoneShortOption,\n isLongOptionAndValue,\n isOptionValue,\n isOptionLikeValue,\n isShortOptionAndValue,\n isShortOptionGroup,\n useDefaultValueOption,\n objectGetOwn,\n optionsGetOwn,\n} = require('internal/util/parse_args/utils');\n\nconst {\n codes: {\n ERR_INVALID_ARG_VALUE,\n ERR_PARSE_ARGS_INVALID_OPTION_VALUE,\n ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL,\n ERR_PARSE_ARGS_UNKNOWN_OPTION,\n },\n} = require('internal/errors');\n\nconst {\n kEmptyObject,\n} = require('internal/util');\n\n\nfunction getMainArgs() {\n // Work out where to slice process.argv for user supplied arguments.\n\n // Check node options for scenarios where user CLI args follow executable.\n const execArgv = process.execArgv;\n if (ArrayPrototypeIncludes(execArgv, '-e') ||\n ArrayPrototypeIncludes(execArgv, '--eval') ||\n ArrayPrototypeIncludes(execArgv, '-p') ||\n ArrayPrototypeIncludes(execArgv, '--print')) {\n return ArrayPrototypeSlice(process.argv, 1);\n }\n\n // Normally first two arguments are executable and script, then CLI arguments\n return ArrayPrototypeSlice(process.argv, 2);\n}\n\n/**\n * In strict mode, throw for possible usage errors like --foo --bar\n * @param {object} token - from tokens as available from parseArgs\n */\nfunction checkOptionLikeValue(token) {\n if (!token.inlineValue && isOptionLikeValue(token.value)) {\n // Only show short example if user used short option.\n const example = StringPrototypeStartsWith(token.rawName, '--') ?\n `'${token.rawName}=-XYZ'` :\n `'--${token.name}=-XYZ' or '${token.rawName}-XYZ'`;\n const errorMessage = `Option '${token.rawName}' argument is ambiguous.\nDid you forget to specify the option argument for '${token.rawName}'?\nTo specify an option argument starting with a dash use ${example}.`;\n throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(errorMessage);\n }\n}\n\n/**\n * In strict mode, throw for usage errors.\n * @param {object} config - from config passed to parseArgs\n * @param {object} token - from tokens as available from parseArgs\n */\nfunction checkOptionUsage(config, token) {\n let tokenName = token.name;\n if (!ObjectHasOwn(config.options, tokenName)) {\n // Check for negated boolean option.\n if (config.allowNegative && StringPrototypeStartsWith(tokenName, 'no-')) {\n tokenName = StringPrototypeSlice(tokenName, 3);\n if (!ObjectHasOwn(config.options, tokenName) || optionsGetOwn(config.options, tokenName, 'type') !== 'boolean') {\n throw new ERR_PARSE_ARGS_UNKNOWN_OPTION(\n token.rawName, config.allowPositionals);\n }\n } else {\n throw new ERR_PARSE_ARGS_UNKNOWN_OPTION(\n token.rawName, config.allowPositionals);\n }\n }\n\n const short = optionsGetOwn(config.options, tokenName, 'short');\n const shortAndLong = `${short ? `-${short}, ` : ''}--${tokenName}`;\n const type = optionsGetOwn(config.options, tokenName, 'type');\n if (type === 'string' && typeof token.value !== 'string') {\n throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(`Option '${shortAndLong} <value>' argument missing`);\n }\n // (Idiomatic test for undefined||null, expecting undefined.)\n if (type === 'boolean' && token.value != null) {\n throw new ERR_PARSE_ARGS_INVALID_OPTION_VALUE(`Option '${shortAndLong}' does not take an argument`);\n }\n}\n\n\n/**\n * Store the option value in `values`.\n * @param {object} token - from tokens as available from parseArgs\n * @param {object} options - option configs, from parseArgs({ options })\n * @param {object} values - option values returned in `values` by parseArgs\n * @param {boolean} allowNegative - allow negative optinons if true\n */\nfunction storeOption(token, options, values, allowNegative) {\n let longOption = token.name;\n let optionValue = token.value;\n if (longOption === '__proto__') {\n return; // No. Just no.\n }\n\n if (allowNegative && StringPrototypeStartsWith(longOption, 'no-') && optionValue === undefined) {\n // Boolean option negation: --no-foo\n longOption = StringPrototypeSlice(longOption, 3);\n token.name = longOption;\n optionValue = false;\n }\n\n // We store based on the option value rather than option type,\n // preserving the users intent for author to deal with.\n const newValue = optionValue ?? true;\n if (optionsGetOwn(options, longOption, 'multiple')) {\n // Always store value in array, including for boolean.\n // values[longOption] starts out not present,\n // first value is added as new array [newValue],\n // subsequent values are pushed to existing array.\n // (note: values has null prototype, so simpler usage)\n if (values[longOption]) {\n ArrayPrototypePush(values[longOption], newValue);\n } else {\n values[longOption] = [newValue];\n }\n } else {\n values[longOption] = newValue;\n }\n}\n\n/**\n * Store the default option value in `values`.\n * @param {string} longOption - long option name e.g. 'foo'\n * @param {string\n * | boolean\n * | string[]\n * | boolean[]} optionValue - default value from option config\n * @param {object} values - option values returned in `values` by parseArgs\n */\nfunction storeDefaultOption(longOption, optionValue, values) {\n if (longOption === '__proto__') {\n return; // No. Just no.\n }\n\n values[longOption] = optionValue;\n}\n\n/**\n * Process args and turn into identified tokens:\n * - option (along with value, if any)\n * - positional\n * - option-terminator\n * @param {string[]} args - from parseArgs({ args }) or mainArgs\n * @param {object} options - option configs, from parseArgs({ options })\n */\nfunction argsToTokens(args, options) {\n const tokens = [];\n let index = -1;\n let groupCount = 0;\n\n const remainingArgs = ArrayPrototypeSlice(args);\n while (remainingArgs.length > 0) {\n const arg = ArrayPrototypeShift(remainingArgs);\n const nextArg = remainingArgs[0];\n if (groupCount > 0)\n groupCount--;\n else\n index++;\n\n // Check if `arg` is an options terminator.\n // Guideline 10 in https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html\n if (arg === '--') {\n // Everything after a bare '--' is considered a positional argument.\n ArrayPrototypePush(tokens, { kind: 'option-terminator', index });\n ArrayPrototypePushApply(\n tokens, ArrayPrototypeMap(remainingArgs, (arg) => {\n return { kind: 'positional', index: ++index, value: arg };\n }),\n );\n break; // Finished processing args, leave while loop.\n }\n\n if (isLoneShortOption(arg)) {\n // e.g. '-f'\n const shortOption = StringPrototypeCharAt(arg, 1);\n const longOption = findLongOptionForShort(shortOption, options);\n let value;\n let inlineValue;\n if (optionsGetOwn(options, longOption, 'type') === 'string' &&\n isOptionValue(nextArg)) {\n // e.g. '-f', 'bar'\n value = ArrayPrototypeShift(remainingArgs);\n inlineValue = false;\n }\n ArrayPrototypePush(\n tokens,\n { kind: 'option', name: longOption, rawName: arg,\n index, value, inlineValue });\n if (value != null) ++index;\n continue;\n }\n\n if (isShortOptionGroup(arg, options)) {\n // Expand -fXzy to -f -X -z -y\n const expanded = [];\n for (let index = 1; index < arg.length; index++) {\n const shortOption = StringPrototypeCharAt(arg, index);\n const longOption = findLongOptionForShort(shortOption, options);\n if (optionsGetOwn(options, longOption, 'type') !== 'string' ||\n index === arg.length - 1) {\n // Boolean option, or last short in group. Well formed.\n ArrayPrototypePush(expanded, `-${shortOption}`);\n } else {\n // String option in middle. Yuck.\n // Expand -abfFILE to -a -b -fFILE\n ArrayPrototypePush(expanded, `-${StringPrototypeSlice(arg, index)}`);\n break; // finished short group\n }\n }\n ArrayPrototypeUnshiftApply(remainingArgs, expanded);\n groupCount = expanded.length;\n continue;\n }\n\n if (isShortOptionAndValue(arg, options)) {\n // e.g. -fFILE\n const shortOption = StringPrototypeCharAt(arg, 1);\n const longOption = findLongOptionForShort(shortOption, options);\n const value = StringPrototypeSlice(arg, 2);\n ArrayPrototypePush(\n tokens,\n { kind: 'option', name: longOption, rawName: `-${shortOption}`,\n index, value, inlineValue: true });\n continue;\n }\n\n if (isLoneLongOption(arg)) {\n // e.g. '--foo'\n const longOption = StringPrototypeSlice(arg, 2);\n let value;\n let inlineValue;\n if (optionsGetOwn(options, longOption, 'type') === 'string' &&\n isOptionValue(nextArg)) {\n // e.g. '--foo', 'bar'\n value = ArrayPrototypeShift(remainingArgs);\n inlineValue = false;\n }\n ArrayPrototypePush(\n tokens,\n { kind: 'option', name: longOption, rawName: arg,\n index, value, inlineValue });\n if (value != null) ++index;\n continue;\n }\n\n if (isLongOptionAndValue(arg)) {\n // e.g. --foo=bar\n const equalIndex = StringPrototypeIndexOf(arg, '=');\n const longOption = StringPrototypeSlice(arg, 2, equalIndex);\n const value = StringPrototypeSlice(arg, equalIndex + 1);\n ArrayPrototypePush(\n tokens,\n { kind: 'option', name: longOption, rawName: `--${longOption}`,\n index, value, inlineValue: true });\n continue;\n }\n\n ArrayPrototypePush(tokens, { kind: 'positional', index, value: arg });\n }\n return tokens;\n}\n\nconst parseArgs = (config = kEmptyObject) => {\n const args = objectGetOwn(config, 'args') ?? getMainArgs();\n const strict = objectGetOwn(config, 'strict') ?? true;\n const allowPositionals = objectGetOwn(config, 'allowPositionals') ?? !strict;\n const returnTokens = objectGetOwn(config, 'tokens') ?? false;\n const allowNegative = objectGetOwn(config, 'allowNegative') ?? false;\n const options = objectGetOwn(config, 'options') ?? { __proto__: null };\n // Bundle these up for passing to strict-mode checks.\n const parseConfig = { args, strict, options, allowPositionals, allowNegative };\n\n // Validate input configuration.\n validateArray(args, 'args');\n validateBoolean(strict, 'strict');\n validateBoolean(allowPositionals, 'allowPositionals');\n validateBoolean(returnTokens, 'tokens');\n validateBoolean(allowNegative, 'allowNegative');\n validateObject(options, 'options');\n ArrayPrototypeForEach(\n ObjectEntries(options),\n ({ 0: longOption, 1: optionConfig }) => {\n validateObject(optionConfig, `options.${longOption}`);\n\n // type is required\n const optionType = objectGetOwn(optionConfig, 'type');\n validateUnion(optionType, `options.${longOption}.type`, ['string', 'boolean']);\n\n if (ObjectHasOwn(optionConfig, 'short')) {\n const shortOption = optionConfig.short;\n validateString(shortOption, `options.${longOption}.short`);\n if (shortOption.length !== 1) {\n throw new ERR_INVALID_ARG_VALUE(\n `options.${longOption}.short`,\n shortOption,\n 'must be a single character',\n );\n }\n }\n\n const multipleOption = objectGetOwn(optionConfig, 'multiple');\n if (ObjectHasOwn(optionConfig, 'multiple')) {\n validateBoolean(multipleOption, `options.${longOption}.multiple`);\n }\n\n const defaultValue = objectGetOwn(optionConfig, 'default');\n if (defaultValue !== undefined) {\n let validator;\n switch (optionType) {\n case 'string':\n validator = multipleOption ? validateStringArray : validateString;\n break;\n\n case 'boolean':\n validator = multipleOption ? validateBooleanArray : validateBoolean;\n break;\n }\n validator(defaultValue, `options.${longOption}.default`);\n }\n },\n );\n\n // Phase 1: identify tokens\n const tokens = argsToTokens(args, options);\n\n // Phase 2: process tokens into parsed option values and positionals\n const result = {\n values: { __proto__: null },\n positionals: [],\n };\n if (returnTokens) {\n result.tokens = tokens;\n }\n ArrayPrototypeForEach(tokens, (token) => {\n if (token.kind === 'option') {\n if (strict) {\n checkOptionUsage(parseConfig, token);\n checkOptionLikeValue(token);\n }\n storeOption(token, options, result.values, parseConfig.allowNegative);\n } else if (token.kind === 'positional') {\n if (!allowPositionals) {\n throw new ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL(token.value);\n }\n ArrayPrototypePush(result.positionals, token.value);\n }\n });\n\n // Phase 3: fill in default values for missing args\n ArrayPrototypeForEach(ObjectEntries(options), ({ 0: longOption,\n 1: optionConfig }) => {\n const mustSetDefault = useDefaultValueOption(longOption,\n optionConfig,\n result.values);\n if (mustSetDefault) {\n storeDefaultOption(longOption,\n objectGetOwn(optionConfig, 'default'),\n result.values);\n }\n });\n\n\n return result;\n};\n\nmodule.exports = {\n parseArgs,\n};\n";var INTERNAL_PARSE_ARGS_UTILS="'use strict';\n\nconst {\n ArrayPrototypeFind,\n ObjectEntries,\n ObjectPrototypeHasOwnProperty: ObjectHasOwn,\n StringPrototypeCharAt,\n StringPrototypeIncludes,\n StringPrototypeStartsWith,\n} = primordials;\n\nconst {\n validateObject,\n} = require('internal/validators');\n\n// These are internal utilities to make the parsing logic easier to read, and\n// add lots of detail for the curious. They are in a separate file to allow\n// unit testing, although that is not essential (this could be rolled into\n// main file and just tested implicitly via API).\n//\n// These routines are for internal use, not for export to client.\n\n/**\n * Return the named property, but only if it is an own property.\n */\nfunction objectGetOwn(obj, prop) {\n if (ObjectHasOwn(obj, prop))\n return obj[prop];\n}\n\n/**\n * Return the named options property, but only if it is an own property.\n */\nfunction optionsGetOwn(options, longOption, prop) {\n if (ObjectHasOwn(options, longOption))\n return objectGetOwn(options[longOption], prop);\n}\n\n/**\n * Determines if the argument may be used as an option value.\n * @example\n * isOptionValue('V') // returns true\n * isOptionValue('-v') // returns true (greedy)\n * isOptionValue('--foo') // returns true (greedy)\n * isOptionValue(undefined) // returns false\n */\nfunction isOptionValue(value) {\n if (value == null) return false;\n\n // Open Group Utility Conventions are that an option-argument\n // is the argument after the option, and may start with a dash.\n return true; // greedy!\n}\n\n/**\n * Detect whether there is possible confusion and user may have omitted\n * the option argument, like `--port --verbose` when `port` of type:string.\n * In strict mode we throw errors if value is option-like.\n */\nfunction isOptionLikeValue(value) {\n if (value == null) return false;\n\n return value.length > 1 && StringPrototypeCharAt(value, 0) === '-';\n}\n\n/**\n * Determines if `arg` is just a short option.\n * @example '-f'\n */\nfunction isLoneShortOption(arg) {\n return arg.length === 2 &&\n StringPrototypeCharAt(arg, 0) === '-' &&\n StringPrototypeCharAt(arg, 1) !== '-';\n}\n\n/**\n * Determines if `arg` is a lone long option.\n * @example\n * isLoneLongOption('a') // returns false\n * isLoneLongOption('-a') // returns false\n * isLoneLongOption('--foo') // returns true\n * isLoneLongOption('--foo=bar') // returns false\n */\nfunction isLoneLongOption(arg) {\n return arg.length > 2 &&\n StringPrototypeStartsWith(arg, '--') &&\n !StringPrototypeIncludes(arg, '=', 3);\n}\n\n/**\n * Determines if `arg` is a long option and value in the same argument.\n * @example\n * isLongOptionAndValue('--foo') // returns false\n * isLongOptionAndValue('--foo=bar') // returns true\n */\nfunction isLongOptionAndValue(arg) {\n return arg.length > 2 &&\n StringPrototypeStartsWith(arg, '--') &&\n StringPrototypeIncludes(arg, '=', 3);\n}\n\n/**\n * Determines if `arg` is a short option group.\n *\n * See Guideline 5 of the [Open Group Utility Conventions](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html).\n * One or more options without option-arguments, followed by at most one\n * option that takes an option-argument, should be accepted when grouped\n * behind one '-' delimiter.\n * @example\n * isShortOptionGroup('-a', {}) // returns false\n * isShortOptionGroup('-ab', {}) // returns true\n * // -fb is an option and a value, not a short option group\n * isShortOptionGroup('-fb', {\n * options: { f: { type: 'string' } }\n * }) // returns false\n * isShortOptionGroup('-bf', {\n * options: { f: { type: 'string' } }\n * }) // returns true\n * // -bfb is an edge case, return true and caller sorts it out\n * isShortOptionGroup('-bfb', {\n * options: { f: { type: 'string' } }\n * }) // returns true\n */\nfunction isShortOptionGroup(arg, options) {\n if (arg.length <= 2) return false;\n if (StringPrototypeCharAt(arg, 0) !== '-') return false;\n if (StringPrototypeCharAt(arg, 1) === '-') return false;\n\n const firstShort = StringPrototypeCharAt(arg, 1);\n const longOption = findLongOptionForShort(firstShort, options);\n return optionsGetOwn(options, longOption, 'type') !== 'string';\n}\n\n/**\n * Determine if arg is a short string option followed by its value.\n * @example\n * isShortOptionAndValue('-a', {}); // returns false\n * isShortOptionAndValue('-ab', {}); // returns false\n * isShortOptionAndValue('-fFILE', {\n * options: { foo: { short: 'f', type: 'string' }}\n * }) // returns true\n */\nfunction isShortOptionAndValue(arg, options) {\n validateObject(options, 'options');\n\n if (arg.length <= 2) return false;\n if (StringPrototypeCharAt(arg, 0) !== '-') return false;\n if (StringPrototypeCharAt(arg, 1) === '-') return false;\n\n const shortOption = StringPrototypeCharAt(arg, 1);\n const longOption = findLongOptionForShort(shortOption, options);\n return optionsGetOwn(options, longOption, 'type') === 'string';\n}\n\n/**\n * Find the long option associated with a short option. Looks for a configured\n * `short` and returns the short option itself if a long option is not found.\n * @example\n * findLongOptionForShort('a', {}) // returns 'a'\n * findLongOptionForShort('b', {\n * options: { bar: { short: 'b' } }\n * }) // returns 'bar'\n */\nfunction findLongOptionForShort(shortOption, options) {\n validateObject(options, 'options');\n const longOptionEntry = ArrayPrototypeFind(\n ObjectEntries(options),\n ({ 1: optionConfig }) => objectGetOwn(optionConfig, 'short') === shortOption,\n );\n return longOptionEntry?.[0] ?? shortOption;\n}\n\n/**\n * Check if the given option includes a default value\n * and that option has not been set by the input args.\n * @param {string} longOption - long option name e.g. 'foo'\n * @param {object} optionConfig - the option configuration properties\n * @param {object} values - option values returned in `values` by parseArgs\n */\nfunction useDefaultValueOption(longOption, optionConfig, values) {\n return objectGetOwn(optionConfig, 'default') !== undefined &&\n values[longOption] === undefined;\n}\n\nmodule.exports = {\n findLongOptionForShort,\n isLoneLongOption,\n isLoneShortOption,\n isLongOptionAndValue,\n isOptionValue,\n isOptionLikeValue,\n isShortOptionAndValue,\n isShortOptionGroup,\n useDefaultValueOption,\n objectGetOwn,\n optionsGetOwn,\n};\n";var UTIL="// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nconst {\n ArrayIsArray,\n ArrayPrototypeJoin,\n ArrayPrototypePop,\n ArrayPrototypePush,\n Date,\n DatePrototypeGetDate,\n DatePrototypeGetHours,\n DatePrototypeGetMinutes,\n DatePrototypeGetMonth,\n DatePrototypeGetSeconds,\n Error,\n ErrorCaptureStackTrace,\n FunctionPrototypeBind,\n NumberIsSafeInteger,\n ObjectDefineProperties,\n ObjectDefineProperty,\n ObjectGetOwnPropertyDescriptors,\n ObjectKeys,\n ObjectPrototypeToString,\n ObjectSetPrototypeOf,\n ObjectValues,\n ReflectApply,\n StringPrototypePadStart,\n StringPrototypeToWellFormed,\n} = primordials;\n\nconst {\n ErrnoException,\n ExceptionWithHostPort,\n codes: {\n ERR_FALSY_VALUE_REJECTION,\n ERR_INVALID_ARG_TYPE,\n ERR_OUT_OF_RANGE,\n },\n isErrorStackTraceLimitWritable,\n} = require('internal/errors');\nconst {\n format,\n formatWithOptions,\n inspect,\n stripVTControlCharacters,\n} = require('internal/util/inspect');\nconst { debuglog } = require('internal/util/debuglog');\nconst {\n validateBoolean,\n validateFunction,\n validateNumber,\n validateString,\n validateOneOf,\n validateObject,\n} = require('internal/validators');\nconst { isBuffer } = require('buffer').Buffer;\nconst {\n isReadableStream,\n isWritableStream,\n isNodeStream,\n} = require('internal/streams/utils');\nconst types = require('internal/util/types');\n\nlet utilColors;\nfunction lazyUtilColors() {\n utilColors ??= require('internal/util/colors');\n return utilColors;\n}\nconst { getOptionValue } = require('internal/options');\n\nconst binding = internalBinding('util');\n\nconst {\n deprecate,\n getLazy,\n getSystemErrorMap,\n getSystemErrorName: internalErrorName,\n getSystemErrorMessage: internalErrorMessage,\n promisify,\n defineLazyProperties,\n} = require('internal/util');\n\nlet abortController;\n\nfunction lazyAbortController() {\n abortController ??= require('internal/abort_controller');\n return abortController;\n}\n\nlet internalDeepEqual;\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is boolean}\n */\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is null}\n */\nfunction isNull(arg) {\n return arg === null;\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is (null | undefined)}\n */\nfunction isNullOrUndefined(arg) {\n return arg === null || arg === undefined;\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is number}\n */\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\n/**\n * @param {any} arg\n * @returns {arg is string}\n */\nfunction isString(arg) {\n return typeof arg === 'string';\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is symbol}\n */\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is undefined}\n */\nfunction isUndefined(arg) {\n return arg === undefined;\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {a is NonNullable<object>}\n */\nfunction isObject(arg) {\n return arg !== null && typeof arg === 'object';\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} e\n * @returns {arg is Error}\n */\nfunction isError(e) {\n return ObjectPrototypeToString(e) === '[object Error]' || e instanceof Error;\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is Function}\n */\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\n/**\n * @deprecated since v4.0.0\n * @param {any} arg\n * @returns {arg is (boolean | null | number | string | symbol | undefined)}\n */\nfunction isPrimitive(arg) {\n return arg === null ||\n (typeof arg !== 'object' && typeof arg !== 'function');\n}\n\n/**\n * @param {number} n\n * @returns {string}\n */\nfunction pad(n) {\n return StringPrototypePadStart(n.toString(), 2, '0');\n}\n\n/**\n * @param {string} [code]\n * @returns {string}\n */\nfunction escapeStyleCode(code) {\n if (code === undefined) return '';\n return `\\u001b[${code}m`;\n}\n\n/**\n * @param {string | string[]} format\n * @param {string} text\n * @param {object} [options={}]\n * @param {boolean} [options.validateStream=true] - Whether to validate the stream.\n * @param {Stream} [options.stream=process.stdout] - The stream used for validation.\n * @returns {string}\n */\nfunction styleText(format, text, { validateStream = true, stream = process.stdout } = {}) {\n validateString(text, 'text');\n validateBoolean(validateStream, 'options.validateStream');\n\n let skipColorize;\n if (validateStream) {\n if (\n !isReadableStream(stream) &&\n !isWritableStream(stream) &&\n !isNodeStream(stream)\n ) {\n throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream);\n }\n\n // If the stream is falsy or should not be colorized, set skipColorize to true\n skipColorize = !lazyUtilColors().shouldColorize(stream);\n }\n\n // If the format is not an array, convert it to an array\n const formatArray = ArrayIsArray(format) ? format : [format];\n\n let left = '';\n let right = '';\n for (const key of formatArray) {\n if (key === 'none') continue;\n const formatCodes = inspect.colors[key];\n // If the format is not a valid style, throw an error\n if (formatCodes == null) {\n validateOneOf(key, 'format', ObjectKeys(inspect.colors));\n }\n if (skipColorize) continue;\n left += escapeStyleCode(formatCodes[0]);\n right = `${escapeStyleCode(formatCodes[1])}${right}`;\n }\n\n return skipColorize ? text : `${left}${text}${right}`;\n}\n\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n/**\n * @returns {string} 26 Feb 16:19:34\n */\nfunction timestamp() {\n const d = new Date();\n const t = ArrayPrototypeJoin([\n pad(DatePrototypeGetHours(d)),\n pad(DatePrototypeGetMinutes(d)),\n pad(DatePrototypeGetSeconds(d)),\n ], ':');\n return `${DatePrototypeGetDate(d)} ${months[DatePrototypeGetMonth(d)]} ${t}`;\n}\n\nlet console;\n/**\n * Log is just a thin wrapper to console.log that prepends a timestamp\n * @deprecated since v6.0.0\n * @type {(...args: any[]) => void}\n */\nfunction log(...args) {\n console ??= require('internal/console/global');\n console.log('%s - %s', timestamp(), format(...args));\n}\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n * @param {Function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {Function} superCtor Constructor function to inherit prototype from.\n * @throws {TypeError} Will error if either constructor is null, or if\n * the super constructor lacks a prototype.\n */\nfunction inherits(ctor, superCtor) {\n\n if (ctor === undefined || ctor === null)\n throw new ERR_INVALID_ARG_TYPE('ctor', 'Function', ctor);\n\n if (superCtor === undefined || superCtor === null)\n throw new ERR_INVALID_ARG_TYPE('superCtor', 'Function', superCtor);\n\n if (superCtor.prototype === undefined) {\n throw new ERR_INVALID_ARG_TYPE('superCtor.prototype',\n 'Object', superCtor.prototype);\n }\n ObjectDefineProperty(ctor, 'super_', {\n __proto__: null,\n value: superCtor,\n writable: true,\n configurable: true,\n });\n ObjectSetPrototypeOf(ctor.prototype, superCtor.prototype);\n}\n\n/**\n * @deprecated since v6.0.0\n * @template T\n * @template S\n * @param {T} target\n * @param {S} source\n * @returns {S extends null ? T : (T & S)}\n */\nfunction _extend(target, source) {\n // Don't do anything if source isn't an object\n if (source === null || typeof source !== 'object') return target;\n\n const keys = ObjectKeys(source);\n let i = keys.length;\n while (i--) {\n target[keys[i]] = source[keys[i]];\n }\n return target;\n}\n\nconst callbackifyOnRejected = (reason, cb) => {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n reason = new ERR_FALSY_VALUE_REJECTION.HideStackFramesError(reason);\n ErrorCaptureStackTrace(reason, callbackifyOnRejected);\n }\n return cb(reason);\n};\n\n/**\n * @template {(...args: any[]) => Promise<any>} T\n * @param {T} original\n * @returns {T extends (...args: infer TArgs) => Promise<infer TReturn> ?\n * ((...params: [...TArgs, ((err: Error, ret: TReturn) => any)]) => void) :\n * never\n * }\n */\nfunction callbackify(original) {\n validateFunction(original, 'original');\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified(...args) {\n const maybeCb = ArrayPrototypePop(args);\n validateFunction(maybeCb, 'last argument');\n const cb = FunctionPrototypeBind(maybeCb, this);\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n ReflectApply(original, this, args)\n .then((ret) => process.nextTick(cb, null, ret),\n (rej) => process.nextTick(callbackifyOnRejected, rej, cb));\n }\n\n const descriptors = ObjectGetOwnPropertyDescriptors(original);\n // It is possible to manipulate a functions `length` or `name` property. This\n // guards against the manipulation.\n if (typeof descriptors.length.value === 'number') {\n descriptors.length.value++;\n }\n if (typeof descriptors.name.value === 'string') {\n descriptors.name.value += 'Callbackified';\n }\n const propertiesValues = ObjectValues(descriptors);\n for (let i = 0; i < propertiesValues.length; i++) {\n // We want to use null-prototype objects to not rely on globally mutable\n // %Object.prototype%.\n ObjectSetPrototypeOf(propertiesValues[i], null);\n }\n ObjectDefineProperties(callbackified, descriptors);\n return callbackified;\n}\n\n/**\n * @param {number} err\n * @returns {string}\n */\nfunction getSystemErrorMessage(err) {\n validateNumber(err, 'err');\n if (err >= 0 || !NumberIsSafeInteger(err)) {\n throw new ERR_OUT_OF_RANGE('err', 'a negative integer', err);\n }\n return internalErrorMessage(err);\n}\n\n/**\n * @param {number} err\n * @returns {string}\n */\nfunction getSystemErrorName(err) {\n validateNumber(err, 'err');\n if (err >= 0 || !NumberIsSafeInteger(err)) {\n throw new ERR_OUT_OF_RANGE('err', 'a negative integer', err);\n }\n return internalErrorName(err);\n}\n\nfunction _errnoException(...args) {\n if (isErrorStackTraceLimitWritable()) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 0;\n const e = new ErrnoException(...args);\n Error.stackTraceLimit = limit;\n ErrorCaptureStackTrace(e, _exceptionWithHostPort);\n return e;\n }\n return new ErrnoException(...args);\n}\n\nfunction _exceptionWithHostPort(...args) {\n if (isErrorStackTraceLimitWritable()) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 0;\n const e = new ExceptionWithHostPort(...args);\n Error.stackTraceLimit = limit;\n ErrorCaptureStackTrace(e, _exceptionWithHostPort);\n return e;\n }\n return new ExceptionWithHostPort(...args);\n}\n\n/**\n * Parses the content of a `.env` file.\n * @param {string} content\n * @returns {Record<string, string>}\n */\nfunction parseEnv(content) {\n validateString(content, 'content');\n return binding.parseEnv(content);\n}\n\nconst lazySourceMap = getLazy(() => require('internal/source_map/source_map_cache'));\n\n/**\n * @typedef {object} CallSite // The call site\n * @property {string} scriptName // The name of the resource that contains the\n * script for the function for this StackFrame\n * @property {string} functionName // The name of the function associated with this stack frame\n * @property {number} lineNumber // The number, 1-based, of the line for the associate function call\n * @property {number} columnNumber // The 1-based column offset on the line for the associated function call\n */\n\n/**\n * @param {CallSite} callSite // The call site object to reconstruct from source map\n * @returns {CallSite | undefined} // The reconstructed call site object\n */\nfunction reconstructCallSite(callSite) {\n const { scriptName, lineNumber, columnNumber } = callSite;\n const sourceMap = lazySourceMap().findSourceMap(scriptName);\n if (!sourceMap) return;\n const entry = sourceMap.findEntry(lineNumber - 1, columnNumber - 1);\n if (!entry?.originalSource) return;\n return {\n __proto__: null,\n // If the name is not found, it is an empty string to match the behavior of `util.getCallSite()`\n functionName: entry.name ?? '',\n scriptName: entry.originalSource,\n lineNumber: entry.originalLine + 1,\n column: entry.originalColumn + 1,\n columnNumber: entry.originalColumn + 1,\n };\n}\n\n/**\n *\n * The call site array to map\n * @param {CallSite[]} callSites\n * Array of objects with the reconstructed call site\n * @returns {CallSite[]}\n */\nfunction mapCallSite(callSites) {\n const result = [];\n for (let i = 0; i < callSites.length; ++i) {\n const callSite = callSites[i];\n const found = reconstructCallSite(callSite);\n ArrayPrototypePush(result, found ?? callSite);\n }\n return result;\n}\n\n/**\n * @typedef {object} CallSiteOptions // The call site options\n * @property {boolean} sourceMap // Enable source map support\n */\n\n/**\n * Returns the callSite\n * @param {number} frameCount\n * @param {CallSiteOptions} options\n * @returns {CallSite[]}\n */\nfunction getCallSites(frameCount = 10, options) {\n // If options is not provided check if frameCount is an object\n if (options === undefined) {\n if (typeof frameCount === 'object') {\n // If frameCount is an object, it is the options object\n options = frameCount;\n validateObject(options, 'options');\n if (options.sourceMap !== undefined) {\n validateBoolean(options.sourceMap, 'options.sourceMap');\n }\n frameCount = 10;\n } else {\n // If options is not provided, set it to an empty object\n options = {};\n };\n } else {\n // If options is provided, validate it\n validateObject(options, 'options');\n if (options.sourceMap !== undefined) {\n validateBoolean(options.sourceMap, 'options.sourceMap');\n }\n }\n\n // Using kDefaultMaxCallStackSizeToCapture as reference\n validateNumber(frameCount, 'frameCount', 1, 200);\n // If options.sourceMaps is true or if sourceMaps are enabled but the option.sourceMaps is not set explictly to false\n if (options.sourceMap === true || (getOptionValue('--enable-source-maps') && options.sourceMap !== false)) {\n return mapCallSite(binding.getCallSites(frameCount));\n }\n return binding.getCallSites(frameCount);\n};\n\n// Keep the `exports =` so that various functions can still be monkeypatched\nmodule.exports = {\n _errnoException,\n _exceptionWithHostPort,\n _extend: deprecate(_extend,\n 'The `util._extend` API is deprecated. Please use Object.assign() instead.',\n 'DEP0060'),\n callbackify,\n debug: debuglog,\n debuglog,\n deprecate,\n format,\n styleText,\n formatWithOptions,\n // Deprecated getCallSite.\n // This API can be removed in next semver-minor release.\n getCallSite: deprecate(getCallSites,\n 'The `util.getCallSite` API has been renamed to `util.getCallSites()`.',\n 'ExperimentalWarning'),\n getCallSites,\n getSystemErrorMap,\n getSystemErrorName,\n getSystemErrorMessage,\n inherits,\n inspect,\n isArray: deprecate(ArrayIsArray,\n 'The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.',\n 'DEP0044'),\n isBoolean: deprecate(isBoolean,\n 'The `util.isBoolean` API is deprecated. Please use `typeof arg === \"boolean\"` instead.',\n 'DEP0045'),\n isBuffer: deprecate(isBuffer,\n 'The `util.isBuffer` API is deprecated. Please use `Buffer.isBuffer()` instead.',\n 'DEP0046'),\n isDeepStrictEqual(a, b) {\n if (internalDeepEqual === undefined) {\n internalDeepEqual = require('internal/util/comparisons')\n .isDeepStrictEqual;\n }\n return internalDeepEqual(a, b);\n },\n isNull: deprecate(isNull,\n 'The `util.isNull` API is deprecated. Please use `arg === null` instead.',\n 'DEP0050'),\n isNullOrUndefined: deprecate(isNullOrUndefined,\n 'The `util.isNullOrUndefined` API is deprecated. ' +\n 'Please use `arg === null || arg === undefined` instead.',\n 'DEP0051'),\n isNumber: deprecate(isNumber,\n 'The `util.isNumber` API is deprecated. Please use `typeof arg === \"number\"` instead.',\n 'DEP0052'),\n isString: deprecate(isString,\n 'The `util.isString` API is deprecated. Please use `typeof arg === \"string\"` instead.',\n 'DEP0056'),\n isSymbol: deprecate(isSymbol,\n 'The `util.isSymbol` API is deprecated. Please use `arg === \"symbol\"` instead.',\n 'DEP0057'),\n isUndefined: deprecate(isUndefined,\n 'The `util.isUndefined` API is deprecated. Please use `arg === undefined` instead.',\n 'DEP0058'),\n isRegExp: deprecate(types.isRegExp,\n 'The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.',\n 'DEP0055'),\n isObject: deprecate(isObject,\n 'The `util.isObject` API is deprecated. ' +\n 'Please use `arg !== null && typeof arg === \"object\"` instead.',\n 'DEP0053'),\n isDate: deprecate(types.isDate,\n 'The `util.isDate` API is deprecated. Please use `arg instanceof Date` instead.',\n 'DEP0047'),\n isError: deprecate(isError,\n 'The `util.isError` API is deprecated. ' +\n 'Please use `ObjectPrototypeToString(e) === \"[object Error]\" ' +\n '|| e instanceof Error` instead.',\n 'DEP0048'),\n isFunction: deprecate(isFunction,\n 'The `util.isFunction` API is deprecated. Please use `typeof arg === \"function\"` instead.',\n 'DEP0049'),\n isPrimitive: deprecate(isPrimitive,\n 'The `util.isPrimitive` API is deprecated. ' +\n 'Please use `arg === null || ' +\n '(typeof arg !== \"object\" && typeof arg !== \"function\")` instead.',\n 'DEP0054'),\n log: deprecate(log,\n 'The `util.log API is deprecated. ' +\n 'Please use console.log() with a custom formatter or a third-party logger instead.',\n 'DEP0059'),\n promisify,\n stripVTControlCharacters,\n toUSVString(input) {\n return StringPrototypeToWellFormed(`${input}`);\n },\n get transferableAbortSignal() {\n return lazyAbortController().transferableAbortSignal;\n },\n get transferableAbortController() {\n return lazyAbortController().transferableAbortController;\n },\n get aborted() {\n return lazyAbortController().aborted;\n },\n types,\n parseEnv,\n};\n\ndefineLazyProperties(\n module.exports,\n 'internal/util/parse_args/parse_args',\n ['parseArgs'],\n);\n\ndefineLazyProperties(\n module.exports,\n 'internal/encoding',\n ['TextDecoder', 'TextEncoder'],\n);\n\ndefineLazyProperties(\n module.exports,\n 'internal/mime',\n ['MIMEType', 'MIMEParams'],\n);\n\ndefineLazyProperties(\n module.exports,\n 'internal/util/diff',\n ['diff'],\n);\n";var INTERNAL_UTIL="'use strict';\n\nconst {\n ArrayFrom,\n ArrayPrototypePush,\n ArrayPrototypeSlice,\n ArrayPrototypeSort,\n Error,\n ErrorCaptureStackTrace,\n FunctionPrototypeCall,\n NumberParseInt,\n ObjectDefineProperties,\n ObjectDefineProperty,\n ObjectFreeze,\n ObjectGetOwnPropertyDescriptor,\n ObjectGetOwnPropertyDescriptors,\n ObjectGetPrototypeOf,\n ObjectPrototypeHasOwnProperty,\n ObjectSetPrototypeOf,\n ObjectValues,\n Promise,\n ReflectApply,\n ReflectConstruct,\n RegExpPrototypeExec,\n RegExpPrototypeGetDotAll,\n RegExpPrototypeGetGlobal,\n RegExpPrototypeGetHasIndices,\n RegExpPrototypeGetIgnoreCase,\n RegExpPrototypeGetMultiline,\n RegExpPrototypeGetSource,\n RegExpPrototypeGetSticky,\n RegExpPrototypeGetUnicode,\n SafeMap,\n SafeSet,\n SafeWeakMap,\n SafeWeakRef,\n StringPrototypeIncludes,\n StringPrototypeReplace,\n StringPrototypeSlice,\n StringPrototypeToLowerCase,\n StringPrototypeToUpperCase,\n Symbol,\n SymbolFor,\n SymbolPrototypeGetDescription,\n SymbolReplace,\n SymbolSplit,\n} = primordials;\n\nconst {\n codes: {\n ERR_NO_CRYPTO,\n ERR_NO_TYPESCRIPT,\n ERR_UNKNOWN_SIGNAL,\n },\n isErrorStackTraceLimitWritable,\n overrideStackTrace,\n uvErrmapGet,\n} = require('internal/errors');\nconst { signals } = internalBinding('constants').os;\nconst {\n guessHandleType: _guessHandleType,\n defineLazyProperties,\n privateSymbols: {\n arrow_message_private_symbol,\n decorated_private_symbol,\n },\n sleep: _sleep,\n} = internalBinding('util');\nconst { isNativeError, isPromise } = internalBinding('types');\nconst { getOptionValue } = require('internal/options');\nconst assert = require('internal/assert');\nconst { encodings } = internalBinding('string_decoder');\n\nconst noCrypto = !process.versions.openssl;\nconst noTypeScript = !process.versions.amaro;\n\nconst isWindows = process.platform === 'win32';\nconst isMacOS = process.platform === 'darwin';\n\nconst experimentalWarnings = new SafeSet();\n\nconst colorRegExp = /\\u001b\\[\\d\\d?m/g; // eslint-disable-line no-control-regex\n\nlet uvBinding;\n\nfunction lazyUv() {\n uvBinding ??= internalBinding('uv');\n return uvBinding;\n}\n\nfunction removeColors(str) {\n return StringPrototypeReplace(str, colorRegExp, '');\n}\n\nfunction isError(e) {\n // An error could be an instance of Error while not being a native error\n // or could be from a different realm and not be instance of Error but still\n // be a native error.\n return isNativeError(e) || e instanceof Error;\n}\n\n// Keep a list of deprecation codes that have been warned on so we only warn on\n// each one once.\nconst codesWarned = new SafeSet();\n\nlet validateString;\n\nfunction getDeprecationWarningEmitter(\n code, msg, deprecated, useEmitSync,\n shouldEmitWarning = () => true,\n) {\n let warned = false;\n return function(arg) {\n if (!warned && shouldEmitWarning(arg)) {\n warned = true;\n if (code === 'ExperimentalWarning') {\n process.emitWarning(msg, code, deprecated);\n } else if (code !== undefined) {\n if (!codesWarned.has(code)) {\n const emitWarning = useEmitSync ?\n require('internal/process/warning').emitWarningSync :\n process.emitWarning;\n emitWarning(msg, 'DeprecationWarning', code, deprecated);\n codesWarned.add(code);\n }\n } else {\n process.emitWarning(msg, 'DeprecationWarning', deprecated);\n }\n }\n };\n}\n\nfunction isPendingDeprecation() {\n return getOptionValue('--pending-deprecation') &&\n !getOptionValue('--no-deprecation');\n}\n\n// Internal deprecator for pending --pending-deprecation. This can be invoked\n// at snapshot building time as the warning permission is only queried at\n// run time.\nfunction pendingDeprecate(fn, msg, code) {\n const emitDeprecationWarning = getDeprecationWarningEmitter(\n code, msg, deprecated, false, isPendingDeprecation,\n );\n function deprecated(...args) {\n emitDeprecationWarning();\n return ReflectApply(fn, this, args);\n }\n\n ObjectDefineProperty(deprecated, 'length', {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(fn, 'length'),\n });\n\n return deprecated;\n}\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nfunction deprecate(fn, msg, code, useEmitSync) {\n // Lazy-load to avoid a circular dependency.\n if (validateString === undefined)\n ({ validateString } = require('internal/validators'));\n\n if (code !== undefined)\n validateString(code, 'code');\n\n const emitDeprecationWarning = getDeprecationWarningEmitter(\n code, msg, deprecated, useEmitSync,\n );\n\n function deprecated(...args) {\n // TODO(joyeecheung): use getOptionValue('--no-deprecation') instead.\n if (!process.noDeprecation) {\n emitDeprecationWarning();\n }\n if (new.target) {\n return ReflectConstruct(fn, args, new.target);\n }\n return ReflectApply(fn, this, args);\n }\n\n // The wrapper will keep the same prototype as fn to maintain prototype chain\n ObjectSetPrototypeOf(deprecated, fn);\n if (fn.prototype) {\n // Setting this (rather than using Object.setPrototype, as above) ensures\n // that calling the unwrapped constructor gives an instanceof the wrapped\n // constructor.\n deprecated.prototype = fn.prototype;\n }\n\n ObjectDefineProperty(deprecated, 'length', {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(fn, 'length'),\n });\n\n return deprecated;\n}\n\nfunction decorateErrorStack(err) {\n if (!(isError(err) && err.stack) || err[decorated_private_symbol])\n return;\n\n const arrow = err[arrow_message_private_symbol];\n\n if (arrow) {\n err.stack = arrow + err.stack;\n err[decorated_private_symbol] = true;\n }\n}\n\nfunction assertCrypto() {\n if (noCrypto)\n throw new ERR_NO_CRYPTO();\n}\n\nfunction assertTypeScript() {\n if (noTypeScript)\n throw new ERR_NO_TYPESCRIPT();\n}\n\n/**\n * Move the \"slow cases\" to a separate function to make sure this function gets\n * inlined properly. That prioritizes the common case.\n * @param {unknown} enc\n * @returns {string | undefined} Returns undefined if there is no match.\n */\nfunction normalizeEncoding(enc) {\n if (enc == null || enc === 'utf8' || enc === 'utf-8') return 'utf8';\n return slowCases(enc);\n}\n\nfunction slowCases(enc) {\n switch (enc.length) {\n case 4:\n if (enc === 'UTF8') return 'utf8';\n if (enc === 'ucs2' || enc === 'UCS2') return 'utf16le';\n enc = StringPrototypeToLowerCase(enc);\n if (enc === 'utf8') return 'utf8';\n if (enc === 'ucs2') return 'utf16le';\n break;\n case 3:\n if (enc === 'hex' || enc === 'HEX' ||\n StringPrototypeToLowerCase(enc) === 'hex')\n return 'hex';\n break;\n case 5:\n if (enc === 'ascii') return 'ascii';\n if (enc === 'ucs-2') return 'utf16le';\n if (enc === 'UTF-8') return 'utf8';\n if (enc === 'ASCII') return 'ascii';\n if (enc === 'UCS-2') return 'utf16le';\n enc = StringPrototypeToLowerCase(enc);\n if (enc === 'utf-8') return 'utf8';\n if (enc === 'ascii') return 'ascii';\n if (enc === 'ucs-2') return 'utf16le';\n break;\n case 6:\n if (enc === 'base64') return 'base64';\n if (enc === 'latin1' || enc === 'binary') return 'latin1';\n if (enc === 'BASE64') return 'base64';\n if (enc === 'LATIN1' || enc === 'BINARY') return 'latin1';\n enc = StringPrototypeToLowerCase(enc);\n if (enc === 'base64') return 'base64';\n if (enc === 'latin1' || enc === 'binary') return 'latin1';\n break;\n case 7:\n if (enc === 'utf16le' || enc === 'UTF16LE' ||\n StringPrototypeToLowerCase(enc) === 'utf16le')\n return 'utf16le';\n break;\n case 8:\n if (enc === 'utf-16le' || enc === 'UTF-16LE' ||\n StringPrototypeToLowerCase(enc) === 'utf-16le')\n return 'utf16le';\n break;\n case 9:\n if (enc === 'base64url' || enc === 'BASE64URL' ||\n StringPrototypeToLowerCase(enc) === 'base64url')\n return 'base64url';\n break;\n default:\n if (enc === '') return 'utf8';\n }\n}\n\n/**\n * @param {string} feature Feature name used in the warning message\n * @param {string} messagePrefix Prefix of the warning message\n * @param {string} code See documentation of process.emitWarning\n * @param {string} ctor See documentation of process.emitWarning\n */\nfunction emitExperimentalWarning(feature, messagePrefix, code, ctor) {\n if (experimentalWarnings.has(feature)) return;\n experimentalWarnings.add(feature);\n let msg = `${feature} is an experimental feature and might change at any time`;\n if (messagePrefix) {\n msg = messagePrefix + msg;\n }\n process.emitWarning(msg, 'ExperimentalWarning', code, ctor);\n}\n\nfunction filterDuplicateStrings(items, low) {\n const map = new SafeMap();\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const key = StringPrototypeToLowerCase(item);\n if (low) {\n map.set(key, key);\n } else {\n map.set(key, item);\n }\n }\n return ArrayPrototypeSort(ArrayFrom(map.values()));\n}\n\nfunction cachedResult(fn) {\n let result;\n return () => {\n if (result === undefined)\n result = fn();\n return ArrayPrototypeSlice(result);\n };\n}\n\n// Useful for Wrapping an ES6 Class with a constructor Function that\n// does not require the new keyword. For instance:\n// class A { constructor(x) {this.x = x;}}\n// const B = createClassWrapper(A);\n// B() instanceof A // true\n// B() instanceof B // true\nfunction createClassWrapper(type) {\n function fn(...args) {\n return ReflectConstruct(type, args, new.target || type);\n }\n // Mask the wrapper function name and length values\n ObjectDefineProperties(fn, {\n name: { __proto__: null, value: type.name },\n length: { __proto__: null, value: type.length },\n });\n ObjectSetPrototypeOf(fn, type);\n fn.prototype = type.prototype;\n return fn;\n}\n\nlet signalsToNamesMapping;\nfunction getSignalsToNamesMapping() {\n if (signalsToNamesMapping !== undefined)\n return signalsToNamesMapping;\n\n signalsToNamesMapping = { __proto__: null };\n for (const key in signals) {\n signalsToNamesMapping[signals[key]] = key;\n }\n\n return signalsToNamesMapping;\n}\n\nfunction convertToValidSignal(signal) {\n if (typeof signal === 'number' && getSignalsToNamesMapping()[signal])\n return signal;\n\n if (typeof signal === 'string') {\n const signalName = signals[StringPrototypeToUpperCase(signal)];\n if (signalName) return signalName;\n }\n\n throw new ERR_UNKNOWN_SIGNAL(signal);\n}\n\nfunction getConstructorOf(obj) {\n while (obj) {\n const descriptor = ObjectGetOwnPropertyDescriptor(obj, 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n descriptor.value.name !== '') {\n return descriptor.value;\n }\n\n obj = ObjectGetPrototypeOf(obj);\n }\n\n return null;\n}\n\nlet cachedURL;\nlet cachedCWD;\n\n/**\n * Get the current working directory while accounting for the possibility that it has been deleted.\n * `process.cwd()` can fail if the parent directory is deleted while the process runs.\n * @returns {URL} The current working directory or the volume root if it cannot be determined.\n */\nfunction getCWDURL() {\n const { sep } = require('path');\n const { pathToFileURL } = require('internal/url');\n\n let cwd;\n\n try {\n // The implementation of `process.cwd()` already uses proper cache when it can.\n // It's a relatively cheap call performance-wise for the most common use case.\n cwd = process.cwd();\n } catch {\n cachedURL ??= pathToFileURL(sep);\n }\n\n if (cwd != null && cwd !== cachedCWD) {\n cachedURL = pathToFileURL(cwd + sep);\n cachedCWD = cwd;\n }\n\n return cachedURL;\n}\n\nfunction getSystemErrorMessage(err) {\n return lazyUv().getErrorMessage(err);\n}\n\nfunction getSystemErrorName(err) {\n const entry = uvErrmapGet(err);\n return entry ? entry[0] : `Unknown system error ${err}`;\n}\n\nfunction getSystemErrorMap() {\n return lazyUv().getErrorMap();\n}\n\nconst kCustomPromisifiedSymbol = SymbolFor('nodejs.util.promisify.custom');\nconst kCustomPromisifyArgsSymbol = Symbol('customPromisifyArgs');\n\nlet validateFunction;\n\nfunction promisify(original) {\n // Lazy-load to avoid a circular dependency.\n if (validateFunction === undefined)\n ({ validateFunction } = require('internal/validators'));\n\n validateFunction(original, 'original');\n\n if (original[kCustomPromisifiedSymbol]) {\n const fn = original[kCustomPromisifiedSymbol];\n\n validateFunction(fn, 'util.promisify.custom');\n\n return ObjectDefineProperty(fn, kCustomPromisifiedSymbol, {\n __proto__: null,\n value: fn, enumerable: false, writable: false, configurable: true,\n });\n }\n\n // Names to create an object from in case the callback receives multiple\n // arguments, e.g. ['bytesRead', 'buffer'] for fs.read.\n const argumentNames = original[kCustomPromisifyArgsSymbol];\n\n function fn(...args) {\n return new Promise((resolve, reject) => {\n ArrayPrototypePush(args, (err, ...values) => {\n if (err) {\n return reject(err);\n }\n if (argumentNames !== undefined && values.length > 1) {\n const obj = {};\n for (let i = 0; i < argumentNames.length; i++)\n obj[argumentNames[i]] = values[i];\n resolve(obj);\n } else {\n resolve(values[0]);\n }\n });\n if (isPromise(ReflectApply(original, this, args))) {\n process.emitWarning('Calling promisify on a function that returns a Promise is likely a mistake.',\n 'DeprecationWarning', 'DEP0174');\n }\n });\n }\n\n ObjectSetPrototypeOf(fn, ObjectGetPrototypeOf(original));\n\n ObjectDefineProperty(fn, kCustomPromisifiedSymbol, {\n __proto__: null,\n value: fn, enumerable: false, writable: false, configurable: true,\n });\n\n const descriptors = ObjectGetOwnPropertyDescriptors(original);\n const propertiesValues = ObjectValues(descriptors);\n for (let i = 0; i < propertiesValues.length; i++) {\n // We want to use null-prototype objects to not rely on globally mutable\n // %Object.prototype%.\n ObjectSetPrototypeOf(propertiesValues[i], null);\n }\n return ObjectDefineProperties(fn, descriptors);\n}\n\npromisify.custom = kCustomPromisifiedSymbol;\n\n// The built-in Array#join is slower in v8 6.0\nfunction join(output, separator) {\n let str = '';\n if (output.length !== 0) {\n const lastIndex = output.length - 1;\n for (let i = 0; i < lastIndex; i++) {\n // It is faster not to use a template string here\n str += output[i];\n str += separator;\n }\n str += output[lastIndex];\n }\n return str;\n}\n\n// As of V8 6.6, depending on the size of the array, this is anywhere\n// between 1.5-10x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nconst kNodeModulesRE = /^(?:.*)[\\\\/]node_modules[\\\\/]/;\n\nfunction isUnderNodeModules(filename) {\n return filename && (RegExpPrototypeExec(kNodeModulesRE, filename) !== null);\n}\n\nlet getStructuredStackImpl;\n\nfunction lazyGetStructuredStack() {\n if (getStructuredStackImpl === undefined) {\n // Lazy-load to avoid a circular dependency.\n const { runInNewContext } = require('vm');\n // Use `runInNewContext()` to get something tamper-proof and\n // side-effect-free. Since this is currently only used for a deprecated API\n // and module mocking, the perf implications should be okay.\n getStructuredStackImpl = runInNewContext(`(function() {\n try { Error.stackTraceLimit = Infinity; } catch {}\n return function structuredStack() {\n const e = new Error();\n overrideStackTrace.set(e, (err, trace) => trace);\n return e.stack;\n };\n })()`, { overrideStackTrace }, { filename: 'structured-stack' });\n }\n\n return getStructuredStackImpl;\n}\n\nfunction getStructuredStack() {\n const getStructuredStackImpl = lazyGetStructuredStack();\n\n return getStructuredStackImpl();\n}\n\nfunction once(callback, { preserveReturnValue = false } = kEmptyObject) {\n let called = false;\n let returnValue;\n return function(...args) {\n if (called) return returnValue;\n called = true;\n const result = ReflectApply(callback, this, args);\n returnValue = preserveReturnValue ? result : undefined;\n return result;\n };\n}\n\nlet validateUint32;\n\nfunction sleep(msec) {\n // Lazy-load to avoid a circular dependency.\n if (validateUint32 === undefined)\n ({ validateUint32 } = require('internal/validators'));\n\n validateUint32(msec, 'msec');\n _sleep(msec);\n}\n\n// https://heycam.github.io/webidl/#define-the-operations\nfunction defineOperation(target, name, method) {\n ObjectDefineProperty(target, name, {\n __proto__: null,\n writable: true,\n enumerable: true,\n configurable: true,\n value: method,\n });\n}\n\n// https://heycam.github.io/webidl/#es-interfaces\nfunction exposeInterface(target, name, interfaceObject) {\n ObjectDefineProperty(target, name, {\n __proto__: null,\n writable: true,\n enumerable: false,\n configurable: true,\n value: interfaceObject,\n });\n}\n\n// https://heycam.github.io/webidl/#es-namespaces\nfunction exposeNamespace(target, name, namespaceObject) {\n ObjectDefineProperty(target, name, {\n __proto__: null,\n writable: true,\n enumerable: false,\n configurable: true,\n value: namespaceObject,\n });\n}\n\nfunction exposeGetterAndSetter(target, name, getter, setter = undefined) {\n ObjectDefineProperty(target, name, {\n __proto__: null,\n enumerable: false,\n configurable: true,\n get: getter,\n set: setter,\n });\n}\n\nfunction defineReplaceableLazyAttribute(target, id, keys, writable = true, check) {\n let mod;\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n let value;\n let setterCalled = false;\n\n function get() {\n if (check !== undefined) {\n FunctionPrototypeCall(check, this);\n }\n if (setterCalled) {\n return value;\n }\n mod ??= require(id);\n value ??= mod[key];\n return value;\n }\n\n ObjectDefineProperty(get, 'name', {\n __proto__: null,\n value: `get ${key}`,\n });\n\n function set(val) {\n setterCalled = true;\n value = val;\n }\n ObjectDefineProperty(set, 'name', {\n __proto__: null,\n value: `set ${key}`,\n });\n\n ObjectDefineProperty(target, key, {\n __proto__: null,\n enumerable: true,\n configurable: true,\n get,\n set: writable ? set : undefined,\n });\n }\n}\n\nfunction exposeLazyInterfaces(target, id, keys) {\n defineLazyProperties(target, id, keys, false);\n}\n\nlet _DOMException;\nconst lazyDOMExceptionClass = () => {\n _DOMException ??= internalBinding('messaging').DOMException;\n return _DOMException;\n};\n\nconst lazyDOMException = (message, name) => {\n _DOMException ??= internalBinding('messaging').DOMException;\n if (isErrorStackTraceLimitWritable()) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 0;\n const ex = new _DOMException(message, name);\n Error.stackTraceLimit = limit;\n ErrorCaptureStackTrace(ex, lazyDOMException);\n return ex;\n }\n return new _DOMException(message, name);\n\n};\n\nconst kEnumerableProperty = { __proto__: null };\nkEnumerableProperty.enumerable = true;\nObjectFreeze(kEnumerableProperty);\n\nconst kEmptyObject = ObjectFreeze({ __proto__: null });\n\nfunction filterOwnProperties(source, keys) {\n const filtered = { __proto__: null };\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (ObjectPrototypeHasOwnProperty(source, key)) {\n filtered[key] = source[key];\n }\n }\n\n return filtered;\n}\n\n/**\n * Mimics `obj[key] = value` but ignoring potential prototype inheritance.\n * @param {any} obj\n * @param {string} key\n * @param {any} value\n * @returns {any}\n */\nfunction setOwnProperty(obj, key, value) {\n return ObjectDefineProperty(obj, key, {\n __proto__: null,\n configurable: true,\n enumerable: true,\n value,\n writable: true,\n });\n}\n\nlet internalGlobal;\nfunction getInternalGlobal() {\n if (internalGlobal == null) {\n // Lazy-load to avoid a circular dependency.\n const { runInNewContext } = require('vm');\n internalGlobal = runInNewContext('this', undefined, { contextName: 'internal' });\n }\n return internalGlobal;\n}\n\nfunction SideEffectFreeRegExpPrototypeExec(regex, string) {\n const { RegExp: RegExpFromAnotherRealm } = getInternalGlobal();\n return FunctionPrototypeCall(RegExpFromAnotherRealm.prototype.exec, regex, string);\n}\n\nconst crossRealmRegexes = new SafeWeakMap();\nfunction getCrossRealmRegex(regex) {\n const cached = crossRealmRegexes.get(regex);\n if (cached) return cached;\n\n let flagString = '';\n if (RegExpPrototypeGetHasIndices(regex)) flagString += 'd';\n if (RegExpPrototypeGetGlobal(regex)) flagString += 'g';\n if (RegExpPrototypeGetIgnoreCase(regex)) flagString += 'i';\n if (RegExpPrototypeGetMultiline(regex)) flagString += 'm';\n if (RegExpPrototypeGetDotAll(regex)) flagString += 's';\n if (RegExpPrototypeGetUnicode(regex)) flagString += 'u';\n if (RegExpPrototypeGetSticky(regex)) flagString += 'y';\n\n const { RegExp: RegExpFromAnotherRealm } = getInternalGlobal();\n const crossRealmRegex = new RegExpFromAnotherRealm(RegExpPrototypeGetSource(regex), flagString);\n crossRealmRegexes.set(regex, crossRealmRegex);\n return crossRealmRegex;\n}\n\nfunction SideEffectFreeRegExpPrototypeSymbolReplace(regex, string, replacement) {\n return getCrossRealmRegex(regex)[SymbolReplace](string, replacement);\n}\n\nfunction SideEffectFreeRegExpPrototypeSymbolSplit(regex, string, limit = undefined) {\n return getCrossRealmRegex(regex)[SymbolSplit](string, limit);\n}\n\n/**\n * Helper function to lazy-load an initialize-once value.\n * @template T Return value of initializer\n * @param {()=>T} initializer Initializer of the lazily loaded value.\n * @returns {()=>T}\n */\nfunction getLazy(initializer) {\n let value;\n let initialized = false;\n return function() {\n if (initialized === false) {\n value = initializer();\n initialized = true;\n }\n return value;\n };\n}\n\n// Setup user-facing NODE_V8_COVERAGE environment variable that writes\n// ScriptCoverage objects to a specified directory.\nfunction setupCoverageHooks(dir) {\n const cwd = require('internal/process/execution').tryGetCwd();\n const { resolve } = require('path');\n const coverageDirectory = resolve(cwd, dir);\n const { sourceMapCacheToObject } =\n require('internal/source_map/source_map_cache');\n\n if (process.features.inspector) {\n internalBinding('profiler').setCoverageDirectory(coverageDirectory);\n internalBinding('profiler').setSourceMapCacheGetter(sourceMapCacheToObject);\n } else {\n process.emitWarning('The inspector is disabled, ' +\n 'coverage could not be collected',\n 'Warning');\n return '';\n }\n return coverageDirectory;\n}\n\n// Returns the number of ones in the binary representation of the decimal\n// number.\nfunction countBinaryOnes(n) {\n // Count the number of bits set in parallel, which is faster than looping\n n = n - ((n >>> 1) & 0x55555555);\n n = (n & 0x33333333) + ((n >>> 2) & 0x33333333);\n return ((n + (n >>> 4) & 0xF0F0F0F) * 0x1010101) >>> 24;\n}\n\nfunction getCIDR(address, netmask, family) {\n let ones = 0;\n let split = '.';\n let range = 10;\n let groupLength = 8;\n let hasZeros = false;\n let lastPos = 0;\n\n if (family === 'IPv6') {\n split = ':';\n range = 16;\n groupLength = 16;\n }\n\n for (let i = 0; i < netmask.length; i++) {\n if (netmask[i] !== split) {\n if (i + 1 < netmask.length) {\n continue;\n }\n i++;\n }\n const part = StringPrototypeSlice(netmask, lastPos, i);\n lastPos = i + 1;\n if (part !== '') {\n if (hasZeros) {\n if (part !== '0') {\n return null;\n }\n } else {\n const binary = NumberParseInt(part, range);\n const binaryOnes = countBinaryOnes(binary);\n ones += binaryOnes;\n if (binaryOnes !== groupLength) {\n if (StringPrototypeIncludes(binary.toString(2), '01')) {\n return null;\n }\n hasZeros = true;\n }\n }\n }\n }\n\n return `${address}/${ones}`;\n}\n\nconst handleTypes = ['TCP', 'TTY', 'UDP', 'FILE', 'PIPE', 'UNKNOWN'];\nfunction guessHandleType(fd) {\n const type = _guessHandleType(fd);\n return handleTypes[type];\n}\n\nclass WeakReference {\n #weak = null;\n // eslint-disable-next-line no-unused-private-class-members\n #strong = null;\n #refCount = 0;\n constructor(object) {\n this.#weak = new SafeWeakRef(object);\n }\n\n incRef() {\n this.#refCount++;\n if (this.#refCount === 1) {\n const derefed = this.#weak.deref();\n if (derefed !== undefined) {\n this.#strong = derefed;\n }\n }\n return this.#refCount;\n }\n\n decRef() {\n this.#refCount--;\n if (this.#refCount === 0) {\n this.#strong = null;\n }\n return this.#refCount;\n }\n\n get() {\n return this.#weak.deref();\n }\n}\n\nconst encodingsMap = { __proto__: null };\nfor (let i = 0; i < encodings.length; ++i)\n encodingsMap[encodings[i]] = i;\n\n/**\n * Reassigns the .name property of a function.\n * Should be used when function can't be initially defined with desired name\n * or when desired name should include `#`, `[`, `]`, etc.\n * @param {string | symbol} name\n * @param {Function} fn\n * @param {object} [descriptor]\n * @returns {Function} the same function, renamed\n */\nfunction assignFunctionName(name, fn, descriptor = kEmptyObject) {\n if (typeof name !== 'string') {\n const symbolDescription = SymbolPrototypeGetDescription(name);\n assert(symbolDescription !== undefined, 'Attempted to name function after descriptionless Symbol');\n name = `[${symbolDescription}]`;\n }\n return ObjectDefineProperty(fn, 'name', {\n __proto__: null,\n writable: false,\n enumerable: false,\n configurable: true,\n ...ObjectGetOwnPropertyDescriptor(fn, 'name'),\n ...descriptor,\n value: name,\n });\n}\n\nmodule.exports = {\n getLazy,\n assertCrypto,\n assertTypeScript,\n assignFunctionName,\n cachedResult,\n convertToValidSignal,\n createClassWrapper,\n decorateErrorStack,\n defineOperation,\n defineLazyProperties,\n defineReplaceableLazyAttribute,\n deprecate,\n emitExperimentalWarning,\n encodingsMap,\n exposeInterface,\n exposeLazyInterfaces,\n exposeNamespace,\n exposeGetterAndSetter,\n filterDuplicateStrings,\n filterOwnProperties,\n getConstructorOf,\n getCIDR,\n getCWDURL,\n getInternalGlobal,\n getStructuredStack,\n getSystemErrorMap,\n getSystemErrorName,\n getSystemErrorMessage,\n guessHandleType,\n isError,\n isUnderNodeModules,\n isMacOS,\n isWindows,\n join,\n lazyDOMException,\n lazyDOMExceptionClass,\n normalizeEncoding,\n once,\n promisify,\n SideEffectFreeRegExpPrototypeExec,\n SideEffectFreeRegExpPrototypeSymbolReplace,\n SideEffectFreeRegExpPrototypeSymbolSplit,\n sleep,\n spliceOne,\n setupCoverageHooks,\n removeColors,\n\n // Define Symbol.dispose and Symbol.asyncDispose\n // Until these are defined by the environment.\n // TODO(MoLow): Remove this polyfill once Symbol.dispose and Symbol.asyncDispose are available in primordials.\n // eslint-disable-next-line node-core/prefer-primordials\n SymbolDispose: Symbol.dispose || SymbolFor('nodejs.dispose'),\n // eslint-disable-next-line node-core/prefer-primordials\n SymbolAsyncDispose: Symbol.asyncDispose || SymbolFor('nodejs.asyncDispose'),\n\n // Symbol used to customize promisify conversion\n customPromisifyArgs: kCustomPromisifyArgsSymbol,\n\n // Symbol used to provide a custom inspect function for an object as an\n // alternative to using 'inspect'\n customInspectSymbol: SymbolFor('nodejs.util.inspect.custom'),\n\n // Used by the buffer module to capture an internal reference to the\n // default isEncoding implementation, just in case userland overrides it.\n kIsEncodingSymbol: Symbol('kIsEncodingSymbol'),\n kVmBreakFirstLineSymbol: Symbol('kVmBreakFirstLineSymbol'),\n\n kEmptyObject,\n kEnumerableProperty,\n setOwnProperty,\n pendingDeprecate,\n WeakReference,\n isPendingDeprecation,\n getDeprecationWarningEmitter,\n};\n";var INTERNAL_UTIL_INSPECT="'use strict';\n\nconst {\n Array,\n ArrayBuffer,\n ArrayBufferPrototype,\n ArrayIsArray,\n ArrayPrototype,\n ArrayPrototypeFilter,\n ArrayPrototypeForEach,\n ArrayPrototypeIncludes,\n ArrayPrototypeIndexOf,\n ArrayPrototypeJoin,\n ArrayPrototypeMap,\n ArrayPrototypePop,\n ArrayPrototypePush,\n ArrayPrototypePushApply,\n ArrayPrototypeSlice,\n ArrayPrototypeSort,\n ArrayPrototypeSplice,\n ArrayPrototypeUnshift,\n BigIntPrototypeValueOf,\n Boolean,\n BooleanPrototype,\n BooleanPrototypeValueOf,\n DataView,\n DataViewPrototype,\n Date,\n DatePrototype,\n DatePrototypeGetTime,\n DatePrototypeToISOString,\n DatePrototypeToString,\n Error,\n ErrorPrototype,\n ErrorPrototypeToString,\n Function,\n FunctionPrototype,\n FunctionPrototypeBind,\n FunctionPrototypeCall,\n FunctionPrototypeSymbolHasInstance,\n FunctionPrototypeToString,\n JSONStringify,\n Map,\n MapPrototype,\n MapPrototypeEntries,\n MapPrototypeGetSize,\n MathFloor,\n MathMax,\n MathMin,\n MathRound,\n MathSqrt,\n MathTrunc,\n Number,\n NumberIsFinite,\n NumberIsNaN,\n NumberParseFloat,\n NumberParseInt,\n NumberPrototype,\n NumberPrototypeToString,\n NumberPrototypeValueOf,\n Object,\n ObjectAssign,\n ObjectDefineProperty,\n ObjectGetOwnPropertyDescriptor,\n ObjectGetOwnPropertyNames,\n ObjectGetOwnPropertySymbols,\n ObjectGetPrototypeOf,\n ObjectIs,\n ObjectKeys,\n ObjectPrototype,\n ObjectPrototypeHasOwnProperty,\n ObjectPrototypePropertyIsEnumerable,\n ObjectSeal,\n ObjectSetPrototypeOf,\n Promise,\n PromisePrototype,\n ReflectApply,\n ReflectOwnKeys,\n RegExp,\n RegExpPrototype,\n RegExpPrototypeExec,\n RegExpPrototypeSymbolReplace,\n RegExpPrototypeSymbolSplit,\n RegExpPrototypeToString,\n SafeMap,\n SafeSet,\n SafeStringIterator,\n Set,\n SetPrototype,\n SetPrototypeGetSize,\n SetPrototypeValues,\n String,\n StringPrototype,\n StringPrototypeCharCodeAt,\n StringPrototypeCodePointAt,\n StringPrototypeEndsWith,\n StringPrototypeIncludes,\n StringPrototypeIndexOf,\n StringPrototypeLastIndexOf,\n StringPrototypeNormalize,\n StringPrototypePadEnd,\n StringPrototypePadStart,\n StringPrototypeRepeat,\n StringPrototypeReplace,\n StringPrototypeReplaceAll,\n StringPrototypeSlice,\n StringPrototypeSplit,\n StringPrototypeStartsWith,\n StringPrototypeToLowerCase,\n StringPrototypeTrim,\n StringPrototypeValueOf,\n SymbolIterator,\n SymbolPrototypeToString,\n SymbolPrototypeValueOf,\n SymbolToPrimitive,\n SymbolToStringTag,\n TypedArray,\n TypedArrayPrototype,\n TypedArrayPrototypeGetLength,\n TypedArrayPrototypeGetSymbolToStringTag,\n Uint8Array,\n WeakMap,\n WeakMapPrototype,\n WeakSet,\n WeakSetPrototype,\n globalThis,\n uncurryThis,\n} = primordials;\n\nconst {\n constants: {\n ALL_PROPERTIES,\n ONLY_ENUMERABLE,\n kPending,\n kRejected,\n },\n getOwnNonIndexProperties,\n getPromiseDetails,\n getProxyDetails,\n previewEntries,\n getConstructorName: internalGetConstructorName,\n getExternalValue,\n} = internalBinding('util');\n\nconst {\n customInspectSymbol,\n isError,\n join,\n removeColors,\n} = require('internal/util');\n\nconst {\n isStackOverflowError,\n} = require('internal/errors');\n\nconst {\n isAsyncFunction,\n isGeneratorFunction,\n isAnyArrayBuffer,\n isArrayBuffer,\n isArgumentsObject,\n isBoxedPrimitive,\n isDataView,\n isExternal,\n isMap,\n isMapIterator,\n isModuleNamespaceObject,\n isNativeError,\n isPromise,\n isSet,\n isSetIterator,\n isWeakMap,\n isWeakSet,\n isRegExp,\n isDate,\n isTypedArray,\n isStringObject,\n isNumberObject,\n isBooleanObject,\n isBigIntObject,\n} = require('internal/util/types');\n\nconst assert = require('internal/assert');\n\nconst { BuiltinModule } = require('internal/bootstrap/realm');\nconst {\n validateObject,\n validateString,\n kValidateObjectAllowArray,\n} = require('internal/validators');\n\nlet hexSlice;\nlet internalUrl;\n\nfunction pathToFileUrlHref(filepath) {\n internalUrl ??= require('internal/url');\n return internalUrl.pathToFileURL(filepath).href;\n}\n\nfunction isURL(value) {\n internalUrl ??= require('internal/url');\n return typeof value.href === 'string' && value instanceof internalUrl.URL;\n}\n\nconst builtInObjects = new SafeSet(\n ArrayPrototypeFilter(\n ObjectGetOwnPropertyNames(globalThis),\n (e) => RegExpPrototypeExec(/^[A-Z][a-zA-Z0-9]+$/, e) !== null,\n ),\n);\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nconst isUndetectableObject = (v) => typeof v === 'undefined' && v !== undefined;\n\n// These options must stay in sync with `getUserOptions`. So if any option will\n// be added or removed, `getUserOptions` must also be updated accordingly.\nconst inspectDefaultOptions = ObjectSeal({\n showHidden: false,\n depth: 2,\n colors: false,\n customInspect: true,\n showProxy: false,\n maxArrayLength: 100,\n maxStringLength: 10000,\n breakLength: 80,\n compact: 3,\n sorted: false,\n getters: false,\n numericSeparator: false,\n});\n\nconst kObjectType = 0;\nconst kArrayType = 1;\nconst kArrayExtrasType = 2;\n\n/* eslint-disable no-control-regex */\nconst strEscapeSequencesRegExp = /[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]/;\nconst strEscapeSequencesReplacer = /[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]/g;\nconst strEscapeSequencesRegExpSingle = /[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]/;\nconst strEscapeSequencesReplacerSingle = /[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]/g;\n/* eslint-enable no-control-regex */\n\nconst keyStrRegExp = /^[a-zA-Z_][a-zA-Z_0-9]*$/;\nconst numberRegExp = /^(0|[1-9][0-9]*)$/;\n\nconst coreModuleRegExp = /^ {4}at (?:[^/\\\\(]+ \\(|)node:(.+):\\d+:\\d+\\)?$/;\nconst nodeModulesRegExp = /[/\\\\]node_modules[/\\\\](.+?)(?=[/\\\\])/g;\n\nconst classRegExp = /^(\\s+[^(]*?)\\s*{/;\n// eslint-disable-next-line node-core/no-unescaped-regexp-dot\nconst stripCommentsRegExp = /(\\/\\/.*?\\n)|(\\/\\*(.|\\n)*?\\*\\/)/g;\n\nconst kMinLineLength = 16;\n\n// Constants to map the iterator state.\nconst kWeak = 0;\nconst kIterator = 1;\nconst kMapEntries = 2;\n\n// Escaped control characters (plus the single quote and the backslash). Use\n// empty strings to fill up unused entries.\nconst meta = [\n '\\\\x00', '\\\\x01', '\\\\x02', '\\\\x03', '\\\\x04', '\\\\x05', '\\\\x06', '\\\\x07', // x07\n '\\\\b', '\\\\t', '\\\\n', '\\\\x0B', '\\\\f', '\\\\r', '\\\\x0E', '\\\\x0F', // x0F\n '\\\\x10', '\\\\x11', '\\\\x12', '\\\\x13', '\\\\x14', '\\\\x15', '\\\\x16', '\\\\x17', // x17\n '\\\\x18', '\\\\x19', '\\\\x1A', '\\\\x1B', '\\\\x1C', '\\\\x1D', '\\\\x1E', '\\\\x1F', // x1F\n '', '', '', '', '', '', '', \"\\\\'\", '', '', '', '', '', '', '', '', // x2F\n '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', // x3F\n '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', // x4F\n '', '', '', '', '', '', '', '', '', '', '', '', '\\\\\\\\', '', '', '', // x5F\n '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', // x6F\n '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\\\\x7F', // x7F\n '\\\\x80', '\\\\x81', '\\\\x82', '\\\\x83', '\\\\x84', '\\\\x85', '\\\\x86', '\\\\x87', // x87\n '\\\\x88', '\\\\x89', '\\\\x8A', '\\\\x8B', '\\\\x8C', '\\\\x8D', '\\\\x8E', '\\\\x8F', // x8F\n '\\\\x90', '\\\\x91', '\\\\x92', '\\\\x93', '\\\\x94', '\\\\x95', '\\\\x96', '\\\\x97', // x97\n '\\\\x98', '\\\\x99', '\\\\x9A', '\\\\x9B', '\\\\x9C', '\\\\x9D', '\\\\x9E', '\\\\x9F', // x9F\n];\n\n// Regex used for ansi escape code splitting\n// Ref: https://github.com/chalk/ansi-regex/blob/f338e1814144efb950276aac84135ff86b72dc8e/index.js\n// License: MIT by Sindre Sorhus <sindresorhus@gmail.com>\n// Matches all ansi escape code sequences in a string\nconst ansi = new RegExp(\n '[\\\\u001B\\\\u009B][[\\\\]()#;?]*' +\n '(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/\\\\#&.:=?%@~_]+)*' +\n '|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/\\\\#&.:=?%@~_]*)*)?' +\n '(?:\\\\u0007|\\\\u001B\\\\u005C|\\\\u009C))' +\n '|(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?' +\n '[\\\\dA-PR-TZcf-nq-uy=><~]))', 'g',\n);\n\nlet getStringWidth;\n\nfunction getUserOptions(ctx, isCrossContext) {\n const ret = {\n stylize: ctx.stylize,\n showHidden: ctx.showHidden,\n depth: ctx.depth,\n colors: ctx.colors,\n customInspect: ctx.customInspect,\n showProxy: ctx.showProxy,\n maxArrayLength: ctx.maxArrayLength,\n maxStringLength: ctx.maxStringLength,\n breakLength: ctx.breakLength,\n compact: ctx.compact,\n sorted: ctx.sorted,\n getters: ctx.getters,\n numericSeparator: ctx.numericSeparator,\n ...ctx.userOptions,\n };\n\n // Typically, the target value will be an instance of `Object`. If that is\n // *not* the case, the object may come from another vm.Context, and we want\n // to avoid passing it objects from this Context in that case, so we remove\n // the prototype from the returned object itself + the `stylize()` function,\n // and remove all other non-primitives, including non-primitive user options.\n if (isCrossContext) {\n ObjectSetPrototypeOf(ret, null);\n for (const key of ObjectKeys(ret)) {\n if ((typeof ret[key] === 'object' || typeof ret[key] === 'function') &&\n ret[key] !== null) {\n delete ret[key];\n }\n }\n ret.stylize = ObjectSetPrototypeOf((value, flavour) => {\n let stylized;\n try {\n stylized = `${ctx.stylize(value, flavour)}`;\n } catch {\n // Continue regardless of error.\n }\n\n if (typeof stylized !== 'string') return value;\n // `stylized` is a string as it should be, which is safe to pass along.\n return stylized;\n }, null);\n }\n\n return ret;\n}\n\n/**\n * Echos the value of any input. Tries to print the value out\n * in the best way possible given the different types.\n * @param {any} value The value to print out.\n * @param {object} opts Optional options object that alters the output.\n */\n/* Legacy: value, showHidden, depth, colors */\nfunction inspect(value, opts) {\n // Default options\n const ctx = {\n budget: {},\n indentationLvl: 0,\n seen: [],\n currentDepth: 0,\n stylize: stylizeNoColor,\n showHidden: inspectDefaultOptions.showHidden,\n depth: inspectDefaultOptions.depth,\n colors: inspectDefaultOptions.colors,\n customInspect: inspectDefaultOptions.customInspect,\n showProxy: inspectDefaultOptions.showProxy,\n maxArrayLength: inspectDefaultOptions.maxArrayLength,\n maxStringLength: inspectDefaultOptions.maxStringLength,\n breakLength: inspectDefaultOptions.breakLength,\n compact: inspectDefaultOptions.compact,\n sorted: inspectDefaultOptions.sorted,\n getters: inspectDefaultOptions.getters,\n numericSeparator: inspectDefaultOptions.numericSeparator,\n };\n if (arguments.length > 1) {\n // Legacy...\n if (arguments.length > 2) {\n if (arguments[2] !== undefined) {\n ctx.depth = arguments[2];\n }\n if (arguments.length > 3 && arguments[3] !== undefined) {\n ctx.colors = arguments[3];\n }\n }\n // Set user-specified options\n if (typeof opts === 'boolean') {\n ctx.showHidden = opts;\n } else if (opts) {\n const optKeys = ObjectKeys(opts);\n for (let i = 0; i < optKeys.length; ++i) {\n const key = optKeys[i];\n // TODO(BridgeAR): Find a solution what to do about stylize. Either make\n // this function public or add a new API with a similar or better\n // functionality.\n if (\n ObjectPrototypeHasOwnProperty(inspectDefaultOptions, key) ||\n key === 'stylize') {\n ctx[key] = opts[key];\n } else if (ctx.userOptions === undefined) {\n // This is required to pass through the actual user input.\n ctx.userOptions = opts;\n }\n }\n }\n }\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n if (ctx.maxArrayLength === null) ctx.maxArrayLength = Infinity;\n if (ctx.maxStringLength === null) ctx.maxStringLength = Infinity;\n return formatValue(ctx, value, 0);\n}\ninspect.custom = customInspectSymbol;\n\nObjectDefineProperty(inspect, 'defaultOptions', {\n __proto__: null,\n get() {\n return inspectDefaultOptions;\n },\n set(options) {\n validateObject(options, 'options');\n return ObjectAssign(inspectDefaultOptions, options);\n },\n});\n\n// Set Graphics Rendition https://en.wikipedia.org/wiki/ANSI_escape_code#graphics\n// Each color consists of an array with the color code as first entry and the\n// reset code as second entry.\nconst defaultFG = 39;\nconst defaultBG = 49;\ninspect.colors = {\n __proto__: null,\n reset: [0, 0],\n bold: [1, 22],\n dim: [2, 22], // Alias: faint\n italic: [3, 23],\n underline: [4, 24],\n blink: [5, 25],\n // Swap foreground and background colors\n inverse: [7, 27], // Alias: swapcolors, swapColors\n hidden: [8, 28], // Alias: conceal\n strikethrough: [9, 29], // Alias: strikeThrough, crossedout, crossedOut\n doubleunderline: [21, 24], // Alias: doubleUnderline\n black: [30, defaultFG],\n red: [31, defaultFG],\n green: [32, defaultFG],\n yellow: [33, defaultFG],\n blue: [34, defaultFG],\n magenta: [35, defaultFG],\n cyan: [36, defaultFG],\n white: [37, defaultFG],\n bgBlack: [40, defaultBG],\n bgRed: [41, defaultBG],\n bgGreen: [42, defaultBG],\n bgYellow: [43, defaultBG],\n bgBlue: [44, defaultBG],\n bgMagenta: [45, defaultBG],\n bgCyan: [46, defaultBG],\n bgWhite: [47, defaultBG],\n framed: [51, 54],\n overlined: [53, 55],\n gray: [90, defaultFG], // Alias: grey, blackBright\n redBright: [91, defaultFG],\n greenBright: [92, defaultFG],\n yellowBright: [93, defaultFG],\n blueBright: [94, defaultFG],\n magentaBright: [95, defaultFG],\n cyanBright: [96, defaultFG],\n whiteBright: [97, defaultFG],\n bgGray: [100, defaultBG], // Alias: bgGrey, bgBlackBright\n bgRedBright: [101, defaultBG],\n bgGreenBright: [102, defaultBG],\n bgYellowBright: [103, defaultBG],\n bgBlueBright: [104, defaultBG],\n bgMagentaBright: [105, defaultBG],\n bgCyanBright: [106, defaultBG],\n bgWhiteBright: [107, defaultBG],\n};\n\nfunction defineColorAlias(target, alias) {\n ObjectDefineProperty(inspect.colors, alias, {\n __proto__: null,\n get() {\n return this[target];\n },\n set(value) {\n this[target] = value;\n },\n configurable: true,\n enumerable: false,\n });\n}\n\ndefineColorAlias('gray', 'grey');\ndefineColorAlias('gray', 'blackBright');\ndefineColorAlias('bgGray', 'bgGrey');\ndefineColorAlias('bgGray', 'bgBlackBright');\ndefineColorAlias('dim', 'faint');\ndefineColorAlias('strikethrough', 'crossedout');\ndefineColorAlias('strikethrough', 'strikeThrough');\ndefineColorAlias('strikethrough', 'crossedOut');\ndefineColorAlias('hidden', 'conceal');\ndefineColorAlias('inverse', 'swapColors');\ndefineColorAlias('inverse', 'swapcolors');\ndefineColorAlias('doubleunderline', 'doubleUnderline');\n\n// TODO(BridgeAR): Add function style support for more complex styles.\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = ObjectAssign({ __proto__: null }, {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n // \"name\": intentionally not styling\n // TODO(BridgeAR): Highlight regular expressions properly.\n regexp: 'red',\n module: 'underline',\n});\n\nfunction addQuotes(str, quotes) {\n if (quotes === -1) {\n return `\"${str}\"`;\n }\n if (quotes === -2) {\n return `\\`${str}\\``;\n }\n return `'${str}'`;\n}\n\nfunction escapeFn(str) {\n const charCode = StringPrototypeCharCodeAt(str);\n return meta.length > charCode ? meta[charCode] : `\\\\u${NumberPrototypeToString(charCode, 16)}`;\n}\n\n// Escape control characters, single quotes and the backslash.\n// This is similar to JSON stringify escaping.\nfunction strEscape(str) {\n let escapeTest = strEscapeSequencesRegExp;\n let escapeReplace = strEscapeSequencesReplacer;\n let singleQuote = 39;\n\n // Check for double quotes. If not present, do not escape single quotes and\n // instead wrap the text in double quotes. If double quotes exist, check for\n // backticks. If they do not exist, use those as fallback instead of the\n // double quotes.\n if (StringPrototypeIncludes(str, \"'\")) {\n // This invalidates the charCode and therefore can not be matched for\n // anymore.\n if (!StringPrototypeIncludes(str, '\"')) {\n singleQuote = -1;\n } else if (!StringPrototypeIncludes(str, '`') &&\n !StringPrototypeIncludes(str, '${')) {\n singleQuote = -2;\n }\n if (singleQuote !== 39) {\n escapeTest = strEscapeSequencesRegExpSingle;\n escapeReplace = strEscapeSequencesReplacerSingle;\n }\n }\n\n // Some magic numbers that worked out fine while benchmarking with v8 6.0\n if (str.length < 5000 && RegExpPrototypeExec(escapeTest, str) === null)\n return addQuotes(str, singleQuote);\n if (str.length > 100) {\n str = RegExpPrototypeSymbolReplace(escapeReplace, str, escapeFn);\n return addQuotes(str, singleQuote);\n }\n\n let result = '';\n let last = 0;\n for (let i = 0; i < str.length; i++) {\n const point = StringPrototypeCharCodeAt(str, i);\n if (point === singleQuote ||\n point === 92 ||\n point < 32 ||\n (point > 126 && point < 160)) {\n if (last === i) {\n result += meta[point];\n } else {\n result += `${StringPrototypeSlice(str, last, i)}${meta[point]}`;\n }\n last = i + 1;\n } else if (point >= 0xd800 && point <= 0xdfff) {\n if (point <= 0xdbff && i + 1 < str.length) {\n const point = StringPrototypeCharCodeAt(str, i + 1);\n if (point >= 0xdc00 && point <= 0xdfff) {\n i++;\n continue;\n }\n }\n result += `${StringPrototypeSlice(str, last, i)}\\\\u${NumberPrototypeToString(point, 16)}`;\n last = i + 1;\n }\n }\n\n if (last !== str.length) {\n result += StringPrototypeSlice(str, last);\n }\n return addQuotes(result, singleQuote);\n}\n\nfunction stylizeWithColor(str, styleType) {\n const style = inspect.styles[styleType];\n if (style !== undefined) {\n const color = inspect.colors[style];\n if (color !== undefined)\n return `\\u001b[${color[0]}m${str}\\u001b[${color[1]}m`;\n }\n return str;\n}\n\nfunction stylizeNoColor(str) {\n return str;\n}\n\n// Return a new empty array to push in the results of the default formatter.\nfunction getEmptyFormatArray() {\n return [];\n}\n\nfunction isInstanceof(object, proto) {\n try {\n return object instanceof proto;\n } catch {\n return false;\n }\n}\n\n// Special-case for some builtin prototypes in case their `constructor` property has been tampered.\nconst wellKnownPrototypes = new SafeMap()\n .set(ArrayPrototype, { name: 'Array', constructor: Array })\n .set(ArrayBufferPrototype, { name: 'ArrayBuffer', constructor: ArrayBuffer })\n .set(FunctionPrototype, { name: 'Function', constructor: Function })\n .set(MapPrototype, { name: 'Map', constructor: Map })\n .set(SetPrototype, { name: 'Set', constructor: Set })\n .set(ObjectPrototype, { name: 'Object', constructor: Object })\n .set(TypedArrayPrototype, { name: 'TypedArray', constructor: TypedArray })\n .set(RegExpPrototype, { name: 'RegExp', constructor: RegExp })\n .set(DatePrototype, { name: 'Date', constructor: Date })\n .set(DataViewPrototype, { name: 'DataView', constructor: DataView })\n .set(ErrorPrototype, { name: 'Error', constructor: Error })\n .set(BooleanPrototype, { name: 'Boolean', constructor: Boolean })\n .set(NumberPrototype, { name: 'Number', constructor: Number })\n .set(StringPrototype, { name: 'String', constructor: String })\n .set(PromisePrototype, { name: 'Promise', constructor: Promise })\n .set(WeakMapPrototype, { name: 'WeakMap', constructor: WeakMap })\n .set(WeakSetPrototype, { name: 'WeakSet', constructor: WeakSet });\n\nfunction getConstructorName(obj, ctx, recurseTimes, protoProps) {\n let firstProto;\n const tmp = obj;\n while (obj || isUndetectableObject(obj)) {\n const wellKnownPrototypeNameAndConstructor = wellKnownPrototypes.get(obj);\n if (wellKnownPrototypeNameAndConstructor !== undefined) {\n const { name, constructor } = wellKnownPrototypeNameAndConstructor;\n if (FunctionPrototypeSymbolHasInstance(constructor, tmp)) {\n if (protoProps !== undefined && firstProto !== obj) {\n addPrototypeProperties(\n ctx, tmp, firstProto || tmp, recurseTimes, protoProps);\n }\n return name;\n }\n }\n const descriptor = ObjectGetOwnPropertyDescriptor(obj, 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n descriptor.value.name !== '' &&\n isInstanceof(tmp, descriptor.value)) {\n if (protoProps !== undefined &&\n (firstProto !== obj ||\n !builtInObjects.has(descriptor.value.name))) {\n addPrototypeProperties(\n ctx, tmp, firstProto || tmp, recurseTimes, protoProps);\n }\n return String(descriptor.value.name);\n }\n\n obj = ObjectGetPrototypeOf(obj);\n if (firstProto === undefined) {\n firstProto = obj;\n }\n }\n\n if (firstProto === null) {\n return null;\n }\n\n const res = internalGetConstructorName(tmp);\n\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n return `${res} <Complex prototype>`;\n }\n\n const protoConstr = getConstructorName(\n firstProto, ctx, recurseTimes + 1, protoProps);\n\n if (protoConstr === null) {\n return `${res} <${inspect(firstProto, {\n ...ctx,\n customInspect: false,\n depth: -1,\n })}>`;\n }\n\n return `${res} <${protoConstr}>`;\n}\n\n// This function has the side effect of adding prototype properties to the\n// `output` argument (which is an array). This is intended to highlight user\n// defined prototype properties.\nfunction addPrototypeProperties(ctx, main, obj, recurseTimes, output) {\n let depth = 0;\n let keys;\n let keySet;\n do {\n if (depth !== 0 || main === obj) {\n obj = ObjectGetPrototypeOf(obj);\n // Stop as soon as a null prototype is encountered.\n if (obj === null) {\n return;\n }\n // Stop as soon as a built-in object type is detected.\n const descriptor = ObjectGetOwnPropertyDescriptor(obj, 'constructor');\n if (descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n builtInObjects.has(descriptor.value.name)) {\n return;\n }\n }\n\n if (depth === 0) {\n keySet = new SafeSet();\n } else {\n ArrayPrototypeForEach(keys, (key) => keySet.add(key));\n }\n // Get all own property names and symbols.\n keys = ReflectOwnKeys(obj);\n ArrayPrototypePush(ctx.seen, main);\n for (const key of keys) {\n // Ignore the `constructor` property and keys that exist on layers above.\n if (key === 'constructor' ||\n ObjectPrototypeHasOwnProperty(main, key) ||\n (depth !== 0 && keySet.has(key))) {\n continue;\n }\n const desc = ObjectGetOwnPropertyDescriptor(obj, key);\n if (typeof desc.value === 'function') {\n continue;\n }\n const value = formatProperty(\n ctx, obj, recurseTimes, key, kObjectType, desc, main);\n if (ctx.colors) {\n // Faint!\n ArrayPrototypePush(output, `\\u001b[2m${value}\\u001b[22m`);\n } else {\n ArrayPrototypePush(output, value);\n }\n }\n ArrayPrototypePop(ctx.seen);\n // Limit the inspection to up to three prototype layers. Using `recurseTimes`\n // is not a good choice here, because it's as if the properties are declared\n // on the current object from the users perspective.\n } while (++depth !== 3);\n}\n\n/** @type {(constructor: string, tag: string, fallback: string, size?: string) => string} */\nfunction getPrefix(constructor, tag, fallback, size = '') {\n if (constructor === null) {\n if (tag !== '' && fallback !== tag) {\n return `[${fallback}${size}: null prototype] [${tag}] `;\n }\n return `[${fallback}${size}: null prototype] `;\n }\n\n if (tag !== '' && constructor !== tag) {\n return `${constructor}${size} [${tag}] `;\n }\n return `${constructor}${size} `;\n}\n\n// Look up the keys of the object.\nfunction getKeys(value, showHidden) {\n let keys;\n const symbols = ObjectGetOwnPropertySymbols(value);\n if (showHidden) {\n keys = ObjectGetOwnPropertyNames(value);\n if (symbols.length !== 0)\n ArrayPrototypePushApply(keys, symbols);\n } else {\n // This might throw if `value` is a Module Namespace Object from an\n // unevaluated module, but we don't want to perform the actual type\n // check because it's expensive.\n // TODO(devsnek): track https://github.com/tc39/ecma262/issues/1209\n // and modify this logic as needed.\n try {\n keys = ObjectKeys(value);\n } catch (err) {\n assert(isNativeError(err) && err.name === 'ReferenceError' &&\n isModuleNamespaceObject(value));\n keys = ObjectGetOwnPropertyNames(value);\n }\n if (symbols.length !== 0) {\n const filter = (key) => ObjectPrototypePropertyIsEnumerable(value, key);\n ArrayPrototypePushApply(keys, ArrayPrototypeFilter(symbols, filter));\n }\n }\n return keys;\n}\n\nfunction getCtxStyle(value, constructor, tag) {\n let fallback = '';\n if (constructor === null) {\n fallback = internalGetConstructorName(value);\n if (fallback === tag) {\n fallback = 'Object';\n }\n }\n return getPrefix(constructor, tag, fallback);\n}\n\nfunction formatProxy(ctx, proxy, recurseTimes) {\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n return ctx.stylize('Proxy [Array]', 'special');\n }\n recurseTimes += 1;\n ctx.indentationLvl += 2;\n const res = [\n formatValue(ctx, proxy[0], recurseTimes),\n formatValue(ctx, proxy[1], recurseTimes),\n ];\n ctx.indentationLvl -= 2;\n return reduceToSingleString(\n ctx, res, '', ['Proxy [', ']'], kArrayExtrasType, recurseTimes);\n}\n\n// Note: using `formatValue` directly requires the indentation level to be\n// corrected by setting `ctx.indentationLvL += diff` and then to decrease the\n// value afterwards again.\nfunction formatValue(ctx, value, recurseTimes, typedArray) {\n // Primitive types cannot have properties.\n if (typeof value !== 'object' &&\n typeof value !== 'function' &&\n !isUndetectableObject(value)) {\n return formatPrimitive(ctx.stylize, value, ctx);\n }\n if (value === null) {\n return ctx.stylize('null', 'null');\n }\n\n // Memorize the context for custom inspection on proxies.\n const context = value;\n // Always check for proxies to prevent side effects and to prevent triggering\n // any proxy handlers.\n const proxy = getProxyDetails(value, !!ctx.showProxy);\n if (proxy !== undefined) {\n if (proxy === null || proxy[0] === null) {\n return ctx.stylize('<Revoked Proxy>', 'special');\n }\n if (ctx.showProxy) {\n return formatProxy(ctx, proxy, recurseTimes);\n }\n value = proxy;\n }\n\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it.\n if (ctx.customInspect) {\n const maybeCustom = value[customInspectSymbol];\n if (typeof maybeCustom === 'function' &&\n // Filter out the util module, its inspect function is special.\n maybeCustom !== inspect &&\n // Also filter out any prototype objects using the circular check.\n ObjectGetOwnPropertyDescriptor(value, 'constructor')?.value?.prototype !== value) {\n // This makes sure the recurseTimes are reported as before while using\n // a counter internally.\n const depth = ctx.depth === null ? null : ctx.depth - recurseTimes;\n const isCrossContext =\n proxy !== undefined || !FunctionPrototypeSymbolHasInstance(Object, context);\n const ret = FunctionPrototypeCall(\n maybeCustom,\n context,\n depth,\n getUserOptions(ctx, isCrossContext),\n inspect,\n );\n // If the custom inspection method returned `this`, don't go into\n // infinite recursion.\n if (ret !== context) {\n if (typeof ret !== 'string') {\n return formatValue(ctx, ret, recurseTimes);\n }\n return StringPrototypeReplaceAll(ret, '\\n', `\\n${StringPrototypeRepeat(' ', ctx.indentationLvl)}`);\n }\n }\n }\n\n // Using an array here is actually better for the average case than using\n // a Set. `seen` will only check for the depth and will never grow too large.\n if (ctx.seen.includes(value)) {\n let index = 1;\n if (ctx.circular === undefined) {\n ctx.circular = new SafeMap();\n ctx.circular.set(value, index);\n } else {\n index = ctx.circular.get(value);\n if (index === undefined) {\n index = ctx.circular.size + 1;\n ctx.circular.set(value, index);\n }\n }\n return ctx.stylize(`[Circular *${index}]`, 'special');\n }\n\n return formatRaw(ctx, value, recurseTimes, typedArray);\n}\n\nfunction formatRaw(ctx, value, recurseTimes, typedArray) {\n let keys;\n let protoProps;\n if (ctx.showHidden && (recurseTimes <= ctx.depth || ctx.depth === null)) {\n protoProps = [];\n }\n\n const constructor = getConstructorName(value, ctx, recurseTimes, protoProps);\n // Reset the variable to check for this later on.\n if (protoProps !== undefined && protoProps.length === 0) {\n protoProps = undefined;\n }\n\n let tag = value[SymbolToStringTag];\n // Only list the tag in case it's non-enumerable / not an own property.\n // Otherwise we'd print this twice.\n if (typeof tag !== 'string' ||\n (tag !== '' &&\n (ctx.showHidden ?\n ObjectPrototypeHasOwnProperty :\n ObjectPrototypePropertyIsEnumerable)(\n value, SymbolToStringTag,\n ))) {\n tag = '';\n }\n let base = '';\n let formatter = getEmptyFormatArray;\n let braces;\n let noIterator = true;\n let i = 0;\n const filter = ctx.showHidden ? ALL_PROPERTIES : ONLY_ENUMERABLE;\n\n let extrasType = kObjectType;\n\n // Iterators and the rest are split to reduce checks.\n // We have to check all values in case the constructor is set to null.\n // Otherwise it would not possible to identify all types properly.\n if (SymbolIterator in value || constructor === null) {\n noIterator = false;\n if (ArrayIsArray(value)) {\n // Only set the constructor for non ordinary (\"Array [...]\") arrays.\n const prefix = (constructor !== 'Array' || tag !== '') ?\n getPrefix(constructor, tag, 'Array', `(${value.length})`) :\n '';\n keys = getOwnNonIndexProperties(value, filter);\n braces = [`${prefix}[`, ']'];\n if (value.length === 0 && keys.length === 0 && protoProps === undefined)\n return `${braces[0]}]`;\n extrasType = kArrayExtrasType;\n formatter = formatArray;\n } else if (isSet(value)) {\n const size = SetPrototypeGetSize(value);\n const prefix = getPrefix(constructor, tag, 'Set', `(${size})`);\n keys = getKeys(value, ctx.showHidden);\n formatter = constructor !== null ?\n FunctionPrototypeBind(formatSet, null, value) :\n FunctionPrototypeBind(formatSet, null, SetPrototypeValues(value));\n if (size === 0 && keys.length === 0 && protoProps === undefined)\n return `${prefix}{}`;\n braces = [`${prefix}{`, '}'];\n } else if (isMap(value)) {\n const size = MapPrototypeGetSize(value);\n const prefix = getPrefix(constructor, tag, 'Map', `(${size})`);\n keys = getKeys(value, ctx.showHidden);\n formatter = constructor !== null ?\n FunctionPrototypeBind(formatMap, null, value) :\n FunctionPrototypeBind(formatMap, null, MapPrototypeEntries(value));\n if (size === 0 && keys.length === 0 && protoProps === undefined)\n return `${prefix}{}`;\n braces = [`${prefix}{`, '}'];\n } else if (isTypedArray(value)) {\n keys = getOwnNonIndexProperties(value, filter);\n let bound = value;\n let fallback = '';\n if (constructor === null) {\n fallback = TypedArrayPrototypeGetSymbolToStringTag(value);\n // Reconstruct the array information.\n bound = new primordials[fallback](value);\n }\n const size = TypedArrayPrototypeGetLength(value);\n const prefix = getPrefix(constructor, tag, fallback, `(${size})`);\n braces = [`${prefix}[`, ']'];\n if (value.length === 0 && keys.length === 0 && !ctx.showHidden)\n return `${braces[0]}]`;\n // Special handle the value. The original value is required below. The\n // bound function is required to reconstruct missing information.\n formatter = FunctionPrototypeBind(formatTypedArray, null, bound, size);\n extrasType = kArrayExtrasType;\n } else if (isMapIterator(value)) {\n keys = getKeys(value, ctx.showHidden);\n braces = getIteratorBraces('Map', tag);\n // Add braces to the formatter parameters.\n formatter = FunctionPrototypeBind(formatIterator, null, braces);\n } else if (isSetIterator(value)) {\n keys = getKeys(value, ctx.showHidden);\n braces = getIteratorBraces('Set', tag);\n // Add braces to the formatter parameters.\n formatter = FunctionPrototypeBind(formatIterator, null, braces);\n } else {\n noIterator = true;\n }\n }\n if (noIterator) {\n keys = getKeys(value, ctx.showHidden);\n braces = ['{', '}'];\n if (typeof value === 'function') {\n base = getFunctionBase(ctx, value, constructor, tag);\n if (keys.length === 0 && protoProps === undefined)\n return ctx.stylize(base, 'special');\n } else if (constructor === 'Object') {\n if (isArgumentsObject(value)) {\n braces[0] = '[Arguments] {';\n } else if (tag !== '') {\n braces[0] = `${getPrefix(constructor, tag, 'Object')}{`;\n }\n if (keys.length === 0 && protoProps === undefined) {\n return `${braces[0]}}`;\n }\n } else if (isRegExp(value)) {\n // Make RegExps say that they are RegExps\n base = RegExpPrototypeToString(\n constructor !== null ? value : new RegExp(value),\n );\n const prefix = getPrefix(constructor, tag, 'RegExp');\n if (prefix !== 'RegExp ')\n base = `${prefix}${base}`;\n if ((keys.length === 0 && protoProps === undefined) ||\n (recurseTimes > ctx.depth && ctx.depth !== null)) {\n return ctx.stylize(base, 'regexp');\n }\n } else if (isDate(value)) {\n // Make dates with properties first say the date\n base = NumberIsNaN(DatePrototypeGetTime(value)) ?\n DatePrototypeToString(value) :\n DatePrototypeToISOString(value);\n const prefix = getPrefix(constructor, tag, 'Date');\n if (prefix !== 'Date ')\n base = `${prefix}${base}`;\n if (keys.length === 0 && protoProps === undefined) {\n return ctx.stylize(base, 'date');\n }\n } else if (isError(value)) {\n base = formatError(value, constructor, tag, ctx, keys);\n if (keys.length === 0 && protoProps === undefined)\n return base;\n } else if (isAnyArrayBuffer(value)) {\n // Fast path for ArrayBuffer and SharedArrayBuffer.\n // Can't do the same for DataView because it has a non-primitive\n // .buffer property that we need to recurse for.\n const arrayType = isArrayBuffer(value) ? 'ArrayBuffer' :\n 'SharedArrayBuffer';\n const prefix = getPrefix(constructor, tag, arrayType);\n if (typedArray === undefined) {\n formatter = formatArrayBuffer;\n } else if (keys.length === 0 && protoProps === undefined) {\n return prefix +\n `{ byteLength: ${formatNumber(ctx.stylize, value.byteLength, false)} }`;\n }\n braces[0] = `${prefix}{`;\n ArrayPrototypeUnshift(keys, 'byteLength');\n } else if (isDataView(value)) {\n braces[0] = `${getPrefix(constructor, tag, 'DataView')}{`;\n // .buffer goes last, it's not a primitive like the others.\n ArrayPrototypeUnshift(keys, 'byteLength', 'byteOffset', 'buffer');\n } else if (isPromise(value)) {\n braces[0] = `${getPrefix(constructor, tag, 'Promise')}{`;\n formatter = formatPromise;\n } else if (isWeakSet(value)) {\n braces[0] = `${getPrefix(constructor, tag, 'WeakSet')}{`;\n formatter = ctx.showHidden ? formatWeakSet : formatWeakCollection;\n } else if (isWeakMap(value)) {\n braces[0] = `${getPrefix(constructor, tag, 'WeakMap')}{`;\n formatter = ctx.showHidden ? formatWeakMap : formatWeakCollection;\n } else if (isModuleNamespaceObject(value)) {\n braces[0] = `${getPrefix(constructor, tag, 'Module')}{`;\n // Special handle keys for namespace objects.\n formatter = formatNamespaceObject.bind(null, keys);\n } else if (isBoxedPrimitive(value)) {\n base = getBoxedBase(value, ctx, keys, constructor, tag);\n if (keys.length === 0 && protoProps === undefined) {\n return base;\n }\n } else if (isURL(value) && !(recurseTimes > ctx.depth && ctx.depth !== null)) {\n base = value.href;\n if (keys.length === 0 && protoProps === undefined) {\n return base;\n }\n } else {\n if (keys.length === 0 && protoProps === undefined) {\n if (isExternal(value)) {\n const address = getExternalValue(value).toString(16);\n return ctx.stylize(`[External: ${address}]`, 'special');\n }\n return `${getCtxStyle(value, constructor, tag)}{}`;\n }\n braces[0] = `${getCtxStyle(value, constructor, tag)}{`;\n }\n }\n\n if (recurseTimes > ctx.depth && ctx.depth !== null) {\n let constructorName = StringPrototypeSlice(getCtxStyle(value, constructor, tag), 0, -1);\n if (constructor !== null)\n constructorName = `[${constructorName}]`;\n return ctx.stylize(constructorName, 'special');\n }\n recurseTimes += 1;\n\n ctx.seen.push(value);\n ctx.currentDepth = recurseTimes;\n let output;\n const indentationLvl = ctx.indentationLvl;\n try {\n output = formatter(ctx, value, recurseTimes);\n for (i = 0; i < keys.length; i++) {\n ArrayPrototypePush(\n output,\n formatProperty(ctx, value, recurseTimes, keys[i], extrasType),\n );\n }\n if (protoProps !== undefined) {\n ArrayPrototypePushApply(output, protoProps);\n }\n } catch (err) {\n if (!isStackOverflowError(err)) throw err;\n const constructorName = StringPrototypeSlice(getCtxStyle(value, constructor, tag), 0, -1);\n return handleMaxCallStackSize(ctx, err, constructorName, indentationLvl);\n }\n if (ctx.circular !== undefined) {\n const index = ctx.circular.get(value);\n if (index !== undefined) {\n const reference = ctx.stylize(`<ref *${index}>`, 'special');\n // Add reference always to the very beginning of the output.\n if (ctx.compact !== true) {\n base = base === '' ? reference : `${reference} ${base}`;\n } else {\n braces[0] = `${reference} ${braces[0]}`;\n }\n }\n }\n ctx.seen.pop();\n\n if (ctx.sorted) {\n const comparator = ctx.sorted === true ? undefined : ctx.sorted;\n if (extrasType === kObjectType) {\n ArrayPrototypeSort(output, comparator);\n } else if (keys.length > 1) {\n const sorted = ArrayPrototypeSort(ArrayPrototypeSlice(output, output.length - keys.length), comparator);\n ArrayPrototypeUnshift(sorted, output, output.length - keys.length, keys.length);\n ReflectApply(ArrayPrototypeSplice, null, sorted);\n }\n }\n\n const res = reduceToSingleString(\n ctx, output, base, braces, extrasType, recurseTimes, value);\n const budget = ctx.budget[ctx.indentationLvl] || 0;\n const newLength = budget + res.length;\n ctx.budget[ctx.indentationLvl] = newLength;\n // If any indentationLvl exceeds this limit, limit further inspecting to the\n // minimum. Otherwise the recursive algorithm might continue inspecting the\n // object even though the maximum string size (~2 ** 28 on 32 bit systems and\n // ~2 ** 30 on 64 bit systems) exceeded. The actual output is not limited at\n // exactly 2 ** 27 but a bit higher. This depends on the object shape.\n // This limit also makes sure that huge objects don't block the event loop\n // significantly.\n if (newLength > 2 ** 27) {\n ctx.depth = -1;\n }\n return res;\n}\n\nfunction getIteratorBraces(type, tag) {\n if (tag !== `${type} Iterator`) {\n if (tag !== '')\n tag += '] [';\n tag += `${type} Iterator`;\n }\n return [`[${tag}] {`, '}'];\n}\n\nfunction getBoxedBase(value, ctx, keys, constructor, tag) {\n let fn;\n let type;\n if (isNumberObject(value)) {\n fn = NumberPrototypeValueOf;\n type = 'Number';\n } else if (isStringObject(value)) {\n fn = StringPrototypeValueOf;\n type = 'String';\n // For boxed Strings, we have to remove the 0-n indexed entries,\n // since they just noisy up the output and are redundant\n // Make boxed primitive Strings look like such\n keys.splice(0, value.length);\n } else if (isBooleanObject(value)) {\n fn = BooleanPrototypeValueOf;\n type = 'Boolean';\n } else if (isBigIntObject(value)) {\n fn = BigIntPrototypeValueOf;\n type = 'BigInt';\n } else {\n fn = SymbolPrototypeValueOf;\n type = 'Symbol';\n }\n let base = `[${type}`;\n if (type !== constructor) {\n if (constructor === null) {\n base += ' (null prototype)';\n } else {\n base += ` (${constructor})`;\n }\n }\n base += `: ${formatPrimitive(stylizeNoColor, fn(value), ctx)}]`;\n if (tag !== '' && tag !== constructor) {\n base += ` [${tag}]`;\n }\n if (keys.length !== 0 || ctx.stylize === stylizeNoColor)\n return base;\n return ctx.stylize(base, StringPrototypeToLowerCase(type));\n}\n\nfunction getClassBase(value, constructor, tag) {\n const hasName = ObjectPrototypeHasOwnProperty(value, 'name');\n const name = (hasName && value.name) || '(anonymous)';\n let base = `class ${name}`;\n if (constructor !== 'Function' && constructor !== null) {\n base += ` [${constructor}]`;\n }\n if (tag !== '' && constructor !== tag) {\n base += ` [${tag}]`;\n }\n if (constructor !== null) {\n const superName = ObjectGetPrototypeOf(value).name;\n if (superName) {\n base += ` extends ${superName}`;\n }\n } else {\n base += ' extends [null prototype]';\n }\n return `[${base}]`;\n}\n\nfunction getFunctionBase(ctx, value, constructor, tag) {\n const stringified = FunctionPrototypeToString(value);\n if (StringPrototypeStartsWith(stringified, 'class') && stringified[stringified.length - 1] === '}') {\n const slice = StringPrototypeSlice(stringified, 5, -1);\n const bracketIndex = StringPrototypeIndexOf(slice, '{');\n if (bracketIndex !== -1 &&\n (!StringPrototypeIncludes(StringPrototypeSlice(slice, 0, bracketIndex), '(') ||\n // Slow path to guarantee that it's indeed a class.\n RegExpPrototypeExec(classRegExp, RegExpPrototypeSymbolReplace(stripCommentsRegExp, slice)) !== null)\n ) {\n return getClassBase(value, constructor, tag);\n }\n }\n let type = 'Function';\n if (isGeneratorFunction(value)) {\n type = `Generator${type}`;\n }\n if (isAsyncFunction(value)) {\n type = `Async${type}`;\n }\n let base = `[${type}`;\n if (constructor === null) {\n base += ' (null prototype)';\n }\n if (value.name === '') {\n base += ' (anonymous)';\n } else {\n base += `: ${typeof value.name === 'string' ? value.name : formatValue(ctx, value.name)}`;\n }\n base += ']';\n if (constructor !== type && constructor !== null) {\n base += ` ${constructor}`;\n }\n if (tag !== '' && constructor !== tag) {\n base += ` [${tag}]`;\n }\n return base;\n}\n\nfunction identicalSequenceRange(a, b) {\n for (let i = 0; i < a.length - 3; i++) {\n // Find the first entry of b that matches the current entry of a.\n const pos = ArrayPrototypeIndexOf(b, a[i]);\n if (pos !== -1) {\n const rest = b.length - pos;\n if (rest > 3) {\n let len = 1;\n const maxLen = MathMin(a.length - i, rest);\n // Count the number of consecutive entries.\n while (maxLen > len && a[i + len] === b[pos + len]) {\n len++;\n }\n if (len > 3) {\n return { len, offset: i };\n }\n }\n }\n }\n\n return { len: 0, offset: 0 };\n}\n\nfunction getStackString(ctx, error) {\n if (error.stack) {\n if (typeof error.stack === 'string') {\n return error.stack;\n }\n ctx.seen.push(error);\n ctx.indentationLvl += 4;\n const result = formatValue(ctx, error.stack);\n ctx.indentationLvl -= 4;\n ctx.seen.pop();\n return `${ErrorPrototypeToString(error)}\\n ${result}`;\n }\n return ErrorPrototypeToString(error);\n}\n\nfunction getStackFrames(ctx, err, stack) {\n const frames = StringPrototypeSplit(stack, '\\n');\n\n let cause;\n try {\n ({ cause } = err);\n } catch {\n // If 'cause' is a getter that throws, ignore it.\n }\n\n // Remove stack frames identical to frames in cause.\n if (cause != null && isError(cause)) {\n const causeStack = getStackString(ctx, cause);\n const causeStackStart = StringPrototypeIndexOf(causeStack, '\\n at');\n if (causeStackStart !== -1) {\n const causeFrames = StringPrototypeSplit(StringPrototypeSlice(causeStack, causeStackStart + 1), '\\n');\n const { len, offset } = identicalSequenceRange(frames, causeFrames);\n if (len > 0) {\n const skipped = len - 2;\n const msg = ` ... ${skipped} lines matching cause stack trace ...`;\n frames.splice(offset + 1, skipped, ctx.stylize(msg, 'undefined'));\n }\n }\n }\n return frames;\n}\n\n/** @type {(stack: string, constructor: string | null, name: unknown, tag: string) => string} */\nfunction improveStack(stack, constructor, name, tag) {\n // A stack trace may contain arbitrary data. Only manipulate the output\n // for \"regular errors\" (errors that \"look normal\") for now.\n let len = name.length;\n\n if (typeof name !== 'string') {\n stack = StringPrototypeReplace(\n stack,\n `${name}`,\n `${name} [${StringPrototypeSlice(getPrefix(constructor, tag, 'Error'), 0, -1)}]`,\n );\n }\n\n if (constructor === null ||\n (StringPrototypeEndsWith(name, 'Error') &&\n StringPrototypeStartsWith(stack, name) &&\n (stack.length === len || stack[len] === ':' || stack[len] === '\\n'))) {\n let fallback = 'Error';\n if (constructor === null) {\n const start = RegExpPrototypeExec(/^([A-Z][a-z_ A-Z0-9[\\]()-]+)(?::|\\n {4}at)/, stack) ||\n RegExpPrototypeExec(/^([a-z_A-Z0-9-]*Error)$/, stack);\n fallback = (start?.[1]) || '';\n len = fallback.length;\n fallback ||= 'Error';\n }\n const prefix = StringPrototypeSlice(getPrefix(constructor, tag, fallback), 0, -1);\n if (name !== prefix) {\n if (StringPrototypeIncludes(prefix, name)) {\n if (len === 0) {\n stack = `${prefix}: ${stack}`;\n } else {\n stack = `${prefix}${StringPrototypeSlice(stack, len)}`;\n }\n } else {\n stack = `${prefix} [${name}]${StringPrototypeSlice(stack, len)}`;\n }\n }\n }\n return stack;\n}\n\nfunction removeDuplicateErrorKeys(ctx, keys, err, stack) {\n if (!ctx.showHidden && keys.length !== 0) {\n for (const name of ['name', 'message', 'stack']) {\n const index = ArrayPrototypeIndexOf(keys, name);\n // Only hide the property if it's a string and if it's part of the original stack\n if (index !== -1 && (typeof err[name] !== 'string' || StringPrototypeIncludes(stack, err[name]))) {\n ArrayPrototypeSplice(keys, index, 1);\n }\n }\n }\n}\n\nfunction markNodeModules(ctx, line) {\n let tempLine = '';\n let nodeModule;\n let pos = 0;\n while ((nodeModule = nodeModulesRegExp.exec(line)) !== null) {\n // '/node_modules/'.length === 14\n tempLine += StringPrototypeSlice(line, pos, nodeModule.index + 14);\n tempLine += ctx.stylize(nodeModule[1], 'module');\n pos = nodeModule.index + nodeModule[0].length;\n }\n if (pos !== 0) {\n line = tempLine + StringPrototypeSlice(line, pos);\n }\n return line;\n}\n\nfunction markCwd(ctx, line, workingDirectory) {\n let cwdStartPos = StringPrototypeIndexOf(line, workingDirectory);\n let tempLine = '';\n let cwdLength = workingDirectory.length;\n if (cwdStartPos !== -1) {\n if (StringPrototypeSlice(line, cwdStartPos - 7, cwdStartPos) === 'file://') {\n cwdLength += 7;\n cwdStartPos -= 7;\n }\n const start = line[cwdStartPos - 1] === '(' ? cwdStartPos - 1 : cwdStartPos;\n const end = start !== cwdStartPos && StringPrototypeEndsWith(line, ')') ? -1 : line.length;\n const workingDirectoryEndPos = cwdStartPos + cwdLength + 1;\n const cwdSlice = StringPrototypeSlice(line, start, workingDirectoryEndPos);\n\n tempLine += StringPrototypeSlice(line, 0, start);\n tempLine += ctx.stylize(cwdSlice, 'undefined');\n tempLine += StringPrototypeSlice(line, workingDirectoryEndPos, end);\n if (end === -1) {\n tempLine += ctx.stylize(')', 'undefined');\n }\n } else {\n tempLine += line;\n }\n return tempLine;\n}\n\nfunction safeGetCWD() {\n let workingDirectory;\n try {\n workingDirectory = process.cwd();\n } catch {\n return;\n }\n return workingDirectory;\n}\n\nfunction formatError(err, constructor, tag, ctx, keys) {\n const name = err.name != null ? err.name : 'Error';\n let stack = getStackString(ctx, err);\n\n removeDuplicateErrorKeys(ctx, keys, err, stack);\n\n if ('cause' in err &&\n (keys.length === 0 || !ArrayPrototypeIncludes(keys, 'cause'))) {\n ArrayPrototypePush(keys, 'cause');\n }\n\n // Print errors aggregated into AggregateError\n if (ArrayIsArray(err.errors) &&\n (keys.length === 0 || !ArrayPrototypeIncludes(keys, 'errors'))) {\n ArrayPrototypePush(keys, 'errors');\n }\n\n stack = improveStack(stack, constructor, name, tag);\n\n // Ignore the error message if it's contained in the stack.\n let pos = (err.message && StringPrototypeIndexOf(stack, err.message)) || -1;\n if (pos !== -1)\n pos += err.message.length;\n // Wrap the error in brackets in case it has no stack trace.\n const stackStart = StringPrototypeIndexOf(stack, '\\n at', pos);\n if (stackStart === -1) {\n stack = `[${stack}]`;\n } else {\n let newStack = StringPrototypeSlice(stack, 0, stackStart);\n const stackFramePart = StringPrototypeSlice(stack, stackStart + 1);\n const lines = getStackFrames(ctx, err, stackFramePart);\n if (ctx.colors) {\n // Highlight userland code and node modules.\n const workingDirectory = safeGetCWD();\n let esmWorkingDirectory;\n for (let line of lines) {\n const core = RegExpPrototypeExec(coreModuleRegExp, line);\n if (core !== null && BuiltinModule.exists(core[1])) {\n newStack += `\\n${ctx.stylize(line, 'undefined')}`;\n } else {\n newStack += '\\n';\n\n line = markNodeModules(ctx, line);\n if (workingDirectory !== undefined) {\n let newLine = markCwd(ctx, line, workingDirectory);\n if (newLine === line) {\n esmWorkingDirectory ??= pathToFileUrlHref(workingDirectory);\n newLine = markCwd(ctx, line, esmWorkingDirectory);\n }\n line = newLine;\n }\n\n newStack += line;\n }\n }\n } else {\n newStack += `\\n${ArrayPrototypeJoin(lines, '\\n')}`;\n }\n stack = newStack;\n }\n // The message and the stack have to be indented as well!\n if (ctx.indentationLvl !== 0) {\n const indentation = StringPrototypeRepeat(' ', ctx.indentationLvl);\n stack = StringPrototypeReplaceAll(stack, '\\n', `\\n${indentation}`);\n }\n return stack;\n}\n\nfunction groupArrayElements(ctx, output, value) {\n let totalLength = 0;\n let maxLength = 0;\n let i = 0;\n let outputLength = output.length;\n if (ctx.maxArrayLength < output.length) {\n // This makes sure the \"... n more items\" part is not taken into account.\n outputLength--;\n }\n const separatorSpace = 2; // Add 1 for the space and 1 for the separator.\n const dataLen = new Array(outputLength);\n // Calculate the total length of all output entries and the individual max\n // entries length of all output entries. We have to remove colors first,\n // otherwise the length would not be calculated properly.\n for (; i < outputLength; i++) {\n const len = getStringWidth(output[i], ctx.colors);\n dataLen[i] = len;\n totalLength += len + separatorSpace;\n if (maxLength < len)\n maxLength = len;\n }\n // Add two to `maxLength` as we add a single whitespace character plus a comma\n // in-between two entries.\n const actualMax = maxLength + separatorSpace;\n // Check if at least three entries fit next to each other and prevent grouping\n // of arrays that contains entries of very different length (i.e., if a single\n // entry is longer than 1/5 of all other entries combined). Otherwise the\n // space in-between small entries would be enormous.\n if (actualMax * 3 + ctx.indentationLvl < ctx.breakLength &&\n (totalLength / actualMax > 5 || maxLength <= 6)) {\n\n const approxCharHeights = 2.5;\n const averageBias = MathSqrt(actualMax - totalLength / output.length);\n const biasedMax = MathMax(actualMax - 3 - averageBias, 1);\n // Dynamically check how many columns seem possible.\n const columns = MathMin(\n // Ideally a square should be drawn. We expect a character to be about 2.5\n // times as high as wide. This is the area formula to calculate a square\n // which contains n rectangles of size `actualMax * approxCharHeights`.\n // Divide that by `actualMax` to receive the correct number of columns.\n // The added bias increases the columns for short entries.\n MathRound(\n MathSqrt(\n approxCharHeights * biasedMax * outputLength,\n ) / biasedMax,\n ),\n // Do not exceed the breakLength.\n MathFloor((ctx.breakLength - ctx.indentationLvl) / actualMax),\n // Limit array grouping for small `compact` modes as the user requested\n // minimal grouping.\n ctx.compact * 4,\n // Limit the columns to a maximum of fifteen.\n 15,\n );\n // Return with the original output if no grouping should happen.\n if (columns <= 1) {\n return output;\n }\n const tmp = [];\n const maxLineLength = [];\n for (let i = 0; i < columns; i++) {\n let lineMaxLength = 0;\n for (let j = i; j < output.length; j += columns) {\n if (dataLen[j] > lineMaxLength)\n lineMaxLength = dataLen[j];\n }\n lineMaxLength += separatorSpace;\n maxLineLength[i] = lineMaxLength;\n }\n let order = StringPrototypePadStart;\n if (value !== undefined) {\n for (let i = 0; i < output.length; i++) {\n if (typeof value[i] !== 'number' && typeof value[i] !== 'bigint') {\n order = StringPrototypePadEnd;\n break;\n }\n }\n }\n // Each iteration creates a single line of grouped entries.\n for (let i = 0; i < outputLength; i += columns) {\n // The last lines may contain less entries than columns.\n const max = MathMin(i + columns, outputLength);\n let str = '';\n let j = i;\n for (; j < max - 1; j++) {\n // Calculate extra color padding in case it's active. This has to be\n // done line by line as some lines might contain more colors than\n // others.\n const padding = maxLineLength[j - i] + output[j].length - dataLen[j];\n str += order(`${output[j]}, `, padding, ' ');\n }\n if (order === StringPrototypePadStart) {\n const padding = maxLineLength[j - i] +\n output[j].length -\n dataLen[j] -\n separatorSpace;\n str += StringPrototypePadStart(output[j], padding, ' ');\n } else {\n str += output[j];\n }\n ArrayPrototypePush(tmp, str);\n }\n if (ctx.maxArrayLength < output.length) {\n ArrayPrototypePush(tmp, output[outputLength]);\n }\n output = tmp;\n }\n return output;\n}\n\nfunction handleMaxCallStackSize(ctx, err, constructorName, indentationLvl) {\n ctx.seen.pop();\n ctx.indentationLvl = indentationLvl;\n return ctx.stylize(\n `[${constructorName}: Inspection interrupted ` +\n 'prematurely. Maximum call stack size exceeded.]',\n 'special',\n );\n}\n\nfunction addNumericSeparator(integerString) {\n let result = '';\n let i = integerString.length;\n assert(i !== 0);\n const start = integerString[0] === '-' ? 1 : 0;\n for (; i >= start + 4; i -= 3) {\n result = `_${StringPrototypeSlice(integerString, i - 3, i)}${result}`;\n }\n return i === integerString.length ?\n integerString :\n `${StringPrototypeSlice(integerString, 0, i)}${result}`;\n}\n\nfunction addNumericSeparatorEnd(integerString) {\n let result = '';\n let i = 0;\n for (; i < integerString.length - 3; i += 3) {\n result += `${StringPrototypeSlice(integerString, i, i + 3)}_`;\n }\n return i === 0 ?\n integerString :\n `${result}${StringPrototypeSlice(integerString, i)}`;\n}\n\nconst remainingText = (remaining) => `... ${remaining} more item${remaining > 1 ? 's' : ''}`;\n\nfunction formatNumber(fn, number, numericSeparator) {\n if (!numericSeparator) {\n // Format -0 as '-0'. Checking `number === -0` won't distinguish 0 from -0.\n if (ObjectIs(number, -0)) {\n return fn('-0', 'number');\n }\n return fn(`${number}`, 'number');\n }\n const integer = MathTrunc(number);\n const string = String(integer);\n if (integer === number) {\n if (!NumberIsFinite(number) || StringPrototypeIncludes(string, 'e')) {\n return fn(string, 'number');\n }\n return fn(`${addNumericSeparator(string)}`, 'number');\n }\n if (NumberIsNaN(number)) {\n return fn(string, 'number');\n }\n return fn(`${\n addNumericSeparator(string)\n }.${\n addNumericSeparatorEnd(\n StringPrototypeSlice(String(number), string.length + 1),\n )\n }`, 'number');\n}\n\nfunction formatBigInt(fn, bigint, numericSeparator) {\n const string = String(bigint);\n if (!numericSeparator) {\n return fn(`${string}n`, 'bigint');\n }\n return fn(`${addNumericSeparator(string)}n`, 'bigint');\n}\n\nfunction formatPrimitive(fn, value, ctx) {\n if (typeof value === 'string') {\n let trailer = '';\n if (value.length > ctx.maxStringLength) {\n const remaining = value.length - ctx.maxStringLength;\n value = StringPrototypeSlice(value, 0, ctx.maxStringLength);\n trailer = `... ${remaining} more character${remaining > 1 ? 's' : ''}`;\n }\n if (ctx.compact !== true &&\n // We do not support handling unicode characters width with\n // the readline getStringWidth function as there are\n // performance implications.\n value.length > kMinLineLength &&\n value.length > ctx.breakLength - ctx.indentationLvl - 4) {\n return ArrayPrototypeJoin(\n ArrayPrototypeMap(\n RegExpPrototypeSymbolSplit(/(?<=\\n)/, value),\n (line) => fn(strEscape(line), 'string'),\n ),\n ` +\\n${StringPrototypeRepeat(' ', ctx.indentationLvl + 2)}`,\n ) + trailer;\n }\n return fn(strEscape(value), 'string') + trailer;\n }\n if (typeof value === 'number')\n return formatNumber(fn, value, ctx.numericSeparator);\n if (typeof value === 'bigint')\n return formatBigInt(fn, value, ctx.numericSeparator);\n if (typeof value === 'boolean')\n return fn(`${value}`, 'boolean');\n if (typeof value === 'undefined')\n return fn('undefined', 'undefined');\n // es6 symbol primitive\n return fn(SymbolPrototypeToString(value), 'symbol');\n}\n\nfunction formatNamespaceObject(keys, ctx, value, recurseTimes) {\n const output = new Array(keys.length);\n for (let i = 0; i < keys.length; i++) {\n try {\n output[i] = formatProperty(ctx, value, recurseTimes, keys[i],\n kObjectType);\n } catch (err) {\n assert(isNativeError(err) && err.name === 'ReferenceError');\n // Use the existing functionality. This makes sure the indentation and\n // line breaks are always correct. Otherwise it is very difficult to keep\n // this aligned, even though this is a hacky way of dealing with this.\n const tmp = { [keys[i]]: '' };\n output[i] = formatProperty(ctx, tmp, recurseTimes, keys[i], kObjectType);\n const pos = StringPrototypeLastIndexOf(output[i], ' ');\n // We have to find the last whitespace and have to replace that value as\n // it will be visualized as a regular string.\n output[i] = StringPrototypeSlice(output[i], 0, pos + 1) +\n ctx.stylize('<uninitialized>', 'special');\n }\n }\n // Reset the keys to an empty array. This prevents duplicated inspection.\n keys.length = 0;\n return output;\n}\n\n// The array is sparse and/or has extra keys\nfunction formatSpecialArray(ctx, value, recurseTimes, maxLength, output, i) {\n const keys = ObjectKeys(value);\n let index = i;\n for (; i < keys.length && output.length < maxLength; i++) {\n const key = keys[i];\n const tmp = +key;\n // Arrays can only have up to 2^32 - 1 entries\n if (tmp > 2 ** 32 - 2) {\n break;\n }\n if (`${index}` !== key) {\n if (RegExpPrototypeExec(numberRegExp, key) === null) {\n break;\n }\n const emptyItems = tmp - index;\n const ending = emptyItems > 1 ? 's' : '';\n const message = `<${emptyItems} empty item${ending}>`;\n ArrayPrototypePush(output, ctx.stylize(message, 'undefined'));\n index = tmp;\n if (output.length === maxLength) {\n break;\n }\n }\n ArrayPrototypePush(output, formatProperty(ctx, value, recurseTimes, key, kArrayType));\n index++;\n }\n const remaining = value.length - index;\n if (output.length !== maxLength) {\n if (remaining > 0) {\n const ending = remaining > 1 ? 's' : '';\n const message = `<${remaining} empty item${ending}>`;\n ArrayPrototypePush(output, ctx.stylize(message, 'undefined'));\n }\n } else if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n return output;\n}\n\nfunction formatArrayBuffer(ctx, value) {\n let buffer;\n try {\n buffer = new Uint8Array(value);\n } catch {\n return [ctx.stylize('(detached)', 'special')];\n }\n if (hexSlice === undefined)\n hexSlice = uncurryThis(require('buffer').Buffer.prototype.hexSlice);\n let str = StringPrototypeTrim(RegExpPrototypeSymbolReplace(\n /(.{2})/g,\n hexSlice(buffer, 0, MathMin(ctx.maxArrayLength, buffer.length)),\n '$1 ',\n ));\n const remaining = buffer.length - ctx.maxArrayLength;\n if (remaining > 0)\n str += ` ... ${remaining} more byte${remaining > 1 ? 's' : ''}`;\n return [`${ctx.stylize('[Uint8Contents]', 'special')}: <${str}>`];\n}\n\nfunction formatArray(ctx, value, recurseTimes) {\n const valLen = value.length;\n const len = MathMin(MathMax(0, ctx.maxArrayLength), valLen);\n\n const remaining = valLen - len;\n const output = [];\n for (let i = 0; i < len; i++) {\n // Special handle sparse arrays.\n if (!ObjectPrototypeHasOwnProperty(value, i)) {\n return formatSpecialArray(ctx, value, recurseTimes, len, output, i);\n }\n ArrayPrototypePush(output, formatProperty(ctx, value, recurseTimes, i, kArrayType));\n }\n if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n return output;\n}\n\nfunction formatTypedArray(value, length, ctx, ignored, recurseTimes) {\n const maxLength = MathMin(MathMax(0, ctx.maxArrayLength), length);\n const remaining = value.length - maxLength;\n const output = new Array(maxLength);\n const elementFormatter = value.length > 0 && typeof value[0] === 'number' ?\n formatNumber :\n formatBigInt;\n for (let i = 0; i < maxLength; ++i) {\n output[i] = elementFormatter(ctx.stylize, value[i], ctx.numericSeparator);\n }\n if (remaining > 0) {\n output[maxLength] = remainingText(remaining);\n }\n if (ctx.showHidden) {\n // .buffer goes last, it's not a primitive like the others.\n // All besides `BYTES_PER_ELEMENT` are actually getters.\n ctx.indentationLvl += 2;\n for (const key of [\n 'BYTES_PER_ELEMENT',\n 'length',\n 'byteLength',\n 'byteOffset',\n 'buffer',\n ]) {\n const str = formatValue(ctx, value[key], recurseTimes, true);\n ArrayPrototypePush(output, `[${key}]: ${str}`);\n }\n ctx.indentationLvl -= 2;\n }\n return output;\n}\n\nfunction formatSet(value, ctx, ignored, recurseTimes) {\n const length = value.size;\n const maxLength = MathMin(MathMax(0, ctx.maxArrayLength), length);\n const remaining = length - maxLength;\n const output = [];\n ctx.indentationLvl += 2;\n let i = 0;\n for (const v of value) {\n if (i >= maxLength) break;\n ArrayPrototypePush(output, formatValue(ctx, v, recurseTimes));\n i++;\n }\n if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n ctx.indentationLvl -= 2;\n return output;\n}\n\nfunction formatMap(value, ctx, ignored, recurseTimes) {\n const length = value.size;\n const maxLength = MathMin(MathMax(0, ctx.maxArrayLength), length);\n const remaining = length - maxLength;\n const output = [];\n ctx.indentationLvl += 2;\n let i = 0;\n for (const { 0: k, 1: v } of value) {\n if (i >= maxLength) break;\n ArrayPrototypePush(\n output,\n `${formatValue(ctx, k, recurseTimes)} => ${formatValue(ctx, v, recurseTimes)}`,\n );\n i++;\n }\n if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n ctx.indentationLvl -= 2;\n return output;\n}\n\nfunction formatSetIterInner(ctx, recurseTimes, entries, state) {\n const maxArrayLength = MathMax(ctx.maxArrayLength, 0);\n const maxLength = MathMin(maxArrayLength, entries.length);\n const output = new Array(maxLength);\n ctx.indentationLvl += 2;\n for (let i = 0; i < maxLength; i++) {\n output[i] = formatValue(ctx, entries[i], recurseTimes);\n }\n ctx.indentationLvl -= 2;\n if (state === kWeak && !ctx.sorted) {\n // Sort all entries to have a halfway reliable output (if more entries than\n // retrieved ones exist, we can not reliably return the same output) if the\n // output is not sorted anyway.\n ArrayPrototypeSort(output);\n }\n const remaining = entries.length - maxLength;\n if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n return output;\n}\n\nfunction formatMapIterInner(ctx, recurseTimes, entries, state) {\n const maxArrayLength = MathMax(ctx.maxArrayLength, 0);\n // Entries exist as [key1, val1, key2, val2, ...]\n const len = entries.length / 2;\n const remaining = len - maxArrayLength;\n const maxLength = MathMin(maxArrayLength, len);\n const output = new Array(maxLength);\n let i = 0;\n ctx.indentationLvl += 2;\n if (state === kWeak) {\n for (; i < maxLength; i++) {\n const pos = i * 2;\n output[i] =\n `${formatValue(ctx, entries[pos], recurseTimes)} => ${formatValue(ctx, entries[pos + 1], recurseTimes)}`;\n }\n // Sort all entries to have a halfway reliable output (if more entries than\n // retrieved ones exist, we can not reliably return the same output) if the\n // output is not sorted anyway.\n if (!ctx.sorted)\n ArrayPrototypeSort(output);\n } else {\n for (; i < maxLength; i++) {\n const pos = i * 2;\n const res = [\n formatValue(ctx, entries[pos], recurseTimes),\n formatValue(ctx, entries[pos + 1], recurseTimes),\n ];\n output[i] = reduceToSingleString(\n ctx, res, '', ['[', ']'], kArrayExtrasType, recurseTimes);\n }\n }\n ctx.indentationLvl -= 2;\n if (remaining > 0) {\n ArrayPrototypePush(output, remainingText(remaining));\n }\n return output;\n}\n\nfunction formatWeakCollection(ctx) {\n return [ctx.stylize('<items unknown>', 'special')];\n}\n\nfunction formatWeakSet(ctx, value, recurseTimes) {\n const entries = previewEntries(value);\n return formatSetIterInner(ctx, recurseTimes, entries, kWeak);\n}\n\nfunction formatWeakMap(ctx, value, recurseTimes) {\n const entries = previewEntries(value);\n return formatMapIterInner(ctx, recurseTimes, entries, kWeak);\n}\n\nfunction formatIterator(braces, ctx, value, recurseTimes) {\n const { 0: entries, 1: isKeyValue } = previewEntries(value, true);\n if (isKeyValue) {\n // Mark entry iterators as such.\n braces[0] = RegExpPrototypeSymbolReplace(/ Iterator] {$/, braces[0], ' Entries] {');\n return formatMapIterInner(ctx, recurseTimes, entries, kMapEntries);\n }\n\n return formatSetIterInner(ctx, recurseTimes, entries, kIterator);\n}\n\nfunction formatPromise(ctx, value, recurseTimes) {\n let output;\n const { 0: state, 1: result } = getPromiseDetails(value);\n if (state === kPending) {\n output = [ctx.stylize('<pending>', 'special')];\n } else {\n ctx.indentationLvl += 2;\n const str = formatValue(ctx, result, recurseTimes);\n ctx.indentationLvl -= 2;\n output = [\n state === kRejected ?\n `${ctx.stylize('<rejected>', 'special')} ${str}` :\n str,\n ];\n }\n return output;\n}\n\nfunction formatProperty(ctx, value, recurseTimes, key, type, desc,\n original = value) {\n let name, str;\n let extra = ' ';\n desc ||= ObjectGetOwnPropertyDescriptor(value, key) ||\n { value: value[key], enumerable: true };\n if (desc.value !== undefined) {\n const diff = (ctx.compact !== true || type !== kObjectType) ? 2 : 3;\n ctx.indentationLvl += diff;\n str = formatValue(ctx, desc.value, recurseTimes);\n if (diff === 3 && ctx.breakLength < getStringWidth(str, ctx.colors)) {\n extra = `\\n${StringPrototypeRepeat(' ', ctx.indentationLvl)}`;\n }\n ctx.indentationLvl -= diff;\n } else if (desc.get !== undefined) {\n const label = desc.set !== undefined ? 'Getter/Setter' : 'Getter';\n const s = ctx.stylize;\n const sp = 'special';\n if (ctx.getters && (ctx.getters === true ||\n (ctx.getters === 'get' && desc.set === undefined) ||\n (ctx.getters === 'set' && desc.set !== undefined))) {\n try {\n const tmp = FunctionPrototypeCall(desc.get, original);\n ctx.indentationLvl += 2;\n if (tmp === null) {\n str = `${s(`[${label}:`, sp)} ${s('null', 'null')}${s(']', sp)}`;\n } else if (typeof tmp === 'object') {\n str = `${s(`[${label}]`, sp)} ${formatValue(ctx, tmp, recurseTimes)}`;\n } else {\n const primitive = formatPrimitive(s, tmp, ctx);\n str = `${s(`[${label}:`, sp)} ${primitive}${s(']', sp)}`;\n }\n ctx.indentationLvl -= 2;\n } catch (err) {\n const message = `<Inspection threw (${err.message})>`;\n str = `${s(`[${label}:`, sp)} ${message}${s(']', sp)}`;\n }\n } else {\n str = ctx.stylize(`[${label}]`, sp);\n }\n } else if (desc.set !== undefined) {\n str = ctx.stylize('[Setter]', 'special');\n } else {\n str = ctx.stylize('undefined', 'undefined');\n }\n if (type === kArrayType) {\n return str;\n }\n if (typeof key === 'symbol') {\n const tmp = RegExpPrototypeSymbolReplace(\n strEscapeSequencesReplacer,\n SymbolPrototypeToString(key),\n escapeFn,\n );\n name = `[${ctx.stylize(tmp, 'symbol')}]`;\n } else if (key === '__proto__') {\n name = \"['__proto__']\";\n } else if (desc.enumerable === false) {\n const tmp = RegExpPrototypeSymbolReplace(\n strEscapeSequencesReplacer,\n key,\n escapeFn,\n );\n name = `[${tmp}]`;\n } else if (RegExpPrototypeExec(keyStrRegExp, key) !== null) {\n name = ctx.stylize(key, 'name');\n } else {\n name = ctx.stylize(strEscape(key), 'string');\n }\n return `${name}:${extra}${str}`;\n}\n\nfunction isBelowBreakLength(ctx, output, start, base) {\n // Each entry is separated by at least a comma. Thus, we start with a total\n // length of at least `output.length`. In addition, some cases have a\n // whitespace in-between each other that is added to the total as well.\n // TODO(BridgeAR): Add unicode support. Use the readline getStringWidth\n // function. Check the performance overhead and make it an opt-in in case it's\n // significant.\n let totalLength = output.length + start;\n if (totalLength + output.length > ctx.breakLength)\n return false;\n for (let i = 0; i < output.length; i++) {\n if (ctx.colors) {\n totalLength += removeColors(output[i]).length;\n } else {\n totalLength += output[i].length;\n }\n if (totalLength > ctx.breakLength) {\n return false;\n }\n }\n // Do not line up properties on the same line if `base` contains line breaks.\n return base === '' || !StringPrototypeIncludes(base, '\\n');\n}\n\nfunction reduceToSingleString(\n ctx, output, base, braces, extrasType, recurseTimes, value) {\n if (ctx.compact !== true) {\n if (typeof ctx.compact === 'number' && ctx.compact >= 1) {\n // Memorize the original output length. In case the output is grouped,\n // prevent lining up the entries on a single line.\n const entries = output.length;\n // Group array elements together if the array contains at least six\n // separate entries.\n if (extrasType === kArrayExtrasType && entries > 6) {\n output = groupArrayElements(ctx, output, value);\n }\n // `ctx.currentDepth` is set to the most inner depth of the currently\n // inspected object part while `recurseTimes` is the actual current depth\n // that is inspected.\n //\n // Example:\n //\n // const a = { first: [ 1, 2, 3 ], second: { inner: [ 1, 2, 3 ] } }\n //\n // The deepest depth of `a` is 2 (a.second.inner) and `a.first` has a max\n // depth of 1.\n //\n // Consolidate all entries of the local most inner depth up to\n // `ctx.compact`, as long as the properties are smaller than\n // `ctx.breakLength`.\n if (ctx.currentDepth - recurseTimes < ctx.compact &&\n entries === output.length) {\n // Line up all entries on a single line in case the entries do not\n // exceed `breakLength`. Add 10 as constant to start next to all other\n // factors that may reduce `breakLength`.\n const start = output.length + ctx.indentationLvl +\n braces[0].length + base.length + 10;\n if (isBelowBreakLength(ctx, output, start, base)) {\n const joinedOutput = join(output, ', ');\n if (!StringPrototypeIncludes(joinedOutput, '\\n')) {\n return `${base ? `${base} ` : ''}${braces[0]} ${joinedOutput}` +\n ` ${braces[1]}`;\n }\n }\n }\n }\n // Line up each entry on an individual line.\n const indentation = `\\n${StringPrototypeRepeat(' ', ctx.indentationLvl)}`;\n return `${base ? `${base} ` : ''}${braces[0]}${indentation} ` +\n `${join(output, `,${indentation} `)}${indentation}${braces[1]}`;\n }\n // Line up all entries on a single line in case the entries do not exceed\n // `breakLength`.\n if (isBelowBreakLength(ctx, output, 0, base)) {\n return `${braces[0]}${base ? ` ${base}` : ''} ${join(output, ', ')} ` +\n braces[1];\n }\n const indentation = StringPrototypeRepeat(' ', ctx.indentationLvl);\n // If the opening \"brace\" is too large, like in the case of \"Set {\",\n // we need to force the first item to be on the next line or the\n // items will not line up correctly.\n const ln = base === '' && braces[0].length === 1 ?\n ' ' : `${base ? ` ${base}` : ''}\\n${indentation} `;\n // Line up each entry on an individual line.\n return `${braces[0]}${ln}${join(output, `,\\n${indentation} `)} ${braces[1]}`;\n}\n\nfunction hasBuiltInToString(value) {\n // Prevent triggering proxy traps.\n const getFullProxy = false;\n const proxyTarget = getProxyDetails(value, getFullProxy);\n if (proxyTarget !== undefined) {\n if (proxyTarget === null) {\n return true;\n }\n value = proxyTarget;\n }\n\n let hasOwnToString = ObjectPrototypeHasOwnProperty;\n let hasOwnToPrimitive = ObjectPrototypeHasOwnProperty;\n\n // Count objects without `toString` and `Symbol.toPrimitive` function as built-in.\n if (typeof value.toString !== 'function') {\n if (typeof value[SymbolToPrimitive] !== 'function') {\n return true;\n } else if (ObjectPrototypeHasOwnProperty(value, SymbolToPrimitive)) {\n return false;\n }\n hasOwnToString = returnFalse;\n } else if (ObjectPrototypeHasOwnProperty(value, 'toString')) {\n return false;\n } else if (typeof value[SymbolToPrimitive] !== 'function') {\n hasOwnToPrimitive = returnFalse;\n } else if (ObjectPrototypeHasOwnProperty(value, SymbolToPrimitive)) {\n return false;\n }\n\n // Find the object that has the `toString` property or `Symbol.toPrimitive` property\n // as own property in the prototype chain.\n let pointer = value;\n do {\n pointer = ObjectGetPrototypeOf(pointer);\n } while (!hasOwnToString(pointer, 'toString') &&\n !hasOwnToPrimitive(pointer, SymbolToPrimitive));\n\n // Check closer if the object is a built-in.\n const descriptor = ObjectGetOwnPropertyDescriptor(pointer, 'constructor');\n return descriptor !== undefined &&\n typeof descriptor.value === 'function' &&\n builtInObjects.has(descriptor.value.name);\n}\n\nfunction returnFalse() {\n return false;\n}\n\nconst firstErrorLine = (error) => StringPrototypeSplit(error.message, '\\n', 1)[0];\nlet CIRCULAR_ERROR_MESSAGE;\nfunction tryStringify(arg) {\n try {\n return JSONStringify(arg);\n } catch (err) {\n // Populate the circular error message lazily\n if (!CIRCULAR_ERROR_MESSAGE) {\n try {\n const a = {};\n a.a = a;\n JSONStringify(a);\n } catch (circularError) {\n CIRCULAR_ERROR_MESSAGE = firstErrorLine(circularError);\n }\n }\n if (err.name === 'TypeError' &&\n firstErrorLine(err) === CIRCULAR_ERROR_MESSAGE) {\n return '[Circular]';\n }\n throw err;\n }\n}\n\nfunction format(...args) {\n return formatWithOptionsInternal(undefined, args);\n}\n\nfunction formatWithOptions(inspectOptions, ...args) {\n validateObject(inspectOptions, 'inspectOptions', kValidateObjectAllowArray);\n return formatWithOptionsInternal(inspectOptions, args);\n}\n\nfunction formatNumberNoColor(number, options) {\n return formatNumber(\n stylizeNoColor,\n number,\n options?.numericSeparator ?? inspectDefaultOptions.numericSeparator,\n );\n}\n\nfunction formatBigIntNoColor(bigint, options) {\n return formatBigInt(\n stylizeNoColor,\n bigint,\n options?.numericSeparator ?? inspectDefaultOptions.numericSeparator,\n );\n}\n\nfunction formatWithOptionsInternal(inspectOptions, args) {\n const first = args[0];\n let a = 0;\n let str = '';\n let join = '';\n\n if (typeof first === 'string') {\n if (args.length === 1) {\n return first;\n }\n let tempStr;\n let lastPos = 0;\n\n for (let i = 0; i < first.length - 1; i++) {\n if (StringPrototypeCharCodeAt(first, i) === 37) { // '%'\n const nextChar = StringPrototypeCharCodeAt(first, ++i);\n if (a + 1 !== args.length) {\n switch (nextChar) {\n case 115: { // 's'\n const tempArg = args[++a];\n if (typeof tempArg === 'number') {\n tempStr = formatNumberNoColor(tempArg, inspectOptions);\n } else if (typeof tempArg === 'bigint') {\n tempStr = formatBigIntNoColor(tempArg, inspectOptions);\n } else if (typeof tempArg !== 'object' ||\n tempArg === null ||\n !hasBuiltInToString(tempArg)) {\n tempStr = String(tempArg);\n } else {\n tempStr = inspect(tempArg, {\n ...inspectOptions,\n compact: 3,\n colors: false,\n depth: 0,\n });\n }\n break;\n }\n case 106: // 'j'\n tempStr = tryStringify(args[++a]);\n break;\n case 100: { // 'd'\n const tempNum = args[++a];\n if (typeof tempNum === 'bigint') {\n tempStr = formatBigIntNoColor(tempNum, inspectOptions);\n } else if (typeof tempNum === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumberNoColor(Number(tempNum), inspectOptions);\n }\n break;\n }\n case 79: // 'O'\n tempStr = inspect(args[++a], inspectOptions);\n break;\n case 111: // 'o'\n tempStr = inspect(args[++a], {\n ...inspectOptions,\n showHidden: true,\n showProxy: true,\n depth: 4,\n });\n break;\n case 105: { // 'i'\n const tempInteger = args[++a];\n if (typeof tempInteger === 'bigint') {\n tempStr = formatBigIntNoColor(tempInteger, inspectOptions);\n } else if (typeof tempInteger === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumberNoColor(\n NumberParseInt(tempInteger), inspectOptions);\n }\n break;\n }\n case 102: { // 'f'\n const tempFloat = args[++a];\n if (typeof tempFloat === 'symbol') {\n tempStr = 'NaN';\n } else {\n tempStr = formatNumberNoColor(\n NumberParseFloat(tempFloat), inspectOptions);\n }\n break;\n }\n case 99: // 'c'\n a += 1;\n tempStr = '';\n break;\n case 37: // '%'\n str += StringPrototypeSlice(first, lastPos, i);\n lastPos = i + 1;\n continue;\n default: // Any other character is not a correct placeholder\n continue;\n }\n if (lastPos !== i - 1) {\n str += StringPrototypeSlice(first, lastPos, i - 1);\n }\n str += tempStr;\n lastPos = i + 1;\n } else if (nextChar === 37) {\n str += StringPrototypeSlice(first, lastPos, i);\n lastPos = i + 1;\n }\n }\n }\n if (lastPos !== 0) {\n a++;\n join = ' ';\n if (lastPos < first.length) {\n str += StringPrototypeSlice(first, lastPos);\n }\n }\n }\n\n while (a < args.length) {\n const value = args[a];\n str += join;\n str += typeof value !== 'string' ? inspect(value, inspectOptions) : value;\n join = ' ';\n a++;\n }\n return str;\n}\n\nfunction isZeroWidthCodePoint(code) {\n return code <= 0x1F || // C0 control codes\n (code >= 0x7F && code <= 0x9F) || // C1 control codes\n (code >= 0x300 && code <= 0x36F) || // Combining Diacritical Marks\n (code >= 0x200B && code <= 0x200F) || // Modifying Invisible Characters\n // Combining Diacritical Marks for Symbols\n (code >= 0x20D0 && code <= 0x20FF) ||\n (code >= 0xFE00 && code <= 0xFE0F) || // Variation Selectors\n (code >= 0xFE20 && code <= 0xFE2F) || // Combining Half Marks\n (code >= 0xE0100 && code <= 0xE01EF); // Variation Selectors\n}\n\nif (internalBinding('config').hasIntl) {\n const icu = internalBinding('icu');\n // icu.getStringWidth(string, ambiguousAsFullWidth, expandEmojiSequence)\n // Defaults: ambiguousAsFullWidth = false; expandEmojiSequence = true;\n // TODO(BridgeAR): Expose the options to the user. That is probably the\n // best thing possible at the moment, since it's difficult to know what\n // the receiving end supports.\n getStringWidth = function getStringWidth(str, removeControlChars = true) {\n let width = 0;\n\n if (removeControlChars) {\n str = stripVTControlCharacters(str);\n }\n for (let i = 0; i < str.length; i++) {\n // Try to avoid calling into C++ by first handling the ASCII portion of\n // the string. If it is fully ASCII, we skip the C++ part.\n const code = str.charCodeAt(i);\n if (code >= 127) {\n width += icu.getStringWidth(StringPrototypeNormalize(StringPrototypeSlice(str, i), 'NFC'));\n break;\n }\n width += code >= 32 ? 1 : 0;\n }\n return width;\n };\n} else {\n /**\n * Returns the number of columns required to display the given string.\n */\n getStringWidth = function getStringWidth(str, removeControlChars = true) {\n let width = 0;\n\n if (removeControlChars)\n str = stripVTControlCharacters(str);\n str = StringPrototypeNormalize(str, 'NFC');\n for (const char of new SafeStringIterator(str)) {\n const code = StringPrototypeCodePointAt(char, 0);\n if (isFullWidthCodePoint(code)) {\n width += 2;\n } else if (!isZeroWidthCodePoint(code)) {\n width++;\n }\n }\n\n return width;\n };\n\n /**\n * Returns true if the character represented by a given\n * Unicode code point is full-width. Otherwise returns false.\n */\n const isFullWidthCodePoint = (code) => {\n // Code points are partially derived from:\n // https://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt\n return code >= 0x1100 && (\n code <= 0x115f || // Hangul Jamo\n code === 0x2329 || // LEFT-POINTING ANGLE BRACKET\n code === 0x232a || // RIGHT-POINTING ANGLE BRACKET\n // CJK Radicals Supplement .. Enclosed CJK Letters and Months\n (code >= 0x2e80 && code <= 0x3247 && code !== 0x303f) ||\n // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A\n (code >= 0x3250 && code <= 0x4dbf) ||\n // CJK Unified Ideographs .. Yi Radicals\n (code >= 0x4e00 && code <= 0xa4c6) ||\n // Hangul Jamo Extended-A\n (code >= 0xa960 && code <= 0xa97c) ||\n // Hangul Syllables\n (code >= 0xac00 && code <= 0xd7a3) ||\n // CJK Compatibility Ideographs\n (code >= 0xf900 && code <= 0xfaff) ||\n // Vertical Forms\n (code >= 0xfe10 && code <= 0xfe19) ||\n // CJK Compatibility Forms .. Small Form Variants\n (code >= 0xfe30 && code <= 0xfe6b) ||\n // Halfwidth and Fullwidth Forms\n (code >= 0xff01 && code <= 0xff60) ||\n (code >= 0xffe0 && code <= 0xffe6) ||\n // Kana Supplement\n (code >= 0x1b000 && code <= 0x1b001) ||\n // Enclosed Ideographic Supplement\n (code >= 0x1f200 && code <= 0x1f251) ||\n // Miscellaneous Symbols and Pictographs 0x1f300 - 0x1f5ff\n // Emoticons 0x1f600 - 0x1f64f\n (code >= 0x1f300 && code <= 0x1f64f) ||\n // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane\n (code >= 0x20000 && code <= 0x3fffd)\n );\n };\n\n}\n\n/**\n * Remove all VT control characters. Use to estimate displayed string width.\n */\nfunction stripVTControlCharacters(str) {\n validateString(str, 'str');\n\n return RegExpPrototypeSymbolReplace(ansi, str, '');\n}\n\nmodule.exports = {\n identicalSequenceRange,\n inspect,\n inspectDefaultOptions,\n format,\n formatWithOptions,\n getStringWidth,\n stripVTControlCharacters,\n isZeroWidthCodePoint,\n};\n";var INTERNAL_UTIL_COMPARISONS="'use strict';\n\nconst {\n Array,\n ArrayBuffer,\n ArrayIsArray,\n ArrayPrototypeFilter,\n ArrayPrototypePush,\n BigInt,\n BigInt64Array,\n BigIntPrototypeValueOf,\n BigUint64Array,\n Boolean,\n BooleanPrototypeValueOf,\n DataView,\n Date,\n DatePrototypeGetTime,\n Error,\n Float32Array,\n Float64Array,\n Function,\n Int16Array,\n Int32Array,\n Int8Array,\n Map,\n Number,\n NumberPrototypeValueOf,\n Object,\n ObjectGetOwnPropertyDescriptor,\n ObjectGetOwnPropertySymbols: getOwnSymbols,\n ObjectGetPrototypeOf,\n ObjectIs,\n ObjectKeys,\n ObjectPrototypeHasOwnProperty: hasOwn,\n ObjectPrototypePropertyIsEnumerable: hasEnumerable,\n ObjectPrototypeToString,\n Promise,\n RegExp,\n SafeSet,\n Set,\n String,\n StringPrototypeValueOf,\n Symbol,\n SymbolPrototypeValueOf,\n TypedArrayPrototypeGetByteLength: getByteLength,\n TypedArrayPrototypeGetSymbolToStringTag,\n Uint16Array,\n Uint32Array,\n Uint8Array,\n Uint8ClampedArray,\n WeakMap,\n WeakSet,\n globalThis: { Float16Array },\n} = primordials;\n\nconst { compare } = internalBinding('buffer');\nconst assert = require('internal/assert');\nconst { isError } = require('internal/util');\nconst { isURL } = require('internal/url');\nconst { Buffer } = require('buffer');\n\nconst wellKnownConstructors = new SafeSet()\n .add(Array)\n .add(ArrayBuffer)\n .add(BigInt)\n .add(BigInt64Array)\n .add(BigUint64Array)\n .add(Boolean)\n .add(Buffer)\n .add(DataView)\n .add(Date)\n .add(Error)\n .add(Float32Array)\n .add(Float64Array)\n .add(Function)\n .add(Int16Array)\n .add(Int32Array)\n .add(Int8Array)\n .add(Map)\n .add(Number)\n .add(Object)\n .add(Promise)\n .add(RegExp)\n .add(Set)\n .add(String)\n .add(Symbol)\n .add(Uint16Array)\n .add(Uint32Array)\n .add(Uint8Array)\n .add(Uint8ClampedArray)\n .add(WeakMap)\n .add(WeakSet);\n\nif (Float16Array) { // TODO(BridgeAR): Remove when regularly supported\n wellKnownConstructors.add(Float16Array);\n}\n\nconst types = require('internal/util/types');\nconst {\n isAnyArrayBuffer,\n isArrayBufferView,\n isDate,\n isMap,\n isRegExp,\n isSet,\n isNativeError,\n isBoxedPrimitive,\n isNumberObject,\n isStringObject,\n isBooleanObject,\n isBigIntObject,\n isSymbolObject,\n isFloat16Array,\n isFloat32Array,\n isFloat64Array,\n isKeyObject,\n isCryptoKey,\n isWeakMap,\n isWeakSet,\n} = types;\nconst {\n constants: {\n ONLY_ENUMERABLE,\n SKIP_SYMBOLS,\n },\n getOwnNonIndexProperties,\n} = internalBinding('util');\n\nconst kStrict = 1;\nconst kLoose = 0;\nconst kPartial = 2;\n\nconst kNoIterator = 0;\nconst kIsArray = 1;\nconst kIsSet = 2;\nconst kIsMap = 3;\n\nlet kKeyObject;\n\n// Check if they have the same source and flags\nfunction areSimilarRegExps(a, b) {\n return a.source === b.source &&\n a.flags === b.flags &&\n a.lastIndex === b.lastIndex;\n}\n\nfunction isPartialUint8Array(a, b) {\n const lenA = getByteLength(a);\n const lenB = getByteLength(b);\n if (lenA < lenB) {\n return false;\n }\n let offsetA = 0;\n for (let offsetB = 0; offsetB < lenB; offsetB++) {\n while (!ObjectIs(a[offsetA], b[offsetB])) {\n offsetA++;\n if (offsetA > lenA - lenB + offsetB) {\n return false;\n }\n }\n offsetA++;\n }\n return true;\n}\n\nfunction isPartialArrayBufferView(a, b) {\n if (a.byteLength < b.byteLength) {\n return false;\n }\n return isPartialUint8Array(\n new Uint8Array(a.buffer, a.byteOffset, a.byteLength),\n new Uint8Array(b.buffer, b.byteOffset, b.byteLength),\n );\n}\n\nfunction areSimilarFloatArrays(a, b) {\n const len = getByteLength(a);\n if (len !== getByteLength(b)) {\n return false;\n }\n for (let offset = 0; offset < len; offset++) {\n if (a[offset] !== b[offset]) {\n return false;\n }\n }\n return true;\n}\n\nfunction areSimilarTypedArrays(a, b) {\n if (a.byteLength !== b.byteLength) {\n return false;\n }\n return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength),\n new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0;\n}\n\nfunction areEqualArrayBuffers(buf1, buf2) {\n return buf1.byteLength === buf2.byteLength &&\n compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0;\n}\n\nfunction isEqualBoxedPrimitive(val1, val2) {\n if (isNumberObject(val1)) {\n return isNumberObject(val2) &&\n ObjectIs(NumberPrototypeValueOf(val1),\n NumberPrototypeValueOf(val2));\n }\n if (isStringObject(val1)) {\n return isStringObject(val2) &&\n StringPrototypeValueOf(val1) === StringPrototypeValueOf(val2);\n }\n if (isBooleanObject(val1)) {\n return isBooleanObject(val2) &&\n BooleanPrototypeValueOf(val1) === BooleanPrototypeValueOf(val2);\n }\n if (isBigIntObject(val1)) {\n return isBigIntObject(val2) &&\n BigIntPrototypeValueOf(val1) === BigIntPrototypeValueOf(val2);\n }\n if (isSymbolObject(val1)) {\n return isSymbolObject(val2) &&\n SymbolPrototypeValueOf(val1) === SymbolPrototypeValueOf(val2);\n }\n /* c8 ignore next */\n assert.fail(`Unknown boxed type ${val1}`);\n}\n\nfunction isEnumerableOrIdentical(val1, val2, prop, mode, memos, method) {\n return hasEnumerable(val2, prop) || // This is handled by Object.keys()\n (mode === kPartial && (val2[prop] === undefined || (prop === 'message' && val2[prop] === ''))) ||\n innerDeepEqual(val1[prop], val2[prop], mode, memos);\n}\n\nfunction innerDeepEqual(val1, val2, mode, memos) {\n // All identical values are equivalent, as determined by ===.\n if (val1 === val2) {\n return val1 !== 0 || ObjectIs(val1, val2) || mode === kLoose;\n }\n\n // Check more closely if val1 and val2 are equal.\n if (mode !== kLoose) {\n if (typeof val1 === 'number') {\n // Check for NaN\n // eslint-disable-next-line no-self-compare\n return val1 !== val1 && val2 !== val2;\n }\n if (typeof val2 !== 'object' ||\n typeof val1 !== 'object' ||\n val1 === null ||\n val2 === null) {\n return false;\n }\n } else {\n if (val1 === null || typeof val1 !== 'object') {\n return (val2 === null || typeof val2 !== 'object') &&\n // Check for NaN\n // eslint-disable-next-line eqeqeq, no-self-compare\n (val1 == val2 || (val1 !== val1 && val2 !== val2));\n }\n if (val2 === null || typeof val2 !== 'object') {\n return false;\n }\n }\n return objectComparisonStart(val1, val2, mode, memos);\n}\n\nfunction objectComparisonStart(val1, val2, mode, memos) {\n if (mode === kStrict) {\n if (wellKnownConstructors.has(val1.constructor) ||\n (val1.constructor !== undefined && !hasOwn(val1, 'constructor'))) {\n if (val1.constructor !== val2.constructor) {\n return false;\n }\n } else if (ObjectGetPrototypeOf(val1) !== ObjectGetPrototypeOf(val2)) {\n return false;\n }\n }\n\n const val1Tag = ObjectPrototypeToString(val1);\n const val2Tag = ObjectPrototypeToString(val2);\n\n if (val1Tag !== val2Tag) {\n return false;\n }\n\n if (ArrayIsArray(val1)) {\n if (!ArrayIsArray(val2) ||\n (val1.length !== val2.length && (mode !== kPartial || val1.length < val2.length))) {\n return false;\n }\n\n const filter = mode !== kLoose ? ONLY_ENUMERABLE : ONLY_ENUMERABLE | SKIP_SYMBOLS;\n const keys2 = getOwnNonIndexProperties(val2, filter);\n if (mode !== kPartial &&\n keys2.length !== getOwnNonIndexProperties(val1, filter).length) {\n return false;\n }\n return keyCheck(val1, val2, mode, memos, kIsArray, keys2);\n } else if (val1Tag === '[object Object]') {\n return keyCheck(val1, val2, mode, memos, kNoIterator);\n } else if (isDate(val1)) {\n if (!isDate(val2) ||\n DatePrototypeGetTime(val1) !== DatePrototypeGetTime(val2)) {\n return false;\n }\n } else if (isRegExp(val1)) {\n if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) {\n return false;\n }\n } else if (isArrayBufferView(val1)) {\n if (TypedArrayPrototypeGetSymbolToStringTag(val1) !==\n TypedArrayPrototypeGetSymbolToStringTag(val2)) {\n return false;\n }\n if (mode === kPartial && val1.byteLength !== val2.byteLength) {\n if (!isPartialArrayBufferView(val1, val2)) {\n return false;\n }\n } else if (mode === kLoose &&\n (isFloat32Array(val1) || isFloat64Array(val1) || isFloat16Array(val1))) {\n if (!areSimilarFloatArrays(val1, val2)) {\n return false;\n }\n } else if (!areSimilarTypedArrays(val1, val2)) {\n return false;\n }\n // Buffer.compare returns true, so val1.length === val2.length. If they both\n // only contain numeric keys, we don't need to exam further than checking\n // the symbols.\n const filter = mode !== kLoose ? ONLY_ENUMERABLE : ONLY_ENUMERABLE | SKIP_SYMBOLS;\n const keys2 = getOwnNonIndexProperties(val2, filter);\n if (mode !== kPartial &&\n keys2.length !== getOwnNonIndexProperties(val1, filter).length) {\n return false;\n }\n return keyCheck(val1, val2, mode, memos, kNoIterator, keys2);\n } else if (isSet(val1)) {\n if (!isSet(val2) ||\n (val1.size !== val2.size && (mode !== kPartial || val1.size < val2.size))) {\n return false;\n }\n return keyCheck(val1, val2, mode, memos, kIsSet);\n } else if (isMap(val1)) {\n if (!isMap(val2) ||\n (val1.size !== val2.size && (mode !== kPartial || val1.size < val2.size))) {\n return false;\n }\n return keyCheck(val1, val2, mode, memos, kIsMap);\n } else if (isAnyArrayBuffer(val1)) {\n if (!isAnyArrayBuffer(val2)) {\n return false;\n }\n if (mode !== kPartial || val1.byteLength === val2.byteLength) {\n if (!areEqualArrayBuffers(val1, val2)) {\n return false;\n }\n } else if (!isPartialUint8Array(new Uint8Array(val1), new Uint8Array(val2))) {\n return false;\n }\n } else if (isError(val1)) {\n // Do not compare the stack as it might differ even though the error itself\n // is otherwise identical.\n if (!isError(val2) ||\n !isEnumerableOrIdentical(val1, val2, 'message', mode, memos) ||\n !isEnumerableOrIdentical(val1, val2, 'name', mode, memos) ||\n !isEnumerableOrIdentical(val1, val2, 'cause', mode, memos) ||\n !isEnumerableOrIdentical(val1, val2, 'errors', mode, memos)) {\n return false;\n }\n const hasOwnVal2Cause = hasOwn(val2, 'cause');\n if ((hasOwnVal2Cause !== hasOwn(val1, 'cause') && (mode !== kPartial || hasOwnVal2Cause))) {\n return false;\n }\n } else if (isBoxedPrimitive(val1)) {\n if (!isEqualBoxedPrimitive(val1, val2)) {\n return false;\n }\n } else if (ArrayIsArray(val2) ||\n isArrayBufferView(val2) ||\n isSet(val2) ||\n isMap(val2) ||\n isDate(val2) ||\n isRegExp(val2) ||\n isAnyArrayBuffer(val2) ||\n isBoxedPrimitive(val2) ||\n isNativeError(val2) ||\n val2 instanceof Error) {\n return false;\n } else if (isURL(val1)) {\n if (!isURL(val2) || val1.href !== val2.href) {\n return false;\n }\n } else if (isKeyObject(val1)) {\n if (!isKeyObject(val2) || !val1.equals(val2)) {\n return false;\n }\n } else if (isCryptoKey(val1)) {\n kKeyObject ??= require('internal/crypto/util').kKeyObject;\n if (!isCryptoKey(val2) ||\n val1.extractable !== val2.extractable ||\n !innerDeepEqual(val1.algorithm, val2.algorithm, mode, memos) ||\n !innerDeepEqual(val1.usages, val2.usages, mode, memos) ||\n !innerDeepEqual(val1[kKeyObject], val2[kKeyObject], mode, memos)\n ) {\n return false;\n }\n } else if (isWeakMap(val1) || isWeakSet(val1)) {\n return false;\n }\n\n return keyCheck(val1, val2, mode, memos, kNoIterator);\n}\n\nfunction getEnumerables(val, keys) {\n return ArrayPrototypeFilter(keys, (key) => hasEnumerable(val, key));\n}\n\nfunction partialSymbolEquiv(val1, val2, keys2) {\n const symbolKeys = getOwnSymbols(val2);\n if (symbolKeys.length !== 0) {\n for (const key of symbolKeys) {\n if (hasEnumerable(val2, key)) {\n if (!hasEnumerable(val1, key)) {\n return false;\n }\n ArrayPrototypePush(keys2, key);\n }\n }\n }\n return true;\n}\n\nfunction keyCheck(val1, val2, mode, memos, iterationType, keys2) {\n // For all remaining Object pairs, including Array, objects and Maps,\n // equivalence is determined by having:\n // a) The same number of owned enumerable properties\n // b) The same set of keys/indexes (although not necessarily the same order)\n // c) Equivalent values for every corresponding key/index\n // d) For Sets and Maps, equal contents\n // Note: this accounts for both named and indexed properties on Arrays.\n const isArrayLikeObject = keys2 !== undefined;\n\n if (keys2 === undefined) {\n keys2 = ObjectKeys(val2);\n }\n let keys1;\n\n if (!isArrayLikeObject) {\n // The pair must have the same number of owned properties.\n if (mode === kPartial) {\n if (!partialSymbolEquiv(val1, val2, keys2)) {\n return false;\n }\n } else if (keys2.length !== (keys1 = ObjectKeys(val1)).length) {\n return false;\n } else if (mode === kStrict) {\n const symbolKeysA = getOwnSymbols(val1);\n if (symbolKeysA.length !== 0) {\n let count = 0;\n for (const key of symbolKeysA) {\n if (hasEnumerable(val1, key)) {\n if (!hasEnumerable(val2, key)) {\n return false;\n }\n ArrayPrototypePush(keys2, key);\n count++;\n } else if (hasEnumerable(val2, key)) {\n return false;\n }\n }\n const symbolKeysB = getOwnSymbols(val2);\n if (symbolKeysA.length !== symbolKeysB.length &&\n getEnumerables(val2, symbolKeysB).length !== count) {\n return false;\n }\n } else {\n const symbolKeysB = getOwnSymbols(val2);\n if (symbolKeysB.length !== 0 &&\n getEnumerables(val2, symbolKeysB).length !== 0) {\n return false;\n }\n }\n }\n }\n\n if (keys2.length === 0 &&\n (iterationType === kNoIterator ||\n (iterationType === kIsArray && val2.length === 0) ||\n val2.size === 0)) {\n return true;\n }\n\n if (memos === null) {\n return objEquiv(val1, val2, mode, keys1, keys2, memos, iterationType);\n }\n return handleCycles(val1, val2, mode, keys1, keys2, memos, iterationType);\n}\n\nfunction handleCycles(val1, val2, mode, keys1, keys2, memos, iterationType) {\n // Use memos to handle cycles.\n if (memos === undefined) {\n memos = {\n set: undefined,\n a: val1,\n b: val2,\n c: undefined,\n d: undefined,\n deep: false,\n };\n return objEquiv(val1, val2, mode, keys1, keys2, memos, iterationType);\n }\n\n if (memos.set === undefined) {\n if (memos.deep === false) {\n if (memos.a === val1) {\n if (memos.b === val2) return true;\n }\n memos.c = val1;\n memos.d = val2;\n memos.deep = true;\n const result = objEquiv(val1, val2, mode, keys1, keys2, memos, iterationType);\n memos.deep = false;\n return result;\n }\n memos.set = new SafeSet();\n memos.set.add(memos.a);\n memos.set.add(memos.b);\n memos.set.add(memos.c);\n memos.set.add(memos.d);\n }\n\n const { set } = memos;\n\n const originalSize = set.size;\n set.add(val1);\n set.add(val2);\n if (originalSize === set.size) {\n return true;\n }\n\n const areEq = objEquiv(val1, val2, mode, keys1, keys2, memos, iterationType);\n\n set.delete(val1);\n set.delete(val2);\n\n return areEq;\n}\n\n// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using\n// Sadly it is not possible to detect corresponding values properly in case the\n// type is a string, number, bigint or boolean. The reason is that those values\n// can match lots of different string values (e.g., 1n == '+00001').\nfunction findLooseMatchingPrimitives(prim) {\n switch (typeof prim) {\n case 'undefined':\n return null;\n case 'object': // Only pass in null as object!\n return undefined;\n case 'symbol':\n return false;\n case 'string':\n prim = +prim;\n // Loose equal entries exist only if the string is possible to convert to\n // a regular number and not NaN.\n // Fall through\n case 'number':\n // Check for NaN\n // eslint-disable-next-line no-self-compare\n if (prim !== prim) {\n return false;\n }\n }\n return true;\n}\n\nfunction setMightHaveLoosePrim(a, b, prim) {\n const altValue = findLooseMatchingPrimitives(prim);\n if (altValue != null)\n return altValue;\n\n return !b.has(altValue) && a.has(altValue);\n}\n\nfunction mapMightHaveLoosePrim(a, b, prim, item2, memo) {\n const altValue = findLooseMatchingPrimitives(prim);\n if (altValue != null) {\n return altValue;\n }\n const item1 = a.get(altValue);\n if ((item1 === undefined && !a.has(altValue)) ||\n !innerDeepEqual(item1, item2, kLoose, memo)) {\n return false;\n }\n return !b.has(altValue) && innerDeepEqual(item1, item2, kLoose, memo);\n}\n\nfunction partialObjectSetEquiv(array, a, b, mode, memo) {\n let aPos = 0;\n let direction = 1;\n let start = 0;\n let end = array.length - 1;\n for (const val1 of a) {\n aPos++;\n if (!b.has(val1)) {\n let innerStart = start;\n if (direction === 1) {\n if (innerDeepEqual(val1, array[start], mode, memo)) {\n if (start === end) {\n return true;\n }\n start += 1;\n continue;\n }\n if (start === end) {\n // The last element of set b might match a later element in set a.\n continue;\n }\n direction = -1;\n innerStart += 1;\n }\n let matched = true;\n if (!innerDeepEqual(val1, array[end], mode, memo)) {\n direction = 1;\n matched = arrayHasEqualElement(array, val1, mode, memo, innerDeepEqual, innerStart, end);\n }\n if (matched) {\n if (start === end) {\n return true;\n }\n end -= 1;\n }\n }\n if (a.size - aPos <= end - start) {\n return false;\n }\n }\n return false;\n}\n\nfunction arrayHasEqualElement(array, val1, mode, memo, comparator, start, end) {\n let matched = false;\n for (let i = end - 1; i >= start; i--) {\n if (comparator(val1, array[i], mode, memo)) {\n // Remove the matching element to make sure we do not check that again.\n array.splice(i, 1);\n matched = true;\n break;\n }\n }\n return matched;\n}\n\nfunction setObjectEquiv(array, a, b, mode, memo) {\n let direction = 1;\n let start = 0;\n let end = array.length - 1;\n const comparator = mode !== kLoose ? objectComparisonStart : innerDeepEqual;\n const extraChecks = mode === kLoose || array.length !== a.size;\n for (const val1 of a) {\n if (extraChecks) {\n if (typeof val1 === 'object') {\n if (b.has(val1)) {\n continue;\n }\n } else if (mode !== kLoose || b.has(val1)) {\n continue;\n }\n }\n\n let innerStart = start;\n if (direction === 1) {\n if (comparator(val1, array[start], mode, memo)) {\n start += 1;\n continue;\n }\n if (start === end) {\n return false;\n }\n direction = -1;\n innerStart += 1;\n }\n if (!comparator(val1, array[end], mode, memo)) {\n direction = 1;\n if (!arrayHasEqualElement(array, val1, mode, memo, comparator, innerStart, end)) {\n return false;\n }\n }\n end -= 1;\n }\n return true;\n}\n\nfunction compareSmallSets(a, b, val, iteratorB, mode, memo) {\n const iteratorA = a.values();\n const firstA = iteratorA.next().value;\n const first = innerDeepEqual(firstA, val, mode, memo);\n if (first) {\n if (b.size === 1) { // Partial mode && a.size === 1 || b.size === 1\n return true;\n }\n const secondA = iteratorA.next().value;\n return b.has(secondA) || innerDeepEqual(secondA, iteratorB.next().value, mode, memo);\n }\n return a.size !== 1 && innerDeepEqual(iteratorA.next().value, val, mode, memo) && (\n b.size === 1 || // Partial mode\n b.has(firstA) || // Primitive or reference equal\n innerDeepEqual(firstA, iteratorB.next().value, mode, memo)\n );\n}\n\nfunction setEquiv(a, b, mode, memo) {\n // This is a lazily initiated Set of entries which have to be compared\n // pairwise.\n let array;\n\n const iteratorB = b.values();\n for (const val of iteratorB) {\n if (!a.has(val)) {\n if ((typeof val !== 'object' || val === null) &&\n (mode !== kLoose || !setMightHaveLoosePrim(a, b, val))) {\n return false;\n }\n\n if (array === undefined) {\n if (a.size < 3) {\n return compareSmallSets(a, b, val, iteratorB, mode, memo);\n }\n array = [];\n }\n // If the specified value doesn't exist in the second set it's a object\n // (or in loose mode: a non-matching primitive). Find the\n // deep-(mode-)equal element in a set copy to reduce duplicate checks.\n array.push(val);\n }\n }\n\n if (array === undefined) {\n return true;\n }\n if (mode === kPartial) {\n return partialObjectSetEquiv(array, a, b, mode, memo);\n }\n return setObjectEquiv(array, a, b, mode, memo);\n}\n\nfunction partialObjectMapEquiv(array, a, b, mode, memo) {\n let aPos = 0;\n let direction = 1;\n let start = 0;\n let end = array.length - 1;\n for (const { 0: key1, 1: item1 } of a) {\n aPos++;\n if (typeof key1 === 'object' && key1 !== null) {\n let innerStart = start;\n if (direction === 1) {\n const key2 = array[start];\n if (objectComparisonStart(key1, key2, mode, memo) && innerDeepEqual(item1, b.get(key2), mode, memo)) {\n if (start === end) {\n return true;\n }\n start += 1;\n continue;\n }\n if (start === end) {\n // The last element of map b might match a later element in map a.\n continue;\n }\n direction = -1;\n innerStart += 1;\n }\n let matched = true;\n const key2 = array[end];\n if (!objectComparisonStart(key1, key2, mode, memo) || !innerDeepEqual(item1, b.get(key2), mode, memo)) {\n direction = 1;\n matched = arrayHasEqualMapElement(array, key1, item1, b, mode, memo, objectComparisonStart, innerStart, end);\n }\n if (matched) {\n if (start === end) {\n return true;\n }\n end -= 1;\n }\n }\n if (a.size - aPos <= end - start) {\n return false;\n }\n }\n return false;\n}\n\nfunction arrayHasEqualMapElement(array, key1, item1, b, mode, memo, comparator, start, end) {\n let matched = false;\n for (let i = end - 1; i >= start; i--) {\n const key2 = array[i];\n if (comparator(key1, key2, mode, memo) &&\n innerDeepEqual(item1, b.get(key2), mode, memo)) {\n // Remove the matching element to make sure we do not check that again.\n array.splice(i, 1);\n matched = true;\n break;\n }\n }\n return matched;\n}\n\nfunction mapObjectEquiv(array, a, b, mode, memo) {\n let direction = 1;\n let start = 0;\n let end = array.length - 1;\n const comparator = mode !== kLoose ? objectComparisonStart : innerDeepEqual;\n const extraChecks = mode === kLoose || array.length !== a.size;\n\n for (const { 0: key1, 1: item1 } of a) {\n if (extraChecks &&\n (typeof key1 !== 'object' || key1 === null) &&\n (mode !== kLoose ||\n (b.has(key1) && innerDeepEqual(item1, b.get(key1), mode, memo)))) { // Mixed mode\n continue;\n }\n\n let innerStart = start;\n if (direction === 1) {\n const key2 = array[start];\n if (comparator(key1, key2, mode, memo) && innerDeepEqual(item1, b.get(key2), mode, memo)) {\n start += 1;\n continue;\n }\n if (start === end) {\n return false;\n }\n direction = -1;\n innerStart += 1;\n }\n const key2 = array[end];\n if ((!comparator(key1, key2, mode, memo) || !innerDeepEqual(item1, b.get(key2), mode, memo))) {\n direction = 1;\n if (!arrayHasEqualMapElement(array, key1, item1, b, mode, memo, comparator, innerStart, end)) {\n return false;\n }\n }\n end -= 1;\n }\n return true;\n}\n\nfunction mapEquiv(a, b, mode, memo) {\n let array;\n\n for (const { 0: key2, 1: item2 } of b) {\n if (typeof key2 === 'object' && key2 !== null) {\n if (array === undefined) {\n if (a.size === 1) {\n const { 0: key1, 1: item1 } = a.entries().next().value;\n return innerDeepEqual(key1, key2, mode, memo) &&\n innerDeepEqual(item1, item2, mode, memo);\n }\n array = [];\n }\n array.push(key2);\n } else {\n // By directly retrieving the value we prevent another b.has(key2) check in\n // almost all possible cases.\n const item1 = a.get(key2);\n if (((item1 === undefined && !a.has(key2)) ||\n !innerDeepEqual(item1, item2, mode, memo))) {\n if (mode !== kLoose)\n return false;\n // Fast path to detect missing string, symbol, undefined and null\n // keys.\n if (!mapMightHaveLoosePrim(a, b, key2, item2, memo))\n return false;\n if (array === undefined) {\n array = [];\n }\n array.push(key2);\n }\n }\n }\n\n if (array === undefined) {\n return true;\n }\n\n if (mode === kPartial) {\n return partialObjectMapEquiv(array, a, b, mode, memo);\n }\n\n return mapObjectEquiv(array, a, b, mode, memo);\n}\n\nfunction partialSparseArrayEquiv(a, b, mode, memos, startA, startB) {\n let aPos = 0;\n const keysA = ObjectKeys(a).slice(startA);\n const keysB = ObjectKeys(b).slice(startB);\n if (keysA.length < keysB.length) {\n return false;\n }\n for (let i = 0; i < keysB.length; i++) {\n const keyB = keysB[i];\n while (!innerDeepEqual(a[keysA[aPos]], b[keyB], mode, memos)) {\n aPos++;\n if (aPos > keysA.length - keysB.length + i) {\n return false;\n }\n }\n aPos++;\n }\n return true;\n}\n\nfunction partialArrayEquiv(a, b, mode, memos) {\n let aPos = 0;\n for (let i = 0; i < b.length; i++) {\n let isSparse = b[i] === undefined && !hasOwn(b, i);\n if (isSparse) {\n return partialSparseArrayEquiv(a, b, mode, memos, aPos, i);\n }\n while (!(isSparse = a[aPos] === undefined && !hasOwn(a, aPos)) &&\n !innerDeepEqual(a[aPos], b[i], mode, memos)) {\n aPos++;\n if (aPos > a.length - b.length + i) {\n return false;\n }\n }\n if (isSparse) {\n return partialSparseArrayEquiv(a, b, mode, memos, aPos, i);\n }\n aPos++;\n }\n return true;\n}\n\nfunction sparseArrayEquiv(a, b, mode, memos, i) {\n // TODO(BridgeAR): Use internal method to only get index properties. The\n // same applies to the partial implementation.\n const keysA = ObjectKeys(a);\n const keysB = ObjectKeys(b);\n if (keysA.length !== keysB.length) {\n return false;\n }\n for (; i < keysB.length; i++) {\n const key = keysB[i];\n if ((a[key] === undefined && !hasOwn(a, key)) || !innerDeepEqual(a[key], b[key], mode, memos)) {\n return false;\n }\n }\n return true;\n}\n\nfunction objEquiv(a, b, mode, keys1, keys2, memos, iterationType) {\n // The pair must have equivalent values for every corresponding key.\n if (keys2.length > 0) {\n let i = 0;\n // Ordered keys\n if (keys1 !== undefined) {\n for (; i < keys2.length; i++) {\n const key = keys2[i];\n if (keys1[i] !== key) {\n break;\n }\n if (!innerDeepEqual(a[key], b[key], mode, memos)) {\n return false;\n }\n }\n }\n // Unordered keys\n for (; i < keys2.length; i++) {\n const key = keys2[i];\n // It is faster to get the whole descriptor and to check it's enumerable\n // property in V8 13.0 compared to calling Object.propertyIsEnumerable()\n // and accessing the property regularly.\n const descriptor = ObjectGetOwnPropertyDescriptor(a, key);\n if (!descriptor?.enumerable ||\n !innerDeepEqual(descriptor.value !== undefined ? descriptor.value : a[key], b[key], mode, memos)) {\n return false;\n }\n }\n }\n\n if (iterationType === kIsArray) {\n if (mode === kPartial) {\n return partialArrayEquiv(a, b, mode, memos);\n }\n for (let i = 0; i < a.length; i++) {\n if (b[i] === undefined) {\n if (!hasOwn(b, i))\n return sparseArrayEquiv(a, b, mode, memos, i);\n if (a[i] !== undefined || !hasOwn(a, i))\n return false;\n } else if (a[i] === undefined || !innerDeepEqual(a[i], b[i], mode, memos)) {\n return false;\n }\n }\n } else if (iterationType === kIsSet) {\n if (!setEquiv(a, b, mode, memos)) {\n return false;\n }\n } else if (iterationType === kIsMap) {\n if (!mapEquiv(a, b, mode, memos)) {\n return false;\n }\n }\n\n return true;\n}\n\n// Only handle cycles when they are detected.\n// eslint-disable-next-line func-style\nlet detectCycles = function(val1, val2, mode) {\n try {\n return innerDeepEqual(val1, val2, mode, null);\n } catch {\n detectCycles = innerDeepEqual;\n return innerDeepEqual(val1, val2, mode, undefined);\n }\n};\n\nmodule.exports = {\n isDeepEqual(val1, val2) {\n return detectCycles(val1, val2, kLoose);\n },\n isDeepStrictEqual(val1, val2) {\n return detectCycles(val1, val2, kStrict);\n },\n isPartialStrictEqual(val1, val2) {\n return detectCycles(val1, val2, kPartial);\n },\n};\n";var INTERNAL_UTIL_DEBUGLOG="'use strict';\n\nconst {\n MathFloor,\n Number,\n NumberPrototypeToFixed,\n ObjectDefineProperty,\n RegExp,\n RegExpPrototypeExec,\n SafeArrayIterator,\n SafeMap,\n StringPrototypePadStart,\n StringPrototypeSplit,\n StringPrototypeToLowerCase,\n StringPrototypeToUpperCase,\n} = primordials;\nconst {\n CHAR_LOWERCASE_B: kTraceBegin,\n CHAR_LOWERCASE_E: kTraceEnd,\n CHAR_LOWERCASE_N: kTraceInstant,\n} = require('internal/constants');\nconst { inspect, format, formatWithOptions } = require('internal/util/inspect');\nconst { getCategoryEnabledBuffer, trace } = internalBinding('trace_events');\n\n// `debugImpls` and `testEnabled` are deliberately not initialized so any call\n// to `debuglog()` before `initializeDebugEnv()` is called will throw.\nlet debugImpls;\nlet testEnabled;\n\n\n// `debugEnv` is initial value of process.env.NODE_DEBUG\nfunction initializeDebugEnv(debugEnv) {\n debugImpls = { __proto__: null };\n if (debugEnv) {\n // This is run before any user code, it's OK not to use primordials.\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, '\\\\$&')\n .replaceAll('*', '.*')\n .replaceAll(',', '$|^');\n const debugEnvRegex = new RegExp(`^${debugEnv}$`, 'i');\n testEnabled = (str) => RegExpPrototypeExec(debugEnvRegex, str) !== null;\n } else {\n testEnabled = () => false;\n }\n}\n\n// Emits warning when user sets\n// NODE_DEBUG=http or NODE_DEBUG=http2.\nfunction emitWarningIfNeeded(set) {\n if ('HTTP' === set || 'HTTP2' === set) {\n process.emitWarning('Setting the NODE_DEBUG environment variable ' +\n 'to \\'' + StringPrototypeToLowerCase(set) + '\\' can expose sensitive ' +\n 'data (such as passwords, tokens and authentication headers) ' +\n 'in the resulting log.');\n }\n}\n\nconst noop = () => {};\n\nlet utilColors;\nfunction lazyUtilColors() {\n utilColors ??= require('internal/util/colors');\n return utilColors;\n}\n\nfunction debuglogImpl(enabled, set) {\n if (debugImpls[set] === undefined) {\n if (enabled) {\n const pid = process.pid;\n emitWarningIfNeeded(set);\n debugImpls[set] = function debug(...args) {\n const colors = lazyUtilColors().shouldColorize(process.stderr);\n const msg = formatWithOptions({ colors }, ...args);\n const coloredPID = inspect(pid, { colors });\n process.stderr.write(format('%s %s: %s\\n', set, coloredPID, msg));\n };\n } else {\n debugImpls[set] = noop;\n }\n }\n return debugImpls[set];\n}\n\n// debuglogImpl depends on process.pid and process.env.NODE_DEBUG,\n// so it needs to be called lazily in top scopes of internal modules\n// that may be loaded before these run time states are allowed to\n// be accessed.\nfunction debuglog(set, cb) {\n function init() {\n set = StringPrototypeToUpperCase(set);\n enabled = testEnabled(set);\n }\n let debug = (...args) => {\n init();\n // Only invokes debuglogImpl() when the debug function is\n // called for the first time.\n debug = debuglogImpl(enabled, set);\n if (typeof cb === 'function')\n cb(debug);\n switch (args.length) {\n case 1: return debug(args[0]);\n case 2: return debug(args[0], args[1]);\n default: return debug(...new SafeArrayIterator(args));\n }\n };\n let enabled;\n let test = () => {\n init();\n test = () => enabled;\n return enabled;\n };\n const logger = (...args) => {\n // Improve performance when debug is disabled, avoid calling `new SafeArrayIterator(args)`\n if (enabled === false) return;\n switch (args.length) {\n case 1: return debug(args[0]);\n case 2: return debug(args[0], args[1]);\n default: return debug(...new SafeArrayIterator(args));\n }\n };\n ObjectDefineProperty(logger, 'enabled', {\n __proto__: null,\n get() {\n return test();\n },\n configurable: true,\n enumerable: true,\n });\n return logger;\n}\n\nfunction pad(value) {\n return StringPrototypePadStart(`${value}`, 2, '0');\n}\n\nconst kNone = 1 << 0;\nconst kSkipLog = 1 << 1;\nconst kSkipTrace = 1 << 2;\nconst kShouldSkipAll = kSkipLog | kSkipTrace;\n\nconst kSecond = 1000;\nconst kMinute = 60 * kSecond;\nconst kHour = 60 * kMinute;\n\nfunction formatTime(ms) {\n let hours = 0;\n let minutes = 0;\n let seconds = 0;\n\n if (ms >= kSecond) {\n if (ms >= kMinute) {\n if (ms >= kHour) {\n hours = MathFloor(ms / kHour);\n ms = ms % kHour;\n }\n minutes = MathFloor(ms / kMinute);\n ms = ms % kMinute;\n }\n seconds = ms / kSecond;\n }\n\n if (hours !== 0 || minutes !== 0) {\n ({ 0: seconds, 1: ms } = StringPrototypeSplit(\n NumberPrototypeToFixed(seconds, 3),\n '.',\n 2,\n ));\n const res = hours !== 0 ? `${hours}:${pad(minutes)}` : minutes;\n return `${res}:${pad(seconds)}.${ms} (${hours !== 0 ? 'h:m' : ''}m:ss.mmm)`;\n }\n\n if (seconds !== 0) {\n return `${NumberPrototypeToFixed(seconds, 3)}s`;\n }\n\n return `${Number(NumberPrototypeToFixed(ms, 3))}ms`;\n}\n\nfunction safeTraceLabel(label) {\n return label.replaceAll('\\\\', '\\\\\\\\').replaceAll('\"', '\\\\\"');\n}\n\n/**\n * @typedef {(label: string, timeFormatted: string, args?: any[]) => void} LogImpl\n */\n\n/**\n * Returns true if label was found\n * @param {string} timesStore\n * @param {string} implementation\n * @param {LogImpl} logImp\n * @param {string} label\n * @param {any} args\n * @returns {void}\n */\nfunction timeLogImpl(timesStore, implementation, logImp, label, args) {\n const time = timesStore.get(label);\n if (time === undefined) {\n process.emitWarning(`No such label '${label}' for ${implementation}`);\n return;\n }\n\n const duration = process.hrtime(time);\n const ms = duration[0] * 1000 + duration[1] / 1e6;\n\n const formatted = formatTime(ms);\n\n if (args === undefined) {\n logImp(label, formatted);\n } else {\n logImp(label, formatted, args);\n }\n}\n\n/**\n * @param {SafeMap} timesStore\n * @param {string} traceCategory\n * @param {string} implementation\n * @param {number} timerFlags\n * @param {string} logLabel\n * @param {string} traceLabel\n * @returns {void}\n */\nfunction time(timesStore, traceCategory, implementation, timerFlags, logLabel = 'default', traceLabel = undefined) {\n // Coerces everything other than Symbol to a string\n logLabel = `${logLabel}`;\n\n if (traceLabel !== undefined) {\n traceLabel = `${traceLabel}`;\n } else {\n traceLabel = logLabel;\n }\n\n if (timesStore.has(logLabel)) {\n process.emitWarning(`Label '${logLabel}' already exists for ${implementation}`);\n return;\n }\n\n if ((timerFlags & kSkipTrace) === 0) {\n traceLabel = safeTraceLabel(traceLabel);\n trace(kTraceBegin, traceCategory, traceLabel, 0);\n }\n\n timesStore.set(logLabel, process.hrtime());\n}\n\n/**\n * @param {SafeMap} timesStore\n * @param {string} traceCategory\n * @param {string} implementation\n * @param {number} timerFlags\n * @param {LogImpl} logImpl\n * @param {string} logLabel\n * @param {string} traceLabel\n * @returns {void}\n */\nfunction timeEnd(\n timesStore,\n traceCategory,\n implementation,\n timerFlags,\n logImpl,\n logLabel = 'default',\n traceLabel = undefined,\n) {\n // Coerces everything other than Symbol to a string\n logLabel = `${logLabel}`;\n\n if (traceLabel !== undefined) {\n traceLabel = `${traceLabel}`;\n } else {\n traceLabel = logLabel;\n }\n\n if ((timerFlags & kSkipLog) === 0) {\n timeLogImpl(timesStore, implementation, logImpl, logLabel);\n }\n\n if ((timerFlags & kSkipTrace) === 0) {\n traceLabel = safeTraceLabel(traceLabel);\n trace(kTraceEnd, traceCategory, traceLabel, 0);\n }\n\n timesStore.delete(logLabel);\n}\n\n/**\n * @param {SafeMap} timesStore\n * @param {string} traceCategory\n * @param {string} implementation\n * @param {number} timerFlags\n * @param {LogImpl} logImpl\n * @param {string} logLabel\n * @param {string} traceLabel\n * @param {any[]} args\n * @returns {void}\n */\nfunction timeLog(\n timesStore,\n traceCategory,\n implementation,\n timerFlags,\n logImpl,\n logLabel = 'default',\n traceLabel = undefined,\n args,\n) {\n // Coerces everything other than Symbol to a string\n logLabel = `${logLabel}`;\n\n if (traceLabel !== undefined) {\n traceLabel = `${traceLabel}`;\n } else {\n traceLabel = logLabel;\n }\n\n if ((timerFlags & kSkipLog) === 0) {\n timeLogImpl(timesStore, implementation, logImpl, logLabel, args);\n }\n\n if ((timerFlags & kSkipTrace) === 0) {\n traceLabel = safeTraceLabel(traceLabel);\n trace(kTraceInstant, traceCategory, traceLabel, 0);\n }\n}\n\n/**\n * @type {Record<string, SafeMap>}\n */\nlet tracesStores;\n\n/**\n * @typedef {(logLabel: string, traceLabel?: string) => void} TimerStart\n */\n\n/**\n * @typedef {(logLabel: string, traceLabel?: string) => void} TimerEnd\n */\n\n/**\n * @typedef {(logLabel: string, traceLabel?: string, args?: any[]) => void} TimerLog\n */\n\n/**\n * Debuglog with time fns and support for trace\n * @param {string} set\n * @param {(startTimer: TimerStart, endTimer: TimerEnd, logTimer: TimerLog) => void} cb\n * @returns {{startTimer: TimerStart, endTimer: TimerEnd, logTimer: TimerLog}}\n */\nfunction debugWithTimer(set, cb) {\n set = StringPrototypeToUpperCase(set);\n\n if (tracesStores === undefined) {\n tracesStores = { __proto__: null };\n }\n\n /**\n * @type {LogImpl}\n */\n function logImpl(label, timeFormatted, args) {\n const pid = process.pid;\n const colors = { colors: lazyUtilColors().shouldColorize(process.stderr) };\n const coloredPID = inspect(pid, colors);\n\n if (args === undefined)\n process.stderr.write(format('%s %s %s: %s\\n', set, coloredPID, label, timeFormatted));\n else\n process.stderr.write(\n format(\n '%s %s %s: %s\\n',\n set,\n coloredPID,\n label,\n timeFormatted,\n ...new SafeArrayIterator(args),\n ),\n );\n }\n\n const traceCategory = `node,node.${StringPrototypeToLowerCase(set)}`;\n let traceCategoryBuffer;\n let debugLogCategoryEnabled = false;\n let timerFlags = kNone;\n\n function ensureTimerFlagsAreUpdated() {\n timerFlags &= ~kSkipTrace;\n\n if (traceCategoryBuffer[0] === 0) {\n timerFlags |= kSkipTrace;\n }\n }\n\n /**\n * @type {TimerStart}\n */\n function internalStartTimer(logLabel, traceLabel) {\n ensureTimerFlagsAreUpdated();\n\n if ((timerFlags & kShouldSkipAll) === kShouldSkipAll) {\n return;\n }\n\n time(\n tracesStores[set],\n traceCategory,\n 'debuglog.time',\n timerFlags,\n logLabel,\n traceLabel,\n );\n }\n\n /**\n * @type {TimerEnd}\n */\n function internalEndTimer(logLabel, traceLabel) {\n ensureTimerFlagsAreUpdated();\n\n if ((timerFlags & kShouldSkipAll) === kShouldSkipAll) {\n return;\n }\n\n timeEnd(\n tracesStores[set],\n traceCategory,\n 'debuglog.timeEnd',\n timerFlags,\n logImpl,\n logLabel,\n traceLabel,\n );\n }\n\n /**\n * @type {TimerLog}\n */\n function internalLogTimer(logLabel, traceLabel, args) {\n ensureTimerFlagsAreUpdated();\n\n if ((timerFlags & kShouldSkipAll) === kShouldSkipAll) {\n return;\n }\n\n timeLog(\n tracesStores[set],\n traceCategory,\n 'debuglog.timeLog',\n timerFlags,\n logImpl,\n logLabel,\n traceLabel,\n args,\n );\n }\n\n function init() {\n if (tracesStores[set] === undefined) {\n tracesStores[set] = new SafeMap();\n }\n emitWarningIfNeeded(set);\n debugLogCategoryEnabled = testEnabled(set);\n traceCategoryBuffer = getCategoryEnabledBuffer(traceCategory);\n\n timerFlags = kNone;\n\n if (!debugLogCategoryEnabled) {\n timerFlags |= kSkipLog;\n }\n\n if (traceCategoryBuffer[0] === 0) {\n timerFlags |= kSkipTrace;\n }\n\n cb(internalStartTimer, internalEndTimer, internalLogTimer);\n }\n\n /**\n * @type {TimerStart}\n */\n const startTimer = (logLabel, traceLabel) => {\n init();\n\n if ((timerFlags & kShouldSkipAll) !== kShouldSkipAll)\n internalStartTimer(logLabel, traceLabel);\n };\n\n /**\n * @type {TimerEnd}\n */\n const endTimer = (logLabel, traceLabel) => {\n init();\n\n if ((timerFlags & kShouldSkipAll) !== kShouldSkipAll)\n internalEndTimer(logLabel, traceLabel);\n };\n\n /**\n * @type {TimerLog}\n */\n const logTimer = (logLabel, traceLabel, args) => {\n init();\n\n if ((timerFlags & kShouldSkipAll) !== kShouldSkipAll)\n internalLogTimer(logLabel, traceLabel, args);\n };\n\n return {\n startTimer,\n endTimer,\n logTimer,\n };\n}\n\nmodule.exports = {\n kNone,\n kSkipLog,\n kSkipTrace,\n formatTime,\n time,\n timeEnd,\n timeLog,\n debuglog,\n debugWithTimer,\n initializeDebugEnv,\n};\n";var INTERNAL_UTIL_COLORS="'use strict';\n\nlet internalTTy;\nfunction lazyInternalTTY() {\n internalTTy ??= require('internal/tty');\n return internalTTy;\n}\n\nmodule.exports = {\n blue: '',\n green: '',\n white: '',\n red: '',\n gray: '',\n clear: '',\n reset: '',\n hasColors: false,\n shouldColorize(stream) {\n if (process.env.FORCE_COLOR !== undefined) {\n return lazyInternalTTY().getColorDepth() > 2;\n }\n return stream?.isTTY && (\n typeof stream.getColorDepth === 'function' ?\n stream.getColorDepth() > 2 : true);\n },\n refresh() {\n const hasColors = module.exports.shouldColorize(process.stderr);\n module.exports.blue = hasColors ? '\\u001b[34m' : '';\n module.exports.green = hasColors ? '\\u001b[32m' : '';\n module.exports.white = hasColors ? '\\u001b[39m' : '';\n module.exports.yellow = hasColors ? '\\u001b[33m' : '';\n module.exports.red = hasColors ? '\\u001b[31m' : '';\n module.exports.gray = hasColors ? '\\u001b[90m' : '';\n module.exports.clear = hasColors ? '\\u001bc' : '';\n module.exports.reset = hasColors ? '\\u001b[0m' : '';\n module.exports.hasColors = hasColors;\n },\n};\n\nmodule.exports.refresh();\n";var INTERNAL_FIXED_QUEUE="'use strict';\n\nconst {\n Array,\n ArrayPrototypeFill,\n} = primordials;\n\n// Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.\nconst kSize = 2048;\nconst kMask = kSize - 1;\n\n// The FixedQueue is implemented as a singly-linked list of fixed-size\n// circular buffers. It looks something like this:\n//\n// head tail\n// | |\n// v v\n// +-----------+ <-----\\ +-----------+ <------\\ +-----------+\n// | [null] | \\----- | next | \\------- | next |\n// +-----------+ +-----------+ +-----------+\n// | item | <-- bottom | item | <-- bottom | undefined |\n// | item | | item | | undefined |\n// | item | | item | | undefined |\n// | item | | item | | undefined |\n// | item | | item | bottom --> | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | undefined | <-- top | item | | item |\n// | undefined | | item | | item |\n// | undefined | | undefined | <-- top top --> | undefined |\n// +-----------+ +-----------+ +-----------+\n//\n// Or, if there is only one circular buffer, it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | undefined | | item |\n// | undefined | | item |\n// | item | <-- bottom top --> | undefined |\n// | item | | undefined |\n// | undefined | <-- top bottom --> | item |\n// | undefined | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one, removing means\n// moving `bottom` forward by one. After reaching the end, the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = ArrayPrototypeFill(new Array(kSize), undefined);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue, sets the old queue's `.next` to it,\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue, it forms the new tail.\n this.tail = tail.next;\n tail.next = null;\n }\n return next;\n }\n};\n";var INTERNAL_EVENTS_SYMBOLS="'use strict';\n\nconst {\n Symbol,\n} = primordials;\n\nconst kFirstEventParam = Symbol('kFirstEventParam');\n\nmodule.exports = {\n kFirstEventParam,\n};\n";var NODE_LIB_SOURCES={"internal/navigator":NAVIGATOR,path:NODE_PATH_SOURCE,"net":NET,"buffer":BUFFER,"internal/buffer":INTERNAL_BUFFER,"stream":STREAM,"stream/promises":STREAM_PROMISES,"internal/streams/add-abort-signal":STREAMS_ADD_ABORT_SIGNAL,"internal/streams/compose":STREAMS_COMPOSE,"internal/streams/destroy":STREAMS_DESTROY,"internal/streams/duplex":STREAMS_DUPLEX,"internal/streams/duplexify":STREAMS_DUPLEXIFY,"internal/streams/duplexpair":STREAMS_DUPLEXPAIR,"internal/streams/end-of-stream":STREAMS_END_OF_STREAM,"internal/streams/from":STREAMS_FROM,"internal/streams/lazy_transform":STREAMS_LAZY_TRANSFORM,"internal/streams/legacy":STREAMS_LEGACY,"internal/streams/operators":STREAMS_OPERATORS,"internal/streams/passthrough":STREAMS_PASSTHROUGH,"internal/streams/pipeline":STREAMS_PIPELINE,"internal/streams/readable":STREAMS_READABLE,"internal/streams/state":STREAMS_STATE,"internal/streams/transform":STREAMS_TRANSFORM,"internal/streams/utils":STREAMS_UTILS,"internal/streams/writable":STREAMS_WRITABLE,"child_process":CHILD_PROCESS,"internal/net":INTERNAL_NET,"internal/child_process":INTERNAL_CHILD_PROCESS,"internal/stream_base_commons":INTERNAL_STREAM_BASE_COMMONS,"internal/socket_list":INTERNAL_SOCKET_LIST,"internal/errors":INTERNAL_ERRORS,"internal/validators":INTERNAL_VALIDATORS,"internal/events/abort_listener":INTERNAL_ABORT_LISTENER,"internal/child_process/serialization":INTERNAL_CHILD_PROCESS_SERIALIZATION,"internal/modules/customization_hooks":INTERNAL_MODULES_CUSTOMIZATION_HOOKS,"internal/modules/typescript":INTERNAL_MODULES_TYPESCRIPT,"events":EVENTS,"internal/constants":INTERNAL_CONSTANTS,"internal/mime":INTERNAL_MIME,"http":HTTP,"https":HTTPS,"_http_common":HTTP_COMMON,"_http_incoming":HTTP_INCOMING,"_http_outgoing":HTTP_OUTGOING,"_http_server":HTTP_SERVER,"_http_client":HTTP_CLIENT,"_http_agent":HTTP_AGENT,"internal/http":INTERNAL_HTTP,"internal/freelist":INTERNAL_FREELIST,"readline":READLINE,"readline/promises":READLINE_PROMISES,"internal/readline/callbacks":INTERNAL_READLINE_CALLBACKS,"internal/readline/emitKeypressEvents":INTERNAL_READLINE_EMITKEYPRESSEVENTS,"internal/readline/interface":INTERNAL_READLINE_INTERFACE,"internal/readline/promises":INTERNAL_READLINE_PROMISES,"internal/readline/utils":INTERNAL_READLINE_UTILS,"zlib":ZLIB,"os":OS$1,"tty":TTY$1,"internal/tty":INTERNAL_TTY,"assert":ASSERT,"assert/strict":ASSERT_STRICT,"querystring":QUERYSTRING,"punycode":PUNYCODE,"constants":NODE_CONSTANTS,"diagnostics_channel":DIAGNOSTICS_CHANNEL,"internal/querystring":INTERNAL_QUERYSTRING,"internal/assert/assertion_error":INTERNAL_ASSERTION_ERROR,"internal/assert/calltracker":INTERNAL_CALLTRACKER,"internal/assert/utils":INTERNAL_ASSERT_UTILS,"internal/assert/myers_diff":INTERNAL_MYERS_DIFF,"fs":FS2,"internal/fs/utils":INTERNAL_FS_UTILS,"internal/fs/promises":INTERNAL_FS_PROMISES,"internal/fs/dir":INTERNAL_FS_DIR,"internal/fs/watchers":INTERNAL_FS_WATCHERS,"internal/fs/streams":INTERNAL_FS_STREAMS,"internal/fs/rimraf":INTERNAL_FS_RIMRAF,"internal/fs/sync_write_stream":INTERNAL_FS_SYNC_WRITE_STREAM,"internal/fs/recursive_watch":INTERNAL_FS_RECURSIVE_WATCH,"internal/fs/glob":INTERNAL_FS_GLOB,"internal/deps/minimatch/index":INTERNAL_DEPS_MINIMATCH,"internal/fs/read/context":INTERNAL_FS_READ_CONTEXT,"internal/fs/cp/cp-sync":INTERNAL_FS_CP_CP_SYNC,"internal/fs/cp/cp":INTERNAL_FS_CP_CP,"internal/util/parse_args/parse_args":INTERNAL_PARSE_ARGS,"internal/util/parse_args/utils":INTERNAL_PARSE_ARGS_UTILS,"util":UTIL,"internal/util":INTERNAL_UTIL,"internal/util/inspect":INTERNAL_UTIL_INSPECT,"internal/util/comparisons":INTERNAL_UTIL_COMPARISONS,"internal/util/debuglog":INTERNAL_UTIL_DEBUGLOG,"internal/util/colors":INTERNAL_UTIL_COLORS,"internal/fixed_queue":INTERNAL_FIXED_QUEUE,"internal/events/symbols":INTERNAL_EVENTS_SYMBOLS};var recordedProxies=new WeakSet;var tagOf=value=>Object.prototype.toString.call(value);var mapSize=(_a3=Object.getOwnPropertyDescriptor(Map.prototype,"size"))==null?void 0:_a3.get;var setSize=(_b2=Object.getOwnPropertyDescriptor(Set.prototype,"size"))==null?void 0:_b2.get;function hasSlot(value,method,args=[]){if(value===null||typeof value!=="object"&&typeof value!=="function")return false;try{method.apply(value,args);return true}catch{return false}}var taggedAs=tag=>value=>tagOf(value)===tag;var internalUtilTypes={isArgumentsObject:taggedAs("[object Arguments]"),isArrayBuffer:taggedAs("[object ArrayBuffer]"),isSharedArrayBuffer:taggedAs("[object SharedArrayBuffer]"),isAnyArrayBuffer:value=>tagOf(value)==="[object ArrayBuffer]"||tagOf(value)==="[object SharedArrayBuffer]",isArrayBufferView:value=>ArrayBuffer.isView(value),isDataView:taggedAs("[object DataView]"),isTypedArray:value=>ArrayBuffer.isView(value)&&tagOf(value)!=="[object DataView]",isUint8Array:taggedAs("[object Uint8Array]"),isAsyncFunction:taggedAs("[object AsyncFunction]"),isGeneratorFunction:value=>tagOf(value)==="[object GeneratorFunction]"||tagOf(value)==="[object AsyncGeneratorFunction]",isGeneratorObject:value=>tagOf(value)==="[object Generator]"||tagOf(value)==="[object AsyncGenerator]",isRegExp:taggedAs("[object RegExp]"),isMapIterator:taggedAs("[object Map Iterator]"),isSetIterator:taggedAs("[object Set Iterator]"),isModuleNamespaceObject:taggedAs("[object Module]"),isPromise:taggedAs("[object Promise]"),isNativeError:value=>value instanceof Error&&tagOf(value)==="[object Error]",isBooleanObject:value=>hasSlot(value,Boolean.prototype.valueOf),isNumberObject:value=>hasSlot(value,Number.prototype.valueOf),isStringObject:value=>hasSlot(value,String.prototype.valueOf),isSymbolObject:value=>hasSlot(value,Symbol.prototype.valueOf),isBigIntObject:value=>hasSlot(value,BigInt.prototype.valueOf),isDate:value=>hasSlot(value,Date.prototype.valueOf),isMap:value=>hasSlot(value,mapSize),isSet:value=>hasSlot(value,setSize),isWeakMap:value=>hasSlot(value,WeakMap.prototype.has,["x"]),isWeakSet:value=>hasSlot(value,WeakSet.prototype.has,["x"]),isKeyObject:()=>false,isCryptoKey:value=>typeof CryptoKey!=="undefined"&&value instanceof CryptoKey,isExternal:()=>false,isProxy:value=>(typeof value==="object"||typeof value==="function")&&value!==null&&recordedProxies.has(value)};internalUtilTypes.isBoxedPrimitive=value=>internalUtilTypes.isBooleanObject(value)||internalUtilTypes.isNumberObject(value)||internalUtilTypes.isStringObject(value)||internalUtilTypes.isSymbolObject(value)||internalUtilTypes.isBigIntObject(value);for(const name of["Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","Int8Array","Int16Array","Int32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]){internalUtilTypes[`is${name}`]=taggedAs(`[object ${name}]`)}function readlineModule$1(){return nodeLibInternalRequire("internal/readline/interface")}var internalConsoleGlobal=new Proxy({},{get:(_target,key)=>Reflect.get(globalThis.console,key),ownKeys:()=>Reflect.ownKeys(globalThis.console),getOwnPropertyDescriptor:(_target,key)=>({configurable:true,enumerable:true,get:()=>Reflect.get(globalThis.console,key)})});var internalProcessExecution={tryGetCwd:()=>{var _a22,_b22;try{return((_b22=(_a22=globalThis.process)==null?void 0:_a22.cwd)==null?void 0:_b22.call(_a22))??""}catch{return""}}};var internalProcessWarning={emitWarningSync:(warning,type2,code22)=>{const realm=globalThis.process;if(typeof(realm==null?void 0:realm.emitWarning)==="function"){realm.emitWarning(warning,type2,code22);return}try{console.error(String(warning))}catch{}}};var internalSourceMapCache={findSourceMap:()=>void 0,maybeCacheSourceMap:()=>{},sourceMapCacheToObject:()=>void 0,getSourceMapsSupport:()=>({enabled:false,nodeModules:false,generatedCode:false}),setSourceMapsSupport:()=>{},rekeySourceMap:()=>{}};var internalUndici={get WebSocket(){return globalThis.WebSocket},get CloseEvent(){return globalThis.CloseEvent},get MessageEvent(){return globalThis.MessageEvent}};var internalReadlineInterface={get Interface(){return readlineInterface()}};var readlineInterfaceCache;function readlineInterface(){return readlineInterfaceCache??(readlineInterfaceCache=readlineModule$1().Interface)}var internalJsTransferable={markTransferMode:()=>{},kDeserialize:Symbol.for("nodejs.transfer.deserialize"),kTransfer:Symbol.for("nodejs.transfer.transfer"),kTransferList:Symbol.for("nodejs.transfer.transferList"),kClone:Symbol.for("nodejs.transfer.clone"),setDeserializerCreateObjectFunction:()=>{}};var nextAsyncId$2=1;var symbols={async_id_symbol:Symbol("async_id_symbol"),trigger_async_id_symbol:Symbol("trigger_async_id_symbol"),owner_symbol:Symbol("owner_symbol"),init_symbol:Symbol("init_symbol"),destroy_symbol:Symbol("destroy_symbol"),async_id_fields:Symbol("async_id_fields")};var internalAsyncHooks={symbols,newAsyncId:()=>nextAsyncId$2++,getOrSetAsyncId:object=>{const key=symbols.async_id_symbol;if(Object.prototype.hasOwnProperty.call(object,key))return object[key];object[key]=nextAsyncId$2++;return object[key]},getDefaultTriggerAsyncId:()=>0,defaultTriggerAsyncIdScope:(_triggerAsyncId2,block,...args)=>block(...args),initHooksExist:()=>false,afterHooksExist:()=>false,destroyHooksExist:()=>false,emitInit:()=>{},emitBefore:()=>{},emitAfter:()=>{},emitDestroy:()=>{},hasAsyncIdStack:()=>false,registerDestroyHook:()=>{}};var nextAsyncResourceId=1;var AsyncResource$1=(_c2=class{constructor(_type2,options){__privateAdd(this,_asyncId);__privateAdd(this,_triggerAsyncId);__privateSet(this,_asyncId,nextAsyncResourceId++);__privateSet(this,_triggerAsyncId,(options==null?void 0:options.triggerAsyncId)??0)}runInAsyncScope(fn2,thisArg,...args){return fn2.apply(thisArg,args)}emitDestroy(){return this}asyncId(){return __privateGet(this,_asyncId)}triggerAsyncId(){return __privateGet(this,_triggerAsyncId)}static bind(fn2,_type2){return fn2}},_asyncId=new WeakMap,_triggerAsyncId=new WeakMap,_c2);var kTimeout=Symbol("timeout");function realmSetTimeout(fn2,ms2){const realm=globalThis;return(realm.__browserRuntimeNativeSetTimeout??globalThis.setTimeout).call(globalThis,fn2,ms2)}function realmClearTimeout(id2){const realm=globalThis;(realm.__browserRuntimeNativeClearTimeout??globalThis.clearTimeout).call(globalThis,id2)}var UnrefTimeout=class{constructor(onTimeout,msecs){__publicField2(this,"id",null);__publicField2(this,"onTimeout");__publicField2(this,"msecs");this.onTimeout=onTimeout;this.msecs=msecs;this.id=realmSetTimeout(()=>{this.id=null;this.onTimeout()},msecs)}refresh(){if(this.id!==null)realmClearTimeout(this.id);this.id=realmSetTimeout(()=>{this.id=null;this.onTimeout()},this.msecs);return this}stop(){if(this.id!==null)realmClearTimeout(this.id);this.id=null}ref(){return this}unref(){return this}hasRef(){return false}};var TIMEOUT_MAX=2**31-1;var internalTimers={kTimeout,TIMEOUT_MAX,setUnrefTimeout:(fn2,msecs)=>new UnrefTimeout(fn2,msecs),getTimerDuration(msecs,name){if(typeof msecs!=="number"){throw Object.assign(new TypeError(`The "${name}" argument must be of type number. Received ${typeof msecs}`),{code:"ERR_INVALID_ARG_TYPE"})}if(msecs<0||!Number.isFinite(msecs)){throw Object.assign(new RangeError(`The value of "${name}" is out of range. It must be a non-negative finite number. Received ${msecs}`),{code:"ERR_OUT_OF_RANGE"})}if(msecs===0)return 0;if(msecs>TIMEOUT_MAX)return 1;return msecs<1?1:msecs}};var internalStreamsState={getDefaultHighWaterMark:objectMode=>objectMode?16:65536,setDefaultHighWaterMark:()=>{}};var internalTaskQueues={queueMicrotask:fn2=>queueMicrotask(fn2),setHasTickScheduled:()=>{},runNextTicks:()=>{}};var kEventsSymbol=Symbol.for("nodejs.event_target.events");if(typeof EventTarget==="function"&&!(kEventsSymbol in EventTarget.prototype)){const empty2=new Map;Object.defineProperty(EventTarget.prototype,kEventsSymbol,{get:()=>empty2,configurable:true})}var internalEventTarget={kResistStopPropagation:Symbol("kResistStopPropagation"),kWeakHandler:Symbol("kWeakHandler"),isEventTarget:value=>typeof EventTarget==="function"&&value instanceof EventTarget,kEvents:kEventsSymbol,kNewListener:Symbol("kNewListener"),kRemoveListener:Symbol("kRemoveListener")};var optionValues={"--network-family-autoselection":true,"--network-family-autoselection-attempt-timeout":250,"--no-deprecation":false,"--throw-deprecation":false,"--trace-deprecation":false,"--pending-deprecation":false,"--report-uncaught-exception":false,"--experimental-print-required-tla":false,"--max-http-header-size":16*1024,"--insecure-http-parser":false,"--enable-source-maps":false,"--experimental-transform-types":false};var optionOverrides=null;function withOptionValues(overrides,fn2){const previous=optionOverrides;optionOverrides={...previous??{},...overrides};try{return fn2()}finally{optionOverrides=previous}}var internalOptions={getOptionValue:name=>optionOverrides!==null&&name in optionOverrides?optionOverrides[name]:optionValues[name],getEmbedderOptions:()=>({shouldNotRegisterESMLoader:false,noGlobalSearchPaths:false,noBrowserGlobals:false})};var internalPerfObserve={hasObserver:()=>false,startPerf:()=>{},stopPerf:()=>{}};function internalAssert(value,message){if(!value)throw new Error(`Internal assertion failed${message?`: ${message}`:""}`)}internalAssert.fail=message=>{throw new Error(`Internal assertion failed${message?`: ${message}`:""}`)};internalAssert.ok=internalAssert;var internalStartupSnapshot={namespace:{isBuildingSnapshot:()=>false,addSerializeCallback:()=>{},addDeserializeCallback:()=>{},setDeserializeMainFunction:()=>{}},runDeserializeCallbacks:()=>{}};var internalPermission={isEnabled:()=>false,has:()=>true,availableFlags:()=>[]};var installed$1;function setLibRequire(lib){installed$1=lib}function libRequire(specifier){if(installed$1===void 0){throw new Error(`node-lib: '${specifier}' was asked for before the loader was installed`)}return installed$1(specifier)}function internalNet(){return libRequire("internal/net")}function convertIpv6StringToBuffer(address){const bytes2=new Uint8Array(16);let text=address.split("%")[0];if(text.startsWith("[")&&text.endsWith("]"))text=text.slice(1,-1);const tail=[];const dotted=/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/.exec(text);if(dotted){for(const part of dotted[1].split("."))tail.push(Number(part)&255);text=text.slice(0,dotted.index);if(text.endsWith(":")&&!text.endsWith("::"))text=text.slice(0,-1)}const[head,rest]=text.split("::");const readGroups=piece=>{const out=[];for(const group of piece.split(":")){if(group==="")continue;const value=Number.parseInt(group,16);out.push(value>>8&255,value&255)}return out};const left=readGroups(head??"");const right=rest===void 0?[]:readGroups(rest);const all=rest===void 0?[...left,...tail]:[...left,...new Array(16-left.length-right.length-tail.length).fill(0),...right,...tail];bytes2.set(all.slice(0,16));return bytes2}var caresWrapBinding={get isIP(){return internalNet().isIP},get isIPv4(){return internalNet().isIPv4},get isIPv6(){return internalNet().isIPv6},convertIpv6StringToBuffer};function isIP(value){return libRequire("internal/net").isIP(value)}function toNumber(address,family){if(family==="ipv4"){let value2=0n;for(const part of address.split("."))value2=value2<<8n|BigInt(Number(part)&255);return value2}let value=0n;for(const byte of convertIpv6StringToBuffer(address))value=value<<8n|BigInt(byte);return value}var kAddress=Symbol("address");var kPort=Symbol("port");var kFamily=Symbol("family");var kFlowLabel=Symbol("flowlabel");var SocketAddress=class _SocketAddress{constructor(options={}){const family=(options.family??"ipv4").toLowerCase();if(family!=="ipv4"&&family!=="ipv6"){throw Object.assign(new TypeError(`The argument 'options.family' must be one of: 'ipv4', 'ipv6'. Received '${options.family}'`),{code:"ERR_INVALID_ARG_VALUE"})}const address=options.address??(family==="ipv4"?"127.0.0.1":"::");if(typeof address!=="string"||isIP(address)===0){throw Object.assign(new TypeError(`The argument 'options.address' is invalid. Received '${address}'`),{code:"ERR_INVALID_ARG_VALUE"})}const port2=options.port??0;if(typeof port2!=="number"||!Number.isInteger(port2)||port2<0||port2>65535){throw Object.assign(new RangeError(`The value of "options.port" is out of range. It must be >= 0 && <= 65535. Received ${port2}`),{code:"ERR_OUT_OF_RANGE"})}this[kAddress]=address;this[kPort]=port2;this[kFamily]=family;this[kFlowLabel]=options.flowlabel??0}get address(){return this[kAddress]}get port(){return this[kPort]}get family(){return this[kFamily]}get flowlabel(){return this[kFlowLabel]}toJSON(){return{address:this.address,port:this.port,family:this.family,flowlabel:this.flowlabel}}static isSocketAddress(value){return value instanceof _SocketAddress}static parse(input){try{const url2=new URL(`http://${input}`);const host2=url2.hostname.startsWith("[")?url2.hostname.slice(1,-1):url2.hostname;const family=isIP(host2)===6?"ipv6":"ipv4";return new _SocketAddress({address:host2,port:Number(url2.port||0),family})}catch{return void 0}}};var BlockList=class _BlockList{constructor(){__publicField2(this,"entries",[])}static familyOf(family){const name=(family??"ipv4").toLowerCase();if(name!=="ipv4"&&name!=="ipv6"){throw Object.assign(new TypeError(`The argument 'family' must be one of: 'ipv4', 'ipv6'. Received '${family}'`),{code:"ERR_INVALID_ARG_VALUE"})}return name}static addressOf(value,family){if(value instanceof SocketAddress)return value.address;if(typeof value!=="string"||isIP(value)===0){throw Object.assign(new TypeError(`The argument 'address' is invalid. Received '${String(value)}'`),{code:"ERR_INVALID_ARG_VALUE"})}return value}addAddress(address,family){const name=address instanceof SocketAddress?address.family:_BlockList.familyOf(family);const text=_BlockList.addressOf(address,name);this.entries.push({kind:"address",family:name,value:toNumber(text,name),text:`Address: ${name.toUpperCase()} ${text}`})}addRange(start,end,family){const name=start instanceof SocketAddress?start.family:_BlockList.familyOf(family);const from=_BlockList.addressOf(start,name);const to2=_BlockList.addressOf(end,name);const low=toNumber(from,name);const high=toNumber(to2,name);if(high<low){throw Object.assign(new TypeError("The argument 'end' is invalid."),{code:"ERR_INVALID_ARG_VALUE"})}this.entries.push({kind:"range",family:name,start:low,end:high,text:`Range: ${name.toUpperCase()} ${from}-${to2}`})}addSubnet(network,prefix2,family){const name=network instanceof SocketAddress?network.family:_BlockList.familyOf(family);const text=_BlockList.addressOf(network,name);const bits=name==="ipv4"?32:128;if(typeof prefix2!=="number"||!Number.isInteger(prefix2)||prefix2<0||prefix2>bits){throw Object.assign(new RangeError(`The value of "prefix" is out of range. It must be >= 0 && <= ${bits}. Received ${prefix2}`),{code:"ERR_OUT_OF_RANGE"})}const mask=prefix2===0?0n:(1n<<BigInt(prefix2))-1n<<BigInt(bits-prefix2);this.entries.push({kind:"subnet",family:name,network:toNumber(text,name)&mask,mask,text:`Subnet: ${name.toUpperCase()} ${text}/${prefix2}`})}check(address,family){const name=address instanceof SocketAddress?address.family:(family??"ipv4").toLowerCase();if(name!=="ipv4"&&name!=="ipv6")return false;const text=address instanceof SocketAddress?address.address:address;if(typeof text!=="string"||isIP(text)===0)return false;const value=toNumber(text,name);for(const rule of this.entries){if(rule.family!==name)continue;if(rule.kind==="address"&&rule.value===value)return true;if(rule.kind==="range"&&value>=rule.start&&value<=rule.end)return true;if(rule.kind==="subnet"&&(value&rule.mask)===rule.network)return true}return false}get rules(){return this.entries.map(rule=>rule.text)}static isBlockList(value){return value instanceof _BlockList}};var internalSocketAddress={SocketAddress,kSocketAddressHandle:Symbol("kSocketAddressHandle")};var internalBlockList={BlockList};function parse$1(urlString,parseQueryString=false,slashesDenoteHost=false){var _a22;if(typeof urlString==="string"&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(urlString)&&!urlString.startsWith("//")){const __hashAt=urlString.indexOf("#");const __hash=__hashAt>=0?urlString.slice(__hashAt):null;const __beforeHash=__hashAt>=0?urlString.slice(0,__hashAt):urlString;const __searchAt=__beforeHash.indexOf("?");const __search=__searchAt>=0?__beforeHash.slice(__searchAt):null;const __pathname=__searchAt>=0?__beforeHash.slice(0,__searchAt):__beforeHash;return{protocol:null,slashes:null,auth:null,host:null,port:null,hostname:null,hash:__hash,search:__search,query:parseQueryString?Object.fromEntries(new URLSearchParams$1(__search||"")):__search?__search.slice(1):null,pathname:__pathname||null,path:__pathname+(__search||"")||null,href:urlString}}try{const url2=new URL$1(urlString,"http://localhost");const result={protocol:url2.protocol,slashes:url2.protocol.endsWith(":"),auth:url2.username?`${url2.username}:${url2.password}`:null,host:url2.host,port:url2.port||null,hostname:url2.hostname,hash:url2.hash||null,search:url2.search||null,query:parseQueryString?Object.fromEntries(url2.searchParams):((_a22=url2.search)==null?void 0:_a22.slice(1))||null,pathname:url2.pathname,path:url2.pathname+url2.search,href:url2.href};return result}catch{return{protocol:null,slashes:null,auth:null,host:null,port:null,hostname:null,hash:null,search:null,query:null,pathname:urlString,path:urlString,href:urlString}}}function format$1(urlObject){if(urlObject.href){return urlObject.href}let result="";if(urlObject.protocol){result+=urlObject.protocol;if(!urlObject.protocol.endsWith(":")){result+=":"}}if(urlObject.slashes||urlObject.protocol==="http:"||urlObject.protocol==="https:"){result+="//"}if(urlObject.auth){result+=urlObject.auth+"@"}if(urlObject.hostname){result+=urlObject.hostname}else if(urlObject.host){result+=urlObject.host}if(urlObject.port){result+=":"+urlObject.port}if(urlObject.pathname){result+=urlObject.pathname}if(urlObject.search){result+=urlObject.search}else if(urlObject.query){if(typeof urlObject.query==="string"){result+="?"+urlObject.query}else{const params=new URLSearchParams$1;for(const[key,value]of Object.entries(urlObject.query)){if(Array.isArray(value)){for(const v2 of value){params.append(key,v2)}}else{params.set(key,value)}}const search=params.toString();if(search){result+="?"+search}}}if(urlObject.hash){result+=urlObject.hash}return result}function resolve$2(from,to2){try{return new URL$1(to2,from).href}catch{return to2}}var URL$1=globalThis.URL;var URLSearchParams$1=globalThis.URLSearchParams;function fileURLToPath(url2){const urlObj=typeof url2==="string"?new globalThis.URL(url2):url2;if(urlObj.protocol!=="file:"){throw new TypeError("The URL must be of scheme file")}return decodeURIComponent(urlObj.pathname)}function pathToFileURL(path22){var _a22;if(typeof path22!=="string"){throw new TypeError('The "path" argument must be of type string. Received '+typeof path22)}const cwd=typeof((_a22=globalThis.process)==null?void 0:_a22.cwd)==="function"?globalThis.process.cwd():"/";const resolved=path22.startsWith("/")?path22:cwd.replace(/\/$/,"")+"/"+path22;return new globalThis.URL("file://"+resolved.split("/").map(segment=>encodeURIComponent(segment)).join("/"))}var URLPattern$1=globalThis.URLPattern;var url$1={parse:parse$1,format:format$1,resolve:resolve$2,URL:URL$1,URLSearchParams:URLSearchParams$1,URLPattern:URLPattern$1,fileURLToPath,pathToFileURL};var urlShim=Object.freeze(Object.defineProperty({__proto__:null,URL:URL$1,URLPattern:URLPattern$1,URLSearchParams:URLSearchParams$1,default:url$1,fileURLToPath,format:format$1,parse:parse$1,pathToFileURL,resolve:resolve$2},Symbol.toStringTag,{value:"Module"}));function errorCodes(){return libRequire("internal/errors").codes}function validatePath(path22,propName="path"){const codes2=errorCodes();const isString=typeof path22==="string";const isBytes2=path22 instanceof Uint8Array;if(!isString&&!isBytes2){throw new codes2.ERR_INVALID_ARG_TYPE(propName,["string","Buffer","URL"],path22)}if(isString?!path22.includes("\0"):!path22.includes(0))return;throw new codes2.ERR_INVALID_ARG_VALUE(propName,path22,"must be a string, Uint8Array, or URL without null bytes")}function getValidatedPath(fileURLOrPath,propName="path"){const path22=fileURLOrPath instanceof URL||typeof fileURLOrPath==="string"&&fileURLOrPath.startsWith("file://")?fileURLToPath(fileURLOrPath):fileURLOrPath;validatePath(path22,propName);return path22}var internalFsUtils={getValidatedPath,validatePath};var internalDgram={kStateSymbol:Symbol("state symbol")};var kRunFilesystem$1=Symbol.for("tabnode.run.vfs");function tree(){var _a22;const realm=globalThis;const found=(_a22=realm.process)==null?void 0:_a22[kRunFilesystem$1];if(!found){throw Object.assign(new Error("fs: this realm has no filesystem; the engine gives a run one when it starts"),{code:"ENOSYS"})}return found}function createBlobFromFilePath(path22,options){const bytes2=tree().readFileSync(path22);const copy2=new Uint8Array(bytes2.byteLength);copy2.set(bytes2);return new Blob([copy2],{type:(options==null?void 0:options.type)??""})}var blobBinding={createBlobFromFilePath};var internalAbortController={AbortController:globalThis.AbortController,AbortSignal:globalThis.AbortSignal,aborted:signal=>signal.aborted};var internalBlob={Blob:globalThis.Blob,isBlob:value=>typeof Blob==="function"&&value instanceof Blob,resolveObjectURL:()=>void 0,createBlobFromFilePath};var internalFile={File:globalThis.File};function createWebStreamsAdapters(require2=libRequire){function streamModule2(){return require2("stream")}function newReadableStreamFromStreamReadable(readable,options){const streams2=require2("stream");if(typeof(readable==null?void 0:readable._readableState)!=="object"){throw Object.assign(new TypeError("streamReadable must be a stream.Readable"),{code:"ERR_INVALID_ARG_TYPE"})}if(readable.destroyed||readable.readable===false)return new ReadableStream({start(controller2){controller2.close()}});const objectMode=Boolean(readable.readableObjectMode);const highWaterMark=Number(readable.readableHighWaterMark);const strategy=(options==null?void 0:options.strategy)??(objectMode?new CountQueuingStrategy({highWaterMark}):new ByteLengthQueuingStrategy({highWaterMark}));let canceled=false;let complete=false;let controller;const on2=readable.on;const onData=chunk=>{if(complete||canceled)return;controller.enqueue(!objectMode&&chunk instanceof Uint8Array?new Uint8Array(chunk):chunk);if((controller.desiredSize??0)<=0)readable.pause()};readable.pause();return new ReadableStream({start(output){controller=output;const cleanup=streams2.finished(readable,error=>{complete=true;cleanup();readable.removeListener("data",onData);on2.call(readable,"error",()=>{});if(canceled)return;if(error)controller.error(error);else controller.close()});on2.call(readable,"data",onData)},pull(){if(!complete&&!canceled)readable.resume()},cancel(reason){canceled=true;streams2.destroy(readable,reason)}},strategy)}function Buffer_from(chunk){const{Buffer:Buffer2}=require2("buffer");return Buffer2.from(chunk)}function newStreamReadableFromReadableStream(web){const{Readable:Readable2}=streamModule2();return Readable2.from({[Symbol.asyncIterator](){const reader=web.getReader();return{[Symbol.asyncIterator](){return this},async next(){const step=await reader.read();return step.done?{value:void 0,done:true}:{value:step.value,done:false}},async return(value){await reader.cancel();return{value,done:true}}}}})}function newWritableStreamFromStreamWritable(writable){return new WritableStream({write(chunk){return new Promise((resolve2,reject)=>{writable.write(chunk,error=>error?reject(error):resolve2())})},close(){return new Promise(resolve2=>{writable.end(resolve2)})},abort(reason){writable.destroy(reason instanceof Error?reason:void 0)}})}function newStreamWritableFromWritableStream(web){const{Writable}=streamModule2();const writer=web.getWriter();return new Writable({write(chunk,_encoding,callback){writer.write(chunk instanceof Uint8Array?chunk:Buffer_from(chunk)).then(()=>callback(null),callback)},final(callback){writer.close().then(()=>callback(null),callback)},destroy(error,callback){writer.abort(error??void 0).then(()=>callback(error),callback)}})}function newReadableWritablePairFromDuplex(duplex){return{readable:newReadableStreamFromStreamReadable(duplex),writable:newWritableStreamFromStreamWritable(duplex)}}function newStreamDuplexFromReadableWritablePair(pair){const{Duplex}=streamModule2();const writer=pair.writable.getWriter();const reader=pair.readable.getReader();const duplex=new Duplex({read(){reader.read().then(step=>{duplex.push(step.done?null:step.value)},error=>{duplex.destroy(error)})},write(chunk,_encoding,callback){writer.write(chunk instanceof Uint8Array?chunk:Buffer_from(chunk)).then(()=>callback(null),callback)},final(callback){writer.close().then(()=>callback(null),callback)}});return duplex}return{newReadableStreamFromStreamReadable,newStreamReadableFromReadableStream,newWritableStreamFromStreamWritable,newStreamWritableFromWritableStream,newReadableWritablePairFromDuplex,newStreamDuplexFromReadableWritablePair}}var internalWebStreamsAdapters=createWebStreamsAdapters();function createRequire$1(filename){return function require2(id2){throw new Error(`Cannot find module '${id2}' from '${filename}'`)}}var builtinModules$1=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/web","string_decoder","sys","timers","tls","tty","url","util","v8","vm","wasi","worker_threads","zlib"];function isBuiltin(moduleName){const name=moduleName.startsWith("node:")?moduleName.slice(5):moduleName;return builtinModules$1.includes(name)}var _cache={};var _extensions={".js":()=>{},".json":()=>{},".node":(_module,filename)=>{throw Object.assign(new Error("Cannot load native addon "+(filename||"")+": a tab runs no native code."),{code:"ERR_DLOPEN_FAILED"})}};var _pathCache={};function syncBuiltinESMExports$1(){}var Module$1={createRequire:createRequire$1,builtinModules:builtinModules$1,isBuiltin,_cache,_extensions,_pathCache,syncBuiltinESMExports:syncBuiltinESMExports$1};var moduleShim=Object.freeze(Object.defineProperty({__proto__:null,Module:Module$1,_cache,_extensions,_pathCache,builtinModules:builtinModules$1,createRequire:createRequire$1,default:Module$1,isBuiltin,syncBuiltinESMExports:syncBuiltinESMExports$1},Symbol.toStringTag,{value:"Module"}));var internalBootstrapRealm={BuiltinModule:{canBeRequiredByUsers(id2){return builtinModules$1.includes(id2)},normalizeRequirableId(id2){if(typeof id2!=="string")return void 0;const name=id2.startsWith("node:")?id2.slice(5):id2;return builtinModules$1.includes(name)?name:void 0},exists(id2){if(typeof id2!=="string")return false;const name=id2.startsWith("node:")?id2.slice(5):id2;return name.startsWith("internal/")||builtinModules$1.includes(name)}}};var internalUrl={fileURLToPath,pathToFileURL,toPathIfFileURL:value=>{if(value instanceof URL)return fileURLToPath(value);if(typeof value==="string"&&value.startsWith("file://"))return fileURLToPath(value);return value},get URL(){return globalThis.URL},isURL:value=>value instanceof URL||value!==null&&typeof value==="object"&&typeof value.href==="string"&&typeof value.origin==="string"&&typeof value.protocol==="string",urlToHttpOptions:url2=>{const options={protocol:url2.protocol,hostname:typeof url2.hostname==="string"&&url2.hostname.startsWith("[")?url2.hostname.slice(1,-1):url2.hostname,hash:url2.hash,search:url2.search,pathname:url2.pathname,path:`${url2.pathname||""}${url2.search||""}`,href:url2.href};if(url2.port!=="")options.port=Number(url2.port);if(url2.username||url2.password){options.auth=`${decodeURIComponent(url2.username)}:${decodeURIComponent(url2.password)}`}return options}};var internalEncoding={get TextDecoder(){return globalThis.TextDecoder},get TextEncoder(){return globalThis.TextEncoder}};var hostProcess$1=typeof process!=="undefined"&&process!==null?process:null;var loaded;function hostAmaro(){if(loaded!==void 0)return loaded;loaded=null;try{const moduleBuiltin=typeof(hostProcess$1==null?void 0:hostProcess$1.getBuiltinModule)==="function"?hostProcess$1.getBuiltinModule("module"):void 0;if(moduleBuiltin&&typeof moduleBuiltin.createRequire==="function"){const amaro=moduleBuiltin.createRequire(import.meta.url)("amaro");if(typeof(amaro==null?void 0:amaro.transformSync)==="function")loaded=amaro}}catch{}return loaded}function internalAmaro(){const amaro=hostAmaro();if(amaro)return amaro;throw Object.assign(new Error("Node.js is not compiled with TypeScript support"),{code:"ERR_NO_TYPESCRIPT"})}var __table$2;function nodeLibInternal(name,require2,process22){if(require2&&name==="internal/webstreams/adapters")return()=>createWebStreamsAdapters(require2);if(process22&&name==="internal/process/per_thread")return()=>({platform:process22.platform,arch:process22.arch,version:process22.version});if(process22&&name==="internal/process/execution")return()=>({tryGetCwd(){try{return process22.cwd()}catch{return""}}});if(process22&&name==="internal/process/warning")return()=>({emitWarningSync:(...args)=>process22.emitWarning(...args)});__table$2??(__table$2={"internal/util/types":()=>internalUtilTypes,"internal/async_hooks":()=>internalAsyncHooks,"internal/timers":()=>internalTimers,"internal/streams/state":()=>internalStreamsState,"internal/process/task_queues":()=>internalTaskQueues,"internal/process/permission":()=>internalPermission,"internal/event_target":()=>internalEventTarget,"internal/options":()=>internalOptions,"internal/perf/observe":()=>internalPerfObserve,"internal/assert":()=>internalAssert,"internal/v8/startup_snapshot":()=>internalStartupSnapshot,"internal/fs/utils":()=>internalFsUtils,"internal/dgram":()=>internalDgram,"internal/abort_controller":()=>internalAbortController,"internal/blob":()=>internalBlob,"internal/file":()=>internalFile,"internal/webstreams/adapters":()=>internalWebStreamsAdapters,"internal/socketaddress":()=>internalSocketAddress,"internal/blocklist":()=>internalBlockList,"internal/bootstrap/realm":()=>internalBootstrapRealm,"internal/url":()=>internalUrl,"internal/encoding":()=>internalEncoding,"internal/console/global":()=>internalConsoleGlobal,"internal/process/execution":()=>internalProcessExecution,"internal/process/warning":()=>internalProcessWarning,"internal/source_map/source_map_cache":()=>internalSourceMapCache,"internal/deps/undici/undici":()=>internalUndici,"internal/deps/amaro/dist/index":()=>internalAmaro(),"internal/readline/interface":()=>internalReadlineInterface,"internal/worker/js_transferable":()=>internalJsTransferable});return __table$2[name]}var codes={UV_E2BIG:[-7,"argument list too long"],UV_EACCES:[-13,"permission denied"],UV_EADDRINUSE:[-98,"address already in use"],UV_EADDRNOTAVAIL:[-99,"address not available"],UV_EAFNOSUPPORT:[-97,"address family not supported"],UV_EAGAIN:[-11,"resource temporarily unavailable"],UV_EALREADY:[-114,"connection already in progress"],UV_EBADF:[-9,"bad file descriptor"],UV_EBUSY:[-16,"resource busy or locked"],UV_ECANCELED:[-125,"operation canceled"],UV_ECONNABORTED:[-103,"software caused connection abort"],UV_ECONNREFUSED:[-111,"connection refused"],UV_ECONNRESET:[-104,"connection reset by peer"],UV_EEXIST:[-17,"file already exists"],UV_EFAULT:[-14,"bad address in system call argument"],UV_EHOSTUNREACH:[-113,"host is unreachable"],UV_EINTR:[-4,"interrupted system call"],UV_EINVAL:[-22,"invalid argument"],UV_EIO:[-5,"i/o error"],UV_EISCONN:[-106,"socket is already connected"],UV_EISDIR:[-21,"illegal operation on a directory"],UV_EMFILE:[-24,"too many open files"],UV_ENAMETOOLONG:[-36,"name too long"],UV_ENETDOWN:[-100,"network is down"],UV_ENETUNREACH:[-101,"network is unreachable"],UV_ENFILE:[-23,"file table overflow"],UV_ENOBUFS:[-105,"no buffer space available"],UV_ENOENT:[-2,"no such file or directory"],UV_ENOMEM:[-12,"not enough memory"],UV_ENOSYS:[-38,"function not implemented"],UV_ENOTCONN:[-107,"socket is not connected"],UV_ENOTDIR:[-20,"not a directory"],UV_ENOTEMPTY:[-39,"directory not empty"],UV_ENOTSOCK:[-88,"socket operation on non-socket"],UV_ENOTSUP:[-95,"operation not supported on socket"],UV_EOF:[-4095,"end of file"],UV_EPERM:[-1,"operation not permitted"],UV_EPIPE:[-32,"broken pipe"],UV_EPROTO:[-71,"protocol error"],UV_ESHUTDOWN:[-108,"cannot send after transport endpoint shutdown"],UV_ESRCH:[-3,"no such process"],UV_ETIMEDOUT:[-110,"connection timed out"],UV_UNKNOWN:[-4094,"unknown error"]};var names=new Map;for(const[name,[value]]of Object.entries(codes))if(!names.has(value))names.set(value,name.slice(3));if(!names.has(-49))names.set(-49,"EADDRNOTAVAIL");if(!names.has(-35))names.set(-35,"EAGAIN");function errname(code22){return names.get(code22)??`Unknown system error ${code22}`}function getErrorMap(){const map=new Map;for(const[name,[value,message]]of Object.entries(codes)){if(!map.has(value))map.set(value,[name.slice(3),message])}if(!map.has(-49))map.set(-49,["EADDRNOTAVAIL","address not available"]);if(!map.has(-35))map.set(-35,["EAGAIN","resource temporarily unavailable"]);return map}var uvBinding={errname,getErrorMap};for(const[name,[value]]of Object.entries(codes))uvBinding[name]=value;var UV_EOF=codes.UV_EOF[0];var UV_ECONNREFUSED=codes.UV_ECONNREFUSED[0];var UV_ECONNRESET=codes.UV_ECONNRESET[0];var UV_EADDRINUSE=codes.UV_EADDRINUSE[0];var UV_ENOENT=codes.UV_ENOENT[0];var UV_EPIPE=codes.UV_EPIPE[0];var UV_EINVAL=codes.UV_EINVAL[0];var UV_ECANCELED=codes.UV_ECANCELED[0];var UV_ENOTSUP=codes.UV_ENOTSUP[0];var UV_EBADF=codes.UV_EBADF[0];var UV_EIO=codes.UV_EIO[0];var UV_ENOSYS=codes.UV_ENOSYS[0];var UV_EACCES=codes.UV_EACCES[0];var UV_ENOBUFS=codes.UV_ENOBUFS[0];var UV_EMFILE=codes.UV_EMFILE[0];var UV_EBUSY=codes.UV_EBUSY[0];var UV_EALREADY=codes.UV_EALREADY[0];var UV_ESRCH=codes.UV_ESRCH[0];var kMaxLength=4294967296-1;var kStringMaxLength$1=536870888;var ASCII=0;var BASE64=2;var UCS2=3;var LATIN1=4;var HEX=5;var BASE64URL=7;var encoder$1=new TextEncoder;var utf8Decoder=new TextDecoder("utf-8");var latin1Decoder=new TextDecoder("latin1");var ucs2Decoder=new TextDecoder("utf-16le");var HEX_DIGITS="0123456789abcdef";function asBytes(value){return value}function clamp(buffer2,start,end){const length=buffer2.length;let from=start===void 0||Number.isNaN(start)?0:Math.trunc(start);let to2=end===void 0||Number.isNaN(end)?length:Math.trunc(end);if(from<0)from=0;if(to2>length)to2=length;if(to2<from)to2=from;return[from,to2]}function utf8WriteStatic(buf,string,offset2=0,length=buf.byteLength-offset2){const room=Math.min(length,buf.byteLength-offset2);if(room<=0)return 0;const{written}=encoder$1.encodeInto(string,buf.subarray(offset2,offset2+room));return written??0}function asciiWriteStatic(buf,string,offset2=0,length=buf.byteLength-offset2){const room=Math.min(length,buf.byteLength-offset2,string.length);for(let index2=0;index2<room;index2+=1)buf[offset2+index2]=string.charCodeAt(index2)&127;return room<0?0:room}function latin1WriteStatic(buf,string,offset2=0,length=buf.byteLength-offset2){const room=Math.min(length,buf.byteLength-offset2,string.length);for(let index2=0;index2<room;index2+=1)buf[offset2+index2]=string.charCodeAt(index2)&255;return room<0?0:room}function ucs2Write(string,offset2=0,length=this.byteLength-offset2){const room=Math.min(length,this.byteLength-offset2);const units=Math.min(string.length,Math.floor(room/2));for(let index2=0;index2<units;index2+=1){const code22=string.charCodeAt(index2);this[offset2+index2*2]=code22&255;this[offset2+index2*2+1]=code22>>>8}return units*2}function hexWrite(string,offset2=0,length=this.byteLength-offset2){const room=Math.min(length,this.byteLength-offset2);const pairs=Math.min(Math.floor(string.length/2),room);let written=0;for(let index2=0;index2<pairs;index2+=1){const high=hexValue(string.charCodeAt(index2*2));const low=hexValue(string.charCodeAt(index2*2+1));if(high<0||low<0)break;this[offset2+index2]=high<<4|low;written+=1}return written}function hexValue(code22){if(code22>=48&&code22<=57)return code22-48;if(code22>=97&&code22<=102)return code22-87;if(code22>=65&&code22<=70)return code22-55;return-1}var BASE64_ALPHABET="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function base64Bytes(string){let cleaned="";for(let index2=0;index2<string.length;index2+=1){const ch22=string[index2];if(ch22==="=")break;if(ch22==="-"){cleaned+="+";continue}if(ch22==="_"){cleaned+="/";continue}if(BASE64_ALPHABET.indexOf(ch22)>=0)cleaned+=ch22}const usable=cleaned.length-(cleaned.length%4===1?1:0);const bytes2=[];let bits=0;let held=0;for(let index2=0;index2<usable;index2+=1){const value=BASE64_ALPHABET.indexOf(cleaned[index2]);held=held<<6|value;bits+=6;if(bits>=8){bits-=8;bytes2.push(held>>bits&255)}}return new Uint8Array(bytes2)}function base64Write(string,offset2=0,length=this.byteLength-offset2){const bytes2=base64Bytes(string);const room=Math.min(length,this.byteLength-offset2,bytes2.length);if(room<=0)return 0;this.set(bytes2.subarray(0,room),offset2);return room}function base64urlWrite(string,offset2=0,length=this.byteLength-offset2){const bytes2=base64Bytes(string);const room=Math.min(length,this.byteLength-offset2,bytes2.length);if(room<=0)return 0;this.set(bytes2.subarray(0,room),offset2);return room}function utf8Slice(start,end){const[from,to2]=clamp(this,start,end);return utf8Decoder.decode(this.subarray(from,to2))}function asciiSlice(start,end){const[from,to2]=clamp(this,start,end);let out="";for(let index2=from;index2<to2;index2+=1)out+=String.fromCharCode(this[index2]&127);return out}function latin1Slice(start,end){const[from,to2]=clamp(this,start,end);return latin1Decoder.decode(this.subarray(from,to2))}function ucs2Slice(start,end){const[from,to2]=clamp(this,start,end);const whole=to2-(to2-from)%2;const bytes2=this.subarray(from,whole);const aligned=bytes2.byteOffset%2===0?bytes2:new Uint8Array(bytes2);return ucs2Decoder.decode(aligned)}function hexSlice(start,end){const[from,to2]=clamp(this,start,end);let out="";for(let index2=from;index2<to2;index2+=1){const byte=this[index2];out+=HEX_DIGITS[byte>>>4];out+=HEX_DIGITS[byte&15]}return out}var nativeBase64=typeof Uint8Array.prototype.toBase64==="function";function base64Text(bytes2,url2){if(nativeBase64){return bytes2.toBase64({alphabet:url2?"base64url":"base64",omitPadding:url2})}const alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let out="";for(let index2=0;index2<bytes2.length;index2+=3){const a=bytes2[index2];const b=index2+1<bytes2.length?bytes2[index2+1]:-1;const c=index2+2<bytes2.length?bytes2[index2+2]:-1;out+=alphabet[a>>>2];out+=alphabet[(a&3)<<4|(b<0?0:b>>>4)];out+=b<0?"=":alphabet[(b&15)<<2|(c<0?0:c>>>6)];out+=c<0?"=":alphabet[c&63]}if(!url2)return out;return out.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}function base64Slice(start,end){const[from,to2]=clamp(this,start,end);return base64Text(this.subarray(from,to2),false)}function base64urlSlice(start,end){const[from,to2]=clamp(this,start,end);return base64Text(this.subarray(from,to2),true)}function byteLengthUtf8(string){let length=0;for(let index2=0;index2<string.length;index2+=1){const code22=string.charCodeAt(index2);if(code22<128)length+=1;else if(code22<2048)length+=2;else if(code22>=55296&&code22<56320&&index2+1<string.length){const next2=string.charCodeAt(index2+1);if(next2>=56320&&next2<57344){length+=4;index2+=1}else length+=3}else length+=3}return length}function compare(a,b){return compareRanges(asBytes(a),0,a.length,asBytes(b),0,b.length)}function compareOffset(source,target,targetStart=0,sourceStart=0,targetEnd=target.length,sourceEnd=source.length){return compareRanges(source,sourceStart,sourceEnd,target,targetStart,targetEnd)}function compareRanges(a,aStart,aEnd,b,bStart,bEnd){const aLength=aEnd-aStart;const bLength=bEnd-bStart;const shared=Math.min(aLength,bLength);for(let index2=0;index2<shared;index2+=1){const left=a[aStart+index2];const right=b[bStart+index2];if(left!==right)return left<right?-1:1}if(aLength===bLength)return 0;return aLength<bLength?-1:1}function copy(source,target,targetStart=0,sourceStart=0,toCopy=source.length-sourceStart){const room=Math.min(toCopy,source.length-sourceStart,target.length-targetStart);if(room<=0)return 0;target.set(source.subarray(sourceStart,sourceStart+room),targetStart);return room}function fill(buf,value,start,end,encoding){const[from,to2]=clamp(buf,start,end);if(to2<=from)return 0;let pattern;if(typeof value==="string"){pattern=bytesOfString(value,encoding??"utf8")}else if(value instanceof Uint8Array){pattern=value}else{return-1}if(pattern.length===0)return-1;for(let index2=from;index2<to2;index2+=1){buf[index2]=pattern[(index2-from)%pattern.length]}return to2-from}function bytesOfString(value,encoding){switch(encoding){case"ascii":{const out=new Uint8Array(value.length);asciiWriteStatic(out,value,0,out.length);return out}case"latin1":case"binary":{const out=new Uint8Array(value.length);latin1WriteStatic(out,value,0,out.length);return out}case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":{const out=new Uint8Array(value.length*2);ucs2Write.call(out,value,0,out.length);return out}case"hex":{const out=new Uint8Array(Math.floor(value.length/2));const written=hexWrite.call(out,value,0,out.length);return out.subarray(0,written)}case"base64":case"base64url":return base64Bytes(value);default:return encoder$1.encode(value)}}function indexOfNumber(buffer2,value,byteOffset,isForward){const byte=value&255;if(isForward){let from2=byteOffset<0?buffer2.length+byteOffset:byteOffset;if(from2<0)from2=0;for(let index2=from2;index2<buffer2.length;index2+=1)if(buffer2[index2]===byte)return index2;return-1}let from=byteOffset<0?buffer2.length+byteOffset:Math.min(byteOffset,buffer2.length-1);if(from>=buffer2.length)from=buffer2.length-1;for(let index2=from;index2>=0;index2-=1)if(buffer2[index2]===byte)return index2;return-1}function indexOfBuffer(buffer2,value,byteOffset,encoding,isForward){const step=encoding===UCS2?2:1;return searchBytes(buffer2,value,byteOffset,isForward,step)}function indexOfString(buffer2,value,byteOffset,encoding,isForward){const name=encoding===UCS2?"utf16le":encoding===LATIN1?"latin1":encoding===ASCII?"ascii":encoding===HEX?"hex":encoding===BASE64?"base64":encoding===BASE64URL?"base64url":"utf8";return indexOfBuffer(buffer2,bytesOfString(value,name),byteOffset,encoding,isForward)}function searchBytes(buffer2,needle,byteOffset,isForward,step){const length=buffer2.length;if(needle.length===0){if(isForward)return byteOffset>length?length:byteOffset<0?Math.max(0,length+byteOffset):byteOffset;return byteOffset>length?length:byteOffset<0?Math.max(0,length+byteOffset):byteOffset}if(needle.length>length)return-1;const matches=at22=>{for(let index2=0;index2<needle.length;index2+=1)if(buffer2[at22+index2]!==needle[index2])return false;return true};if(isForward){let from2=byteOffset<0?length+byteOffset:byteOffset;if(from2<0)from2=0;if(step===2&&from2%2!==0)from2+=1;for(let index2=from2;index2+needle.length<=length;index2+=step)if(matches(index2))return index2;return-1}let from=byteOffset<0?length+byteOffset:byteOffset;if(from>length-needle.length)from=length-needle.length;if(from<0)return-1;if(step===2&&from%2!==0)from-=1;for(let index2=from;index2>=0;index2-=step)if(matches(index2))return index2;return-1}function swap16(buf){for(let index2=0;index2<buf.length;index2+=2){const a=buf[index2];buf[index2]=buf[index2+1];buf[index2+1]=a}return buf}function swap32(buf){for(let index2=0;index2<buf.length;index2+=4){for(let at22=0;at22<2;at22+=1){const a=buf[index2+at22];buf[index2+at22]=buf[index2+3-at22];buf[index2+3-at22]=a}}return buf}function swap64(buf){for(let index2=0;index2<buf.length;index2+=8){for(let at22=0;at22<4;at22+=1){const a=buf[index2+at22];buf[index2+at22]=buf[index2+7-at22];buf[index2+7-at22]=a}}return buf}function isUtf8(buf){try{new TextDecoder("utf-8",{fatal:true}).decode(buf);return true}catch{return false}}function isAscii(buf){for(let index2=0;index2<buf.length;index2+=1)if(buf[index2]>127)return false;return true}function atob$1(input){try{return globalThis.atob(input)}catch{return-1}}function btoa$1(input){try{return globalThis.btoa(input)}catch{return-1}}var zeroFillToggle=new Uint32Array(1);function getZeroFillToggle(){return zeroFillToggle}function detachArrayBuffer(buffer2){try{structuredClone(buffer2,{transfer:[buffer2]})}catch{}}function copyArrayBuffer(dest,destOffset,source,sourceOffset,length){new Uint8Array(dest).set(new Uint8Array(source,sourceOffset,length),destOffset)}function setBufferPrototype(_proto){}function createFromString(string,encoding){return bytesOfString(string,encoding===UCS2?"utf16le":encoding===LATIN1?"latin1":"utf8")}var bufferBinding={byteLengthUtf8,compare,compareOffset,copy,fill,isAscii,isUtf8,indexOfBuffer,indexOfNumber,indexOfString,swap16,swap32,swap64,kMaxLength,kStringMaxLength:kStringMaxLength$1,atob:atob$1,btoa:btoa$1,asciiSlice,base64Slice,base64urlSlice,latin1Slice,hexSlice,ucs2Slice,utf8Slice,asciiWriteStatic,base64Write,base64urlWrite,latin1WriteStatic,hexWrite,ucs2Write,utf8WriteStatic,getZeroFillToggle,detachArrayBuffer,copyArrayBuffer,setBufferPrototype,createFromString};var ROOT_FRAME=new Map;var currentFrame=ROOT_FRAME;var nativeQueueMicrotask=globalThis.queueMicrotask.bind(globalThis);var resetQueued=false;var resetFrame=()=>{resetQueued=false;currentFrame=ROOT_FRAME};var resumeFrame=frame=>{if(frame===currentFrame)return;currentFrame=frame;if(!resetQueued){resetQueued=true;nativeQueueMicrotask(resetFrame)}};var withFrame=(frame,callback)=>{const previous=currentFrame;currentFrame=frame;try{return callback()}finally{currentFrame=previous}};var AsyncLocalStorage=class _AsyncLocalStorage{static snapshot(){const captured=currentFrame;return(callback,...args)=>withFrame(captured,()=>callback(...args))}static bind(callback){const snapshot=_AsyncLocalStorage.snapshot();return(...args)=>snapshot(callback,...args)}disable(){if(!currentFrame.has(this))return;const next2=new Map(currentFrame);next2.delete(this);currentFrame=next2}getStore(){return currentFrame.get(this)}run(store,callback,...args){const next2=new Map(currentFrame);next2.set(this,store);return withFrame(next2,()=>callback(...args))}exit(callback){const next2=new Map(currentFrame);next2.delete(this);return withFrame(next2,callback)}enterWith(store){const next2=new Map(currentFrame);next2.set(this,store);currentFrame=next2}};var AsyncResource=class{constructor(_type2,_options2){__publicField2(this,"frame",currentFrame)}runInAsyncScope(fn2,thisArg,...args){return withFrame(this.frame,()=>fn2.apply(thisArg,args))}emitDestroy(){return this}asyncId(){return 0}triggerAsyncId(){return 0}static bind(fn2,_type2){return AsyncLocalStorage.bind(fn2)}};forGuestRealm(()=>{if(globalThis.__substrateCarried)return;const carried=callback=>{if(typeof callback!=="function")return callback;const restore=AsyncLocalStorage.snapshot();return function(...args){return restore(()=>callback.apply(this,args))}};for(const name of["setTimeout","setInterval","setImmediate","queueMicrotask"]){const original=globalThis[name];if(typeof original!=="function")continue;const wrapped=function(callback,...rest){return original.call(this,carried(callback),...rest)};Object.defineProperty(wrapped,"name",{value:name});takeFromHost(globalThis,name,wrapped)}const then=Promise.prototype.then;const carriedThen=function(onFulfilled,onRejected){return then.call(this,carried(onFulfilled),carried(onRejected))};takeFromHost(Promise.prototype,"then",carriedThen);takeFromHost(globalThis,"__substrateCarried",carried);takeFromHost(globalThis,"__substrateContext",()=>currentFrame);takeFromHost(globalThis,"__substrateResume",(frame,value)=>{resumeFrame(frame);return value});takeFromHost(globalThis,"__substrateRestore",frame=>{resumeFrame(frame)})});function createHook(_callbacks){return{enable(){return this},disable(){return this}}}function executionAsyncId(){return 0}function executionAsyncResource(){return{}}function triggerAsyncId(){return 0}var asyncHooksShim={AsyncResource,AsyncLocalStorage,createHook,executionAsyncId,executionAsyncResource,triggerAsyncId};var asyncHooksShim$1=Object.freeze(Object.defineProperty({__proto__:null,AsyncLocalStorage,AsyncResource,createHook,default:asyncHooksShim,executionAsyncId,executionAsyncResource,triggerAsyncId},Symbol.toStringTag,{value:"Module"}));function describedIdentity(identity){const{pid,ppid,argv,cwd,startedAt}=identity;const described={pid,ppid};if(Array.isArray(argv)&&argv.length<=4096&&argv.every(arg=>typeof arg==="string"))described.argv=Object.freeze([...argv]);if(typeof cwd==="string"&&cwd.startsWith("/"))described.cwd=cwd;if(typeof startedAt==="number"&&Number.isFinite(startedAt))described.startedAt=startedAt;return Object.freeze(described)}function createProcessRegistryOwner(){let nextPid2=1e3+Math.floor(Math.random()*3e4);const live2=new Map;const receivers=new Map;const scopes2=new WeakMap;return{createScope(){const allocated2=new Set;const runs2=new Map;let disposed=false;const receiver={};const active2=()=>{if(disposed)throw new Error("Process registry scope is closed.")};const scope4={adoptRun(source,sourceToken,token,parentPid){active2();const parent=scopes2.get(source);if(!parent)throw new Error("Process scopes belong to different container owners.");parent.active();if(allocated2.size||runs2.size)throw new Error("Process handoff requires an unused destination scope.");if(typeof sourceToken!=="string"||typeof token!=="string"||!token.length)throw new Error("Invalid process handoff token.");const identity=parent.runs.get(sourceToken);if(!identity||live2.get(identity.pid)!==identity)throw new Error("Source scope does not own that live process.");if(parentPid!==void 0){if(!Number.isSafeInteger(parentPid)||parentPid<1||identity.pid===parentPid||identity.ppid!==parentPid){throw new Error("Process admission does not name a child of the source realm.")}}parent.runs.delete(sourceToken);parent.allocated.delete(identity.pid);allocated2.add(identity.pid);runs2.set(token,identity);receivers.set(identity.pid,receiver);return identity},allocate(){active2();if(nextPid2>2147483647)throw new Error("Process identifier space exhausted.");const pid=nextPid2++;allocated2.add(pid);return pid},publish(token,identity){active2();const previous=runs2.get(token);if((previous==null?void 0:previous.pid)===identity.pid&&previous.ppid===identity.ppid)return;if(previous||!allocated2.has(identity.pid)||live2.has(identity.pid)){throw new Error("Process identity is not owned by this run.")}if(!Number.isInteger(identity.ppid)||identity.ppid<0||identity.ppid>2147483647){throw new Error("Invalid parent process identifier.")}if(identity.ppid!==0&&!Array.from(runs2.values()).some(parent=>parent.pid===identity.ppid)){throw new Error("Parent process is not owned by this realm.")}const entry=describedIdentity(identity);runs2.set(token,entry);live2.set(entry.pid,entry);receivers.set(entry.pid,receiver)},forget(token){active2();const entry=runs2.get(token);if(!entry)return;runs2.delete(token);live2.delete(entry.pid);receivers.delete(entry.pid);allocated2.delete(entry.pid)},lookup(pid){active2();return live2.get(pid)},signal(pid,signal){var _a22,_b22;active2();if(!live2.has(pid)||typeof signal!=="string")return false;return((_b22=(_a22=receivers.get(pid))==null?void 0:_a22.handler)==null?void 0:_b22.call(_a22,pid,signal))===true},receiveSignals(handler){active2();receiver.handler=handler},dispose(){if(disposed)return;disposed=true;for(const entry of runs2.values()){live2.delete(entry.pid);receivers.delete(entry.pid)}receiver.handler=void 0;runs2.clear();allocated2.clear()}};scopes2.set(scope4,{allocated:allocated2,runs:runs2,active:active2});return scope4},table(){return[...live2.values()].sort((a,b)=>a.pid-b.pid)}}}var PROCESS_TOKEN_ENV="__TABNODE_PROCESS_TOKEN";var runs=new Map;var tokensByProcess=new WeakMap;var executing=new AsyncLocalStorage;function enterRun(token,fn2){return executing.run(token,fn2)}function __recordRun(token,run){runs.set(token,run);tokensByProcess.set(run.process,token);let released=false;return()=>{if(released)return;released=true;if(runs.get(token)===run)runs.delete(token)}}var terminations=new Map;function __recordTermination(process22,signal){const token=tokensByProcess.get(process22);if(token!==void 0)terminations.set(token,signal)}function __takeTermination(token){const signal=terminations.get(token);terminations.delete(token);return signal}function __tokenForProcess(process22){return tokensByProcess.get(process22)??null}function __runFor(token){return runs.get(token)}var __lastLaunchedToken=null;function __setLastLaunchedToken(token){__lastLaunchedToken=token}function __currentProcessToken(){return executing.getStore()??null}function __stopOwnedProcess(token){var _a22;(_a22=runs.get(token))==null?void 0:_a22.stopTimers()}function __signalOwnedProcess(token,signal){const run=runs.get(token);if(!run)return false;const guest=run.process;try{enterRun(token,()=>guest.kill(guest.pid,signal))}catch(error){if(error instanceof Error&&error.message.startsWith("Process exited with code"))return true;return false}return true}var processRegistryOwner=createProcessRegistryOwner();var processRegistry=processRegistryOwner.createScope();var registryInstalled=false;var registryUsed=false;var pidsOfRuns=new Map;function createProcessRegistryScope(){if(registryInstalled)throw new Error("Only the container owner can create process registry scopes.");return processRegistryOwner.createScope()}function ownerProcessTable(){if(registryInstalled)throw new Error("This realm is a process registry client, not the container owner.");return processRegistryOwner.table()}function ownerProcessRegistryScope(){if(registryInstalled)throw new Error("This realm is a process registry client, not the container owner.");return processRegistry}function installProcessRegistry(registry,initial){if(registryInstalled||registryUsed)throw new Error("Process registry must be installed once before creating processes.");if(initial){if(typeof initial.token!=="string"||initial.token.length===0)throw new Error("Invalid initial process token.");const identity=Object.freeze({pid:initial.identity.pid,ppid:initial.identity.ppid});registry.publish(initial.token,identity);pidsOfRuns.set(initial.token,identity)}processRegistry=registry;registryInstalled=true}function mintPid(){registryUsed=true;return processRegistry.allocate()}function setRunPid(token,pid,ppid,started2){registryUsed=true;processRegistry.publish(token,{pid,ppid,...started2,startedAt:Date.now()});pidsOfRuns.set(token,{pid,ppid})}function runPid(token){return token===null||token===void 0?void 0:pidsOfRuns.get(token)}function forgetRunPid(token){processRegistry.forget(token);pidsOfRuns.delete(token)}function tokenOfPid(pid){for(const[token,numbers]of pidsOfRuns)if(numbers.pid===pid)return token;return null}function pidIsLive(pid){return processRegistry.lookup(pid)!==void 0}function signalPid(pid,signal){return processRegistry.signal(pid,signal)}function processByPid(pid){return processRegistry.lookup(pid)}var owners$1=new Map;var allOwned=new Map;var heldBy=new WeakMap;var refHeld=new WeakSet;var activeHandles=new WeakSet;function currentOwner(){return __currentProcessToken()??__lastLaunchedToken}function hold(handle){const token=heldBy.get(handle);if(token===null||token===void 0)return;if(!refHeld.has(handle)||!activeHandles.has(handle))return;let held=owners$1.get(token);if(!held){held=new Set;owners$1.set(token,held)}held.add(handle)}function drop(handle){const token=heldBy.get(handle);if(token===null||token===void 0)return;const held=owners$1.get(token);if(!held)return;held.delete(handle);if(held.size===0)owners$1.delete(token)}function ownerOf(handle){return heldBy.get(handle)??null}function registerHandle(handle){heldBy.set(handle,currentOwner());const token=heldBy.get(handle);if(token!=null){let owned=allOwned.get(token);if(!owned){owned=new Set;allOwned.set(token,owned)}owned.add(handle)}refHeld.add(handle);activeHandles.add(handle);hold(handle)}function stopHandle(handle){activeHandles.delete(handle);drop(handle)}function refHandle(handle){refHeld.add(handle);hold(handle)}function unrefHandle(handle){refHeld.delete(handle);drop(handle)}function handleHasRef(handle){return refHeld.has(handle)}function releaseHandle(handle){drop(handle);const token=heldBy.get(handle);if(token!=null){const owned=allOwned.get(token);owned==null?void 0:owned.delete(handle);if((owned==null?void 0:owned.size)===0)allOwned.delete(token)}heldBy.delete(handle);refHeld.delete(handle);activeHandles.delete(handle)}function __ownedHandleCount(token){var _a22;return((_a22=owners$1.get(token))==null?void 0:_a22.size)??0}function __ownedServerPorts(token){var _a22;const held=owners$1.get(token);if(!held)return[];const ports2=[];for(const handle of held){const listening=handle;if(listening.listening===true&&typeof((_a22=listening.local)==null?void 0:_a22.port)==="number")ports2.push(listening.local.port)}return ports2}function __releaseOwnedServers(token,stopTimers=true,stopProcess){const held=owners$1.get(token);if(held){for(const handle of[...held]){const listening=handle;if(listening.listening!==true)continue;try{handle.close()}catch{}}}}function __releaseOwnedHandles(token){const held=allOwned.get(token);if(!held)return;allOwned.delete(token);owners$1.delete(token);for(const handle of[...held]){try{handle.close()}catch{}}}function __adoptHandle(handle,token){if(!handle)return;drop(handle);const previous=heldBy.get(handle);if(previous!=null){const owned=allOwned.get(previous);owned==null?void 0:owned.delete(handle);if((owned==null?void 0:owned.size)===0)allOwned.delete(previous)}heldBy.set(handle,token);if(token!==null){let owned=allOwned.get(token);if(!owned){owned=new Set;allOwned.set(token,owned)}owned.add(handle)}hold(handle)}var drivers=new WeakMap;var handles=new Map;var constructors$1={};var transport$1;var allocated=false;var stopped=false;var incoming;var nextRequest=1;function registerNativeStreamConstructor(kind,constructor){constructors$1[kind]=constructor}function requestId(){if(!Number.isSafeInteger(nextRequest))throw new Error("Native stream request IDs exhausted.");return nextRequest++}function installNativeStreamTransport(next2){if(transport$1||allocated)throw new Error("Native stream transport must be installed before stream construction.");transport$1=next2;next2.onEvent(event=>{var _a22;if(event.type==="closed"){stopped=true;const failures=[];for(const handle2 of[...handles.values()]){try{(_a22=drivers.get(handle2))==null?void 0:_a22.ownerStopped()}catch(cause){failures.push(cause)}}if(failures.length)throw new AggregateError(failures,"Native stream owner stopped during callbacks.");return}const handle=handles.get(event.id);if(handle)drivers.get(handle).receive(event);else if("handle"in event&&event.handle&&!stopped)closeDescriptor(event.handle.id)})}function closeDescriptor(id2){if(!stopped)transport$1.call({operation:"close",id:id2,request:requestId()})}function holdRequest(handle){const request={close:()=>releaseHandle(request)};registerHandle(request);__adoptHandle(request,ownerOf(handle));return request.close}function adopt(descriptor,receiver){if(handles.has(descriptor.id))throw new Error("Native descriptor was delivered twice.");const previous=incoming;incoming=descriptor;try{const Constructor=constructors$1[descriptor.kind];if(!Constructor)throw new Error("Native stream constructor is unavailable.");const handle=new Constructor(descriptor.type);__adoptHandle(handle,ownerOf(receiver));return handle}finally{incoming=previous}}function nativeStreamFor(handle){return drivers.get(handle)}function nativeInheritedFdType(fd2){if(!transport$1||stopped||!Number.isInteger(fd2)||fd2<0)return void 0;const result=transport$1.call({operation:"fdType",fd:fd2});if(result.status===UV_EBADF)return void 0;if(result.status!==0||result.handleType!=="TCP"&&result.handleType!=="PIPE"){throw new Error(`Native descriptor lookup failed: ${errname(result.status)}`)}return result.handleType}function nativeStreamDescriptor(handle){const driver=drivers.get(handle);return driver&&!handle.closed?{...driver.descriptor}:void 0}function attachNativeStream(handle,kind,type2,closeLocal,flushLocal){allocated=true;if(!transport$1)return;try{if(stopped)throw new Error("Native stream owner stopped.");const result=incoming?{status:0,handle:incoming}:transport$1.call({operation:"create",kind,type:type2});if(result.status!==0||!result.handle){throw Object.assign(new Error(`Native stream creation failed: ${errname(result.status)}`),{code:errname(result.status),errno:result.status})}const descriptor=result.handle;if(descriptor.kind!==kind||descriptor.type!==type2||handles.has(descriptor.id))throw new Error("Invalid native stream descriptor.");incoming=void 0;drivers.set(handle,new NativeStreamDriver(handle,descriptor,transport$1,closeLocal,flushLocal));handles.set(descriptor.id,handle)}catch(cause){releaseHandle(handle);throw cause}}var NativeStreamDriver=class{constructor(handle,descriptor,channel,closeLocal,flushLocal){__publicField2(this,"readingCredit",false);__publicField2(this,"buffered",false);__publicField2(this,"readEnded",false);__publicField2(this,"closing",false);__publicField2(this,"completions",new Map);__publicField2(this,"writes",[]);__publicField2(this,"closeCallbacks",[]);__publicField2(this,"endpoint");__publicField2(this,"pumping",false);__publicField2(this,"releaseClose");__publicField2(this,"writeEnded",false);__publicField2(this,"pendingShutdown");this.handle=handle;this.descriptor=descriptor;this.channel=channel;this.closeLocal=closeLocal;this.flushLocal=flushLocal;this.endpoint={handles:new Set([handle])}}get peer(){var _a22;for(const handle of((_a22=this.endpoint.peer)==null?void 0:_a22.handles)??[])if(!handle.closed)return handle;return null}pair(other){const{status}=this.call({operation:"pair",id:this.descriptor.id,peer:other.descriptor.id});if(status!==0)throw Object.assign(new Error("Native stream pairing failed."),{errno:status});this.endpoint.peer=other.endpoint;other.endpoint.peer=this.endpoint}call(operation){return this.closing||stopped?{status:UV_EBADF}:this.channel.call(operation)}operation(operation){return this.call({operation,id:this.descriptor.id}).status}beginRead(){if(this.closing||stopped)return UV_EBADF;if(this.readingCredit||this.buffered||this.readEnded)return 0;this.readingCredit=true;const status=this.call({operation:"readStart",id:this.descriptor.id}).status;if(status!==0)this.readingCredit=false;return status}readFlushed(empty2,ended2){this.buffered=!empty2;this.readEnded||(this.readEnded=ended2);if(this.handle.reading&&empty2&&!this.readEnded&&!this.closing&&!stopped){const status=this.beginRead();if(status!==0)this.handle.receiveError(status)}}complete(operation,callback){if(!("request"in operation))throw new Error("Native completion requires a request ID.");const release2=holdRequest(this.handle);this.completions.set(operation.request,status=>{try{callback(status)}finally{release2()}});try{const status=this.call(operation).status;if(status!==0){this.completions.delete(operation.request);release2()}return status}catch(cause){this.completions.delete(operation.request);release2();throw cause}}connect(address,port2,ipv6,callback){return this.complete({operation:"connect",id:this.descriptor.id,request:requestId(),address,port:port2,ipv6},callback)}shutdown(callback){if(this.closing||stopped)return UV_EBADF;if(this.writeEnded)return UV_EPIPE;this.writeEnded=true;const operation={operation:"shutdown",id:this.descriptor.id,request:requestId()};if(!this.writes.length)return this.complete(operation,callback);const release2=holdRequest(this.handle);let completed=false;const complete=status=>{if(completed)return;completed=true;try{callback(status)}finally{release2()}};this.pendingShutdown=()=>{if(this.closing||stopped){queueMicrotask(()=>complete(UV_ECANCELED));return}try{const status=this.complete(operation,complete);if(status!==0)queueMicrotask(()=>complete(status))}catch{queueMicrotask(()=>complete(UV_ECANCELED))}};return 0}duplicate(){const result=this.call({operation:"duplicate",id:this.descriptor.id});if(result.status!==0||!result.handle)throw Object.assign(new Error("Native descriptor duplication failed."),{code:errname(result.status),errno:result.status});const copy2=adopt(result.handle,this.handle);const other=drivers.get(copy2);other.endpoint.handles.delete(copy2);other.endpoint=this.endpoint;this.endpoint.handles.add(copy2);return copy2}write(request,parts,sent){streamBaseState[kLastWriteWasAsync]=0;const bytes2=parts.reduce((total,part)=>total+part.byteLength,0);streamBaseState[kBytesWritten]=bytes2;if(this.closing||stopped)return UV_EBADF;if(this.writeEnded)return UV_EPIPE;if(!Number.isSafeInteger(bytes2))return UV_EINVAL;if(bytes2===0)return sent==null?0:UV_EINVAL;let retained;if(sent!=null){const driver=sent instanceof LibuvStreamWrap?drivers.get(sent):void 0;if(!driver||this.descriptor.kind!=="pipe")return UV_EINVAL;const result=driver.call({operation:"duplicate",id:driver.descriptor.id});if(result.status!==0||!result.handle)return result.status||UV_EBADF;retained=result.handle.id}const write={request,parts,bytes:bytes2,sent:retained,ended:false,release:holdRequest(this.handle)};this.handle.writeQueueSize+=bytes2;this.writes.push(write);request.async=true;streamBaseState[kLastWriteWasAsync]=1;if(!this.pumping)void this.pumpWrites();return 0}async pumpWrites(){this.pumping=true;try{while(this.writes.length)await this.writeNext()}finally{this.pumping=false;this.flushShutdown()}}flushShutdown(){if(this.writes.length||!this.pendingShutdown)return;const dispatch=this.pendingShutdown;this.pendingShutdown=void 0;dispatch()}async writeNext(){const write=this.writes[0];if(!write||write.ended)return;let status=0;try{outer:for(const part of write.parts){for(let offset2=0;offset2<part.byteLength;offset2+=this.channel.limits.maxReadChunkBytes){if(this.closing||stopped){status=UV_ECANCELED;break outer}const chunk=part.subarray(offset2,offset2+this.channel.limits.maxReadChunkBytes);status=await this.channel.write(this.descriptor.id,chunk,write.sent);if(write.sent!==void 0){closeDescriptor(write.sent);write.sent=void 0}if(status!==0)break outer;this.handle.bytesWritten+=chunk.byteLength}}}catch{status=stopped?UV_ECANCELED:UV_EPIPE}this.finishWrite(write,status)}finishWrite(write,status){if(write.ended)return;write.ended=true;const index2=this.writes.indexOf(write);if(index2>=0)this.writes.splice(index2,1);this.handle.writeQueueSize-=write.bytes;write.parts=[];try{if(write.sent!==void 0)closeDescriptor(write.sent)}catch(cause){status=UV_ECANCELED;write.request.error=cause instanceof Error?cause.message:String(cause)}finally{write.sent=void 0}queueMicrotask(()=>{var _a22,_b22;try{(_b22=(_a22=write.request).oncomplete)==null?void 0:_b22.call(_a22,status)}finally{write.release()}})}close(callback,reset2=false){if(callback)this.closeCallbacks.push(callback);if(this.closing)return 0;this.closing=true;this.releaseClose=holdRequest(this.handle);this.handle.closed=true;this.handle.reading=false;const request=requestId();this.completions.set(request,()=>this.finishClose());if(stopped){this.finishClose();return 0}try{const status=this.channel.call({operation:reset2?"reset":"close",id:this.descriptor.id,request}).status;if(status!==0){this.completions.delete(request);this.finishClose()}return status}catch(cause){this.completions.delete(request);this.finishClose();throw cause}}finishClose(){if(!handles.has(this.descriptor.id))return;handles.delete(this.descriptor.id);drivers.delete(this.handle);this.endpoint.handles.delete(this.handle);if(this.endpoint.handles.size===0){if(this.endpoint.peer)this.endpoint.peer.peer=void 0;this.endpoint.peer=void 0}this.handle.closed=false;const callbacks=this.closeCallbacks.splice(0);this.closeLocal(()=>{var _a22;const failures=[];try{for(const callback of callbacks){try{callback()}catch(cause){failures.push(cause)}}}finally{(_a22=this.releaseClose)==null?void 0:_a22.call(this);this.releaseClose=void 0}if(failures.length===1)throw failures[0];if(failures.length>1)throw new AggregateError(failures,"Native close callbacks failed.")})}receive(event){if(event.type==="read"){this.readingCredit=false;if(this.closing){if(event.handle)closeDescriptor(event.handle.id);return}this.buffered=true;if(event.status>0&&event.bytes)this.handle.receive(event.bytes,event.handle?adopt(event.handle,this.handle):void 0);else{this.readEnded=true;this.handle.receiveError(event.status)}}else if(event.type==="connection"){if(this.closing||!this.handle.onconnection){if(event.handle)closeDescriptor(event.handle.id);return}const accepted=event.handle?adopt(event.handle,this.handle):void 0;this.handle.onconnection(event.status,accepted)}else{const complete=this.completions.get(event.request);this.completions.delete(event.request);complete==null?void 0:complete(event.status)}}ownerStopped(){const failures=[];const attempt=action=>{try{action()}catch(cause){failures.push(cause)}};this.closing=true;for(const write of[...this.writes])attempt(()=>this.finishWrite(write,UV_ECANCELED));attempt(()=>this.flushShutdown());const completions=[...this.completions.values()];this.completions.clear();for(const complete of completions)attempt(()=>complete(UV_ECANCELED));if(handles.has(this.descriptor.id)){attempt(()=>{this.handle.receiveError(UV_ECANCELED);this.flushLocal()});attempt(()=>this.finishClose())}if(failures.length)throw new AggregateError(failures,"Native stream shutdown callbacks failed.")}};function ownedBytes2(view){const copy2=new Uint8Array(view.byteLength);copy2.set(new Uint8Array(view.buffer,view.byteOffset,view.byteLength));return copy2}var kReadBytesOrError=0;var kArrayBufferOffset=1;var kBytesWritten=2;var kLastWriteWasAsync=3;var streamBaseState=new Int32Array(4);var WriteWrap=class{constructor(){__publicField2(this,"handle",null);__publicField2(this,"oncomplete",null);__publicField2(this,"async",false);__publicField2(this,"bytes",0);__publicField2(this,"buffer",null);__publicField2(this,"callback",null);__publicField2(this,"error");__publicField2(this,"_chunks",null)}};var ShutdownWrap=class{constructor(){__publicField2(this,"handle",null);__publicField2(this,"oncomplete",null);__publicField2(this,"callback",null)}};var nextAsyncId$1=1;var StreamEndpoint=class{constructor(handle){__publicField2(this,"handles",new Set);__publicField2(this,"peer",null);__publicField2(this,"inbound",[]);__publicField2(this,"eof",false);__publicField2(this,"error",null);__publicField2(this,"writeEnded",false);__publicField2(this,"flushScheduled",false);__publicField2(this,"finalizers",[]);__publicField2(this,"capacityListeners",new Set);this.handles.add(handle)}capacityChanged(){for(const listener of[...this.capacityListeners])listener()}};var LibuvStreamWrap=class _LibuvStreamWrap{constructor(){__publicField2(this,"onread",null);__publicField2(this,"reading",false);__publicField2(this,"bytesRead",0);__publicField2(this,"bytesWritten",0);__publicField2(this,"writeQueueSize",0);__publicField2(this,"fd",-1);__publicField2(this,"streamEndpoint",new StreamEndpoint(this));__publicField2(this,"closed",false);__publicField2(this,"pendingHandle",null);__publicField2(this,"eofDelivered",false);__publicField2(this,"userBuffer",null);__publicField2(this,"asyncId",nextAsyncId$1++);registerHandle(this)}get peer(){var _a22;const native=nativeStreamFor(this);if(native)return native.peer;return((_a22=this.streamEndpoint.peer)==null?void 0:_a22.handles.values().next().value)??null}get inbound(){return this.streamEndpoint.inbound}get inboundEof(){return this.streamEndpoint.eof}get inboundError(){return this.streamEndpoint.error}attachNative(kind,type2){attachNativeStream(this,kind,type2,callback=>this.closeLocal(callback),()=>this.flushInbound())}getAsyncId(){return this.asyncId}ref(){var _a22;(_a22=nativeStreamFor(this))==null?void 0:_a22.operation("ref");refHandle(this)}unref(){var _a22;(_a22=nativeStreamFor(this))==null?void 0:_a22.operation("unref");unrefHandle(this)}hasRef(){return handleHasRef(this)}readStart(){var _a22;if(this.closed)return UV_EBADF;const status=((_a22=nativeStreamFor(this))==null?void 0:_a22.beginRead())??0;if(status!==0)return status;this.reading=true;this.flushInbound();return 0}readStop(){this.reading=false;return 0}useUserBuffer(buffer2){this.userBuffer=buffer2}shutdown(req){if(this.closed)return UV_EBADF;const native=nativeStreamFor(this);if(native)return native.shutdown(status=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,status)});this.sendEof();queueMicrotask(()=>{var _a22;(_a22=req.oncomplete)==null?void 0:_a22.call(req,0)});return 0}writeBuffer(req,buffer2,handle){return this.dispatchWrite(req,buffer2,handle)}writev(req,chunks,allBuffers){const parts=[];if(allBuffers){for(const chunk of chunks)parts.push(chunk)}else{for(let index2=0;index2<chunks.length;index2+=2){const chunk=chunks[index2];const encoding=chunks[index2+1];parts.push(typeof chunk==="string"?bytesOfString(chunk,encoding):chunk)}}const native=nativeStreamFor(this);if(native)return native.write(req,parts);let total=0;for(const part of parts)total+=part.byteLength;const joined=new Uint8Array(total);let at22=0;for(const part of parts){joined.set(new Uint8Array(part.buffer,part.byteOffset,part.byteLength),at22);at22+=part.byteLength}return this.dispatchWrite(req,joined)}writeUtf8String(req,text,handle){return this.dispatchWrite(req,bytesOfString(text,"utf8"),handle)}writeAsciiString(req,text){return this.dispatchWrite(req,bytesOfString(text,"ascii"))}writeLatin1String(req,text){return this.dispatchWrite(req,bytesOfString(text,"latin1"))}writeUcs2String(req,text){return this.dispatchWrite(req,bytesOfString(text,"ucs2"))}close(callback){const native=nativeStreamFor(this);if(native){native.close(callback);return}this.closeLocal(callback)}closeLocal(callback){const failures=[];const release2=action=>{try{action()}catch(cause){failures.push(cause)}};if(!this.closed){this.closed=true;releaseHandle(this);const endpoint=this.streamEndpoint;endpoint.handles.delete(this);if(endpoint.handles.size===0){const peer=endpoint.peer;endpoint.peer=null;if(peer){peer.peer=null;peer.eof=true;for(const handle of peer.handles)release2(()=>handle.flushInbound())}for(const finalize of endpoint.finalizers.splice(0))release2(finalize);for(const pending of endpoint.inbound){if(pending.handle instanceof _LibuvStreamWrap)release2(()=>pending.handle.close())}endpoint.inbound.length=0;release2(()=>endpoint.capacityChanged());endpoint.capacityListeners.clear()}release2(()=>this.onCloseHandle())}if(callback)queueMicrotask(()=>queueMicrotask(callback));if(failures.length===1)throw failures[0];if(failures.length>1)throw new AggregateError(failures,"Native stream cleanup failed.")}onCloseHandle(){}duplicate(){const copy2=new _LibuvStreamWrap;copy2.shareConnectionFrom(this);return copy2}static pair(a,b){const left=nativeStreamFor(a),right=nativeStreamFor(b);if(left||right){if(!left||!right)throw new Error("Cannot pair native and realm-local stream handles.");left.pair(right);return}a.streamEndpoint.peer=b.streamEndpoint;b.streamEndpoint.peer=a.streamEndpoint}shareConnectionFrom(other){this.streamEndpoint.handles.delete(this);this.streamEndpoint=other.streamEndpoint;this.streamEndpoint.handles.add(this)}onLastReferenceClose(callback){this.streamEndpoint.finalizers.push(callback)}get peerQueuedBytes(){var _a22;let bytes2=0;for(const chunk of((_a22=this.streamEndpoint.peer)==null?void 0:_a22.inbound)??[])bytes2+=chunk.bytes.byteLength;return bytes2}get peerQueuedHandles(){var _a22;let count=0;for(const chunk of((_a22=this.streamEndpoint.peer)==null?void 0:_a22.inbound)??[]){if(chunk.handle!==void 0&&chunk.handle!==null)count++}return count}onPeerReadCapacity(listener){const endpoint=this.streamEndpoint.peer;if(!endpoint)return()=>{};endpoint.capacityListeners.add(listener);return()=>{endpoint.capacityListeners.delete(listener)}}takeOverFrom(other){if(other===this)return;if(nativeStreamFor(this)||nativeStreamFor(other))throw new Error("Remote descriptors must be inherited and opened through their owner.");this.shareConnectionFrom(other);this.streamEndpoint.handles.delete(other);other.streamEndpoint=new StreamEndpoint(other);this.flushInbound()}dispatchWrite(req,buffer2,handle){const native=nativeStreamFor(this);if(native)return native.write(req,[buffer2],handle);const length=buffer2.byteLength;streamBaseState[kBytesWritten]=length;streamBaseState[kLastWriteWasAsync]=0;if(this.closed)return UV_EBADF;if(this.streamEndpoint.writeEnded)return UV_EPIPE;this.bytesWritten+=length;const peer=this.peer;if(!peer||peer.closed)return 0;if(length===0)return 0;peer.receive(ownedBytes2(buffer2),handle);return 0}sendEof(){this.streamEndpoint.writeEnded=true;const peer=this.peer;if(peer)peer.receiveEof()}sendReset(){this.streamEndpoint.writeEnded=true;const peer=this.peer;if(peer)peer.receiveError(UV_ECONNRESET)}receiveError(code22){if(this.closed)return;this.streamEndpoint.error=code22;this.scheduleFlush()}receive(bytes2,handle){if(this.closed)return;this.inbound.push(handle===void 0||handle===null?{bytes:bytes2}:{bytes:bytes2,handle});this.scheduleFlush()}receiveEof(){if(this.closed)return;this.streamEndpoint.eof=true;this.scheduleFlush()}scheduleFlush(){const endpoint=this.streamEndpoint;if(endpoint.flushScheduled)return;endpoint.flushScheduled=true;queueMicrotask(()=>{endpoint.flushScheduled=false;for(const handle of endpoint.handles)handle.flushInbound()})}flushInbound(){var _a22,_b22,_c22,_d22;try{while(this.reading&&!this.closed&&this.inbound.length>0){const next2=this.inbound.shift();const bytes2=next2.bytes;if(next2.handle!==void 0)this.pendingHandle=next2.handle;const target=this.userBuffer;if(target){const taken=Math.min(target.byteLength,bytes2.byteLength);this.bytesRead+=taken;target.set(bytes2.subarray(0,taken));if(taken<bytes2.byteLength)this.inbound.unshift({bytes:bytes2.subarray(taken)});streamBaseState[kReadBytesOrError]=taken;streamBaseState[kArrayBufferOffset]=0;try{(_a22=this.onread)==null?void 0:_a22.call(this,null)}finally{this.streamEndpoint.capacityChanged()}continue}streamBaseState[kReadBytesOrError]=bytes2.byteLength;this.bytesRead+=bytes2.byteLength;streamBaseState[kArrayBufferOffset]=bytes2.byteOffset;try{(_b22=this.onread)==null?void 0:_b22.call(this,bytes2.buffer)}finally{this.streamEndpoint.capacityChanged()}}if(this.reading&&!this.closed&&this.inbound.length===0&&!this.eofDelivered&&(this.inboundError!==null||this.inboundEof)){this.eofDelivered=true;stopHandle(this);streamBaseState[kReadBytesOrError]=this.inboundError??UV_EOF;streamBaseState[kArrayBufferOffset]=0;(_c22=this.onread)==null?void 0:_c22.call(this,null)}}finally{(_d22=nativeStreamFor(this))==null?void 0:_d22.readFlushed(this.inbound.length===0,this.eofDelivered)}}};var streamWrapBinding={LibuvStreamWrap,WriteWrap,ShutdownWrap,streamBaseState,kReadBytesOrError,kArrayBufferOffset,kBytesWritten,kLastWriteWasAsync};var constants$5={SOCKET:0,SERVER:1,UV_TCP_IPV6ONLY:1,UV_TCP_REUSEPORT:4};var TCPConnectWrap=class{constructor(){__publicField2(this,"oncomplete",null);__publicField2(this,"address","");__publicField2(this,"port",0);__publicField2(this,"localAddress");__publicField2(this,"localPort");__publicField2(this,"addressType")}};var v4Ports=new Map;var v6Ports=new Map;var ephemeralPorts=new Set;var portTaken=port2=>v4Ports.has(port2)||v6Ports.has(port2)||ephemeralPorts.has(port2);function spacesOf(family,flags){if(family!=="IPv6")return[v4Ports];return flags&constants$5.UV_TCP_IPV6ONLY?[v6Ports]:[v4Ports,v6Ports]}var nextEphemeral=49152;function allocatePort(){for(let tries=0;tries<16384;tries+=1){const port2=nextEphemeral;nextEphemeral=nextEphemeral>=65535?49152:nextEphemeral+1;if(!portTaken(port2))return port2}return 0}function isThisHost(address){if(!address)return true;const bare=address.startsWith("[")&&address.endsWith("]")?address.slice(1,-1):address;const name=bare.split("%")[0].toLowerCase();return name==="localhost"||name==="0.0.0.0"||name==="::"||name==="::1"||name==="0:0:0:0:0:0:0:1"||name==="0:0:0:0:0:0:0:0"||name.startsWith("127.")}var onListenWatcher=null;var onCloseWatcher=null;function setPortWatchers(onListen,onClose){onListenWatcher=onListen;onCloseWatcher=onClose}function listenerOnPort(port2,family){const order=family==="IPv6"?[v6Ports,v4Ports]:[v4Ports,v6Ports];for(const space of order){const bound=space.get(port2);if(bound&&bound.listening)return bound}return void 0}var TCP=class extends LibuvStreamWrap{constructor(type2=constants$5.SOCKET){super();__publicField2(this,"type");__publicField2(this,"listening",false);__publicField2(this,"onconnection",null);__publicField2(this,"local",null);__publicField2(this,"remote",null);this.type=type2;this.attachNative("tcp",type2)}bind(address,port2,_flags){const native=nativeStreamFor(this);if(native)return native.call({operation:"bind",id:native.descriptor.id,address,port:port2,flags:_flags}).status;return this.bindTo(address||"0.0.0.0",port2,"IPv4",Number(_flags)||0)}bind6(address,port2,_flags){const native=nativeStreamFor(this);if(native)return native.call({operation:"bind",id:native.descriptor.id,address,port:port2,flags:_flags,ipv6:true}).status;return this.bindTo(address||"::",port2,"IPv6",Number(_flags)||0)}bindTo(address,port2,family,flags=0){if(!isThisHost(address))return UV_EADDRINUSE;const wanted=Number(port2)||0;const spaces=spacesOf(family,flags);if(wanted!==0&&spaces.some(space=>space.has(wanted)))return UV_EADDRINUSE;if(wanted!==0&&ephemeralPorts.has(wanted))return UV_EADDRINUSE;const bound=wanted===0?allocatePort():wanted;if(this.local){for(const space of[v4Ports,v6Ports])if(space.get(this.local.port)===this)space.delete(this.local.port)}this.local={address,family,port:bound};for(const space of spaces)space.set(bound,this);this.onLastReferenceClose(()=>{for(const space of spaces)if(space.get(bound)===this)space.delete(bound)});return 0}listen(_backlog){const native=nativeStreamFor(this);if(native){const status=native.call({operation:"listen",id:native.descriptor.id,backlog:_backlog}).status;if(status===0)this.listening=true;return status}if(!this.local){const err22=this.bindTo("0.0.0.0",0,"IPv4");if(err22)return err22}this.listening=true;if(this.local){try{onListenWatcher==null?void 0:onListenWatcher(this.local.port,this.local.address)}catch{}}return 0}connect(req,address,port2){return this.connectTo(req,address,port2,"IPv4")}connect6(req,address,port2){return this.connectTo(req,address,port2,"IPv6")}connectTo(req,address,port2,family){const native=nativeStreamFor(this);if(native)return native.connect(address,port2,family==="IPv6",status=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,status,this,req,true,true)});const target=Number(port2);const reachable=isThisHost(address);if(!this.local){const mine=allocatePort();ephemeralPorts.add(mine);this.onLastReferenceClose(()=>{ephemeralPorts.delete(mine)});this.local={address:family==="IPv6"?"::1":"127.0.0.1",family,port:mine}}this.remote={address,family,port:target};queueMicrotask(()=>{var _a22,_b22,_c22;if(this.closed)return;const server=reachable?listenerOnPort(target,family):void 0;if(!server){(_a22=req.oncomplete)==null?void 0:_a22.call(req,UV_ECONNREFUSED,this,req,true,true);return}const accepted=new server.constructor(constants$5.SOCKET);accepted.local={...server.local,port:target};accepted.remote={...this.local};__adoptHandle(accepted,ownerOf(server));LibuvStreamWrap.pair(this,accepted);(_b22=server.onconnection)==null?void 0:_b22.call(server,0,accepted);(_c22=req.oncomplete)==null?void 0:_c22.call(req,0,this,req,true,true)});return 0}adoptNames(local2,remote){this.local={...local2};this.remote={...remote}}duplicate(){const native=nativeStreamFor(this);const copy2=native?native.duplicate():new this.constructor(constants$5.SOCKET);if(this.local&&this.remote)copy2.adoptNames(this.local,this.remote);if(!native)copy2.shareConnectionFrom(this);return copy2}getsockname(out){const native=nativeStreamFor(this);if(native){const result=native.call({operation:"getsockname",id:native.descriptor.id});if(result.address)Object.assign(out,result.address);return result.status}if(!this.local)return UV_EINVAL;out.address=this.local.address;out.family=this.local.family;out.port=this.local.port;return 0}getpeername(out){const native=nativeStreamFor(this);if(native){const result=native.call({operation:"getpeername",id:native.descriptor.id});if(result.address)Object.assign(out,result.address);return result.status}if(!this.remote)return UV_EINVAL;out.address=this.remote.address;out.family=this.remote.family;out.port=this.remote.port;return 0}setNoDelay(_enable){return 0}setKeepAlive(_enable,_delay){return 0}setSimultaneousAccepts(_enable){return 0}open(_fd){const native=nativeStreamFor(this);if(native){const status=native.call({operation:"open",id:native.descriptor.id,fd:_fd}).status;if(status===0)this.fd=_fd;return status}return UV_ENOTSUP}reset(callback){if(this.closed)return UV_EBADF;const native=nativeStreamFor(this);if(native)return native.close(callback,true);this.sendReset();this.close(callback);return 0}onCloseHandle(){const wasListening=this.listening;this.listening=false;this.onconnection=null;if(wasListening&&this.local){try{onCloseWatcher==null?void 0:onCloseWatcher(this.local.port)}catch{}}}};registerNativeStreamConstructor("tcp",TCP);var tcpWrapBinding={TCP,TCPConnectWrap,constants:constants$5};var openFds=new Map;var runFds=new Map;var nextFd=20;function allocateFd(){while(nativeInheritedFdType(nextFd)!==void 0)nextFd+=1;return nextFd++}function registerRunFd(token,fd2,type2,handle){let table=runFds.get(token);if(!table){table=new Map;runFds.set(token,table)}table.set(fd2,{type:type2,handle})}function releaseRunFds(token){runFds.delete(token)}function inheritedRunFds(token){return Array.from(runFds.get(token)??[],([fd2,entry])=>({fd:fd2,...entry}))}function tableOfAskingRun(){const token=currentOwner();return token===null?void 0:runFds.get(token)}function registerFd(type2,handle){const fd2=allocateFd();openFds.set(fd2,{type:type2,handle});return fd2}function handleForFd(fd2){var _a22,_b22,_c22;return((_b22=(_a22=tableOfAskingRun())==null?void 0:_a22.get(fd2))==null?void 0:_b22.handle)??((_c22=openFds.get(fd2))==null?void 0:_c22.handle)}function releaseFd(fd2){openFds.delete(fd2)}function guessHandleTypeOfFd(fd2){var _a22;const open2=((_a22=tableOfAskingRun())==null?void 0:_a22.get(fd2))??openFds.get(fd2);if(open2)return open2.type;const inherited=nativeInheritedFdType(fd2);if(inherited)return inherited;if(fd2===0||fd2===1||fd2===2)return"PIPE";return"FILE"}var constants$4={SOCKET:0,SERVER:1,IPC:1<<1,UV_READABLE:1,UV_WRITABLE:2};var PipeConnectWrap=class{constructor(){__publicField2(this,"oncomplete",null);__publicField2(this,"address","")}};var boundPaths=new Map;function listenerOnPath(path22){const bound=boundPaths.get(path22);return bound&&bound.listening?bound:void 0}var Pipe=class extends LibuvStreamWrap{constructor(type2=constants$4.SOCKET){super();__publicField2(this,"type");__publicField2(this,"listening",false);__publicField2(this,"onconnection",null);__publicField2(this,"path",null);__publicField2(this,"ownFd",null);this.type=type2;this.attachNative("pipe",type2)}bind(path22){const native=nativeStreamFor(this);if(native)return native.call({operation:"bind",id:native.descriptor.id,address:path22}).status;const held=boundPaths.get(path22);if(held&&held!==this)return UV_EADDRINUSE;this.path=path22;boundPaths.set(path22,this);return 0}listen(_backlog){const native=nativeStreamFor(this);if(native){const status=native.call({operation:"listen",id:native.descriptor.id,backlog:_backlog}).status;if(status===0)this.listening=true;return status}if(this.path===null)return UV_EBADF;this.listening=true;return 0}connect(req,path22){const native=nativeStreamFor(this);if(native)return native.connect(path22,void 0,false,status=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,status,this,req,true,true)});queueMicrotask(()=>{var _a22,_b22,_c22;if(this.closed)return;const server=listenerOnPath(path22);if(!server){(_a22=req.oncomplete)==null?void 0:_a22.call(req,UV_ENOENT,this,req,true,true);return}const accepted=new server.constructor(server.type===constants$4.IPC?constants$4.IPC:constants$4.SOCKET);accepted.path=path22;__adoptHandle(accepted,ownerOf(server));LibuvStreamWrap.pair(this,accepted);(_b22=server.onconnection)==null?void 0:_b22.call(server,0,accepted);(_c22=req.oncomplete)==null?void 0:_c22.call(req,0,this,req,true,true)});return 0}open(fd2){const native=nativeStreamFor(this);if(native){const status=native.call({operation:"open",id:native.descriptor.id,fd:fd2}).status;if(status===0)this.fd=fd2;return status}const held=handleForFd(fd2);if(!held)return UV_EBADF;this.takeOverFrom(held);this.ownFd=fd2;this.fd=fd2;return 0}toFd(){if(this.ownFd===null){this.ownFd=registerFd("PIPE",this);this.fd=this.ownFd}return this.ownFd}duplicate(){const native=nativeStreamFor(this);const copy2=native?native.duplicate():new this.constructor(this.type);if(!native)copy2.shareConnectionFrom(this);return copy2}fchmod(_mode){return 0}setPendingInstances(_count){return 0}dispatchWrite(req,bytes2,handle){const native=nativeStreamFor(this);if(native)return native.write(req,[bytes2],handle);if(handle===void 0||handle===null)return super.dispatchWrite(req,bytes2);const sent=handle;const given=sent.listening===true?sent:sent.duplicate();__adoptHandle(given,ownerOf(this.peer??this));const status=super.dispatchWrite(req,bytes2,given);if(status!==0&&given!==sent)given.close();return status}onCloseHandle(){this.listening=false;this.onconnection=null;if(this.path!==null&&boundPaths.get(this.path)===this)boundPaths.delete(this.path);if(this.ownFd!==null){releaseFd(this.ownFd);this.ownFd=null}}};registerNativeStreamConstructor("pipe",Pipe);var pipeWrapBinding={Pipe,PipeConnectWrap,constants:constants$4};var nodeConstants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGWINCH:28,E2BIG:7,EACCES:13,EADDRINUSE:48,EAGAIN:35,EBADF:9,EBUSY:16,ECONNREFUSED:61,ECONNRESET:54,EEXIST:17,EINVAL:22,EIO:5,EISDIR:21,EMFILE:24,ENOENT:2,ENOSPC:28,ENOTDIR:20,ENOTEMPTY:66,EPERM:1,EPIPE:32,ETIMEDOUT:60,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EALREADY:37,EBADMSG:94,ECANCELED:89,ECHILD:10,ECONNABORTED:53,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EISCONN:56,ELOOP:62,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGINFO:29,SIGIO:23,SIGIOT:6,SIGPROF:27,SIGSYS:12,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGVTALRM:26,SIGXCPU:24,SIGXFSZ:25,PRIORITY_LOW:19,PRIORITY_BELOW_NORMAL:10,PRIORITY_NORMAL:0,PRIORITY_ABOVE_NORMAL:-7,PRIORITY_HIGH:-14,PRIORITY_HIGHEST:-20,RTLD_LAZY:1,RTLD_NOW:2,RTLD_LOCAL:4,RTLD_GLOBAL:8,O_DSYNC:4194304,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,UV_DIRENT_UNKNOWN:0,UV_DIRENT_FILE:1,UV_DIRENT_DIR:2,UV_DIRENT_LINK:3,UV_DIRENT_FIFO:4,UV_DIRENT_SOCKET:5,UV_DIRENT_CHAR:6,UV_DIRENT_BLOCK:7,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_O_FILEMAP:0,UV_FS_O_RANDOM:0,UV_FS_O_SEQUENTIAL:0,UV_FS_O_SHORT_LIVED:0,UV_FS_O_TEMPORARY:0,EXTENSIONLESS_FORMAT_JAVASCRIPT:0,EXTENSIONLESS_FORMAT_WASM:1};function groupOf(name){if(/^E[A-Z0-9]+$/.test(name))return"errno";if(name.startsWith("SIG"))return"signals";if(name.startsWith("PRIORITY_"))return"priority";if(name.startsWith("RTLD_"))return"dlopen";return"fs"}var binding=null;function constantsBinding$1(){if(binding)return binding;const groups2={errno:{},signals:{},priority:{},dlopen:{},fs:{}};for(const[name,value]of Object.entries(nodeConstants))groups2[groupOf(name)][name]=value;binding={os:{UV_UDP_REUSEADDR:4,dlopen:groups2.dlopen,errno:groups2.errno,signals:groups2.signals,priority:groups2.priority},fs:groups2.fs,crypto:{SSL_OP_ALL:0,RSA_PKCS1_PADDING:1,RSA_PKCS1_OAEP_PADDING:4,RSA_PKCS1_PSS_PADDING:6},zlib:{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,ZLIB_VERNUM:4784,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_DECODE:0,BROTLI_ENCODE:1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_PARAM_MODE:0,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_PARAM_QUALITY:1,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_PARAM_LGWIN:2,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_DEFAULT_WINDOW:22,BROTLI_PARAM_LGBLOCK:3,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24},trace:{TRACE_EVENT_PHASE_BEGIN:66,TRACE_EVENT_PHASE_END:69,TRACE_EVENT_PHASE_COMPLETE:88,TRACE_EVENT_PHASE_INSTANT:73,TRACE_EVENT_PHASE_ASYNC_BEGIN:83,TRACE_EVENT_PHASE_ASYNC_STEP_INTO:84,TRACE_EVENT_PHASE_ASYNC_STEP_PAST:112,TRACE_EVENT_PHASE_ASYNC_END:70,TRACE_EVENT_PHASE_NESTABLE_ASYNC_BEGIN:98,TRACE_EVENT_PHASE_NESTABLE_ASYNC_END:101,TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT:110,TRACE_EVENT_PHASE_FLOW_BEGIN:115,TRACE_EVENT_PHASE_FLOW_STEP:116,TRACE_EVENT_PHASE_FLOW_END:102,TRACE_EVENT_PHASE_METADATA:77,TRACE_EVENT_PHASE_COUNTER:67,TRACE_EVENT_PHASE_SAMPLE:80,TRACE_EVENT_PHASE_CREATE_OBJECT:78,TRACE_EVENT_PHASE_SNAPSHOT_OBJECT:79,TRACE_EVENT_PHASE_DELETE_OBJECT:68,TRACE_EVENT_PHASE_MEMORY_DUMP:118,TRACE_EVENT_PHASE_MARK:82,TRACE_EVENT_PHASE_CLOCK_SYNC:99}};return binding}function hostname(){return"localhost"}function type$1(){return"Linux"}function release(){return"5.10.0"}function version$2(){return"#1 SMP"}function tmpdir(){return"/tmp"}function homedir(){return"/home/user"}function cpus(){const cpu={model:"Virtual CPU",speed:2400,times:{user:0,nice:0,sys:0,idle:0,irq:0}};return[cpu,cpu]}function totalmem(){return 4*1024*1024*1024}function freemem(){return 2*1024*1024*1024}function uptime(){return Math.floor(performance.now()/1e3)}function loadavg(){return[.5,.5,.5]}function networkInterfaces(){return{lo:[{address:"127.0.0.1",netmask:"255.0.0.0",family:"IPv4",mac:"00:00:00:00:00:00",internal:true,cidr:"127.0.0.1/8"}]}}function userInfo(){return{username:"user",uid:1e3,gid:1e3,shell:"/bin/bash",homedir:"/home/user"}}function endianness(){return"LE"}function getPriority(pid){return 0}var __constants;var __zlibModesApplied=false;var __zlibModes={DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,ZSTD_COMPRESS:10,ZSTD_DECOMPRESS:11};function constantsOf(){return __constants??(__constants=constantsBinding$1())}function applyZlibModes(){if(__zlibModesApplied)return;__zlibModesApplied=true;const table=constantsOf();const zlib=table.zlib;if(zlib)Object.assign(zlib,__zlibModes);else table.zlib={...__zlibModes}}var constantsBinding=new Proxy({},{get:(_t2,key,receiver)=>{if(key==="zlib")applyZlibModes();return Reflect.get(constantsOf(),key,receiver)},set:(_t2,key,value,receiver)=>Reflect.set(constantsOf(),key,value,receiver),has:(_t2,key)=>Reflect.has(constantsOf(),key),ownKeys:()=>Reflect.ownKeys(constantsOf()),getOwnPropertyDescriptor:(_t2,key)=>{if(key==="zlib")applyZlibModes();const descriptor=Reflect.getOwnPropertyDescriptor(constantsOf(),key);return descriptor===void 0?void 0:{...descriptor,configurable:true}},defineProperty:(_t2,key,descriptor)=>Reflect.defineProperty(constantsOf(),key,descriptor)});var __priorities=new Map;var osBinding={getOSInformation:()=>[type$1(),release(),version$2()],getHostname:()=>hostname(),getHomeDirectory:()=>{var _a22,_b22;const home=(_b22=(_a22=globalThis.process)==null?void 0:_a22.env)==null?void 0:_b22.HOME;return home&&home.length>0?home:homedir()},getUptime:()=>uptime(),getTotalMem:()=>totalmem(),getFreeMem:()=>freemem(),getLoadAvg:array=>{const[one,five,fifteen]=loadavg();array[0]=one;array[1]=five;array[2]=fifteen},getAvailableParallelism:()=>cpus().length,isBigEndian:endianness()==="BE",getCPUs:()=>{const flat=[];for(const cpu of cpus()){flat.push(cpu.model,cpu.speed,cpu.times.user,cpu.times.nice,cpu.times.sys,cpu.times.idle,cpu.times.irq)}return flat},getInterfaceAddresses:()=>{const flat=[];for(const[name,addresses]of Object.entries(networkInterfaces())){for(const address of addresses??[]){flat.push(name,address.address,address.netmask,address.family==="IPv6"?6:4,address.mac,address.internal,address.scopeid??0)}}return flat},getUserInfo:()=>userInfo(),getPriority:pid=>__priorities.get(pid||0)??getPriority(),setPriority:(pid,priority)=>{__priorities.set(pid||0,priority);return 0}};var credentialsBinding={getTempDir:()=>{var _a22;const env=((_a22=globalThis.process)==null?void 0:_a22.env)??{};const named=env.TMPDIR||env.TMP||env.TEMP;const chosen=named&&named.length>0?named:tmpdir();return chosen.length>1&&chosen.endsWith("/")?chosen.slice(0,-1):chosen}};var encodingBinding={toASCII:value=>nodeLibInternalRequire("punycode").toASCII(value),toUnicode:value=>nodeLibInternalRequire("punycode").toUnicode(value)};var configBinding={getDefaultLocale:()=>"",hasIntl:false,hasSmallICU:false,hasNodeOptions:true,hasInspector:false,noBrowserGlobals:false,bits:64,hasOpenSSL:false,fipsMode:false,hasDtrace:false};var stringDecoderBinding={encodings:["ascii","utf8","base64","ucs2","binary","hex","utf16le","base64url"]};var traceEventsBinding={getCategoryEnabledBuffer:()=>new Uint8Array(1),trace:()=>{}};var messagingBinding={get DOMException(){return globalThis.DOMException}};var errorsBinding={triggerUncaughtException:(error,fromPromise=false)=>{var _a22;const realm=globalThis.process;const event=fromPromise?"unhandledRejection":"uncaughtException";if(realm&&typeof realm.listenerCount==="function"&&realm.listenerCount(event)>0){(_a22=realm.emit)==null?void 0:_a22.call(realm,event,error,event);return}setTimeout(()=>{throw error},0)}};var bufferModule=lazyModule("buffer");var Buffer$9=lazyExport("buffer","Buffer");function createNodeError$1(code22,syscall,path22){const known=["EEXIST","EINVAL","EISDIR","ENOENT","ENOTDIR","ENOTEMPTY","ELOOP","EROFS"];if(known.includes(code22))return createNodeError(code22,syscall,path22);return Object.assign(new Error(`${code22}: ${syscall} '${path22}'`),{code:code22,syscall,path:path22,errno:-9})}function refuseLinks(syscall,path22){throw Object.assign(new Error(`EPERM: the tab's filesystem holds no links, ${syscall} '${path22}'`),{code:"EPERM",errno:-1,syscall,path:path22})}function unsupportedMetadata(syscall){throw Object.assign(new Error(`ENOTSUP: filesystem does not support ${syscall}`),{code:"ENOTSUP",syscall})}function treeHoldsLinks(){return vfs().holdsLinks===true}var kRunFilesystem=Symbol.for("tabnode.run.vfs");var overrideTree=null;function withFilesystem(tree2,work){const previous=overrideTree;overrideTree=tree2;try{return work()}finally{overrideTree=previous}}var overrideCwd=null;function withCwd(cwd,work){const previous=overrideCwd;overrideCwd=cwd;try{return work()}finally{overrideCwd=previous}}function vfs(){var _a22;if(overrideTree!==null)return overrideTree;const realm=globalThis;const found=(_a22=realm.process)==null?void 0:_a22[kRunFilesystem];if(!found){throw Object.assign(new Error("fs: this realm has no filesystem; the engine gives a run one when it starts"),{code:"ENOSYS"})}return found}function callingCwd(){var _a22;if(overrideCwd!==null)return overrideCwd;const realm=globalThis;if(typeof((_a22=realm.process)==null?void 0:_a22.cwd)!=="function"){throw Object.assign(new Error("fs: this realm has no process cwd; the engine gives a run one when it starts"),{code:"ENOSYS"})}return realm.process.cwd()}function flagBits(){const fs2=constantsBinding.fs??{};return{create:fs2.O_CREAT??64,excl:fs2.O_EXCL??128,truncate:fs2.O_TRUNC??512,append:fs2.O_APPEND??1024}}var S_IFREG=32768;var S_IFDIR=16384;var S_IFLNK=40960;var openFiles=new Map;function fileFor(fd2){const file2=openFiles.get(fd2);if(!file2)throw createNodeError$1("EBADF","read",String(fd2));return file2}function descriptorWriter(fd2){const stream=handleForFd(fd2);if(stream instanceof LibuvStreamWrap){return text=>{try{stream.writeBuffer(new WriteWrap,new TextEncoder().encode(text))}catch{}}}const file2=openFiles.get(fd2);if(!file2||file2.directory||(file2.flags&3)===0)return null;const{tree:tree2,path:path22}=file2;const append=(file2.flags&flagBits().append)!==0;let cursor=descriptorCursors.get(file2);if(!cursor){cursor={position:file2.position};descriptorCursors.set(file2,cursor)}const offset2=cursor;return text=>{const bytes2=new TextEncoder().encode(text);const shared=openFiles.get(fd2)===file2?file2:null;if(shared)offset2.position=shared.position;const existing=(shared==null?void 0:shared.cached)??(tree2.existsSync(path22)?tree2.readFileSync(path22):new Uint8Array(0));const at22=append?existing.length:offset2.position;const next2=new Uint8Array(Math.max(existing.length,at22+bytes2.length));next2.set(existing,0);next2.set(bytes2,at22);tree2.writeFileSync(path22,next2);offset2.position=at22+bytes2.length;if(shared){shared.cached=next2;shared.position=offset2.position}}}var descriptorCursors=new WeakMap;function statArray(stats,bigint,path22){var _a22,_b22,_c22;const mtime=stats.mtime instanceof Date?stats.mtime.getTime():Number(stats.mtimeMs??0);const atime=stats.atime instanceof Date?stats.atime.getTime():Number(stats.atimeMs??mtime);const ctime=stats.ctime instanceof Date?stats.ctime.getTime():Number(stats.ctimeMs??mtime);const birth=stats.birthtime instanceof Date?stats.birthtime.getTime():Number(stats.birthtimeMs??mtime);const seconds=ms2=>Math.floor(ms2/1e3);const nanos=ms2=>Math.floor(ms2%1e3*1e6);const permissions=Number(stats.mode??(((_a22=stats.isDirectory)==null?void 0:_a22.call(stats))?493:420))&4095;const type2=((_b22=stats.isDirectory)==null?void 0:_b22.call(stats))?S_IFDIR:((_c22=stats.isSymbolicLink)==null?void 0:_c22.call(stats))?S_IFLNK:S_IFREG;const values=[Number(stats.dev??0),type2|permissions,Number(stats.nlink??1),Number(stats.uid??0),Number(stats.gid??0),Number(stats.rdev??0),Number(stats.blksize??4096),Number(stats.ino??0),Number(stats.size??0),Number(stats.blocks??Math.ceil(Number(stats.size??0)/512)),seconds(atime),nanos(atime),seconds(mtime),nanos(mtime),seconds(ctime),nanos(ctime),seconds(birth),nanos(birth)];return bigint?BigInt64Array.from(values,value=>BigInt(Math.floor(value))):Float64Array.from(values)}function onNextTick(fn2){var _a22;const tick=(_a22=globalThis.process)==null?void 0:_a22.nextTick;if(typeof tick==="function")tick(fn2);else queueMicrotask(fn2)}function answer(req,work){const usePromises=req===kUsePromises;const useCallback=req!==void 0&&typeof req==="object"&&typeof req.oncomplete==="function";if(!usePromises&&!useCallback)return work();const tree2=vfs();const cwd=callingCwd();const run=()=>withFilesystem(tree2,()=>withCwd(cwd,work));if(usePromises){return new Promise((resolve2,reject)=>{onNextTick(()=>{try{resolve2(run())}catch(error){reject(error)}})})}const request=req;const complete=request.oncomplete;onNextTick(()=>{let value;try{value=run()}catch(error){complete.call(request,error);return}complete.call(request,null,value)});return void 0}function createFsBindings(Bytes=()=>Buffer$9){var _entries,_at,_encoding,_watcher,_timer,_previous;function encodeFsName(name,encoding){if(encoding!=="buffer"&&encoding!==6){if(typeof encoding==="string"&&encoding.length>0&&encoding!=="utf8"&&encoding!=="utf-8"){return Bytes().from(name).toString(encoding)}return name}return Bytes().from(name)}function asWritten(path22){if(typeof path22==="string")return path22;if(path22 instanceof Uint8Array)return new TextDecoder().decode(path22);return String(path22)}function asPath(path22){const name=asWritten(path22);if(name.startsWith("/"))return name;const cwd=callingCwd();const combined=cwd.endsWith("/")?`${cwd}${name}`:`${cwd}/${name}`;const parts=[];for(const part of combined.split("/")){if(!part||part===".")continue;if(part==="..")parts.pop();else parts.push(part)}return`/${parts.join("/")}`}class FSReqCallback2{constructor(bigint=false){__publicField2(this,"oncomplete");__publicField2(this,"context");this.bigint=bigint}}class DirHandle2{constructor(path22,encoding){__privateAdd(this,_entries);__privateAdd(this,_at,0);__privateAdd(this,_encoding);const tree2=vfs();const base=path22.endsWith("/")?path22.slice(0,-1):path22;__privateSet(this,_encoding,encoding);__privateSet(this,_entries,tree2.readdirSync(path22).map(name=>{try{const stats=tree2.lstatSync(`${base}/${name}`);return[name,stats.isDirectory()?2:stats.isSymbolicLink()?10:1]}catch{return[name,0]}}))}read(encoding,bufferSize=32,req){return answer(req,()=>{if(__privateGet(this,_at)>=__privateGet(this,_entries).length)return null;const batch=[];const enc=encoding??__privateGet(this,_encoding);for(let taken=0;taken<bufferSize&&__privateGet(this,_at)<__privateGet(this,_entries).length;taken+=1){const[name,type2]=__privateGet(this,_entries)[__privateWrapper(this,_at)._++];batch.push(encodeFsName(name,enc),type2)}return batch})}close(req){return answer(req,()=>{__privateSet(this,_at,__privateGet(this,_entries).length);return void 0})}}_entries=new WeakMap;_at=new WeakMap;_encoding=new WeakMap;const fsDirBinding2={opendirSync(path22,encoding){return new DirHandle2(asPath(path22),encoding)},opendir(path22,encoding,req){return answer(req,()=>new DirHandle2(asPath(path22),encoding))}};class FSEvent2{constructor(){__publicField2(this,"onchange",null);__privateAdd(this,_watcher,null);__publicField2(this,"initialized",false)}start(path22,persistent,recursive,encoding){const name=asPath(path22);const tree2=vfs();const cwd=callingCwd();const owner=currentOwner();try{__privateSet(this,_watcher,tree2.watch(name,{recursive:Boolean(recursive)},(event,filename)=>{const notify=()=>withFilesystem(tree2,()=>withCwd(cwd,()=>{var _a22;return(_a22=this.onchange)==null?void 0:_a22.call(this,0,event==="rename"?"rename":"change",encodeFsName(filename??"",encoding))}));if(owner===null)notify();else enterRun(owner,notify)}));this.initialized=true;registerHandle(this);if(persistent===false)unrefHandle(this);return 0}catch(error){const code22=error.code;return code22==="ENOENT"?-2:-22}}close(){var _a22;releaseHandle(this);this.initialized=false;try{(_a22=__privateGet(this,_watcher))==null?void 0:_a22.close()}catch{}__privateSet(this,_watcher,null)}ref(){if(this.initialized)refHandle(this)}unref(){unrefHandle(this)}getAsyncId(){return 0}hasRef(){return this.initialized&&handleHasRef(this)}}_watcher=new WeakMap;class StatWatcher2{constructor(bigint=false){__publicField2(this,"onchange",null);__privateAdd(this,_timer,null);__privateAdd(this,_previous,null);this.bigint=bigint}start(path22,interval=5007){var _a22,_b22;const name=asPath(path22);const tree2=vfs();const read=()=>{try{return statArray(tree2.statSync(name),this.bigint)}catch{return this.bigint?new BigInt64Array(18):new Float64Array(18)}};__privateSet(this,_previous,read());__privateSet(this,_timer,setInterval(()=>{var _a32;const current3=read();const previous=__privateGet(this,_previous);let changed=false;for(let index2=0;index2<current3.length;index2+=1){if(current3[index2]!==previous[index2]){changed=true;break}}if(changed){__privateSet(this,_previous,current3);(_a32=this.onchange)==null?void 0:_a32.call(this,current3,previous)}},interval));(_b22=(_a22=__privateGet(this,_timer)).unref)==null?void 0:_b22.call(_a22);return 0}stop(){if(__privateGet(this,_timer)!==null){clearInterval(__privateGet(this,_timer));__privateSet(this,_timer,null)}}close(){this.stop()}ref(){}unref(){}getAsyncId(){return 0}hasRef(){return __privateGet(this,_timer)!==null}}_timer=new WeakMap;_previous=new WeakMap;const fsEventWrapBinding2={FSEvent:FSEvent2};class FileHandle2{constructor(fd2){this.fd=fd2}close(){openFiles.delete(this.fd);return Promise.resolve()}release(){openFiles.delete(this.fd)}getAsyncId(){return this.fd}}const fsBinding2={FSReqCallback:FSReqCallback2,kUsePromises,StatWatcher:StatWatcher2,openFileHandle(path22,flags,mode,usePromises){const fd2=fsBinding2.open(path22,flags,mode);const handle=new FileHandle2(fd2);return usePromises===kUsePromises?Promise.resolve(handle):handle},open(path22,flags,_mode,req){return answer(req,()=>{const name=asPath(path22);const tree2=vfs();const bits=flagBits();const exists=tree2.existsSync(name);if(exists&&((flags&3)!==0||(flags&(bits.create|bits.truncate|bits.append))!==0)){tree2.accessSync(name,2)}if((flags&bits.excl)!==0&&(flags&bits.create)!==0&&exists)throw createNodeError$1("EEXIST","open",name);if(!exists){if((flags&bits.create)===0)throw createNodeError$1("ENOENT","open",name);const parent=name.slice(0,name.lastIndexOf("/"))||"/";if(!tree2.statSync(parent).isDirectory())throw createNodeError$1("ENOTDIR","open",name);tree2.writeFileSync(name,"")}else if((flags&bits.truncate)!==0){tree2.writeFileSync(name,"")}const fd2=allocateFd();const position=(flags&bits.append)!==0&&exists?tree2.readFileSync(name).length:0;openFiles.set(fd2,{path:name,flags,position,directory:false,tree:tree2});return fd2})},close(fd2,req){return answer(req,()=>{const stream=handleForFd(fd2);if(stream instanceof LibuvStreamWrap){stream.close();return void 0}fileFor(fd2);openFiles.delete(fd2);return void 0})},read(fd2,buffer2,offset2,length,position,req){return answer(req,()=>{const file2=fileFor(fd2);if((file2.flags&3)===1)throw createNodeError$1("EBADF","read",file2.path);if(file2.cached===void 0)file2.cached=file2.tree.readFileSync(file2.path);const bytes2=file2.cached;const from=position===null||position===void 0||position<0?file2.position:position;const end=Math.min(from+length,bytes2.length);const read=end>from?end-from:0;if(read>0)buffer2.set(bytes2.subarray(from,end),offset2);if(position===null||position===void 0||position<0)file2.position=from+read;return read})},readBuffers(fd2,buffers,position,req){return answer(req,()=>{let total=0;for(const buffer2 of buffers){const read=fsBinding2.read(fd2,buffer2,0,buffer2.length,position===void 0?-1:position+total);total+=read;if(read<buffer2.length)break}return total})},readFileUtf8(path22,flags){const owned=typeof path22!=="number";const fd2=owned?fsBinding2.open(path22,flags,438):path22;try{const file2=fileFor(fd2);const bytes2=new Uint8Array(file2.tree.statSync(file2.path).size);const length=fsBinding2.read(fd2,bytes2,0,bytes2.length,-1);return new TextDecoder().decode(bytes2.subarray(0,length))}finally{if(owned)fsBinding2.close(fd2)}},writeBuffer(fd2,buffer2,offset2,length,position,req){return answer(req,()=>{var _a22;const stream=handleForFd(fd2);if(stream instanceof LibuvStreamWrap){if(position!==null&&position!==void 0&&position>=0)throw createNodeError$1("ESPIPE","write",String(fd2));const bytes2=buffer2.subarray(offset2,offset2+length);const status=stream.writeBuffer(new WriteWrap,bytes2);if(status!==0)throw createNodeError$1(errname(status),"write",String(fd2));return bytes2.length}const file2=fileFor(fd2);if((file2.flags&3)===0)throw createNodeError$1("EBADF","write",file2.path);const tree2=file2.tree;const slice=buffer2.subarray(offset2,offset2+length);const held=((_a22=file2.cached)==null?void 0:_a22.length)??(tree2.existsSync(file2.path)?tree2.statSync(file2.path).size:0);const end=(file2.flags&flagBits().append)!==0?held:position===null||position===void 0||position<0?file2.position:position;if(end===held&&typeof tree2.appendFileSync==="function"){tree2.appendFileSync(file2.path,slice);if(file2.cached!==void 0){let room=file2.room;if(!room||file2.cached.buffer!==room.buffer||file2.cached.byteOffset!==0||room.byteLength<held+slice.length){room=new Uint8Array(Math.max(held+slice.length,held*2,4096));room.set(file2.cached,0)}room.set(slice,held);file2.cached=room.subarray(0,held+slice.length);file2.room=room}if(position===null||position===void 0||position<0)file2.position=end+slice.length;return slice.length}if(typeof tree2.writeAtSync==="function"){const at222=position===null||position===void 0||position<0?file2.position:position;tree2.writeAtSync(file2.path,slice,at222);if(file2.cached!==void 0&&slice.length>0){const cached=file2.cached;const length2=Math.max(cached.length,at222+slice.length);let room=file2.room;if(!room||cached.buffer!==room.buffer||cached.byteOffset!==0||room.byteLength<length2){room=new Uint8Array(Math.max(length2,cached.length*2,4096));room.set(cached,0)}else if(at222>cached.length){room.fill(0,cached.length,at222)}room.set(slice,at222);file2.cached=room.subarray(0,length2);file2.room=room}if(position===null||position===void 0||position<0)file2.position=at222+slice.length;return slice.length}const existing=file2.cached??(tree2.existsSync(file2.path)?tree2.readFileSync(file2.path):new Uint8Array(0));const at22=(file2.flags&flagBits().append)!==0?existing.length:position===null||position===void 0||position<0?file2.position:position;const size=Math.max(existing.length,at22+slice.length);const next2=new Uint8Array(size);next2.set(existing,0);next2.set(slice,at22);tree2.writeFileSync(file2.path,next2);file2.cached=next2;if(position===null||position===void 0||position<0)file2.position=at22+slice.length;return slice.length})},writeBuffers(fd2,buffers,position,req){return answer(req,()=>{let total=0;for(const buffer2 of buffers){total+=fsBinding2.writeBuffer(fd2,buffer2,0,buffer2.length,position===null||position===void 0?null:position+total)}return total})},writeString(fd2,value,position,encoding,req){const bytes2=encoding==="utf8"||encoding===void 0||encoding==="utf-8"?new TextEncoder().encode(value):Uint8Array.from(value,character=>character.charCodeAt(0)&255);return fsBinding2.writeBuffer(fd2,bytes2,0,bytes2.length,position??null,req)},writeFileUtf8(path22,data2,flags,mode){const owned=typeof path22!=="number";const fd2=owned?fsBinding2.open(path22,flags,mode):path22;try{fsBinding2.writeString(fd2,data2,null,"utf8")}finally{if(owned)fsBinding2.close(fd2)}return void 0},stat(path22,bigint,req,throwIfNoEntry=true){const work=()=>{const name=asPath(path22);try{const stats=vfs().statSync(name,{throwIfNoEntry});return stats===void 0?void 0:statArray(stats,bigint,name)}catch(error){if(throwIfNoEntry===false&&error.code==="ENOENT")return void 0;throw error}};return answer(req,work)},lstat(path22,bigint,req,throwIfNoEntry=true){const work=()=>{const name=asPath(path22);try{const stats=vfs().lstatSync(name,{throwIfNoEntry});return stats===void 0?void 0:statArray(stats,bigint,name)}catch(error){if(throwIfNoEntry===false&&error.code==="ENOENT")return void 0;throw error}};return answer(req,work)},fstat(fd2,bigint,req){return answer(req,()=>{const file2=fileFor(fd2);return statArray(file2.tree.statSync(file2.path),bigint,file2.path)})},statfs(_path,bigint,req){return answer(req,()=>{const values=[0,4096,2**31,2**31,2**31,2**20,2**20];return bigint?BigInt64Array.from(values.map(value=>BigInt(value))):Float64Array.from(values)})},access(path22,mode,req){return answer(req,()=>{const name=asPath(path22);vfs().accessSync(name,mode);return void 0})},existsSync(path22){try{return vfs().existsSync(asPath(path22))}catch{return false}},cpSyncCheckPaths(src,dest,dereference,recursive){const source=asPath(src);const tree2=vfs();const srcStat=dereference?tree2.statSync(source):tree2.lstatSync(source);if(srcStat.isDirectory()&&!recursive){throw Object.assign(new Error(`EISDIR: illegal operation on a directory, cp '${source}' -> '${asPath(dest)}'`),{code:"ERR_FS_EISDIR",syscall:"cp",path:source,dest:asPath(dest)})}return void 0},cpSyncOverrideFile(src,dest,_mode,_preserveTimestamps){const tree2=vfs();tree2.writeFileSync(asPath(dest),tree2.readFileSync(asPath(src)));return void 0},cpSyncCopyDir(src,dest,force,dereference,errorOnExist,_verbatimSymlinks,_preserveTimestamps){const tree2=vfs();const walk=(from,to2)=>{const stats=dereference?tree2.statSync(from):tree2.lstatSync(from);if(stats.isDirectory()){if(!tree2.existsSync(to2))tree2.mkdirSync(to2,{recursive:true});else if(!tree2.statSync(to2).isDirectory()){throw Object.assign(new Error(`EEXIST: file already exists, cp '${from}' -> '${to2}'`),{code:"EEXIST",syscall:"cp",path:from})}for(const name of tree2.readdirSync(from))walk(`${from}/${name}`,`${to2}/${name}`);return}if(tree2.existsSync(to2)){if(errorOnExist)throw Object.assign(new Error(`EEXIST: file already exists, cp '${from}' -> '${to2}'`),{code:"EEXIST",syscall:"cp",path:from});if(!force)return}const parent=to2.slice(0,to2.lastIndexOf("/"))||"/";if(parent!=="/"&&!tree2.existsSync(parent))tree2.mkdirSync(parent,{recursive:true});tree2.writeFileSync(to2,tree2.readFileSync(from))};walk(asPath(src),asPath(dest));return void 0},internalModuleStat(receiver,path22){const name=path22===void 0?receiver:path22;try{const stats=vfs().statSync(asPath(name),{throwIfNoEntry:false});return stats===void 0?-2:stats.isDirectory()?1:0}catch{return-2}},readdir(path22,encoding,withFileTypes,req){return answer(req,()=>{const name=asPath(path22);const tree2=vfs();const names2=tree2.readdirSync(name).map(entry=>encodeFsName(entry,encoding));if(!withFileTypes)return names2;const types22=tree2.readdirSync(name).map(entry=>{try{const stats=tree2.lstatSync(`${name.endsWith("/")?name.slice(0,-1):name}/${entry}`);if(stats.isDirectory())return 2;if(stats.isSymbolicLink())return 10;return 1}catch{return 0}});return[names2,types22]})},mkdir(path22,mode,recursive,req){return answer(req,()=>{const name=asPath(path22);const tree2=vfs();const wanted=mode&511;if(tree2.existsSync(name)){const stats=tree2.statSync(name);if(!recursive||!stats.isDirectory())throw createNodeError$1("EEXIST","mkdir",name);return void 0}tree2.mkdirSync(name,{recursive});tree2.chmodSync(name,wanted);return void 0})},rmdir(path22,req){return answer(req,()=>{vfs().rmdirSync(asPath(path22));return void 0})},unlink(path22,req){return answer(req,()=>{vfs().unlinkSync(asPath(path22));return void 0})},rename(from,to2,req){return answer(req,()=>{vfs().renameSync(asPath(from),asPath(to2));return void 0})},copyFile(from,to2,mode,req){return answer(req,()=>{const tree2=vfs();const source=asPath(from);const target=asPath(to2);if((mode&1)!==0&&tree2.existsSync(target))throw createNodeError$1("EEXIST","copyfile",target);tree2.writeFileSync(target,tree2.readFileSync(source));return void 0})},link(from,to2,req){return answer(req,()=>{const target=asPath(to2);if(treeHoldsLinks()){vfs().writeFileSync(target,vfs().readFileSync(asPath(from)));return void 0}refuseLinks("link",target)})},symlink(target,path22,_type2,req){return answer(req,()=>{const name=asPath(path22);if(treeHoldsLinks()){vfs().symlinkSync(asWritten(target),name);return void 0}refuseLinks("symlink",name)})},readlink(path22,encoding,req){return answer(req,()=>encodeFsName(vfs().readlinkSync(asPath(path22)),encoding))},realpath(path22,encoding,req){return answer(req,()=>encodeFsName(vfs().realpathSync(asPath(path22)),encoding))},mkdtemp(prefix2,encoding,req){return answer(req,()=>{const tree2=vfs();const alphabet="abcdefghijklmnopqrstuvwxyz0123456789";for(;;){let suffix="";for(let index2=0;index2<6;index2+=1)suffix+=alphabet[Math.floor(Math.random()*alphabet.length)];const name=`${asPath(prefix2)}${suffix}`;if(tree2.existsSync(name))continue;tree2.mkdirSync(name,{recursive:true});return encodeFsName(name,encoding)}})},chmod(path22,mode,req){return answer(req,()=>{const name=asPath(path22);vfs().chmodSync(name,mode);return void 0})},fchmod(fd2,mode,req){return answer(req,()=>{const file2=fileFor(fd2);file2.tree.chmodSync(file2.path,mode);return void 0})},chown(_path,_uid,_gid,req){return answer(req,()=>unsupportedMetadata("chown"))},fchown(_fd,_uid,_gid,req){return answer(req,()=>unsupportedMetadata("fchown"))},lchown(_path,_uid,_gid,req){return answer(req,()=>unsupportedMetadata("lchown"))},utimes(path22,atime,mtime,req){return answer(req,()=>{vfs().utimesSync(asPath(path22),new Date(atime*1e3),new Date(mtime*1e3));return void 0})},futimes(fd2,atime,mtime,req){return answer(req,()=>{const file2=fileFor(fd2);file2.tree.utimesSync(file2.path,new Date(atime*1e3),new Date(mtime*1e3));return void 0})},lutimes(path22,atime,mtime,req){return answer(req,()=>{if(treeHoldsLinks())return unsupportedMetadata("lutimes");vfs().utimesSync(asPath(path22),new Date(atime*1e3),new Date(mtime*1e3));return void 0})},fsync(_fd,req){return answer(req,()=>void 0)},fdatasync(_fd,req){return answer(req,()=>void 0)},ftruncate(fd2,length,req){return answer(req,()=>{const file2=fileFor(fd2);if((file2.flags&3)===0)throw createNodeError$1("EBADF","ftruncate",file2.path);const tree2=file2.tree;const bytes2=file2.cached??tree2.readFileSync(file2.path);const next2=new Uint8Array(length);next2.set(bytes2.subarray(0,Math.min(length,bytes2.length)));tree2.writeFileSync(file2.path,next2);file2.cached=next2;return void 0})}};return{fsBinding:fsBinding2,fsDirBinding:fsDirBinding2,fsEventWrapBinding:fsEventWrapBinding2,FSReqCallback:FSReqCallback2,DirHandle:DirHandle2,FSEvent:FSEvent2,StatWatcher:StatWatcher2,FileHandle:FileHandle2}}var kUsePromises=Symbol("kUsePromises");var hostBindings=createFsBindings();var{fsBinding,fsDirBinding,fsEventWrapBinding}=hostBindings;var TerminalEndpoint=class{constructor(terminal,slave){__publicField2(this,"descriptors",new Set);__publicField2(this,"readers",new Set);__publicField2(this,"input",[]);__publicField2(this,"peer");__publicField2(this,"eof",false);__publicField2(this,"scheduled",false);this.terminal=terminal;this.slave=slave}pump(){if(this.scheduled)return;this.scheduled=true;queueMicrotask(()=>{this.scheduled=false;while(this.input.length){const reader=[...this.readers].find(handle=>handle.reading&&!handle.closed&&!handle.descriptor.closed);if(!reader)return;reader.deliver(this.input.shift())}if(this.eof)for(const reader of this.readers)reader.receiveEof()})}release(descriptor){this.descriptors.delete(descriptor);if(this.descriptors.size||!this.peer)return;this.peer.eof=true;this.peer.pump();this.input.length=0}};var TTY=class _TTY extends LibuvStreamWrap{constructor(fd2,ctx){var _a22;super();__publicField2(this,"descriptor");__publicField2(this,"endpoint");this.fd=fd2;const held=handleForFd(fd2);this.descriptor=held instanceof _TTY?held.descriptor:this;this.endpoint=held instanceof _TTY?held.endpoint:void 0;(_a22=this.endpoint)==null?void 0:_a22.readers.add(this);if(ctx&&typeof ctx==="object"&&!isTTY(fd2)){ctx.code="ENOTTY"}}get fdNumber(){return this.fd}get terminal(){var _a22;return(_a22=this.endpoint)==null?void 0:_a22.terminal}get slave(){var _a22;return((_a22=this.endpoint)==null?void 0:_a22.slave)===true}getWindowSize(out){var _a22,_b22;out[0]=((_a22=this.terminal)==null?void 0:_a22.columns)??80;out[1]=((_b22=this.terminal)==null?void 0:_b22.rows)??24;return 0}setRawMode(_raw){return this.endpoint?UV_ENOTSUP:0}static allocate(endpoint){const handle=new _TTY(-1);handle.endpoint=endpoint;handle.fd=registerFd("TTY",handle);endpoint.descriptors.add(handle);endpoint.readers.add(handle);return handle}duplicate(){if(!this.endpoint||this.closed||this.descriptor.closed)throw Object.assign(new Error("Bad terminal descriptor"),{code:"EBADF"});return _TTY.allocate(this.endpoint)}readStart(){var _a22;if(this.descriptor.closed)return UV_EBADF;const result=super.readStart();(_a22=this.endpoint)==null?void 0:_a22.pump();return result}deliver(bytes2){this.receive(bytes2);this.flushInbound()}dispatchWrite(req,bytes2){var _a22;if(!this.endpoint)return super.dispatchWrite(req,bytes2);if(this.closed||this.descriptor.closed)return UV_EBADF;if(!((_a22=this.endpoint.peer)==null?void 0:_a22.descriptors.size))return UV_EIO;const status=super.dispatchWrite(req,bytes2);if(bytes2.byteLength)this.endpoint.peer.input.push(bytes2.slice());this.endpoint.peer.pump();return status}onCloseHandle(){var _a22,_b22,_c22;(_a22=this.endpoint)==null?void 0:_a22.readers.delete(this);if(this.descriptor!==this){this.descriptor.close();return}releaseFd(this.fd);(_b22=this.endpoint)==null?void 0:_b22.release(this);for(const reader of((_c22=this.endpoint)==null?void 0:_c22.readers)??[]){if(reader.descriptor===this)reader.close()}}};function openPty(columns,rows){validSize(columns,rows);const listeners=new Set;const terminal={columns,rows,onResize(listener){listeners.add(listener);return()=>{listeners.delete(listener)}},resize(columns2,rows2){validSize(columns2,rows2);this.columns=columns2;this.rows=rows2;for(const listener of listeners)listener(columns2,rows2)}};const master=new TerminalEndpoint(terminal,false);const slave=new TerminalEndpoint(terminal,true);master.peer=slave;slave.peer=master;const masterFd=TTY.allocate(master).fd;const slaveFd=TTY.allocate(slave).fd;return{master:masterFd,slave:slaveFd,pty:`/dev/pts/${slaveFd}`}}function validSize(columns,rows){if(![columns,rows].every(value=>Number.isInteger(value)&&value>0))throw Object.assign(new Error("Invalid terminal size"),{code:"EINVAL"})}function resizePty(fd2,columns,rows){var _a22;const terminal=handleForFd(fd2);if(!(terminal instanceof TTY)||terminal.closed)throw Object.assign(new Error("Bad terminal descriptor"),{code:"EBADF"});(_a22=terminal.terminal)==null?void 0:_a22.resize(columns,rows)}function isTTY(fd2){if(fd2!==0&&fd2!==1&&fd2!==2)return guessHandleTypeOfFd(fd2)==="TTY";const realm=globalThis.process;const stream=fd2===0?realm==null?void 0:realm.stdin:fd2===1?realm==null?void 0:realm.stdout:realm==null?void 0:realm.stderr;return(stream==null?void 0:stream.isTTY)===true}var ttyWrapBinding={TTY,isTTY,openPty,resizePty};var runner=null;function setProcessRunner(next2){runner=next2}var nextAsyncId=1;function environmentOf$2(envPairs){const env={};for(const pair of envPairs??[]){const at22=pair.indexOf("=");if(at22<=0)continue;env[pair.slice(0,at22)]=pair.slice(at22+1)}return env}var signalNames={1:"SIGHUP",2:"SIGINT",3:"SIGQUIT",6:"SIGABRT",9:"SIGKILL",10:"SIGUSR1",12:"SIGUSR2",13:"SIGPIPE",14:"SIGALRM",15:"SIGTERM"};function signalNameOf(signal){if(typeof signal==="string")return signal;return signalNames[signal]??"SIGTERM"}function parentProcess(token){var _a22;return token!==null?(_a22=__runFor(token))==null?void 0:_a22.process:globalThis.process}function spawningDirectory(token){const realm=parentProcess(token);if(typeof(realm==null?void 0:realm.cwd)!=="function")return void 0;try{return realm.cwd()}catch{return void 0}}function inheritedWriter$1(fd2,token){if(fd2!==1&&fd2!==2)return descriptorWriter(fd2);if(token!==null){const parent=__runFor(token);return(fd2===1?parent==null?void 0:parent.stdout:parent==null?void 0:parent.stderr)??null}const realm=parentProcess(token);const stream=fd2===1?realm==null?void 0:realm.stdout:realm==null?void 0:realm.stderr;if(!stream||typeof stream.write!=="function")return null;return text=>{try{stream.write(text)}catch{}}}var Process=class{constructor(){__publicField2(this,"onexit",null);__publicField2(this,"pid");__publicField2(this,"run",null);__publicField2(this,"ended",false);__publicField2(this,"closed",false);__publicField2(this,"stdio",[]);__publicField2(this,"terminalEnds",new Map);__publicField2(this,"asyncId",nextAsyncId++);registerHandle(this)}getAsyncId(){return this.asyncId}ref(){refHandle(this)}unref(){unrefHandle(this)}hasRef(){return handleHasRef(this)}spawn(options){if(!runner)return UV_ENOENT;const env=environmentOf$2(options.envPairs);this.stdio=options.stdio??[];const request={file:options.file,args:options.args??[options.file],cwd:options.cwd??spawningDirectory(ownerOf(this)),env,detached:options.detached===true,stdout:null,stderr:null,stderrIsPipe:false,stdinIsPipe:false,descriptors:[],exit:(code22,signal)=>{this.reportExit(code22,signal)}};let stdinFar=null;for(let index2=0;index2<this.stdio.length;index2+=1){const entry=this.stdio[index2];if(!entry)continue;if(index2<3&&!entry.ipc){const descriptor=entry.type==="fd"||entry.type==="inherit"?handleForFd(entry.fd??index2):entry.handle;if(descriptor instanceof TTY&&descriptor.slave){const inherited=descriptor.duplicate();__adoptHandle(inherited,null);this.terminalEnds.set(index2,inherited);request.terminal=inherited.terminal;if(index2===0){stdinFar=inherited;request.stdinIsPipe=true}else if(index2===1)request.stdout=text=>this.toPipe(index2,text);else request.stderr=text=>this.toPipe(index2,text);continue}}const far=this.pairFarEnd(entry);if(entry.ipc){if(far){request.channel={fd:index2,pipe:far,serialization:env.NODE_CHANNEL_SERIALIZATION_MODE||"json"}}continue}if(index2===0){stdinFar=far;request.stdinIsPipe=far!==null;continue}if(index2>2){if(far)request.descriptors.push({fd:index2,pipe:far});continue}if(far){const to2=index2;const write=text=>{this.toPipe(to2,text)};if(index2===1)request.stdout=write;else{request.stderr=write;request.stderrIsPipe=true}}else if(entry.type==="inherit"||entry.type==="fd"){const inherited=inheritedWriter$1(entry.fd??index2,ownerOf(this));if(index2===1)request.stdout=inherited;else request.stderr=inherited}}if(!runner.resolves(request)){this.closeFarEnds();return UV_ENOENT}this.run=runner.start(request);this.pid=this.run.pid??mintPid();if(stdinFar)this.readStdinFrom(stdinFar);return 0}kill(signal){if(this.ended||!this.run)return UV_ESRCH;if(signal===0)return 0;return this.run.kill(signalNameOf(signal))}close(callback){if(!this.closed){this.closed=true;releaseHandle(this)}if(callback)queueMicrotask(callback)}pairFarEnd(entry){if(entry.type!=="pipe"&&entry.type!=="overlapped")return null;if(!entry.handle)return null;const far=new Pipe(entry.ipc?constants$4.IPC:constants$4.SOCKET);__adoptHandle(far,null);LibuvStreamWrap.pair(entry.handle,far);return far}farEndAt(index2){var _a22,_b22;return this.terminalEnds.get(index2)??((_b22=(_a22=this.stdio[index2])==null?void 0:_a22.handle)==null?void 0:_b22.peer)??null}closeFarEnds(){for(let index2=0;index2<this.stdio.length;index2+=1){const far=this.farEndAt(index2);if(!far)continue;try{far.close()}catch{}}}toPipe(index2,text){const far=this.farEndAt(index2);if(!far||far.closed)return;far.writeUtf8String(new WriteWrap,text)}readStdinFrom(far){far.onread=arrayBuffer=>{var _a22;const length=streamBaseState[kReadBytesOrError];if(length<=0||arrayBuffer===null){(_a22=this.run)==null?void 0:_a22.endStdin();return}const run=this.run;const consumed=run==null?void 0:run.writeStdin(new Uint8Array(arrayBuffer,streamBaseState[kArrayBufferOffset],length).slice());if(consumed){far.readStop();void consumed.then(()=>{if(this.run===run&&!this.ended&&!far.closed)far.readStart()},()=>{if(this.run===run&&!this.ended){far.close();run==null?void 0:run.endStdin()}})}};far.readStart()}reportExit(code22,signal){if(this.ended)return;this.ended=true;this.closeFarEnds();const report=this.onexit;this.run=null;if(report)report(code22,signal)}};var processWrapBinding={Process};var hostVfs=null;function setSyncChildVfs(vfs2){hostVfs=vfs2}var hostProcess=typeof process!=="undefined"&&process!==null?process:null;var CONTROL_BYTES=32;var DATA_BYTES=1<<22;var TO_PARENT=0;var TO_PARENT_LEN=1;var TO_WORKER=2;var TO_WORKER_LEN=3;var STARTED=4;var START_WAIT_MS=5e3;var RUN_WAIT_MS=10*6e4;var BEGIN_WAIT_MS=15e3;var ENGINE_LOAD_WAIT_MS=6e4;var service=null;function engineModuleURL(){try{const url2=import.meta.url;return typeof url2==="string"&&url2.length>0?url2:null}catch{return null}}function workerSource(){return["globalThis.__substrateSyncChildThread = true;","const inNode = typeof self === 'undefined' || typeof self.postMessage !== 'function';","const port = inNode ? (await import('node:worker_threads')).parentPort : self;","const encoder = new TextEncoder(), decoder = new TextDecoder();","let control, toParent, toWorker, engine, holdsLinks = false;","function send(text) {"," const bytes = encoder.encode(text); let offset = 0;"," do {"," const length = Math.min(bytes.length - offset, toParent.length);"," toParent.set(bytes.subarray(offset, offset + length)); offset += length;"," control[1] = length; const more = offset < bytes.length;"," Atomics.store(control, 0, more ? 2 : 1); Atomics.notify(control, 0);"," const until = Date.now() + "+String(RUN_WAIT_MS)+";"," while (Atomics.load(control, 0) !== 0) {"," Atomics.wait(control, 0, more ? 2 : 1, 1000);"," if (Atomics.load(control, 0) !== 0 && Date.now() > until) throw new Error('the caller of a synchronous child stopped reading');"," }"," } while (offset < bytes.length);","}","function receive() {"," const chunks = [];"," for (;;) {"," const until = Date.now() + "+String(RUN_WAIT_MS)+";"," while (Atomics.load(control, 2) === 0) {"," Atomics.wait(control, 2, 0, 1000);"," if (Atomics.load(control, 2) === 0 && Date.now() > until) throw new Error('the caller of a synchronous child stopped answering');"," }"," const state = Atomics.load(control, 2);"," chunks.push(toWorker.slice(0, control[3]));"," Atomics.store(control, 2, 0); Atomics.notify(control, 2);"," if (state !== 2) break;"," }"," let total = 0; for (const chunk of chunks) total += chunk.length;"," const joined = new Uint8Array(total); let at = 0;"," for (const chunk of chunks) { joined.set(chunk, at); at += chunk.length; }"," return decoder.decode(joined);","}","function call(method, args) {"," send(JSON.stringify({ t: 'fs', m: method, a: args }));"," const answer = JSON.parse(receive());"," if (!answer.ok) throw Object.assign(new Error(answer.e.message), answer.e);"," return answer.v;","}","const toBytes = (b64) => { const raw = atob(b64); const out = new Uint8Array(raw.length); for (let i = 0; i < raw.length; i++) out[i] = raw.charCodeAt(i); return out; };","const fromBytes = (bytes) => { let raw = ''; for (let i = 0; i < bytes.length; i += 0x8000) raw += String.fromCharCode.apply(null, bytes.subarray(i, i + 0x8000)); return btoa(raw); };","function reviveStat(s) {"," return { size: s.size, mode: s.mode, uid: 0, gid: 0, dev: 0, ino: s.ino, nlink: 1, rdev: 0, blksize: 4096, blocks: Math.ceil(s.size / 512),"," mtime: new Date(s.mtimeMs), atime: new Date(s.atimeMs), ctime: new Date(s.ctimeMs), birthtime: new Date(s.birthtimeMs),"," mtimeMs: s.mtimeMs, atimeMs: s.atimeMs, ctimeMs: s.ctimeMs, birthtimeMs: s.birthtimeMs,"," isFile: () => s.file, isDirectory: () => s.dir, isSymbolicLink: () => s.link,"," isBlockDevice: () => false, isCharacterDevice: () => false, isFIFO: () => false, isSocket: () => false };","}","function proxyOf(VirtualFS) {"," const stubs = new Map();"," return class ProxyVFS extends VirtualFS {"," get holdsLinks() { return holdsLinks; }"," existsSync(p) { return call('existsSync', [p]); }"," statSync(p) { return reviveStat(call('statSync', [p])); }"," lstatSync(p) { return reviveStat(call('lstatSync', [p])); }"," readFileSync(p, e) { const v = call('readFileSync', [p, typeof e === 'string' ? e : (e && e.encoding) || null]); return typeof v === 'string' ? v : toBytes(v.b64); }"," writeFileSync(p, d) { return call('writeFileSync', [p, typeof d === 'string' ? d : { b64: fromBytes(d instanceof Uint8Array ? d : new Uint8Array(d)) }]); }"," readdirSync(p, o) { return call('readdirSync', [p, o || null]); }"," realpathSync(p) { return call('realpathSync', [p]); }"," readlinkSync(p) { return call('readlinkSync', [p]); }"," symlinkSync(t, p) { return call('symlinkSync', [t, p]); }"," mkdirSync(p, o) { return call('mkdirSync', [p, o || null]); }"," unlinkSync(p) { return call('unlinkSync', [p]); }"," rmdirSync(p, o) { return call('rmdirSync', [p, o || null]); }"," renameSync(a, b) { return call('renameSync', [a, b]); }"," copyFileSync(a, b) { return call('copyFileSync', [a, b]); }"," accessSync(p, m) { return call('accessSync', [p, typeof m === 'number' ? m : null]); }"," getNode(p) { if (!this.existsSync(p)) return undefined; let stub = stubs.get(p); if (!stub) { const s = this.statSync(p); stub = { type: s.isDirectory() ? 'directory' : 'file', mtime: s.mtimeMs, atime: s.atimeMs }; stubs.set(p, stub); } return stub; }"," readFile(p, o, cb) { const done = typeof o === 'function' ? o : cb; const enc = typeof o === 'string' ? o : (o && o.encoding); queueMicrotask(() => { try { done(null, this.readFileSync(p, enc)); } catch (e) { done(e); } }); }"," stat(p, cb) { queueMicrotask(() => { try { cb(null, this.statSync(p)); } catch (e) { cb(e); } }); }"," lstat(p, cb) { queueMicrotask(() => { try { cb(null, this.lstatSync(p)); } catch (e) { cb(e); } }); }"," readdir(p, o, cb) { const done = typeof o === 'function' ? o : cb; queueMicrotask(() => { try { done(null, this.readdirSync(p, typeof o === 'function' ? null : o)); } catch (e) { done(e); } }); }"," realpath(p, cb) { queueMicrotask(() => { try { cb(null, this.realpathSync(p)); } catch (e) { cb(e); } }); }"," access(p, m, cb) { const done = typeof m === 'function' ? m : cb; queueMicrotask(() => { try { this.accessSync(p, typeof m === 'number' ? m : undefined); done(null); } catch (e) { done(e); } }); }"," watch() { const w = { close() {}, on() { return w; }, ref() { return w; }, unref() { return w; } }; return w; }"," on() { return this; }"," off() { return this; }"," };","}","async function run(message) {"," try {"," send(JSON.stringify({ t: 'begin' }));"," holdsLinks = message.holdsLinks === true;"," if (!engine) engine = await Promise.race(["," import(message.engineURL),"," new Promise((resolve, reject) => setTimeout(() => reject(new Error('the thread could not load the engine within ' + (message.loadWaitMs / 1000) + ' s from ' + message.engineURL)), message.loadWaitMs)),"," ]);"," const vfs = new (proxyOf(engine.VirtualFS))();"," const container = engine.createContainer({ vfs, cwd: message.cwd, env: message.env });"," const result = await container.run(message.command, {"," cwd: message.cwd, env: message.env,"," ...(typeof message.input === 'string' ? { stdin: message.input } : {}),"," onStdout: (text) => send(JSON.stringify({ t: 'out', s: 1, d: String(text) })),"," onStderr: (text) => send(JSON.stringify({ t: 'out', s: 2, d: String(text) })),"," });"," send(JSON.stringify({ t: 'done', stdout: result.stdout, stderr: result.stderr, status: result.exitCode }));"," } catch (error) {"," send(JSON.stringify({ t: 'failed', message: String((error && error.stack) || error) }));"," }","}","function receiveMessage(message) {"," if (message.type === 'attach') {"," control = new Int32Array(message.control); toParent = new Uint8Array(message.toParent); toWorker = new Uint8Array(message.toWorker);"," Atomics.store(control, 4, 1); Atomics.notify(control, 4);"," } else if (message.type === 'run') { run(message); }","}","if (!inNode) self.onmessage = (event) => receiveMessage(event.data);","else port.on('message', receiveMessage);"].join("\n")}function workerClass(){const own=globalThis.Worker;if(typeof own==="function")return own;const builtin=hostProcess&&typeof hostProcess.getBuiltinModule==="function"?hostProcess.getBuiltinModule("worker_threads"):void 0;return builtin&&typeof builtin.Worker==="function"?builtin.Worker:null}function syncChildRefusal(){if(typeof SharedArrayBuffer!=="function"||typeof Atomics==="undefined"){return"this realm has no shared memory to wait on a child with (SharedArrayBuffer is absent)"}try{Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,1,0)}catch{return"this realm cannot block on shared memory, so it cannot wait for a child (a page's main thread refuses Atomics.wait; a worker does not)"}if(workerClass()===null)return"this realm cannot start a thread to run a child on (Worker is absent)";if(engineModuleURL()===null)return"the engine cannot name its own module, so a thread cannot load one";return null}function warmSyncChild(){if(globalThis.__substrateSyncChildThread===true)return;if(service||syncChildRefusal()!==null)return;const WorkerClass=workerClass();const control=new Int32Array(new SharedArrayBuffer(CONTROL_BYTES));const toParent=new Uint8Array(new SharedArrayBuffer(DATA_BYTES));const toWorker=new Uint8Array(new SharedArrayBuffer(DATA_BYTES));const source=workerSource();const inBrowser=typeof globalThis.WorkerGlobalScope!=="undefined"||typeof globalThis.document!=="undefined";const url2=inBrowser&&typeof Blob==="function"&&typeof URL.createObjectURL==="function"?URL.createObjectURL(new Blob([source],{type:"text/javascript"})):new URL(`data:text/javascript,${encodeURIComponent(source)}`);const worker2=new WorkerClass(url2,{type:"module"});const started2={control,toParent,toWorker,worker:worker2};const failed=event=>{started2.failure=String((event==null?void 0:event.message)??event)};if(typeof worker2.on==="function")worker2.on("error",failed);else worker2.onerror=failed;if(typeof worker2.unref==="function")worker2.unref();worker2.postMessage({type:"attach",control:control.buffer,toParent:toParent.buffer,toWorker:toWorker.buffer});service=started2}function dropService(){if(!service)return;try{service.worker.terminate()}catch{}service=null}var encoder=new TextEncoder;var decoder$1=new TextDecoder;function sendToWorker(active2,text){const bytes2=encoder.encode(text);let offset2=0;do{const length=Math.min(bytes2.length-offset2,active2.toWorker.length);active2.toWorker.set(bytes2.subarray(offset2,offset2+length));offset2+=length;active2.control[TO_WORKER_LEN]=length;const more=offset2<bytes2.length;Atomics.store(active2.control,TO_WORKER,more?2:1);Atomics.notify(active2.control,TO_WORKER);while(Atomics.load(active2.control,TO_WORKER)!==0)Atomics.wait(active2.control,TO_WORKER,more?2:1,RUN_WAIT_MS)}while(offset2<bytes2.length)}function receiveFromWorker(active2,waitMs){const chunks=[];for(;;){Atomics.wait(active2.control,TO_PARENT,0,waitMs);const state=Atomics.load(active2.control,TO_PARENT);if(state===0){const failure=active2.failure;dropService();throw new Error(`the thread a synchronous child runs on answered nothing within ${waitMs/1e3} s${failure?` (${failure})`:""}`)}chunks.push(active2.toParent.slice(0,active2.control[TO_PARENT_LEN]));Atomics.store(active2.control,TO_PARENT,0);Atomics.notify(active2.control,TO_PARENT);if(state!==2)break}let total=0;for(const chunk of chunks)total+=chunk.length;const joined=new Uint8Array(total);let at22=0;for(const chunk of chunks){joined.set(chunk,at22);at22+=chunk.length}return decoder$1.decode(joined)}function answerFilesystem(method,args){const vfs2=hostVfs;const plain=args.map(value=>value===null?void 0:value);if(method==="statSync"||method==="lstatSync"){const stats=vfs2[method](plain[0]);const ms2=value=>value instanceof Date?value.getTime():Number(value)||0;return{file:stats.isFile(),dir:stats.isDirectory(),link:stats.isSymbolicLink(),size:stats.size,mode:stats.mode,ino:inodeOf(String(plain[0])),mtimeMs:ms2(stats.mtime),atimeMs:ms2(stats.atime),ctimeMs:ms2(stats.ctime),birthtimeMs:ms2(stats.birthtime)}}if(method==="readFileSync"){const value=vfs2.readFileSync(plain[0],plain[1]);return typeof value==="string"?value:{b64:base64(value)}}if(method==="writeFileSync"){const data2=plain[1];return vfs2.writeFileSync(plain[0],typeof data2==="string"?data2:bytes$1(data2.b64))??null}const answer2=vfs2[method];if(typeof answer2!=="function")throw Object.assign(new Error(`ENOSYS: the tree answers no ${method}`),{code:"ENOSYS"});return answer2.apply(hostVfs,plain)??null}var inodes=new Map;var nextInode$1=1;function inodeOf(path22){let inode=inodes.get(path22);if(inode===void 0){inode=nextInode$1++;inodes.set(path22,inode)}return inode}function base64(value){let raw="";for(let i22=0;i22<value.length;i22+=32768)raw+=String.fromCharCode.apply(null,Array.from(value.subarray(i22,i22+32768)));return btoa(raw)}function bytes$1(b64){const raw=atob(b64);const out=new Uint8Array(raw.length);for(let i22=0;i22<raw.length;i22++)out[i22]=raw.charCodeAt(i22);return out}function runSyncChild(request){var _a22,_b22;const refusal=syncChildRefusal();if(refusal!==null)throw new Error(refusal);if(hostVfs===null)throw new Error("the engine has no filesystem for a child to run on");if(!service)warmSyncChild();const active2=service;if(Atomics.load(active2.control,STARTED)!==1){Atomics.wait(active2.control,STARTED,0,START_WAIT_MS);if(Atomics.load(active2.control,STARTED)!==1){const failure=active2.failure;dropService();throw new Error(`the thread a synchronous child runs on did not start within ${START_WAIT_MS/1e3} s${failure?` (${failure})`:""}`)}}Atomics.store(active2.control,TO_PARENT,0);active2.worker.postMessage({type:"run",command:request.command,cwd:request.cwd,env:request.env,input:request.input,engineURL:engineModuleURL(),loadWaitMs:ENGINE_LOAD_WAIT_MS,holdsLinks:hostVfs.holdsLinks===true});let stdout="";let stderr="";let waitMs=BEGIN_WAIT_MS;for(;;){const message=JSON.parse(receiveFromWorker(active2,waitMs));waitMs=RUN_WAIT_MS;if(message.t==="begin")continue;if(message.t==="fs"){let answer2;try{answer2=JSON.stringify({ok:true,v:answerFilesystem(message.m,message.a)})}catch(error){const failure=error;answer2=JSON.stringify({ok:false,e:{message:String((failure==null?void 0:failure.message)??error),code:failure==null?void 0:failure.code,errno:failure==null?void 0:failure.errno,syscall:failure==null?void 0:failure.syscall,path:failure==null?void 0:failure.path}})}sendToWorker(active2,answer2);continue}if(message.t==="out"){if(message.s===1){stdout+=message.d;(_a22=request.onStdout)==null?void 0:_a22.call(request,message.d)}else{stderr+=message.d;(_b22=request.onStderr)==null?void 0:_b22.call(request,message.d)}continue}if(message.t==="failed")throw new Error(message.message);return{status:message.status,signal:null,stdout:message.stdout.length>=stdout.length?message.stdout:stdout,stderr:message.stderr.length>=stderr.length?message.stderr:stderr}}}var __substrateExecPath="/usr/local/bin/node";function __substrateShellWord(word){return/^[A-Za-z0-9_./:@%+=,-]+$/u.test(word)?word:"'"+word.replaceAll("'","'\\''")+"'"}function __substrateProgramName(file2){const execPath=typeof process!=="undefined"&&process!==null&&typeof process.execPath==="string"?process.execPath:__substrateExecPath;if(file2===execPath||file2===__substrateExecPath)return"node";if(file2.includes("/")&&file2.slice(file2.lastIndexOf("/")+1)==="node")return"node";return file2}function __substrateCommandLine(file2,args){const program=__substrateShellWord(__substrateProgramName(file2));return args.length>0?`${program} ${args.map(arg=>__substrateShellWord(String(arg))).join(" ")}`:program}function __substrateShellLine(file2,argv){const program=file2.includes("/")?file2.slice(file2.lastIndexOf("/")+1):file2;if(program!=="sh"&&program!=="bash"&&program!=="dash"&&program!=="zsh")return null;const dashC=argv.indexOf("-c");if(dashC<1||typeof argv[dashC+1]!=="string")return null;return argv[dashC+1]}var resolveProgram=file2=>file2;function setProgramResolver(resolve2){resolveProgram=resolve2}function __substrateLineFor(file2,argv,cwd){const shell=__substrateShellLine(file2,argv);if(shell!==null)return shell;return __substrateCommandLine(resolveProgram(file2,cwd),argv.slice(1))}var nextPid=1001+Math.floor(Math.random()*3e4);function environmentOf$1(envPairs){if(!envPairs)return void 0;const env={};for(const pair of envPairs){const at22=pair.indexOf("=");if(at22<=0)continue;env[pair.slice(0,at22)]=pair.slice(at22+1)}return env}function inheritedWriter(fd2){const realm=globalThis.process;const stream=fd2===1?realm==null?void 0:realm.stdout:realm==null?void 0:realm.stderr;if(!stream||typeof stream.write!=="function")return void 0;return text=>{try{stream.write(text)}catch{}}}function bufferClass$1(){return libRequire("buffer").Buffer}function spawn(options){var _a22,_b22,_c22,_d22;const Buffer2=bufferClass$1();const pid=nextPid++;const argv=options.args??[options.file];const stdio=options.stdio??[];const nothing=error=>({pid,output:null,status:null,signal:null,error});if(syncChildRefusal()!==null)return nothing(UV_ENOSYS);const input=(_a22=stdio[0])==null?void 0:_a22.input;const realm=globalThis.process;let answer2;try{answer2=runSyncChild({command:__substrateLineFor(options.file,argv,options.cwd),cwd:options.cwd??(typeof(realm==null?void 0:realm.cwd)==="function"?realm.cwd():void 0),env:environmentOf$1(options.envPairs)??((realm==null?void 0:realm.env)?{...realm.env}:void 0),input:input===void 0?void 0:Buffer2.from(input).toString("utf8"),onStdout:((_b22=stdio[1])==null?void 0:_b22.type)==="inherit"?inheritedWriter(1):void 0,onStderr:((_c22=stdio[2])==null?void 0:_c22.type)==="inherit"?inheritedWriter(2):void 0})}catch{return nothing(UV_ENOSYS)}const named=__substrateShellLine(options.file,argv)===null;if(named&&answer2.status===127&&/command not found|No such file or directory/u.test(answer2.stderr)){return nothing(UV_ENOENT)}if(named&&answer2.status===126&&/Permission denied|not executable/u.test(answer2.stderr)){return nothing(UV_EACCES)}const limit=typeof options.maxBuffer==="number"&&options.maxBuffer>=0?options.maxBuffer:Infinity;const stdout=Buffer2.from(answer2.stdout,"utf8");const stderr=Buffer2.from(answer2.stderr,"utf8");const overflowed=stdout.length>limit||stderr.length>limit;const output=[null];for(let index2=1;index2<Math.max(3,stdio.length);index2+=1){const bytes2=index2===1?stdout:index2===2?stderr:null;const kind=(_d22=stdio[index2])==null?void 0:_d22.type;output.push(bytes2===null||kind==="ignore"||kind==="inherit"?null:bytes2)}return{pid,output,status:answer2.status,signal:answer2.signal,...overflowed?{error:UV_ENOBUFS}:{}}}var spawnSyncBinding={spawn};var UDP=class{};var udpWrapBinding={UDP};var LLHTTP_WASM_BASE64="AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38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CACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA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kACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBh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QMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYN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IUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgB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TYPE_RESPONSE=2;var ERROR_OK=0;var ERROR_PAUSED=21;var ERROR_PAUSED_UPGRADE=22;var kOnMessageBegin=0;var kOnHeaders=1;var kOnHeadersComplete=2;var kOnBody=3;var kOnMessageComplete=4;var kOnExecute=5;var kOnTimeout=6;var current=null;var wasm;var memoryBytes;var latin1;function decode$1(at22,length){latin1??(latin1=new TextDecoder("latin1"));return latin1.decode(bytes().subarray(at22,at22+length))}function bytes(){const memory=llhttp().memory;if(memoryBytes===void 0||memoryBytes.buffer!==memory.buffer){memoryBytes=new Uint8Array(memory.buffer)}return memoryBytes}function llhttp(){if(wasm!==void 0)return wasm;let module;try{const binary=Uint8Array.from(atob(LLHTTP_WASM_BASE64),character=>character.charCodeAt(0));module=new WebAssembly.Module(binary)}catch(error){throw Object.assign(new Error("http: llhttp could not be compiled in this realm. A browser refuses a synchronous WebAssembly compile of more than 4 KB on the main thread; the engine parses HTTP where it runs a guest, which is a worker."),{cause:error,code:"ERR_HTTP_PARSER_UNAVAILABLE"})}const instance=new WebAssembly.Instance(module,{env:{wasm_on_message_begin:()=>current.onMessageBegin(),wasm_on_url:(_p2,at22,length)=>current.onUrl(at22,length),wasm_on_status:(_p2,at22,length)=>current.onStatus(at22,length),wasm_on_header_field:(_p2,at22,length)=>current.onHeaderField(at22,length),wasm_on_header_value:(_p2,at22,length)=>current.onHeaderValue(at22,length),wasm_on_headers_complete:(_p2,statusCode,upgrade,shouldKeepAlive)=>current.onHeadersComplete(statusCode,Boolean(upgrade),Boolean(shouldKeepAlive)),wasm_on_body:(_p2,at22,length)=>current.onBody(at22,length),wasm_on_message_complete:()=>current.onMessageComplete()}});wasm=instance.exports;wasm._initialize();return wasm}function cstring(ptr){if(ptr===0)return"";const view=bytes();let end=ptr;while(view[end]!==0)end+=1;return decode$1(ptr,end-ptr)}var allMethodsCache;function allMethodsOf(){if(allMethodsCache)return allMethodsCache;const exports$1=llhttp();const names2=[];for(let method=0;;method+=1){let name;try{name=cstring(exports$1.llhttp_method_name(method))}catch{break}if(name==="")break;names2.push(name)}allMethodsCache=names2;return names2}_j=kOnMessageBegin,_i2=kOnHeaders,_h2=kOnHeadersComplete,_g2=kOnBody,_f2=kOnMessageComplete,_e2=kOnExecute,_d2=kOnTimeout;var _HTTPParser=class _HTTPParser2{constructor(){__privateAdd(this,_HTTPParser_instances);__publicField2(this,_j,null);__publicField2(this,_i2,null);__publicField2(this,_h2,null);__publicField2(this,_g2,null);__publicField2(this,_f2,null);__publicField2(this,_e2,null);__publicField2(this,_d2,null);__privateAdd(this,_ptr,0);__privateAdd(this,_type,TYPE_REQUEST);__privateAdd(this,_maxHeaderSize,16*1024);__privateAdd(this,_headerBytes,0);__privateAdd(this,_headers,[]);__privateAdd(this,_field,"");__privateAdd(this,_value,"");__privateAdd(this,_readingValue,false);__privateAdd(this,_url,"");__privateAdd(this,_statusMessage,"");__privateAdd(this,_headersSent,false);__privateAdd(this,_paused,false);__privateAdd(this,_buffer,null);__privateAdd(this,_bufferPtr,0);__privateAdd(this,_bufferSize,0);__privateAdd(this,_connections);__publicField2(this,"socket");__publicField2(this,"headersStart",0);__publicField2(this,"messageStart",0);__publicField2(this,"active",false)}initialize(type2,_resource,maxHeaderSize,lenient,connections){var _a22;const exports$1=llhttp();if(__privateGet(this,_ptr)!==0)exports$1.llhttp_free(__privateGet(this,_ptr));__privateSet(this,_type,type2);__privateSet(this,_ptr,exports$1.llhttp_alloc(type2));__privateSet(this,_maxHeaderSize,maxHeaderSize&&maxHeaderSize>0?maxHeaderSize:16*1024);const flags=lenient??0;exports$1.llhttp_set_lenient_headers(__privateGet(this,_ptr),flags&_HTTPParser2.kLenientHeaders?1:0);exports$1.llhttp_set_lenient_chunked_length(__privateGet(this,_ptr),flags&_HTTPParser2.kLenientChunkedLength?1:0);exports$1.llhttp_set_lenient_keep_alive(__privateGet(this,_ptr),flags&_HTTPParser2.kLenientKeepAlive?1:0);exports$1.llhttp_set_lenient_transfer_encoding(__privateGet(this,_ptr),flags&_HTTPParser2.kLenientTransferEncoding?1:0);__privateMethod(this,_HTTPParser_instances,reset_fn).call(this);(_a22=__privateGet(this,_connections))==null?void 0:_a22.remove(this);__privateSet(this,_connections,connections);connections==null?void 0:connections.add(this);this.headersStart=0;this.messageStart=0}free(){var _a22;if(__privateGet(this,_ptr)!==0){llhttp().llhttp_free(__privateGet(this,_ptr));__privateSet(this,_ptr,0)}(_a22=__privateGet(this,_connections))==null?void 0:_a22.remove(this);__privateSet(this,_connections,void 0);this.active=false;__privateMethod(this,_HTTPParser_instances,reset_fn).call(this)}remove(){}close(){this.free()}pause(){if(__privateGet(this,_ptr)!==0)llhttp().llhttp_pause(__privateGet(this,_ptr))}resume(){if(__privateGet(this,_ptr)!==0)llhttp().llhttp_resume(__privateGet(this,_ptr))}consume(){}unconsume(){}getCurrentBuffer(){return __privateGet(this,_buffer)??new Uint8Array(0)}execute(buffer2){const exports$1=llhttp();if(__privateGet(this,_ptr)===0)this.initialize(__privateGet(this,_type));const length=buffer2.length;const data2=__privateMethod(this,_HTTPParser_instances,copyIn_fn).call(this,buffer2);const previous=current;current=this;__privateSet(this,_buffer,buffer2);let ret;try{ret=exports$1.llhttp_execute(__privateGet(this,_ptr),data2,length)}finally{current=previous}if(ret===ERROR_PAUSED_UPGRADE){const consumed=exports$1.llhttp_get_error_pos(__privateGet(this,_ptr))-data2;exports$1.llhttp_resume_after_upgrade(__privateGet(this,_ptr));__privateSet(this,_buffer,null);return consumed}if(ret===ERROR_PAUSED){__privateSet(this,_paused,true);const consumed=exports$1.llhttp_get_error_pos(__privateGet(this,_ptr))-data2;__privateSet(this,_buffer,null);return consumed}if(ret!==ERROR_OK){const consumed=exports$1.llhttp_get_error_pos(__privateGet(this,_ptr))-data2;const error=new Error(cstring(exports$1.llhttp_get_error_reason(__privateGet(this,_ptr))));error.bytesParsed=consumed<0?0:consumed;error.code=cstring(exports$1.llhttp_errno_name(ret));error.reason=error.message;__privateSet(this,_buffer,null);return error}__privateSet(this,_buffer,null);return length}finish(){const exports$1=llhttp();if(__privateGet(this,_ptr)===0)return void 0;const previous=current;current=this;let ret;try{ret=exports$1.llhttp_finish(__privateGet(this,_ptr))}finally{current=previous}if(ret===ERROR_OK||ret===ERROR_PAUSED||ret===ERROR_PAUSED_UPGRADE)return void 0;const error=new Error(cstring(exports$1.llhttp_get_error_reason(__privateGet(this,_ptr))));error.bytesParsed=0;error.code=cstring(exports$1.llhttp_errno_name(ret));return error}onMessageBegin(){__privateMethod(this,_HTTPParser_instances,reset_fn).call(this);this.headersStart=Date.now();this.messageStart=this.headersStart;this.active=true;const callback=this[kOnMessageBegin];if(callback)callback.call(this);return 0}onUrl(at22,length){__privateSet(this,_url,__privateGet(this,_url)+decode$1(at22,length));return __privateMethod(this,_HTTPParser_instances,countHeaderBytes_fn).call(this,length)}onStatus(at22,length){__privateSet(this,_statusMessage,__privateGet(this,_statusMessage)+decode$1(at22,length));return __privateMethod(this,_HTTPParser_instances,countHeaderBytes_fn).call(this,length)}onHeaderField(at22,length){if(__privateGet(this,_readingValue)){__privateMethod(this,_HTTPParser_instances,pushHeader_fn).call(this)}__privateSet(this,_field,__privateGet(this,_field)+decode$1(at22,length));return __privateMethod(this,_HTTPParser_instances,countHeaderBytes_fn).call(this,length)}onHeaderValue(at22,length){__privateSet(this,_readingValue,true);__privateSet(this,_value,__privateGet(this,_value)+decode$1(at22,length));return __privateMethod(this,_HTTPParser_instances,countHeaderBytes_fn).call(this,length)}onHeadersComplete(statusCode,upgrade,shouldKeepAlive){if(__privateGet(this,_readingValue)||__privateGet(this,_field)!=="")__privateMethod(this,_HTTPParser_instances,pushHeader_fn).call(this);const exports$1=llhttp();const headers=__privateGet(this,_headers);__privateSet(this,_headers,[]);__privateSet(this,_headersSent,true);this.headersStart=0;const callback=this[kOnHeadersComplete];if(!callback)return 0;const major=exports$1.llhttp_get_http_major(__privateGet(this,_ptr));const minor=exports$1.llhttp_get_http_minor(__privateGet(this,_ptr));const method=__privateGet(this,_type)===TYPE_REQUEST?exports$1.llhttp_get_method(__privateGet(this,_ptr)):void 0;const url2=__privateGet(this,_type)===TYPE_REQUEST?__privateGet(this,_url):void 0;const answer2=callback.call(this,major,minor,headers,method,url2,statusCode,__privateGet(this,_statusMessage),upgrade,shouldKeepAlive);__privateSet(this,_url,"");__privateSet(this,_statusMessage,"");if(typeof answer2==="number"&&answer2>0)return 1;return 0}onBody(at22,length){const callback=this[kOnBody];if(callback){const chunk=bytes().slice(at22,at22+length);callback.call(this,chunk)}return 0}onMessageComplete(){if(__privateGet(this,_readingValue)||__privateGet(this,_field)!=="")__privateMethod(this,_HTTPParser_instances,pushHeader_fn).call(this);if(__privateGet(this,_headers).length>0){const trailers=__privateGet(this,_headers);__privateSet(this,_headers,[]);const onHeaders=this[kOnHeaders];if(onHeaders)onHeaders.call(this,trailers,"")}const callback=this[kOnMessageComplete];const returned=callback?callback.call(this):0;this.active=false;this.messageStart=0;return typeof returned==="number"?returned:0}detach(){var _a22;(_a22=__privateGet(this,_connections))==null?void 0:_a22.remove(this);__privateSet(this,_connections,void 0)}};_ptr=new WeakMap;_type=new WeakMap;_maxHeaderSize=new WeakMap;_headerBytes=new WeakMap;_headers=new WeakMap;_field=new WeakMap;_value=new WeakMap;_readingValue=new WeakMap;_url=new WeakMap;_statusMessage=new WeakMap;_headersSent=new WeakMap;_paused=new WeakMap;_buffer=new WeakMap;_bufferPtr=new WeakMap;_bufferSize=new WeakMap;_connections=new WeakMap;_HTTPParser_instances=new WeakSet;reset_fn=function(){__privateSet(this,_headers,[]);__privateSet(this,_headerBytes,0);__privateSet(this,_field,"");__privateSet(this,_value,"");__privateSet(this,_readingValue,false);__privateSet(this,_url,"");__privateSet(this,_statusMessage,"");__privateSet(this,_headersSent,false);__privateSet(this,_paused,false)};copyIn_fn=function(buffer2){const exports$1=llhttp();if(buffer2.length>__privateGet(this,_bufferSize)){if(__privateGet(this,_bufferPtr)!==0)exports$1.free(__privateGet(this,_bufferPtr));__privateSet(this,_bufferPtr,exports$1.malloc(buffer2.length));__privateSet(this,_bufferSize,buffer2.length);memoryBytes=void 0}bytes().set(buffer2,__privateGet(this,_bufferPtr));return __privateGet(this,_bufferPtr)};pushHeader_fn=function(){__privateGet(this,_headers).push(__privateGet(this,_field),__privateGet(this,_value));__privateSet(this,_field,"");__privateSet(this,_value,"");__privateSet(this,_readingValue,false)};countHeaderBytes_fn=function(length){if(__privateGet(this,_headersSent))return 0;__privateSet(this,_headerBytes,__privateGet(this,_headerBytes)+length);if(__privateGet(this,_headerBytes)>__privateGet(this,_maxHeaderSize)){return-1}return 0};__publicField2(_HTTPParser,"REQUEST",TYPE_REQUEST);__publicField2(_HTTPParser,"RESPONSE",TYPE_RESPONSE);__publicField2(_HTTPParser,"kOnMessageBegin",kOnMessageBegin);__publicField2(_HTTPParser,"kOnHeaders",kOnHeaders);__publicField2(_HTTPParser,"kOnHeadersComplete",kOnHeadersComplete);__publicField2(_HTTPParser,"kOnBody",kOnBody);__publicField2(_HTTPParser,"kOnMessageComplete",kOnMessageComplete);__publicField2(_HTTPParser,"kOnExecute",kOnExecute);__publicField2(_HTTPParser,"kOnTimeout",kOnTimeout);__publicField2(_HTTPParser,"kLenientNone",0);__publicField2(_HTTPParser,"kLenientHeaders",1);__publicField2(_HTTPParser,"kLenientChunkedLength",2);__publicField2(_HTTPParser,"kLenientKeepAlive",4);__publicField2(_HTTPParser,"kLenientTransferEncoding",8);__publicField2(_HTTPParser,"kLenientVersion",16);__publicField2(_HTTPParser,"kLenientDataAfterClose",32);__publicField2(_HTTPParser,"kLenientOptionalLFAfterCR",64);__publicField2(_HTTPParser,"kLenientOptionalCRLFAfterChunk",128);__publicField2(_HTTPParser,"kLenientOptionalCRBeforeLF",256);__publicField2(_HTTPParser,"kLenientSpacesAfterChunkSize",512);__publicField2(_HTTPParser,"kLenientAll",1023);var HTTPParser=_HTTPParser;var ConnectionsList=class{constructor(){__privateAdd(this,_parsers,new Set)}add(parser){__privateGet(this,_parsers).add(parser)}remove(parser){__privateGet(this,_parsers).delete(parser)}all(){return[...__privateGet(this,_parsers)]}idle(){return[...__privateGet(this,_parsers)].filter(parser=>!parser.active)}active(){return[...__privateGet(this,_parsers)].filter(parser=>parser.active)}expired(headersTimeout,requestTimeout){const now=Date.now();return[...__privateGet(this,_parsers)].filter(parser=>{if(headersTimeout>0&&parser.headersStart>0&&now-parser.headersStart>headersTimeout)return true;if(requestTimeout>0&&parser.messageStart>0&&now-parser.messageStart>requestTimeout)return true;return false})}};_parsers=new WeakMap;var httpParserBinding={HTTPParser,ConnectionsList,get methods(){const all=allMethodsOf();const rtsp=all.indexOf("PRI");return[...new Set(rtsp===-1?all:all.slice(0,rtsp))].sort()},get allMethods(){return allMethodsOf()}};var constants$3={ALL_PROPERTIES:0,ONLY_WRITABLE:1,ONLY_ENUMERABLE:2,ONLY_CONFIGURABLE:4,SKIP_STRINGS:8,SKIP_SYMBOLS:16,kPending:0,kFulfilled:1,kRejected:2};function isIndexKey(key){const number=Number(key);return Number.isInteger(number)&&number>=0&&String(number)===key}var utilBinding={privateSymbols:{arrow_message_private_symbol:Symbol("arrow_message_private_symbol"),decorated_private_symbol:Symbol("decorated_private_symbol"),untransferable_object_private_symbol:Symbol("untransferable_object_private_symbol"),host_defined_option_symbol:Symbol("host_defined_option_symbol"),transfer_mode_private_symbol:Symbol("transfer_mode_private_symbol")},constants:constants$3,isInsideNodeModules:()=>false,getOwnNonIndexProperties:(target,filter2=0)=>{const keys=[];if((filter2&constants$3.SKIP_STRINGS)===0){for(const key of Object.getOwnPropertyNames(target)){if(isIndexKey(key))continue;if((filter2&constants$3.ONLY_ENUMERABLE)!==0){const own=Object.getOwnPropertyDescriptor(target,key);if(!(own==null?void 0:own.enumerable))continue}keys.push(key)}}if((filter2&constants$3.SKIP_SYMBOLS)===0){for(const key of Object.getOwnPropertySymbols(target)){if((filter2&constants$3.ONLY_ENUMERABLE)!==0){const own=Object.getOwnPropertyDescriptor(target,key);if(!(own==null?void 0:own.enumerable))continue}keys.push(key)}}return keys},getPromiseDetails:()=>[constants$3.kPending],getProxyDetails:()=>void 0,previewEntries:(value,isIterator)=>{if(value instanceof Map){const entries=[];for(const[key,item]of value){entries.push(key,item)}return[entries,true]}if(value instanceof Set)return[[...value],false];if(isIterator)return[[],false];return[[],false]},getConstructorName:value=>{let current3=value;while(current3!==null){const own=Object.getOwnPropertyDescriptor(current3,"constructor");const constructor=own==null?void 0:own.value;if(typeof constructor==="function"&&constructor.name)return constructor.name;current3=Object.getPrototypeOf(current3)}return""},getExternalValue:()=>BigInt(0),guessHandleType:guessHandleTypeOfFd,defineLazyProperties:lazyProperties(nodeLibInternalRequire),getCallSites:(frameCount=10)=>{const original=Error.prepareStackTrace;const limit=Error.stackTraceLimit;try{Error.stackTraceLimit=Math.max(frameCount+2,10);Error.prepareStackTrace=(_error,sites2)=>sites2.map(raw=>{var _a22,_b22,_c22,_d22,_e22,_f22;const site=raw;return{functionName:((_a22=site.getFunctionName)==null?void 0:_a22.call(site))??"",scriptName:((_b22=site.getFileName)==null?void 0:_b22.call(site))??((_c22=site.getScriptNameOrSourceURL)==null?void 0:_c22.call(site))??"",scriptId:"0",lineNumber:((_d22=site.getLineNumber)==null?void 0:_d22.call(site))??0,column:((_e22=site.getColumnNumber)==null?void 0:_e22.call(site))??0,columnNumber:((_f22=site.getColumnNumber)==null?void 0:_f22.call(site))??0}});const holder={};Error.captureStackTrace(holder,utilBinding.getCallSites);const sites=holder.stack;if(!Array.isArray(sites))return[];return sites.filter(site=>!String(site.scriptName??"").startsWith("node:")).slice(0,frameCount)}finally{Error.prepareStackTrace=original;Error.stackTraceLimit=limit}},parseEnv:content=>{const parsed={};const text=String(content);let at22=0;while(at22<text.length){let lineEnd=text.indexOf("\n",at22);if(lineEnd===-1)lineEnd=text.length;let line=text.slice(at22,lineEnd);const hash22=line.indexOf("#");const keyEnd=line.indexOf("=");if(keyEnd===-1||hash22!==-1&&hash22<keyEnd){at22=lineEnd+1;continue}let key=line.slice(0,keyEnd).trim();if(key.startsWith("export "))key=key.slice(7).trim();if(key===""){at22=lineEnd+1;continue}const rest=text.slice(at22+keyEnd+1);const first=rest[rest.search(/\S|$/u)];if(first==='"'||first==="'"||first==="`"){const open2=at22+keyEnd+1+rest.indexOf(first);const close2=text.indexOf(first,open2+1);if(close2!==-1){const value=text.slice(open2+1,close2);parsed[key]=first==='"'?value.replace(/\\n/gu,"\n").replace(/\\r/gu,"\r"):value;const after=text.indexOf("\n",close2);at22=after===-1?text.length:after+1;continue}}line=text.slice(at22+keyEnd+1,lineEnd);const comment=line.indexOf("#");parsed[key]=(comment===-1?line:line.slice(0,comment)).trim();at22=lineEnd+1}return parsed},sleep:milliseconds=>{}};function lazyProperties(require2){return(target,id2,keys,writable=true)=>{for(const key of keys){let built;let ready=false;Object.defineProperty(target,key,{configurable:true,enumerable:true,get(){if(!ready){ready=true;built=require2(id2)[key]}return built},set:writable?value=>{built=value;ready=true}:void 0})}}}function createUtilBinding(require2){return{...utilBinding,defineLazyProperties:lazyProperties(require2)}}function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x["default"]:x}function ZStream2(){this.input=null;this.next_in=0;this.avail_in=0;this.total_in=0;this.output=null;this.next_out=0;this.avail_out=0;this.total_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}var zstream$1=ZStream2;var ZStream$1=getDefaultExportFromCjs(zstream$1);var inflate$12={};var adler32$2=(adler,buf,len2,pos)=>{let s12=adler&65535|0,s22=adler>>>16&65535|0,n8=0;while(len2!==0){n8=len2>2e3?2e3:len2;len2-=n8;do{s12=s12+buf[pos++]|0;s22=s22+s12|0}while(--n8);s12%=65521;s22%=65521}return s12|s22<<16|0};var adler32_12=adler32$2;var makeTable2=()=>{let c,table=[];for(var n8=0;n8<256;n8++){c=n8;for(var k10=0;k10<8;k10++){c=c&1?3988292384^c>>>1:c>>>1}table[n8]=c}return table};var crcTable2=new Uint32Array(makeTable2());var crc32$2=(crc,buf,len2,pos)=>{const t10=crcTable2;const end=pos+len2;crc^=-1;for(let i22=pos;i22<end;i22++){crc=crc>>>8^t10[(crc^buf[i22])&255]}return crc^-1};var crc32_12=crc32$2;var pakoCrc32=getDefaultExportFromCjs(crc32_12);var BAD$12=16209;var TYPE$12=16191;var inffast2=function inflate_fast2(strm,start){let _in;let last;let _out;let beg;let end;let dmax;let wsize;let whave;let wnext;let s_window;let hold2;let bits;let lcode;let dcode;let lmask;let dmask;let here;let op2;let len2;let dist;let from;let from_source;let input,output;const state=strm.state;_in=strm.next_in;input=strm.input;last=_in+(strm.avail_in-5);_out=strm.next_out;output=strm.output;beg=_out-(start-strm.avail_out);end=_out+(strm.avail_out-257);dmax=state.dmax;wsize=state.wsize;whave=state.whave;wnext=state.wnext;s_window=state.window;hold2=state.hold;bits=state.bits;lcode=state.lencode;dcode=state.distcode;lmask=(1<<state.lenbits)-1;dmask=(1<<state.distbits)-1;top:do{if(bits<15){hold2+=input[_in++]<<bits;bits+=8;hold2+=input[_in++]<<bits;bits+=8}here=lcode[hold2&lmask];dolen:for(;;){op2=here>>>24;hold2>>>=op2;bits-=op2;op2=here>>>16&255;if(op2===0){output[_out++]=here&65535}else if(op2&16){len2=here&65535;op2&=15;if(op2){if(bits<op2){hold2+=input[_in++]<<bits;bits+=8}len2+=hold2&(1<<op2)-1;hold2>>>=op2;bits-=op2}if(bits<15){hold2+=input[_in++]<<bits;bits+=8;hold2+=input[_in++]<<bits;bits+=8}here=dcode[hold2&dmask];dodist:for(;;){op2=here>>>24;hold2>>>=op2;bits-=op2;op2=here>>>16&255;if(op2&16){dist=here&65535;op2&=15;if(bits<op2){hold2+=input[_in++]<<bits;bits+=8;if(bits<op2){hold2+=input[_in++]<<bits;bits+=8}}dist+=hold2&(1<<op2)-1;if(dist>dmax){strm.msg="invalid distance too far back";state.mode=BAD$12;break top}hold2>>>=op2;bits-=op2;op2=_out-beg;if(dist>op2){op2=dist-op2;if(op2>whave){if(state.sane){strm.msg="invalid distance too far back";state.mode=BAD$12;break top}}from=0;from_source=s_window;if(wnext===0){from+=wsize-op2;if(op2<len2){len2-=op2;do{output[_out++]=s_window[from++]}while(--op2);from=_out-dist;from_source=output}}else if(wnext<op2){from+=wsize+wnext-op2;op2-=wnext;if(op2<len2){len2-=op2;do{output[_out++]=s_window[from++]}while(--op2);from=0;if(wnext<len2){op2=wnext;len2-=op2;do{output[_out++]=s_window[from++]}while(--op2);from=_out-dist;from_source=output}}}else{from+=wnext-op2;if(op2<len2){len2-=op2;do{output[_out++]=s_window[from++]}while(--op2);from=_out-dist;from_source=output}}while(len2>2){output[_out++]=from_source[from++];output[_out++]=from_source[from++];output[_out++]=from_source[from++];len2-=3}if(len2){output[_out++]=from_source[from++];if(len2>1){output[_out++]=from_source[from++]}}}else{from=_out-dist;do{output[_out++]=output[from++];output[_out++]=output[from++];output[_out++]=output[from++];len2-=3}while(len2>2);if(len2){output[_out++]=output[from++];if(len2>1){output[_out++]=output[from++]}}}}else if((op2&64)===0){here=dcode[(here&65535)+(hold2&(1<<op2)-1)];continue dodist}else{strm.msg="invalid distance code";state.mode=BAD$12;break top}break}}else if((op2&64)===0){here=lcode[(here&65535)+(hold2&(1<<op2)-1)];continue dolen}else if(op2&32){state.mode=TYPE$12;break top}else{strm.msg="invalid literal/length code";state.mode=BAD$12;break top}break}}while(_in<last&&_out<end);len2=bits>>3;_in-=len2;bits-=len2<<3;hold2&=(1<<bits)-1;strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold2;state.bits=bits;return};var MAXBITS2=15;var ENOUGH_LENS$12=852;var ENOUGH_DISTS$12=592;var CODES$12=0;var LENS$12=1;var DISTS$12=2;var lbase2=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]);var lext2=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]);var dbase2=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]);var dext2=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var inflate_table$1=(type2,lens,lens_index,codes2,table,table_index,work,opts)=>{const bits=opts.bits;let len2=0;let sym=0;let min2=0,max2=0;let root2=0;let curr=0;let drop2=0;let left=0;let used=0;let huff=0;let incr;let fill2;let low;let mask;let next2;let base=null;let match2;const count=new Uint16Array(MAXBITS2+1);const offs=new Uint16Array(MAXBITS2+1);let extra=null;let here_bits,here_op,here_val;for(len2=0;len2<=MAXBITS2;len2++){count[len2]=0}for(sym=0;sym<codes2;sym++){count[lens[lens_index+sym]]++}root2=bits;for(max2=MAXBITS2;max2>=1;max2--){if(count[max2]!==0){break}}if(root2>max2){root2=max2}if(max2===0){table[table_index++]=1<<24|64<<16|0;table[table_index++]=1<<24|64<<16|0;opts.bits=1;return 0}for(min2=1;min2<max2;min2++){if(count[min2]!==0){break}}if(root2<min2){root2=min2}left=1;for(len2=1;len2<=MAXBITS2;len2++){left<<=1;left-=count[len2];if(left<0){return-1}}if(left>0&&(type2===CODES$12||max2!==1)){return-1}offs[1]=0;for(len2=1;len2<MAXBITS2;len2++){offs[len2+1]=offs[len2]+count[len2]}for(sym=0;sym<codes2;sym++){if(lens[lens_index+sym]!==0){work[offs[lens[lens_index+sym]]++]=sym}}if(type2===CODES$12){base=extra=work;match2=20}else if(type2===LENS$12){base=lbase2;extra=lext2;match2=257}else{base=dbase2;extra=dext2;match2=0}huff=0;sym=0;len2=min2;next2=table_index;curr=root2;drop2=0;low=-1;used=1<<root2;mask=used-1;if(type2===LENS$12&&used>ENOUGH_LENS$12||type2===DISTS$12&&used>ENOUGH_DISTS$12){return 1}for(;;){here_bits=len2-drop2;if(work[sym]+1<match2){here_op=0;here_val=work[sym]}else if(work[sym]>=match2){here_op=extra[work[sym]-match2];here_val=base[work[sym]-match2]}else{here_op=32+64;here_val=0}incr=1<<len2-drop2;fill2=1<<curr;min2=fill2;do{fill2-=incr;table[next2+(huff>>drop2)+fill2]=here_bits<<24|here_op<<16|here_val|0}while(fill2!==0);incr=1<<len2-1;while(huff&incr){incr>>=1}if(incr!==0){huff&=incr-1;huff+=incr}else{huff=0}sym++;if(--count[len2]===0){if(len2===max2){break}len2=lens[lens_index+work[sym]]}if(len2>root2&&(huff&mask)!==low){if(drop2===0){drop2=root2}next2+=min2;curr=len2-drop2;left=1<<curr;while(curr+drop2<max2){left-=count[curr+drop2];if(left<=0){break}curr++;left<<=1}used+=1<<curr;if(type2===LENS$12&&used>ENOUGH_LENS$12||type2===DISTS$12&&used>ENOUGH_DISTS$12){return 1}low=huff&mask;table[low]=root2<<24|curr<<16|next2-table_index|0}}if(huff!==0){table[next2+huff]=len2-drop2<<24|64<<16|0}opts.bits=root2;return 0};var inftrees2=inflate_table$1;var constants$22={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var pakoConstants=getDefaultExportFromCjs(constants$22);var adler32$1=adler32_12;var crc32$1=crc32_12;var inflate_fast3=inffast2;var inflate_table2=inftrees2;var CODES2=0;var LENS2=1;var DISTS2=2;var{Z_FINISH:Z_FINISH$12,Z_BLOCK:Z_BLOCK$12,Z_TREES:Z_TREES2,Z_OK:Z_OK$12,Z_STREAM_END:Z_STREAM_END$12,Z_NEED_DICT:Z_NEED_DICT2,Z_STREAM_ERROR:Z_STREAM_ERROR$12,Z_DATA_ERROR:Z_DATA_ERROR$12,Z_MEM_ERROR:Z_MEM_ERROR2,Z_BUF_ERROR:Z_BUF_ERROR$12,Z_DEFLATED:Z_DEFLATED$12}=constants$22;var HEAD2=16180;var FLAGS2=16181;var TIME2=16182;var OS3=16183;var EXLEN2=16184;var EXTRA2=16185;var NAME2=16186;var COMMENT2=16187;var HCRC2=16188;var DICTID2=16189;var DICT2=16190;var TYPE2=16191;var TYPEDO2=16192;var STORED2=16193;var COPY_2=16194;var COPY2=16195;var TABLE2=16196;var LENLENS2=16197;var CODELENS2=16198;var LEN_2=16199;var LEN2=16200;var LENEXT2=16201;var DIST2=16202;var DISTEXT2=16203;var MATCH2=16204;var LIT2=16205;var CHECK2=16206;var LENGTH2=16207;var DONE2=16208;var BAD2=16209;var MEM2=16210;var SYNC2=16211;var ENOUGH_LENS2=852;var ENOUGH_DISTS2=592;var MAX_WBITS$12=15;var DEF_WBITS2=MAX_WBITS$12;var zswap322=q10=>{return(q10>>>24&255)+(q10>>>8&65280)+((q10&65280)<<8)+((q10&255)<<24)};function InflateState2(){this.strm=null;this.mode=0;this.last=false;this.wrap=0;this.havedict=false;this.flags=0;this.dmax=0;this.check=0;this.total=0;this.head=null;this.wbits=0;this.wsize=0;this.whave=0;this.wnext=0;this.window=null;this.hold=0;this.bits=0;this.length=0;this.offset=0;this.extra=0;this.lencode=null;this.distcode=null;this.lenbits=0;this.distbits=0;this.ncode=0;this.nlen=0;this.ndist=0;this.have=0;this.next=null;this.lens=new Uint16Array(320);this.work=new Uint16Array(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}var inflateStateCheck2=strm=>{if(!strm){return 1}const state=strm.state;if(!state||state.strm!==strm||state.mode<HEAD2||state.mode>SYNC2){return 1}return 0};var inflateResetKeep2=strm=>{if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}const state=strm.state;strm.total_in=strm.total_out=state.total=0;strm.msg="";if(state.wrap){strm.adler=state.wrap&1}state.mode=HEAD2;state.last=0;state.havedict=0;state.flags=-1;state.dmax=32768;state.head=null;state.hold=0;state.bits=0;state.lencode=state.lendyn=new Int32Array(ENOUGH_LENS2);state.distcode=state.distdyn=new Int32Array(ENOUGH_DISTS2);state.sane=1;state.back=-1;return Z_OK$12};var inflateReset3=strm=>{if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}const state=strm.state;state.wsize=0;state.whave=0;state.wnext=0;return inflateResetKeep2(strm)};var inflateReset22=(strm,windowBits)=>{let wrap2;if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}const state=strm.state;if(windowBits<0){wrap2=0;windowBits=-windowBits}else{wrap2=(windowBits>>4)+5;if(windowBits<48){windowBits&=15}}if(windowBits&&(windowBits<8||windowBits>15)){return Z_STREAM_ERROR$12}if(state.window!==null&&state.wbits!==windowBits){state.window=null}state.wrap=wrap2;state.wbits=windowBits;return inflateReset3(strm)};var inflateInit22=(strm,windowBits)=>{if(!strm){return Z_STREAM_ERROR$12}const state=new InflateState2;strm.state=state;state.strm=strm;state.window=null;state.mode=HEAD2;const ret=inflateReset22(strm,windowBits);if(ret!==Z_OK$12){strm.state=null}return ret};var inflateInit3=strm=>{return inflateInit22(strm,DEF_WBITS2)};var virgin2=true;var lenfix2;var distfix2;var fixedtables2=state=>{if(virgin2){lenfix2=new Int32Array(512);distfix2=new Int32Array(32);let sym=0;while(sym<144){state.lens[sym++]=8}while(sym<256){state.lens[sym++]=9}while(sym<280){state.lens[sym++]=7}while(sym<288){state.lens[sym++]=8}inflate_table2(LENS2,state.lens,0,288,lenfix2,0,state.work,{bits:9});sym=0;while(sym<32){state.lens[sym++]=5}inflate_table2(DISTS2,state.lens,0,32,distfix2,0,state.work,{bits:5});virgin2=false}state.lencode=lenfix2;state.lenbits=9;state.distcode=distfix2;state.distbits=5};var updatewindow2=(strm,src,end,copy2)=>{let dist;const state=strm.state;if(state.window===null){state.wsize=1<<state.wbits;state.wnext=0;state.whave=0;state.window=new Uint8Array(state.wsize)}if(copy2>=state.wsize){state.window.set(src.subarray(end-state.wsize,end),0);state.wnext=0;state.whave=state.wsize}else{dist=state.wsize-state.wnext;if(dist>copy2){dist=copy2}state.window.set(src.subarray(end-copy2,end-copy2+dist),state.wnext);copy2-=dist;if(copy2){state.window.set(src.subarray(end-copy2,end),0);state.wnext=copy2;state.whave=state.wsize}else{state.wnext+=dist;if(state.wnext===state.wsize){state.wnext=0}if(state.whave<state.wsize){state.whave+=dist}}}return 0};var inflate2=(strm,flush2)=>{let state;let input,output;let next2;let put;let have,left;let hold2;let bits;let _in,_out;let copy2;let from;let from_source;let here=0;let here_bits,here_op,here_val;let last_bits,last_op,last_val;let len2;let ret;const hbuf=new Uint8Array(4);let opts;let n8;const order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck2(strm)||!strm.output||!strm.input&&strm.avail_in!==0){return Z_STREAM_ERROR$12}state=strm.state;if(state.mode===TYPE2){state.mode=TYPEDO2}put=strm.next_out;output=strm.output;left=strm.avail_out;next2=strm.next_in;input=strm.input;have=strm.avail_in;hold2=state.hold;bits=state.bits;_in=have;_out=left;ret=Z_OK$12;inf_leave:for(;;){switch(state.mode){case HEAD2:if(state.wrap===0){state.mode=TYPEDO2;break}while(bits<16){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(state.wrap&2&&hold2===35615){if(state.wbits===0){state.wbits=15}state.check=0;hbuf[0]=hold2&255;hbuf[1]=hold2>>>8&255;state.check=crc32$1(state.check,hbuf,2,0);hold2=0;bits=0;state.mode=FLAGS2;break}if(state.head){state.head.done=false}if(!(state.wrap&1)||(((hold2&255)<<8)+(hold2>>8))%31){strm.msg="incorrect header check";state.mode=BAD2;break}if((hold2&15)!==Z_DEFLATED$12){strm.msg="unknown compression method";state.mode=BAD2;break}hold2>>>=4;bits-=4;len2=(hold2&15)+8;if(state.wbits===0){state.wbits=len2}if(len2>15||len2>state.wbits){strm.msg="invalid window size";state.mode=BAD2;break}state.dmax=1<<state.wbits;state.flags=0;strm.adler=state.check=1;state.mode=hold2&512?DICTID2:TYPE2;hold2=0;bits=0;break;case FLAGS2:while(bits<16){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.flags=hold2;if((state.flags&255)!==Z_DEFLATED$12){strm.msg="unknown compression method";state.mode=BAD2;break}if(state.flags&57344){strm.msg="unknown header flags set";state.mode=BAD2;break}if(state.head){state.head.text=hold2>>8&1}if(state.flags&512&&state.wrap&4){hbuf[0]=hold2&255;hbuf[1]=hold2>>>8&255;state.check=crc32$1(state.check,hbuf,2,0)}hold2=0;bits=0;state.mode=TIME2;case TIME2:while(bits<32){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(state.head){state.head.time=hold2}if(state.flags&512&&state.wrap&4){hbuf[0]=hold2&255;hbuf[1]=hold2>>>8&255;hbuf[2]=hold2>>>16&255;hbuf[3]=hold2>>>24&255;state.check=crc32$1(state.check,hbuf,4,0)}hold2=0;bits=0;state.mode=OS3;case OS3:while(bits<16){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(state.head){state.head.xflags=hold2&255;state.head.os=hold2>>8}if(state.flags&512&&state.wrap&4){hbuf[0]=hold2&255;hbuf[1]=hold2>>>8&255;state.check=crc32$1(state.check,hbuf,2,0)}hold2=0;bits=0;state.mode=EXLEN2;case EXLEN2:if(state.flags&1024){while(bits<16){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.length=hold2;if(state.head){state.head.extra_len=hold2}if(state.flags&512&&state.wrap&4){hbuf[0]=hold2&255;hbuf[1]=hold2>>>8&255;state.check=crc32$1(state.check,hbuf,2,0)}hold2=0;bits=0}else if(state.head){state.head.extra=null}state.mode=EXTRA2;case EXTRA2:if(state.flags&1024){copy2=state.length;if(copy2>have){copy2=have}if(copy2){if(state.head){len2=state.head.extra_len-state.length;if(!state.head.extra){state.head.extra=new Uint8Array(state.head.extra_len)}state.head.extra.set(input.subarray(next2,next2+copy2),len2)}if(state.flags&512&&state.wrap&4){state.check=crc32$1(state.check,input,copy2,next2)}have-=copy2;next2+=copy2;state.length-=copy2}if(state.length){break inf_leave}}state.length=0;state.mode=NAME2;case NAME2:if(state.flags&2048){if(have===0){break inf_leave}copy2=0;do{len2=input[next2+copy2++];if(state.head&&len2&&state.length<65536){state.head.name+=String.fromCharCode(len2)}}while(len2&©2<have);if(state.flags&512&&state.wrap&4){state.check=crc32$1(state.check,input,copy2,next2)}have-=copy2;next2+=copy2;if(len2){break inf_leave}}else if(state.head){state.head.name=null}state.length=0;state.mode=COMMENT2;case COMMENT2:if(state.flags&4096){if(have===0){break inf_leave}copy2=0;do{len2=input[next2+copy2++];if(state.head&&len2&&state.length<65536){state.head.comment+=String.fromCharCode(len2)}}while(len2&©2<have);if(state.flags&512&&state.wrap&4){state.check=crc32$1(state.check,input,copy2,next2)}have-=copy2;next2+=copy2;if(len2){break inf_leave}}else if(state.head){state.head.comment=null}state.mode=HCRC2;case HCRC2:if(state.flags&512){while(bits<16){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(state.wrap&4&&hold2!==(state.check&65535)){strm.msg="header crc mismatch";state.mode=BAD2;break}hold2=0;bits=0}if(state.head){state.head.hcrc=state.flags>>9&1;state.head.done=true}strm.adler=state.check=0;state.mode=TYPE2;break;case DICTID2:while(bits<32){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}strm.adler=state.check=zswap322(hold2);hold2=0;bits=0;state.mode=DICT2;case DICT2:if(state.havedict===0){strm.next_out=put;strm.avail_out=left;strm.next_in=next2;strm.avail_in=have;state.hold=hold2;state.bits=bits;return Z_NEED_DICT2}strm.adler=state.check=1;state.mode=TYPE2;case TYPE2:if(flush2===Z_BLOCK$12||flush2===Z_TREES2){break inf_leave}case TYPEDO2:if(state.last){hold2>>>=bits&7;bits-=bits&7;state.mode=CHECK2;break}while(bits<3){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.last=hold2&1;hold2>>>=1;bits-=1;switch(hold2&3){case 0:state.mode=STORED2;break;case 1:fixedtables2(state);state.mode=LEN_2;if(flush2===Z_TREES2){hold2>>>=2;bits-=2;break inf_leave}break;case 2:state.mode=TABLE2;break;case 3:strm.msg="invalid block type";state.mode=BAD2}hold2>>>=2;bits-=2;break;case STORED2:hold2>>>=bits&7;bits-=bits&7;while(bits<32){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if((hold2&65535)!==(hold2>>>16^65535)){strm.msg="invalid stored block lengths";state.mode=BAD2;break}state.length=hold2&65535;hold2=0;bits=0;state.mode=COPY_2;if(flush2===Z_TREES2){break inf_leave}case COPY_2:state.mode=COPY2;case COPY2:copy2=state.length;if(copy2){if(copy2>have){copy2=have}if(copy2>left){copy2=left}if(copy2===0){break inf_leave}output.set(input.subarray(next2,next2+copy2),put);have-=copy2;next2+=copy2;left-=copy2;put+=copy2;state.length-=copy2;break}state.mode=TYPE2;break;case TABLE2:while(bits<14){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.nlen=(hold2&31)+257;hold2>>>=5;bits-=5;state.ndist=(hold2&31)+1;hold2>>>=5;bits-=5;state.ncode=(hold2&15)+4;hold2>>>=4;bits-=4;if(state.nlen>286||state.ndist>30){strm.msg="too many length or distance symbols";state.mode=BAD2;break}state.have=0;state.mode=LENLENS2;case LENLENS2:while(state.have<state.ncode){while(bits<3){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.lens[order[state.have++]]=hold2&7;hold2>>>=3;bits-=3}while(state.have<19){state.lens[order[state.have++]]=0}state.lencode=state.lendyn;state.lenbits=7;opts={bits:state.lenbits};ret=inflate_table2(CODES2,state.lens,0,19,state.lencode,0,state.work,opts);state.lenbits=opts.bits;if(ret){strm.msg="invalid code lengths set";state.mode=BAD2;break}state.have=0;state.mode=CODELENS2;case CODELENS2:while(state.have<state.nlen+state.ndist){for(;;){here=state.lencode[hold2&(1<<state.lenbits)-1];here_bits=here>>>24;here_op=here>>>16&255;here_val=here&65535;if(here_bits<=bits){break}if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(here_val<16){hold2>>>=here_bits;bits-=here_bits;state.lens[state.have++]=here_val}else{if(here_val===16){n8=here_bits+2;while(bits<n8){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}hold2>>>=here_bits;bits-=here_bits;if(state.have===0){strm.msg="invalid bit length repeat";state.mode=BAD2;break}len2=state.lens[state.have-1];copy2=3+(hold2&3);hold2>>>=2;bits-=2}else if(here_val===17){n8=here_bits+3;while(bits<n8){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}hold2>>>=here_bits;bits-=here_bits;len2=0;copy2=3+(hold2&7);hold2>>>=3;bits-=3}else{n8=here_bits+7;while(bits<n8){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}hold2>>>=here_bits;bits-=here_bits;len2=0;copy2=11+(hold2&127);hold2>>>=7;bits-=7}if(state.have+copy2>state.nlen+state.ndist){strm.msg="invalid bit length repeat";state.mode=BAD2;break}while(copy2--){state.lens[state.have++]=len2}}}if(state.mode===BAD2){break}if(state.lens[256]===0){strm.msg="invalid code -- missing end-of-block";state.mode=BAD2;break}state.lenbits=9;opts={bits:state.lenbits};ret=inflate_table2(LENS2,state.lens,0,state.nlen,state.lencode,0,state.work,opts);state.lenbits=opts.bits;if(ret){strm.msg="invalid literal/lengths set";state.mode=BAD2;break}state.distbits=6;state.distcode=state.distdyn;opts={bits:state.distbits};ret=inflate_table2(DISTS2,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,opts);state.distbits=opts.bits;if(ret){strm.msg="invalid distances set";state.mode=BAD2;break}state.mode=LEN_2;if(flush2===Z_TREES2){break inf_leave}case LEN_2:state.mode=LEN2;case LEN2:if(have>=6&&left>=258){strm.next_out=put;strm.avail_out=left;strm.next_in=next2;strm.avail_in=have;state.hold=hold2;state.bits=bits;inflate_fast3(strm,_out);put=strm.next_out;output=strm.output;left=strm.avail_out;next2=strm.next_in;input=strm.input;have=strm.avail_in;hold2=state.hold;bits=state.bits;if(state.mode===TYPE2){state.back=-1}break}state.back=0;for(;;){here=state.lencode[hold2&(1<<state.lenbits)-1];here_bits=here>>>24;here_op=here>>>16&255;here_val=here&65535;if(here_bits<=bits){break}if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(here_op&&(here_op&240)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.lencode[last_val+((hold2&(1<<last_bits+last_op)-1)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&255;here_val=here&65535;if(last_bits+here_bits<=bits){break}if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}hold2>>>=last_bits;bits-=last_bits;state.back+=last_bits}hold2>>>=here_bits;bits-=here_bits;state.back+=here_bits;state.length=here_val;if(here_op===0){state.mode=LIT2;break}if(here_op&32){state.back=-1;state.mode=TYPE2;break}if(here_op&64){strm.msg="invalid literal/length code";state.mode=BAD2;break}state.extra=here_op&15;state.mode=LENEXT2;case LENEXT2:if(state.extra){n8=state.extra;while(bits<n8){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.length+=hold2&(1<<state.extra)-1;hold2>>>=state.extra;bits-=state.extra;state.back+=state.extra}state.was=state.length;state.mode=DIST2;case DIST2:for(;;){here=state.distcode[hold2&(1<<state.distbits)-1];here_bits=here>>>24;here_op=here>>>16&255;here_val=here&65535;if(here_bits<=bits){break}if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if((here_op&240)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.distcode[last_val+((hold2&(1<<last_bits+last_op)-1)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&255;here_val=here&65535;if(last_bits+here_bits<=bits){break}if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}hold2>>>=last_bits;bits-=last_bits;state.back+=last_bits}hold2>>>=here_bits;bits-=here_bits;state.back+=here_bits;if(here_op&64){strm.msg="invalid distance code";state.mode=BAD2;break}state.offset=here_val;state.extra=here_op&15;state.mode=DISTEXT2;case DISTEXT2:if(state.extra){n8=state.extra;while(bits<n8){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}state.offset+=hold2&(1<<state.extra)-1;hold2>>>=state.extra;bits-=state.extra;state.back+=state.extra}if(state.offset>state.dmax){strm.msg="invalid distance too far back";state.mode=BAD2;break}state.mode=MATCH2;case MATCH2:if(left===0){break inf_leave}copy2=_out-left;if(state.offset>copy2){copy2=state.offset-copy2;if(copy2>state.whave){if(state.sane){strm.msg="invalid distance too far back";state.mode=BAD2;break}}if(copy2>state.wnext){copy2-=state.wnext;from=state.wsize-copy2}else{from=state.wnext-copy2}if(copy2>state.length){copy2=state.length}from_source=state.window}else{from_source=output;from=put-state.offset;copy2=state.length}if(copy2>left){copy2=left}left-=copy2;state.length-=copy2;do{output[put++]=from_source[from++]}while(--copy2);if(state.length===0){state.mode=LEN2}break;case LIT2:if(left===0){break inf_leave}output[put++]=state.length;left--;state.mode=LEN2;break;case CHECK2:if(state.wrap){while(bits<32){if(have===0){break inf_leave}have--;hold2|=input[next2++]<<bits;bits+=8}_out-=left;strm.total_out+=_out;state.total+=_out;if(state.wrap&4&&_out){strm.adler=state.check=state.flags?crc32$1(state.check,output,_out,put-_out):adler32$1(state.check,output,_out,put-_out)}_out=left;if(state.wrap&4&&(state.flags?hold2:zswap322(hold2))!==state.check){strm.msg="incorrect data check";state.mode=BAD2;break}hold2=0;bits=0}state.mode=LENGTH2;case LENGTH2:if(state.wrap&&state.flags){while(bits<32){if(have===0){break inf_leave}have--;hold2+=input[next2++]<<bits;bits+=8}if(state.wrap&4&&hold2!==(state.total&4294967295)){strm.msg="incorrect length check";state.mode=BAD2;break}hold2=0;bits=0}state.mode=DONE2;case DONE2:ret=Z_STREAM_END$12;break inf_leave;case BAD2:ret=Z_DATA_ERROR$12;break inf_leave;case MEM2:return Z_MEM_ERROR2;case SYNC2:default:return Z_STREAM_ERROR$12}}strm.next_out=put;strm.avail_out=left;strm.next_in=next2;strm.avail_in=have;state.hold=hold2;state.bits=bits;if(state.wsize||_out!==strm.avail_out&&state.mode<BAD2&&(state.mode<CHECK2||flush2!==Z_FINISH$12)){if(updatewindow2(strm,strm.output,strm.next_out,_out-strm.avail_out));}_in-=strm.avail_in;_out-=strm.avail_out;strm.total_in+=_in;strm.total_out+=_out;state.total+=_out;if(state.wrap&4&&_out){strm.adler=state.check=state.flags?crc32$1(state.check,output,_out,strm.next_out-_out):adler32$1(state.check,output,_out,strm.next_out-_out)}strm.data_type=state.bits+(state.last?64:0)+(state.mode===TYPE2?128:0)+(state.mode===LEN_2||state.mode===COPY_2?256:0);if((_in===0&&_out===0||flush2===Z_FINISH$12)&&ret===Z_OK$12){ret=Z_BUF_ERROR$12}return ret};var inflateEnd2=strm=>{if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}let state=strm.state;if(state.window){state.window=null}strm.state=null;return Z_OK$12};var inflateGetHeader2=(strm,head)=>{if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}const state=strm.state;if((state.wrap&2)===0){return Z_STREAM_ERROR$12}state.head=head;head.done=false;return Z_OK$12};var inflateSetDictionary2=(strm,dictionary2)=>{const dictLength=dictionary2.length;let state;let dictid;let ret;if(inflateStateCheck2(strm)){return Z_STREAM_ERROR$12}state=strm.state;if(state.wrap!==0&&state.mode!==DICT2){return Z_STREAM_ERROR$12}if(state.mode===DICT2){dictid=1;dictid=adler32$1(dictid,dictionary2,dictLength,0);if(dictid!==state.check){return Z_DATA_ERROR$12}}ret=updatewindow2(strm,dictionary2,dictLength,dictLength);if(ret){state.mode=MEM2;return Z_MEM_ERROR2}state.havedict=1;return Z_OK$12};var inflateReset_12=inflate$12.inflateReset=inflateReset3;var inflateReset2_12=inflate$12.inflateReset2=inflateReset22;var inflateResetKeep_12=inflate$12.inflateResetKeep=inflateResetKeep2;var inflateInit_12=inflate$12.inflateInit=inflateInit3;var inflateInit2_12=inflate$12.inflateInit2=inflateInit22;var inflate_22=inflate$12.inflate=inflate2;var inflateEnd_12=inflate$12.inflateEnd=inflateEnd2;var inflateGetHeader_12=inflate$12.inflateGetHeader=inflateGetHeader2;var inflateSetDictionary_12=inflate$12.inflateSetDictionary=inflateSetDictionary2;var inflateInfo2=inflate$12.inflateInfo="pako inflate (from Nodeca project)";var pakoInflate=_mergeNamespaces({__proto__:null,default:inflate$12,inflate:inflate_22,inflateEnd:inflateEnd_12,inflateGetHeader:inflateGetHeader_12,inflateInfo:inflateInfo2,inflateInit:inflateInit_12,inflateInit2:inflateInit2_12,inflateReset:inflateReset_12,inflateReset2:inflateReset2_12,inflateResetKeep:inflateResetKeep_12,inflateSetDictionary:inflateSetDictionary_12},[inflate$12]);var deflate$12={};var trees2={};var Z_FIXED$12=4;var Z_BINARY2=0;var Z_TEXT2=1;var Z_UNKNOWN$12=2;function zero$12(buf){let len2=buf.length;while(--len2>=0){buf[len2]=0}}var STORED_BLOCK2=0;var STATIC_TREES2=1;var DYN_TREES2=2;var MIN_MATCH$12=3;var MAX_MATCH$12=258;var LENGTH_CODES$12=29;var LITERALS$12=256;var L_CODES$12=LITERALS$12+1+LENGTH_CODES$12;var D_CODES$12=30;var BL_CODES$12=19;var HEAP_SIZE$12=2*L_CODES$12+1;var MAX_BITS$12=15;var Buf_size2=16;var MAX_BL_BITS2=7;var END_BLOCK2=256;var REP_3_62=16;var REPZ_3_102=17;var REPZ_11_1382=18;var extra_lbits2=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]);var extra_dbits2=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);var extra_blbits2=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);var bl_order2=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);var DIST_CODE_LEN2=512;var static_ltree2=new Array((L_CODES$12+2)*2);zero$12(static_ltree2);var static_dtree2=new Array(D_CODES$12*2);zero$12(static_dtree2);var _dist_code2=new Array(DIST_CODE_LEN2);zero$12(_dist_code2);var _length_code2=new Array(MAX_MATCH$12-MIN_MATCH$12+1);zero$12(_length_code2);var base_length2=new Array(LENGTH_CODES$12);zero$12(base_length2);var base_dist2=new Array(D_CODES$12);zero$12(base_dist2);function StaticTreeDesc2(static_tree,extra_bits,extra_base,elems,max_length){this.static_tree=static_tree;this.extra_bits=extra_bits;this.extra_base=extra_base;this.elems=elems;this.max_length=max_length;this.has_stree=static_tree&&static_tree.length}var static_l_desc2;var static_d_desc2;var static_bl_desc2;function TreeDesc2(dyn_tree,stat_desc){this.dyn_tree=dyn_tree;this.max_code=0;this.stat_desc=stat_desc}var d_code2=dist=>{return dist<256?_dist_code2[dist]:_dist_code2[256+(dist>>>7)]};var put_short2=(s10,w)=>{s10.pending_buf[s10.pending++]=w&255;s10.pending_buf[s10.pending++]=w>>>8&255};var send_bits2=(s10,value,length)=>{if(s10.bi_valid>Buf_size2-length){s10.bi_buf|=value<<s10.bi_valid&65535;put_short2(s10,s10.bi_buf);s10.bi_buf=value>>Buf_size2-s10.bi_valid;s10.bi_valid+=length-Buf_size2}else{s10.bi_buf|=value<<s10.bi_valid&65535;s10.bi_valid+=length}};var send_code2=(s10,c,tree2)=>{send_bits2(s10,tree2[c*2],tree2[c*2+1])};var bi_reverse2=(code22,len2)=>{let res=0;do{res|=code22&1;code22>>>=1;res<<=1}while(--len2>0);return res>>>1};var bi_flush2=s10=>{if(s10.bi_valid===16){put_short2(s10,s10.bi_buf);s10.bi_buf=0;s10.bi_valid=0}else if(s10.bi_valid>=8){s10.pending_buf[s10.pending++]=s10.bi_buf&255;s10.bi_buf>>=8;s10.bi_valid-=8}};var gen_bitlen2=(s10,desc)=>{const tree2=desc.dyn_tree;const max_code=desc.max_code;const stree=desc.stat_desc.static_tree;const has_stree=desc.stat_desc.has_stree;const extra=desc.stat_desc.extra_bits;const base=desc.stat_desc.extra_base;const max_length=desc.stat_desc.max_length;let h;let n8,m;let bits;let xbits;let f10;let overflow=0;for(bits=0;bits<=MAX_BITS$12;bits++){s10.bl_count[bits]=0}tree2[s10.heap[s10.heap_max]*2+1]=0;for(h=s10.heap_max+1;h<HEAP_SIZE$12;h++){n8=s10.heap[h];bits=tree2[tree2[n8*2+1]*2+1]+1;if(bits>max_length){bits=max_length;overflow++}tree2[n8*2+1]=bits;if(n8>max_code){continue}s10.bl_count[bits]++;xbits=0;if(n8>=base){xbits=extra[n8-base]}f10=tree2[n8*2];s10.opt_len+=f10*(bits+xbits);if(has_stree){s10.static_len+=f10*(stree[n8*2+1]+xbits)}}if(overflow===0){return}do{bits=max_length-1;while(s10.bl_count[bits]===0){bits--}s10.bl_count[bits]--;s10.bl_count[bits+1]+=2;s10.bl_count[max_length]--;overflow-=2}while(overflow>0);for(bits=max_length;bits!==0;bits--){n8=s10.bl_count[bits];while(n8!==0){m=s10.heap[--h];if(m>max_code){continue}if(tree2[m*2+1]!==bits){s10.opt_len+=(bits-tree2[m*2+1])*tree2[m*2];tree2[m*2+1]=bits}n8--}}};var gen_codes2=(tree2,max_code,bl_count)=>{const next_code=new Array(MAX_BITS$12+1);let code22=0;let bits;let n8;for(bits=1;bits<=MAX_BITS$12;bits++){code22=code22+bl_count[bits-1]<<1;next_code[bits]=code22}for(n8=0;n8<=max_code;n8++){let len2=tree2[n8*2+1];if(len2===0){continue}tree2[n8*2]=bi_reverse2(next_code[len2]++,len2)}};var tr_static_init2=()=>{let n8;let bits;let length;let code22;let dist;const bl_count=new Array(MAX_BITS$12+1);length=0;for(code22=0;code22<LENGTH_CODES$12-1;code22++){base_length2[code22]=length;for(n8=0;n8<1<<extra_lbits2[code22];n8++){_length_code2[length++]=code22}}_length_code2[length-1]=code22;dist=0;for(code22=0;code22<16;code22++){base_dist2[code22]=dist;for(n8=0;n8<1<<extra_dbits2[code22];n8++){_dist_code2[dist++]=code22}}dist>>=7;for(;code22<D_CODES$12;code22++){base_dist2[code22]=dist<<7;for(n8=0;n8<1<<extra_dbits2[code22]-7;n8++){_dist_code2[256+dist++]=code22}}for(bits=0;bits<=MAX_BITS$12;bits++){bl_count[bits]=0}n8=0;while(n8<=143){static_ltree2[n8*2+1]=8;n8++;bl_count[8]++}while(n8<=255){static_ltree2[n8*2+1]=9;n8++;bl_count[9]++}while(n8<=279){static_ltree2[n8*2+1]=7;n8++;bl_count[7]++}while(n8<=287){static_ltree2[n8*2+1]=8;n8++;bl_count[8]++}gen_codes2(static_ltree2,L_CODES$12+1,bl_count);for(n8=0;n8<D_CODES$12;n8++){static_dtree2[n8*2+1]=5;static_dtree2[n8*2]=bi_reverse2(n8,5)}static_l_desc2=new StaticTreeDesc2(static_ltree2,extra_lbits2,LITERALS$12+1,L_CODES$12,MAX_BITS$12);static_d_desc2=new StaticTreeDesc2(static_dtree2,extra_dbits2,0,D_CODES$12,MAX_BITS$12);static_bl_desc2=new StaticTreeDesc2(new Array(0),extra_blbits2,0,BL_CODES$12,MAX_BL_BITS2)};var init_block2=s10=>{let n8;for(n8=0;n8<L_CODES$12;n8++){s10.dyn_ltree[n8*2]=0}for(n8=0;n8<D_CODES$12;n8++){s10.dyn_dtree[n8*2]=0}for(n8=0;n8<BL_CODES$12;n8++){s10.bl_tree[n8*2]=0}s10.dyn_ltree[END_BLOCK2*2]=1;s10.opt_len=s10.static_len=0;s10.sym_next=s10.matches=0};var bi_windup2=s10=>{if(s10.bi_valid>8){put_short2(s10,s10.bi_buf)}else if(s10.bi_valid>0){s10.pending_buf[s10.pending++]=s10.bi_buf}s10.bi_buf=0;s10.bi_valid=0};var smaller2=(tree2,n8,m,depth4)=>{const _n2=n8*2;const _m2=m*2;return tree2[_n2]<tree2[_m2]||tree2[_n2]===tree2[_m2]&&depth4[n8]<=depth4[m]};var pqdownheap2=(s10,tree2,k10)=>{const v2=s10.heap[k10];let j=k10<<1;while(j<=s10.heap_len){if(j<s10.heap_len&&smaller2(tree2,s10.heap[j+1],s10.heap[j],s10.depth)){j++}if(smaller2(tree2,v2,s10.heap[j],s10.depth)){break}s10.heap[k10]=s10.heap[j];k10=j;j<<=1}s10.heap[k10]=v2};var compress_block2=(s10,ltree,dtree)=>{let dist;let lc2;let sx2=0;let code22;let extra;if(s10.sym_next!==0){do{dist=s10.pending_buf[s10.sym_buf+sx2++]&255;dist+=(s10.pending_buf[s10.sym_buf+sx2++]&255)<<8;lc2=s10.pending_buf[s10.sym_buf+sx2++];if(dist===0){send_code2(s10,lc2,ltree)}else{code22=_length_code2[lc2];send_code2(s10,code22+LITERALS$12+1,ltree);extra=extra_lbits2[code22];if(extra!==0){lc2-=base_length2[code22];send_bits2(s10,lc2,extra)}dist--;code22=d_code2(dist);send_code2(s10,code22,dtree);extra=extra_dbits2[code22];if(extra!==0){dist-=base_dist2[code22];send_bits2(s10,dist,extra)}}}while(sx2<s10.sym_next)}send_code2(s10,END_BLOCK2,ltree)};var build_tree2=(s10,desc)=>{const tree2=desc.dyn_tree;const stree=desc.stat_desc.static_tree;const has_stree=desc.stat_desc.has_stree;const elems=desc.stat_desc.elems;let n8,m;let max_code=-1;let node;s10.heap_len=0;s10.heap_max=HEAP_SIZE$12;for(n8=0;n8<elems;n8++){if(tree2[n8*2]!==0){s10.heap[++s10.heap_len]=max_code=n8;s10.depth[n8]=0}else{tree2[n8*2+1]=0}}while(s10.heap_len<2){node=s10.heap[++s10.heap_len]=max_code<2?++max_code:0;tree2[node*2]=1;s10.depth[node]=0;s10.opt_len--;if(has_stree){s10.static_len-=stree[node*2+1]}}desc.max_code=max_code;for(n8=s10.heap_len>>1;n8>=1;n8--){pqdownheap2(s10,tree2,n8)}node=elems;do{n8=s10.heap[1];s10.heap[1]=s10.heap[s10.heap_len--];pqdownheap2(s10,tree2,1);m=s10.heap[1];s10.heap[--s10.heap_max]=n8;s10.heap[--s10.heap_max]=m;tree2[node*2]=tree2[n8*2]+tree2[m*2];s10.depth[node]=(s10.depth[n8]>=s10.depth[m]?s10.depth[n8]:s10.depth[m])+1;tree2[n8*2+1]=tree2[m*2+1]=node;s10.heap[1]=node++;pqdownheap2(s10,tree2,1)}while(s10.heap_len>=2);s10.heap[--s10.heap_max]=s10.heap[1];gen_bitlen2(s10,desc);gen_codes2(tree2,max_code,s10.bl_count)};var scan_tree2=(s10,tree2,max_code)=>{let n8;let prevlen=-1;let curlen;let nextlen=tree2[0*2+1];let count=0;let max_count=7;let min_count=4;if(nextlen===0){max_count=138;min_count=3}tree2[(max_code+1)*2+1]=65535;for(n8=0;n8<=max_code;n8++){curlen=nextlen;nextlen=tree2[(n8+1)*2+1];if(++count<max_count&&curlen===nextlen){continue}else if(count<min_count){s10.bl_tree[curlen*2]+=count}else if(curlen!==0){if(curlen!==prevlen){s10.bl_tree[curlen*2]++}s10.bl_tree[REP_3_62*2]++}else if(count<=10){s10.bl_tree[REPZ_3_102*2]++}else{s10.bl_tree[REPZ_11_1382*2]++}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3}else if(curlen===nextlen){max_count=6;min_count=3}else{max_count=7;min_count=4}}};var send_tree2=(s10,tree2,max_code)=>{let n8;let prevlen=-1;let curlen;let nextlen=tree2[0*2+1];let count=0;let max_count=7;let min_count=4;if(nextlen===0){max_count=138;min_count=3}for(n8=0;n8<=max_code;n8++){curlen=nextlen;nextlen=tree2[(n8+1)*2+1];if(++count<max_count&&curlen===nextlen){continue}else if(count<min_count){do{send_code2(s10,curlen,s10.bl_tree)}while(--count!==0)}else if(curlen!==0){if(curlen!==prevlen){send_code2(s10,curlen,s10.bl_tree);count--}send_code2(s10,REP_3_62,s10.bl_tree);send_bits2(s10,count-3,2)}else if(count<=10){send_code2(s10,REPZ_3_102,s10.bl_tree);send_bits2(s10,count-3,3)}else{send_code2(s10,REPZ_11_1382,s10.bl_tree);send_bits2(s10,count-11,7)}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3}else if(curlen===nextlen){max_count=6;min_count=3}else{max_count=7;min_count=4}}};var build_bl_tree2=s10=>{let max_blindex;scan_tree2(s10,s10.dyn_ltree,s10.l_desc.max_code);scan_tree2(s10,s10.dyn_dtree,s10.d_desc.max_code);build_tree2(s10,s10.bl_desc);for(max_blindex=BL_CODES$12-1;max_blindex>=3;max_blindex--){if(s10.bl_tree[bl_order2[max_blindex]*2+1]!==0){break}}s10.opt_len+=3*(max_blindex+1)+5+5+4;return max_blindex};var send_all_trees2=(s10,lcodes,dcodes,blcodes)=>{let rank22;send_bits2(s10,lcodes-257,5);send_bits2(s10,dcodes-1,5);send_bits2(s10,blcodes-4,4);for(rank22=0;rank22<blcodes;rank22++){send_bits2(s10,s10.bl_tree[bl_order2[rank22]*2+1],3)}send_tree2(s10,s10.dyn_ltree,lcodes-1);send_tree2(s10,s10.dyn_dtree,dcodes-1)};var detect_data_type2=s10=>{let block_mask=4093624447;let n8;for(n8=0;n8<=31;n8++,block_mask>>>=1){if(block_mask&1&&s10.dyn_ltree[n8*2]!==0){return Z_BINARY2}}if(s10.dyn_ltree[9*2]!==0||s10.dyn_ltree[10*2]!==0||s10.dyn_ltree[13*2]!==0){return Z_TEXT2}for(n8=32;n8<LITERALS$12;n8++){if(s10.dyn_ltree[n8*2]!==0){return Z_TEXT2}}return Z_BINARY2};var static_init_done2=false;var _tr_init$12=s10=>{if(!static_init_done2){tr_static_init2();static_init_done2=true}s10.l_desc=new TreeDesc2(s10.dyn_ltree,static_l_desc2);s10.d_desc=new TreeDesc2(s10.dyn_dtree,static_d_desc2);s10.bl_desc=new TreeDesc2(s10.bl_tree,static_bl_desc2);s10.bi_buf=0;s10.bi_valid=0;init_block2(s10)};var _tr_stored_block$12=(s10,buf,stored_len,last)=>{send_bits2(s10,(STORED_BLOCK2<<1)+(last?1:0),3);bi_windup2(s10);put_short2(s10,stored_len);put_short2(s10,~stored_len);if(stored_len){s10.pending_buf.set(s10.window.subarray(buf,buf+stored_len),s10.pending)}s10.pending+=stored_len};var _tr_align$12=s10=>{send_bits2(s10,STATIC_TREES2<<1,3);send_code2(s10,END_BLOCK2,static_ltree2);bi_flush2(s10)};var _tr_flush_block$12=(s10,buf,stored_len,last)=>{let opt_lenb,static_lenb;let max_blindex=0;if(s10.level>0){if(s10.strm.data_type===Z_UNKNOWN$12){s10.strm.data_type=detect_data_type2(s10)}build_tree2(s10,s10.l_desc);build_tree2(s10,s10.d_desc);max_blindex=build_bl_tree2(s10);opt_lenb=s10.opt_len+3+7>>>3;static_lenb=s10.static_len+3+7>>>3;if(static_lenb<=opt_lenb){opt_lenb=static_lenb}}else{opt_lenb=static_lenb=stored_len+5}if(stored_len+4<=opt_lenb&&buf!==-1){_tr_stored_block$12(s10,buf,stored_len,last)}else if(s10.strategy===Z_FIXED$12||static_lenb===opt_lenb){send_bits2(s10,(STATIC_TREES2<<1)+(last?1:0),3);compress_block2(s10,static_ltree2,static_dtree2)}else{send_bits2(s10,(DYN_TREES2<<1)+(last?1:0),3);send_all_trees2(s10,s10.l_desc.max_code+1,s10.d_desc.max_code+1,max_blindex+1);compress_block2(s10,s10.dyn_ltree,s10.dyn_dtree)}init_block2(s10);if(last){bi_windup2(s10)}};var _tr_tally$12=(s10,dist,lc2)=>{s10.pending_buf[s10.sym_buf+s10.sym_next++]=dist;s10.pending_buf[s10.sym_buf+s10.sym_next++]=dist>>8;s10.pending_buf[s10.sym_buf+s10.sym_next++]=lc2;if(dist===0){s10.dyn_ltree[lc2*2]++}else{s10.matches++;dist--;s10.dyn_ltree[(_length_code2[lc2]+LITERALS$12+1)*2]++;s10.dyn_dtree[d_code2(dist)*2]++}return s10.sym_next===s10.sym_end};trees2._tr_init=_tr_init$12;trees2._tr_stored_block=_tr_stored_block$12;trees2._tr_flush_block=_tr_flush_block$12;trees2._tr_tally=_tr_tally$12;trees2._tr_align=_tr_align$12;var messages2={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var pakoMessages=getDefaultExportFromCjs(messages2);var{_tr_init:_tr_init2,_tr_stored_block:_tr_stored_block2,_tr_flush_block:_tr_flush_block2,_tr_tally:_tr_tally2,_tr_align:_tr_align2}=trees2;var adler322=adler32_12;var crc323=crc32_12;var msg=messages2;var{Z_NO_FLUSH:Z_NO_FLUSH2,Z_PARTIAL_FLUSH:Z_PARTIAL_FLUSH2,Z_FULL_FLUSH:Z_FULL_FLUSH2,Z_FINISH:Z_FINISH2,Z_BLOCK:Z_BLOCK2,Z_OK:Z_OK2,Z_STREAM_END:Z_STREAM_END2,Z_STREAM_ERROR:Z_STREAM_ERROR2,Z_DATA_ERROR:Z_DATA_ERROR2,Z_BUF_ERROR:Z_BUF_ERROR2,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION2,Z_FILTERED:Z_FILTERED2,Z_HUFFMAN_ONLY:Z_HUFFMAN_ONLY2,Z_RLE:Z_RLE2,Z_FIXED:Z_FIXED2,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY2,Z_UNKNOWN:Z_UNKNOWN2,Z_DEFLATED:Z_DEFLATED2}=constants$22;var MAX_MEM_LEVEL2=9;var MAX_WBITS2=15;var DEF_MEM_LEVEL2=8;var LENGTH_CODES2=29;var LITERALS2=256;var L_CODES2=LITERALS2+1+LENGTH_CODES2;var D_CODES2=30;var BL_CODES2=19;var HEAP_SIZE2=2*L_CODES2+1;var MAX_BITS2=15;var MIN_MATCH2=3;var MAX_MATCH2=258;var MIN_LOOKAHEAD2=MAX_MATCH2+MIN_MATCH2+1;var PRESET_DICT2=32;var INIT_STATE2=42;var GZIP_STATE2=57;var EXTRA_STATE2=69;var NAME_STATE2=73;var COMMENT_STATE2=91;var HCRC_STATE2=103;var BUSY_STATE2=113;var FINISH_STATE2=666;var BS_NEED_MORE2=1;var BS_BLOCK_DONE2=2;var BS_FINISH_STARTED2=3;var BS_FINISH_DONE2=4;var OS_CODE2=3;var err2=(strm,errorCode)=>{strm.msg=msg[errorCode];return errorCode};var rank2=f10=>{return f10*2-(f10>4?9:0)};var zero2=buf=>{let len2=buf.length;while(--len2>=0){buf[len2]=0}};var slide_hash2=s10=>{let n8,m;let p;let wsize=s10.w_size;n8=s10.hash_size;p=n8;do{m=s10.head[--p];s10.head[p]=m>=wsize?m-wsize:0}while(--n8);n8=wsize;p=n8;do{m=s10.prev[--p];s10.prev[p]=m>=wsize?m-wsize:0}while(--n8)};var HASH_ZLIB=(s10,prev,data2)=>(prev<<s10.hash_shift^data2)&s10.hash_mask;var HASH2=HASH_ZLIB;var flush_pending2=strm=>{const s10=strm.state;let len2=s10.pending;if(len2>strm.avail_out){len2=strm.avail_out}if(len2===0){return}strm.output.set(s10.pending_buf.subarray(s10.pending_out,s10.pending_out+len2),strm.next_out);strm.next_out+=len2;s10.pending_out+=len2;strm.total_out+=len2;strm.avail_out-=len2;s10.pending-=len2;if(s10.pending===0){s10.pending_out=0}};var flush_block_only2=(s10,last)=>{_tr_flush_block2(s10,s10.block_start>=0?s10.block_start:-1,s10.strstart-s10.block_start,last);s10.block_start=s10.strstart;flush_pending2(s10.strm)};var put_byte2=(s10,b)=>{s10.pending_buf[s10.pending++]=b};var putShortMSB2=(s10,b)=>{s10.pending_buf[s10.pending++]=b>>>8&255;s10.pending_buf[s10.pending++]=b&255};var read_buf2=(strm,buf,start,size)=>{let len2=strm.avail_in;if(len2>size){len2=size}if(len2===0){return 0}strm.avail_in-=len2;buf.set(strm.input.subarray(strm.next_in,strm.next_in+len2),start);if(strm.state.wrap===1){strm.adler=adler322(strm.adler,buf,len2,start)}else if(strm.state.wrap===2){strm.adler=crc323(strm.adler,buf,len2,start)}strm.next_in+=len2;strm.total_in+=len2;return len2};var longest_match2=(s10,cur_match)=>{let chain_length=s10.max_chain_length;let scan=s10.strstart;let match2;let len2;let best_len=s10.prev_length;let nice_match=s10.nice_match;const limit=s10.strstart>s10.w_size-MIN_LOOKAHEAD2?s10.strstart-(s10.w_size-MIN_LOOKAHEAD2):0;const _win=s10.window;const wmask=s10.w_mask;const prev=s10.prev;const strend=s10.strstart+MAX_MATCH2;let scan_end1=_win[scan+best_len-1];let scan_end=_win[scan+best_len];if(s10.prev_length>=s10.good_match){chain_length>>=2}if(nice_match>s10.lookahead){nice_match=s10.lookahead}do{match2=cur_match;if(_win[match2+best_len]!==scan_end||_win[match2+best_len-1]!==scan_end1||_win[match2]!==_win[scan]||_win[++match2]!==_win[scan+1]){continue}scan+=2;match2++;do{}while(_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&_win[++scan]===_win[++match2]&&scan<strend);len2=MAX_MATCH2-(strend-scan);scan=strend-MAX_MATCH2;if(len2>best_len){s10.match_start=cur_match;best_len=len2;if(len2>=nice_match){break}scan_end1=_win[scan+best_len-1];scan_end=_win[scan+best_len]}}while((cur_match=prev[cur_match&wmask])>limit&&--chain_length!==0);if(best_len<=s10.lookahead){return best_len}return s10.lookahead};var fill_window2=s10=>{const _w_size=s10.w_size;let n8,more,str;do{more=s10.window_size-s10.lookahead-s10.strstart;if(s10.strstart>=_w_size+(_w_size-MIN_LOOKAHEAD2)){s10.window.set(s10.window.subarray(_w_size,_w_size+_w_size-more),0);s10.match_start-=_w_size;s10.strstart-=_w_size;s10.block_start-=_w_size;if(s10.insert>s10.strstart){s10.insert=s10.strstart}slide_hash2(s10);more+=_w_size}if(s10.strm.avail_in===0){break}n8=read_buf2(s10.strm,s10.window,s10.strstart+s10.lookahead,more);s10.lookahead+=n8;if(s10.lookahead+s10.insert>=MIN_MATCH2){str=s10.strstart-s10.insert;s10.ins_h=s10.window[str];s10.ins_h=HASH2(s10,s10.ins_h,s10.window[str+1]);while(s10.insert){s10.ins_h=HASH2(s10,s10.ins_h,s10.window[str+MIN_MATCH2-1]);s10.prev[str&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=str;str++;s10.insert--;if(s10.lookahead+s10.insert<MIN_MATCH2){break}}}}while(s10.lookahead<MIN_LOOKAHEAD2&&s10.strm.avail_in!==0)};var deflate_stored2=(s10,flush2)=>{let min_block=s10.pending_buf_size-5>s10.w_size?s10.w_size:s10.pending_buf_size-5;let len2,left,have,last=0;let used=s10.strm.avail_in;do{len2=65535;have=s10.bi_valid+42>>3;if(s10.strm.avail_out<have){break}have=s10.strm.avail_out-have;left=s10.strstart-s10.block_start;if(len2>left+s10.strm.avail_in){len2=left+s10.strm.avail_in}if(len2>have){len2=have}if(len2<min_block&&(len2===0&&flush2!==Z_FINISH2||flush2===Z_NO_FLUSH2||len2!==left+s10.strm.avail_in)){break}last=flush2===Z_FINISH2&&len2===left+s10.strm.avail_in?1:0;_tr_stored_block2(s10,0,0,last);s10.pending_buf[s10.pending-4]=len2;s10.pending_buf[s10.pending-3]=len2>>8;s10.pending_buf[s10.pending-2]=~len2;s10.pending_buf[s10.pending-1]=~len2>>8;flush_pending2(s10.strm);if(left){if(left>len2){left=len2}s10.strm.output.set(s10.window.subarray(s10.block_start,s10.block_start+left),s10.strm.next_out);s10.strm.next_out+=left;s10.strm.avail_out-=left;s10.strm.total_out+=left;s10.block_start+=left;len2-=left}if(len2){read_buf2(s10.strm,s10.strm.output,s10.strm.next_out,len2);s10.strm.next_out+=len2;s10.strm.avail_out-=len2;s10.strm.total_out+=len2}}while(last===0);used-=s10.strm.avail_in;if(used){if(used>=s10.w_size){s10.matches=2;s10.window.set(s10.strm.input.subarray(s10.strm.next_in-s10.w_size,s10.strm.next_in),0);s10.strstart=s10.w_size;s10.insert=s10.strstart}else{if(s10.window_size-s10.strstart<=used){s10.strstart-=s10.w_size;s10.window.set(s10.window.subarray(s10.w_size,s10.w_size+s10.strstart),0);if(s10.matches<2){s10.matches++}if(s10.insert>s10.strstart){s10.insert=s10.strstart}}s10.window.set(s10.strm.input.subarray(s10.strm.next_in-used,s10.strm.next_in),s10.strstart);s10.strstart+=used;s10.insert+=used>s10.w_size-s10.insert?s10.w_size-s10.insert:used}s10.block_start=s10.strstart}if(s10.high_water<s10.strstart){s10.high_water=s10.strstart}if(last){return BS_FINISH_DONE2}if(flush2!==Z_NO_FLUSH2&&flush2!==Z_FINISH2&&s10.strm.avail_in===0&&s10.strstart===s10.block_start){return BS_BLOCK_DONE2}have=s10.window_size-s10.strstart;if(s10.strm.avail_in>have&&s10.block_start>=s10.w_size){s10.block_start-=s10.w_size;s10.strstart-=s10.w_size;s10.window.set(s10.window.subarray(s10.w_size,s10.w_size+s10.strstart),0);if(s10.matches<2){s10.matches++}have+=s10.w_size;if(s10.insert>s10.strstart){s10.insert=s10.strstart}}if(have>s10.strm.avail_in){have=s10.strm.avail_in}if(have){read_buf2(s10.strm,s10.window,s10.strstart,have);s10.strstart+=have;s10.insert+=have>s10.w_size-s10.insert?s10.w_size-s10.insert:have}if(s10.high_water<s10.strstart){s10.high_water=s10.strstart}have=s10.bi_valid+42>>3;have=s10.pending_buf_size-have>65535?65535:s10.pending_buf_size-have;min_block=have>s10.w_size?s10.w_size:have;left=s10.strstart-s10.block_start;if(left>=min_block||(left||flush2===Z_FINISH2)&&flush2!==Z_NO_FLUSH2&&s10.strm.avail_in===0&&left<=have){len2=left>have?have:left;last=flush2===Z_FINISH2&&s10.strm.avail_in===0&&len2===left?1:0;_tr_stored_block2(s10,s10.block_start,len2,last);s10.block_start+=len2;flush_pending2(s10.strm)}return last?BS_FINISH_STARTED2:BS_NEED_MORE2};var deflate_fast2=(s10,flush2)=>{let hash_head;let bflush;for(;;){if(s10.lookahead<MIN_LOOKAHEAD2){fill_window2(s10);if(s10.lookahead<MIN_LOOKAHEAD2&&flush2===Z_NO_FLUSH2){return BS_NEED_MORE2}if(s10.lookahead===0){break}}hash_head=0;if(s10.lookahead>=MIN_MATCH2){s10.ins_h=HASH2(s10,s10.ins_h,s10.window[s10.strstart+MIN_MATCH2-1]);hash_head=s10.prev[s10.strstart&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=s10.strstart}if(hash_head!==0&&s10.strstart-hash_head<=s10.w_size-MIN_LOOKAHEAD2){s10.match_length=longest_match2(s10,hash_head)}if(s10.match_length>=MIN_MATCH2){bflush=_tr_tally2(s10,s10.strstart-s10.match_start,s10.match_length-MIN_MATCH2);s10.lookahead-=s10.match_length;if(s10.match_length<=s10.max_lazy_match&&s10.lookahead>=MIN_MATCH2){s10.match_length--;do{s10.strstart++;s10.ins_h=HASH2(s10,s10.ins_h,s10.window[s10.strstart+MIN_MATCH2-1]);hash_head=s10.prev[s10.strstart&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=s10.strstart}while(--s10.match_length!==0);s10.strstart++}else{s10.strstart+=s10.match_length;s10.match_length=0;s10.ins_h=s10.window[s10.strstart];s10.ins_h=HASH2(s10,s10.ins_h,s10.window[s10.strstart+1])}}else{bflush=_tr_tally2(s10,0,s10.window[s10.strstart]);s10.lookahead--;s10.strstart++}if(bflush){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}}s10.insert=s10.strstart<MIN_MATCH2-1?s10.strstart:MIN_MATCH2-1;if(flush2===Z_FINISH2){flush_block_only2(s10,true);if(s10.strm.avail_out===0){return BS_FINISH_STARTED2}return BS_FINISH_DONE2}if(s10.sym_next){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}return BS_BLOCK_DONE2};var deflate_slow2=(s10,flush2)=>{let hash_head;let bflush;let max_insert;for(;;){if(s10.lookahead<MIN_LOOKAHEAD2){fill_window2(s10);if(s10.lookahead<MIN_LOOKAHEAD2&&flush2===Z_NO_FLUSH2){return BS_NEED_MORE2}if(s10.lookahead===0){break}}hash_head=0;if(s10.lookahead>=MIN_MATCH2){s10.ins_h=HASH2(s10,s10.ins_h,s10.window[s10.strstart+MIN_MATCH2-1]);hash_head=s10.prev[s10.strstart&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=s10.strstart}s10.prev_length=s10.match_length;s10.prev_match=s10.match_start;s10.match_length=MIN_MATCH2-1;if(hash_head!==0&&s10.prev_length<s10.max_lazy_match&&s10.strstart-hash_head<=s10.w_size-MIN_LOOKAHEAD2){s10.match_length=longest_match2(s10,hash_head);if(s10.match_length<=5&&(s10.strategy===Z_FILTERED2||s10.match_length===MIN_MATCH2&&s10.strstart-s10.match_start>4096)){s10.match_length=MIN_MATCH2-1}}if(s10.prev_length>=MIN_MATCH2&&s10.match_length<=s10.prev_length){max_insert=s10.strstart+s10.lookahead-MIN_MATCH2;bflush=_tr_tally2(s10,s10.strstart-1-s10.prev_match,s10.prev_length-MIN_MATCH2);s10.lookahead-=s10.prev_length-1;s10.prev_length-=2;do{if(++s10.strstart<=max_insert){s10.ins_h=HASH2(s10,s10.ins_h,s10.window[s10.strstart+MIN_MATCH2-1]);hash_head=s10.prev[s10.strstart&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=s10.strstart}}while(--s10.prev_length!==0);s10.match_available=0;s10.match_length=MIN_MATCH2-1;s10.strstart++;if(bflush){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}}else if(s10.match_available){bflush=_tr_tally2(s10,0,s10.window[s10.strstart-1]);if(bflush){flush_block_only2(s10,false)}s10.strstart++;s10.lookahead--;if(s10.strm.avail_out===0){return BS_NEED_MORE2}}else{s10.match_available=1;s10.strstart++;s10.lookahead--}}if(s10.match_available){bflush=_tr_tally2(s10,0,s10.window[s10.strstart-1]);s10.match_available=0}s10.insert=s10.strstart<MIN_MATCH2-1?s10.strstart:MIN_MATCH2-1;if(flush2===Z_FINISH2){flush_block_only2(s10,true);if(s10.strm.avail_out===0){return BS_FINISH_STARTED2}return BS_FINISH_DONE2}if(s10.sym_next){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}return BS_BLOCK_DONE2};var deflate_rle2=(s10,flush2)=>{let bflush;let prev;let scan,strend;const _win=s10.window;for(;;){if(s10.lookahead<=MAX_MATCH2){fill_window2(s10);if(s10.lookahead<=MAX_MATCH2&&flush2===Z_NO_FLUSH2){return BS_NEED_MORE2}if(s10.lookahead===0){break}}s10.match_length=0;if(s10.lookahead>=MIN_MATCH2&&s10.strstart>0){scan=s10.strstart-1;prev=_win[scan];if(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]){strend=s10.strstart+MAX_MATCH2;do{}while(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&scan<strend);s10.match_length=MAX_MATCH2-(strend-scan);if(s10.match_length>s10.lookahead){s10.match_length=s10.lookahead}}}if(s10.match_length>=MIN_MATCH2){bflush=_tr_tally2(s10,1,s10.match_length-MIN_MATCH2);s10.lookahead-=s10.match_length;s10.strstart+=s10.match_length;s10.match_length=0}else{bflush=_tr_tally2(s10,0,s10.window[s10.strstart]);s10.lookahead--;s10.strstart++}if(bflush){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}}s10.insert=0;if(flush2===Z_FINISH2){flush_block_only2(s10,true);if(s10.strm.avail_out===0){return BS_FINISH_STARTED2}return BS_FINISH_DONE2}if(s10.sym_next){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}return BS_BLOCK_DONE2};var deflate_huff2=(s10,flush2)=>{let bflush;for(;;){if(s10.lookahead===0){fill_window2(s10);if(s10.lookahead===0){if(flush2===Z_NO_FLUSH2){return BS_NEED_MORE2}break}}s10.match_length=0;bflush=_tr_tally2(s10,0,s10.window[s10.strstart]);s10.lookahead--;s10.strstart++;if(bflush){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}}s10.insert=0;if(flush2===Z_FINISH2){flush_block_only2(s10,true);if(s10.strm.avail_out===0){return BS_FINISH_STARTED2}return BS_FINISH_DONE2}if(s10.sym_next){flush_block_only2(s10,false);if(s10.strm.avail_out===0){return BS_NEED_MORE2}}return BS_BLOCK_DONE2};function Config2(good_length,max_lazy,nice_length,max_chain,func){this.good_length=good_length;this.max_lazy=max_lazy;this.nice_length=nice_length;this.max_chain=max_chain;this.func=func}var configuration_table2=[new Config2(0,0,0,0,deflate_stored2),new Config2(4,4,8,4,deflate_fast2),new Config2(4,5,16,8,deflate_fast2),new Config2(4,6,32,32,deflate_fast2),new Config2(4,4,16,16,deflate_slow2),new Config2(8,16,32,32,deflate_slow2),new Config2(8,16,128,128,deflate_slow2),new Config2(8,32,128,256,deflate_slow2),new Config2(32,128,258,1024,deflate_slow2),new Config2(32,258,258,4096,deflate_slow2)];var lm_init2=s10=>{s10.window_size=2*s10.w_size;zero2(s10.head);s10.max_lazy_match=configuration_table2[s10.level].max_lazy;s10.good_match=configuration_table2[s10.level].good_length;s10.nice_match=configuration_table2[s10.level].nice_length;s10.max_chain_length=configuration_table2[s10.level].max_chain;s10.strstart=0;s10.block_start=0;s10.lookahead=0;s10.insert=0;s10.match_length=s10.prev_length=MIN_MATCH2-1;s10.match_available=0;s10.ins_h=0};function DeflateState2(){this.strm=null;this.status=0;this.pending_buf=null;this.pending_buf_size=0;this.pending_out=0;this.pending=0;this.wrap=0;this.gzhead=null;this.gzindex=0;this.method=Z_DEFLATED2;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new Uint16Array(HEAP_SIZE2*2);this.dyn_dtree=new Uint16Array((2*D_CODES2+1)*2);this.bl_tree=new Uint16Array((2*BL_CODES2+1)*2);zero2(this.dyn_ltree);zero2(this.dyn_dtree);zero2(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new Uint16Array(MAX_BITS2+1);this.heap=new Uint16Array(2*L_CODES2+1);zero2(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new Uint16Array(2*L_CODES2+1);zero2(this.depth);this.sym_buf=0;this.lit_bufsize=0;this.sym_next=0;this.sym_end=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}var deflateStateCheck2=strm=>{if(!strm){return 1}const s10=strm.state;if(!s10||s10.strm!==strm||s10.status!==INIT_STATE2&&s10.status!==GZIP_STATE2&&s10.status!==EXTRA_STATE2&&s10.status!==NAME_STATE2&&s10.status!==COMMENT_STATE2&&s10.status!==HCRC_STATE2&&s10.status!==BUSY_STATE2&&s10.status!==FINISH_STATE2){return 1}return 0};var deflateResetKeep2=strm=>{if(deflateStateCheck2(strm)){return err2(strm,Z_STREAM_ERROR2)}strm.total_in=strm.total_out=0;strm.data_type=Z_UNKNOWN2;const s10=strm.state;s10.pending=0;s10.pending_out=0;if(s10.wrap<0){s10.wrap=-s10.wrap}s10.status=s10.wrap===2?GZIP_STATE2:s10.wrap?INIT_STATE2:BUSY_STATE2;strm.adler=s10.wrap===2?0:1;s10.last_flush=-2;_tr_init2(s10);return Z_OK2};var deflateReset2=strm=>{const ret=deflateResetKeep2(strm);if(ret===Z_OK2){lm_init2(strm.state)}return ret};var deflateSetHeader2=(strm,head)=>{if(deflateStateCheck2(strm)||strm.state.wrap!==2){return Z_STREAM_ERROR2}strm.state.gzhead=head;return Z_OK2};var deflateInit22=(strm,level,method,windowBits,memLevel,strategy)=>{if(!strm){return Z_STREAM_ERROR2}let wrap2=1;if(level===Z_DEFAULT_COMPRESSION2){level=6}if(windowBits<0){wrap2=0;windowBits=-windowBits}else if(windowBits>15){wrap2=2;windowBits-=16}if(memLevel<1||memLevel>MAX_MEM_LEVEL2||method!==Z_DEFLATED2||windowBits<8||windowBits>15||level<0||level>9||strategy<0||strategy>Z_FIXED2||windowBits===8&&wrap2!==1){return err2(strm,Z_STREAM_ERROR2)}if(windowBits===8){windowBits=9}const s10=new DeflateState2;strm.state=s10;s10.strm=strm;s10.status=INIT_STATE2;s10.wrap=wrap2;s10.gzhead=null;s10.w_bits=windowBits;s10.w_size=1<<s10.w_bits;s10.w_mask=s10.w_size-1;s10.hash_bits=memLevel+7;s10.hash_size=1<<s10.hash_bits;s10.hash_mask=s10.hash_size-1;s10.hash_shift=~~((s10.hash_bits+MIN_MATCH2-1)/MIN_MATCH2);s10.window=new Uint8Array(s10.w_size*2);s10.head=new Uint16Array(s10.hash_size);s10.prev=new Uint16Array(s10.w_size);s10.lit_bufsize=1<<memLevel+6;s10.pending_buf_size=s10.lit_bufsize*4;s10.pending_buf=new Uint8Array(s10.pending_buf_size);s10.sym_buf=s10.lit_bufsize;s10.sym_end=(s10.lit_bufsize-1)*3;s10.level=level;s10.strategy=strategy;s10.method=method;return deflateReset2(strm)};var deflateInit3=(strm,level)=>{return deflateInit22(strm,level,Z_DEFLATED2,MAX_WBITS2,DEF_MEM_LEVEL2,Z_DEFAULT_STRATEGY2)};var deflate2=(strm,flush2)=>{if(deflateStateCheck2(strm)||flush2>Z_BLOCK2||flush2<0){return strm?err2(strm,Z_STREAM_ERROR2):Z_STREAM_ERROR2}const s10=strm.state;if(!strm.output||strm.avail_in!==0&&!strm.input||s10.status===FINISH_STATE2&&flush2!==Z_FINISH2){return err2(strm,strm.avail_out===0?Z_BUF_ERROR2:Z_STREAM_ERROR2)}const old_flush=s10.last_flush;s10.last_flush=flush2;if(s10.pending!==0){flush_pending2(strm);if(strm.avail_out===0){s10.last_flush=-1;return Z_OK2}}else if(strm.avail_in===0&&rank2(flush2)<=rank2(old_flush)&&flush2!==Z_FINISH2){return err2(strm,Z_BUF_ERROR2)}if(s10.status===FINISH_STATE2&&strm.avail_in!==0){return err2(strm,Z_BUF_ERROR2)}if(s10.status===INIT_STATE2&&s10.wrap===0){s10.status=BUSY_STATE2}if(s10.status===INIT_STATE2){let header=Z_DEFLATED2+(s10.w_bits-8<<4)<<8;let level_flags=-1;if(s10.strategy>=Z_HUFFMAN_ONLY2||s10.level<2){level_flags=0}else if(s10.level<6){level_flags=1}else if(s10.level===6){level_flags=2}else{level_flags=3}header|=level_flags<<6;if(s10.strstart!==0){header|=PRESET_DICT2}header+=31-header%31;putShortMSB2(s10,header);if(s10.strstart!==0){putShortMSB2(s10,strm.adler>>>16);putShortMSB2(s10,strm.adler&65535)}strm.adler=1;s10.status=BUSY_STATE2;flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}}if(s10.status===GZIP_STATE2){strm.adler=0;put_byte2(s10,31);put_byte2(s10,139);put_byte2(s10,8);if(!s10.gzhead){put_byte2(s10,0);put_byte2(s10,0);put_byte2(s10,0);put_byte2(s10,0);put_byte2(s10,0);put_byte2(s10,s10.level===9?2:s10.strategy>=Z_HUFFMAN_ONLY2||s10.level<2?4:0);put_byte2(s10,OS_CODE2);s10.status=BUSY_STATE2;flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}}else{put_byte2(s10,(s10.gzhead.text?1:0)+(s10.gzhead.hcrc?2:0)+(!s10.gzhead.extra?0:4)+(!s10.gzhead.name?0:8)+(!s10.gzhead.comment?0:16));put_byte2(s10,s10.gzhead.time&255);put_byte2(s10,s10.gzhead.time>>8&255);put_byte2(s10,s10.gzhead.time>>16&255);put_byte2(s10,s10.gzhead.time>>24&255);put_byte2(s10,s10.level===9?2:s10.strategy>=Z_HUFFMAN_ONLY2||s10.level<2?4:0);put_byte2(s10,s10.gzhead.os&255);if(s10.gzhead.extra&&s10.gzhead.extra.length){put_byte2(s10,s10.gzhead.extra.length&255);put_byte2(s10,s10.gzhead.extra.length>>8&255)}if(s10.gzhead.hcrc){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending,0)}s10.gzindex=0;s10.status=EXTRA_STATE2}}if(s10.status===EXTRA_STATE2){if(s10.gzhead.extra){let beg=s10.pending;let left=(s10.gzhead.extra.length&65535)-s10.gzindex;while(s10.pending+left>s10.pending_buf_size){let copy2=s10.pending_buf_size-s10.pending;s10.pending_buf.set(s10.gzhead.extra.subarray(s10.gzindex,s10.gzindex+copy2),s10.pending);s10.pending=s10.pending_buf_size;if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}s10.gzindex+=copy2;flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}beg=0;left-=copy2}let gzhead_extra=new Uint8Array(s10.gzhead.extra);s10.pending_buf.set(gzhead_extra.subarray(s10.gzindex,s10.gzindex+left),s10.pending);s10.pending+=left;if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}s10.gzindex=0}s10.status=NAME_STATE2}if(s10.status===NAME_STATE2){if(s10.gzhead.name){let beg=s10.pending;let val;do{if(s10.pending===s10.pending_buf_size){if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}beg=0}if(s10.gzindex<s10.gzhead.name.length){val=s10.gzhead.name.charCodeAt(s10.gzindex++)&255}else{val=0}put_byte2(s10,val)}while(val!==0);if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}s10.gzindex=0}s10.status=COMMENT_STATE2}if(s10.status===COMMENT_STATE2){if(s10.gzhead.comment){let beg=s10.pending;let val;do{if(s10.pending===s10.pending_buf_size){if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}beg=0}if(s10.gzindex<s10.gzhead.comment.length){val=s10.gzhead.comment.charCodeAt(s10.gzindex++)&255}else{val=0}put_byte2(s10,val)}while(val!==0);if(s10.gzhead.hcrc&&s10.pending>beg){strm.adler=crc323(strm.adler,s10.pending_buf,s10.pending-beg,beg)}}s10.status=HCRC_STATE2}if(s10.status===HCRC_STATE2){if(s10.gzhead.hcrc){if(s10.pending+2>s10.pending_buf_size){flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}}put_byte2(s10,strm.adler&255);put_byte2(s10,strm.adler>>8&255);strm.adler=0}s10.status=BUSY_STATE2;flush_pending2(strm);if(s10.pending!==0){s10.last_flush=-1;return Z_OK2}}if(strm.avail_in!==0||s10.lookahead!==0||flush2!==Z_NO_FLUSH2&&s10.status!==FINISH_STATE2){let bstate=s10.level===0?deflate_stored2(s10,flush2):s10.strategy===Z_HUFFMAN_ONLY2?deflate_huff2(s10,flush2):s10.strategy===Z_RLE2?deflate_rle2(s10,flush2):configuration_table2[s10.level].func(s10,flush2);if(bstate===BS_FINISH_STARTED2||bstate===BS_FINISH_DONE2){s10.status=FINISH_STATE2}if(bstate===BS_NEED_MORE2||bstate===BS_FINISH_STARTED2){if(strm.avail_out===0){s10.last_flush=-1}return Z_OK2}if(bstate===BS_BLOCK_DONE2){if(flush2===Z_PARTIAL_FLUSH2){_tr_align2(s10)}else if(flush2!==Z_BLOCK2){_tr_stored_block2(s10,0,0,false);if(flush2===Z_FULL_FLUSH2){zero2(s10.head);if(s10.lookahead===0){s10.strstart=0;s10.block_start=0;s10.insert=0}}}flush_pending2(strm);if(strm.avail_out===0){s10.last_flush=-1;return Z_OK2}}}if(flush2!==Z_FINISH2){return Z_OK2}if(s10.wrap<=0){return Z_STREAM_END2}if(s10.wrap===2){put_byte2(s10,strm.adler&255);put_byte2(s10,strm.adler>>8&255);put_byte2(s10,strm.adler>>16&255);put_byte2(s10,strm.adler>>24&255);put_byte2(s10,strm.total_in&255);put_byte2(s10,strm.total_in>>8&255);put_byte2(s10,strm.total_in>>16&255);put_byte2(s10,strm.total_in>>24&255)}else{putShortMSB2(s10,strm.adler>>>16);putShortMSB2(s10,strm.adler&65535)}flush_pending2(strm);if(s10.wrap>0){s10.wrap=-s10.wrap}return s10.pending!==0?Z_OK2:Z_STREAM_END2};var deflateEnd2=strm=>{if(deflateStateCheck2(strm)){return Z_STREAM_ERROR2}const status=strm.state.status;strm.state=null;return status===BUSY_STATE2?err2(strm,Z_DATA_ERROR2):Z_OK2};var deflateSetDictionary2=(strm,dictionary2)=>{let dictLength=dictionary2.length;if(deflateStateCheck2(strm)){return Z_STREAM_ERROR2}const s10=strm.state;const wrap2=s10.wrap;if(wrap2===2||wrap2===1&&s10.status!==INIT_STATE2||s10.lookahead){return Z_STREAM_ERROR2}if(wrap2===1){strm.adler=adler322(strm.adler,dictionary2,dictLength,0)}s10.wrap=0;if(dictLength>=s10.w_size){if(wrap2===0){zero2(s10.head);s10.strstart=0;s10.block_start=0;s10.insert=0}let tmpDict=new Uint8Array(s10.w_size);tmpDict.set(dictionary2.subarray(dictLength-s10.w_size,dictLength),0);dictionary2=tmpDict;dictLength=s10.w_size}const avail=strm.avail_in;const next2=strm.next_in;const input=strm.input;strm.avail_in=dictLength;strm.next_in=0;strm.input=dictionary2;fill_window2(s10);while(s10.lookahead>=MIN_MATCH2){let str=s10.strstart;let n8=s10.lookahead-(MIN_MATCH2-1);do{s10.ins_h=HASH2(s10,s10.ins_h,s10.window[str+MIN_MATCH2-1]);s10.prev[str&s10.w_mask]=s10.head[s10.ins_h];s10.head[s10.ins_h]=str;str++}while(--n8);s10.strstart=str;s10.lookahead=MIN_MATCH2-1;fill_window2(s10)}s10.strstart+=s10.lookahead;s10.block_start=s10.strstart;s10.insert=s10.lookahead;s10.lookahead=0;s10.match_length=s10.prev_length=MIN_MATCH2-1;s10.match_available=0;strm.next_in=next2;strm.input=input;strm.avail_in=avail;s10.wrap=wrap2;return Z_OK2};var deflateInit_12=deflate$12.deflateInit=deflateInit3;var deflateInit2_12=deflate$12.deflateInit2=deflateInit22;var deflateReset_12=deflate$12.deflateReset=deflateReset2;var deflateResetKeep_12=deflate$12.deflateResetKeep=deflateResetKeep2;var deflateSetHeader_12=deflate$12.deflateSetHeader=deflateSetHeader2;var deflate_22=deflate$12.deflate=deflate2;var deflateEnd_12=deflate$12.deflateEnd=deflateEnd2;var deflateSetDictionary_12=deflate$12.deflateSetDictionary=deflateSetDictionary2;var deflateInfo2=deflate$12.deflateInfo="pako deflate (from Nodeca project)";var pakoDeflate=_mergeNamespaces({__proto__:null,default:deflate$12,deflate:deflate_22,deflateEnd:deflateEnd_12,deflateInfo:deflateInfo2,deflateInit:deflateInit_12,deflateInit2:deflateInit2_12,deflateReset:deflateReset_12,deflateResetKeep:deflateResetKeep_12,deflateSetDictionary:deflateSetDictionary_12,deflateSetHeader:deflateSetHeader_12},[deflate$12]);function zstream2(){return new ZStream$1}var inflateModule=pakoInflate;var deflateModule=pakoDeflate;var zlibConstants={...pakoConstants,messages:pakoMessages,crc32:pakoCrc32};var decode={};var streams={};function BrotliInput(buffer2){this.buffer=buffer2;this.pos=0}BrotliInput.prototype.read=function(buf,i22,count){if(this.pos+count>this.buffer.length){count=this.buffer.length-this.pos}for(var p=0;p<count;p++)buf[i22+p]=this.buffer[this.pos+p];this.pos+=count;return count};streams.BrotliInput=BrotliInput;function BrotliOutput(buf){this.buffer=buf;this.pos=0}BrotliOutput.prototype.write=function(buf,count){if(this.pos+count>this.buffer.length)throw new Error("Output buffer is not large enough");this.buffer.set(buf.subarray(0,count),this.pos);this.pos+=count;return count};streams.BrotliOutput=BrotliOutput;var BROTLI_READ_SIZE=4096;var BROTLI_IBUF_SIZE=2*BROTLI_READ_SIZE+32;var BROTLI_IBUF_MASK=2*BROTLI_READ_SIZE-1;var kBitMask=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function BrotliBitReader(input){this.buf_=new Uint8Array(BROTLI_IBUF_SIZE);this.input_=input;this.reset()}BrotliBitReader.READ_SIZE=BROTLI_READ_SIZE;BrotliBitReader.IBUF_MASK=BROTLI_IBUF_MASK;BrotliBitReader.prototype.reset=function(){this.buf_ptr_=0;this.val_=0;this.pos_=0;this.bit_pos_=0;this.bit_end_pos_=0;this.eos_=0;this.readMoreInput();for(var i22=0;i22<4;i22++){this.val_|=this.buf_[this.pos_]<<8*i22;++this.pos_}return this.bit_end_pos_>0};BrotliBitReader.prototype.readMoreInput=function(){if(this.bit_end_pos_>256){return}else if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var dst=this.buf_ptr_;var bytes_read=this.input_.read(this.buf_,dst,BROTLI_READ_SIZE);if(bytes_read<0){throw new Error("Unexpected end of input")}if(bytes_read<BROTLI_READ_SIZE){this.eos_=1;for(var p=0;p<32;p++)this.buf_[dst+bytes_read+p]=0}if(dst===0){for(var p=0;p<32;p++)this.buf_[(BROTLI_READ_SIZE<<1)+p]=this.buf_[p];this.buf_ptr_=BROTLI_READ_SIZE}else{this.buf_ptr_=0}this.bit_end_pos_+=bytes_read<<3}};BrotliBitReader.prototype.fillBitWindow=function(){while(this.bit_pos_>=8){this.val_>>>=8;this.val_|=this.buf_[this.pos_&BROTLI_IBUF_MASK]<<24;++this.pos_;this.bit_pos_=this.bit_pos_-8>>>0;this.bit_end_pos_=this.bit_end_pos_-8>>>0}};BrotliBitReader.prototype.readBits=function(n_bits){if(32-this.bit_pos_<n_bits){this.fillBitWindow()}var val=this.val_>>>this.bit_pos_&kBitMask[n_bits];this.bit_pos_+=n_bits;return val};var bit_reader=BrotliBitReader;var dictionary={};var dictionaryBrowser={};var base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup$1=[];var revLookup=[];var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var code2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(i$1=0,len=code2.length;i$1<len;++i$1){lookup$1[i$1]=code2[i$1];revLookup[code2.charCodeAt(i$1)]=i$1}var i$1;var len;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(b64){var len2=b64.length;if(len2%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var validLen=b64.indexOf("=");if(validLen===-1)validLen=len2;var placeHoldersLen=validLen===len2?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;var len2=placeHoldersLen>0?validLen-4:validLen;var i22;for(i22=0;i22<len2;i22+=4){tmp=revLookup[b64.charCodeAt(i22)]<<18|revLookup[b64.charCodeAt(i22+1)]<<12|revLookup[b64.charCodeAt(i22+2)]<<6|revLookup[b64.charCodeAt(i22+3)];arr[curByte++]=tmp>>16&255;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i22)]<<2|revLookup[b64.charCodeAt(i22+1)]>>4;arr[curByte++]=tmp&255}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i22)]<<10|revLookup[b64.charCodeAt(i22+1)]<<4|revLookup[b64.charCodeAt(i22+2)]>>2;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}return arr}function tripletToBase64(num){return lookup$1[num>>18&63]+lookup$1[num>>12&63]+lookup$1[num>>6&63]+lookup$1[num&63]}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i22=start;i22<end;i22+=3){tmp=(uint8[i22]<<16&16711680)+(uint8[i22+1]<<8&65280)+(uint8[i22+2]&255);output.push(tripletToBase64(tmp))}return output.join("")}function fromByteArray(uint8){var tmp;var len2=uint8.length;var extraBytes=len2%3;var parts=[];var maxChunkLength=16383;for(var i22=0,len22=len2-extraBytes;i22<len22;i22+=maxChunkLength){parts.push(encodeChunk(uint8,i22,i22+maxChunkLength>len22?len22:i22+maxChunkLength))}if(extraBytes===1){tmp=uint8[len2-1];parts.push(lookup$1[tmp>>2]+lookup$1[tmp<<4&63]+"==")}else if(extraBytes===2){tmp=(uint8[len2-2]<<8)+uint8[len2-1];parts.push(lookup$1[tmp>>10]+lookup$1[tmp>>4&63]+lookup$1[tmp<<2&63]+"=")}return parts.join("")}var dictionary_bin;var hasRequiredDictionary_bin;function requireDictionary_bin(){if(hasRequiredDictionary_bin)return dictionary_bin;hasRequiredDictionary_bin=1;dictionary_bin="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQ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LU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg=";return dictionary_bin}var hasRequiredDictionaryBrowser;function requireDictionaryBrowser(){if(hasRequiredDictionaryBrowser)return dictionaryBrowser;hasRequiredDictionaryBrowser=1;var base6422=base64Js;dictionaryBrowser.init=function(){var BrotliDecompressBuffer=requireDecode().BrotliDecompressBuffer;var compressed=base6422.toByteArray(requireDictionary_bin());return BrotliDecompressBuffer(compressed)};return dictionaryBrowser}var hasRequiredDictionary;function requireDictionary(){if(hasRequiredDictionary)return dictionary;hasRequiredDictionary=1;var data2=requireDictionaryBrowser();dictionary.init=function(){dictionary.dictionary=data2.init()};dictionary.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]);dictionary.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]);dictionary.minDictionaryWordLength=4;dictionary.maxDictionaryWordLength=24;return dictionary}var huffman={};function HuffmanCode(bits,value){this.bits=bits;this.value=value}huffman.HuffmanCode=HuffmanCode;var MAX_LENGTH=15;function GetNextKey(key,len2){var step=1<<len2-1;while(key&step){step>>=1}return(key&step-1)+step}function ReplicateValue(table,i22,step,end,code22){do{end-=step;table[i22+end]=new HuffmanCode(code22.bits,code22.value)}while(end>0)}function NextTableBitSize(count,len2,root_bits){var left=1<<len2-root_bits;while(len2<MAX_LENGTH){left-=count[len2];if(left<=0)break;++len2;left<<=1}return len2-root_bits}huffman.BrotliBuildHuffmanTable=function(root_table,table,root_bits,code_lengths,code_lengths_size){var start_table=table;var code22;var len2;var symbol;var key;var step;var low;var mask;var table_bits;var table_size;var total_size;var sorted;var count=new Int32Array(MAX_LENGTH+1);var offset2=new Int32Array(MAX_LENGTH+1);sorted=new Int32Array(code_lengths_size);for(symbol=0;symbol<code_lengths_size;symbol++){count[code_lengths[symbol]]++}offset2[1]=0;for(len2=1;len2<MAX_LENGTH;len2++){offset2[len2+1]=offset2[len2]+count[len2]}for(symbol=0;symbol<code_lengths_size;symbol++){if(code_lengths[symbol]!==0){sorted[offset2[code_lengths[symbol]]++]=symbol}}table_bits=root_bits;table_size=1<<table_bits;total_size=table_size;if(offset2[MAX_LENGTH]===1){for(key=0;key<total_size;++key){root_table[table+key]=new HuffmanCode(0,sorted[0]&65535)}return total_size}key=0;symbol=0;for(len2=1,step=2;len2<=root_bits;++len2,step<<=1){for(;count[len2]>0;--count[len2]){code22=new HuffmanCode(len2&255,sorted[symbol++]&65535);ReplicateValue(root_table,table+key,step,table_size,code22);key=GetNextKey(key,len2)}}mask=total_size-1;low=-1;for(len2=root_bits+1,step=2;len2<=MAX_LENGTH;++len2,step<<=1){for(;count[len2]>0;--count[len2]){if((key&mask)!==low){table+=table_size;table_bits=NextTableBitSize(count,len2,root_bits);table_size=1<<table_bits;total_size+=table_size;low=key&mask;root_table[start_table+low]=new HuffmanCode(table_bits+root_bits&255,table-start_table-low&65535)}code22=new HuffmanCode(len2-root_bits&255,sorted[symbol++]&65535);ReplicateValue(root_table,table+(key>>root_bits),step,table_size,code22);key=GetNextKey(key,len2)}}return total_size};var context$1={};context$1.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);context$1.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512]);var prefix={};function PrefixCodeRange(offset2,nbits){this.offset=offset2;this.nbits=nbits}prefix.kBlockLengthPrefixCode=[new PrefixCodeRange(1,2),new PrefixCodeRange(5,2),new PrefixCodeRange(9,2),new PrefixCodeRange(13,2),new PrefixCodeRange(17,3),new PrefixCodeRange(25,3),new PrefixCodeRange(33,3),new PrefixCodeRange(41,3),new PrefixCodeRange(49,4),new PrefixCodeRange(65,4),new PrefixCodeRange(81,4),new PrefixCodeRange(97,4),new PrefixCodeRange(113,5),new PrefixCodeRange(145,5),new PrefixCodeRange(177,5),new PrefixCodeRange(209,5),new PrefixCodeRange(241,6),new PrefixCodeRange(305,6),new PrefixCodeRange(369,7),new PrefixCodeRange(497,8),new PrefixCodeRange(753,9),new PrefixCodeRange(1265,10),new PrefixCodeRange(2289,11),new PrefixCodeRange(4337,12),new PrefixCodeRange(8433,13),new PrefixCodeRange(16625,24)];prefix.kInsertLengthPrefixCode=[new PrefixCodeRange(0,0),new PrefixCodeRange(1,0),new PrefixCodeRange(2,0),new PrefixCodeRange(3,0),new PrefixCodeRange(4,0),new PrefixCodeRange(5,0),new PrefixCodeRange(6,1),new PrefixCodeRange(8,1),new PrefixCodeRange(10,2),new PrefixCodeRange(14,2),new PrefixCodeRange(18,3),new PrefixCodeRange(26,3),new PrefixCodeRange(34,4),new PrefixCodeRange(50,4),new PrefixCodeRange(66,5),new PrefixCodeRange(98,5),new PrefixCodeRange(130,6),new PrefixCodeRange(194,7),new PrefixCodeRange(322,8),new PrefixCodeRange(578,9),new PrefixCodeRange(1090,10),new PrefixCodeRange(2114,12),new PrefixCodeRange(6210,14),new PrefixCodeRange(22594,24)];prefix.kCopyLengthPrefixCode=[new PrefixCodeRange(2,0),new PrefixCodeRange(3,0),new PrefixCodeRange(4,0),new PrefixCodeRange(5,0),new PrefixCodeRange(6,0),new PrefixCodeRange(7,0),new PrefixCodeRange(8,0),new PrefixCodeRange(9,0),new PrefixCodeRange(10,1),new PrefixCodeRange(12,1),new PrefixCodeRange(14,2),new PrefixCodeRange(18,2),new PrefixCodeRange(22,3),new PrefixCodeRange(30,3),new PrefixCodeRange(38,4),new PrefixCodeRange(54,4),new PrefixCodeRange(70,5),new PrefixCodeRange(102,5),new PrefixCodeRange(134,6),new PrefixCodeRange(198,7),new PrefixCodeRange(326,8),new PrefixCodeRange(582,9),new PrefixCodeRange(1094,10),new PrefixCodeRange(2118,24)];prefix.kInsertRangeLut=[0,0,8,8,0,16,8,16,16];prefix.kCopyRangeLut=[0,8,0,8,16,0,16,8,16];var transform$2={};var hasRequiredTransform;function requireTransform(){if(hasRequiredTransform)return transform$2;hasRequiredTransform=1;var BrotliDictionary=requireDictionary();var kIdentity=0;var kOmitLast1=1;var kOmitLast2=2;var kOmitLast3=3;var kOmitLast4=4;var kOmitLast5=5;var kOmitLast6=6;var kOmitLast7=7;var kOmitLast8=8;var kOmitLast9=9;var kUppercaseFirst=10;var kUppercaseAll=11;var kOmitFirst1=12;var kOmitFirst2=13;var kOmitFirst3=14;var kOmitFirst4=15;var kOmitFirst5=16;var kOmitFirst6=17;var kOmitFirst7=18;var kOmitFirst9=20;function Transform(prefix2,transform2,suffix){this.prefix=new Uint8Array(prefix2.length);this.transform=transform2;this.suffix=new Uint8Array(suffix.length);for(var i22=0;i22<prefix2.length;i22++)this.prefix[i22]=prefix2.charCodeAt(i22);for(var i22=0;i22<suffix.length;i22++)this.suffix[i22]=suffix.charCodeAt(i22)}var kTransforms=[new Transform("",kIdentity,""),new Transform("",kIdentity," "),new Transform(" ",kIdentity," "),new Transform("",kOmitFirst1,""),new Transform("",kUppercaseFirst," "),new Transform("",kIdentity," the "),new Transform(" ",kIdentity,""),new Transform("s ",kIdentity," "),new Transform("",kIdentity," of "),new Transform("",kUppercaseFirst,""),new Transform("",kIdentity," and "),new Transform("",kOmitFirst2,""),new Transform("",kOmitLast1,""),new Transform(", ",kIdentity," "),new Transform("",kIdentity,", "),new Transform(" ",kUppercaseFirst," "),new Transform("",kIdentity," in "),new Transform("",kIdentity," to "),new Transform("e ",kIdentity," "),new Transform("",kIdentity,'"'),new Transform("",kIdentity,"."),new Transform("",kIdentity,'">'),new Transform("",kIdentity,"\n"),new Transform("",kOmitLast3,""),new Transform("",kIdentity,"]"),new Transform("",kIdentity," for "),new Transform("",kOmitFirst3,""),new Transform("",kOmitLast2,""),new Transform("",kIdentity," a "),new Transform("",kIdentity," that "),new Transform(" ",kUppercaseFirst,""),new Transform("",kIdentity,". "),new Transform(".",kIdentity,""),new Transform(" ",kIdentity,", "),new Transform("",kOmitFirst4,""),new Transform("",kIdentity," with "),new Transform("",kIdentity,"'"),new Transform("",kIdentity," from "),new Transform("",kIdentity," by "),new Transform("",kOmitFirst5,""),new Transform("",kOmitFirst6,""),new Transform(" the ",kIdentity,""),new Transform("",kOmitLast4,""),new Transform("",kIdentity,". The "),new Transform("",kUppercaseAll,""),new Transform("",kIdentity," on "),new Transform("",kIdentity," as "),new Transform("",kIdentity," is "),new Transform("",kOmitLast7,""),new Transform("",kOmitLast1,"ing "),new Transform("",kIdentity,"\n "),new Transform("",kIdentity,":"),new Transform(" ",kIdentity,". "),new Transform("",kIdentity,"ed "),new Transform("",kOmitFirst9,""),new Transform("",kOmitFirst7,""),new Transform("",kOmitLast6,""),new Transform("",kIdentity,"("),new Transform("",kUppercaseFirst,", "),new Transform("",kOmitLast8,""),new Transform("",kIdentity," at "),new Transform("",kIdentity,"ly "),new Transform(" the ",kIdentity," of "),new Transform("",kOmitLast5,""),new Transform("",kOmitLast9,""),new Transform(" ",kUppercaseFirst,", "),new Transform("",kUppercaseFirst,'"'),new Transform(".",kIdentity,"("),new Transform("",kUppercaseAll," "),new Transform("",kUppercaseFirst,'">'),new Transform("",kIdentity,'="'),new Transform(" ",kIdentity,"."),new Transform(".com/",kIdentity,""),new Transform(" the ",kIdentity," of the "),new Transform("",kUppercaseFirst,"'"),new Transform("",kIdentity,". This "),new Transform("",kIdentity,","),new Transform(".",kIdentity," "),new Transform("",kUppercaseFirst,"("),new Transform("",kUppercaseFirst,"."),new Transform("",kIdentity," not "),new Transform(" ",kIdentity,'="'),new Transform("",kIdentity,"er "),new Transform(" ",kUppercaseAll," "),new Transform("",kIdentity,"al "),new Transform(" ",kUppercaseAll,""),new Transform("",kIdentity,"='"),new Transform("",kUppercaseAll,'"'),new Transform("",kUppercaseFirst,". "),new Transform(" ",kIdentity,"("),new Transform("",kIdentity,"ful "),new Transform(" ",kUppercaseFirst,". "),new Transform("",kIdentity,"ive "),new Transform("",kIdentity,"less "),new Transform("",kUppercaseAll,"'"),new Transform("",kIdentity,"est "),new Transform(" ",kUppercaseFirst,"."),new Transform("",kUppercaseAll,'">'),new Transform(" ",kIdentity,"='"),new Transform("",kUppercaseFirst,","),new Transform("",kIdentity,"ize "),new Transform("",kUppercaseAll,"."),new Transform("\xC2\xA0",kIdentity,""),new Transform(" ",kIdentity,","),new Transform("",kUppercaseFirst,'="'),new Transform("",kUppercaseAll,'="'),new Transform("",kIdentity,"ous "),new Transform("",kUppercaseAll,", "),new Transform("",kUppercaseFirst,"='"),new Transform(" ",kUppercaseFirst,","),new Transform(" ",kUppercaseAll,'="'),new Transform(" ",kUppercaseAll,", "),new Transform("",kUppercaseAll,","),new Transform("",kUppercaseAll,"("),new Transform("",kUppercaseAll,". "),new Transform(" ",kUppercaseAll,"."),new Transform("",kUppercaseAll,"='"),new Transform(" ",kUppercaseAll,". "),new Transform(" ",kUppercaseFirst,'="'),new Transform(" ",kUppercaseAll,"='"),new Transform(" ",kUppercaseFirst,"='")];transform$2.kTransforms=kTransforms;transform$2.kNumTransforms=kTransforms.length;function ToUpperCase(p,i22){if(p[i22]<192){if(p[i22]>=97&&p[i22]<=122){p[i22]^=32}return 1}if(p[i22]<224){p[i22+1]^=32;return 2}p[i22+2]^=5;return 3}transform$2.transformDictionaryWord=function(dst,idx,word,len2,transform2){var prefix2=kTransforms[transform2].prefix;var suffix=kTransforms[transform2].suffix;var t10=kTransforms[transform2].transform;var skip=t10<kOmitFirst1?0:t10-(kOmitFirst1-1);var i22=0;var start_idx=idx;var uppercase;if(skip>len2){skip=len2}var prefix_pos=0;while(prefix_pos<prefix2.length){dst[idx++]=prefix2[prefix_pos++]}word+=skip;len2-=skip;if(t10<=kOmitLast9){len2-=t10}for(i22=0;i22<len2;i22++){dst[idx++]=BrotliDictionary.dictionary[word+i22]}uppercase=idx-len2;if(t10===kUppercaseFirst){ToUpperCase(dst,uppercase)}else if(t10===kUppercaseAll){while(len2>0){var step=ToUpperCase(dst,uppercase);uppercase+=step;len2-=step}}var suffix_pos=0;while(suffix_pos<suffix.length){dst[idx++]=suffix[suffix_pos++]}return idx-start_idx};return transform$2}var hasRequiredDecode;function requireDecode(){if(hasRequiredDecode)return decode;hasRequiredDecode=1;var BrotliInput2=streams.BrotliInput;var BrotliOutput2=streams.BrotliOutput;var BrotliBitReader2=bit_reader;var BrotliDictionary=requireDictionary();var HuffmanCode2=huffman.HuffmanCode;var BrotliBuildHuffmanTable=huffman.BrotliBuildHuffmanTable;var Context=context$1;var Prefix=prefix;var Transform=requireTransform();var kDefaultCodeLength=8;var kCodeLengthRepeatCode=16;var kNumLiteralCodes=256;var kNumInsertAndCopyCodes=704;var kNumBlockLengthCodes=26;var kLiteralContextBits=6;var kDistanceContextBits=2;var HUFFMAN_TABLE_BITS=8;var HUFFMAN_TABLE_MASK=255;var HUFFMAN_MAX_TABLE_SIZE=1080;var CODE_LENGTH_CODES=18;var kCodeLengthCodeOrder=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]);var NUM_DISTANCE_SHORT_CODES=16;var kDistanceShortCodeIndexOffset=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]);var kDistanceShortCodeValueOffset=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]);var kMaxHuffmanTableSize=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function DecodeWindowBits(br2){var n8;if(br2.readBits(1)===0){return 16}n8=br2.readBits(3);if(n8>0){return 17+n8}n8=br2.readBits(3);if(n8>0){return 8+n8}return 17}function DecodeVarLenUint8(br2){if(br2.readBits(1)){var nbits=br2.readBits(3);if(nbits===0){return 1}else{return br2.readBits(nbits)+(1<<nbits)}}return 0}function MetaBlockLength(){this.meta_block_length=0;this.input_end=0;this.is_uncompressed=0;this.is_metadata=false}function DecodeMetaBlockLength(br2){var out=new MetaBlockLength;var size_nibbles;var size_bytes;var i22;out.input_end=br2.readBits(1);if(out.input_end&&br2.readBits(1)){return out}size_nibbles=br2.readBits(2)+4;if(size_nibbles===7){out.is_metadata=true;if(br2.readBits(1)!==0)throw new Error("Invalid reserved bit");size_bytes=br2.readBits(2);if(size_bytes===0)return out;for(i22=0;i22<size_bytes;i22++){var next_byte=br2.readBits(8);if(i22+1===size_bytes&&size_bytes>1&&next_byte===0)throw new Error("Invalid size byte");out.meta_block_length|=next_byte<<i22*8}}else{for(i22=0;i22<size_nibbles;++i22){var next_nibble=br2.readBits(4);if(i22+1===size_nibbles&&size_nibbles>4&&next_nibble===0)throw new Error("Invalid size nibble");out.meta_block_length|=next_nibble<<i22*4}}++out.meta_block_length;if(!out.input_end&&!out.is_metadata){out.is_uncompressed=br2.readBits(1)}return out}function ReadSymbol(table,index2,br2){var nbits;br2.fillBitWindow();index2+=br2.val_>>>br2.bit_pos_&HUFFMAN_TABLE_MASK;nbits=table[index2].bits-HUFFMAN_TABLE_BITS;if(nbits>0){br2.bit_pos_+=HUFFMAN_TABLE_BITS;index2+=table[index2].value;index2+=br2.val_>>>br2.bit_pos_&(1<<nbits)-1}br2.bit_pos_+=table[index2].bits;return table[index2].value}function ReadHuffmanCodeLengths(code_length_code_lengths,num_symbols,code_lengths,br2){var symbol=0;var prev_code_len=kDefaultCodeLength;var repeat2=0;var repeat_code_len=0;var space=32768;var table=[];for(var i22=0;i22<32;i22++)table.push(new HuffmanCode2(0,0));BrotliBuildHuffmanTable(table,0,5,code_length_code_lengths,CODE_LENGTH_CODES);while(symbol<num_symbols&&space>0){var p=0;var code_len;br2.readMoreInput();br2.fillBitWindow();p+=br2.val_>>>br2.bit_pos_&31;br2.bit_pos_+=table[p].bits;code_len=table[p].value&255;if(code_len<kCodeLengthRepeatCode){repeat2=0;code_lengths[symbol++]=code_len;if(code_len!==0){prev_code_len=code_len;space-=32768>>code_len}}else{var extra_bits=code_len-14;var old_repeat;var repeat_delta;var new_len=0;if(code_len===kCodeLengthRepeatCode){new_len=prev_code_len}if(repeat_code_len!==new_len){repeat2=0;repeat_code_len=new_len}old_repeat=repeat2;if(repeat2>0){repeat2-=2;repeat2<<=extra_bits}repeat2+=br2.readBits(extra_bits)+3;repeat_delta=repeat2-old_repeat;if(symbol+repeat_delta>num_symbols){throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols")}for(var x=0;x<repeat_delta;x++)code_lengths[symbol+x]=repeat_code_len;symbol+=repeat_delta;if(repeat_code_len!==0){space-=repeat_delta<<15-repeat_code_len}}}if(space!==0){throw new Error("[ReadHuffmanCodeLengths] space = "+space)}for(;symbol<num_symbols;symbol++)code_lengths[symbol]=0}function ReadHuffmanCode(alphabet_size,tables,table,br2){var table_size=0;var simple_code_or_skip;var code_lengths=new Uint8Array(alphabet_size);br2.readMoreInput();simple_code_or_skip=br2.readBits(2);if(simple_code_or_skip===1){var i22;var max_bits_counter=alphabet_size-1;var max_bits=0;var symbols2=new Int32Array(4);var num_symbols=br2.readBits(2)+1;while(max_bits_counter){max_bits_counter>>=1;++max_bits}for(i22=0;i22<num_symbols;++i22){symbols2[i22]=br2.readBits(max_bits)%alphabet_size;code_lengths[symbols2[i22]]=2}code_lengths[symbols2[0]]=1;switch(num_symbols){case 1:break;case 3:if(symbols2[0]===symbols2[1]||symbols2[0]===symbols2[2]||symbols2[1]===symbols2[2]){throw new Error("[ReadHuffmanCode] invalid symbols")}break;case 2:if(symbols2[0]===symbols2[1]){throw new Error("[ReadHuffmanCode] invalid symbols")}code_lengths[symbols2[1]]=1;break;case 4:if(symbols2[0]===symbols2[1]||symbols2[0]===symbols2[2]||symbols2[0]===symbols2[3]||symbols2[1]===symbols2[2]||symbols2[1]===symbols2[3]||symbols2[2]===symbols2[3]){throw new Error("[ReadHuffmanCode] invalid symbols")}if(br2.readBits(1)){code_lengths[symbols2[2]]=3;code_lengths[symbols2[3]]=3}else{code_lengths[symbols2[0]]=2}break}}else{var i22;var code_length_code_lengths=new Uint8Array(CODE_LENGTH_CODES);var space=32;var num_codes=0;var huff=[new HuffmanCode2(2,0),new HuffmanCode2(2,4),new HuffmanCode2(2,3),new HuffmanCode2(3,2),new HuffmanCode2(2,0),new HuffmanCode2(2,4),new HuffmanCode2(2,3),new HuffmanCode2(4,1),new HuffmanCode2(2,0),new HuffmanCode2(2,4),new HuffmanCode2(2,3),new HuffmanCode2(3,2),new HuffmanCode2(2,0),new HuffmanCode2(2,4),new HuffmanCode2(2,3),new HuffmanCode2(4,5)];for(i22=simple_code_or_skip;i22<CODE_LENGTH_CODES&&space>0;++i22){var code_len_idx=kCodeLengthCodeOrder[i22];var p=0;var v2;br2.fillBitWindow();p+=br2.val_>>>br2.bit_pos_&15;br2.bit_pos_+=huff[p].bits;v2=huff[p].value;code_length_code_lengths[code_len_idx]=v2;if(v2!==0){space-=32>>v2;++num_codes}}if(!(num_codes===1||space===0))throw new Error("[ReadHuffmanCode] invalid num_codes or space");ReadHuffmanCodeLengths(code_length_code_lengths,alphabet_size,code_lengths,br2)}table_size=BrotliBuildHuffmanTable(tables,table,HUFFMAN_TABLE_BITS,code_lengths,alphabet_size);if(table_size===0){throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ")}return table_size}function ReadBlockLength(table,index2,br2){var code22;var nbits;code22=ReadSymbol(table,index2,br2);nbits=Prefix.kBlockLengthPrefixCode[code22].nbits;return Prefix.kBlockLengthPrefixCode[code22].offset+br2.readBits(nbits)}function TranslateShortCodes(code22,ringbuffer,index2){var val;if(code22<NUM_DISTANCE_SHORT_CODES){index2+=kDistanceShortCodeIndexOffset[code22];index2&=3;val=ringbuffer[index2]+kDistanceShortCodeValueOffset[code22]}else{val=code22-NUM_DISTANCE_SHORT_CODES+1}return val}function MoveToFront(v2,index2){var value=v2[index2];var i22=index2;for(;i22;--i22)v2[i22]=v2[i22-1];v2[0]=value}function InverseMoveToFrontTransform(v2,v_len){var mtf=new Uint8Array(256);var i22;for(i22=0;i22<256;++i22){mtf[i22]=i22}for(i22=0;i22<v_len;++i22){var index2=v2[i22];v2[i22]=mtf[index2];if(index2)MoveToFront(mtf,index2)}}function HuffmanTreeGroup(alphabet_size,num_htrees){this.alphabet_size=alphabet_size;this.num_htrees=num_htrees;this.codes=new Array(num_htrees+num_htrees*kMaxHuffmanTableSize[alphabet_size+31>>>5]);this.htrees=new Uint32Array(num_htrees)}HuffmanTreeGroup.prototype.decode=function(br2){var i22;var table_size;var next2=0;for(i22=0;i22<this.num_htrees;++i22){this.htrees[i22]=next2;table_size=ReadHuffmanCode(this.alphabet_size,this.codes,next2,br2);next2+=table_size}};function DecodeContextMap(context_map_size,br2){var out={num_htrees:null,context_map:null};var use_rle_for_zeros;var max_run_length_prefix=0;var table;var i22;br2.readMoreInput();var num_htrees=out.num_htrees=DecodeVarLenUint8(br2)+1;var context_map=out.context_map=new Uint8Array(context_map_size);if(num_htrees<=1){return out}use_rle_for_zeros=br2.readBits(1);if(use_rle_for_zeros){max_run_length_prefix=br2.readBits(4)+1}table=[];for(i22=0;i22<HUFFMAN_MAX_TABLE_SIZE;i22++){table[i22]=new HuffmanCode2(0,0)}ReadHuffmanCode(num_htrees+max_run_length_prefix,table,0,br2);for(i22=0;i22<context_map_size;){var code22;br2.readMoreInput();code22=ReadSymbol(table,0,br2);if(code22===0){context_map[i22]=0;++i22}else if(code22<=max_run_length_prefix){var reps=1+(1<<code22)+br2.readBits(code22);while(--reps){if(i22>=context_map_size){throw new Error("[DecodeContextMap] i >= context_map_size")}context_map[i22]=0;++i22}}else{context_map[i22]=code22-max_run_length_prefix;++i22}}if(br2.readBits(1)){InverseMoveToFrontTransform(context_map,context_map_size)}return out}function DecodeBlockType(max_block_type,trees22,tree_type,block_types,ringbuffers,indexes,br2){var ringbuffer=tree_type*2;var index2=tree_type;var type_code=ReadSymbol(trees22,tree_type*HUFFMAN_MAX_TABLE_SIZE,br2);var block_type;if(type_code===0){block_type=ringbuffers[ringbuffer+(indexes[index2]&1)]}else if(type_code===1){block_type=ringbuffers[ringbuffer+(indexes[index2]-1&1)]+1}else{block_type=type_code-2}if(block_type>=max_block_type){block_type-=max_block_type}block_types[tree_type]=block_type;ringbuffers[ringbuffer+(indexes[index2]&1)]=block_type;++indexes[index2]}function CopyUncompressedBlockToOutput(output,len2,pos,ringbuffer,ringbuffer_mask,br2){var rb_size=ringbuffer_mask+1;var rb_pos=pos&ringbuffer_mask;var br_pos=br2.pos_&BrotliBitReader2.IBUF_MASK;var nbytes;if(len2<8||br2.bit_pos_+(len2<<3)<br2.bit_end_pos_){while(len2-- >0){br2.readMoreInput();ringbuffer[rb_pos++]=br2.readBits(8);if(rb_pos===rb_size){output.write(ringbuffer,rb_size);rb_pos=0}}return}if(br2.bit_end_pos_<32){throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32")}while(br2.bit_pos_<32){ringbuffer[rb_pos]=br2.val_>>>br2.bit_pos_;br2.bit_pos_+=8;++rb_pos;--len2}nbytes=br2.bit_end_pos_-br2.bit_pos_>>3;if(br_pos+nbytes>BrotliBitReader2.IBUF_MASK){var tail=BrotliBitReader2.IBUF_MASK+1-br_pos;for(var x=0;x<tail;x++)ringbuffer[rb_pos+x]=br2.buf_[br_pos+x];nbytes-=tail;rb_pos+=tail;len2-=tail;br_pos=0}for(var x=0;x<nbytes;x++)ringbuffer[rb_pos+x]=br2.buf_[br_pos+x];rb_pos+=nbytes;len2-=nbytes;if(rb_pos>=rb_size){output.write(ringbuffer,rb_size);rb_pos-=rb_size;for(var x=0;x<rb_pos;x++)ringbuffer[x]=ringbuffer[rb_size+x]}while(rb_pos+len2>=rb_size){nbytes=rb_size-rb_pos;if(br2.input_.read(ringbuffer,rb_pos,nbytes)<nbytes){throw new Error("[CopyUncompressedBlockToOutput] not enough bytes")}output.write(ringbuffer,rb_size);len2-=nbytes;rb_pos=0}if(br2.input_.read(ringbuffer,rb_pos,len2)<len2){throw new Error("[CopyUncompressedBlockToOutput] not enough bytes")}br2.reset()}function JumpToByteBoundary(br2){var new_bit_pos=br2.bit_pos_+7&-8;var pad_bits=br2.readBits(new_bit_pos-br2.bit_pos_);return pad_bits==0}function BrotliDecompressedSize(buffer2){var input=new BrotliInput2(buffer2);var br2=new BrotliBitReader2(input);DecodeWindowBits(br2);var out=DecodeMetaBlockLength(br2);return out.meta_block_length}decode.BrotliDecompressedSize=BrotliDecompressedSize;function BrotliDecompressBuffer(buffer2,output_size){var input=new BrotliInput2(buffer2);if(output_size==null){output_size=BrotliDecompressedSize(buffer2)}var output_buffer=new Uint8Array(output_size);var output=new BrotliOutput2(output_buffer);BrotliDecompress(input,output);if(output.pos<output.buffer.length){output.buffer=output.buffer.subarray(0,output.pos)}return output.buffer}decode.BrotliDecompressBuffer=BrotliDecompressBuffer;function BrotliDecompress(input,output){var i22;var pos=0;var input_end=0;var window_bits=0;var max_backward_distance;var max_distance=0;var ringbuffer_size;var ringbuffer_mask;var ringbuffer;var ringbuffer_end;var dist_rb=[16,15,11,4];var dist_rb_idx=0;var prev_byte1=0;var prev_byte2=0;var hgroup=[new HuffmanTreeGroup(0,0),new HuffmanTreeGroup(0,0),new HuffmanTreeGroup(0,0)];var block_type_trees;var block_len_trees;var br2;var kRingBufferWriteAheadSlack=128+BrotliBitReader2.READ_SIZE;br2=new BrotliBitReader2(input);window_bits=DecodeWindowBits(br2);max_backward_distance=(1<<window_bits)-16;ringbuffer_size=1<<window_bits;ringbuffer_mask=ringbuffer_size-1;ringbuffer=new Uint8Array(ringbuffer_size+kRingBufferWriteAheadSlack+BrotliDictionary.maxDictionaryWordLength);ringbuffer_end=ringbuffer_size;block_type_trees=[];block_len_trees=[];for(var x=0;x<3*HUFFMAN_MAX_TABLE_SIZE;x++){block_type_trees[x]=new HuffmanCode2(0,0);block_len_trees[x]=new HuffmanCode2(0,0)}while(!input_end){var meta_block_remaining_len=0;var is_uncompressed;var block_length=[1<<28,1<<28,1<<28];var block_type=[0];var num_block_types=[1,1,1];var block_type_rb=[0,1,0,1,0,1];var block_type_rb_index=[0];var distance_postfix_bits;var num_direct_distance_codes;var distance_postfix_mask;var num_distance_codes;var context_map=null;var context_modes=null;var num_literal_htrees;var dist_context_map=null;var num_dist_htrees;var context_offset=0;var context_map_slice=null;var literal_htree_index=0;var dist_context_offset=0;var dist_context_map_slice=null;var dist_htree_index=0;var context_lookup_offset1=0;var context_lookup_offset2=0;var context_mode;var htree_command;for(i22=0;i22<3;++i22){hgroup[i22].codes=null;hgroup[i22].htrees=null}br2.readMoreInput();var _out=DecodeMetaBlockLength(br2);meta_block_remaining_len=_out.meta_block_length;if(pos+meta_block_remaining_len>output.buffer.length){var tmp=new Uint8Array(pos+meta_block_remaining_len);tmp.set(output.buffer);output.buffer=tmp}input_end=_out.input_end;is_uncompressed=_out.is_uncompressed;if(_out.is_metadata){JumpToByteBoundary(br2);for(;meta_block_remaining_len>0;--meta_block_remaining_len){br2.readMoreInput();br2.readBits(8)}continue}if(meta_block_remaining_len===0){continue}if(is_uncompressed){br2.bit_pos_=br2.bit_pos_+7&-8;CopyUncompressedBlockToOutput(output,meta_block_remaining_len,pos,ringbuffer,ringbuffer_mask,br2);pos+=meta_block_remaining_len;continue}for(i22=0;i22<3;++i22){num_block_types[i22]=DecodeVarLenUint8(br2)+1;if(num_block_types[i22]>=2){ReadHuffmanCode(num_block_types[i22]+2,block_type_trees,i22*HUFFMAN_MAX_TABLE_SIZE,br2);ReadHuffmanCode(kNumBlockLengthCodes,block_len_trees,i22*HUFFMAN_MAX_TABLE_SIZE,br2);block_length[i22]=ReadBlockLength(block_len_trees,i22*HUFFMAN_MAX_TABLE_SIZE,br2);block_type_rb_index[i22]=1}}br2.readMoreInput();distance_postfix_bits=br2.readBits(2);num_direct_distance_codes=NUM_DISTANCE_SHORT_CODES+(br2.readBits(4)<<distance_postfix_bits);distance_postfix_mask=(1<<distance_postfix_bits)-1;num_distance_codes=num_direct_distance_codes+(48<<distance_postfix_bits);context_modes=new Uint8Array(num_block_types[0]);for(i22=0;i22<num_block_types[0];++i22){br2.readMoreInput();context_modes[i22]=br2.readBits(2)<<1}var _o1=DecodeContextMap(num_block_types[0]<<kLiteralContextBits,br2);num_literal_htrees=_o1.num_htrees;context_map=_o1.context_map;var _o2=DecodeContextMap(num_block_types[2]<<kDistanceContextBits,br2);num_dist_htrees=_o2.num_htrees;dist_context_map=_o2.context_map;hgroup[0]=new HuffmanTreeGroup(kNumLiteralCodes,num_literal_htrees);hgroup[1]=new HuffmanTreeGroup(kNumInsertAndCopyCodes,num_block_types[1]);hgroup[2]=new HuffmanTreeGroup(num_distance_codes,num_dist_htrees);for(i22=0;i22<3;++i22){hgroup[i22].decode(br2)}context_map_slice=0;dist_context_map_slice=0;context_mode=context_modes[block_type[0]];context_lookup_offset1=Context.lookupOffsets[context_mode];context_lookup_offset2=Context.lookupOffsets[context_mode+1];htree_command=hgroup[1].htrees[0];while(meta_block_remaining_len>0){var cmd_code;var range_idx;var insert_code;var copy_code;var insert_length;var copy_length;var distance_code;var distance;var context2;var j;var copy_dst;br2.readMoreInput();if(block_length[1]===0){DecodeBlockType(num_block_types[1],block_type_trees,1,block_type,block_type_rb,block_type_rb_index,br2);block_length[1]=ReadBlockLength(block_len_trees,HUFFMAN_MAX_TABLE_SIZE,br2);htree_command=hgroup[1].htrees[block_type[1]]}--block_length[1];cmd_code=ReadSymbol(hgroup[1].codes,htree_command,br2);range_idx=cmd_code>>6;if(range_idx>=2){range_idx-=2;distance_code=-1}else{distance_code=0}insert_code=Prefix.kInsertRangeLut[range_idx]+(cmd_code>>3&7);copy_code=Prefix.kCopyRangeLut[range_idx]+(cmd_code&7);insert_length=Prefix.kInsertLengthPrefixCode[insert_code].offset+br2.readBits(Prefix.kInsertLengthPrefixCode[insert_code].nbits);copy_length=Prefix.kCopyLengthPrefixCode[copy_code].offset+br2.readBits(Prefix.kCopyLengthPrefixCode[copy_code].nbits);prev_byte1=ringbuffer[pos-1&ringbuffer_mask];prev_byte2=ringbuffer[pos-2&ringbuffer_mask];for(j=0;j<insert_length;++j){br2.readMoreInput();if(block_length[0]===0){DecodeBlockType(num_block_types[0],block_type_trees,0,block_type,block_type_rb,block_type_rb_index,br2);block_length[0]=ReadBlockLength(block_len_trees,0,br2);context_offset=block_type[0]<<kLiteralContextBits;context_map_slice=context_offset;context_mode=context_modes[block_type[0]];context_lookup_offset1=Context.lookupOffsets[context_mode];context_lookup_offset2=Context.lookupOffsets[context_mode+1]}context2=Context.lookup[context_lookup_offset1+prev_byte1]|Context.lookup[context_lookup_offset2+prev_byte2];literal_htree_index=context_map[context_map_slice+context2];--block_length[0];prev_byte2=prev_byte1;prev_byte1=ReadSymbol(hgroup[0].codes,hgroup[0].htrees[literal_htree_index],br2);ringbuffer[pos&ringbuffer_mask]=prev_byte1;if((pos&ringbuffer_mask)===ringbuffer_mask){output.write(ringbuffer,ringbuffer_size)}++pos}meta_block_remaining_len-=insert_length;if(meta_block_remaining_len<=0)break;if(distance_code<0){var context2;br2.readMoreInput();if(block_length[2]===0){DecodeBlockType(num_block_types[2],block_type_trees,2,block_type,block_type_rb,block_type_rb_index,br2);block_length[2]=ReadBlockLength(block_len_trees,2*HUFFMAN_MAX_TABLE_SIZE,br2);dist_context_offset=block_type[2]<<kDistanceContextBits;dist_context_map_slice=dist_context_offset}--block_length[2];context2=(copy_length>4?3:copy_length-2)&255;dist_htree_index=dist_context_map[dist_context_map_slice+context2];distance_code=ReadSymbol(hgroup[2].codes,hgroup[2].htrees[dist_htree_index],br2);if(distance_code>=num_direct_distance_codes){var nbits;var postfix;var offset2;distance_code-=num_direct_distance_codes;postfix=distance_code&distance_postfix_mask;distance_code>>=distance_postfix_bits;nbits=(distance_code>>1)+1;offset2=(2+(distance_code&1)<<nbits)-4;distance_code=num_direct_distance_codes+(offset2+br2.readBits(nbits)<<distance_postfix_bits)+postfix}}distance=TranslateShortCodes(distance_code,dist_rb,dist_rb_idx);if(distance<0){throw new Error("[BrotliDecompress] invalid distance")}if(pos<max_backward_distance&&max_distance!==max_backward_distance){max_distance=pos}else{max_distance=max_backward_distance}copy_dst=pos&ringbuffer_mask;if(distance>max_distance){if(copy_length>=BrotliDictionary.minDictionaryWordLength&©_length<=BrotliDictionary.maxDictionaryWordLength){var offset2=BrotliDictionary.offsetsByLength[copy_length];var word_id=distance-max_distance-1;var shift=BrotliDictionary.sizeBitsByLength[copy_length];var mask=(1<<shift)-1;var word_idx=word_id&mask;var transform_idx=word_id>>shift;offset2+=word_idx*copy_length;if(transform_idx<Transform.kNumTransforms){var len2=Transform.transformDictionaryWord(ringbuffer,copy_dst,offset2,copy_length,transform_idx);copy_dst+=len2;pos+=len2;meta_block_remaining_len-=len2;if(copy_dst>=ringbuffer_end){output.write(ringbuffer,ringbuffer_size);for(var _x2=0;_x2<copy_dst-ringbuffer_end;_x2++)ringbuffer[_x2]=ringbuffer[ringbuffer_end+_x2]}}else{throw new Error("Invalid backward reference. pos: "+pos+" distance: "+distance+" len: "+copy_length+" bytes left: "+meta_block_remaining_len)}}else{throw new Error("Invalid backward reference. pos: "+pos+" distance: "+distance+" len: "+copy_length+" bytes left: "+meta_block_remaining_len)}}else{if(distance_code>0){dist_rb[dist_rb_idx&3]=distance;++dist_rb_idx}if(copy_length>meta_block_remaining_len){throw new Error("Invalid backward reference. pos: "+pos+" distance: "+distance+" len: "+copy_length+" bytes left: "+meta_block_remaining_len)}for(j=0;j<copy_length;++j){ringbuffer[pos&ringbuffer_mask]=ringbuffer[pos-distance&ringbuffer_mask];if((pos&ringbuffer_mask)===ringbuffer_mask){output.write(ringbuffer,ringbuffer_size)}++pos;--meta_block_remaining_len}}prev_byte1=ringbuffer[pos-1&ringbuffer_mask];prev_byte2=ringbuffer[pos-2&ringbuffer_mask]}pos&=1073741823}output.write(ringbuffer,pos&ringbuffer_mask)}decode.BrotliDecompress=BrotliDecompress;BrotliDictionary.init();return decode}var decompress$1=requireDecode().BrotliDecompressBuffer;var brotliDecompressUntyped=getDefaultExportFromCjs(decompress$1);var brotliDecompress=brotliDecompressUntyped;var INFLATE=2;var GZIP=3;var GUNZIP=4;var DEFLATERAW=5;var INFLATERAW=6;var UNZIP=7;var Zlib=class{constructor(mode){__privateAdd(this,_Zlib_instances);__privateAdd(this,_strm,null);__privateAdd(this,_writeState,null);__privateAdd(this,_callback,null);__privateAdd(this,_level,zlibConstants.Z_DEFAULT_COMPRESSION);__privateAdd(this,_strategy,zlibConstants.Z_DEFAULT_STRATEGY);__privateAdd(this,_windowBits,15);__privateAdd(this,_memLevel,8);__privateAdd(this,_dictionary);__privateAdd(this,_ended,false);__publicField2(this,"onerror",null);this.mode=mode}init(windowBits,level,memLevel,strategy,writeState,processCallback,dictionary2){__privateSet(this,_windowBits,windowBits);__privateSet(this,_level,level);__privateSet(this,_memLevel,memLevel);__privateSet(this,_strategy,strategy);__privateSet(this,_writeState,writeState);__privateSet(this,_callback,processCallback);__privateSet(this,_dictionary,dictionary2);__privateMethod(this,_Zlib_instances,start_fn).call(this)}write(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){var _a22;const tick=((_a22=globalThis.process)==null?void 0:_a22.nextTick)??(fn2=>{queueMicrotask(fn2)});tick(()=>{var _a32;__privateMethod(this,_Zlib_instances,run_fn).call(this,flush2,inBuf,inOff,inLen,outBuf,outOff,outLen);(_a32=__privateGet(this,_callback))==null?void 0:_a32.call(this)})}writeSync(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){__privateMethod(this,_Zlib_instances,run_fn).call(this,flush2,inBuf,inOff,inLen,outBuf,outOff,outLen)}params(level,strategy){__privateSet(this,_level,level);__privateSet(this,_strategy,strategy);if(!__privateGet(this,_Zlib_instances,inflating_get)){__privateMethod(this,_Zlib_instances,end_fn).call(this);__privateMethod(this,_Zlib_instances,start_fn).call(this)}}reset(){const strm=__privateGet(this,_strm);if(!strm){__privateMethod(this,_Zlib_instances,start_fn).call(this);return}const status=__privateGet(this,_Zlib_instances,inflating_get)?inflateModule.inflateReset(strm):deflateModule.deflateReset(strm);if(status!==zlibConstants.Z_OK)__privateMethod(this,_Zlib_instances,fail_fn).call(this,status,strm);__privateSet(this,_ended,false)}close(){__privateMethod(this,_Zlib_instances,end_fn).call(this);__privateSet(this,_callback,null);__privateSet(this,_writeState,null)}get ended(){return __privateGet(this,_ended)}};_strm=new WeakMap;_writeState=new WeakMap;_callback=new WeakMap;_level=new WeakMap;_strategy=new WeakMap;_windowBits=new WeakMap;_memLevel=new WeakMap;_dictionary=new WeakMap;_ended=new WeakMap;_Zlib_instances=new WeakSet;inflating_get=function(){return this.mode===INFLATE||this.mode===GUNZIP||this.mode===INFLATERAW||this.mode===UNZIP};windowFor_fn=function(windowBits){if(this.mode===DEFLATERAW||this.mode===INFLATERAW)return-windowBits;if(this.mode===GZIP||this.mode===GUNZIP)return windowBits+16;if(this.mode===UNZIP)return windowBits+32;return windowBits};start_fn=function(){const strm=zstream2();const window2=__privateMethod(this,_Zlib_instances,windowFor_fn).call(this,__privateGet(this,_windowBits));const status=__privateGet(this,_Zlib_instances,inflating_get)?inflateModule.inflateInit2(strm,window2):deflateModule.deflateInit2(strm,__privateGet(this,_level),zlibConstants.Z_DEFLATED,window2,__privateGet(this,_memLevel),__privateGet(this,_strategy));if(status!==zlibConstants.Z_OK){__privateMethod(this,_Zlib_instances,fail_fn).call(this,status,strm);return}if(__privateGet(this,_dictionary)&&__privateGet(this,_dictionary).length>0&&!__privateGet(this,_Zlib_instances,inflating_get)){deflateModule.deflateSetDictionary(strm,__privateGet(this,_dictionary))}__privateSet(this,_strm,strm);__privateSet(this,_ended,false)};fail_fn=function(status,strm){var _a22;const message=(strm==null?void 0:strm.msg)??zlibConstants.messages[status]??"zlib error";(_a22=this.onerror)==null?void 0:_a22.call(this,message,status,`Z_${status}`)};report_fn=function(strm){const state=__privateGet(this,_writeState);if(!state)return;state[0]=strm.avail_out;state[1]=strm.avail_in};run_fn=function(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){var _a22;const strm=__privateGet(this,_strm);if(!strm){(_a22=this.onerror)==null?void 0:_a22.call(this,"zlib: write after close",zlibConstants.Z_STREAM_ERROR);return}strm.input=inBuf??new Uint8Array(0);strm.next_in=inOff;strm.avail_in=inLen;strm.output=outBuf;strm.next_out=outOff;strm.avail_out=outLen;const status=__privateGet(this,_Zlib_instances,inflating_get)?inflateModule.inflate(strm,flush2):deflateModule.deflate(strm,flush2);if(status===zlibConstants.Z_NEED_DICT&&__privateGet(this,_dictionary)){const dictStatus=inflateModule.inflateSetDictionary(strm,__privateGet(this,_dictionary));if(dictStatus===zlibConstants.Z_OK){const again=inflateModule.inflate(strm,flush2);if(again!==zlibConstants.Z_OK&&again!==zlibConstants.Z_STREAM_END&&again!==zlibConstants.Z_BUF_ERROR){__privateMethod(this,_Zlib_instances,fail_fn).call(this,again,strm);return}__privateMethod(this,_Zlib_instances,report_fn).call(this,strm);return}__privateMethod(this,_Zlib_instances,fail_fn).call(this,dictStatus,strm);return}if(status!==zlibConstants.Z_OK&&status!==zlibConstants.Z_STREAM_END&&status!==zlibConstants.Z_BUF_ERROR){__privateMethod(this,_Zlib_instances,fail_fn).call(this,status,strm);return}if(status===zlibConstants.Z_STREAM_END)__privateSet(this,_ended,true);__privateMethod(this,_Zlib_instances,report_fn).call(this,strm)};end_fn=function(){const strm=__privateGet(this,_strm);if(!strm)return;try{if(__privateGet(this,_Zlib_instances,inflating_get))inflateModule.inflateEnd(strm);else deflateModule.deflateEnd(strm)}catch{}__privateSet(this,_strm,null)};function absentCodec(name,reason){return class AbsentCodec{constructor(){throw Object.assign(new Error(`zlib: ${name} is not in this engine. ${reason}`),{code:"ERR_NOT_IMPLEMENTED"})}}}var BROTLI_OPERATION_FINISH=2;var BrotliDecoderHandle=class{constructor(mode){__privateAdd(this,_BrotliDecoderHandle_instances);__privateAdd(this,_writeState2,null);__privateAdd(this,_callback2,null);__privateAdd(this,_input,[]);__privateAdd(this,_output,null);__privateAdd(this,_outputAt,0);__publicField2(this,"onerror",null);this.mode=mode}init(_params,writeState,processCallback){__privateSet(this,_writeState2,writeState);__privateSet(this,_callback2,processCallback);return true}write(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){var _a22;const tick=((_a22=globalThis.process)==null?void 0:_a22.nextTick)??(fn2=>{queueMicrotask(fn2)});tick(()=>{var _a32;__privateMethod(this,_BrotliDecoderHandle_instances,run_fn2).call(this,flush2,inBuf,inOff,inLen,outBuf,outOff,outLen);(_a32=__privateGet(this,_callback2))==null?void 0:_a32.call(this)})}writeSync(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){__privateMethod(this,_BrotliDecoderHandle_instances,run_fn2).call(this,flush2,inBuf,inOff,inLen,outBuf,outOff,outLen)}params(){}reset(){__privateSet(this,_input,[]);__privateSet(this,_output,null);__privateSet(this,_outputAt,0)}close(){this.reset();__privateSet(this,_callback2,null)}getAvailableOutput(){return __privateGet(this,_output)?__privateGet(this,_output).byteLength-__privateGet(this,_outputAt):0}};_writeState2=new WeakMap;_callback2=new WeakMap;_input=new WeakMap;_output=new WeakMap;_outputAt=new WeakMap;_BrotliDecoderHandle_instances=new WeakSet;run_fn2=function(flush2,inBuf,inOff,inLen,outBuf,outOff,outLen){var _a22;if(inBuf&&inLen>0)__privateGet(this,_input).push(inBuf.slice(inOff,inOff+inLen));if(flush2===BROTLI_OPERATION_FINISH&&__privateGet(this,_output)===null){const total=__privateGet(this,_input).reduce((sum,part)=>sum+part.byteLength,0);const whole=new Uint8Array(total);let at22=0;for(const part of __privateGet(this,_input)){whole.set(part,at22);at22+=part.byteLength}__privateSet(this,_input,[]);try{__privateSet(this,_output,brotliDecompress(whole))}catch(error){(_a22=this.onerror)==null?void 0:_a22.call(this,`Decompression failed: ${error instanceof Error?error.message:String(error)}`,-1,"ERR_BROTLI_DECOMPRESSION_FAILED");return}__privateSet(this,_outputAt,0)}let written=0;if(__privateGet(this,_output)){written=Math.min(outLen,__privateGet(this,_output).byteLength-__privateGet(this,_outputAt));outBuf.set(__privateGet(this,_output).subarray(__privateGet(this,_outputAt),__privateGet(this,_outputAt)+written),outOff);__privateSet(this,_outputAt,__privateGet(this,_outputAt)+written)}if(__privateGet(this,_writeState2)){__privateGet(this,_writeState2)[0]=outLen-written;__privateGet(this,_writeState2)[1]=0}};var BROTLI_REASON="Brotli is a codec of its own, not zlib; the engine decodes it (`brotli`, pure JavaScript) but has no encoder for Node's Brotli handle yet. `zlib.gzip`, `deflate` and `inflate` are Node's own here.";var ZSTD_REASON="Zstandard is a codec of its own and this engine has no implementation of it at all. `zlib.gzip`, `deflate` and `inflate` are Node's own here.";var zlibBinding={Zlib,BrotliEncoder:absentCodec("Brotli compression",BROTLI_REASON),BrotliDecoder:BrotliDecoderHandle,ZstdCompress:absentCodec("Zstandard compression",ZSTD_REASON),ZstdDecompress:absentCodec("Zstandard decompression",ZSTD_REASON),crc32:(data2,value=0)=>{const bytes2=typeof data2==="string"?new TextEncoder().encode(data2):data2;return zlibConstants.crc32(value,bytes2,bytes2.length,0)>>>0}};var __table$1;function nodeLibBinding(name){__table$1??(__table$1={uv:()=>uvBinding,stream_wrap:()=>streamWrapBinding,tcp_wrap:()=>tcpWrapBinding,pipe_wrap:()=>pipeWrapBinding,cares_wrap:()=>caresWrapBinding,process_wrap:()=>processWrapBinding,spawn_sync:()=>spawnSyncBinding,tty_wrap:()=>ttyWrapBinding,udp_wrap:()=>udpWrapBinding,http_parser:()=>httpParserBinding,buffer:()=>bufferBinding,config:()=>configBinding,constants:()=>constantsBinding,util:()=>utilBinding,errors:()=>errorsBinding,types:()=>internalUtilTypes,string_decoder:()=>stringDecoderBinding,trace_events:()=>traceEventsBinding,messaging:()=>messagingBinding,os:()=>osBinding,credentials:()=>credentialsBinding,encoding_binding:()=>encodingBinding,fs:()=>fsBinding,blob:()=>blobBinding,async_wrap:()=>({AsyncResource:AsyncResource$1}),zlib:()=>zlibBinding,fs_dir:()=>fsDirBinding,fs_event_wrap:()=>fsEventWrapBinding});return __table$1[name]}function literalFamily(hostname2){const bare=hostname2.startsWith("[")&&hostname2.endsWith("]")?hostname2.slice(1,-1):hostname2;if(/^(25[0-5]|2[0-4]\d|1?\d?\d)(\.(25[0-5]|2[0-4]\d|1?\d?\d)){3}$/.test(bare))return 4;const host2=bare.split("%")[0];if(host2.includes(":")&&/^[0-9a-fA-F:.]+$/.test(host2))return 6;return 0}function lookup(hostname2,optionsOrCallback,callback){const cb2=typeof optionsOrCallback==="function"?optionsOrCallback:callback;const options=typeof optionsOrCallback==="object"?optionsOrCallback:{};setImmediate(()=>{const family=literalFamily(hostname2);if(family){const address=hostname2.startsWith("[")&&hostname2.endsWith("]")?hostname2.slice(1,-1):hostname2;if(options.all)cb2(null,[{address,family}]);else cb2(null,address,family);return}if(hostname2==="localhost"){if(options.all){cb2(null,[{address:"127.0.0.1",family:4}])}else{cb2(null,"127.0.0.1",4)}}else{if(options.all){cb2(null,[{address:"0.0.0.0",family:4}])}else{cb2(null,"0.0.0.0",4)}}})}function resolve$1(hostname2,callback){setImmediate(()=>{callback(null,["0.0.0.0"])})}function resolve4(hostname2,callback){resolve$1(hostname2,callback)}function resolve6(hostname2,callback){setImmediate(()=>{callback(null,["::1"])})}function reverse(ip2,callback){setImmediate(()=>{callback(null,["localhost"])})}function setServers(_servers){}function getServers(){return[]}function setDefaultResultOrder(_order){}function getDefaultResultOrder(){return"verbatim"}var promises={lookup:(hostname2,options)=>{return new Promise((resolve2,reject)=>{if(options==null?void 0:options.all){lookup(hostname2,options,(err22,addresses)=>{if(err22)reject(err22);else resolve2(addresses||[])});return}lookup(hostname2,options||{},(err22,address,family)=>{if(err22)reject(err22);else resolve2({address,family})})})},resolve:hostname2=>{return new Promise((promiseResolve,promiseReject)=>{resolve$1(hostname2,(err22,addresses)=>{if(err22)promiseReject(err22);else promiseResolve(addresses||[])})})},resolve4:hostname2=>promises.resolve(hostname2),resolve6:hostname2=>{return new Promise(resolve2=>{resolve2(["::1"])})},reverse:ip2=>{return new Promise(resolve2=>{resolve2(["localhost"])})},setServers:_servers=>{},getServers:()=>[]};var ADDRCONFIG=0;var V4MAPPED=0;var ALL=0;var dnsModule={lookup,resolve:resolve$1,resolve4,resolve6,reverse,setServers,getServers,setDefaultResultOrder,getDefaultResultOrder,promises,ADDRCONFIG,V4MAPPED,ALL};var dnsCodes={NODATA:"ENODATA",FORMERR:"EFORMERR",SERVFAIL:"ESERVFAIL",NOTFOUND:"ENOTFOUND",NOTIMP:"ENOTIMP",REFUSED:"EREFUSED",BADQUERY:"EBADQUERY",BADNAME:"EBADNAME",BADFAMILY:"EBADFAMILY",BADRESP:"EBADRESP",CONNREFUSED:"ECONNREFUSED",TIMEOUT:"ETIMEOUT",EOF:"EOF",FILE:"EFILE",NOMEM:"ENOMEM",DESTRUCTION:"EDESTRUCTION",BADSTR:"EBADSTR",BADFLAGS:"EBADFLAGS",NONAME:"ENONAME",BADHINTS:"EBADHINTS",NOTINITIALIZED:"ENOTINITIALIZED",LOADIPHLPAPI:"ELOADIPHLPAPI",ADDRGETNETWORKPARAMS:"EADDRGETNETWORKPARAMS",CANCELLED:"ECANCELLED"};function createDnsModule(){const promiseModule={...promises,...dnsCodes};return{...dnsModule,...dnsCodes,promises:promiseModule}}var EventEmitter=lazyExport("events","EventEmitter");var eventsModule=EventEmitter;var isMaster=true;var isPrimary=true;var isWorker=false;var Worker$2=class Worker2 extends EventEmitter{constructor(){super(...arguments);__publicField2(this,"id",0);__publicField2(this,"process",null)}send(_message,_callback3){return false}kill(_signal){}disconnect(){}isDead(){return false}isConnected(){return false}};var worker=null;var workers={};function fork(_env){return new Worker$2}function disconnect(_callback3){if(_callback3)setTimeout(_callback3,0)}var settings={};var SCHED_NONE=1;var SCHED_RR=2;var schedulingPolicy=SCHED_RR;function setupMaster(_settings){}function setupPrimary(_settings){}var clusterEmitterCache;function clusterEmitter(){return clusterEmitterCache??(clusterEmitterCache=new EventEmitter)}var on=(event,listener)=>clusterEmitter().on(event,listener);var once=(event,listener)=>clusterEmitter().once(event,listener);var emit=(event,...args)=>clusterEmitter().emit(event,...args);var removeListener=(event,listener)=>clusterEmitter().removeListener(event,listener);var cluster={isMaster,isPrimary,isWorker,Worker:Worker$2,worker,workers,fork,disconnect,settings,SCHED_NONE,SCHED_RR,schedulingPolicy,setupMaster,setupPrimary,on,once,emit,removeListener};var clusterShim=Object.freeze(Object.defineProperty({__proto__:null,SCHED_NONE,SCHED_RR,Worker:Worker$2,default:cluster,disconnect,emit,fork,isMaster,isPrimary,isWorker,on,once,removeListener,schedulingPolicy,settings,setupMaster,setupPrimary,worker,workers},Symbol.toStringTag,{value:"Module"}));var Socket=class extends EventEmitter{bind(_port,_address,_callback3){if(_callback3)setTimeout(_callback3,0);return this}close(_callback3){if(_callback3)setTimeout(_callback3,0)}send(_msg,_offset,_length,_port,_address,_callback3){if(_callback3)setTimeout(()=>_callback3(null,0),0)}address(){return{address:"0.0.0.0",family:"IPv4",port:0}}setBroadcast(_flag){}setTTL(_ttl){return _ttl}setMulticastTTL(_ttl){return _ttl}setMulticastLoopback(_flag){return _flag}setMulticastInterface(_multicastInterface){}addMembership(_multicastAddress,_multicastInterface){}dropMembership(_multicastAddress,_multicastInterface){}ref(){return this}unref(){return this}setRecvBufferSize(_size){}setSendBufferSize(_size){}getRecvBufferSize(){return 0}getSendBufferSize(){return 0}};function createSocket(_type2,_callback3){return new Socket}var dgram={Socket,createSocket};var dgramShim=Object.freeze(Object.defineProperty({__proto__:null,Socket,createSocket,default:dgram},Symbol.toStringTag,{value:"Module"}));var utilModule=lazyModule("util");var inspect=lazyExport("util","inspect");lazyExport("util","format");function inspectValue(value){if(typeof value==="string"){const escaped=value.replace(/\n/g,"\\n");if(!escaped.includes("'"))return`'${escaped}'`;if(!escaped.includes('"'))return`"${escaped}"`;return`\`${escaped}\``}if(typeof value==="bigint")return`${value}n`;if(typeof value==="symbol")return value.toString();return String(value)}function determineSpecificType(value){if(value===null)return"null";if(value===void 0)return"undefined";const type2=typeof value;switch(type2){case"bigint":return`type bigint (${value}n)`;case"number":{const number=value;if(number===0)return 1/number===-Infinity?"type number (-0)":"type number (0)";if(number!==number)return"type number (NaN)";if(number===Infinity)return"type number (Infinity)";if(number===-Infinity)return"type number (-Infinity)";return`type number (${number})`}case"boolean":return value?"type boolean (true)":"type boolean (false)";case"symbol":return`type symbol (${String(value)})`;case"function":return`function ${value.name}`;case"object":{const ctor=value.constructor;if(ctor&&"name"in ctor)return`an instance of ${ctor.name}`;return`${inspect(value,{depth:-1})}`}case"string":{let text=value;if(text.length>28)text=`${text.slice(0,25)}...`;if(text.indexOf("'")===-1)return`type string ('${text}')`;return`type string (${JSON.stringify(text)})`}default:{let inspected=inspect(value,{colors:false});if(inspected.length>28)inspected=`${inspected.slice(0,25)}...`;return`type ${type2} (${inspected})`}}}var kTypes=["string","function","number","object","Function","Object","boolean","bigint","symbol"];var classRegExp=/^([A-Z][a-z0-9]*)+$/;var ERR_INVALID_ARG_TYPE=class extends TypeError{constructor(name,expected,actual){const expectations=Array.isArray(expected)?[...expected]:[expected];let message="The ";if(name.endsWith(" argument")){message+=`${name} `}else{message+=`"${name}" ${name.includes(".")?"property":"argument"} `}message+="must be ";const types22=[];const instances=[];const other=[];for(const value of expectations){if(kTypes.includes(value))types22.push(value.toLowerCase());else if(classRegExp.exec(value)!==null)instances.push(value);else other.push(value)}if(instances.length>0){const pos=types22.indexOf("object");if(pos!==-1){types22.splice(pos,1);instances.push("Object")}}if(types22.length>0){if(types22.length>2){const last=types22.pop();message+=`one of type ${types22.join(", ")}, or ${last}`}else if(types22.length===2){message+=`one of type ${types22[0]} or ${types22[1]}`}else{message+=`of type ${types22[0]}`}if(instances.length>0||other.length>0)message+=" or "}if(instances.length>0){if(instances.length>2){const last=instances.pop();message+=`an instance of ${instances.join(", ")}, or ${last}`}else{message+=`an instance of ${instances[0]}`;if(instances.length===2)message+=` or ${instances[1]}`}if(other.length>0)message+=" or "}if(other.length>0){if(other.length>2){const last=other.pop();message+=`one of ${other.join(", ")}, or ${last}`}else if(other.length===2){message+=`one of ${other[0]} or ${other[1]}`}else{if(other[0].toLowerCase()!==other[0])message+="an ";message+=`${other[0]}`}}message+=`. Received ${determineSpecificType(actual)}`;super(message);__publicField2(this,"code","ERR_INVALID_ARG_TYPE");this.name="TypeError"}};var ERR_INVALID_ARG_VALUE=class extends TypeError{constructor(name,value,reason="is invalid"){const type2=name.includes(".")?"property":"argument";super(`The ${type2} '${name}' ${reason}. Received ${inspectValue(value)}`);__publicField2(this,"code","ERR_INVALID_ARG_VALUE");this.name="TypeError"}};function addNumericSeparator(value){let tail="";let index2=value.length;const start=value[0]==="-"?1:0;for(;index2>=start+4;index2-=3)tail=`_${value.slice(index2-3,index2)}${tail}`;return`${value.slice(0,index2)}${tail}`}var ERR_OUT_OF_RANGE=class extends RangeError{constructor(name,range22,value){let received;if(typeof value==="number"&&Number.isInteger(value)&&Math.abs(value)>2**32){received=addNumericSeparator(String(value))}else if(typeof value==="bigint"){received=String(value);if(value>2n**32n||value<-(2n**32n))received=addNumericSeparator(received);received+="n"}else{received=inspectValue(value)}super(`The value of "${name}" is out of range. It must be ${range22}. Received ${received}`);__publicField2(this,"code","ERR_OUT_OF_RANGE");this.name="RangeError"}};function validateString(value,name){if(typeof value!=="string")throw new ERR_INVALID_ARG_TYPE(name,"string",value)}function validateObject(value,name){if(value===null||Array.isArray(value)||typeof value!=="object"){throw new ERR_INVALID_ARG_TYPE(name,"Object",value)}}function validateArray(value,name,minLength=0){if(!Array.isArray(value))throw new ERR_INVALID_ARG_TYPE(name,"Array",value);if(value.length<minLength){throw new ERR_INVALID_ARG_VALUE(name,value,`must be longer than ${minLength}`)}}function validateBoolean(value,name){if(typeof value!=="boolean")throw new ERR_INVALID_ARG_TYPE(name,"boolean",value)}function validateFunction(value,name){if(typeof value!=="function")throw new ERR_INVALID_ARG_TYPE(name,"Function",value)}var ERR_UNKNOWN_ENCODING=class extends TypeError{constructor(encoding){super(`Unknown encoding: ${String(encoding)}`);__publicField2(this,"code","ERR_UNKNOWN_ENCODING");this.name="TypeError"}};var ERR_INVALID_THIS=class extends TypeError{constructor(type2){super(`Value of "this" must be of type ${type2}`);__publicField2(this,"code","ERR_INVALID_THIS");this.name="TypeError"}};var ERR_STRING_TOO_LONG=class extends RangeError{constructor(max2){super(`Cannot create a string longer than 0x${max2.toString(16)} characters`);__publicField2(this,"code","ERR_STRING_TOO_LONG");this.name="RangeError"}};function validateNumber(value,name){if(typeof value!=="number")throw new ERR_INVALID_ARG_TYPE(name,"number",value)}function validateUndefined(value,name){if(value!==void 0)throw new ERR_INVALID_ARG_TYPE(name,"undefined",value)}function validateInt32(value,name,min2=-2147483648,max2=2147483647){if(typeof value!=="number")throw new ERR_INVALID_ARG_TYPE(name,"number",value);if(!Number.isInteger(value))throw new ERR_OUT_OF_RANGE(name,"an integer",value);if(value<min2||value>max2)throw new ERR_OUT_OF_RANGE(name,`>= ${min2} && <= ${max2}`,value)}var kStringMaxLength=536870888;var kIsStringDecoder=Symbol("kIsStringDecoder");function createStringDecoderModule(Bytes){const kEncodingAliases={utf8:"utf8","utf-8":"utf8",ucs2:"utf16le","ucs-2":"utf16le",utf16le:"utf16le","utf-16le":"utf16le",latin1:"latin1",binary:"latin1",base64:"base64",base64url:"base64url",ascii:"ascii",hex:"hex"};function normalizeEncoding(encoding){if(encoding===void 0||encoding===null||encoding==="")return"utf8";if(typeof encoding!=="string")throw new ERR_UNKNOWN_ENCODING(encoding);const normalized=kEncodingAliases[encoding.toLowerCase()];if(normalized===void 0)throw new ERR_UNKNOWN_ENCODING(encoding);return normalized}const kCharsPerByte={utf8:1,utf16le:.5,latin1:1,ascii:1,hex:2,base64:2,base64url:2};function decoderInput(self2,buffer2){let bytes2;if(Bytes().isBuffer(buffer2)){bytes2=buffer2}else if(ArrayBuffer.isView(buffer2)){const view=buffer2;bytes2=Bytes().from(view.buffer,view.byteOffset,view.byteLength)}else{throw new ERR_INVALID_ARG_TYPE("buf",["Buffer","TypedArray","DataView"],buffer2)}const charsPerByte=kCharsPerByte[self2.encoding]??1;if(bytes2.length*charsPerByte>kStringMaxLength)throw new ERR_STRING_TOO_LONG(kStringMaxLength);return bytes2}function assertDecoder(self2){if(!self2||!self2[kIsStringDecoder]){throw new ERR_INVALID_THIS("StringDecoder")}return self2}function utf8CheckByte(byte){if(byte<=127)return 0;if(byte>>5===6)return 2;if(byte>>4===14)return 3;if(byte>>3===30)return 4;return byte>>6===2?-1:-2}function utf8CheckIncomplete(self2,buf,i22){let j=buf.length-1;if(j<i22)return 0;let nb2=utf8CheckByte(buf[j]);if(nb2>=0){if(nb2>0)self2.lastNeed=nb2-1;return nb2}if(--j<i22||nb2===-2)return 0;nb2=utf8CheckByte(buf[j]);if(nb2>=0){if(nb2>0)self2.lastNeed=nb2-2;return nb2}if(--j<i22||nb2===-2)return 0;nb2=utf8CheckByte(buf[j]);if(nb2>=0){if(nb2>0){if(nb2===2)nb2=0;else self2.lastNeed=nb2-3}return nb2}return 0}function utf8CheckExtraBytes(self2,buf,p){if((buf[0]&192)!==128){self2.lastNeed=0;return utf8BrokenSequence(self2,buf,p,0)}if(self2.lastNeed>1&&buf.length>1){if((buf[1]&192)!==128){self2.lastNeed=1;return utf8BrokenSequence(self2,buf,p,1)}if(self2.lastNeed>2&&buf.length>2){if((buf[2]&192)!==128){self2.lastNeed=2;return utf8BrokenSequence(self2,buf,p,2)}}}return void 0}function utf8BrokenSequence(self2,buf,p,taken){const bytes2=Bytes().alloc(p+taken);self2.lastChar.copy(bytes2,0,0,p);if(taken>0)buf.copy(bytes2,p,0,taken);return bytes2.toString("utf8")}function utf8FillLast(buf){const p=this.lastTotal-this.lastNeed;const r10=utf8CheckExtraBytes(this,buf,p);if(r10!==void 0)return r10;if(this.lastNeed<=buf.length){buf.copy(this.lastChar,p,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length;return void 0}function utf8Text(buf,i22){const total=utf8CheckIncomplete(this,buf,i22);if(!this.lastNeed)return buf.toString("utf8",i22);this.lastTotal=total;const end=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,end);return buf.toString("utf8",i22,end)}function utf8End(buf){const r10=buf!==void 0&&buf!==null&&buf.length?this.write(buf):"";if(this.lastNeed){const held=this.lastTotal-this.lastNeed;this.lastNeed=0;this.lastTotal=0;return r10+this.lastChar.toString("utf8",0,held)}return r10}function utf16Text(buf,i22){if((buf.length-i22)%2===0){const r10=buf.toString("utf16le",i22);if(r10){const c=r10.charCodeAt(r10.length-1);if(c>=55296&&c<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1];return r10.slice(0,-1)}}return r10}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString("utf16le",i22,buf.length-1)}function utf16End(buf){const r10=buf!==void 0&&buf!==null&&buf.length?this.write(buf):"";if(this.lastNeed){const end=this.lastTotal-this.lastNeed;this.lastNeed=0;this.lastTotal=0;return r10+this.lastChar.toString("utf16le",0,end)}return r10}function base64Text2(buf,i22){const n8=(buf.length-i22)%3;const enc=this.encoding;if(n8===0)return buf.toString(enc,i22);this.lastNeed=3-n8;this.lastTotal=3;if(n8===1){this.lastChar[0]=buf[buf.length-1]}else{this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1]}return buf.toString(enc,i22,buf.length-n8)}function base64End(buf){const r10=buf!==void 0&&buf!==null&&buf.length?this.write(buf):"";if(this.lastNeed){const taken=3-this.lastNeed;this.lastNeed=0;this.lastTotal=0;return r10+this.lastChar.toString(this.encoding,0,taken)}return r10}function simpleWrite(buf){if(typeof buf==="string")return buf;return decoderInput(this,buf).toString(this.encoding)}function simpleEnd(buf){return buf!==void 0&&buf!==null&&buf.length?this.write(buf):""}function StringDecoderImpl(encoding){this.encoding=normalizeEncoding(encoding);Object.defineProperty(this,kIsStringDecoder,{value:true,enumerable:false});let nb2;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;nb2=4;break;case"utf8":this.fillLast=utf8FillLast;nb2=4;break;case"base64":case"base64url":this.text=base64Text2;this.end=base64End;nb2=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=Bytes().alloc(nb2)}const decoderPrototype=StringDecoderImpl.prototype;decoderPrototype.write=function write(buffer2){const self2=assertDecoder(this);if(typeof buffer2==="string")return buffer2;const buf=decoderInput(self2,buffer2);if(buf.length===0)return"";let r10;let i22;if(self2.lastNeed){r10=self2.fillLast(buf);if(r10===void 0)return"";i22=self2.lastNeed;self2.lastNeed=0}else{i22=0}if(i22<buf.length)return r10?r10+self2.text(buf,i22):self2.text(buf,i22);return r10||""};decoderPrototype.end=function end(buffer2){return utf8End.call(assertDecoder(this),buffer2)};decoderPrototype.text=function text(buffer2,offset2){return utf8Text.call(assertDecoder(this),buffer2,offset2)};decoderPrototype.fillLast=function fillLast(buf){const self2=assertDecoder(this);if(self2.lastNeed<=buf.length){buf.copy(self2.lastChar,self2.lastTotal-self2.lastNeed,0,self2.lastNeed);return self2.lastChar.toString(self2.encoding,0,self2.lastTotal)}buf.copy(self2.lastChar,self2.lastTotal-self2.lastNeed,0,buf.length);self2.lastNeed-=buf.length;return void 0};const StringDecoder2=StringDecoderImpl;return{StringDecoder:StringDecoder2}}var bufferClass;var decoder2=createStringDecoderModule(()=>bufferClass??(bufferClass=loadNodeLib("buffer").Buffer));var StringDecoder=decoder2.StringDecoder;var stringDecoderShim=Object.freeze(Object.defineProperty({__proto__:null,StringDecoder,createStringDecoderModule,default:decoder2},Symbol.toStringTag,{value:"Module"}));function getHeapStatistics(){return{total_heap_size:0,total_heap_size_executable:0,total_physical_size:0,total_available_size:0,used_heap_size:0,heap_size_limit:0,malloced_memory:0,peak_malloced_memory:0,does_zap_garbage:0,number_of_native_contexts:0,number_of_detached_contexts:0}}function getHeapSpaceStatistics(){return[]}function getHeapCodeStatistics(){return{code_and_metadata_size:0,bytecode_and_metadata_size:0,external_script_source_size:0}}function getHeapSnapshot(){return null}function writeHeapSnapshot(){return""}function setFlagsFromString(_flags){}function takeCoverage(){}function stopCoverage(){}function serialize(value){const json=JSON.stringify(value);return Buffer.from(json)}function deserialize(buffer2){return JSON.parse(buffer2.toString())}var Serializer=class{writeHeader(){}writeValue(_value2){}releaseBuffer(){return Buffer.from("")}};var Deserializer=class{constructor(_buffer2){}readHeader(){return true}readValue(){return null}};var DefaultSerializer=class extends Serializer{};var DefaultDeserializer=class extends Deserializer{};function promiseHooks(){return{onInit:()=>{},onSettled:()=>{},onBefore:()=>{},onAfter:()=>{},createHook:()=>({enable:()=>{},disable:()=>{}})}}var v8Shim={getHeapStatistics,getHeapSpaceStatistics,getHeapCodeStatistics,getHeapSnapshot,writeHeapSnapshot,setFlagsFromString,takeCoverage,stopCoverage,serialize,deserialize,Serializer,Deserializer,DefaultSerializer,DefaultDeserializer,promiseHooks};var v8Shim$1=Object.freeze(Object.defineProperty({__proto__:null,DefaultDeserializer,DefaultSerializer,Deserializer,Serializer,default:v8Shim,deserialize,getHeapCodeStatistics,getHeapSnapshot,getHeapSpaceStatistics,getHeapStatistics,promiseHooks,serialize,setFlagsFromString,stopCoverage,takeCoverage,writeHeapSnapshot},Symbol.toStringTag,{value:"Module"}));function globToRegExp(glob,nocase=false){return new RegExp("^"+globBody(glob)+"$",nocase?"i":"")}function globBody(glob){let out="";for(let i22=0;i22<glob.length;i22++){const ch22=glob[i22];if(ch22==="*"){if(glob[i22+1]==="*"){i22++;if(glob[i22+1]==="/"){i22++;out+="(?:[^/]*\\/)*"}else out+=".*"}else out+="[^/]*"}else if(ch22==="?"){out+="[^/]"}else if(ch22==="["){let end=i22+1;let body="";if(glob[end]==="!"||glob[end]==="^"){body+="^";end++}for(;end<glob.length&&glob[end]!=="]";end++)body+=glob[end]==="\\"?"\\\\":glob[end];if(end>=glob.length)out+="\\[";else{out+="["+body+"]";i22=end}}else if(ch22==="{"){let depth4=1;let end=i22+1;let body="";for(;end<glob.length;end++){if(glob[end]==="{")depth4++;else if(glob[end]==="}"){depth4--;if(depth4===0)break}body+=glob[end]}if(depth4!==0)out+="\\{";else{out+="(?:"+body.split(",").map(globBody).join("|")+")";i22=end}}else{out+=ch22.replace(/[.+^$()|\]}\\]/g,"\\$&")}}return out}var uncurry$1=fn2=>Function.prototype.call.bind(fn2);var primordials$1={ArrayPrototypeIncludes:uncurry$1(Array.prototype.includes),ArrayPrototypeJoin:uncurry$1(Array.prototype.join),ArrayPrototypeSlice:uncurry$1(Array.prototype.slice),FunctionPrototypeBind:uncurry$1(Function.prototype.bind),StringPrototypeCharCodeAt:uncurry$1(String.prototype.charCodeAt),StringPrototypeIncludes:uncurry$1(String.prototype.includes),StringPrototypeIndexOf:uncurry$1(String.prototype.indexOf),StringPrototypeLastIndexOf:uncurry$1(String.prototype.lastIndexOf),StringPrototypeRepeat:uncurry$1(String.prototype.repeat),StringPrototypeReplace:uncurry$1(String.prototype.replace),StringPrototypeSlice:uncurry$1(String.prototype.slice),StringPrototypeSplit:uncurry$1(String.prototype.split),StringPrototypeToLowerCase:uncurry$1(String.prototype.toLowerCase),StringPrototypeToUpperCase:uncurry$1(String.prototype.toUpperCase)};var constants$12={CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_DOT:46,CHAR_FORWARD_SLASH:47,CHAR_BACKWARD_SLASH:92,CHAR_COLON:58,CHAR_QUESTION_MARK:63};var engineProcess=()=>globalThis.process;var platformOf=()=>{var _a22;const platform=(_a22=engineProcess())==null?void 0:_a22.platform;return typeof platform==="string"?platform:"linux"};var processBinding={get platform(){return platformOf()},cwd(){var _a22;const cwd=(_a22=engineProcess())==null?void 0:_a22.cwd;return typeof cwd==="function"?cwd():"/"},get env(){var _a22;const env=(_a22=engineProcess())==null?void 0:_a22.env;return env??{}}};var isWindows=false;var isMacOS=false;function getLazy(fn2){let value;let loaded2=false;return()=>{if(!loaded2){value=fn2();loaded2=true}return value}}var minimatchStandIn={minimatch(target,pattern,options){const windows=(options==null?void 0:options.platform)==="win32";const subject=windows?target.replace(/\\/g,"/"):target;const glob=windows?pattern.replace(/\\/g,"/"):pattern;return globToRegExp(glob,(options==null?void 0:options.nocase)===true).test(subject)}};function nodeInternalRequire(specifier){switch(specifier){case"internal/constants":return constants$12;case"internal/validators":return{validateObject,validateString};case"internal/util":return{getLazy,isWindows,isMacOS};case"internal/deps/minimatch/index":return minimatchStandIn;case"internal/errors":return{codes:{ERR_INVALID_ARG_TYPE,ERR_INVALID_ARG_VALUE}};default:throw new Error(`node-lib/path.js asked for an internal the binding does not provide: ${specifier}`)}}var nodePath=(()=>{const module={exports:{}};new Function("primordials","require","module","exports","process",NODE_PATH_SOURCE)(primordials$1,nodeInternalRequire,module,module.exports,processBinding);return module.exports})();var posix=nodePath.posix;var win32=nodePath.win32;var sep2=nodePath.sep;var delimiter=nodePath.delimiter;var normalize=nodePath.normalize;var join2=nodePath.join;var resolve=nodePath.resolve;var isAbsolute=nodePath.isAbsolute;var relative=nodePath.relative;var dirname=nodePath.dirname;var basename=nodePath.basename;var extname=nodePath.extname;var parse=nodePath.parse;var format=nodePath.format;var toNamespacedPath=nodePath.toNamespacedPath;var matchesGlob=nodePath.matchesGlob;var path2=Object.freeze(Object.defineProperty({__proto__:null,basename,default:nodePath,delimiter,dirname,extname,format,isAbsolute,join:join2,matchesGlob,normalize,parse,posix,relative,resolve,sep:sep2,toNamespacedPath,win32},Symbol.toStringTag,{value:"Module"}));function loopback(host2){const bare=host2.startsWith("[")&&host2.endsWith("]")?host2.slice(1,-1):host2;const name=bare.toLowerCase();return name===""||name==="localhost"||name==="::1"||name.startsWith("127.")}function createTlsModule(require2){const NetSocket=require2?require2("net").Socket:lazyExport("net","Socket");const netServer=()=>(require2?require2("net"):nodeLibInternalRequire("net")).Server;class TLSSocket2 extends NetSocket{constructor(_socket,_options2){super({allowHalfOpen:false});__publicField2(this,"authorized",false);__publicField2(this,"encrypted",true)}connect(...args){const options=args[0];const host2=String((options==null?void 0:options.host)??(options==null?void 0:options.hostname)??"localhost");if(options&&typeof options==="object"&&options.socket===void 0&&loopback(host2)){this.once("connect",()=>{this.authorized=true;this.emit("secureConnect")});return NetSocket.prototype.connect.call(this,{port:options.port,host:host2})}this.connecting=true;queueMicrotask(()=>queueMicrotask(()=>this.destroy(Object.assign(new Error("TLS transport is unavailable in this runtime; HTTPS requires an admitted HTTP transport."),{code:"ERR_TLS_UNAVAILABLE"}))));return this}getPeerCertificate(_detailed){return{}}getCipher(){return null}getProtocol(){return null}setServername(_name){}renegotiate(_options2,_callback3){return false}}let chained=false;const Server2=function TLSServer(options,secureConnectionListener){if(!(this instanceof Server2))return new Server2(options,secureConnectionListener);const NetServer=netServer();if(!chained){Object.setPrototypeOf(Server2.prototype,NetServer.prototype);Object.setPrototypeOf(Server2,NetServer);chained=true}if(typeof options==="function"){secureConnectionListener=options;options={}}NetServer.call(this,options??{},function secure(socket){socket.encrypted=true;socket.authorized=false;this.emit("secureConnection",socket)});if(secureConnectionListener)this.on("secureConnection",secureConnectionListener);return this};Object.assign(Server2.prototype,{addContext(_hostname,_context){},getTicketKeys(){return(require2?require2("buffer").Buffer:Buffer).from("")},setTicketKeys(_keys){},setSecureContext(_options2){}});function createServer2(options,secureConnectionListener){return new Server2(options,secureConnectionListener)}function connect2(...args){const options={};let callback;for(const arg of args){if(typeof arg==="function")callback=arg;else if(typeof arg==="number"||typeof arg==="string"&&options.port===void 0&&/^\d+$/u.test(arg))options.port=arg;else if(typeof arg==="string")options.host=arg;else if(arg&&typeof arg==="object")Object.assign(options,arg)}const socket=new TLSSocket2;if(callback)socket.once("secureConnect",callback);return socket.connect(options)}const createSecureContext2=_options2=>({});const getCiphers2=()=>["TLS_AES_256_GCM_SHA384","TLS_AES_128_GCM_SHA256"];const DEFAULT_ECDH_CURVE2="auto";const DEFAULT_MAX_VERSION2="TLSv1.3";const DEFAULT_MIN_VERSION2="TLSv1.2";const rootCertificates2=[];const getCACertificates2=(type2="default")=>{if(!["default","system","bundled","extra"].includes(type2)){throw Object.assign(new TypeError(`The argument 'type' must be one of: 'default', 'system', 'bundled', 'extra'. Received '${String(type2)}'`),{code:"ERR_INVALID_ARG_VALUE"})}return[]};return{TLSSocket:TLSSocket2,Server:Server2,createServer:createServer2,connect:connect2,createSecureContext:createSecureContext2,getCiphers:getCiphers2,getCACertificates:getCACertificates2,DEFAULT_ECDH_CURVE:DEFAULT_ECDH_CURVE2,DEFAULT_MAX_VERSION:DEFAULT_MAX_VERSION2,DEFAULT_MIN_VERSION:DEFAULT_MIN_VERSION2,rootCertificates:rootCertificates2}}var tls=createTlsModule();var{TLSSocket,Server:Server$1,createServer:createServer$1,connect:connect$1,createSecureContext,getCiphers:getCiphers$1,getCACertificates,DEFAULT_ECDH_CURVE,DEFAULT_MAX_VERSION,DEFAULT_MIN_VERSION,rootCertificates}=tls;var tlsShim=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ECDH_CURVE,DEFAULT_MAX_VERSION,DEFAULT_MIN_VERSION,Server:Server$1,TLSSocket,connect:connect$1,createSecureContext,createServer:createServer$1,createTlsModule,default:tls,getCACertificates,getCiphers:getCiphers$1,rootCertificates},Symbol.toStringTag,{value:"Module"}));var sha_js={exports:{}};var inherits_browser={exports:{}};if(typeof Object.create==="function"){inherits_browser.exports=function inherits2(ctor,superCtor){if(superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}}else{inherits_browser.exports=function inherits2(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}}var inherits_browserExports=inherits_browser.exports;var safeBuffer={exports:{}};var buffer={};var ieee754={};ieee754.read=function(buffer2,offset2,isLE2,mLen,nBytes){var e2,m;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=-7;var i22=isLE2?nBytes-1:0;var d=isLE2?-1:1;var s10=buffer2[offset2+i22];i22+=d;e2=s10&(1<<-nBits)-1;s10>>=-nBits;nBits+=eLen;for(;nBits>0;e2=e2*256+buffer2[offset2+i22],i22+=d,nBits-=8){}m=e2&(1<<-nBits)-1;e2>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer2[offset2+i22],i22+=d,nBits-=8){}if(e2===0){e2=1-eBias}else if(e2===eMax){return m?NaN:(s10?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e2=e2-eBias}return(s10?-1:1)*m*Math.pow(2,e2-mLen)};ieee754.write=function(buffer2,value,offset2,isLE2,mLen,nBytes){var e2,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt2=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i22=isLE2?0:nBytes-1;var d=isLE2?1:-1;var s10=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e2=eMax}else{e2=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e2))<1){e2--;c*=2}if(e2+eBias>=1){value+=rt2/c}else{value+=rt2*Math.pow(2,1-eBias)}if(value*c>=2){e2++;c/=2}if(e2+eBias>=eMax){m=0;e2=eMax}else if(e2+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e2=e2+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e2=0}}for(;mLen>=8;buffer2[offset2+i22]=m&255,i22+=d,m/=256,mLen-=8){}e2=e2<<mLen|m;eLen+=mLen;for(;eLen>0;buffer2[offset2+i22]=e2&255,i22+=d,e2/=256,eLen-=8){}buffer2[offset2+i22-d]|=s10*128};(function(exports$1){const base6422=base64Js;const ieee754$1=ieee754;const customInspectSymbol=typeof Symbol==="function"&&typeof Symbol["for"]==="function"?Symbol["for"]("nodejs.util.inspect.custom"):null;exports$1.Buffer=Buffer2;exports$1.SlowBuffer=SlowBuffer;exports$1.INSPECT_MAX_BYTES=50;const K_MAX_LENGTH=2147483647;exports$1.kMaxLength=K_MAX_LENGTH;Buffer2.TYPED_ARRAY_SUPPORT=typedArraySupport();if(!Buffer2.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error==="function"){console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.")}function typedArraySupport(){try{const arr=new Uint8Array(1);const proto={foo:function(){return 42}};Object.setPrototypeOf(proto,Uint8Array.prototype);Object.setPrototypeOf(arr,proto);return arr.foo()===42}catch(e2){return false}}Object.defineProperty(Buffer2.prototype,"parent",{enumerable:true,get:function(){if(!Buffer2.isBuffer(this))return void 0;return this.buffer}});Object.defineProperty(Buffer2.prototype,"offset",{enumerable:true,get:function(){if(!Buffer2.isBuffer(this))return void 0;return this.byteOffset}});function createBuffer(length){if(length>K_MAX_LENGTH){throw new RangeError('The value "'+length+'" is invalid for option "size"')}const buf=new Uint8Array(length);Object.setPrototypeOf(buf,Buffer2.prototype);return buf}function Buffer2(arg,encodingOrOffset,length){if(typeof arg==="number"){if(typeof encodingOrOffset==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}Buffer2.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value==="string"){return fromString(value,encodingOrOffset)}if(ArrayBuffer.isView(value)){return fromArrayView(value)}if(value==null){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)){return fromArrayBuffer(value,encodingOrOffset,length)}if(typeof SharedArrayBuffer!=="undefined"&&(isInstance(value,SharedArrayBuffer)||value&&isInstance(value.buffer,SharedArrayBuffer))){return fromArrayBuffer(value,encodingOrOffset,length)}if(typeof value==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}const valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value){return Buffer2.from(valueOf,encodingOrOffset,length)}const b=fromObject(value);if(b)return b;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==="function"){return Buffer2.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof value)}Buffer2.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Object.setPrototypeOf(Buffer2.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer2,Uint8Array);function assertSize(size){if(typeof size!=="number"){throw new TypeError('"size" argument must be of type number')}else if(size<0){throw new RangeError('The value "'+size+'" is invalid for option "size"')}}function alloc(size,fill2,encoding){assertSize(size);if(size<=0){return createBuffer(size)}if(fill2!==void 0){return typeof encoding==="string"?createBuffer(size).fill(fill2,encoding):createBuffer(size).fill(fill2)}return createBuffer(size)}Buffer2.alloc=function(size,fill2,encoding){return alloc(size,fill2,encoding)};function allocUnsafe(size){assertSize(size);return createBuffer(size<0?0:checked(size)|0)}Buffer2.allocUnsafe=function(size){return allocUnsafe(size)};Buffer2.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if(typeof encoding!=="string"||encoding===""){encoding="utf8"}if(!Buffer2.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}const length=byteLength2(string,encoding)|0;let buf=createBuffer(length);const actual=buf.write(string,encoding);if(actual!==length){buf=buf.slice(0,actual)}return buf}function fromArrayLike(array){const length=array.length<0?0:checked(array.length)|0;const buf=createBuffer(length);for(let i22=0;i22<length;i22+=1){buf[i22]=array[i22]&255}return buf}function fromArrayView(arrayView){if(isInstance(arrayView,Uint8Array)){const copy2=new Uint8Array(arrayView);return fromArrayBuffer(copy2.buffer,copy2.byteOffset,copy2.byteLength)}return fromArrayLike(arrayView)}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset){throw new RangeError('"offset" is outside of buffer bounds')}if(array.byteLength<byteOffset+(length||0)){throw new RangeError('"length" is outside of buffer bounds')}let buf;if(byteOffset===void 0&&length===void 0){buf=new Uint8Array(array)}else if(length===void 0){buf=new Uint8Array(array,byteOffset)}else{buf=new Uint8Array(array,byteOffset,length)}Object.setPrototypeOf(buf,Buffer2.prototype);return buf}function fromObject(obj){if(Buffer2.isBuffer(obj)){const len2=checked(obj.length)|0;const buf=createBuffer(len2);if(buf.length===0){return buf}obj.copy(buf,0,0,len2);return buf}if(obj.length!==void 0){if(typeof obj.length!=="number"||numberIsNaN(obj.length)){return createBuffer(0)}return fromArrayLike(obj)}if(obj.type==="Buffer"&&Array.isArray(obj.data)){return fromArrayLike(obj.data)}}function checked(length){if(length>=K_MAX_LENGTH){throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes")}return length|0}function SlowBuffer(length){if(+length!=length){length=0}return Buffer2.alloc(+length)}Buffer2.isBuffer=function isBuffer(b){return b!=null&&b._isBuffer===true&&b!==Buffer2.prototype};Buffer2.compare=function compare2(a,b){if(isInstance(a,Uint8Array))a=Buffer2.from(a,a.offset,a.byteLength);if(isInstance(b,Uint8Array))b=Buffer2.from(b,b.offset,b.byteLength);if(!Buffer2.isBuffer(a)||!Buffer2.isBuffer(b)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(a===b)return 0;let x=a.length;let y=b.length;for(let i22=0,len2=Math.min(x,y);i22<len2;++i22){if(a[i22]!==b[i22]){x=a[i22];y=b[i22];break}}if(x<y)return-1;if(y<x)return 1;return 0};Buffer2.isEncoding=function isEncoding(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer2.concat=function concat(list2,length){if(!Array.isArray(list2)){throw new TypeError('"list" argument must be an Array of Buffers')}if(list2.length===0){return Buffer2.alloc(0)}let i22;if(length===void 0){length=0;for(i22=0;i22<list2.length;++i22){length+=list2[i22].length}}const buffer2=Buffer2.allocUnsafe(length);let pos=0;for(i22=0;i22<list2.length;++i22){let buf=list2[i22];if(isInstance(buf,Uint8Array)){if(pos+buf.length>buffer2.length){if(!Buffer2.isBuffer(buf))buf=Buffer2.from(buf);buf.copy(buffer2,pos)}else{Uint8Array.prototype.set.call(buffer2,buf,pos)}}else if(!Buffer2.isBuffer(buf)){throw new TypeError('"list" argument must be an Array of Buffers')}else{buf.copy(buffer2,pos)}pos+=buf.length}return buffer2};function byteLength2(string,encoding){if(Buffer2.isBuffer(string)){return string.length}if(ArrayBuffer.isView(string)||isInstance(string,ArrayBuffer)){return string.byteLength}if(typeof string!=="string"){throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof string)}const len2=string.length;const mustMatch=arguments.length>2&&arguments[2]===true;if(!mustMatch&&len2===0)return 0;let loweredCase=false;for(;;){switch(encoding){case"ascii":case"latin1":case"binary":return len2;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len2*2;case"hex":return len2>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase){return mustMatch?-1:utf8ToBytes(string).length}encoding=(""+encoding).toLowerCase();loweredCase=true}}}Buffer2.byteLength=byteLength2;function slowToString(encoding,start,end){let loweredCase=false;if(start===void 0||start<0){start=0}if(start>this.length){return""}if(end===void 0||end>this.length){end=this.length}if(end<=0){return""}end>>>=0;start>>>=0;if(end<=start){return""}if(!encoding)encoding="utf8";while(true){switch(encoding){case"hex":return hexSlice2(this,start,end);case"utf8":case"utf-8":return utf8Slice2(this,start,end);case"ascii":return asciiSlice2(this,start,end);case"latin1":case"binary":return latin1Slice2(this,start,end);case"base64":return base64Slice2(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}}Buffer2.prototype._isBuffer=true;function swap(b,n8,m){const i22=b[n8];b[n8]=b[m];b[m]=i22}Buffer2.prototype.swap16=function swap162(){const len2=this.length;if(len2%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(let i22=0;i22<len2;i22+=2){swap(this,i22,i22+1)}return this};Buffer2.prototype.swap32=function swap322(){const len2=this.length;if(len2%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(let i22=0;i22<len2;i22+=4){swap(this,i22,i22+3);swap(this,i22+1,i22+2)}return this};Buffer2.prototype.swap64=function swap642(){const len2=this.length;if(len2%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(let i22=0;i22<len2;i22+=8){swap(this,i22,i22+7);swap(this,i22+1,i22+6);swap(this,i22+2,i22+5);swap(this,i22+3,i22+4)}return this};Buffer2.prototype.toString=function toString22(){const length=this.length;if(length===0)return"";if(arguments.length===0)return utf8Slice2(this,0,length);return slowToString.apply(this,arguments)};Buffer2.prototype.toLocaleString=Buffer2.prototype.toString;Buffer2.prototype.equals=function equals(b){if(!Buffer2.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(this===b)return true;return Buffer2.compare(this,b)===0};Buffer2.prototype.inspect=function inspect2(){let str="";const max2=exports$1.INSPECT_MAX_BYTES;str=this.toString("hex",0,max2).replace(/(.{2})/g,"$1 ").trim();if(this.length>max2)str+=" ... ";return"<Buffer "+str+">"};if(customInspectSymbol){Buffer2.prototype[customInspectSymbol]=Buffer2.prototype.inspect}Buffer2.prototype.compare=function compare2(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)){target=Buffer2.from(target,target.offset,target.byteLength)}if(!Buffer2.isBuffer(target)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof target)}if(start===void 0){start=0}if(end===void 0){end=target?target.length:0}if(thisStart===void 0){thisStart=0}if(thisEnd===void 0){thisEnd=this.length}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError("out of range index")}if(thisStart>=thisEnd&&start>=end){return 0}if(thisStart>=thisEnd){return-1}if(start>=end){return 1}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;let x=thisEnd-thisStart;let y=end-start;const len2=Math.min(x,y);const thisCopy=this.slice(thisStart,thisEnd);const targetCopy=target.slice(start,end);for(let i22=0;i22<len2;++i22){if(thisCopy[i22]!==targetCopy[i22]){x=thisCopy[i22];y=targetCopy[i22];break}}if(x<y)return-1;if(y<x)return 1;return 0};function bidirectionalIndexOf(buffer2,val,byteOffset,encoding,dir){if(buffer2.length===0)return-1;if(typeof byteOffset==="string"){encoding=byteOffset;byteOffset=0}else if(byteOffset>2147483647){byteOffset=2147483647}else if(byteOffset<-2147483648){byteOffset=-2147483648}byteOffset=+byteOffset;if(numberIsNaN(byteOffset)){byteOffset=dir?0:buffer2.length-1}if(byteOffset<0)byteOffset=buffer2.length+byteOffset;if(byteOffset>=buffer2.length){if(dir)return-1;else byteOffset=buffer2.length-1}else if(byteOffset<0){if(dir)byteOffset=0;else return-1}if(typeof val==="string"){val=Buffer2.from(val,encoding)}if(Buffer2.isBuffer(val)){if(val.length===0){return-1}return arrayIndexOf(buffer2,val,byteOffset,encoding,dir)}else if(typeof val==="number"){val=val&255;if(typeof Uint8Array.prototype.indexOf==="function"){if(dir){return Uint8Array.prototype.indexOf.call(buffer2,val,byteOffset)}else{return Uint8Array.prototype.lastIndexOf.call(buffer2,val,byteOffset)}}return arrayIndexOf(buffer2,[val],byteOffset,encoding,dir)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){let indexSize=1;let arrLength=arr.length;let valLength=val.length;if(encoding!==void 0){encoding=String(encoding).toLowerCase();if(encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le"){if(arr.length<2||val.length<2){return-1}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2}}function read(buf,i32){if(indexSize===1){return buf[i32]}else{return buf.readUInt16BE(i32*indexSize)}}let i22;if(dir){let foundIndex=-1;for(i22=byteOffset;i22<arrLength;i22++){if(read(arr,i22)===read(val,foundIndex===-1?0:i22-foundIndex)){if(foundIndex===-1)foundIndex=i22;if(i22-foundIndex+1===valLength)return foundIndex*indexSize}else{if(foundIndex!==-1)i22-=i22-foundIndex;foundIndex=-1}}}else{if(byteOffset+valLength>arrLength)byteOffset=arrLength-valLength;for(i22=byteOffset;i22>=0;i22--){let found=true;for(let j=0;j<valLength;j++){if(read(arr,i22+j)!==read(val,j)){found=false;break}}if(found)return i22}}return-1}Buffer2.prototype.includes=function includes(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer2.prototype.indexOf=function indexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,true)};Buffer2.prototype.lastIndexOf=function lastIndexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,false)};function hexWrite2(buf,string,offset2,length){offset2=Number(offset2)||0;const remaining=buf.length-offset2;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}const strLen=string.length;if(length>strLen/2){length=strLen/2}let i22;for(i22=0;i22<length;++i22){const parsed=parseInt(string.substr(i22*2,2),16);if(numberIsNaN(parsed))return i22;buf[offset2+i22]=parsed}return i22}function utf8Write(buf,string,offset2,length){return blitBuffer(utf8ToBytes(string,buf.length-offset2),buf,offset2,length)}function asciiWrite(buf,string,offset2,length){return blitBuffer(asciiToBytes(string),buf,offset2,length)}function base64Write2(buf,string,offset2,length){return blitBuffer(base64ToBytes(string),buf,offset2,length)}function ucs2Write2(buf,string,offset2,length){return blitBuffer(utf16leToBytes(string,buf.length-offset2),buf,offset2,length)}Buffer2.prototype.write=function write(string,offset2,length,encoding){if(offset2===void 0){encoding="utf8";length=this.length;offset2=0}else if(length===void 0&&typeof offset2==="string"){encoding=offset2;length=this.length;offset2=0}else if(isFinite(offset2)){offset2=offset2>>>0;if(isFinite(length)){length=length>>>0;if(encoding===void 0)encoding="utf8"}else{encoding=length;length=void 0}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}const remaining=this.length-offset2;if(length===void 0||length>remaining)length=remaining;if(string.length>0&&(length<0||offset2<0)||offset2>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!encoding)encoding="utf8";let loweredCase=false;for(;;){switch(encoding){case"hex":return hexWrite2(this,string,offset2,length);case"utf8":case"utf-8":return utf8Write(this,string,offset2,length);case"ascii":case"latin1":case"binary":return asciiWrite(this,string,offset2,length);case"base64":return base64Write2(this,string,offset2,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write2(this,string,offset2,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase();loweredCase=true}}};Buffer2.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice2(buf,start,end){if(start===0&&end===buf.length){return base6422.fromByteArray(buf)}else{return base6422.fromByteArray(buf.slice(start,end))}}function utf8Slice2(buf,start,end){end=Math.min(buf.length,end);const res=[];let i22=start;while(i22<end){const firstByte=buf[i22];let codePoint=null;let bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i22+bytesPerSequence<=end){let secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<128){codePoint=firstByte}break;case 2:secondByte=buf[i22+1];if((secondByte&192)===128){tempCodePoint=(firstByte&31)<<6|secondByte&63;if(tempCodePoint>127){codePoint=tempCodePoint}}break;case 3:secondByte=buf[i22+1];thirdByte=buf[i22+2];if((secondByte&192)===128&&(thirdByte&192)===128){tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63;if(tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)){codePoint=tempCodePoint}}break;case 4:secondByte=buf[i22+1];thirdByte=buf[i22+2];fourthByte=buf[i22+3];if((secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128){tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63;if(tempCodePoint>65535&&tempCodePoint<1114112){codePoint=tempCodePoint}}}}if(codePoint===null){codePoint=65533;bytesPerSequence=1}else if(codePoint>65535){codePoint-=65536;res.push(codePoint>>>10&1023|55296);codePoint=56320|codePoint&1023}res.push(codePoint);i22+=bytesPerSequence}return decodeCodePointsArray(res)}const MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){const len2=codePoints.length;if(len2<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)}let res="";let i22=0;while(i22<len2){res+=String.fromCharCode.apply(String,codePoints.slice(i22,i22+=MAX_ARGUMENTS_LENGTH))}return res}function asciiSlice2(buf,start,end){let ret="";end=Math.min(buf.length,end);for(let i22=start;i22<end;++i22){ret+=String.fromCharCode(buf[i22]&127)}return ret}function latin1Slice2(buf,start,end){let ret="";end=Math.min(buf.length,end);for(let i22=start;i22<end;++i22){ret+=String.fromCharCode(buf[i22])}return ret}function hexSlice2(buf,start,end){const len2=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len2)end=len2;let out="";for(let i22=start;i22<end;++i22){out+=hexSliceLookupTable[buf[i22]]}return out}function utf16leSlice(buf,start,end){const bytes2=buf.slice(start,end);let res="";for(let i22=0;i22<bytes2.length-1;i22+=2){res+=String.fromCharCode(bytes2[i22]+bytes2[i22+1]*256)}return res}Buffer2.prototype.slice=function slice(start,end){const len2=this.length;start=~~start;end=end===void 0?len2:~~end;if(start<0){start+=len2;if(start<0)start=0}else if(start>len2){start=len2}if(end<0){end+=len2;if(end<0)end=0}else if(end>len2){end=len2}if(end<start)end=start;const newBuf=this.subarray(start,end);Object.setPrototypeOf(newBuf,Buffer2.prototype);return newBuf};function checkOffset(offset2,ext2,length){if(offset2%1!==0||offset2<0)throw new RangeError("offset is not uint");if(offset2+ext2>length)throw new RangeError("Trying to access beyond buffer length")}Buffer2.prototype.readUintLE=Buffer2.prototype.readUIntLE=function readUIntLE(offset2,byteLength3,noAssert){offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert)checkOffset(offset2,byteLength3,this.length);let val=this[offset2];let mul3=1;let i22=0;while(++i22<byteLength3&&(mul3*=256)){val+=this[offset2+i22]*mul3}return val};Buffer2.prototype.readUintBE=Buffer2.prototype.readUIntBE=function readUIntBE(offset2,byteLength3,noAssert){offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert){checkOffset(offset2,byteLength3,this.length)}let val=this[offset2+--byteLength3];let mul3=1;while(byteLength3>0&&(mul3*=256)){val+=this[offset2+--byteLength3]*mul3}return val};Buffer2.prototype.readUint8=Buffer2.prototype.readUInt8=function readUInt8(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,1,this.length);return this[offset2]};Buffer2.prototype.readUint16LE=Buffer2.prototype.readUInt16LE=function readUInt16LE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,2,this.length);return this[offset2]|this[offset2+1]<<8};Buffer2.prototype.readUint16BE=Buffer2.prototype.readUInt16BE=function readUInt16BE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,2,this.length);return this[offset2]<<8|this[offset2+1]};Buffer2.prototype.readUint32LE=Buffer2.prototype.readUInt32LE=function readUInt32LE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return(this[offset2]|this[offset2+1]<<8|this[offset2+2]<<16)+this[offset2+3]*16777216};Buffer2.prototype.readUint32BE=Buffer2.prototype.readUInt32BE=function readUInt32BE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return this[offset2]*16777216+(this[offset2+1]<<16|this[offset2+2]<<8|this[offset2+3])};Buffer2.prototype.readBigUInt64LE=defineBigIntMethod(function readBigUInt64LE(offset2){offset2=offset2>>>0;validateNumber2(offset2,"offset");const first=this[offset2];const last=this[offset2+7];if(first===void 0||last===void 0){boundsError(offset2,this.length-8)}const lo2=first+this[++offset2]*2**8+this[++offset2]*2**16+this[++offset2]*2**24;const hi2=this[++offset2]+this[++offset2]*2**8+this[++offset2]*2**16+last*2**24;return BigInt(lo2)+(BigInt(hi2)<<BigInt(32))});Buffer2.prototype.readBigUInt64BE=defineBigIntMethod(function readBigUInt64BE(offset2){offset2=offset2>>>0;validateNumber2(offset2,"offset");const first=this[offset2];const last=this[offset2+7];if(first===void 0||last===void 0){boundsError(offset2,this.length-8)}const hi2=first*2**24+this[++offset2]*2**16+this[++offset2]*2**8+this[++offset2];const lo2=this[++offset2]*2**24+this[++offset2]*2**16+this[++offset2]*2**8+last;return(BigInt(hi2)<<BigInt(32))+BigInt(lo2)});Buffer2.prototype.readIntLE=function readIntLE(offset2,byteLength3,noAssert){offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert)checkOffset(offset2,byteLength3,this.length);let val=this[offset2];let mul3=1;let i22=0;while(++i22<byteLength3&&(mul3*=256)){val+=this[offset2+i22]*mul3}mul3*=128;if(val>=mul3)val-=Math.pow(2,8*byteLength3);return val};Buffer2.prototype.readIntBE=function readIntBE(offset2,byteLength3,noAssert){offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert)checkOffset(offset2,byteLength3,this.length);let i22=byteLength3;let mul3=1;let val=this[offset2+--i22];while(i22>0&&(mul3*=256)){val+=this[offset2+--i22]*mul3}mul3*=128;if(val>=mul3)val-=Math.pow(2,8*byteLength3);return val};Buffer2.prototype.readInt8=function readInt8(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,1,this.length);if(!(this[offset2]&128))return this[offset2];return(255-this[offset2]+1)*-1};Buffer2.prototype.readInt16LE=function readInt16LE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,2,this.length);const val=this[offset2]|this[offset2+1]<<8;return val&32768?val|4294901760:val};Buffer2.prototype.readInt16BE=function readInt16BE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,2,this.length);const val=this[offset2+1]|this[offset2]<<8;return val&32768?val|4294901760:val};Buffer2.prototype.readInt32LE=function readInt32LE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return this[offset2]|this[offset2+1]<<8|this[offset2+2]<<16|this[offset2+3]<<24};Buffer2.prototype.readInt32BE=function readInt32BE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return this[offset2]<<24|this[offset2+1]<<16|this[offset2+2]<<8|this[offset2+3]};Buffer2.prototype.readBigInt64LE=defineBigIntMethod(function readBigInt64LE(offset2){offset2=offset2>>>0;validateNumber2(offset2,"offset");const first=this[offset2];const last=this[offset2+7];if(first===void 0||last===void 0){boundsError(offset2,this.length-8)}const val=this[offset2+4]+this[offset2+5]*2**8+this[offset2+6]*2**16+(last<<24);return(BigInt(val)<<BigInt(32))+BigInt(first+this[++offset2]*2**8+this[++offset2]*2**16+this[++offset2]*2**24)});Buffer2.prototype.readBigInt64BE=defineBigIntMethod(function readBigInt64BE(offset2){offset2=offset2>>>0;validateNumber2(offset2,"offset");const first=this[offset2];const last=this[offset2+7];if(first===void 0||last===void 0){boundsError(offset2,this.length-8)}const val=(first<<24)+this[++offset2]*2**16+this[++offset2]*2**8+this[++offset2];return(BigInt(val)<<BigInt(32))+BigInt(this[++offset2]*2**24+this[++offset2]*2**16+this[++offset2]*2**8+last)});Buffer2.prototype.readFloatLE=function readFloatLE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return ieee754$1.read(this,offset2,true,23,4)};Buffer2.prototype.readFloatBE=function readFloatBE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,4,this.length);return ieee754$1.read(this,offset2,false,23,4)};Buffer2.prototype.readDoubleLE=function readDoubleLE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,8,this.length);return ieee754$1.read(this,offset2,true,52,8)};Buffer2.prototype.readDoubleBE=function readDoubleBE(offset2,noAssert){offset2=offset2>>>0;if(!noAssert)checkOffset(offset2,8,this.length);return ieee754$1.read(this,offset2,false,52,8)};function checkInt(buf,value,offset2,ext2,max2,min2){if(!Buffer2.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max2||value<min2)throw new RangeError('"value" argument is out of bounds');if(offset2+ext2>buf.length)throw new RangeError("Index out of range")}Buffer2.prototype.writeUintLE=Buffer2.prototype.writeUIntLE=function writeUIntLE(value,offset2,byteLength3,noAssert){value=+value;offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert){const maxBytes=Math.pow(2,8*byteLength3)-1;checkInt(this,value,offset2,byteLength3,maxBytes,0)}let mul3=1;let i22=0;this[offset2]=value&255;while(++i22<byteLength3&&(mul3*=256)){this[offset2+i22]=value/mul3&255}return offset2+byteLength3};Buffer2.prototype.writeUintBE=Buffer2.prototype.writeUIntBE=function writeUIntBE(value,offset2,byteLength3,noAssert){value=+value;offset2=offset2>>>0;byteLength3=byteLength3>>>0;if(!noAssert){const maxBytes=Math.pow(2,8*byteLength3)-1;checkInt(this,value,offset2,byteLength3,maxBytes,0)}let i22=byteLength3-1;let mul3=1;this[offset2+i22]=value&255;while(--i22>=0&&(mul3*=256)){this[offset2+i22]=value/mul3&255}return offset2+byteLength3};Buffer2.prototype.writeUint8=Buffer2.prototype.writeUInt8=function writeUInt8(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,1,255,0);this[offset2]=value&255;return offset2+1};Buffer2.prototype.writeUint16LE=Buffer2.prototype.writeUInt16LE=function writeUInt16LE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,2,65535,0);this[offset2]=value&255;this[offset2+1]=value>>>8;return offset2+2};Buffer2.prototype.writeUint16BE=Buffer2.prototype.writeUInt16BE=function writeUInt16BE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,2,65535,0);this[offset2]=value>>>8;this[offset2+1]=value&255;return offset2+2};Buffer2.prototype.writeUint32LE=Buffer2.prototype.writeUInt32LE=function writeUInt32LE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,4,4294967295,0);this[offset2+3]=value>>>24;this[offset2+2]=value>>>16;this[offset2+1]=value>>>8;this[offset2]=value&255;return offset2+4};Buffer2.prototype.writeUint32BE=Buffer2.prototype.writeUInt32BE=function writeUInt32BE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,4,4294967295,0);this[offset2]=value>>>24;this[offset2+1]=value>>>16;this[offset2+2]=value>>>8;this[offset2+3]=value&255;return offset2+4};function wrtBigUInt64LE(buf,value,offset2,min2,max2){checkIntBI(value,min2,max2,buf,offset2,7);let lo2=Number(value&BigInt(4294967295));buf[offset2++]=lo2;lo2=lo2>>8;buf[offset2++]=lo2;lo2=lo2>>8;buf[offset2++]=lo2;lo2=lo2>>8;buf[offset2++]=lo2;let hi2=Number(value>>BigInt(32)&BigInt(4294967295));buf[offset2++]=hi2;hi2=hi2>>8;buf[offset2++]=hi2;hi2=hi2>>8;buf[offset2++]=hi2;hi2=hi2>>8;buf[offset2++]=hi2;return offset2}function wrtBigUInt64BE(buf,value,offset2,min2,max2){checkIntBI(value,min2,max2,buf,offset2,7);let lo2=Number(value&BigInt(4294967295));buf[offset2+7]=lo2;lo2=lo2>>8;buf[offset2+6]=lo2;lo2=lo2>>8;buf[offset2+5]=lo2;lo2=lo2>>8;buf[offset2+4]=lo2;let hi2=Number(value>>BigInt(32)&BigInt(4294967295));buf[offset2+3]=hi2;hi2=hi2>>8;buf[offset2+2]=hi2;hi2=hi2>>8;buf[offset2+1]=hi2;hi2=hi2>>8;buf[offset2]=hi2;return offset2+8}Buffer2.prototype.writeBigUInt64LE=defineBigIntMethod(function writeBigUInt64LE(value,offset2=0){return wrtBigUInt64LE(this,value,offset2,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer2.prototype.writeBigUInt64BE=defineBigIntMethod(function writeBigUInt64BE(value,offset2=0){return wrtBigUInt64BE(this,value,offset2,BigInt(0),BigInt("0xffffffffffffffff"))});Buffer2.prototype.writeIntLE=function writeIntLE(value,offset2,byteLength3,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert){const limit=Math.pow(2,8*byteLength3-1);checkInt(this,value,offset2,byteLength3,limit-1,-limit)}let i22=0;let mul3=1;let sub=0;this[offset2]=value&255;while(++i22<byteLength3&&(mul3*=256)){if(value<0&&sub===0&&this[offset2+i22-1]!==0){sub=1}this[offset2+i22]=(value/mul3>>0)-sub&255}return offset2+byteLength3};Buffer2.prototype.writeIntBE=function writeIntBE(value,offset2,byteLength3,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert){const limit=Math.pow(2,8*byteLength3-1);checkInt(this,value,offset2,byteLength3,limit-1,-limit)}let i22=byteLength3-1;let mul3=1;let sub=0;this[offset2+i22]=value&255;while(--i22>=0&&(mul3*=256)){if(value<0&&sub===0&&this[offset2+i22+1]!==0){sub=1}this[offset2+i22]=(value/mul3>>0)-sub&255}return offset2+byteLength3};Buffer2.prototype.writeInt8=function writeInt8(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,1,127,-128);if(value<0)value=255+value+1;this[offset2]=value&255;return offset2+1};Buffer2.prototype.writeInt16LE=function writeInt16LE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,2,32767,-32768);this[offset2]=value&255;this[offset2+1]=value>>>8;return offset2+2};Buffer2.prototype.writeInt16BE=function writeInt16BE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,2,32767,-32768);this[offset2]=value>>>8;this[offset2+1]=value&255;return offset2+2};Buffer2.prototype.writeInt32LE=function writeInt32LE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,4,2147483647,-2147483648);this[offset2]=value&255;this[offset2+1]=value>>>8;this[offset2+2]=value>>>16;this[offset2+3]=value>>>24;return offset2+4};Buffer2.prototype.writeInt32BE=function writeInt32BE(value,offset2,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert)checkInt(this,value,offset2,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;this[offset2]=value>>>24;this[offset2+1]=value>>>16;this[offset2+2]=value>>>8;this[offset2+3]=value&255;return offset2+4};Buffer2.prototype.writeBigInt64LE=defineBigIntMethod(function writeBigInt64LE(value,offset2=0){return wrtBigUInt64LE(this,value,offset2,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Buffer2.prototype.writeBigInt64BE=defineBigIntMethod(function writeBigInt64BE(value,offset2=0){return wrtBigUInt64BE(this,value,offset2,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function checkIEEE754(buf,value,offset2,ext2,max2,min2){if(offset2+ext2>buf.length)throw new RangeError("Index out of range");if(offset2<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset2,littleEndian,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert){checkIEEE754(buf,value,offset2,4)}ieee754$1.write(buf,value,offset2,littleEndian,23,4);return offset2+4}Buffer2.prototype.writeFloatLE=function writeFloatLE(value,offset2,noAssert){return writeFloat(this,value,offset2,true,noAssert)};Buffer2.prototype.writeFloatBE=function writeFloatBE(value,offset2,noAssert){return writeFloat(this,value,offset2,false,noAssert)};function writeDouble(buf,value,offset2,littleEndian,noAssert){value=+value;offset2=offset2>>>0;if(!noAssert){checkIEEE754(buf,value,offset2,8)}ieee754$1.write(buf,value,offset2,littleEndian,52,8);return offset2+8}Buffer2.prototype.writeDoubleLE=function writeDoubleLE(value,offset2,noAssert){return writeDouble(this,value,offset2,true,noAssert)};Buffer2.prototype.writeDoubleBE=function writeDoubleBE(value,offset2,noAssert){return writeDouble(this,value,offset2,false,noAssert)};Buffer2.prototype.copy=function copy2(target,targetStart,start,end){if(!Buffer2.isBuffer(target))throw new TypeError("argument should be a Buffer");if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end<start)end=start;if(end===start)return 0;if(target.length===0||this.length===0)return 0;if(targetStart<0){throw new RangeError("targetStart out of bounds")}if(start<0||start>=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-targetStart<end-start){end=target.length-targetStart+start}const len2=end-start;if(this===target&&typeof Uint8Array.prototype.copyWithin==="function"){this.copyWithin(targetStart,start,end)}else{Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart)}return len2};Buffer2.prototype.fill=function fill2(val,start,end,encoding){if(typeof val==="string"){if(typeof start==="string"){encoding=start;start=0;end=this.length}else if(typeof end==="string"){encoding=end;end=this.length}if(encoding!==void 0&&typeof encoding!=="string"){throw new TypeError("encoding must be a string")}if(typeof encoding==="string"&&!Buffer2.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}if(val.length===1){const code22=val.charCodeAt(0);if(encoding==="utf8"&&code22<128||encoding==="latin1"){val=code22}}}else if(typeof val==="number"){val=val&255}else if(typeof val==="boolean"){val=Number(val)}if(start<0||this.length<start||this.length<end){throw new RangeError("Out of range index")}if(end<=start){return this}start=start>>>0;end=end===void 0?this.length:end>>>0;if(!val)val=0;let i22;if(typeof val==="number"){for(i22=start;i22<end;++i22){this[i22]=val}}else{const bytes2=Buffer2.isBuffer(val)?val:Buffer2.from(val,encoding);const len2=bytes2.length;if(len2===0){throw new TypeError('The value "'+val+'" is invalid for argument "value"')}for(i22=0;i22<end-start;++i22){this[i22+start]=bytes2[i22%len2]}}return this};const errors={};function E10(sym,getMessage,Base){errors[sym]=class NodeError extends Base{constructor(){super();Object.defineProperty(this,"message",{value:getMessage.apply(this,arguments),writable:true,configurable:true});this.name=`${this.name} [${sym}]`;this.stack;delete this.name}get code(){return sym}set code(value){Object.defineProperty(this,"code",{configurable:true,enumerable:true,value,writable:true})}toString(){return`${this.name} [${sym}]: ${this.message}`}}}E10("ERR_BUFFER_OUT_OF_BOUNDS",function(name){if(name){return`${name} is outside of buffer bounds`}return"Attempt to access memory outside buffer bounds"},RangeError);E10("ERR_INVALID_ARG_TYPE",function(name,actual){return`The "${name}" argument must be of type number. Received type ${typeof actual}`},TypeError);E10("ERR_OUT_OF_RANGE",function(str,range22,input){let msg2=`The value of "${str}" is out of range.`;let received=input;if(Number.isInteger(input)&&Math.abs(input)>2**32){received=addNumericalSeparator(String(input))}else if(typeof input==="bigint"){received=String(input);if(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32))){received=addNumericalSeparator(received)}received+="n"}msg2+=` It must be ${range22}. Received ${received}`;return msg2},RangeError);function addNumericalSeparator(val){let res="";let i22=val.length;const start=val[0]==="-"?1:0;for(;i22>=start+4;i22-=3){res=`_${val.slice(i22-3,i22)}${res}`}return`${val.slice(0,i22)}${res}`}function checkBounds(buf,offset2,byteLength3){validateNumber2(offset2,"offset");if(buf[offset2]===void 0||buf[offset2+byteLength3]===void 0){boundsError(offset2,buf.length-(byteLength3+1))}}function checkIntBI(value,min2,max2,buf,offset2,byteLength3){if(value>max2||value<min2){const n8=typeof min2==="bigint"?"n":"";let range22;{if(min2===0||min2===BigInt(0)){range22=`>= 0${n8} and < 2${n8} ** ${(byteLength3+1)*8}${n8}`}else{range22=`>= -(2${n8} ** ${(byteLength3+1)*8-1}${n8}) and < 2 ** ${(byteLength3+1)*8-1}${n8}`}}throw new errors.ERR_OUT_OF_RANGE("value",range22,value)}checkBounds(buf,offset2,byteLength3)}function validateNumber2(value,name){if(typeof value!=="number"){throw new errors.ERR_INVALID_ARG_TYPE(name,"number",value)}}function boundsError(value,length,type2){if(Math.floor(value)!==value){validateNumber2(value,type2);throw new errors.ERR_OUT_OF_RANGE("offset","an integer",value)}if(length<0){throw new errors.ERR_BUFFER_OUT_OF_BOUNDS}throw new errors.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${length}`,value)}const INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){str=str.split("=")[0];str=str.trim().replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function utf8ToBytes(string,units){units=units||Infinity;let codePoint;const length=string.length;let leadSurrogate=null;const bytes2=[];for(let i22=0;i22<length;++i22){codePoint=string.charCodeAt(i22);if(codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){if((units-=3)>-1)bytes2.push(239,191,189);continue}else if(i22+1===length){if((units-=3)>-1)bytes2.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){if((units-=3)>-1)bytes2.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else if(leadSurrogate){if((units-=3)>-1)bytes2.push(239,191,189)}leadSurrogate=null;if(codePoint<128){if((units-=1)<0)break;bytes2.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes2.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes2.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes2.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes2}function asciiToBytes(str){const byteArray=[];for(let i22=0;i22<str.length;++i22){byteArray.push(str.charCodeAt(i22)&255)}return byteArray}function utf16leToBytes(str,units){let c,hi2,lo2;const byteArray=[];for(let i22=0;i22<str.length;++i22){if((units-=2)<0)break;c=str.charCodeAt(i22);hi2=c>>8;lo2=c%256;byteArray.push(lo2);byteArray.push(hi2)}return byteArray}function base64ToBytes(str){return base6422.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset2,length){let i22;for(i22=0;i22<length;++i22){if(i22+offset2>=dst.length||i22>=src.length)break;dst[i22+offset2]=src[i22]}return i22}function isInstance(obj,type2){return obj instanceof type2||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type2.name}function numberIsNaN(obj){return obj!==obj}const hexSliceLookupTable=(function(){const alphabet="0123456789abcdef";const table=new Array(256);for(let i22=0;i22<16;++i22){const i16=i22*16;for(let j=0;j<16;++j){table[i16+j]=alphabet[i22]+alphabet[j]}}return table})();function defineBigIntMethod(fn2){return typeof BigInt==="undefined"?BufferBigIntNotDefined:fn2}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}})(buffer);(function(module,exports$1){var buffer$1=buffer;var Buffer2=buffer$1.Buffer;function copyProps(src,dst){for(var key in src){dst[key]=src[key]}}if(Buffer2.from&&Buffer2.alloc&&Buffer2.allocUnsafe&&Buffer2.allocUnsafeSlow){module.exports=buffer$1}else{copyProps(buffer$1,exports$1);exports$1.Buffer=SafeBuffer}function SafeBuffer(arg,encodingOrOffset,length){return Buffer2(arg,encodingOrOffset,length)}SafeBuffer.prototype=Object.create(Buffer2.prototype);copyProps(Buffer2,SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if(typeof arg==="number"){throw new TypeError("Argument must not be a number")}return Buffer2(arg,encodingOrOffset,length)};SafeBuffer.alloc=function(size,fill2,encoding){if(typeof size!=="number"){throw new TypeError("Argument must be a number")}var buf=Buffer2(size);if(fill2!==void 0){if(typeof encoding==="string"){buf.fill(fill2,encoding)}else{buf.fill(fill2)}}else{buf.fill(0)}return buf};SafeBuffer.allocUnsafe=function(size){if(typeof size!=="number"){throw new TypeError("Argument must be a number")}return Buffer2(size)};SafeBuffer.allocUnsafeSlow=function(size){if(typeof size!=="number"){throw new TypeError("Argument must be a number")}return buffer$1.SlowBuffer(size)}})(safeBuffer,safeBuffer.exports);var safeBufferExports=safeBuffer.exports;var toString$12={}.toString;var isarray=Array.isArray||function(arr){return toString$12.call(arr)=="[object Array]"};var type=TypeError;var esObjectAtoms=Object;var esErrors=Error;var _eval=EvalError;var range2=RangeError;var ref$1=ReferenceError;var syntax=SyntaxError;var uri=URIError;var abs$1=Math.abs;var floor$1=Math.floor;var max$2=Math.max;var min$1=Math.min;var pow$1=Math.pow;var round$1=Math.round;var _isNaN=Number.isNaN||function isNaN2(a){return a!==a};var $isNaN=_isNaN;var sign$2=function sign2(number){if($isNaN(number)||number===0){return number}return number<0?-1:1};var gOPD=Object.getOwnPropertyDescriptor;var $gOPD$1=gOPD;if($gOPD$1){try{$gOPD$1([],"length")}catch(e2){$gOPD$1=null}}var gopd=$gOPD$1;var $defineProperty$1=Object.defineProperty||false;if($defineProperty$1){try{$defineProperty$1({},"a",{value:1})}catch(e2){$defineProperty$1=false}}var esDefineProperty=$defineProperty$1;var shams$1;var hasRequiredShams$1;function requireShams$1(){if(hasRequiredShams$1)return shams$1;hasRequiredShams$1=1;shams$1=function hasSymbols2(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var obj={};var sym=Symbol("test");var symObj=Object(sym);if(typeof sym==="string"){return false}if(Object.prototype.toString.call(sym)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(symObj)!=="[object Symbol]"){return false}var symVal=42;obj[sym]=symVal;for(var _ in obj){return false}if(typeof Object.keys==="function"&&Object.keys(obj).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(obj).length!==0){return false}var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym){return false}if(!Object.prototype.propertyIsEnumerable.call(obj,sym)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==true){return false}}return true};return shams$1}var hasSymbols$1;var hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var origSymbol=typeof Symbol!=="undefined"&&Symbol;var hasSymbolSham=requireShams$1();hasSymbols$1=function hasNativeSymbols(){if(typeof origSymbol!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof origSymbol("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return hasSymbolSham()};return hasSymbols$1}var Reflect_getPrototypeOf;var hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){if(hasRequiredReflect_getPrototypeOf)return Reflect_getPrototypeOf;hasRequiredReflect_getPrototypeOf=1;Reflect_getPrototypeOf=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null;return Reflect_getPrototypeOf}var Object_getPrototypeOf;var hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var $Object2=esObjectAtoms;Object_getPrototypeOf=$Object2.getPrototypeOf||null;return Object_getPrototypeOf}var ERROR_MESSAGE="Function.prototype.bind called on incompatible ";var toStr=Object.prototype.toString;var max$1=Math.max;var funcType="[object Function]";var concatty=function concatty2(a,b){var arr=[];for(var i22=0;i22<a.length;i22+=1){arr[i22]=a[i22]}for(var j=0;j<b.length;j+=1){arr[j+a.length]=b[j]}return arr};var slicy=function slicy2(arrLike,offset2){var arr=[];for(var i22=offset2,j=0;i22<arrLike.length;i22+=1,j+=1){arr[j]=arrLike[i22]}return arr};var joiny=function(arr,joiner){var str="";for(var i22=0;i22<arr.length;i22+=1){str+=arr[i22];if(i22+1<arr.length){str+=joiner}}return str};var implementation$1=function bind2(that){var target=this;if(typeof target!=="function"||toStr.apply(target)!==funcType){throw new TypeError(ERROR_MESSAGE+target)}var args=slicy(arguments,1);var bound;var binder=function(){if(this instanceof bound){var result=target.apply(this,concatty(args,arguments));if(Object(result)===result){return result}return this}return target.apply(that,concatty(args,arguments))};var boundLength=max$1(0,target.length-args.length);var boundArgs=[];for(var i22=0;i22<boundLength;i22++){boundArgs[i22]="$"+i22}bound=Function("binder","return function ("+joiny(boundArgs,",")+"){ return binder.apply(this,arguments); }")(binder);if(target.prototype){var Empty=function Empty2(){};Empty.prototype=target.prototype;bound.prototype=new Empty;Empty.prototype=null}return bound};var implementation=implementation$1;var functionBind=Function.prototype.bind||implementation;var functionCall=Function.prototype.call;var functionApply;var hasRequiredFunctionApply;function requireFunctionApply(){if(hasRequiredFunctionApply)return functionApply;hasRequiredFunctionApply=1;functionApply=Function.prototype.apply;return functionApply}var reflectApply=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply;var bind$2=functionBind;var $apply$1=requireFunctionApply();var $call$2=functionCall;var $reflectApply=reflectApply;var actualApply=$reflectApply||bind$2.call($call$2,$apply$1);var bind$1=functionBind;var $TypeError$2=type;var $call$1=functionCall;var $actualApply=actualApply;var callBindApplyHelpers=function callBindBasic2(args){if(args.length<1||typeof args[0]!=="function"){throw new $TypeError$2("a function is required")}return $actualApply(bind$1,$call$1,args)};var get;var hasRequiredGet;function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var callBind2=callBindApplyHelpers;var gOPD2=gopd;var hasProtoAccessor;try{hasProtoAccessor=[].__proto__===Array.prototype}catch(e2){if(!e2||typeof e2!=="object"||!("code"in e2)||e2.code!=="ERR_PROTO_ACCESS"){throw e2}}var desc=!!hasProtoAccessor&&gOPD2&&gOPD2(Object.prototype,"__proto__");var $Object2=Object;var $getPrototypeOf=$Object2.getPrototypeOf;get=desc&&typeof desc.get==="function"?callBind2([desc.get]):typeof $getPrototypeOf==="function"?(function getDunder(value){return $getPrototypeOf(value==null?value:$Object2(value))}):false;return get}var getProto$1;var hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto$1;hasRequiredGetProto=1;var reflectGetProto=requireReflect_getPrototypeOf();var originalGetProto=requireObject_getPrototypeOf();var getDunderProto=requireGet();getProto$1=reflectGetProto?function getProto2(O){return reflectGetProto(O)}:originalGetProto?function getProto2(O){if(!O||typeof O!=="object"&&typeof O!=="function"){throw new TypeError("getProto: not an object")}return originalGetProto(O)}:getDunderProto?function getProto2(O){return getDunderProto(O)}:null;return getProto$1}var hasown;var hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var call=Function.prototype.call;var $hasOwn=Object.prototype.hasOwnProperty;var bind3=functionBind;hasown=bind3.call(call,$hasOwn);return hasown}var undefined$1;var $Object=esObjectAtoms;var $Error=esErrors;var $EvalError=_eval;var $RangeError=range2;var $ReferenceError=ref$1;var $SyntaxError=syntax;var $TypeError$1=type;var $URIError=uri;var abs=abs$1;var floor=floor$1;var max=max$2;var min=min$1;var pow=pow$1;var round=round$1;var sign$1=sign$2;var $Function=Function;var getEvalledConstructor=function(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+").constructor;")()}catch(e2){}};var $gOPD=gopd;var $defineProperty=esDefineProperty;var throwTypeError=function(){throw new $TypeError$1};var ThrowTypeError=$gOPD?(function(){try{arguments.callee;return throwTypeError}catch(calleeThrows){try{return $gOPD(arguments,"callee").get}catch(gOPDthrows){return throwTypeError}}})():throwTypeError;var hasSymbols=requireHasSymbols()();var getProto=requireGetProto();var $ObjectGPO=requireObject_getPrototypeOf();var $ReflectGPO=requireReflect_getPrototypeOf();var $apply=requireFunctionApply();var $call=functionCall;var needsEval={};var TypedArray=typeof Uint8Array==="undefined"||!getProto?undefined$1:getProto(Uint8Array);var INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics==="undefined"?undefined$1:Atomics,"%BigInt%":typeof BigInt==="undefined"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array==="undefined"?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array==="undefined"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array==="undefined"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON==="object"?JSON:undefined$1,"%Map%":typeof Map==="undefined"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?undefined$1:Promise,"%Proxy%":typeof Proxy==="undefined"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect==="undefined"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array==="undefined"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap==="undefined"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round,"%Math.sign%":sign$1,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto){try{null.error}catch(e2){errorProto=getProto(getProto(e2));INTRINSICS["%Error.prototype%"]=errorProto}}var errorProto;var doEval=function doEval2(name){var value;if(name==="%AsyncFunction%"){value=getEvalledConstructor("async function () {}")}else if(name==="%GeneratorFunction%"){value=getEvalledConstructor("function* () {}")}else if(name==="%AsyncGeneratorFunction%"){value=getEvalledConstructor("async function* () {}")}else if(name==="%AsyncGenerator%"){var fn2=doEval2("%AsyncGeneratorFunction%");if(fn2){value=fn2.prototype}}else if(name==="%AsyncIteratorPrototype%"){var gen=doEval2("%AsyncGenerator%");if(gen&&getProto){value=getProto(gen.prototype)}}INTRINSICS[name]=value;return value};var LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var bind=functionBind;var hasOwn$1=requireHasown();var $concat=bind.call($call,Array.prototype.concat);var $spliceApply=bind.call($apply,Array.prototype.splice);var $replace=bind.call($call,String.prototype.replace);var $strSlice=bind.call($call,String.prototype.slice);var $exec=bind.call($call,RegExp.prototype.exec);var rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=function stringToPath2(string){var first=$strSlice(string,0,1);var last=$strSlice(string,-1);if(first==="%"&&last!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`")}else if(last==="%"&&first!=="%"){throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`")}var result=[];$replace(string,rePropName,function(match2,number,quote2,subString){result[result.length]=quote2?$replace(subString,reEscapeChar,"$1"):number||match2});return result};var getBaseIntrinsic=function getBaseIntrinsic2(name,allowMissing){var intrinsicName=name;var alias;if(hasOwn$1(LEGACY_ALIASES,intrinsicName)){alias=LEGACY_ALIASES[intrinsicName];intrinsicName="%"+alias[0]+"%"}if(hasOwn$1(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval){value=doEval(intrinsicName)}if(typeof value==="undefined"&&!allowMissing){throw new $TypeError$1("intrinsic "+name+" exists, but is not available. Please file an issue!")}return{alias,name:intrinsicName,value}}throw new $SyntaxError("intrinsic "+name+" does not exist!")};var getIntrinsic=function GetIntrinsic2(name,allowMissing){if(typeof name!=="string"||name.length===0){throw new $TypeError$1("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof allowMissing!=="boolean"){throw new $TypeError$1('"allowMissing" argument must be a boolean')}if($exec(/^%?[^%]*%?$/,name)===null){throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var parts=stringToPath(name);var intrinsicBaseName=parts.length>0?parts[0]:"";var intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing);var intrinsicRealName=intrinsic.name;var value=intrinsic.value;var skipFurtherCaching=false;var alias=intrinsic.alias;if(alias){intrinsicBaseName=alias[0];$spliceApply(parts,$concat([0,1],alias))}for(var i22=1,isOwn=true;i22<parts.length;i22+=1){var part=parts[i22];var first=$strSlice(part,0,1);var last=$strSlice(part,-1);if((first==='"'||first==="'"||first==="`"||(last==='"'||last==="'"||last==="`"))&&first!==last){throw new $SyntaxError("property names with quotes must have matching quotes")}if(part==="constructor"||!isOwn){skipFurtherCaching=true}intrinsicBaseName+="."+part;intrinsicRealName="%"+intrinsicBaseName+"%";if(hasOwn$1(INTRINSICS,intrinsicRealName)){value=INTRINSICS[intrinsicRealName]}else if(value!=null){if(!(part in value)){if(!allowMissing){throw new $TypeError$1("base intrinsic for "+name+" exists, but the property is not available.")}return void 0}if($gOPD&&i22+1>=parts.length){var desc=$gOPD(value,part);isOwn=!!desc;if(isOwn&&"get"in desc&&!("originalValue"in desc.get)){value=desc.get}else{value=value[part]}}else{isOwn=hasOwn$1(value,part);value=value[part]}if(isOwn&&!skipFurtherCaching){INTRINSICS[intrinsicRealName]=value}}}return value};var GetIntrinsic=getIntrinsic;var callBindBasic=callBindApplyHelpers;var $indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);var callBound$1=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);if(typeof intrinsic==="function"&&$indexOf(name,".prototype.")>-1){return callBindBasic([intrinsic])}return intrinsic};var isCallable;var hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var fnToStr=Function.prototype.toString;var reflectApply2=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply;var badArrayLike;var isCallableMarker;if(typeof reflectApply2==="function"&&typeof Object.defineProperty==="function"){try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}});isCallableMarker={};reflectApply2(function(){throw 42},null,badArrayLike)}catch(_){if(_!==isCallableMarker){reflectApply2=null}}}else{reflectApply2=null}var constructorRegex=/^\s*class\b/;var isES6ClassFn=function isES6ClassFunction(value){try{var fnStr=fnToStr.call(value);return constructorRegex.test(fnStr)}catch(e2){return false}};var tryFunctionObject=function tryFunctionToStr(value){try{if(isES6ClassFn(value)){return false}fnToStr.call(value);return true}catch(e2){return false}};var toStr2=Object.prototype.toString;var objectClass="[object Object]";var fnClass="[object Function]";var genClass="[object GeneratorFunction]";var ddaClass="[object HTMLAllCollection]";var ddaClass2="[object HTML document.all class]";var ddaClass3="[object HTMLCollection]";var hasToStringTag=typeof Symbol==="function"&&!!Symbol.toStringTag;var isIE68=!(0 in[,]);var isDDA=function isDocumentDotAll(){return false};if(typeof document==="object"){var all=document.all;if(toStr2.call(all)===toStr2.call(document.all)){isDDA=function isDocumentDotAll2(value){if((isIE68||!value)&&(typeof value==="undefined"||typeof value==="object")){try{var str=toStr2.call(value);return(str===ddaClass||str===ddaClass2||str===ddaClass3||str===objectClass)&&value("")==null}catch(e2){}}return false}}}isCallable=reflectApply2?function isCallable2(value){if(isDDA(value)){return true}if(!value){return false}if(typeof value!=="function"&&typeof value!=="object"){return false}try{reflectApply2(value,null,badArrayLike)}catch(e2){if(e2!==isCallableMarker){return false}}return!isES6ClassFn(value)&&tryFunctionObject(value)}:function isCallable2(value){if(isDDA(value)){return true}if(!value){return false}if(typeof value!=="function"&&typeof value!=="object"){return false}if(hasToStringTag){return tryFunctionObject(value)}if(isES6ClassFn(value)){return false}var strClass=toStr2.call(value);if(strClass!==fnClass&&strClass!==genClass&&!/^\[object HTML/.test(strClass)){return false}return tryFunctionObject(value)};return isCallable}var forEach;var hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach;hasRequiredForEach=1;var isCallable2=requireIsCallable();var toStr2=Object.prototype.toString;var hasOwnProperty2=Object.prototype.hasOwnProperty;var forEachArray=function forEachArray2(array,iterator,receiver){for(var i22=0,len2=array.length;i22<len2;i22++){if(hasOwnProperty2.call(array,i22)){if(receiver==null){iterator(array[i22],i22,array)}else{iterator.call(receiver,array[i22],i22,array)}}}};var forEachString=function forEachString2(string,iterator,receiver){for(var i22=0,len2=string.length;i22<len2;i22++){if(receiver==null){iterator(string.charAt(i22),i22,string)}else{iterator.call(receiver,string.charAt(i22),i22,string)}}};var forEachObject=function forEachObject2(object,iterator,receiver){for(var k10 in object){if(hasOwnProperty2.call(object,k10)){if(receiver==null){iterator(object[k10],k10,object)}else{iterator.call(receiver,object[k10],k10,object)}}}};function isArray2(x){return toStr2.call(x)==="[object Array]"}forEach=function forEach2(list2,iterator,thisArg){if(!isCallable2(iterator)){throw new TypeError("iterator must be a function")}var receiver;if(arguments.length>=3){receiver=thisArg}if(isArray2(list2)){forEachArray(list2,iterator,receiver)}else if(typeof list2==="string"){forEachString(list2,iterator,receiver)}else{forEachObject(list2,iterator,receiver)}};return forEach}var possibleTypedArrayNames;var hasRequiredPossibleTypedArrayNames;function requirePossibleTypedArrayNames(){if(hasRequiredPossibleTypedArrayNames)return possibleTypedArrayNames;hasRequiredPossibleTypedArrayNames=1;possibleTypedArrayNames=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"];return possibleTypedArrayNames}var availableTypedArrays;var hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var possibleNames=requirePossibleTypedArrayNames();var g22=typeof globalThis==="undefined"?globalThis:globalThis;availableTypedArrays=function availableTypedArrays2(){var out=[];for(var i22=0;i22<possibleNames.length;i22++){if(typeof g22[possibleNames[i22]]==="function"){out[out.length]=possibleNames[i22]}}return out};return availableTypedArrays}var callBind={exports:{}};var defineDataProperty;var hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var $defineProperty2=esDefineProperty;var $SyntaxError2=syntax;var $TypeError2=type;var gopd$1=gopd;defineDataProperty=function defineDataProperty2(obj,property,value){if(!obj||typeof obj!=="object"&&typeof obj!=="function"){throw new $TypeError2("`obj` must be an object or a function`")}if(typeof property!=="string"&&typeof property!=="symbol"){throw new $TypeError2("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new $TypeError2("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new $TypeError2("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new $TypeError2("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new $TypeError2("`loose`, if provided, must be a boolean")}var nonEnumerable=arguments.length>3?arguments[3]:null;var nonWritable=arguments.length>4?arguments[4]:null;var nonConfigurable=arguments.length>5?arguments[5]:null;var loose=arguments.length>6?arguments[6]:false;var desc=!!gopd$1&&gopd$1(obj,property);if($defineProperty2){$defineProperty2(obj,property,{configurable:nonConfigurable===null&&desc?desc.configurable:!nonConfigurable,enumerable:nonEnumerable===null&&desc?desc.enumerable:!nonEnumerable,value,writable:nonWritable===null&&desc?desc.writable:!nonWritable})}else if(loose||!nonEnumerable&&!nonWritable&&!nonConfigurable){obj[property]=value}else{throw new $SyntaxError2("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}};return defineDataProperty}var hasPropertyDescriptors_1;var hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var $defineProperty2=esDefineProperty;var hasPropertyDescriptors=function hasPropertyDescriptors2(){return!!$defineProperty2};hasPropertyDescriptors.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!$defineProperty2){return null}try{return $defineProperty2([],"length",{value:1}).length!==1}catch(e2){return true}};hasPropertyDescriptors_1=hasPropertyDescriptors;return hasPropertyDescriptors_1}var setFunctionLength;var hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var GetIntrinsic3=getIntrinsic;var define2=requireDefineDataProperty();var hasDescriptors=requireHasPropertyDescriptors()();var gOPD2=gopd;var $TypeError2=type;var $floor=GetIntrinsic3("%Math.floor%");setFunctionLength=function setFunctionLength2(fn2,length){if(typeof fn2!=="function"){throw new $TypeError2("`fn` is not a function")}if(typeof length!=="number"||length<0||length>4294967295||$floor(length)!==length){throw new $TypeError2("`length` must be a positive 32-bit integer")}var loose=arguments.length>2&&!!arguments[2];var functionLengthIsConfigurable=true;var functionLengthIsWritable=true;if("length"in fn2&&gOPD2){var desc=gOPD2(fn2,"length");if(desc&&!desc.configurable){functionLengthIsConfigurable=false}if(desc&&!desc.writable){functionLengthIsWritable=false}}if(functionLengthIsConfigurable||functionLengthIsWritable||!loose){if(hasDescriptors){define2(fn2,"length",length,true,true)}else{define2(fn2,"length",length)}}return fn2};return setFunctionLength}var applyBind;var hasRequiredApplyBind;function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var bind3=functionBind;var $apply2=requireFunctionApply();var actualApply$1=actualApply;applyBind=function applyBind2(){return actualApply$1(bind3,$apply2,arguments)};return applyBind}var hasRequiredCallBind;function requireCallBind(){if(hasRequiredCallBind)return callBind.exports;hasRequiredCallBind=1;(function(module){var setFunctionLength2=requireSetFunctionLength();var $defineProperty2=esDefineProperty;var callBindBasic3=callBindApplyHelpers;var applyBind2=requireApplyBind();module.exports=function callBind2(originalFunction){var func=callBindBasic3(arguments);var adjustedLength=1+originalFunction.length-(arguments.length-1);return setFunctionLength2(func,adjustedLength>0?adjustedLength:0,true)};if($defineProperty2){$defineProperty2(module.exports,"apply",{value:applyBind2})}else{module.exports.apply=applyBind2}})(callBind);return callBind.exports}var shams;var hasRequiredShams;function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var hasSymbols2=requireShams$1();shams=function hasToStringTagShams(){return hasSymbols2()&&!!Symbol.toStringTag};return shams}var whichTypedArray;var hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var forEach2=requireForEach();var availableTypedArrays2=requireAvailableTypedArrays();var callBind2=requireCallBind();var callBound2=callBound$1;var gOPD2=gopd;var getProto2=requireGetProto();var $toString=callBound2("Object.prototype.toString");var hasToStringTag=requireShams()();var g22=typeof globalThis==="undefined"?globalThis:globalThis;var typedArrays=availableTypedArrays2();var $slice=callBound2("String.prototype.slice");var $indexOf2=callBound2("Array.prototype.indexOf",true)||function indexOf(array,value){for(var i22=0;i22<array.length;i22+=1){if(array[i22]===value){return i22}}return-1};var cache2={__proto__:null};if(hasToStringTag&&gOPD2&&getProto2){forEach2(typedArrays,function(typedArray){var arr=new g22[typedArray];if(Symbol.toStringTag in arr&&getProto2){var proto=getProto2(arr);var descriptor=gOPD2(proto,Symbol.toStringTag);if(!descriptor&&proto){var superProto=getProto2(proto);descriptor=gOPD2(superProto,Symbol.toStringTag)}if(descriptor&&descriptor.get){var bound=callBind2(descriptor.get);cache2["$"+typedArray]=bound}}})}else{forEach2(typedArrays,function(typedArray){var arr=new g22[typedArray];var fn2=arr.slice||arr.set;if(fn2){var bound=callBind2(fn2);cache2["$"+typedArray]=bound}})}function tryTypedArrays(value){var found=false;forEach2(cache2,function(getter,typedArray){if(!found){try{if("$"+getter(value)===typedArray){found=$slice(typedArray,1)}}catch(e2){}}});return found}function trySlices(value){var found=false;forEach2(cache2,function(getter,name){if(!found){try{getter(value);found=$slice(name,1)}catch(e2){}}});return found}function isTATag(tag){return $indexOf2(typedArrays,tag)>-1}whichTypedArray=function whichTypedArray2(value){if(!value||typeof value!=="object"){return false}if(!hasToStringTag){var tag=$slice($toString(value),8,-1);if(isTATag(tag)){return tag}if(tag!=="Object"){return false}return trySlices(value)}if(!gOPD2){return null}return tryTypedArrays(value)};return whichTypedArray}var isTypedArray$1;var hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray$1;hasRequiredIsTypedArray=1;var whichTypedArray2=requireWhichTypedArray();isTypedArray$1=function isTypedArray2(value){return!!whichTypedArray2(value)};return isTypedArray$1}var $TypeError=type;var callBound=callBound$1;var $typedArrayBuffer=callBound("TypedArray.prototype.buffer",true);var isTypedArray=requireIsTypedArray();var typedArrayBuffer$1=$typedArrayBuffer||function typedArrayBuffer2(x){if(!isTypedArray(x)){throw new $TypeError("Not a Typed Array")}return x.buffer};var Buffer$8=safeBufferExports.Buffer;var isArray$1=isarray;var typedArrayBuffer=typedArrayBuffer$1;var isView=ArrayBuffer.isView||function isView2(obj){try{typedArrayBuffer(obj);return true}catch(e2){return false}};var useUint8Array=typeof Uint8Array!=="undefined";var useArrayBuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";var useFromArrayBuffer=useArrayBuffer&&(Buffer$8.prototype instanceof Uint8Array||Buffer$8.TYPED_ARRAY_SUPPORT);var toBuffer$1=function toBuffer2(data2,encoding){if(Buffer$8.isBuffer(data2)){if(data2.constructor&&!("isBuffer"in data2)){return Buffer$8.from(data2)}return data2}if(typeof data2==="string"){return Buffer$8.from(data2,encoding)}if(useArrayBuffer&&isView(data2)){if(data2.byteLength===0){return Buffer$8.alloc(0)}if(useFromArrayBuffer){var res=Buffer$8.from(data2.buffer,data2.byteOffset,data2.byteLength);if(res.byteLength===data2.byteLength){return res}}var uint8=data2 instanceof Uint8Array?data2:new Uint8Array(data2.buffer,data2.byteOffset,data2.byteLength);var result=Buffer$8.from(uint8);if(result.length===data2.byteLength){return result}}if(useUint8Array&&data2 instanceof Uint8Array){return Buffer$8.from(data2)}var isArr=isArray$1(data2);if(isArr){for(var i22=0;i22<data2.length;i22+=1){var x=data2[i22];if(typeof x!=="number"||x<0||x>255||~~x!==x){throw new RangeError("Array items must be numbers in the range 0-255.")}}}if(isArr||Buffer$8.isBuffer(data2)&&data2.constructor&&typeof data2.constructor.isBuffer==="function"&&data2.constructor.isBuffer(data2)){return Buffer$8.from(data2)}throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')};var Buffer$7=safeBufferExports.Buffer;var toBuffer=toBuffer$1;function Hash$6(blockSize,finalSize){this._block=Buffer$7.alloc(blockSize);this._finalSize=finalSize;this._blockSize=blockSize;this._len=0}Hash$6.prototype.update=function(data2,enc){data2=toBuffer(data2,enc||"utf8");var block=this._block;var blockSize=this._blockSize;var length=data2.length;var accum=this._len;for(var offset2=0;offset2<length;){var assigned=accum%blockSize;var remainder=Math.min(length-offset2,blockSize-assigned);for(var i22=0;i22<remainder;i22++){block[assigned+i22]=data2[offset2+i22]}accum+=remainder;offset2+=remainder;if(accum%blockSize===0){this._update(block)}}this._len+=length;return this};Hash$6.prototype.digest=function(enc){var rem=this._len%this._blockSize;this._block[rem]=128;this._block.fill(0,rem+1);if(rem>=this._finalSize){this._update(this._block);this._block.fill(0)}var bits=this._len*8;if(bits<=4294967295){this._block.writeUInt32BE(bits,this._blockSize-4)}else{var lowBits=(bits&4294967295)>>>0;var highBits=(bits-lowBits)/4294967296;this._block.writeUInt32BE(highBits,this._blockSize-8);this._block.writeUInt32BE(lowBits,this._blockSize-4)}this._update(this._block);var hash22=this._hash();return enc?hash22.toString(enc):hash22};Hash$6.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$1=Hash$6;var inherits$5=inherits_browserExports;var Hash$5=hash$1;var Buffer$6=safeBufferExports.Buffer;var K$4=[1518500249,1859775393,2400959708|0,3395469782|0];var W$5=new Array(80);function Sha(){this.init();this._w=W$5;Hash$5.call(this,64,56)}inherits$5(Sha,Hash$5);Sha.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};function rotl5$1(num){return num<<5|num>>>27}function rotl30$1(num){return num<<30|num>>>2}function ft$1(s10,b,c,d){if(s10===0){return b&c|~b&d}if(s10===2){return b&c|b&d|c&d}return b^c^d}Sha.prototype._update=function(M10){var w=this._w;var a=this._a|0;var b=this._b|0;var c=this._c|0;var d=this._d|0;var e2=this._e|0;for(var i22=0;i22<16;++i22){w[i22]=M10.readInt32BE(i22*4)}for(;i22<80;++i22){w[i22]=w[i22-3]^w[i22-8]^w[i22-14]^w[i22-16]}for(var j=0;j<80;++j){var s10=~~(j/20);var t10=rotl5$1(a)+ft$1(s10,b,c,d)+e2+w[j]+K$4[s10]|0;e2=d;d=c;c=rotl30$1(b);b=a;a=t10}this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e2+this._e|0};Sha.prototype._hash=function(){var H=Buffer$6.allocUnsafe(20);H.writeInt32BE(this._a|0,0);H.writeInt32BE(this._b|0,4);H.writeInt32BE(this._c|0,8);H.writeInt32BE(this._d|0,12);H.writeInt32BE(this._e|0,16);return H};var sha=Sha;var inherits$4=inherits_browserExports;var Hash$4=hash$1;var Buffer$5=safeBufferExports.Buffer;var K$3=[1518500249,1859775393,2400959708|0,3395469782|0];var W$4=new Array(80);function Sha1(){this.init();this._w=W$4;Hash$4.call(this,64,56)}inherits$4(Sha1,Hash$4);Sha1.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};function rotl1(num){return num<<1|num>>>31}function rotl5(num){return num<<5|num>>>27}function rotl30(num){return num<<30|num>>>2}function ft(s10,b,c,d){if(s10===0){return b&c|~b&d}if(s10===2){return b&c|b&d|c&d}return b^c^d}Sha1.prototype._update=function(M10){var w=this._w;var a=this._a|0;var b=this._b|0;var c=this._c|0;var d=this._d|0;var e2=this._e|0;for(var i22=0;i22<16;++i22){w[i22]=M10.readInt32BE(i22*4)}for(;i22<80;++i22){w[i22]=rotl1(w[i22-3]^w[i22-8]^w[i22-14]^w[i22-16])}for(var j=0;j<80;++j){var s10=~~(j/20);var t10=rotl5(a)+ft(s10,b,c,d)+e2+w[j]+K$3[s10]|0;e2=d;d=c;c=rotl30(b);b=a;a=t10}this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e2+this._e|0};Sha1.prototype._hash=function(){var H=Buffer$5.allocUnsafe(20);H.writeInt32BE(this._a|0,0);H.writeInt32BE(this._b|0,4);H.writeInt32BE(this._c|0,8);H.writeInt32BE(this._d|0,12);H.writeInt32BE(this._e|0,16);return H};var sha1=Sha1;var inherits$3=inherits_browserExports;var Hash$3=hash$1;var Buffer$4=safeBufferExports.Buffer;var K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var W$3=new Array(64);function Sha256$1(){this.init();this._w=W$3;Hash$3.call(this,64,56)}inherits$3(Sha256$1,Hash$3);Sha256$1.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};function ch2(x,y,z10){return z10^x&(y^z10)}function maj$1(x,y,z10){return x&y|z10&(x|y)}function sigma0$1(x){return(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10)}function sigma1$1(x){return(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7)}function gamma0(x){return(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3}function gamma1(x){return(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10}Sha256$1.prototype._update=function(M10){var w=this._w;var a=this._a|0;var b=this._b|0;var c=this._c|0;var d=this._d|0;var e2=this._e|0;var f10=this._f|0;var g22=this._g|0;var h=this._h|0;for(var i22=0;i22<16;++i22){w[i22]=M10.readInt32BE(i22*4)}for(;i22<64;++i22){w[i22]=gamma1(w[i22-2])+w[i22-7]+gamma0(w[i22-15])+w[i22-16]|0}for(var j=0;j<64;++j){var T12=h+sigma1$1(e2)+ch2(e2,f10,g22)+K$2[j]+w[j]|0;var T22=sigma0$1(a)+maj$1(a,b,c)|0;h=g22;g22=f10;f10=e2;e2=d+T12|0;d=c;c=b;b=a;a=T12+T22|0}this._a=a+this._a|0;this._b=b+this._b|0;this._c=c+this._c|0;this._d=d+this._d|0;this._e=e2+this._e|0;this._f=f10+this._f|0;this._g=g22+this._g|0;this._h=h+this._h|0};Sha256$1.prototype._hash=function(){var H=Buffer$4.allocUnsafe(32);H.writeInt32BE(this._a,0);H.writeInt32BE(this._b,4);H.writeInt32BE(this._c,8);H.writeInt32BE(this._d,12);H.writeInt32BE(this._e,16);H.writeInt32BE(this._f,20);H.writeInt32BE(this._g,24);H.writeInt32BE(this._h,28);return H};var sha256$1=Sha256$1;var inherits$2=inherits_browserExports;var Sha256=sha256$1;var Hash$2=hash$1;var Buffer$3=safeBufferExports.Buffer;var W$2=new Array(64);function Sha224(){this.init();this._w=W$2;Hash$2.call(this,64,56)}inherits$2(Sha224,Sha256);Sha224.prototype.init=function(){this._a=3238371032;this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};Sha224.prototype._hash=function(){var H=Buffer$3.allocUnsafe(28);H.writeInt32BE(this._a,0);H.writeInt32BE(this._b,4);H.writeInt32BE(this._c,8);H.writeInt32BE(this._d,12);H.writeInt32BE(this._e,16);H.writeInt32BE(this._f,20);H.writeInt32BE(this._g,24);return H};var sha224=Sha224;var inherits$1=inherits_browserExports;var Hash$1=hash$1;var Buffer$2=safeBufferExports.Buffer;var K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];var W$1=new Array(160);function Sha512(){this.init();this._w=W$1;Hash$1.call(this,128,112)}inherits$1(Sha512,Hash$1);Sha512.prototype.init=function(){this._ah=1779033703;this._bh=3144134277;this._ch=1013904242;this._dh=2773480762;this._eh=1359893119;this._fh=2600822924;this._gh=528734635;this._hh=1541459225;this._al=4089235720;this._bl=2227873595;this._cl=4271175723;this._dl=1595750129;this._el=2917565137;this._fl=725511199;this._gl=4215389547;this._hl=327033209;return this};function Ch2(x,y,z10){return z10^x&(y^z10)}function maj(x,y,z10){return x&y|z10&(x|y)}function sigma0(x,xl2){return(x>>>28|xl2<<4)^(xl2>>>2|x<<30)^(xl2>>>7|x<<25)}function sigma1(x,xl2){return(x>>>14|xl2<<18)^(x>>>18|xl2<<14)^(xl2>>>9|x<<23)}function Gamma0(x,xl2){return(x>>>1|xl2<<31)^(x>>>8|xl2<<24)^x>>>7}function Gamma0l(x,xl2){return(x>>>1|xl2<<31)^(x>>>8|xl2<<24)^(x>>>7|xl2<<25)}function Gamma1(x,xl2){return(x>>>19|xl2<<13)^(xl2>>>29|x<<3)^x>>>6}function Gamma1l(x,xl2){return(x>>>19|xl2<<13)^(xl2>>>29|x<<3)^(x>>>6|xl2<<26)}function getCarry(a,b){return a>>>0<b>>>0?1:0}Sha512.prototype._update=function(M10){var w=this._w;var ah2=this._ah|0;var bh2=this._bh|0;var ch22=this._ch|0;var dh2=this._dh|0;var eh2=this._eh|0;var fh2=this._fh|0;var gh2=this._gh|0;var hh2=this._hh|0;var al2=this._al|0;var bl2=this._bl|0;var cl2=this._cl|0;var dl2=this._dl|0;var el2=this._el|0;var fl2=this._fl|0;var gl2=this._gl|0;var hl2=this._hl|0;for(var i22=0;i22<32;i22+=2){w[i22]=M10.readInt32BE(i22*4);w[i22+1]=M10.readInt32BE(i22*4+4)}for(;i22<160;i22+=2){var xh2=w[i22-15*2];var xl2=w[i22-15*2+1];var gamma02=Gamma0(xh2,xl2);var gamma0l=Gamma0l(xl2,xh2);xh2=w[i22-2*2];xl2=w[i22-2*2+1];var gamma12=Gamma1(xh2,xl2);var gamma1l=Gamma1l(xl2,xh2);var Wi7h=w[i22-7*2];var Wi7l=w[i22-7*2+1];var Wi16h=w[i22-16*2];var Wi16l=w[i22-16*2+1];var Wil=gamma0l+Wi7l|0;var Wih=gamma02+Wi7h+getCarry(Wil,gamma0l)|0;Wil=Wil+gamma1l|0;Wih=Wih+gamma12+getCarry(Wil,gamma1l)|0;Wil=Wil+Wi16l|0;Wih=Wih+Wi16h+getCarry(Wil,Wi16l)|0;w[i22]=Wih;w[i22+1]=Wil}for(var j=0;j<160;j+=2){Wih=w[j];Wil=w[j+1];var majh=maj(ah2,bh2,ch22);var majl=maj(al2,bl2,cl2);var sigma0h=sigma0(ah2,al2);var sigma0l=sigma0(al2,ah2);var sigma1h=sigma1(eh2,el2);var sigma1l=sigma1(el2,eh2);var Kih=K$1[j];var Kil=K$1[j+1];var chh=Ch2(eh2,fh2,gh2);var chl=Ch2(el2,fl2,gl2);var t1l=hl2+sigma1l|0;var t1h=hh2+sigma1h+getCarry(t1l,hl2)|0;t1l=t1l+chl|0;t1h=t1h+chh+getCarry(t1l,chl)|0;t1l=t1l+Kil|0;t1h=t1h+Kih+getCarry(t1l,Kil)|0;t1l=t1l+Wil|0;t1h=t1h+Wih+getCarry(t1l,Wil)|0;var t2l=sigma0l+majl|0;var t2h=sigma0h+majh+getCarry(t2l,sigma0l)|0;hh2=gh2;hl2=gl2;gh2=fh2;gl2=fl2;fh2=eh2;fl2=el2;el2=dl2+t1l|0;eh2=dh2+t1h+getCarry(el2,dl2)|0;dh2=ch22;dl2=cl2;ch22=bh2;cl2=bl2;bh2=ah2;bl2=al2;al2=t1l+t2l|0;ah2=t1h+t2h+getCarry(al2,t1l)|0}this._al=this._al+al2|0;this._bl=this._bl+bl2|0;this._cl=this._cl+cl2|0;this._dl=this._dl+dl2|0;this._el=this._el+el2|0;this._fl=this._fl+fl2|0;this._gl=this._gl+gl2|0;this._hl=this._hl+hl2|0;this._ah=this._ah+ah2+getCarry(this._al,al2)|0;this._bh=this._bh+bh2+getCarry(this._bl,bl2)|0;this._ch=this._ch+ch22+getCarry(this._cl,cl2)|0;this._dh=this._dh+dh2+getCarry(this._dl,dl2)|0;this._eh=this._eh+eh2+getCarry(this._el,el2)|0;this._fh=this._fh+fh2+getCarry(this._fl,fl2)|0;this._gh=this._gh+gh2+getCarry(this._gl,gl2)|0;this._hh=this._hh+hh2+getCarry(this._hl,hl2)|0};Sha512.prototype._hash=function(){var H=Buffer$2.allocUnsafe(64);function writeInt64BE(h,l,offset2){H.writeInt32BE(h,offset2);H.writeInt32BE(l,offset2+4)}writeInt64BE(this._ah,this._al,0);writeInt64BE(this._bh,this._bl,8);writeInt64BE(this._ch,this._cl,16);writeInt64BE(this._dh,this._dl,24);writeInt64BE(this._eh,this._el,32);writeInt64BE(this._fh,this._fl,40);writeInt64BE(this._gh,this._gl,48);writeInt64BE(this._hh,this._hl,56);return H};var sha512=Sha512;var inherits=inherits_browserExports;var SHA512=sha512;var Hash=hash$1;var Buffer$1=safeBufferExports.Buffer;var W10=new Array(160);function Sha384(){this.init();this._w=W10;Hash.call(this,128,112)}inherits(Sha384,SHA512);Sha384.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428;return this};Sha384.prototype._hash=function(){var H=Buffer$1.allocUnsafe(48);function writeInt64BE(h,l,offset2){H.writeInt32BE(h,offset2);H.writeInt32BE(l,offset2+4)}writeInt64BE(this._ah,this._al,0);writeInt64BE(this._bh,this._bl,8);writeInt64BE(this._ch,this._cl,16);writeInt64BE(this._dh,this._dl,24);writeInt64BE(this._eh,this._el,32);writeInt64BE(this._fh,this._fl,40);return H};var sha384=Sha384;(function(module){module.exports=function SHA2(algorithm){var alg=algorithm.toLowerCase();var Algorithm=module.exports[alg];if(!Algorithm){throw new Error(alg+" is not supported (we accept pull requests)")}return new Algorithm};module.exports.sha=sha;module.exports.sha1=sha1;module.exports.sha224=sha224;module.exports.sha256=sha256$1;module.exports.sha384=sha384;module.exports.sha512=sha512})(sha_js);var sha_jsExports=sha_js.exports;var SHA=getDefaultExportFromCjs(sha_jsExports);var fromNumH=n8=>n8/2**32|0;var fromNumL=n8=>n8>>>0;function setU64FromNum(view,byteOffset,n8,isLE2){const h=fromNumH(n8);const l=fromNumL(n8);view.setUint32(byteOffset,isLE2?l:h,isLE2);view.setUint32(byteOffset+4,isLE2?h:l,isLE2)}function isBytes$1(a){return a instanceof Uint8Array||ArrayBuffer.isView(a)&&a.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in a&&a.BYTES_PER_ELEMENT===1}var atitle$1=title=>title?`"${title}" `:"";function abytes$1(value,length,title=""){if(isBytes$1(value)&&length===void 0)return value;const bytes2=isBytes$1(value);const ofLen="";const got=bytes2?`length=${value.length}`:`type=${typeof value}`;const message=atitle$1(title)+"expected Uint8Array"+ofLen+", got "+got;if(!bytes2)throw new TypeError(message);throw new RangeError(message)}var aobject=(value,label)=>{if(value===null||typeof value!=="object"||Array.isArray(value))throw new TypeError((label==="object"?"":`"${label}" `)+"expected object, got type="+typeof value)};function aexists$1(instance,checkFinished=true){if(instance.destroyed)throw new Error("hash was destroyed");if(checkFinished&&instance.finished)throw new Error("digest() was already called")}function aoutput$1(out,instance){abytes$1(out,void 0,"output");const min2=instance.outputLen;if(!(out.length>=min2)){throw new RangeError('"output" expected length >= '+min2)}}function clean$1(...arrays){for(let i22=0;i22<arrays.length;i22++){arrays[i22].fill(0)}}function createView$1(arr){return new DataView(arr.buffer,arr.byteOffset,arr.byteLength)}function rotr(word,shift){return word<<32-shift|word>>>shift}function rotl(word,shift){return word<<shift|word>>>32-shift>>>0}var hasHexBuiltin=(()=>typeof Uint8Array.from([]).toHex==="function"&&typeof Uint8Array.fromHex==="function")();var hexes=Array.from({length:256},(_,i22)=>i22.toString(16).padStart(2,"0"));function bytesToHex(bytes2){abytes$1(bytes2);if(hasHexBuiltin)return bytes2.toHex();let hex="";for(let i22=0;i22<bytes2.length;i22++){hex+=hexes[bytes2[i22]]}return hex}function checkOpts(defaults2,opts,title="opts"){aobject(defaults2,"defaults");if(opts!==void 0)aobject(opts,title);const merged=Object.assign(defaults2,opts);return merged}function createHasher(hashCons,info={}){if(typeof hashCons!=="function")throw new TypeError('"hashCons" expected function, got type='+typeof hashCons);info=checkOpts({},info,"info");const hashC=(msg2,opts)=>hashCons(opts).update(msg2).digest();const tmp=hashCons(void 0);hashC.outputLen=tmp.outputLen;hashC.blockLen=tmp.blockLen;hashC.canXOF=tmp.canXOF;hashC.create=opts=>hashCons(opts);Object.assign(hashC,info);return Object.freeze(hashC)}var oidNist=suffix=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,suffix])});function Chi(a,b,c){return a&b^~a&c}function Maj(a,b,c){return a&b^a&c^b&c}var HashMD=class{constructor(blockLen,outputLen,padOffset,isLE2){__publicField2(this,"blockLen");__publicField2(this,"outputLen");__publicField2(this,"canXOF",false);__publicField2(this,"padOffset");__publicField2(this,"isLE");__publicField2(this,"buffer");__publicField2(this,"view");__publicField2(this,"finished",false);__publicField2(this,"length",0);__publicField2(this,"pos",0);__publicField2(this,"destroyed",false);this.blockLen=blockLen;this.outputLen=outputLen;this.padOffset=padOffset;this.isLE=isLE2;this.buffer=new Uint8Array(blockLen);this.view=createView$1(this.buffer)}update(data2){aexists$1(this);abytes$1(data2);const{view,buffer:buffer2,blockLen}=this;const len2=data2.length;let processed=false;for(let pos=0;pos<len2;){const take=Math.min(blockLen-this.pos,len2-pos);if(take===blockLen){const dataView=createView$1(data2);for(;blockLen<=len2-pos;pos+=blockLen)this.process(dataView,pos);processed=true;continue}buffer2.set(pos===0&&take===len2?data2:data2.subarray(pos,pos+take),this.pos);this.pos+=take;pos+=take;if(this.pos===blockLen){this.process(view,0);this.pos=0;processed=true}}this.length+=data2.length;if(processed)this.roundClean();return this}digestInto(out){aexists$1(this);aoutput$1(out,this);this.finished=true;const{buffer:buffer2,view,blockLen,isLE:isLE2}=this;let{pos}=this;buffer2[pos++]=128;buffer2.fill(0,pos);if(this.padOffset>blockLen-pos){this.process(view,0);buffer2.fill(0)}setU64FromNum(view,blockLen-8,this.length*8,isLE2);this.process(view,0);this.roundClean();const oview=out===buffer2?view:createView$1(out);const len2=this.outputLen;const outLen=len2/4;const state=this.get();if(len2%4||outLen>state.length)throw new Error("invalid outputLen");for(let i22=0;i22<outLen;i22++)oview.setUint32(4*i22,state[i22],isLE2)}digest(){const{buffer:buffer2,outputLen}=this;this.digestInto(buffer2);const res=buffer2.slice(0,outputLen);this.destroy();return res}_cloneIntoMeta(to2){const{buffer:buffer2,length,finished,destroyed,pos}=this;to2.destroyed=destroyed;to2.finished=finished;to2.length=length;to2.pos=pos;if(pos)to2.buffer.set(buffer2);return to2}clone(){return this._cloneInto()}};var SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var SHA1_IV=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]);var p32=Math.pow(2,32);var K10=Array.from({length:64},(_,i22)=>Math.floor(p32*Math.abs(Math.sin(i22+1))));var MD5_IV=SHA1_IV.slice(0,4);var MD5_W=new Uint32Array(16);var MD5_SHIFTS=(()=>{const S=[[7,12,17,22],[5,9,14,20],[4,11,16,23],[6,10,15,21]];return Uint8Array.from({length:64},(_,i22)=>S[Math.floor(i22/16)][i22%4])})();var _MD5=class extends HashMD{constructor(){super(64,16,8,true);__publicField2(this,"A",MD5_IV[0]|0);__publicField2(this,"B",MD5_IV[1]|0);__publicField2(this,"C",MD5_IV[2]|0);__publicField2(this,"D",MD5_IV[3]|0)}get(){const{A:A10,B,C,D:D10}=this;return[A10,B,C,D10]}set(A10,B,C,D10){this.A=A10|0;this.B=B|0;this.C=C|0;this.D=D10|0}_cloneInto(to2){(to2||(to2=new this.constructor)).set(...this.get());return this._cloneIntoMeta(to2)}process(view,offset2){for(let i22=0;i22<16;i22++,offset2+=4)MD5_W[i22]=view.getUint32(offset2,true);let{A:A10,B,C,D:D10}=this;for(let i22=0;i22<64;i22++){let F,g22;if(i22<16){F=Chi(B,C,D10);g22=i22}else if(i22<32){F=Chi(D10,B,C);g22=(5*i22+1)%16}else if(i22<48){F=B^C^D10;g22=(3*i22+5)%16}else{F=C^(B|~D10);g22=7*i22%16}F=F+A10+K10[i22]+MD5_W[g22];A10=D10;D10=C;C=B;B=B+rotl(F,MD5_SHIFTS[i22])}A10=A10+this.A|0;B=B+this.B|0;C=C+this.C|0;D10=D10+this.D|0;this.set(A10,B,C,D10)}roundClean(){clean$1(MD5_W)}destroy(){this.destroyed=true;this.set(0,0,0,0);clean$1(this.buffer)}};var md5=createHasher(()=>new _MD5);var cryptoConstants={SSL_OP_ALL:0,RSA_PKCS1_PADDING:1,RSA_PKCS1_OAEP_PADDING:4,RSA_PKCS1_PSS_PADDING:6};function isBytes(a){return a instanceof Uint8Array||ArrayBuffer.isView(a)&&a.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in a&&a.BYTES_PER_ELEMENT===1}var atitle=title=>title?`"${title}" `:"";function anumber(n8,title=""){if(typeof n8!=="number")throw new TypeError(atitle(title)+"expected number, got "+typeof n8);if(!Number.isSafeInteger(n8)||n8<0)throw new RangeError(atitle(title)+"expected integer >= 0, got "+n8);return n8}function abytes(value,length,title=""){if(isBytes(value)&&(length===void 0||value.length===length))return value;if(length!==void 0)anumber(length,"length");const bytes2=isBytes(value);const ofLen=length!==void 0?` of length ${length}`:"";const got=bytes2?`length=${value.length}`:`type=${typeof value}`;const message=atitle(title)+"expected Uint8Array"+ofLen+", got "+got;if(!bytes2)throw new TypeError(message);throw new RangeError(message)}function aexists(instance,checkFinished=true){if(instance.destroyed)throw new Error("hash was destroyed");if(checkFinished&&instance.finished)throw new Error("digest() was already called")}function aoutput(out,instance){abytes(out,void 0,"output");const min2=instance.outputLen;if(!(out.length>=min2)){throw new RangeError('"output" expected length >= '+min2)}}function aoutput32(out,instance){aoutput(out,instance);if(!isAligned32(out))throw new Error("invalid output, must be aligned")}function u82(arr){return new Uint8Array(arr.buffer,arr.byteOffset,arr.byteLength)}function u32(arr){return new Uint32Array(arr.buffer,arr.byteOffset,Math.floor(arr.byteLength/4))}function clean(...arrays){for(let i22=0;i22<arrays.length;i22++){arrays[i22].fill(0)}}function createView(arr){return new DataView(arr.buffer,arr.byteOffset,arr.byteLength)}var isLE=(()=>new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68)();function byteSwap(word){return word<<24&4278190080|word<<8&16711680|word>>>8&65280|word>>>24&255}var swap8IfBE=isLE?n8=>n8:n8=>byteSwap(n8)>>>0;function byteSwap32(arr){for(let i22=0;i22<arr.length;i22++){arr[i22]=byteSwap(arr[i22])}return arr}var swap32IfBE=isLE?u=>u:byteSwap32;function overlapBytes(a,b){if(!a.byteLength||!b.byteLength)return false;return a.buffer===b.buffer&&a.byteOffset<b.byteOffset+b.byteLength&&b.byteOffset<a.byteOffset+a.byteLength}function complexOverlapBytes(input,output){if(overlapBytes(input,output)&&input.byteOffset<output.byteOffset)throw new Error("complex overlap of input and output is not supported")}function wrapMacConstructor(keyLen,macCons,fromMsg){const mac=macCons;const getArgs=fromMsg||(()=>[]);const macC=(msg2,key)=>mac(key,...getArgs(msg2)).update(msg2).digest();const tmp=mac(new Uint8Array(keyLen),...getArgs(new Uint8Array(0)));macC.outputLen=tmp.outputLen;macC.blockLen=tmp.blockLen;macC.create=(key,...args)=>mac(key,...args);return macC}function getOutput(expectedLength,out,onlyAligned=true){if(out===void 0)return new Uint8Array(expectedLength);abytes(out,expectedLength,"output");if(onlyAligned&&!isAligned32(out))throw new Error("invalid output, must be aligned");return out}function isAligned32(bytes2){return bytes2.byteOffset%4===0}function copyBytes(bytes2){return Uint8Array.from(abytes(bytes2))}var BLOCK_SIZE$1=16;var ZEROS16=new Uint8Array(16);var ZEROS32=u32(ZEROS16);var POLY$1=225;var mul2$1=(s02,s12,s22,s32)=>{const hiBit=s32&1;return{s3:s22<<31|s32>>>1,s2:s12<<31|s22>>>1,s1:s02<<31|s12>>>1,s0:s02>>>1^POLY$1<<24&-(hiBit&1)}};var swapLE=n8=>(n8>>>0&255)<<24|(n8>>>8&255)<<16|(n8>>>16&255)<<8|n8>>>24&255|0;var estimateWindow=bytes2=>{if(bytes2>64*1024)return 8;if(bytes2>1024)return 4;return 2};var GHASH=class{constructor(key,expectedLength){__publicField2(this,"blockLen",BLOCK_SIZE$1);__publicField2(this,"outputLen",BLOCK_SIZE$1);__publicField2(this,"s0",0);__publicField2(this,"s1",0);__publicField2(this,"s2",0);__publicField2(this,"s3",0);__publicField2(this,"finished",false);__publicField2(this,"destroyed",false);__publicField2(this,"t");__publicField2(this,"W");__publicField2(this,"windowSize");abytes(key,16,"key");key=copyBytes(key);const kView=createView(key);let k02=kView.getUint32(0,false);let k12=kView.getUint32(4,false);let k22=kView.getUint32(8,false);let k32=kView.getUint32(12,false);const doubles=[];for(let i22=0;i22<128;i22++){doubles.push({s0:swapLE(k02),s1:swapLE(k12),s2:swapLE(k22),s3:swapLE(k32)});({s0:k02,s1:k12,s2:k22,s3:k32}=mul2$1(k02,k12,k22,k32))}const W22=estimateWindow(expectedLength||1024);if(![1,2,4,8].includes(W22))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=W22;const bits=128;const windows=bits/W22;const windowSize=this.windowSize=2**W22;const items=[];for(let w=0;w<windows;w++){for(let byte=0;byte<windowSize;byte++){let s02=0,s12=0,s22=0,s32=0;for(let j=0;j<W22;j++){const bit=byte>>>W22-j-1&1;if(!bit)continue;const{s0:d02,s1:d12,s2:d22,s3:d32}=doubles[W22*w+j];s02^=d02,s12^=d12,s22^=d22,s32^=d32}items.push({s0:s02,s1:s12,s2:s22,s3:s32})}}this.t=items}_updateBlock(s02,s12,s22,s32){s02^=this.s0,s12^=this.s1,s22^=this.s2,s32^=this.s3;const{W:W22,t:t10,windowSize}=this;let o02=0,o12=0,o22=0,o32=0;const mask=(1<<W22)-1;let w=0;for(const num of[s02,s12,s22,s32]){for(let bytePos=0;bytePos<4;bytePos++){const byte=num>>>8*bytePos&255;for(let bitPos=8/W22-1;bitPos>=0;bitPos--){const bit=byte>>>W22*bitPos&mask;const{s0:e0,s1:e12,s2:e2,s3:e32}=t10[w*windowSize+bit];o02^=e0,o12^=e12,o22^=e2,o32^=e32;w+=1}}}this.s0=o02;this.s1=o12;this.s2=o22;this.s3=o32}update(data2){aexists(this);abytes(data2);data2=copyBytes(data2);const b32=u32(data2);const blocks=Math.floor(data2.length/BLOCK_SIZE$1);const left=data2.length%BLOCK_SIZE$1;for(let i22=0;i22<blocks;i22++){this._updateBlock(swap8IfBE(b32[i22*4+0]),swap8IfBE(b32[i22*4+1]),swap8IfBE(b32[i22*4+2]),swap8IfBE(b32[i22*4+3]))}if(left){ZEROS16.set(data2.subarray(blocks*BLOCK_SIZE$1));this._updateBlock(swap8IfBE(ZEROS32[0]),swap8IfBE(ZEROS32[1]),swap8IfBE(ZEROS32[2]),swap8IfBE(ZEROS32[3]));clean(ZEROS32)}return this}destroy(){this.destroyed=true;const{t:t10}=this;for(const elm of t10){elm.s0=0,elm.s1=0,elm.s2=0,elm.s3=0}}digestInto(out){aexists(this);aoutput32(out,this);this.finished=true;const{s0:s02,s1:s12,s2:s22,s3:s32}=this;const o32=u32(out);o32[0]=s02;o32[1]=s12;o32[2]=s22;o32[3]=s32;if(!isLE)swap32IfBE(o32.subarray(0,BLOCK_SIZE$1/4))}digest(){const res=new Uint8Array(BLOCK_SIZE$1);this.digestInto(res);this.destroy();return res}};var BLOCK_SIZE=16;var BLOCK_SIZE32=4;var EMPTY_BLOCK=new Uint8Array(BLOCK_SIZE);var ONE_BLOCK=Uint8Array.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]);var POLY=283;function validateKeyLength(key){if(![16,24,32].includes(key.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+key.length)}function mul2(n8){return n8<<1^POLY&-(n8>>7)}function mul(a,b){let res=0;for(;b>0;b>>=1){res^=a&-(b&1);a=mul2(a)}return res}var sbox=(()=>{const t10=new Uint8Array(256);for(let i22=0,x=1;i22<256;i22++,x^=mul2(x))t10[i22]=x;const box=new Uint8Array(256);box[0]=99;for(let i22=0;i22<255;i22++){let x=t10[255-i22];x|=x<<8;box[t10[i22]]=(x^x>>4^x>>5^x>>6^x>>7^99)&255}clean(t10);return box})();var invSbox=sbox.map((_,j)=>sbox.indexOf(j));var rotr32_8=n8=>n8<<24|n8>>>8;var rotl32_8=n8=>n8<<8|n8>>>24;function genTtable(sbox2,fn2){if(sbox2.length!==256)throw new Error("wrong sbox length");const T02=new Uint32Array(256).map((_,j)=>fn2(sbox2[j]));const T12=T02.map(rotl32_8);const T22=T12.map(rotl32_8);const T32=T22.map(rotl32_8);const T01=new Uint32Array(256*256);const T23=new Uint32Array(256*256);const sbox22=new Uint16Array(256*256);for(let i22=0;i22<256;i22++){for(let j=0;j<256;j++){const idx=i22*256+j;T01[idx]=T02[i22]^T12[j];T23[idx]=T22[i22]^T32[j];sbox22[idx]=sbox2[i22]<<8|sbox2[j]}}return{sbox:sbox2,sbox2:sbox22,T0:T02,T1:T12,T2:T22,T3:T32,T01,T23}}var tableEncoding=genTtable(sbox,s10=>mul(s10,3)<<24|s10<<16|s10<<8|mul(s10,2));var tableDecoding=genTtable(invSbox,s10=>mul(s10,11)<<24|mul(s10,13)<<16|mul(s10,9)<<8|mul(s10,14));var xPowers=(()=>{const p=new Uint8Array(16);for(let i22=0,x=1;i22<16;i22++,x=mul2(x))p[i22]=x;return p})();function expandKeyLE(key){abytes(key);const len2=key.length;validateKeyLength(key);const{sbox2}=tableEncoding;const toClean=[];if(!isLE||!isAligned32(key))toClean.push(key=copyBytes(key));const k32=swap32IfBE(u32(key));const Nk=k32.length;const subByte=n8=>applySbox(sbox2,n8,n8,n8,n8);const xk=new Uint32Array(len2+28);xk.set(k32);for(let i22=Nk;i22<xk.length;i22++){let t10=xk[i22-1];if(i22%Nk===0)t10=subByte(rotr32_8(t10))^xPowers[i22/Nk-1];else if(Nk>6&&i22%Nk===4)t10=subByte(t10);xk[i22]=xk[i22-Nk]^t10}clean(...toClean);return xk}function expandKeyDecLE(key){const encKey=expandKeyLE(key);const xk=encKey.slice();const Nk=encKey.length;const{sbox2}=tableEncoding;const{T0:T02,T1:T12,T2:T22,T3:T32}=tableDecoding;for(let i22=0;i22<Nk;i22+=4){for(let j=0;j<4;j++)xk[i22+j]=encKey[Nk-i22-4+j]}clean(encKey);for(let i22=4;i22<Nk-4;i22++){const x=xk[i22];const w=applySbox(sbox2,x,x,x,x);xk[i22]=T02[w&255]^T12[w>>>8&255]^T22[w>>>16&255]^T32[w>>>24]}return xk}function apply0123(T01,T23,s02,s12,s22,s32){return T01[s02<<8&65280|s12>>>8&255]^T23[s22>>>8&65280|s32>>>24&255]}function applySbox(sbox2,s02,s12,s22,s32){return sbox2[s02&255|s12&65280]|sbox2[s22>>>16&255|s32>>>16&65280]<<16}function encrypt(xk,s02,s12,s22,s32){const{sbox2,T01,T23}=tableEncoding;let k10=0;s02^=xk[k10++],s12^=xk[k10++],s22^=xk[k10++],s32^=xk[k10++];const rounds=xk.length/4-2;for(let i22=0;i22<rounds;i22++){const t022=xk[k10++]^apply0123(T01,T23,s02,s12,s22,s32);const t122=xk[k10++]^apply0123(T01,T23,s12,s22,s32,s02);const t222=xk[k10++]^apply0123(T01,T23,s22,s32,s02,s12);const t322=xk[k10++]^apply0123(T01,T23,s32,s02,s12,s22);s02=t022,s12=t122,s22=t222,s32=t322}const t02=xk[k10++]^applySbox(sbox2,s02,s12,s22,s32);const t12=xk[k10++]^applySbox(sbox2,s12,s22,s32,s02);const t22=xk[k10++]^applySbox(sbox2,s22,s32,s02,s12);const t32=xk[k10++]^applySbox(sbox2,s32,s02,s12,s22);return{s0:t02,s1:t12,s2:t22,s3:t32}}function decrypt(xk,s02,s12,s22,s32){const{sbox2,T01,T23}=tableDecoding;let k10=0;s02^=xk[k10++],s12^=xk[k10++],s22^=xk[k10++],s32^=xk[k10++];const rounds=xk.length/4-2;for(let i22=0;i22<rounds;i22++){const t022=xk[k10++]^apply0123(T01,T23,s02,s32,s22,s12);const t122=xk[k10++]^apply0123(T01,T23,s12,s02,s32,s22);const t222=xk[k10++]^apply0123(T01,T23,s22,s12,s02,s32);const t322=xk[k10++]^apply0123(T01,T23,s32,s22,s12,s02);s02=t022,s12=t122,s22=t222,s32=t322}const t02=xk[k10++]^applySbox(sbox2,s02,s32,s22,s12);const t12=xk[k10++]^applySbox(sbox2,s12,s02,s32,s22);const t22=xk[k10++]^applySbox(sbox2,s22,s12,s02,s32);const t32=xk[k10++]^applySbox(sbox2,s32,s22,s12,s02);return{s0:t02,s1:t12,s2:t22,s3:t32}}function ctrCounter(xk,nonce,src,dst){abytes(nonce,BLOCK_SIZE,"nonce");abytes(src);const srcLen=src.length;dst=getOutput(srcLen,dst);complexOverlapBytes(src,dst);const ctr=nonce;const c32=u32(ctr);const src32=u32(src);const dst32=u32(dst);for(let i22=0;i22+4<=src32.length;i22+=4){const{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,swap8IfBE(c32[0]),swap8IfBE(c32[1]),swap8IfBE(c32[2]),swap8IfBE(c32[3]));dst32[i22+0]=src32[i22+0]^swap8IfBE(s02);dst32[i22+1]=src32[i22+1]^swap8IfBE(s12);dst32[i22+2]=src32[i22+2]^swap8IfBE(s22);dst32[i22+3]=src32[i22+3]^swap8IfBE(s32);for(let j=BLOCK_SIZE-1,carry=1;j>=0;j--){carry=carry+ctr[j]|0;ctr[j]=carry&255;carry>>>=8}}const start=BLOCK_SIZE*Math.floor(src32.length/BLOCK_SIZE32);if(start<srcLen){const{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,swap8IfBE(c32[0]),swap8IfBE(c32[1]),swap8IfBE(c32[2]),swap8IfBE(c32[3]));const b32=new Uint32Array([s02,s12,s22,s32]);swap32IfBE(b32);const buf=u82(b32);for(let i22=start,pos=0;i22<srcLen;i22++,pos++)dst[i22]=src[i22]^buf[pos];clean(b32)}return dst}function ctr32(xk,isLE2,nonce,src,dst){abytes(nonce,BLOCK_SIZE,"nonce");abytes(src);dst=getOutput(src.length,dst);const ctr=nonce;const c32=u32(ctr);const view=createView(ctr);const src32=u32(src);const dst32=u32(dst);const ctrPos=isLE2?0:12;const srcLen=src.length;let ctrNum=view.getUint32(ctrPos,isLE2);for(let i22=0;i22+4<=src32.length;i22+=4){const{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,swap8IfBE(c32[0]),swap8IfBE(c32[1]),swap8IfBE(c32[2]),swap8IfBE(c32[3]));dst32[i22+0]=src32[i22+0]^swap8IfBE(s02);dst32[i22+1]=src32[i22+1]^swap8IfBE(s12);dst32[i22+2]=src32[i22+2]^swap8IfBE(s22);dst32[i22+3]=src32[i22+3]^swap8IfBE(s32);ctrNum=ctrNum+1>>>0;view.setUint32(ctrPos,ctrNum,isLE2)}const start=BLOCK_SIZE*Math.floor(src32.length/BLOCK_SIZE32);if(start<srcLen){const{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,swap8IfBE(c32[0]),swap8IfBE(c32[1]),swap8IfBE(c32[2]),swap8IfBE(c32[3]));const b32=new Uint32Array([s02,s12,s22,s32]);swap32IfBE(b32);const buf=u82(b32);for(let i22=start,pos=0;i22<srcLen;i22++,pos++)dst[i22]=src[i22]^buf[pos];clean(b32)}return dst}function isBytes32(a){return a instanceof Uint32Array||ArrayBuffer.isView(a)&&a.constructor.name==="Uint32Array"}function encryptBlock(xk,block){abytes(block,16,"block");if(!isBytes32(xk))throw new Error("_encryptBlock accepts result of expandKeyLE");const b32=u32(block);swap32IfBE(b32);let{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,b32[0],b32[1],b32[2],b32[3]);b32[0]=s02,b32[1]=s12,b32[2]=s22,b32[3]=s32;swap32IfBE(b32);return block}function decryptBlock(xk,block){abytes(block,16,"block");if(!isBytes32(xk))throw new Error("_decryptBlock accepts result of expandKeyLE");const b32=u32(block);swap32IfBE(b32);let{s0:s02,s1:s12,s2:s22,s3:s32}=decrypt(xk,b32[0],b32[1],b32[2],b32[3]);b32[0]=s02,b32[1]=s12,b32[2]=s22,b32[3]=s32;swap32IfBE(b32);return block}function dbl(block){let carry=0;for(let i22=BLOCK_SIZE-1;i22>=0;i22--){const newCarry=(block[i22]&128)>>>7;block[i22]=block[i22]<<1|carry;carry=newCarry}block[BLOCK_SIZE-1]^=135&-carry;return block}function xorBlock(a,b){if(a.length!==b.length)throw new Error("xorBlock: blocks must have same length");for(let i22=0;i22<a.length;i22++){a[i22]=a[i22]^b[i22]}return a}function xorend(a,b){if(b.length>a.length){throw new Error("xorend: expected len(B) <= len(A)")}const offset2=a.length-b.length;for(let i22=0;i22<b.length;i22++){a[offset2+i22]=a[offset2+i22]^b[i22]}return a}var _CMAC=class{constructor(key){__publicField2(this,"blockLen",BLOCK_SIZE);__publicField2(this,"outputLen",BLOCK_SIZE);__publicField2(this,"buffer");__publicField2(this,"pos");__publicField2(this,"finished");__publicField2(this,"destroyed");__publicField2(this,"k1");__publicField2(this,"k2");__publicField2(this,"x");__publicField2(this,"x32");__publicField2(this,"xk");abytes(key);validateKeyLength(key);this.xk=expandKeyLE(key);this.buffer=new Uint8Array(BLOCK_SIZE);this.pos=0;this.finished=false;this.destroyed=false;this.x=new Uint8Array(BLOCK_SIZE);this.x32=u32(this.x);const L=new Uint8Array(BLOCK_SIZE);encryptBlock(this.xk,L);this.k1=dbl(L);this.k2=dbl(new Uint8Array(this.k1))}process(data2,pos){const{x,x32,xk}=this;for(let i22=0;i22<BLOCK_SIZE;i22++)x[i22]^=data2[pos+i22];swap32IfBE(x32);const{s0:s02,s1:s12,s2:s22,s3:s32}=encrypt(xk,x32[0],x32[1],x32[2],x32[3]);x32[0]=s02,x32[1]=s12,x32[2]=s22,x32[3]=s32;swap32IfBE(x32)}update(data2){aexists(this);abytes(data2);let pos=0;if(this.pos){const take=Math.min(BLOCK_SIZE-this.pos,data2.length);this.buffer.set(data2.subarray(0,take),this.pos);this.pos+=take;pos=take;if(this.pos===BLOCK_SIZE&&pos<data2.length){this.process(this.buffer,0);this.pos=0}}while(pos+BLOCK_SIZE<data2.length){this.process(data2,pos);pos+=BLOCK_SIZE}if(pos<data2.length){this.buffer.set(data2.subarray(pos),0);this.pos=data2.length-pos}return this}digestInto(out){aexists(this);aoutput32(out,this);this.finished=true;const view=out.subarray(0,this.outputLen);let last=new Uint8Array(BLOCK_SIZE);if(this.pos===BLOCK_SIZE){last.set(this.buffer);xorBlock(last,this.k1)}else{last.set(this.buffer.subarray(0,this.pos));last[this.pos]=128;xorBlock(last,this.k2)}view.set(this.x);xorBlock(view,last);encryptBlock(this.xk,view);clean(last)}digest(){const{buffer:buffer2,outputLen}=this;this.digestInto(buffer2);const res=buffer2.slice(0,outputLen);this.destroy();return res}destroy(){const{buffer:buffer2,destroyed,x,xk,k1:k12,k2:k22}=this;if(destroyed)return;this.destroyed=true;clean(buffer2,x,xk,k12,k22)}};var cmac=wrapMacConstructor(16,key=>new _CMAC(key));function s2v(key,strings2){validateKeyLength(key);const len2=strings2.length;if(len2>127){throw new Error("s2v: expected <= 127 inputs")}if(len2===0)return cmac(ONE_BLOCK,key);let d=cmac(EMPTY_BLOCK,key);for(let i22=0;i22<len2-1;i22++){dbl(d);const cmacResult=cmac(strings2[i22],key);xorBlock(d,cmacResult);clean(cmacResult)}const s_n=strings2[len2-1];abytes(s_n);let t10;if(s_n.byteLength>=BLOCK_SIZE){t10=xorend(Uint8Array.from(s_n),d)}else{const paddedSn=new Uint8Array(BLOCK_SIZE);paddedSn.set(s_n);paddedSn[s_n.length]=128;t10=xorBlock(dbl(d),paddedSn);clean(paddedSn)}const result=cmac(t10,key);clean(d,t10);return result}var unsafe=Object.freeze({expandKeyLE,expandKeyDecLE,encrypt,decrypt,encryptBlock,decryptBlock,ctrCounter,ctr32,dbl,xorBlock,xorend,s2v});var CIPHERS=/^aes-(128|192|256)-(gcm|cbc|ctr|ecb)$/u;function cipherNames(){const names2=[];for(const bits of[128,192,256])for(const mode of["cbc","ctr","ecb","gcm"])names2.push(`aes-${bits}-${mode}`);return names2}var GCM_TAG_LENGTHS=new Set([4,8,12,13,14,15,16]);function createCipherClasses(deps){var _decrypt,_mode,_xk,_xkDec,_padding,_finished,_started,_pending,_chain,_counter,_keystream,_ghash,_tagMask,_ghashPending,_aadLength,_dataLength,_authTagLength,_authTag,_CipherBase_instances,getTag_fn,setTag_fn,process_fn,stream_fn,absorb_fn,blocks_fn,block_fn,finish_fn,finishGcm_fn;const{error}=deps;function parse4(algorithm){if(typeof algorithm!=="string")throw Object.assign(new TypeError('The "cipher" argument must be of type string.'),{code:"ERR_INVALID_ARG_TYPE"});const match2=CIPHERS.exec(algorithm.toLowerCase());if(!match2)throw error("ERR_CRYPTO_UNKNOWN_CIPHER","Unknown cipher");return{keyLength:Number(match2[1])/8,mode:match2[2]}}function keyOf(key,keyLength){const bytes2=deps.secretKeyBytes(key)??deps.bytesOf(key);if(bytes2.length!==keyLength)throw Object.assign(new RangeError("Invalid key length"),{code:"ERR_CRYPTO_INVALID_KEYLEN"});return new Uint8Array(bytes2)}function ivOf(iv2,mode){if(mode==="ecb"){if(iv2===null||iv2===void 0)return void 0;const bytes22=deps.bytesOf(iv2);if(bytes22.length!==0)throw Object.assign(new TypeError("Invalid initialization vector"),{code:"ERR_CRYPTO_INVALID_IV"});return void 0}if(iv2===null||iv2===void 0)throw Object.assign(new TypeError("Invalid initialization vector"),{code:"ERR_CRYPTO_INVALID_IV"});const bytes2=new Uint8Array(deps.bytesOf(iv2));if(mode==="gcm"?bytes2.length===0:bytes2.length!==16)throw Object.assign(new TypeError("Invalid initialization vector"),{code:"ERR_CRYPTO_INVALID_IV"});return bytes2}function encryptBlock2(xk,block){const out=new Uint8Array(16);out.set(block);return unsafe.encryptBlock(xk,out)}function decryptBlock2(xk,block){const out=new Uint8Array(16);out.set(block);return unsafe.decryptBlock(xk,out)}function concat(a,b){if(a.length===0)return b;if(b.length===0)return a;const out=new Uint8Array(a.length+b.length);out.set(a);out.set(b,a.length);return out}function increment(counter,from){for(let i22=15;i22>=from;i22--){counter[i22]=counter[i22]+1&255;if(counter[i22]!==0)return}}let authTagOf;let expectTagOf;class CipherBase{constructor(decrypt2,algorithm,key,iv2,options){__privateAdd(this,_CipherBase_instances);__privateAdd(this,_decrypt);__privateAdd(this,_mode);__privateAdd(this,_xk);__privateAdd(this,_xkDec);__privateAdd(this,_padding,true);__privateAdd(this,_finished,false);__privateAdd(this,_started,false);__privateAdd(this,_pending,new Uint8Array(0));__privateAdd(this,_chain);__privateAdd(this,_counter);__privateAdd(this,_keystream,new Uint8Array(0));__privateAdd(this,_ghash);__privateAdd(this,_tagMask);__privateAdd(this,_ghashPending,new Uint8Array(0));__privateAdd(this,_aadLength,0);__privateAdd(this,_dataLength,0);__privateAdd(this,_authTagLength);__privateAdd(this,_authTag);const{keyLength,mode}=parse4(algorithm);__privateSet(this,_decrypt,decrypt2);__privateSet(this,_mode,mode);const keyBytes=keyOf(key,keyLength);const ivBytes=ivOf(iv2,mode);__privateSet(this,_xk,unsafe.expandKeyLE(keyBytes));__privateSet(this,_xkDec,decrypt2&&(mode==="cbc"||mode==="ecb")?unsafe.expandKeyDecLE(keyBytes):void 0);const tagLength=options==null?void 0:options.authTagLength;if(tagLength!==void 0){if(mode!=="gcm")throw Object.assign(new TypeError(`Invalid authentication tag length: ${tagLength}`),{code:"ERR_CRYPTO_INVALID_AUTH_TAG"});if(!GCM_TAG_LENGTHS.has(tagLength))throw Object.assign(new TypeError(`Invalid authentication tag length: ${tagLength}`),{code:"ERR_CRYPTO_INVALID_AUTH_TAG"});__privateSet(this,_authTagLength,tagLength)}if(mode==="cbc")__privateSet(this,_chain,ivBytes);if(mode==="ctr")__privateSet(this,_counter,new Uint8Array(ivBytes));if(mode==="gcm"){const h=encryptBlock2(__privateGet(this,_xk),new Uint8Array(16));let j02;if(ivBytes.length===12){j02=new Uint8Array(16);j02.set(ivBytes);j02[15]=1}else{const lengths=new Uint8Array(16);new DataView(lengths.buffer).setBigUint64(8,BigInt(ivBytes.length*8),false);const g22=new GHASH(h);g22.update(ivBytes).update(lengths);j02=g22.digest()}__privateSet(this,_tagMask,encryptBlock2(__privateGet(this,_xk),j02));__privateSet(this,_counter,new Uint8Array(j02));increment(__privateGet(this,_counter),12);__privateSet(this,_ghash,new GHASH(h))}}setAutoPadding(autoPadding=true){if(__privateGet(this,_finished))throw error("ERR_CRYPTO_INVALID_STATE","Invalid state for operation setAutoPadding");__privateSet(this,_padding,Boolean(autoPadding));return this}setAAD(buffer2,_options2){if(__privateGet(this,_mode)!=="gcm"||__privateGet(this,_started)||__privateGet(this,_finished))throw error("ERR_CRYPTO_INVALID_STATE","Invalid state for operation setAAD");const aad=deps.bytesOf(buffer2);__privateGet(this,_ghash).update(aad);__privateSet(this,_aadLength,__privateGet(this,_aadLength)+aad.length);return this}update(data2,inputEncoding,outputEncoding){if(__privateGet(this,_finished))throw error("ERR_CRYPTO_INVALID_STATE","Invalid state for operation update");__privateSet(this,_started,true);const input=typeof data2==="string"?deps.bytesOf(data2,inputEncoding):deps.bytesOf(data2);return deps.encode(__privateMethod(this,_CipherBase_instances,process_fn).call(this,new Uint8Array(input)),outputEncoding)}final(outputEncoding){if(__privateGet(this,_finished))throw error("ERR_CRYPTO_INVALID_STATE","Unsupported state");__privateSet(this,_finished,true);return deps.encode(__privateMethod(this,_CipherBase_instances,finish_fn).call(this),outputEncoding)}}_decrypt=new WeakMap;_mode=new WeakMap;_xk=new WeakMap;_xkDec=new WeakMap;_padding=new WeakMap;_finished=new WeakMap;_started=new WeakMap;_pending=new WeakMap;_chain=new WeakMap;_counter=new WeakMap;_keystream=new WeakMap;_ghash=new WeakMap;_tagMask=new WeakMap;_ghashPending=new WeakMap;_aadLength=new WeakMap;_dataLength=new WeakMap;_authTagLength=new WeakMap;_authTag=new WeakMap;_CipherBase_instances=new WeakSet;getTag_fn=function(){if(__privateGet(this,_mode)!=="gcm"||__privateGet(this,_decrypt)||!__privateGet(this,_finished)||!__privateGet(this,_authTag))throw error("ERR_CRYPTO_INVALID_STATE","Invalid state for operation getAuthTag");return __privateGet(this,_authTag)};setTag_fn=function(tag,encoding){if(__privateGet(this,_mode)!=="gcm"||!__privateGet(this,_decrypt)||__privateGet(this,_finished))throw error("ERR_CRYPTO_INVALID_STATE","Invalid state for operation setAuthTag");const bytes2=new Uint8Array(typeof tag==="string"?deps.bytesOf(tag,encoding):deps.bytesOf(tag));const allowed=__privateGet(this,_authTagLength)===void 0?GCM_TAG_LENGTHS.has(bytes2.length):bytes2.length===__privateGet(this,_authTagLength);if(!allowed)throw Object.assign(new TypeError(`Invalid authentication tag length: ${bytes2.length}`),{code:"ERR_CRYPTO_INVALID_AUTH_TAG"});__privateSet(this,_authTag,bytes2)};process_fn=function(input){switch(__privateGet(this,_mode)){case"ctr":return __privateMethod(this,_CipherBase_instances,stream_fn).call(this,input);case"gcm":{if(__privateGet(this,_decrypt))__privateMethod(this,_CipherBase_instances,absorb_fn).call(this,input);const out=__privateMethod(this,_CipherBase_instances,stream_fn).call(this,input);if(!__privateGet(this,_decrypt))__privateMethod(this,_CipherBase_instances,absorb_fn).call(this,out);__privateSet(this,_dataLength,__privateGet(this,_dataLength)+input.length);return out}default:return __privateMethod(this,_CipherBase_instances,blocks_fn).call(this,input)}};stream_fn=function(input){const out=new Uint8Array(input.length);let at22=0;while(at22<input.length){if(__privateGet(this,_keystream).length===0){__privateSet(this,_keystream,encryptBlock2(__privateGet(this,_xk),__privateGet(this,_counter)));increment(__privateGet(this,_counter),__privateGet(this,_mode)==="gcm"?12:0)}const take=Math.min(__privateGet(this,_keystream).length,input.length-at22);for(let i22=0;i22<take;i22++)out[at22+i22]=input[at22+i22]^__privateGet(this,_keystream)[i22];__privateSet(this,_keystream,__privateGet(this,_keystream).subarray(take));at22+=take}return out};absorb_fn=function(ciphertext){const all=concat(__privateGet(this,_ghashPending),ciphertext);const whole=all.length-all.length%16;if(whole>0)__privateGet(this,_ghash).update(all.subarray(0,whole));__privateSet(this,_ghashPending,all.slice(whole))};blocks_fn=function(input){const all=concat(__privateGet(this,_pending),input);let whole=all.length-all.length%16;if(__privateGet(this,_decrypt)&&__privateGet(this,_padding)&&whole===all.length&&whole>0)whole-=16;const out=new Uint8Array(whole);for(let at22=0;at22<whole;at22+=16)out.set(__privateMethod(this,_CipherBase_instances,block_fn).call(this,all.subarray(at22,at22+16)),at22);__privateSet(this,_pending,all.slice(whole));return out};block_fn=function(block){if(__privateGet(this,_mode)==="ecb")return __privateGet(this,_decrypt)?decryptBlock2(__privateGet(this,_xkDec),block):encryptBlock2(__privateGet(this,_xk),block);if(__privateGet(this,_decrypt)){const plain=decryptBlock2(__privateGet(this,_xkDec),block);for(let i22=0;i22<16;i22++)plain[i22]=plain[i22]^__privateGet(this,_chain)[i22];__privateSet(this,_chain,new Uint8Array(block));return plain}const mixed=new Uint8Array(16);for(let i22=0;i22<16;i22++)mixed[i22]=block[i22]^__privateGet(this,_chain)[i22];const cipher=encryptBlock2(__privateGet(this,_xk),mixed);__privateSet(this,_chain,cipher);return cipher};finish_fn=function(){if(__privateGet(this,_mode)==="ctr")return new Uint8Array(0);if(__privateGet(this,_mode)==="gcm")return __privateMethod(this,_CipherBase_instances,finishGcm_fn).call(this);const rest=__privateGet(this,_pending);__privateSet(this,_pending,new Uint8Array(0));if(!__privateGet(this,_decrypt)){if(!__privateGet(this,_padding)){if(rest.length!==0)throw error("ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH","error:1C80006B:Provider routines::wrong final block length");return rest}const pad2=16-rest.length;const block=new Uint8Array(16);block.set(rest);block.fill(pad2,rest.length);return __privateMethod(this,_CipherBase_instances,block_fn).call(this,block)}if(!__privateGet(this,_padding)){if(rest.length!==0)throw error("ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH","error:1C80006B:Provider routines::wrong final block length");return rest}if(rest.length!==16)throw error("ERR_OSSL_WRONG_FINAL_BLOCK_LENGTH","error:1C80006B:Provider routines::wrong final block length");const plain=__privateMethod(this,_CipherBase_instances,block_fn).call(this,rest);const pad=plain[15];let valid=pad>=1&&pad<=16;for(let i22=16-pad;valid&&i22<16;i22++)valid=plain[i22]===pad;if(!valid)throw error("ERR_OSSL_BAD_DECRYPT","error:1C800064:Provider routines::bad decrypt");return plain.slice(0,16-pad)};finishGcm_fn=function(){if(__privateGet(this,_ghashPending).length)__privateGet(this,_ghash).update(__privateGet(this,_ghashPending));const lengths=new Uint8Array(16);const view=new DataView(lengths.buffer);view.setBigUint64(0,BigInt(__privateGet(this,_aadLength)*8),false);view.setBigUint64(8,BigInt(__privateGet(this,_dataLength)*8),false);const full=__privateGet(this,_ghash).update(lengths).digest();for(let i22=0;i22<16;i22++)full[i22]=full[i22]^__privateGet(this,_tagMask)[i22];if(!__privateGet(this,_decrypt)){__privateSet(this,_authTag,full.slice(0,__privateGet(this,_authTagLength)??16));return new Uint8Array(0)}const expected=__privateGet(this,_authTag);let same=expected!==void 0;if(expected)for(let i22=0;i22<expected.length;i22++)same=same&&full[i22]===expected[i22];if(!same)throw new Error("Unsupported state or unable to authenticate data");return new Uint8Array(0)};authTagOf=cipher=>{var _a22;return __privateMethod(_a22=cipher,_CipherBase_instances,getTag_fn).call(_a22)};expectTagOf=(cipher,tag,encoding)=>{var _a22;return __privateMethod(_a22=cipher,_CipherBase_instances,setTag_fn).call(_a22,tag,encoding)};class Cipheriv2 extends CipherBase{constructor(algorithm,key,iv2,options){super(false,algorithm,key,iv2,options)}getAuthTag(){return deps.toBuffer(authTagOf(this))}}class Decipheriv2 extends CipherBase{constructor(algorithm,key,iv2,options){super(true,algorithm,key,iv2,options)}setAuthTag(tag,encoding){expectTagOf(this,tag,encoding);return this}}return{Cipheriv:Cipheriv2,Decipheriv:Decipheriv2,createCipheriv:(algorithm,key,iv2,options)=>new Cipheriv2(algorithm,key,iv2,options),createDecipheriv:(algorithm,key,iv2,options)=>new Decipheriv2(algorithm,key,iv2,options)}}function createCryptoModule(require2){var _state,_done,_inner,_outer,_done2,_algorithm,_data,_algorithm2,_data2,__keyData,__type,__algorithm;const bufferModule2=require2?require2("buffer"):lazyModule("buffer");const Buffer2=require2?bufferModule2.Buffer:lazyExport("buffer","Buffer");const EventEmitter2=require2?require2("events").EventEmitter:lazyExport("events","EventEmitter");function kMaxPossibleLengthOf(){return Math.min(bufferModule2.kMaxLength,2**31-1)}const kRandomChunk=65536;function __fillRandomBytes(target){if(target.length===0)return;const chunk=new Uint8Array(Math.min(target.length,kRandomChunk));for(let offset2=0;offset2<target.length;offset2+=kRandomChunk){const span=Math.min(kRandomChunk,target.length-offset2);const source=span===chunk.length?chunk:chunk.subarray(0,span);crypto.getRandomValues(source);target.set(source,offset2)}}function __randomFillTarget(buffer2){if(ArrayBuffer.isView(buffer2)){const view=buffer2;return new Uint8Array(view.buffer,view.byteOffset,view.byteLength)}if(buffer2 instanceof ArrayBuffer)return new Uint8Array(buffer2);if(typeof SharedArrayBuffer!=="undefined"&&buffer2 instanceof SharedArrayBuffer){return new Uint8Array(buffer2)}throw new ERR_INVALID_ARG_TYPE("buf",["ArrayBuffer","ArrayBufferView"],buffer2)}function __assertOffset(offset2,elementSize,length){validateNumber(offset2,"offset");const bytes2=offset2*elementSize;const maxLength=Math.min(length,kMaxPossibleLengthOf());if(Number.isNaN(bytes2)||bytes2>maxLength||bytes2<0){throw new ERR_OUT_OF_RANGE("offset",`>= 0 && <= ${maxLength}`,bytes2)}return bytes2>>>0}function __assertSize(size,elementSize,offset2,length){validateNumber(size,"size");const bytes2=size*elementSize;if(Number.isNaN(bytes2)||bytes2>kMaxPossibleLengthOf()||bytes2<0){throw new ERR_OUT_OF_RANGE("size",`>= 0 && <= ${kMaxPossibleLengthOf()}`,bytes2)}if(bytes2+offset2>length){throw new ERR_OUT_OF_RANGE("size + offset",`<= ${length}`,bytes2+offset2)}return bytes2>>>0}function randomBytes2(size,callback){const length=__assertSize(size,1,0,Infinity);if(callback!==void 0)validateFunction(callback,"callback");if(callback===void 0){const array=new Uint8Array(length);__fillRandomBytes(array);return Buffer2.from(array)}queueMicrotask(()=>{const array=new Uint8Array(length);__fillRandomBytes(array);callback(null,Buffer2.from(array))})}function randomFillSync2(buffer2,offset2,size){const target=__randomFillTarget(buffer2);const elementSize=buffer2.BYTES_PER_ELEMENT||1;const start=__assertOffset(offset2===void 0?0:offset2,elementSize,target.byteLength);const length=size===void 0?target.byteLength-start:__assertSize(size,elementSize,start,target.byteLength);if(length!==0)__fillRandomBytes(target.subarray(start,start+length));return buffer2}function randomFill2(buffer2,offsetOrCallback,sizeOrCallback,maybeCallback){const target=__randomFillTarget(buffer2);const elementSize=buffer2.BYTES_PER_ELEMENT||1;let offset2=offsetOrCallback;let size=sizeOrCallback;let callback=maybeCallback;if(typeof offsetOrCallback==="function"){callback=offsetOrCallback;offset2=0;size=buffer2.length}else if(typeof sizeOrCallback==="function"){callback=sizeOrCallback;size=(buffer2.length??target.byteLength)-offset2}else{validateFunction(callback,"callback")}const start=__assertOffset(offset2,elementSize,target.byteLength);const length=size===void 0?target.byteLength-start:__assertSize(size,elementSize,start,target.byteLength);const done=callback;queueMicrotask(()=>{if(length!==0)__fillRandomBytes(target.subarray(start,start+length));done(null,buffer2)})}function randomUUID2(){return crypto.randomUUID()}const kRandMax=0xffffffffffff;function randomInt2(min2,max2,callback){const minNotSpecified=max2===void 0||typeof max2==="function";let low=min2;let high=max2;if(minNotSpecified){callback=max2;high=min2;low=0}const isSync=callback===void 0;if(!isSync)validateFunction(callback,"callback");if(!Number.isSafeInteger(low))throw new ERR_INVALID_ARG_TYPE("min","a safe integer",low);if(!Number.isSafeInteger(high))throw new ERR_INVALID_ARG_TYPE("max","a safe integer",high);if(high<=low){throw new ERR_OUT_OF_RANGE("max",`greater than the value of "min" (${low})`,high)}const range22=high-low;if(!(range22<=kRandMax)){throw new ERR_OUT_OF_RANGE(`max${minNotSpecified?"":" - min"}`,`<= ${kRandMax}`,range22)}const randLimit=kRandMax-kRandMax%range22;const bytes2=new Uint8Array(6);for(;;){__fillRandomBytes(bytes2);let x=0;for(let index2=0;index2<6;index2++)x=x*256+bytes2[index2];if(x>=randLimit)continue;const value=x%range22+low;if(isSync)return value;queueMicrotask(()=>callback(void 0,value));return}}function getRandomValues2(array){return crypto.getRandomValues(array)}const HASH_ALGORITHMS=["md5","sha1","sha224","sha256","sha384","sha512"];function cryptoError(code22,message){return Object.assign(new Error(message),{code:code22})}function finalized(){return cryptoError("ERR_CRYPTO_HASH_FINALIZED","Digest already called")}function unsupported22(operation){throw cryptoError("ERR_CRYPTO_UNSUPPORTED_OPERATION",`${operation} is not supported by the browser crypto adapter.`)}function hashAlgorithm(value){if(typeof value!=="string")throw new TypeError("Digest algorithm must be a string.");const name=value.toLowerCase().replace(/^sha-(1|224|256|384|512)$/,"sha$1");if(!HASH_ALGORITHMS.includes(name)){throw cryptoError("ERR_CRYPTO_INVALID_DIGEST",`Unsupported digest: ${value}`)}return name}function digestEngine(algorithm){return algorithm==="md5"?md5.create():SHA(algorithm)}const utf8Encoder=new TextEncoder;function cryptoBytes(value,encoding,allowArrayBuffer=false){if(typeof value==="string"){if((encoding==null?void 0:encoding.toLowerCase())==="base64url")return buffer.Buffer.from(value,"base64");if(encoding!==void 0&&!buffer.Buffer.isEncoding(encoding)){throw new TypeError(`Unknown encoding: ${encoding}`)}const lower=encoding==null?void 0:encoding.toLowerCase();if(lower===void 0||lower==="utf8"||lower==="utf-8"){const bytes2=utf8Encoder.encode(value);return buffer.Buffer.from(bytes2.buffer,bytes2.byteOffset,bytes2.byteLength)}return buffer.Buffer.from(value,encoding)}if(ArrayBuffer.isView(value)){return buffer.Buffer.from(value.buffer,value.byteOffset,value.byteLength)}if(allowArrayBuffer&&value instanceof ArrayBuffer)return buffer.Buffer.from(value);throw new TypeError("Crypto input must be a string or an ArrayBuffer view.")}function digestResult(value,encoding){if(!encoding||encoding==="buffer")return Buffer2.from(value);const name=encoding.toLowerCase();if(name==="base64url"){return buffer.Buffer.from(value).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}if(!buffer.Buffer.isEncoding(name))throw new TypeError(`Unknown encoding: ${encoding}`);return buffer.Buffer.from(value).toString(name)}const _Hash=class _Hash2{constructor(algorithm){__privateAdd(this,_state);__privateAdd(this,_done,false);__publicField2(this,"algorithm");this.algorithm=algorithm;__privateSet(this,_state,digestEngine(algorithm))}update(data2,inputEncoding){if(__privateGet(this,_done))throw finalized();__privateGet(this,_state).update(cryptoBytes(data2,inputEncoding));return this}digest(outputEncoding){if(__privateGet(this,_done))throw finalized();__privateSet(this,_done,true);return digestResult(__privateGet(this,_state).digest(),outputEncoding)}async digestAsync(outputEncoding){return this.digest(outputEncoding)}copy(){if(__privateGet(this,_done))throw finalized();const copy2=new _Hash2(this.algorithm);if(__privateGet(this,_state).clone){__privateSet(copy2,_state,__privateGet(this,_state).clone());return copy2}for(const[field,value]of Object.entries(__privateGet(this,_state))){__privateGet(copy2,_state)[field]=ArrayBuffer.isView(value)?buffer.Buffer.from(cryptoBytes(value)):Array.isArray(value)?value.slice():value}return copy2}};_state=new WeakMap;_done=new WeakMap;let Hash2=_Hash;class Hmac{constructor(algorithm,key){__privateAdd(this,_inner);__privateAdd(this,_outer);__privateAdd(this,_done2,false);const blockSize=algorithm==="sha384"||algorithm==="sha512"?128:64;const material=key.length>blockSize?digestEngine(algorithm).update(key).digest():key;const innerPad=buffer.Buffer.alloc(blockSize);const outerPad=buffer.Buffer.alloc(blockSize);for(let index2=0;index2<blockSize;index2++){const byte=index2<material.length?material[index2]:0;innerPad[index2]=byte^54;outerPad[index2]=byte^92}__privateSet(this,_inner,digestEngine(algorithm).update(innerPad));__privateSet(this,_outer,digestEngine(algorithm).update(outerPad));innerPad.fill(0);outerPad.fill(0)}update(data2,inputEncoding){if(__privateGet(this,_done2))throw finalized();__privateGet(this,_inner).update(cryptoBytes(data2,inputEncoding));return this}digest(outputEncoding){if(__privateGet(this,_done2))return digestResult(buffer.Buffer.alloc(0),outputEncoding);__privateSet(this,_done2,true);return digestResult(__privateGet(this,_outer).update(__privateGet(this,_inner).digest()).digest(),outputEncoding)}async digestAsync(outputEncoding){return this.digest(outputEncoding)}}_inner=new WeakMap;_outer=new WeakMap;_done2=new WeakMap;function createHash2(algorithm,options){if((options==null?void 0:options.outputLength)!==void 0)unsupported22("Variable-length digests");return new Hash2(hashAlgorithm(algorithm))}function createHmac2(algorithm,key,options){const name=hashAlgorithm(algorithm);let material=key;if(material!==null&&typeof material==="object"&&"type"in material&&"export"in material){const secret=material;if(secret.type!=="secret"||typeof secret.export!=="function"){throw new TypeError("HMAC requires a secret key.")}material=secret.export()}return new Hmac(name,cryptoBytes(material,options==null?void 0:options.encoding,true))}function hash22(algorithm,data2,outputEncoding="hex"){return createHash2(algorithm).update(data2).digest(outputEncoding)}function pbkdf2Parameters(password,salt,iterations,keylen,digest){const algorithm=hashAlgorithm(digest);for(const[name,value]of[["iterations",iterations],["keylen",keylen]]){if(typeof value!=="number")throw new TypeError(`${name} must be a number.`);if(!Number.isInteger(value)||value<1||value>2147483647){throw new RangeError(`${name} is out of range.`)}}return{algorithm,password:buffer.Buffer.from(cryptoBytes(password,void 0,true)),salt:buffer.Buffer.from(cryptoBytes(salt,void 0,true)),iterations,keylen}}function derive(parameters){const{algorithm,password,salt,iterations,keylen}=parameters;const length={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64}[algorithm];const derived=buffer.Buffer.alloc(keylen);const suffix=buffer.Buffer.alloc(4);try{for(let block=1,offset2=0;offset2<keylen;block++,offset2+=length){suffix[0]=block>>>24;suffix[1]=block>>>16;suffix[2]=block>>>8;suffix[3]=block;let u=new Hmac(algorithm,password).update(salt).update(suffix).digest();const accumulated=buffer.Buffer.from(u);for(let round2=1;round2<iterations;round2++){const next2=new Hmac(algorithm,password).update(u).digest();u.fill(0);u=next2;for(let index2=0;index2<length;index2++)accumulated[index2]^=u[index2]}derived.set(accumulated.subarray(0,Math.min(length,keylen-offset2)),offset2);u.fill(0);accumulated.fill(0)}return Buffer2.from(derived)}finally{password.fill(0);salt.fill(0);derived.fill(0)}}function pbkdf2Sync2(password,salt,iterations,keylen,digest){return derive(pbkdf2Parameters(password,salt,iterations,keylen,digest))}function pbkdf22(password,salt,iterations,keylen,digest,callback){if(typeof callback!=="function")throw new TypeError("PBKDF2 callback must be a function.");const parameters=pbkdf2Parameters(password,salt,iterations,keylen,digest);setTimeout(()=>{let key;try{key=derive(parameters)}catch(error){callback(error);return}callback(null,key)},0)}function sign22(algorithm,data2,key,callback){const keyInfo=extractKeyInfo(key);const alg=algorithm||keyInfo.algorithm;if(!alg){const error=new Error("Algorithm must be specified");if(callback){callback(error,null);return}throw error}if(callback){signAsync(alg,data2,keyInfo).then(sig=>callback(null,sig)).catch(err22=>callback(err22,null));return}const result=signSync();return result}function verify2(algorithm,data2,key,signature,callback){const keyInfo=extractKeyInfo(key);const alg=algorithm||keyInfo.algorithm;if(!alg){const error=new Error("Algorithm must be specified");if(callback){callback(error,false);return}throw error}if(callback){verifyAsync(alg,data2,keyInfo,signature).then(result=>callback(null,result)).catch(err22=>callback(err22,false));return}return verifySync()}function createSign2(algorithm){return new Sign(algorithm)}function createVerify2(algorithm){return new Verify(algorithm)}class Sign extends EventEmitter2{constructor(algorithm){super();__privateAdd(this,_algorithm);__privateAdd(this,_data,[]);__privateSet(this,_algorithm,algorithm)}update(data2,encoding){const buffer2=typeof data2==="string"?Buffer2.from(data2):data2;__privateGet(this,_data).push(buffer2);return this}sign(privateKey,outputEncoding){concatBuffers(__privateGet(this,_data));extractKeyInfo(privateKey);const signature=signSync(__privateGet(this,_algorithm));if(outputEncoding==="base64"){return btoa(String.fromCharCode(...signature))}if(outputEncoding==="hex"){return Array.from(signature).map(b=>b.toString(16).padStart(2,"0")).join("")}return signature}}_algorithm=new WeakMap;_data=new WeakMap;class Verify extends EventEmitter2{constructor(algorithm){super();__privateAdd(this,_algorithm2);__privateAdd(this,_data2,[]);__privateSet(this,_algorithm2,algorithm)}update(data2,encoding){const buffer2=typeof data2==="string"?Buffer2.from(data2):data2;__privateGet(this,_data2).push(buffer2);return this}verify(publicKey,signature,signatureEncoding){concatBuffers(__privateGet(this,_data2));extractKeyInfo(publicKey);if(typeof signature==="string"){if(signatureEncoding==="base64"){Buffer2.from(atob(signature))}else if(signatureEncoding==="hex"){Buffer2.from(signature.match(/.{2}/g).map(byte=>parseInt(byte,16)))}else{Buffer2.from(signature)}}return verifySync(__privateGet(this,_algorithm2))}}_algorithm2=new WeakMap;_data2=new WeakMap;let keyInfoOf;class KeyObject2{constructor(type2,keyData,algorithm){__privateAdd(this,__keyData);__privateAdd(this,__type);__privateAdd(this,__algorithm);__privateSet(this,__type,type2);__privateSet(this,__keyData,keyData);__privateSet(this,__algorithm,algorithm)}get type(){return __privateGet(this,__type)}get asymmetricKeyType(){var _a22,_b22,_c22,_d22;if(__privateGet(this,__type)==="secret")return void 0;if((_a22=__privateGet(this,__algorithm))==null?void 0:_a22.includes("RSA"))return"rsa";if(((_b22=__privateGet(this,__algorithm))==null?void 0:_b22.includes("EC"))||((_c22=__privateGet(this,__algorithm))==null?void 0:_c22.includes("ES")))return"ec";if((_d22=__privateGet(this,__algorithm))==null?void 0:_d22.includes("Ed"))return"ed25519";return void 0}get symmetricKeySize(){if(__privateGet(this,__type)!=="secret")return void 0;if(__privateGet(this,__keyData)instanceof Uint8Array){return __privateGet(this,__keyData).length*8}return void 0}export(options){if(__privateGet(this,__keyData)instanceof Uint8Array){return Buffer2.from(__privateGet(this,__keyData))}throw new Error("Cannot export CryptoKey synchronously")}}__keyData=new WeakMap;__type=new WeakMap;__algorithm=new WeakMap;keyInfoOf=key=>({keyData:__privateGet(key,__keyData),algorithm:__privateGet(key,__algorithm),type:__privateGet(key,__type),format:"raw"});function createSecretKey2(key,encoding){return new KeyObject2("secret",Buffer2.from(cryptoBytes(key,encoding,true)))}function createPublicKey2(key){const keyInfo=extractKeyInfo(key);return new KeyObject2("public",keyInfo.keyData,keyInfo.algorithm)}function createPrivateKey2(key){const keyInfo=extractKeyInfo(key);return new KeyObject2("private",keyInfo.keyData,keyInfo.algorithm)}const NAMED_CURVES={"prime256v1":"P-256","p-256":"P-256","secp256r1":"P-256","secp384r1":"P-384","p-384":"P-384","secp521r1":"P-521","p-521":"P-521"};function keyPairAlgorithm(type2,options){const exponent=value=>{let rest=value??65537;const bytes2=[];while(rest>0){bytes2.unshift(rest&255);rest=Math.floor(rest/256)}return new Uint8Array(bytes2)};switch(type2){case"rsa":case"rsa-pss":{if(!Number.isInteger(options.modulusLength))throw Object.assign(new TypeError('The "options.modulusLength" property must be of type number.'),{code:"ERR_INVALID_ARG_TYPE"});const name=type2==="rsa"?"RSASSA-PKCS1-v1_5":"RSA-PSS";return{generate:{name,modulusLength:options.modulusLength,publicExponent:exponent(options.publicExponent),hash:"SHA-256"},usages:["sign","verify"],name:type2==="rsa"?"RSA-SHA256":"RSA-PSS"}}case"ec":{const curve=NAMED_CURVES[String(options.namedCurve??"").toLowerCase()];if(!curve)throw Object.assign(new TypeError(`Invalid EC curve name ${String(options.namedCurve)}`),{code:"ERR_CRYPTO_INVALID_CURVE"});return{generate:{name:"ECDSA",namedCurve:curve},usages:["sign","verify"],name:curve==="P-256"?"ES256":curve==="P-384"?"ES384":"ES512"}}case"ed25519":return{generate:{name:"Ed25519"},usages:["sign","verify"],name:"Ed25519"};case"x25519":return{generate:{name:"X25519"},usages:["deriveBits"],name:"X25519"};default:throw Object.assign(new TypeError(`The argument 'type' must be a supported key type. Received '${type2}'`),{code:"ERR_INVALID_ARG_VALUE"})}}function encodedKey(der,encoding,kind){const expected=kind==="public"?"spki":"pkcs8";if(encoding.type!==void 0&&encoding.type!==expected){unsupported22(`Encoding a ${kind} key as ${encoding.type}`)}const bytes2=Buffer2.from(der);if(encoding.format==="der")return bytes2;if(encoding.format!=="pem")unsupported22(`Encoding a key in the ${String(encoding.format)} format`);const label=kind==="public"?"PUBLIC KEY":"PRIVATE KEY";const body=bytes2.toString("base64").match(/.{1,64}/g).join("\n");return`-----BEGIN ${label}-----
|
|
5764
5764
|
${body}
|
|
5765
5765
|
-----END ${label}-----
|
|
5766
|
-
`}async function generateKeyPairAsync(type2,options){const algorithm=keyPairAlgorithm(type2,options);const pair=await crypto.subtle.generateKey(algorithm.generate,true,algorithm.usages);const publicKey=options.publicKeyEncoding?encodedKey(await crypto.subtle.exportKey("spki",pair.publicKey),options.publicKeyEncoding,"public"):new KeyObject2("public",pair.publicKey,algorithm.name);const privateKey=options.privateKeyEncoding?encodedKey(await crypto.subtle.exportKey("pkcs8",pair.privateKey),options.privateKeyEncoding,"private"):new KeyObject2("private",pair.privateKey,algorithm.name);return{publicKey,privateKey}}function generateKeyPair2(type2,options,callback){if(typeof options==="function"){callback=options;options={}}if(typeof callback!=="function")throw Object.assign(new TypeError('The "callback" argument must be of type function.'),{code:"ERR_INVALID_ARG_TYPE"});const done=callback;keyPairAlgorithm(type2,options??{});generateKeyPairAsync(type2,options??{}).then(({publicKey,privateKey})=>done(null,publicKey,privateKey),error=>done(error instanceof Error?error:new Error(String(error))))}Object.defineProperty(generateKeyPair2,Symbol.for("nodejs.util.promisify.custom"),{value:(type2,options)=>generateKeyPairAsync(type2,options??{})});function timingSafeEqual2(a,b){if(a.length!==b.length){return false}let result=0;for(let i22=0;i22<a.length;i22++){result|=a[i22]^b[i22]}return result===0}function getCiphers2(){return cipherNames()}function getHashes2(){return HASH_ALGORITHMS.slice()}function getWebCryptoAlgorithm(nodeAlgorithm){var _a22,_b22,_c22,_d22;const alg=nodeAlgorithm.toUpperCase().replace(/[^A-Z0-9]/g,"");if(alg.includes("RSA")){if(alg.includes("PSS")){const hash4=((_a22=alg.match(/SHA(\d+)/))==null?void 0:_a22[0])||"SHA-256";return{name:"RSA-PSS",hash:`SHA-${hash4.replace("SHA","")}`}}const hash3=((_b22=alg.match(/SHA(\d+)/))==null?void 0:_b22[0])||"SHA-256";return{name:"RSASSA-PKCS1-v1_5",hash:`SHA-${hash3.replace("SHA","")}`}}if(alg.startsWith("ES")||alg.includes("ECDSA")){const bits=((_c22=alg.match(/\d+/))==null?void 0:_c22[0])||"256";const hash3=bits==="512"?"SHA-512":bits==="384"?"SHA-384":"SHA-256";return{name:"ECDSA",hash:hash3}}if(alg.includes("ED25519")||alg==="EDDSA"){return{name:"Ed25519"}}if(alg.includes("HS")||alg.includes("HMAC")){const bits=((_d22=alg.match(/\d+/))==null?void 0:_d22[0])||"256";return{name:"HMAC",hash:`SHA-${bits}`}}return{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"}}function extractKeyInfo(key){if(key instanceof KeyObject2){return keyInfoOf(key)}if(typeof key==="object"&&"key"in key){return extractKeyInfo(key.key)}const keyStr=typeof key==="string"?key:key.toString();if(keyStr.includes("-----BEGIN")){const isPrivate=keyStr.includes("PRIVATE");const isPublic=keyStr.includes("PUBLIC");const base6422=keyStr.replace(/-----BEGIN [^-]+-----/,"").replace(/-----END [^-]+-----/,"").replace(/\s/g,"");const keyData2=Buffer2.from(atob(base6422));let algorithm;if(keyStr.includes("RSA"))algorithm="RSA-SHA256";else if(keyStr.includes("EC"))algorithm="ES256";else if(keyStr.includes("ED25519"))algorithm="Ed25519";return{keyData:keyData2,algorithm,type:isPrivate?"private":isPublic?"public":"secret",format:"pem"}}const keyData=typeof key==="string"?Buffer2.from(key):key;return{keyData,type:"secret",format:"raw"}}function concatBuffers(buffers){const totalLength=buffers.reduce((acc,arr)=>acc+arr.length,0);const result=new Uint8Array(totalLength);let offset2=0;for(const buf of buffers){result.set(buf,offset2);offset2+=buf.length}return result}async function signAsync(algorithm,data2,keyInfo){const webCryptoAlg=getWebCryptoAlgorithm(algorithm);const cryptoKey=await importKey(keyInfo,webCryptoAlg,["sign"]);const signatureAlg=webCryptoAlg.hash?{name:webCryptoAlg.name,hash:webCryptoAlg.hash}:{name:webCryptoAlg.name};const dataBuffer=new Uint8Array(data2).buffer;const signature=await crypto.subtle.sign(signatureAlg,cryptoKey,dataBuffer);return Buffer2.from(signature)}async function verifyAsync(algorithm,data2,keyInfo,signature){const webCryptoAlg=getWebCryptoAlgorithm(algorithm);const cryptoKey=await importKey(keyInfo,webCryptoAlg,["verify"]);const verifyAlg=webCryptoAlg.hash?{name:webCryptoAlg.name,hash:webCryptoAlg.hash}:{name:webCryptoAlg.name};const sigBuffer=new Uint8Array(signature).buffer;const dataBuffer=new Uint8Array(data2).buffer;return await crypto.subtle.verify(verifyAlg,cryptoKey,sigBuffer,dataBuffer)}function signSync(_algorithm3,_data3,_keyInfo){return unsupported22("Synchronous signing")}function verifySync(_algorithm3,_data3,_keyInfo,_signature){return unsupported22("Synchronous verification")}async function importKey(keyInfo,algorithm,usages){if(keyInfo.keyData instanceof CryptoKey){return keyInfo.keyData}const keyData=keyInfo.keyData;const keyBuffer=new Uint8Array(keyData).buffer;if(keyInfo.format==="pem"){const format2=keyInfo.type==="private"?"pkcs8":"spki";const importAlg=algorithm.name==="ECDSA"?{name:"ECDSA",namedCurve:"P-256"}:algorithm.name==="Ed25519"?{name:"Ed25519"}:{name:algorithm.name,hash:algorithm.hash||"SHA-256"};return await crypto.subtle.importKey(format2,keyBuffer,importAlg,true,usages)}if(keyInfo.type==="secret"){return await crypto.subtle.importKey("raw",keyBuffer,{name:algorithm.name,hash:algorithm.hash},true,usages)}throw new Error(`Unsupported key format: ${keyInfo.format}`)}const{Cipheriv:Cipheriv2,Decipheriv:Decipheriv2,createCipheriv:createCipheriv2,createDecipheriv:createDecipheriv2}=createCipherClasses({toBuffer:bytes2=>Buffer2.from(bytes2),bytesOf:(value,encoding)=>cryptoBytes(value,encoding,true),secretKeyBytes:value=>{if(!(value instanceof KeyObject2))return void 0;const info=keyInfoOf(value);if(info.type!=="secret"||!(info.keyData instanceof Uint8Array)){throw Object.assign(new TypeError(`Invalid key object type ${info.type}, expected secret.`),{code:"ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"})}return info.keyData},encode:(bytes2,encoding)=>digestResult(bytes2,encoding),error:cryptoError});return{Cipheriv:Cipheriv2,Decipheriv:Decipheriv2,createCipheriv:createCipheriv2,createDecipheriv:createDecipheriv2,unsupported:unsupported22,randomBytes:randomBytes2,randomFill:randomFill2,randomFillSync:randomFillSync2,randomUUID:randomUUID2,randomInt:randomInt2,getRandomValues:getRandomValues2,hash:hash22,createHash:createHash2,createHmac:createHmac2,createSign:createSign2,createVerify:createVerify2,sign:sign22,verify:verify2,pbkdf2:pbkdf22,pbkdf2Sync:pbkdf2Sync2,timingSafeEqual:timingSafeEqual2,getCiphers:getCiphers2,getHashes:getHashes2,constants:cryptoConstants,KeyObject:KeyObject2,createSecretKey:createSecretKey2,createPublicKey:createPublicKey2,createPrivateKey:createPrivateKey2,generateKeyPair:generateKeyPair2}}var cryptoModule=createCryptoModule();var{Cipheriv,Decipheriv,createCipheriv,createDecipheriv,randomBytes,randomFillSync,randomFill,randomUUID,randomInt,getRandomValues,unsupported:unsupported$1,createHash,createHmac,hash,pbkdf2Sync,pbkdf2,sign,verify,createSign,createVerify,KeyObject,createSecretKey,createPublicKey,createPrivateKey,generateKeyPair,timingSafeEqual,getCiphers,getHashes}=cryptoModule;var cryptoShim=Object.freeze(Object.defineProperty({__proto__:null,Cipheriv,Decipheriv,KeyObject,constants:cryptoConstants,createCipheriv,createCryptoModule,createDecipheriv,createHash,createHmac,createPrivateKey,createPublicKey,createSecretKey,createSign,createVerify,default:cryptoModule,generateKeyPair,getCiphers,getHashes,getRandomValues,hash,pbkdf2,pbkdf2Sync,randomBytes,randomFill,randomFillSync,randomInt,randomUUID,sign,timingSafeEqual,unsupported:unsupported$1,verify},Symbol.toStringTag,{value:"Module"}));var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];var astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];var nonASCIIidentifierChars="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";var nonASCIIidentifierStartChars="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";var reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};var ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"};var keywordRelationalOperator=/^in(stanceof)?$/;var nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]");var nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(code22,set){var pos=65536;for(var i22=0;i22<set.length;i22+=2){pos+=set[i22];if(pos>code22){return false}pos+=set[i22+1];if(pos>=code22){return true}}return false}function isIdentifierStart(code22,astral){if(code22<65){return code22===36}if(code22<91){return true}if(code22<97){return code22===95}if(code22<123){return true}if(code22<=65535){return code22>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code22))}if(astral===false){return false}return isInAstralSet(code22,astralIdentifierStartCodes)}function isIdentifierChar(code22,astral){if(code22<48){return code22===36}if(code22<58){return true}if(code22<65){return false}if(code22<91){return true}if(code22<97){return code22===95}if(code22<123){return true}if(code22<=65535){return code22>=170&&nonASCIIidentifier.test(String.fromCharCode(code22))}if(astral===false){return false}return isInAstralSet(code22,astralIdentifierStartCodes)||isInAstralSet(code22,astralIdentifierCodes)}var TokenType=function TokenType2(label,conf){if(conf===void 0)conf={};this.label=label;this.keyword=conf.keyword;this.beforeExpr=!!conf.beforeExpr;this.startsExpr=!!conf.startsExpr;this.isLoop=!!conf.isLoop;this.isAssign=!!conf.isAssign;this.prefix=!!conf.prefix;this.postfix=!!conf.postfix;this.binop=conf.binop||null;this.updateContext=null};function binop(name,prec){return new TokenType(name,{beforeExpr:true,binop:prec})}var beforeExpr={beforeExpr:true};var startsExpr={startsExpr:true};var keywords={};function kw2(name,options){if(options===void 0)options={};options.keyword=name;return keywords[name]=new TokenType(name,options)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:true,startsExpr:true}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:true,startsExpr:true}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:true,startsExpr:true}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:true,startsExpr:true}),eq:new TokenType("=",{beforeExpr:true,isAssign:true}),assign:new TokenType("_=",{beforeExpr:true,isAssign:true}),incDec:new TokenType("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new TokenType("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw2("break"),_case:kw2("case",beforeExpr),_catch:kw2("catch"),_continue:kw2("continue"),_debugger:kw2("debugger"),_default:kw2("default",beforeExpr),_do:kw2("do",{isLoop:true,beforeExpr:true}),_else:kw2("else",beforeExpr),_finally:kw2("finally"),_for:kw2("for",{isLoop:true}),_function:kw2("function",startsExpr),_if:kw2("if"),_return:kw2("return",beforeExpr),_switch:kw2("switch"),_throw:kw2("throw",beforeExpr),_try:kw2("try"),_var:kw2("var"),_const:kw2("const"),_while:kw2("while",{isLoop:true}),_with:kw2("with"),_new:kw2("new",{beforeExpr:true,startsExpr:true}),_this:kw2("this",startsExpr),_super:kw2("super",startsExpr),_class:kw2("class",startsExpr),_extends:kw2("extends",beforeExpr),_export:kw2("export"),_import:kw2("import",startsExpr),_null:kw2("null",startsExpr),_true:kw2("true",startsExpr),_false:kw2("false",startsExpr),_in:kw2("in",{beforeExpr:true,binop:7}),_instanceof:kw2("instanceof",{beforeExpr:true,binop:7}),_typeof:kw2("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw2("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw2("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var lineBreak=/\r\n?|\n|\u2028|\u2029/;var lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code22){return code22===10||code22===13||code22===8232||code22===8233}function nextLineBreak(code22,from,end){if(end===void 0)end=code22.length;for(var i22=from;i22<end;i22++){var next2=code22.charCodeAt(i22);if(isNewLine(next2)){return i22<end-1&&next2===13&&code22.charCodeAt(i22+1)===10?i22+2:i22+1}}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var ref=Object.prototype;var hasOwnProperty=ref.hasOwnProperty;var toString2=ref.toString;var hasOwn=Object.hasOwn||function(obj,propName){return hasOwnProperty.call(obj,propName)};var isArray=Array.isArray||function(obj){return toString2.call(obj)==="[object Array]"};var regexpCache=Object.create(null);function wordsRegexp(words){return regexpCache[words]||(regexpCache[words]=new RegExp("^(?:"+words.replace(/ /g,"|")+")$"))}function codePointToString(code22){if(code22<=65535){return String.fromCharCode(code22)}code22-=65536;return String.fromCharCode((code22>>10)+55296,(code22&1023)+56320)}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;var Position=function Position2(line,col){this.line=line;this.column=col};Position.prototype.offset=function offset(n8){return new Position(this.line,this.column+n8)};var SourceLocation=function SourceLocation2(p,start,end){this.start=start;this.end=end;if(p.sourceFile!==null){this.source=p.sourceFile}};function getLineInfo(input,offset2){for(var line=1,cur=0;;){var nextBreak=nextLineBreak(input,cur,offset2);if(nextBreak<0){return new Position(line,offset2-cur)}++line;cur=nextBreak}}var defaultOptions2={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:false,checkPrivateFields:true,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};var warnedAboutEcmaVersion=false;function getOptions(opts){var options={};for(var opt in defaultOptions2){options[opt]=opts&&hasOwn(opts,opt)?opts[opt]:defaultOptions2[opt]}if(options.ecmaVersion==="latest"){options.ecmaVersion=1e8}else if(options.ecmaVersion==null){if(!warnedAboutEcmaVersion&&typeof console==="object"&&console.warn){warnedAboutEcmaVersion=true;console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")}options.ecmaVersion=11}else if(options.ecmaVersion>=2015){options.ecmaVersion-=2009}if(options.allowReserved==null){options.allowReserved=options.ecmaVersion<5}if(!opts||opts.allowHashBang==null){options.allowHashBang=options.ecmaVersion>=14}if(isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}if(isArray(options.onComment)){options.onComment=pushComment(options,options.onComment)}return options}function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};if(options.locations){comment.loc=new SourceLocation(this,startLoc,endLoc)}if(options.ranges){comment.range=[start,end]}array.push(comment)}}var SCOPE_TOP=1;var SCOPE_FUNCTION=2;var SCOPE_ASYNC=4;var SCOPE_GENERATOR=8;var SCOPE_ARROW=16;var SCOPE_SIMPLE_CATCH=32;var SCOPE_SUPER=64;var SCOPE_DIRECT_SUPER=128;var SCOPE_CLASS_STATIC_BLOCK=256;var SCOPE_CLASS_FIELD_INIT=512;var SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(async,generator){return SCOPE_FUNCTION|(async?SCOPE_ASYNC:0)|(generator?SCOPE_GENERATOR:0)}var BIND_NONE=0;var BIND_VAR=1;var BIND_LEXICAL=2;var BIND_FUNCTION=3;var BIND_SIMPLE_CATCH=4;var BIND_OUTSIDE=5;var Parser=function Parser2(options,input,startPos){this.options=options=getOptions(options);this.sourceFile=options.sourceFile;this.keywords=wordsRegexp(keywords$1[options.ecmaVersion>=6?6:options.sourceType==="module"?"5module":5]);var reserved="";if(options.allowReserved!==true){reserved=reservedWords[options.ecmaVersion>=6?6:options.ecmaVersion===5?5:3];if(options.sourceType==="module"){reserved+=" await"}}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict);this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind);this.input=String(input);this.containsEsc=false;if(startPos){this.pos=startPos;this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=types$1.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=options.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.potentialArrowInForAwait=false;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports=Object.create(null);if(this.pos===0&&options.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(SCOPE_TOP);this.regexpState=null;this.privateNameStack=[]};var prototypeAccessors={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},canAwait:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true},allowNewDotTarget:{configurable:true},inClassStaticBlock:{configurable:true}};Parser.prototype.parse=function parse2(){var node=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(node)};prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0};prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0};prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0};prototypeAccessors.canAwait.get=function(){for(var i22=this.scopeStack.length-1;i22>=0;i22--){var ref2=this.scopeStack[i22];var flags=ref2.flags;if(flags&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)){return false}if(flags&SCOPE_FUNCTION){return(flags&SCOPE_ASYNC)>0}}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};prototypeAccessors.allowSuper.get=function(){var ref2=this.currentThisScope();var flags=ref2.flags;return(flags&SCOPE_SUPER)>0||this.options.allowSuperOutsideMethod};prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0};prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};prototypeAccessors.allowNewDotTarget.get=function(){for(var i22=this.scopeStack.length-1;i22>=0;i22--){var ref2=this.scopeStack[i22];var flags=ref2.flags;if(flags&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)||flags&SCOPE_FUNCTION&&!(flags&SCOPE_ARROW)){return true}}return false};prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0};Parser.extend=function extend2(){var plugins=[],len2=arguments.length;while(len2--)plugins[len2]=arguments[len2];var cls=this;for(var i22=0;i22<plugins.length;i22++){cls=plugins[i22](cls)}return cls};Parser.parse=function parse22(input,options){return new this(options,input).parse()};Parser.parseExpressionAt=function parseExpressionAt(input,pos,options){var parser=new this(options,input,pos);parser.nextToken();return parser.parseExpression()};Parser.tokenizer=function tokenizer(input,options){return new this(options,input)};Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype;var literal=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(start){if(this.options.ecmaVersion<5){return false}for(;;){skipWhiteSpace.lastIndex=start;start+=skipWhiteSpace.exec(this.input)[0].length;var match2=literal.exec(this.input.slice(start));if(!match2){return false}if((match2[1]||match2[2])==="use strict"){skipWhiteSpace.lastIndex=start+match2[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length;var next2=this.input.charAt(end);return next2===";"||next2==="}"||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next2)||next2==="!"&&this.input.charAt(end+1)==="=")}start+=match2[0].length;skipWhiteSpace.lastIndex=start;start+=skipWhiteSpace.exec(this.input)[0].length;if(this.input[start]===";"){start++}}};pp$9.eat=function(type2){if(this.type===type2){this.next();return true}else{return false}};pp$9.isContextual=function(name){return this.type===types$1.name&&this.value===name&&!this.containsEsc};pp$9.eatContextual=function(name){if(!this.isContextual(name)){return false}this.next();return true};pp$9.expectContextual=function(name){if(!this.eatContextual(name)){this.unexpected()}};pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$9.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};pp$9.semicolon=function(){if(!this.eat(types$1.semi)&&!this.insertSemicolon()){this.unexpected()}};pp$9.afterTrailingComma=function(tokType,notNext){if(this.type===tokType){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!notNext){this.next()}return true}};pp$9.expect=function(type2){this.eat(type2)||this.unexpected()};pp$9.unexpected=function(pos){this.raise(pos!=null?pos:this.start,"Unexpected token")};var DestructuringErrors=function DestructuringErrors2(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(refDestructuringErrors,isAssign){if(!refDestructuringErrors){return}if(refDestructuringErrors.trailingComma>-1){this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element")}var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;if(parens>-1){this.raiseRecoverable(parens,isAssign?"Assigning to rvalue":"Parenthesized pattern")}};pp$9.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors){return false}var shorthandAssign=refDestructuringErrors.shorthandAssign;var doubleProto=refDestructuringErrors.doubleProto;if(!andThrow){return shorthandAssign>=0||doubleProto>=0}if(shorthandAssign>=0){this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns")}if(doubleProto>=0){this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")}};pp$9.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)){this.raise(this.yieldPos,"Yield expression cannot be a default value")}if(this.awaitPos){this.raise(this.awaitPos,"Await expression cannot be a default value")}};pp$9.isSimpleAssignTarget=function(expr){if(expr.type==="ParenthesizedExpression"){return this.isSimpleAssignTarget(expr.expression)}return expr.type==="Identifier"||expr.type==="MemberExpression"};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(node){var exports$1=Object.create(null);if(!node.body){node.body=[]}while(this.type!==types$1.eof){var stmt=this.parseStatement(null,true,exports$1);node.body.push(stmt)}if(this.inModule){for(var i22=0,list2=Object.keys(this.undefinedExports);i22<list2.length;i22+=1){var name=list2[i22];this.raiseRecoverable(this.undefinedExports[name].start,"Export '"+name+"' is not defined")}}this.adaptDirectivePrologue(node.body);this.next();node.sourceType=this.options.sourceType;return this.finishNode(node,"Program")};var loopLabel={kind:"loop"};var switchLabel={kind:"switch"};pp$8.isLet=function(context2){if(this.options.ecmaVersion<6||!this.isContextual("let")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next2);if(nextCh===91||nextCh===92){return true}if(context2){return false}if(nextCh===123||nextCh>55295&&nextCh<56320){return true}if(isIdentifierStart(nextCh,true)){var pos=next2+1;while(isIdentifierChar(nextCh=this.input.charCodeAt(pos),true)){++pos}if(nextCh===92||nextCh>55295&&nextCh<56320){return true}var ident=this.input.slice(next2,pos);if(!keywordRelationalOperator.test(ident)){return true}}return false};pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,after;return!lineBreak.test(this.input.slice(this.pos,next2))&&this.input.slice(next2,next2+8)==="function"&&(next2+8===this.input.length||!(isIdentifierChar(after=this.input.charCodeAt(next2+8))||after>55295&&after<56320))};pp$8.isUsingKeyword=function(isAwaitUsing,isFor){if(this.options.ecmaVersion<17||!this.isContextual(isAwaitUsing?"await":"using")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length;if(lineBreak.test(this.input.slice(this.pos,next2))){return false}if(isAwaitUsing){var awaitEndPos=next2+5,after;if(this.input.slice(next2,awaitEndPos)!=="using"||awaitEndPos===this.input.length||isIdentifierChar(after=this.input.charCodeAt(awaitEndPos))||after>55295&&after<56320){return false}skipWhiteSpace.lastIndex=awaitEndPos;var skipAfterUsing=skipWhiteSpace.exec(this.input);if(skipAfterUsing&&lineBreak.test(this.input.slice(awaitEndPos,awaitEndPos+skipAfterUsing[0].length))){return false}}if(isFor){var ofEndPos=next2+2,after$1;if(this.input.slice(next2,ofEndPos)==="of"){if(ofEndPos===this.input.length||!isIdentifierChar(after$1=this.input.charCodeAt(ofEndPos))&&!(after$1>55295&&after$1<56320)){return false}}}var ch22=this.input.charCodeAt(next2);return isIdentifierStart(ch22,true)||ch22===92};pp$8.isAwaitUsing=function(isFor){return this.isUsingKeyword(true,isFor)};pp$8.isUsing=function(isFor){return this.isUsingKeyword(false,isFor)};pp$8.parseStatement=function(context2,topLevel,exports$1){var starttype=this.type,node=this.startNode(),kind;if(this.isLet(context2)){starttype=types$1._var;kind="let"}switch(starttype){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(node,starttype.keyword);case types$1._debugger:return this.parseDebuggerStatement(node);case types$1._do:return this.parseDoStatement(node);case types$1._for:return this.parseForStatement(node);case types$1._function:if(context2&&(this.strict||context2!=="if"&&context2!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(node,false,!context2);case types$1._class:if(context2){this.unexpected()}return this.parseClass(node,true);case types$1._if:return this.parseIfStatement(node);case types$1._return:return this.parseReturnStatement(node);case types$1._switch:return this.parseSwitchStatement(node);case types$1._throw:return this.parseThrowStatement(node);case types$1._try:return this.parseTryStatement(node);case types$1._const:case types$1._var:kind=kind||this.value;if(context2&&kind!=="var"){this.unexpected()}return this.parseVarStatement(node,kind);case types$1._while:return this.parseWhileStatement(node);case types$1._with:return this.parseWithStatement(node);case types$1.braceL:return this.parseBlock(true,node);case types$1.semi:return this.parseEmptyStatement(node);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&starttype===types$1._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next2);if(nextCh===40||nextCh===46){return this.parseExpressionStatement(node,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!topLevel){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return starttype===types$1._import?this.parseImport(node):this.parseExport(node,exports$1);default:if(this.isAsyncFunction()){if(context2){this.unexpected()}this.next();return this.parseFunctionStatement(node,true,!context2)}var usingKind=this.isAwaitUsing(false)?"await using":this.isUsing(false)?"using":null;if(usingKind){if(topLevel&&this.options.sourceType==="script"){this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`")}if(usingKind==="await using"){if(!this.canAwait){this.raise(this.start,"Await using cannot appear outside of async function")}this.next()}this.next();this.parseVar(node,false,usingKind);this.semicolon();return this.finishNode(node,"VariableDeclaration")}var maybeName=this.value,expr=this.parseExpression();if(starttype===types$1.name&&expr.type==="Identifier"&&this.eat(types$1.colon)){return this.parseLabeledStatement(node,maybeName,expr,context2)}else{return this.parseExpressionStatement(node,expr)}}};pp$8.parseBreakContinueStatement=function(node,keyword){var isBreak=keyword==="break";this.next();if(this.eat(types$1.semi)||this.insertSemicolon()){node.label=null}else if(this.type!==types$1.name){this.unexpected()}else{node.label=this.parseIdent();this.semicolon()}var i22=0;for(;i22<this.labels.length;++i22){var lab=this.labels[i22];if(node.label==null||lab.name===node.label.name){if(lab.kind!=null&&(isBreak||lab.kind==="loop")){break}if(node.label&&isBreak){break}}}if(i22===this.labels.length){this.raise(node.start,"Unsyntactic "+keyword)}return this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")};pp$8.parseDebuggerStatement=function(node){this.next();this.semicolon();return this.finishNode(node,"DebuggerStatement")};pp$8.parseDoStatement=function(node){this.next();this.labels.push(loopLabel);node.body=this.parseStatement("do");this.labels.pop();this.expect(types$1._while);node.test=this.parseParenExpression();if(this.options.ecmaVersion>=6){this.eat(types$1.semi)}else{this.semicolon()}return this.finishNode(node,"DoWhileStatement")};pp$8.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(loopLabel);this.enterScope(0);this.expect(types$1.parenL);if(this.type===types$1.semi){if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,null)}var isLet=this.isLet();if(this.type===types$1._var||this.type===types$1._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;this.next();this.parseVar(init$1,true,kind);this.finishNode(init$1,"VariableDeclaration");return this.parseForAfterInit(node,init$1,awaitAt)}var startsWithLet=this.isContextual("let"),isForOf=false;var usingKind=this.isUsing(true)?"using":this.isAwaitUsing(true)?"await using":null;if(usingKind){var init$2=this.startNode();this.next();if(usingKind==="await using"){this.next()}this.parseVar(init$2,true,usingKind);this.finishNode(init$2,"VariableDeclaration");return this.parseForAfterInit(node,init$2,awaitAt)}var containsEsc=this.containsEsc;var refDestructuringErrors=new DestructuringErrors;var initPos=this.start;var init=awaitAt>-1?this.parseExprSubscripts(refDestructuringErrors,"await"):this.parseExpression(true,refDestructuringErrors);if(this.type===types$1._in||(isForOf=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(awaitAt>-1){if(this.type===types$1._in){this.unexpected(awaitAt)}node.await=true}else if(isForOf&&this.options.ecmaVersion>=8){if(init.start===initPos&&!containsEsc&&init.type==="Identifier"&&init.name==="async"){this.unexpected()}else if(this.options.ecmaVersion>=9){node.await=false}}if(startsWithLet&&isForOf){this.raise(init.start,"The left-hand side of a for-of loop may not start with 'let'.")}this.toAssignable(init,false,refDestructuringErrors);this.checkLValPattern(init);return this.parseForIn(node,init)}else{this.checkExpressionErrors(refDestructuringErrors,true)}if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,init)};pp$8.parseForAfterInit=function(node,init,awaitAt){if((this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&init.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===types$1._in){if(awaitAt>-1){this.unexpected(awaitAt)}}else{node.await=awaitAt>-1}}return this.parseForIn(node,init)}if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,init)};pp$8.parseFunctionStatement=function(node,isAsync,declarationPosition){this.next();return this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),false,isAsync)};pp$8.parseIfStatement=function(node){this.next();node.test=this.parseParenExpression();node.consequent=this.parseStatement("if");node.alternate=this.eat(types$1._else)?this.parseStatement("if"):null;return this.finishNode(node,"IfStatement")};pp$8.parseReturnStatement=function(node){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(types$1.semi)||this.insertSemicolon()){node.argument=null}else{node.argument=this.parseExpression();this.semicolon()}return this.finishNode(node,"ReturnStatement")};pp$8.parseSwitchStatement=function(node){this.next();node.discriminant=this.parseParenExpression();node.cases=[];this.expect(types$1.braceL);this.labels.push(switchLabel);this.enterScope(0);var cur;for(var sawDefault=false;this.type!==types$1.braceR;){if(this.type===types$1._case||this.type===types$1._default){var isCase=this.type===types$1._case;if(cur){this.finishNode(cur,"SwitchCase")}node.cases.push(cur=this.startNode());cur.consequent=[];this.next();if(isCase){cur.test=this.parseExpression()}else{if(sawDefault){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}sawDefault=true;cur.test=null}this.expect(types$1.colon)}else{if(!cur){this.unexpected()}cur.consequent.push(this.parseStatement(null))}}this.exitScope();if(cur){this.finishNode(cur,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(node,"SwitchStatement")};pp$8.parseThrowStatement=function(node){this.next();if(lineBreak.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}node.argument=this.parseExpression();this.semicolon();return this.finishNode(node,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var param=this.parseBindingAtom();var simple=param.type==="Identifier";this.enterScope(simple?SCOPE_SIMPLE_CATCH:0);this.checkLValPattern(param,simple?BIND_SIMPLE_CATCH:BIND_LEXICAL);this.expect(types$1.parenR);return param};pp$8.parseTryStatement=function(node){this.next();node.block=this.parseBlock();node.handler=null;if(this.type===types$1._catch){var clause=this.startNode();this.next();if(this.eat(types$1.parenL)){clause.param=this.parseCatchClauseParam()}else{if(this.options.ecmaVersion<10){this.unexpected()}clause.param=null;this.enterScope(0)}clause.body=this.parseBlock(false);this.exitScope();node.handler=this.finishNode(clause,"CatchClause")}node.finalizer=this.eat(types$1._finally)?this.parseBlock():null;if(!node.handler&&!node.finalizer){this.raise(node.start,"Missing catch or finally clause")}return this.finishNode(node,"TryStatement")};pp$8.parseVarStatement=function(node,kind,allowMissingInitializer){this.next();this.parseVar(node,false,kind,allowMissingInitializer);this.semicolon();return this.finishNode(node,"VariableDeclaration")};pp$8.parseWhileStatement=function(node){this.next();node.test=this.parseParenExpression();this.labels.push(loopLabel);node.body=this.parseStatement("while");this.labels.pop();return this.finishNode(node,"WhileStatement")};pp$8.parseWithStatement=function(node){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();node.object=this.parseParenExpression();node.body=this.parseStatement("with");return this.finishNode(node,"WithStatement")};pp$8.parseEmptyStatement=function(node){this.next();return this.finishNode(node,"EmptyStatement")};pp$8.parseLabeledStatement=function(node,maybeName,expr,context2){for(var i$12=0,list2=this.labels;i$12<list2.length;i$12+=1){var label=list2[i$12];if(label.name===maybeName){this.raise(expr.start,"Label '"+maybeName+"' is already declared")}}var kind=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null;for(var i22=this.labels.length-1;i22>=0;i22--){var label$1=this.labels[i22];if(label$1.statementStart===node.start){label$1.statementStart=this.start;label$1.kind=kind}else{break}}this.labels.push({name:maybeName,kind,statementStart:this.start});node.body=this.parseStatement(context2?context2.indexOf("label")===-1?context2+"label":context2:"label");this.labels.pop();node.label=expr;return this.finishNode(node,"LabeledStatement")};pp$8.parseExpressionStatement=function(node,expr){node.expression=expr;this.semicolon();return this.finishNode(node,"ExpressionStatement")};pp$8.parseBlock=function(createNewLexicalScope,node,exitStrict){if(createNewLexicalScope===void 0)createNewLexicalScope=true;if(node===void 0)node=this.startNode();node.body=[];this.expect(types$1.braceL);if(createNewLexicalScope){this.enterScope(0)}while(this.type!==types$1.braceR){var stmt=this.parseStatement(null);node.body.push(stmt)}if(exitStrict){this.strict=false}this.next();if(createNewLexicalScope){this.exitScope()}return this.finishNode(node,"BlockStatement")};pp$8.parseFor=function(node,init){node.init=init;this.expect(types$1.semi);node.test=this.type===types$1.semi?null:this.parseExpression();this.expect(types$1.semi);node.update=this.type===types$1.parenR?null:this.parseExpression();this.expect(types$1.parenR);node.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(node,"ForStatement")};pp$8.parseForIn=function(node,init){var isForIn=this.type===types$1._in;this.next();if(init.type==="VariableDeclaration"&&init.declarations[0].init!=null&&(!isForIn||this.options.ecmaVersion<8||this.strict||init.kind!=="var"||init.declarations[0].id.type!=="Identifier")){this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer")}node.left=init;node.right=isForIn?this.parseExpression():this.parseMaybeAssign();this.expect(types$1.parenR);node.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")};pp$8.parseVar=function(node,isFor,kind,allowMissingInitializer){node.declarations=[];node.kind=kind;for(;;){var decl=this.startNode();this.parseVarId(decl,kind);if(this.eat(types$1.eq)){decl.init=this.parseMaybeAssign(isFor)}else if(!allowMissingInitializer&&kind==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(!allowMissingInitializer&&(kind==="using"||kind==="await using")&&this.options.ecmaVersion>=17&&this.type!==types$1._in&&!this.isContextual("of")){this.raise(this.lastTokEnd,"Missing initializer in "+kind+" declaration")}else if(!allowMissingInitializer&&decl.id.type!=="Identifier"&&!(isFor&&(this.type===types$1._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{decl.init=null}node.declarations.push(this.finishNode(decl,"VariableDeclarator"));if(!this.eat(types$1.comma)){break}}return node};pp$8.parseVarId=function(decl,kind){decl.id=kind==="using"||kind==="await using"?this.parseIdent():this.parseBindingAtom();this.checkLValPattern(decl.id,kind==="var"?BIND_VAR:BIND_LEXICAL,false)};var FUNC_STATEMENT=1;var FUNC_HANGING_STATEMENT=2;var FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(node,statement,allowExpressionBody,isAsync,forInit){this.initFunction(node);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync){if(this.type===types$1.star&&statement&FUNC_HANGING_STATEMENT){this.unexpected()}node.generator=this.eat(types$1.star)}if(this.options.ecmaVersion>=8){node.async=!!isAsync}if(statement&FUNC_STATEMENT){node.id=statement&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent();if(node.id&&!(statement&FUNC_HANGING_STATEMENT)){this.checkLValSimple(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION)}}var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(node.async,node.generator));if(!(statement&FUNC_STATEMENT)){node.id=this.type===types$1.name?this.parseIdent():null}this.parseFunctionParams(node);this.parseFunctionBody(node,allowExpressionBody,false,forInit);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")};pp$8.parseFunctionParams=function(node){this.expect(types$1.parenL);node.params=this.parseBindingList(types$1.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};pp$8.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=true;this.parseClassId(node,isStatement);this.parseClassSuper(node);var privateNameMap=this.enterClassBody();var classBody=this.startNode();var hadConstructor=false;classBody.body=[];this.expect(types$1.braceL);while(this.type!==types$1.braceR){var element=this.parseClassElement(node.superClass!==null);if(element){classBody.body.push(element);if(element.type==="MethodDefinition"&&element.kind==="constructor"){if(hadConstructor){this.raiseRecoverable(element.start,"Duplicate constructor in the same class")}hadConstructor=true}else if(element.key&&element.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(privateNameMap,element)){this.raiseRecoverable(element.key.start,"Identifier '#"+element.key.name+"' has already been declared")}}}this.strict=oldStrict;this.next();node.body=this.finishNode(classBody,"ClassBody");this.exitClassBody();return this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")};pp$8.parseClassElement=function(constructorAllowsSuper){if(this.eat(types$1.semi)){return null}var ecmaVersion2=this.options.ecmaVersion;var node=this.startNode();var keyName="";var isGenerator=false;var isAsync=false;var kind="method";var isStatic=false;if(this.eatContextual("static")){if(ecmaVersion2>=13&&this.eat(types$1.braceL)){this.parseClassStaticBlock(node);return node}if(this.isClassElementNameStart()||this.type===types$1.star){isStatic=true}else{keyName="static"}}node.static=isStatic;if(!keyName&&ecmaVersion2>=8&&this.eatContextual("async")){if((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()){isAsync=true}else{keyName="async"}}if(!keyName&&(ecmaVersion2>=9||!isAsync)&&this.eat(types$1.star)){isGenerator=true}if(!keyName&&!isAsync&&!isGenerator){var lastValue=this.value;if(this.eatContextual("get")||this.eatContextual("set")){if(this.isClassElementNameStart()){kind=lastValue}else{keyName=lastValue}}}if(keyName){node.computed=false;node.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);node.key.name=keyName;this.finishNode(node.key,"Identifier")}else{this.parseClassElementName(node)}if(ecmaVersion2<13||this.type===types$1.parenL||kind!=="method"||isGenerator||isAsync){var isConstructor=!node.static&&checkKeyName(node,"constructor");var allowsDirectSuper=isConstructor&&constructorAllowsSuper;if(isConstructor&&kind!=="method"){this.raise(node.key.start,"Constructor can't have get/set modifier")}node.kind=isConstructor?"constructor":kind;this.parseClassMethod(node,isGenerator,isAsync,allowsDirectSuper)}else{this.parseClassField(node)}return node};pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword};pp$8.parseClassElementName=function(element){if(this.type===types$1.privateId){if(this.value==="constructor"){this.raise(this.start,"Classes can't have an element named '#constructor'")}element.computed=false;element.key=this.parsePrivateIdent()}else{this.parsePropertyName(element)}};pp$8.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){var key=method.key;if(method.kind==="constructor"){if(isGenerator){this.raise(key.start,"Constructor can't be a generator")}if(isAsync){this.raise(key.start,"Constructor can't be an async method")}}else if(method.static&&checkKeyName(method,"prototype")){this.raise(key.start,"Classes may not have a static property named prototype")}var value=method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper);if(method.kind==="get"&&value.params.length!==0){this.raiseRecoverable(value.start,"getter should have no params")}if(method.kind==="set"&&value.params.length!==1){this.raiseRecoverable(value.start,"setter should have exactly one param")}if(method.kind==="set"&&value.params[0].type==="RestElement"){this.raiseRecoverable(value.params[0].start,"Setter cannot use rest params")}return this.finishNode(method,"MethodDefinition")};pp$8.parseClassField=function(field){if(checkKeyName(field,"constructor")){this.raise(field.key.start,"Classes can't have a field named 'constructor'")}else if(field.static&&checkKeyName(field,"prototype")){this.raise(field.key.start,"Classes can't have a static field named 'prototype'")}if(this.eat(types$1.eq)){this.enterScope(SCOPE_CLASS_FIELD_INIT|SCOPE_SUPER);field.value=this.parseMaybeAssign();this.exitScope()}else{field.value=null}this.semicolon();return this.finishNode(field,"PropertyDefinition")};pp$8.parseClassStaticBlock=function(node){node.body=[];var oldLabels=this.labels;this.labels=[];this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);while(this.type!==types$1.braceR){var stmt=this.parseStatement(null);node.body.push(stmt)}this.next();this.exitScope();this.labels=oldLabels;return this.finishNode(node,"StaticBlock")};pp$8.parseClassId=function(node,isStatement){if(this.type===types$1.name){node.id=this.parseIdent();if(isStatement){this.checkLValSimple(node.id,BIND_LEXICAL,false)}}else{if(isStatement===true){this.unexpected()}node.id=null}};pp$8.parseClassSuper=function(node){node.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,false):null};pp$8.enterClassBody=function(){var element={declared:Object.create(null),used:[]};this.privateNameStack.push(element);return element.declared};pp$8.exitClassBody=function(){var ref2=this.privateNameStack.pop();var declared=ref2.declared;var used=ref2.used;if(!this.options.checkPrivateFields){return}var len2=this.privateNameStack.length;var parent=len2===0?null:this.privateNameStack[len2-1];for(var i22=0;i22<used.length;++i22){var id2=used[i22];if(!hasOwn(declared,id2.name)){if(parent){parent.used.push(id2)}else{this.raiseRecoverable(id2.start,"Private field '#"+id2.name+"' must be declared in an enclosing class")}}}};function isPrivateNameConflicted(privateNameMap,element){var name=element.key.name;var curr=privateNameMap[name];var next2="true";if(element.type==="MethodDefinition"&&(element.kind==="get"||element.kind==="set")){next2=(element.static?"s":"i")+element.kind}if(curr==="iget"&&next2==="iset"||curr==="iset"&&next2==="iget"||curr==="sget"&&next2==="sset"||curr==="sset"&&next2==="sget"){privateNameMap[name]="true";return false}else if(!curr){privateNameMap[name]=next2;return false}else{return true}}function checkKeyName(node,name){var computed=node.computed;var key=node.key;return!computed&&(key.type==="Identifier"&&key.name===name||key.type==="Literal"&&key.value===name)}pp$8.parseExportAllDeclaration=function(node,exports$1){if(this.options.ecmaVersion>=11){if(this.eatContextual("as")){node.exported=this.parseModuleExportName();this.checkExport(exports$1,node.exported,this.lastTokStart)}else{node.exported=null}}this.expectContextual("from");if(this.type!==types$1.string){this.unexpected()}node.source=this.parseExprAtom();if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}this.semicolon();return this.finishNode(node,"ExportAllDeclaration")};pp$8.parseExport=function(node,exports$1){this.next();if(this.eat(types$1.star)){return this.parseExportAllDeclaration(node,exports$1)}if(this.eat(types$1._default)){this.checkExport(exports$1,"default",this.lastTokStart);node.declaration=this.parseExportDefaultDeclaration();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){node.declaration=this.parseExportDeclaration(node);if(node.declaration.type==="VariableDeclaration"){this.checkVariableExport(exports$1,node.declaration.declarations)}else{this.checkExport(exports$1,node.declaration.id,node.declaration.id.start)}node.specifiers=[];node.source=null;if(this.options.ecmaVersion>=16){node.attributes=[]}}else{node.declaration=null;node.specifiers=this.parseExportSpecifiers(exports$1);if(this.eatContextual("from")){if(this.type!==types$1.string){this.unexpected()}node.source=this.parseExprAtom();if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}}else{for(var i22=0,list2=node.specifiers;i22<list2.length;i22+=1){var spec=list2[i22];this.checkUnreserved(spec.local);this.checkLocalExport(spec.local);if(spec.local.type==="Literal"){this.raise(spec.local.start,"A string literal cannot be used as an exported binding without `from`.")}}node.source=null;if(this.options.ecmaVersion>=16){node.attributes=[]}}this.semicolon()}return this.finishNode(node,"ExportNamedDeclaration")};pp$8.parseExportDeclaration=function(node){return this.parseStatement(null)};pp$8.parseExportDefaultDeclaration=function(){var isAsync;if(this.type===types$1._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next();if(isAsync){this.next()}return this.parseFunction(fNode,FUNC_STATEMENT|FUNC_NULLABLE_ID,false,isAsync)}else if(this.type===types$1._class){var cNode=this.startNode();return this.parseClass(cNode,"nullableID")}else{var declaration=this.parseMaybeAssign();this.semicolon();return declaration}};pp$8.checkExport=function(exports$1,name,pos){if(!exports$1){return}if(typeof name!=="string"){name=name.type==="Identifier"?name.name:name.value}if(hasOwn(exports$1,name)){this.raiseRecoverable(pos,"Duplicate export '"+name+"'")}exports$1[name]=true};pp$8.checkPatternExport=function(exports$1,pat){var type2=pat.type;if(type2==="Identifier"){this.checkExport(exports$1,pat,pat.start)}else if(type2==="ObjectPattern"){for(var i22=0,list2=pat.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.checkPatternExport(exports$1,prop)}}else if(type2==="ArrayPattern"){for(var i$12=0,list$1=pat.elements;i$12<list$1.length;i$12+=1){var elt=list$1[i$12];if(elt){this.checkPatternExport(exports$1,elt)}}}else if(type2==="Property"){this.checkPatternExport(exports$1,pat.value)}else if(type2==="AssignmentPattern"){this.checkPatternExport(exports$1,pat.left)}else if(type2==="RestElement"){this.checkPatternExport(exports$1,pat.argument)}};pp$8.checkVariableExport=function(exports$1,decls){if(!exports$1){return}for(var i22=0,list2=decls;i22<list2.length;i22+=1){var decl=list2[i22];this.checkPatternExport(exports$1,decl.id)}};pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};pp$8.parseExportSpecifier=function(exports$1){var node=this.startNode();node.local=this.parseModuleExportName();node.exported=this.eatContextual("as")?this.parseModuleExportName():node.local;this.checkExport(exports$1,node.exported,node.exported.start);return this.finishNode(node,"ExportSpecifier")};pp$8.parseExportSpecifiers=function(exports$1){var nodes=[],first=true;this.expect(types$1.braceL);while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}nodes.push(this.parseExportSpecifier(exports$1))}return nodes};pp$8.parseImport=function(node){this.next();if(this.type===types$1.string){node.specifiers=empty$1;node.source=this.parseExprAtom()}else{node.specifiers=this.parseImportSpecifiers();this.expectContextual("from");node.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()}if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}this.semicolon();return this.finishNode(node,"ImportDeclaration")};pp$8.parseImportSpecifier=function(){var node=this.startNode();node.imported=this.parseModuleExportName();if(this.eatContextual("as")){node.local=this.parseIdent()}else{this.checkUnreserved(node.imported);node.local=node.imported}this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportSpecifier")};pp$8.parseImportDefaultSpecifier=function(){var node=this.startNode();node.local=this.parseIdent();this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportDefaultSpecifier")};pp$8.parseImportNamespaceSpecifier=function(){var node=this.startNode();this.next();this.expectContextual("as");node.local=this.parseIdent();this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportNamespaceSpecifier")};pp$8.parseImportSpecifiers=function(){var nodes=[],first=true;if(this.type===types$1.name){nodes.push(this.parseImportDefaultSpecifier());if(!this.eat(types$1.comma)){return nodes}}if(this.type===types$1.star){nodes.push(this.parseImportNamespaceSpecifier());return nodes}this.expect(types$1.braceL);while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}nodes.push(this.parseImportSpecifier())}return nodes};pp$8.parseWithClause=function(){var nodes=[];if(!this.eat(types$1._with)){return nodes}this.expect(types$1.braceL);var attributeKeys={};var first=true;while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}var attr=this.parseImportAttribute();var keyName=attr.key.type==="Identifier"?attr.key.name:attr.key.value;if(hasOwn(attributeKeys,keyName)){this.raiseRecoverable(attr.key.start,"Duplicate attribute key '"+keyName+"'")}attributeKeys[keyName]=true;nodes.push(attr)}return nodes};pp$8.parseImportAttribute=function(){var node=this.startNode();node.key=this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never");this.expect(types$1.colon);if(this.type!==types$1.string){this.unexpected()}node.value=this.parseExprAtom();return this.finishNode(node,"ImportAttribute")};pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var stringLiteral=this.parseLiteral(this.value);if(loneSurrogate.test(stringLiteral.value)){this.raise(stringLiteral.start,"An export name cannot include a lone surrogate.")}return stringLiteral}return this.parseIdent(true)};pp$8.adaptDirectivePrologue=function(statements){for(var i22=0;i22<statements.length&&this.isDirectiveCandidate(statements[i22]);++i22){statements[i22].directive=statements[i22].expression.raw.slice(1,-1)}};pp$8.isDirectiveCandidate=function(statement){return this.options.ecmaVersion>=5&&statement.type==="ExpressionStatement"&&statement.expression.type==="Literal"&&typeof statement.expression.value==="string"&&(this.input[statement.start]==='"'||this.input[statement.start]==="'")};var pp$7=Parser.prototype;pp$7.toAssignable=function(node,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node){switch(node.type){case"Identifier":if(this.inAsync&&node.name==="await"){this.raise(node.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern";if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}for(var i22=0,list2=node.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.toAssignable(prop,isBinding);if(prop.type==="RestElement"&&(prop.argument.type==="ArrayPattern"||prop.argument.type==="ObjectPattern")){this.raise(prop.argument.start,"Unexpected token")}}break;case"Property":if(node.kind!=="init"){this.raise(node.key.start,"Object pattern can't contain getter or setter")}this.toAssignable(node.value,isBinding);break;case"ArrayExpression":node.type="ArrayPattern";if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}this.toAssignableList(node.elements,isBinding);break;case"SpreadElement":node.type="RestElement";this.toAssignable(node.argument,isBinding);if(node.argument.type==="AssignmentPattern"){this.raise(node.argument.start,"Rest elements cannot have a default value")}break;case"AssignmentExpression":if(node.operator!=="="){this.raise(node.left.end,"Only '=' operator can be used for specifying default value.")}node.type="AssignmentPattern";delete node.operator;this.toAssignable(node.left,isBinding);break;case"ParenthesizedExpression":this.toAssignable(node.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding){break}default:this.raise(node.start,"Assigning to rvalue")}}else if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}return node};pp$7.toAssignableList=function(exprList,isBinding){var end=exprList.length;for(var i22=0;i22<end;i22++){var elt=exprList[i22];if(elt){this.toAssignable(elt,isBinding)}}if(end){var last=exprList[end-1];if(this.options.ecmaVersion===6&&isBinding&&last&&last.type==="RestElement"&&last.argument.type!=="Identifier"){this.unexpected(last.argument.start)}}return exprList};pp$7.parseSpread=function(refDestructuringErrors){var node=this.startNode();this.next();node.argument=this.parseMaybeAssign(false,refDestructuringErrors);return this.finishNode(node,"SpreadElement")};pp$7.parseRestBinding=function(){var node=this.startNode();this.next();if(this.options.ecmaVersion===6&&this.type!==types$1.name){this.unexpected()}node.argument=this.parseBindingAtom();return this.finishNode(node,"RestElement")};pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6){switch(this.type){case types$1.bracketL:var node=this.startNode();this.next();node.elements=this.parseBindingList(types$1.bracketR,true,true);return this.finishNode(node,"ArrayPattern");case types$1.braceL:return this.parseObj(true)}}return this.parseIdent()};pp$7.parseBindingList=function(close2,allowEmpty,allowTrailingComma,allowModifiers){var elts=[],first=true;while(!this.eat(close2)){if(first){first=false}else{this.expect(types$1.comma)}if(allowEmpty&&this.type===types$1.comma){elts.push(null)}else if(allowTrailingComma&&this.afterTrailingComma(close2)){break}else if(this.type===types$1.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest);elts.push(rest);if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}this.expect(close2);break}else{elts.push(this.parseAssignableListItem(allowModifiers))}}return elts};pp$7.parseAssignableListItem=function(allowModifiers){var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem);return elem};pp$7.parseBindingListItem=function(param){return param};pp$7.parseMaybeDefault=function(startPos,startLoc,left){left=left||this.parseBindingAtom();if(this.options.ecmaVersion<6||!this.eat(types$1.eq)){return left}var node=this.startNodeAt(startPos,startLoc);node.left=left;node.right=this.parseMaybeAssign();return this.finishNode(node,"AssignmentPattern")};pp$7.checkLValSimple=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;var isBind=bindingType!==BIND_NONE;switch(expr.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(expr.name)){this.raiseRecoverable(expr.start,(isBind?"Binding ":"Assigning to ")+expr.name+" in strict mode")}if(isBind){if(bindingType===BIND_LEXICAL&&expr.name==="let"){this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name")}if(checkClashes){if(hasOwn(checkClashes,expr.name)){this.raiseRecoverable(expr.start,"Argument name clash")}checkClashes[expr.name]=true}if(bindingType!==BIND_OUTSIDE){this.declareName(expr.name,bindingType,expr.start)}}break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(isBind){this.raiseRecoverable(expr.start,"Binding member expression")}break;case"ParenthesizedExpression":if(isBind){this.raiseRecoverable(expr.start,"Binding parenthesized expression")}return this.checkLValSimple(expr.expression,bindingType,checkClashes);default:this.raise(expr.start,(isBind?"Binding":"Assigning to")+" rvalue")}};pp$7.checkLValPattern=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;switch(expr.type){case"ObjectPattern":for(var i22=0,list2=expr.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.checkLValInnerPattern(prop,bindingType,checkClashes)}break;case"ArrayPattern":for(var i$12=0,list$1=expr.elements;i$12<list$1.length;i$12+=1){var elem=list$1[i$12];if(elem){this.checkLValInnerPattern(elem,bindingType,checkClashes)}}break;default:this.checkLValSimple(expr,bindingType,checkClashes)}};pp$7.checkLValInnerPattern=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;switch(expr.type){case"Property":this.checkLValInnerPattern(expr.value,bindingType,checkClashes);break;case"AssignmentPattern":this.checkLValPattern(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLValPattern(expr.argument,bindingType,checkClashes);break;default:this.checkLValPattern(expr,bindingType,checkClashes)}};var TokContext=function TokContext2(token,isExpr,preserveSpace,override,generator){this.token=token;this.isExpr=!!isExpr;this.preserveSpace=!!preserveSpace;this.override=override;this.generator=!!generator};var types2={b_stat:new TokContext("{",false),b_expr:new TokContext("{",true),b_tmpl:new TokContext("${",false),p_stat:new TokContext("(",false),p_expr:new TokContext("(",true),q_tmpl:new TokContext("`",true,true,function(p){return p.tryReadTemplateToken()}),f_stat:new TokContext("function",false),f_expr:new TokContext("function",true),f_expr_gen:new TokContext("function",true,false,null,true),f_gen:new TokContext("function",false,false,null,true)};var pp$6=Parser.prototype;pp$6.initialContext=function(){return[types2.b_stat]};pp$6.curContext=function(){return this.context[this.context.length-1]};pp$6.braceIsBlock=function(prevType){var parent=this.curContext();if(parent===types2.f_expr||parent===types2.f_stat){return true}if(prevType===types$1.colon&&(parent===types2.b_stat||parent===types2.b_expr)){return!parent.isExpr}if(prevType===types$1._return||prevType===types$1.name&&this.exprAllowed){return lineBreak.test(this.input.slice(this.lastTokEnd,this.start))}if(prevType===types$1._else||prevType===types$1.semi||prevType===types$1.eof||prevType===types$1.parenR||prevType===types$1.arrow){return true}if(prevType===types$1.braceL){return parent===types2.b_stat}if(prevType===types$1._var||prevType===types$1._const||prevType===types$1.name){return false}return!this.exprAllowed};pp$6.inGeneratorContext=function(){for(var i22=this.context.length-1;i22>=1;i22--){var context2=this.context[i22];if(context2.token==="function"){return context2.generator}}return false};pp$6.updateContext=function(prevType){var update,type2=this.type;if(type2.keyword&&prevType===types$1.dot){this.exprAllowed=false}else if(update=type2.updateContext){update.call(this,prevType)}else{this.exprAllowed=type2.beforeExpr}};pp$6.overrideContext=function(tokenCtx){if(this.curContext()!==tokenCtx){this.context[this.context.length-1]=tokenCtx}};types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var out=this.context.pop();if(out===types2.b_stat&&this.curContext().token==="function"){out=this.context.pop()}this.exprAllowed=!out.isExpr};types$1.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types2.b_stat:types2.b_expr);this.exprAllowed=true};types$1.dollarBraceL.updateContext=function(){this.context.push(types2.b_tmpl);this.exprAllowed=true};types$1.parenL.updateContext=function(prevType){var statementParens=prevType===types$1._if||prevType===types$1._for||prevType===types$1._with||prevType===types$1._while;this.context.push(statementParens?types2.p_stat:types2.p_expr);this.exprAllowed=true};types$1.incDec.updateContext=function(){};types$1._function.updateContext=types$1._class.updateContext=function(prevType){if(prevType.beforeExpr&&prevType!==types$1._else&&!(prevType===types$1.semi&&this.curContext()!==types2.p_stat)&&!(prevType===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((prevType===types$1.colon||prevType===types$1.braceL)&&this.curContext()===types2.b_stat)){this.context.push(types2.f_expr)}else{this.context.push(types2.f_stat)}this.exprAllowed=false};types$1.colon.updateContext=function(){if(this.curContext().token==="function"){this.context.pop()}this.exprAllowed=true};types$1.backQuote.updateContext=function(){if(this.curContext()===types2.q_tmpl){this.context.pop()}else{this.context.push(types2.q_tmpl)}this.exprAllowed=false};types$1.star.updateContext=function(prevType){if(prevType===types$1._function){var index2=this.context.length-1;if(this.context[index2]===types2.f_expr){this.context[index2]=types2.f_expr_gen}else{this.context[index2]=types2.f_gen}}this.exprAllowed=true};types$1.name.updateContext=function(prevType){var allowed=false;if(this.options.ecmaVersion>=6&&prevType!==types$1.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){allowed=true}}this.exprAllowed=allowed};var pp$5=Parser.prototype;pp$5.checkPropClash=function(prop,propHash,refDestructuringErrors){if(this.options.ecmaVersion>=9&&prop.type==="SpreadElement"){return}if(this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand)){return}var key=prop.key;var name;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6){if(name==="__proto__"&&kind==="init"){if(propHash.proto){if(refDestructuringErrors){if(refDestructuringErrors.doubleProto<0){refDestructuringErrors.doubleProto=key.start}}else{this.raiseRecoverable(key.start,"Redefinition of __proto__ property")}}propHash.proto=true}return}name="$"+name;var other=propHash[name];if(other){var redefinition;if(kind==="init"){redefinition=this.strict&&other.init||other.get||other.set}else{redefinition=other.init||other[kind]}if(redefinition){this.raiseRecoverable(key.start,"Redefinition of property")}}else{other=propHash[name]={init:false,get:false,set:false}}other[kind]=true};pp$5.parseExpression=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseMaybeAssign(forInit,refDestructuringErrors);if(this.type===types$1.comma){var node=this.startNodeAt(startPos,startLoc);node.expressions=[expr];while(this.eat(types$1.comma)){node.expressions.push(this.parseMaybeAssign(forInit,refDestructuringErrors))}return this.finishNode(node,"SequenceExpression")}return expr};pp$5.parseMaybeAssign=function(forInit,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator){return this.parseYield(forInit)}else{this.exprAllowed=false}}var ownDestructuringErrors=false,oldParenAssign=-1,oldTrailingComma=-1,oldDoubleProto=-1;if(refDestructuringErrors){oldParenAssign=refDestructuringErrors.parenthesizedAssign;oldTrailingComma=refDestructuringErrors.trailingComma;oldDoubleProto=refDestructuringErrors.doubleProto;refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1}else{refDestructuringErrors=new DestructuringErrors;ownDestructuringErrors=true}var startPos=this.start,startLoc=this.startLoc;if(this.type===types$1.parenL||this.type===types$1.name){this.potentialArrowAt=this.start;this.potentialArrowInForAwait=forInit==="await"}var left=this.parseMaybeConditional(forInit,refDestructuringErrors);if(afterLeftParse){left=afterLeftParse.call(this,left,startPos,startLoc)}if(this.type.isAssign){var node=this.startNodeAt(startPos,startLoc);node.operator=this.value;if(this.type===types$1.eq){left=this.toAssignable(left,false,refDestructuringErrors)}if(!ownDestructuringErrors){refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1}if(refDestructuringErrors.shorthandAssign>=left.start){refDestructuringErrors.shorthandAssign=-1}if(this.type===types$1.eq){this.checkLValPattern(left)}else{this.checkLValSimple(left)}node.left=left;this.next();node.right=this.parseMaybeAssign(forInit);if(oldDoubleProto>-1){refDestructuringErrors.doubleProto=oldDoubleProto}return this.finishNode(node,"AssignmentExpression")}else{if(ownDestructuringErrors){this.checkExpressionErrors(refDestructuringErrors,true)}}if(oldParenAssign>-1){refDestructuringErrors.parenthesizedAssign=oldParenAssign}if(oldTrailingComma>-1){refDestructuringErrors.trailingComma=oldTrailingComma}return left};pp$5.parseMaybeConditional=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseExprOps(forInit,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}if(this.eat(types$1.question)){var node=this.startNodeAt(startPos,startLoc);node.test=expr;node.consequent=this.parseMaybeAssign();this.expect(types$1.colon);node.alternate=this.parseMaybeAssign(forInit);return this.finishNode(node,"ConditionalExpression")}return expr};pp$5.parseExprOps=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseMaybeUnary(refDestructuringErrors,false,false,forInit);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}return expr.start===startPos&&expr.type==="ArrowFunctionExpression"?expr:this.parseExprOp(expr,startPos,startLoc,-1,forInit)};pp$5.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,forInit){var prec=this.type.binop;if(prec!=null&&(!forInit||this.type!==types$1._in)){if(prec>minPrec){var logical=this.type===types$1.logicalOR||this.type===types$1.logicalAND;var coalesce=this.type===types$1.coalesce;if(coalesce){prec=types$1.logicalAND.binop}var op2=this.value;this.next();var startPos=this.start,startLoc=this.startLoc;var right=this.parseExprOp(this.parseMaybeUnary(null,false,false,forInit),startPos,startLoc,prec,forInit);var node=this.buildBinary(leftStartPos,leftStartLoc,left,right,op2,logical||coalesce);if(logical&&this.type===types$1.coalesce||coalesce&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND)){this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses")}return this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec,forInit)}}return left};pp$5.buildBinary=function(startPos,startLoc,left,right,op2,logical){if(right.type==="PrivateIdentifier"){this.raise(right.start,"Private identifier can only be left side of binary expression")}var node=this.startNodeAt(startPos,startLoc);node.left=left;node.operator=op2;node.right=right;return this.finishNode(node,logical?"LogicalExpression":"BinaryExpression")};pp$5.parseMaybeUnary=function(refDestructuringErrors,sawUnary,incDec,forInit){var startPos=this.start,startLoc=this.startLoc,expr;if(this.isContextual("await")&&this.canAwait){expr=this.parseAwait(forInit);sawUnary=true}else if(this.type.prefix){var node=this.startNode(),update=this.type===types$1.incDec;node.operator=this.value;node.prefix=true;this.next();node.argument=this.parseMaybeUnary(null,true,update,forInit);this.checkExpressionErrors(refDestructuringErrors,true);if(update){this.checkLValSimple(node.argument)}else if(this.strict&&node.operator==="delete"&&isLocalVariableAccess(node.argument)){this.raiseRecoverable(node.start,"Deleting local variable in strict mode")}else if(node.operator==="delete"&&isPrivateFieldAccess(node.argument)){this.raiseRecoverable(node.start,"Private fields can not be deleted")}else{sawUnary=true}expr=this.finishNode(node,update?"UpdateExpression":"UnaryExpression")}else if(!sawUnary&&this.type===types$1.privateId){if((forInit||this.privateNameStack.length===0)&&this.options.checkPrivateFields){this.unexpected()}expr=this.parsePrivateIdent();if(this.type!==types$1._in){this.unexpected()}}else{expr=this.parseExprSubscripts(refDestructuringErrors,forInit);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}while(this.type.postfix&&!this.canInsertSemicolon()){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value;node$1.prefix=false;node$1.argument=expr;this.checkLValSimple(expr);this.next();expr=this.finishNode(node$1,"UpdateExpression")}}if(!incDec&&this.eat(types$1.starstar)){if(sawUnary){this.unexpected(this.lastTokStart)}else{return this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,false,false,forInit),"**",false)}}else{return expr}};function isLocalVariableAccess(node){return node.type==="Identifier"||node.type==="ParenthesizedExpression"&&isLocalVariableAccess(node.expression)}function isPrivateFieldAccess(node){return node.type==="MemberExpression"&&node.property.type==="PrivateIdentifier"||node.type==="ChainExpression"&&isPrivateFieldAccess(node.expression)||node.type==="ParenthesizedExpression"&&isPrivateFieldAccess(node.expression)}pp$5.parseExprSubscripts=function(refDestructuringErrors,forInit){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseExprAtom(refDestructuringErrors,forInit);if(expr.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")"){return expr}var result=this.parseSubscripts(expr,startPos,startLoc,false,forInit);if(refDestructuringErrors&&result.type==="MemberExpression"){if(refDestructuringErrors.parenthesizedAssign>=result.start){refDestructuringErrors.parenthesizedAssign=-1}if(refDestructuringErrors.parenthesizedBind>=result.start){refDestructuringErrors.parenthesizedBind=-1}if(refDestructuringErrors.trailingComma>=result.start){refDestructuringErrors.trailingComma=-1}}return result};pp$5.parseSubscripts=function(base,startPos,startLoc,noCalls,forInit){var maybeAsyncArrow=this.options.ecmaVersion>=8&&base.type==="Identifier"&&base.name==="async"&&this.lastTokEnd===base.end&&!this.canInsertSemicolon()&&base.end-base.start===5&&this.potentialArrowAt===base.start;var optionalChained=false;while(true){var element=this.parseSubscript(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit);if(element.optional){optionalChained=true}if(element===base||element.type==="ArrowFunctionExpression"){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element;element=this.finishNode(chainNode,"ChainExpression")}return element}base=element}};pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)};pp$5.parseSubscriptAsyncArrow=function(startPos,startLoc,exprList,forInit){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,true,forInit)};pp$5.parseSubscript=function(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit){var optionalSupported=this.options.ecmaVersion>=11;var optional=optionalSupported&&this.eat(types$1.questionDot);if(noCalls&&optional){this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions")}var computed=this.eat(types$1.bracketL);if(computed||optional&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var node=this.startNodeAt(startPos,startLoc);node.object=base;if(computed){node.property=this.parseExpression();this.expect(types$1.bracketR)}else if(this.type===types$1.privateId&&base.type!=="Super"){node.property=this.parsePrivateIdent()}else{node.property=this.parseIdent(this.options.allowReserved!=="never")}node.computed=!!computed;if(optionalSupported){node.optional=optional}base=this.finishNode(node,"MemberExpression")}else if(!noCalls&&this.eat(types$1.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;var exprList=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,false,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&this.shouldParseAsyncArrow()){this.checkPatternErrors(refDestructuringErrors,false);this.checkYieldAwaitInDefaultParams();if(this.awaitIdentPos>0){this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function")}this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.parseSubscriptAsyncArrow(startPos,startLoc,exprList,forInit)}this.checkExpressionErrors(refDestructuringErrors,true);this.yieldPos=oldYieldPos||this.yieldPos;this.awaitPos=oldAwaitPos||this.awaitPos;this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base;node$1.arguments=exprList;if(optionalSupported){node$1.optional=optional}base=this.finishNode(node$1,"CallExpression")}else if(this.type===types$1.backQuote){if(optional||optionalChained){this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions")}var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base;node$2.quasi=this.parseTemplate({isTagged:true});base=this.finishNode(node$2,"TaggedTemplateExpression")}return base};pp$5.parseExprAtom=function(refDestructuringErrors,forInit,forNew){if(this.type===types$1.slash){this.readRegexp()}var node,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:if(!this.allowSuper){this.raise(this.start,"'super' keyword outside a method")}node=this.startNode();this.next();if(this.type===types$1.parenL&&!this.allowDirectSuper){this.raise(node.start,"super() call outside constructor of a subclass")}if(this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL){this.unexpected()}return this.finishNode(node,"Super");case types$1._this:node=this.startNode();this.next();return this.finishNode(node,"ThisExpression");case types$1.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc;var id2=this.parseIdent(false);if(this.options.ecmaVersion>=8&&!containsEsc&&id2.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function)){this.overrideContext(types2.f_expr);return this.parseFunction(this.startNodeAt(startPos,startLoc),0,false,true,forInit)}if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow)){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id2],false,forInit)}if(this.options.ecmaVersion>=8&&id2.name==="async"&&this.type===types$1.name&&!containsEsc&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){id2=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(types$1.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id2],true,forInit)}}return id2;case types$1.regexp:var value=this.value;node=this.parseLiteral(value.value);node.regex={pattern:value.pattern,flags:value.flags};return node;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:node=this.startNode();node.value=this.type===types$1._null?null:this.type===types$1._true;node.raw=this.type.keyword;this.next();return this.finishNode(node,"Literal");case types$1.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow,forInit);if(refDestructuringErrors){if(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)){refDestructuringErrors.parenthesizedAssign=start}if(refDestructuringErrors.parenthesizedBind<0){refDestructuringErrors.parenthesizedBind=start}}return expr;case types$1.bracketL:node=this.startNode();this.next();node.elements=this.parseExprList(types$1.bracketR,true,true,refDestructuringErrors);return this.finishNode(node,"ArrayExpression");case types$1.braceL:this.overrideContext(types2.b_expr);return this.parseObj(false,refDestructuringErrors);case types$1._function:node=this.startNode();this.next();return this.parseFunction(node,0);case types$1._class:return this.parseClass(this.startNode(),false);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:if(this.options.ecmaVersion>=11){return this.parseExprImport(forNew)}else{return this.unexpected()}default:return this.parseExprAtomDefault()}};pp$5.parseExprAtomDefault=function(){this.unexpected()};pp$5.parseExprImport=function(forNew){var node=this.startNode();if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword import")}this.next();if(this.type===types$1.parenL&&!forNew){return this.parseDynamicImport(node)}else if(this.type===types$1.dot){var meta=this.startNodeAt(node.start,node.loc&&node.loc.start);meta.name="import";node.meta=this.finishNode(meta,"Identifier");return this.parseImportMeta(node)}else{this.unexpected()}};pp$5.parseDynamicImport=function(node){this.next();node.source=this.parseMaybeAssign();if(this.options.ecmaVersion>=16){if(!this.eat(types$1.parenR)){this.expect(types$1.comma);if(!this.afterTrailingComma(types$1.parenR)){node.options=this.parseMaybeAssign();if(!this.eat(types$1.parenR)){this.expect(types$1.comma);if(!this.afterTrailingComma(types$1.parenR)){this.unexpected()}}}else{node.options=null}}else{node.options=null}}else{if(!this.eat(types$1.parenR)){var errorPos=this.start;if(this.eat(types$1.comma)&&this.eat(types$1.parenR)){this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()")}else{this.unexpected(errorPos)}}}return this.finishNode(node,"ImportExpression")};pp$5.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;node.property=this.parseIdent(true);if(node.property.name!=="meta"){this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'")}if(containsEsc){this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters")}if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere){this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module")}return this.finishNode(node,"MetaProperty")};pp$5.parseLiteral=function(value){var node=this.startNode();node.value=value;node.raw=this.input.slice(this.start,this.end);if(node.raw.charCodeAt(node.raw.length-1)===110){node.bigint=node.value!=null?node.value.toString():node.raw.slice(0,-1).replace(/_/g,"")}this.next();return this.finishNode(node,"Literal")};pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var val=this.parseExpression();this.expect(types$1.parenR);return val};pp$5.shouldParseArrow=function(exprList){return!this.canInsertSemicolon()};pp$5.parseParenAndDistinguishExpression=function(canBeArrow,forInit){var startPos=this.start,startLoc=this.startLoc,val,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var innerStartPos=this.start,innerStartLoc=this.startLoc;var exprList=[],first=true,lastIsComma=false;var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,spreadStart;this.yieldPos=0;this.awaitPos=0;while(this.type!==types$1.parenR){first?first=false:this.expect(types$1.comma);if(allowTrailingComma&&this.afterTrailingComma(types$1.parenR,true)){lastIsComma=true;break}else if(this.type===types$1.ellipsis){spreadStart=this.start;exprList.push(this.parseParenItem(this.parseRestBinding()));if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}break}else{exprList.push(this.parseMaybeAssign(false,refDestructuringErrors,this.parseParenItem))}}var innerEndPos=this.lastTokEnd,innerEndLoc=this.lastTokEndLoc;this.expect(types$1.parenR);if(canBeArrow&&this.shouldParseArrow(exprList)&&this.eat(types$1.arrow)){this.checkPatternErrors(refDestructuringErrors,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;return this.parseParenArrowList(startPos,startLoc,exprList,forInit)}if(!exprList.length||lastIsComma){this.unexpected(this.lastTokStart)}if(spreadStart){this.unexpected(spreadStart)}this.checkExpressionErrors(refDestructuringErrors,true);this.yieldPos=oldYieldPos||this.yieldPos;this.awaitPos=oldAwaitPos||this.awaitPos;if(exprList.length>1){val=this.startNodeAt(innerStartPos,innerStartLoc);val.expressions=exprList;this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)}else{val=exprList[0]}}else{val=this.parseParenExpression()}if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);par.expression=val;return this.finishNode(par,"ParenthesizedExpression")}else{return val}};pp$5.parseParenItem=function(item){return item};pp$5.parseParenArrowList=function(startPos,startLoc,exprList,forInit){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,false,forInit)};var empty=[];pp$5.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var node=this.startNode();this.next();if(this.options.ecmaVersion>=6&&this.type===types$1.dot){var meta=this.startNodeAt(node.start,node.loc&&node.loc.start);meta.name="new";node.meta=this.finishNode(meta,"Identifier");this.next();var containsEsc=this.containsEsc;node.property=this.parseIdent(true);if(node.property.name!=="target"){this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'")}if(containsEsc){this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters")}if(!this.allowNewDotTarget){this.raiseRecoverable(node.start,"'new.target' can only be used in functions and class static block")}return this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc;node.callee=this.parseSubscripts(this.parseExprAtom(null,false,true),startPos,startLoc,true,false);if(this.eat(types$1.parenL)){node.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,false)}else{node.arguments=empty}return this.finishNode(node,"NewExpression")};pp$5.parseTemplateElement=function(ref2){var isTagged=ref2.isTagged;var elem=this.startNode();if(this.type===types$1.invalidTemplate){if(!isTagged){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}elem.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}}else{elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();elem.tail=this.type===types$1.backQuote;return this.finishNode(elem,"TemplateElement")};pp$5.parseTemplate=function(ref2){if(ref2===void 0)ref2={};var isTagged=ref2.isTagged;if(isTagged===void 0)isTagged=false;var node=this.startNode();this.next();node.expressions=[];var curElt=this.parseTemplateElement({isTagged});node.quasis=[curElt];while(!curElt.tail){if(this.type===types$1.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(types$1.dollarBraceL);node.expressions.push(this.parseExpression());this.expect(types$1.braceR);node.quasis.push(curElt=this.parseTemplateElement({isTagged}))}this.next();return this.finishNode(node,"TemplateLiteral")};pp$5.isAsyncProp=function(prop){return!prop.computed&&prop.key.type==="Identifier"&&prop.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$5.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=true,propHash={};node.properties=[];this.next();while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR)){break}}else{first=false}var prop=this.parseProperty(isPattern,refDestructuringErrors);if(!isPattern){this.checkPropClash(prop,propHash,refDestructuringErrors)}node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")};pp$5.parseProperty=function(isPattern,refDestructuringErrors){var prop=this.startNode(),isGenerator,isAsync,startPos,startLoc;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis)){if(isPattern){prop.argument=this.parseIdent(false);if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}return this.finishNode(prop,"RestElement")}prop.argument=this.parseMaybeAssign(false,refDestructuringErrors);if(this.type===types$1.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0){refDestructuringErrors.trailingComma=this.start}return this.finishNode(prop,"SpreadElement")}if(this.options.ecmaVersion>=6){prop.method=false;prop.shorthand=false;if(isPattern||refDestructuringErrors){startPos=this.start;startLoc=this.startLoc}if(!isPattern){isGenerator=this.eat(types$1.star)}}var containsEsc=this.containsEsc;this.parsePropertyName(prop);if(!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)){isAsync=true;isGenerator=this.options.ecmaVersion>=9&&this.eat(types$1.star);this.parsePropertyName(prop)}else{isAsync=false}this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc);return this.finishNode(prop,"Property")};pp$5.parseGetterSetter=function(prop){var kind=prop.key.name;this.parsePropertyName(prop);prop.value=this.parseMethod(false);prop.kind=kind;var paramCount=prop.kind==="get"?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;if(prop.kind==="get"){this.raiseRecoverable(start,"getter should have no params")}else{this.raiseRecoverable(start,"setter should have exactly one param")}}else{if(prop.kind==="set"&&prop.value.params[0].type==="RestElement"){this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}}};pp$5.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types$1.colon){this.unexpected()}if(this.eat(types$1.colon)){prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,refDestructuringErrors);prop.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===types$1.parenL){if(isPattern){this.unexpected()}prop.method=true;prop.value=this.parseMethod(isGenerator,isAsync);prop.kind="init"}else if(!isPattern&&!containsEsc&&this.options.ecmaVersion>=5&&!prop.computed&&prop.key.type==="Identifier"&&(prop.key.name==="get"||prop.key.name==="set")&&(this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq)){if(isGenerator||isAsync){this.unexpected()}this.parseGetterSetter(prop)}else if(this.options.ecmaVersion>=6&&!prop.computed&&prop.key.type==="Identifier"){if(isGenerator||isAsync){this.unexpected()}this.checkUnreserved(prop.key);if(prop.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=startPos}if(isPattern){prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key))}else if(this.type===types$1.eq&&refDestructuringErrors){if(refDestructuringErrors.shorthandAssign<0){refDestructuringErrors.shorthandAssign=this.start}prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key))}else{prop.value=this.copyNode(prop.key)}prop.kind="init";prop.shorthand=true}else{this.unexpected()}};pp$5.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL)){prop.computed=true;prop.key=this.parseMaybeAssign();this.expect(types$1.bracketR);return prop.key}else{prop.computed=false}}return prop.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pp$5.initFunction=function(node){node.id=null;if(this.options.ecmaVersion>=6){node.generator=node.expression=false}if(this.options.ecmaVersion>=8){node.async=false}};pp$5.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.initFunction(node);if(this.options.ecmaVersion>=6){node.generator=isGenerator}if(this.options.ecmaVersion>=8){node.async=!!isAsync}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(isAsync,node.generator)|SCOPE_SUPER|(allowDirectSuper?SCOPE_DIRECT_SUPER:0));this.expect(types$1.parenL);node.params=this.parseBindingList(types$1.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(node,false,true,false);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,"FunctionExpression")};pp$5.parseArrowExpression=function(node,params,isAsync,forInit){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.enterScope(functionFlags(isAsync,false)|SCOPE_ARROW);this.initFunction(node);if(this.options.ecmaVersion>=8){node.async=!!isAsync}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;node.params=this.toAssignableList(params,true);this.parseFunctionBody(node,true,false,forInit);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,"ArrowFunctionExpression")};pp$5.parseFunctionBody=function(node,isArrowFunction,isMethod,forInit){var isExpression=isArrowFunction&&this.type!==types$1.braceL;var oldStrict=this.strict,useStrict=false;if(isExpression){node.body=this.parseMaybeAssign(forInit);node.expression=true;this.checkParams(node,false)}else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);if(!oldStrict||nonSimple){useStrict=this.strictDirective(this.end);if(useStrict&&nonSimple){this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var oldLabels=this.labels;this.labels=[];if(useStrict){this.strict=true}this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params));if(this.strict&&node.id){this.checkLValSimple(node.id,BIND_OUTSIDE)}node.body=this.parseBlock(false,void 0,useStrict&&!oldStrict);node.expression=false;this.adaptDirectivePrologue(node.body.body);this.labels=oldLabels}this.exitScope()};pp$5.isSimpleParamList=function(params){for(var i22=0,list2=params;i22<list2.length;i22+=1){var param=list2[i22];if(param.type!=="Identifier"){return false}}return true};pp$5.checkParams=function(node,allowDuplicates){var nameHash=Object.create(null);for(var i22=0,list2=node.params;i22<list2.length;i22+=1){var param=list2[i22];this.checkLValInnerPattern(param,BIND_VAR,allowDuplicates?null:nameHash)}};pp$5.parseExprList=function(close2,allowTrailingComma,allowEmpty,refDestructuringErrors){var elts=[],first=true;while(!this.eat(close2)){if(!first){this.expect(types$1.comma);if(allowTrailingComma&&this.afterTrailingComma(close2)){break}}else{first=false}var elt=void 0;if(allowEmpty&&this.type===types$1.comma){elt=null}else if(this.type===types$1.ellipsis){elt=this.parseSpread(refDestructuringErrors);if(refDestructuringErrors&&this.type===types$1.comma&&refDestructuringErrors.trailingComma<0){refDestructuringErrors.trailingComma=this.start}}else{elt=this.parseMaybeAssign(false,refDestructuringErrors)}elts.push(elt)}return elts};pp$5.checkUnreserved=function(ref2){var start=ref2.start;var end=ref2.end;var name=ref2.name;if(this.inGenerator&&name==="yield"){this.raiseRecoverable(start,"Cannot use 'yield' as identifier inside a generator")}if(this.inAsync&&name==="await"){this.raiseRecoverable(start,"Cannot use 'await' as identifier inside an async function")}if(!(this.currentThisScope().flags&SCOPE_VAR)&&name==="arguments"){this.raiseRecoverable(start,"Cannot use 'arguments' in class field initializer")}if(this.inClassStaticBlock&&(name==="arguments"||name==="await")){this.raise(start,"Cannot use "+name+" in class static initialization block")}if(this.keywords.test(name)){this.raise(start,"Unexpected keyword '"+name+"'")}if(this.options.ecmaVersion<6&&this.input.slice(start,end).indexOf("\\")!==-1){return}var re2=this.strict?this.reservedWordsStrict:this.reservedWords;if(re2.test(name)){if(!this.inAsync&&name==="await"){this.raiseRecoverable(start,"Cannot use keyword 'await' outside an async function")}this.raiseRecoverable(start,"The keyword '"+name+"' is reserved")}};pp$5.parseIdent=function(liberal){var node=this.parseIdentNode();this.next(!!liberal);this.finishNode(node,"Identifier");if(!liberal){this.checkUnreserved(node);if(node.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=node.start}}return node};pp$5.parseIdentNode=function(){var node=this.startNode();if(this.type===types$1.name){node.name=this.value}else if(this.type.keyword){node.name=this.type.keyword;if((node.name==="class"||node.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)){this.context.pop()}this.type=types$1.name}else{this.unexpected()}return node};pp$5.parsePrivateIdent=function(){var node=this.startNode();if(this.type===types$1.privateId){node.name=this.value}else{this.unexpected()}this.next();this.finishNode(node,"PrivateIdentifier");if(this.options.checkPrivateFields){if(this.privateNameStack.length===0){this.raise(node.start,"Private field '#"+node.name+"' must be declared in an enclosing class")}else{this.privateNameStack[this.privateNameStack.length-1].used.push(node)}}return node};pp$5.parseYield=function(forInit){if(!this.yieldPos){this.yieldPos=this.start}var node=this.startNode();this.next();if(this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr){node.delegate=false;node.argument=null}else{node.delegate=this.eat(types$1.star);node.argument=this.parseMaybeAssign(forInit)}return this.finishNode(node,"YieldExpression")};pp$5.parseAwait=function(forInit){if(!this.awaitPos){this.awaitPos=this.start}var node=this.startNode();this.next();node.argument=this.parseMaybeUnary(null,true,false,forInit);return this.finishNode(node,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(pos,message){var loc=getLineInfo(this.input,pos);message+=" ("+loc.line+":"+loc.column+")";if(this.sourceFile){message+=" in "+this.sourceFile}var err22=new SyntaxError(message);err22.pos=pos;err22.loc=loc;err22.raisedAt=this.pos;throw err22};pp$4.raiseRecoverable=pp$4.raise;pp$4.curPosition=function(){if(this.options.locations){return new Position(this.curLine,this.pos-this.lineStart)}};var pp$3=Parser.prototype;var Scope=function Scope2(flags){this.flags=flags;this.var=[];this.lexical=[];this.functions=[]};pp$3.enterScope=function(flags){this.scopeStack.push(new Scope(flags))};pp$3.exitScope=function(){this.scopeStack.pop()};pp$3.treatFunctionsAsVarInScope=function(scope4){return scope4.flags&SCOPE_FUNCTION||!this.inModule&&scope4.flags&SCOPE_TOP};pp$3.declareName=function(name,bindingType,pos){var redeclared=false;if(bindingType===BIND_LEXICAL){var scope4=this.currentScope();redeclared=scope4.lexical.indexOf(name)>-1||scope4.functions.indexOf(name)>-1||scope4.var.indexOf(name)>-1;scope4.lexical.push(name);if(this.inModule&&scope4.flags&SCOPE_TOP){delete this.undefinedExports[name]}}else if(bindingType===BIND_SIMPLE_CATCH){var scope$1=this.currentScope();scope$1.lexical.push(name)}else if(bindingType===BIND_FUNCTION){var scope$2=this.currentScope();if(this.treatFunctionsAsVar){redeclared=scope$2.lexical.indexOf(name)>-1}else{redeclared=scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1}scope$2.functions.push(name)}else{for(var i22=this.scopeStack.length-1;i22>=0;--i22){var scope$3=this.scopeStack[i22];if(scope$3.lexical.indexOf(name)>-1&&!(scope$3.flags&SCOPE_SIMPLE_CATCH&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=true;break}scope$3.var.push(name);if(this.inModule&&scope$3.flags&SCOPE_TOP){delete this.undefinedExports[name]}if(scope$3.flags&SCOPE_VAR){break}}}if(redeclared){this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")}};pp$3.checkLocalExport=function(id2){if(this.scopeStack[0].lexical.indexOf(id2.name)===-1&&this.scopeStack[0].var.indexOf(id2.name)===-1){this.undefinedExports[id2.name]=id2}};pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};pp$3.currentVarScope=function(){for(var i22=this.scopeStack.length-1;;i22--){var scope4=this.scopeStack[i22];if(scope4.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)){return scope4}}};pp$3.currentThisScope=function(){for(var i22=this.scopeStack.length-1;;i22--){var scope4=this.scopeStack[i22];if(scope4.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)&&!(scope4.flags&SCOPE_ARROW)){return scope4}}};var Node2=function Node22(parser,pos,loc){this.type="";this.start=pos;this.end=0;if(parser.options.locations){this.loc=new SourceLocation(parser,loc)}if(parser.options.directSourceFile){this.sourceFile=parser.options.directSourceFile}if(parser.options.ranges){this.range=[pos,0]}};var pp$2=Parser.prototype;pp$2.startNode=function(){return new Node2(this,this.start,this.startLoc)};pp$2.startNodeAt=function(pos,loc){return new Node2(this,pos,loc)};function finishNodeAt(node,type2,pos,loc){node.type=type2;node.end=pos;if(this.options.locations){node.loc.end=loc}if(this.options.ranges){node.range[1]=pos}return node}pp$2.finishNode=function(node,type2){return finishNodeAt.call(this,node,type2,this.lastTokEnd,this.lastTokEndLoc)};pp$2.finishNodeAt=function(node,type2,pos,loc){return finishNodeAt.call(this,node,type2,pos,loc)};pp$2.copyNode=function(node){var newNode=new Node2(this,node.start,this.startLoc);for(var prop in node){newNode[prop]=node[prop]}return newNode};var scriptValuesAddedInUnicode="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic";var ecma11BinaryProperties=ecma10BinaryProperties;var ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict";var ecma13BinaryProperties=ecma12BinaryProperties;var ecma14BinaryProperties=ecma13BinaryProperties;var unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties};var ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";var unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings};var unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";var ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";var ecma14ScriptValues=ecma13ScriptValues+" "+scriptValuesAddedInUnicode;var unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues};var data={};function buildUnicodeData(ecmaVersion2){var d=data[ecmaVersion2]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion2]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion2]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion2])}};d.nonBinary.Script_Extensions=d.nonBinary.Script;d.nonBinary.gc=d.nonBinary.General_Category;d.nonBinary.sc=d.nonBinary.Script;d.nonBinary.scx=d.nonBinary.Script_Extensions}for(i=0,list=[9,10,11,12,13,14];i<list.length;i+=1){ecmaVersion=list[i];buildUnicodeData(ecmaVersion)}var ecmaVersion;var i;var list;var pp$1=Parser.prototype;var BranchID=function BranchID2(parent,base){this.parent=parent;this.base=base||this};BranchID.prototype.separatedFrom=function separatedFrom(alt){for(var self2=this;self2;self2=self2.parent){for(var other=alt;other;other=other.parent){if(self2.base===other.base&&self2!==other){return true}}}return false};BranchID.prototype.sibling=function sibling(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function RegExpValidationState2(parser){this.parser=parser;this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":"")+(parser.options.ecmaVersion>=13?"d":"")+(parser.options.ecmaVersion>=15?"v":"");this.unicodeProperties=data[parser.options.ecmaVersion>=14?14:parser.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchV=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=Object.create(null);this.backReferenceNames=[];this.branchID=null};RegExpValidationState.prototype.reset=function reset(start,pattern,flags){var unicodeSets=flags.indexOf("v")!==-1;var unicode=flags.indexOf("u")!==-1;this.start=start|0;this.source=pattern+"";this.flags=flags;if(unicodeSets&&this.parser.options.ecmaVersion>=15){this.switchU=true;this.switchV=true;this.switchN=true}else{this.switchU=unicode&&this.parser.options.ecmaVersion>=6;this.switchV=false;this.switchN=unicode&&this.parser.options.ecmaVersion>=9}};RegExpValidationState.prototype.raise=function raise(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)};RegExpValidationState.prototype.at=function at2(i22,forceU){if(forceU===void 0)forceU=false;var s10=this.source;var l=s10.length;if(i22>=l){return-1}var c=s10.charCodeAt(i22);if(!(forceU||this.switchU)||c<=55295||c>=57344||i22+1>=l){return c}var next2=s10.charCodeAt(i22+1);return next2>=56320&&next2<=57343?(c<<10)+next2-56613888:c};RegExpValidationState.prototype.nextIndex=function nextIndex(i22,forceU){if(forceU===void 0)forceU=false;var s10=this.source;var l=s10.length;if(i22>=l){return l}var c=s10.charCodeAt(i22),next2;if(!(forceU||this.switchU)||c<=55295||c>=57344||i22+1>=l||(next2=s10.charCodeAt(i22+1))<56320||next2>57343){return i22+1}return i22+2};RegExpValidationState.prototype.current=function current2(forceU){if(forceU===void 0)forceU=false;return this.at(this.pos,forceU)};RegExpValidationState.prototype.lookahead=function lookahead(forceU){if(forceU===void 0)forceU=false;return this.at(this.nextIndex(this.pos,forceU),forceU)};RegExpValidationState.prototype.advance=function advance(forceU){if(forceU===void 0)forceU=false;this.pos=this.nextIndex(this.pos,forceU)};RegExpValidationState.prototype.eat=function eat(ch22,forceU){if(forceU===void 0)forceU=false;if(this.current(forceU)===ch22){this.advance(forceU);return true}return false};RegExpValidationState.prototype.eatChars=function eatChars(chs,forceU){if(forceU===void 0)forceU=false;var pos=this.pos;for(var i22=0,list2=chs;i22<list2.length;i22+=1){var ch22=list2[i22];var current22=this.at(pos,forceU);if(current22===-1||current22!==ch22){return false}pos=this.nextIndex(pos,forceU)}this.pos=pos;return true};pp$1.validateRegExpFlags=function(state){var validFlags=state.validFlags;var flags=state.flags;var u=false;var v2=false;for(var i22=0;i22<flags.length;i22++){var flag=flags.charAt(i22);if(validFlags.indexOf(flag)===-1){this.raise(state.start,"Invalid regular expression flag")}if(flags.indexOf(flag,i22+1)>-1){this.raise(state.start,"Duplicate regular expression flag")}if(flag==="u"){u=true}if(flag==="v"){v2=true}}if(this.options.ecmaVersion>=15&&u&&v2){this.raise(state.start,"Invalid regular expression flag")}};function hasProp(obj){for(var _ in obj){return true}return false}pp$1.validateRegExpPattern=function(state){this.regexp_pattern(state);if(!state.switchN&&this.options.ecmaVersion>=9&&hasProp(state.groupNames)){state.switchN=true;this.regexp_pattern(state)}};pp$1.regexp_pattern=function(state){state.pos=0;state.lastIntValue=0;state.lastStringValue="";state.lastAssertionIsQuantifiable=false;state.numCapturingParens=0;state.maxBackReference=0;state.groupNames=Object.create(null);state.backReferenceNames.length=0;state.branchID=null;this.regexp_disjunction(state);if(state.pos!==state.source.length){if(state.eat(41)){state.raise("Unmatched ')'")}if(state.eat(93)||state.eat(125)){state.raise("Lone quantifier brackets")}}if(state.maxBackReference>state.numCapturingParens){state.raise("Invalid escape")}for(var i22=0,list2=state.backReferenceNames;i22<list2.length;i22+=1){var name=list2[i22];if(!state.groupNames[name]){state.raise("Invalid named capture referenced")}}};pp$1.regexp_disjunction=function(state){var trackDisjunction=this.options.ecmaVersion>=16;if(trackDisjunction){state.branchID=new BranchID(state.branchID,null)}this.regexp_alternative(state);while(state.eat(124)){if(trackDisjunction){state.branchID=state.branchID.sibling()}this.regexp_alternative(state)}if(trackDisjunction){state.branchID=state.branchID.parent}if(this.regexp_eatQuantifier(state,true)){state.raise("Nothing to repeat")}if(state.eat(123)){state.raise("Lone quantifier brackets")}};pp$1.regexp_alternative=function(state){while(state.pos<state.source.length&&this.regexp_eatTerm(state)){}};pp$1.regexp_eatTerm=function(state){if(this.regexp_eatAssertion(state)){if(state.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(state)){if(state.switchU){state.raise("Invalid quantifier")}}return true}if(state.switchU?this.regexp_eatAtom(state):this.regexp_eatExtendedAtom(state)){this.regexp_eatQuantifier(state);return true}return false};pp$1.regexp_eatAssertion=function(state){var start=state.pos;state.lastAssertionIsQuantifiable=false;if(state.eat(94)||state.eat(36)){return true}if(state.eat(92)){if(state.eat(66)||state.eat(98)){return true}state.pos=start}if(state.eat(40)&&state.eat(63)){var lookbehind=false;if(this.options.ecmaVersion>=9){lookbehind=state.eat(60)}if(state.eat(61)||state.eat(33)){this.regexp_disjunction(state);if(!state.eat(41)){state.raise("Unterminated group")}state.lastAssertionIsQuantifiable=!lookbehind;return true}}state.pos=start;return false};pp$1.regexp_eatQuantifier=function(state,noError){if(noError===void 0)noError=false;if(this.regexp_eatQuantifierPrefix(state,noError)){state.eat(63);return true}return false};pp$1.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)};pp$1.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min2=0,max2=-1;if(this.regexp_eatDecimalDigits(state)){min2=state.lastIntValue;if(state.eat(44)&&this.regexp_eatDecimalDigits(state)){max2=state.lastIntValue}if(state.eat(125)){if(max2!==-1&&max2<min2&&!noError){state.raise("numbers out of order in {} quantifier")}return true}}if(state.switchU&&!noError){state.raise("Incomplete quantifier")}state.pos=start}return false};pp$1.regexp_eatAtom=function(state){return this.regexp_eatPatternCharacters(state)||state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)};pp$1.regexp_eatReverseSolidusAtomEscape=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatAtomEscape(state)){return true}state.pos=start}return false};pp$1.regexp_eatUncapturingGroup=function(state){var start=state.pos;if(state.eat(40)){if(state.eat(63)){if(this.options.ecmaVersion>=16){var addModifiers=this.regexp_eatModifiers(state);var hasHyphen=state.eat(45);if(addModifiers||hasHyphen){for(var i22=0;i22<addModifiers.length;i22++){var modifier=addModifiers.charAt(i22);if(addModifiers.indexOf(modifier,i22+1)>-1){state.raise("Duplicate regular expression modifiers")}}if(hasHyphen){var removeModifiers=this.regexp_eatModifiers(state);if(!addModifiers&&!removeModifiers&&state.current()===58){state.raise("Invalid regular expression modifiers")}for(var i$12=0;i$12<removeModifiers.length;i$12++){var modifier$1=removeModifiers.charAt(i$12);if(removeModifiers.indexOf(modifier$1,i$12+1)>-1||addModifiers.indexOf(modifier$1)>-1){state.raise("Duplicate regular expression modifiers")}}}}}if(state.eat(58)){this.regexp_disjunction(state);if(state.eat(41)){return true}state.raise("Unterminated group")}}state.pos=start}return false};pp$1.regexp_eatCapturingGroup=function(state){if(state.eat(40)){if(this.options.ecmaVersion>=9){this.regexp_groupSpecifier(state)}else if(state.current()===63){state.raise("Invalid group")}this.regexp_disjunction(state);if(state.eat(41)){state.numCapturingParens+=1;return true}state.raise("Unterminated group")}return false};pp$1.regexp_eatModifiers=function(state){var modifiers="";var ch22=0;while((ch22=state.current())!==-1&&isRegularExpressionModifier(ch22)){modifiers+=codePointToString(ch22);state.advance()}return modifiers};function isRegularExpressionModifier(ch22){return ch22===105||ch22===109||ch22===115}pp$1.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)};pp$1.regexp_eatInvalidBracedQuantifier=function(state){if(this.regexp_eatBracedQuantifier(state,true)){state.raise("Nothing to repeat")}return false};pp$1.regexp_eatSyntaxCharacter=function(state){var ch22=state.current();if(isSyntaxCharacter(ch22)){state.lastIntValue=ch22;state.advance();return true}return false};function isSyntaxCharacter(ch22){return ch22===36||ch22>=40&&ch22<=43||ch22===46||ch22===63||ch22>=91&&ch22<=94||ch22>=123&&ch22<=125}pp$1.regexp_eatPatternCharacters=function(state){var start=state.pos;var ch22=0;while((ch22=state.current())!==-1&&!isSyntaxCharacter(ch22)){state.advance()}return state.pos!==start};pp$1.regexp_eatExtendedPatternCharacter=function(state){var ch22=state.current();if(ch22!==-1&&ch22!==36&&!(ch22>=40&&ch22<=43)&&ch22!==46&&ch22!==63&&ch22!==91&&ch22!==94&&ch22!==124){state.advance();return true}return false};pp$1.regexp_groupSpecifier=function(state){if(state.eat(63)){if(!this.regexp_eatGroupName(state)){state.raise("Invalid group")}var trackDisjunction=this.options.ecmaVersion>=16;var known=state.groupNames[state.lastStringValue];if(known){if(trackDisjunction){for(var i22=0,list2=known;i22<list2.length;i22+=1){var altID=list2[i22];if(!altID.separatedFrom(state.branchID)){state.raise("Duplicate capture group name")}}}else{state.raise("Duplicate capture group name")}}if(trackDisjunction){(known||(state.groupNames[state.lastStringValue]=[])).push(state.branchID)}else{state.groupNames[state.lastStringValue]=true}}};pp$1.regexp_eatGroupName=function(state){state.lastStringValue="";if(state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62)){return true}state.raise("Invalid capture group name")}return false};pp$1.regexp_eatRegExpIdentifierName=function(state){state.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(state)){state.lastStringValue+=codePointToString(state.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(state)){state.lastStringValue+=codePointToString(state.lastIntValue)}return true}return false};pp$1.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos;var forceU=this.options.ecmaVersion>=11;var ch22=state.current(forceU);state.advance(forceU);if(ch22===92&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)){ch22=state.lastIntValue}if(isRegExpIdentifierStart(ch22)){state.lastIntValue=ch22;return true}state.pos=start;return false};function isRegExpIdentifierStart(ch22){return isIdentifierStart(ch22,true)||ch22===36||ch22===95}pp$1.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos;var forceU=this.options.ecmaVersion>=11;var ch22=state.current(forceU);state.advance(forceU);if(ch22===92&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)){ch22=state.lastIntValue}if(isRegExpIdentifierPart(ch22)){state.lastIntValue=ch22;return true}state.pos=start;return false};function isRegExpIdentifierPart(ch22){return isIdentifierChar(ch22,true)||ch22===36||ch22===95||ch22===8204||ch22===8205}pp$1.regexp_eatAtomEscape=function(state){if(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state)){return true}if(state.switchU){if(state.current()===99){state.raise("Invalid unicode escape")}state.raise("Invalid escape")}return false};pp$1.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n8=state.lastIntValue;if(state.switchU){if(n8>state.maxBackReference){state.maxBackReference=n8}return true}if(n8<=state.numCapturingParens){return true}state.pos=start}return false};pp$1.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state)){state.backReferenceNames.push(state.lastStringValue);return true}state.raise("Invalid named reference")}return false};pp$1.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,false)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)};pp$1.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state)){return true}state.pos=start}return false};pp$1.regexp_eatZero=function(state){if(state.current()===48&&!isDecimalDigit(state.lookahead())){state.lastIntValue=0;state.advance();return true}return false};pp$1.regexp_eatControlEscape=function(state){var ch22=state.current();if(ch22===116){state.lastIntValue=9;state.advance();return true}if(ch22===110){state.lastIntValue=10;state.advance();return true}if(ch22===118){state.lastIntValue=11;state.advance();return true}if(ch22===102){state.lastIntValue=12;state.advance();return true}if(ch22===114){state.lastIntValue=13;state.advance();return true}return false};pp$1.regexp_eatControlLetter=function(state){var ch22=state.current();if(isControlLetter(ch22)){state.lastIntValue=ch22%32;state.advance();return true}return false};function isControlLetter(ch22){return ch22>=65&&ch22<=90||ch22>=97&&ch22<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){if(forceU===void 0)forceU=false;var start=state.pos;var switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343){state.lastIntValue=(lead-55296)*1024+(trail-56320)+65536;return true}}state.pos=leadSurrogateEnd;state.lastIntValue=lead}return true}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&isValidUnicode(state.lastIntValue)){return true}if(switchU){state.raise("Invalid unicode escape")}state.pos=start}return false};function isValidUnicode(ch22){return ch22>=0&&ch22<=1114111}pp$1.regexp_eatIdentityEscape=function(state){if(state.switchU){if(this.regexp_eatSyntaxCharacter(state)){return true}if(state.eat(47)){state.lastIntValue=47;return true}return false}var ch22=state.current();if(ch22!==99&&(!state.switchN||ch22!==107)){state.lastIntValue=ch22;state.advance();return true}return false};pp$1.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch22=state.current();if(ch22>=49&&ch22<=57){do{state.lastIntValue=10*state.lastIntValue+(ch22-48);state.advance()}while((ch22=state.current())>=48&&ch22<=57);return true}return false};var CharSetNone=0;var CharSetOk=1;var CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(state){var ch22=state.current();if(isCharacterClassEscape(ch22)){state.lastIntValue=-1;state.advance();return CharSetOk}var negate=false;if(state.switchU&&this.options.ecmaVersion>=9&&((negate=ch22===80)||ch22===112)){state.lastIntValue=-1;state.advance();var result;if(state.eat(123)&&(result=this.regexp_eatUnicodePropertyValueExpression(state))&&state.eat(125)){if(negate&&result===CharSetString){state.raise("Invalid property name")}return result}state.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(ch22){return ch22===100||ch22===68||ch22===115||ch22===83||ch22===119||ch22===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(state,name,value);return CharSetOk}}state.pos=start;if(this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue)}return CharSetNone};pp$1.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){if(!hasOwn(state.unicodeProperties.nonBinary,name)){state.raise("Invalid property name")}if(!state.unicodeProperties.nonBinary[name].test(value)){state.raise("Invalid property value")}};pp$1.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){if(state.unicodeProperties.binary.test(nameOrValue)){return CharSetOk}if(state.switchV&&state.unicodeProperties.binaryOfStrings.test(nameOrValue)){return CharSetString}state.raise("Invalid property name")};pp$1.regexp_eatUnicodePropertyName=function(state){var ch22=0;state.lastStringValue="";while(isUnicodePropertyNameCharacter(ch22=state.current())){state.lastStringValue+=codePointToString(ch22);state.advance()}return state.lastStringValue!==""};function isUnicodePropertyNameCharacter(ch22){return isControlLetter(ch22)||ch22===95}pp$1.regexp_eatUnicodePropertyValue=function(state){var ch22=0;state.lastStringValue="";while(isUnicodePropertyValueCharacter(ch22=state.current())){state.lastStringValue+=codePointToString(ch22);state.advance()}return state.lastStringValue!==""};function isUnicodePropertyValueCharacter(ch22){return isUnicodePropertyNameCharacter(ch22)||isDecimalDigit(ch22)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)};pp$1.regexp_eatCharacterClass=function(state){if(state.eat(91)){var negate=state.eat(94);var result=this.regexp_classContents(state);if(!state.eat(93)){state.raise("Unterminated character class")}if(negate&&result===CharSetString){state.raise("Negated character class may contain strings")}return true}return false};pp$1.regexp_classContents=function(state){if(state.current()===93){return CharSetOk}if(state.switchV){return this.regexp_classSetExpression(state)}this.regexp_nonEmptyClassRanges(state);return CharSetOk};pp$1.regexp_nonEmptyClassRanges=function(state){while(this.regexp_eatClassAtom(state)){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;if(state.switchU&&(left===-1||right===-1)){state.raise("Invalid character class")}if(left!==-1&&right!==-1&&left>right){state.raise("Range out of order in character class")}}}};pp$1.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state)){return true}if(state.switchU){var ch$1=state.current();if(ch$1===99||isOctalDigit(ch$1)){state.raise("Invalid class escape")}state.raise("Invalid escape")}state.pos=start}var ch22=state.current();if(ch22!==93){state.lastIntValue=ch22;state.advance();return true}return false};pp$1.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98)){state.lastIntValue=8;return true}if(state.switchU&&state.eat(45)){state.lastIntValue=45;return true}if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state)){return true}state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)};pp$1.regexp_classSetExpression=function(state){var result=CharSetOk,subResult;if(this.regexp_eatClassSetRange(state));else if(subResult=this.regexp_eatClassSetOperand(state)){if(subResult===CharSetString){result=CharSetString}var start=state.pos;while(state.eatChars([38,38])){if(state.current()!==38&&(subResult=this.regexp_eatClassSetOperand(state))){if(subResult!==CharSetString){result=CharSetOk}continue}state.raise("Invalid character in character class")}if(start!==state.pos){return result}while(state.eatChars([45,45])){if(this.regexp_eatClassSetOperand(state)){continue}state.raise("Invalid character in character class")}if(start!==state.pos){return result}}else{state.raise("Invalid character in character class")}for(;;){if(this.regexp_eatClassSetRange(state)){continue}subResult=this.regexp_eatClassSetOperand(state);if(!subResult){return result}if(subResult===CharSetString){result=CharSetString}}};pp$1.regexp_eatClassSetRange=function(state){var start=state.pos;if(this.regexp_eatClassSetCharacter(state)){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassSetCharacter(state)){var right=state.lastIntValue;if(left!==-1&&right!==-1&&left>right){state.raise("Range out of order in character class")}return true}state.pos=start}return false};pp$1.regexp_eatClassSetOperand=function(state){if(this.regexp_eatClassSetCharacter(state)){return CharSetOk}return this.regexp_eatClassStringDisjunction(state)||this.regexp_eatNestedClass(state)};pp$1.regexp_eatNestedClass=function(state){var start=state.pos;if(state.eat(91)){var negate=state.eat(94);var result=this.regexp_classContents(state);if(state.eat(93)){if(negate&&result===CharSetString){state.raise("Negated character class may contain strings")}return result}state.pos=start}if(state.eat(92)){var result$1=this.regexp_eatCharacterClassEscape(state);if(result$1){return result$1}state.pos=start}return null};pp$1.regexp_eatClassStringDisjunction=function(state){var start=state.pos;if(state.eatChars([92,113])){if(state.eat(123)){var result=this.regexp_classStringDisjunctionContents(state);if(state.eat(125)){return result}}else{state.raise("Invalid escape")}state.pos=start}return null};pp$1.regexp_classStringDisjunctionContents=function(state){var result=this.regexp_classString(state);while(state.eat(124)){if(this.regexp_classString(state)===CharSetString){result=CharSetString}}return result};pp$1.regexp_classString=function(state){var count=0;while(this.regexp_eatClassSetCharacter(state)){count++}return count===1?CharSetOk:CharSetString};pp$1.regexp_eatClassSetCharacter=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatCharacterEscape(state)||this.regexp_eatClassSetReservedPunctuator(state)){return true}if(state.eat(98)){state.lastIntValue=8;return true}state.pos=start;return false}var ch22=state.current();if(ch22<0||ch22===state.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(ch22)){return false}if(isClassSetSyntaxCharacter(ch22)){return false}state.advance();state.lastIntValue=ch22;return true};function isClassSetReservedDoublePunctuatorCharacter(ch22){return ch22===33||ch22>=35&&ch22<=38||ch22>=42&&ch22<=44||ch22===46||ch22>=58&&ch22<=64||ch22===94||ch22===96||ch22===126}function isClassSetSyntaxCharacter(ch22){return ch22===40||ch22===41||ch22===45||ch22===47||ch22>=91&&ch22<=93||ch22>=123&&ch22<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(state){var ch22=state.current();if(isClassSetReservedPunctuator(ch22)){state.lastIntValue=ch22;state.advance();return true}return false};function isClassSetReservedPunctuator(ch22){return ch22===33||ch22===35||ch22===37||ch22===38||ch22===44||ch22===45||ch22>=58&&ch22<=62||ch22===64||ch22===96||ch22===126}pp$1.regexp_eatClassControlLetter=function(state){var ch22=state.current();if(isDecimalDigit(ch22)||ch22===95){state.lastIntValue=ch22%32;state.advance();return true}return false};pp$1.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2)){return true}if(state.switchU){state.raise("Invalid escape")}state.pos=start}return false};pp$1.regexp_eatDecimalDigits=function(state){var start=state.pos;var ch22=0;state.lastIntValue=0;while(isDecimalDigit(ch22=state.current())){state.lastIntValue=10*state.lastIntValue+(ch22-48);state.advance()}return state.pos!==start};function isDecimalDigit(ch22){return ch22>=48&&ch22<=57}pp$1.regexp_eatHexDigits=function(state){var start=state.pos;var ch22=0;state.lastIntValue=0;while(isHexDigit(ch22=state.current())){state.lastIntValue=16*state.lastIntValue+hexToInt(ch22);state.advance()}return state.pos!==start};function isHexDigit(ch22){return ch22>=48&&ch22<=57||ch22>=65&&ch22<=70||ch22>=97&&ch22<=102}function hexToInt(ch22){if(ch22>=65&&ch22<=70){return 10+(ch22-65)}if(ch22>=97&&ch22<=102){return 10+(ch22-97)}return ch22-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n12=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n22=state.lastIntValue;if(n12<=3&&this.regexp_eatOctalDigit(state)){state.lastIntValue=n12*64+n22*8+state.lastIntValue}else{state.lastIntValue=n12*8+n22}}else{state.lastIntValue=n12}return true}return false};pp$1.regexp_eatOctalDigit=function(state){var ch22=state.current();if(isOctalDigit(ch22)){state.lastIntValue=ch22-48;state.advance();return true}state.lastIntValue=0;return false};function isOctalDigit(ch22){return ch22>=48&&ch22<=55}pp$1.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i22=0;i22<length;++i22){var ch22=state.current();if(!isHexDigit(ch22)){state.pos=start;return false}state.lastIntValue=16*state.lastIntValue+hexToInt(ch22);state.advance()}return true};var Token=function Token2(p){this.type=p.type;this.value=p.value;this.start=p.start;this.end=p.end;if(p.options.locations){this.loc=new SourceLocation(p,p.startLoc,p.endLoc)}if(p.options.ranges){this.range=[p.start,p.end]}};var pp2=Parser.prototype;pp2.next=function(ignoreEscapeSequenceInKeyword){if(!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword)}if(this.options.onToken){this.options.onToken(new Token(this))}this.lastTokEnd=this.end;this.lastTokStart=this.start;this.lastTokEndLoc=this.endLoc;this.lastTokStartLoc=this.startLoc;this.nextToken()};pp2.getToken=function(){this.next();return new Token(this)};if(typeof Symbol!=="undefined"){pp2[Symbol.iterator]=function(){var this$1$1=this;return{next:function(){var token=this$1$1.getToken();return{done:token.type===types$1.eof,value:token}}}}}pp2.nextToken=function(){var curContext=this.curContext();if(!curContext||!curContext.preserveSpace){this.skipSpace()}this.start=this.pos;if(this.options.locations){this.startLoc=this.curPosition()}if(this.pos>=this.input.length){return this.finishToken(types$1.eof)}if(curContext.override){return curContext.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};pp2.readToken=function(code22){if(isIdentifierStart(code22,this.options.ecmaVersion>=6)||code22===92){return this.readWord()}return this.getTokenFromCode(code22)};pp2.fullCharCodeAtPos=function(){var code22=this.input.charCodeAt(this.pos);if(code22<=55295||code22>=56320){return code22}var next2=this.input.charCodeAt(this.pos+1);return next2<=56319||next2>=57344?code22:(code22<<10)+next2-56613888};pp2.skipBlockComment=function(){var startLoc=this.options.onComment&&this.curPosition();var start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(end===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=end+2;if(this.options.locations){for(var nextBreak=void 0,pos=start;(nextBreak=nextLineBreak(this.input,pos,this.pos))>-1;){++this.curLine;pos=this.lineStart=nextBreak}}if(this.options.onComment){this.options.onComment(true,this.input.slice(start+2,end),start,this.pos,startLoc,this.curPosition())}};pp2.skipLineComment=function(startSkip){var start=this.pos;var startLoc=this.options.onComment&&this.curPosition();var ch22=this.input.charCodeAt(this.pos+=startSkip);while(this.pos<this.input.length&&!isNewLine(ch22)){ch22=this.input.charCodeAt(++this.pos)}if(this.options.onComment){this.options.onComment(false,this.input.slice(start+startSkip,this.pos),start,this.pos,startLoc,this.curPosition())}};pp2.skipSpace=function(){loop:while(this.pos<this.input.length){var ch22=this.input.charCodeAt(this.pos);switch(ch22){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10){++this.pos}case 10:case 8232:case 8233:++this.pos;if(this.options.locations){++this.curLine;this.lineStart=this.pos}break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(ch22>8&&ch22<14||ch22>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch22))){++this.pos}else{break loop}}}};pp2.finishToken=function(type2,val){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var prevType=this.type;this.type=type2;this.value=val;this.updateContext(prevType)};pp2.readToken_dot=function(){var next2=this.input.charCodeAt(this.pos+1);if(next2>=48&&next2<=57){return this.readNumber(true)}var next22=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&next2===46&&next22===46){this.pos+=3;return this.finishToken(types$1.ellipsis)}else{++this.pos;return this.finishToken(types$1.dot)}};pp2.readToken_slash=function(){var next2=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.slash,1)};pp2.readToken_mult_modulo_exp=function(code22){var next2=this.input.charCodeAt(this.pos+1);var size=1;var tokentype=code22===42?types$1.star:types$1.modulo;if(this.options.ecmaVersion>=7&&code22===42&&next2===42){++size;tokentype=types$1.starstar;next2=this.input.charCodeAt(this.pos+2)}if(next2===61){return this.finishOp(types$1.assign,size+1)}return this.finishOp(tokentype,size)};pp2.readToken_pipe_amp=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===code22){if(this.options.ecmaVersion>=12){var next22=this.input.charCodeAt(this.pos+2);if(next22===61){return this.finishOp(types$1.assign,3)}}return this.finishOp(code22===124?types$1.logicalOR:types$1.logicalAND,2)}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(code22===124?types$1.bitwiseOR:types$1.bitwiseAND,1)};pp2.readToken_caret=function(){var next2=this.input.charCodeAt(this.pos+1);if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.bitwiseXOR,1)};pp2.readToken_plus_min=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===code22){if(next2===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(types$1.incDec,2)}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.plusMin,1)};pp2.readToken_lt_gt=function(code22){var next2=this.input.charCodeAt(this.pos+1);var size=1;if(next2===code22){size=code22===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+size)===61){return this.finishOp(types$1.assign,size+1)}return this.finishOp(types$1.bitShift,size)}if(next2===33&&code22===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(next2===61){size=2}return this.finishOp(types$1.relational,size)};pp2.readToken_eq_excl=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===61){return this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(code22===61&&next2===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(types$1.arrow)}return this.finishOp(code22===61?types$1.eq:types$1.prefix,1)};pp2.readToken_question=function(){var ecmaVersion2=this.options.ecmaVersion;if(ecmaVersion2>=11){var next2=this.input.charCodeAt(this.pos+1);if(next2===46){var next22=this.input.charCodeAt(this.pos+2);if(next22<48||next22>57){return this.finishOp(types$1.questionDot,2)}}if(next2===63){if(ecmaVersion2>=12){var next2$1=this.input.charCodeAt(this.pos+2);if(next2$1===61){return this.finishOp(types$1.assign,3)}}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)};pp2.readToken_numberSign=function(){var ecmaVersion2=this.options.ecmaVersion;var code22=35;if(ecmaVersion2>=13){++this.pos;code22=this.fullCharCodeAtPos();if(isIdentifierStart(code22,true)||code22===92){return this.finishToken(types$1.privateId,this.readWord1())}}this.raise(this.pos,"Unexpected character '"+codePointToString(code22)+"'")};pp2.getTokenFromCode=function(code22){switch(code22){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(types$1.parenL);case 41:++this.pos;return this.finishToken(types$1.parenR);case 59:++this.pos;return this.finishToken(types$1.semi);case 44:++this.pos;return this.finishToken(types$1.comma);case 91:++this.pos;return this.finishToken(types$1.bracketL);case 93:++this.pos;return this.finishToken(types$1.bracketR);case 123:++this.pos;return this.finishToken(types$1.braceL);case 125:++this.pos;return this.finishToken(types$1.braceR);case 58:++this.pos;return this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(types$1.backQuote);case 48:var next2=this.input.charCodeAt(this.pos+1);if(next2===120||next2===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(next2===111||next2===79){return this.readRadixNumber(8)}if(next2===98||next2===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(code22);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code22);case 124:case 38:return this.readToken_pipe_amp(code22);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code22);case 60:case 62:return this.readToken_lt_gt(code22);case 61:case 33:return this.readToken_eq_excl(code22);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(code22)+"'")};pp2.finishOp=function(type2,size){var str=this.input.slice(this.pos,this.pos+size);this.pos+=size;return this.finishToken(type2,str)};pp2.readRegexp=function(){var escaped,inClass,start=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(start,"Unterminated regular expression")}var ch22=this.input.charAt(this.pos);if(lineBreak.test(ch22)){this.raise(start,"Unterminated regular expression")}if(!escaped){if(ch22==="["){inClass=true}else if(ch22==="]"&&inClass){inClass=false}else if(ch22==="/"&&!inClass){break}escaped=ch22==="\\"}else{escaped=false}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos;var flags=this.readWord1();if(this.containsEsc){this.unexpected(flagsStart)}var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags);this.validateRegExpFlags(state);this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch(e2){}return this.finishToken(types$1.regexp,{pattern,flags,value})};pp2.readInt=function(radix,len2,maybeLegacyOctalNumericLiteral){var allowSeparators=this.options.ecmaVersion>=12&&len2===void 0;var isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&this.input.charCodeAt(this.pos)===48;var start=this.pos,total=0,lastCode=0;for(var i22=0,e2=len2==null?Infinity:len2;i22<e2;++i22,++this.pos){var code22=this.input.charCodeAt(this.pos),val=void 0;if(allowSeparators&&code22===95){if(isLegacyOctalNumericLiteral){this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals")}if(lastCode===95){this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore")}if(i22===0){this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits")}lastCode=code22;continue}if(code22>=97){val=code22-97+10}else if(code22>=65){val=code22-65+10}else if(code22>=48&&code22<=57){val=code22-48}else{val=Infinity}if(val>=radix){break}lastCode=code22;total=total*radix+val}if(allowSeparators&&lastCode===95){this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits")}if(this.pos===start||len2!=null&&this.pos-start!==len2){return null}return total};function stringToNumber(str,isLegacyOctalNumericLiteral){if(isLegacyOctalNumericLiteral){return parseInt(str,8)}return parseFloat(str.replace(/_/g,""))}function stringToBigInt(str){if(typeof BigInt!=="function"){return null}return BigInt(str.replace(/_/g,""))}pp2.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);if(val==null){this.raise(this.start+2,"Expected number in radix "+radix)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){val=stringToBigInt(this.input.slice(start,this.pos));++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(types$1.num,val)};pp2.readNumber=function(startsWithDot){var start=this.pos;if(!startsWithDot&&this.readInt(10,void 0,true)===null){this.raise(start,"Invalid number")}var octal=this.pos-start>=2&&this.input.charCodeAt(start)===48;if(octal&&this.strict){this.raise(start,"Invalid number")}var next2=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&next2===110){var val$1=stringToBigInt(this.input.slice(start,this.pos));++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(types$1.num,val$1)}if(octal&&/[89]/.test(this.input.slice(start,this.pos))){octal=false}if(next2===46&&!octal){++this.pos;this.readInt(10);next2=this.input.charCodeAt(this.pos)}if((next2===69||next2===101)&&!octal){next2=this.input.charCodeAt(++this.pos);if(next2===43||next2===45){++this.pos}if(this.readInt(10)===null){this.raise(start,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var val=stringToNumber(this.input.slice(start,this.pos),octal);return this.finishToken(types$1.num,val)};pp2.readCodePoint=function(){var ch22=this.input.charCodeAt(this.pos),code22;if(ch22===123){if(this.options.ecmaVersion<6){this.unexpected()}var codePos=++this.pos;code22=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(code22>1114111){this.invalidStringToken(codePos,"Code point out of bounds")}}else{code22=this.readHexChar(4)}return code22};pp2.readString=function(quote2){var out="",chunkStart=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var ch22=this.input.charCodeAt(this.pos);if(ch22===quote2){break}if(ch22===92){out+=this.input.slice(chunkStart,this.pos);out+=this.readEscapedChar(false);chunkStart=this.pos}else if(ch22===8232||ch22===8233){if(this.options.ecmaVersion<10){this.raise(this.start,"Unterminated string constant")}++this.pos;if(this.options.locations){this.curLine++;this.lineStart=this.pos}}else{if(isNewLine(ch22)){this.raise(this.start,"Unterminated string constant")}++this.pos}}out+=this.input.slice(chunkStart,this.pos++);return this.finishToken(types$1.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp2.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(err22){if(err22===INVALID_TEMPLATE_ESCAPE_ERROR){this.readInvalidTemplateToken()}else{throw err22}}this.inTemplateElement=false};pp2.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw INVALID_TEMPLATE_ESCAPE_ERROR}else{this.raise(position,message)}};pp2.readTmplToken=function(){var out="",chunkStart=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var ch22=this.input.charCodeAt(this.pos);if(ch22===96||ch22===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)){if(ch22===36){this.pos+=2;return this.finishToken(types$1.dollarBraceL)}else{++this.pos;return this.finishToken(types$1.backQuote)}}out+=this.input.slice(chunkStart,this.pos);return this.finishToken(types$1.template,out)}if(ch22===92){out+=this.input.slice(chunkStart,this.pos);out+=this.readEscapedChar(true);chunkStart=this.pos}else if(isNewLine(ch22)){out+=this.input.slice(chunkStart,this.pos);++this.pos;switch(ch22){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:out+="\n";break;default:out+=String.fromCharCode(ch22);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}chunkStart=this.pos}else{++this.pos}}};pp2.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++){switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{"){break}case"`":return this.finishToken(types$1.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]==="\n"){++this.pos}case"\n":case"\u2028":case"\u2029":++this.curLine;this.lineStart=this.pos+1;break}}this.raise(this.start,"Unterminated template")};pp2.readEscapedChar=function(inTemplate){var ch22=this.input.charCodeAt(++this.pos);++this.pos;switch(ch22){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:if(this.options.locations){this.lineStart=this.pos;++this.curLine}return"";case 56:case 57:if(this.strict){this.invalidStringToken(this.pos-1,"Invalid escape sequence")}if(inTemplate){var codePos=this.pos-1;this.invalidStringToken(codePos,"Invalid escape sequence in template string")}default:if(ch22>=48&&ch22<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var octal=parseInt(octalStr,8);if(octal>255){octalStr=octalStr.slice(0,-1);octal=parseInt(octalStr,8)}this.pos+=octalStr.length-1;ch22=this.input.charCodeAt(this.pos);if((octalStr!=="0"||ch22===56||ch22===57)&&(this.strict||inTemplate)){this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(octal)}if(isNewLine(ch22)){if(this.options.locations){this.lineStart=this.pos;++this.curLine}return""}return String.fromCharCode(ch22)}};pp2.readHexChar=function(len2){var codePos=this.pos;var n8=this.readInt(16,len2);if(n8===null){this.invalidStringToken(codePos,"Bad character escape sequence")}return n8};pp2.readWord1=function(){this.containsEsc=false;var word="",first=true,chunkStart=this.pos;var astral=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var ch22=this.fullCharCodeAtPos();if(isIdentifierChar(ch22,astral)){this.pos+=ch22<=65535?1:2}else if(ch22===92){this.containsEsc=true;word+=this.input.slice(chunkStart,this.pos);var escStart=this.pos;if(this.input.charCodeAt(++this.pos)!==117){this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX")}++this.pos;var esc=this.readCodePoint();if(!(first?isIdentifierStart:isIdentifierChar)(esc,astral)){this.invalidStringToken(escStart,"Invalid Unicode escape")}word+=codePointToString(esc);chunkStart=this.pos}else{break}first=false}return word+this.input.slice(chunkStart,this.pos)};pp2.readWord=function(){var word=this.readWord1();var type2=types$1.name;if(this.keywords.test(word)){type2=keywords[word]}return this.finishToken(type2,word)};var version$1="8.15.0";Parser.acorn={Parser,version:version$1,defaultOptions:defaultOptions2,Position,SourceLocation,getLineInfo,Node:Node2,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types2,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parse3(input,options){return Parser.parse(input,options)}var Script$1=class Script{constructor(code22,_options2){__publicField2(this,"code");this.code=code22}runInThisContext(_options){return eval(this.code)}runInNewContext(contextObject,_options2){const sandbox=contextObject&&typeof contextObject==="object"?contextObject:{};const declared=[];try{const ast=parse3(this.code,{ecmaVersion:"latest",sourceType:"script",allowReturnOutsideFunction:true,allowAwaitOutsideFunction:true});for(const node of ast.body){if(node.type==="FunctionDeclaration"&&node.id)declared.push(node.id.name);if(node.type==="VariableDeclaration"&&node.kind==="var"){for(const d of node.declarations)if(d.id.type==="Identifier")declared.push(d.id.name)}}}catch{}const own=new Set(["__substrateScope","__substrateCode","__substrateDeclared",...declared]);const globalView=new Proxy(sandbox,{has:(target,name)=>name in target,get:(target,name)=>{if(name==="globalThis"||name==="global"||name==="self")return name in target?target[name]:globalView;return name in target?target[name]:globalThis[name]},set:(target,name,value)=>{target[name]=value;return true},deleteProperty:(target,name)=>{delete target[name];return true}});const scope4=new Proxy(sandbox,{has:(_target,name)=>!own.has(name),get:(target,name)=>{if(name===Symbol.unscopables)return void 0;if(name==="globalThis"||name==="global"||name==="self")return name in target?target[name]:globalView;if(name in target)return target[name];return globalThis[name]},set:(target,name,value)=>{target[name]=value;return true},deleteProperty:(target,name)=>{delete target[name];return true}});const fn2=new Function("__substrateScope","__substrateCode","__substrateDeclared","with (__substrateScope) { const __substrateResult = eval(__substrateCode); for (const name of __substrateDeclared) { try { __substrateScope[name] = eval(name); } catch {} } return __substrateResult; }");return fn2(scope4,this.code,declared)}runInContext(_context,_options2){return this.runInNewContext(_context,_options2)}createCachedData(){return Buffer.from("")}};function createContext(contextObject,_options2){return contextObject||{}}function isContext(_sandbox){return true}function runInThisContext(code,_options){return eval(code)}function runInNewContext(code22,contextObject,_options2){const script=new Script$1(code22);return script.runInNewContext(contextObject)}function runInContext(code22,context2,_options2){return runInNewContext(code22,context2)}function compileFunction(code22,params,_options2){return new Function(...params||[],code22)}var Module=class{constructor(_code,_options2){}link(_linker){return Promise.resolve()}evaluate(_options2){return Promise.resolve()}get status(){return"unlinked"}get identifier(){return""}get context(){return{}}get namespace(){return{}}};var SourceTextModule=class extends Module{};var SyntheticModule=class extends Module{setExport(_name,_value2){}};var vm2={Script:Script$1,createContext,isContext,runInThisContext,runInNewContext,runInContext,compileFunction,Module,SourceTextModule,SyntheticModule};var vmShim=Object.freeze(Object.defineProperty({__proto__:null,Module,Script:Script$1,SourceTextModule,SyntheticModule,compileFunction,createContext,default:vm2,isContext,runInContext,runInNewContext,runInThisContext},Symbol.toStringTag,{value:"Module"}));var isMainThread=true;var parentPort=null;var workerData=null;var threadId=0;var Worker$1=class Worker3 extends EventEmitter{constructor(filename,options){super();__publicField2(this,"threadId",0);__publicField2(this,"resourceLimits",{});throw Object.assign(new Error("Node worker_threads execution is not supported by this browser Node pack."),{code:"ERR_WORKER_UNSUPPORTED"})}postMessage(value,transferList){}terminate(){return Promise.resolve(0)}ref(){}unref(){}getHeapSnapshot(){return Promise.resolve({})}};var MessageChannel2=class{constructor(){__publicField2(this,"port1",new MessagePort2);__publicField2(this,"port2",new MessagePort2)}};var MessagePort2=class extends EventEmitter{postMessage(value,transferList){}start(){}close(){}ref(){}unref(){}};var BroadcastChannel$1=class BroadcastChannel2 extends EventEmitter{constructor(name){super();__publicField2(this,"name");this.name=name}postMessage(message){}close(){}ref(){}unref(){}};function moveMessagePortToContext(port2,contextifiedSandbox){return port2}function receiveMessageOnPort(port2){return void 0}var SHARE_ENV=Symbol.for("nodejs.worker_threads.SHARE_ENV");function markAsUntransferable(object){}var uncloneable=new WeakSet;function markAsUncloneable(object){if(object!==null&&(typeof object==="object"||typeof object==="function"))uncloneable.add(object)}function isMarkedAsUncloneable(object){return object!==null&&(typeof object==="object"||typeof object==="function")&&uncloneable.has(object)}function getEnvironmentData(key){return void 0}function setEnvironmentData(key,value){}var worker_threads={isMainThread,parentPort,workerData,threadId,Worker:Worker$1,MessageChannel:MessageChannel2,MessagePort:MessagePort2,BroadcastChannel:BroadcastChannel$1,moveMessagePortToContext,receiveMessageOnPort,SHARE_ENV,markAsUntransferable,markAsUncloneable,isMarkedAsUncloneable,getEnvironmentData,setEnvironmentData};var workerThreadsShim=Object.freeze(Object.defineProperty({__proto__:null,BroadcastChannel:BroadcastChannel$1,MessageChannel:MessageChannel2,MessagePort:MessagePort2,SHARE_ENV,Worker:Worker$1,default:worker_threads,getEnvironmentData,isMainThread,isMarkedAsUncloneable,markAsUncloneable,markAsUntransferable,moveMessagePortToContext,parentPort,receiveMessageOnPort,setEnvironmentData,threadId,workerData},Symbol.toStringTag,{value:"Module"}));var Http2Session=class extends EventEmitter{close(_callback3){if(_callback3)setTimeout(_callback3,0)}destroy(_error,_code){}get destroyed(){return false}get encrypted(){return false}get closed(){return false}ping(_callback3){return false}ref(){}unref(){}setTimeout(_msecs,_callback3){}};var ClientHttp2Session=class extends Http2Session{};var ServerHttp2Session=class extends Http2Session{};var Http2Stream=class extends EventEmitter{close(_code,_callback3){}get id(){return 0}get pending(){return false}get destroyed(){return false}get closed(){return false}priority(_options2){}setTimeout(_msecs,_callback3){}end(_data,_encoding,_callback3){}};var Http2ServerRequest=class extends EventEmitter{};var Http2ServerResponse=class extends EventEmitter{writeHead(_statusCode,_headers2){return this}end(_data){}};function createServer(_options2,_onRequestHandler){return new EventEmitter}function createSecureServer(_options2,_onRequestHandler){return new EventEmitter}function connect(_authority,_options2,_listener){return new ClientHttp2Session}var constants3={NGHTTP2_SESSION_SERVER:0,NGHTTP2_SESSION_CLIENT:1,HTTP2_HEADER_STATUS:":status",HTTP2_HEADER_METHOD:":method",HTTP2_HEADER_AUTHORITY:":authority",HTTP2_HEADER_SCHEME:":scheme",HTTP2_HEADER_PATH:":path",HTTP_STATUS_OK:200,HTTP_STATUS_NOT_FOUND:404};function getDefaultSettings(){return{}}function getPackedSettings(_settings){return Buffer.from("")}function getUnpackedSettings(_buf){return{}}var sensitiveHeaders=Symbol("sensitiveHeaders");var http2={Http2Session,ClientHttp2Session,ServerHttp2Session,Http2Stream,Http2ServerRequest,Http2ServerResponse,createServer,createSecureServer,connect,constants:constants3,getDefaultSettings,getPackedSettings,getUnpackedSettings,sensitiveHeaders};var http2Shim=Object.freeze(Object.defineProperty({__proto__:null,ClientHttp2Session,Http2ServerRequest,Http2ServerResponse,Http2Session,Http2Stream,ServerHttp2Session,connect,constants:constants3,createSecureServer,createServer,default:http2,getDefaultSettings,getPackedSettings,getUnpackedSettings,sensitiveHeaders},Symbol.toStringTag,{value:"Module"}));var Session=class extends EventEmitter{connect(){}connectToMainThread(){}disconnect(){}post(_method,_params,_callback3){if(_callback3)setTimeout(()=>_callback3(null,{}),0)}};function open(_port,_host,_wait){}function close(){}function url(){return void 0}function waitForDebugger(){}var console$1=globalThis.console;var inspector={Session,open,close,url,waitForDebugger,console:console$1};var inspectorShim=Object.freeze(Object.defineProperty({__proto__:null,Session,close,console:console$1,default:inspector,open,url,waitForDebugger},Symbol.toStringTag,{value:"Module"}));var performance$1=globalThis.performance||{now:()=>Date.now(),timeOrigin:Date.now(),mark:()=>{},measure:()=>{},getEntries:()=>[],getEntriesByName:()=>[],getEntriesByType:()=>[],clearMarks:()=>{},clearMeasures:()=>{},clearResourceTimings:()=>{}};forGuestRealm(()=>{const own=globalThis.performance;if(own&&typeof own.markResourceTiming!=="function"){try{Object.defineProperty(own,"markResourceTiming",{value:()=>void 0,writable:true,configurable:true,enumerable:false})}catch{}}});var PerformanceObserver=class{constructor(callback){__publicField2(this,"callback");__publicField2(this,"entryTypes",[]);this.callback=callback}observe(options){this.entryTypes=options.entryTypes||(options.type?[options.type]:[])}disconnect(){this.entryTypes=[]}takeRecords(){return[]}};__publicField2(PerformanceObserver,"supportedEntryTypes",["mark","measure","resource","navigation"]);var Histogram=class{constructor(){__publicField2(this,"min",0);__publicField2(this,"max",0);__publicField2(this,"mean",0);__publicField2(this,"stddev",0);__publicField2(this,"percentiles",new Map);__publicField2(this,"exceeds",0)}reset(){this.min=0;this.max=0;this.mean=0;this.stddev=0;this.percentiles.clear();this.exceeds=0}percentile(percentile){return this.percentiles.get(percentile)||0}};function createHistogram(){return new Histogram}function monitorEventLoopDelay(options){const histogram=new Histogram;return histogram}var perf_hooks={performance:performance$1,PerformanceObserver,createHistogram,monitorEventLoopDelay};var perfHooksShim=Object.freeze(Object.defineProperty({__proto__:null,Histogram,PerformanceObserver,createHistogram,default:perf_hooks,monitorEventLoopDelay,performance:performance$1},Symbol.toStringTag,{value:"Module"}));function nodeTimeout(id2){if(typeof id2!=="number")return id2;const timeout={_id:id2,ref(){return timeout},unref(){return timeout},hasRef(){return true},refresh(){return timeout},[Symbol.toPrimitive](){return id2}};return timeout}function timerHandleOf(id2){return id2&&typeof id2==="object"&&"_id"in id2?id2._id:id2}function createTimersModule(owned){const schedule=(owned==null?void 0:owned.setTimeout)??globalThis.setTimeout.bind(globalThis);const cancel=(owned==null?void 0:owned.clearTimeout)??(id2=>globalThis.clearTimeout(timerHandleOf(id2)));const unenroll=item=>{if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=null;item._idleTimeout=-1};const enroll=(item,msecs)=>{if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=null;item._idleTimeout=msecs};const active2=item=>{const msecs=item._idleTimeout;if(typeof msecs!=="number"||msecs<0)return;if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=schedule(()=>{item._idleTimeoutId=null;if(typeof item._onTimeout==="function")item._onTimeout()},msecs)};const abortError=()=>{const error=new Error("The operation was aborted");error.name="AbortError";error.code="ABORT_ERR";return error};const timersPromises={setTimeout:(delay2,value,options)=>new Promise((resolve2,reject)=>{const signal=options&&options.signal;if(signal&&signal.aborted){reject(abortError());return}const onAbort=()=>{cancel(handle);reject(abortError())};const handle=schedule(()=>{if(signal)signal.removeEventListener("abort",onAbort);resolve2(value)},delay2);if(signal)signal.addEventListener("abort",onAbort,{once:true})}),setImmediate:(value,options)=>timersPromises.setTimeout(0,value,options),setInterval:async function*setInterval2(delay2,value,options){const signal=options&&options.signal;for(;;){await timersPromises.setTimeout(delay2,void 0,options);if(signal&&signal.aborted)return;yield value}},scheduler:{wait:(delay2,options)=>timersPromises.setTimeout(delay2,void 0,options),yield:()=>timersPromises.setTimeout(0,void 0,void 0)}};return{setTimeout(fn2,ms2,...rest){return nodeTimeout(globalThis.setTimeout(fn2,ms2,...rest))},clearTimeout(id2){return globalThis.clearTimeout(timerHandleOf(id2))},setInterval(fn2,ms2,...rest){return nodeTimeout(globalThis.setInterval(fn2,ms2,...rest))},clearInterval(id2){return globalThis.clearInterval(timerHandleOf(id2))},setImmediate(fn2,...args){const realm=globalThis;return nodeTimeout(realm.setImmediate?realm.setImmediate(fn2,...args):globalThis.setTimeout(fn2,0,...args))},clearImmediate(id2){const realm=globalThis;const handle=timerHandleOf(id2);return realm.clearImmediate?realm.clearImmediate(handle):globalThis.clearTimeout(handle)},...owned?{...owned,setImmediate:(fn2,...args)=>owned.setTimeout(fn2,0,...args),clearImmediate:owned.clearTimeout}:{},active:active2,enroll,unenroll,promises:timersPromises}}var NODE_LTS_VERSION="22.12.0";function nodeVersions(node=NODE_LTS_VERSION){return{node,v8:"11.3.244.8",uv:"1.44.2",webcontainer:"1",openssl:"3.0.15",amaro:"1.1.0"}}var StdinClasses;function processStdinClass(ReadableClass){StdinClasses??(StdinClasses=new WeakMap);const cached=StdinClasses.get(ReadableClass);if(cached)return cached;const StdinClass=class ProcessStdin extends ReadableClass{constructor(){super(...arguments);__publicField2(this,"fd",0);__publicField2(this,"isTTY",false)}_read(){}setRawMode(_mode){return this}__substrateStdinWrite(data2){if(data2===void 0||data2===null||typeof data2==="string"&&data2.length===0)return;this.push(data2)}__substrateStdinEnd(){this.push(null)}};StdinClasses.set(ReadableClass,StdinClass);return StdinClass}function createProcessStream(isWritable,writeImpl){const emitter=new EventEmitter;const stream={isTTY:false,columns:80,rows:24,clearLine(direction,callback){if(typeof direction==="function")direction();else if(typeof callback==="function")callback();return true},cursorTo(x,y,callback){if(typeof y==="function")y();else if(typeof callback==="function")callback();return true},moveCursor(dx,dy2,callback){if(typeof callback==="function")callback();return true},getWindowSize(){return[80,24]},hasColors(){return false},getColorDepth(){return 1},on(event,listener){emitter.on(event,listener);return stream},once(event,listener){emitter.once(event,listener);return stream},off(event,listener){emitter.off(event,listener);return stream},emit(event,...args){return emitter.emit(event,...args)},addListener(event,listener){emitter.addListener(event,listener);return stream},removeListener(event,listener){emitter.removeListener(event,listener);return stream},removeAllListeners(event){emitter.removeAllListeners(event);return stream},setMaxListeners(n8){emitter.setMaxListeners(n8);return stream},getMaxListeners(){return emitter.getMaxListeners()},listenerCount(event){return emitter.listenerCount(event)},listeners(event){return emitter.listeners(event)},rawListeners(event){return emitter.rawListeners(event)},prependListener(event,listener){emitter.prependListener(event,listener);return stream},prependOnceListener(event,listener){emitter.prependOnceListener(event,listener);return stream},eventNames(){return emitter.eventNames()},pause(){return stream},resume(){return stream},setEncoding(_encoding){return stream},write(_data,...rest){const callback=trailingCallback(rest);if(callback)queueMicrotask(callback);return true},end(...rest){const callback=trailingCallback(rest);if(callback)queueMicrotask(callback)},pipe(destination){return destination},unpipe(){return stream},isPaused(){return false},unshift(){}};if(writeImpl){stream.write=(data2,...rest)=>{const result=writeImpl(textOf(data2));const callback=trailingCallback(rest);if(callback)queueMicrotask(callback);return result};stream.end=(...args)=>{const data2=args[0];if(typeof data2==="string"||data2 instanceof Uint8Array)writeImpl(textOf(data2));const callback=trailingCallback(args);if(callback)queueMicrotask(callback)}}return stream}function textOf(data2){return typeof data2==="string"?data2:new TextDecoder().decode(data2)}function trailingCallback(args){for(let index2=args.length-1;index2>=0;index2-=1){const value=args[index2];if(typeof value==="function")return value}return void 0}var __substrateSignals={SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGBUS:7,SIGFPE:8,SIGKILL:9,SIGUSR1:10,SIGSEGV:11,SIGUSR2:12,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:17,SIGCONT:18,SIGSTOP:19,SIGTSTP:20,SIGTTIN:21,SIGTTOU:22,SIGURG:23,SIGWINCH:28};var __substrateSignalNames=Object.fromEntries(Object.entries(__substrateSignals).map(([name,number])=>[number,name]));var __substrateBindingWarned=new WeakSet;var __substrateIgnoredSignals=new Set(["SIGCHLD","SIGCONT","SIGURG","SIGWINCH"]);var __substrateChildren=new Map;function __browserRuntimeNodeVersion(env){const named=env&&typeof env.NODE_VERSION==="string"?env.NODE_VERSION.replace(/^v/,""):"";return/^\d+\.\d+\.\d+$/.test(named)?named:NODE_LTS_VERSION}var __substrateUmask=18;var __substrateUncaughtReports=new WeakMap;function __onUncaughtException(process22,report){__substrateUncaughtReports.set(process22,report);return()=>{if(__substrateUncaughtReports.get(process22)===report)__substrateUncaughtReports.delete(process22)}}function __reportUncaughtException(process22,error){const report=process22?__substrateUncaughtReports.get(process22):void 0;if(!report)return false;report(error);return true}var __substrateCaptureCallback=null;function __substrateUncaughtCapture(){return __substrateCaptureCallback}function __substrateExitCode(code22){if(code22===void 0||code22===null)return 0;const asNumber=Number(code22);return Number.isNaN(asNumber)?0:asNumber}function createProcess(options){let currentDir=(options==null?void 0:options.cwd)||"/";const env={PATH:"/usr/local/bin:/usr/bin:/bin:/node_modules/.bin",HOME:"/",...options==null?void 0:options.env};if(!(options==null?void 0:options.tty)){delete env.FORCE_COLOR}const emitter=new EventEmitter;const startTime=Date.now();let stdinStream;const proc={env,title:"node",cwd(){return currentDir},chdir(directory2){console.log("[process] chdir called:",directory2,"from:",currentDir);if(!directory2.startsWith("/")){directory2=currentDir+"/"+directory2}currentDir=directory2;console.log("[process] chdir result:",currentDir)},platform:"linux",version:"v"+__browserRuntimeNodeVersion(env),versions:nodeVersions(__browserRuntimeNodeVersion(env)),arch:"x64",argv:["node","/index.js"],argv0:"node",execPath:"/usr/local/bin/node",execArgv:[],config:{target_defaults:{},variables:{node_shared:false,node_use_openssl:false,v8_enable_i18n_support:0}},moduleLoadList:[],setUncaughtExceptionCaptureCallback(callback){if(callback===null){__substrateCaptureCallback=null;return}if(typeof callback!=="function"){throw Object.assign(new TypeError('The "fn" argument must be of type function or null.'),{code:"ERR_INVALID_ARG_TYPE"})}if(__substrateCaptureCallback!==null){throw Object.assign(new Error("`process.setUncaughtExceptionCaptureCallback()` was called while a capture callback was already active"),{code:"ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"})}__substrateCaptureCallback=callback},hasUncaughtExceptionCaptureCallback(){return __substrateCaptureCallback!==null},features:{debug:false,inspector:false,tls:false,cached_builtins:true,ipv6:true,require_module:true,tls_alpn:false,tls_ocsp:false,tls_sni:false,typescript:false,uvwasi:true},umask(mask){const previous=__substrateUmask;if(mask!==void 0)__substrateUmask=typeof mask==="string"?parseInt(mask,8):mask;return previous},pid:(options==null?void 0:options.pid)??mintPid(),ppid:(options==null?void 0:options.ppid)??0,exit(code22=0){code22=__substrateExitCode(code22);emitter.emit("exit",code22);if(options==null?void 0:options.onExit){options.onExit(code22)}throw new Error(`Process exited with code ${code22}`)},kill(pid,signal="SIGTERM"){const name=typeof signal==="number"&&signal!==0?__substrateSignalNames[signal]:signal;if(signal!==0&&(typeof name!=="string"||__substrateSignals[name]===void 0)){throw Object.assign(new TypeError("Unknown signal: "+signal),{code:"ERR_UNKNOWN_SIGNAL"})}if(pid!==proc.pid){const child=__substrateChildren.get(Math.abs(pid));if(child===void 0||child.exitCode!==null||child.signalCode!==null){if(signal===0&&pidIsLive(Math.abs(pid)))return true;if(signal!==0&&child===void 0&&pid>0&&signalPid(pid,name))return true;throw Object.assign(new Error("kill ESRCH"),{code:"ESRCH",errno:-3,syscall:"kill"})}if(signal===0)return true;child.kill(name);return true}if(signal===0)return true;if(name!=="SIGKILL"&&name!=="SIGSTOP"&&emitter.listenerCount(name)>0){emitter.emit(name,name);return true}if(__substrateIgnoredSignals.has(name))return true;__recordTermination(proc,name);proc.exit(128+__substrateSignals[name]);return true},binding(name){if(!__substrateBindingWarned.has(proc)&&(proc.execArgv||[]).includes("--pending-deprecation")){__substrateBindingWarned.add(proc);proc.emitWarning("process.binding() is deprecated. Please use public APIs instead.","DeprecationWarning","DEP0111")}if(name==="constants")return constantsBinding$1();if(name==="tty_wrap")return ttyWrapBinding;throw new Error("No such module: "+name)},nextTick(callback,...args){const run=typeof globalThis.__substrateCarried==="function"?globalThis.__substrateCarried(callback):callback;queueMicrotask(()=>{try{run(...args)}catch(error){if(!__reportUncaughtException(proc,error))throw error}})},assert(value,message){if(value)return;const error=new Error(message===void 0?"assertion error":String(message));error.name="AssertionError";error.code="ERR_ASSERTION";throw error},emitWarning(warning,...rest){const text=warning instanceof Error?warning.message:String(warning);const options2=rest[0]&&typeof rest[0]==="object"?rest[0]:void 0;const type2=typeof rest[0]==="string"?rest[0]:(options2==null?void 0:options2.type)?options2.type:"Warning";const printedCode=typeof rest[1]==="string"?rest[1]:options2==null?void 0:options2.code;const printedType=warning instanceof Error?warning.name:type2;const line="(node) "+(printedCode===void 0?"":"["+printedCode+"] ")+printedType+": "+text+"\n";if(this&&this.stderr&&typeof this.stderr.write==="function")this.stderr.write(line);else console.warn(line);const code22=printedCode;const raised=warning instanceof Error?warning:Object.assign(new Error(text),{name:type2},code22===void 0?{}:{code:code22});queueMicrotask(()=>{emitter.emit("warning",raised)})},stdout:createProcessStream(true,data2=>{if(options==null?void 0:options.onStdout){options.onStdout(data2)}else{console.log(data2)}return true}),stderr:createProcessStream(true,data2=>{if(options==null?void 0:options.onStderr){options.onStderr(data2)}else{console.error(data2)}return true}),get stdin(){if(!stdinStream){stdinStream=new(processStdinClass(loadNodeLibFor(proc,"stream").Readable));if(typeof(options==null?void 0:options.stdin)==="string")stdinStream.__substrateStdinWrite(options.stdin);if(!(options==null?void 0:options.stdinHeld))stdinStream.__substrateStdinEnd()}return stdinStream},hrtime:Object.assign(function hrtime(time){const now=performance.now();const seconds=Math.floor(now/1e3);const nanoseconds=Math.floor(now%1e3*1e6);if(time){const diffSeconds=seconds-time[0];const diffNanos=nanoseconds-time[1];return[diffSeconds,diffNanos]}return[seconds,nanoseconds]},{bigint:()=>BigInt(Math.floor(performance.now()*1e6))}),memoryUsage(){return{rss:50*1024*1024,heapTotal:30*1024*1024,heapUsed:20*1024*1024,external:1*1024*1024,arrayBuffers:0}},constrainedMemory(){return 0},availableMemory(){return freemem()},uptime(){return(Date.now()-startTime)/1e3},cpuUsage(){return{user:0,system:0}},on(event,listener){emitter.on(event,listener);return proc},once(event,listener){emitter.once(event,listener);return proc},off(event,listener){emitter.off(event,listener);return proc},emit(event,...args){const listeners=emitter.listeners(event);if(listeners.length===0)return emitter.emit(event,...args);for(const listener of listeners){try{listener.apply(proc,args)}catch(error){console.error("Error in event listener:",error)}}return true},addListener(event,listener){emitter.addListener(event,listener);return proc},removeListener(event,listener){emitter.removeListener(event,listener);return proc},removeAllListeners(event){emitter.removeAllListeners(event);return proc},listeners(event){return emitter.listeners(event)},listenerCount(event){return emitter.listenerCount(event)},prependListener(event,listener){emitter.prependListener(event,listener);return proc},prependOnceListener(event,listener){emitter.prependOnceListener(event,listener);return proc},eventNames(){return emitter.eventNames()},setMaxListeners(n8){emitter.setMaxListeners(n8);return proc},getMaxListeners(){return emitter.getMaxListeners()}};return proc}var __substratePendingTimers=new WeakMap;function pendingGuestTimers(process22){var _a22;return((_a22=__substratePendingTimers.get(process22))==null?void 0:_a22.size)??0}function stopGuestTimers(process22){const held=__substratePendingTimers.get(process22);if(!held)return;const host2=globalThis;const clearOnce=host2.clearTimeout;const clearRepeating=host2.clearInterval;for(const id2 of[...held]){try{clearOnce==null?void 0:clearOnce.call(host2,id2)}catch{}try{clearRepeating==null?void 0:clearRepeating.call(host2,id2)}catch{}}held.clear()}function guestTimerFunctions(process22,host2){let pending=__substratePendingTimers.get(process22);if(!pending){pending=new Set;__substratePendingTimers.set(process22,pending)}const held=pending;const hostSetTimeout=host2.setTimeout;const hostSetInterval=host2.setInterval;const hostClearTimeout=host2.clearTimeout;const hostClearInterval=host2.clearInterval;const handleOf=timerHandleOf;const inProcess=fn2=>(...args)=>{try{fn2(...args)}catch(error){if(!__reportUncaughtException(process22,error))throw error}};const track=id2=>{held.add(id2);if(id2&&typeof id2==="object"&&typeof id2.unref==="function"){const handle=id2;const unref=handle.unref.bind(handle);const ref2=handle.ref.bind(handle);handle.unref=()=>{held.delete(id2);return unref()};handle.ref=()=>{held.add(id2);return ref2()}}return id2};return{setTimeout(fn2,ms2,...rest){let id2;const call=inProcess(fn2);id2=nodeTimeout(hostSetTimeout.call(host2,(...args)=>{held.delete(id2);call(...args)},ms2,...rest));return track(id2)},setInterval(fn2,ms2,...rest){return track(nodeTimeout(hostSetInterval.call(host2,inProcess(fn2),ms2,...rest)))},clearTimeout(id2){held.delete(id2);return hostClearTimeout.call(host2,handleOf(id2))},clearInterval(id2){held.delete(id2);return hostClearInterval.call(host2,handleOf(id2))}}}var __table;function nodeLibPublic(name,require2,_process){if(_process&&name==="timers")return()=>createTimersModule(guestTimerFunctions(_process,globalThis));if(require2&&name==="crypto")return()=>createCryptoModule(require2);if(require2&&name==="tls")return()=>createTlsModule(require2);if(require2&&name==="string_decoder")return()=>createStringDecoderModule(()=>require2("buffer").Buffer);__table??(__table={timers:createTimersModule,dns:createDnsModule,cluster:()=>clusterShim,string_decoder:()=>decoder2,v8:()=>v8Shim,dgram:()=>dgramShim,async_hooks:()=>({...asyncHooksShim,AsyncResource:AsyncResource$1}),tls:()=>tlsShim,crypto:()=>cryptoShim,vm:()=>vmShim,worker_threads:()=>workerThreadsShim,http2:()=>http2Shim,inspector:()=>inspectorShim,perf_hooks:()=>perfHooksShim,"util/types":()=>nodeLibInternalRequire("internal/util/types"),path:()=>posix,"fs/promises":()=>nodeLibInternalRequire("internal/fs/promises").exports});return __table[name]}var stackOverrides=new Map;var stackOverrideMap={set(error,override){stackOverrides.set(error,override);const nativeSetTimeout=globalThis.__browserRuntimeNativeSetTimeout??setTimeout;nativeSetTimeout.call(globalThis,()=>{if(stackOverrides.get(error)===override)stackOverrides.delete(error)},0);return this},get:error=>stackOverrides.get(error),has:error=>stackOverrides.has(error),delete:error=>stackOverrides.delete(error)};var builtPrimordials;function primordialsOf(){if(builtPrimordials===void 0){const built={};new Function("primordials",`${PRIMORDIALS_SOURCE}
|
|
5766
|
+
`}async function generateKeyPairAsync(type2,options){const algorithm=keyPairAlgorithm(type2,options);const pair=await crypto.subtle.generateKey(algorithm.generate,true,algorithm.usages);const publicKey=options.publicKeyEncoding?encodedKey(await crypto.subtle.exportKey("spki",pair.publicKey),options.publicKeyEncoding,"public"):new KeyObject2("public",pair.publicKey,algorithm.name);const privateKey=options.privateKeyEncoding?encodedKey(await crypto.subtle.exportKey("pkcs8",pair.privateKey),options.privateKeyEncoding,"private"):new KeyObject2("private",pair.privateKey,algorithm.name);return{publicKey,privateKey}}function generateKeyPair2(type2,options,callback){if(typeof options==="function"){callback=options;options={}}if(typeof callback!=="function")throw Object.assign(new TypeError('The "callback" argument must be of type function.'),{code:"ERR_INVALID_ARG_TYPE"});const done=callback;keyPairAlgorithm(type2,options??{});generateKeyPairAsync(type2,options??{}).then(({publicKey,privateKey})=>done(null,publicKey,privateKey),error=>done(error instanceof Error?error:new Error(String(error))))}Object.defineProperty(generateKeyPair2,Symbol.for("nodejs.util.promisify.custom"),{value:(type2,options)=>generateKeyPairAsync(type2,options??{})});function timingSafeEqual2(a,b){if(a.length!==b.length){return false}let result=0;for(let i22=0;i22<a.length;i22++){result|=a[i22]^b[i22]}return result===0}function getCiphers2(){return cipherNames()}function getHashes2(){return HASH_ALGORITHMS.slice()}function getWebCryptoAlgorithm(nodeAlgorithm){var _a22,_b22,_c22,_d22;const alg=nodeAlgorithm.toUpperCase().replace(/[^A-Z0-9]/g,"");if(alg.includes("RSA")){if(alg.includes("PSS")){const hash4=((_a22=alg.match(/SHA(\d+)/))==null?void 0:_a22[0])||"SHA-256";return{name:"RSA-PSS",hash:`SHA-${hash4.replace("SHA","")}`}}const hash3=((_b22=alg.match(/SHA(\d+)/))==null?void 0:_b22[0])||"SHA-256";return{name:"RSASSA-PKCS1-v1_5",hash:`SHA-${hash3.replace("SHA","")}`}}if(alg.startsWith("ES")||alg.includes("ECDSA")){const bits=((_c22=alg.match(/\d+/))==null?void 0:_c22[0])||"256";const hash3=bits==="512"?"SHA-512":bits==="384"?"SHA-384":"SHA-256";return{name:"ECDSA",hash:hash3}}if(alg.includes("ED25519")||alg==="EDDSA"){return{name:"Ed25519"}}if(alg.includes("HS")||alg.includes("HMAC")){const bits=((_d22=alg.match(/\d+/))==null?void 0:_d22[0])||"256";return{name:"HMAC",hash:`SHA-${bits}`}}return{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"}}function extractKeyInfo(key){if(key instanceof KeyObject2){return keyInfoOf(key)}if(typeof key==="object"&&"key"in key){return extractKeyInfo(key.key)}const keyStr=typeof key==="string"?key:key.toString();if(keyStr.includes("-----BEGIN")){const isPrivate=keyStr.includes("PRIVATE");const isPublic=keyStr.includes("PUBLIC");const base6422=keyStr.replace(/-----BEGIN [^-]+-----/,"").replace(/-----END [^-]+-----/,"").replace(/\s/g,"");const keyData2=Buffer2.from(atob(base6422));let algorithm;if(keyStr.includes("RSA"))algorithm="RSA-SHA256";else if(keyStr.includes("EC"))algorithm="ES256";else if(keyStr.includes("ED25519"))algorithm="Ed25519";return{keyData:keyData2,algorithm,type:isPrivate?"private":isPublic?"public":"secret",format:"pem"}}const keyData=typeof key==="string"?Buffer2.from(key):key;return{keyData,type:"secret",format:"raw"}}function concatBuffers(buffers){const totalLength=buffers.reduce((acc,arr)=>acc+arr.length,0);const result=new Uint8Array(totalLength);let offset2=0;for(const buf of buffers){result.set(buf,offset2);offset2+=buf.length}return result}async function signAsync(algorithm,data2,keyInfo){const webCryptoAlg=getWebCryptoAlgorithm(algorithm);const cryptoKey=await importKey(keyInfo,webCryptoAlg,["sign"]);const signatureAlg=webCryptoAlg.hash?{name:webCryptoAlg.name,hash:webCryptoAlg.hash}:{name:webCryptoAlg.name};const dataBuffer=new Uint8Array(data2).buffer;const signature=await crypto.subtle.sign(signatureAlg,cryptoKey,dataBuffer);return Buffer2.from(signature)}async function verifyAsync(algorithm,data2,keyInfo,signature){const webCryptoAlg=getWebCryptoAlgorithm(algorithm);const cryptoKey=await importKey(keyInfo,webCryptoAlg,["verify"]);const verifyAlg=webCryptoAlg.hash?{name:webCryptoAlg.name,hash:webCryptoAlg.hash}:{name:webCryptoAlg.name};const sigBuffer=new Uint8Array(signature).buffer;const dataBuffer=new Uint8Array(data2).buffer;return await crypto.subtle.verify(verifyAlg,cryptoKey,sigBuffer,dataBuffer)}function signSync(_algorithm3,_data3,_keyInfo){return unsupported22("Synchronous signing")}function verifySync(_algorithm3,_data3,_keyInfo,_signature){return unsupported22("Synchronous verification")}async function importKey(keyInfo,algorithm,usages){if(keyInfo.keyData instanceof CryptoKey){return keyInfo.keyData}const keyData=keyInfo.keyData;const keyBuffer=new Uint8Array(keyData).buffer;if(keyInfo.format==="pem"){const format2=keyInfo.type==="private"?"pkcs8":"spki";const importAlg=algorithm.name==="ECDSA"?{name:"ECDSA",namedCurve:"P-256"}:algorithm.name==="Ed25519"?{name:"Ed25519"}:{name:algorithm.name,hash:algorithm.hash||"SHA-256"};return await crypto.subtle.importKey(format2,keyBuffer,importAlg,true,usages)}if(keyInfo.type==="secret"){return await crypto.subtle.importKey("raw",keyBuffer,{name:algorithm.name,hash:algorithm.hash},true,usages)}throw new Error(`Unsupported key format: ${keyInfo.format}`)}const{Cipheriv:Cipheriv2,Decipheriv:Decipheriv2,createCipheriv:createCipheriv2,createDecipheriv:createDecipheriv2}=createCipherClasses({toBuffer:bytes2=>Buffer2.from(bytes2),bytesOf:(value,encoding)=>cryptoBytes(value,encoding,true),secretKeyBytes:value=>{if(!(value instanceof KeyObject2))return void 0;const info=keyInfoOf(value);if(info.type!=="secret"||!(info.keyData instanceof Uint8Array)){throw Object.assign(new TypeError(`Invalid key object type ${info.type}, expected secret.`),{code:"ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"})}return info.keyData},encode:(bytes2,encoding)=>digestResult(bytes2,encoding),error:cryptoError});return{Cipheriv:Cipheriv2,Decipheriv:Decipheriv2,createCipheriv:createCipheriv2,createDecipheriv:createDecipheriv2,unsupported:unsupported22,randomBytes:randomBytes2,randomFill:randomFill2,randomFillSync:randomFillSync2,randomUUID:randomUUID2,randomInt:randomInt2,getRandomValues:getRandomValues2,hash:hash22,createHash:createHash2,createHmac:createHmac2,createSign:createSign2,createVerify:createVerify2,sign:sign22,verify:verify2,pbkdf2:pbkdf22,pbkdf2Sync:pbkdf2Sync2,timingSafeEqual:timingSafeEqual2,getCiphers:getCiphers2,getHashes:getHashes2,constants:cryptoConstants,KeyObject:KeyObject2,createSecretKey:createSecretKey2,createPublicKey:createPublicKey2,createPrivateKey:createPrivateKey2,generateKeyPair:generateKeyPair2,webcrypto:crypto,subtle:crypto.subtle}}var cryptoModule=createCryptoModule();var webcrypto=cryptoModule.webcrypto;var subtle=cryptoModule.subtle;var{Cipheriv,Decipheriv,createCipheriv,createDecipheriv,randomBytes,randomFillSync,randomFill,randomUUID,randomInt,getRandomValues,unsupported:unsupported$1,createHash,createHmac,hash,pbkdf2Sync,pbkdf2,sign,verify,createSign,createVerify,KeyObject,createSecretKey,createPublicKey,createPrivateKey,generateKeyPair,timingSafeEqual,getCiphers,getHashes}=cryptoModule;var cryptoShim=Object.freeze(Object.defineProperty({__proto__:null,Cipheriv,Decipheriv,KeyObject,constants:cryptoConstants,createCipheriv,createCryptoModule,createDecipheriv,createHash,createHmac,createPrivateKey,createPublicKey,createSecretKey,createSign,createVerify,default:cryptoModule,generateKeyPair,getCiphers,getHashes,getRandomValues,hash,pbkdf2,pbkdf2Sync,randomBytes,randomFill,randomFillSync,randomInt,randomUUID,sign,subtle,timingSafeEqual,unsupported:unsupported$1,verify,webcrypto},Symbol.toStringTag,{value:"Module"}));var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];var astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];var nonASCIIidentifierChars="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";var nonASCIIidentifierStartChars="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";var reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};var ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"};var keywordRelationalOperator=/^in(stanceof)?$/;var nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]");var nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(code22,set){var pos=65536;for(var i22=0;i22<set.length;i22+=2){pos+=set[i22];if(pos>code22){return false}pos+=set[i22+1];if(pos>=code22){return true}}return false}function isIdentifierStart(code22,astral){if(code22<65){return code22===36}if(code22<91){return true}if(code22<97){return code22===95}if(code22<123){return true}if(code22<=65535){return code22>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code22))}if(astral===false){return false}return isInAstralSet(code22,astralIdentifierStartCodes)}function isIdentifierChar(code22,astral){if(code22<48){return code22===36}if(code22<58){return true}if(code22<65){return false}if(code22<91){return true}if(code22<97){return code22===95}if(code22<123){return true}if(code22<=65535){return code22>=170&&nonASCIIidentifier.test(String.fromCharCode(code22))}if(astral===false){return false}return isInAstralSet(code22,astralIdentifierStartCodes)||isInAstralSet(code22,astralIdentifierCodes)}var TokenType=function TokenType2(label,conf){if(conf===void 0)conf={};this.label=label;this.keyword=conf.keyword;this.beforeExpr=!!conf.beforeExpr;this.startsExpr=!!conf.startsExpr;this.isLoop=!!conf.isLoop;this.isAssign=!!conf.isAssign;this.prefix=!!conf.prefix;this.postfix=!!conf.postfix;this.binop=conf.binop||null;this.updateContext=null};function binop(name,prec){return new TokenType(name,{beforeExpr:true,binop:prec})}var beforeExpr={beforeExpr:true};var startsExpr={startsExpr:true};var keywords={};function kw2(name,options){if(options===void 0)options={};options.keyword=name;return keywords[name]=new TokenType(name,options)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:true,startsExpr:true}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:true,startsExpr:true}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:true,startsExpr:true}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:true,startsExpr:true}),eq:new TokenType("=",{beforeExpr:true,isAssign:true}),assign:new TokenType("_=",{beforeExpr:true,isAssign:true}),incDec:new TokenType("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new TokenType("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw2("break"),_case:kw2("case",beforeExpr),_catch:kw2("catch"),_continue:kw2("continue"),_debugger:kw2("debugger"),_default:kw2("default",beforeExpr),_do:kw2("do",{isLoop:true,beforeExpr:true}),_else:kw2("else",beforeExpr),_finally:kw2("finally"),_for:kw2("for",{isLoop:true}),_function:kw2("function",startsExpr),_if:kw2("if"),_return:kw2("return",beforeExpr),_switch:kw2("switch"),_throw:kw2("throw",beforeExpr),_try:kw2("try"),_var:kw2("var"),_const:kw2("const"),_while:kw2("while",{isLoop:true}),_with:kw2("with"),_new:kw2("new",{beforeExpr:true,startsExpr:true}),_this:kw2("this",startsExpr),_super:kw2("super",startsExpr),_class:kw2("class",startsExpr),_extends:kw2("extends",beforeExpr),_export:kw2("export"),_import:kw2("import",startsExpr),_null:kw2("null",startsExpr),_true:kw2("true",startsExpr),_false:kw2("false",startsExpr),_in:kw2("in",{beforeExpr:true,binop:7}),_instanceof:kw2("instanceof",{beforeExpr:true,binop:7}),_typeof:kw2("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw2("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw2("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var lineBreak=/\r\n?|\n|\u2028|\u2029/;var lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code22){return code22===10||code22===13||code22===8232||code22===8233}function nextLineBreak(code22,from,end){if(end===void 0)end=code22.length;for(var i22=from;i22<end;i22++){var next2=code22.charCodeAt(i22);if(isNewLine(next2)){return i22<end-1&&next2===13&&code22.charCodeAt(i22+1)===10?i22+2:i22+1}}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var ref=Object.prototype;var hasOwnProperty=ref.hasOwnProperty;var toString2=ref.toString;var hasOwn=Object.hasOwn||function(obj,propName){return hasOwnProperty.call(obj,propName)};var isArray=Array.isArray||function(obj){return toString2.call(obj)==="[object Array]"};var regexpCache=Object.create(null);function wordsRegexp(words){return regexpCache[words]||(regexpCache[words]=new RegExp("^(?:"+words.replace(/ /g,"|")+")$"))}function codePointToString(code22){if(code22<=65535){return String.fromCharCode(code22)}code22-=65536;return String.fromCharCode((code22>>10)+55296,(code22&1023)+56320)}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;var Position=function Position2(line,col){this.line=line;this.column=col};Position.prototype.offset=function offset(n8){return new Position(this.line,this.column+n8)};var SourceLocation=function SourceLocation2(p,start,end){this.start=start;this.end=end;if(p.sourceFile!==null){this.source=p.sourceFile}};function getLineInfo(input,offset2){for(var line=1,cur=0;;){var nextBreak=nextLineBreak(input,cur,offset2);if(nextBreak<0){return new Position(line,offset2-cur)}++line;cur=nextBreak}}var defaultOptions2={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:false,checkPrivateFields:true,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};var warnedAboutEcmaVersion=false;function getOptions(opts){var options={};for(var opt in defaultOptions2){options[opt]=opts&&hasOwn(opts,opt)?opts[opt]:defaultOptions2[opt]}if(options.ecmaVersion==="latest"){options.ecmaVersion=1e8}else if(options.ecmaVersion==null){if(!warnedAboutEcmaVersion&&typeof console==="object"&&console.warn){warnedAboutEcmaVersion=true;console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")}options.ecmaVersion=11}else if(options.ecmaVersion>=2015){options.ecmaVersion-=2009}if(options.allowReserved==null){options.allowReserved=options.ecmaVersion<5}if(!opts||opts.allowHashBang==null){options.allowHashBang=options.ecmaVersion>=14}if(isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}if(isArray(options.onComment)){options.onComment=pushComment(options,options.onComment)}return options}function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};if(options.locations){comment.loc=new SourceLocation(this,startLoc,endLoc)}if(options.ranges){comment.range=[start,end]}array.push(comment)}}var SCOPE_TOP=1;var SCOPE_FUNCTION=2;var SCOPE_ASYNC=4;var SCOPE_GENERATOR=8;var SCOPE_ARROW=16;var SCOPE_SIMPLE_CATCH=32;var SCOPE_SUPER=64;var SCOPE_DIRECT_SUPER=128;var SCOPE_CLASS_STATIC_BLOCK=256;var SCOPE_CLASS_FIELD_INIT=512;var SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(async,generator){return SCOPE_FUNCTION|(async?SCOPE_ASYNC:0)|(generator?SCOPE_GENERATOR:0)}var BIND_NONE=0;var BIND_VAR=1;var BIND_LEXICAL=2;var BIND_FUNCTION=3;var BIND_SIMPLE_CATCH=4;var BIND_OUTSIDE=5;var Parser=function Parser2(options,input,startPos){this.options=options=getOptions(options);this.sourceFile=options.sourceFile;this.keywords=wordsRegexp(keywords$1[options.ecmaVersion>=6?6:options.sourceType==="module"?"5module":5]);var reserved="";if(options.allowReserved!==true){reserved=reservedWords[options.ecmaVersion>=6?6:options.ecmaVersion===5?5:3];if(options.sourceType==="module"){reserved+=" await"}}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict);this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind);this.input=String(input);this.containsEsc=false;if(startPos){this.pos=startPos;this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=types$1.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=options.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.potentialArrowInForAwait=false;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports=Object.create(null);if(this.pos===0&&options.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(SCOPE_TOP);this.regexpState=null;this.privateNameStack=[]};var prototypeAccessors={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},canAwait:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true},allowNewDotTarget:{configurable:true},inClassStaticBlock:{configurable:true}};Parser.prototype.parse=function parse2(){var node=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(node)};prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0};prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0};prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0};prototypeAccessors.canAwait.get=function(){for(var i22=this.scopeStack.length-1;i22>=0;i22--){var ref2=this.scopeStack[i22];var flags=ref2.flags;if(flags&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)){return false}if(flags&SCOPE_FUNCTION){return(flags&SCOPE_ASYNC)>0}}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};prototypeAccessors.allowSuper.get=function(){var ref2=this.currentThisScope();var flags=ref2.flags;return(flags&SCOPE_SUPER)>0||this.options.allowSuperOutsideMethod};prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0};prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};prototypeAccessors.allowNewDotTarget.get=function(){for(var i22=this.scopeStack.length-1;i22>=0;i22--){var ref2=this.scopeStack[i22];var flags=ref2.flags;if(flags&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)||flags&SCOPE_FUNCTION&&!(flags&SCOPE_ARROW)){return true}}return false};prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0};Parser.extend=function extend2(){var plugins=[],len2=arguments.length;while(len2--)plugins[len2]=arguments[len2];var cls=this;for(var i22=0;i22<plugins.length;i22++){cls=plugins[i22](cls)}return cls};Parser.parse=function parse22(input,options){return new this(options,input).parse()};Parser.parseExpressionAt=function parseExpressionAt(input,pos,options){var parser=new this(options,input,pos);parser.nextToken();return parser.parseExpression()};Parser.tokenizer=function tokenizer(input,options){return new this(options,input)};Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype;var literal=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(start){if(this.options.ecmaVersion<5){return false}for(;;){skipWhiteSpace.lastIndex=start;start+=skipWhiteSpace.exec(this.input)[0].length;var match2=literal.exec(this.input.slice(start));if(!match2){return false}if((match2[1]||match2[2])==="use strict"){skipWhiteSpace.lastIndex=start+match2[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length;var next2=this.input.charAt(end);return next2===";"||next2==="}"||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next2)||next2==="!"&&this.input.charAt(end+1)==="=")}start+=match2[0].length;skipWhiteSpace.lastIndex=start;start+=skipWhiteSpace.exec(this.input)[0].length;if(this.input[start]===";"){start++}}};pp$9.eat=function(type2){if(this.type===type2){this.next();return true}else{return false}};pp$9.isContextual=function(name){return this.type===types$1.name&&this.value===name&&!this.containsEsc};pp$9.eatContextual=function(name){if(!this.isContextual(name)){return false}this.next();return true};pp$9.expectContextual=function(name){if(!this.eatContextual(name)){this.unexpected()}};pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$9.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};pp$9.semicolon=function(){if(!this.eat(types$1.semi)&&!this.insertSemicolon()){this.unexpected()}};pp$9.afterTrailingComma=function(tokType,notNext){if(this.type===tokType){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!notNext){this.next()}return true}};pp$9.expect=function(type2){this.eat(type2)||this.unexpected()};pp$9.unexpected=function(pos){this.raise(pos!=null?pos:this.start,"Unexpected token")};var DestructuringErrors=function DestructuringErrors2(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(refDestructuringErrors,isAssign){if(!refDestructuringErrors){return}if(refDestructuringErrors.trailingComma>-1){this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element")}var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;if(parens>-1){this.raiseRecoverable(parens,isAssign?"Assigning to rvalue":"Parenthesized pattern")}};pp$9.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors){return false}var shorthandAssign=refDestructuringErrors.shorthandAssign;var doubleProto=refDestructuringErrors.doubleProto;if(!andThrow){return shorthandAssign>=0||doubleProto>=0}if(shorthandAssign>=0){this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns")}if(doubleProto>=0){this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")}};pp$9.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)){this.raise(this.yieldPos,"Yield expression cannot be a default value")}if(this.awaitPos){this.raise(this.awaitPos,"Await expression cannot be a default value")}};pp$9.isSimpleAssignTarget=function(expr){if(expr.type==="ParenthesizedExpression"){return this.isSimpleAssignTarget(expr.expression)}return expr.type==="Identifier"||expr.type==="MemberExpression"};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(node){var exports$1=Object.create(null);if(!node.body){node.body=[]}while(this.type!==types$1.eof){var stmt=this.parseStatement(null,true,exports$1);node.body.push(stmt)}if(this.inModule){for(var i22=0,list2=Object.keys(this.undefinedExports);i22<list2.length;i22+=1){var name=list2[i22];this.raiseRecoverable(this.undefinedExports[name].start,"Export '"+name+"' is not defined")}}this.adaptDirectivePrologue(node.body);this.next();node.sourceType=this.options.sourceType;return this.finishNode(node,"Program")};var loopLabel={kind:"loop"};var switchLabel={kind:"switch"};pp$8.isLet=function(context2){if(this.options.ecmaVersion<6||!this.isContextual("let")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next2);if(nextCh===91||nextCh===92){return true}if(context2){return false}if(nextCh===123||nextCh>55295&&nextCh<56320){return true}if(isIdentifierStart(nextCh,true)){var pos=next2+1;while(isIdentifierChar(nextCh=this.input.charCodeAt(pos),true)){++pos}if(nextCh===92||nextCh>55295&&nextCh<56320){return true}var ident=this.input.slice(next2,pos);if(!keywordRelationalOperator.test(ident)){return true}}return false};pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,after;return!lineBreak.test(this.input.slice(this.pos,next2))&&this.input.slice(next2,next2+8)==="function"&&(next2+8===this.input.length||!(isIdentifierChar(after=this.input.charCodeAt(next2+8))||after>55295&&after<56320))};pp$8.isUsingKeyword=function(isAwaitUsing,isFor){if(this.options.ecmaVersion<17||!this.isContextual(isAwaitUsing?"await":"using")){return false}skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length;if(lineBreak.test(this.input.slice(this.pos,next2))){return false}if(isAwaitUsing){var awaitEndPos=next2+5,after;if(this.input.slice(next2,awaitEndPos)!=="using"||awaitEndPos===this.input.length||isIdentifierChar(after=this.input.charCodeAt(awaitEndPos))||after>55295&&after<56320){return false}skipWhiteSpace.lastIndex=awaitEndPos;var skipAfterUsing=skipWhiteSpace.exec(this.input);if(skipAfterUsing&&lineBreak.test(this.input.slice(awaitEndPos,awaitEndPos+skipAfterUsing[0].length))){return false}}if(isFor){var ofEndPos=next2+2,after$1;if(this.input.slice(next2,ofEndPos)==="of"){if(ofEndPos===this.input.length||!isIdentifierChar(after$1=this.input.charCodeAt(ofEndPos))&&!(after$1>55295&&after$1<56320)){return false}}}var ch22=this.input.charCodeAt(next2);return isIdentifierStart(ch22,true)||ch22===92};pp$8.isAwaitUsing=function(isFor){return this.isUsingKeyword(true,isFor)};pp$8.isUsing=function(isFor){return this.isUsingKeyword(false,isFor)};pp$8.parseStatement=function(context2,topLevel,exports$1){var starttype=this.type,node=this.startNode(),kind;if(this.isLet(context2)){starttype=types$1._var;kind="let"}switch(starttype){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(node,starttype.keyword);case types$1._debugger:return this.parseDebuggerStatement(node);case types$1._do:return this.parseDoStatement(node);case types$1._for:return this.parseForStatement(node);case types$1._function:if(context2&&(this.strict||context2!=="if"&&context2!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(node,false,!context2);case types$1._class:if(context2){this.unexpected()}return this.parseClass(node,true);case types$1._if:return this.parseIfStatement(node);case types$1._return:return this.parseReturnStatement(node);case types$1._switch:return this.parseSwitchStatement(node);case types$1._throw:return this.parseThrowStatement(node);case types$1._try:return this.parseTryStatement(node);case types$1._const:case types$1._var:kind=kind||this.value;if(context2&&kind!=="var"){this.unexpected()}return this.parseVarStatement(node,kind);case types$1._while:return this.parseWhileStatement(node);case types$1._with:return this.parseWithStatement(node);case types$1.braceL:return this.parseBlock(true,node);case types$1.semi:return this.parseEmptyStatement(node);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&starttype===types$1._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input);var next2=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next2);if(nextCh===40||nextCh===46){return this.parseExpressionStatement(node,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!topLevel){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return starttype===types$1._import?this.parseImport(node):this.parseExport(node,exports$1);default:if(this.isAsyncFunction()){if(context2){this.unexpected()}this.next();return this.parseFunctionStatement(node,true,!context2)}var usingKind=this.isAwaitUsing(false)?"await using":this.isUsing(false)?"using":null;if(usingKind){if(topLevel&&this.options.sourceType==="script"){this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`")}if(usingKind==="await using"){if(!this.canAwait){this.raise(this.start,"Await using cannot appear outside of async function")}this.next()}this.next();this.parseVar(node,false,usingKind);this.semicolon();return this.finishNode(node,"VariableDeclaration")}var maybeName=this.value,expr=this.parseExpression();if(starttype===types$1.name&&expr.type==="Identifier"&&this.eat(types$1.colon)){return this.parseLabeledStatement(node,maybeName,expr,context2)}else{return this.parseExpressionStatement(node,expr)}}};pp$8.parseBreakContinueStatement=function(node,keyword){var isBreak=keyword==="break";this.next();if(this.eat(types$1.semi)||this.insertSemicolon()){node.label=null}else if(this.type!==types$1.name){this.unexpected()}else{node.label=this.parseIdent();this.semicolon()}var i22=0;for(;i22<this.labels.length;++i22){var lab=this.labels[i22];if(node.label==null||lab.name===node.label.name){if(lab.kind!=null&&(isBreak||lab.kind==="loop")){break}if(node.label&&isBreak){break}}}if(i22===this.labels.length){this.raise(node.start,"Unsyntactic "+keyword)}return this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")};pp$8.parseDebuggerStatement=function(node){this.next();this.semicolon();return this.finishNode(node,"DebuggerStatement")};pp$8.parseDoStatement=function(node){this.next();this.labels.push(loopLabel);node.body=this.parseStatement("do");this.labels.pop();this.expect(types$1._while);node.test=this.parseParenExpression();if(this.options.ecmaVersion>=6){this.eat(types$1.semi)}else{this.semicolon()}return this.finishNode(node,"DoWhileStatement")};pp$8.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(loopLabel);this.enterScope(0);this.expect(types$1.parenL);if(this.type===types$1.semi){if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,null)}var isLet=this.isLet();if(this.type===types$1._var||this.type===types$1._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;this.next();this.parseVar(init$1,true,kind);this.finishNode(init$1,"VariableDeclaration");return this.parseForAfterInit(node,init$1,awaitAt)}var startsWithLet=this.isContextual("let"),isForOf=false;var usingKind=this.isUsing(true)?"using":this.isAwaitUsing(true)?"await using":null;if(usingKind){var init$2=this.startNode();this.next();if(usingKind==="await using"){this.next()}this.parseVar(init$2,true,usingKind);this.finishNode(init$2,"VariableDeclaration");return this.parseForAfterInit(node,init$2,awaitAt)}var containsEsc=this.containsEsc;var refDestructuringErrors=new DestructuringErrors;var initPos=this.start;var init=awaitAt>-1?this.parseExprSubscripts(refDestructuringErrors,"await"):this.parseExpression(true,refDestructuringErrors);if(this.type===types$1._in||(isForOf=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(awaitAt>-1){if(this.type===types$1._in){this.unexpected(awaitAt)}node.await=true}else if(isForOf&&this.options.ecmaVersion>=8){if(init.start===initPos&&!containsEsc&&init.type==="Identifier"&&init.name==="async"){this.unexpected()}else if(this.options.ecmaVersion>=9){node.await=false}}if(startsWithLet&&isForOf){this.raise(init.start,"The left-hand side of a for-of loop may not start with 'let'.")}this.toAssignable(init,false,refDestructuringErrors);this.checkLValPattern(init);return this.parseForIn(node,init)}else{this.checkExpressionErrors(refDestructuringErrors,true)}if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,init)};pp$8.parseForAfterInit=function(node,init,awaitAt){if((this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&init.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===types$1._in){if(awaitAt>-1){this.unexpected(awaitAt)}}else{node.await=awaitAt>-1}}return this.parseForIn(node,init)}if(awaitAt>-1){this.unexpected(awaitAt)}return this.parseFor(node,init)};pp$8.parseFunctionStatement=function(node,isAsync,declarationPosition){this.next();return this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),false,isAsync)};pp$8.parseIfStatement=function(node){this.next();node.test=this.parseParenExpression();node.consequent=this.parseStatement("if");node.alternate=this.eat(types$1._else)?this.parseStatement("if"):null;return this.finishNode(node,"IfStatement")};pp$8.parseReturnStatement=function(node){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(types$1.semi)||this.insertSemicolon()){node.argument=null}else{node.argument=this.parseExpression();this.semicolon()}return this.finishNode(node,"ReturnStatement")};pp$8.parseSwitchStatement=function(node){this.next();node.discriminant=this.parseParenExpression();node.cases=[];this.expect(types$1.braceL);this.labels.push(switchLabel);this.enterScope(0);var cur;for(var sawDefault=false;this.type!==types$1.braceR;){if(this.type===types$1._case||this.type===types$1._default){var isCase=this.type===types$1._case;if(cur){this.finishNode(cur,"SwitchCase")}node.cases.push(cur=this.startNode());cur.consequent=[];this.next();if(isCase){cur.test=this.parseExpression()}else{if(sawDefault){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}sawDefault=true;cur.test=null}this.expect(types$1.colon)}else{if(!cur){this.unexpected()}cur.consequent.push(this.parseStatement(null))}}this.exitScope();if(cur){this.finishNode(cur,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(node,"SwitchStatement")};pp$8.parseThrowStatement=function(node){this.next();if(lineBreak.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}node.argument=this.parseExpression();this.semicolon();return this.finishNode(node,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var param=this.parseBindingAtom();var simple=param.type==="Identifier";this.enterScope(simple?SCOPE_SIMPLE_CATCH:0);this.checkLValPattern(param,simple?BIND_SIMPLE_CATCH:BIND_LEXICAL);this.expect(types$1.parenR);return param};pp$8.parseTryStatement=function(node){this.next();node.block=this.parseBlock();node.handler=null;if(this.type===types$1._catch){var clause=this.startNode();this.next();if(this.eat(types$1.parenL)){clause.param=this.parseCatchClauseParam()}else{if(this.options.ecmaVersion<10){this.unexpected()}clause.param=null;this.enterScope(0)}clause.body=this.parseBlock(false);this.exitScope();node.handler=this.finishNode(clause,"CatchClause")}node.finalizer=this.eat(types$1._finally)?this.parseBlock():null;if(!node.handler&&!node.finalizer){this.raise(node.start,"Missing catch or finally clause")}return this.finishNode(node,"TryStatement")};pp$8.parseVarStatement=function(node,kind,allowMissingInitializer){this.next();this.parseVar(node,false,kind,allowMissingInitializer);this.semicolon();return this.finishNode(node,"VariableDeclaration")};pp$8.parseWhileStatement=function(node){this.next();node.test=this.parseParenExpression();this.labels.push(loopLabel);node.body=this.parseStatement("while");this.labels.pop();return this.finishNode(node,"WhileStatement")};pp$8.parseWithStatement=function(node){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();node.object=this.parseParenExpression();node.body=this.parseStatement("with");return this.finishNode(node,"WithStatement")};pp$8.parseEmptyStatement=function(node){this.next();return this.finishNode(node,"EmptyStatement")};pp$8.parseLabeledStatement=function(node,maybeName,expr,context2){for(var i$12=0,list2=this.labels;i$12<list2.length;i$12+=1){var label=list2[i$12];if(label.name===maybeName){this.raise(expr.start,"Label '"+maybeName+"' is already declared")}}var kind=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null;for(var i22=this.labels.length-1;i22>=0;i22--){var label$1=this.labels[i22];if(label$1.statementStart===node.start){label$1.statementStart=this.start;label$1.kind=kind}else{break}}this.labels.push({name:maybeName,kind,statementStart:this.start});node.body=this.parseStatement(context2?context2.indexOf("label")===-1?context2+"label":context2:"label");this.labels.pop();node.label=expr;return this.finishNode(node,"LabeledStatement")};pp$8.parseExpressionStatement=function(node,expr){node.expression=expr;this.semicolon();return this.finishNode(node,"ExpressionStatement")};pp$8.parseBlock=function(createNewLexicalScope,node,exitStrict){if(createNewLexicalScope===void 0)createNewLexicalScope=true;if(node===void 0)node=this.startNode();node.body=[];this.expect(types$1.braceL);if(createNewLexicalScope){this.enterScope(0)}while(this.type!==types$1.braceR){var stmt=this.parseStatement(null);node.body.push(stmt)}if(exitStrict){this.strict=false}this.next();if(createNewLexicalScope){this.exitScope()}return this.finishNode(node,"BlockStatement")};pp$8.parseFor=function(node,init){node.init=init;this.expect(types$1.semi);node.test=this.type===types$1.semi?null:this.parseExpression();this.expect(types$1.semi);node.update=this.type===types$1.parenR?null:this.parseExpression();this.expect(types$1.parenR);node.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(node,"ForStatement")};pp$8.parseForIn=function(node,init){var isForIn=this.type===types$1._in;this.next();if(init.type==="VariableDeclaration"&&init.declarations[0].init!=null&&(!isForIn||this.options.ecmaVersion<8||this.strict||init.kind!=="var"||init.declarations[0].id.type!=="Identifier")){this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer")}node.left=init;node.right=isForIn?this.parseExpression():this.parseMaybeAssign();this.expect(types$1.parenR);node.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")};pp$8.parseVar=function(node,isFor,kind,allowMissingInitializer){node.declarations=[];node.kind=kind;for(;;){var decl=this.startNode();this.parseVarId(decl,kind);if(this.eat(types$1.eq)){decl.init=this.parseMaybeAssign(isFor)}else if(!allowMissingInitializer&&kind==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(!allowMissingInitializer&&(kind==="using"||kind==="await using")&&this.options.ecmaVersion>=17&&this.type!==types$1._in&&!this.isContextual("of")){this.raise(this.lastTokEnd,"Missing initializer in "+kind+" declaration")}else if(!allowMissingInitializer&&decl.id.type!=="Identifier"&&!(isFor&&(this.type===types$1._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{decl.init=null}node.declarations.push(this.finishNode(decl,"VariableDeclarator"));if(!this.eat(types$1.comma)){break}}return node};pp$8.parseVarId=function(decl,kind){decl.id=kind==="using"||kind==="await using"?this.parseIdent():this.parseBindingAtom();this.checkLValPattern(decl.id,kind==="var"?BIND_VAR:BIND_LEXICAL,false)};var FUNC_STATEMENT=1;var FUNC_HANGING_STATEMENT=2;var FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(node,statement,allowExpressionBody,isAsync,forInit){this.initFunction(node);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync){if(this.type===types$1.star&&statement&FUNC_HANGING_STATEMENT){this.unexpected()}node.generator=this.eat(types$1.star)}if(this.options.ecmaVersion>=8){node.async=!!isAsync}if(statement&FUNC_STATEMENT){node.id=statement&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent();if(node.id&&!(statement&FUNC_HANGING_STATEMENT)){this.checkLValSimple(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION)}}var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(node.async,node.generator));if(!(statement&FUNC_STATEMENT)){node.id=this.type===types$1.name?this.parseIdent():null}this.parseFunctionParams(node);this.parseFunctionBody(node,allowExpressionBody,false,forInit);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")};pp$8.parseFunctionParams=function(node){this.expect(types$1.parenL);node.params=this.parseBindingList(types$1.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};pp$8.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=true;this.parseClassId(node,isStatement);this.parseClassSuper(node);var privateNameMap=this.enterClassBody();var classBody=this.startNode();var hadConstructor=false;classBody.body=[];this.expect(types$1.braceL);while(this.type!==types$1.braceR){var element=this.parseClassElement(node.superClass!==null);if(element){classBody.body.push(element);if(element.type==="MethodDefinition"&&element.kind==="constructor"){if(hadConstructor){this.raiseRecoverable(element.start,"Duplicate constructor in the same class")}hadConstructor=true}else if(element.key&&element.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(privateNameMap,element)){this.raiseRecoverable(element.key.start,"Identifier '#"+element.key.name+"' has already been declared")}}}this.strict=oldStrict;this.next();node.body=this.finishNode(classBody,"ClassBody");this.exitClassBody();return this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")};pp$8.parseClassElement=function(constructorAllowsSuper){if(this.eat(types$1.semi)){return null}var ecmaVersion2=this.options.ecmaVersion;var node=this.startNode();var keyName="";var isGenerator=false;var isAsync=false;var kind="method";var isStatic=false;if(this.eatContextual("static")){if(ecmaVersion2>=13&&this.eat(types$1.braceL)){this.parseClassStaticBlock(node);return node}if(this.isClassElementNameStart()||this.type===types$1.star){isStatic=true}else{keyName="static"}}node.static=isStatic;if(!keyName&&ecmaVersion2>=8&&this.eatContextual("async")){if((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()){isAsync=true}else{keyName="async"}}if(!keyName&&(ecmaVersion2>=9||!isAsync)&&this.eat(types$1.star)){isGenerator=true}if(!keyName&&!isAsync&&!isGenerator){var lastValue=this.value;if(this.eatContextual("get")||this.eatContextual("set")){if(this.isClassElementNameStart()){kind=lastValue}else{keyName=lastValue}}}if(keyName){node.computed=false;node.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);node.key.name=keyName;this.finishNode(node.key,"Identifier")}else{this.parseClassElementName(node)}if(ecmaVersion2<13||this.type===types$1.parenL||kind!=="method"||isGenerator||isAsync){var isConstructor=!node.static&&checkKeyName(node,"constructor");var allowsDirectSuper=isConstructor&&constructorAllowsSuper;if(isConstructor&&kind!=="method"){this.raise(node.key.start,"Constructor can't have get/set modifier")}node.kind=isConstructor?"constructor":kind;this.parseClassMethod(node,isGenerator,isAsync,allowsDirectSuper)}else{this.parseClassField(node)}return node};pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword};pp$8.parseClassElementName=function(element){if(this.type===types$1.privateId){if(this.value==="constructor"){this.raise(this.start,"Classes can't have an element named '#constructor'")}element.computed=false;element.key=this.parsePrivateIdent()}else{this.parsePropertyName(element)}};pp$8.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){var key=method.key;if(method.kind==="constructor"){if(isGenerator){this.raise(key.start,"Constructor can't be a generator")}if(isAsync){this.raise(key.start,"Constructor can't be an async method")}}else if(method.static&&checkKeyName(method,"prototype")){this.raise(key.start,"Classes may not have a static property named prototype")}var value=method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper);if(method.kind==="get"&&value.params.length!==0){this.raiseRecoverable(value.start,"getter should have no params")}if(method.kind==="set"&&value.params.length!==1){this.raiseRecoverable(value.start,"setter should have exactly one param")}if(method.kind==="set"&&value.params[0].type==="RestElement"){this.raiseRecoverable(value.params[0].start,"Setter cannot use rest params")}return this.finishNode(method,"MethodDefinition")};pp$8.parseClassField=function(field){if(checkKeyName(field,"constructor")){this.raise(field.key.start,"Classes can't have a field named 'constructor'")}else if(field.static&&checkKeyName(field,"prototype")){this.raise(field.key.start,"Classes can't have a static field named 'prototype'")}if(this.eat(types$1.eq)){this.enterScope(SCOPE_CLASS_FIELD_INIT|SCOPE_SUPER);field.value=this.parseMaybeAssign();this.exitScope()}else{field.value=null}this.semicolon();return this.finishNode(field,"PropertyDefinition")};pp$8.parseClassStaticBlock=function(node){node.body=[];var oldLabels=this.labels;this.labels=[];this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);while(this.type!==types$1.braceR){var stmt=this.parseStatement(null);node.body.push(stmt)}this.next();this.exitScope();this.labels=oldLabels;return this.finishNode(node,"StaticBlock")};pp$8.parseClassId=function(node,isStatement){if(this.type===types$1.name){node.id=this.parseIdent();if(isStatement){this.checkLValSimple(node.id,BIND_LEXICAL,false)}}else{if(isStatement===true){this.unexpected()}node.id=null}};pp$8.parseClassSuper=function(node){node.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,false):null};pp$8.enterClassBody=function(){var element={declared:Object.create(null),used:[]};this.privateNameStack.push(element);return element.declared};pp$8.exitClassBody=function(){var ref2=this.privateNameStack.pop();var declared=ref2.declared;var used=ref2.used;if(!this.options.checkPrivateFields){return}var len2=this.privateNameStack.length;var parent=len2===0?null:this.privateNameStack[len2-1];for(var i22=0;i22<used.length;++i22){var id2=used[i22];if(!hasOwn(declared,id2.name)){if(parent){parent.used.push(id2)}else{this.raiseRecoverable(id2.start,"Private field '#"+id2.name+"' must be declared in an enclosing class")}}}};function isPrivateNameConflicted(privateNameMap,element){var name=element.key.name;var curr=privateNameMap[name];var next2="true";if(element.type==="MethodDefinition"&&(element.kind==="get"||element.kind==="set")){next2=(element.static?"s":"i")+element.kind}if(curr==="iget"&&next2==="iset"||curr==="iset"&&next2==="iget"||curr==="sget"&&next2==="sset"||curr==="sset"&&next2==="sget"){privateNameMap[name]="true";return false}else if(!curr){privateNameMap[name]=next2;return false}else{return true}}function checkKeyName(node,name){var computed=node.computed;var key=node.key;return!computed&&(key.type==="Identifier"&&key.name===name||key.type==="Literal"&&key.value===name)}pp$8.parseExportAllDeclaration=function(node,exports$1){if(this.options.ecmaVersion>=11){if(this.eatContextual("as")){node.exported=this.parseModuleExportName();this.checkExport(exports$1,node.exported,this.lastTokStart)}else{node.exported=null}}this.expectContextual("from");if(this.type!==types$1.string){this.unexpected()}node.source=this.parseExprAtom();if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}this.semicolon();return this.finishNode(node,"ExportAllDeclaration")};pp$8.parseExport=function(node,exports$1){this.next();if(this.eat(types$1.star)){return this.parseExportAllDeclaration(node,exports$1)}if(this.eat(types$1._default)){this.checkExport(exports$1,"default",this.lastTokStart);node.declaration=this.parseExportDefaultDeclaration();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){node.declaration=this.parseExportDeclaration(node);if(node.declaration.type==="VariableDeclaration"){this.checkVariableExport(exports$1,node.declaration.declarations)}else{this.checkExport(exports$1,node.declaration.id,node.declaration.id.start)}node.specifiers=[];node.source=null;if(this.options.ecmaVersion>=16){node.attributes=[]}}else{node.declaration=null;node.specifiers=this.parseExportSpecifiers(exports$1);if(this.eatContextual("from")){if(this.type!==types$1.string){this.unexpected()}node.source=this.parseExprAtom();if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}}else{for(var i22=0,list2=node.specifiers;i22<list2.length;i22+=1){var spec=list2[i22];this.checkUnreserved(spec.local);this.checkLocalExport(spec.local);if(spec.local.type==="Literal"){this.raise(spec.local.start,"A string literal cannot be used as an exported binding without `from`.")}}node.source=null;if(this.options.ecmaVersion>=16){node.attributes=[]}}this.semicolon()}return this.finishNode(node,"ExportNamedDeclaration")};pp$8.parseExportDeclaration=function(node){return this.parseStatement(null)};pp$8.parseExportDefaultDeclaration=function(){var isAsync;if(this.type===types$1._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next();if(isAsync){this.next()}return this.parseFunction(fNode,FUNC_STATEMENT|FUNC_NULLABLE_ID,false,isAsync)}else if(this.type===types$1._class){var cNode=this.startNode();return this.parseClass(cNode,"nullableID")}else{var declaration=this.parseMaybeAssign();this.semicolon();return declaration}};pp$8.checkExport=function(exports$1,name,pos){if(!exports$1){return}if(typeof name!=="string"){name=name.type==="Identifier"?name.name:name.value}if(hasOwn(exports$1,name)){this.raiseRecoverable(pos,"Duplicate export '"+name+"'")}exports$1[name]=true};pp$8.checkPatternExport=function(exports$1,pat){var type2=pat.type;if(type2==="Identifier"){this.checkExport(exports$1,pat,pat.start)}else if(type2==="ObjectPattern"){for(var i22=0,list2=pat.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.checkPatternExport(exports$1,prop)}}else if(type2==="ArrayPattern"){for(var i$12=0,list$1=pat.elements;i$12<list$1.length;i$12+=1){var elt=list$1[i$12];if(elt){this.checkPatternExport(exports$1,elt)}}}else if(type2==="Property"){this.checkPatternExport(exports$1,pat.value)}else if(type2==="AssignmentPattern"){this.checkPatternExport(exports$1,pat.left)}else if(type2==="RestElement"){this.checkPatternExport(exports$1,pat.argument)}};pp$8.checkVariableExport=function(exports$1,decls){if(!exports$1){return}for(var i22=0,list2=decls;i22<list2.length;i22+=1){var decl=list2[i22];this.checkPatternExport(exports$1,decl.id)}};pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};pp$8.parseExportSpecifier=function(exports$1){var node=this.startNode();node.local=this.parseModuleExportName();node.exported=this.eatContextual("as")?this.parseModuleExportName():node.local;this.checkExport(exports$1,node.exported,node.exported.start);return this.finishNode(node,"ExportSpecifier")};pp$8.parseExportSpecifiers=function(exports$1){var nodes=[],first=true;this.expect(types$1.braceL);while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}nodes.push(this.parseExportSpecifier(exports$1))}return nodes};pp$8.parseImport=function(node){this.next();if(this.type===types$1.string){node.specifiers=empty$1;node.source=this.parseExprAtom()}else{node.specifiers=this.parseImportSpecifiers();this.expectContextual("from");node.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()}if(this.options.ecmaVersion>=16){node.attributes=this.parseWithClause()}this.semicolon();return this.finishNode(node,"ImportDeclaration")};pp$8.parseImportSpecifier=function(){var node=this.startNode();node.imported=this.parseModuleExportName();if(this.eatContextual("as")){node.local=this.parseIdent()}else{this.checkUnreserved(node.imported);node.local=node.imported}this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportSpecifier")};pp$8.parseImportDefaultSpecifier=function(){var node=this.startNode();node.local=this.parseIdent();this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportDefaultSpecifier")};pp$8.parseImportNamespaceSpecifier=function(){var node=this.startNode();this.next();this.expectContextual("as");node.local=this.parseIdent();this.checkLValSimple(node.local,BIND_LEXICAL);return this.finishNode(node,"ImportNamespaceSpecifier")};pp$8.parseImportSpecifiers=function(){var nodes=[],first=true;if(this.type===types$1.name){nodes.push(this.parseImportDefaultSpecifier());if(!this.eat(types$1.comma)){return nodes}}if(this.type===types$1.star){nodes.push(this.parseImportNamespaceSpecifier());return nodes}this.expect(types$1.braceL);while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}nodes.push(this.parseImportSpecifier())}return nodes};pp$8.parseWithClause=function(){var nodes=[];if(!this.eat(types$1._with)){return nodes}this.expect(types$1.braceL);var attributeKeys={};var first=true;while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.afterTrailingComma(types$1.braceR)){break}}else{first=false}var attr=this.parseImportAttribute();var keyName=attr.key.type==="Identifier"?attr.key.name:attr.key.value;if(hasOwn(attributeKeys,keyName)){this.raiseRecoverable(attr.key.start,"Duplicate attribute key '"+keyName+"'")}attributeKeys[keyName]=true;nodes.push(attr)}return nodes};pp$8.parseImportAttribute=function(){var node=this.startNode();node.key=this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never");this.expect(types$1.colon);if(this.type!==types$1.string){this.unexpected()}node.value=this.parseExprAtom();return this.finishNode(node,"ImportAttribute")};pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var stringLiteral=this.parseLiteral(this.value);if(loneSurrogate.test(stringLiteral.value)){this.raise(stringLiteral.start,"An export name cannot include a lone surrogate.")}return stringLiteral}return this.parseIdent(true)};pp$8.adaptDirectivePrologue=function(statements){for(var i22=0;i22<statements.length&&this.isDirectiveCandidate(statements[i22]);++i22){statements[i22].directive=statements[i22].expression.raw.slice(1,-1)}};pp$8.isDirectiveCandidate=function(statement){return this.options.ecmaVersion>=5&&statement.type==="ExpressionStatement"&&statement.expression.type==="Literal"&&typeof statement.expression.value==="string"&&(this.input[statement.start]==='"'||this.input[statement.start]==="'")};var pp$7=Parser.prototype;pp$7.toAssignable=function(node,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node){switch(node.type){case"Identifier":if(this.inAsync&&node.name==="await"){this.raise(node.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern";if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}for(var i22=0,list2=node.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.toAssignable(prop,isBinding);if(prop.type==="RestElement"&&(prop.argument.type==="ArrayPattern"||prop.argument.type==="ObjectPattern")){this.raise(prop.argument.start,"Unexpected token")}}break;case"Property":if(node.kind!=="init"){this.raise(node.key.start,"Object pattern can't contain getter or setter")}this.toAssignable(node.value,isBinding);break;case"ArrayExpression":node.type="ArrayPattern";if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}this.toAssignableList(node.elements,isBinding);break;case"SpreadElement":node.type="RestElement";this.toAssignable(node.argument,isBinding);if(node.argument.type==="AssignmentPattern"){this.raise(node.argument.start,"Rest elements cannot have a default value")}break;case"AssignmentExpression":if(node.operator!=="="){this.raise(node.left.end,"Only '=' operator can be used for specifying default value.")}node.type="AssignmentPattern";delete node.operator;this.toAssignable(node.left,isBinding);break;case"ParenthesizedExpression":this.toAssignable(node.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding){break}default:this.raise(node.start,"Assigning to rvalue")}}else if(refDestructuringErrors){this.checkPatternErrors(refDestructuringErrors,true)}return node};pp$7.toAssignableList=function(exprList,isBinding){var end=exprList.length;for(var i22=0;i22<end;i22++){var elt=exprList[i22];if(elt){this.toAssignable(elt,isBinding)}}if(end){var last=exprList[end-1];if(this.options.ecmaVersion===6&&isBinding&&last&&last.type==="RestElement"&&last.argument.type!=="Identifier"){this.unexpected(last.argument.start)}}return exprList};pp$7.parseSpread=function(refDestructuringErrors){var node=this.startNode();this.next();node.argument=this.parseMaybeAssign(false,refDestructuringErrors);return this.finishNode(node,"SpreadElement")};pp$7.parseRestBinding=function(){var node=this.startNode();this.next();if(this.options.ecmaVersion===6&&this.type!==types$1.name){this.unexpected()}node.argument=this.parseBindingAtom();return this.finishNode(node,"RestElement")};pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6){switch(this.type){case types$1.bracketL:var node=this.startNode();this.next();node.elements=this.parseBindingList(types$1.bracketR,true,true);return this.finishNode(node,"ArrayPattern");case types$1.braceL:return this.parseObj(true)}}return this.parseIdent()};pp$7.parseBindingList=function(close2,allowEmpty,allowTrailingComma,allowModifiers){var elts=[],first=true;while(!this.eat(close2)){if(first){first=false}else{this.expect(types$1.comma)}if(allowEmpty&&this.type===types$1.comma){elts.push(null)}else if(allowTrailingComma&&this.afterTrailingComma(close2)){break}else if(this.type===types$1.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest);elts.push(rest);if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}this.expect(close2);break}else{elts.push(this.parseAssignableListItem(allowModifiers))}}return elts};pp$7.parseAssignableListItem=function(allowModifiers){var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem);return elem};pp$7.parseBindingListItem=function(param){return param};pp$7.parseMaybeDefault=function(startPos,startLoc,left){left=left||this.parseBindingAtom();if(this.options.ecmaVersion<6||!this.eat(types$1.eq)){return left}var node=this.startNodeAt(startPos,startLoc);node.left=left;node.right=this.parseMaybeAssign();return this.finishNode(node,"AssignmentPattern")};pp$7.checkLValSimple=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;var isBind=bindingType!==BIND_NONE;switch(expr.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(expr.name)){this.raiseRecoverable(expr.start,(isBind?"Binding ":"Assigning to ")+expr.name+" in strict mode")}if(isBind){if(bindingType===BIND_LEXICAL&&expr.name==="let"){this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name")}if(checkClashes){if(hasOwn(checkClashes,expr.name)){this.raiseRecoverable(expr.start,"Argument name clash")}checkClashes[expr.name]=true}if(bindingType!==BIND_OUTSIDE){this.declareName(expr.name,bindingType,expr.start)}}break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(isBind){this.raiseRecoverable(expr.start,"Binding member expression")}break;case"ParenthesizedExpression":if(isBind){this.raiseRecoverable(expr.start,"Binding parenthesized expression")}return this.checkLValSimple(expr.expression,bindingType,checkClashes);default:this.raise(expr.start,(isBind?"Binding":"Assigning to")+" rvalue")}};pp$7.checkLValPattern=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;switch(expr.type){case"ObjectPattern":for(var i22=0,list2=expr.properties;i22<list2.length;i22+=1){var prop=list2[i22];this.checkLValInnerPattern(prop,bindingType,checkClashes)}break;case"ArrayPattern":for(var i$12=0,list$1=expr.elements;i$12<list$1.length;i$12+=1){var elem=list$1[i$12];if(elem){this.checkLValInnerPattern(elem,bindingType,checkClashes)}}break;default:this.checkLValSimple(expr,bindingType,checkClashes)}};pp$7.checkLValInnerPattern=function(expr,bindingType,checkClashes){if(bindingType===void 0)bindingType=BIND_NONE;switch(expr.type){case"Property":this.checkLValInnerPattern(expr.value,bindingType,checkClashes);break;case"AssignmentPattern":this.checkLValPattern(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLValPattern(expr.argument,bindingType,checkClashes);break;default:this.checkLValPattern(expr,bindingType,checkClashes)}};var TokContext=function TokContext2(token,isExpr,preserveSpace,override,generator){this.token=token;this.isExpr=!!isExpr;this.preserveSpace=!!preserveSpace;this.override=override;this.generator=!!generator};var types2={b_stat:new TokContext("{",false),b_expr:new TokContext("{",true),b_tmpl:new TokContext("${",false),p_stat:new TokContext("(",false),p_expr:new TokContext("(",true),q_tmpl:new TokContext("`",true,true,function(p){return p.tryReadTemplateToken()}),f_stat:new TokContext("function",false),f_expr:new TokContext("function",true),f_expr_gen:new TokContext("function",true,false,null,true),f_gen:new TokContext("function",false,false,null,true)};var pp$6=Parser.prototype;pp$6.initialContext=function(){return[types2.b_stat]};pp$6.curContext=function(){return this.context[this.context.length-1]};pp$6.braceIsBlock=function(prevType){var parent=this.curContext();if(parent===types2.f_expr||parent===types2.f_stat){return true}if(prevType===types$1.colon&&(parent===types2.b_stat||parent===types2.b_expr)){return!parent.isExpr}if(prevType===types$1._return||prevType===types$1.name&&this.exprAllowed){return lineBreak.test(this.input.slice(this.lastTokEnd,this.start))}if(prevType===types$1._else||prevType===types$1.semi||prevType===types$1.eof||prevType===types$1.parenR||prevType===types$1.arrow){return true}if(prevType===types$1.braceL){return parent===types2.b_stat}if(prevType===types$1._var||prevType===types$1._const||prevType===types$1.name){return false}return!this.exprAllowed};pp$6.inGeneratorContext=function(){for(var i22=this.context.length-1;i22>=1;i22--){var context2=this.context[i22];if(context2.token==="function"){return context2.generator}}return false};pp$6.updateContext=function(prevType){var update,type2=this.type;if(type2.keyword&&prevType===types$1.dot){this.exprAllowed=false}else if(update=type2.updateContext){update.call(this,prevType)}else{this.exprAllowed=type2.beforeExpr}};pp$6.overrideContext=function(tokenCtx){if(this.curContext()!==tokenCtx){this.context[this.context.length-1]=tokenCtx}};types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var out=this.context.pop();if(out===types2.b_stat&&this.curContext().token==="function"){out=this.context.pop()}this.exprAllowed=!out.isExpr};types$1.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types2.b_stat:types2.b_expr);this.exprAllowed=true};types$1.dollarBraceL.updateContext=function(){this.context.push(types2.b_tmpl);this.exprAllowed=true};types$1.parenL.updateContext=function(prevType){var statementParens=prevType===types$1._if||prevType===types$1._for||prevType===types$1._with||prevType===types$1._while;this.context.push(statementParens?types2.p_stat:types2.p_expr);this.exprAllowed=true};types$1.incDec.updateContext=function(){};types$1._function.updateContext=types$1._class.updateContext=function(prevType){if(prevType.beforeExpr&&prevType!==types$1._else&&!(prevType===types$1.semi&&this.curContext()!==types2.p_stat)&&!(prevType===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((prevType===types$1.colon||prevType===types$1.braceL)&&this.curContext()===types2.b_stat)){this.context.push(types2.f_expr)}else{this.context.push(types2.f_stat)}this.exprAllowed=false};types$1.colon.updateContext=function(){if(this.curContext().token==="function"){this.context.pop()}this.exprAllowed=true};types$1.backQuote.updateContext=function(){if(this.curContext()===types2.q_tmpl){this.context.pop()}else{this.context.push(types2.q_tmpl)}this.exprAllowed=false};types$1.star.updateContext=function(prevType){if(prevType===types$1._function){var index2=this.context.length-1;if(this.context[index2]===types2.f_expr){this.context[index2]=types2.f_expr_gen}else{this.context[index2]=types2.f_gen}}this.exprAllowed=true};types$1.name.updateContext=function(prevType){var allowed=false;if(this.options.ecmaVersion>=6&&prevType!==types$1.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){allowed=true}}this.exprAllowed=allowed};var pp$5=Parser.prototype;pp$5.checkPropClash=function(prop,propHash,refDestructuringErrors){if(this.options.ecmaVersion>=9&&prop.type==="SpreadElement"){return}if(this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand)){return}var key=prop.key;var name;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6){if(name==="__proto__"&&kind==="init"){if(propHash.proto){if(refDestructuringErrors){if(refDestructuringErrors.doubleProto<0){refDestructuringErrors.doubleProto=key.start}}else{this.raiseRecoverable(key.start,"Redefinition of __proto__ property")}}propHash.proto=true}return}name="$"+name;var other=propHash[name];if(other){var redefinition;if(kind==="init"){redefinition=this.strict&&other.init||other.get||other.set}else{redefinition=other.init||other[kind]}if(redefinition){this.raiseRecoverable(key.start,"Redefinition of property")}}else{other=propHash[name]={init:false,get:false,set:false}}other[kind]=true};pp$5.parseExpression=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseMaybeAssign(forInit,refDestructuringErrors);if(this.type===types$1.comma){var node=this.startNodeAt(startPos,startLoc);node.expressions=[expr];while(this.eat(types$1.comma)){node.expressions.push(this.parseMaybeAssign(forInit,refDestructuringErrors))}return this.finishNode(node,"SequenceExpression")}return expr};pp$5.parseMaybeAssign=function(forInit,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator){return this.parseYield(forInit)}else{this.exprAllowed=false}}var ownDestructuringErrors=false,oldParenAssign=-1,oldTrailingComma=-1,oldDoubleProto=-1;if(refDestructuringErrors){oldParenAssign=refDestructuringErrors.parenthesizedAssign;oldTrailingComma=refDestructuringErrors.trailingComma;oldDoubleProto=refDestructuringErrors.doubleProto;refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1}else{refDestructuringErrors=new DestructuringErrors;ownDestructuringErrors=true}var startPos=this.start,startLoc=this.startLoc;if(this.type===types$1.parenL||this.type===types$1.name){this.potentialArrowAt=this.start;this.potentialArrowInForAwait=forInit==="await"}var left=this.parseMaybeConditional(forInit,refDestructuringErrors);if(afterLeftParse){left=afterLeftParse.call(this,left,startPos,startLoc)}if(this.type.isAssign){var node=this.startNodeAt(startPos,startLoc);node.operator=this.value;if(this.type===types$1.eq){left=this.toAssignable(left,false,refDestructuringErrors)}if(!ownDestructuringErrors){refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1}if(refDestructuringErrors.shorthandAssign>=left.start){refDestructuringErrors.shorthandAssign=-1}if(this.type===types$1.eq){this.checkLValPattern(left)}else{this.checkLValSimple(left)}node.left=left;this.next();node.right=this.parseMaybeAssign(forInit);if(oldDoubleProto>-1){refDestructuringErrors.doubleProto=oldDoubleProto}return this.finishNode(node,"AssignmentExpression")}else{if(ownDestructuringErrors){this.checkExpressionErrors(refDestructuringErrors,true)}}if(oldParenAssign>-1){refDestructuringErrors.parenthesizedAssign=oldParenAssign}if(oldTrailingComma>-1){refDestructuringErrors.trailingComma=oldTrailingComma}return left};pp$5.parseMaybeConditional=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseExprOps(forInit,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}if(this.eat(types$1.question)){var node=this.startNodeAt(startPos,startLoc);node.test=expr;node.consequent=this.parseMaybeAssign();this.expect(types$1.colon);node.alternate=this.parseMaybeAssign(forInit);return this.finishNode(node,"ConditionalExpression")}return expr};pp$5.parseExprOps=function(forInit,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseMaybeUnary(refDestructuringErrors,false,false,forInit);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}return expr.start===startPos&&expr.type==="ArrowFunctionExpression"?expr:this.parseExprOp(expr,startPos,startLoc,-1,forInit)};pp$5.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,forInit){var prec=this.type.binop;if(prec!=null&&(!forInit||this.type!==types$1._in)){if(prec>minPrec){var logical=this.type===types$1.logicalOR||this.type===types$1.logicalAND;var coalesce=this.type===types$1.coalesce;if(coalesce){prec=types$1.logicalAND.binop}var op2=this.value;this.next();var startPos=this.start,startLoc=this.startLoc;var right=this.parseExprOp(this.parseMaybeUnary(null,false,false,forInit),startPos,startLoc,prec,forInit);var node=this.buildBinary(leftStartPos,leftStartLoc,left,right,op2,logical||coalesce);if(logical&&this.type===types$1.coalesce||coalesce&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND)){this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses")}return this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec,forInit)}}return left};pp$5.buildBinary=function(startPos,startLoc,left,right,op2,logical){if(right.type==="PrivateIdentifier"){this.raise(right.start,"Private identifier can only be left side of binary expression")}var node=this.startNodeAt(startPos,startLoc);node.left=left;node.operator=op2;node.right=right;return this.finishNode(node,logical?"LogicalExpression":"BinaryExpression")};pp$5.parseMaybeUnary=function(refDestructuringErrors,sawUnary,incDec,forInit){var startPos=this.start,startLoc=this.startLoc,expr;if(this.isContextual("await")&&this.canAwait){expr=this.parseAwait(forInit);sawUnary=true}else if(this.type.prefix){var node=this.startNode(),update=this.type===types$1.incDec;node.operator=this.value;node.prefix=true;this.next();node.argument=this.parseMaybeUnary(null,true,update,forInit);this.checkExpressionErrors(refDestructuringErrors,true);if(update){this.checkLValSimple(node.argument)}else if(this.strict&&node.operator==="delete"&&isLocalVariableAccess(node.argument)){this.raiseRecoverable(node.start,"Deleting local variable in strict mode")}else if(node.operator==="delete"&&isPrivateFieldAccess(node.argument)){this.raiseRecoverable(node.start,"Private fields can not be deleted")}else{sawUnary=true}expr=this.finishNode(node,update?"UpdateExpression":"UnaryExpression")}else if(!sawUnary&&this.type===types$1.privateId){if((forInit||this.privateNameStack.length===0)&&this.options.checkPrivateFields){this.unexpected()}expr=this.parsePrivateIdent();if(this.type!==types$1._in){this.unexpected()}}else{expr=this.parseExprSubscripts(refDestructuringErrors,forInit);if(this.checkExpressionErrors(refDestructuringErrors)){return expr}while(this.type.postfix&&!this.canInsertSemicolon()){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value;node$1.prefix=false;node$1.argument=expr;this.checkLValSimple(expr);this.next();expr=this.finishNode(node$1,"UpdateExpression")}}if(!incDec&&this.eat(types$1.starstar)){if(sawUnary){this.unexpected(this.lastTokStart)}else{return this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,false,false,forInit),"**",false)}}else{return expr}};function isLocalVariableAccess(node){return node.type==="Identifier"||node.type==="ParenthesizedExpression"&&isLocalVariableAccess(node.expression)}function isPrivateFieldAccess(node){return node.type==="MemberExpression"&&node.property.type==="PrivateIdentifier"||node.type==="ChainExpression"&&isPrivateFieldAccess(node.expression)||node.type==="ParenthesizedExpression"&&isPrivateFieldAccess(node.expression)}pp$5.parseExprSubscripts=function(refDestructuringErrors,forInit){var startPos=this.start,startLoc=this.startLoc;var expr=this.parseExprAtom(refDestructuringErrors,forInit);if(expr.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")"){return expr}var result=this.parseSubscripts(expr,startPos,startLoc,false,forInit);if(refDestructuringErrors&&result.type==="MemberExpression"){if(refDestructuringErrors.parenthesizedAssign>=result.start){refDestructuringErrors.parenthesizedAssign=-1}if(refDestructuringErrors.parenthesizedBind>=result.start){refDestructuringErrors.parenthesizedBind=-1}if(refDestructuringErrors.trailingComma>=result.start){refDestructuringErrors.trailingComma=-1}}return result};pp$5.parseSubscripts=function(base,startPos,startLoc,noCalls,forInit){var maybeAsyncArrow=this.options.ecmaVersion>=8&&base.type==="Identifier"&&base.name==="async"&&this.lastTokEnd===base.end&&!this.canInsertSemicolon()&&base.end-base.start===5&&this.potentialArrowAt===base.start;var optionalChained=false;while(true){var element=this.parseSubscript(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit);if(element.optional){optionalChained=true}if(element===base||element.type==="ArrowFunctionExpression"){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element;element=this.finishNode(chainNode,"ChainExpression")}return element}base=element}};pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)};pp$5.parseSubscriptAsyncArrow=function(startPos,startLoc,exprList,forInit){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,true,forInit)};pp$5.parseSubscript=function(base,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained,forInit){var optionalSupported=this.options.ecmaVersion>=11;var optional=optionalSupported&&this.eat(types$1.questionDot);if(noCalls&&optional){this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions")}var computed=this.eat(types$1.bracketL);if(computed||optional&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var node=this.startNodeAt(startPos,startLoc);node.object=base;if(computed){node.property=this.parseExpression();this.expect(types$1.bracketR)}else if(this.type===types$1.privateId&&base.type!=="Super"){node.property=this.parsePrivateIdent()}else{node.property=this.parseIdent(this.options.allowReserved!=="never")}node.computed=!!computed;if(optionalSupported){node.optional=optional}base=this.finishNode(node,"MemberExpression")}else if(!noCalls&&this.eat(types$1.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;var exprList=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,false,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&this.shouldParseAsyncArrow()){this.checkPatternErrors(refDestructuringErrors,false);this.checkYieldAwaitInDefaultParams();if(this.awaitIdentPos>0){this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function")}this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.parseSubscriptAsyncArrow(startPos,startLoc,exprList,forInit)}this.checkExpressionErrors(refDestructuringErrors,true);this.yieldPos=oldYieldPos||this.yieldPos;this.awaitPos=oldAwaitPos||this.awaitPos;this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base;node$1.arguments=exprList;if(optionalSupported){node$1.optional=optional}base=this.finishNode(node$1,"CallExpression")}else if(this.type===types$1.backQuote){if(optional||optionalChained){this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions")}var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base;node$2.quasi=this.parseTemplate({isTagged:true});base=this.finishNode(node$2,"TaggedTemplateExpression")}return base};pp$5.parseExprAtom=function(refDestructuringErrors,forInit,forNew){if(this.type===types$1.slash){this.readRegexp()}var node,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:if(!this.allowSuper){this.raise(this.start,"'super' keyword outside a method")}node=this.startNode();this.next();if(this.type===types$1.parenL&&!this.allowDirectSuper){this.raise(node.start,"super() call outside constructor of a subclass")}if(this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL){this.unexpected()}return this.finishNode(node,"Super");case types$1._this:node=this.startNode();this.next();return this.finishNode(node,"ThisExpression");case types$1.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc;var id2=this.parseIdent(false);if(this.options.ecmaVersion>=8&&!containsEsc&&id2.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function)){this.overrideContext(types2.f_expr);return this.parseFunction(this.startNodeAt(startPos,startLoc),0,false,true,forInit)}if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow)){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id2],false,forInit)}if(this.options.ecmaVersion>=8&&id2.name==="async"&&this.type===types$1.name&&!containsEsc&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){id2=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(types$1.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id2],true,forInit)}}return id2;case types$1.regexp:var value=this.value;node=this.parseLiteral(value.value);node.regex={pattern:value.pattern,flags:value.flags};return node;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:node=this.startNode();node.value=this.type===types$1._null?null:this.type===types$1._true;node.raw=this.type.keyword;this.next();return this.finishNode(node,"Literal");case types$1.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow,forInit);if(refDestructuringErrors){if(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)){refDestructuringErrors.parenthesizedAssign=start}if(refDestructuringErrors.parenthesizedBind<0){refDestructuringErrors.parenthesizedBind=start}}return expr;case types$1.bracketL:node=this.startNode();this.next();node.elements=this.parseExprList(types$1.bracketR,true,true,refDestructuringErrors);return this.finishNode(node,"ArrayExpression");case types$1.braceL:this.overrideContext(types2.b_expr);return this.parseObj(false,refDestructuringErrors);case types$1._function:node=this.startNode();this.next();return this.parseFunction(node,0);case types$1._class:return this.parseClass(this.startNode(),false);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:if(this.options.ecmaVersion>=11){return this.parseExprImport(forNew)}else{return this.unexpected()}default:return this.parseExprAtomDefault()}};pp$5.parseExprAtomDefault=function(){this.unexpected()};pp$5.parseExprImport=function(forNew){var node=this.startNode();if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword import")}this.next();if(this.type===types$1.parenL&&!forNew){return this.parseDynamicImport(node)}else if(this.type===types$1.dot){var meta=this.startNodeAt(node.start,node.loc&&node.loc.start);meta.name="import";node.meta=this.finishNode(meta,"Identifier");return this.parseImportMeta(node)}else{this.unexpected()}};pp$5.parseDynamicImport=function(node){this.next();node.source=this.parseMaybeAssign();if(this.options.ecmaVersion>=16){if(!this.eat(types$1.parenR)){this.expect(types$1.comma);if(!this.afterTrailingComma(types$1.parenR)){node.options=this.parseMaybeAssign();if(!this.eat(types$1.parenR)){this.expect(types$1.comma);if(!this.afterTrailingComma(types$1.parenR)){this.unexpected()}}}else{node.options=null}}else{node.options=null}}else{if(!this.eat(types$1.parenR)){var errorPos=this.start;if(this.eat(types$1.comma)&&this.eat(types$1.parenR)){this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()")}else{this.unexpected(errorPos)}}}return this.finishNode(node,"ImportExpression")};pp$5.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;node.property=this.parseIdent(true);if(node.property.name!=="meta"){this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'")}if(containsEsc){this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters")}if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere){this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module")}return this.finishNode(node,"MetaProperty")};pp$5.parseLiteral=function(value){var node=this.startNode();node.value=value;node.raw=this.input.slice(this.start,this.end);if(node.raw.charCodeAt(node.raw.length-1)===110){node.bigint=node.value!=null?node.value.toString():node.raw.slice(0,-1).replace(/_/g,"")}this.next();return this.finishNode(node,"Literal")};pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var val=this.parseExpression();this.expect(types$1.parenR);return val};pp$5.shouldParseArrow=function(exprList){return!this.canInsertSemicolon()};pp$5.parseParenAndDistinguishExpression=function(canBeArrow,forInit){var startPos=this.start,startLoc=this.startLoc,val,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var innerStartPos=this.start,innerStartLoc=this.startLoc;var exprList=[],first=true,lastIsComma=false;var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,spreadStart;this.yieldPos=0;this.awaitPos=0;while(this.type!==types$1.parenR){first?first=false:this.expect(types$1.comma);if(allowTrailingComma&&this.afterTrailingComma(types$1.parenR,true)){lastIsComma=true;break}else if(this.type===types$1.ellipsis){spreadStart=this.start;exprList.push(this.parseParenItem(this.parseRestBinding()));if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}break}else{exprList.push(this.parseMaybeAssign(false,refDestructuringErrors,this.parseParenItem))}}var innerEndPos=this.lastTokEnd,innerEndLoc=this.lastTokEndLoc;this.expect(types$1.parenR);if(canBeArrow&&this.shouldParseArrow(exprList)&&this.eat(types$1.arrow)){this.checkPatternErrors(refDestructuringErrors,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;return this.parseParenArrowList(startPos,startLoc,exprList,forInit)}if(!exprList.length||lastIsComma){this.unexpected(this.lastTokStart)}if(spreadStart){this.unexpected(spreadStart)}this.checkExpressionErrors(refDestructuringErrors,true);this.yieldPos=oldYieldPos||this.yieldPos;this.awaitPos=oldAwaitPos||this.awaitPos;if(exprList.length>1){val=this.startNodeAt(innerStartPos,innerStartLoc);val.expressions=exprList;this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)}else{val=exprList[0]}}else{val=this.parseParenExpression()}if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);par.expression=val;return this.finishNode(par,"ParenthesizedExpression")}else{return val}};pp$5.parseParenItem=function(item){return item};pp$5.parseParenArrowList=function(startPos,startLoc,exprList,forInit){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,false,forInit)};var empty=[];pp$5.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var node=this.startNode();this.next();if(this.options.ecmaVersion>=6&&this.type===types$1.dot){var meta=this.startNodeAt(node.start,node.loc&&node.loc.start);meta.name="new";node.meta=this.finishNode(meta,"Identifier");this.next();var containsEsc=this.containsEsc;node.property=this.parseIdent(true);if(node.property.name!=="target"){this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'")}if(containsEsc){this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters")}if(!this.allowNewDotTarget){this.raiseRecoverable(node.start,"'new.target' can only be used in functions and class static block")}return this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc;node.callee=this.parseSubscripts(this.parseExprAtom(null,false,true),startPos,startLoc,true,false);if(this.eat(types$1.parenL)){node.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,false)}else{node.arguments=empty}return this.finishNode(node,"NewExpression")};pp$5.parseTemplateElement=function(ref2){var isTagged=ref2.isTagged;var elem=this.startNode();if(this.type===types$1.invalidTemplate){if(!isTagged){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}elem.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}}else{elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();elem.tail=this.type===types$1.backQuote;return this.finishNode(elem,"TemplateElement")};pp$5.parseTemplate=function(ref2){if(ref2===void 0)ref2={};var isTagged=ref2.isTagged;if(isTagged===void 0)isTagged=false;var node=this.startNode();this.next();node.expressions=[];var curElt=this.parseTemplateElement({isTagged});node.quasis=[curElt];while(!curElt.tail){if(this.type===types$1.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(types$1.dollarBraceL);node.expressions.push(this.parseExpression());this.expect(types$1.braceR);node.quasis.push(curElt=this.parseTemplateElement({isTagged}))}this.next();return this.finishNode(node,"TemplateLiteral")};pp$5.isAsyncProp=function(prop){return!prop.computed&&prop.key.type==="Identifier"&&prop.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$5.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=true,propHash={};node.properties=[];this.next();while(!this.eat(types$1.braceR)){if(!first){this.expect(types$1.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR)){break}}else{first=false}var prop=this.parseProperty(isPattern,refDestructuringErrors);if(!isPattern){this.checkPropClash(prop,propHash,refDestructuringErrors)}node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")};pp$5.parseProperty=function(isPattern,refDestructuringErrors){var prop=this.startNode(),isGenerator,isAsync,startPos,startLoc;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis)){if(isPattern){prop.argument=this.parseIdent(false);if(this.type===types$1.comma){this.raiseRecoverable(this.start,"Comma is not permitted after the rest element")}return this.finishNode(prop,"RestElement")}prop.argument=this.parseMaybeAssign(false,refDestructuringErrors);if(this.type===types$1.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0){refDestructuringErrors.trailingComma=this.start}return this.finishNode(prop,"SpreadElement")}if(this.options.ecmaVersion>=6){prop.method=false;prop.shorthand=false;if(isPattern||refDestructuringErrors){startPos=this.start;startLoc=this.startLoc}if(!isPattern){isGenerator=this.eat(types$1.star)}}var containsEsc=this.containsEsc;this.parsePropertyName(prop);if(!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)){isAsync=true;isGenerator=this.options.ecmaVersion>=9&&this.eat(types$1.star);this.parsePropertyName(prop)}else{isAsync=false}this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc);return this.finishNode(prop,"Property")};pp$5.parseGetterSetter=function(prop){var kind=prop.key.name;this.parsePropertyName(prop);prop.value=this.parseMethod(false);prop.kind=kind;var paramCount=prop.kind==="get"?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;if(prop.kind==="get"){this.raiseRecoverable(start,"getter should have no params")}else{this.raiseRecoverable(start,"setter should have exactly one param")}}else{if(prop.kind==="set"&&prop.value.params[0].type==="RestElement"){this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}}};pp$5.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types$1.colon){this.unexpected()}if(this.eat(types$1.colon)){prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,refDestructuringErrors);prop.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===types$1.parenL){if(isPattern){this.unexpected()}prop.method=true;prop.value=this.parseMethod(isGenerator,isAsync);prop.kind="init"}else if(!isPattern&&!containsEsc&&this.options.ecmaVersion>=5&&!prop.computed&&prop.key.type==="Identifier"&&(prop.key.name==="get"||prop.key.name==="set")&&(this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq)){if(isGenerator||isAsync){this.unexpected()}this.parseGetterSetter(prop)}else if(this.options.ecmaVersion>=6&&!prop.computed&&prop.key.type==="Identifier"){if(isGenerator||isAsync){this.unexpected()}this.checkUnreserved(prop.key);if(prop.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=startPos}if(isPattern){prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key))}else if(this.type===types$1.eq&&refDestructuringErrors){if(refDestructuringErrors.shorthandAssign<0){refDestructuringErrors.shorthandAssign=this.start}prop.value=this.parseMaybeDefault(startPos,startLoc,this.copyNode(prop.key))}else{prop.value=this.copyNode(prop.key)}prop.kind="init";prop.shorthand=true}else{this.unexpected()}};pp$5.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL)){prop.computed=true;prop.key=this.parseMaybeAssign();this.expect(types$1.bracketR);return prop.key}else{prop.computed=false}}return prop.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pp$5.initFunction=function(node){node.id=null;if(this.options.ecmaVersion>=6){node.generator=node.expression=false}if(this.options.ecmaVersion>=8){node.async=false}};pp$5.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.initFunction(node);if(this.options.ecmaVersion>=6){node.generator=isGenerator}if(this.options.ecmaVersion>=8){node.async=!!isAsync}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(isAsync,node.generator)|SCOPE_SUPER|(allowDirectSuper?SCOPE_DIRECT_SUPER:0));this.expect(types$1.parenL);node.params=this.parseBindingList(types$1.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(node,false,true,false);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,"FunctionExpression")};pp$5.parseArrowExpression=function(node,params,isAsync,forInit){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.enterScope(functionFlags(isAsync,false)|SCOPE_ARROW);this.initFunction(node);if(this.options.ecmaVersion>=8){node.async=!!isAsync}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;node.params=this.toAssignableList(params,true);this.parseFunctionBody(node,true,false,forInit);this.yieldPos=oldYieldPos;this.awaitPos=oldAwaitPos;this.awaitIdentPos=oldAwaitIdentPos;return this.finishNode(node,"ArrowFunctionExpression")};pp$5.parseFunctionBody=function(node,isArrowFunction,isMethod,forInit){var isExpression=isArrowFunction&&this.type!==types$1.braceL;var oldStrict=this.strict,useStrict=false;if(isExpression){node.body=this.parseMaybeAssign(forInit);node.expression=true;this.checkParams(node,false)}else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);if(!oldStrict||nonSimple){useStrict=this.strictDirective(this.end);if(useStrict&&nonSimple){this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var oldLabels=this.labels;this.labels=[];if(useStrict){this.strict=true}this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params));if(this.strict&&node.id){this.checkLValSimple(node.id,BIND_OUTSIDE)}node.body=this.parseBlock(false,void 0,useStrict&&!oldStrict);node.expression=false;this.adaptDirectivePrologue(node.body.body);this.labels=oldLabels}this.exitScope()};pp$5.isSimpleParamList=function(params){for(var i22=0,list2=params;i22<list2.length;i22+=1){var param=list2[i22];if(param.type!=="Identifier"){return false}}return true};pp$5.checkParams=function(node,allowDuplicates){var nameHash=Object.create(null);for(var i22=0,list2=node.params;i22<list2.length;i22+=1){var param=list2[i22];this.checkLValInnerPattern(param,BIND_VAR,allowDuplicates?null:nameHash)}};pp$5.parseExprList=function(close2,allowTrailingComma,allowEmpty,refDestructuringErrors){var elts=[],first=true;while(!this.eat(close2)){if(!first){this.expect(types$1.comma);if(allowTrailingComma&&this.afterTrailingComma(close2)){break}}else{first=false}var elt=void 0;if(allowEmpty&&this.type===types$1.comma){elt=null}else if(this.type===types$1.ellipsis){elt=this.parseSpread(refDestructuringErrors);if(refDestructuringErrors&&this.type===types$1.comma&&refDestructuringErrors.trailingComma<0){refDestructuringErrors.trailingComma=this.start}}else{elt=this.parseMaybeAssign(false,refDestructuringErrors)}elts.push(elt)}return elts};pp$5.checkUnreserved=function(ref2){var start=ref2.start;var end=ref2.end;var name=ref2.name;if(this.inGenerator&&name==="yield"){this.raiseRecoverable(start,"Cannot use 'yield' as identifier inside a generator")}if(this.inAsync&&name==="await"){this.raiseRecoverable(start,"Cannot use 'await' as identifier inside an async function")}if(!(this.currentThisScope().flags&SCOPE_VAR)&&name==="arguments"){this.raiseRecoverable(start,"Cannot use 'arguments' in class field initializer")}if(this.inClassStaticBlock&&(name==="arguments"||name==="await")){this.raise(start,"Cannot use "+name+" in class static initialization block")}if(this.keywords.test(name)){this.raise(start,"Unexpected keyword '"+name+"'")}if(this.options.ecmaVersion<6&&this.input.slice(start,end).indexOf("\\")!==-1){return}var re2=this.strict?this.reservedWordsStrict:this.reservedWords;if(re2.test(name)){if(!this.inAsync&&name==="await"){this.raiseRecoverable(start,"Cannot use keyword 'await' outside an async function")}this.raiseRecoverable(start,"The keyword '"+name+"' is reserved")}};pp$5.parseIdent=function(liberal){var node=this.parseIdentNode();this.next(!!liberal);this.finishNode(node,"Identifier");if(!liberal){this.checkUnreserved(node);if(node.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=node.start}}return node};pp$5.parseIdentNode=function(){var node=this.startNode();if(this.type===types$1.name){node.name=this.value}else if(this.type.keyword){node.name=this.type.keyword;if((node.name==="class"||node.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)){this.context.pop()}this.type=types$1.name}else{this.unexpected()}return node};pp$5.parsePrivateIdent=function(){var node=this.startNode();if(this.type===types$1.privateId){node.name=this.value}else{this.unexpected()}this.next();this.finishNode(node,"PrivateIdentifier");if(this.options.checkPrivateFields){if(this.privateNameStack.length===0){this.raise(node.start,"Private field '#"+node.name+"' must be declared in an enclosing class")}else{this.privateNameStack[this.privateNameStack.length-1].used.push(node)}}return node};pp$5.parseYield=function(forInit){if(!this.yieldPos){this.yieldPos=this.start}var node=this.startNode();this.next();if(this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr){node.delegate=false;node.argument=null}else{node.delegate=this.eat(types$1.star);node.argument=this.parseMaybeAssign(forInit)}return this.finishNode(node,"YieldExpression")};pp$5.parseAwait=function(forInit){if(!this.awaitPos){this.awaitPos=this.start}var node=this.startNode();this.next();node.argument=this.parseMaybeUnary(null,true,false,forInit);return this.finishNode(node,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(pos,message){var loc=getLineInfo(this.input,pos);message+=" ("+loc.line+":"+loc.column+")";if(this.sourceFile){message+=" in "+this.sourceFile}var err22=new SyntaxError(message);err22.pos=pos;err22.loc=loc;err22.raisedAt=this.pos;throw err22};pp$4.raiseRecoverable=pp$4.raise;pp$4.curPosition=function(){if(this.options.locations){return new Position(this.curLine,this.pos-this.lineStart)}};var pp$3=Parser.prototype;var Scope=function Scope2(flags){this.flags=flags;this.var=[];this.lexical=[];this.functions=[]};pp$3.enterScope=function(flags){this.scopeStack.push(new Scope(flags))};pp$3.exitScope=function(){this.scopeStack.pop()};pp$3.treatFunctionsAsVarInScope=function(scope4){return scope4.flags&SCOPE_FUNCTION||!this.inModule&&scope4.flags&SCOPE_TOP};pp$3.declareName=function(name,bindingType,pos){var redeclared=false;if(bindingType===BIND_LEXICAL){var scope4=this.currentScope();redeclared=scope4.lexical.indexOf(name)>-1||scope4.functions.indexOf(name)>-1||scope4.var.indexOf(name)>-1;scope4.lexical.push(name);if(this.inModule&&scope4.flags&SCOPE_TOP){delete this.undefinedExports[name]}}else if(bindingType===BIND_SIMPLE_CATCH){var scope$1=this.currentScope();scope$1.lexical.push(name)}else if(bindingType===BIND_FUNCTION){var scope$2=this.currentScope();if(this.treatFunctionsAsVar){redeclared=scope$2.lexical.indexOf(name)>-1}else{redeclared=scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1}scope$2.functions.push(name)}else{for(var i22=this.scopeStack.length-1;i22>=0;--i22){var scope$3=this.scopeStack[i22];if(scope$3.lexical.indexOf(name)>-1&&!(scope$3.flags&SCOPE_SIMPLE_CATCH&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=true;break}scope$3.var.push(name);if(this.inModule&&scope$3.flags&SCOPE_TOP){delete this.undefinedExports[name]}if(scope$3.flags&SCOPE_VAR){break}}}if(redeclared){this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")}};pp$3.checkLocalExport=function(id2){if(this.scopeStack[0].lexical.indexOf(id2.name)===-1&&this.scopeStack[0].var.indexOf(id2.name)===-1){this.undefinedExports[id2.name]=id2}};pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};pp$3.currentVarScope=function(){for(var i22=this.scopeStack.length-1;;i22--){var scope4=this.scopeStack[i22];if(scope4.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)){return scope4}}};pp$3.currentThisScope=function(){for(var i22=this.scopeStack.length-1;;i22--){var scope4=this.scopeStack[i22];if(scope4.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)&&!(scope4.flags&SCOPE_ARROW)){return scope4}}};var Node2=function Node22(parser,pos,loc){this.type="";this.start=pos;this.end=0;if(parser.options.locations){this.loc=new SourceLocation(parser,loc)}if(parser.options.directSourceFile){this.sourceFile=parser.options.directSourceFile}if(parser.options.ranges){this.range=[pos,0]}};var pp$2=Parser.prototype;pp$2.startNode=function(){return new Node2(this,this.start,this.startLoc)};pp$2.startNodeAt=function(pos,loc){return new Node2(this,pos,loc)};function finishNodeAt(node,type2,pos,loc){node.type=type2;node.end=pos;if(this.options.locations){node.loc.end=loc}if(this.options.ranges){node.range[1]=pos}return node}pp$2.finishNode=function(node,type2){return finishNodeAt.call(this,node,type2,this.lastTokEnd,this.lastTokEndLoc)};pp$2.finishNodeAt=function(node,type2,pos,loc){return finishNodeAt.call(this,node,type2,pos,loc)};pp$2.copyNode=function(node){var newNode=new Node2(this,node.start,this.startLoc);for(var prop in node){newNode[prop]=node[prop]}return newNode};var scriptValuesAddedInUnicode="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic";var ecma11BinaryProperties=ecma10BinaryProperties;var ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict";var ecma13BinaryProperties=ecma12BinaryProperties;var ecma14BinaryProperties=ecma13BinaryProperties;var unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties};var ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";var unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings};var unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";var ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";var ecma14ScriptValues=ecma13ScriptValues+" "+scriptValuesAddedInUnicode;var unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues};var data={};function buildUnicodeData(ecmaVersion2){var d=data[ecmaVersion2]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion2]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion2]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion2])}};d.nonBinary.Script_Extensions=d.nonBinary.Script;d.nonBinary.gc=d.nonBinary.General_Category;d.nonBinary.sc=d.nonBinary.Script;d.nonBinary.scx=d.nonBinary.Script_Extensions}for(i=0,list=[9,10,11,12,13,14];i<list.length;i+=1){ecmaVersion=list[i];buildUnicodeData(ecmaVersion)}var ecmaVersion;var i;var list;var pp$1=Parser.prototype;var BranchID=function BranchID2(parent,base){this.parent=parent;this.base=base||this};BranchID.prototype.separatedFrom=function separatedFrom(alt){for(var self2=this;self2;self2=self2.parent){for(var other=alt;other;other=other.parent){if(self2.base===other.base&&self2!==other){return true}}}return false};BranchID.prototype.sibling=function sibling(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function RegExpValidationState2(parser){this.parser=parser;this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":"")+(parser.options.ecmaVersion>=13?"d":"")+(parser.options.ecmaVersion>=15?"v":"");this.unicodeProperties=data[parser.options.ecmaVersion>=14?14:parser.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchV=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=Object.create(null);this.backReferenceNames=[];this.branchID=null};RegExpValidationState.prototype.reset=function reset(start,pattern,flags){var unicodeSets=flags.indexOf("v")!==-1;var unicode=flags.indexOf("u")!==-1;this.start=start|0;this.source=pattern+"";this.flags=flags;if(unicodeSets&&this.parser.options.ecmaVersion>=15){this.switchU=true;this.switchV=true;this.switchN=true}else{this.switchU=unicode&&this.parser.options.ecmaVersion>=6;this.switchV=false;this.switchN=unicode&&this.parser.options.ecmaVersion>=9}};RegExpValidationState.prototype.raise=function raise(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)};RegExpValidationState.prototype.at=function at2(i22,forceU){if(forceU===void 0)forceU=false;var s10=this.source;var l=s10.length;if(i22>=l){return-1}var c=s10.charCodeAt(i22);if(!(forceU||this.switchU)||c<=55295||c>=57344||i22+1>=l){return c}var next2=s10.charCodeAt(i22+1);return next2>=56320&&next2<=57343?(c<<10)+next2-56613888:c};RegExpValidationState.prototype.nextIndex=function nextIndex(i22,forceU){if(forceU===void 0)forceU=false;var s10=this.source;var l=s10.length;if(i22>=l){return l}var c=s10.charCodeAt(i22),next2;if(!(forceU||this.switchU)||c<=55295||c>=57344||i22+1>=l||(next2=s10.charCodeAt(i22+1))<56320||next2>57343){return i22+1}return i22+2};RegExpValidationState.prototype.current=function current2(forceU){if(forceU===void 0)forceU=false;return this.at(this.pos,forceU)};RegExpValidationState.prototype.lookahead=function lookahead(forceU){if(forceU===void 0)forceU=false;return this.at(this.nextIndex(this.pos,forceU),forceU)};RegExpValidationState.prototype.advance=function advance(forceU){if(forceU===void 0)forceU=false;this.pos=this.nextIndex(this.pos,forceU)};RegExpValidationState.prototype.eat=function eat(ch22,forceU){if(forceU===void 0)forceU=false;if(this.current(forceU)===ch22){this.advance(forceU);return true}return false};RegExpValidationState.prototype.eatChars=function eatChars(chs,forceU){if(forceU===void 0)forceU=false;var pos=this.pos;for(var i22=0,list2=chs;i22<list2.length;i22+=1){var ch22=list2[i22];var current22=this.at(pos,forceU);if(current22===-1||current22!==ch22){return false}pos=this.nextIndex(pos,forceU)}this.pos=pos;return true};pp$1.validateRegExpFlags=function(state){var validFlags=state.validFlags;var flags=state.flags;var u=false;var v2=false;for(var i22=0;i22<flags.length;i22++){var flag=flags.charAt(i22);if(validFlags.indexOf(flag)===-1){this.raise(state.start,"Invalid regular expression flag")}if(flags.indexOf(flag,i22+1)>-1){this.raise(state.start,"Duplicate regular expression flag")}if(flag==="u"){u=true}if(flag==="v"){v2=true}}if(this.options.ecmaVersion>=15&&u&&v2){this.raise(state.start,"Invalid regular expression flag")}};function hasProp(obj){for(var _ in obj){return true}return false}pp$1.validateRegExpPattern=function(state){this.regexp_pattern(state);if(!state.switchN&&this.options.ecmaVersion>=9&&hasProp(state.groupNames)){state.switchN=true;this.regexp_pattern(state)}};pp$1.regexp_pattern=function(state){state.pos=0;state.lastIntValue=0;state.lastStringValue="";state.lastAssertionIsQuantifiable=false;state.numCapturingParens=0;state.maxBackReference=0;state.groupNames=Object.create(null);state.backReferenceNames.length=0;state.branchID=null;this.regexp_disjunction(state);if(state.pos!==state.source.length){if(state.eat(41)){state.raise("Unmatched ')'")}if(state.eat(93)||state.eat(125)){state.raise("Lone quantifier brackets")}}if(state.maxBackReference>state.numCapturingParens){state.raise("Invalid escape")}for(var i22=0,list2=state.backReferenceNames;i22<list2.length;i22+=1){var name=list2[i22];if(!state.groupNames[name]){state.raise("Invalid named capture referenced")}}};pp$1.regexp_disjunction=function(state){var trackDisjunction=this.options.ecmaVersion>=16;if(trackDisjunction){state.branchID=new BranchID(state.branchID,null)}this.regexp_alternative(state);while(state.eat(124)){if(trackDisjunction){state.branchID=state.branchID.sibling()}this.regexp_alternative(state)}if(trackDisjunction){state.branchID=state.branchID.parent}if(this.regexp_eatQuantifier(state,true)){state.raise("Nothing to repeat")}if(state.eat(123)){state.raise("Lone quantifier brackets")}};pp$1.regexp_alternative=function(state){while(state.pos<state.source.length&&this.regexp_eatTerm(state)){}};pp$1.regexp_eatTerm=function(state){if(this.regexp_eatAssertion(state)){if(state.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(state)){if(state.switchU){state.raise("Invalid quantifier")}}return true}if(state.switchU?this.regexp_eatAtom(state):this.regexp_eatExtendedAtom(state)){this.regexp_eatQuantifier(state);return true}return false};pp$1.regexp_eatAssertion=function(state){var start=state.pos;state.lastAssertionIsQuantifiable=false;if(state.eat(94)||state.eat(36)){return true}if(state.eat(92)){if(state.eat(66)||state.eat(98)){return true}state.pos=start}if(state.eat(40)&&state.eat(63)){var lookbehind=false;if(this.options.ecmaVersion>=9){lookbehind=state.eat(60)}if(state.eat(61)||state.eat(33)){this.regexp_disjunction(state);if(!state.eat(41)){state.raise("Unterminated group")}state.lastAssertionIsQuantifiable=!lookbehind;return true}}state.pos=start;return false};pp$1.regexp_eatQuantifier=function(state,noError){if(noError===void 0)noError=false;if(this.regexp_eatQuantifierPrefix(state,noError)){state.eat(63);return true}return false};pp$1.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)};pp$1.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min2=0,max2=-1;if(this.regexp_eatDecimalDigits(state)){min2=state.lastIntValue;if(state.eat(44)&&this.regexp_eatDecimalDigits(state)){max2=state.lastIntValue}if(state.eat(125)){if(max2!==-1&&max2<min2&&!noError){state.raise("numbers out of order in {} quantifier")}return true}}if(state.switchU&&!noError){state.raise("Incomplete quantifier")}state.pos=start}return false};pp$1.regexp_eatAtom=function(state){return this.regexp_eatPatternCharacters(state)||state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)};pp$1.regexp_eatReverseSolidusAtomEscape=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatAtomEscape(state)){return true}state.pos=start}return false};pp$1.regexp_eatUncapturingGroup=function(state){var start=state.pos;if(state.eat(40)){if(state.eat(63)){if(this.options.ecmaVersion>=16){var addModifiers=this.regexp_eatModifiers(state);var hasHyphen=state.eat(45);if(addModifiers||hasHyphen){for(var i22=0;i22<addModifiers.length;i22++){var modifier=addModifiers.charAt(i22);if(addModifiers.indexOf(modifier,i22+1)>-1){state.raise("Duplicate regular expression modifiers")}}if(hasHyphen){var removeModifiers=this.regexp_eatModifiers(state);if(!addModifiers&&!removeModifiers&&state.current()===58){state.raise("Invalid regular expression modifiers")}for(var i$12=0;i$12<removeModifiers.length;i$12++){var modifier$1=removeModifiers.charAt(i$12);if(removeModifiers.indexOf(modifier$1,i$12+1)>-1||addModifiers.indexOf(modifier$1)>-1){state.raise("Duplicate regular expression modifiers")}}}}}if(state.eat(58)){this.regexp_disjunction(state);if(state.eat(41)){return true}state.raise("Unterminated group")}}state.pos=start}return false};pp$1.regexp_eatCapturingGroup=function(state){if(state.eat(40)){if(this.options.ecmaVersion>=9){this.regexp_groupSpecifier(state)}else if(state.current()===63){state.raise("Invalid group")}this.regexp_disjunction(state);if(state.eat(41)){state.numCapturingParens+=1;return true}state.raise("Unterminated group")}return false};pp$1.regexp_eatModifiers=function(state){var modifiers="";var ch22=0;while((ch22=state.current())!==-1&&isRegularExpressionModifier(ch22)){modifiers+=codePointToString(ch22);state.advance()}return modifiers};function isRegularExpressionModifier(ch22){return ch22===105||ch22===109||ch22===115}pp$1.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)};pp$1.regexp_eatInvalidBracedQuantifier=function(state){if(this.regexp_eatBracedQuantifier(state,true)){state.raise("Nothing to repeat")}return false};pp$1.regexp_eatSyntaxCharacter=function(state){var ch22=state.current();if(isSyntaxCharacter(ch22)){state.lastIntValue=ch22;state.advance();return true}return false};function isSyntaxCharacter(ch22){return ch22===36||ch22>=40&&ch22<=43||ch22===46||ch22===63||ch22>=91&&ch22<=94||ch22>=123&&ch22<=125}pp$1.regexp_eatPatternCharacters=function(state){var start=state.pos;var ch22=0;while((ch22=state.current())!==-1&&!isSyntaxCharacter(ch22)){state.advance()}return state.pos!==start};pp$1.regexp_eatExtendedPatternCharacter=function(state){var ch22=state.current();if(ch22!==-1&&ch22!==36&&!(ch22>=40&&ch22<=43)&&ch22!==46&&ch22!==63&&ch22!==91&&ch22!==94&&ch22!==124){state.advance();return true}return false};pp$1.regexp_groupSpecifier=function(state){if(state.eat(63)){if(!this.regexp_eatGroupName(state)){state.raise("Invalid group")}var trackDisjunction=this.options.ecmaVersion>=16;var known=state.groupNames[state.lastStringValue];if(known){if(trackDisjunction){for(var i22=0,list2=known;i22<list2.length;i22+=1){var altID=list2[i22];if(!altID.separatedFrom(state.branchID)){state.raise("Duplicate capture group name")}}}else{state.raise("Duplicate capture group name")}}if(trackDisjunction){(known||(state.groupNames[state.lastStringValue]=[])).push(state.branchID)}else{state.groupNames[state.lastStringValue]=true}}};pp$1.regexp_eatGroupName=function(state){state.lastStringValue="";if(state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62)){return true}state.raise("Invalid capture group name")}return false};pp$1.regexp_eatRegExpIdentifierName=function(state){state.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(state)){state.lastStringValue+=codePointToString(state.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(state)){state.lastStringValue+=codePointToString(state.lastIntValue)}return true}return false};pp$1.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos;var forceU=this.options.ecmaVersion>=11;var ch22=state.current(forceU);state.advance(forceU);if(ch22===92&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)){ch22=state.lastIntValue}if(isRegExpIdentifierStart(ch22)){state.lastIntValue=ch22;return true}state.pos=start;return false};function isRegExpIdentifierStart(ch22){return isIdentifierStart(ch22,true)||ch22===36||ch22===95}pp$1.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos;var forceU=this.options.ecmaVersion>=11;var ch22=state.current(forceU);state.advance(forceU);if(ch22===92&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)){ch22=state.lastIntValue}if(isRegExpIdentifierPart(ch22)){state.lastIntValue=ch22;return true}state.pos=start;return false};function isRegExpIdentifierPart(ch22){return isIdentifierChar(ch22,true)||ch22===36||ch22===95||ch22===8204||ch22===8205}pp$1.regexp_eatAtomEscape=function(state){if(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state)){return true}if(state.switchU){if(state.current()===99){state.raise("Invalid unicode escape")}state.raise("Invalid escape")}return false};pp$1.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n8=state.lastIntValue;if(state.switchU){if(n8>state.maxBackReference){state.maxBackReference=n8}return true}if(n8<=state.numCapturingParens){return true}state.pos=start}return false};pp$1.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state)){state.backReferenceNames.push(state.lastStringValue);return true}state.raise("Invalid named reference")}return false};pp$1.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,false)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)};pp$1.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state)){return true}state.pos=start}return false};pp$1.regexp_eatZero=function(state){if(state.current()===48&&!isDecimalDigit(state.lookahead())){state.lastIntValue=0;state.advance();return true}return false};pp$1.regexp_eatControlEscape=function(state){var ch22=state.current();if(ch22===116){state.lastIntValue=9;state.advance();return true}if(ch22===110){state.lastIntValue=10;state.advance();return true}if(ch22===118){state.lastIntValue=11;state.advance();return true}if(ch22===102){state.lastIntValue=12;state.advance();return true}if(ch22===114){state.lastIntValue=13;state.advance();return true}return false};pp$1.regexp_eatControlLetter=function(state){var ch22=state.current();if(isControlLetter(ch22)){state.lastIntValue=ch22%32;state.advance();return true}return false};function isControlLetter(ch22){return ch22>=65&&ch22<=90||ch22>=97&&ch22<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){if(forceU===void 0)forceU=false;var start=state.pos;var switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343){state.lastIntValue=(lead-55296)*1024+(trail-56320)+65536;return true}}state.pos=leadSurrogateEnd;state.lastIntValue=lead}return true}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&isValidUnicode(state.lastIntValue)){return true}if(switchU){state.raise("Invalid unicode escape")}state.pos=start}return false};function isValidUnicode(ch22){return ch22>=0&&ch22<=1114111}pp$1.regexp_eatIdentityEscape=function(state){if(state.switchU){if(this.regexp_eatSyntaxCharacter(state)){return true}if(state.eat(47)){state.lastIntValue=47;return true}return false}var ch22=state.current();if(ch22!==99&&(!state.switchN||ch22!==107)){state.lastIntValue=ch22;state.advance();return true}return false};pp$1.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch22=state.current();if(ch22>=49&&ch22<=57){do{state.lastIntValue=10*state.lastIntValue+(ch22-48);state.advance()}while((ch22=state.current())>=48&&ch22<=57);return true}return false};var CharSetNone=0;var CharSetOk=1;var CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(state){var ch22=state.current();if(isCharacterClassEscape(ch22)){state.lastIntValue=-1;state.advance();return CharSetOk}var negate=false;if(state.switchU&&this.options.ecmaVersion>=9&&((negate=ch22===80)||ch22===112)){state.lastIntValue=-1;state.advance();var result;if(state.eat(123)&&(result=this.regexp_eatUnicodePropertyValueExpression(state))&&state.eat(125)){if(negate&&result===CharSetString){state.raise("Invalid property name")}return result}state.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(ch22){return ch22===100||ch22===68||ch22===115||ch22===83||ch22===119||ch22===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(state,name,value);return CharSetOk}}state.pos=start;if(this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue)}return CharSetNone};pp$1.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){if(!hasOwn(state.unicodeProperties.nonBinary,name)){state.raise("Invalid property name")}if(!state.unicodeProperties.nonBinary[name].test(value)){state.raise("Invalid property value")}};pp$1.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){if(state.unicodeProperties.binary.test(nameOrValue)){return CharSetOk}if(state.switchV&&state.unicodeProperties.binaryOfStrings.test(nameOrValue)){return CharSetString}state.raise("Invalid property name")};pp$1.regexp_eatUnicodePropertyName=function(state){var ch22=0;state.lastStringValue="";while(isUnicodePropertyNameCharacter(ch22=state.current())){state.lastStringValue+=codePointToString(ch22);state.advance()}return state.lastStringValue!==""};function isUnicodePropertyNameCharacter(ch22){return isControlLetter(ch22)||ch22===95}pp$1.regexp_eatUnicodePropertyValue=function(state){var ch22=0;state.lastStringValue="";while(isUnicodePropertyValueCharacter(ch22=state.current())){state.lastStringValue+=codePointToString(ch22);state.advance()}return state.lastStringValue!==""};function isUnicodePropertyValueCharacter(ch22){return isUnicodePropertyNameCharacter(ch22)||isDecimalDigit(ch22)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)};pp$1.regexp_eatCharacterClass=function(state){if(state.eat(91)){var negate=state.eat(94);var result=this.regexp_classContents(state);if(!state.eat(93)){state.raise("Unterminated character class")}if(negate&&result===CharSetString){state.raise("Negated character class may contain strings")}return true}return false};pp$1.regexp_classContents=function(state){if(state.current()===93){return CharSetOk}if(state.switchV){return this.regexp_classSetExpression(state)}this.regexp_nonEmptyClassRanges(state);return CharSetOk};pp$1.regexp_nonEmptyClassRanges=function(state){while(this.regexp_eatClassAtom(state)){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;if(state.switchU&&(left===-1||right===-1)){state.raise("Invalid character class")}if(left!==-1&&right!==-1&&left>right){state.raise("Range out of order in character class")}}}};pp$1.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state)){return true}if(state.switchU){var ch$1=state.current();if(ch$1===99||isOctalDigit(ch$1)){state.raise("Invalid class escape")}state.raise("Invalid escape")}state.pos=start}var ch22=state.current();if(ch22!==93){state.lastIntValue=ch22;state.advance();return true}return false};pp$1.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98)){state.lastIntValue=8;return true}if(state.switchU&&state.eat(45)){state.lastIntValue=45;return true}if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state)){return true}state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)};pp$1.regexp_classSetExpression=function(state){var result=CharSetOk,subResult;if(this.regexp_eatClassSetRange(state));else if(subResult=this.regexp_eatClassSetOperand(state)){if(subResult===CharSetString){result=CharSetString}var start=state.pos;while(state.eatChars([38,38])){if(state.current()!==38&&(subResult=this.regexp_eatClassSetOperand(state))){if(subResult!==CharSetString){result=CharSetOk}continue}state.raise("Invalid character in character class")}if(start!==state.pos){return result}while(state.eatChars([45,45])){if(this.regexp_eatClassSetOperand(state)){continue}state.raise("Invalid character in character class")}if(start!==state.pos){return result}}else{state.raise("Invalid character in character class")}for(;;){if(this.regexp_eatClassSetRange(state)){continue}subResult=this.regexp_eatClassSetOperand(state);if(!subResult){return result}if(subResult===CharSetString){result=CharSetString}}};pp$1.regexp_eatClassSetRange=function(state){var start=state.pos;if(this.regexp_eatClassSetCharacter(state)){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassSetCharacter(state)){var right=state.lastIntValue;if(left!==-1&&right!==-1&&left>right){state.raise("Range out of order in character class")}return true}state.pos=start}return false};pp$1.regexp_eatClassSetOperand=function(state){if(this.regexp_eatClassSetCharacter(state)){return CharSetOk}return this.regexp_eatClassStringDisjunction(state)||this.regexp_eatNestedClass(state)};pp$1.regexp_eatNestedClass=function(state){var start=state.pos;if(state.eat(91)){var negate=state.eat(94);var result=this.regexp_classContents(state);if(state.eat(93)){if(negate&&result===CharSetString){state.raise("Negated character class may contain strings")}return result}state.pos=start}if(state.eat(92)){var result$1=this.regexp_eatCharacterClassEscape(state);if(result$1){return result$1}state.pos=start}return null};pp$1.regexp_eatClassStringDisjunction=function(state){var start=state.pos;if(state.eatChars([92,113])){if(state.eat(123)){var result=this.regexp_classStringDisjunctionContents(state);if(state.eat(125)){return result}}else{state.raise("Invalid escape")}state.pos=start}return null};pp$1.regexp_classStringDisjunctionContents=function(state){var result=this.regexp_classString(state);while(state.eat(124)){if(this.regexp_classString(state)===CharSetString){result=CharSetString}}return result};pp$1.regexp_classString=function(state){var count=0;while(this.regexp_eatClassSetCharacter(state)){count++}return count===1?CharSetOk:CharSetString};pp$1.regexp_eatClassSetCharacter=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatCharacterEscape(state)||this.regexp_eatClassSetReservedPunctuator(state)){return true}if(state.eat(98)){state.lastIntValue=8;return true}state.pos=start;return false}var ch22=state.current();if(ch22<0||ch22===state.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(ch22)){return false}if(isClassSetSyntaxCharacter(ch22)){return false}state.advance();state.lastIntValue=ch22;return true};function isClassSetReservedDoublePunctuatorCharacter(ch22){return ch22===33||ch22>=35&&ch22<=38||ch22>=42&&ch22<=44||ch22===46||ch22>=58&&ch22<=64||ch22===94||ch22===96||ch22===126}function isClassSetSyntaxCharacter(ch22){return ch22===40||ch22===41||ch22===45||ch22===47||ch22>=91&&ch22<=93||ch22>=123&&ch22<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(state){var ch22=state.current();if(isClassSetReservedPunctuator(ch22)){state.lastIntValue=ch22;state.advance();return true}return false};function isClassSetReservedPunctuator(ch22){return ch22===33||ch22===35||ch22===37||ch22===38||ch22===44||ch22===45||ch22>=58&&ch22<=62||ch22===64||ch22===96||ch22===126}pp$1.regexp_eatClassControlLetter=function(state){var ch22=state.current();if(isDecimalDigit(ch22)||ch22===95){state.lastIntValue=ch22%32;state.advance();return true}return false};pp$1.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2)){return true}if(state.switchU){state.raise("Invalid escape")}state.pos=start}return false};pp$1.regexp_eatDecimalDigits=function(state){var start=state.pos;var ch22=0;state.lastIntValue=0;while(isDecimalDigit(ch22=state.current())){state.lastIntValue=10*state.lastIntValue+(ch22-48);state.advance()}return state.pos!==start};function isDecimalDigit(ch22){return ch22>=48&&ch22<=57}pp$1.regexp_eatHexDigits=function(state){var start=state.pos;var ch22=0;state.lastIntValue=0;while(isHexDigit(ch22=state.current())){state.lastIntValue=16*state.lastIntValue+hexToInt(ch22);state.advance()}return state.pos!==start};function isHexDigit(ch22){return ch22>=48&&ch22<=57||ch22>=65&&ch22<=70||ch22>=97&&ch22<=102}function hexToInt(ch22){if(ch22>=65&&ch22<=70){return 10+(ch22-65)}if(ch22>=97&&ch22<=102){return 10+(ch22-97)}return ch22-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n12=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n22=state.lastIntValue;if(n12<=3&&this.regexp_eatOctalDigit(state)){state.lastIntValue=n12*64+n22*8+state.lastIntValue}else{state.lastIntValue=n12*8+n22}}else{state.lastIntValue=n12}return true}return false};pp$1.regexp_eatOctalDigit=function(state){var ch22=state.current();if(isOctalDigit(ch22)){state.lastIntValue=ch22-48;state.advance();return true}state.lastIntValue=0;return false};function isOctalDigit(ch22){return ch22>=48&&ch22<=55}pp$1.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i22=0;i22<length;++i22){var ch22=state.current();if(!isHexDigit(ch22)){state.pos=start;return false}state.lastIntValue=16*state.lastIntValue+hexToInt(ch22);state.advance()}return true};var Token=function Token2(p){this.type=p.type;this.value=p.value;this.start=p.start;this.end=p.end;if(p.options.locations){this.loc=new SourceLocation(p,p.startLoc,p.endLoc)}if(p.options.ranges){this.range=[p.start,p.end]}};var pp2=Parser.prototype;pp2.next=function(ignoreEscapeSequenceInKeyword){if(!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword)}if(this.options.onToken){this.options.onToken(new Token(this))}this.lastTokEnd=this.end;this.lastTokStart=this.start;this.lastTokEndLoc=this.endLoc;this.lastTokStartLoc=this.startLoc;this.nextToken()};pp2.getToken=function(){this.next();return new Token(this)};if(typeof Symbol!=="undefined"){pp2[Symbol.iterator]=function(){var this$1$1=this;return{next:function(){var token=this$1$1.getToken();return{done:token.type===types$1.eof,value:token}}}}}pp2.nextToken=function(){var curContext=this.curContext();if(!curContext||!curContext.preserveSpace){this.skipSpace()}this.start=this.pos;if(this.options.locations){this.startLoc=this.curPosition()}if(this.pos>=this.input.length){return this.finishToken(types$1.eof)}if(curContext.override){return curContext.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};pp2.readToken=function(code22){if(isIdentifierStart(code22,this.options.ecmaVersion>=6)||code22===92){return this.readWord()}return this.getTokenFromCode(code22)};pp2.fullCharCodeAtPos=function(){var code22=this.input.charCodeAt(this.pos);if(code22<=55295||code22>=56320){return code22}var next2=this.input.charCodeAt(this.pos+1);return next2<=56319||next2>=57344?code22:(code22<<10)+next2-56613888};pp2.skipBlockComment=function(){var startLoc=this.options.onComment&&this.curPosition();var start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(end===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=end+2;if(this.options.locations){for(var nextBreak=void 0,pos=start;(nextBreak=nextLineBreak(this.input,pos,this.pos))>-1;){++this.curLine;pos=this.lineStart=nextBreak}}if(this.options.onComment){this.options.onComment(true,this.input.slice(start+2,end),start,this.pos,startLoc,this.curPosition())}};pp2.skipLineComment=function(startSkip){var start=this.pos;var startLoc=this.options.onComment&&this.curPosition();var ch22=this.input.charCodeAt(this.pos+=startSkip);while(this.pos<this.input.length&&!isNewLine(ch22)){ch22=this.input.charCodeAt(++this.pos)}if(this.options.onComment){this.options.onComment(false,this.input.slice(start+startSkip,this.pos),start,this.pos,startLoc,this.curPosition())}};pp2.skipSpace=function(){loop:while(this.pos<this.input.length){var ch22=this.input.charCodeAt(this.pos);switch(ch22){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10){++this.pos}case 10:case 8232:case 8233:++this.pos;if(this.options.locations){++this.curLine;this.lineStart=this.pos}break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(ch22>8&&ch22<14||ch22>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch22))){++this.pos}else{break loop}}}};pp2.finishToken=function(type2,val){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var prevType=this.type;this.type=type2;this.value=val;this.updateContext(prevType)};pp2.readToken_dot=function(){var next2=this.input.charCodeAt(this.pos+1);if(next2>=48&&next2<=57){return this.readNumber(true)}var next22=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&next2===46&&next22===46){this.pos+=3;return this.finishToken(types$1.ellipsis)}else{++this.pos;return this.finishToken(types$1.dot)}};pp2.readToken_slash=function(){var next2=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.slash,1)};pp2.readToken_mult_modulo_exp=function(code22){var next2=this.input.charCodeAt(this.pos+1);var size=1;var tokentype=code22===42?types$1.star:types$1.modulo;if(this.options.ecmaVersion>=7&&code22===42&&next2===42){++size;tokentype=types$1.starstar;next2=this.input.charCodeAt(this.pos+2)}if(next2===61){return this.finishOp(types$1.assign,size+1)}return this.finishOp(tokentype,size)};pp2.readToken_pipe_amp=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===code22){if(this.options.ecmaVersion>=12){var next22=this.input.charCodeAt(this.pos+2);if(next22===61){return this.finishOp(types$1.assign,3)}}return this.finishOp(code22===124?types$1.logicalOR:types$1.logicalAND,2)}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(code22===124?types$1.bitwiseOR:types$1.bitwiseAND,1)};pp2.readToken_caret=function(){var next2=this.input.charCodeAt(this.pos+1);if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.bitwiseXOR,1)};pp2.readToken_plus_min=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===code22){if(next2===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(types$1.incDec,2)}if(next2===61){return this.finishOp(types$1.assign,2)}return this.finishOp(types$1.plusMin,1)};pp2.readToken_lt_gt=function(code22){var next2=this.input.charCodeAt(this.pos+1);var size=1;if(next2===code22){size=code22===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+size)===61){return this.finishOp(types$1.assign,size+1)}return this.finishOp(types$1.bitShift,size)}if(next2===33&&code22===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(next2===61){size=2}return this.finishOp(types$1.relational,size)};pp2.readToken_eq_excl=function(code22){var next2=this.input.charCodeAt(this.pos+1);if(next2===61){return this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(code22===61&&next2===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(types$1.arrow)}return this.finishOp(code22===61?types$1.eq:types$1.prefix,1)};pp2.readToken_question=function(){var ecmaVersion2=this.options.ecmaVersion;if(ecmaVersion2>=11){var next2=this.input.charCodeAt(this.pos+1);if(next2===46){var next22=this.input.charCodeAt(this.pos+2);if(next22<48||next22>57){return this.finishOp(types$1.questionDot,2)}}if(next2===63){if(ecmaVersion2>=12){var next2$1=this.input.charCodeAt(this.pos+2);if(next2$1===61){return this.finishOp(types$1.assign,3)}}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)};pp2.readToken_numberSign=function(){var ecmaVersion2=this.options.ecmaVersion;var code22=35;if(ecmaVersion2>=13){++this.pos;code22=this.fullCharCodeAtPos();if(isIdentifierStart(code22,true)||code22===92){return this.finishToken(types$1.privateId,this.readWord1())}}this.raise(this.pos,"Unexpected character '"+codePointToString(code22)+"'")};pp2.getTokenFromCode=function(code22){switch(code22){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(types$1.parenL);case 41:++this.pos;return this.finishToken(types$1.parenR);case 59:++this.pos;return this.finishToken(types$1.semi);case 44:++this.pos;return this.finishToken(types$1.comma);case 91:++this.pos;return this.finishToken(types$1.bracketL);case 93:++this.pos;return this.finishToken(types$1.bracketR);case 123:++this.pos;return this.finishToken(types$1.braceL);case 125:++this.pos;return this.finishToken(types$1.braceR);case 58:++this.pos;return this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(types$1.backQuote);case 48:var next2=this.input.charCodeAt(this.pos+1);if(next2===120||next2===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(next2===111||next2===79){return this.readRadixNumber(8)}if(next2===98||next2===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(code22);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code22);case 124:case 38:return this.readToken_pipe_amp(code22);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code22);case 60:case 62:return this.readToken_lt_gt(code22);case 61:case 33:return this.readToken_eq_excl(code22);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(code22)+"'")};pp2.finishOp=function(type2,size){var str=this.input.slice(this.pos,this.pos+size);this.pos+=size;return this.finishToken(type2,str)};pp2.readRegexp=function(){var escaped,inClass,start=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(start,"Unterminated regular expression")}var ch22=this.input.charAt(this.pos);if(lineBreak.test(ch22)){this.raise(start,"Unterminated regular expression")}if(!escaped){if(ch22==="["){inClass=true}else if(ch22==="]"&&inClass){inClass=false}else if(ch22==="/"&&!inClass){break}escaped=ch22==="\\"}else{escaped=false}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos;var flags=this.readWord1();if(this.containsEsc){this.unexpected(flagsStart)}var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags);this.validateRegExpFlags(state);this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch(e2){}return this.finishToken(types$1.regexp,{pattern,flags,value})};pp2.readInt=function(radix,len2,maybeLegacyOctalNumericLiteral){var allowSeparators=this.options.ecmaVersion>=12&&len2===void 0;var isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&this.input.charCodeAt(this.pos)===48;var start=this.pos,total=0,lastCode=0;for(var i22=0,e2=len2==null?Infinity:len2;i22<e2;++i22,++this.pos){var code22=this.input.charCodeAt(this.pos),val=void 0;if(allowSeparators&&code22===95){if(isLegacyOctalNumericLiteral){this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals")}if(lastCode===95){this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore")}if(i22===0){this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits")}lastCode=code22;continue}if(code22>=97){val=code22-97+10}else if(code22>=65){val=code22-65+10}else if(code22>=48&&code22<=57){val=code22-48}else{val=Infinity}if(val>=radix){break}lastCode=code22;total=total*radix+val}if(allowSeparators&&lastCode===95){this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits")}if(this.pos===start||len2!=null&&this.pos-start!==len2){return null}return total};function stringToNumber(str,isLegacyOctalNumericLiteral){if(isLegacyOctalNumericLiteral){return parseInt(str,8)}return parseFloat(str.replace(/_/g,""))}function stringToBigInt(str){if(typeof BigInt!=="function"){return null}return BigInt(str.replace(/_/g,""))}pp2.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);if(val==null){this.raise(this.start+2,"Expected number in radix "+radix)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){val=stringToBigInt(this.input.slice(start,this.pos));++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(types$1.num,val)};pp2.readNumber=function(startsWithDot){var start=this.pos;if(!startsWithDot&&this.readInt(10,void 0,true)===null){this.raise(start,"Invalid number")}var octal=this.pos-start>=2&&this.input.charCodeAt(start)===48;if(octal&&this.strict){this.raise(start,"Invalid number")}var next2=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&next2===110){var val$1=stringToBigInt(this.input.slice(start,this.pos));++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(types$1.num,val$1)}if(octal&&/[89]/.test(this.input.slice(start,this.pos))){octal=false}if(next2===46&&!octal){++this.pos;this.readInt(10);next2=this.input.charCodeAt(this.pos)}if((next2===69||next2===101)&&!octal){next2=this.input.charCodeAt(++this.pos);if(next2===43||next2===45){++this.pos}if(this.readInt(10)===null){this.raise(start,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var val=stringToNumber(this.input.slice(start,this.pos),octal);return this.finishToken(types$1.num,val)};pp2.readCodePoint=function(){var ch22=this.input.charCodeAt(this.pos),code22;if(ch22===123){if(this.options.ecmaVersion<6){this.unexpected()}var codePos=++this.pos;code22=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(code22>1114111){this.invalidStringToken(codePos,"Code point out of bounds")}}else{code22=this.readHexChar(4)}return code22};pp2.readString=function(quote2){var out="",chunkStart=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var ch22=this.input.charCodeAt(this.pos);if(ch22===quote2){break}if(ch22===92){out+=this.input.slice(chunkStart,this.pos);out+=this.readEscapedChar(false);chunkStart=this.pos}else if(ch22===8232||ch22===8233){if(this.options.ecmaVersion<10){this.raise(this.start,"Unterminated string constant")}++this.pos;if(this.options.locations){this.curLine++;this.lineStart=this.pos}}else{if(isNewLine(ch22)){this.raise(this.start,"Unterminated string constant")}++this.pos}}out+=this.input.slice(chunkStart,this.pos++);return this.finishToken(types$1.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp2.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(err22){if(err22===INVALID_TEMPLATE_ESCAPE_ERROR){this.readInvalidTemplateToken()}else{throw err22}}this.inTemplateElement=false};pp2.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw INVALID_TEMPLATE_ESCAPE_ERROR}else{this.raise(position,message)}};pp2.readTmplToken=function(){var out="",chunkStart=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var ch22=this.input.charCodeAt(this.pos);if(ch22===96||ch22===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)){if(ch22===36){this.pos+=2;return this.finishToken(types$1.dollarBraceL)}else{++this.pos;return this.finishToken(types$1.backQuote)}}out+=this.input.slice(chunkStart,this.pos);return this.finishToken(types$1.template,out)}if(ch22===92){out+=this.input.slice(chunkStart,this.pos);out+=this.readEscapedChar(true);chunkStart=this.pos}else if(isNewLine(ch22)){out+=this.input.slice(chunkStart,this.pos);++this.pos;switch(ch22){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:out+="\n";break;default:out+=String.fromCharCode(ch22);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}chunkStart=this.pos}else{++this.pos}}};pp2.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++){switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{"){break}case"`":return this.finishToken(types$1.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]==="\n"){++this.pos}case"\n":case"\u2028":case"\u2029":++this.curLine;this.lineStart=this.pos+1;break}}this.raise(this.start,"Unterminated template")};pp2.readEscapedChar=function(inTemplate){var ch22=this.input.charCodeAt(++this.pos);++this.pos;switch(ch22){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:if(this.options.locations){this.lineStart=this.pos;++this.curLine}return"";case 56:case 57:if(this.strict){this.invalidStringToken(this.pos-1,"Invalid escape sequence")}if(inTemplate){var codePos=this.pos-1;this.invalidStringToken(codePos,"Invalid escape sequence in template string")}default:if(ch22>=48&&ch22<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var octal=parseInt(octalStr,8);if(octal>255){octalStr=octalStr.slice(0,-1);octal=parseInt(octalStr,8)}this.pos+=octalStr.length-1;ch22=this.input.charCodeAt(this.pos);if((octalStr!=="0"||ch22===56||ch22===57)&&(this.strict||inTemplate)){this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(octal)}if(isNewLine(ch22)){if(this.options.locations){this.lineStart=this.pos;++this.curLine}return""}return String.fromCharCode(ch22)}};pp2.readHexChar=function(len2){var codePos=this.pos;var n8=this.readInt(16,len2);if(n8===null){this.invalidStringToken(codePos,"Bad character escape sequence")}return n8};pp2.readWord1=function(){this.containsEsc=false;var word="",first=true,chunkStart=this.pos;var astral=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var ch22=this.fullCharCodeAtPos();if(isIdentifierChar(ch22,astral)){this.pos+=ch22<=65535?1:2}else if(ch22===92){this.containsEsc=true;word+=this.input.slice(chunkStart,this.pos);var escStart=this.pos;if(this.input.charCodeAt(++this.pos)!==117){this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX")}++this.pos;var esc=this.readCodePoint();if(!(first?isIdentifierStart:isIdentifierChar)(esc,astral)){this.invalidStringToken(escStart,"Invalid Unicode escape")}word+=codePointToString(esc);chunkStart=this.pos}else{break}first=false}return word+this.input.slice(chunkStart,this.pos)};pp2.readWord=function(){var word=this.readWord1();var type2=types$1.name;if(this.keywords.test(word)){type2=keywords[word]}return this.finishToken(type2,word)};var version$1="8.15.0";Parser.acorn={Parser,version:version$1,defaultOptions:defaultOptions2,Position,SourceLocation,getLineInfo,Node:Node2,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types2,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parse3(input,options){return Parser.parse(input,options)}var Script$1=class Script{constructor(code22,_options2){__publicField2(this,"code");this.code=code22}runInThisContext(_options){return eval(this.code)}runInNewContext(contextObject,_options2){const sandbox=contextObject&&typeof contextObject==="object"?contextObject:{};const declared=[];try{const ast=parse3(this.code,{ecmaVersion:"latest",sourceType:"script",allowReturnOutsideFunction:true,allowAwaitOutsideFunction:true});for(const node of ast.body){if(node.type==="FunctionDeclaration"&&node.id)declared.push(node.id.name);if(node.type==="VariableDeclaration"&&node.kind==="var"){for(const d of node.declarations)if(d.id.type==="Identifier")declared.push(d.id.name)}}}catch{}const own=new Set(["__substrateScope","__substrateCode","__substrateDeclared",...declared]);const globalView=new Proxy(sandbox,{has:(target,name)=>name in target,get:(target,name)=>{if(name==="globalThis"||name==="global"||name==="self")return name in target?target[name]:globalView;return name in target?target[name]:globalThis[name]},set:(target,name,value)=>{target[name]=value;return true},deleteProperty:(target,name)=>{delete target[name];return true}});const scope4=new Proxy(sandbox,{has:(_target,name)=>!own.has(name),get:(target,name)=>{if(name===Symbol.unscopables)return void 0;if(name==="globalThis"||name==="global"||name==="self")return name in target?target[name]:globalView;if(name in target)return target[name];return globalThis[name]},set:(target,name,value)=>{target[name]=value;return true},deleteProperty:(target,name)=>{delete target[name];return true}});const fn2=new Function("__substrateScope","__substrateCode","__substrateDeclared","with (__substrateScope) { const __substrateResult = eval(__substrateCode); for (const name of __substrateDeclared) { try { __substrateScope[name] = eval(name); } catch {} } return __substrateResult; }");return fn2(scope4,this.code,declared)}runInContext(_context,_options2){return this.runInNewContext(_context,_options2)}createCachedData(){return Buffer.from("")}};function createContext(contextObject,_options2){return contextObject||{}}function isContext(_sandbox){return true}function runInThisContext(code,_options){return eval(code)}function runInNewContext(code22,contextObject,_options2){const script=new Script$1(code22);return script.runInNewContext(contextObject)}function runInContext(code22,context2,_options2){return runInNewContext(code22,context2)}function compileFunction(code22,params,_options2){return new Function(...params||[],code22)}var Module=class{constructor(_code,_options2){}link(_linker){return Promise.resolve()}evaluate(_options2){return Promise.resolve()}get status(){return"unlinked"}get identifier(){return""}get context(){return{}}get namespace(){return{}}};var SourceTextModule=class extends Module{};var SyntheticModule=class extends Module{setExport(_name,_value2){}};var vm2={Script:Script$1,createContext,isContext,runInThisContext,runInNewContext,runInContext,compileFunction,Module,SourceTextModule,SyntheticModule};var vmShim=Object.freeze(Object.defineProperty({__proto__:null,Module,Script:Script$1,SourceTextModule,SyntheticModule,compileFunction,createContext,default:vm2,isContext,runInContext,runInNewContext,runInThisContext},Symbol.toStringTag,{value:"Module"}));var isMainThread=true;var parentPort=null;var workerData=null;var threadId=0;var Worker$1=class Worker3 extends EventEmitter{constructor(filename,options){super();__publicField2(this,"threadId",0);__publicField2(this,"resourceLimits",{});throw Object.assign(new Error("Node worker_threads execution is not supported by this browser Node pack."),{code:"ERR_WORKER_UNSUPPORTED"})}postMessage(value,transferList){}terminate(){return Promise.resolve(0)}ref(){}unref(){}getHeapSnapshot(){return Promise.resolve({})}};var MessageChannel2=class{constructor(){__publicField2(this,"port1",new MessagePort2);__publicField2(this,"port2",new MessagePort2)}};var MessagePort2=class extends EventEmitter{postMessage(value,transferList){}start(){}close(){}ref(){}unref(){}};var BroadcastChannel$1=class BroadcastChannel2 extends EventEmitter{constructor(name){super();__publicField2(this,"name");this.name=name}postMessage(message){}close(){}ref(){}unref(){}};function moveMessagePortToContext(port2,contextifiedSandbox){return port2}function receiveMessageOnPort(port2){return void 0}var SHARE_ENV=Symbol.for("nodejs.worker_threads.SHARE_ENV");function markAsUntransferable(object){}var uncloneable=new WeakSet;function markAsUncloneable(object){if(object!==null&&(typeof object==="object"||typeof object==="function"))uncloneable.add(object)}function isMarkedAsUncloneable(object){return object!==null&&(typeof object==="object"||typeof object==="function")&&uncloneable.has(object)}function getEnvironmentData(key){return void 0}function setEnvironmentData(key,value){}var worker_threads={isMainThread,parentPort,workerData,threadId,Worker:Worker$1,MessageChannel:MessageChannel2,MessagePort:MessagePort2,BroadcastChannel:BroadcastChannel$1,moveMessagePortToContext,receiveMessageOnPort,SHARE_ENV,markAsUntransferable,markAsUncloneable,isMarkedAsUncloneable,getEnvironmentData,setEnvironmentData};var workerThreadsShim=Object.freeze(Object.defineProperty({__proto__:null,BroadcastChannel:BroadcastChannel$1,MessageChannel:MessageChannel2,MessagePort:MessagePort2,SHARE_ENV,Worker:Worker$1,default:worker_threads,getEnvironmentData,isMainThread,isMarkedAsUncloneable,markAsUncloneable,markAsUntransferable,moveMessagePortToContext,parentPort,receiveMessageOnPort,setEnvironmentData,threadId,workerData},Symbol.toStringTag,{value:"Module"}));var Http2Session=class extends EventEmitter{close(_callback3){if(_callback3)setTimeout(_callback3,0)}destroy(_error,_code){}get destroyed(){return false}get encrypted(){return false}get closed(){return false}ping(_callback3){return false}ref(){}unref(){}setTimeout(_msecs,_callback3){}};var ClientHttp2Session=class extends Http2Session{};var ServerHttp2Session=class extends Http2Session{};var Http2Stream=class extends EventEmitter{close(_code,_callback3){}get id(){return 0}get pending(){return false}get destroyed(){return false}get closed(){return false}priority(_options2){}setTimeout(_msecs,_callback3){}end(_data,_encoding,_callback3){}};var Http2ServerRequest=class extends EventEmitter{};var Http2ServerResponse=class extends EventEmitter{writeHead(_statusCode,_headers2){return this}end(_data){}};function createServer(_options2,_onRequestHandler){return new EventEmitter}function createSecureServer(_options2,_onRequestHandler){return new EventEmitter}function connect(_authority,_options2,_listener){return new ClientHttp2Session}var constants3={NGHTTP2_SESSION_SERVER:0,NGHTTP2_SESSION_CLIENT:1,HTTP2_HEADER_STATUS:":status",HTTP2_HEADER_METHOD:":method",HTTP2_HEADER_AUTHORITY:":authority",HTTP2_HEADER_SCHEME:":scheme",HTTP2_HEADER_PATH:":path",HTTP_STATUS_OK:200,HTTP_STATUS_NOT_FOUND:404};function getDefaultSettings(){return{}}function getPackedSettings(_settings){return Buffer.from("")}function getUnpackedSettings(_buf){return{}}var sensitiveHeaders=Symbol("sensitiveHeaders");var http2={Http2Session,ClientHttp2Session,ServerHttp2Session,Http2Stream,Http2ServerRequest,Http2ServerResponse,createServer,createSecureServer,connect,constants:constants3,getDefaultSettings,getPackedSettings,getUnpackedSettings,sensitiveHeaders};var http2Shim=Object.freeze(Object.defineProperty({__proto__:null,ClientHttp2Session,Http2ServerRequest,Http2ServerResponse,Http2Session,Http2Stream,ServerHttp2Session,connect,constants:constants3,createSecureServer,createServer,default:http2,getDefaultSettings,getPackedSettings,getUnpackedSettings,sensitiveHeaders},Symbol.toStringTag,{value:"Module"}));var Session=class extends EventEmitter{connect(){}connectToMainThread(){}disconnect(){}post(_method,_params,_callback3){if(_callback3)setTimeout(()=>_callback3(null,{}),0)}};function open(_port,_host,_wait){}function close(){}function url(){return void 0}function waitForDebugger(){}var console$1=globalThis.console;var inspector={Session,open,close,url,waitForDebugger,console:console$1};var inspectorShim=Object.freeze(Object.defineProperty({__proto__:null,Session,close,console:console$1,default:inspector,open,url,waitForDebugger},Symbol.toStringTag,{value:"Module"}));var performance$1=globalThis.performance||{now:()=>Date.now(),timeOrigin:Date.now(),mark:()=>{},measure:()=>{},getEntries:()=>[],getEntriesByName:()=>[],getEntriesByType:()=>[],clearMarks:()=>{},clearMeasures:()=>{},clearResourceTimings:()=>{}};forGuestRealm(()=>{const own=globalThis.performance;if(own&&typeof own.markResourceTiming!=="function"){try{Object.defineProperty(own,"markResourceTiming",{value:()=>void 0,writable:true,configurable:true,enumerable:false})}catch{}}});var PerformanceObserver=class{constructor(callback){__publicField2(this,"callback");__publicField2(this,"entryTypes",[]);this.callback=callback}observe(options){this.entryTypes=options.entryTypes||(options.type?[options.type]:[])}disconnect(){this.entryTypes=[]}takeRecords(){return[]}};__publicField2(PerformanceObserver,"supportedEntryTypes",["mark","measure","resource","navigation"]);var Histogram=class{constructor(){__publicField2(this,"min",0);__publicField2(this,"max",0);__publicField2(this,"mean",0);__publicField2(this,"stddev",0);__publicField2(this,"percentiles",new Map);__publicField2(this,"exceeds",0)}reset(){this.min=0;this.max=0;this.mean=0;this.stddev=0;this.percentiles.clear();this.exceeds=0}percentile(percentile){return this.percentiles.get(percentile)||0}};function createHistogram(){return new Histogram}function monitorEventLoopDelay(options){const histogram=new Histogram;return histogram}var perf_hooks={performance:performance$1,PerformanceObserver,createHistogram,monitorEventLoopDelay};var perfHooksShim=Object.freeze(Object.defineProperty({__proto__:null,Histogram,PerformanceObserver,createHistogram,default:perf_hooks,monitorEventLoopDelay,performance:performance$1},Symbol.toStringTag,{value:"Module"}));function nodeTimeout(id2){if(typeof id2!=="number")return id2;const timeout={_id:id2,ref(){return timeout},unref(){return timeout},hasRef(){return true},refresh(){return timeout},[Symbol.toPrimitive](){return id2}};return timeout}function timerHandleOf(id2){return id2&&typeof id2==="object"&&"_id"in id2?id2._id:id2}function createTimersModule(owned){const schedule=(owned==null?void 0:owned.setTimeout)??globalThis.setTimeout.bind(globalThis);const cancel=(owned==null?void 0:owned.clearTimeout)??(id2=>globalThis.clearTimeout(timerHandleOf(id2)));const unenroll=item=>{if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=null;item._idleTimeout=-1};const enroll=(item,msecs)=>{if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=null;item._idleTimeout=msecs};const active2=item=>{const msecs=item._idleTimeout;if(typeof msecs!=="number"||msecs<0)return;if(item._idleTimeoutId)cancel(item._idleTimeoutId);item._idleTimeoutId=schedule(()=>{item._idleTimeoutId=null;if(typeof item._onTimeout==="function")item._onTimeout()},msecs)};const abortError=()=>{const error=new Error("The operation was aborted");error.name="AbortError";error.code="ABORT_ERR";return error};const timersPromises={setTimeout:(delay2,value,options)=>new Promise((resolve2,reject)=>{const signal=options&&options.signal;if(signal&&signal.aborted){reject(abortError());return}const onAbort=()=>{cancel(handle);reject(abortError())};const handle=schedule(()=>{if(signal)signal.removeEventListener("abort",onAbort);resolve2(value)},delay2);if(signal)signal.addEventListener("abort",onAbort,{once:true})}),setImmediate:(value,options)=>timersPromises.setTimeout(0,value,options),setInterval:async function*setInterval2(delay2,value,options){const signal=options&&options.signal;for(;;){await timersPromises.setTimeout(delay2,void 0,options);if(signal&&signal.aborted)return;yield value}},scheduler:{wait:(delay2,options)=>timersPromises.setTimeout(delay2,void 0,options),yield:()=>timersPromises.setTimeout(0,void 0,void 0)}};return{setTimeout(fn2,ms2,...rest){return nodeTimeout(globalThis.setTimeout(fn2,ms2,...rest))},clearTimeout(id2){return globalThis.clearTimeout(timerHandleOf(id2))},setInterval(fn2,ms2,...rest){return nodeTimeout(globalThis.setInterval(fn2,ms2,...rest))},clearInterval(id2){return globalThis.clearInterval(timerHandleOf(id2))},setImmediate(fn2,...args){const realm=globalThis;return nodeTimeout(realm.setImmediate?realm.setImmediate(fn2,...args):globalThis.setTimeout(fn2,0,...args))},clearImmediate(id2){const realm=globalThis;const handle=timerHandleOf(id2);return realm.clearImmediate?realm.clearImmediate(handle):globalThis.clearTimeout(handle)},...owned?{...owned,setImmediate:(fn2,...args)=>owned.setTimeout(fn2,0,...args),clearImmediate:owned.clearTimeout}:{},active:active2,enroll,unenroll,promises:timersPromises}}var NODE_LTS_VERSION="22.12.0";function nodeVersions(node=NODE_LTS_VERSION){return{node,v8:"11.3.244.8",uv:"1.44.2",webcontainer:"1",openssl:"3.0.15",amaro:"1.1.0"}}var StdinClasses;function processStdinClass(ReadableClass){StdinClasses??(StdinClasses=new WeakMap);const cached=StdinClasses.get(ReadableClass);if(cached)return cached;const StdinClass=class ProcessStdin extends ReadableClass{constructor(){super(...arguments);__publicField2(this,"fd",0);__publicField2(this,"isTTY",false)}_read(){}setRawMode(_mode){return this}__substrateStdinWrite(data2){if(data2===void 0||data2===null||typeof data2==="string"&&data2.length===0)return;this.push(data2)}__substrateStdinEnd(){this.push(null)}};StdinClasses.set(ReadableClass,StdinClass);return StdinClass}function createProcessStream(isWritable,writeImpl){const emitter=new EventEmitter;const stream={isTTY:false,columns:80,rows:24,clearLine(direction,callback){if(typeof direction==="function")direction();else if(typeof callback==="function")callback();return true},cursorTo(x,y,callback){if(typeof y==="function")y();else if(typeof callback==="function")callback();return true},moveCursor(dx,dy2,callback){if(typeof callback==="function")callback();return true},getWindowSize(){return[80,24]},hasColors(){return false},getColorDepth(){return 1},on(event,listener){emitter.on(event,listener);return stream},once(event,listener){emitter.once(event,listener);return stream},off(event,listener){emitter.off(event,listener);return stream},emit(event,...args){return emitter.emit(event,...args)},addListener(event,listener){emitter.addListener(event,listener);return stream},removeListener(event,listener){emitter.removeListener(event,listener);return stream},removeAllListeners(event){emitter.removeAllListeners(event);return stream},setMaxListeners(n8){emitter.setMaxListeners(n8);return stream},getMaxListeners(){return emitter.getMaxListeners()},listenerCount(event){return emitter.listenerCount(event)},listeners(event){return emitter.listeners(event)},rawListeners(event){return emitter.rawListeners(event)},prependListener(event,listener){emitter.prependListener(event,listener);return stream},prependOnceListener(event,listener){emitter.prependOnceListener(event,listener);return stream},eventNames(){return emitter.eventNames()},pause(){return stream},resume(){return stream},setEncoding(_encoding){return stream},write(_data,...rest){const callback=trailingCallback(rest);if(callback)queueMicrotask(callback);return true},end(...rest){const callback=trailingCallback(rest);if(callback)queueMicrotask(callback)},pipe(destination){return destination},unpipe(){return stream},isPaused(){return false},unshift(){}};if(writeImpl){stream.write=(data2,...rest)=>{const result=writeImpl(textOf(data2));const callback=trailingCallback(rest);if(callback)queueMicrotask(callback);return result};stream.end=(...args)=>{const data2=args[0];if(typeof data2==="string"||data2 instanceof Uint8Array)writeImpl(textOf(data2));const callback=trailingCallback(args);if(callback)queueMicrotask(callback)}}return stream}function textOf(data2){return typeof data2==="string"?data2:new TextDecoder().decode(data2)}function trailingCallback(args){for(let index2=args.length-1;index2>=0;index2-=1){const value=args[index2];if(typeof value==="function")return value}return void 0}var __substrateSignals={SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGBUS:7,SIGFPE:8,SIGKILL:9,SIGUSR1:10,SIGSEGV:11,SIGUSR2:12,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:17,SIGCONT:18,SIGSTOP:19,SIGTSTP:20,SIGTTIN:21,SIGTTOU:22,SIGURG:23,SIGWINCH:28};var __substrateSignalNames=Object.fromEntries(Object.entries(__substrateSignals).map(([name,number])=>[number,name]));var __substrateBindingWarned=new WeakSet;var __substrateIgnoredSignals=new Set(["SIGCHLD","SIGCONT","SIGURG","SIGWINCH"]);var __substrateChildren=new Map;function __browserRuntimeNodeVersion(env){const named=env&&typeof env.NODE_VERSION==="string"?env.NODE_VERSION.replace(/^v/,""):"";return/^\d+\.\d+\.\d+$/.test(named)?named:NODE_LTS_VERSION}var __substrateUmask=18;var __substrateUncaughtReports=new WeakMap;function __onUncaughtException(process22,report){__substrateUncaughtReports.set(process22,report);return()=>{if(__substrateUncaughtReports.get(process22)===report)__substrateUncaughtReports.delete(process22)}}function __reportUncaughtException(process22,error){const report=process22?__substrateUncaughtReports.get(process22):void 0;if(!report)return false;report(error);return true}var __substrateCaptureCallback=null;function __substrateUncaughtCapture(){return __substrateCaptureCallback}function __substrateExitCode(code22){if(code22===void 0||code22===null)return 0;const asNumber=Number(code22);return Number.isNaN(asNumber)?0:asNumber}function createProcess(options){let currentDir=(options==null?void 0:options.cwd)||"/";const env={PATH:"/usr/local/bin:/usr/bin:/bin:/node_modules/.bin",HOME:"/",...options==null?void 0:options.env};if(!(options==null?void 0:options.tty)){delete env.FORCE_COLOR}const emitter=new EventEmitter;const startTime=Date.now();let stdinStream;const proc={env,title:"node",cwd(){return currentDir},chdir(directory2){console.log("[process] chdir called:",directory2,"from:",currentDir);if(!directory2.startsWith("/")){directory2=currentDir+"/"+directory2}currentDir=directory2;console.log("[process] chdir result:",currentDir)},platform:"linux",version:"v"+__browserRuntimeNodeVersion(env),versions:nodeVersions(__browserRuntimeNodeVersion(env)),arch:"x64",argv:["node","/index.js"],argv0:"node",execPath:"/usr/local/bin/node",execArgv:[],config:{target_defaults:{},variables:{node_shared:false,node_use_openssl:false,v8_enable_i18n_support:0}},moduleLoadList:[],setUncaughtExceptionCaptureCallback(callback){if(callback===null){__substrateCaptureCallback=null;return}if(typeof callback!=="function"){throw Object.assign(new TypeError('The "fn" argument must be of type function or null.'),{code:"ERR_INVALID_ARG_TYPE"})}if(__substrateCaptureCallback!==null){throw Object.assign(new Error("`process.setUncaughtExceptionCaptureCallback()` was called while a capture callback was already active"),{code:"ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"})}__substrateCaptureCallback=callback},hasUncaughtExceptionCaptureCallback(){return __substrateCaptureCallback!==null},features:{debug:false,inspector:false,tls:false,cached_builtins:true,ipv6:true,require_module:true,tls_alpn:false,tls_ocsp:false,tls_sni:false,typescript:false,uvwasi:true},umask(mask){const previous=__substrateUmask;if(mask!==void 0)__substrateUmask=typeof mask==="string"?parseInt(mask,8):mask;return previous},pid:(options==null?void 0:options.pid)??mintPid(),ppid:(options==null?void 0:options.ppid)??0,exit(code22=0){code22=__substrateExitCode(code22);emitter.emit("exit",code22);if(options==null?void 0:options.onExit){options.onExit(code22)}throw new Error(`Process exited with code ${code22}`)},kill(pid,signal="SIGTERM"){const name=typeof signal==="number"&&signal!==0?__substrateSignalNames[signal]:signal;if(signal!==0&&(typeof name!=="string"||__substrateSignals[name]===void 0)){throw Object.assign(new TypeError("Unknown signal: "+signal),{code:"ERR_UNKNOWN_SIGNAL"})}if(pid!==proc.pid){const child=__substrateChildren.get(Math.abs(pid));if(child===void 0||child.exitCode!==null||child.signalCode!==null){if(signal===0&&pidIsLive(Math.abs(pid)))return true;if(signal!==0&&child===void 0&&pid>0&&signalPid(pid,name))return true;throw Object.assign(new Error("kill ESRCH"),{code:"ESRCH",errno:-3,syscall:"kill"})}if(signal===0)return true;child.kill(name);return true}if(signal===0)return true;if(name!=="SIGKILL"&&name!=="SIGSTOP"&&emitter.listenerCount(name)>0){emitter.emit(name,name);return true}if(__substrateIgnoredSignals.has(name))return true;__recordTermination(proc,name);proc.exit(128+__substrateSignals[name]);return true},binding(name){if(!__substrateBindingWarned.has(proc)&&(proc.execArgv||[]).includes("--pending-deprecation")){__substrateBindingWarned.add(proc);proc.emitWarning("process.binding() is deprecated. Please use public APIs instead.","DeprecationWarning","DEP0111")}if(name==="constants")return constantsBinding$1();if(name==="tty_wrap")return ttyWrapBinding;throw new Error("No such module: "+name)},nextTick(callback,...args){const run=typeof globalThis.__substrateCarried==="function"?globalThis.__substrateCarried(callback):callback;queueMicrotask(()=>{try{run(...args)}catch(error){if(!__reportUncaughtException(proc,error))throw error}})},assert(value,message){if(value)return;const error=new Error(message===void 0?"assertion error":String(message));error.name="AssertionError";error.code="ERR_ASSERTION";throw error},emitWarning(warning,...rest){const text=warning instanceof Error?warning.message:String(warning);const options2=rest[0]&&typeof rest[0]==="object"?rest[0]:void 0;const type2=typeof rest[0]==="string"?rest[0]:(options2==null?void 0:options2.type)?options2.type:"Warning";const printedCode=typeof rest[1]==="string"?rest[1]:options2==null?void 0:options2.code;const printedType=warning instanceof Error?warning.name:type2;const line="(node) "+(printedCode===void 0?"":"["+printedCode+"] ")+printedType+": "+text+"\n";if(this&&this.stderr&&typeof this.stderr.write==="function")this.stderr.write(line);else console.warn(line);const code22=printedCode;const raised=warning instanceof Error?warning:Object.assign(new Error(text),{name:type2},code22===void 0?{}:{code:code22});queueMicrotask(()=>{emitter.emit("warning",raised)})},stdout:createProcessStream(true,data2=>{if(options==null?void 0:options.onStdout){options.onStdout(data2)}else{console.log(data2)}return true}),stderr:createProcessStream(true,data2=>{if(options==null?void 0:options.onStderr){options.onStderr(data2)}else{console.error(data2)}return true}),get stdin(){if(!stdinStream){stdinStream=new(processStdinClass(loadNodeLibFor(proc,"stream").Readable));if(typeof(options==null?void 0:options.stdin)==="string")stdinStream.__substrateStdinWrite(options.stdin);if(!(options==null?void 0:options.stdinHeld))stdinStream.__substrateStdinEnd()}return stdinStream},hrtime:Object.assign(function hrtime(time){const now=performance.now();const seconds=Math.floor(now/1e3);const nanoseconds=Math.floor(now%1e3*1e6);if(time){const diffSeconds=seconds-time[0];const diffNanos=nanoseconds-time[1];return[diffSeconds,diffNanos]}return[seconds,nanoseconds]},{bigint:()=>BigInt(Math.floor(performance.now()*1e6))}),memoryUsage(){return{rss:50*1024*1024,heapTotal:30*1024*1024,heapUsed:20*1024*1024,external:1*1024*1024,arrayBuffers:0}},constrainedMemory(){return 0},availableMemory(){return freemem()},uptime(){return(Date.now()-startTime)/1e3},cpuUsage(){return{user:0,system:0}},on(event,listener){emitter.on(event,listener);return proc},once(event,listener){emitter.once(event,listener);return proc},off(event,listener){emitter.off(event,listener);return proc},emit(event,...args){const listeners=emitter.listeners(event);if(listeners.length===0)return emitter.emit(event,...args);for(const listener of listeners){try{listener.apply(proc,args)}catch(error){console.error("Error in event listener:",error)}}return true},addListener(event,listener){emitter.addListener(event,listener);return proc},removeListener(event,listener){emitter.removeListener(event,listener);return proc},removeAllListeners(event){emitter.removeAllListeners(event);return proc},listeners(event){return emitter.listeners(event)},listenerCount(event){return emitter.listenerCount(event)},prependListener(event,listener){emitter.prependListener(event,listener);return proc},prependOnceListener(event,listener){emitter.prependOnceListener(event,listener);return proc},eventNames(){return emitter.eventNames()},setMaxListeners(n8){emitter.setMaxListeners(n8);return proc},getMaxListeners(){return emitter.getMaxListeners()}};return proc}var __substratePendingTimers=new WeakMap;function pendingGuestTimers(process22){var _a22;return((_a22=__substratePendingTimers.get(process22))==null?void 0:_a22.size)??0}function stopGuestTimers(process22){const held=__substratePendingTimers.get(process22);if(!held)return;const host2=globalThis;const clearOnce=host2.clearTimeout;const clearRepeating=host2.clearInterval;for(const id2 of[...held]){try{clearOnce==null?void 0:clearOnce.call(host2,id2)}catch{}try{clearRepeating==null?void 0:clearRepeating.call(host2,id2)}catch{}}held.clear()}function guestTimerFunctions(process22,host2){let pending=__substratePendingTimers.get(process22);if(!pending){pending=new Set;__substratePendingTimers.set(process22,pending)}const held=pending;const hostSetTimeout=host2.setTimeout;const hostSetInterval=host2.setInterval;const hostClearTimeout=host2.clearTimeout;const hostClearInterval=host2.clearInterval;const handleOf=timerHandleOf;const inProcess=fn2=>(...args)=>{try{fn2(...args)}catch(error){if(!__reportUncaughtException(process22,error))throw error}};const track=id2=>{held.add(id2);if(id2&&typeof id2==="object"&&typeof id2.unref==="function"){const handle=id2;const unref=handle.unref.bind(handle);const ref2=handle.ref.bind(handle);handle.unref=()=>{held.delete(id2);return unref()};handle.ref=()=>{held.add(id2);return ref2()}}return id2};return{setTimeout(fn2,ms2,...rest){let id2;const call=inProcess(fn2);id2=nodeTimeout(hostSetTimeout.call(host2,(...args)=>{held.delete(id2);call(...args)},ms2,...rest));return track(id2)},setInterval(fn2,ms2,...rest){return track(nodeTimeout(hostSetInterval.call(host2,inProcess(fn2),ms2,...rest)))},clearTimeout(id2){held.delete(id2);return hostClearTimeout.call(host2,handleOf(id2))},clearInterval(id2){held.delete(id2);return hostClearInterval.call(host2,handleOf(id2))}}}var __table;function nodeLibPublic(name,require2,_process){if(_process&&name==="timers")return()=>createTimersModule(guestTimerFunctions(_process,globalThis));if(require2&&name==="crypto")return()=>createCryptoModule(require2);if(require2&&name==="tls")return()=>createTlsModule(require2);if(require2&&name==="string_decoder")return()=>createStringDecoderModule(()=>require2("buffer").Buffer);__table??(__table={timers:createTimersModule,dns:createDnsModule,cluster:()=>clusterShim,string_decoder:()=>decoder2,v8:()=>v8Shim,dgram:()=>dgramShim,async_hooks:()=>({...asyncHooksShim,AsyncResource:AsyncResource$1}),tls:()=>tlsShim,crypto:()=>cryptoShim,vm:()=>vmShim,worker_threads:()=>workerThreadsShim,http2:()=>http2Shim,inspector:()=>inspectorShim,perf_hooks:()=>perfHooksShim,"util/types":()=>nodeLibInternalRequire("internal/util/types"),path:()=>posix,"fs/promises":()=>nodeLibInternalRequire("internal/fs/promises").exports});return __table[name]}var stackOverrides=new Map;var stackOverrideMap={set(error,override){stackOverrides.set(error,override);const nativeSetTimeout=globalThis.__browserRuntimeNativeSetTimeout??setTimeout;nativeSetTimeout.call(globalThis,()=>{if(stackOverrides.get(error)===override)stackOverrides.delete(error)},0);return this},get:error=>stackOverrides.get(error),has:error=>stackOverrides.has(error),delete:error=>stackOverrides.delete(error)};var builtPrimordials;function primordialsOf(){if(builtPrimordials===void 0){const built={};new Function("primordials",`${PRIMORDIALS_SOURCE}
|
|
5767
5767
|
//# sourceURL=node:internal/per_context/primordials`)(built);builtPrimordials=built}return builtPrimordials}var cache;var builtInternals;var builtBindings;function internalBinding(name){builtBindings??(builtBindings=new Map);if(builtBindings.has(name))return builtBindings.get(name);const build2=nodeLibBinding(name);if(!build2)throw new Error(`node-lib: no binding for internalBinding('${name}')`);const value=build2();builtBindings.set(name,value);return value}var NODE_LIB_LIBRARY_PROCESS={platform:"linux",arch:"x64",version:`v${NODE_LTS_VERSION}`,versions:nodeVersions(),env:{},argv:["node"],argv0:"node",execArgv:[],execPath:"/usr/local/bin/node",nextTick:(fn2,...args)=>queueMicrotask(()=>fn2(...args))};var nodeLibProcessCache;function nodeLibProcessOf(){return nodeLibProcessCache??(nodeLibProcessCache=new Proxy({},{get(_target,key){const realm=globalThis.process;if(!realm)return NODE_LIB_LIBRARY_PROCESS[key];const value=realm[key];if(key==="nextTick"&&typeof value!=="function"){return(fn2,...args)=>queueMicrotask(()=>fn2(...args))}if(key==="platform"&&typeof value!=="string")return"linux";return value},set(_target,key,value){const realm=globalThis.process;if(realm)realm[key]=value;return true},has(_target,key){const realm=globalThis.process;return realm?key in realm:key in NODE_LIB_LIBRARY_PROCESS}}))}function nodeLibRequire(specifier){const name=specifier.startsWith("node:")?specifier.slice(5):specifier;if(NODE_LIB_SOURCES[name]!==void 0)return loadNodeLib(name);const internal=nodeLibInternal(name);if(internal!==void 0){builtInternals??(builtInternals=new Map);if(!builtInternals.has(name))builtInternals.set(name,internal());return builtInternals.get(name)}const shim=nodeLibPublic(name);if(shim!==void 0)return shim();throw new Error(`node-lib: a vendored Node file asked for '${specifier}', which the binding does not provide`)}function loadNodeLib(name){cache??(cache=new Map);const cached=cache.get(name);if(cached)return cached.exports;const record=newNodeLibRecord(name);cache.set(name,record);try{compileNodeLib(name,record)}catch(error){cache.delete(name);throw error}return record.exports}var builtinNamespaces=new WeakMap;var hostNamespaceOwner={};function namespacesFor(owner){let held=builtinNamespaces.get(owner);if(!held){held=[];builtinNamespaces.set(owner,held)}return held}function esmNamespaceOf(mod,owner=hostNamespaceOwner){const ns2={default:mod};if(mod!==null&&(typeof mod==="object"||typeof mod==="function")){const cjs=mod;for(const key of Object.getOwnPropertyNames(cjs)){if(key==="default")continue;Object.defineProperty(ns2,key,{enumerable:true,configurable:true,get(){return cjs[key]},set(value){cjs[key]=value}})}namespacesFor(owner).push({cjs,ns:ns2})}return ns2}function syncBuiltinESMExports(owner=hostNamespaceOwner){for(const{cjs,ns:ns2}of namespacesFor(owner)){for(const key of Object.getOwnPropertyNames(cjs)){if(key==="default"||Object.prototype.hasOwnProperty.call(ns2,key))continue;Object.defineProperty(ns2,key,{enumerable:true,configurable:true,get(){return cjs[key]},set(value){cjs[key]=value}})}}}var moduleInitializers=new Set;function onNodeLibLoaded(initialize2){moduleInitializers.add(initialize2);return()=>{moduleInitializers.delete(initialize2)}}function moduleSurface(value,seen=new Map){if(value===null||typeof value!=="object")return value;if(seen.has(value))return seen.get(value);const prototype=Object.getPrototypeOf(value);if(prototype!==null&&prototype!==Object.prototype&&!Array.isArray(value))return value;const surface=Array.isArray(value)?[]:Object.create(prototype===null?null:Object.prototype);seen.set(value,surface);const descriptors=Object.getOwnPropertyDescriptors(value);for(const[key,descriptor]of Object.entries(descriptors)){if(Array.isArray(value)&&key==="length")continue;descriptor.configurable=true;if("value"in descriptor){descriptor.value=moduleSurface(descriptor.value,seen);descriptor.writable=true}Object.defineProperty(surface,key,descriptor)}return surface}function bindingSurface(value){var _a22;const surface=moduleSurface(value);for(const[key,descriptor]of Object.entries(Object.getOwnPropertyDescriptors(surface))){const implementation2=descriptor.value;if(typeof implementation2!=="function"||((_a22=Object.getOwnPropertyDescriptor(implementation2,"prototype"))==null?void 0:_a22.writable)!==false)continue;const ScopedBinding=class extends implementation2{};Object.defineProperty(ScopedBinding,"name",{value:implementation2.name,configurable:true});Object.defineProperty(ScopedBinding,Symbol.hasInstance,{value:instance=>Function.prototype[Symbol.hasInstance].call(implementation2,instance)});Object.defineProperty(surface,key,{...descriptor,value:ScopedBinding})}return surface}var NodeLibScope=class{constructor(process22){__publicField2(this,"modules",new Map);__publicField2(this,"internals",new Map);__publicField2(this,"bindings",new Map);__publicField2(this,"surfaces",new Map);__publicField2(this,"require",specifier=>{const name=specifier.startsWith("node:")?specifier.slice(5):specifier;if(name==="process")return this.process;if(name==="fs/promises")return this.require("internal/fs/promises").exports;if(name==="timers/promises")return this.require("timers").promises;if(name==="dns/promises")return this.require("dns").promises;if(name==="path/posix")return this.require("path").posix;if(name==="path/win32")return this.require("path").win32;if(name==="assert/strict")return this.require("assert").strict;if(name==="util/types")return this.require("internal/util/types");if(NODE_LIB_SOURCES[name]!==void 0)return this.load(name);const internal=nodeLibInternal(name,this.require,this.process);if(internal){if(!this.internals.has(name))this.internals.set(name,moduleSurface(internal()));return this.internals.get(name)}const native=nodeLibPublic(name,this.require,this.process);if(native)return this.surface(name,native);throw new Error(`node-lib: no builtin '${specifier}' in this process`)});__publicField2(this,"binding",name=>{if(!this.bindings.has(name)){if(["fs","fs_dir","fs_event_wrap"].includes(name)){const fs2=createFsBindings(()=>this.require("buffer").Buffer);this.bindings.set("fs",fs2.fsBinding);this.bindings.set("fs_dir",fs2.fsDirBinding);this.bindings.set("fs_event_wrap",fs2.fsEventWrapBinding)}else{this.bindings.set(name,name==="util"?createUtilBinding(this.require):bindingSurface(internalBinding(name)))}}return this.bindings.get(name)});this.process=process22}surface(name,create2){if(!this.surfaces.has(name))this.surfaces.set(name,moduleSurface(create2()));return this.surfaces.get(name)}load(name){const cached=this.modules.get(name);if(cached)return cached.exports;const record=newNodeLibRecord(name);this.modules.set(name,record);try{compileNodeLib(name,record,this.require,this.process,this.binding);for(const initialize2 of moduleInitializers)initialize2(name,record.exports,this.require)}catch(error){this.modules.delete(name);throw error}return record.exports}};var byOwner=new WeakMap;function scopeFor(owner){let scope4=byOwner.get(owner);if(!scope4){scope4=new NodeLibScope(owner);byOwner.set(owner,scope4)}return scope4}function loadNodeLibFor(owner,name){return scopeFor(owner).require(name)}function hasNodeLibModule(name){return NODE_LIB_SOURCES[name]!==void 0||nodeLibPublic(name)!==void 0||["path/posix","path/win32","assert/strict","util/types","fs/promises","timers/promises","dns/promises"].includes(name)}function nativeModuleFor(owner,name,create2){return scopeFor(owner).surface(name,create2)}function newNodeLibRecord(name){if(NODE_LIB_SOURCES[name]===void 0)throw new Error(`node-lib: no vendored file for '${name}'`);return{exports:{},id:name,filename:`node:${name}`,loaded:false}}function compileNodeLib(name,record,require2=nodeLibRequire,process22=nodeLibProcessOf(),binding2=internalBinding){const compiled=new Function("exports","require","module","process","internalBinding","primordials",`${NODE_LIB_SOURCES[name]}
|
|
5768
5768
|
//# sourceURL=node:${name}`);compiled(record.exports,require2,record,process22,binding2,primordialsOf());record.loaded=true;bootstrapNodeLib(name,record.exports,process22)}function bootstrapNodeLib(name,exports$1,process22){var _a22;if(name==="events"){const events=exports$1;const original=events.getMaxListeners;events.getMaxListeners=target=>{if(typeof EventTarget!=="undefined"&&target instanceof EventTarget&&typeof target.getMaxListeners!=="function"&&target[events.kMaxEventTargetListeners]===void 0)return events.defaultMaxListeners;return original(target)};return}if(name==="internal/errors"){const map=exports$1.overrideStackTrace;for(const[key,value]of Object.entries(stackOverrideMap))Object.defineProperty(map,key,{value,configurable:true});return}if(name==="internal/util/debuglog"){const env=process22.env;(_a22=exports$1.initializeDebugEnv)==null?void 0:_a22.call(exports$1,(env==null?void 0:env.NODE_DEBUG)??"");return}if(name==="assert"){const assert=exports$1;if(typeof assert.Assert!=="function"){class Assert{constructor(options){__publicField2(this,"diff");this.diff=(options==null?void 0:options.diff)??"simple"}strictEqual(a,b){var _a32;(_a32=assert.strictEqual)==null?void 0:_a32.call(assert,a,b)}}assert.Assert=Assert}return}if(name==="fs"){const fs2=exports$1;if(typeof fs2.mkdtempDisposableSync!=="function"&&typeof fs2.mkdtempSync==="function"){fs2.mkdtempDisposableSync=(prefix2,options)=>{const tempPath=fs2.mkdtempSync(prefix2,options);const remove2=()=>{var _a32;try{(_a32=fs2.rmSync)==null?void 0:_a32.call(fs2,tempPath,{recursive:true,force:true})}catch{}};return{path:tempPath,remove:remove2,[Symbol.dispose]:remove2}}}}}function nodeLibInternalRequire(specifier){return nodeLibRequire(specifier)}setLibRequire(nodeLibRequire);function loadedModule(name,cache2){return cache2.value??(cache2.value=nodeLibInternalRequire(name))}function lazyModule(name){const cache2={};const own=(target,key)=>Reflect.getOwnPropertyDescriptor(target,key)!==void 0;return new Proxy({},{get:(target,key,receiver)=>own(target,key)?Reflect.get(target,key,receiver):Reflect.get(loadedModule(name,cache2),key),set:(target,key,value,receiver)=>own(target,key)?Reflect.set(target,key,value,receiver):Reflect.set(loadedModule(name,cache2),key,value),has:(target,key)=>own(target,key)||Reflect.has(loadedModule(name,cache2),key),defineProperty:(target,key,descriptor)=>{const module=loadedModule(name,cache2);if(descriptor.configurable===false){if(!Reflect.defineProperty(target,key,descriptor))return false;Reflect.defineProperty(module,key,{...descriptor,configurable:true});return true}return Reflect.defineProperty(module,key,descriptor)||Reflect.defineProperty(target,key,descriptor)},deleteProperty:(target,key)=>{if(own(target,key)&&!Reflect.deleteProperty(target,key))return false;return Reflect.deleteProperty(loadedModule(name,cache2),key)},ownKeys:target=>{const keys=Reflect.ownKeys(target);for(const key of Reflect.ownKeys(loadedModule(name,cache2)))if(!keys.includes(key))keys.push(key);return keys},getOwnPropertyDescriptor:(target,key)=>{const mine=Reflect.getOwnPropertyDescriptor(target,key);if(mine!==void 0)return mine;const descriptor=Reflect.getOwnPropertyDescriptor(loadedModule(name,cache2),key);return descriptor===void 0?void 0:{...descriptor,configurable:true}}})}function lazyExport(name,key){const cache2={};const stand=Object.create(null);let grafted=false;const real=()=>{const value=loadedModule(name,cache2)[key];if(!grafted){grafted=true;const prototype=value.prototype;if(prototype)Object.setPrototypeOf(stand,prototype)}return value};const target=function stand2(){};return new Proxy(target,{get:(_t2,propertyKey,receiver)=>{if(propertyKey==="prototype"&&!grafted&&!cache2.value)return stand;return Reflect.get(real(),propertyKey,receiver)},set:(_t2,propertyKey,value)=>Reflect.set(real(),propertyKey,value),has:(_t2,propertyKey)=>Reflect.has(real(),propertyKey),getPrototypeOf:()=>Reflect.getPrototypeOf(real()),ownKeys:()=>{const own=Reflect.ownKeys(target);return[...Reflect.ownKeys(real()).filter(key2=>!own.includes(key2)),...own]},getOwnPropertyDescriptor:(_t2,propertyKey)=>{const fromTarget=Reflect.getOwnPropertyDescriptor(target,propertyKey);if(fromTarget!==void 0)return fromTarget;const own=Reflect.getOwnPropertyDescriptor(real(),propertyKey);return own===void 0?void 0:{...own,configurable:true}},apply:(_t2,thisArg,args)=>Reflect.apply(real(),thisArg,args),construct:(_t2,args,newTarget)=>Reflect.construct(real(),args,newTarget===target?real():newTarget)})}var streamModule=lazyModule("stream");lazyExport("stream","Stream");var Readable=lazyExport("stream","Readable");lazyExport("stream","Writable");lazyExport("stream","Duplex");lazyExport("stream","Transform");lazyExport("stream","PassThrough");lazyExport("stream","pipeline");lazyExport("stream","finished");lazyModule("stream/promises");var streamPromisesModule=lazyModule("stream/promises");var nodeInodes=new WeakMap;var nextInode=1;function inodeFor(node){let inode=nodeInodes.get(node);if(inode===void 0){inode=nextInode++;nodeInodes.set(node,inode)}return inode}function createNodeError(code22,syscall,path22,message){const errno={ENOENT:-2,ENOTDIR:-20,EISDIR:-21,EEXIST:-17,ENOTEMPTY:-39,EROFS:-30};const messages22={ENOENT:"no such file or directory",ENOTDIR:"not a directory",EISDIR:"is a directory",EEXIST:"file already exists",ENOTEMPTY:"directory not empty",EROFS:"read-only file system"};const err22=new Error(`${code22}: ${messages22[code22]}, ${syscall} '${path22}'`);err22.code=code22;err22.errno=errno[code22];err22.syscall=syscall;err22.path=path22;return err22}var VirtualFS=class _VirtualFS{constructor(){__publicField2(this,"root");__publicField2(this,"encoder",new TextEncoder);__publicField2(this,"decoder",new TextDecoder);__publicField2(this,"watchers",new Map);__publicField2(this,"eventListeners",new Map);this.root={type:"directory",children:new Map,mtime:Date.now()}}on(event,listener){if(!this.eventListeners.has(event)){this.eventListeners.set(event,new Set)}this.eventListeners.get(event).add(listener);return this}off(event,listener){const listeners=this.eventListeners.get(event);if(listeners){listeners.delete(listener)}return this}emit(event,...args){const listeners=this.eventListeners.get(event);if(listeners){for(const listener of listeners){try{listener(...args)}catch(err22){console.error("Error in VFS event listener:",err22)}}}}toSnapshot(){const files=[];this.serializeNode("/",this.root,files);return{files}}serializeNode(path22,node,files){if(node.mount)return;const metadata={...node.mode!==void 0?{mode:node.mode&4095}:{},mtimeMs:node.mtime};if(node.type==="file"){let content="";if(node.content&&node.content.length>0){content=uint8ToBase64(node.content)}files.push({path:path22,type:"file",content,...metadata})}else if(node.type==="symlink"){files.push({path:path22,type:"symlink",target:node.target,...metadata})}else if(node.type==="directory"){files.push({path:path22,type:"directory",...metadata});if(node.children){for(const[name,child]of node.children){const childPath=path22==="/"?`/${name}`:`${path22}/${name}`;this.serializeNode(childPath,child,files)}}}}static fromSnapshot(snapshot){const vfs2=new _VirtualFS;const sortedFiles=snapshot.files.map((entry,i22)=>({entry,depth:entry.path.split("/").length,i:i22})).sort((a,b)=>a.depth-b.depth||a.i-b.i).map(x=>x.entry);for(const entry of sortedFiles){if(entry.path==="/")continue;if(entry.type==="directory"){vfs2.mkdirSync(entry.path,{recursive:true})}else if(entry.type==="symlink"){const parentPath=entry.path.substring(0,entry.path.lastIndexOf("/"))||"/";if(parentPath!=="/"&&!vfs2.existsSync(parentPath)){vfs2.mkdirSync(parentPath,{recursive:true})}vfs2.symlinkSync(entry.target,entry.path)}else if(entry.type==="file"){let content;if(entry.content){content=base64ToUint8(entry.content)}else{content=new Uint8Array(0)}const parentPath=entry.path.substring(0,entry.path.lastIndexOf("/"))||"/";if(parentPath!=="/"&&!vfs2.existsSync(parentPath)){vfs2.mkdirSync(parentPath,{recursive:true})}vfs2.writeFileSyncInternal(entry.path,content,false)}}for(const entry of sortedFiles){if(entry.type==="symlink")continue;if(entry.mode!==void 0)vfs2.chmodSync(entry.path,entry.mode);if(entry.mtimeMs!==void 0)vfs2.utimesSync(entry.path,new Date(entry.mtimeMs),new Date(entry.mtimeMs))}return vfs2}writeFileSyncInternal(path22,data2,emitEvent){const normalized=this.normalizePath(path22);this.assertWritable(normalized,"open");const parentPath=this.getParentPath(normalized);const basename2=this.getBasename(normalized);if(!basename2){throw new Error(`EISDIR: illegal operation on a directory, '${path22}'`)}const parent=this.ensureDirectory(parentPath);const existing=parent.children.get(basename2);const existed=existing!==void 0;const content=typeof data2==="string"?this.encoder.encode(data2):data2;if(existed&&existing.type==="file"){existing.content=content;existing.mtime=Date.now();existing.room=void 0;existing.lent=true}else{parent.children.set(basename2,{type:"file",content,mtime:Date.now()})}if(emitEvent){this.notifyWatchers(normalized,existed?"change":"rename");this.emit("change",normalized,typeof data2==="string"?data2:this.decoder.decode(data2))}}normalizePath(path22){if(!path22.startsWith("/")){path22="/"+path22}const parts=path22.split("/").filter(Boolean);const resolved=[];for(const part of parts){if(part===".."){resolved.pop()}else if(part!=="."){resolved.push(part)}}return"/"+resolved.join("/")}getPathSegments(path22){return this.normalizePath(path22).split("/").filter(Boolean)}getParentPath(path22){const normalized=this.normalizePath(path22);const lastSlash=normalized.lastIndexOf("/");return lastSlash<=0?"/":normalized.slice(0,lastSlash)}getBasename(path22){const normalized=this.normalizePath(path22);const lastSlash=normalized.lastIndexOf("/");return normalized.slice(lastSlash+1)}getNode(path22){return this.__substrateNode(path22,true,0)}__substrateNode(path22,follow,depth4){if(depth4>40)throw createNodeError("ELOOP","stat",path22);const segments=this.getPathSegments(path22);let current3=this.root;let mounted;for(let index2=0;index2<segments.length;index2+=1){if(current3.type!=="directory"||!mounted&&!current3.children){return void 0}const child=mounted?mounted.tree.node("/"+segments.slice(mounted.at+1,index2+1).join("/")):current3.children.get(segments[index2]);if(!child){return void 0}if(child.type==="symlink"&&(follow||index2<segments.length-1)){const linkPath="/"+segments.slice(0,index2+1).join("/");const rest=segments.slice(index2+1).join("/");const target=this.__substrateLinkTarget(linkPath,child.target);return this.__substrateNode(rest?target+"/"+rest:target,follow,depth4+1)}if(!mounted&&child.mount){mounted={tree:child.mount,at:index2};current3=child.mount.node("/")??child}else{current3=child}}return current3}mount(path22,tree2){var _a22;const normalized=this.normalizePath(path22);const basename2=this.getBasename(normalized);if(!basename2)throw createNodeError("EINVAL","mount",path22);const parent=this.ensureDirectory(this.getParentPath(normalized));const existing=parent.children.get(basename2);if(existing&&(existing.type!=="directory"||existing.mount||((_a22=existing.children)==null?void 0:_a22.size))){throw createNodeError("EEXIST","mount",path22)}const node={type:"directory",children:new Map,mtime:Date.now(),mode:365,mount:tree2};parent.children.set(basename2,node);return()=>{if(parent.children.get(basename2)===node)parent.children.delete(basename2)}}assertWritable(path22,syscall){var _a22;let current3=this.root;for(const segment of this.getPathSegments(path22)){current3=(_a22=current3==null?void 0:current3.children)==null?void 0:_a22.get(segment);if(!current3)return;if(current3.mount)throw createNodeError("EROFS",syscall,path22)}}__substrateLinkTarget(linkPath,target){return this.normalizePath(target.startsWith("/")?target:this.getParentPath(linkPath)+"/"+target)}symlinkSync(target,path22){const normalized=this.normalizePath(path22);this.assertWritable(normalized,"symlink");const parentPath=this.getParentPath(normalized);const basename2=this.getBasename(normalized);const parent=this.getNode(parentPath);if(!parent||parent.type!=="directory"){throw createNodeError("ENOENT","symlink",path22)}if(parent.children.has(basename2)){throw createNodeError("EEXIST","symlink",path22)}parent.children.set(basename2,{type:"symlink",target:String(target),mtime:Date.now()});this.notifyWatchers(normalized,"rename")}readlinkSync(path22){const node=this.__substrateNode(path22,false,0);if(!node){throw createNodeError("ENOENT","readlink",path22)}if(node.type!=="symlink"){throw createNodeError("EINVAL","readlink",path22)}return node.target}ensureDirectory(path22){const segments=this.getPathSegments(path22);let current3=this.root;for(let index2=0;index2<segments.length;index2+=1){const segment=segments[index2];if(!current3.children){current3.children=new Map}let child=current3.children.get(segment);if(!child){child={type:"directory",children:new Map,mtime:Date.now()};current3.children.set(segment,child);this.notifyWatchers("/"+segments.slice(0,index2+1).join("/"),"rename")}else if(child.type==="symlink"){const linkPath="/"+segments.slice(0,index2+1).join("/");const rest=segments.slice(index2+1).join("/");const target=this.__substrateLinkTarget(linkPath,child.target);return this.ensureDirectory(rest?target+"/"+rest:target)}else if(child.type!=="directory"){throw new Error(`ENOTDIR: not a directory, '${path22}'`)}current3=child}return current3}existsSync(path22){return this.getNode(path22)!==void 0}chmodSync(path22,mode){this.assertWritable(path22,"chmod");const node=this.getNode(path22);if(!node)throw createNodeError("ENOENT","chmod",path22);node.mode=mode&4095}utimesSync(path22,atime,mtime){this.assertWritable(path22,"utime");const node=this.getNode(path22);if(!node)throw createNodeError("ENOENT","utimes",path22);node.atime=atime instanceof Date?atime.getTime():atime*1e3;node.mtime=mtime instanceof Date?mtime.getTime():mtime*1e3}statSync(path22,options){var _a22;const node=this.getNode(path22);if(!node){if((options==null?void 0:options.throwIfNoEntry)===false)return void 0;throw createNodeError("ENOENT","stat",path22)}const size=node.type==="file"?((_a22=node.content)==null?void 0:_a22.length)||0:0;const mtime=node.mtime;const atime=node.atime??mtime;return{isFile:()=>node.type==="file",isDirectory:()=>node.type==="directory",isSymbolicLink:()=>false,isBlockDevice:()=>false,isCharacterDevice:()=>false,isFIFO:()=>false,isSocket:()=>false,size,mode:node.mode??(node.type==="directory"?493:420),mtime:new Date(mtime),atime:new Date(atime),ctime:new Date(mtime),birthtime:new Date(mtime),mtimeMs:mtime,atimeMs:atime,ctimeMs:mtime,birthtimeMs:mtime,nlink:1,uid:1e3,gid:1e3,dev:0,ino:inodeFor(node),rdev:0,blksize:4096,blocks:Math.ceil(size/512)}}lstatSync(path22,options){const node=this.__substrateNode(path22,false,0);if(!node){if((options==null?void 0:options.throwIfNoEntry)===false)return void 0;throw createNodeError("ENOENT","lstat",path22)}if(node.type!=="symlink")return this.statSync(path22);const mtime=node.mtime;const atime=node.atime??mtime;return{isFile:()=>false,isDirectory:()=>false,isSymbolicLink:()=>true,isBlockDevice:()=>false,isCharacterDevice:()=>false,isFIFO:()=>false,isSocket:()=>false,size:node.target.length,mode:41471,mtime:new Date(mtime),atime:new Date(atime),ctime:new Date(mtime),birthtime:new Date(mtime),mtimeMs:mtime,atimeMs:atime,ctimeMs:mtime,birthtimeMs:mtime,nlink:1,uid:1e3,gid:1e3,dev:0,ino:inodeFor(node),rdev:0,blksize:4096,blocks:0}}readFileSync(path22,encoding){const node=this.getNode(path22);if(!node){throw createNodeError("ENOENT","open",path22)}if(node.type!=="file"){throw createNodeError("EISDIR","read",path22)}const content=node.content||new Uint8Array(0);if(encoding==="utf8"||encoding==="utf-8"){return this.decoder.decode(content)}node.lent=true;return content}writeFileSync(path22,data2){this.writeFileSyncInternal(path22,data2,true)}appendFileSync(path22,data2){var _a22;const bytes2=typeof data2==="string"?this.encoder.encode(data2):data2;if(this.writeFileSync!==_VirtualFS.prototype.writeFileSync){const existing=this.existsSync(path22)?this.readFileSync(path22):new Uint8Array(0);const whole=new Uint8Array(existing.byteLength+bytes2.byteLength);whole.set(existing,0);whole.set(bytes2,existing.byteLength);this.writeFileSync(path22,whole);return}const normalized=this.normalizePath(path22);const node=this.getNode(normalized);if(!node){this.writeFileSyncInternal(normalized,bytes2.slice(),true);return}if(node.type!=="file")throw createNodeError("EISDIR","open",path22);this.assertWritable(normalized,"open");const current3=node.content??new Uint8Array(0);const length=current3.byteLength+bytes2.byteLength;let room=node.room;if(!room||current3.buffer!==room.buffer||current3.byteOffset!==0||room.byteLength<length){room=new Uint8Array(Math.max(length,current3.byteLength*2,4096));room.set(current3,0)}room.set(bytes2,current3.byteLength);node.content=room.subarray(0,length);node.room=room;node.mtime=Date.now();this.notifyWatchers(normalized,"change");if((_a22=this.eventListeners.get("change"))==null?void 0:_a22.size)this.emit("change",normalized,this.decoder.decode(node.content))}writeAtSync(path22,data2,position){var _a22;if(this.writeFileSync!==_VirtualFS.prototype.writeFileSync){const existing=this.existsSync(path22)?this.readFileSync(path22):new Uint8Array(0);if(data2.byteLength===0&&this.existsSync(path22))return;const whole=new Uint8Array(Math.max(existing.byteLength,position+data2.byteLength));whole.set(existing,0);whole.set(data2,position);this.writeFileSync(path22,whole);return}const normalized=this.normalizePath(path22);const node=this.getNode(normalized);if(!node){const whole=new Uint8Array(position+data2.byteLength);whole.set(data2,position);this.writeFileSyncInternal(normalized,whole,true);return}if(node.type!=="file")throw createNodeError("EISDIR","open",path22);this.assertWritable(normalized,"open");if(data2.byteLength===0)return;const current3=node.content??new Uint8Array(0);const length=Math.max(current3.byteLength,position+data2.byteLength);const held=node;let room=held.room;if(!room||held.lent||current3.buffer!==room.buffer||current3.byteOffset!==0||room.byteLength<length){room=new Uint8Array(Math.max(length,current3.byteLength*2,4096));room.set(current3,0);held.lent=false}else if(position>current3.byteLength){room.fill(0,current3.byteLength,position)}room.set(data2,position);node.content=room.subarray(0,length);node.room=room;node.mtime=Date.now();this.notifyWatchers(normalized,"change");if((_a22=this.eventListeners.get("change"))==null?void 0:_a22.size)this.emit("change",normalized,this.decoder.decode(node.content))}mkdirSync(path22,options){var _a22;const normalized=this.normalizePath(path22);if((options==null?void 0:options.recursive)&&((_a22=this.getNode(normalized))==null?void 0:_a22.type)==="directory")return;this.assertWritable(normalized,"mkdir");if(options==null?void 0:options.recursive){this.ensureDirectory(normalized);return}const parentPath=this.getParentPath(normalized);const basename2=this.getBasename(normalized);if(!basename2){return}const parent=this.getNode(parentPath);if(!parent){throw createNodeError("ENOENT","mkdir",parentPath)}if(parent.type!=="directory"){throw createNodeError("ENOTDIR","mkdir",parentPath)}if(parent.children.has(basename2)){throw createNodeError("EEXIST","mkdir",path22)}parent.children.set(basename2,{type:"directory",children:new Map,mtime:Date.now()});this.notifyWatchers(normalized,"rename")}readdirSync(path22){const node=this.getNode(path22);if(!node){throw createNodeError("ENOENT","scandir",path22)}if(node.type!=="directory"){throw createNodeError("ENOTDIR","scandir",path22)}return Array.from(node.children.keys())}unlinkSync(path22){const normalized=this.normalizePath(path22);this.assertWritable(normalized,"unlink");const parentPath=this.getParentPath(normalized);const basename2=this.getBasename(normalized);const parent=this.getNode(parentPath);if(!parent||parent.type!=="directory"){throw createNodeError("ENOENT","unlink",path22)}const node=parent.children.get(basename2);if(!node){throw createNodeError("ENOENT","unlink",path22)}if(node.type!=="file"&&node.type!=="symlink"){throw createNodeError("EISDIR","unlink",path22)}parent.children.delete(basename2);this.notifyWatchers(normalized,"rename");this.emit("delete",normalized)}rmdirSync(path22){const normalized=this.normalizePath(path22);this.assertWritable(normalized,"rmdir");const parentPath=this.getParentPath(normalized);const basename2=this.getBasename(normalized);if(!basename2){throw new Error(`EPERM: operation not permitted, '${path22}'`)}const parent=this.getNode(parentPath);if(!parent||parent.type!=="directory"){throw createNodeError("ENOENT","rmdir",path22)}const node=parent.children.get(basename2);if(!node){throw createNodeError("ENOENT","rmdir",path22)}if(node.type!=="directory"){throw createNodeError("ENOTDIR","rmdir",path22)}if(node.children.size>0){throw createNodeError("ENOTEMPTY","rmdir",path22)}parent.children.delete(basename2);this.notifyWatchers(normalized,"rename")}renameSync(oldPath,newPath){const normalizedOld=this.normalizePath(oldPath);const normalizedNew=this.normalizePath(newPath);this.assertWritable(normalizedOld,"rename");this.assertWritable(normalizedNew,"rename");const oldParentPath=this.getParentPath(normalizedOld);const oldBasename=this.getBasename(normalizedOld);const newParentPath=this.getParentPath(normalizedNew);const newBasename=this.getBasename(normalizedNew);const oldParent=this.getNode(oldParentPath);if(!oldParent||oldParent.type!=="directory"){throw createNodeError("ENOENT","rename",oldPath)}const node=oldParent.children.get(oldBasename);if(!node){throw createNodeError("ENOENT","rename",oldPath)}const newParent=this.ensureDirectory(newParentPath);oldParent.children.delete(oldBasename);newParent.children.set(newBasename,node);this.notifyWatchers(normalizedOld,"rename");this.notifyWatchers(normalizedNew,"rename")}readFile(path22,optionsOrCallback,callback){const actualCallback=typeof optionsOrCallback==="function"?optionsOrCallback:callback;const encoding=typeof optionsOrCallback==="string"?optionsOrCallback:optionsOrCallback&&typeof optionsOrCallback==="object"?optionsOrCallback.encoding:void 0;const read=()=>encoding?this.readFileSync(path22,encoding):this.readFileSync(path22);if(!actualCallback){return new Promise((resolve2,reject)=>{try{resolve2(read())}catch(err22){reject(err22)}})}try{const data2=read();queueMicrotask(()=>actualCallback(null,data2))}catch(err22){queueMicrotask(()=>actualCallback(err22))}}stat(path22,callback){try{const stats=this.statSync(path22);queueMicrotask(()=>callback(null,stats))}catch(err22){queueMicrotask(()=>callback(err22))}}lstat(path22,callback){try{const stats=this.lstatSync(path22);queueMicrotask(()=>callback(null,stats))}catch(err22){queueMicrotask(()=>callback(err22))}}readdir(path22,optionsOrCallback,callback){const actualCallback=typeof optionsOrCallback==="function"?optionsOrCallback:callback;try{const files=this.readdirSync(path22);if(actualCallback){queueMicrotask(()=>actualCallback(null,files))}}catch(err22){if(actualCallback){queueMicrotask(()=>actualCallback(err22))}}}realpath(path22,callback){try{const resolved=this.realpathSync(path22);queueMicrotask(()=>callback(null,resolved))}catch(err22){queueMicrotask(()=>callback(err22))}}realpathSync(path22){let resolved=this.normalizePath(path22);for(let hops=0;hops<=40;hops+=1){const segments=resolved.split("/").filter(Boolean);let current3=this.root;let mounted;let linked=false;for(let index2=0;index2<segments.length;index2+=1){const child=mounted?mounted.tree.node("/"+segments.slice(mounted.at+1,index2+1).join("/")):current3&¤t3.children?current3.children.get(segments[index2]):void 0;if(!child)throw createNodeError("ENOENT","realpath",path22);if(!mounted&&child.mount)mounted={tree:child.mount,at:index2};if(child.type==="symlink"){const linkPath="/"+segments.slice(0,index2+1).join("/");const rest=segments.slice(index2+1).join("/");const target=this.__substrateLinkTarget(linkPath,child.target);resolved=this.normalizePath(rest?target+"/"+rest:target);linked=true;break}current3=child}if(!linked)return resolved}throw createNodeError("ELOOP","realpath",path22)}watch(filename,optionsOrListener,listener){const normalized=this.normalizePath(filename);let options={};let actualListener;if(typeof optionsOrListener==="function"){actualListener=optionsOrListener}else if(optionsOrListener){options=optionsOrListener;actualListener=listener}else{actualListener=listener}const entry={listener:actualListener||(()=>{}),recursive:options.recursive||false,closed:false};if(!this.watchers.has(normalized)){this.watchers.set(normalized,new Set)}this.watchers.get(normalized).add(entry);const watcher={close:()=>{entry.closed=true;const watcherSet=this.watchers.get(normalized);if(watcherSet){watcherSet.delete(entry);if(watcherSet.size===0){this.watchers.delete(normalized)}}},ref:()=>watcher,unref:()=>watcher};return watcher}notifyWatchers(path22,eventType){const normalized=this.normalizePath(path22);const basename2=this.getBasename(normalized);const directWatchers=this.watchers.get(normalized);if(directWatchers){for(const entry of directWatchers){if(!entry.closed){try{entry.listener(eventType,basename2)}catch(err22){console.error("Error in file watcher:",err22)}}}}let currentPath=this.getParentPath(normalized);let relativePath3=basename2;while(currentPath){const parentWatchers=this.watchers.get(currentPath);if(parentWatchers){for(const entry of parentWatchers){if(!entry.closed){const isDirectChild=this.getParentPath(normalized)===currentPath;if(entry.recursive||isDirectChild){try{entry.listener(eventType,relativePath3)}catch(err22){console.error("Error in file watcher:",err22)}}}}}if(currentPath==="/")break;relativePath3=this.getBasename(currentPath)+"/"+relativePath3;currentPath=this.getParentPath(currentPath)}}accessSync(path22,mode){if(!this.existsSync(path22)){throw createNodeError("ENOENT","access",path22)}}access(path22,modeOrCallback,callback){const actualCallback=typeof modeOrCallback==="function"?modeOrCallback:callback;try{this.accessSync(path22);if(actualCallback)queueMicrotask(()=>actualCallback(null))}catch(err22){if(actualCallback)queueMicrotask(()=>actualCallback(err22))}}copyFileSync(src,dest){const content=this.readFileSync(src);this.writeFileSync(dest,content)}createReadStream(path22,options){const self2=this;const opts=typeof options==="string"?{encoding:options}:options||{};const stream=new Readable;stream.path=path22;stream.bytesRead=0;if(opts.encoding)stream.setEncoding(opts.encoding);setTimeout(()=>{try{let data2=self2.readFileSync(path22);const start=typeof opts.start==="number"?opts.start:0;const end=typeof opts.end==="number"?opts.end+1:data2.length;if(start>0||end<data2.length)data2=data2.subarray(start,Math.max(start,end));stream.bytesRead=data2.length;stream.emit("open");stream.emit("ready");if(data2.length>0)stream.push(Buffer.from(data2.buffer,data2.byteOffset,data2.byteLength));stream.push(null)}catch(err22){stream.emit("error",err22)}},0);return stream}createWriteStream(path22){const self2=this;const chunks=[];const listeners={};const encoder22=new TextEncoder;return{write(data2){const chunk=typeof data2==="string"?encoder22.encode(data2):data2;chunks.push(chunk);return true},end(data2){var _a22,_b22;if(data2){const chunk=typeof data2==="string"?encoder22.encode(data2):data2;chunks.push(chunk)}const totalLength=chunks.reduce((sum,chunk)=>sum+chunk.length,0);const combined=new Uint8Array(totalLength);let offset2=0;for(const chunk of chunks){combined.set(chunk,offset2);offset2+=chunk.length}self2.writeFileSync(path22,combined);(_a22=listeners["finish"])==null?void 0:_a22.forEach(cb2=>cb2());(_b22=listeners["close"])==null?void 0:_b22.forEach(cb2=>cb2())},on(event,cb2){if(!listeners[event])listeners[event]=[];listeners[event].push(cb2);return this}}}};var owners=new WeakMap;var constructors=new WeakMap;var intrinsicPromise=Promise;function promiseOwner(promise){return promise!==null&&typeof promise==="object"?owners.get(promise):void 0}function guestPromise(owner){let constructor=constructors.get(owner);if(!constructor){constructor=new Proxy(intrinsicPromise,{construct(target,args){const promise=Reflect.construct(target,args,target);owners.set(promise,owner);return promise}});constructors.set(owner,constructor)}return constructor}var kIsDisturbed=Symbol.for("nodejs.stream.disturbed");function isAsyncIterableBody(body){if(body===null||typeof body!=="object")return false;if(typeof ReadableStream==="function"&&body instanceof ReadableStream)return false;if(typeof Blob==="function"&&body instanceof Blob)return false;if(body instanceof ArrayBuffer||ArrayBuffer.isView(body))return false;if(typeof FormData==="function"&&body instanceof FormData)return false;if(body instanceof URLSearchParams)return false;return typeof body[Symbol.asyncIterator]==="function"}function refuseDisturbed(body){const stream=body;const disturbed=stream[kIsDisturbed]!==void 0?Boolean(stream[kIsDisturbed]):Boolean(stream.readableDidRead||stream.readableAborted);if(disturbed||stream.locked===true)throw new TypeError("Response body object should not be disturbed or locked")}function streamFrom(iterable){let iterator;return new ReadableStream({async start(){iterator=iterable[Symbol.asyncIterator]()},async pull(controller){for(;;){const{done,value}=await iterator.next();if(done){controller.close();return}const bytes2=Buffer$9.isBuffer(value)?value:Buffer$9.from(value);if(bytes2.byteLength){controller.enqueue(new Uint8Array(bytes2));return}}},async cancel(){var _a22;await((_a22=iterator==null?void 0:iterator.return)==null?void 0:_a22.call(iterator))}},{highWaterMark:0})}var REQUEST_INIT_MEMBERS=["method","headers","referrer","referrerPolicy","mode","credentials","cache","redirect","integrity","keepalive","signal","window","duplex","priority"];function withNodeRequestBody(init){if(!init)return init;const body=init.body;if(!isAsyncIterableBody(body))return init;refuseDisturbed(body);const copy2={};for(const member of Object.keys(init))if(member!=="body")copy2[member]=init[member];for(const member of REQUEST_INIT_MEMBERS){if(member in copy2)continue;const value=init[member];if(value!==void 0)copy2[member]=value}copy2.body=streamFrom(body);return copy2}function nodeResponseBody(body){if(!isAsyncIterableBody(body))return body;refuseDisturbed(body);return streamFrom(body)}var transport;var staticRequestBodies=new WeakSet;function rememberRequestBodySource(request,input,init){if(!request.body)return;if((init==null?void 0:init.body)!=null?!(init.body instanceof ReadableStream):typeof input==="object"&&staticRequestBodies.has(input)){staticRequestBodies.add(request)}}function requestHasStaticBody(request){return staticRequestBodies.has(request)}function installFetchTransport(adapter){const previous=transport;transport=adapter;return()=>{if(transport===adapter)transport=previous}}function activity(owner,cancel){let ended2=false;let pending=0;const handle={close(){if(ended2)return;release2();cancel()}};const release2=()=>{if(ended2)return;ended2=true;releaseHandle(handle)};registerHandle(handle);__adoptHandle(handle,owner);unrefHandle(handle);return{hold(){if(ended2)throw new Error("Fetch request has already ended.");pending+=1;refHandle(handle);let held=true;return()=>{if(!held)return;held=false;if(--pending===0&&!ended2)unrefHandle(handle)}},release:release2}}function guestFetch(process22,fallback){return function fetch2(input,init){const adapter=transport;const owner=adapter?__tokenForProcess(process22):null;const ended2=()=>{var _a22;return owner!==null&&((_a22=__runFor(owner))==null?void 0:_a22.process)!==process22};const stopped2=()=>new DOMException("The requesting process has ended.","AbortError");if(adapter&&ended2())return Promise.reject(stopped2());try{init=withNodeRequestBody(init)}catch(error){return Promise.reject(error)}if(!adapter)return fallback.call(globalThis,input,init);const context2={begin(cancel){if(ended2())throw stopped2();return activity(owner,cancel)}};const dispatch=()=>adapter(input,init,context2);return owner===null?dispatch():enterRun(owner,dispatch)}}var INSTALLED=Symbol.for("tabnode.response.keepsSetCookie");function withCookies(own,given){const headers=new Headers(own);if(!given)return headers;const cookies=[];if(typeof given.getSetCookie==="function")cookies.push(...given.getSetCookie());else given.forEach((value,name)=>{if(name==="set-cookie")cookies.push(value)});if(cookies.length){headers.delete("set-cookie");for(const cookie of cookies)headers.append("set-cookie",cookie)}const cookie2=given.get("set-cookie2");if(cookie2!==null)headers.set("set-cookie2",cookie2);return headers}function givenHeaders(init){const headers=init==null?void 0:init.headers;return headers===void 0||headers===null?void 0:new Headers(headers)}function withHeaders(init,headers){const status=init==null?void 0:init.status;const statusText=init==null?void 0:init.statusText;return{headers,...status===void 0?{}:{status},...statusText===void 0?{}:{statusText}}}function installNodeResponse(target){var _a22;const Native=target.Response;if(typeof Native!=="function"||Native[INSTALLED])return;const proto=Native.prototype;let nativeHeaders;for(let at22=proto;at22&&!nativeHeaders;at22=Object.getPrototypeOf(at22))nativeHeaders=(_a22=Object.getOwnPropertyDescriptor(at22,"headers"))==null?void 0:_a22.get;const nativeFormData=proto.formData;const nativeBlob=proto.blob;const nativeArrayBuffer=proto.arrayBuffer;const nativeClone=proto.clone;if(!nativeHeaders)return;const kept=new WeakMap;const NodeResponse=function Response2(body,init){if(!new.target)throw new TypeError("Class constructor Response cannot be invoked without 'new'");const given=givenHeaders(init);const response=Reflect.construct(Native,[nodeResponseBody(body),given?withHeaders(init,given):init],new.target===NodeResponse?Native:new.target);kept.set(response,withCookies(nativeHeaders.call(response),given));return response};NodeResponse.prototype=proto;Object.defineProperty(NodeResponse,"length",{value:0,configurable:true});Object.defineProperty(NodeResponse,INSTALLED,{value:true});Object.setPrototypeOf(NodeResponse,Object.getPrototypeOf(Native));Object.defineProperty(NodeResponse,"json",{value:function json(data2,init){const given=givenHeaders(init);const response=Native.json(data2,given?withHeaders(init,given):init);kept.set(response,withCookies(nativeHeaders.call(response),given));return response},writable:true,configurable:true});Object.defineProperty(NodeResponse,"redirect",{value:function redirect(url2,status){return Native.redirect(url2,status)},writable:true,configurable:true});Object.defineProperty(NodeResponse,"error",{value:function error(){return Native.error()},writable:true,configurable:true});defineOnHost(proto,"headers",{get(){return kept.get(this)??nativeHeaders.call(this)},enumerable:true,configurable:true});defineOnHost(proto,"constructor",{value:NodeResponse,writable:true,enumerable:false,configurable:true});defineOnHost(proto,"clone",{value:function clone(){const copy2=nativeClone.call(this);const headers=kept.get(this);if(headers)kept.set(copy2,new Headers(headers));return copy2},writable:true,enumerable:true,configurable:true});const changedType=response=>{const headers=kept.get(response);if(!headers)return void 0;const current3=headers.get("content-type");return current3===nativeHeaders.call(response).get("content-type")?void 0:current3};defineOnHost(proto,"formData",{value:async function formData(){const type2=changedType(this);if(type2===void 0)return nativeFormData.call(this);const bytes2=await nativeArrayBuffer.call(this);return nativeFormData.call(Reflect.construct(Native,[bytes2,type2===null?{}:{headers:{"content-type":type2}}]))},writable:true,enumerable:true,configurable:true});defineOnHost(proto,"blob",{value:async function blob(){const type2=changedType(this);if(type2===void 0)return nativeBlob.call(this);return new Blob([await nativeArrayBuffer.call(this)],type2===null?{}:{type:type2})},writable:true,enumerable:true,configurable:true});takeFromHost(target,"Response",NodeResponse)}function simpleHash(str){let hash22=0;for(let i22=0;i22<str.length;i22++){hash22=(hash22<<5)-hash22+str.charCodeAt(i22);hash22|=0}return hash22.toString(36)}var SHA256_K=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);var SHA256_W=new Uint32Array(64);var SHA2_32B=class extends HashMD{constructor(outputLen,IV){super(64,outputLen,8,false);__publicField2(this,"A",0);__publicField2(this,"B",0);__publicField2(this,"C",0);__publicField2(this,"D",0);__publicField2(this,"E",0);__publicField2(this,"F",0);__publicField2(this,"G",0);__publicField2(this,"H",0);this.A=IV[0]|0;this.B=IV[1]|0;this.C=IV[2]|0;this.D=IV[3]|0;this.E=IV[4]|0;this.F=IV[5]|0;this.G=IV[6]|0;this.H=IV[7]|0}get(){const{A:A10,B,C,D:D10,E:E10,F,G:G10,H}=this;return[A10,B,C,D10,E10,F,G10,H]}set(A10,B,C,D10,E10,F,G10,H){this.A=A10|0;this.B=B|0;this.C=C|0;this.D=D10|0;this.E=E10|0;this.F=F|0;this.G=G10|0;this.H=H|0}_cloneInto(to2){(to2||(to2=new this.constructor)).set(...this.get());return this._cloneIntoMeta(to2)}process(view,offset2){for(let i22=0;i22<16;i22++,offset2+=4)SHA256_W[i22]=view.getUint32(offset2,false);for(let i22=16;i22<64;i22++){const W15=SHA256_W[i22-15];const W22=SHA256_W[i22-2];const s02=rotr(W15,7)^rotr(W15,18)^W15>>>3;const s12=rotr(W22,17)^rotr(W22,19)^W22>>>10;SHA256_W[i22]=s12+SHA256_W[i22-7]+s02+SHA256_W[i22-16]|0}let{A:A10,B,C,D:D10,E:E10,F,G:G10,H}=this;for(let i22=0;i22<64;i22++){const sigma12=rotr(E10,6)^rotr(E10,11)^rotr(E10,25);const T12=H+sigma12+Chi(E10,F,G10)+SHA256_K[i22]+SHA256_W[i22]|0;const sigma02=rotr(A10,2)^rotr(A10,13)^rotr(A10,22);const T22=sigma02+Maj(A10,B,C)|0;H=G10;G10=F;F=E10;E10=D10+T12|0;D10=C;C=B;B=A10;A10=T12+T22|0}A10=A10+this.A|0;B=B+this.B|0;C=C+this.C|0;D10=D10+this.D|0;E10=E10+this.E|0;F=F+this.F|0;G10=G10+this.G|0;H=H+this.H|0;this.set(A10,B,C,D10,E10,F,G10,H)}roundClean(){clean$1(SHA256_W)}destroy(){this.destroyed=true;this.set(0,0,0,0,0,0,0,0);clean$1(this.buffer)}};var _SHA256=class extends SHA2_32B{constructor(){super(32,SHA256_IV)}};var sha256=createHasher(()=>new _SHA256,oidNist(1));var fsModule=lazyModule("fs");lazyModule("internal/fs/promises");function fsModuleFor(process22){return loadNodeLibFor(process22,"fs")}function boundTo(tree2,value){if(typeof value==="function"){return(...args)=>withFilesystem(tree2,()=>value(...args))}if(value!==null&&typeof value==="object"&&!Array.isArray(value)){return new Proxy(value,{get:(target,key)=>boundTo(tree2,Reflect.get(target,key))})}return value}function createFsShim(tree2,_getCwd){const own=(target,key)=>Reflect.getOwnPropertyDescriptor(target,key)!==void 0;return new Proxy({},{get:(target,key,receiver)=>own(target,key)?Reflect.get(target,key,receiver):boundTo(tree2,Reflect.get(fsModule,key)),has:(target,key)=>own(target,key)||Reflect.has(fsModule,key),ownKeys:target=>{const keys=Reflect.ownKeys(target);for(const key of Reflect.ownKeys(fsModule))if(!keys.includes(key))keys.push(key);return keys},getOwnPropertyDescriptor:(target,key)=>{const mine=Reflect.getOwnPropertyDescriptor(target,key);if(mine!==void 0)return mine;const descriptor=Reflect.getOwnPropertyDescriptor(fsModule,key);return descriptor===void 0?void 0:{...descriptor,configurable:true}}})}var httpModule=lazyModule("http");var httpsModule=lazyModule("https");var httpCommonModule=lazyModule("_http_common");var httpIncomingModule=lazyModule("_http_incoming");var httpOutgoingModule=lazyModule("_http_outgoing");var httpServerModule=lazyModule("_http_server");var httpClientModule=lazyModule("_http_client");var httpAgentModule=lazyModule("_http_agent");var netModule=loadNodeLib("net");netModule.Socket;var Server=netModule.Server;netModule.createServer;netModule.createConnection;netModule.connect;netModule.isIP;netModule.isIPv4;netModule.isIPv6;var _decoder=new TextDecoder;var VirtualFSAdapter=class{constructor(vfs2){this.vfs=vfs2}async readFile(path22,options){const encoding=typeof options==="string"?options:options==null?void 0:options.encoding;if(!encoding||encoding==="utf8"||encoding==="utf-8"){return this.vfs.readFileSync(path22,"utf8")}if(encoding==="binary"||encoding==="latin1"){const buffer2=this.vfs.readFileSync(path22);return uint8ToBinaryString(buffer2)}return this.vfs.readFileSync(path22,"utf8")}async readFileBuffer(path22){return this.vfs.readFileSync(path22)}async writeFile(path22,content,_options2){this.vfs.writeFileSync(path22,content)}async appendFile(path22,content,_options2){let existing="";try{existing=this.vfs.readFileSync(path22,"utf8")}catch{}const newContent=typeof content==="string"?content:_decoder.decode(content);this.vfs.writeFileSync(path22,existing+newContent)}async exists(path22){return this.vfs.existsSync(path22)}async stat(path22){const stats=this.vfs.statSync(path22);const isFile2=stats.isFile();const isDirectory=stats.isDirectory();let size=0;if(isFile2){try{const content=this.vfs.readFileSync(path22);size=content.length}catch{}}const isExecutable=isFile2&&path22.includes("/node_modules/.bin/");return{isFile:isFile2,isDirectory,isSymbolicLink:false,mode:isDirectory?493:isExecutable?493:420,size,mtime:new Date}}async mkdir(path22,options){this.vfs.mkdirSync(path22,options)}async readdir(path22){return this.vfs.readdirSync(path22)}async readdirWithFileTypes(path22){const entries=this.vfs.readdirSync(path22);const result=[];for(const name of entries){const fullPath=path22==="/"?`/${name}`:`${path22}/${name}`;try{const stats=this.vfs.statSync(fullPath);result.push({name,isFile:stats.isFile(),isDirectory:stats.isDirectory(),isSymbolicLink:false})}catch{}}return result}async rm(path22,options){const exists=this.vfs.existsSync(path22);if(!exists){if(options==null?void 0:options.force){return}throw createNodeError("ENOENT","rm",path22)}const stats=this.vfs.statSync(path22);if(stats.isFile()){this.vfs.unlinkSync(path22)}else if(stats.isDirectory()){if(options==null?void 0:options.recursive){await this.rmRecursive(path22)}else{this.vfs.rmdirSync(path22)}}}async rmRecursive(path22){const entries=this.vfs.readdirSync(path22);for(const entry of entries){const fullPath=path22==="/"?`/${entry}`:`${path22}/${entry}`;const stats=this.vfs.statSync(fullPath);if(stats.isDirectory()){await this.rmRecursive(fullPath)}else{this.vfs.unlinkSync(fullPath)}}this.vfs.rmdirSync(path22)}async cp(src,dest,options){const stats=this.vfs.statSync(src);if(stats.isFile()){const content=this.vfs.readFileSync(src);this.vfs.writeFileSync(dest,content)}else if(stats.isDirectory()){if(!(options==null?void 0:options.recursive)){throw new Error(`EISDIR: illegal operation on a directory, cannot copy '${src}'`)}await this.cpRecursive(src,dest)}}async cpRecursive(src,dest){this.vfs.mkdirSync(dest,{recursive:true});const entries=this.vfs.readdirSync(src);for(const entry of entries){const srcPath=src==="/"?`/${entry}`:`${src}/${entry}`;const destPath=dest==="/"?`/${entry}`:`${dest}/${entry}`;const stats=this.vfs.statSync(srcPath);if(stats.isDirectory()){await this.cpRecursive(srcPath,destPath)}else{const content=this.vfs.readFileSync(srcPath);this.vfs.writeFileSync(destPath,content)}}}async mv(src,dest){this.vfs.renameSync(src,dest)}resolvePath(base,path22){if(path22.startsWith("/")){return this.normalizePath(path22)}const combined=base.endsWith("/")?`${base}${path22}`:`${base}/${path22}`;return this.normalizePath(combined)}normalizePath(path22){if(!path22.startsWith("/")){path22="/"+path22}const parts=path22.split("/").filter(Boolean);const resolved=[];for(const part of parts){if(part===".."){resolved.pop()}else if(part!=="."){resolved.push(part)}}return"/"+resolved.join("/")}getAllPaths(){const paths=[];this.collectPaths("/",paths);return paths}collectPaths(dir,paths){try{const entries=this.vfs.readdirSync(dir);for(const entry of entries){const fullPath=dir==="/"?`/${entry}`:`${dir}/${entry}`;paths.push(fullPath);try{const stats=this.vfs.statSync(fullPath);if(stats.isDirectory()){this.collectPaths(fullPath,paths)}}catch{}}}catch{}}async chmod(_path,_mode){if(!this.vfs.existsSync(_path)){throw createNodeError("ENOENT","chmod",_path)}}async symlink(_target,_linkPath){throw new Error("Symbolic links are not supported in VirtualFS")}async link(_existingPath,_newPath){throw new Error("Hard links are not supported in VirtualFS")}async readlink(_path){throw new Error("Symbolic links are not supported in VirtualFS")}async lstat(path22){return this.stat(path22)}async realpath(path22){if(!this.vfs.existsSync(path22)){throw createNodeError("ENOENT","realpath",path22)}return this.normalizePath(path22)}async utimes(path22,_atime,_mtime){if(!this.vfs.existsSync(path22)){throw createNodeError("ENOENT","utimes",path22)}}};var host;var installed=false;var started=false;var localToken;var localStarted=false;function nodeProcessHostInstalled(){return installed}function nodeProcessRealmToken(){return localStarted?localToken??null:null}var HostTransformStream=globalThis.TransformStream;var HostTextEncoder=globalThis.TextEncoder;function nodeProcessInput(streams2){var _a22,_b22;if(streams2==null?void 0:streams2.stdinStream)return{stream:streams2.stdinStream,dispose(){}};if(!streams2||!streams2.stdinOpen&&!streams2.held)return{dispose(){}};let inputController;const pipe=new HostTransformStream({start(controller){inputController=controller}});const writer=pipe.writable.getWriter();void writer.closed.catch(()=>{});const encoder22=new HostTextEncoder;let disposed=false;let ended2=false;const write=chunk=>{if(chunk===null){if(ended2)return Promise.resolve();ended2=true;return writer.close()}if(ended2||disposed)return Promise.reject(new Error("Node process input is closed."));const bytes2=typeof chunk==="string"?encoder22.encode(chunk):new Uint8Array(chunk);return writer.write(bytes2)};const dispose=()=>{var _a32,_b3;if(disposed)return;disposed=true;(_a32=streams2.signal)==null?void 0:_a32.removeEventListener("abort",dispose);inputController.error(((_b3=streams2.signal)==null?void 0:_b3.reason)??new Error("Node process input stopped."))};(_a22=streams2.signal)==null?void 0:_a22.addEventListener("abort",dispose,{once:true});if((_b22=streams2.signal)==null?void 0:_b22.aborted)dispose();streams2.stdin={emit(){},push(chunk){void write(chunk).catch(dispose);return(writer.desiredSize??0)>0},writeAsync:write};return{stream:{async*[Symbol.asyncIterator](){const reader=pipe.readable.getReader();void reader.closed.catch(()=>{});let completed=false;try{for(;;){const next2=await reader.read();if(next2.done){completed=true;return}yield next2.value}}finally{reader.releaseLock();if(!completed)dispose()}}},dispose}}function installNodeProcessHost(next2,token){if(installed||started)throw new Error("Node process host must be installed once before Node execution.");if(typeof(next2==null?void 0:next2.run)!=="function"||token!==void 0&&(typeof token!=="string"||!token.length)){throw new Error("Invalid Node process host.")}host=next2;localToken=token;installed=true}function nodeProcessHostFor(token){started=true;if(!host)return void 0;if(token===null)throw new Error("Isolated Node execution requires a named run.");if(token!==localToken)return host;if(localStarted)throw new Error("This worker has already executed its admitted Node process.");localStarted=true;return void 0}function createNodeResolver(options){const{fs:fs2}=options;const normalize22=path22=>{const parts=[];for(const part of path22.split("/")){if(part===""||part===".")continue;if(part===".."){parts.pop();continue}parts.push(part)}return`/${parts.join("/")}`};const manifests=new Map;const isFile2=path22=>{var _a22;try{return((_a22=fs2.statSync(path22,{throwIfNoEntry:false}))==null?void 0:_a22.isFile())??false}catch{return false}};const isDirectory=path22=>{var _a22;try{return((_a22=fs2.statSync(path22,{throwIfNoEntry:false}))==null?void 0:_a22.isDirectory())??false}catch{return false}};const manifest=directory2=>{const path22=`${directory2==="/"?"":directory2}/package.json`;if(manifests.has(path22))return manifests.get(path22);let parsed=null;if(isFile2(path22)){try{const text=fs2.readFileSync(path22,"utf8");parsed=JSON.parse(typeof text==="string"?text:new TextDecoder().decode(text))}catch{parsed=null}}manifests.set(path22,parsed);return parsed};const join22=(base,relative22)=>normalize22(relative22.startsWith("/")?relative22:`${base}/${relative22}`);const parent=path22=>{const index2=path22.lastIndexOf("/");return index2<=0?"/":path22.slice(0,index2)};const typescriptSibling={".js":".ts",".mjs":".mts",".cjs":".cts",".jsx":".tsx"};const loadAsFile=path22=>{if(isFile2(path22))return path22;for(const extension of options.extensions)if(isFile2(path22+extension))return path22+extension;const dot=path22.lastIndexOf(".");const sibling2=dot>path22.lastIndexOf("/")?typescriptSibling[path22.slice(dot)]:void 0;if(sibling2&&options.extensions.includes(sibling2)&&isFile2(path22.slice(0,dot)+sibling2))return path22.slice(0,dot)+sibling2;return null};const loadIndex=path22=>{for(const extension of options.extensions)if(isFile2(`${path22}/index${extension}`))return`${path22}/index${extension}`;return null};const loadAsDirectory=path22=>{if(!isDirectory(path22))return null;const pkg=manifest(path22);if(pkg){for(const field of options.mainFields){const value=pkg[field];if(typeof value!=="string"||value.length===0)continue;const target=join22(path22,value);const found=loadAsFile(target)??loadIndex(target);if(found)return found;const source=workspaceSource(path22,value);if(source)return source}}return loadIndex(path22)};const workspaceSource=(packageRoot,declared)=>{var _a22;const members=(_a22=options.workspaceMembers)==null?void 0:_a22.call(options);if(!members||members.size===0)return null;const root2=packageRoot.replace(/\/+$/u,"")||"/";let real=root2;try{if(fs2.realpathSync)real=fs2.realpathSync(root2)}catch{}if(!members.has(root2)&&!members.has(real))return null;const parts=declared.replace(/^\.\//u,"").replace(/^\//u,"").split("/").filter(part=>part.length>0);const inner=parts.length>1?parts.slice(1).join("/"):parts[0]??"index";const stem=inner.replace(/\.(?:m|c)?[jt]sx?$/u,"");const extensions=options.sourceExtensions??options.extensions;for(const base of real===root2?[root2]:[root2,real]){for(const directory2 of["src",""]){const prefix2=directory2?`${base}/${directory2}/`:`${base}/`;for(const extension of extensions){if(isFile2(`${prefix2}${stem}${extension}`))return`${prefix2}${stem}${extension}`;if(isFile2(`${prefix2}${stem}/index${extension}`))return`${prefix2}${stem}/index${extension}`}}}return null};const targetsOf=value=>Array.isArray(value)?value:typeof value==="string"?[value]:[];const loadPackageExports=(packageRoot,pkg,specifier,packageName)=>{var _a22;const subpath=specifier===packageName?".":`.${specifier.slice(packageName.length)}`;for(const conditions of((_a22=options.conditionSetsFor)==null?void 0:_a22.call(options,packageName))??options.conditionSets){let targets;try{targets=targetsOf(options.exports.resolve(pkg,subpath,{conditions,unsafe:true}))}catch{continue}for(const target of targets){const path22=join22(packageRoot,target);const found=loadAsFile(path22)??workspaceSource(packageRoot,target);if(!found)continue;if(options.skipThrowingCjs&&found.endsWith(".cjs")){try{const text=fs2.readFileSync(found,"utf8");if(String(text).trimStart().startsWith("throw "))continue}catch{}}return found}}return null};const packageNameOf22=specifier=>{const parts=specifier.split("/");return parts[0].startsWith("@")&&parts.length>1?`${parts[0]}/${parts[1]}`:parts[0]};const loadFromNodeModules=(nodeModules,specifier)=>{const packageName=packageNameOf22(specifier);const packageRoot=`${nodeModules}/${packageName}`;const pkg=isDirectory(packageRoot)?manifest(packageRoot):null;if(pkg&&pkg.exports!==void 0&&pkg.exports!==null)return loadPackageExports(packageRoot,pkg,specifier,packageName);const path22=`${nodeModules}/${specifier}`;return loadAsFile(path22)??loadAsDirectory(path22)};const loadPackageSelf=(specifier,fromDir)=>{const packageName=packageNameOf22(specifier);let directory2=fromDir;for(;;){const pkg=manifest(directory2);if(pkg&&pkg.name===packageName&&pkg.exports!==void 0&&pkg.exports!==null)return loadPackageExports(directory2,pkg,specifier,packageName);if(directory2==="/")return null;directory2=parent(directory2)}};const loadPackageImports=(specifier,fromDir)=>{let directory2=fromDir;for(;;){const pkg=manifest(directory2);if(pkg&&pkg.imports){for(const conditions of options.conditionSets){let targets;try{targets=targetsOf(options.exports.imports(pkg,specifier,{conditions,unsafe:true}))}catch{continue}for(const target of targets){if(!target.startsWith(".")&&!target.startsWith("/")){const found2=resolveCached(target,directory2);if(found2)return found2;continue}const found=loadAsFile(join22(directory2,target));if(found)return found}}return null}if(directory2==="/")return null;directory2=parent(directory2)}};const resolve2=(specifier,fromDir)=>{manifests.clear();const found=resolveCached(specifier,fromDir);if(found&&fs2.realpathSync){try{return fs2.realpathSync(found)}catch{return found}}return found};const resolveCached=(specifier,fromDir)=>{if(specifier.startsWith("#"))return loadPackageImports(specifier,fromDir);if(specifier.startsWith("./")||specifier.startsWith("../")||specifier.startsWith("/")||specifier==="."||specifier===".."){const path22=join22(fromDir,specifier);return loadAsFile(path22)??loadAsDirectory(path22)}const self2=loadPackageSelf(specifier,fromDir);if(self2)return self2;let directory2=fromDir;for(;;){if(!directory2.endsWith("/node_modules")){const found=loadFromNodeModules(`${directory2==="/"?"":directory2}/node_modules`,specifier);if(found)return found}if(directory2==="/")break;directory2=parent(directory2)}for(const root2 of options.globalRoots??[]){const found=loadFromNodeModules(root2,specifier);if(found)return found}return null};return{resolve:resolve2}}var __nodeResolvers=new WeakMap;function __nodeResolverFor(fs2,profile,extensions){let byProfile=__nodeResolvers.get(fs2);if(!byProfile){byProfile=new Map;__nodeResolvers.set(fs2,byProfile)}const key=profile+":"+(extensions||[]).join(",");let resolver=byProfile.get(key);if(resolver)return resolver;const members=()=>globalThis.__browserRuntimeWorkspaceMembers;const exportsResolver={resolve:s,imports:f};resolver=profile==="bundler"?createNodeResolver({fs:fs2,exports:exportsResolver,conditionSets:[["browser","module","import","default"],["require","default"]],extensions:(extensions||[".js",".json"]).filter(extension=>extension!==""),mainFields:["module","main"],globalRoots:["/node_modules","/project/node_modules"],workspaceMembers:members}):createNodeResolver({fs:fs2,exports:exportsResolver,conditionSets:[["require","node","default"],["import","node","default"]],extensions:[".js",".json",".node",".cjs",".mjs",".ts",".mts",".cts"],mainFields:["main","module"],globalRoots:["/node_modules"],workspaceMembers:members,sourceExtensions:[".js",".mjs",".cjs"],skipThrowingCjs:true});byProfile.set(key,resolver);return resolver}function unstreamedOutput(total,streamed){let rest=total;let cursor=0;for(const piece of streamed){if(!piece)continue;const at22=rest.indexOf(piece,cursor);if(at22<0)continue;rest=rest.slice(0,at22)+rest.slice(at22+piece.length);cursor=at22}return rest}var LAST_JOB_VAR="__TABNODE_LAST_JOB_PID";var SHELL_VAR="__TABNODE_SHELL";var BG_COMMAND="__tabnode_bg";var WAIT_COMMAND="__tabnode_wait";var JOB_PLACEHOLDER="__tabnode_job";var PENDING_LIMIT=1<<20;var IGNORED_BY_DEFAULT=new Set(["SIGCHLD","SIGCONT","SIGURG","SIGWINCH"]);var shells$1=new Map;var handoff=new Map;var nextShell=1;var nextJob=1;function isNode(value){return typeof value==="object"&&value!==null}function literalWord(value){return{type:"Word",parts:[{type:"Literal",value}]}}function wordLiteral(word){if(!isNode(word)||!Array.isArray(word.parts)||word.parts.length!==1)return null;const part=word.parts[0];return isNode(part)&&part.type==="Literal"&&typeof part.value==="string"?part.value:null}function definesFunction(statement){const pipelines=statement.pipelines;return Array.isArray(pipelines)&&pipelines.some(pipeline=>isNode(pipeline)&&Array.isArray(pipeline.commands)&&pipeline.commands.some(command=>isNode(command)&&command.type==="FunctionDef"))}function functionDefinitions(node,found=[]){if(Array.isArray(node)){for(const child of node)functionDefinitions(child,found);return found}if(!isNode(node))return found;if(node.type==="Statement"&&node.background===true)return found;if(node.type==="Statement"&&definesFunction(node))found.push(node);for(const key of Object.keys(node))functionDefinitions(node[key],found);return found}function rewrite(node,functions){if(Array.isArray(node)){for(let index2=0;index2<node.length;index2+=1){const child=node[index2];if(isNode(child)&&child.type==="Statement"&&child.background===true){node[index2]=backgroundCall(child,functions)}else rewrite(child,functions)}return}if(!isNode(node))return;if(node.type==="ParameterExpansion"&&node.parameter==="!")node.parameter=LAST_JOB_VAR;if(node.type==="SimpleCommand"&&wordLiteral(node.name)==="wait")node.name=literalWord(WAIT_COMMAND);for(const key of Object.keys(node)){const child=node[key];if(isNode(child)&&child.type==="Statement"&&child.background===true)node[key]=backgroundCall(child,functions);else rewrite(child,functions)}}function backgroundCall(statement,functions){const job=JSON.stringify({...statement,background:false});return{type:"Statement",pipelines:[{type:"Pipeline",commands:[{type:"SimpleCommand",name:literalWord(BG_COMMAND),args:[{type:"Word",parts:[{type:"SingleQuoted",value:job}]},{type:"Word",parts:[{type:"SingleQuoted",value:functions}]}],assignments:[],redirections:[]}],negated:false,timed:false,timePosix:false}],operators:[],background:false,...typeof statement.sourceText==="string"?{sourceText:statement.sourceText}:{}}}function transform$1({ast}){let script=ast;const statements=Array.isArray(ast.statements)?ast.statements:[];if(statements.length===1&&isNode(statements[0])){const pipelines=statements[0].pipelines;const command=Array.isArray(pipelines)&&isNode(pipelines[0])&&Array.isArray(pipelines[0].commands)?pipelines[0].commands[0]:void 0;if(isNode(command)&&command.type==="SimpleCommand"&&wordLiteral(command.name)===":"&&Array.isArray(command.args)&&command.args.length===2&&wordLiteral(command.args[0])===JOB_PLACEHOLDER){const token=wordLiteral(command.args[1]);const own=token===null?void 0:handoff.get(token);if(own&&token!==null){handoff.delete(token);script=own}}}if(!Array.isArray(script.statements)||!JSON.stringify(script).match(/"background":true|"parameter":"!"|"value":"wait"/u))return{ast:script};const functions=JSON.stringify(functionDefinitions(script.statements));rewrite(script.statements,functions);return{ast:script}}function shellOf$1(ctx){let id2=ctx.env.get(SHELL_VAR);if(!id2){id2=`shell-${nextShell++}`;ctx.env.set(SHELL_VAR,id2)}let shell=shells$1.get(id2);if(!shell){shell={jobs:new Map,order:[],pendingOut:"",pendingErr:""};shells$1.set(id2,shell)}return{id:id2,shell}}function signalNumber(name){return __substrateSignals[name]??15}function signalName(spec){const bare=spec.startsWith("-")?spec.slice(1):spec;if(/^\d+$/u.test(bare)){const number=Number(bare);if(number===0)return"0";return __substrateSignalNames[number>128?number-128:number]??null}const upper=bare.toUpperCase();const name=upper.startsWith("SIG")?upper:`SIG${upper}`;return __substrateSignals[name]!==void 0?name:null}function startJob(host2,ctx,shell,script,sourceText){var _a22;const token=`job-${nextJob++}`;const parent=host2.runTokenOf(ctx);const parentPid=(_a22=runPid(parent))==null?void 0:_a22.pid;const pid=mintPid();setRunPid(token,pid,parentPid!==void 0&&pidIsLive(parentPid)?parentPid:0,{argv:["sh","-c",sourceText],cwd:ctx.cwd});const controller=new AbortController;let streamedOut=[];let streamedErr=[];const live2=()=>parent===null?void 0:host2.runStreamsFor(parent);host2.registerRunStreams(token,{onStdout:data2=>{var _a32,_b22;streamedOut.push(data2);(_b22=(_a32=live2())==null?void 0:_a32.onStdout)==null?void 0:_b22.call(_a32,data2)},onStderr:data2=>{var _a32,_b22;streamedErr.push(data2);(_b22=(_a32=live2())==null?void 0:_a32.onStderr)==null?void 0:_b22.call(_a32,data2)},signal:controller.signal,held:false});let settle=()=>{};const job={pid,token,status:null,done:new Promise(resolve2=>{settle=resolve2}),kill(signal){if(job.status!==null)return false;if(__signalOwnedProcess(token,signal)||signalPid(pid,signal))return true;if(IGNORED_BY_DEFAULT.has(signal))return true;controller.abort(signal);__releaseOwnedServers(token,false);__releaseOwnedHandles(token);__stopOwnedProcess(token);end(128+signalNumber(signal));return true}};const end=status=>{if(job.status!==null)return;job.status=status;host2.releaseRunStreams(token);forgetRunPid(token);__substrateChildren.delete(pid);settle(status)};const hold2=(text,key)=>{if(!text)return;const room=PENDING_LIMIT-shell[key].length;if(room>0)shell[key]+=text.slice(0,room)};const env=Object.fromEntries(ctx.env);delete env[SHELL_VAR];env[PROCESS_TOKEN_ENV]=token;handoff.set(token,script);__substrateChildren.set(pid,{get exitCode(){return job.status},signalCode:null,kill:(signal="SIGTERM")=>job.kill(signal)});const run=ctx.exec?enterRun(token,()=>ctx.exec(`: ${JOB_PLACEHOLDER} ${token}`,{env,cwd:ctx.cwd,replaceEnv:true,signal:controller.signal})):Promise.resolve({stdout:"",stderr:"bash: background jobs need a shell that can run a script\n",exitCode:1});void Promise.resolve(run).then(result=>{var _a32,_b22,_c22,_d22;handoff.delete(token);const stdout=result.stdout??"";const stderr=result.stderr??"";const restOut=unstreamedOutput(stdout,streamedOut);const restErr=unstreamedOutput(stderr,streamedErr);if(restOut)(_b22=(_a32=live2())==null?void 0:_a32.onStdout)==null?void 0:_b22.call(_a32,restOut);if(restErr)(_d22=(_c22=live2())==null?void 0:_c22.onStderr)==null?void 0:_d22.call(_c22,restErr);hold2(stdout,"pendingOut");hold2(stderr,"pendingErr");streamedOut=[];streamedErr=[];end(result.exitCode??0)},error=>{var _a32,_b22;handoff.delete(token);const text=`${error instanceof Error?error.message:String(error)}
|
|
5769
5769
|
`;(_b22=(_a32=live2())==null?void 0:_a32.onStderr)==null?void 0:_b22.call(_a32,text);hold2(text,"pendingErr");end(1)});return job}function flush(shell){const taken={stdout:shell.pendingOut,stderr:shell.pendingErr};shell.pendingOut="";shell.pendingErr="";return taken}function installShellJobs(bash,host2){bash.registerTransformPlugin({name:"tabnode-background-jobs",transform:transform$1});bash.registerCommand(uA(BG_COMMAND,async(args,ctx)=>{let statement;let functions;try{statement=JSON.parse(args[0]??"");functions=JSON.parse(args[1]??"[]")}catch{return{stdout:"",stderr:`bash: ${BG_COMMAND}: not a job
|
|
@@ -5780,8 +5780,8 @@ ${body}
|
|
|
5780
5780
|
`,exitCode:1};signal=name;index2=1}if(args[index2]==="--")index2+=1;const targets=args.slice(index2);if(targets.length===0)return{stdout:"",stderr:"bash: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]\n",exitCode:2};let stderr="";let status=0;for(const target of targets){if(target.startsWith("%")){stderr+=`bash: kill: ${target}: no such job
|
|
5781
5781
|
`;status=1;continue}if(!/^-?\d+$/u.test(target)){stderr+=`bash: kill: ${target}: arguments must be process or job IDs
|
|
5782
5782
|
`;status=1;continue}const pid=Math.abs(Number(target));if(!deliver(pid,signal)){stderr+=`bash: kill: (${target}) - No such process
|
|
5783
|
-
`;status=1}}return{stdout:"",stderr,exitCode:status}}));bash.registerCommand(uA("disown",async(args,ctx)=>{const{shell}=shellOf$1(ctx);const pids=args.filter(arg=>!arg.startsWith("-")).map(Number);const all=args.includes("-a");const chosen=all?[...shell.order]:pids.length>0?pids:shell.order.slice(-1);for(const pid of chosen){shell.jobs.delete(pid);shell.order=shell.order.filter(own=>own!==pid)}return{stdout:"",stderr:"",exitCode:0}}))}function deliver(pid,signal){const child=__substrateChildren.get(pid);const childLive=child!==void 0&&child.exitCode===null&&child.signalCode===null;if(signal==="0")return childLive||pidIsLive(pid);if(childLive)return child.kill(signal);const token=tokenOfPid(pid);if(token!==null&&__signalOwnedProcess(token,signal))return true;return signalPid(pid,signal)}if(typeof globalThis.process==="undefined"){globalThis.process={env:{HOME:"/home/user",USER:"user",PATH:"/usr/local/bin:/usr/bin:/bin"},cwd:()=>"/",platform:"linux",version:"v18.0.0",versions:{node:"18.0.0"},stdout:{write:()=>{}},stderr:{write:()=>{}}}}var __hostProcess=typeof process!=="undefined"&&process!==null&&typeof process.on==="function"&&typeof process.off==="function"?process:null;var HostBroadcastChannel=globalThis.BroadcastChannel;var hostChannelName=(_k=globalThis.crypto)==null?void 0:_k.randomUUID.bind(globalThis.crypto);var isWorkerRealm=typeof globalThis.WorkerGlobalScope!=="undefined";async function settlePrintedEntry(){await new Promise(resolve2=>(globalThis.__browserRuntimeNativeSetTimeout??setTimeout).call(globalThis,resolve2,0));if(!isWorkerRealm||nodeProcessRealmToken()===null)return;if(!HostBroadcastChannel||!hostChannelName)throw new Error("Native process rejection checkpoint is unavailable.");const name=hostChannelName();const receiver=new HostBroadcastChannel(name);try{const sender=new HostBroadcastChannel(name);try{await new Promise((resolve2,reject)=>{receiver.onmessage=()=>resolve2();receiver.onmessageerror=()=>reject(new Error("Native process rejection checkpoint failed."));sender.postMessage(null)})}finally{sender.close()}}finally{receiver.close()}}var bashInstance=null;var vfsAdapter=null;var currentVfs$1=null;var shells=new WeakMap;var processRunnerInstalled=false;function treeForRun(){var _a22;const realm=globalThis;const found=(_a22=realm.process)==null?void 0:_a22[Symbol.for("tabnode.run.vfs")];return found??currentVfs$1}function shellOf(tree2){if(tree2){const owned=shells.get(tree2);if(owned)return owned}return bashInstance&&vfsAdapter?{bash:bashInstance,adapter:vfsAdapter}:null}var _activeForkedChildren=0;var _onForkedChildExit=null;var _realDefineProperty=Object.defineProperty;Object.defineProperty=function(target,key,descriptor){if(target===globalThis&&descriptor&&!descriptor.configurable){descriptor={...descriptor,configurable:true}}return _realDefineProperty.call(Object,target,key,descriptor)};var _runStreams=new Map;async function runHostedNode(host2,launch){var _a22;const{token,streams:streams2}=launch;if(!runPid(token))setRunPid(token,mintPid(),0,{argv:["node",...launch.argv],cwd:launch.cwd});let input;try{(_a22=streams2==null?void 0:streams2.signal)==null?void 0:_a22.throwIfAborted();const inherited=inheritedRunFds(token).map(({fd:fd2,handle})=>{const descriptor=nativeStreamDescriptor(handle);if(!descriptor)throw new Error(`Node descriptor ${fd2} has no native owner for process isolation.`);return{fd:fd2,handle:descriptor}});input=nodeProcessInput(streams2);return await host2.run({...launch,identity:{...runPid(token)},inherited,...input.stream?{stdinStream:input.stream}:{}})}finally{if(streams2)streams2.stdin=null;input==null?void 0:input.dispose();forgetRunPid(token)}}function writePipedEndReceipt(pid,argv0,firstArg,kind,error){const who=firstArg.length>0?`${argv0} ${firstArg}`:argv0;const ended2=kind==="uncaught"?"uncaught":String(kind);let detail="";if(error instanceof Error){const stack=error.stack??`${error.name}: ${error.message}`;const lines=stack.split("\n");const head=(lines[0]??"").trimEnd();let frame="";for(let i22=1;i22<lines.length;i22+=1){const line=lines[i22].trim();if(line.startsWith("at ")){frame=line;break}}detail=frame.length>0?`${head} ${frame}`:head}else if(error!==void 0&&error!==null){detail=String(error).split("\n")[0]??""}console.error(`[run ${pid}] ${who} ended ${ended2}${detail.length>0?`: ${detail}`:""}`)}function registerRunStreams(token,streams2){_runStreams.delete(token);_runStreams.set(token,streams2)}function releaseRunStreams(token){_runStreams.delete(token);shellRuns.delete(token);hostedNodes.delete(token)}var shellRuns=new Set;var hostedNodes=new Set;function nestedNodeToken(parentToken,args,cwd){var _a22;const token=`child-${__nextChildRun++}`;setRunPid(token,mintPid(),((_a22=runPid(parentToken))==null?void 0:_a22.pid)??0,{argv:["node",...args],...cwd?{cwd}:{}});const parentStreams=runStreamsFor(parentToken);if(parentStreams)registerRunStreams(token,parentStreams);return token}function runStreamsFor(token){return _runStreams.get(token)}function sendStdin(data2,token){var _a22;let target;if(typeof token==="string"){target=(_a22=_runStreams.get(token))==null?void 0:_a22.stdin}else{for(const streams2 of _runStreams.values()){if(streams2.held&&streams2.stdin)target=streams2.stdin}}if(target){target.push(data2);for(const ch22 of data2){target.emit("keypress",ch22,{sequence:ch22,name:ch22,ctrl:false,meta:false,shift:false})}}}var __backstopInstalled=false;forGuestRealm(()=>{if(__backstopInstalled)return;if(typeof globalThis.WorkerGlobalScope==="undefined")return;if(typeof globalThis.addEventListener!=="function")return;__backstopInstalled=true;globalThis.addEventListener("error",event=>{var _a22;const token=nodeProcessRealmToken()??__currentProcessToken()??__lastLaunchedToken;if(token===null)return;const raised=event;const error=raised.error??new Error(raised.message||"uncaught exception");if((_a22=__runFor(token))==null?void 0:_a22.reportUncaught(error))event.preventDefault()})});function initChildProcess(vfs2){const existing=shells.get(vfs2);if(existing){currentVfs$1=vfs2;bashInstance=existing.bash;vfsAdapter=existing.adapter;setSyncChildVfs(vfs2);return}const tree2=vfs2;currentVfs$1=tree2;setSyncChildVfs(tree2);try{if(!tree2.existsSync(__substrateExecPath)){tree2.mkdirSync(__substrateExecPath.slice(0,__substrateExecPath.lastIndexOf("/")),{recursive:true});tree2.writeFileSync(__substrateExecPath,'node "$@"\n')}}catch{}if(typeof globalThis.WorkerGlobalScope!=="undefined"||typeof globalThis.document!=="undefined")warmSyncChild();vfsAdapter=new VirtualFSAdapter(tree2);const __listenForUnhandledRejections=(owner,report,ownsRealm)=>{if(typeof globalThis.addEventListener==="function"){const target=globalThis;const listener=event=>{const rejection=event;if(!ownsRealm&&promiseOwner(rejection.promise)!==owner)return;event.preventDefault();report(rejection.reason,rejection.promise)};target.addEventListener("unhandledrejection",listener);return()=>target.removeEventListener("unhandledrejection",listener)}const host2=__hostProcess;if(host2){const listener=(reason,promise)=>{if(ownsRealm||promiseOwner(promise)===owner)report(reason,promise)};host2.on("unhandledRejection",listener);return()=>host2.off("unhandledRejection",listener)}return()=>{}};const nodeCommand=uA("node",async(args,ctx)=>{var _a22,_b22,_c22,_d22;if(!tree2){return{stdout:"",stderr:"VFS not initialized\n",exitCode:1}}const parentToken=runTokenOf(ctx);const nested=parentToken!==null&&(shellRuns.has(parentToken)||hostedNodes.has(parentToken));const runToken=nested?nestedNodeToken(parentToken,args,ctx.cwd):parentToken;const streams2=runToken===null?void 0:runStreamsFor(runToken);const processHost=nodeProcessHostFor(runToken);if(processHost&&runToken!==null){if(!nested)hostedNodes.add(runToken);try{return await runHostedNode(processHost,{token:runToken,argv:[...args],cwd:ctx.cwd,filesystem:tree2,env:guestEnvironmentOf(ctx),...typeof ctx.stdin==="string"?{stdin:ctx.stdin}:{},...streams2?{streams:streams2}:{}})}finally{if(nested)releaseRunStreams(runToken)}}const execArgv=[];let first=0;let evaluated=null;while(first<args.length&&args[first].startsWith("-")&&args[first]!=="-"&&args[first]!=="--"){const option=args[first];const inline=/^(--eval|--print)=([\s\S]*)$/.exec(option);if(inline){evaluated={source:inline[2],print:inline[1]==="--print"};execArgv.push(option);first+=1;break}if(option==="-e"||option==="--eval"||option==="-p"||option==="--print"||option==="-pe"){if(first+1>=args.length)return{stdout:"",stderr:`node: ${option} requires an argument
|
|
5784
|
-
`,exitCode:9};evaluated={source:args[first+1],print:option.includes("p")};execArgv.push(option,args[first+1]);first+=2;break}execArgv.push(option);first+=1}if(args[first]==="--")first+=1;const resolver=__nodeResolverFor(tree2,"runtime");const fileNamed=word=>{const requested=resolve(ctx.cwd,word);const found=resolver.resolve(requested,ctx.cwd);if(found!==null&&tree2.existsSync(found))return found;return tree2.existsSync(requested)?requested:null};
|
|
5783
|
+
`;status=1}}return{stdout:"",stderr,exitCode:status}}));bash.registerCommand(uA("disown",async(args,ctx)=>{const{shell}=shellOf$1(ctx);const pids=args.filter(arg=>!arg.startsWith("-")).map(Number);const all=args.includes("-a");const chosen=all?[...shell.order]:pids.length>0?pids:shell.order.slice(-1);for(const pid of chosen){shell.jobs.delete(pid);shell.order=shell.order.filter(own=>own!==pid)}return{stdout:"",stderr:"",exitCode:0}}))}function deliver(pid,signal){const child=__substrateChildren.get(pid);const childLive=child!==void 0&&child.exitCode===null&&child.signalCode===null;if(signal==="0")return childLive||pidIsLive(pid);if(childLive)return child.kill(signal);const token=tokenOfPid(pid);if(token!==null&&__signalOwnedProcess(token,signal))return true;return signalPid(pid,signal)}if(typeof globalThis.process==="undefined"){globalThis.process={env:{HOME:"/home/user",USER:"user",PATH:"/usr/local/bin:/usr/bin:/bin"},cwd:()=>"/",platform:"linux",version:"v18.0.0",versions:{node:"18.0.0"},stdout:{write:()=>{}},stderr:{write:()=>{}}}}var __hostProcess=typeof process!=="undefined"&&process!==null&&typeof process.on==="function"&&typeof process.off==="function"?process:null;var HostBroadcastChannel=globalThis.BroadcastChannel;var hostChannelName=(_k=globalThis.crypto)==null?void 0:_k.randomUUID.bind(globalThis.crypto);var isWorkerRealm=typeof globalThis.WorkerGlobalScope!=="undefined";async function settlePrintedEntry(){await new Promise(resolve2=>(globalThis.__browserRuntimeNativeSetTimeout??setTimeout).call(globalThis,resolve2,0));if(!isWorkerRealm||nodeProcessRealmToken()===null)return;if(!HostBroadcastChannel||!hostChannelName)throw new Error("Native process rejection checkpoint is unavailable.");const name=hostChannelName();const receiver=new HostBroadcastChannel(name);try{const sender=new HostBroadcastChannel(name);try{await new Promise((resolve2,reject)=>{receiver.onmessage=()=>resolve2();receiver.onmessageerror=()=>reject(new Error("Native process rejection checkpoint failed."));sender.postMessage(null)})}finally{sender.close()}}finally{receiver.close()}}var bashInstance=null;var vfsAdapter=null;var currentVfs$1=null;var shells=new WeakMap;var processRunnerInstalled=false;function treeForRun(){var _a22;const realm=globalThis;const found=(_a22=realm.process)==null?void 0:_a22[Symbol.for("tabnode.run.vfs")];return found??currentVfs$1}function shellOf(tree2){if(tree2){const owned=shells.get(tree2);if(owned)return owned}return bashInstance&&vfsAdapter?{bash:bashInstance,adapter:vfsAdapter}:null}var _activeForkedChildren=0;var _onForkedChildExit=null;var _realDefineProperty=Object.defineProperty;Object.defineProperty=function(target,key,descriptor){if(target===globalThis&&descriptor&&!descriptor.configurable){descriptor={...descriptor,configurable:true}}return _realDefineProperty.call(Object,target,key,descriptor)};var NODE_VALUE_OPTIONS=new Set(["-r","--require","--import","--loader","--experimental-loader","-C","--conditions","--input-type","--title","--inspect-port","--debug-port","--env-file","--env-file-if-exists","--redirect-warnings","--diagnostic-dir","--report-dir","--report-directory","--cpu-prof-dir","--heap-prof-dir","--experimental-default-type","--watch-path","--disable-warning","--secure-heap","--secure-heap-min","--icu-data-dir","--openssl-config","--tls-cipher-list","--unhandled-rejections","--dns-result-order","--trace-event-categories","--trace-event-file-pattern"]);var _runStreams=new Map;async function runHostedNode(host2,launch){var _a22;const{token,streams:streams2}=launch;if(!runPid(token))setRunPid(token,mintPid(),0,{argv:["node",...launch.argv],cwd:launch.cwd});let input;try{(_a22=streams2==null?void 0:streams2.signal)==null?void 0:_a22.throwIfAborted();const inherited=inheritedRunFds(token).map(({fd:fd2,handle})=>{const descriptor=nativeStreamDescriptor(handle);if(!descriptor)throw new Error(`Node descriptor ${fd2} has no native owner for process isolation.`);return{fd:fd2,handle:descriptor}});input=nodeProcessInput(streams2);return await host2.run({...launch,identity:{...runPid(token)},inherited,...input.stream?{stdinStream:input.stream}:{}})}finally{if(streams2)streams2.stdin=null;input==null?void 0:input.dispose();forgetRunPid(token)}}function writePipedEndReceipt(pid,argv0,firstArg,kind,error){const who=firstArg.length>0?`${argv0} ${firstArg}`:argv0;const ended2=kind==="uncaught"?"uncaught":String(kind);let detail="";if(error instanceof Error){const stack=error.stack??`${error.name}: ${error.message}`;const lines=stack.split("\n");const head=(lines[0]??"").trimEnd();let frame="";for(let i22=1;i22<lines.length;i22+=1){const line=lines[i22].trim();if(line.startsWith("at ")){frame=line;break}}detail=frame.length>0?`${head} ${frame}`:head}else if(error!==void 0&&error!==null){detail=String(error).split("\n")[0]??""}console.error(`[run ${pid}] ${who} ended ${ended2}${detail.length>0?`: ${detail}`:""}`)}function registerRunStreams(token,streams2){_runStreams.delete(token);_runStreams.set(token,streams2)}function releaseRunStreams(token){_runStreams.delete(token);shellRuns.delete(token);hostedNodes.delete(token)}var shellRuns=new Set;var hostedNodes=new Set;function nestedNodeToken(parentToken,args,cwd){var _a22;const token=`child-${__nextChildRun++}`;setRunPid(token,mintPid(),((_a22=runPid(parentToken))==null?void 0:_a22.pid)??0,{argv:["node",...args],...cwd?{cwd}:{}});const parentStreams=runStreamsFor(parentToken);if(parentStreams)registerRunStreams(token,parentStreams);return token}function runStreamsFor(token){return _runStreams.get(token)}function sendStdin(data2,token){var _a22;let target;if(typeof token==="string"){target=(_a22=_runStreams.get(token))==null?void 0:_a22.stdin}else{for(const streams2 of _runStreams.values()){if(streams2.held&&streams2.stdin)target=streams2.stdin}}if(target){target.push(data2);for(const ch22 of data2){target.emit("keypress",ch22,{sequence:ch22,name:ch22,ctrl:false,meta:false,shift:false})}}}var __backstopInstalled=false;forGuestRealm(()=>{if(__backstopInstalled)return;if(typeof globalThis.WorkerGlobalScope==="undefined")return;if(typeof globalThis.addEventListener!=="function")return;__backstopInstalled=true;globalThis.addEventListener("error",event=>{var _a22;const token=nodeProcessRealmToken()??__currentProcessToken()??__lastLaunchedToken;if(token===null)return;const raised=event;const error=raised.error??new Error(raised.message||"uncaught exception");if((_a22=__runFor(token))==null?void 0:_a22.reportUncaught(error))event.preventDefault()})});function initChildProcess(vfs2){const existing=shells.get(vfs2);if(existing){currentVfs$1=vfs2;bashInstance=existing.bash;vfsAdapter=existing.adapter;setSyncChildVfs(vfs2);return}const tree2=vfs2;currentVfs$1=tree2;setSyncChildVfs(tree2);try{if(!tree2.existsSync(__substrateExecPath)){tree2.mkdirSync(__substrateExecPath.slice(0,__substrateExecPath.lastIndexOf("/")),{recursive:true});tree2.writeFileSync(__substrateExecPath,'node "$@"\n')}}catch{}if(typeof globalThis.WorkerGlobalScope!=="undefined"||typeof globalThis.document!=="undefined")warmSyncChild();vfsAdapter=new VirtualFSAdapter(tree2);const __listenForUnhandledRejections=(owner,report,ownsRealm)=>{if(typeof globalThis.addEventListener==="function"){const target=globalThis;const listener=event=>{const rejection=event;if(!ownsRealm&&promiseOwner(rejection.promise)!==owner)return;event.preventDefault();report(rejection.reason,rejection.promise)};target.addEventListener("unhandledrejection",listener);return()=>target.removeEventListener("unhandledrejection",listener)}const host2=__hostProcess;if(host2){const listener=(reason,promise)=>{if(ownsRealm||promiseOwner(promise)===owner)report(reason,promise)};host2.on("unhandledRejection",listener);return()=>host2.off("unhandledRejection",listener)}return()=>{}};const nodeCommand=uA("node",async(args,ctx)=>{var _a22,_b22,_c22,_d22;if(!tree2){return{stdout:"",stderr:"VFS not initialized\n",exitCode:1}}const parentToken=runTokenOf(ctx);const nested=parentToken!==null&&(shellRuns.has(parentToken)||hostedNodes.has(parentToken));const runToken=nested?nestedNodeToken(parentToken,args,ctx.cwd):parentToken;const streams2=runToken===null?void 0:runStreamsFor(runToken);const processHost=nodeProcessHostFor(runToken);if(processHost&&runToken!==null){if(!nested)hostedNodes.add(runToken);try{return await runHostedNode(processHost,{token:runToken,argv:[...args],cwd:ctx.cwd,filesystem:tree2,env:guestEnvironmentOf(ctx),...typeof ctx.stdin==="string"?{stdin:ctx.stdin}:{},...streams2?{streams:streams2}:{}})}finally{if(nested)releaseRunStreams(runToken)}}const execArgv=[];let first=0;let evaluated=null;while(first<args.length&&args[first].startsWith("-")&&args[first]!=="-"&&args[first]!=="--"){const option=args[first];const inline=/^(--eval|--print)=([\s\S]*)$/.exec(option);if(inline){evaluated={source:inline[2],print:inline[1]==="--print"};execArgv.push(option);first+=1;break}if(option==="-e"||option==="--eval"||option==="-p"||option==="--print"||option==="-pe"){if(first+1>=args.length)return{stdout:"",stderr:`node: ${option} requires an argument
|
|
5784
|
+
`,exitCode:9};evaluated={source:args[first+1],print:option.includes("p")};execArgv.push(option,args[first+1]);first+=2;break}if(NODE_VALUE_OPTIONS.has(option)&&first+1<args.length){execArgv.push(option,args[first+1]);first+=2;continue}execArgv.push(option);first+=1}if(args[first]==="--")first+=1;const resolver=__nodeResolverFor(tree2,"runtime");const fileNamed=word=>{const requested=resolve(ctx.cwd,word);const found=resolver.resolve(requested,ctx.cwd);if(found!==null&&tree2.existsSync(found))return found;return tree2.existsSync(requested)?requested:null};const script=first;const resolvedPath=evaluated===null&&args[script]?fileNamed(args[script]):null;if(evaluated===null&&!args[script]){return{stdout:"",stderr:"Usage: node <script.js> [args...]\n",exitCode:1}}if(evaluated===null&&resolvedPath===null){return{stdout:"",stderr:`Error: Cannot find module '${resolve(ctx.cwd,args[script])}'
|
|
5785
5785
|
`,exitCode:1}}let stdout="";let stderr="";let exitCalled=false;let exitCode=0;let syncExecution=true;let exitResolve=null;const exitPromise=new Promise(resolve2=>{exitResolve=resolve2});const appendStdout=data2=>{var _a32;if(exitCalled)return;stdout+=data2;(_a32=streams2==null?void 0:streams2.onStdout)==null?void 0:_a32.call(streams2,data2)};const appendStderr=data2=>{var _a32;if(exitCalled)return;stderr+=data2;(_a32=streams2==null?void 0:streams2.onStderr)==null?void 0:_a32.call(streams2,data2)};const guestEnv=guestEnvironmentOf(ctx);const channelFd=Number.parseInt(guestEnv.NODE_CHANNEL_FD??"",10);const channelSerialization=guestEnv.NODE_CHANNEL_SERIALIZATION_MODE||"json";delete guestEnv.NODE_CHANNEL_FD;delete guestEnv.NODE_CHANNEL_SERIALIZATION_MODE;const runtime=new Runtime(tree2,{cwd:ctx.cwd,env:guestEnv,onConsole:(method,consoleArgs)=>{const msg2=consoleArgs.map(a=>String(a)).join(" ")+"\n";if(method==="error"){appendStderr(msg2)}else{appendStdout(msg2)}},onStdout:data2=>{appendStdout(data2)},onStderr:data2=>{appendStderr(data2)},stdin:typeof ctx.stdin==="string"?ctx.stdin:"",...(streams2==null?void 0:streams2.held)||(streams2==null?void 0:streams2.stdinOpen)?{stdinHeld:true}:{},...(streams2==null?void 0:streams2.held)||(streams2==null?void 0:streams2.terminal)?{tty:true}:{},...runPid(runToken)?{pid:runPid(runToken).pid,ppid:runPid(runToken).ppid}:{}});const proc=runtime.getProcess();if(runToken!==null)setRunPid(runToken,proc.pid,proc.ppid,{argv:["node",...args],cwd:ctx.cwd});const releaseRun=runToken===null?null:__recordRun(runToken,{process:proc,stdout:appendStdout,stderr:appendStderr,pendingTimers:()=>pendingGuestTimers(proc),stopTimers:()=>stopGuestTimers(proc),reportUncaught:error=>__reportUncaughtException(proc,error)});const launchedBefore=__lastLaunchedToken;if(runToken!==null)__setLastLaunchedToken(runToken);let hostReceiptWritten=false;let lastUncaught;const writeHostReceipt=(kind,error)=>{if(hostReceiptWritten||(streams2==null?void 0:streams2.stderrIsPipe)!==true)return;hostReceiptWritten=true;writePipedEndReceipt(proc.pid,proc.argv0||"node",proc.argv[1]??"",kind,error)};proc.exit=(code22=0)=>{if(!exitCalled){exitCalled=true;exitCode=__substrateExitCode(code22);code22=exitCode;if(exitCode!==0)writeHostReceipt(exitCode,lastUncaught);proc.emit("exit",code22);exitResolve(code22)}if(runToken!==null){__releaseOwnedServers(runToken);__releaseOwnedHandles(runToken)}if(syncExecution){throw new Error(`Process exited with code ${code22}`)}};proc.argv=evaluated!==null?[__substrateExecPath,...args.slice(first)]:[__substrateExecPath,resolvedPath,...args.slice(script+1)];proc.argv0="node";proc.execArgv=execArgv;if(streams2)streams2.stdin=proc.stdin;if((streams2==null?void 0:streams2.held)||(streams2==null?void 0:streams2.terminal)){proc.stdout.isTTY=true;proc.stderr.isTTY=true;proc.stdin.isTTY=true;proc.stdin.setRawMode=()=>proc.stdin}const terminal=streams2==null?void 0:streams2.terminal;const resize=(columns,rows)=>{for(const stream of[proc.stdout,proc.stderr]){stream.columns=columns;stream.rows=rows;stream.emit("resize")}};let stopResize;let inputActive=true;let inputIterator;const readableInput=proc.stdin;const inputReading=()=>{var _a32,_b3;return readableInput.readableFlowing===true||((_a32=readableInput._readableState)==null?void 0:_a32.reading)===true||((_b3=readableInput._readableState)==null?void 0:_b3.needReadable)===true||readableInput.listenerCount("data")>0||readableInput.listenerCount("readable")>0};if(Number.isInteger(channelFd)&&channelFd>=0&&runToken!==null){enterRun(runToken,()=>{attachChannel(proc,channelFd,channelSerialization)})}const onUnhandledRejection=(reason,promise)=>{if(reason instanceof Error&&reason.message.startsWith("Process exited with code"))return;lastUncaught=reason;if(proc.listenerCount("unhandledRejection")>0){proc.emit("unhandledRejection",reason,promise);return}if(proc.listenerCount("uncaughtException")>0){proc.emit("uncaughtException",reason,"unhandledRejection");return}const errorMsg=reason instanceof Error?`${reason.message}
|
|
5786
5786
|
${reason.stack||""}`:String(reason);appendStderr(`Error: ${errorMsg}
|
|
5787
5787
|
`);writeHostReceipt("uncaught",reason);if(exitCalled)return;const wasSync=syncExecution;syncExecution=false;try{proc.exit(1)}finally{syncExecution=wasSync}};const detachRejections=__listenForUnhandledRejections(proc,onUnhandledRejection,runToken!==null&&nodeProcessRealmToken()===runToken);const onUncaughtException=error=>{if(error instanceof Error&&error.message.startsWith("Process exited with code"))return;lastUncaught=error;const capture=__substrateUncaughtCapture();if(capture){capture(error);return}if(proc.listenerCount("uncaughtException")>0){proc.emit("uncaughtException",error,"uncaughtException");return}appendStderr(`${error instanceof Error?error.stack??`${error.name}: ${error.message}`:String(error)}
|
|
@@ -5867,16 +5867,16 @@ ${defineDefault(decl.id.name)}`:`const __default_${node.start} = ${classCode};
|
|
|
5867
5867
|
${defineDefault(`__default_${node.start}`)}`])}else{const exprCode=code22.slice(decl.start,node.end).replace(/;\s*$/u,"");replacements.push([node.start,node.end,`const __default_${node.start} = (${exprCode});
|
|
5868
5868
|
${defineDefault(`__default_${node.start}`)}`])}}else if(node.type==="ExportNamedDeclaration"){if(node.declaration){const decl=node.declaration;if(decl.type==="FunctionDeclaration"){const name=decl.id.name;const funcCode=code22.slice(decl.start,node.end);replacements.push([node.start,node.end,funcCode]);hoisted.push(`${__cjsObject()}.defineProperty(${__cjsExports()}, "${name}", { enumerable: true, get: function () { return ${name}; } });`)}else if(decl.type==="ClassDeclaration"){const name=decl.id.name;const classCode=code22.slice(decl.start,node.end);replacements.push([node.start,node.end,`${classCode}
|
|
5869
5869
|
${__cjsObject()}.defineProperty(${__cjsExports()}, "${name}", { enumerable: true, get: function () { return ${name}; } });`])}else if(decl.type==="VariableDeclaration"){const parts=[code22.slice(decl.start,node.end).replace(/;?\s*$/u,";")];const names2=[];const collect=pattern=>{if(!pattern)return;if(pattern.type==="Identifier")names2.push(pattern.name);else if(pattern.type==="ObjectPattern")for(const property of pattern.properties)collect(property.type==="RestElement"?property.argument:property.value);else if(pattern.type==="ArrayPattern")for(const element of pattern.elements)collect(element);else if(pattern.type==="AssignmentPattern")collect(pattern.left);else if(pattern.type==="RestElement")collect(pattern.argument)};for(const declarator of decl.declarations)collect(declarator.id);for(const name of names2)parts.push(`${__cjsObject()}.defineProperty(${__cjsExports()}, "${name}", { enumerable: true, get: function () { return ${name}; } });`);replacements.push([node.start,node.end,parts.join("\n")])}}else if(node.source){const source=node.source.value;const parts=[];const tmpVar=`__reexport_${node.start}`;parts.push(`const ${tmpVar} = ${__cjsRequire()}(${JSON.stringify(source)})`);parts.push(`/*__substrate_await__*/(${tmpVar} && ${tmpVar}[${__cjsSymbol()}.for("substrate.pending")])`);for(const spec of node.specifiers){parts.push(`${__cjsObject()}.defineProperty(${__cjsExports()}, "${spec.exported.name}", { enumerable: true, configurable: true, get: function () { return ${tmpVar}.${spec.local.name}; } })`)}replacements.push([node.start,node.end,parts.join(";\n")])}else{const parts=[];for(const spec of node.specifiers){parts.push(`${__cjsObject()}.defineProperty(${__cjsExports()}, "${spec.exported.name}", { enumerable: true, configurable: true, get: function () { return ${spec.local.name}; } })`)}replacements.push([node.start,node.end,parts.join(";\n")])}}else if(node.type==="ExportAllDeclaration"&&node.exported){const source=node.source.value;const name=node.exported.type==="Identifier"?node.exported.name:node.exported.value;const tmpVar=`__reexport_${node.start}`;replacements.push([node.start,node.end,`const ${tmpVar} = ${__cjsRequire()}(${JSON.stringify(source)}); /*__substrate_await__*/(${tmpVar} && ${tmpVar}[${__cjsSymbol()}.for("substrate.pending")]); ${__cjsObject()}.defineProperty(${__cjsExports()}, ${JSON.stringify(name)}, { enumerable: true, configurable: true, get: function () { return ${tmpVar}; } })`])}else if(node.type==="ExportAllDeclaration"){const source=node.source.value;const tmpVar=`__reexport_${node.start}`;replacements.push([node.start,node.end,`const ${tmpVar} = ${__cjsRequire()}(${JSON.stringify(source)}); /*__substrate_await__*/(${tmpVar} && ${tmpVar}[${__cjsSymbol()}.for("substrate.pending")]); (function (__from, __into) { for (const __key of ${__cjsObject()}.keys(__from)) { if (__key === "default" || __key === "__esModule" || ${__cjsObject()}.prototype.hasOwnProperty.call(__into, __key)) continue; ${__cjsObject()}.defineProperty(__into, __key, { enumerable: true, configurable: true, get: function () { return __from[__key]; } }); } })(${tmpVar}, ${__cjsExports()})`])}}let result=code22;replacements.sort((a,b)=>b[0]-a[0]);for(const[start,end,replacement]of replacements){result=result.slice(0,start)+replacement+(result.charAt(end-1)===";"?";":"")+result.slice(end)}return hoisted.join(" ")+result}function transformEsmToCjsRegex(code22){let transformed=code22;transformed=transformed.replace(/import\s+(\w+)\s+from\s+['"]([^'"]+)['"]/g,`const $1 = ${__cjsDefault(__cjsRequire()+'("$2")')}`);transformed=transformed.replace(/import\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g,`const {$1} = ${__cjsRequire()}("$2")`);transformed=transformed.replace(/export\s+default\s+function\s+(\w+)/g,`${__cjsExports()}.default = function $1`);transformed=transformed.replace(/export\s+default\s+function\s*\(/g,`${__cjsExports()}.default = function(`);transformed=transformed.replace(/export\s+default\s+/g,`${__cjsExports()}.default = `);transformed=transformed.replace(/export\s+async\s+function\s+(\w+)/g,`${__cjsExports()}.$1 = async function $1`);transformed=transformed.replace(/export\s+function\s+(\w+)/g,`${__cjsExports()}.$1 = function $1`);transformed=transformed.replace(/export\s+const\s+(\w+)\s*=/g,`${__cjsExports()}.$1 =`);return transformed}function canStripTypes(){return hostAmaro()!==null}function startedWith(process22,option){var _a22;if(Array.isArray(process22.execArgv)&&process22.execArgv.includes(option))return true;const nodeOptions=(_a22=process22.env)==null?void 0:_a22.NODE_OPTIONS;return typeof nodeOptions==="string"&&nodeOptions.split(/\s+/u).includes(option)}function transformsTypes(process22){return startedWith(process22,"--experimental-transform-types")}function stripModuleTypes(source,filename,process22){const typescript=loadNodeLibFor(process22,"internal/modules/typescript");const transform2=transformsTypes(process22);return withOptionValues({"--experimental-transform-types":transform2,"--enable-source-maps":transform2||startedWith(process22,"--enable-source-maps")},()=>typescript.stripTypeScriptModuleTypes(source,filename))}function walkAst(node,callback){if(!node||typeof node!=="object")return;if(typeof node.type==="string"){callback(node)}for(const key of Object.keys(node)){if(key==="type"||key==="start"||key==="end"||key==="loc"||key==="range")continue;const child=node[key];if(child&&typeof child==="object"){if(Array.isArray(child)){for(const item of child){if(item&&typeof item==="object"&&typeof item.type==="string"){walkAst(item,callback)}}}else if(typeof child.type==="string"){walkAst(child,callback)}}}}var __substrateGuestGlobals=new WeakMap;var __substrateAsyncFunction=(async function(){}).constructor;var __substrateFunctionScope=Function("__substrateFunctionGlobals","__substrateFunctionSource","with (__substrateFunctionGlobals) { return eval('(' + __substrateFunctionSource + ')'); }");function __substrateGuestConstructor(Constructor,process22){if(Constructor===intrinsicPromise)return guestPromise(process22);if(Constructor!==Function&&Constructor!==__substrateAsyncFunction)return Constructor;return new Proxy(Constructor,{construct(target,args){const compiled=Reflect.construct(target,args);return __substrateFunctionScope(__substrateGuestGlobal(process22),String(compiled))}})}var __substrateScriptScope=Function("__substrateScriptGlobals","__substrateScriptSource","with (__substrateScriptGlobals) { return eval(__substrateScriptSource); }");var __substrateGuestVms=new WeakMap;function __substrateGuestVm(process22){let vm22=__substrateGuestVms.get(process22);if(vm22)return vm22;const run=code22=>__substrateScriptScope(__substrateGuestGlobal(process22),String(code22));class Script2 extends Script$1{runInThisContext(_options2){return run(this.code)}}vm22={...vmShim,Script:Script2,runInThisContext:(code22,_options2)=>run(code22),default:void 0};vm22.default=vm22;__substrateGuestVms.set(process22,vm22);return vm22}function __substrateModuleTypes(code22,resolvedPath,format2,process22){const typescript=format2===void 0?/[.](?:ts|mts|cts)$/u.test(resolvedPath)&&!resolvedPath.endsWith(".d.ts"):format2==="typescript"||format2==="commonjs-typescript"||format2==="module-typescript";if(!typescript)return code22;const registered=globalThis.__substrateStripTypes;if(typeof registered==="function")return registered(code22,resolvedPath);if(!canStripTypes())return code22;return stripModuleTypes(code22,resolvedPath,process22)}function __substrateSourceURL(resolvedPath){let name=resolvedPath;if(name.startsWith("file://")){try{name=decodeURIComponent(new URL(name).pathname)}catch{}}return/[\n\r]/u.test(name)?"":`
|
|
5870
|
-
//# sourceURL=${name}`}function __substrateScopeGlobalCalls(code22){if(!/\b(?:new|fetch|Promise)\b/u.test(code22))return code22;let ast;try{ast=parse3(code22,{ecmaVersion:"latest",sourceType:"module",allowReturnOutsideFunction:true})}catch{return code22}const positions=[];walkAst(ast,node=>{if(node.type==="NewExpression"&&node.callee.type==="Identifier"){const callee=code22.slice(node.callee.start,node.callee.end);positions.push([node.callee.start,node.callee.end,"(typeof __substrateGuestConstructor==='function'?__substrateGuestConstructor("+callee+",$process):"+callee+")"])}const called=node.type==="CallExpression"?node.callee:node.type==="TaggedTemplateExpression"?node.tag:void 0;if((called==null?void 0:called.type)==="Identifier"&&(called.name==="fetch"||called.name==="Promise"))positions.push([called.start,called.end,"(0,"+code22.slice(called.start,called.end)+")"])});return applySourceEdits(code22,positions.sort((a,b)=>b[0]-a[0]))}function __substrateHeldAsync(call,host2){return function(...args){const held=heldWork();held.count+=1;let settled;try{settled=call.apply(this===void 0?host2:this,args)}catch(error){held.count-=1;throw error}if(!(settled instanceof Promise)){held.count-=1;return settled}return settled.finally(()=>{held.count-=1})}}var __substrateHeldNamespaces={WebAssembly:["compile","compileStreaming","instantiate","instantiateStreaming"]};function __substrateGuestGlobal(process22){let guest=__substrateGuestGlobals.get(process22);if(guest)return guest;const host2=globalThis;let fetch2=typeof host2.fetch==="function"?guestFetch(process22,host2.fetch):host2.fetch;let buffer2;const boundGlobals=new Map;const shadowed=(target,key)=>Reflect.getOwnPropertyDescriptor(target,key)!==void 0;const localGlobals=Object.create(null);Object.defineProperty(localGlobals,"Promise",{value:intrinsicPromise,writable:true,configurable:true,enumerable:false});Object.defineProperties(localGlobals,{navigator:{configurable:true,enumerable:true,get:()=>loadNodeLibFor(process22,"internal/navigator").navigator},Navigator:{configurable:true,enumerable:false,get:()=>loadNodeLibFor(process22,"internal/navigator").Navigator,set:value=>Object.defineProperty(localGlobals,"Navigator",{value,writable:true,configurable:true,enumerable:false})}});const isLocalGlobal=key=>
|
|
5870
|
+
//# sourceURL=${name}`}function __substrateScopeGlobalCalls(code22){if(!/\b(?:new|fetch|Promise)\b/u.test(code22))return code22;let ast;try{ast=parse3(code22,{ecmaVersion:"latest",sourceType:"module",allowReturnOutsideFunction:true})}catch{return code22}const positions=[];walkAst(ast,node=>{if(node.type==="NewExpression"&&node.callee.type==="Identifier"){const callee=code22.slice(node.callee.start,node.callee.end);positions.push([node.callee.start,node.callee.end,"(typeof __substrateGuestConstructor==='function'?__substrateGuestConstructor("+callee+",$process):"+callee+")"])}const called=node.type==="CallExpression"?node.callee:node.type==="TaggedTemplateExpression"?node.tag:void 0;if((called==null?void 0:called.type)==="Identifier"&&(called.name==="fetch"||called.name==="Promise"))positions.push([called.start,called.end,"(0,"+code22.slice(called.start,called.end)+")"])});return applySourceEdits(code22,positions.sort((a,b)=>b[0]-a[0]))}function __substrateHeldAsync(call,host2){return function(...args){const held=heldWork();held.count+=1;let settled;try{settled=call.apply(this===void 0?host2:this,args)}catch(error){held.count-=1;throw error}if(!(settled instanceof Promise)){held.count-=1;return settled}return settled.finally(()=>{held.count-=1})}}var __substrateHeldNamespaces={WebAssembly:["compile","compileStreaming","instantiate","instantiateStreaming"]};function __substrateGuestGlobal(process22){let guest=__substrateGuestGlobals.get(process22);if(guest)return guest;const host2=globalThis;let fetch2=typeof host2.fetch==="function"?guestFetch(process22,host2.fetch):host2.fetch;let buffer2;const boundGlobals=new Map;const shadowed=(target,key)=>Reflect.getOwnPropertyDescriptor(target,key)!==void 0;const localGlobals=Object.create(null);Object.defineProperty(localGlobals,"Promise",{value:intrinsicPromise,writable:true,configurable:true,enumerable:false});Object.defineProperties(localGlobals,{navigator:{configurable:true,enumerable:true,get:()=>loadNodeLibFor(process22,"internal/navigator").navigator},Navigator:{configurable:true,enumerable:false,get:()=>loadNodeLibFor(process22,"internal/navigator").Navigator,set:value=>Object.defineProperty(localGlobals,"Navigator",{value,writable:true,configurable:true,enumerable:false})}});Object.defineProperties(localGlobals,{Worker:{value:void 0,writable:true,configurable:true,enumerable:true},self:{value:void 0,writable:true,configurable:true,enumerable:true}});const isLocalGlobal=key=>["Promise","navigator","Navigator","Worker","self"].includes(key);guest=new Proxy(localGlobals,{get(target,key){var _a22,_b22,_c22;if(["document","window","location"].includes(key))return void 0;if(key==="fetch")return fetch2;if(key==="Buffer")return buffer2??loadNodeLibFor(process22,"buffer").Buffer;if(key==="process")return process22;if(isLocalGlobal(key))return Reflect.get(target,key,guest);if(key==="globalThis"||key==="global")return guest;if(shadowed(target,key))return Reflect.get(target,key,guest);const value=Reflect.get(host2,key,host2);if(["setTimeout","clearTimeout","setInterval","clearInterval"].includes(key)&&typeof value==="function"){if(((_a22=boundGlobals.get(key))==null?void 0:_a22.original)!==value){const timers=guestTimerFunctions(process22,host2);for(const name of["setTimeout","clearTimeout","setInterval","clearInterval"])boundGlobals.set(name,{original:Reflect.get(host2,name,host2),bound:timers[name]})}return boundGlobals.get(key).bound}const held=__substrateHeldNamespaces[key];if(held!==void 0&&value!==null&&typeof value==="object"){if(((_b22=boundGlobals.get(key))==null?void 0:_b22.original)!==value){const namespace=value;boundGlobals.set(key,{original:value,bound:new Proxy(namespace,{get(target2,name,receiver){const member=Reflect.get(target2,name,receiver);if(!held.includes(name)||typeof member!=="function")return member;return __substrateHeldAsync(member,target2)}})})}return boundGlobals.get(key).bound}if(["atob","btoa","structuredClone","queueMicrotask"].includes(key)&&typeof value==="function"){if(((_c22=boundGlobals.get(key))==null?void 0:_c22.original)!==value)boundGlobals.set(key,{original:value,bound:value.bind(host2)});return boundGlobals.get(key).bound}return value},set(target,key,value){if(isLocalGlobal(key))return Reflect.set(target,key,value,target);if(key==="fetch"){fetch2=value;return true}if(key==="Buffer"){buffer2=value;return true}if(shadowed(target,key))return Reflect.set(target,key,value,target);if(Reflect.set(host2,key,value,host2))return true;return Reflect.defineProperty(target,key,{value,writable:true,configurable:true,enumerable:true})},has(target,key){return isLocalGlobal(key)?Reflect.has(target,key):key==="global"||shadowed(target,key)||key in host2},ownKeys(target){const keys=Reflect.ownKeys(target);for(const key of Reflect.ownKeys(host2))if(!isLocalGlobal(key)&&!keys.includes(key))keys.push(key);return keys},getOwnPropertyDescriptor(target,key){if(isLocalGlobal(key))return Reflect.getOwnPropertyDescriptor(target,key);if(key==="fetch")return{value:fetch2,writable:true,configurable:true,enumerable:true};if(key==="Buffer")return{value:buffer2??loadNodeLibFor(process22,"buffer").Buffer,writable:true,configurable:true,enumerable:true};const own=Reflect.getOwnPropertyDescriptor(target,key);if(own)return own;const descriptor=Reflect.getOwnPropertyDescriptor(host2,key);return descriptor?{...descriptor,configurable:true}:void 0},defineProperty(target,key,descriptor){if(isLocalGlobal(key))return Reflect.defineProperty(target,key,descriptor);if(key==="fetch"){if(!("value"in descriptor))return false;fetch2=descriptor.value;return true}if(key==="Buffer"){if(!("value"in descriptor))return false;buffer2=descriptor.value;return true}if(descriptor.configurable===false){if(!Reflect.defineProperty(target,key,descriptor))return false;Reflect.defineProperty(host2,key,{...descriptor,configurable:true});return true}if(Reflect.defineProperty(host2,key,descriptor))return true;return Reflect.defineProperty(target,key,descriptor)}});__substrateGuestGlobals.set(process22,guest);return guest}var __substrateSloppyEval=eval;var __substrateModuleMarker="/*__substrate_module__*/";function transformDynamicImportsRegex(code22){return code22.replace(new RegExp("(?<![.$\\w#])import\\s*\\(","g"),"__dynamicImport(")}function __substrateRewriteDynamicImportsInScript(code22){if(!new RegExp("(?<![.$\\w#])(?:import|eval)\\s*\\(").test(code22))return code22;let ast;try{ast=parse3(code22,{ecmaVersion:"latest",sourceType:"script",allowReturnOutsideFunction:true,allowHashBang:true,allowAwaitOutsideFunction:true})}catch{return code22}const replacements=[];walkAst(ast,node=>{if(node.type==="ImportExpression")replacements.push([node.start,node.start+6,"__dynamicImport"]);collectDirectEval(node,replacements)});if(replacements.length===0)return code22;return applyReplacements(code22,replacements)}function collectDirectEval(node,replacements){var _a22,_b22;if(node.type!=="CallExpression"||node.optional||((_a22=node.callee)==null?void 0:_a22.type)!=="Identifier"||node.callee.name!=="eval")return;const source=(_b22=node.arguments)==null?void 0:_b22[0];if(!source||source.type==="SpreadElement")return;replacements.push([source.start,source.start,"__substrateEvalSource("]);replacements.push([source.end,source.end,")"])}var ASYNC_FRAME="__substrateAsyncFrame";var FOLLOW_MARK="/*substrate*/";var FOLLOW_TAKE=`const ${ASYNC_FRAME}=__substrateContext();`;var FOLLOW_RESTORE=`__substrateRestore(${ASYNC_FRAME});`;var FOLLOW_RESUME_FRAMED=`__substrateResume(${ASYNC_FRAME},`;var FOLLOW_RESUME_TAKEN="__substrateResume(__substrateContext(),";function __substrateFollowAwaits(code22){if(!/\bawait\b/.test(code22))return code22;let ast;try{ast=parse3(code22,{ecmaVersion:"latest",sourceType:"script",allowReturnOutsideFunction:true,allowHashBang:true,allowAwaitOutsideFunction:true})}catch{return code22}const edits=[];const insert=(at22,text)=>{edits.push([at22,at22,text])};const closings=[];const close2=(at22,text)=>{closings.push([at22,at22,text])};const isFunction=node=>node.type==="FunctionDeclaration"||node.type==="FunctionExpression"||node.type==="ArrowFunctionExpression";const visit=(node,framed,parent)=>{const leading=[];if(isFunction(node)){framed=node.async&&node.body.type==="BlockStatement";if(framed){const directives=node.body.body.filter(statement=>statement.directive!==void 0);leading.push([directives.length?directives[directives.length-1].end:node.body.start+1,FOLLOW_TAKE])}}else if(node.type==="AwaitExpression"){insert(node.start,framed?FOLLOW_RESUME_FRAMED:FOLLOW_RESUME_TAKEN);close2(node.end,`${FOLLOW_MARK})`)}else if(framed&&node.type==="CatchClause"){leading.push([node.body.start+1,FOLLOW_RESTORE])}else if(framed&&node.type==="TryStatement"&&node.finalizer){leading.push([node.finalizer.start+1,FOLLOW_RESTORE])}else if(framed&&node.type==="ForOfStatement"&&node.await){const whole=(parent==null?void 0:parent.type)==="LabeledStatement"?parent:node;insert(whole.start,`{${FOLLOW_MARK}`);close2(whole.end,`;${FOLLOW_RESTORE}${FOLLOW_MARK}}`);if(node.body.type==="BlockStatement")leading.push([node.body.start+1,FOLLOW_RESTORE]);else{leading.push([node.body.start,`{${FOLLOW_MARK}${FOLLOW_RESTORE}`]);close2(node.body.end,`${FOLLOW_MARK}}`)}}for(const key of Object.keys(node)){if(key==="type"||key==="start"||key==="end"||key==="loc"||key==="range")continue;const child=node[key];if(!child||typeof child!=="object")continue;if(Array.isArray(child)){for(const item of child)if(item&&typeof item.type==="string")visit(item,framed,node)}else if(typeof child.type==="string")visit(child,framed,node)}for(const[at22,text]of leading)insert(at22,text)};visit(ast,false,void 0);const followed=edits.length||closings.length?applyReplacements(code22,[...edits,...closings]):code22;return __substrateTopLevelAwait(ast)?`${followed}
|
|
5871
5871
|
${__substrateTopLevelAwaitMarker}`:followed}var __substrateTopLevelAwaitMarker="/*__substrate_top_level_await__*/";function __substrateTopLevelAwait(ast){const isFunction=node=>node.type==="FunctionDeclaration"||node.type==="FunctionExpression"||node.type==="ArrowFunctionExpression";const stack=[ast];while(stack.length){const node=stack.pop();if(node.type==="AwaitExpression"||node.type==="ForOfStatement"&&node.await)return true;for(const key of Object.keys(node)){if(key==="type"||key==="start"||key==="end"||key==="loc"||key==="range")continue;const child=node[key];if(!child||typeof child!=="object")continue;for(const item of Array.isArray(child)?child:[child]){if(item&&typeof item.type==="string"&&!isFunction(item))stack.push(item)}}}return false}function __substrateUnfollowAwaits(source){if(!source.includes("__substrate"))return source;return source.replaceAll(`;${FOLLOW_RESTORE}${FOLLOW_MARK}}`,"").replaceAll(`{${FOLLOW_MARK}${FOLLOW_RESTORE}`,"").replaceAll(`{${FOLLOW_MARK}`,"").replaceAll(`${FOLLOW_MARK}}`,"").replaceAll(`${FOLLOW_MARK})`,"").replaceAll(FOLLOW_TAKE,"").replaceAll(FOLLOW_RESTORE,"").replaceAll(FOLLOW_RESUME_FRAMED,"").replaceAll(FOLLOW_RESUME_TAKEN,"")}forGuestRealm(()=>{const native=Function.prototype.toString;takeFromHost(Function.prototype,"toString",function toString22(){return __substrateUnfollowAwaits(native.call(this))})});function applyReplacements(code22,replacements){replacements.sort((a,b)=>b[0]-a[0]||b[1]-a[1]);const parts=[];let cursor=code22.length;for(const[start,end,text]of replacements){if(end>cursor){let out=code22;for(const[from,to2,replacement]of replacements)out=out.slice(0,from)+replacement+out.slice(to2);return out}parts.push(code22.slice(end,cursor),text);cursor=start}parts.push(code22.slice(0,cursor));return parts.reverse().join("")}Object.defineProperty(globalThis,"__substrateEvalSource",{configurable:true,value:source=>typeof source==="string"?__substrateRewriteDynamicImportsInScript(source):source});function __substratePrepareBody(rawCode,resolvedPath,format2,process22){let code22=rawCode;if(code22.startsWith("#!")){code22=code22.slice(code22.indexOf("\n")+1)}code22=__substrateModuleTypes(code22,resolvedPath,format2,process22);const __commonjs=format2==="commonjs"||format2==="commonjs-typescript"?true:format2==="module"||format2==="module-typescript"?false:resolvedPath.endsWith(".cjs")||resolvedPath.endsWith(".cts");if(!__commonjs){const lowered=transformEsmToCjs(code22,resolvedPath);code22=lowered===code22?code22:`${__substrateModuleMarker}"use strict";${lowered}`}else{code22=__substrateRewriteDynamicImportsInScript(code22)}return __substrateFollowAwaits(code22)}var PREPARED_MODULES_DIR="/opt/.tabnode/prepared";var PREPARED_MODULES_FORMAT="tabnode-prepared-3";function preparedModuleKey(rawCode,resolvedPath){var _a22;const extension=(_a22=/\.(js|cjs|mjs)$/u.exec(resolvedPath))==null?void 0:_a22[1];const extensionless=!resolvedPath.slice(resolvedPath.lastIndexOf("/")+1).includes(".");if(!extension&&!extensionless)return void 0;const kind=extension==="cjs"?"cjs":"js";return bytesToHex(sha256(new TextEncoder().encode(`${PREPARED_MODULES_FORMAT}|${kind}|${rawCode}`)))}function prepareModuleForImage(rawCode,resolvedPath){return __substrateScopeGlobalCalls(__substratePrepareBody(rawCode,resolvedPath,void 0,{execArgv:[],env:{}}))}function transformEsmToCjs(code22,filename){const maybeEsm=__substrateHasEsmSyntax(code22);if(!maybeEsm)return __substrateRewriteDynamicImportsInScript(code22);setNodeLowering(true);try{return transformEsmToCjsAst(code22,filename)}catch{return transformEsmToCjsRegexFallback(code22,filename)}finally{setNodeLowering(false)}}function transformEsmToCjsAst(code22,filename){const ast=parse3(code22,{ecmaVersion:"latest",sourceType:"module"});const deepReplacements=[];walkAst(ast,node=>{var _a22,_b22;if(node.type==="MetaProperty"&&((_a22=node.meta)==null?void 0:_a22.name)==="import"&&((_b22=node.property)==null?void 0:_b22.name)==="meta"){deepReplacements.push([node.start,node.end,"import_meta"])}if(node.type==="ImportExpression"){deepReplacements.push([node.start,node.start+6,"__dynamicImport"])}collectDirectEval(node,deepReplacements)});const hasImportDecl=ast.body.some(n8=>n8.type==="ImportDeclaration");const hasExportDecl=ast.body.some(n8=>{var _a22;return(_a22=n8.type)==null?void 0:_a22.startsWith("Export")});let transformed=applyReplacements(code22,deepReplacements);if(hasImportDecl||hasExportDecl){transformed=transformEsmToCjsSimple(transformed);if(hasExportDecl){transformed=`${__cjsObject()}.defineProperty(${__cjsExports()}, "__esModule", { value: true });
|
|
5872
5872
|
`+transformed}}return transformed}function transformEsmToCjsRegexFallback(code22,filename){let transformed=code22;transformed=transformed.replace(/\bimport\.meta\.url\b/g,`"file://${filename}"`);transformed=transformed.replace(/\bimport\.meta\.dirname\b/g,`"${dirname(filename)}"`);transformed=transformed.replace(/\bimport\.meta\.filename\b/g,`"${filename}"`);transformed=transformed.replace(/\bimport\.meta\b/g,`({ url: "file://${filename}", dirname: "${dirname(filename)}", filename: "${filename}" })`);transformed=transformDynamicImportsRegex(transformed);const hasImport=/\bimport\s+[\w{*'"]/m.test(code22);const hasExport=/\bexport\s+(?:default|const|let|var|function|class|{|\*)/m.test(code22);if(hasImport||hasExport){transformed=transformEsmToCjsSimple(transformed);if(hasExport){transformed=`${__cjsObject()}.defineProperty(${__cjsExports()}, "__esModule", { value: true });
|
|
5873
|
-
`+transformed}}return transformed}function __substrateDataModuleSource(url2){const match2=/^data:([^,;]*)((?:;[^,]*)*),(.*)$/su.exec(url2);if(!match2)return void 0;const type2=(match2[1]||"text/plain").toLowerCase();if(!/^(?:text|application)\/(?:javascript|ecmascript|x-javascript)$/u.test(type2)){throw Object.assign(new Error(`Unknown module format for data: URL of type ${type2}`),{code:"ERR_UNKNOWN_MODULE_FORMAT"})}const payload=match2[3];return/;base64/iu.test(match2[2]??"")?new TextDecoder().decode(Uint8Array.from(atob(payload),character=>character.charCodeAt(0))):decodeURIComponent(payload)}var __substratePending=Symbol.for("substrate.pending");function __substratePendingOf(value){if(value===null||typeof value!=="object"&&typeof value!=="function")return void 0;const pending=value[__substratePending];return pending instanceof Promise?pending:void 0}function __substrateKeepPending(module,body,forget){const exports$1=module.exports;const holds=exports$1!==null&&(typeof exports$1==="object"||typeof exports$1==="function");const settled=body.then(()=>{module.loaded=true;if(holds)delete exports$1[__substratePending]},error=>{forget();if(holds)delete exports$1[__substratePending];throw error});if(holds)Object.defineProperty(exports$1,__substratePending,{value:settled,configurable:true,enumerable:false,writable:true})}var __substrateAwaitMarker="/*__substrate_await__*/(";function __substrateGeneratorBody(wrappedCode){return wrappedCode.replace("return (function() {","return (function* () {").replaceAll(__substrateAwaitMarker,"yield (")}function __substrateAsyncBody(wrappedCode){const at22=wrappedCode.lastIndexOf("\n}).call(");if(at22<0)throw new Error("module wrapper changed");return wrappedCode.slice(0,at22).replace("return (function() {","return (async function() {").replaceAll(__substrateAwaitMarker,"await (")+"\n;$module.__substrateBodyDone = true;"+wrappedCode.slice(at22)}function __substrateDriveBody(kind,body,module){if(kind==="sync")return void 0;if(kind==="async")return module.__substrateBodyDone?void 0:body;const iterator=body;let step=iterator.next();while(!step.done&&!step.value)step=iterator.next();if(step.done)return void 0;return(async()=>{let current3=step;while(!current3.done){await current3.value;current3=iterator.next();while(!current3.done&&!current3.value)current3=iterator.next()}})()}async function __substrateImportThroughHooks(hooks,id2,parentURL,moduleRequire){const held=heldWork();held.count+=1;try{return await __substrateImportChain(hooks,id2,parentURL,moduleRequire)}finally{held.count-=1}}async function __substrateImportChain(hooks,id2,parentURL,moduleRequire){const doors=moduleRequire;const resolved=hooks.hasAsyncResolve?await hooks.resolve(id2,parentURL,void 0,specifier=>({url:doors.__resolveToURL(specifier)})):{url:doors.__resolveToURL(id2),format:void 0};if(!hooks.hasAsyncLoad)return doors.__loadFromURL(resolved.url,resolved.format);const loaded2=await hooks.load(resolved.url,resolved.format,void 0,(url2,context2)=>({source:doors.__readFromURL(url2),format:context2.format}));return doors.__loadFromURL(resolved.url,loaded2.format??resolved.format,loaded2.source??void 0)}function createImportMeta(moduleRequire,url2,dirname2,filename){const resolve2=(specifier,parent)=>{const id2=typeof specifier==="string"?specifier:String(specifier);const base=parent===void 0?url2:String(parent);if(id2.startsWith("./")||id2.startsWith("../")||id2.startsWith("/"))return new URL(id2,base).href;if(/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(id2))return id2.startsWith("node:")?id2:new URL(id2).href;if(Object.prototype.hasOwnProperty.call(builtinModules,id2))return`node:${id2}`;return"file://"+moduleRequire.resolve(id2)};return{url:url2,dirname:dirname2,filename,resolve:resolve2}}function createDynamicImport(moduleRequire,process22,parentURL){return async specifier=>{var _a22;try{const id2=typeof specifier==="string"?specifier:String(specifier);const hooks=(_a22=moduleRequire.__moduleHooks)==null?void 0:_a22.call(moduleRequire);const mod=hooks&&(hooks.hasAsyncResolve||hooks.hasAsyncLoad)?await __substrateImportThroughHooks(hooks,id2,parentURL,moduleRequire):moduleRequire(id2.startsWith("file://")?decodeURIComponent(new URL(id2).pathname):id2);const pending=__substratePendingOf(mod);if(pending)await pending;if(mod&&typeof mod==="object"&&"__esModule"in mod){return mod}return esmNamespaceOf(mod,process22)}catch(error){throw error}}}var prettierShim={format:(source,_options2)=>Promise.resolve(source),formatWithCursor:(source,_options2)=>Promise.resolve({formatted:source,cursorOffset:0}),check:(_source,_options2)=>Promise.resolve(true),resolveConfig:()=>Promise.resolve(null),resolveConfigFile:()=>Promise.resolve(null),clearConfigCache:()=>{},getFileInfo:()=>Promise.resolve({ignored:false,inferredParser:null}),getSupportInfo:()=>Promise.resolve({languages:[],options:[]}),version:"3.0.0",doc:{builders:{},printer:{},utils:{}}};function makeMutable(mod){const mutable={};for(const key of Object.keys(mod)){mutable[key]=mod[key]}return mutable}(()=>{const module={exports:{}};new Function("module","exports",PUNYCODE_SOURCE)(module,module.exports);return module.exports})();var __substrateNativeModules=Symbol.for("@volter/browser-node/rolldown-modules");var __substrateIdentityCache=new WeakMap;function __substratePackageIdentity(vfs2,file2){let cache2=__substrateIdentityCache.get(vfs2);if(!cache2){cache2=new Map;__substrateIdentityCache.set(vfs2,cache2)}let directory2=file2.slice(0,file2.lastIndexOf("/"));const walked=[];let found=null;while(directory2){const cached=cache2.get(directory2);if(cached!==void 0){found=cached;break}walked.push(directory2);const manifest=`${directory2}/package.json`;if(vfs2.existsSync(manifest)){try{const parsed=JSON.parse(vfs2.readFileSync(manifest,"utf8"));if(typeof parsed.name==="string"&&typeof parsed.version==="string"){found=`${directory2}\0${parsed.name}@${parsed.version}`;break}}catch{}}if(directory2.endsWith("/node_modules")){found=null;break}directory2=directory2.slice(0,directory2.lastIndexOf("/"))}for(const seen of walked)cache2.set(seen,found);if(!found)return void 0;const[root2,identity]=found.split("\0");return`pkg:${identity}/${file2.slice(root2.length+1)}`}function __webStreamsModule(){const module={};for(const name of["ReadableStream","ReadableStreamDefaultReader","ReadableStreamBYOBReader","ReadableStreamBYOBRequest","ReadableByteStreamController","ReadableStreamDefaultController","TransformStream","TransformStreamDefaultController","WritableStream","WritableStreamDefaultWriter","WritableStreamDefaultController","ByteLengthQueuingStrategy","CountQueuingStrategy","TextEncoderStream","TextDecoderStream","CompressionStream","DecompressionStream"]){if(typeof globalThis[name]==="undefined")continue;Object.defineProperty(module,name,{enumerable:true,configurable:true,get:()=>globalThis[name]})}return module}var builtinModules={constants:constantsModule,punycode:punycodeModule,"stream/web":__webStreamsModule(),path:posix,http:httpModule,https:httpsModule,_http_common:httpCommonModule,_http_incoming:httpIncomingModule,_http_outgoing:httpOutgoingModule,_http_server:httpServerModule,_http_client:httpClientModule,_http_agent:httpAgentModule,net:netModule,events:eventsModule,stream:streamModule,"stream/promises":streamPromisesModule,buffer:bufferModule,url:urlShim,querystring:querystringModule,util:utilModule,tty:ttyModule,os:osModule,crypto:cryptoShim,zlib:zlibModule,dns:createDnsModule(),child_process:childProcessModule,assert:assertModule,string_decoder:stringDecoderShim,timers:createTimersModule(),module:moduleShim,perf_hooks:perfHooksShim,worker_threads:workerThreadsShim,esbuild:esbuildShim,rollup:rollupShim,v8:v8Shim$1,readline:readlineModule,tls:tlsShim,http2:http2Shim,cluster:clusterShim,dgram:dgramShim,vm:vmShim,inspector:inspectorShim,"inspector/promises":inspectorShim,async_hooks:asyncHooksShim$1,domain:domainShim,diagnostics_channel:diagnosticsChannelModule,prettier:prettierShim,console:{...console,Console:class Console{constructor(options){__publicField2(this,"_stdout");__publicField2(this,"_stderr");const opts=options;if(opts&&typeof opts==="object"&&"write"in opts){this._stdout=opts;this._stderr=arguments[1]||this._stdout}else if(opts&&typeof opts==="object"&&"stdout"in opts){this._stdout=opts.stdout||null;this._stderr=opts.stderr||this._stdout}else{this._stdout=null;this._stderr=null}}_write(stream,args){const msg2=args.map(a=>typeof a==="string"?a:JSON.stringify(a)).join(" ")+"\n";const target=stream==="err"?this._stderr:this._stdout;if(target)target.write(msg2);else if(stream==="err")console.error(...args);else console.log(...args)}log(...args){this._write("out",args)}error(...args){this._write("err",args)}warn(...args){this._write("err",args)}info(...args){this._write("out",args)}debug(...args){this._write("out",args)}trace(...args){this._write("err",args)}dir(obj){this._write("out",[obj])}time(_label){}timeEnd(_label){}timeLog(_label){}assert(value,...args){if(!value)this._write("err",["Assertion failed:",...args])}clear(){}count(_label){}countReset(_label){}group(..._args){}groupCollapsed(..._args){}groupEnd(){}table(data2){this._write("out",[data2])}}},"util/types":utilModule.types,"path/posix":posix,"path/win32":win32};Object.defineProperty(builtinModules,"assert/strict",{configurable:true,enumerable:true,get(){return assertModule.strict}});for(const __substrateName of Object.keys(builtinModules)){const __substrateModule=builtinModules[__substrateName];if(__substrateModule&&typeof __substrateModule==="object"&&Object.isFrozen(__substrateModule))builtinModules[__substrateName]=makeMutable(__substrateModule)}function __browserRuntimeFillModules(table){const extend22=(name,fills)=>{const base=table[name];if(!base)return null;const next2=Object.assign({},base,fills);if(base.default&&typeof base.default==="object"){Object.assign(base.default,fills);next2.default=base.default}table[name]=next2;return next2};const abortError=()=>{const error=new Error("The operation was aborted");error.name="AbortError";error.code="ABORT_ERR";return error};forGuestRealm(()=>{const NativeProxy=globalThis.Proxy;if(NativeProxy.__substrateProxies)return;const RecordedProxy=function Proxy2(target,handler){if(!new.target)throw new TypeError("Constructor Proxy requires 'new'");const proxy2=new NativeProxy(target,handler);recordedProxies.add(proxy2);return proxy2};RecordedProxy.revocable=(target,handler)=>{const revocable=NativeProxy.revocable(target,handler);recordedProxies.add(revocable.proxy);return revocable};Object.defineProperty(RecordedProxy,"__substrateProxies",{value:recordedProxies});takeFromHost(globalThis,"Proxy",RecordedProxy)});const errorNames=new Map;for(const[name,value]of Object.entries(table.constants||{})){if(typeof value==="number"&&/^E[A-Z0-9]+$/.test(name)&&!errorNames.has(-value))errorNames.set(-value,name)}table["timers/promises"]=table.timers.promises;const punycodeDecode=input=>{const base=36,tMin=1,tMax=26,skew=38,damp=700;const output=[];let index2=input.lastIndexOf("-");if(index2>0){for(let i222=0;i222<index2;i222++)output.push(input.charCodeAt(i222));index2++}else index2=0;let n8=128,bias=72,i22=0;while(index2<input.length){const start=i22;for(let weight=1,k22=base;;k22+=base){if(index2>=input.length)throw new RangeError("Invalid punycode input");const code22=input.charCodeAt(index2++);let digit;if(code22>=48&&code22<=57)digit=code22-48+26;else if(code22>=97&&code22<=122)digit=code22-97;else if(code22>=65&&code22<=90)digit=code22-65;else throw new RangeError("Invalid punycode input");i22+=digit*weight;const t10=k22<=bias?tMin:k22>=bias+tMax?tMax:k22-bias;if(digit<t10)break;weight*=base-t10}const out=output.length+1;let delta=i22-start;delta=start===0?Math.floor(delta/damp):delta>>1;delta+=Math.floor(delta/out);let k10=0;for(;delta>(base-tMin)*tMax>>1;k10+=base)delta=Math.floor(delta/(base-tMin));bias=Math.floor(k10+(base-tMin+1)*delta/(delta+skew));n8+=Math.floor(i22/out);i22%=out;output.splice(i22++,0,n8)}return String.fromCodePoint(...output)};const urlModule=table.url;const URLClass=urlModule.URL||globalThis.URL;const domainToASCII=domain2=>{try{return new URLClass("http://"+String(domain2)).hostname}catch(error){return""}};const domainToUnicode=domain2=>{const ascii=domainToASCII(domain2);if(!ascii)return"";return ascii.split(".").map(label=>{if(!/^xn--/i.test(label))return label;try{return punycodeDecode(label.slice(4))}catch(error){return label}}).join(".")};function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}const resolveObject=(from,to2)=>Object.assign(new Url,urlModule.parse(urlModule.resolve(from,to2)));Url.prototype.parse=function(input,parseQueryString,slashesDenoteHost){return Object.assign(this,urlModule.parse(input,parseQueryString,slashesDenoteHost))};Url.prototype.format=function(){return urlModule.format(this)};Url.prototype.resolve=function(relative22){return urlModule.resolve(urlModule.format(this),relative22)};Url.prototype.resolveObject=function(relative22){return resolveObject(urlModule.format(this),relative22)};const urlFills={Url,resolveObject,domainToASCII,domainToUnicode,urlToHttpOptions:url2=>{const hostname2=typeof url2.hostname==="string"&&url2.hostname.startsWith("[")?url2.hostname.slice(1,-1):url2.hostname;const options={protocol:url2.protocol,hostname:hostname2,hash:url2.hash,search:url2.search,pathname:url2.pathname,path:(url2.pathname||"")+(url2.search||""),href:url2.href};if(url2.port!==""&&url2.port!==void 0&&url2.port!==null)options.port=Number(url2.port);if(url2.username||url2.password)options.auth=decodeURIComponent(url2.username||"")+":"+decodeURIComponent(url2.password||"");return options}};if(typeof URLPattern!=="undefined")urlFills.URLPattern=URLPattern;extend22("url",urlFills);extend22("querystring",{unescapeBuffer:(text,decodeSpaces)=>{const bytes2=[];const encoder22=new TextEncoder;for(let i22=0;i22<text.length;i22++){const ch22=text[i22];if(ch22==="+"&&decodeSpaces){bytes2.push(32);continue}if(ch22==="%"&&i22+2<text.length){const value=parseInt(text.slice(i22+1,i22+3),16);if(!Number.isNaN(value)){bytes2.push(value);i22+=2;continue}}for(const byte of encoder22.encode(ch22))bytes2.push(byte)}return Buffer$9.from(bytes2)}});const bufferModule2=table.buffer;bufferModule2.Blob=globalThis.Blob;if(typeof globalThis.File!=="undefined")bufferModule2.File=globalThis.File;bufferModule2.kStringMaxLength=bufferModule2.constants&&bufferModule2.constants.MAX_STRING_LENGTH||536870888;bufferModule2.isUtf8=input=>{const bytes2=input instanceof Uint8Array?input:new Uint8Array(input);try{new TextDecoder("utf-8",{fatal:true}).decode(bytes2);return true}catch(error){return false}};bufferModule2.isAscii=input=>{const bytes2=input instanceof Uint8Array?input:new Uint8Array(input);for(let i22=0;i22<bytes2.length;i22++)if(bytes2[i22]>127)return false;return true};extend22("os",{availableParallelism:()=>typeof navigator==="object"&&navigator&&Number(navigator.hardwareConcurrency)||1});table["dns/promises"]=table.dns.promises;const readlineModule2=table.readline;class PromisesInterface{constructor(options){this.input=options&&options.input;this.output=options&&options.output;this._interface=readlineModule2.createInterface(options)}question(query,options){const signal=options&&options.signal;return new Promise((resolve2,reject)=>{if(signal&&signal.aborted){reject(abortError());return}if(signal)signal.addEventListener("abort",()=>reject(abortError()),{once:true});this._interface.question(query,resolve2)})}close(){return this._interface.close()}pause(){if(typeof this._interface.pause==="function")this._interface.pause();return this}resume(){if(typeof this._interface.resume==="function")this._interface.resume();return this}write(data2,key){return this._interface.write(data2,key)}getCursorPos(){return this._interface.getCursorPos()}on(event,listener){this._interface.on(event,listener);return this}once(event,listener){this._interface.once(event,listener);return this}off(event,listener){this._interface.removeListener(event,listener);return this}removeListener(event,listener){this._interface.removeListener(event,listener);return this}[Symbol.asyncIterator](){const lines=[];let closed=false;let wake=null;const bump=()=>{const resume=wake;wake=null;if(resume)resume()};this._interface.on("line",line=>{lines.push(line);bump()});this._interface.on("close",()=>{closed=true;bump()});return{[Symbol.asyncIterator](){return this},async next(){for(;;){if(lines.length>0)return{value:lines.shift(),done:false};if(closed)return{value:void 0,done:true};await new Promise(resolve2=>{wake=resolve2})}}}}}class Readline{constructor(stream,options){this._stream=stream;this._autoCommit=!!(options&&options.autoCommit);this._queue=[]}_queueEscape(text){this._queue.push(text);return this._autoCommit?this.commit():this}clearLine(dir){return this._queueEscape("\x1B["+(dir<0?"1K":dir>0?"0K":"2K"))}clearScreenDown(){return this._queueEscape("\x1B[0J")}cursorTo(x,y){return this._queueEscape(y===void 0?"\x1B["+(x+1)+"G":"\x1B["+(y+1)+";"+(x+1)+"H")}moveCursor(dx,dy2){let text="";if(dx<0)text+="\x1B["+-dx+"D";else if(dx>0)text+="\x1B["+dx+"C";if(dy2<0)text+="\x1B["+-dy2+"A";else if(dy2>0)text+="\x1B["+dy2+"B";return this._queueEscape(text)}rollback(){this._queue=[];return this}async commit(){const text=this._queue.join("");this._queue=[];if(text&&this._stream&&typeof this._stream.write==="function")this._stream.write(text)}}const readlinePromises={Interface:PromisesInterface,Readline,createInterface:options=>new PromisesInterface(options)};readlinePromises.default=readlinePromises;table["readline/promises"]=readlinePromises;extend22("readline",{promises:readlinePromises})}function __browserRuntimeFillStreams(table,Bytes=Buffer$9){const collect=async source=>{const chunks=[];if(source&&typeof source.getReader==="function"){const reader=source.getReader();for(;;){const step=await reader.read();if(step.done)break;chunks.push(Bytes.from(step.value))}}else if(source&&typeof source[Symbol.asyncIterator]==="function"){for await(const chunk of source)chunks.push(typeof chunk==="string"?Bytes.from(chunk):Bytes.from(chunk))}else if(source&&typeof source[Symbol.iterator]==="function"){for(const chunk of source)chunks.push(typeof chunk==="string"?Bytes.from(chunk):Bytes.from(chunk))}else{throw new TypeError("The stream argument must be a stream or an iterable")}return Bytes.concat(chunks)};table["stream/consumers"]={arrayBuffer:async source=>{const bytes2=await collect(source);return bytes2.buffer.slice(bytes2.byteOffset,bytes2.byteOffset+bytes2.byteLength)},blob:async source=>new Blob([new Uint8Array(await collect(source))]),buffer:collect,bytes:async source=>new Uint8Array(await collect(source)),json:async source=>JSON.parse((await collect(source)).toString("utf8")),text:async source=>(await collect(source)).toString("utf8")}}__browserRuntimeFillStreams(builtinModules);__browserRuntimeFillModules(builtinModules);var __substrateGuestBundlers=new WeakMap;var __substrateGuestWasis=new WeakMap;function __substrateGuestWasi(fsShim,process22){let module=__substrateGuestWasis.get(process22);if(module===void 0){module=createWasiModule(fsShim,process22);__substrateGuestWasis.set(process22,module)}return module}var __substrateGuestRollups=new WeakMap;var currentVfs=null;function __substrateGuestRollup(process22){let bound=__substrateGuestRollups.get(process22);if(bound)return bound;const original=builtinModules.rollup;bound={...original,rollup:async(options={})=>{const cwd=process22.cwd();const resolve2=path22=>{if(path22.startsWith(String.fromCharCode(0)))return path22;const parts=[];for(const part of(path22.startsWith("/")?path22:cwd+"/"+path22).split("/")){if(part==="..")parts.pop();else if(part&&part!==".")parts.push(part)}return"/"+parts.join("/")};const input=typeof options.input==="string"?resolve2(options.input):Array.isArray(options.input)?options.input.map(resolve2):options.input?Object.fromEntries(Object.entries(options.input).map(([name,path22])=>[name,resolve2(path22)])):options.input;const fs2=options.fs??globalThis.__browserRuntimeRollupFs;const bundle=await original.rollup({...options,input,...fs2?{fs:fs2}:{}});for(const name of["generate","write"]){const action=bundle[name].bind(bundle);bundle[name]=(output={})=>action({...output,...output.dir?{dir:resolve2(output.dir)}:{},...output.file?{file:resolve2(output.file)}:{}})}return bundle}};bound.default=bound;__substrateGuestRollups.set(process22,bound);return bound}function __substrateGuestEsbuild(process22){let bound=__substrateGuestBundlers.get(process22);if(bound)return bound;const original=builtinModules.esbuild;bound={...original};const nearestTsconfig=directory2=>{const fs2=typeof currentVfs!=="undefined"?currentVfs:null;if(!fs2)return void 0;let dir=directory2;for(let hops=0;hops<32;hops+=1){const candidate=(dir==="/"?"":dir)+"/tsconfig.json";try{if(fs2.existsSync(candidate))return fs2.readFileSync(candidate,"utf8")}catch{}if(dir==="/"||!dir)return void 0;dir=dir.slice(0,dir.lastIndexOf("/"))||"/"}return void 0};for(const name of["build","context"]){bound[name]=(options={})=>{const absWorkingDir=options.absWorkingDir??process22.cwd();const tsconfigRaw=options.tsconfigRaw??(options.tsconfig?void 0:nearestTsconfig(absWorkingDir));return original[name]({...options,absWorkingDir,...tsconfigRaw!==void 0?{tsconfigRaw}:{}})}}bound.default=bound;__substrateGuestBundlers.set(process22,bound);return bound}function __substrateEsbuildRunsHere(vfs2,file2){let dir=file2;for(let hops=0;hops<6;hops+=1){dir=dir.slice(0,dir.lastIndexOf("/"));if(!dir)return false;if(vfs2.existsSync(dir+"/package.json"))return vfs2.existsSync(dir+"/esbuild.wasm")}return false}var __substrateModuleClasses=new WeakMap;var __substrateResolvedPaths=new WeakMap;function __substratePathsFor(cache2,fs2){let filesystems=__substrateResolvedPaths.get(cache2);if(!filesystems){filesystems=new WeakMap;__substrateResolvedPaths.set(cache2,filesystems)}let paths=filesystems.get(fs2);if(!paths){paths={paths:new Map,bytes:0};filesystems.set(fs2,paths)}return paths}function __substrateKeepPath(cache2,key,path22){const bytes2=2*(key.length+path22.length);if(bytes2>8*1024*1024)return;const old=cache2.paths.get(key);if(old!==void 0){cache2.paths.delete(key);cache2.bytes-=2*(key.length+old.length)}while(cache2.paths.size>=8192||cache2.bytes+bytes2>8*1024*1024){const first=cache2.paths.entries().next().value;cache2.paths.delete(first[0]);cache2.bytes-=2*(first[0].length+first[1].length)}cache2.paths.set(key,path22);cache2.bytes+=bytes2}function __substrateModuleDir(parent,currentDir){if(!parent||typeof parent.filename!=="string"||parent.filename==="")return currentDir;if(parent.filename.endsWith("/"))return parent.filename.length>1?parent.filename.slice(0,-1):"/";return dirname(parent.filename)}function __substrateModuleClassFor(moduleCache,requireFor){let Module2=__substrateModuleClasses.get(moduleCache);if(Module2)return Module2;Module2=function Module22(id2="",parent){this.id=id2;this.filename=id2;this.exports={};this.loaded=false;this.children=[];this.paths=[];this.parent=parent};Module2.prototype.require=function(id2){return Module2._load(id2,this,false)};Module2.__substrateRequire=Module2.prototype.require;Module2.prototype._compile=function(content,filename){const file2=typeof filename==="string"&&filename?filename:this.filename||this.id||"";this.filename=file2;if(!Array.isArray(this.paths)||this.paths.length===0)this.paths=Module2._nodeModulePaths(dirname(file2));requireFor(this).__compileRaw(this,String(content),file2,dirname(file2));return this.exports};Module2._resolveFilename=function(request,parent){return requireFor(parent).__resolveRaw(request)};Module2.__substrateResolveFilename=Module2._resolveFilename;Module2._load=function(request,parent,isMain){const from=parent||new Module2;if(isMain)process.__substrateMainPending=Module2._resolveFilename(request,from,true,void 0);return requireFor(from).__requireRaw(request)};Module2.__substrateLoad=Module2._load;Module2._cache=moduleCache;Module2._extensions=Object.assign(Object.create(null),{".js":(module,filename)=>{module.exports=requireFor(module).__requireRaw(filename);module.loaded=true},".json":(module,filename)=>{module.exports=requireFor(module).__requireRaw(filename);module.loaded=true},".node":(module,filename)=>{throw Object.assign(new Error(`Cannot load native addon ${filename} in a tab.`),{code:"ERR_DLOPEN_FAILED"})}});Module2._pathCache=Object.create(null);Module2.builtinModules=builtinModules$1;Module2.isBuiltin=isBuiltin;Module2.syncBuiltinESMExports=()=>syncBuiltinESMExports(process);Module2.globalPaths=["/node_modules"];Module2._nodeModulePaths=directory2=>{const result=[];for(let current3=directory2.replace(/\/$/u,"")||"/";;){if(!current3.endsWith("/node_modules"))result.push((current3==="/"?"":current3)+"/node_modules");if(current3==="/")return result;current3=current3.slice(0,current3.lastIndexOf("/"))||"/"}};Module2.wrapper=["(function (exports, require, module, __filename, __dirname) { ","\n});"];Module2.wrap=code22=>Module2.wrapper[0]+code22+Module2.wrapper[1];Module2.createRequire=filenameOrUrl=>{let fromPath=String(filenameOrUrl);if(fromPath.startsWith("file://")){fromPath=fromPath.slice(7);if(fromPath.startsWith("/")&&fromPath[2]===":")fromPath=fromPath.slice(1)}const made=requireFor({id:fromPath,filename:fromPath,paths:[]});made.cache=moduleCache;return made};Module2.findSourceMap=()=>void 0;Module2.__substrateHooks=void 0;const __substrateHooksOf=()=>Module2.__substrateHooks??(Module2.__substrateHooks=new RunModuleHooks(process));Module2.registerHooks=hooks=>__substrateHooksOf().sync.registerHooks(hooks);Module2.register=(specifier,parentURL,options)=>__substrateHooksOf().register(specifier,parentURL,options,(url2,from)=>Module2.createRequire(from)(url2));Module2.Module=Module2;Module2.default=Module2;__substrateModuleClasses.set(moduleCache,Module2);return Module2}function createRequire(vfs2,fsShim,process22,currentDir,moduleCache,options,processedCodeCache,parentModule){currentVfs=vfs2;const __substrateInstalledWins=id2=>{const shimmed=id2==="rollup"||id2.startsWith("rollup/")||id2.startsWith("@rollup/")?"rollup":id2==="esbuild"||id2.startsWith("esbuild/")||id2.startsWith("@esbuild/")?"esbuild":id2==="prettier"||id2.startsWith("prettier/")?"prettier":id2==="ws"||id2.startsWith("ws/")?"ws":id2==="chokidar"||id2.startsWith("chokidar/")?"chokidar":id2==="readdirp"||id2.startsWith("readdirp/")?"readdirp":id2==="fsevents"?"fsevents":void 0;if(!shimmed)return false;try{const file2=resolveModule(id2,currentDir);return shimmed!=="esbuild"||__substrateEsbuildRunsHere(vfs2,file2)}catch{return false}};const __substrateModule=()=>__substrateModuleClassFor(moduleCache,parent=>createRequire(vfs2,fsShim,process22,__substrateModuleDir(parent,currentDir),moduleCache,options,processedCodeCache,parent));const __substrateHooks=()=>__substrateModule().__substrateHooks;const __substrateResolve=id2=>{const Module2=__substrateModule();return Module2._resolveFilename===Module2.__substrateResolveFilename?resolveModule(id2,currentDir):Module2._resolveFilename(id2,parentModule||{id:currentDir,filename:currentDir+"/",paths:[]},false,void 0)};const resolutionCache=new Map;const successfulPaths=__substratePathsFor(moduleCache,vfs2);const resolveModule=(id2,fromDir)=>{if(id2.startsWith("node:")){id2=id2.slice(5)}if(id2.startsWith("file://")){id2=decodeURIComponent(new URL(id2).pathname)}const __standInPaths=globalThis.__browserRuntimeStandInPaths;if(__standInPaths&&Object.prototype.hasOwnProperty.call(__standInPaths,id2)&&vfs2.existsSync(__standInPaths[id2])){return __standInPaths[id2]}if(id2==="fs"||id2==="process"||id2==="url"||id2==="querystring"||id2==="util"||builtinModules$1.includes(id2)){return id2}const __standIn=Boolean(builtinModules[id2]);if(id2.startsWith("#")){const __resolvedImport=__nodeResolverFor(vfs2,"runtime").resolve(id2,fromDir);if(__resolvedImport)return __resolvedImport;throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})}const cacheKey=`${fromDir}\0${id2}`;const cached=resolutionCache.get(cacheKey);if(cached!==void 0){if(cached===null){throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})}return cached}const successful=successfulPaths.paths.get(cacheKey);if(successful!==void 0)return successful;{const __resolved=__nodeResolverFor(vfs2,"runtime").resolve(id2,fromDir);if(__resolved){__substrateKeepPath(successfulPaths,cacheKey,__resolved);return __resolved}}const __standIns=globalThis.__browserRuntimeModuleStandIns;const __answered=__standIns?__standIns.resolve(id2,fromDir):null;if(__answered){resolutionCache.set(cacheKey,__answered);return __answered}resolutionCache.set(cacheKey,null);if(__standIn)return id2;throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})};const loadModule=(resolvedPath,resolvedAs)=>{const __hostStandIns=globalThis.__browserRuntimeStandInPaths;if(__hostStandIns){for(const[__name,__file]of Object.entries(__hostStandIns)){if(resolvedPath.includes("/node_modules/"+__name+"/")&&vfs2.existsSync(__file)){resolvedPath=__file;break}}}if(resolvedPath.endsWith(".node")){const __native=globalThis.__browserRuntimeNativeStandIns;const __package=__native?Object.keys(__native).find(name=>resolvedPath.includes("/node_modules/"+name+"/")):void 0;const __answer=__package!==void 0&&__native?__native[__package]:void 0;if(__answer&&vfs2.existsSync(__answer)){resolvedPath=__answer}else{throw Object.assign(new Error("Cannot load native addon "+resolvedPath+": a tab runs no native code."),{code:"ERR_DLOPEN_FAILED"})}}if(moduleCache[resolvedPath]){return moduleCache[resolvedPath]}const module={id:resolvedPath,filename:resolvedPath,exports:{},loaded:false,children:[],paths:[],parent:parentModule||null};if(parentModule&&Array.isArray(parentModule.children))parentModule.children.push(module);moduleCache[resolvedPath]=module;if(process22.__substrateMainPending===resolvedPath){delete process22.__substrateMainPending;process22.mainModule=module;module.id="."}const __hooks=__substrateHooks();const defaultSource=()=>resolvedPath.startsWith("data:")?__substrateDataModuleSource(resolvedPath):vfs2.readFileSync(resolvedPath,"utf8");let format2=resolvedAs==null?void 0:resolvedAs.format;let source=resolvedAs==null?void 0:resolvedAs.source;if(__hooks&&__hooks.hasSyncLoad&&source===void 0){const url2=(resolvedAs==null?void 0:resolvedAs.url)??__hooks.sync.convertCJSFilenameToURL(resolvedPath);const loaded2=__hooks.sync.loadWithHooks(url2,format2,void 0,CJS_CONDITIONS,(urlFromHook,context2)=>({source:urlFromHook===url2?defaultSource():vfs2.readFileSync(__hooks.sync.convertURLToCJSFilename(urlFromHook),"utf8"),format:context2.format}));format2=loaded2.format;source=loaded2.source}if(format2==="json"||format2===void 0&&resolvedPath.endsWith(".json")){module.exports=JSON.parse(source===void 0||source===null?vfs2.readFileSync(resolvedPath,"utf8"):String(source));module.loaded=true;return module}const rawCode=source===void 0||source===null?defaultSource():String(source);const dirname$1=resolvedPath.startsWith("data:")?currentDir:dirname(resolvedPath);if(format2===void 0&&!transformsTypes(process22)&&vfs2.existsSync(PREPARED_MODULES_DIR)){const key=preparedModuleKey(rawCode,resolvedPath);const prepared=key?`${PREPARED_MODULES_DIR}/${key}`:void 0;if(prepared&&vfs2.existsSync(prepared)){runModuleBody(module,vfs2.readFileSync(prepared,"utf8"),resolvedPath,dirname$1,true);return module}if(prepared){const body=__substrateScopeGlobalCalls(prepareModuleCode(rawCode,resolvedPath));try{vfs2.writeFileSync(prepared,body)}catch{}runModuleBody(module,body,resolvedPath,dirname$1,true);return module}}runModuleBody(module,prepareModuleCode(rawCode,resolvedPath,format2),resolvedPath,dirname$1);return module};const prepareModuleCode=(rawCode,resolvedPath,format2)=>{const codeCacheKey=`${resolvedPath}|${format2??""}|${transformsTypes(process22)?"transform-types|":""}${simpleHash(rawCode)}`;let code22=processedCodeCache==null?void 0:processedCodeCache.get(codeCacheKey);if(!code22){code22=__substratePrepareBody(rawCode,resolvedPath,format2,process22);processedCodeCache==null?void 0:processedCodeCache.set(codeCacheKey,code22)}return code22};const runModuleBody=(module,prepared,resolvedPath,dirname2,scoped=false)=>{let code22=prepared;const moduleRequire=createRequire(vfs2,fsShim,process22,dirname2,moduleCache,options,processedCodeCache,module);moduleRequire.cache=moduleCache;const consoleWrapper=createConsoleWrapper(options.onConsole);try{const importMetaUrl=resolvedPath.startsWith("data:")?resolvedPath:"file://"+resolvedPath;const strictBody=code22.startsWith(__substrateModuleMarker);if(!scoped)code22=__substrateScopeGlobalCalls(code22);const wrappedCode=`(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0, self = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
|
|
5873
|
+
`+transformed}}return transformed}function __substrateDataModuleSource(url2){const match2=/^data:([^,;]*)((?:;[^,]*)*),(.*)$/su.exec(url2);if(!match2)return void 0;const type2=(match2[1]||"text/plain").toLowerCase();if(!/^(?:text|application)\/(?:javascript|ecmascript|x-javascript)$/u.test(type2)){throw Object.assign(new Error(`Unknown module format for data: URL of type ${type2}`),{code:"ERR_UNKNOWN_MODULE_FORMAT"})}const payload=match2[3];return/;base64/iu.test(match2[2]??"")?new TextDecoder().decode(Uint8Array.from(atob(payload),character=>character.charCodeAt(0))):decodeURIComponent(payload)}var __substratePending=Symbol.for("substrate.pending");function __substratePendingOf(value){if(value===null||typeof value!=="object"&&typeof value!=="function")return void 0;const pending=value[__substratePending];return pending instanceof Promise?pending:void 0}function __substrateKeepPending(module,body,forget){const exports$1=module.exports;const holds=exports$1!==null&&(typeof exports$1==="object"||typeof exports$1==="function");const settled=body.then(()=>{module.loaded=true;if(holds)delete exports$1[__substratePending]},error=>{forget();if(holds)delete exports$1[__substratePending];throw error});if(holds)Object.defineProperty(exports$1,__substratePending,{value:settled,configurable:true,enumerable:false,writable:true})}var __substrateAwaitMarker="/*__substrate_await__*/(";function __substrateGeneratorBody(wrappedCode){return wrappedCode.replace("return (function() {","return (function* () {").replaceAll(__substrateAwaitMarker,"yield (")}function __substrateAsyncBody(wrappedCode){const at22=wrappedCode.lastIndexOf("\n}).call(");if(at22<0)throw new Error("module wrapper changed");return wrappedCode.slice(0,at22).replace("return (function() {","return (async function() {").replaceAll(__substrateAwaitMarker,"await (")+"\n;$module.__substrateBodyDone = true;"+wrappedCode.slice(at22)}function __substrateDriveBody(kind,body,module){if(kind==="sync")return void 0;if(kind==="async")return module.__substrateBodyDone?void 0:body;const iterator=body;let step=iterator.next();while(!step.done&&!step.value)step=iterator.next();if(step.done)return void 0;return(async()=>{let current3=step;while(!current3.done){await current3.value;current3=iterator.next();while(!current3.done&&!current3.value)current3=iterator.next()}})()}async function __substrateImportThroughHooks(hooks,id2,parentURL,moduleRequire){const held=heldWork();held.count+=1;try{return await __substrateImportChain(hooks,id2,parentURL,moduleRequire)}finally{held.count-=1}}async function __substrateImportChain(hooks,id2,parentURL,moduleRequire){const doors=moduleRequire;const resolved=hooks.hasAsyncResolve?await hooks.resolve(id2,parentURL,void 0,specifier=>({url:doors.__resolveToURL(specifier)})):{url:doors.__resolveToURL(id2),format:void 0};if(!hooks.hasAsyncLoad)return doors.__loadFromURL(resolved.url,resolved.format);const loaded2=await hooks.load(resolved.url,resolved.format,void 0,(url2,context2)=>({source:doors.__readFromURL(url2),format:context2.format}));return doors.__loadFromURL(resolved.url,loaded2.format??resolved.format,loaded2.source??void 0)}function createImportMeta(moduleRequire,url2,dirname2,filename){const resolve2=(specifier,parent)=>{const id2=typeof specifier==="string"?specifier:String(specifier);const base=parent===void 0?url2:String(parent);if(id2.startsWith("./")||id2.startsWith("../")||id2.startsWith("/"))return new URL(id2,base).href;if(/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(id2))return id2.startsWith("node:")?id2:new URL(id2).href;if(Object.prototype.hasOwnProperty.call(builtinModules,id2))return`node:${id2}`;return"file://"+moduleRequire.resolve(id2)};return{url:url2,dirname:dirname2,filename,resolve:resolve2}}function createDynamicImport(moduleRequire,process22,parentURL){return async specifier=>{var _a22;try{const id2=typeof specifier==="string"?specifier:String(specifier);const hooks=(_a22=moduleRequire.__moduleHooks)==null?void 0:_a22.call(moduleRequire);const mod=hooks&&(hooks.hasAsyncResolve||hooks.hasAsyncLoad)?await __substrateImportThroughHooks(hooks,id2,parentURL,moduleRequire):moduleRequire(id2.startsWith("file://")?decodeURIComponent(new URL(id2).pathname):id2);const pending=__substratePendingOf(mod);if(pending)await pending;if(mod&&typeof mod==="object"&&"__esModule"in mod){return mod}return esmNamespaceOf(mod,process22)}catch(error){throw error}}}var prettierShim={format:(source,_options2)=>Promise.resolve(source),formatWithCursor:(source,_options2)=>Promise.resolve({formatted:source,cursorOffset:0}),check:(_source,_options2)=>Promise.resolve(true),resolveConfig:()=>Promise.resolve(null),resolveConfigFile:()=>Promise.resolve(null),clearConfigCache:()=>{},getFileInfo:()=>Promise.resolve({ignored:false,inferredParser:null}),getSupportInfo:()=>Promise.resolve({languages:[],options:[]}),version:"3.0.0",doc:{builders:{},printer:{},utils:{}}};function makeMutable(mod){const mutable={};for(const key of Object.keys(mod)){mutable[key]=mod[key]}return mutable}(()=>{const module={exports:{}};new Function("module","exports",PUNYCODE_SOURCE)(module,module.exports);return module.exports})();var __substrateNativeModules=Symbol.for("@volter/browser-node/rolldown-modules");var __substrateIdentityCache=new WeakMap;function __substratePackageIdentity(vfs2,file2){let cache2=__substrateIdentityCache.get(vfs2);if(!cache2){cache2=new Map;__substrateIdentityCache.set(vfs2,cache2)}let directory2=file2.slice(0,file2.lastIndexOf("/"));const walked=[];let found=null;while(directory2){const cached=cache2.get(directory2);if(cached!==void 0){found=cached;break}walked.push(directory2);const manifest=`${directory2}/package.json`;if(vfs2.existsSync(manifest)){try{const parsed=JSON.parse(vfs2.readFileSync(manifest,"utf8"));if(typeof parsed.name==="string"&&typeof parsed.version==="string"){found=`${directory2}\0${parsed.name}@${parsed.version}`;break}}catch{}}if(directory2.endsWith("/node_modules")){found=null;break}directory2=directory2.slice(0,directory2.lastIndexOf("/"))}for(const seen of walked)cache2.set(seen,found);if(!found)return void 0;const[root2,identity]=found.split("\0");return`pkg:${identity}/${file2.slice(root2.length+1)}`}function __webStreamsModule(){const module={};for(const name of["ReadableStream","ReadableStreamDefaultReader","ReadableStreamBYOBReader","ReadableStreamBYOBRequest","ReadableByteStreamController","ReadableStreamDefaultController","TransformStream","TransformStreamDefaultController","WritableStream","WritableStreamDefaultWriter","WritableStreamDefaultController","ByteLengthQueuingStrategy","CountQueuingStrategy","TextEncoderStream","TextDecoderStream","CompressionStream","DecompressionStream"]){if(typeof globalThis[name]==="undefined")continue;Object.defineProperty(module,name,{enumerable:true,configurable:true,get:()=>globalThis[name]})}return module}var builtinModules={constants:constantsModule,punycode:punycodeModule,"stream/web":__webStreamsModule(),path:posix,http:httpModule,https:httpsModule,_http_common:httpCommonModule,_http_incoming:httpIncomingModule,_http_outgoing:httpOutgoingModule,_http_server:httpServerModule,_http_client:httpClientModule,_http_agent:httpAgentModule,net:netModule,events:eventsModule,stream:streamModule,"stream/promises":streamPromisesModule,buffer:bufferModule,url:urlShim,querystring:querystringModule,util:utilModule,tty:ttyModule,os:osModule,crypto:cryptoShim,zlib:zlibModule,dns:createDnsModule(),child_process:childProcessModule,assert:assertModule,string_decoder:stringDecoderShim,timers:createTimersModule(),module:moduleShim,perf_hooks:perfHooksShim,worker_threads:workerThreadsShim,esbuild:esbuildShim,rollup:rollupShim,v8:v8Shim$1,readline:readlineModule,tls:tlsShim,http2:http2Shim,cluster:clusterShim,dgram:dgramShim,vm:vmShim,inspector:inspectorShim,"inspector/promises":inspectorShim,async_hooks:asyncHooksShim$1,domain:domainShim,diagnostics_channel:diagnosticsChannelModule,prettier:prettierShim,console:{...console,Console:class Console{constructor(options){__publicField2(this,"_stdout");__publicField2(this,"_stderr");const opts=options;if(opts&&typeof opts==="object"&&"write"in opts){this._stdout=opts;this._stderr=arguments[1]||this._stdout}else if(opts&&typeof opts==="object"&&"stdout"in opts){this._stdout=opts.stdout||null;this._stderr=opts.stderr||this._stdout}else{this._stdout=null;this._stderr=null}}_write(stream,args){const msg2=args.map(a=>typeof a==="string"?a:JSON.stringify(a)).join(" ")+"\n";const target=stream==="err"?this._stderr:this._stdout;if(target)target.write(msg2);else if(stream==="err")console.error(...args);else console.log(...args)}log(...args){this._write("out",args)}error(...args){this._write("err",args)}warn(...args){this._write("err",args)}info(...args){this._write("out",args)}debug(...args){this._write("out",args)}trace(...args){this._write("err",args)}dir(obj){this._write("out",[obj])}time(_label){}timeEnd(_label){}timeLog(_label){}assert(value,...args){if(!value)this._write("err",["Assertion failed:",...args])}clear(){}count(_label){}countReset(_label){}group(..._args){}groupCollapsed(..._args){}groupEnd(){}table(data2){this._write("out",[data2])}}},"util/types":utilModule.types,"path/posix":posix,"path/win32":win32};Object.defineProperty(builtinModules,"assert/strict",{configurable:true,enumerable:true,get(){return assertModule.strict}});for(const __substrateName of Object.keys(builtinModules)){const __substrateModule=builtinModules[__substrateName];if(__substrateModule&&typeof __substrateModule==="object"&&Object.isFrozen(__substrateModule))builtinModules[__substrateName]=makeMutable(__substrateModule)}function __browserRuntimeFillModules(table){const extend22=(name,fills)=>{const base=table[name];if(!base)return null;const next2=Object.assign({},base,fills);if(base.default&&typeof base.default==="object"){Object.assign(base.default,fills);next2.default=base.default}table[name]=next2;return next2};const abortError=()=>{const error=new Error("The operation was aborted");error.name="AbortError";error.code="ABORT_ERR";return error};forGuestRealm(()=>{const NativeProxy=globalThis.Proxy;if(NativeProxy.__substrateProxies)return;const RecordedProxy=function Proxy2(target,handler){if(!new.target)throw new TypeError("Constructor Proxy requires 'new'");const proxy2=new NativeProxy(target,handler);recordedProxies.add(proxy2);return proxy2};RecordedProxy.revocable=(target,handler)=>{const revocable=NativeProxy.revocable(target,handler);recordedProxies.add(revocable.proxy);return revocable};Object.defineProperty(RecordedProxy,"__substrateProxies",{value:recordedProxies});takeFromHost(globalThis,"Proxy",RecordedProxy)});const errorNames=new Map;for(const[name,value]of Object.entries(table.constants||{})){if(typeof value==="number"&&/^E[A-Z0-9]+$/.test(name)&&!errorNames.has(-value))errorNames.set(-value,name)}table["timers/promises"]=table.timers.promises;const punycodeDecode=input=>{const base=36,tMin=1,tMax=26,skew=38,damp=700;const output=[];let index2=input.lastIndexOf("-");if(index2>0){for(let i222=0;i222<index2;i222++)output.push(input.charCodeAt(i222));index2++}else index2=0;let n8=128,bias=72,i22=0;while(index2<input.length){const start=i22;for(let weight=1,k22=base;;k22+=base){if(index2>=input.length)throw new RangeError("Invalid punycode input");const code22=input.charCodeAt(index2++);let digit;if(code22>=48&&code22<=57)digit=code22-48+26;else if(code22>=97&&code22<=122)digit=code22-97;else if(code22>=65&&code22<=90)digit=code22-65;else throw new RangeError("Invalid punycode input");i22+=digit*weight;const t10=k22<=bias?tMin:k22>=bias+tMax?tMax:k22-bias;if(digit<t10)break;weight*=base-t10}const out=output.length+1;let delta=i22-start;delta=start===0?Math.floor(delta/damp):delta>>1;delta+=Math.floor(delta/out);let k10=0;for(;delta>(base-tMin)*tMax>>1;k10+=base)delta=Math.floor(delta/(base-tMin));bias=Math.floor(k10+(base-tMin+1)*delta/(delta+skew));n8+=Math.floor(i22/out);i22%=out;output.splice(i22++,0,n8)}return String.fromCodePoint(...output)};const urlModule=table.url;const URLClass=urlModule.URL||globalThis.URL;const domainToASCII=domain2=>{try{return new URLClass("http://"+String(domain2)).hostname}catch(error){return""}};const domainToUnicode=domain2=>{const ascii=domainToASCII(domain2);if(!ascii)return"";return ascii.split(".").map(label=>{if(!/^xn--/i.test(label))return label;try{return punycodeDecode(label.slice(4))}catch(error){return label}}).join(".")};function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}const resolveObject=(from,to2)=>Object.assign(new Url,urlModule.parse(urlModule.resolve(from,to2)));Url.prototype.parse=function(input,parseQueryString,slashesDenoteHost){return Object.assign(this,urlModule.parse(input,parseQueryString,slashesDenoteHost))};Url.prototype.format=function(){return urlModule.format(this)};Url.prototype.resolve=function(relative22){return urlModule.resolve(urlModule.format(this),relative22)};Url.prototype.resolveObject=function(relative22){return resolveObject(urlModule.format(this),relative22)};const urlFills={Url,resolveObject,domainToASCII,domainToUnicode,urlToHttpOptions:url2=>{const hostname2=typeof url2.hostname==="string"&&url2.hostname.startsWith("[")?url2.hostname.slice(1,-1):url2.hostname;const options={protocol:url2.protocol,hostname:hostname2,hash:url2.hash,search:url2.search,pathname:url2.pathname,path:(url2.pathname||"")+(url2.search||""),href:url2.href};if(url2.port!==""&&url2.port!==void 0&&url2.port!==null)options.port=Number(url2.port);if(url2.username||url2.password)options.auth=decodeURIComponent(url2.username||"")+":"+decodeURIComponent(url2.password||"");return options}};if(typeof URLPattern!=="undefined")urlFills.URLPattern=URLPattern;extend22("url",urlFills);extend22("querystring",{unescapeBuffer:(text,decodeSpaces)=>{const bytes2=[];const encoder22=new TextEncoder;for(let i22=0;i22<text.length;i22++){const ch22=text[i22];if(ch22==="+"&&decodeSpaces){bytes2.push(32);continue}if(ch22==="%"&&i22+2<text.length){const value=parseInt(text.slice(i22+1,i22+3),16);if(!Number.isNaN(value)){bytes2.push(value);i22+=2;continue}}for(const byte of encoder22.encode(ch22))bytes2.push(byte)}return Buffer$9.from(bytes2)}});const bufferModule2=table.buffer;bufferModule2.Blob=globalThis.Blob;if(typeof globalThis.File!=="undefined")bufferModule2.File=globalThis.File;bufferModule2.kStringMaxLength=bufferModule2.constants&&bufferModule2.constants.MAX_STRING_LENGTH||536870888;bufferModule2.isUtf8=input=>{const bytes2=input instanceof Uint8Array?input:new Uint8Array(input);try{new TextDecoder("utf-8",{fatal:true}).decode(bytes2);return true}catch(error){return false}};bufferModule2.isAscii=input=>{const bytes2=input instanceof Uint8Array?input:new Uint8Array(input);for(let i22=0;i22<bytes2.length;i22++)if(bytes2[i22]>127)return false;return true};extend22("os",{availableParallelism:()=>typeof navigator==="object"&&navigator&&Number(navigator.hardwareConcurrency)||1});table["dns/promises"]=table.dns.promises;const readlineModule2=table.readline;class PromisesInterface{constructor(options){this.input=options&&options.input;this.output=options&&options.output;this._interface=readlineModule2.createInterface(options)}question(query,options){const signal=options&&options.signal;return new Promise((resolve2,reject)=>{if(signal&&signal.aborted){reject(abortError());return}if(signal)signal.addEventListener("abort",()=>reject(abortError()),{once:true});this._interface.question(query,resolve2)})}close(){return this._interface.close()}pause(){if(typeof this._interface.pause==="function")this._interface.pause();return this}resume(){if(typeof this._interface.resume==="function")this._interface.resume();return this}write(data2,key){return this._interface.write(data2,key)}getCursorPos(){return this._interface.getCursorPos()}on(event,listener){this._interface.on(event,listener);return this}once(event,listener){this._interface.once(event,listener);return this}off(event,listener){this._interface.removeListener(event,listener);return this}removeListener(event,listener){this._interface.removeListener(event,listener);return this}[Symbol.asyncIterator](){const lines=[];let closed=false;let wake=null;const bump=()=>{const resume=wake;wake=null;if(resume)resume()};this._interface.on("line",line=>{lines.push(line);bump()});this._interface.on("close",()=>{closed=true;bump()});return{[Symbol.asyncIterator](){return this},async next(){for(;;){if(lines.length>0)return{value:lines.shift(),done:false};if(closed)return{value:void 0,done:true};await new Promise(resolve2=>{wake=resolve2})}}}}}class Readline{constructor(stream,options){this._stream=stream;this._autoCommit=!!(options&&options.autoCommit);this._queue=[]}_queueEscape(text){this._queue.push(text);return this._autoCommit?this.commit():this}clearLine(dir){return this._queueEscape("\x1B["+(dir<0?"1K":dir>0?"0K":"2K"))}clearScreenDown(){return this._queueEscape("\x1B[0J")}cursorTo(x,y){return this._queueEscape(y===void 0?"\x1B["+(x+1)+"G":"\x1B["+(y+1)+";"+(x+1)+"H")}moveCursor(dx,dy2){let text="";if(dx<0)text+="\x1B["+-dx+"D";else if(dx>0)text+="\x1B["+dx+"C";if(dy2<0)text+="\x1B["+-dy2+"A";else if(dy2>0)text+="\x1B["+dy2+"B";return this._queueEscape(text)}rollback(){this._queue=[];return this}async commit(){const text=this._queue.join("");this._queue=[];if(text&&this._stream&&typeof this._stream.write==="function")this._stream.write(text)}}const readlinePromises={Interface:PromisesInterface,Readline,createInterface:options=>new PromisesInterface(options)};readlinePromises.default=readlinePromises;table["readline/promises"]=readlinePromises;extend22("readline",{promises:readlinePromises})}function __browserRuntimeFillStreams(table,Bytes=Buffer$9){const collect=async source=>{const chunks=[];if(source&&typeof source.getReader==="function"){const reader=source.getReader();for(;;){const step=await reader.read();if(step.done)break;chunks.push(Bytes.from(step.value))}}else if(source&&typeof source[Symbol.asyncIterator]==="function"){for await(const chunk of source)chunks.push(typeof chunk==="string"?Bytes.from(chunk):Bytes.from(chunk))}else if(source&&typeof source[Symbol.iterator]==="function"){for(const chunk of source)chunks.push(typeof chunk==="string"?Bytes.from(chunk):Bytes.from(chunk))}else{throw new TypeError("The stream argument must be a stream or an iterable")}return Bytes.concat(chunks)};table["stream/consumers"]={arrayBuffer:async source=>{const bytes2=await collect(source);return bytes2.buffer.slice(bytes2.byteOffset,bytes2.byteOffset+bytes2.byteLength)},blob:async source=>new Blob([new Uint8Array(await collect(source))]),buffer:collect,bytes:async source=>new Uint8Array(await collect(source)),json:async source=>JSON.parse((await collect(source)).toString("utf8")),text:async source=>(await collect(source)).toString("utf8")}}__browserRuntimeFillStreams(builtinModules);__browserRuntimeFillModules(builtinModules);var __substrateGuestBundlers=new WeakMap;var __substrateGuestWasis=new WeakMap;function __substrateGuestWasi(fsShim,process22){let module=__substrateGuestWasis.get(process22);if(module===void 0){module=createWasiModule(fsShim,process22);__substrateGuestWasis.set(process22,module)}return module}var __substrateGuestRollups=new WeakMap;var currentVfs=null;function __substrateGuestRollup(process22){let bound=__substrateGuestRollups.get(process22);if(bound)return bound;const original=builtinModules.rollup;bound={...original,rollup:async(options={})=>{const cwd=process22.cwd();const resolve2=path22=>{if(path22.startsWith(String.fromCharCode(0)))return path22;const parts=[];for(const part of(path22.startsWith("/")?path22:cwd+"/"+path22).split("/")){if(part==="..")parts.pop();else if(part&&part!==".")parts.push(part)}return"/"+parts.join("/")};const input=typeof options.input==="string"?resolve2(options.input):Array.isArray(options.input)?options.input.map(resolve2):options.input?Object.fromEntries(Object.entries(options.input).map(([name,path22])=>[name,resolve2(path22)])):options.input;const fs2=options.fs??globalThis.__browserRuntimeRollupFs;const bundle=await original.rollup({...options,input,...fs2?{fs:fs2}:{}});for(const name of["generate","write"]){const action=bundle[name].bind(bundle);bundle[name]=(output={})=>action({...output,...output.dir?{dir:resolve2(output.dir)}:{},...output.file?{file:resolve2(output.file)}:{}})}return bundle}};bound.default=bound;__substrateGuestRollups.set(process22,bound);return bound}function __substrateGuestEsbuild(process22){let bound=__substrateGuestBundlers.get(process22);if(bound)return bound;const original=builtinModules.esbuild;bound={...original};const nearestTsconfig=directory2=>{const fs2=typeof currentVfs!=="undefined"?currentVfs:null;if(!fs2)return void 0;let dir=directory2;for(let hops=0;hops<32;hops+=1){const candidate=(dir==="/"?"":dir)+"/tsconfig.json";try{if(fs2.existsSync(candidate))return fs2.readFileSync(candidate,"utf8")}catch{}if(dir==="/"||!dir)return void 0;dir=dir.slice(0,dir.lastIndexOf("/"))||"/"}return void 0};for(const name of["build","context"]){bound[name]=(options={})=>{const absWorkingDir=options.absWorkingDir??process22.cwd();const tsconfigRaw=options.tsconfigRaw??(options.tsconfig?void 0:nearestTsconfig(absWorkingDir));return original[name]({...options,absWorkingDir,...tsconfigRaw!==void 0?{tsconfigRaw}:{}})}}bound.default=bound;__substrateGuestBundlers.set(process22,bound);return bound}function __substrateEsbuildRunsHere(vfs2,file2){let dir=file2;for(let hops=0;hops<6;hops+=1){dir=dir.slice(0,dir.lastIndexOf("/"));if(!dir)return false;if(vfs2.existsSync(dir+"/package.json"))return vfs2.existsSync(dir+"/esbuild.wasm")}return false}var __substrateModuleClasses=new WeakMap;var __substrateResolvedPaths=new WeakMap;function __substratePathsFor(cache2,fs2){let filesystems=__substrateResolvedPaths.get(cache2);if(!filesystems){filesystems=new WeakMap;__substrateResolvedPaths.set(cache2,filesystems)}let paths=filesystems.get(fs2);if(!paths){paths={paths:new Map,bytes:0};filesystems.set(fs2,paths)}return paths}function __substrateKeepPath(cache2,key,path22){const bytes2=2*(key.length+path22.length);if(bytes2>8*1024*1024)return;const old=cache2.paths.get(key);if(old!==void 0){cache2.paths.delete(key);cache2.bytes-=2*(key.length+old.length)}while(cache2.paths.size>=8192||cache2.bytes+bytes2>8*1024*1024){const first=cache2.paths.entries().next().value;cache2.paths.delete(first[0]);cache2.bytes-=2*(first[0].length+first[1].length)}cache2.paths.set(key,path22);cache2.bytes+=bytes2}function __substrateModuleDir(parent,currentDir){if(!parent||typeof parent.filename!=="string"||parent.filename==="")return currentDir;if(parent.filename.endsWith("/"))return parent.filename.length>1?parent.filename.slice(0,-1):"/";return dirname(parent.filename)}function __substrateModuleClassFor(moduleCache,requireFor){let Module2=__substrateModuleClasses.get(moduleCache);if(Module2)return Module2;Module2=function Module22(id2="",parent){this.id=id2;this.filename=id2;this.exports={};this.loaded=false;this.children=[];this.paths=[];this.parent=parent};Module2.prototype.require=function(id2){return Module2._load(id2,this,false)};Module2.__substrateRequire=Module2.prototype.require;Module2.prototype._compile=function(content,filename){const file2=typeof filename==="string"&&filename?filename:this.filename||this.id||"";this.filename=file2;if(!Array.isArray(this.paths)||this.paths.length===0)this.paths=Module2._nodeModulePaths(dirname(file2));requireFor(this).__compileRaw(this,String(content),file2,dirname(file2));return this.exports};Module2._resolveFilename=function(request,parent){return requireFor(parent).__resolveRaw(request)};Module2.__substrateResolveFilename=Module2._resolveFilename;Module2._load=function(request,parent,isMain){const from=parent||new Module2;if(isMain)process.__substrateMainPending=Module2._resolveFilename(request,from,true,void 0);return requireFor(from).__requireRaw(request)};Module2.__substrateLoad=Module2._load;Module2._cache=moduleCache;Module2._extensions=Object.assign(Object.create(null),{".js":(module,filename)=>{module.exports=requireFor(module).__requireRaw(filename);module.loaded=true},".json":(module,filename)=>{module.exports=requireFor(module).__requireRaw(filename);module.loaded=true},".node":(module,filename)=>{throw Object.assign(new Error(`Cannot load native addon ${filename} in a tab.`),{code:"ERR_DLOPEN_FAILED"})}});Module2._pathCache=Object.create(null);Module2.builtinModules=builtinModules$1;Module2.isBuiltin=isBuiltin;Module2.syncBuiltinESMExports=()=>syncBuiltinESMExports(process);Module2.globalPaths=["/node_modules"];Module2._nodeModulePaths=directory2=>{const result=[];for(let current3=directory2.replace(/\/$/u,"")||"/";;){if(!current3.endsWith("/node_modules"))result.push((current3==="/"?"":current3)+"/node_modules");if(current3==="/")return result;current3=current3.slice(0,current3.lastIndexOf("/"))||"/"}};Module2.wrapper=["(function (exports, require, module, __filename, __dirname) { ","\n});"];Module2.wrap=code22=>Module2.wrapper[0]+code22+Module2.wrapper[1];Module2.createRequire=filenameOrUrl=>{let fromPath=String(filenameOrUrl);if(fromPath.startsWith("file://")){fromPath=fromPath.slice(7);if(fromPath.startsWith("/")&&fromPath[2]===":")fromPath=fromPath.slice(1)}const made=requireFor({id:fromPath,filename:fromPath,paths:[]});made.cache=moduleCache;return made};Module2.findSourceMap=()=>void 0;Module2.__substrateHooks=void 0;const __substrateHooksOf=()=>Module2.__substrateHooks??(Module2.__substrateHooks=new RunModuleHooks(process));Module2.registerHooks=hooks=>__substrateHooksOf().sync.registerHooks(hooks);Module2.register=(specifier,parentURL,options)=>__substrateHooksOf().register(specifier,parentURL,options,(url2,from)=>Module2.createRequire(from)(url2));Module2.Module=Module2;Module2.default=Module2;__substrateModuleClasses.set(moduleCache,Module2);return Module2}function createRequire(vfs2,fsShim,process22,currentDir,moduleCache,options,processedCodeCache,parentModule){currentVfs=vfs2;const __substrateInstalledWins=id2=>{const shimmed=id2==="rollup"||id2.startsWith("rollup/")||id2.startsWith("@rollup/")?"rollup":id2==="esbuild"||id2.startsWith("esbuild/")||id2.startsWith("@esbuild/")?"esbuild":id2==="prettier"||id2.startsWith("prettier/")?"prettier":id2==="ws"||id2.startsWith("ws/")?"ws":id2==="chokidar"||id2.startsWith("chokidar/")?"chokidar":id2==="readdirp"||id2.startsWith("readdirp/")?"readdirp":id2==="fsevents"?"fsevents":void 0;if(!shimmed)return false;try{const file2=resolveModule(id2,currentDir);return shimmed!=="esbuild"||__substrateEsbuildRunsHere(vfs2,file2)}catch{return false}};const __substrateModule=()=>__substrateModuleClassFor(moduleCache,parent=>createRequire(vfs2,fsShim,process22,__substrateModuleDir(parent,currentDir),moduleCache,options,processedCodeCache,parent));const __substrateHooks=()=>__substrateModule().__substrateHooks;const __substrateResolve=id2=>{const Module2=__substrateModule();return Module2._resolveFilename===Module2.__substrateResolveFilename?resolveModule(id2,currentDir):Module2._resolveFilename(id2,parentModule||{id:currentDir,filename:currentDir+"/",paths:[]},false,void 0)};const resolutionCache=new Map;const successfulPaths=__substratePathsFor(moduleCache,vfs2);const resolveModule=(id2,fromDir)=>{if(id2.startsWith("node:")){id2=id2.slice(5)}if(id2.startsWith("file://")){id2=decodeURIComponent(new URL(id2).pathname)}const __standInPaths=globalThis.__browserRuntimeStandInPaths;if(__standInPaths&&Object.prototype.hasOwnProperty.call(__standInPaths,id2)&&vfs2.existsSync(__standInPaths[id2])){return __standInPaths[id2]}if(id2==="fs"||id2==="process"||id2==="url"||id2==="querystring"||id2==="util"||builtinModules$1.includes(id2)){return id2}const __standIn=Boolean(builtinModules[id2]);if(id2.startsWith("#")){const __resolvedImport=__nodeResolverFor(vfs2,"runtime").resolve(id2,fromDir);if(__resolvedImport)return __resolvedImport;throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})}const cacheKey=`${fromDir}\0${id2}`;const cached=resolutionCache.get(cacheKey);if(cached!==void 0){if(cached===null){throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})}return cached}const successful=successfulPaths.paths.get(cacheKey);if(successful!==void 0)return successful;{const __resolved=__nodeResolverFor(vfs2,"runtime").resolve(id2,fromDir);if(__resolved){__substrateKeepPath(successfulPaths,cacheKey,__resolved);return __resolved}}const __standIns=globalThis.__browserRuntimeModuleStandIns;const __answered=__standIns?__standIns.resolve(id2,fromDir):null;if(__answered){resolutionCache.set(cacheKey,__answered);return __answered}resolutionCache.set(cacheKey,null);if(__standIn)return id2;throw Object.assign(new Error(`Cannot find module '${id2}'`),{code:"MODULE_NOT_FOUND"})};const loadModule=(resolvedPath,resolvedAs)=>{const __hostStandIns=globalThis.__browserRuntimeStandInPaths;if(__hostStandIns){for(const[__name,__file]of Object.entries(__hostStandIns)){if(resolvedPath.includes("/node_modules/"+__name+"/")&&vfs2.existsSync(__file)){resolvedPath=__file;break}}}if(resolvedPath.endsWith(".node")){const __native=globalThis.__browserRuntimeNativeStandIns;const __package=__native?Object.keys(__native).find(name=>resolvedPath.includes("/node_modules/"+name+"/")):void 0;const __answer=__package!==void 0&&__native?__native[__package]:void 0;if(__answer&&vfs2.existsSync(__answer)){resolvedPath=__answer}else{throw Object.assign(new Error("Cannot load native addon "+resolvedPath+": a tab runs no native code."),{code:"ERR_DLOPEN_FAILED"})}}if(moduleCache[resolvedPath]){return moduleCache[resolvedPath]}const module={id:resolvedPath,filename:resolvedPath,exports:{},loaded:false,children:[],paths:[],parent:parentModule||null};if(parentModule&&Array.isArray(parentModule.children))parentModule.children.push(module);moduleCache[resolvedPath]=module;if(process22.__substrateMainPending===resolvedPath){delete process22.__substrateMainPending;process22.mainModule=module;module.id="."}const __hooks=__substrateHooks();const defaultSource=()=>resolvedPath.startsWith("data:")?__substrateDataModuleSource(resolvedPath):vfs2.readFileSync(resolvedPath,"utf8");let format2=resolvedAs==null?void 0:resolvedAs.format;let source=resolvedAs==null?void 0:resolvedAs.source;if(__hooks&&__hooks.hasSyncLoad&&source===void 0){const url2=(resolvedAs==null?void 0:resolvedAs.url)??__hooks.sync.convertCJSFilenameToURL(resolvedPath);const loaded2=__hooks.sync.loadWithHooks(url2,format2,void 0,CJS_CONDITIONS,(urlFromHook,context2)=>({source:urlFromHook===url2?defaultSource():vfs2.readFileSync(__hooks.sync.convertURLToCJSFilename(urlFromHook),"utf8"),format:context2.format}));format2=loaded2.format;source=loaded2.source}if(format2==="json"||format2===void 0&&resolvedPath.endsWith(".json")){module.exports=JSON.parse(source===void 0||source===null?vfs2.readFileSync(resolvedPath,"utf8"):String(source));module.loaded=true;return module}const rawCode=source===void 0||source===null?defaultSource():String(source);const dirname$1=resolvedPath.startsWith("data:")?currentDir:dirname(resolvedPath);if(format2===void 0&&!transformsTypes(process22)&&vfs2.existsSync(PREPARED_MODULES_DIR)){const key=preparedModuleKey(rawCode,resolvedPath);const prepared=key?`${PREPARED_MODULES_DIR}/${key}`:void 0;if(prepared&&vfs2.existsSync(prepared)){runModuleBody(module,vfs2.readFileSync(prepared,"utf8"),resolvedPath,dirname$1,true);return module}if(prepared){const body=__substrateScopeGlobalCalls(prepareModuleCode(rawCode,resolvedPath));try{vfs2.writeFileSync(prepared,body)}catch{}runModuleBody(module,body,resolvedPath,dirname$1,true);return module}}runModuleBody(module,prepareModuleCode(rawCode,resolvedPath,format2),resolvedPath,dirname$1);return module};const prepareModuleCode=(rawCode,resolvedPath,format2)=>{const codeCacheKey=`${resolvedPath}|${format2??""}|${transformsTypes(process22)?"transform-types|":""}${simpleHash(rawCode)}`;let code22=processedCodeCache==null?void 0:processedCodeCache.get(codeCacheKey);if(!code22){code22=__substratePrepareBody(rawCode,resolvedPath,format2,process22);processedCodeCache==null?void 0:processedCodeCache.set(codeCacheKey,code22)}return code22};const runModuleBody=(module,prepared,resolvedPath,dirname2,scoped=false)=>{let code22=prepared;const moduleRequire=createRequire(vfs2,fsShim,process22,dirname2,moduleCache,options,processedCodeCache,module);moduleRequire.cache=moduleCache;const consoleWrapper=createConsoleWrapper(options.onConsole);try{const importMetaUrl=resolvedPath.startsWith("data:")?resolvedPath:"file://"+resolvedPath;const strictBody=code22.startsWith(__substrateModuleMarker);if(!scoped)code22=__substrateScopeGlobalCalls(code22);const wrappedCode=`(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
|
|
5874
5874
|
}).call(${strictBody?"void 0":"$module.exports"}); }
|
|
5875
5875
|
})${__substrateSourceURL(resolvedPath)}`;let bodyKind=code22.includes(__substrateTopLevelAwaitMarker)?"async":code22.includes(__substrateAwaitMarker)?"generator":"sync";let fn2;try{fn2=__substrateSloppyEval(bodyKind==="generator"?__substrateGeneratorBody(wrappedCode):bodyKind==="async"?__substrateAsyncBody(wrappedCode):wrappedCode)}catch(evalError){const msg2=evalError instanceof Error?evalError.message:String(evalError);if(!(evalError instanceof SyntaxError))throw evalError;bodyKind="async";try{fn2=__substrateSloppyEval(__substrateAsyncBody(wrappedCode))}catch{throw new SyntaxError(`${msg2} (in ${resolvedPath})`)}}const dynamicImport=createDynamicImport(moduleRequire,process22,importMetaUrl);const body=fn2(module.exports,moduleRequire,module,resolvedPath,dirname2,process22,consoleWrapper,createImportMeta(moduleRequire,importMetaUrl,dirname2,resolvedPath),dynamicImport,__substrateGuestGlobal,__substrateGuestConstructor);const settling=__substrateDriveBody(bodyKind,body,module);if(settling)__substrateKeepPending(module,settling,()=>{delete moduleCache[resolvedPath]});else module.loaded=true}catch(error){delete moduleCache[resolvedPath];if(error instanceof Error){if(!error.message.includes("(in /"))error.message=`${error.message} (in ${resolvedPath})`;else if(!error.message.includes(`
|
|
5876
5876
|
required by ${resolvedPath}`))error.message=`${error.message}
|
|
5877
5877
|
required by ${resolvedPath}`}throw error}};const require2=id2=>{const Module2=__substrateModule();if(Module2.prototype.require!==Module2.__substrateRequire){return Module2.prototype.require.call(parentModule||{id:currentDir,filename:currentDir+"/",paths:[]},id2)}if(Module2._load!==Module2.__substrateLoad){return Module2._load(id2,parentModule||{id:currentDir,filename:currentDir+"/",paths:[]},false)}return requireRaw(id2)};const requireRaw=id2=>{if(id2.startsWith("data:"))return loadModule(id2).exports;const hooks=__substrateHooks();if(hooks&&(hooks.hasSyncResolve||hooks.hasSyncLoad))return requireHooked(id2,hooks);if(id2.startsWith("node:")){id2=id2.slice(5)}return requirePlain(id2)};const __substrateNamedModule=specifier=>{const name=specifier.startsWith("node:")?specifier.slice(5):specifier;if(isBuiltin(name)||name==="fs/promises")return name;if(Object.prototype.hasOwnProperty.call(builtinModules,name)&&!__substrateInstalledWins(name))return name;return void 0};const requireHooked=(id2,hooks)=>{let defaultURL;let defaultFilename;const defaultResolve=specifier=>{defaultFilename=__substrateNamedModule(specifier)??__substrateResolve(specifier);defaultURL=hooks.sync.convertCJSFilenameToURL(defaultFilename);return{url:defaultURL}};const parent=parentModule&&typeof parentModule.filename==="string"&&parentModule.filename?hooks.sync.convertCJSFilenameToURL(parentModule.filename):void 0;const resolved=hooks.hasSyncResolve?hooks.sync.resolveWithHooks(id2,parent,void 0,CJS_CONDITIONS,defaultResolve):defaultResolve(id2);const url2=resolved.url;const format2=resolved.format;const filename=url2===defaultURL?defaultFilename:hooks.sync.convertURLToCJSFilename(url2);if(isBuiltin(filename)){if(hooks.hasSyncLoad){const loaded2=hooks.sync.loadWithHooks(url2,format2||"builtin",void 0,CJS_CONDITIONS,(_urlFromHook,context2)=>({source:null,format:context2.format}));if(loaded2.format&&loaded2.format!=="builtin"){return loadModule(filename,{url:url2,format:loaded2.format,source:loaded2.source}).exports}}return requirePlain(filename)}if(url2===defaultURL&&format2===void 0)return requirePlain(id2);return loadModule(filename,{url:url2,format:format2}).exports};const __substrateRecordBuiltin=id2=>{const list2=process22.moduleLoadList;if(!Array.isArray(list2))return;const entry=`NativeModule ${id2}`;if(!list2.includes(entry))list2.push(entry)};const requirePlain=id2=>{if(id2.startsWith("node:")){id2=id2.slice(5)}if(id2.startsWith("data:"))return loadModule(id2).exports;if(isBuiltin(id2))__substrateRecordBuiltin(id2);if(id2==="fs"){return fsModuleFor(process22)}if(id2==="fs/promises"){return fsModuleFor(process22).promises}if(id2==="internal/fs/promises"){return fsModuleFor(process22).promises}if(id2==="process"){return process22}if(id2==="worker_threads"){const bridge=globalThis[Symbol.for("@volter/browser-node/threads")];const module=bridge&&typeof bridge.module==="function"?bridge.module(vfs2,process22,builtinModules.worker_threads):void 0;if(module)return module}if(id2==="module"){return __substrateModule()}if(id2==="vm"){return __substrateGuestVm(process22)}if(id2==="wasi"){return __substrateGuestWasi(fsShim,process22)}if(id2==="stream/consumers")return nativeModuleFor(process22,id2,()=>{const table={};__browserRuntimeFillStreams(table,loadNodeLibFor(process22,"buffer").Buffer);return table[id2]});if(hasNodeLibModule(id2))return loadNodeLibFor(process22,id2);if(builtinModules[id2]&&!__substrateInstalledWins(id2)&&!(id2==="fsevents"||id2==="chokidar"||id2==="readdirp")){return id2==="esbuild"?__substrateGuestEsbuild(process22):id2==="rollup"?__substrateGuestRollup(process22):nativeModuleFor(process22,id2,()=>builtinModules[id2])}if(!__substrateInstalledWins(id2)){if(id2==="rollup"||id2.startsWith("rollup/")||id2.startsWith("@rollup/rollup-")){console.log("[runtime] Intercepted rollup:",id2);return __substrateGuestRollup(process22)}if(id2==="esbuild"||id2.startsWith("esbuild/")||id2.startsWith("@esbuild/")){console.log("[runtime] Intercepted esbuild:",id2);return __substrateGuestEsbuild(process22)}if(id2==="prettier"||id2.startsWith("prettier/")){return builtinModules["prettier"]}}const resolved=__substrateResolve(id2);if(builtinModules[resolved]&&!(resolved==="fsevents"||resolved==="chokidar"||resolved==="readdirp")){return requirePlain(resolved)}if(resolved.includes("/node_modules/rollup/")||resolved.includes("/node_modules/@rollup/rollup-")){return __substrateGuestRollup(process22)}if((resolved.includes("/node_modules/esbuild/")||resolved.includes("/node_modules/@esbuild/"))&&!__substrateEsbuildRunsHere(vfs2,resolved)){return __substrateGuestEsbuild(process22)}if(resolved.includes("/node_modules/prettier/")){return builtinModules["prettier"]}const registered=vfs2[__substrateNativeModules];if(registered&&typeof registered.has==="function"){if(registered.has(resolved))return registered.get(resolved)(process22);const identity=__substratePackageIdentity(vfs2,resolved);if(identity&®istered.has(identity))return registered.get(identity)(process22)}return loadModule(resolved).exports};require2.resolve=(id2,options2)=>{if(id2==="fs"||id2==="process"||id2.startsWith("node:")||builtinModules$1.includes(id2)){return id2}if(options2&&options2.paths!==void 0){if(!Array.isArray(options2.paths)){throw Object.assign(new TypeError(`The property 'options.paths' must be an Array. Received ${String(options2.paths)}`),{code:"ERR_INVALID_ARG_VALUE"})}options2.paths.forEach((from,index2)=>{if(typeof from!=="string")throw Object.assign(new TypeError(`The "paths[${index2}]" argument must be of type string. Received ${typeof from}`),{code:"ERR_INVALID_ARG_TYPE"})});const requireStack=parentModule&&typeof parentModule.filename==="string"?[parentModule.filename]:[];for(const from of options2.paths){try{return resolveModule(id2,resolve(process22.cwd(),from))}catch{}}throw Object.assign(new Error(`Cannot find module '${id2}'${requireStack.length?`
|
|
5878
5878
|
Require stack:
|
|
5879
|
-
- ${requireStack.join("\n- ")}`:""}`),{code:"MODULE_NOT_FOUND",requireStack})}return resolveModule(id2,currentDir)};require2.cache=moduleCache;require2.__requireRaw=requireRaw;require2.__compileRaw=(module,content,filename,dir)=>runModuleBody(module,prepareModuleCode(content,filename),filename,dir);require2.__resolveRaw=id2=>resolveModule(id2,currentDir);require2.__moduleHooks=__substrateHooks;require2.__resolveToURL=specifier=>{const hooks=__substrateHooks();return hooks.sync.convertCJSFilenameToURL(__substrateNamedModule(specifier)??__substrateResolve(specifier))};require2.__readFromURL=url2=>{if(url2.startsWith("node:"))return null;if(url2.startsWith("data:"))return __substrateDataModuleSource(url2);return vfs2.readFileSync(__substrateHooks().sync.convertURLToCJSFilename(url2),"utf8")};require2.__loadFromURL=(url2,format2,source)=>{if(url2.startsWith("data:"))return loadModule(url2,{url:url2,format:format2,source}).exports;const filename=__substrateHooks().sync.convertURLToCJSFilename(url2);if(source===void 0&&isBuiltin(filename))return requirePlain(filename);return loadModule(filename,{url:url2,format:format2,source}).exports};require2.extensions=__substrateModule()._extensions;Object.defineProperty(require2,"main",{get:()=>process22.mainModule,set:value=>{process22.mainModule=value},enumerable:true,configurable:true});if(process22&&typeof process22==="object"&&typeof process22.getBuiltinModule!=="function"){process22.getBuiltinModule=name=>{if(typeof name!=="string")return void 0;const id2=name.startsWith("node:")?name.slice(5):name;if(id2!=="fs"&&id2!=="fs/promises"&&id2!=="process"&&id2!=="module"&&id2!=="wasi"&&!Object.prototype.hasOwnProperty.call(builtinModules,id2))return void 0;try{return require2(id2)}catch(error){return void 0}}}return require2}function createConsoleWrapper(onConsole){const wrapper={log:(...args)=>{console.log(...args);onConsole==null?void 0:onConsole("log",args)},error:(...args)=>{console.error(...args);onConsole==null?void 0:onConsole("error",args)},warn:(...args)=>{console.warn(...args);onConsole==null?void 0:onConsole("warn",args)},info:(...args)=>{console.info(...args);onConsole==null?void 0:onConsole("info",args)},debug:(...args)=>{console.debug(...args);onConsole==null?void 0:onConsole("debug",args)},trace:(...args)=>{console.trace(...args);onConsole==null?void 0:onConsole("trace",args)},dir:obj=>{console.dir(obj);onConsole==null?void 0:onConsole("dir",[obj])},time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console)};return wrapper}var Runtime=class{constructor(vfs2,options={}){__publicField2(this,"vfs");__publicField2(this,"fsShim");__publicField2(this,"process");__publicField2(this,"moduleCache",{});__publicField2(this,"options");__publicField2(this,"processedCodeCache",new Map);__publicField2(this,"executeSync",this.execute);__publicField2(this,"runFileSync",this.runFile);this.vfs=vfs2;this.process=createProcess({cwd:options.cwd||"/",env:options.env,onStdout:options.onStdout,onStderr:options.onStderr,...typeof options.stdin==="string"?{stdin:options.stdin}:{},...options.stdinHeld?{stdinHeld:true}:{},...options.tty?{tty:true}:{},...typeof options.pid==="number"?{pid:options.pid}:{},...typeof options.ppid==="number"?{ppid:options.ppid}:{}});this.process[kRunFilesystem]=vfs2;this.fsShim=createFsShim(vfs2);this.options=options;initChildProcess(vfs2);setVFS(vfs2);installGuestRealm()}execute(code22,filename="/index.js"){let held;try{held=this.vfs.readFileSync(filename,"utf8")}catch{held=void 0}if(held!==code22)this.vfs.writeFileSync(filename,code22);return this.evaluate(code22,filename)}evaluate(code22,filename){const dirname$1=dirname(filename);const require2=createRequire(this.vfs,this.fsShim,this.process,dirname$1,this.moduleCache,this.options,this.processedCodeCache);const module={id:filename,filename,exports:{},loaded:false,children:[],paths:[]};this.moduleCache[filename]=module;if(!this.process.mainModule){this.process.mainModule=module;module.id="."}const consoleWrapper=createConsoleWrapper(this.options.onConsole);if(code22.startsWith("#!")){code22=code22.slice(code22.indexOf("\n")+1)}code22=__substrateModuleTypes(code22,filename,void 0,this.process);if(!filename.endsWith(".cjs")&&!filename.endsWith(".cts")){const lowered=transformEsmToCjs(code22,filename);code22=lowered===code22?code22:`${__substrateModuleMarker}"use strict";${lowered}`}else{code22=__substrateRewriteDynamicImportsInScript(code22)}try{const importMetaUrl="file://"+filename;const strictBody=code22.startsWith(__substrateModuleMarker);code22=__substrateScopeGlobalCalls(code22);const wrappedCode=`(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0
|
|
5879
|
+
- ${requireStack.join("\n- ")}`:""}`),{code:"MODULE_NOT_FOUND",requireStack})}return resolveModule(id2,currentDir)};require2.cache=moduleCache;require2.__requireRaw=requireRaw;require2.__compileRaw=(module,content,filename,dir)=>runModuleBody(module,prepareModuleCode(content,filename),filename,dir);require2.__resolveRaw=id2=>resolveModule(id2,currentDir);require2.__moduleHooks=__substrateHooks;require2.__resolveToURL=specifier=>{const hooks=__substrateHooks();return hooks.sync.convertCJSFilenameToURL(__substrateNamedModule(specifier)??__substrateResolve(specifier))};require2.__readFromURL=url2=>{if(url2.startsWith("node:"))return null;if(url2.startsWith("data:"))return __substrateDataModuleSource(url2);return vfs2.readFileSync(__substrateHooks().sync.convertURLToCJSFilename(url2),"utf8")};require2.__loadFromURL=(url2,format2,source)=>{if(url2.startsWith("data:"))return loadModule(url2,{url:url2,format:format2,source}).exports;const filename=__substrateHooks().sync.convertURLToCJSFilename(url2);if(source===void 0&&isBuiltin(filename))return requirePlain(filename);return loadModule(filename,{url:url2,format:format2,source}).exports};require2.extensions=__substrateModule()._extensions;Object.defineProperty(require2,"main",{get:()=>process22.mainModule,set:value=>{process22.mainModule=value},enumerable:true,configurable:true});if(process22&&typeof process22==="object"&&typeof process22.getBuiltinModule!=="function"){process22.getBuiltinModule=name=>{if(typeof name!=="string")return void 0;const id2=name.startsWith("node:")?name.slice(5):name;if(id2!=="fs"&&id2!=="fs/promises"&&id2!=="process"&&id2!=="module"&&id2!=="wasi"&&!Object.prototype.hasOwnProperty.call(builtinModules,id2))return void 0;try{return require2(id2)}catch(error){return void 0}}}return require2}function createConsoleWrapper(onConsole){const wrapper={log:(...args)=>{console.log(...args);onConsole==null?void 0:onConsole("log",args)},error:(...args)=>{console.error(...args);onConsole==null?void 0:onConsole("error",args)},warn:(...args)=>{console.warn(...args);onConsole==null?void 0:onConsole("warn",args)},info:(...args)=>{console.info(...args);onConsole==null?void 0:onConsole("info",args)},debug:(...args)=>{console.debug(...args);onConsole==null?void 0:onConsole("debug",args)},trace:(...args)=>{console.trace(...args);onConsole==null?void 0:onConsole("trace",args)},dir:obj=>{console.dir(obj);onConsole==null?void 0:onConsole("dir",[obj])},time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console)};return wrapper}var Runtime=class{constructor(vfs2,options={}){__publicField2(this,"vfs");__publicField2(this,"fsShim");__publicField2(this,"process");__publicField2(this,"moduleCache",{});__publicField2(this,"options");__publicField2(this,"processedCodeCache",new Map);__publicField2(this,"executeSync",this.execute);__publicField2(this,"runFileSync",this.runFile);this.vfs=vfs2;this.process=createProcess({cwd:options.cwd||"/",env:options.env,onStdout:options.onStdout,onStderr:options.onStderr,...typeof options.stdin==="string"?{stdin:options.stdin}:{},...options.stdinHeld?{stdinHeld:true}:{},...options.tty?{tty:true}:{},...typeof options.pid==="number"?{pid:options.pid}:{},...typeof options.ppid==="number"?{ppid:options.ppid}:{}});this.process[kRunFilesystem]=vfs2;this.fsShim=createFsShim(vfs2);this.options=options;initChildProcess(vfs2);setVFS(vfs2);installGuestRealm()}execute(code22,filename="/index.js"){let held;try{held=this.vfs.readFileSync(filename,"utf8")}catch{held=void 0}if(held!==code22)this.vfs.writeFileSync(filename,code22);return this.evaluate(code22,filename)}evaluate(code22,filename){const dirname$1=dirname(filename);const require2=createRequire(this.vfs,this.fsShim,this.process,dirname$1,this.moduleCache,this.options,this.processedCodeCache);const module={id:filename,filename,exports:{},loaded:false,children:[],paths:[]};this.moduleCache[filename]=module;if(!this.process.mainModule){this.process.mainModule=module;module.id="."}const consoleWrapper=createConsoleWrapper(this.options.onConsole);if(code22.startsWith("#!")){code22=code22.slice(code22.indexOf("\n")+1)}code22=__substrateModuleTypes(code22,filename,void 0,this.process);if(!filename.endsWith(".cjs")&&!filename.endsWith(".cts")){const lowered=transformEsmToCjs(code22,filename);code22=lowered===code22?code22:`${__substrateModuleMarker}"use strict";${lowered}`}else{code22=__substrateRewriteDynamicImportsInScript(code22)}try{const importMetaUrl="file://"+filename;const strictBody=code22.startsWith(__substrateModuleMarker);code22=__substrateScopeGlobalCalls(code22);const wrappedCode=`(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code22}
|
|
5880
5880
|
}).call(${strictBody?"void 0":"$module.exports"}); }
|
|
5881
5881
|
})${__substrateSourceURL(filename)}`;const dynamicImport=createDynamicImport(require2,this.process,filename.startsWith("data:")?filename:`file://${filename}`);let bodyKind=code22.includes(__substrateTopLevelAwaitMarker)?"async":code22.includes(__substrateAwaitMarker)?"generator":"sync";let fn2;try{fn2=__substrateSloppyEval(bodyKind==="generator"?__substrateGeneratorBody(wrappedCode):bodyKind==="async"?__substrateAsyncBody(wrappedCode):wrappedCode)}catch(syntaxError){if(!(syntaxError instanceof SyntaxError))throw syntaxError;bodyKind="async";try{fn2=__substrateSloppyEval(__substrateAsyncBody(wrappedCode))}catch{throw syntaxError}}const body=fn2(module.exports,require2,module,filename,dirname$1,this.process,consoleWrapper,createImportMeta(require2,importMetaUrl,dirname$1,filename),dynamicImport,__substrateGuestGlobal,__substrateGuestConstructor);const settling=__substrateDriveBody(bodyKind,body,module);if(settling)__substrateKeepPending(module,settling,()=>{delete this.moduleCache[filename]});else module.loaded=true}catch(error){delete this.moduleCache[filename];throw error}return{exports:module.exports,module}}async executeAsync(code22,filename="/index.js"){const result=this.execute(code22,filename);const pending=__substratePendingOf(result.exports);if(pending)await pending;return result}runFile(filename){let real=filename;try{real=this.vfs.realpathSync(filename)}catch{}const code22=this.vfs.readFileSync(real,"utf8");return this.execute(code22,real)}async runFileAsync(filename){const result=this.runFile(filename);const pending=__substratePendingOf(result.exports);if(pending)await pending;return result}clearCache(){for(const key of Object.keys(this.moduleCache)){delete this.moduleCache[key]}}getVFS(){return this.vfs}getProcess(){return this.process}createREPL(){const require2=createRequire(this.vfs,this.fsShim,this.process,"/",this.moduleCache,this.options,this.processedCodeCache);const consoleWrapper=createConsoleWrapper(this.options.onConsole);const process22=this.process;const buffer2=bufferModule.Buffer;const GeneratorFunction=Object.getPrototypeOf(function*(){}).constructor;const replGen=new GeneratorFunction("require","console","process","Buffer",`var __code, __result;
|
|
5882
5882
|
while (true) {
|
|
@@ -5888,7 +5888,7 @@ while (true) {
|
|
|
5888
5888
|
yield { value: undefined, error: e };
|
|
5889
5889
|
}
|
|
5890
5890
|
}`)(require2,consoleWrapper,process22,buffer2);replGen.next();return{eval(code22){const transformed=code22.replace(/^\s*(const|let)\s+/gm,"var ");const exprResult=replGen.next("("+transformed+")").value;if(!exprResult.error){replGen.next();return exprResult.value}replGen.next();const stmtResult=replGen.next(transformed).value;if(stmtResult.error){replGen.next();throw stmtResult.error}replGen.next();return stmtResult.value}}}};function execute(code22,vfs2,options){const runtime=new Runtime(vfs2,options);return runtime.execute(code22)}forGuestRealm(()=>{if(typeof globalThis.setImmediate==="undefined"){takeFromHost(globalThis,"setImmediate",(fn2,...args)=>setTimeout(fn2,0,...args));takeFromHost(globalThis,"clearImmediate",id2=>clearTimeout(id2))}});forGuestRealm(()=>{if(typeof globalThis.Request==="function"&&!globalThis.Request.__substrateHeaderGuard){const Native=globalThis.Request;const kept=new WeakMap;class NodeRequest extends Native{constructor(input,init){init=withNodeRequestBody(init);super(input,init);rememberRequestBodySource(this,input,init);const asked=new Headers((init==null?void 0:init.headers)??(input instanceof Native?input.headers:void 0));const headers=new Headers(super.headers);asked.forEach((value,name)=>{if(!headers.has(name))headers.set(name,value)});kept.set(this,headers)}get headers(){return kept.get(this)??super.headers}clone(){const copy2=super.clone();rememberRequestBodySource(copy2,this);return new NodeRequest(copy2,{headers:this.headers})}}Object.defineProperty(NodeRequest,"__substrateHeaderGuard",{value:true});Object.defineProperty(NodeRequest,"name",{value:"Request",configurable:true});takeFromHost(globalThis,"Request",NodeRequest)}});forGuestRealm(()=>{installNodeResponse(globalThis)});forGuestRealm(()=>{const kIsClosedPromise=Symbol.for("nodejs.webstream.isClosedPromise");const Native=globalThis.ReadableStream;if(typeof Native!=="function"||Native.__substrateClosedPromise)return;const Tracked=new Proxy(Native,{construct(target,args,newTarget){let resolve2;let reject;const promise=new Promise((yes,no2)=>{resolve2=yes;reject=no2});promise.then(void 0,()=>{});const source=args[0];const track=controller=>{const close2=controller.close;const error=controller.error;if(typeof close2==="function")controller.close=function(...rest){const result=close2.apply(this,rest);resolve2();return result};if(typeof error==="function")controller.error=function(...rest){reject(rest[0]);return error.apply(this,rest)}};const failed=cause=>{reject(cause);throw cause};const wrapped=Object.create(source??null);wrapped.start=controller=>{var _a22;track(controller);try{return(_a22=source==null?void 0:source.start)==null?void 0:_a22.call(source,controller)}catch(cause){return failed(cause)}};if(typeof(source==null?void 0:source.pull)==="function"){const pull=source.pull;wrapped.pull=controller=>{try{return Promise.resolve(pull.call(source,controller)).catch(failed)}catch(cause){return failed(cause)}}}wrapped.cancel=reason=>{var _a22;resolve2();return(_a22=source==null?void 0:source.cancel)==null?void 0:_a22.call(source,reason)};const stream=Reflect.construct(target,[wrapped,...args.slice(1)],newTarget===Tracked?target:newTarget);Object.defineProperty(stream,kIsClosedPromise,{value:{promise,resolve:resolve2,reject},configurable:true});return stream}});Object.defineProperty(Tracked,"__substrateClosedPromise",{value:true});takeFromHost(globalThis,"ReadableStream",Tracked)});forGuestRealm(__substrateStackTracePolyfill);forGuestRealm(__substrateCallSiteFileNames);forGuestRealm(__substrateTextDecoderPolyfill);function __substrateTextDecoderPolyfill(){const OriginalTextDecoder=globalThis.TextDecoder;if(OriginalTextDecoder.__substrateBinaryEncodings)return;class PolyfillTextDecoder{constructor(encoding="utf-8",options){__publicField2(this,"encoding");__publicField2(this,"decoder",null);this.encoding=encoding.toLowerCase();const validTextEncodings=["utf-8","utf8","utf-16le","utf-16be","utf-16","ascii","iso-8859-1","latin1","windows-1252"];if(validTextEncodings.includes(this.encoding)){try{this.decoder=new OriginalTextDecoder(encoding,options)}catch{this.decoder=new OriginalTextDecoder("utf-8",options)}}}decode(input,options){if(this.decoder){return this.decoder.decode(input,options)}if(!input)return"";const bytes2=input instanceof ArrayBuffer?new Uint8Array(input):new Uint8Array(input.buffer,input.byteOffset,input.byteLength);if(this.encoding==="base64"){return uint8ToBase64(bytes2)}if(this.encoding==="base64url"){return uint8ToBase64(bytes2).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}if(this.encoding==="hex"){return uint8ToHex(bytes2)}return new OriginalTextDecoder("utf-8").decode(input,options)}get fatal(){var _a22;return((_a22=this.decoder)==null?void 0:_a22.fatal)??false}get ignoreBOM(){var _a22;return((_a22=this.decoder)==null?void 0:_a22.ignoreBOM)??false}}Object.defineProperty(PolyfillTextDecoder,"__substrateBinaryEncodings",{value:true});takeFromHost(globalThis,"TextDecoder",PolyfillTextDecoder)}function __substrateStackTracePolyfill(){if(typeof Error.captureStackTrace==="function")return;if(Error.stackTraceLimit===void 0){takeFromHost(Error,"stackTraceLimit",10)}function parseStack(stack){if(!stack)return[];const frames=[];const lines=stack.split("\n");for(const raw of lines){const line=raw.trim();if(!line||line.startsWith("Error")||line.startsWith("TypeError"))continue;let fn2="",file2="",lineNo=0,colNo=0;const safariMatch=line.match(/^(.*)@(.*?):(\d+):(\d+)$/);if(safariMatch){fn2=safariMatch[1]||"";file2=safariMatch[2];lineNo=parseInt(safariMatch[3],10);colNo=parseInt(safariMatch[4],10);frames.push({fn:fn2,file:file2,line:lineNo,col:colNo});continue}const chromeMatch=line.match(/^at\s+(?:(.+?)\s+\()?(.*?):(\d+):(\d+)\)?$/);if(chromeMatch){fn2=chromeMatch[1]||"";file2=chromeMatch[2];lineNo=parseInt(chromeMatch[3],10);colNo=parseInt(chromeMatch[4],10);frames.push({fn:fn2,file:file2,line:lineNo,col:colNo});continue}}return frames}function createCallSite(frame){return{getFileName:()=>frame.file||null,getLineNumber:()=>frame.line||null,getColumnNumber:()=>frame.col||null,getFunctionName:()=>frame.fn||null,getMethodName:()=>frame.fn||null,getTypeName:()=>null,getThis:()=>void 0,getFunction:()=>void 0,getEvalOrigin:()=>void 0,isNative:()=>false,isConstructor:()=>false,isToplevel:()=>!frame.fn,isEval:()=>false,toString:()=>frame.fn?`${frame.fn} (${frame.file}:${frame.line}:${frame.col})`:`${frame.file}:${frame.line}:${frame.col}`}}function buildCallSites(stack,constructorOpt){const frames=parseStack(stack);let startIdx=0;if(constructorOpt&&constructorOpt.name){for(let i22=0;i22<frames.length;i22++){if(frames[i22].fn===constructorOpt.name){startIdx=i22+1;break}}}return frames.slice(startIdx).map(createCallSite)}const stackSymbol=Symbol("rawStack");defineOnHost(Error.prototype,"stack",{get(){const rawStack=this[stackSymbol];if(rawStack!==void 0&&typeof Error.prepareStackTrace==="function"){const callSites=buildCallSites(rawStack);try{return Error.prepareStackTrace(this,callSites)}catch{return rawStack}}return rawStack},set(value){this[stackSymbol]=value},configurable:true,enumerable:false});const captureStackTrace=function(target,constructorOpt){const savedPrepare=Error.prepareStackTrace;Error.prepareStackTrace=void 0;const err22=new Error;const rawStack=err22.stack||"";Error.prepareStackTrace=savedPrepare;if(typeof savedPrepare==="function"){const callSites=buildCallSites(rawStack,constructorOpt);try{target.stack=savedPrepare(target,callSites)}catch(e2){console.warn("[tabnode] Error.prepareStackTrace threw:",e2);target.stack=rawStack}}else{target.stack=rawStack}};takeFromHost(Error,"captureStackTrace",captureStackTrace)}function __substrateCallSiteFileNames(){var _a22;if(typeof Error.captureStackTrace!=="function")return;const held=Object.getOwnPropertyDescriptor(Error,"prepareStackTrace");if((_a22=held==null?void 0:held.get)==null?void 0:_a22.__substrateNamesFrames)return;if(held!==void 0&&held.configurable===false)return;const named=site=>new Proxy(site,{get(target,key){if(key==="getFileName")return()=>{var _a32;return target.getFileName()??(((_a32=target.getScriptNameOrSourceURL)==null?void 0:_a32.call(target))||null)};const value=Reflect.get(target,key);return typeof value==="function"?value.bind(target):value}});let guestPrepare=held&&!held.get&&!held.set?held.value:void 0;const namers=new WeakMap;const guests=new WeakMap;const namerFor=prepare=>{let namer=namers.get(prepare);if(!namer){namer=(error,sites)=>prepare(error,sites.map(named));namers.set(prepare,namer);guests.set(namer,prepare)}return namer};const overridingFor=guest=>{const known=typeof guest==="function"?overridings.get(guest):overridingNone;if(known)return known;const overriding=(error,sites)=>{const override=error!==null&&typeof error==="object"?stackOverrides.get(error):void 0;if(override){stackOverrides.delete(error);return override(error,sites.map(named))}if(typeof guest==="function")return namerFor(guest)(error,sites);return`${Error.prototype.toString.call(error)}${sites.map(site=>`
|
|
5891
|
-
at ${String(site)}`).join("")}`};guests.set(overriding,guest);if(typeof guest==="function")overridings.set(guest,overriding);else overridingNone=overriding;return overriding};const overridings=new WeakMap;let overridingNone;const get2=()=>stackOverrides.size>0?overridingFor(guestPrepare):typeof guestPrepare==="function"?namerFor(guestPrepare):guestPrepare;get2.__substrateNamesFrames=true;defineOnHost(Error,"prepareStackTrace",{get:get2,set(prepare){guestPrepare=typeof prepare==="function"&&guests.has(prepare)?guests.get(prepare):prepare},configurable:true,enumerable:false})}var WorkerRuntime=class{constructor(vfs2,options={}){__publicField2(this,"worker");__publicField2(this,"workerApi");__publicField2(this,"vfs");__publicField2(this,"options");__publicField2(this,"initialized");__publicField2(this,"changeListener",null);__publicField2(this,"deleteListener",null);this.vfs=vfs2;this.options=options;this.worker=new Worker("/assets/runtime-worker-DJbG60eD.js",{type:"module"});this.workerApi=wrap(this.worker);this.initialized=this.initWorker();this.setupVFSListeners()}async initWorker(){const snapshot=this.vfs.toSnapshot();const workerOptions2={cwd:this.options.cwd,env:this.options.env};await this.workerApi.init(snapshot,workerOptions2);if(this.options.onConsole){await this.workerApi.setConsoleCallback(proxy(this.options.onConsole))}console.log("[WorkerRuntime] Worker initialized")}setupVFSListeners(){this.changeListener=(path22,content)=>{this.workerApi.syncFile(path22,content)};this.vfs.on("change",this.changeListener);this.deleteListener=path22=>{this.workerApi.syncFile(path22,null)};this.vfs.on("delete",this.deleteListener)}async execute(code22,filename){await this.initialized;return this.workerApi.execute(code22,filename)}async runFile(filename){await this.initialized;return this.workerApi.runFile(filename)}clearCache(){this.workerApi.clearCache()}getVFS(){return this.vfs}terminate(){if(this.changeListener){this.vfs.off("change",this.changeListener)}if(this.deleteListener){this.vfs.off("delete",this.deleteListener)}this.worker.terminate();console.log("[WorkerRuntime] Worker terminated")}};function isWorkerAvailable(){return typeof Worker!=="undefined"}var AsyncRuntimeWrapper=class{constructor(vfs2,options={}){__publicField2(this,"runtime");this.runtime=new Runtime(vfs2,options)}async execute(code22,filename){return Promise.resolve(this.runtime.execute(code22,filename))}async runFile(filename){return Promise.resolve(this.runtime.runFile(filename))}clearCache(){this.runtime.clearCache()}getVFS(){return this.runtime.getVFS()}getSyncRuntime(){return this.runtime}};async function createRuntime(vfs2,options={}){const{useWorker=false,...runtimeOptions}=options;const shouldUseWorker=useWorker===true||useWorker==="auto"?isWorkerAvailable():false;if(shouldUseWorker){const workerRuntime=new WorkerRuntime(vfs2,runtimeOptions);await workerRuntime.execute("/* worker ready check */","/__worker_init__.js");return workerRuntime}return new AsyncRuntimeWrapper(vfs2,runtimeOptions)}var DuplexStreamHandle=class extends LibuvStreamWrap{constructor(transport2){super();__publicField2(this,"pendingWrite");this.transport=transport2;transport2.pause();transport2.on("data",chunk=>{transport2.pause();this.receive(chunk)});transport2.on("end",()=>this.receiveEof());transport2.on("error",()=>{var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_ECONNRESET);this.receiveError(UV_ECONNRESET)});transport2.on("close",()=>{var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_ECONNRESET);this.receiveEof()})}readStop(){this.transport.pause();return super.readStop()}flushInbound(){super.flushInbound();if(this.reading&&!this.closed&&!this.inboundEof)this.transport.resume()}dispatchWrite(req,buffer2){if(this.closed)return UV_EBADF;streamBaseState[kBytesWritten]=buffer2.byteLength;streamBaseState[kLastWriteWasAsync]=1;this.writeQueueSize=buffer2.byteLength;let offset2=0;let complete=false;const finish=status=>{if(complete)return;complete=true;this.pendingWrite=void 0;this.writeQueueSize=0;queueMicrotask(()=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,status)})};this.pendingWrite=finish;const next2=()=>{if(complete)return;if(this.closed){finish(UV_EBADF);return}if(offset2===buffer2.byteLength){finish(0);return}const bytes2=buffer2.slice(offset2,offset2+64*1024);offset2+=bytes2.byteLength;this.transport.write(bytes2,error=>{if(error){finish(UV_ECONNRESET);return}this.bytesWritten+=bytes2.byteLength;this.writeQueueSize-=bytes2.byteLength;next2()})};queueMicrotask(next2);return 0}shutdown(req){if(this.closed)return UV_EBADF;this.transport.end(()=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,0)});return 0}onCloseHandle(){var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_EBADF);this.transport.destroy()}getsockname(){return UV_ENOTSUP}getpeername(){return UV_ENOTSUP}setNoDelay(){return 0}setKeepAlive(){return 0}};var unsupported=detail=>Object.assign(new Error(`HTTP transport does not support ${detail}.`),{code:"ERR_HTTP_TRANSPORT_UNSUPPORTED"});var local=host2=>host2==="localhost"||host2==="::1"||host2==="[::1]"||/^127\./u.test(host2);var tlsOptions=["ca","cert","key","pfx","passphrase","ciphers","secureContext","checkServerIdentity","minVersion","maxVersion","secureProtocol","secureOptions","session","ALPNProtocols","pskCallback"];function installHttpClientTransport(factory,transportOptions={}){const installed22=new WeakMap;const live2=new Set;const collected=new FinalizationRegistry(ref2=>live2.delete(ref2));const install22=(Agent,protocol,require2)=>{const prototype=Agent.prototype;if(installed22.has(prototype))return;const original=prototype.createConnection;const connect2=function(options,callback){var _a22;const host2=String(options.hostname??options.host??"localhost").toLowerCase();const hostPort=local(host2)&&!options.socketPath&&((_a22=transportOptions.hostPorts)==null?void 0:_a22.call(transportOptions).has(Number(options.port??(protocol==="https:"?443:80))));if(!hostPort&&(protocol==="http:"&&(local(host2)||options.socketPath)||protocol==="https:"&&local(host2)&&!options.socketPath)){return original.call(this,options,callback)}try{if(options.socketPath||options.localAddress||options.localPort||options.lookup||options.family)throw unsupported("custom socket routing");if(protocol==="https:"&&(tlsOptions.some(key=>options[key]!==void 0)||options.rejectUnauthorized===false||options.servername!==void 0&&options.servername!==host2))throw unsupported("custom TLS options");const authority=new URL(`${protocol}//${host2.includes(":")&&!host2.startsWith("[")?`[${host2}]`:host2}:${options.port??(protocol==="https:"?443:80)}`);return connection(authority,factory(),require2)}catch(cause){queueMicrotask(()=>callback(cause instanceof Error?cause:new Error(String(cause))));return void 0}};prototype.createConnection=connect2;installed22.set(prototype,{original,connect:connect2});const ref2=new WeakRef(prototype);live2.add(ref2);collected.register(prototype,ref2,ref2)};install22(httpModule.Agent,"http:");install22(httpsModule.Agent,"https:");const unsubscribe=onNodeLibLoaded((name,value,require2)=>{if(name==="_http_agent")install22(value.Agent,"http:",require2);if(name==="https")install22(value.Agent,"https:",require2)});return()=>{unsubscribe();for(const ref2 of live2){const prototype=ref2.deref();const held=prototype&&installed22.get(prototype);if(prototype&&held&&prototype.createConnection===held.connect)prototype.createConnection=held.original;collected.unregister(ref2)}live2.clear()}}function connection(origin,exchange2,require2){const streams2=require2?require2("stream"):streamModule;const net=require2?require2("net"):netModule;const http=require2?require2("http"):httpModule;const pair=streams2.duplexPair({highWaterMark:64*1024});const client=new net.Socket({handle:new DuplexStreamHandle(pair[0]),readable:true,writable:true});const peer=new net.Socket({handle:new DuplexStreamHandle(pair[1]),readable:true,writable:true});peer.unref();const controller=new AbortController;let reader;const fail3=cause=>{const error=cause instanceof Error?cause:new Error(String(cause));controller.abort(error);client.destroy(error);peer.destroy()};client.once("close",()=>{controller.abort(new Error("HTTP client connection closed."));void(reader==null?void 0:reader.cancel(controller.signal.reason).catch(()=>{}));peer.destroy()});peer.on("error",fail3);const server=http.createServer({maxHeaderSize:32*1024,requestTimeout:0,headersTimeout:0},(request,response)=>{void(async()=>{var _a22,_b22;if(!request.url.startsWith("/")||request.url.startsWith("//"))throw unsupported("absolute-form request targets");const url2=new URL(request.url,origin);if(url2.origin!==origin.origin)throw unsupported("a request target that changes origin");const headers=[];const connectionHeaders=new Set;for(let i22=0;i22<request.rawHeaders.length;i22+=2){const name=request.rawHeaders[i22],value=request.rawHeaders[i22+1];const lower=name.toLowerCase();if(["expect","upgrade","trailer","te"].includes(lower))throw unsupported(`${lower} headers`);if(lower==="host"){if(value.toLowerCase()!==origin.host)throw unsupported("a Host header different from the destination");continue}if(lower==="connection")for(const token of value.split(","))connectionHeaders.add(token.trim().toLowerCase());headers.push([name,value])}const outgoing=headers.filter(([name])=>!["connection","keep-alive","transfer-encoding"].includes(name.toLowerCase())&&!connectionHeaders.has(name.toLowerCase()));const carriesBody=request.headers["transfer-encoding"]!==void 0||Number(request.headers["content-length"]??0)>0;const Readable2=streams2.Readable;const body=carriesBody?Readable2.toWeb(request,{strategy:{highWaterMark:64*1024,size:chunk=>chunk.byteLength}}):void 0;if(!carriesBody)request.resume();const result=await exchange2({url:url2.href,method:request.method,headers:outgoing,...body?{body}:{},signal:controller.signal,profile:"server-http"});if(controller.signal.aborted){await((_a22=result.body)==null?void 0:_a22.cancel(controller.signal.reason));return}response.shouldKeepAlive=false;response.sendDate=false;response.writeHead(result.status,result.statusText,result.headers.flat());reader=(_b22=result.body)==null?void 0:_b22.getReader();try{for(;;){controller.signal.throwIfAborted();const next2=reader?await reader.read():{done:true,value:void 0};if(next2.done)break;if(!response.write(next2.value))await new Promise((resolve2,reject)=>{const abort=()=>{response.removeListener("drain",drain);reject(controller.signal.reason)};const drain=()=>{controller.signal.removeEventListener("abort",abort);resolve2()};response.once("drain",drain);controller.signal.addEventListener("abort",abort,{once:true});if(controller.signal.aborted)abort()})}response.end()}catch(cause){await(reader==null?void 0:reader.cancel(cause).catch(()=>{}));throw cause}finally{reader==null?void 0:reader.releaseLock();reader=void 0}})().catch(fail3)});for(const name of["connect","upgrade","checkContinue","checkExpectation"])server.on(name,()=>fail3(unsupported(name)));server.on("clientError",fail3);server.emit("connection",peer);return client}var DEFAULT_REGISTRY="https://registry.npmjs.org";var Registry=class{constructor(options={}){__publicField2(this,"registryUrl");__publicField2(this,"registryScopes");__publicField2(this,"cache");this.registryUrl=options.registry||DEFAULT_REGISTRY;this.registryScopes=options.registryScopes;this.cache=options.cache||new Map}registryFor(packageName){const scopes2=this.registryScopes??globalThis.__browserRuntimeRegistryScopes;if(scopes2&&typeof packageName==="string"){const scope4=packageName.startsWith("@")&&packageName.includes("/")?packageName.slice(0,packageName.indexOf("/")):packageName;const url2=scopes2[scope4]??scopes2[packageName];if(typeof url2==="string"&&url2!=="")return url2.endsWith("/")?url2.slice(0,-1):url2}return this.registryUrl}async getPackageManifest(packageName){if(this.cache.has(packageName)){return this.cache.get(packageName)}const __docs=globalThis.__browserRuntimeLockfileManifests;const __doc=__docs instanceof Map?__docs.get(packageName):void 0;if(__doc){const __tarball=`${this.registryFor(packageName)}/${encodePackageName(packageName)}/-/${packageName.slice(packageName.lastIndexOf("/")+1)}-${__doc.version}.tgz`;const __manifest={"dist-tags":{latest:__doc.version},versions:{[__doc.version]:{name:packageName,version:__doc.version,dist:{tarball:__tarball},dependencies:__doc.dependencies,...__doc.peerDependencies?{peerDependencies:__doc.peerDependencies,peerDependenciesMeta:__doc.peerDependenciesMeta||{}}:{},...__doc.optionalDependencies?{optionalDependencies:__doc.optionalDependencies}:{}}}};this.cache.set(packageName,__manifest);return __manifest}const __pins=globalThis.__browserRuntimeLockfilePins;const __pin=__pins instanceof Map?__pins.get(packageName):void 0;if(typeof __pin==="string"){const pinnedUrl=`${this.registryFor(packageName)}/${encodePackageName(packageName)}/${__pin}`;const pinnedResponse=await fetch(pinnedUrl,{headers:{Accept:"application/json"}});if(pinnedResponse.ok){const versionData=await pinnedResponse.json();if(versionData&&versionData.dist&&versionData.dist.tarball){const pinnedManifest={"dist-tags":{latest:__pin},versions:{[__pin]:versionData}};this.cache.set(packageName,pinnedManifest);return pinnedManifest}}}const url2=`${this.registryFor(packageName)}/${encodePackageName(packageName)}`;const response=await fetch(url2,{headers:{Accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8"}});if(!response.ok){if(response.status===404){throw new Error(`Package not found: ${packageName}`)}throw new Error(`Failed to fetch package ${packageName}: ${response.status}`)}const manifest=await response.json();this.cache.set(packageName,manifest);return manifest}async getPackageVersion(packageName,version2){const manifest=await this.getPackageManifest(packageName);if(manifest["dist-tags"][version2]){version2=manifest["dist-tags"][version2]}const versionData=manifest.versions[version2];if(!versionData){throw new Error(`Version ${version2} not found for package ${packageName}`)}return versionData}async getLatestVersion(packageName){const manifest=await this.getPackageManifest(packageName);return manifest["dist-tags"].latest}async getVersions(packageName){const manifest=await this.getPackageManifest(packageName);return Object.keys(manifest.versions)}async downloadTarball(tarballUrl){const response=await fetch(tarballUrl);if(!response.ok){throw new Error(`Failed to download tarball: ${response.status}`)}return response.arrayBuffer()}clearCache(){this.cache.clear()}};function encodePackageName(name){return name.replace("/","%2f")}new Registry;function parseVersion(version2){const match2=version2.match(/^(\d+)\.(\d+)\.(\d+)(?:-(.+))?$/);if(!match2)return null;return{major:parseInt(match2[1],10),minor:parseInt(match2[2],10),patch:parseInt(match2[3],10),prerelease:match2[4]}}function compareVersions(a,b){const parsedA=parseVersion(a);const parsedB=parseVersion(b);if(!parsedA||!parsedB){return a.localeCompare(b)}if(parsedA.major!==parsedB.major){return parsedA.major-parsedB.major}if(parsedA.minor!==parsedB.minor){return parsedA.minor-parsedB.minor}if(parsedA.patch!==parsedB.patch){return parsedA.patch-parsedB.patch}if(parsedA.prerelease&&!parsedB.prerelease)return-1;if(!parsedA.prerelease&&parsedB.prerelease)return 1;if(parsedA.prerelease&&parsedB.prerelease){return parsedA.prerelease.localeCompare(parsedB.prerelease)}return 0}function satisfies(version2,range22){const parsed=parseVersion(version2);if(!parsed)return false;if(parsed.prerelease&&!range22.includes("-")){return false}range22=range22.trim();range22=range22.replace(/^=\s*/,"").replace(/^v(?=\d)/,"");range22=range22.replace(/(>=|<=|>|<|=)\s*(\d+)(\.\d+)?(?![.\d])/g,(__m,__op,__major,__minor)=>__op+" "+__major+(__minor===void 0?".0.0":__minor+".0"));const __browserRuntimePartialRange=range22.match(/^([~^])(\d+)(?:\.(\d+))?(?:\.(\d+))?$/);if(__browserRuntimePartialRange){const operator=__browserRuntimePartialRange[1];const major=Number(__browserRuntimePartialRange[2]);const hasMinor=__browserRuntimePartialRange[3]!==void 0;const hasPatch=__browserRuntimePartialRange[4]!==void 0;const minor=Number(__browserRuntimePartialRange[3]??0);const patch=Number(__browserRuntimePartialRange[4]??0);const lower=major+"."+minor+"."+patch;let upper;if(operator==="~"){upper=hasMinor?major+"."+(minor+1)+".0":major+1+".0.0"}else if(major>0||!hasMinor){upper=major+1+".0.0"}else if(minor>0||!hasPatch){upper="0."+(minor+1)+".0"}else{upper="0.0."+(patch+1)}return compareVersions(version2,lower)>=0&&compareVersions(version2,upper)<0}if(/^\d+\.\d+\.\d+/.test(range22)&&!range22.includes(" ")){const rangeMatch=range22.match(/^(\d+\.\d+\.\d+(?:-[^\s]+)?)/);if(rangeMatch){return compareVersions(version2,rangeMatch[1])===0}}if(range22==="*"||range22==="latest"||range22===""){return true}if(range22.includes("||")){return range22.split("||").some(r10=>satisfies(version2,r10.trim()))}if(range22.includes(" - ")){const[min2,max2]=range22.split(" - ").map(s10=>s10.trim());return compareVersions(version2,min2)>=0&&compareVersions(version2,max2)<=0}const operatorMatches=range22.match(/(>=|<=|>|<|=)?\s*(\d+\.\d+\.\d+(?:-[^\s]*)?)/g);if(operatorMatches&&operatorMatches.length>1){return operatorMatches.every(match2=>{const m=match2.match(/^(>=|<=|>|<|=)?\s*(\d+\.\d+\.\d+(?:-[^\s]*)?)$/);if(!m)return true;const op2=m[1]||"=";const ver=m[2];switch(op2){case">=":return compareVersions(version2,ver)>=0;case"<=":return compareVersions(version2,ver)<=0;case">":return compareVersions(version2,ver)>0;case"<":return compareVersions(version2,ver)<0;case"=":return compareVersions(version2,ver)===0;default:return compareVersions(version2,ver)===0}})}if(range22.startsWith("^")){const base=range22.slice(1);const baseParsed=parseVersion(base);if(!baseParsed)return false;if(parsed.major!==baseParsed.major){return false}if(baseParsed.major===0){if(baseParsed.minor!==0&&parsed.minor!==baseParsed.minor){return false}if(baseParsed.minor===0&&parsed.minor!==0){return false}}return compareVersions(version2,base)>=0}if(range22.startsWith("~")){const base=range22.slice(1);const baseParsed=parseVersion(base);if(!baseParsed)return false;if(parsed.major!==baseParsed.major||parsed.minor!==baseParsed.minor){return false}return compareVersions(version2,base)>=0}if(range22.startsWith(">=")){const base=range22.slice(2).trim();return compareVersions(version2,base)>=0}if(range22.startsWith(">")){const base=range22.slice(1).trim();return compareVersions(version2,base)>0}if(range22.startsWith("<=")){const base=range22.slice(2).trim();return compareVersions(version2,base)<=0}if(range22.startsWith("<")){const base=range22.slice(1).trim();return compareVersions(version2,base)<0}if(range22.includes("x")||range22.includes("X")||/^\d+$/.test(range22)||/^\d+\.\d+$/.test(range22)){const parts=range22.replace(/[xX]/g,"").split(".").filter(Boolean);if(parts.length===1){return parsed.major===parseInt(parts[0],10)}if(parts.length===2){return parsed.major===parseInt(parts[0],10)&&parsed.minor===parseInt(parts[1],10)}}if(range22.includes(" ")){const conditions=range22.split(/\s+/).filter(Boolean);return conditions.every(r10=>satisfies(version2,r10))}return compareVersions(version2,range22)===0}function findBestVersion(versions,range22){const sorted=[...versions].sort((a,b)=>compareVersions(b,a));for(const version2 of sorted){if(satisfies(version2,range22)){return version2}}return null}async function resolveDependencies(packageName,versionRange="latest",options={}){const registry=options.registry||new Registry;const context2={registry,resolved:new Map,resolving:new Set,options};await resolvePackage(packageName,versionRange,context2);context2.resolved.__nested=context2.nested;return context2.resolved}async function resolveFromPackageJson(packageJson,options={}){const registry=options.registry||new Registry;const context2={registry,resolved:new Map,resolving:new Set,options};const deps={...packageJson.dependencies};if(options.includeDev&&packageJson.devDependencies){Object.assign(deps,packageJson.devDependencies)}const __pins=globalThis.__browserRuntimeLockfilePins;if(__pins instanceof Map&&__pins.size>0){const __names=[...__pins.keys()];for(let __index=0;__index<__names.length;__index+=32){await Promise.all(__names.slice(__index,__index+32).map(name3=>registry.getPackageManifest(name3).catch(()=>void 0)))}}context2.rootDeps=new Map;for(const[name,range22]of Object.entries(deps)){await resolvePackage(name,range22,context2,void 0,"choose")}for(const[name,range22]of Object.entries(deps)){await resolvePackage(name,range22,context2,void 0,"descend")}context2.resolved.__nested=context2.nested;return context2.resolved}async function __browserRuntimeNest(packageName,versionRange,context2,parentKey,registryName=packageName){const records=globalThis.__browserRuntimeLockfileRecords;const versions=records instanceof Map?records.get(packageName):void 0;if(!versions)return;const candidates=[...versions.keys()].filter(version22=>satisfies(version22,versionRange)).sort((a,b)=>compareVersions(b,a));const version2=candidates[0];if(!version2)return;const nestedKey=parentKey?`${parentKey}/node_modules/${packageName}`:packageName;context2.nested??(context2.nested=new Map);if(context2.nested.has(nestedKey)||context2.resolving.has(nestedKey))return;context2.resolving.add(nestedKey);try{const doc=versions.get(version2);const tarballUrl=doc.resolved||`${context2.registry.registryFor(registryName)}/${encodePackageName(registryName)}/-/${registryName.slice(registryName.lastIndexOf("/")+1)}-${version2}.tgz`;context2.nested.set(nestedKey,{name:packageName,version:version2,tarballUrl,dependencies:doc.dependencies||{}});const deps={};if(doc.peerDependencies){const meta=doc.peerDependenciesMeta||{};for(const[name2,range22]of Object.entries(doc.peerDependencies)){if(!(meta[name2]&&meta[name2].optional))deps[name2]=range22}}Object.assign(deps,doc.dependencies);if(context2.options.includeOptional&&doc.optionalDependencies)Object.assign(deps,doc.optionalDependencies);for(const[depName,depRange]of Object.entries(deps)){await resolvePackage(depName,depRange,context2,nestedKey)}}finally{context2.resolving.delete(nestedKey)}}async function resolvePackage(packageName,versionRange,context2,__parent,phase){var _a22,_b22,_c22;if(phase==="descend"){const chosen=(_a22=context2.rootDeps)==null?void 0:_a22.get(packageName);if(!chosen)return;context2.rootDeps.delete(packageName);await descendInto(packageName,chosen,context2);return}let __registryName=packageName;if(typeof versionRange==="string"&&versionRange.startsWith("npm:")){const __spec=versionRange.slice(4);const __at=__spec.lastIndexOf("@");__registryName=__at>0?__spec.slice(0,__at):__spec;versionRange=__at>0?__spec.slice(__at+1):"latest"}const{registry,resolved,resolving,options}=context2;const key=`${packageName}@${versionRange}`;if(resolving.has(key)){return}if(resolved.has(packageName)){const existing=resolved.get(packageName);if(satisfies(existing.version,versionRange)){return}await __browserRuntimeNest(packageName,versionRange,context2,__parent,typeof __registryName==="string"?__registryName:packageName);return}resolving.add(key);try{(_b22=options.onProgress)==null?void 0:_b22.call(options,`Resolving ${packageName}@${versionRange}`);const manifest=await registry.getPackageManifest(__registryName);const versions=Object.keys(manifest.versions);let targetVersion;const __pinned=globalThis.__browserRuntimeLockfilePins;const __pin=__pinned instanceof Map?__pinned.get(__registryName):void 0;if(typeof __pin==="string"&&manifest.versions[__pin]){const versionData2=manifest.versions[__pin];const resolvedPackage2={name:packageName,version:__pin,tarballUrl:versionData2.dist.tarball,dependencies:versionData2.dependencies||{}};resolved.set(packageName,resolvedPackage2);const deps2={};if(versionData2.peerDependencies){const meta2=versionData2.peerDependenciesMeta||{};for(const[name3,range22]of Object.entries(versionData2.peerDependencies)){if(!(meta2[name3]==null?void 0:meta2[name3].optional))deps2[name3]=range22}}Object.assign(deps2,versionData2.dependencies);if(options.includeOptional&&versionData2.optionalDependencies){Object.assign(deps2,versionData2.optionalDependencies)}if(phase==="choose")context2.rootDeps.set(packageName,deps2);else await descendInto(packageName,deps2,context2);if(!satisfies(__pin,versionRange))await __browserRuntimeNest(packageName,versionRange,context2,__parent,__registryName);return}if(versionRange==="latest"||versionRange==="*"){targetVersion=manifest["dist-tags"].latest}else if(manifest["dist-tags"][versionRange]){targetVersion=manifest["dist-tags"][versionRange]}else{const best=findBestVersion(versions,versionRange);if(!best){throw new Error(`No matching version found for ${packageName}@${versionRange}`)}targetVersion=best}const versionData=manifest.versions[targetVersion];const resolvedPackage={name:packageName,version:targetVersion,tarballUrl:versionData.dist.tarball,dependencies:versionData.dependencies||{}};resolved.set(packageName,resolvedPackage);const deps={};if(versionData.peerDependencies){const meta=versionData.peerDependenciesMeta||{};for(const[name,range22]of Object.entries(versionData.peerDependencies)){if(!((_c22=meta[name])==null?void 0:_c22.optional)){deps[name]=range22}}}Object.assign(deps,versionData.dependencies);if(options.includeOptional&&versionData.optionalDependencies){Object.assign(deps,versionData.optionalDependencies)}if(phase==="choose")context2.rootDeps.set(packageName,deps);else await descendInto(packageName,deps,context2)}finally{resolving.delete(key)}}async function descendInto(packageName,deps,context2){const depEntries=Object.entries(deps);if(depEntries.length===0)return;const CONCURRENCY=8;for(let i22=0;i22<depEntries.length;i22+=CONCURRENCY){const batch=depEntries.slice(i22,i22+CONCURRENCY);await Promise.all(batch.map(([depName,depRange])=>resolvePackage(depName,depRange,context2,packageName)))}}function*parseTar(data2){new TextDecoder;let offset2=0;let __nextName;while(offset2<data2.length-512){const header=data2.slice(offset2,offset2+512);offset2+=512;if(header.every(b=>b===0)){break}const name=parseString(header,0,100);const mode=parseOctal(header,100,8);const size=parseOctal(header,124,12);const typeFlag=String.fromCharCode(header[156]);const linkName=parseString(header,157,100);const prefix2=parseString(header,345,155);if(!name){continue}const fullName=__nextName!==void 0?__nextName:prefix2?`${prefix2}/${name}`:name;__nextName=void 0;let type2;switch(typeFlag){case"0":case"\0":case"":type2="file";break;case"5":type2="directory";break;case"1":case"2":type2="symlink";break;default:type2="unknown"}let content;const __payload=size>0?Math.ceil(size/512)*512:0;if(typeFlag==="x"||typeFlag==="L"){const __text=new TextDecoder().decode(data2.slice(offset2,offset2+size));offset2+=__payload;if(typeFlag==="L"){__nextName=__text.replace(/\0+$/,"")}else{for(const __line of __text.split("\n")){const __match=/^\d+ path=(.*)$/.exec(__line);if(__match)__nextName=__match[1]}}continue}if(type2==="file"){content=size>0?data2.slice(offset2,offset2+size):new Uint8Array(0)}offset2+=__payload;yield{name:fullName,type:type2,size,mode,content,linkTarget:type2==="symlink"?linkName:void 0}}}function parseString(data2,offset2,length){const bytes2=data2.slice(offset2,offset2+length);const nullIndex=bytes2.indexOf(0);const actualBytes=nullIndex>=0?bytes2.slice(0,nullIndex):bytes2;return new TextDecoder().decode(actualBytes)}function parseOctal(data2,offset2,length){const str=parseString(data2,offset2,length).trim();return parseInt(str,8)||0}function decompress2(data2){const input=data2 instanceof Uint8Array?data2:new Uint8Array(data2);return pako.inflate(input)}function extractTarball(tarballData,vfs2,destPath,options={}){const{stripComponents=1,filter:filter2,onProgress}=options;onProgress==null?void 0:onProgress("Decompressing...");const tarData=decompress2(tarballData);const extractedFiles=[];for(const entry of parseTar(tarData)){if(entry.type!=="file"&&entry.type!=="directory"){continue}let entryPath=entry.name;if(stripComponents>0){const parts=entryPath.split("/").filter(Boolean);if(parts.length<=stripComponents){continue}entryPath=parts.slice(stripComponents).join("/")}if(filter2&&!filter2(entryPath)){continue}const fullPath=join2(destPath,entryPath);if(entry.type==="directory"){vfs2.mkdirSync(fullPath,{recursive:true})}else if(entry.type==="file"&&entry.content){const parentDir=dirname(fullPath);vfs2.mkdirSync(parentDir,{recursive:true});vfs2.writeFileSync(fullPath,entry.content);extractedFiles.push(fullPath)}}onProgress==null?void 0:onProgress(`Extracted ${extractedFiles.length} files`);return extractedFiles}globalThis[Symbol.for("@volter/browser-runtime/package-extract")]=extractTarball;async function __browserRuntimeInstallPool(items,size,work){let next2=0;await Promise.all(Array.from({length:Math.min(size,items.length)},async()=>{for(;;){const index2=next2++;if(index2>=items.length)return;await work(items[index2])}}))}async function downloadAndExtract(url2,vfs2,destPath,options={}){const{onProgress}=options;onProgress==null?void 0:onProgress(`Downloading ${url2}...`);const response=await fetch(url2);if(!response.ok){throw new Error(`Failed to download tarball: ${response.status}`)}const data2=await response.arrayBuffer();return extractTarball(data2,vfs2,destPath,options)}var isBrowser=typeof window!=="undefined";var NODE_DYNAMIC_IMPORT_BUILTINS=["stream/web","fs/promises","stream/promises","stream/consumers","timers/promises","dns/promises","readline/promises","path/posix","path/win32","util/types","assert/strict","assert","buffer","constants","child_process","cluster","crypto","dgram","dns","events","fs","http","http2","https","net","os","path","perf_hooks","querystring","readline","stream","string_decoder","timers","tls","url","util","v8","vm","worker_threads","zlib","async_hooks","inspector","module"];function lowerDynamicBuiltinImports(code22){let lowered=code22.replace(/\bimport\s*\(\s*["']node:([^"']+)["']\s*\)/g,'Promise.resolve(require("node:$1"))');for(const builtin of NODE_DYNAMIC_IMPORT_BUILTINS){const pattern=new RegExp(`\\bimport\\s*\\(\\s*["']${builtin}["']\\s*\\)`,"g");lowered=lowered.replace(pattern,`Promise.resolve(require("${builtin}"))`)}return lowered}async function initTransformer(){if(getEsbuildInstance())return;if(!isBrowser){console.log("[transform] Skipping esbuild init (not in browser)");return}if(window.__esbuild){console.log("[transform] Reusing existing esbuild instance");return}if(window.__esbuildInitPromise){return window.__esbuildInitPromise}window.__esbuildInitPromise=(async()=>{try{console.log("[transform] Loading esbuild-wasm...");const mod=await import(ESBUILD_WASM_ESM_CDN);const esbuildMod=mod.default||mod;try{await esbuildMod.initialize({wasmURL:ESBUILD_WASM_BINARY_CDN});console.log("[transform] esbuild-wasm initialized")}catch(initError){if(initError instanceof Error&&initError.message.includes('Cannot call "initialize" more than once')){console.log("[transform] esbuild-wasm already initialized, reusing")}else{throw initError}}window.__esbuild=esbuildMod}catch(error){console.error("[transform] Failed to initialize esbuild:",error);window.__esbuildInitPromise=void 0;throw error}})();return window.__esbuildInitPromise}function isTransformerReady(){if(getEsbuildInstance())return true;if(!isBrowser)return true;return window.__esbuild!==void 0}async function transformFile(code22,filename){if(!getEsbuildInstance()&&!isBrowser){return code22}if(!getEsbuildInstance()&&!window.__esbuild){await initTransformer()}const esbuild2=getEsbuildInstance()??window.__esbuild;if(!esbuild2){throw new Error("esbuild not initialized")}let loader="js";if(filename.endsWith(".jsx"))loader="jsx";else if(filename.endsWith(".ts"))loader="ts";else if(filename.endsWith(".tsx"))loader="tsx";else if(filename.endsWith(".mjs"))loader="js";try{const result=await esbuild2.transform(code22,{loader,format:"cjs",target:"esnext",platform:"neutral",define:{"import.meta.url":"import_meta.url","import.meta.dirname":"import_meta.dirname","import.meta.filename":"import_meta.filename","import.meta":"import_meta"}});const transformed=lowerDynamicBuiltinImports(result.code);return transformed}catch(error){const errorMsg=error instanceof Error?error.message:String(error);if(errorMsg.includes("Top-level await")){console.log(`[transform] Skipping ${filename} (has top-level await, likely CLI entry point)`);return code22}console.warn(`[transform] Failed to transform ${filename}:`,error);return code22}}function needsTransform(filename,code22){if(filename.endsWith(".mjs")){return true}if(filename.endsWith(".cjs")){return false}const hasImport=/\bimport\s+[\w{*'"]/m.test(code22);const hasExport=/\bexport\s+(?:default|const|let|var|function|class|{|\*)/m.test(code22);const hasImportMeta=/\bimport\.meta\b/.test(code22);return hasImport||hasExport||hasImportMeta}function hasDynamicNodeImports(code22){if(/\bimport\s*\(\s*["']node:/.test(code22)){return true}const names2=NODE_DYNAMIC_IMPORT_BUILTINS.map(name=>name.replace("/","\\/")).join("|");return new RegExp(`\\bimport\\s*\\(\\s*["'](?:${names2})["']\\s*\\)`).test(code22)}function patchDynamicImports(code22){return lowerDynamicBuiltinImports(code22)}async function transformPackage(vfs2,pkgPath,onProgress){let transformedCount=0;const jsFiles=findJsFiles(vfs2,pkgPath);onProgress==null?void 0:onProgress(` Transforming ${jsFiles.length} files in ${pkgPath}...`);const BATCH_SIZE=10;for(let i22=0;i22<jsFiles.length;i22+=BATCH_SIZE){const batch=jsFiles.slice(i22,i22+BATCH_SIZE);await Promise.all(batch.map(async filePath=>{try{const code22=vfs2.readFileSync(filePath,"utf8");if(needsTransform(filePath,code22)){const transformed=await transformFile(code22,filePath);vfs2.writeFileSync(filePath,transformed);transformedCount++}else if(hasDynamicNodeImports(code22)){const patched=patchDynamicImports(code22);vfs2.writeFileSync(filePath,patched);transformedCount++}}catch(error){console.warn(`[transform] Skipping ${filePath}:`,error)}}))}return transformedCount}function findJsFiles(vfs2,dir){const files=[];try{const entries=vfs2.readdirSync(dir);for(const entry of entries){const fullPath=dir+"/"+entry;try{const stat2=vfs2.statSync(fullPath);if(stat2.isDirectory()){if(entry!=="node_modules"){files.push(...findJsFiles(vfs2,fullPath))}}else if(entry.endsWith(".js")||entry.endsWith(".mjs")||entry.endsWith(".jsx")){files.push(fullPath)}}catch{}}}catch{}return files}var installTransformEnabled=false;function setInstallTransformEnabled(enabled){installTransformEnabled=enabled}function normalizeBin(pkgName,bin){if(!bin)return{};if(typeof bin==="string"){const cmdName=pkgName.includes("/")?pkgName.split("/").pop():pkgName;return{[cmdName]:bin}}return bin}var PackageManager=class{constructor(vfs2,options={}){__publicField2(this,"vfs");__publicField2(this,"registry");__publicField2(this,"cwd");this.vfs=vfs2;this.registry=new Registry(options);this.cwd=options.cwd||"/"}async install(packageSpec,options={}){const{onProgress}=options;const{name,version:version2}=parsePackageSpec(packageSpec);onProgress==null?void 0:onProgress(`Resolving ${name}@${version2||"latest"}...`);const resolved=await resolveDependencies(name,version2||"latest",{registry:this.registry,includeDev:options.includeDev,includeOptional:options.includeOptional,onProgress});const added=await this.installResolved(resolved,options);if(options.save||options.saveDev){const pkgToAdd=resolved.get(name);if(pkgToAdd){await this.updatePackageJson(name,`^${pkgToAdd.version}`,options.saveDev||false)}}onProgress==null?void 0:onProgress(`Installed ${resolved.size} packages`);return{installed:resolved,added}}async installFromPackageJson(options={}){var _a22;const{onProgress}=options;const pkgJsonPath=join2(this.cwd,"package.json");if(!this.vfs.existsSync(pkgJsonPath)){throw new Error("No package.json found")}const pkgJson=((_a22=this.vfs[Symbol.for("@volter/browser-node/workspace-install-manifests")])==null?void 0:_a22.get(this.cwd))??JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));onProgress==null?void 0:onProgress("Resolving dependencies...");const resolved=await resolveFromPackageJson(pkgJson,{registry:this.registry,includeDev:options.includeDev,includeOptional:options.includeOptional,onProgress});const added=await this.installResolved(resolved,options);onProgress==null?void 0:onProgress(`Installed ${resolved.size} packages`);return{installed:resolved,added}}async installResolved(resolved,options){const{onProgress}=options;const added=[];const nodeModulesPath=join2(this.cwd,"node_modules");this.vfs.mkdirSync(nodeModulesPath,{recursive:true});const toInstall=[];for(const[name,pkg]of resolved){const pkgPath=join2(nodeModulesPath,name);const existingPkgJson=join2(pkgPath,"package.json");if(this.vfs.existsSync(existingPkgJson)){try{const existing=JSON.parse(this.vfs.readFileSync(existingPkgJson,"utf8"));if(existing.version===pkg.version){onProgress==null?void 0:onProgress(`Skipping ${name}@${pkg.version} (already installed)`);continue}}catch{}}toInstall.push({name,pkg,pkgPath})}for(const[nestedKey,pkg]of resolved.__nested instanceof Map?resolved.__nested:[]){toInstall.push({name:pkg.name,pkg,pkgPath:join2(nodeModulesPath,nestedKey)})}const shouldTransform=installTransformEnabled;if(shouldTransform&&!isTransformerReady()){onProgress==null?void 0:onProgress("Initializing ESM transformer...");await initTransformer()}const CONCURRENCY=16;onProgress==null?void 0:onProgress(`Installing ${toInstall.length} packages...`);await __browserRuntimeInstallPool(toInstall,CONCURRENCY,async({name,pkg,pkgPath})=>{onProgress==null?void 0:onProgress(` Downloading ${name}@${pkg.version}...`);const __installHook=globalThis[Symbol.for("@volter/browser-runtime/package-install")];if(!(__installHook&&await __installHook(name,pkg,pkgPath,this.vfs))){await downloadAndExtract(pkg.tarballUrl,this.vfs,pkgPath,{stripComponents:1})}if(shouldTransform){try{const count=await transformPackage(this.vfs,pkgPath,onProgress);if(count>0){onProgress==null?void 0:onProgress(` Transformed ${count} files in ${name}`)}}catch(transformError){onProgress==null?void 0:onProgress(` Warning: Transform failed for ${name}: ${transformError}`)}}try{const pkgJsonPath=join2(pkgPath,"package.json");if(this.vfs.existsSync(pkgJsonPath)){const pkgJson=JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));const binEntries=normalizeBin(name,pkgJson.bin);const binDir=join2(pkgPath.slice(0,pkgPath.lastIndexOf("/node_modules/")+"/node_modules".length),".bin");for(const[cmdName,entryPath]of Object.entries(binEntries)){this.vfs.mkdirSync(binDir,{recursive:true});const targetPath=join2(pkgPath,entryPath);this.vfs.writeFileSync(join2(binDir,cmdName),`node "${targetPath}" "$@"
|
|
5891
|
+
at ${String(site)}`).join("")}`};guests.set(overriding,guest);if(typeof guest==="function")overridings.set(guest,overriding);else overridingNone=overriding;return overriding};const overridings=new WeakMap;let overridingNone;const get2=()=>stackOverrides.size>0?overridingFor(guestPrepare):typeof guestPrepare==="function"?namerFor(guestPrepare):guestPrepare;get2.__substrateNamesFrames=true;defineOnHost(Error,"prepareStackTrace",{get:get2,set(prepare){guestPrepare=typeof prepare==="function"&&guests.has(prepare)?guests.get(prepare):prepare},configurable:true,enumerable:false})}var WorkerRuntime=class{constructor(vfs2,options={}){__publicField2(this,"worker");__publicField2(this,"workerApi");__publicField2(this,"vfs");__publicField2(this,"options");__publicField2(this,"initialized");__publicField2(this,"changeListener",null);__publicField2(this,"deleteListener",null);this.vfs=vfs2;this.options=options;this.worker=new Worker("/assets/runtime-worker-DH_89R1c.js",{type:"module"});this.workerApi=wrap(this.worker);this.initialized=this.initWorker();this.setupVFSListeners()}async initWorker(){const snapshot=this.vfs.toSnapshot();const workerOptions2={cwd:this.options.cwd,env:this.options.env};await this.workerApi.init(snapshot,workerOptions2);if(this.options.onConsole){await this.workerApi.setConsoleCallback(proxy(this.options.onConsole))}console.log("[WorkerRuntime] Worker initialized")}setupVFSListeners(){this.changeListener=(path22,content)=>{this.workerApi.syncFile(path22,content)};this.vfs.on("change",this.changeListener);this.deleteListener=path22=>{this.workerApi.syncFile(path22,null)};this.vfs.on("delete",this.deleteListener)}async execute(code22,filename){await this.initialized;return this.workerApi.execute(code22,filename)}async runFile(filename){await this.initialized;return this.workerApi.runFile(filename)}clearCache(){this.workerApi.clearCache()}getVFS(){return this.vfs}terminate(){if(this.changeListener){this.vfs.off("change",this.changeListener)}if(this.deleteListener){this.vfs.off("delete",this.deleteListener)}this.worker.terminate();console.log("[WorkerRuntime] Worker terminated")}};function isWorkerAvailable(){return typeof Worker!=="undefined"}var AsyncRuntimeWrapper=class{constructor(vfs2,options={}){__publicField2(this,"runtime");this.runtime=new Runtime(vfs2,options)}async execute(code22,filename){return Promise.resolve(this.runtime.execute(code22,filename))}async runFile(filename){return Promise.resolve(this.runtime.runFile(filename))}clearCache(){this.runtime.clearCache()}getVFS(){return this.runtime.getVFS()}getSyncRuntime(){return this.runtime}};async function createRuntime(vfs2,options={}){const{useWorker=false,...runtimeOptions}=options;const shouldUseWorker=useWorker===true||useWorker==="auto"?isWorkerAvailable():false;if(shouldUseWorker){const workerRuntime=new WorkerRuntime(vfs2,runtimeOptions);await workerRuntime.execute("/* worker ready check */","/__worker_init__.js");return workerRuntime}return new AsyncRuntimeWrapper(vfs2,runtimeOptions)}var DuplexStreamHandle=class extends LibuvStreamWrap{constructor(transport2){super();__publicField2(this,"pendingWrite");this.transport=transport2;transport2.pause();transport2.on("data",chunk=>{transport2.pause();this.receive(chunk)});transport2.on("end",()=>this.receiveEof());transport2.on("error",()=>{var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_ECONNRESET);this.receiveError(UV_ECONNRESET)});transport2.on("close",()=>{var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_ECONNRESET);this.receiveEof()})}readStop(){this.transport.pause();return super.readStop()}flushInbound(){super.flushInbound();if(this.reading&&!this.closed&&!this.inboundEof)this.transport.resume()}dispatchWrite(req,buffer2){if(this.closed)return UV_EBADF;streamBaseState[kBytesWritten]=buffer2.byteLength;streamBaseState[kLastWriteWasAsync]=1;this.writeQueueSize=buffer2.byteLength;let offset2=0;let complete=false;const finish=status=>{if(complete)return;complete=true;this.pendingWrite=void 0;this.writeQueueSize=0;queueMicrotask(()=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,status)})};this.pendingWrite=finish;const next2=()=>{if(complete)return;if(this.closed){finish(UV_EBADF);return}if(offset2===buffer2.byteLength){finish(0);return}const bytes2=buffer2.slice(offset2,offset2+64*1024);offset2+=bytes2.byteLength;this.transport.write(bytes2,error=>{if(error){finish(UV_ECONNRESET);return}this.bytesWritten+=bytes2.byteLength;this.writeQueueSize-=bytes2.byteLength;next2()})};queueMicrotask(next2);return 0}shutdown(req){if(this.closed)return UV_EBADF;this.transport.end(()=>{var _a22;return(_a22=req.oncomplete)==null?void 0:_a22.call(req,0)});return 0}onCloseHandle(){var _a22;(_a22=this.pendingWrite)==null?void 0:_a22.call(this,UV_EBADF);this.transport.destroy()}getsockname(){return UV_ENOTSUP}getpeername(){return UV_ENOTSUP}setNoDelay(){return 0}setKeepAlive(){return 0}};var unsupported=detail=>Object.assign(new Error(`HTTP transport does not support ${detail}.`),{code:"ERR_HTTP_TRANSPORT_UNSUPPORTED"});var local=host2=>host2==="localhost"||host2==="::1"||host2==="[::1]"||/^127\./u.test(host2);var tlsOptions=["ca","cert","key","pfx","passphrase","ciphers","secureContext","checkServerIdentity","minVersion","maxVersion","secureProtocol","secureOptions","session","ALPNProtocols","pskCallback"];function installHttpClientTransport(factory,transportOptions={}){const installed22=new WeakMap;const live2=new Set;const collected=new FinalizationRegistry(ref2=>live2.delete(ref2));const install22=(Agent,protocol,require2)=>{const prototype=Agent.prototype;if(installed22.has(prototype))return;const original=prototype.createConnection;const connect2=function(options,callback){var _a22;const host2=String(options.hostname??options.host??"localhost").toLowerCase();const hostPort=local(host2)&&!options.socketPath&&((_a22=transportOptions.hostPorts)==null?void 0:_a22.call(transportOptions).has(Number(options.port??(protocol==="https:"?443:80))));if(!hostPort&&(protocol==="http:"&&(local(host2)||options.socketPath)||protocol==="https:"&&local(host2)&&!options.socketPath)){return original.call(this,options,callback)}try{if(options.socketPath||options.localAddress||options.localPort||options.lookup||options.family)throw unsupported("custom socket routing");if(protocol==="https:"&&(tlsOptions.some(key=>options[key]!==void 0)||options.rejectUnauthorized===false||options.servername!==void 0&&options.servername!==host2))throw unsupported("custom TLS options");const authority=new URL(`${protocol}//${host2.includes(":")&&!host2.startsWith("[")?`[${host2}]`:host2}:${options.port??(protocol==="https:"?443:80)}`);return connection(authority,factory(),require2)}catch(cause){queueMicrotask(()=>callback(cause instanceof Error?cause:new Error(String(cause))));return void 0}};prototype.createConnection=connect2;installed22.set(prototype,{original,connect:connect2});const ref2=new WeakRef(prototype);live2.add(ref2);collected.register(prototype,ref2,ref2)};install22(httpModule.Agent,"http:");install22(httpsModule.Agent,"https:");const unsubscribe=onNodeLibLoaded((name,value,require2)=>{if(name==="_http_agent")install22(value.Agent,"http:",require2);if(name==="https")install22(value.Agent,"https:",require2)});return()=>{unsubscribe();for(const ref2 of live2){const prototype=ref2.deref();const held=prototype&&installed22.get(prototype);if(prototype&&held&&prototype.createConnection===held.connect)prototype.createConnection=held.original;collected.unregister(ref2)}live2.clear()}}function connection(origin,exchange2,require2){const streams2=require2?require2("stream"):streamModule;const net=require2?require2("net"):netModule;const http=require2?require2("http"):httpModule;const pair=streams2.duplexPair({highWaterMark:64*1024});const client=new net.Socket({handle:new DuplexStreamHandle(pair[0]),readable:true,writable:true});const peer=new net.Socket({handle:new DuplexStreamHandle(pair[1]),readable:true,writable:true});peer.unref();const controller=new AbortController;let reader;const fail3=cause=>{const error=cause instanceof Error?cause:new Error(String(cause));controller.abort(error);client.destroy(error);peer.destroy()};client.once("close",()=>{controller.abort(new Error("HTTP client connection closed."));void(reader==null?void 0:reader.cancel(controller.signal.reason).catch(()=>{}));peer.destroy()});peer.on("error",fail3);const server=http.createServer({maxHeaderSize:32*1024,requestTimeout:0,headersTimeout:0},(request,response)=>{void(async()=>{var _a22,_b22;if(!request.url.startsWith("/")||request.url.startsWith("//"))throw unsupported("absolute-form request targets");const url2=new URL(request.url,origin);if(url2.origin!==origin.origin)throw unsupported("a request target that changes origin");const headers=[];const connectionHeaders=new Set;for(let i22=0;i22<request.rawHeaders.length;i22+=2){const name=request.rawHeaders[i22],value=request.rawHeaders[i22+1];const lower=name.toLowerCase();if(["expect","upgrade","trailer","te"].includes(lower))throw unsupported(`${lower} headers`);if(lower==="host"){if(value.toLowerCase()!==origin.host)throw unsupported("a Host header different from the destination");continue}if(lower==="connection")for(const token of value.split(","))connectionHeaders.add(token.trim().toLowerCase());headers.push([name,value])}const outgoing=headers.filter(([name])=>!["connection","keep-alive","transfer-encoding"].includes(name.toLowerCase())&&!connectionHeaders.has(name.toLowerCase()));const carriesBody=request.headers["transfer-encoding"]!==void 0||Number(request.headers["content-length"]??0)>0;const Readable2=streams2.Readable;const body=carriesBody?Readable2.toWeb(request,{strategy:{highWaterMark:64*1024,size:chunk=>chunk.byteLength}}):void 0;if(!carriesBody)request.resume();const result=await exchange2({url:url2.href,method:request.method,headers:outgoing,...body?{body}:{},signal:controller.signal,profile:"server-http"});if(controller.signal.aborted){await((_a22=result.body)==null?void 0:_a22.cancel(controller.signal.reason));return}response.shouldKeepAlive=false;response.sendDate=false;response.writeHead(result.status,result.statusText,result.headers.flat());reader=(_b22=result.body)==null?void 0:_b22.getReader();try{for(;;){controller.signal.throwIfAborted();const next2=reader?await reader.read():{done:true,value:void 0};if(next2.done)break;if(!response.write(next2.value))await new Promise((resolve2,reject)=>{const abort=()=>{response.removeListener("drain",drain);reject(controller.signal.reason)};const drain=()=>{controller.signal.removeEventListener("abort",abort);resolve2()};response.once("drain",drain);controller.signal.addEventListener("abort",abort,{once:true});if(controller.signal.aborted)abort()})}response.end()}catch(cause){await(reader==null?void 0:reader.cancel(cause).catch(()=>{}));throw cause}finally{reader==null?void 0:reader.releaseLock();reader=void 0}})().catch(fail3)});for(const name of["connect","upgrade","checkContinue","checkExpectation"])server.on(name,()=>fail3(unsupported(name)));server.on("clientError",fail3);server.emit("connection",peer);return client}var DEFAULT_REGISTRY="https://registry.npmjs.org";var Registry=class{constructor(options={}){__publicField2(this,"registryUrl");__publicField2(this,"registryScopes");__publicField2(this,"cache");this.registryUrl=options.registry||DEFAULT_REGISTRY;this.registryScopes=options.registryScopes;this.cache=options.cache||new Map}registryFor(packageName){const scopes2=this.registryScopes??globalThis.__browserRuntimeRegistryScopes;if(scopes2&&typeof packageName==="string"){const scope4=packageName.startsWith("@")&&packageName.includes("/")?packageName.slice(0,packageName.indexOf("/")):packageName;const url2=scopes2[scope4]??scopes2[packageName];if(typeof url2==="string"&&url2!=="")return url2.endsWith("/")?url2.slice(0,-1):url2}return this.registryUrl}async getPackageManifest(packageName){if(this.cache.has(packageName)){return this.cache.get(packageName)}const __docs=globalThis.__browserRuntimeLockfileManifests;const __doc=__docs instanceof Map?__docs.get(packageName):void 0;if(__doc){const __tarball=`${this.registryFor(packageName)}/${encodePackageName(packageName)}/-/${packageName.slice(packageName.lastIndexOf("/")+1)}-${__doc.version}.tgz`;const __manifest={"dist-tags":{latest:__doc.version},versions:{[__doc.version]:{name:packageName,version:__doc.version,dist:{tarball:__tarball},dependencies:__doc.dependencies,...__doc.peerDependencies?{peerDependencies:__doc.peerDependencies,peerDependenciesMeta:__doc.peerDependenciesMeta||{}}:{},...__doc.optionalDependencies?{optionalDependencies:__doc.optionalDependencies}:{}}}};this.cache.set(packageName,__manifest);return __manifest}const __pins=globalThis.__browserRuntimeLockfilePins;const __pin=__pins instanceof Map?__pins.get(packageName):void 0;if(typeof __pin==="string"){const pinnedUrl=`${this.registryFor(packageName)}/${encodePackageName(packageName)}/${__pin}`;const pinnedResponse=await fetch(pinnedUrl,{headers:{Accept:"application/json"}});if(pinnedResponse.ok){const versionData=await pinnedResponse.json();if(versionData&&versionData.dist&&versionData.dist.tarball){const pinnedManifest={"dist-tags":{latest:__pin},versions:{[__pin]:versionData}};this.cache.set(packageName,pinnedManifest);return pinnedManifest}}}const url2=`${this.registryFor(packageName)}/${encodePackageName(packageName)}`;const response=await fetch(url2,{headers:{Accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8"}});if(!response.ok){if(response.status===404){throw new Error(`Package not found: ${packageName}`)}throw new Error(`Failed to fetch package ${packageName}: ${response.status}`)}const manifest=await response.json();this.cache.set(packageName,manifest);return manifest}async getPackageVersion(packageName,version2){const manifest=await this.getPackageManifest(packageName);if(manifest["dist-tags"][version2]){version2=manifest["dist-tags"][version2]}const versionData=manifest.versions[version2];if(!versionData){throw new Error(`Version ${version2} not found for package ${packageName}`)}return versionData}async getLatestVersion(packageName){const manifest=await this.getPackageManifest(packageName);return manifest["dist-tags"].latest}async getVersions(packageName){const manifest=await this.getPackageManifest(packageName);return Object.keys(manifest.versions)}async downloadTarball(tarballUrl){const response=await fetch(tarballUrl);if(!response.ok){throw new Error(`Failed to download tarball: ${response.status}`)}return response.arrayBuffer()}clearCache(){this.cache.clear()}};function encodePackageName(name){return name.replace("/","%2f")}new Registry;function parseVersion(version2){const match2=version2.match(/^(\d+)\.(\d+)\.(\d+)(?:-(.+))?$/);if(!match2)return null;return{major:parseInt(match2[1],10),minor:parseInt(match2[2],10),patch:parseInt(match2[3],10),prerelease:match2[4]}}function compareVersions(a,b){const parsedA=parseVersion(a);const parsedB=parseVersion(b);if(!parsedA||!parsedB){return a.localeCompare(b)}if(parsedA.major!==parsedB.major){return parsedA.major-parsedB.major}if(parsedA.minor!==parsedB.minor){return parsedA.minor-parsedB.minor}if(parsedA.patch!==parsedB.patch){return parsedA.patch-parsedB.patch}if(parsedA.prerelease&&!parsedB.prerelease)return-1;if(!parsedA.prerelease&&parsedB.prerelease)return 1;if(parsedA.prerelease&&parsedB.prerelease){return parsedA.prerelease.localeCompare(parsedB.prerelease)}return 0}function satisfies(version2,range22){const parsed=parseVersion(version2);if(!parsed)return false;if(parsed.prerelease&&!range22.includes("-")){return false}range22=range22.trim();range22=range22.replace(/^=\s*/,"").replace(/^v(?=\d)/,"");range22=range22.replace(/(>=|<=|>|<|=)\s*(\d+)(\.\d+)?(?![.\d])/g,(__m,__op,__major,__minor)=>__op+" "+__major+(__minor===void 0?".0.0":__minor+".0"));const __browserRuntimePartialRange=range22.match(/^([~^])(\d+)(?:\.(\d+))?(?:\.(\d+))?$/);if(__browserRuntimePartialRange){const operator=__browserRuntimePartialRange[1];const major=Number(__browserRuntimePartialRange[2]);const hasMinor=__browserRuntimePartialRange[3]!==void 0;const hasPatch=__browserRuntimePartialRange[4]!==void 0;const minor=Number(__browserRuntimePartialRange[3]??0);const patch=Number(__browserRuntimePartialRange[4]??0);const lower=major+"."+minor+"."+patch;let upper;if(operator==="~"){upper=hasMinor?major+"."+(minor+1)+".0":major+1+".0.0"}else if(major>0||!hasMinor){upper=major+1+".0.0"}else if(minor>0||!hasPatch){upper="0."+(minor+1)+".0"}else{upper="0.0."+(patch+1)}return compareVersions(version2,lower)>=0&&compareVersions(version2,upper)<0}if(/^\d+\.\d+\.\d+/.test(range22)&&!range22.includes(" ")){const rangeMatch=range22.match(/^(\d+\.\d+\.\d+(?:-[^\s]+)?)/);if(rangeMatch){return compareVersions(version2,rangeMatch[1])===0}}if(range22==="*"||range22==="latest"||range22===""){return true}if(range22.includes("||")){return range22.split("||").some(r10=>satisfies(version2,r10.trim()))}if(range22.includes(" - ")){const[min2,max2]=range22.split(" - ").map(s10=>s10.trim());return compareVersions(version2,min2)>=0&&compareVersions(version2,max2)<=0}const operatorMatches=range22.match(/(>=|<=|>|<|=)?\s*(\d+\.\d+\.\d+(?:-[^\s]*)?)/g);if(operatorMatches&&operatorMatches.length>1){return operatorMatches.every(match2=>{const m=match2.match(/^(>=|<=|>|<|=)?\s*(\d+\.\d+\.\d+(?:-[^\s]*)?)$/);if(!m)return true;const op2=m[1]||"=";const ver=m[2];switch(op2){case">=":return compareVersions(version2,ver)>=0;case"<=":return compareVersions(version2,ver)<=0;case">":return compareVersions(version2,ver)>0;case"<":return compareVersions(version2,ver)<0;case"=":return compareVersions(version2,ver)===0;default:return compareVersions(version2,ver)===0}})}if(range22.startsWith("^")){const base=range22.slice(1);const baseParsed=parseVersion(base);if(!baseParsed)return false;if(parsed.major!==baseParsed.major){return false}if(baseParsed.major===0){if(baseParsed.minor!==0&&parsed.minor!==baseParsed.minor){return false}if(baseParsed.minor===0&&parsed.minor!==0){return false}}return compareVersions(version2,base)>=0}if(range22.startsWith("~")){const base=range22.slice(1);const baseParsed=parseVersion(base);if(!baseParsed)return false;if(parsed.major!==baseParsed.major||parsed.minor!==baseParsed.minor){return false}return compareVersions(version2,base)>=0}if(range22.startsWith(">=")){const base=range22.slice(2).trim();return compareVersions(version2,base)>=0}if(range22.startsWith(">")){const base=range22.slice(1).trim();return compareVersions(version2,base)>0}if(range22.startsWith("<=")){const base=range22.slice(2).trim();return compareVersions(version2,base)<=0}if(range22.startsWith("<")){const base=range22.slice(1).trim();return compareVersions(version2,base)<0}if(range22.includes("x")||range22.includes("X")||/^\d+$/.test(range22)||/^\d+\.\d+$/.test(range22)){const parts=range22.replace(/[xX]/g,"").split(".").filter(Boolean);if(parts.length===1){return parsed.major===parseInt(parts[0],10)}if(parts.length===2){return parsed.major===parseInt(parts[0],10)&&parsed.minor===parseInt(parts[1],10)}}if(range22.includes(" ")){const conditions=range22.split(/\s+/).filter(Boolean);return conditions.every(r10=>satisfies(version2,r10))}return compareVersions(version2,range22)===0}function findBestVersion(versions,range22){const sorted=[...versions].sort((a,b)=>compareVersions(b,a));for(const version2 of sorted){if(satisfies(version2,range22)){return version2}}return null}async function resolveDependencies(packageName,versionRange="latest",options={}){const registry=options.registry||new Registry;const context2={registry,resolved:new Map,resolving:new Set,options};await resolvePackage(packageName,versionRange,context2);context2.resolved.__nested=context2.nested;return context2.resolved}async function resolveFromPackageJson(packageJson,options={}){const registry=options.registry||new Registry;const context2={registry,resolved:new Map,resolving:new Set,options};const deps={...packageJson.dependencies};if(options.includeDev&&packageJson.devDependencies){Object.assign(deps,packageJson.devDependencies)}const __pins=globalThis.__browserRuntimeLockfilePins;if(__pins instanceof Map&&__pins.size>0){const __names=[...__pins.keys()];for(let __index=0;__index<__names.length;__index+=32){await Promise.all(__names.slice(__index,__index+32).map(name3=>registry.getPackageManifest(name3).catch(()=>void 0)))}}context2.rootDeps=new Map;for(const[name,range22]of Object.entries(deps)){await resolvePackage(name,range22,context2,void 0,"choose")}for(const[name,range22]of Object.entries(deps)){await resolvePackage(name,range22,context2,void 0,"descend")}context2.resolved.__nested=context2.nested;return context2.resolved}async function __browserRuntimeNest(packageName,versionRange,context2,parentKey,registryName=packageName){const records=globalThis.__browserRuntimeLockfileRecords;const versions=records instanceof Map?records.get(packageName):void 0;if(!versions)return;const candidates=[...versions.keys()].filter(version22=>satisfies(version22,versionRange)).sort((a,b)=>compareVersions(b,a));const version2=candidates[0];if(!version2)return;const nestedKey=parentKey?`${parentKey}/node_modules/${packageName}`:packageName;context2.nested??(context2.nested=new Map);if(context2.nested.has(nestedKey)||context2.resolving.has(nestedKey))return;context2.resolving.add(nestedKey);try{const doc=versions.get(version2);const tarballUrl=doc.resolved||`${context2.registry.registryFor(registryName)}/${encodePackageName(registryName)}/-/${registryName.slice(registryName.lastIndexOf("/")+1)}-${version2}.tgz`;context2.nested.set(nestedKey,{name:packageName,version:version2,tarballUrl,dependencies:doc.dependencies||{}});const deps={};if(doc.peerDependencies){const meta=doc.peerDependenciesMeta||{};for(const[name2,range22]of Object.entries(doc.peerDependencies)){if(!(meta[name2]&&meta[name2].optional))deps[name2]=range22}}Object.assign(deps,doc.dependencies);if(context2.options.includeOptional&&doc.optionalDependencies)Object.assign(deps,doc.optionalDependencies);for(const[depName,depRange]of Object.entries(deps)){await resolvePackage(depName,depRange,context2,nestedKey)}}finally{context2.resolving.delete(nestedKey)}}async function resolvePackage(packageName,versionRange,context2,__parent,phase){var _a22,_b22,_c22;if(phase==="descend"){const chosen=(_a22=context2.rootDeps)==null?void 0:_a22.get(packageName);if(!chosen)return;context2.rootDeps.delete(packageName);await descendInto(packageName,chosen,context2);return}let __registryName=packageName;if(typeof versionRange==="string"&&versionRange.startsWith("npm:")){const __spec=versionRange.slice(4);const __at=__spec.lastIndexOf("@");__registryName=__at>0?__spec.slice(0,__at):__spec;versionRange=__at>0?__spec.slice(__at+1):"latest"}const{registry,resolved,resolving,options}=context2;const key=`${packageName}@${versionRange}`;if(resolving.has(key)){return}if(resolved.has(packageName)){const existing=resolved.get(packageName);if(satisfies(existing.version,versionRange)){return}await __browserRuntimeNest(packageName,versionRange,context2,__parent,typeof __registryName==="string"?__registryName:packageName);return}resolving.add(key);try{(_b22=options.onProgress)==null?void 0:_b22.call(options,`Resolving ${packageName}@${versionRange}`);const manifest=await registry.getPackageManifest(__registryName);const versions=Object.keys(manifest.versions);let targetVersion;const __pinned=globalThis.__browserRuntimeLockfilePins;const __pin=__pinned instanceof Map?__pinned.get(__registryName):void 0;if(typeof __pin==="string"&&manifest.versions[__pin]){const versionData2=manifest.versions[__pin];const resolvedPackage2={name:packageName,version:__pin,tarballUrl:versionData2.dist.tarball,dependencies:versionData2.dependencies||{}};resolved.set(packageName,resolvedPackage2);const deps2={};if(versionData2.peerDependencies){const meta2=versionData2.peerDependenciesMeta||{};for(const[name3,range22]of Object.entries(versionData2.peerDependencies)){if(!(meta2[name3]==null?void 0:meta2[name3].optional))deps2[name3]=range22}}Object.assign(deps2,versionData2.dependencies);if(options.includeOptional&&versionData2.optionalDependencies){Object.assign(deps2,versionData2.optionalDependencies)}if(phase==="choose")context2.rootDeps.set(packageName,deps2);else await descendInto(packageName,deps2,context2);if(!satisfies(__pin,versionRange))await __browserRuntimeNest(packageName,versionRange,context2,__parent,__registryName);return}if(versionRange==="latest"||versionRange==="*"){targetVersion=manifest["dist-tags"].latest}else if(manifest["dist-tags"][versionRange]){targetVersion=manifest["dist-tags"][versionRange]}else{const best=findBestVersion(versions,versionRange);if(!best){throw new Error(`No matching version found for ${packageName}@${versionRange}`)}targetVersion=best}const versionData=manifest.versions[targetVersion];const resolvedPackage={name:packageName,version:targetVersion,tarballUrl:versionData.dist.tarball,dependencies:versionData.dependencies||{}};resolved.set(packageName,resolvedPackage);const deps={};if(versionData.peerDependencies){const meta=versionData.peerDependenciesMeta||{};for(const[name,range22]of Object.entries(versionData.peerDependencies)){if(!((_c22=meta[name])==null?void 0:_c22.optional)){deps[name]=range22}}}Object.assign(deps,versionData.dependencies);if(options.includeOptional&&versionData.optionalDependencies){Object.assign(deps,versionData.optionalDependencies)}if(phase==="choose")context2.rootDeps.set(packageName,deps);else await descendInto(packageName,deps,context2)}finally{resolving.delete(key)}}async function descendInto(packageName,deps,context2){const depEntries=Object.entries(deps);if(depEntries.length===0)return;const CONCURRENCY=8;for(let i22=0;i22<depEntries.length;i22+=CONCURRENCY){const batch=depEntries.slice(i22,i22+CONCURRENCY);await Promise.all(batch.map(([depName,depRange])=>resolvePackage(depName,depRange,context2,packageName)))}}function*parseTar(data2){new TextDecoder;let offset2=0;let __nextName;while(offset2<data2.length-512){const header=data2.slice(offset2,offset2+512);offset2+=512;if(header.every(b=>b===0)){break}const name=parseString(header,0,100);const mode=parseOctal(header,100,8);const size=parseOctal(header,124,12);const typeFlag=String.fromCharCode(header[156]);const linkName=parseString(header,157,100);const prefix2=parseString(header,345,155);if(!name){continue}const fullName=__nextName!==void 0?__nextName:prefix2?`${prefix2}/${name}`:name;__nextName=void 0;let type2;switch(typeFlag){case"0":case"\0":case"":type2="file";break;case"5":type2="directory";break;case"1":case"2":type2="symlink";break;default:type2="unknown"}let content;const __payload=size>0?Math.ceil(size/512)*512:0;if(typeFlag==="x"||typeFlag==="L"){const __text=new TextDecoder().decode(data2.slice(offset2,offset2+size));offset2+=__payload;if(typeFlag==="L"){__nextName=__text.replace(/\0+$/,"")}else{for(const __line of __text.split("\n")){const __match=/^\d+ path=(.*)$/.exec(__line);if(__match)__nextName=__match[1]}}continue}if(type2==="file"){content=size>0?data2.slice(offset2,offset2+size):new Uint8Array(0)}offset2+=__payload;yield{name:fullName,type:type2,size,mode,content,linkTarget:type2==="symlink"?linkName:void 0}}}function parseString(data2,offset2,length){const bytes2=data2.slice(offset2,offset2+length);const nullIndex=bytes2.indexOf(0);const actualBytes=nullIndex>=0?bytes2.slice(0,nullIndex):bytes2;return new TextDecoder().decode(actualBytes)}function parseOctal(data2,offset2,length){const str=parseString(data2,offset2,length).trim();return parseInt(str,8)||0}function decompress2(data2){const input=data2 instanceof Uint8Array?data2:new Uint8Array(data2);return pako.inflate(input)}function extractTarball(tarballData,vfs2,destPath,options={}){const{stripComponents=1,filter:filter2,onProgress}=options;onProgress==null?void 0:onProgress("Decompressing...");const tarData=decompress2(tarballData);const extractedFiles=[];for(const entry of parseTar(tarData)){if(entry.type!=="file"&&entry.type!=="directory"){continue}let entryPath=entry.name;if(stripComponents>0){const parts=entryPath.split("/").filter(Boolean);if(parts.length<=stripComponents){continue}entryPath=parts.slice(stripComponents).join("/")}if(filter2&&!filter2(entryPath)){continue}const fullPath=join2(destPath,entryPath);if(entry.type==="directory"){vfs2.mkdirSync(fullPath,{recursive:true})}else if(entry.type==="file"&&entry.content){const parentDir=dirname(fullPath);vfs2.mkdirSync(parentDir,{recursive:true});vfs2.writeFileSync(fullPath,entry.content);extractedFiles.push(fullPath)}}onProgress==null?void 0:onProgress(`Extracted ${extractedFiles.length} files`);return extractedFiles}globalThis[Symbol.for("@volter/browser-runtime/package-extract")]=extractTarball;async function __browserRuntimeInstallPool(items,size,work){let next2=0;await Promise.all(Array.from({length:Math.min(size,items.length)},async()=>{for(;;){const index2=next2++;if(index2>=items.length)return;await work(items[index2])}}))}async function downloadAndExtract(url2,vfs2,destPath,options={}){const{onProgress}=options;onProgress==null?void 0:onProgress(`Downloading ${url2}...`);const response=await fetch(url2);if(!response.ok){throw new Error(`Failed to download tarball: ${response.status}`)}const data2=await response.arrayBuffer();return extractTarball(data2,vfs2,destPath,options)}var isBrowser=typeof window!=="undefined";var NODE_DYNAMIC_IMPORT_BUILTINS=["stream/web","fs/promises","stream/promises","stream/consumers","timers/promises","dns/promises","readline/promises","path/posix","path/win32","util/types","assert/strict","assert","buffer","constants","child_process","cluster","crypto","dgram","dns","events","fs","http","http2","https","net","os","path","perf_hooks","querystring","readline","stream","string_decoder","timers","tls","url","util","v8","vm","worker_threads","zlib","async_hooks","inspector","module"];function lowerDynamicBuiltinImports(code22){let lowered=code22.replace(/\bimport\s*\(\s*["']node:([^"']+)["']\s*\)/g,'Promise.resolve(require("node:$1"))');for(const builtin of NODE_DYNAMIC_IMPORT_BUILTINS){const pattern=new RegExp(`\\bimport\\s*\\(\\s*["']${builtin}["']\\s*\\)`,"g");lowered=lowered.replace(pattern,`Promise.resolve(require("${builtin}"))`)}return lowered}async function initTransformer(){if(getEsbuildInstance())return;if(!isBrowser){console.log("[transform] Skipping esbuild init (not in browser)");return}if(window.__esbuild){console.log("[transform] Reusing existing esbuild instance");return}if(window.__esbuildInitPromise){return window.__esbuildInitPromise}window.__esbuildInitPromise=(async()=>{try{console.log("[transform] Loading esbuild-wasm...");const mod=await import(ESBUILD_WASM_ESM_CDN);const esbuildMod=mod.default||mod;try{await esbuildMod.initialize({wasmURL:ESBUILD_WASM_BINARY_CDN});console.log("[transform] esbuild-wasm initialized")}catch(initError){if(initError instanceof Error&&initError.message.includes('Cannot call "initialize" more than once')){console.log("[transform] esbuild-wasm already initialized, reusing")}else{throw initError}}window.__esbuild=esbuildMod}catch(error){console.error("[transform] Failed to initialize esbuild:",error);window.__esbuildInitPromise=void 0;throw error}})();return window.__esbuildInitPromise}function isTransformerReady(){if(getEsbuildInstance())return true;if(!isBrowser)return true;return window.__esbuild!==void 0}async function transformFile(code22,filename){if(!getEsbuildInstance()&&!isBrowser){return code22}if(!getEsbuildInstance()&&!window.__esbuild){await initTransformer()}const esbuild2=getEsbuildInstance()??window.__esbuild;if(!esbuild2){throw new Error("esbuild not initialized")}let loader="js";if(filename.endsWith(".jsx"))loader="jsx";else if(filename.endsWith(".ts"))loader="ts";else if(filename.endsWith(".tsx"))loader="tsx";else if(filename.endsWith(".mjs"))loader="js";try{const result=await esbuild2.transform(code22,{loader,format:"cjs",target:"esnext",platform:"neutral",define:{"import.meta.url":"import_meta.url","import.meta.dirname":"import_meta.dirname","import.meta.filename":"import_meta.filename","import.meta":"import_meta"}});const transformed=lowerDynamicBuiltinImports(result.code);return transformed}catch(error){const errorMsg=error instanceof Error?error.message:String(error);if(errorMsg.includes("Top-level await")){console.log(`[transform] Skipping ${filename} (has top-level await, likely CLI entry point)`);return code22}console.warn(`[transform] Failed to transform ${filename}:`,error);return code22}}function needsTransform(filename,code22){if(filename.endsWith(".mjs")){return true}if(filename.endsWith(".cjs")){return false}const hasImport=/\bimport\s+[\w{*'"]/m.test(code22);const hasExport=/\bexport\s+(?:default|const|let|var|function|class|{|\*)/m.test(code22);const hasImportMeta=/\bimport\.meta\b/.test(code22);return hasImport||hasExport||hasImportMeta}function hasDynamicNodeImports(code22){if(/\bimport\s*\(\s*["']node:/.test(code22)){return true}const names2=NODE_DYNAMIC_IMPORT_BUILTINS.map(name=>name.replace("/","\\/")).join("|");return new RegExp(`\\bimport\\s*\\(\\s*["'](?:${names2})["']\\s*\\)`).test(code22)}function patchDynamicImports(code22){return lowerDynamicBuiltinImports(code22)}async function transformPackage(vfs2,pkgPath,onProgress){let transformedCount=0;const jsFiles=findJsFiles(vfs2,pkgPath);onProgress==null?void 0:onProgress(` Transforming ${jsFiles.length} files in ${pkgPath}...`);const BATCH_SIZE=10;for(let i22=0;i22<jsFiles.length;i22+=BATCH_SIZE){const batch=jsFiles.slice(i22,i22+BATCH_SIZE);await Promise.all(batch.map(async filePath=>{try{const code22=vfs2.readFileSync(filePath,"utf8");if(needsTransform(filePath,code22)){const transformed=await transformFile(code22,filePath);vfs2.writeFileSync(filePath,transformed);transformedCount++}else if(hasDynamicNodeImports(code22)){const patched=patchDynamicImports(code22);vfs2.writeFileSync(filePath,patched);transformedCount++}}catch(error){console.warn(`[transform] Skipping ${filePath}:`,error)}}))}return transformedCount}function findJsFiles(vfs2,dir){const files=[];try{const entries=vfs2.readdirSync(dir);for(const entry of entries){const fullPath=dir+"/"+entry;try{const stat2=vfs2.statSync(fullPath);if(stat2.isDirectory()){if(entry!=="node_modules"){files.push(...findJsFiles(vfs2,fullPath))}}else if(entry.endsWith(".js")||entry.endsWith(".mjs")||entry.endsWith(".jsx")){files.push(fullPath)}}catch{}}}catch{}return files}var installTransformEnabled=false;function setInstallTransformEnabled(enabled){installTransformEnabled=enabled}function normalizeBin(pkgName,bin){if(!bin)return{};if(typeof bin==="string"){const cmdName=pkgName.includes("/")?pkgName.split("/").pop():pkgName;return{[cmdName]:bin}}return bin}var PackageManager=class{constructor(vfs2,options={}){__publicField2(this,"vfs");__publicField2(this,"registry");__publicField2(this,"cwd");this.vfs=vfs2;this.registry=new Registry(options);this.cwd=options.cwd||"/"}async install(packageSpec,options={}){const{onProgress}=options;const{name,version:version2}=parsePackageSpec(packageSpec);onProgress==null?void 0:onProgress(`Resolving ${name}@${version2||"latest"}...`);const resolved=await resolveDependencies(name,version2||"latest",{registry:this.registry,includeDev:options.includeDev,includeOptional:options.includeOptional,onProgress});const added=await this.installResolved(resolved,options);if(options.save||options.saveDev){const pkgToAdd=resolved.get(name);if(pkgToAdd){await this.updatePackageJson(name,`^${pkgToAdd.version}`,options.saveDev||false)}}onProgress==null?void 0:onProgress(`Installed ${resolved.size} packages`);return{installed:resolved,added}}async installFromPackageJson(options={}){var _a22;const{onProgress}=options;const pkgJsonPath=join2(this.cwd,"package.json");if(!this.vfs.existsSync(pkgJsonPath)){throw new Error("No package.json found")}const pkgJson=((_a22=this.vfs[Symbol.for("@volter/browser-node/workspace-install-manifests")])==null?void 0:_a22.get(this.cwd))??JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));onProgress==null?void 0:onProgress("Resolving dependencies...");const resolved=await resolveFromPackageJson(pkgJson,{registry:this.registry,includeDev:options.includeDev,includeOptional:options.includeOptional,onProgress});const added=await this.installResolved(resolved,options);onProgress==null?void 0:onProgress(`Installed ${resolved.size} packages`);return{installed:resolved,added}}async installResolved(resolved,options){const{onProgress}=options;const added=[];const nodeModulesPath=join2(this.cwd,"node_modules");this.vfs.mkdirSync(nodeModulesPath,{recursive:true});const toInstall=[];for(const[name,pkg]of resolved){const pkgPath=join2(nodeModulesPath,name);const existingPkgJson=join2(pkgPath,"package.json");if(this.vfs.existsSync(existingPkgJson)){try{const existing=JSON.parse(this.vfs.readFileSync(existingPkgJson,"utf8"));if(existing.version===pkg.version){onProgress==null?void 0:onProgress(`Skipping ${name}@${pkg.version} (already installed)`);continue}}catch{}}toInstall.push({name,pkg,pkgPath})}for(const[nestedKey,pkg]of resolved.__nested instanceof Map?resolved.__nested:[]){toInstall.push({name:pkg.name,pkg,pkgPath:join2(nodeModulesPath,nestedKey)})}const shouldTransform=installTransformEnabled;if(shouldTransform&&!isTransformerReady()){onProgress==null?void 0:onProgress("Initializing ESM transformer...");await initTransformer()}const CONCURRENCY=16;onProgress==null?void 0:onProgress(`Installing ${toInstall.length} packages...`);await __browserRuntimeInstallPool(toInstall,CONCURRENCY,async({name,pkg,pkgPath})=>{onProgress==null?void 0:onProgress(` Downloading ${name}@${pkg.version}...`);const __installHook=globalThis[Symbol.for("@volter/browser-runtime/package-install")];if(!(__installHook&&await __installHook(name,pkg,pkgPath,this.vfs))){await downloadAndExtract(pkg.tarballUrl,this.vfs,pkgPath,{stripComponents:1})}if(shouldTransform){try{const count=await transformPackage(this.vfs,pkgPath,onProgress);if(count>0){onProgress==null?void 0:onProgress(` Transformed ${count} files in ${name}`)}}catch(transformError){onProgress==null?void 0:onProgress(` Warning: Transform failed for ${name}: ${transformError}`)}}try{const pkgJsonPath=join2(pkgPath,"package.json");if(this.vfs.existsSync(pkgJsonPath)){const pkgJson=JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));const binEntries=normalizeBin(name,pkgJson.bin);const binDir=join2(pkgPath.slice(0,pkgPath.lastIndexOf("/node_modules/")+"/node_modules".length),".bin");for(const[cmdName,entryPath]of Object.entries(binEntries)){this.vfs.mkdirSync(binDir,{recursive:true});const targetPath=join2(pkgPath,entryPath);this.vfs.writeFileSync(join2(binDir,cmdName),`node "${targetPath}" "$@"
|
|
5892
5892
|
`)}}}catch{}added.push(name)});await this.writeLockfile(resolved);return added}async writeLockfile(resolved){const lockfile={};for(const[name,pkg]of resolved){lockfile[name]={version:pkg.version,resolved:pkg.tarballUrl}}const lockfilePath=join2(this.cwd,"node_modules",".package-lock.json");this.vfs.writeFileSync(lockfilePath,JSON.stringify(lockfile,null,2))}async updatePackageJson(packageName,version2,isDev){const pkgJsonPath=join2(this.cwd,"package.json");let pkgJson={};if(this.vfs.existsSync(pkgJsonPath)){pkgJson=JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"))}const field=isDev?"devDependencies":"dependencies";if(!pkgJson[field]){pkgJson[field]={}}pkgJson[field][packageName]=version2;this.vfs.writeFileSync(pkgJsonPath,JSON.stringify(pkgJson,null,2))}list(){const nodeModulesPath=join2(this.cwd,"node_modules");if(!this.vfs.existsSync(nodeModulesPath)){return{}}const packages2={};const entries=this.vfs.readdirSync(nodeModulesPath);for(const entry of entries){if(entry.startsWith("."))continue;if(entry.startsWith("@")){const scopePath=join2(nodeModulesPath,entry);const scopedPkgs=this.vfs.readdirSync(scopePath);for(const scopedPkg of scopedPkgs){const pkgJsonPath=join2(scopePath,scopedPkg,"package.json");if(this.vfs.existsSync(pkgJsonPath)){const pkgJson=JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));packages2[`${entry}/${scopedPkg}`]=pkgJson.version}}}else{const pkgJsonPath=join2(nodeModulesPath,entry,"package.json");if(this.vfs.existsSync(pkgJsonPath)){const pkgJson=JSON.parse(this.vfs.readFileSync(pkgJsonPath,"utf8"));packages2[entry]=pkgJson.version}}}return packages2}};function parsePackageSpec(spec){if(spec.startsWith("@")){const slashIndex=spec.indexOf("/");if(slashIndex===-1){throw new Error(`Invalid package spec: ${spec}`)}const afterSlash=spec.slice(slashIndex+1);const atIndex2=afterSlash.indexOf("@");if(atIndex2===-1){return{name:spec}}return{name:spec.slice(0,slashIndex+1+atIndex2),version:afterSlash.slice(atIndex2+1)}}const atIndex=spec.indexOf("@");if(atIndex===-1){return{name:spec}}return{name:spec.slice(0,atIndex),version:spec.slice(atIndex+1)}}async function install(packageSpec,vfs2,options){const pm=new PackageManager(vfs2);return pm.install(packageSpec,options)}var index=Object.freeze(Object.defineProperty({__proto__:null,PackageManager,Registry,install,parsePackageSpec,setInstallTransformEnabled},Symbol.toStringTag,{value:"Module"}));function __listening(port2){return listenerOnPort(port2)!==void 0}function requestHead(method,url2,headers,body){const lines=[`${method.toUpperCase()} ${url2} HTTP/1.1`];let hasLength=false;let hasEncoding=false;for(const[name,value]of Object.entries(headers)){const lower=name.toLowerCase();if(lower==="content-length")hasLength=true;if(lower==="transfer-encoding")hasEncoding=true;if(lower==="connection")continue;lines.push(`${name}: ${value}`)}if(!hasLength&&!hasEncoding)lines.push(`Content-Length: ${body?body.length:0}`);lines.push("Connection: close","","");return lines.join("\r\n")}function responseParser(collected,onHead,onChunk){const parser=new HTTPParser;parser.initialize(HTTPParser.RESPONSE,null,0,0);parser[HTTPParser.kOnHeadersComplete]=(_major,_minor,headers,_method,_url2,statusCode,statusMessage,upgrade)=>{if(collected.complete)return 0;collected.statusCode=statusCode;collected.statusMessage=statusMessage;collected.upgrade=upgrade;for(let index2=0;index2+1<headers.length;index2+=2){const name=headers[index2].toLowerCase();const value=headers[index2+1];collected.headers[name]=collected.headers[name]===void 0?value:`${collected.headers[name]}, ${value}`}onHead==null?void 0:onHead();return 0};parser[HTTPParser.kOnBody]=chunk=>{if(collected.complete)return;if(onChunk)onChunk(chunk);else collected.chunks.push(chunk)};parser[HTTPParser.kOnMessageComplete]=()=>{if(collected.complete)return collected.upgrade?0:-1;collected.complete=true;if(collected.upgrade)return 0;parser.pause();return-1};return parser}function emptyCollected(){return{statusCode:0,statusMessage:"",headers:{},chunks:[],complete:false,upgrade:false}}function ownedConcat(chunks){let total=0;for(const chunk of chunks)total+=chunk.byteLength;const joined=new Uint8Array(total);let at22=0;for(const chunk of chunks){joined.set(new Uint8Array(chunk.buffer,chunk.byteOffset,chunk.byteLength),at22);at22+=chunk.byteLength}return joined}function serviceUnavailable(port2){return{statusCode:503,statusMessage:"Service Unavailable",headers:{"Content-Type":"text/plain"},body:ownedConcat([Buffer$9.from(`No server listening on port ${port2}`)])}}function __requestOverLoopback(port2,method,url2,headers,body){if(!__listening(port2))return Promise.resolve(serviceUnavailable(port2));return new Promise(resolve2=>{const collected=emptyCollected();const parser=responseParser(collected);let settled=false;const answer2=()=>{if(settled)return;settled=true;parser.free();resolve2({statusCode:collected.statusCode||502,statusMessage:collected.statusMessage,headers:collected.headers,body:ownedConcat(collected.chunks)})};const socket=netModule.connect({port:port2,host:"127.0.0.1"});socket.on("data",chunk=>{if(settled)return;const read=parser.execute(chunk);if(read instanceof Error){socket.destroy();answer2()}else if(collected.complete){socket.destroy();answer2()}});socket.on("end",()=>{if(!settled){parser.finish()}answer2()});socket.on("close",answer2);socket.on("error",()=>{if(settled)return;settled=true;parser.free();resolve2(serviceUnavailable(port2))});socket.write(requestHead(method,url2,headers,body));if(body&&body.length>0)socket.write(body)})}function __streamOverLoopback(port2,method,url2,headers,body,onStart,onChunk,onEnd,flow){if(!__listening(port2)){onStart(503,"Service Unavailable",{"Content-Type":"text/plain"});onEnd();return Promise.resolve()}return new Promise(resolve2=>{var _a22;const collected=emptyCollected();let started2=false;let ended2=false;const finish=()=>{if(ended2)return;ended2=true;parser.free();onEnd();resolve2()};const parser=responseParser(collected,()=>{started2=true;onStart(collected.statusCode,collected.statusMessage,collected.headers)},chunk=>onChunk(chunk));const socket=netModule.connect({port:port2,host:"127.0.0.1"});(_a22=flow==null?void 0:flow.control)==null?void 0:_a22.call(flow,()=>socket.pause(),()=>socket.resume());if(flow==null?void 0:flow.signal){if(flow.signal.aborted){socket.destroy();finish();return}flow.signal.addEventListener("abort",()=>{socket.destroy();finish()},{once:true})}socket.on("data",chunk=>{if(ended2)return;const read=parser.execute(chunk);if(read instanceof Error){socket.destroy();finish()}else if(collected.complete){socket.destroy();finish()}});socket.on("end",()=>{if(!ended2){parser.finish()}finish()});socket.on("close",finish);socket.on("error",()=>{if(!started2)onStart(503,"Service Unavailable",{"Content-Type":"text/plain"});finish()});socket.write(requestHead(method,url2,headers,body));if(body&&body.length>0)socket.write(body)})}function __upgradeOverLoopback(port2,method,url2,headers){if(!__listening(port2)){return Promise.resolve({statusCode:503,statusMessage:"Service Unavailable",headers:{},socket:null})}return new Promise(resolve2=>{const collected=emptyCollected();let settled=false;const parser=responseParser(collected);const socket=netModule.connect({port:port2,host:"127.0.0.1"});const fail3=()=>{if(settled)return;settled=true;parser.free();resolve2({statusCode:collected.statusCode||502,statusMessage:collected.statusMessage,headers:collected.headers,socket:null})};socket.on("data",chunk=>{if(settled)return;const read=parser.execute(chunk);if(read instanceof Error){socket.destroy();fail3();return}if(collected.upgrade||collected.statusCode===101){settled=true;parser.free();const consumed=typeof read==="number"?read:chunk.length;const rest=chunk.subarray(consumed);if(rest.length>0)socket.unshift(rest);resolve2({statusCode:collected.statusCode,statusMessage:collected.statusMessage,headers:collected.headers,socket});return}if(collected.complete){socket.destroy();fail3()}});socket.on("error",fail3);socket.on("close",fail3);const upgradeHeaders={...headers,Connection:"Upgrade"};const lines=[`${method.toUpperCase()} ${url2} HTTP/1.1`];for(const[name,value]of Object.entries(upgradeHeaders)){if(name.toLowerCase()==="connection")continue;lines.push(`${name}: ${value}`)}lines.push("Connection: Upgrade","","");socket.write(lines.join("\r\n"))})}var _encoder2=new TextEncoder;function guestListeningServer(port2,address){const hostname2=address;return{listening:true,address:()=>({port:port2,address:hostname2,family:hostname2.includes(":")?"IPv6":"IPv4"}),handleRequest:(method,url2,headers,body)=>__requestOverLoopback(port2,method,url2,headers,typeof body==="string"?Buffer$9.from(body):body)}}var __substrateUpgradeSockets=new Map;function __substrateFrame(opcode,payload,masked){const length=payload.length;const header=[128|opcode];if(length<126)header.push(128|length);else if(length<65536)header.push(128|126,length>>8,length&255);else header.push(128|127,0,0,0,0,length>>>24&255,length>>>16&255,length>>>8&255,length&255);const mask=[Math.random()*256|0,Math.random()*256|0,Math.random()*256|0,Math.random()*256|0];const out=new Uint8Array(header.length+mask.length+length);out.set(header,0);out.set(mask,header.length);for(let index2=0;index2<length;index2+=1)out[header.length+mask.length+index2]=payload[index2]^mask[index2&3];return out}function __substrateParseFrames(state,chunk,onFrame){const joined=state.pending.length?new Uint8Array([...state.pending,...chunk]):chunk;let offset2=0;for(;;){if(joined.length-offset2<2)break;const b02=joined[offset2],b12=joined[offset2+1];const fin=(b02&128)!==0,opcode=b02&15,masked=(b12&128)!==0;let length=b12&127,at22=offset2+2;if(length===126){if(joined.length-at22<2)break;length=joined[at22]<<8|joined[at22+1];at22+=2}else if(length===127){if(joined.length-at22<8)break;length=0;for(let index2=0;index2<8;index2+=1)length=length*256+joined[at22+index2];at22+=8}let mask;if(masked){if(joined.length-at22<4)break;mask=joined.subarray(at22,at22+4);at22+=4}if(joined.length-at22<length)break;const payload=joined.slice(at22,at22+length);if(mask)for(let index2=0;index2<length;index2+=1)payload[index2]^=mask[index2&3];offset2=at22+length;if(opcode===0&&state.fragments){state.fragments.parts.push(payload);if(fin){const parts=state.fragments.parts;const total=parts.reduce((sum,part)=>sum+part.length,0);const whole=new Uint8Array(total);let cursor=0;for(const part of parts){whole.set(part,cursor);cursor+=part.length}const op2=state.fragments.opcode;state.fragments=null;onFrame(op2,whole)}}else if(!fin&&(opcode===1||opcode===2))state.fragments={opcode,parts:[payload]};else onFrame(opcode,payload)}state.pending=joined.slice(offset2)}function __substrateUpgradeSocket(entry,socket){const end=socket;const bridge={push:frame=>{socket.write(frame)},destroy:()=>{socket.destroy()},get destroyed(){return socket.destroyed},onData:listener=>{socket.on("data",listener)}};let closed=false;const state={pending:new Uint8Array(0),fragments:null};const decoder22=new TextDecoder;const finish=(code22,reason)=>{if(closed)return;closed=true;__substrateUpgradeSockets.delete(entry.clientId);entry.channel.postMessage({type:"close",targetClient:entry.clientId,code:code22,reason})};const receive2=frame=>{if(!bridge.destroyed)bridge.push(frame)};bridge.onData(chunk=>{const bytes2=chunk;__substrateParseFrames(state,bytes2,(opcode,payload)=>{if(opcode===1)entry.channel.postMessage({type:"message",targetClient:entry.clientId,payload:decoder22.decode(payload)});else if(opcode===2)entry.channel.postMessage({type:"message",targetClient:entry.clientId,payload:payload.buffer.slice(payload.byteOffset,payload.byteOffset+payload.byteLength)});else if(opcode===8){const code22=payload.length>=2?payload[0]<<8|payload[1]:1005;finish(code22===1005?1e3:code22,payload.length>2?decoder22.decode(payload.subarray(2)):"");end.destroy()}else if(opcode===9)receive2(__substrateFrame(10,payload))})});end.on("close",()=>{finish(1e3,"");bridge.destroy()});end.deliver=payload=>{if(closed||end.destroyed)return;const bytes2=typeof payload==="string"?_encoder2.encode(payload):new Uint8Array(payload);receive2(__substrateFrame(typeof payload==="string"?1:2,bytes2))};end.disconnect=(code22,reason)=>{if(closed||end.destroyed)return;const text=_encoder2.encode(reason||"");const payload=new Uint8Array(2+text.length);payload[0]=code22>>8;payload[1]=code22&255;payload.set(text,2);receive2(__substrateFrame(8,payload));setTimeout(()=>{finish(code22,reason||"");end.destroy()},50)};return end}function __substrateRawUpgradeSocket(entry,socket){const end=socket;const bridge={push:data2=>{socket.write(data2)},destroy:()=>{socket.destroy()},end:()=>{socket.end()},get destroyed(){return socket.destroyed},onData:listener=>{socket.on("data",listener)}};let closed=false;const finish=(code22,reason)=>{if(closed)return;closed=true;__substrateUpgradeSockets.delete(entry.clientId);entry.channel.postMessage({type:"close",targetClient:entry.clientId,code:code22,reason})};bridge.onData(chunk=>{if(closed)return;entry.channel.postMessage({type:"message",targetClient:entry.clientId,payload:chunk.buffer.slice(chunk.byteOffset,chunk.byteOffset+chunk.byteLength)})});end.on("close",()=>{finish(1e3,"");bridge.destroy()});end.deliver=payload=>{if(closed||end.destroyed||bridge.destroyed)return;bridge.push(typeof payload==="string"?_encoder2.encode(payload):new Uint8Array(payload))};end.disconnect=(code22,reason)=>{if(closed||end.destroyed)return;bridge.end();finish(code22,reason||"");end.destroy()};return end}function __substrateListenForUpgrades(bridge){var _a22;if(typeof BroadcastChannel==="undefined")return null;const channel=new BroadcastChannel("vite-ws-channel");(_a22=channel.unref)==null?void 0:_a22.call(channel);channel.addEventListener("message",event=>{const data2=event.data;if(!data2||typeof data2!=="object")return;if(data2.type==="connect"){let url2;try{url2=new URL(data2.url)}catch{return}const port2=Number(url2.port);if(!__listening(port2))return;const record={clientId:data2.clientId,channel};const raw=data2.framing==="none";const key=uint8ToBase64(crypto.getRandomValues(new Uint8Array(16)));const protocols=Array.isArray(data2.protocols)?data2.protocols:[];void __upgradeOverLoopback(port2,"GET",url2.pathname+url2.search,{Host:typeof data2.host==="string"&&/^(?:\[[0-9a-f:.]+\]|[a-z0-9.-]+)(?::[0-9]{1,5})?$/iu.test(data2.host)?data2.host:url2.host,Upgrade:"websocket","Sec-WebSocket-Version":"13","Sec-WebSocket-Key":key,...protocols.length?{"Sec-WebSocket-Protocol":protocols.join(", ")}:{},...typeof data2.origin==="string"&&/^https?:\/\/[^/]+$/u.test(data2.origin)?{Origin:data2.origin}:{}}).then(result=>{if(result.statusCode!==101||!result.socket){channel.postMessage({type:"close",targetClient:data2.clientId,code:1006,reason:"upgrade refused"});return}const socket=raw?__substrateRawUpgradeSocket(record,result.socket):__substrateUpgradeSocket(record,result.socket);__substrateUpgradeSockets.set(data2.clientId,socket);channel.postMessage({type:"connected",targetClient:data2.clientId,protocol:result.headers["sec-websocket-protocol"]??(raw?protocols[0]??"":"")})})}else if(data2.type==="message"){const socket=__substrateUpgradeSockets.get(data2.clientId);if(socket)socket.deliver(data2.payload)}else if(data2.type==="disconnect"){const socket=__substrateUpgradeSockets.get(data2.clientId);if(socket)socket.disconnect(typeof data2.code==="number"?data2.code:1e3,typeof data2.reason==="string"?data2.reason:"")}});return channel}var ServerBridge=class extends PortBridge{constructor(options={}){super(options);__publicField2(this,"upgradeChannel",null);__publicField2(this,"guestServers",new WeakSet);this.watchGuestPorts();this.upgradeChannel=__substrateListenForUpgrades()}watchGuestPorts(){setPortWatchers((port2,address)=>{if(this.servers.has(port2))return;const hostname2=address||"0.0.0.0";const server=guestListeningServer(port2,hostname2);this.guestServers.add(server);this.registerServer(server,port2,hostname2)},port2=>{const entry=this.servers.get(port2);if(entry&&(entry.server===null||this.guestServers.has(entry.server))){if(entry.server)entry.server.listening=false;this.unregisterServer(port2)}})}close(){if(this.upgradeChannel){try{this.upgradeChannel.close()}catch{}this.upgradeChannel=null}super.close()}isGuest(entry){return entry.server===null||this.guestServers.has(entry.server)}requestGuest(port2,method,url2,headers,body){return __requestOverLoopback(port2,method,url2,headers,body)}streamGuest(port2,method,url2,headers,body,onStart,onChunk,onEnd,flow){return __streamOverLoopback(port2,method,url2,headers,body,onStart,onChunk,onEnd,flow)}bodyOf(bytes2){return Buffer$9.from(bytes2)}};var globalBridge=null;function getServerBridge(options){if(!globalBridge){globalBridge=new ServerBridge(options)}return globalBridge}function resetServerBridge(){globalBridge=null}var scopes=new WeakMap;var liveScopes=new Set;var NativeStreamScope=class{constructor(limits,emit2,ownerPid){__publicField2(this,"entries",new Map);__publicField2(this,"descriptors",new Map);__publicField2(this,"writes",new Map);__publicField2(this,"connects",new Map);__publicField2(this,"nextId",1);__publicField2(this,"pendingWriteBytes",0);__publicField2(this,"disposed",false);__publicField2(this,"limits");this.emit=emit2;this.ownerPid=ownerPid;if([limits.maxHandles,limits.maxReadChunkBytes,limits.maxQueuedBytes,limits.maxQueuedHandles,limits.maxPendingWriteBytes].some(value=>!Number.isSafeInteger(value)||value<1)||limits.maxReadChunkBytes>2147483647||limits.maxReadChunkBytes>limits.maxQueuedBytes||limits.maxReadChunkBytes>limits.maxPendingWriteBytes)throw new Error("Invalid native stream resource limits.");this.limits=Object.freeze({...limits});liveScopes.add(this)}handles(){var _a22;if(this.disposed)return[];const pid=(_a22=this.ownerPid)==null?void 0:_a22.call(this);return[...this.entries.values()].map(({handle,descriptor})=>({...pid!==void 0?{pid}:{},id:descriptor.id,kind:descriptor.kind,listening:!!handle.listening}))}entry(id2){return this.disposed?void 0:this.entries.get(id2)}publish(event){if(this.disposed)return;try{this.emit(event)}catch(cause){try{this.dispose()}catch(cleanup){throw new AggregateError([cause,cleanup],"Native stream event delivery and cleanup failed.")}throw cause}}claim(handle){if(this.disposed||!Number.isSafeInteger(this.nextId)||this.entries.size>=this.limits.maxHandles||scopes.has(handle))return void 0;const descriptor={id:this.nextId++,kind:handle instanceof TCP?"tcp":"pipe",type:handle.type};const entry={handle,descriptor};this.entries.set(descriptor.id,entry);scopes.set(handle,this);__adoptHandle(handle,null);handle.onconnection=(status,accepted)=>{const incoming2=status===0?this.claim(accepted):void 0;if(status===0&&!incoming2)accepted.close();this.publish({type:"connection",id:descriptor.id,status:status||(incoming2?0:UV_EMFILE),...incoming2?{handle:incoming2}:{}})};handle.onread=buffer2=>{const count=streamBaseState[kReadBytesOrError];const offset2=streamBaseState[kArrayBufferOffset];handle.readStop();const sent=handle.pendingHandle;handle.pendingHandle=null;let incoming2;if(sent!=null){if((sent instanceof TCP||sent instanceof Pipe)&&!sent.listening)incoming2=this.claim(sent);if(!incoming2){if(sent instanceof LibuvStreamWrap&&!scopes.has(sent)&&!sent.listening)sent.close();this.publish({type:"read",id:descriptor.id,status:UV_ENOTSUP});this.close(descriptor.id);return}}const bytes2=count>0?(buffer2?new Uint8Array(buffer2,offset2,count):entry.buffer.subarray(0,count)).slice():void 0;this.publish({type:"read",id:descriptor.id,status:count,...bytes2?{bytes:bytes2}:{},...incoming2?{handle:incoming2}:{}})};return{...descriptor}}call(operation){var _a22,_b22;if(this.disposed)return{status:UV_EBADF};if(operation.operation==="fdType"){if(!Number.isInteger(operation.fd)||operation.fd<0)return{status:UV_EINVAL};const id2=this.descriptors.get(operation.fd);const entry2=id2===void 0?void 0:this.entry(id2);return entry2?{status:0,handleType:entry2.descriptor.kind==="tcp"?"TCP":"PIPE"}:{status:UV_EBADF}}if(operation.operation==="create"){if(this.entries.size>=this.limits.maxHandles)return{status:UV_EMFILE};if(operation.kind!=="tcp"&&operation.kind!=="pipe"||!Number.isInteger(operation.type)||operation.type<0||operation.type>(operation.kind==="pipe"?2:1))return{status:UV_EINVAL};const handle2=operation.kind==="tcp"?new TCP(operation.type):new Pipe(operation.type);const descriptor=this.claim(handle2);if(!descriptor){handle2.close();return{status:UV_EMFILE}}return{status:0,handle:descriptor}}const entry=this.entry(operation.id);if(!entry)return{status:UV_EBADF};const handle=entry.handle;switch(operation.operation){case"duplicate":{if(handle.listening)return{status:UV_ENOTSUP};if(this.entries.size>=this.limits.maxHandles)return{status:UV_EMFILE};const copy2=handle.duplicate();const descriptor=this.claim(copy2);if(!descriptor){copy2.close();return{status:UV_EMFILE}}return{status:0,handle:descriptor}}case"pair":{const other=(_a22=this.entry(operation.peer))==null?void 0:_a22.handle;if(!other||handle.peer||other.peer||handle.listening||other.listening||other===handle)return{status:UV_EINVAL};LibuvStreamWrap.pair(handle,other);return{status:0}}case"bind":{if(typeof operation.address!=="string")return{status:UV_EINVAL};if(handle instanceof Pipe)return{status:handle.bind(operation.address)};if(!Number.isInteger(operation.port)||operation.port<0||operation.port>65535)return{status:UV_EINVAL};return{status:operation.ipv6?handle.bind6(operation.address,operation.port,operation.flags):handle.bind(operation.address,operation.port,operation.flags)}}case"listen":return{status:Number.isInteger(operation.backlog)&&operation.backlog>=0?handle.listen(operation.backlog):UV_EINVAL};case"connect":{if(this.connects.has(operation.id))return{status:UV_EALREADY};if(typeof operation.address!=="string"||!Number.isSafeInteger(operation.request)||operation.request<1)return{status:UV_EINVAL};if(handle instanceof TCP&&(!Number.isInteger(operation.port)||operation.port<1||operation.port>65535))return{status:UV_EINVAL};this.connects.set(operation.id,operation.request);const request=handle instanceof TCP?new TCPConnectWrap:new PipeConnectWrap;request.oncomplete=status2=>{if(this.connects.get(operation.id)!==operation.request)return;this.connects.delete(operation.id);this.publish({type:"connect",id:operation.id,request:operation.request,status:status2})};const status=handle instanceof TCP?operation.ipv6?handle.connect6(request,operation.address,operation.port):handle.connect(request,operation.address,operation.port):handle.connect(request,operation.address);if(status!==0)this.connects.delete(operation.id);return{status}}case"open":{const inherited=this.descriptors.get(operation.fd);const held=inherited===void 0?void 0:this.entry(inherited);if(!held||held.descriptor.kind!==entry.descriptor.kind||handle.peer||handle.listening)return{status:UV_EBADF};if(held!==entry){if(handle instanceof TCP&&held.handle instanceof TCP){const local2={},remote={};if(held.handle.getsockname(local2)===0&&held.handle.getpeername(remote)===0)handle.adoptNames(local2,remote)}handle.takeOverFrom(held.handle);this.entries.delete(inherited);scopes.delete(held.handle);held.handle.close();this.descriptors.set(operation.fd,operation.id)}return{status:0}}case"readStart":entry.buffer??(entry.buffer=new Uint8Array(this.limits.maxReadChunkBytes));handle.useUserBuffer(entry.buffer);return{status:handle.readStart()};case"readStop":return{status:handle.readStop()};case"ref":handle.ref();return{status:0};case"unref":handle.unref();return{status:0};case"getsockname":case"getpeername":{if(!(handle instanceof TCP))return{status:UV_ENOTSUP};const address={};const status=handle[operation.operation](address);return{status,...status===0?{address}:{}}}case"shutdown":{if(!Number.isSafeInteger(operation.request)||operation.request<1)return{status:UV_EINVAL};if(this.writes.has(operation.id))return{status:UV_EBUSY};const request=new ShutdownWrap;request.oncomplete=status=>this.publish({type:"shutdown",id:operation.id,request:operation.request,status});return{status:handle.shutdown(request)}}case"reset":if(!Number.isSafeInteger(operation.request)||operation.request<1)return{status:UV_EINVAL};if(!(handle instanceof TCP))return{status:UV_ENOTSUP};(_b22=this.writes.get(operation.id))==null?void 0:_b22(UV_ECANCELED);return this.close(operation.id,operation.request,true);case"close":if(!Number.isSafeInteger(operation.request)||operation.request<1)return{status:UV_EINVAL};return this.close(operation.id,operation.request)}}write(id2,bytes2,sentId){var _a22,_b22;const handle=(_a22=this.entry(id2))==null?void 0:_a22.handle;if(!handle)return Promise.resolve(UV_EBADF);if(this.writes.has(id2))return Promise.resolve(UV_EBUSY);if(bytes2.byteLength>this.limits.maxReadChunkBytes||this.pendingWriteBytes+bytes2.byteLength>this.limits.maxPendingWriteBytes)return Promise.resolve(UV_ENOBUFS);const sent=sentId===void 0?void 0:(_b22=this.entry(sentId))==null?void 0:_b22.handle;if(sentId!==void 0&&!sent)return Promise.resolve(UV_EBADF);if(sent&&(!(handle instanceof Pipe)||sent.listening||bytes2.byteLength===0))return Promise.resolve(UV_ENOTSUP);const owned=new Uint8Array(bytes2.byteLength);owned.set(bytes2);const retained=sent==null?void 0:sent.duplicate();if(retained)__adoptHandle(retained,null);this.pendingWriteBytes+=owned.byteLength;return new Promise((resolve2,reject)=>{let ended2=false;let unsubscribe=()=>{};const finish=(status,failure)=>{if(ended2)return;ended2=true;unsubscribe();this.writes.delete(id2);this.pendingWriteBytes-=owned.byteLength;try{retained==null?void 0:retained.close()}catch(cause){reject(cause);return}if(failure!==void 0)reject(failure);else resolve2(status)};const attempt=()=>{if(ended2)return;if(handle.closed||this.disposed){finish(UV_ECANCELED);return}if(!handle.peer){finish(UV_EPIPE);return}if(handle.peerQueuedBytes+owned.byteLength>this.limits.maxQueuedBytes)return;if(retained&&handle.peerQueuedHandles>=this.limits.maxQueuedHandles)return;try{finish(handle.writeBuffer(new WriteWrap,owned,retained))}catch(cause){finish(UV_ECANCELED,cause)}};this.writes.set(id2,finish);unsubscribe=handle.onPeerReadCapacity(attempt);attempt()})}inherit(fd2,source,id2){var _a22;if(this.disposed||!Number.isInteger(fd2)||fd2<0||this.descriptors.has(fd2))return{status:UV_EINVAL};if(this.entries.size>=this.limits.maxHandles)return{status:UV_EMFILE};const handle=(_a22=source.entry(id2))==null?void 0:_a22.handle;if(!handle)return{status:UV_EBADF};if(handle.listening)return{status:UV_ENOTSUP};const copy2=handle.duplicate();const descriptor=this.claim(copy2);if(!descriptor){copy2.close();return{status:UV_EMFILE}}this.descriptors.set(fd2,descriptor.id);return{status:0,handle:descriptor}}close(id2,request,reset2=false){var _a22;const entry=this.entries.get(id2);if(!entry)return{status:UV_EBADF};(_a22=this.writes.get(id2))==null?void 0:_a22(UV_ECANCELED);const connecting=this.connects.get(id2);this.connects.delete(id2);if(connecting!==void 0)this.publish({type:"connect",id:id2,request:connecting,status:UV_ECANCELED});this.entries.delete(id2);scopes.delete(entry.handle);for(const[fd2,held]of this.descriptors)if(held===id2)this.descriptors.delete(fd2);const complete=request===void 0?void 0:()=>this.publish({type:"close",id:id2,request,status:0});if(reset2)entry.handle.reset(complete);else entry.handle.close(complete);return{status:0}}dispose(){if(this.disposed)return;this.disposed=true;liveScopes.delete(this);const failures=[];for(const id2 of[...this.entries.keys()]){try{this.close(id2)}catch(cause){failures.push(cause)}}if(failures.length)throw new AggregateError(failures,"Native stream scope cleanup failed.")}};function nativeStreamOwnerPid(handle){var _a22,_b22;return(_b22=(_a22=scopes.get(handle))==null?void 0:_a22.ownerPid)==null?void 0:_b22.call(_a22)}function nativeStreamHandles(){return[...liveScopes].flatMap(scope4=>scope4.handles())}var __nextRunName=1;function createContainer(options){const vfs2=options&&options.vfs||new VirtualFS;const runtime=new Runtime(vfs2,options);const npmManager=new PackageManager(vfs2);const serverBridge=new ServerBridge({baseUrl:options==null?void 0:options.baseUrl,onServerReady:options==null?void 0:options.onServerReady});return{vfs:vfs2,runtime,npm:npmManager,serverBridge,execute:(code22,filename)=>runtime.execute(code22,filename),runFile:filename=>runtime.runFile(filename),run:(command,runOptions)=>{var _a22;if((_a22=runOptions==null?void 0:runOptions.signal)==null?void 0:_a22.aborted){return Promise.resolve({stdout:"",stderr:"",exitCode:130})}const processToken=typeof(runOptions==null?void 0:runOptions.processToken)==="string"&&runOptions.processToken.length>0?runOptions.processToken:`run-${__nextRunName++}`;registerRunStreams(processToken,{onStdout:runOptions==null?void 0:runOptions.onStdout,onStderr:runOptions==null?void 0:runOptions.onStderr,signal:runOptions==null?void 0:runOptions.signal,held:(runOptions==null?void 0:runOptions.held)===true,stdinStream:runOptions==null?void 0:runOptions.stdinStream,stdinOpen:(runOptions==null?void 0:runOptions.stdinStream)!==void 0,terminal:runOptions==null?void 0:runOptions.terminal});return new Promise(resolve2=>{runCommand(command,{cwd:runOptions==null?void 0:runOptions.cwd,env:runOptions==null?void 0:runOptions.env,stdin:typeof(runOptions==null?void 0:runOptions.stdin)==="string"?runOptions.stdin:void 0,processToken,vfs:vfs2},(error,stdout,stderr)=>{var _a32;releaseRunStreams(processToken);const terminatedBy=__takeTermination(processToken);resolve2({stdout:String(stdout),stderr:String(stderr),exitCode:((_a32=runOptions==null?void 0:runOptions.signal)==null?void 0:_a32.aborted)?143:error?error.code??1:0,...terminatedBy?{signal:terminatedBy}:{}})})})},pendingTimers:token=>{var _a22;return((_a22=__runFor(token))==null?void 0:_a22.pendingTimers())??0},processPorts:token=>__ownedServerPorts(token),portPid:port2=>{var _a22;const listener=listenerOnPort(port2);if(!listener)return void 0;return((_a22=runPid(ownerOf(listener)))==null?void 0:_a22.pid)??nativeStreamOwnerPid(listener)},streamHandles:()=>nativeStreamHandles(),signalProcess:(token,signal)=>__signalOwnedProcess(token,signal),stopProcess:token=>{const known=__runFor(token)!==void 0||__ownedServerPorts(token).length>0;__releaseOwnedServers(token,false);__releaseOwnedHandles(token);__stopOwnedProcess(token);return known},sendInput:(data2,token)=>sendStdin(data2,token),currentProcessToken:()=>__currentProcessToken(),runPid:token=>runPid(token===void 0?__currentProcessToken():token),processByPid,listenNet:(port2,onConnection)=>{const server=new Server(onConnection);server.listen(port2);__adoptHandle(server._handle,null);return()=>{server.close()}},createREPL:()=>runtime.createREPL(),on:(event,listener)=>{serverBridge.on(event,listener)}}}if(!Object.getOwnPropertyDescriptor(globalThis,"Buffer")){Object.defineProperty(globalThis,"Buffer",{configurable:true,enumerable:false,get:()=>bufferModule.Buffer})}function normalizeProcessFilesystemPolicy(value){if(!value||typeof value!=="object"||Object.keys(value).some(key=>key!=="writableRoots")||!Array.isArray(value.writableRoots)||value.writableRoots.length>128){throw new TypeError("Invalid process filesystem policy: expected up to 128 writableRoots.")}const roots=[...new Set(Array.from(value.writableRoots,absolutePolicyPath))].sort();return Object.freeze({writableRoots:Object.freeze(roots.filter(root2=>!roots.some(other=>other!==root2&&within(root2,other))))})}function intersectProcessFilesystemPolicies(parent,child){const inherited=normalizeProcessFilesystemPolicy(parent);if(child===void 0)return inherited;const requested=normalizeProcessFilesystemPolicy(child);return normalizeProcessFilesystemPolicy({writableRoots:inherited.writableRoots.flatMap(left=>requested.writableRoots.flatMap(right=>within(left,right)?[left]:within(right,left)?[right]:[]))})}function createProcessFilesystemMutationGuard(filesystem,requested){const policy=normalizeProcessFilesystemPolicy(requested);const permitted=path3=>policy.writableRoots.some(root2=>within(path3,root2));return input=>{const path3=absolutePolicyPath(input);if(!permitted(path3))deny(path3);let current3="";for(const part of path3.split("/").filter(Boolean)){current3+=`/${part}`;try{if(filesystem.lstatSync(current3).isSymbolicLink())deny(path3)}catch(error){if(error.code!=="ENOENT")throw error;if(!permitted(current3))deny(current3)}}return path3}}function absolutePolicyPath(path3){if(typeof path3!=="string"||!path3.startsWith("/")||path3.includes("\0")||path3.length>8192){throw new TypeError("Filesystem policy paths must be absolute paths without NUL bytes.")}const parts=[];for(const part of path3.split("/")){if(part==="..")parts.pop();else if(part&&part!==".")parts.push(part)}return`/${parts.join("/")}`}function within(path3,root2){return root2==="/"||path3===root2||path3.startsWith(`${root2}/`)}function deny(path3){throw Object.assign(new Error(`EACCES: process filesystem policy denies mutation of '${path3}'`),{code:"EACCES",path:path3})}async function forwardBrowserProcessInput(input,receive2,signal){signal.throwIfAborted();const iterator=input[Symbol.asyncIterator]();let finished=false;let rejectCancellation;const cancellation=new Promise((_resolve,reject)=>{rejectCancellation=reject});void cancellation.catch(()=>void 0);const abort=()=>rejectCancellation(signal.reason??new DOMException("Process input was cancelled.","AbortError"));signal.addEventListener("abort",abort,{once:true});try{for(;;){signal.throwIfAborted();const next2=await Promise.race([iterator.next(),cancellation]);signal.throwIfAborted();if(next2.done){finished=true;return}await Promise.race([Promise.resolve(receive2(next2.value)),cancellation])}}finally{signal.removeEventListener("abort",abort);if(!finished)void Promise.resolve().then(()=>iterator.return?.()).catch(()=>void 0)}}var BrowserProcessInputPipe=class{queued;ended=false;reading=false;failure;wake;write(bytes2){if(this.ended)return Promise.reject(this.failure??new Error("Process input is closed."));if(this.queued)return Promise.reject(new Error("Wait for the previous process input chunk to be consumed."));const consumed=new Promise((resolve2,reject)=>{this.queued={bytes:Uint8Array.from(bytes2),resolve:resolve2,reject}});this.notify();return consumed}end(){this.ended=true;this.notify()}cancel(cause=new DOMException("Process input was cancelled.","AbortError")){this.failure=cause;this.ended=true;this.queued?.reject(cause);this.queued=void 0;this.notify()}notify(){const wake=this.wake;this.wake=void 0;wake?.()}async*[Symbol.asyncIterator](){if(this.reading)throw new Error("Process input already has a reader.");this.reading=true;try{for(;;){if(this.failure!==void 0)throw this.failure;const next2=this.queued;if(next2){this.queued=void 0;next2.resolve();yield next2.bytes}else if(this.ended)return;else await new Promise(resolve2=>{this.wake=resolve2})}}finally{this.cancel()}}};function parseCommandWords(command){const words=[];let word="";let quote2="";let escaped=false;for(const character of command.trim()){if(escaped){word+=character;escaped=false;continue}if(character==="\\"&"e2!=="'"){escaped=true;continue}if(quote2){if(character===quote2)quote2="";else word+=character;continue}if(character==="'"||character==='"'){quote2=character;continue}if(/\s/u.test(character)){if(word){words.push(word);word=""}continue}if(/[|&;<>]/u.test(character))throw new Error("Shell operators require the shell runtime.");word+=character}if(escaped||quote2)throw new Error("Unterminated command quoting.");if(word)words.push(word);return words}function renderCommand(argv){return argv.map(value=>/^[A-Za-z0-9_./:@%+=,-]+$/u.test(value)?value:`'${value.replaceAll("'",`'\\''`)}'`).join(" ")}var PageNetSocketImpl=class{constructor(id2,post,onClosed){this.id=id2;this.post=post;this.onClosed=onClosed}id;post;onClosed;listeners=new Map;ended=false;outstanding=0;drainWaiters=[];on(event,listener){const list2=this.listeners.get(event)??[];list2.push(listener);this.listeners.set(event,list2);return this}write(chunk,done){if(this.ended)return false;const buffer2=Uint8Array.from(chunk).buffer;this.outstanding+=1;this.post({type:"net-data",socket:this.id,chunk:buffer2},[buffer2]);done?.();return true}taken(){this.outstanding=Math.max(0,this.outstanding-1);for(const waiter of[...this.drainWaiters]){if(this.outstanding>=waiter.below)continue;this.drainWaiters.splice(this.drainWaiters.indexOf(waiter),1);waiter.resume()}}drained(below){if(this.ended||this.outstanding<below)return Promise.resolve();return new Promise(resume=>this.drainWaiters.push({below,resume}))}end(){if(!this.ended){this.post({type:"net-end",socket:this.id});this.finish()}return this}destroy(){return this.end()}receive(chunk){if(this.ended)return;for(const listener of this.listeners.get("data")??[])listener(chunk)}finish(){if(this.ended)return;this.ended=true;this.onClosed();for(const waiter of this.drainWaiters.splice(0))waiter.resume();const listeners=[...this.listeners.get("end")??[],...this.listeners.get("close")??[]];this.listeners.clear();for(const listener of listeners)listener(void 0)}};var STATE=0;var STATUS=1;var PID=2;var PPID=3;var IDLE=0;var REQUEST=1;var WRITING=2;var DONE3=3;var CLOSED=4;var TIMEOUT_MS=3e4;var STREAM_REPLY_BYTES=4096;function serveNodeProcessRegistry(limits,ownerPid){if(limits)limits=Object.freeze({...limits});const streams2=limits?new NativeStreamScope(limits,event=>{const transfer2=event.type==="read"&&event.bytes?[event.bytes.buffer]:[];port1.postMessage({operation:"stream-event",event},transfer2)},ownerPid):void 0;const registry=createProcessRegistryScope();const{port1,port2}=new MessageChannel;const shared=new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT);const control=new Int32Array(shared);const reply=limits?new SharedArrayBuffer(STREAM_REPLY_BYTES):void 0;const encoder7=new TextEncoder;let disposed=false;const dispose=()=>{if(disposed)return;disposed=true;Atomics.store(control,STATE,CLOSED);Atomics.notify(control,STATE);try{port1.postMessage({operation:"closed"})}finally{try{streams2?.dispose()}finally{registry.dispose();port1.onmessage=null;port1.onmessageerror=null;port1.close();port2.close()}}};port1.onmessage=({data:data2})=>{if(disposed)return;if(!data2||typeof data2!=="object"){dispose();return}if(data2.operation==="close"){dispose();return}if(data2.operation==="stream-write"){if(!streams2||!limits||!Number.isSafeInteger(data2.request)||data2.request<1||!Number.isSafeInteger(data2.id)||data2.id<1||data2.handle!==void 0&&(!Number.isSafeInteger(data2.handle)||data2.handle<1)||!(data2.bytes instanceof Uint8Array)||data2.bytes.byteLength>limits.maxReadChunkBytes){dispose();return}try{void streams2.write(data2.id,data2.bytes,data2.handle).then(status2=>{if(!disposed)port1.postMessage({operation:"stream-written",request:data2.request,status:status2})}).catch(()=>dispose())}catch{dispose()}return}if(data2.operation==="stream-post"){const call=data2.call;const closing=call?.operation==="close"||call?.operation==="reset"||call?.operation==="shutdown";if(!streams2||call?.operation!=="readStart"&&!closing||!Number.isSafeInteger(call.id)||call.id<1||closing&&(!Number.isSafeInteger(call.request)||call.request<1)){dispose();return}try{const{status:status2}=streams2.call(call);if(status2!==0){port1.postMessage({operation:"stream-event",event:closing?{type:call.operation==="shutdown"?"shutdown":"close",id:call.id,request:call.request,status:status2}:{type:"read",id:call.id,status:status2}})}}catch{dispose()}return}if(Atomics.compareExchange(control,STATE,REQUEST,WRITING)!==REQUEST)return;let identity;let replyLength=0;let status=0;try{switch(data2.operation){case"allocate":identity={pid:registry.allocate(),ppid:0};break;case"publish":if(typeof data2.token!=="string")throw new Error("Invalid process token.");registry.publish(data2.token,{pid:data2.pid,ppid:data2.ppid,...data2.argv!==void 0?{argv:data2.argv}:{},...data2.cwd!==void 0?{cwd:data2.cwd}:{},...data2.startedAt!==void 0?{startedAt:data2.startedAt}:{}});break;case"forget":if(typeof data2.token!=="string")throw new Error("Invalid process token.");registry.forget(data2.token);break;case"lookup":identity=registry.lookup(data2.pid);break;case"signal":if(!Number.isSafeInteger(data2.pid)||typeof data2.signal!=="string"||!/^SIG[A-Z0-9]{1,12}$/u.test(data2.signal)){throw new Error("Invalid process signal.")}identity=registry.signal(data2.pid,data2.signal)?{pid:data2.pid,ppid:0}:void 0;break;case"stream-call":{if(!streams2||!reply)throw new Error("Native stream transport was not granted.");const result=streams2.call(data2.call);const bytes2=encoder7.encode(JSON.stringify(result));if(bytes2.byteLength>reply.byteLength)throw new Error("Native stream reply exceeds its bound.");new Uint8Array(reply).set(bytes2);replyLength=bytes2.byteLength;break}default:throw new Error("Unknown process registry operation.")}}catch{if(data2.operation==="stream-call"){dispose();return}status=1}Atomics.store(control,STATUS,status);Atomics.store(control,PID,data2.operation==="stream-call"?replyLength:identity?.pid??0);Atomics.store(control,PPID,identity?.ppid??0);if(Atomics.compareExchange(control,STATE,WRITING,DONE3)===WRITING)Atomics.notify(control,STATE);else dispose()};port1.onmessageerror=dispose;port1.start();return{registry,channel:{port:port2,control:shared,...reply&&limits?{streams:{reply,limits}}:{}},...streams2?{streams:streams2}:{},dispose}}function exchange(channel,request,read){const control=new Int32Array(channel.control);if(Atomics.compareExchange(control,STATE,IDLE,REQUEST)!==IDLE)throw new Error("Process owner channel is unavailable.");let result;let status;try{channel.port.postMessage(request);const deadline=performance.now()+TIMEOUT_MS;for(;;){const state=Atomics.load(control,STATE);if(state===DONE3)break;if(state===CLOSED)throw new Error("Process owner stopped.");const remaining=deadline-performance.now();if(remaining<=0)throw new Error("Process owner did not answer within 30 seconds.");Atomics.wait(control,STATE,state,remaining)}status=Atomics.load(control,STATUS);result=read(control);if(Atomics.compareExchange(control,STATE,DONE3,IDLE)!==DONE3)throw new Error("Process owner stopped.")}catch(cause){Atomics.store(control,STATE,CLOSED);try{channel.port.postMessage({operation:"close"})}finally{channel.port.close()}throw cause}if(status!==0)throw new Error("Process owner refused an invalid or unowned identity.");return result}var NodeProcessRegistryClient=class{constructor(channel){this.channel=channel;if(channel.streams)this.streams=this.native=new NodeNativeStreamClient(channel)}channel;streams;native;allocate(){return this.call({operation:"allocate"}).pid}publish(token,identity){this.call({operation:"publish",token,...identity})}forget(token){this.call({operation:"forget",token})}lookup(pid){return this.call({operation:"lookup",pid})}signal(pid,signal){return this.call({operation:"signal",pid,signal})!==void 0}call(request){try{return exchange(this.channel,request,control=>{const pid=Atomics.load(control,PID);return pid===0?void 0:{pid,ppid:Atomics.load(control,PPID)}})}catch(cause){if(Atomics.load(new Int32Array(this.channel.control),STATE)===CLOSED)this.native?.dispose();throw cause}}};var NodeNativeStreamClient=class{constructor(channel){this.channel=channel;if(!channel.streams)throw new Error("Native stream transport was not granted.");this.metadata=channel.streams;this.limits=Object.freeze({...channel.streams.limits});channel.port.addEventListener("message",this.receive);channel.port.addEventListener("messageerror",this.failed);channel.port.start()}channel;limits;listeners=new Set;pending=new Map;writing=new Set;queued=[];pendingBytes=0;nextRequest=1;stopped=false;metadata;call(operation){try{return exchange(this.channel,{operation:"stream-call",call:operation},control=>{const length=Atomics.load(control,PID);if(length<1||length>this.metadata.reply.byteLength)throw new Error("Invalid native stream reply length.");const bytes2=new Uint8Array(this.metadata.reply,0,length).slice();return JSON.parse(new TextDecoder().decode(bytes2))})}catch(cause){this.dispose();throw cause}}post(operation){if(this.stopped||Atomics.load(new Int32Array(this.channel.control),STATE)===CLOSED){this.dispose();throw new Error("Native stream owner stopped.")}this.channel.port.postMessage({operation:"stream-post",call:operation})}write(id2,bytes2,handle){if(this.stopped||Atomics.load(new Int32Array(this.channel.control),STATE)===CLOSED){this.dispose();return Promise.reject(new Error("Native stream owner stopped."))}if(this.writing.has(id2)||this.pending.size>=this.limits.maxHandles||bytes2.byteLength>this.limits.maxReadChunkBytes||!Number.isSafeInteger(this.nextRequest))return Promise.reject(new Error("Native stream write exceeds its transport limits."));const request=this.nextRequest++;return new Promise((resolve2,reject)=>{this.pending.set(request,{id:id2,bytes:bytes2.byteLength,resolve:resolve2,reject});this.writing.add(id2);this.queued.push({request,id:id2,bytes:bytes2,...handle===void 0?{}:{handle}});this.flushWrites()})}flushWrites(){while(!this.stopped&&this.queued.length){const next2=this.queued[0];if(this.pendingBytes+next2.bytes.byteLength>this.limits.maxPendingWriteBytes)return;this.queued.shift();const owned=new Uint8Array(next2.bytes.byteLength);owned.set(next2.bytes);this.pendingBytes+=owned.byteLength;try{this.channel.port.postMessage({operation:"stream-write",request:next2.request,id:next2.id,bytes:owned,...next2.handle===void 0?{}:{handle:next2.handle}},[owned.buffer])}catch{this.dispose()}}}onEvent(listener){if(this.stopped)throw new Error("Native stream owner stopped.");this.listeners.add(listener);return()=>{this.listeners.delete(listener)}}receive=({data:data2})=>{if(data2.operation==="closed"){this.dispose();return}if(data2.operation==="stream-event"){for(const listener of[...this.listeners])listener(data2.event)}else if(data2.operation==="stream-written"){const write=this.pending.get(data2.request);if(!write){this.dispose();return}this.pending.delete(data2.request);this.writing.delete(write.id);this.pendingBytes-=write.bytes;this.flushWrites();write.resolve(data2.status)}};failed=()=>{this.dispose()};dispose(){if(this.stopped)return;this.stopped=true;Atomics.store(new Int32Array(this.channel.control),STATE,CLOSED);try{this.channel.port.postMessage({operation:"close"})}finally{this.channel.port.removeEventListener("message",this.receive);this.channel.port.removeEventListener("messageerror",this.failed);this.channel.port.close();const cause=new Error("Native stream owner stopped.");for(const write of this.pending.values())write.reject(cause);this.pending.clear();this.queued.length=0;this.writing.clear();this.pendingBytes=0;const listeners=[...this.listeners];this.listeners.clear();const failures=[];for(const listener of listeners){try{listener({type:"closed"})}catch(error){failures.push(error)}}if(failures.length)throw new AggregateError(failures,"Native stream close delivery failed.")}}};var maximumChunk=64*1024;function validDescriptorNumber(fd2){return typeof fd2==="number"&&Number.isInteger(fd2)&&fd2>=3&&fd2<=63}var CrossOriginChildProcesses=class{constructor(run,send2){this.run=run;this.send=send2}run;send;children=new Map;disposed=false;receive(message){if(!["child-run","child-abort","child-stdin","child-stdin-end","child-resize","child-fd","child-fd-end"].includes(message.type))return false;if(this.disposed)return true;if(message.type==="child-run"){if(!Number.isSafeInteger(message.id)||message.id<1||this.children.has(message.id)){throw new Error("Invalid or duplicate child process identity.")}if(message.descriptors!==void 0&&(!Array.isArray(message.descriptors)||!message.descriptors.every(validDescriptorNumber)||new Set(message.descriptors).size!==message.descriptors.length)){throw new Error("Child process descriptors must be distinct integers from 3 through 63.")}void this.start(message).catch(cause=>console.error("Child process transport failed.",cause));return true}if(!("id"in message)||typeof message.id!=="number")return true;const child=this.children.get(message.id);if(!child)return true;if(message.type==="child-abort"){child.controller.abort();child.input?.cancel();for(const input of child.descriptors.values())input.cancel()}else if(message.type==="child-fd"||message.type==="child-fd-end"){const input=validDescriptorNumber(message.fd)?child.descriptors.get(message.fd):void 0;if(!input){child.controller.abort(new Error("Child process has no such descriptor."));return true}if(message.type==="child-fd-end"){input.end();return true}if(!(message.bytes instanceof ArrayBuffer)||message.bytes.byteLength>maximumChunk){const cause=new Error("Child process descriptor chunks must be at most 64 KiB.");child.controller.abort(cause);input.cancel(cause);return true}const fd2=message.fd;void input.write(new Uint8Array(message.bytes)).then(()=>{if(!this.disposed&&this.children.get(message.id)===child)this.send({type:"child-fd-consumed",id:message.id,fd:fd2})}).catch(cause=>{child.controller.abort(cause)})}else if(message.type==="child-stdin"){if(!child.input){child.controller.abort(new Error("Child process has no live input."));return true}if(message.bytes.byteLength>64*1024){const cause=new Error("Child process input chunks must be at most 64 KiB.");child.controller.abort(cause);child.input.cancel(cause);return true}void child.input.write(new Uint8Array(message.bytes)).then(()=>{if(!this.disposed&&this.children.get(message.id)===child)this.send({type:"child-input-consumed",id:message.id})}).catch(cause=>{if(!this.disposed&&this.children.get(message.id)===child)child.controller.abort(cause)})}else if(message.type==="child-stdin-end")child.input?.end();else if(message.type==="child-resize"&&child.terminal){child.terminal.columns=message.columns;child.terminal.rows=message.rows;for(const resize of[...child.resizes]){try{resize(message.columns,message.rows)}catch(cause){child.controller.abort(cause)}}}return true}detach(){this.close(false)}dispose(){this.close(true)}close(abort){if(this.disposed)return;this.disposed=true;for(const child of this.children.values()){if(abort){child.controller.abort();child.input?.cancel();for(const input of child.descriptors.values())input.cancel()}else{child.input?.end();for(const input of child.descriptors.values())input.end()}child.resizes.clear()}this.children.clear()}async start(message){const child={controller:new AbortController,resizes:new Set,descriptors:new Map((message.descriptors??[]).map(fd2=>[fd2,new BrowserProcessInputPipe])),...message.liveStdin?{input:new BrowserProcessInputPipe}:{}};if(message.terminal)child.terminal={...message.terminal,onResize:listener=>{child.resizes.add(listener);return()=>{child.resizes.delete(listener)}}};this.children.set(message.id,child);const descriptors={};for(const[fd2,input]of child.descriptors)descriptors[fd2]=this.descriptor(message.id,fd2,input,child);try{const result=await this.run(message,{...message.cwd!==void 0?{cwd:message.cwd}:{},...message.env!==void 0?{env:message.env}:{},...message.executablePath!==void 0?{executablePath:message.executablePath}:{},...message.filesystemPolicy!==void 0?{filesystemPolicy:message.filesystemPolicy}:{},...message.stdin!==void 0?{stdin:message.stdin}:{},...child.input?{stdinStream:child.input}:{},...child.terminal?{terminal:child.terminal}:{},...child.descriptors.size>0?{descriptors}:{},signal:child.controller.signal,onStdout:chunk=>{if(!this.disposed)this.send({type:"child-output",id:message.id,stream:"stdout",chunk})},onStderr:chunk=>{if(!this.disposed)this.send({type:"child-output",id:message.id,stream:"stderr",chunk})}});if(!this.disposed)this.send({type:"child-result",id:message.id,stdout:result.stdout,stderr:result.stderr,exitCode:result.exitCode,...result.signal?{signal:result.signal}:{}})}catch(cause){if(!this.disposed){try{this.send({type:"child-error",id:message.id,error:cause instanceof Error?cause.message:String(cause)})}catch(failure){console.error("Child process result transport failed.",failure)}}}finally{child.input?.cancel();for(const input of child.descriptors.values())input.cancel();child.resizes.clear();this.children.delete(message.id)}}descriptor(id2,fd2,input,child){let closed=false;const live2=()=>!closed&&!this.disposed&&this.children.get(id2)===child;return{input,write:bytes2=>{for(let offset2=0;offset2<bytes2.byteLength&&live2();offset2+=maximumChunk){const chunk=Uint8Array.from(bytes2.subarray(offset2,offset2+maximumChunk)).buffer;this.send({type:"child-fd-output",id:id2,fd:fd2,bytes:chunk},[chunk])}},end:()=>{if(!live2())return;closed=true;this.send({type:"child-fd-close",id:id2,fd:fd2})}}}};var STAT_FIELDS=["mode","mtimeMs","atimeMs","ctimeMs","birthtimeMs","nlink","uid","gid","dev","ino","rdev","blksize","blocks"];var STATE2=0;var OPERATION=1;var STATUS2=2;var INPUT_LENGTH=3;var OUTPUT_LENGTH=4;var TOTAL_LENGTH=5;var CONTROL_WORDS=8;var DEFAULT_PAYLOAD_BYTES=4*1024*1024;var REQUEST_TIMEOUT_MS=3e4;var encoder2=new TextEncoder;var decoder3=new TextDecoder;function createBrowserFilesystemChannel(payloadBytes=DEFAULT_PAYLOAD_BYTES){const{port1,port2}=new MessageChannel;const control=new SharedArrayBuffer(CONTROL_WORDS*Int32Array.BYTES_PER_ELEMENT);const payload=new SharedArrayBuffer(payloadBytes);return{holder:{port:port1,control,payload},reader:{port:port2,control,payload}}}function serveBrowserFilesystemChannel(filesystem,channel){const control=new Int32Array(channel.control);const payload=new Uint8Array(channel.payload);let staged=null;channel.port.onmessage=event=>{const requestId2=event.data;if(Atomics.load(control,STATE2)!==requestId2)return;let status=0;let output=new Uint8Array;let total=0;try{const operation=Atomics.load(control,OPERATION);const inputLength=Atomics.load(control,INPUT_LENGTH);const input=JSON.parse(decoder3.decode(payload.slice(0,inputLength)));if(operation===1){output=encoder2.encode(JSON.stringify(filesystem.existsSync(input.path)))}else if(operation===2||operation===13){if(operation===13&&!filesystem.lstatSync){throw Object.assign(new Error("The filesystem holder does not support lstat."),{code:"ENOTSUP"})}const stat2=input.throwIfNoEntry===false?operation===13?filesystem.lstatSync(input.path,{throwIfNoEntry:false}):filesystem.statSync(input.path,{throwIfNoEntry:false}):operation===13?filesystem.lstatSync(input.path):filesystem.statSync(input.path);if(stat2===void 0)output=encoder2.encode("null");else{const metadata=Object.fromEntries(STAT_FIELDS.filter(key=>stat2[key]!==void 0).map(key=>[key,stat2[key]]));output=encoder2.encode(JSON.stringify({...metadata,file:stat2.isFile(),directory:stat2.isDirectory(),symlink:stat2.isSymbolicLink?.()??false,size:stat2.size,mode:stat2.mode??420,mtimeMs:stat2.mtimeMs??0}))}}else if(operation===14&&filesystem.readlinkSync){output=encoder2.encode(JSON.stringify(filesystem.readlinkSync(input.path)))}else if(operation===15&&filesystem.symlinkSync&&typeof input.target==="string"){filesystem.symlinkSync(input.target,input.path)}else if(operation===4){output=encoder2.encode(JSON.stringify(filesystem.readdirSync(input.path)))}else if(operation===3){const bytes2=filesystem.readFileSync(input.path);total=bytes2.byteLength;const offset2=input.offset??0;output=bytes2.subarray(offset2,Math.min(total,offset2+payload.byteLength))}else if(operation===5){output=encoder2.encode(JSON.stringify(filesystem.realpathSync?.(input.path)??input.path))}else if(operation===6&&filesystem.writeFileSync){if(!Number.isSafeInteger(input.bytes)||input.bytes<0||inputLength+input.bytes>payload.byteLength)throw new Error("Invalid filesystem write length.");const piece=payload.slice(inputLength,inputLength+input.bytes);if(input.total===void 0){filesystem.writeFileSync(input.path,piece)}else{const offset2=input.offset??0;if(!Number.isSafeInteger(input.total)||input.total<0||offset2+piece.byteLength>input.total)throw new Error("Invalid filesystem write piece.");if(offset2===0)staged={path:input.path,bytes:new Uint8Array(input.total),received:0};if(!staged||staged.path!==input.path||staged.bytes.byteLength!==input.total||staged.received!==offset2){staged=null;throw new Error(`The filesystem channel received a write piece of ${input.path} out of order.`)}staged.bytes.set(piece,offset2);staged.received+=piece.byteLength;if(staged.received===input.total){const whole=staged.bytes;staged=null;filesystem.writeFileSync(input.path,whole)}}}else if(operation===16&&(filesystem.appendFileSync||filesystem.writeFileSync)){if(!Number.isSafeInteger(input.bytes)||input.bytes<0||inputLength+input.bytes>payload.byteLength)throw new Error("Invalid filesystem append length.");const piece=payload.slice(inputLength,inputLength+input.bytes);if(filesystem.appendFileSync)filesystem.appendFileSync(input.path,piece);else{const existing=filesystem.existsSync(input.path)?filesystem.readFileSync(input.path):new Uint8Array(0);const whole=new Uint8Array(existing.byteLength+piece.byteLength);whole.set(existing,0);whole.set(piece,existing.byteLength);filesystem.writeFileSync(input.path,whole)}}else if(operation===17&&(filesystem.writeAtSync||filesystem.writeFileSync)){if(!Number.isSafeInteger(input.bytes)||input.bytes<0||inputLength+input.bytes>payload.byteLength)throw new Error("Invalid filesystem write length.");if(!Number.isSafeInteger(input.position)||input.position<0)throw new Error("Invalid filesystem write position.");const piece=payload.slice(inputLength,inputLength+input.bytes);if(filesystem.writeAtSync)filesystem.writeAtSync(input.path,piece,input.position);else if(piece.byteLength===0&&filesystem.existsSync(input.path)){}else{const existing=filesystem.existsSync(input.path)?filesystem.readFileSync(input.path):new Uint8Array(0);const whole=new Uint8Array(Math.max(existing.byteLength,input.position+piece.byteLength));whole.set(existing,0);whole.set(piece,input.position);filesystem.writeFileSync(input.path,whole)}}else if(operation===7&&filesystem.mkdirSync){filesystem.mkdirSync(input.path,{recursive:input.recursive===true})}else if(operation===8&&filesystem.unlinkSync){filesystem.unlinkSync(input.path)}else if(operation===9&&filesystem.rmdirSync){filesystem.rmdirSync(input.path)}else if(operation===10&&filesystem.renameSync&&typeof input.to==="string"){filesystem.renameSync(input.path,input.to)}else if(operation===11&&filesystem.chmodSync&&Number.isInteger(input.mode)){filesystem.chmodSync(input.path,input.mode)}else if(operation===12&&filesystem.utimesSync&&Number.isFinite(input.atime)&&Number.isFinite(input.mtime)){filesystem.utimesSync(input.path,input.atimeDate?new Date(input.atime):input.atime,input.mtimeDate?new Date(input.mtime):input.mtime)}else{throw new Error(`Unsupported filesystem channel operation ${operation}.`)}if(output.byteLength>payload.byteLength)throw new Error("The filesystem channel answer exceeds its buffer.")}catch(cause){const error=cause;const message=cause instanceof Error?cause.message:String(cause);status=2;output=encoder2.encode(JSON.stringify({message,...typeof error?.code==="string"?{code:error.code}:{},...typeof error?.path==="string"?{path:error.path}:{}}));if(output.byteLength>payload.byteLength){status=1;output=encoder2.encode(message).subarray(0,payload.byteLength)}}if(Atomics.compareExchange(control,STATE2,requestId2,-requestId2)!==requestId2)return;payload.set(output);Atomics.store(control,STATUS2,status);Atomics.store(control,OUTPUT_LENGTH,output.byteLength);Atomics.store(control,TOTAL_LENGTH,total);Atomics.store(control,STATE2,requestId2+1);Atomics.notify(control,STATE2)};channel.port.start();return()=>{channel.port.onmessage=null;channel.port.close()}}var BrowserFilesystemChannelClient=class{constructor(channel){this.channel=channel;this.control=new Int32Array(channel.control);this.payload=new Uint8Array(channel.payload)}channel;control;payload;nextRequestId=1;existsSync(path3){return JSON.parse(decoder3.decode(this.call(1,{path:path3}).output))}statSync(path3,options){return this.stat(path3,2,options?.throwIfNoEntry!==false)}lstatSync(path3,options){return this.stat(path3,13,options?.throwIfNoEntry!==false)}stat(path3,operation,throwIfNoEntry){let bytes2;try{bytes2=this.call(operation,{path:path3,...throwIfNoEntry?{}:{throwIfNoEntry:false}}).output}catch(cause){if(!throwIfNoEntry&&cause.code==="ENOENT")return void 0;throw cause}const stat2=JSON.parse(decoder3.decode(bytes2));if(stat2===null){if(!throwIfNoEntry)return void 0;throw new Error("The filesystem holder returned absence for a throwing stat.")}return{...Object.fromEntries(STAT_FIELDS.filter(key=>stat2[key]!==void 0).map(key=>[key,stat2[key]])),isFile:()=>stat2.file,isDirectory:()=>stat2.directory,isSymbolicLink:()=>stat2.symlink===true,size:stat2.size,mode:stat2.mode,mtimeMs:stat2.mtimeMs,mtime:new Date(stat2.mtimeMs)}}readlinkSync(path3){return JSON.parse(decoder3.decode(this.call(14,{path:path3}).output))}symlinkSync(target,path3){this.call(15,{path:path3,target})}readdirSync(path3){return JSON.parse(decoder3.decode(this.call(4,{path:path3}).output))}realpathSync(path3){return JSON.parse(decoder3.decode(this.call(5,{path:path3}).output))}writeFileSync(path3,value){const bytes2=typeof value==="string"?encoder2.encode(value):value;const room=this.payload.byteLength-encoder2.encode(JSON.stringify({path:path3,bytes:bytes2.byteLength,offset:bytes2.byteLength,total:bytes2.byteLength})).byteLength;if(bytes2.byteLength<=room){this.call(6,{path:path3,bytes:bytes2.byteLength},bytes2);return}for(let offset2=0;offset2<bytes2.byteLength;offset2+=room){const piece=bytes2.subarray(offset2,Math.min(bytes2.byteLength,offset2+room));this.call(6,{path:path3,bytes:piece.byteLength,offset:offset2,total:bytes2.byteLength},piece)}}appendFileSync(path3,value){const bytes2=typeof value==="string"?encoder2.encode(value):value;const room=this.payload.byteLength-encoder2.encode(JSON.stringify({path:path3,bytes:bytes2.byteLength})).byteLength;if(bytes2.byteLength===0){this.call(16,{path:path3,bytes:0},bytes2);return}for(let offset2=0;offset2<bytes2.byteLength;offset2+=room){const piece=bytes2.subarray(offset2,Math.min(bytes2.byteLength,offset2+room));this.call(16,{path:path3,bytes:piece.byteLength},piece)}}writeAtSync(path3,value,position){const room=this.payload.byteLength-encoder2.encode(JSON.stringify({path:path3,position:position+value.byteLength,bytes:value.byteLength})).byteLength;if(value.byteLength===0){this.call(17,{path:path3,position,bytes:0},value);return}for(let offset2=0;offset2<value.byteLength;offset2+=room){const piece=value.subarray(offset2,Math.min(value.byteLength,offset2+room));this.call(17,{path:path3,position:position+offset2,bytes:piece.byteLength},piece)}}mkdirSync(path3,options){this.call(7,{path:path3,recursive:options?.recursive===true})}unlinkSync(path3){this.call(8,{path:path3})}rmdirSync(path3){this.call(9,{path:path3})}renameSync(path3,to2){this.call(10,{path:path3,to:to2})}chmodSync(path3,mode){this.call(11,{path:path3,mode})}utimesSync(path3,atime,mtime){this.call(12,{path:path3,atime:typeof atime==="number"?atime:Number(atime),mtime:typeof mtime==="number"?mtime:Number(mtime),atimeDate:typeof atime!=="number",mtimeDate:typeof mtime!=="number"})}readFileSync(path3,encoding){const first=this.call(3,{path:path3});let bytes2;if(first.output.byteLength>=first.total){bytes2=first.output}else{bytes2=new Uint8Array(first.total);bytes2.set(first.output,0);for(let offset2=first.output.byteLength;offset2<first.total;){const piece=this.call(3,{path:path3,offset:offset2});if(piece.output.byteLength===0)throw new Error(`The filesystem channel returned a short read of ${path3}.`);bytes2.set(piece.output,offset2);offset2+=piece.output.byteLength}}return encoding?decoder3.decode(bytes2):bytes2}call(operation,input,bytes2){const encoded=encoder2.encode(JSON.stringify(input));if(encoded.byteLength+(bytes2?.byteLength??0)>this.payload.byteLength)throw new Error("The filesystem channel request exceeds its buffer.");if(Atomics.load(this.control,STATE2)!==0)throw new Error("The filesystem channel is answering another request.");const requestId2=this.nextRequestId;this.nextRequestId=requestId2>=1073741821?1:requestId2+2;this.payload.set(encoded);if(bytes2)this.payload.set(bytes2,encoded.byteLength);Atomics.store(this.control,OPERATION,operation);Atomics.store(this.control,INPUT_LENGTH,encoded.byteLength);Atomics.store(this.control,STATE2,requestId2);this.channel.port.postMessage(requestId2);const deadline=Date.now()+REQUEST_TIMEOUT_MS;for(;;){const state=Atomics.load(this.control,STATE2);if(state===requestId2+1)break;if(state!==requestId2&&state!==-requestId2)throw new Error(`The filesystem channel is in state ${state} for request ${requestId2}.`);const remaining=Math.max(0,deadline-Date.now());if(remaining===0&&state===requestId2&&Atomics.compareExchange(this.control,STATE2,requestId2,0)===requestId2){throw new Error(`The filesystem holder did not answer within ${REQUEST_TIMEOUT_MS} ms.`)}Atomics.wait(this.control,STATE2,state,state===-requestId2?void 0:remaining)}const status=Atomics.load(this.control,STATUS2);const length=Atomics.load(this.control,OUTPUT_LENGTH);const total=Atomics.load(this.control,TOTAL_LENGTH);const output=this.payload.slice(0,length);Atomics.store(this.control,STATE2,0);if(status===2){const error=JSON.parse(decoder3.decode(output));throw Object.assign(new Error(error.message),error)}if(status!==0)throw new Error(decoder3.decode(output));return{output,total}}};function createConfinedNodeFilesystem(filesystem,policy){const writable=createProcessFilesystemMutationGuard(filesystem,policy);const view=new VirtualFS;Object.defineProperty(view,Symbol.for("@volter/browser-node/assert-filesystem-mutation"),{value:writable});const descriptors={existsSync:path3=>filesystem.existsSync(path3),statSync:(path3,options)=>filesystem.statSync(path3,options),lstatSync:(path3,options)=>filesystem.lstatSync(path3,options),readdirSync:path3=>filesystem.readdirSync(path3),realpathSync:path3=>filesystem.realpathSync(path3),readlinkSync:path3=>filesystem.readlinkSync(path3),accessSync:(path3,mode)=>filesystem.accessSync((mode??0)&2?writable(path3):path3,mode),readFileSync:(path3,encoding)=>{const bytes2=new Uint8Array(filesystem.readFileSync(path3));return encoding?new TextDecoder().decode(bytes2):bytes2},writeFileSync:(path3,bytes2)=>filesystem.writeFileSync(writable(path3),typeof bytes2==="string"?bytes2:new Uint8Array(bytes2)),appendFileSync:(path3,bytes2)=>filesystem.appendFileSync(writable(path3),typeof bytes2==="string"?bytes2:new Uint8Array(bytes2)),writeAtSync:(path3,bytes2,position)=>filesystem.writeAtSync(writable(path3),new Uint8Array(bytes2),position),mkdirSync:(path3,options)=>{if(options?.recursive&&filesystem.existsSync(path3)&&filesystem.lstatSync(path3).isDirectory()&&!filesystem.lstatSync(path3).isSymbolicLink())return;filesystem.mkdirSync(writable(path3),options)},unlinkSync:path3=>filesystem.unlinkSync(writable(path3)),rmdirSync:path3=>filesystem.rmdirSync(writable(path3)),renameSync:(from,to2)=>{const source=writable(from);const destination=writable(to2);filesystem.renameSync(source,destination)},chmodSync:(path3,mode)=>{const target=writable(path3);const change=Reflect.get(filesystem,"chmodSync");if(!change)unsupported2("chmod");change.call(filesystem,target,mode)},utimesSync:(path3,atime,mtime)=>{const target=writable(path3);const change=Reflect.get(filesystem,"utimesSync");if(!change)unsupported2("utimes");change.call(filesystem,target,atime,mtime)},symlinkSync:()=>unsupported2("symlink"),linkSync:()=>unsupported2("link"),toSnapshot:()=>structuredClone(filesystem.toSnapshot()),watch:filesystem.watch.bind(filesystem),on:(event,listener)=>{filesystem.on(event,listener);return view},off:(event,listener)=>{filesystem.off(event,listener);return view}};for(const[name,value]of Object.entries(descriptors)){Object.defineProperty(view,name,{value,configurable:false,writable:false})}return view}function unsupported2(operation){throw Object.assign(new Error(`Node filesystem does not support ${operation}.`),{code:"ENOTSUP"})}var MAGIC=2019846480;var HEADER_WORDS=6;var RECORD_WORDS=6;var RECORD_NUMBERS=3;var PATH_OFFSET=0;var PATH_LENGTH=1;var FLAGS3=2;var MODE=3;var CHILD_START=4;var CHILD_COUNT=5;var MTIME=0;var OFFSET=1;var LENGTH3=2;var HAS_ENTRY=1;var HAS_CHILDREN=2;var PACKED=4;var ASCII2=32;var TYPE_SHIFT=3;var TYPES=["file","directory","symlink"];var LONE_SURROGATE=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/u;var encoder3=new TextEncoder;var decoder4=new TextDecoder;function hashPath(path3){let hash3=2166136261;for(let index2=0;index2<path3.length;index2+=1){hash3^=path3.charCodeAt(index2);hash3=Math.imul(hash3,16777619)}return hash3>>>0}function encodeSharedIndex(entries,children){const paths=[...entries.keys()];for(const path3 of paths)if(LONE_SURROGATE.test(path3))throw new Error("A path in the store is not well-formed UTF-16.");const at3=new Map;for(let index2=0;index2<paths.length;index2+=1)at3.set(paths[index2],index2);for(const parent of children.keys())if(!at3.has(parent)){at3.set(parent,paths.length);paths.push(parent)}const count=paths.length;const encoded=new Map;const byteLengths=new Uint32Array(count);let stringBytes=0;for(let index2=0;index2<count;index2+=1){const path3=paths[index2];let ascii=true;for(let unit=0;unit<path3.length;unit+=1)if(path3.charCodeAt(unit)>=128){ascii=false;break}if(!ascii)encoded.set(index2,encoder3.encode(path3));byteLengths[index2]=ascii?path3.length:encoded.get(index2).length;stringBytes+=byteLengths[index2]}let childTotal=0;for(const names2 of children.values())childTotal+=names2.size;let tableSize=1;while(tableSize<count*2)tableSize<<=1;const recordsAt=HEADER_WORDS*4;const numbersAt=align(recordsAt+count*RECORD_WORDS*4,8);const tableAt=numbersAt+count*RECORD_NUMBERS*8;const childListAt=tableAt+tableSize*4;const stringsAt=childListAt+childTotal*4;const buffer2=new SharedArrayBuffer(align(stringsAt+stringBytes,8));const header=new Uint32Array(buffer2,0,HEADER_WORDS);header.set([MAGIC,count,tableSize,childTotal,stringBytes,entries.size]);const records=new Uint32Array(buffer2,recordsAt,count*RECORD_WORDS);const numbers=new Float64Array(buffer2,numbersAt,count*RECORD_NUMBERS);const table=new Uint32Array(buffer2,tableAt,tableSize);const childList=new Uint32Array(buffer2,childListAt,childTotal);const strings2=new Uint8Array(buffer2,stringsAt,stringBytes);let stringCursor=0;let childCursor=0;for(let index2=0;index2<count;index2+=1){const path3=paths[index2];const word=index2*RECORD_WORDS;const other=encoded.get(index2);if(other)strings2.set(other,stringCursor);else for(let unit=0;unit<path3.length;unit+=1)strings2[stringCursor+unit]=path3.charCodeAt(unit);const length=byteLengths[index2];records[word+PATH_OFFSET]=stringCursor;records[word+PATH_LENGTH]=length;stringCursor+=length;let flags=other?0:ASCII2;const entry=entries.get(path3);if(entry){flags|=HAS_ENTRY|TYPES.indexOf(entry.type)<<TYPE_SHIFT;if(entry.pack)flags|=PACKED;records[word+MODE]=entry.mode;const number=index2*RECORD_NUMBERS;numbers[number+MTIME]=entry.mtimeMs;numbers[number+OFFSET]=entry.offset;numbers[number+LENGTH3]=entry.length}const names2=children.get(path3);if(names2){flags|=HAS_CHILDREN;records[word+CHILD_START]=childCursor;records[word+CHILD_COUNT]=names2.size;for(const name of names2){const child=at3.get(`${path3}/${name}`);if(child===void 0)throw new Error(`The store's children name ${path3}/${name}, which its index does not hold.`);childList[childCursor++]=child}}records[word+FLAGS3]=flags;let slot=hashPath(path3)&tableSize-1;while(table[slot]!==0)slot=slot+1&tableSize-1;table[slot]=index2+1}if(childCursor!==childTotal)throw new Error("The shared index's children did not add up.");return buffer2}function align(value,to2){return Math.ceil(value/to2)*to2}var SharedIndex=class{buffer;count;entryCount;records;numbers;table;childList;strings;mask;constructor(buffer2){const header=new Uint32Array(buffer2,0,HEADER_WORDS);if(header[0]!==MAGIC)throw new Error("Not a shared store index.");const[,count,tableSize,childTotal,stringBytes,entryCount]=header;this.buffer=buffer2;this.count=count;this.entryCount=entryCount;const recordsAt=HEADER_WORDS*4;const numbersAt=align(recordsAt+count*RECORD_WORDS*4,8);const tableAt=numbersAt+count*RECORD_NUMBERS*8;const childListAt=tableAt+tableSize*4;const stringsAt=childListAt+childTotal*4;this.records=new Uint32Array(buffer2,recordsAt,count*RECORD_WORDS);this.numbers=new Float64Array(buffer2,numbersAt,count*RECORD_NUMBERS);this.table=new Uint32Array(buffer2,tableAt,tableSize);this.childList=new Uint32Array(buffer2,childListAt,childTotal);this.strings=new Uint8Array(buffer2,stringsAt,stringBytes);this.mask=tableSize-1}find(path3){let slot=hashPath(path3)&this.mask;for(;;){const held=this.table[slot];if(held===0)return-1;if(this.pathIs(held-1,path3))return held-1;slot=slot+1&this.mask}}entry(record){const word=record*RECORD_WORDS;const flags=this.records[word+FLAGS3];if(!(flags&HAS_ENTRY))return void 0;const number=record*RECORD_NUMBERS;const entry={type:TYPES[flags>>>TYPE_SHIFT&3],mode:this.records[word+MODE],mtimeMs:this.numbers[number+MTIME],offset:this.numbers[number+OFFSET],length:this.numbers[number+LENGTH3]};if(flags&PACKED)entry.pack="packages";return entry}typeAt(record){const flags=this.records[record*RECORD_WORDS+FLAGS3];return flags&HAS_ENTRY?TYPES[flags>>>TYPE_SHIFT&3]:void 0}hasEntry(record){return(this.records[record*RECORD_WORDS+FLAGS3]&HAS_ENTRY)!==0}childNames(record){const word=record*RECORD_WORDS;if(!(this.records[word+FLAGS3]&HAS_CHILDREN))return void 0;const start=this.records[word+CHILD_START];const skip=this.records[word+PATH_LENGTH]+1;const names2=[];for(let index2=0;index2<this.records[word+CHILD_COUNT];index2+=1){const child=this.childList[start+index2]*RECORD_WORDS;names2.push(this.decode(this.records[child+PATH_OFFSET]+skip,this.records[child+PATH_LENGTH]-skip,(this.records[child+FLAGS3]&ASCII2)!==0))}return names2}path(record){const word=record*RECORD_WORDS;return this.decode(this.records[word+PATH_OFFSET],this.records[word+PATH_LENGTH],(this.records[word+FLAGS3]&ASCII2)!==0)}decode(start,length,ascii){if(!ascii)return decoder4.decode(this.strings.slice(start,start+length));let text="";for(let at3=start,end=start+length;at3<end;at3+=4096){text+=String.fromCharCode.apply(null,this.strings.subarray(at3,Math.min(end,at3+4096)))}return text}pathIs(record,path3){const word=record*RECORD_WORDS;const start=this.records[word+PATH_OFFSET];const length=this.records[word+PATH_LENGTH];if(!(this.records[word+FLAGS3]&ASCII2))return this.path(record)===path3;if(length!==path3.length)return false;for(let index2=0;index2<length;index2+=1)if(this.strings[start+index2]!==path3.charCodeAt(index2))return false;return true}};var DELETED=Symbol("deleted");function sameIndexEntry(left,right){return left===right||!!left&&!!right&&left.type===right.type&&left.offset===right.offset&&left.length===right.length&&left.pack===right.pack&&left.mode===right.mode&&left.mtimeMs===right.mtimeMs&&left.capacity===right.capacity}var OverlaidIndex=class{constructor(base){this.base=base}base;overlay=new Map;delta=0;get[Symbol.toStringTag](){return"Map"}get size(){return this.base.entryCount+this.delta}get(path3){const over=this.overlay.get(path3);if(over!==void 0)return over===DELETED?void 0:over;const record=this.base.find(path3);return record<0?void 0:this.base.entry(record)}typeOf(path3){const over=this.overlay.get(path3);if(over!==void 0)return over===DELETED?void 0:over.type;const record=this.base.find(path3);return record<0?void 0:this.base.typeAt(record)}has(path3){const over=this.overlay.get(path3);if(over!==void 0)return over!==DELETED;const record=this.base.find(path3);return record>=0&&this.base.hasEntry(record)}set(path3,entry){if(!this.has(path3))this.delta+=1;const record=this.base.find(path3);if(record>=0&&sameIndexEntry(this.base.entry(record),entry))this.overlay.delete(path3);else this.overlay.set(path3,entry);return this}delete(path3){if(!this.has(path3))return false;const record=this.base.find(path3);if(record>=0&&this.base.hasEntry(record))this.overlay.set(path3,DELETED);else this.overlay.delete(path3);this.delta-=1;return true}clear(){throw new Error("A reader's index is not cleared; it is replaced.")}*entries(){for(const[path3,entry]of this.overlay)if(entry!==DELETED)yield[path3,entry];for(let record=0;record<this.base.count;record+=1){if(!this.base.hasEntry(record))continue;const path3=this.base.path(record);if(this.overlay.has(path3))continue;yield[path3,this.base.entry(record)]}}*keys(){for(const[path3]of this.entries())yield path3}*values(){for(const[,entry]of this.entries())yield entry}[Symbol.iterator](){return this.entries()}forEach(callback,thisArg){for(const[path3,entry]of this.entries())callback.call(thisArg,entry,path3,this)}*changed(){for(const[path3,entry]of this.overlay)if(entry!==DELETED)yield[path3,entry]}*changes(){for(const[path3,entry]of this.overlay)yield[path3,entry===DELETED?null:entry]}get overlaid(){return this.overlay.size}boundedChanges(){if(this.overlay.size>65536)return void 0;const changes=[];let bytes2=0;for(const[path3,entry]of this.changes()){bytes2+=path3.length*2+128;if(bytes2>8*1024*1024)return void 0;changes.push([path3,entry])}return changes}};var OverlaidChildren=class{constructor(base){this.base=base}base;overlay=new Map;get(path3){const over=this.overlay.get(path3);if(over!==void 0)return over===DELETED?void 0:over;const record=this.base.find(path3);const names2=record<0?void 0:this.base.childNames(record);return names2?new Set(names2):void 0}mutable(path3){const over=this.overlay.get(path3);if(over!==void 0&&over!==DELETED)return over;const names2=new Set(over===DELETED?[]:this.get(path3)??[]);this.overlay.set(path3,names2);return names2}delete(path3){this.overlay.set(path3,DELETED)}};var STORE_BASE_DIRECTORY="supercode-browser-filesystems";var PACKAGES_STORE="packages";var STORE_STATE_FILE="state.json";var PACKAGES_ROOT="/packages";var BROWSER_PACK_RETENTION_ROOT="/opt/.browser-packs";var PACKAGES_LOCK="supercode-browser-packages";var PACKAGES_OPEN_LOCK="supercode-browser-packages-open";var encoder4=new TextEncoder;var decoder5=new TextDecoder("utf-8",{fatal:true});var BASE_DIRECTORY=STORE_BASE_DIRECTORY;var TREE_STORE_PREFIX="host-tree.";var GENERATIONS_DIRECTORY="generations";var STAGING_DIRECTORY="atomic-staging";var STATE_FILE=STORE_STATE_FILE;var INDEX_FILE="index.json";var LOG_FILE="index-log.bin";var PACK_FILE="pack.bin";var RECORD_HEADER_BYTES=8;var MAX_RECORD_BYTES=64*1024*1024;var MAX_FILE_BYTES=1024*1024*1024;var MAX_WORKSPACE_BYTES=10*1024*1024*1024;var MAX_SHARED_PACKAGES_BYTES=16*1024*1024*1024;var PROJECT_ROOTS=["/workspace","/home","/opt"];var STORE_CLOCK_EPOCH=0;var STORE_CLOCK_LOG=1;var MAX_ENTRIES=1e6;var MAX_LOG_BYTES=8*1024*1024;var FLUSH_WINDOW_MS=250;var COMPACTION_FLOOR_BYTES=64*1024*1024;var SESSION_COMPACTION_BYTES=256*1024*1024;var COPY_BUFFER_BYTES=4*1024*1024;var DIRECTORY_MODE=493;var FILE_MODE=420;function createPackStore(environment,options={}){const maximumBytes=options.limits?.maxBytes??MAX_WORKSPACE_BYTES;const maximumEntries=options.limits?.maxEntries??MAX_ENTRIES;if(!Number.isSafeInteger(maximumBytes)||maximumBytes<1||maximumBytes>MAX_WORKSPACE_BYTES||!Number.isSafeInteger(maximumEntries)||maximumEntries<1||maximumEntries>MAX_ENTRIES){throw new Error("Invalid OPFS workspace limits.")}let project;let shared=false;let readOnly=false;let extentsOnly=false;let generationHandle;let linked=0;let linkedBytes=0;let releaseLock;let projectId;let generation;let entries=new Map;let children=new LocalChildren;let packAccess;let imageRangesDigest;let imageReader;let deferredImage;let receivedImageCompletion;let receivedImageLine;let generationInitializedAt=0;let logAccess;let immutableReadEnd=0;const readAhead=new Map;const READ_AHEAD_BYTES=256*1024;const READ_AHEAD_BLOCKS=32;let packBytes=0;let flushTimer;let lastFlushAt=-Infinity;let flushes=0;let flushMs=0;let logBytes=0;let liveBytes=0;let deadBytes=0;let rewrites=0;let rewrittenBytes=0;let mutationUndo;let bytesUndo;let mutationFailure;let initializing=false;let openingController;let checkpointTail=Promise.resolve();let activeStorageOperations=0;let closing=false;let rewritingGeneration=false;let clockView;let transitions=0;let clockRetired=false;function publishLog(){if(!clockView||clockRetired)return;if(logBytes>2147483647){retireClock();return}Atomics.store(clockView,STORE_CLOCK_LOG,logBytes)}function retireClock(){if(!clockView||clockRetired)return;clockRetired=true;if((Atomics.load(clockView,STORE_CLOCK_EPOCH)&1)===0)Atomics.add(clockView,STORE_CLOCK_EPOCH,1)}function beginTransition(){transitions+=1;if(transitions===1&&clockView&&!clockRetired)Atomics.add(clockView,STORE_CLOCK_EPOCH,1)}function endTransition(){transitions-=1;if(transitions>0||!clockView||clockRetired)return;publishLog();if(!clockRetired)Atomics.add(clockView,STORE_CLOCK_EPOCH,1)}function clock(){if(readOnly)throw new Error("A store open for reading follows its owner's clock; it has none of its own.");if(!clockView){clockView=new Int32Array(new SharedArrayBuffer(2*Int32Array.BYTES_PER_ELEMENT));clockView[STORE_CLOCK_EPOCH]=transitions>0||clockRetired?1:0;publishLog()}return clockView.buffer}let seedCache;const SEED_REPLAY_BYTES=8*1024*1024;let startedFromSeed=false;function readerSeed(options2){if(readOnly||!clockView||!generation||initializing||transitions>0||clockRetired||closing)return void 0;const epoch=Atomics.load(clockView,STORE_CLOCK_EPOCH);if(epoch&1)return void 0;if(options2?.overlays&&entries instanceof OverlaidIndex){const changes=entries.boundedChanges();if(changes){return withImageCompletion({generation,index:entries.base.buffer,changes,packBytes,logBytes,epoch,liveBytes,linked,linkedBytes})}}if(seedCache&&seedCache.generation===generation&&seedCache.epoch===epoch&&logBytes>=seedCache.logBytes&&logBytes-seedCache.logBytes<=(options2?.current?0:SEED_REPLAY_BYTES))return withImageCompletion(seedCache);let index2;try{index2=encodeSharedIndex(entries,childrenMap())}catch(cause){console.warn(`[pack-store] no reader seed: ${cause instanceof Error?cause.message:String(cause)}`);return void 0}seedCache={generation,index:index2,packBytes,logBytes,epoch,liveBytes,linked,linkedBytes};standOnSeed(index2);return withImageCompletion(seedCache)}function withImageCompletion(seed){const packagesImage=options.packages?.imageCompletionSeed();return packagesImage?{...seed,packagesImage}:seed}function imageCompletionSeed(){if(!imageReader||!imageRangesDigest||!generation||initializing||transitions>0||closing)return void 0;return{generation,rangesDigest:imageRangesDigest,completed:imageReader.completionBuffer,...imageReader.receiptKey?{metadata:{ranges:imageReader.verifiedRanges,receiptKey:imageReader.receiptKey}}:{}}}function standOnSeed(index2){const roomy=[];if(entries instanceof OverlaidIndex){for(const[path3,entry]of entries.changed())if(entry.capacity!==void 0)roomy.push([path3,entry])}else{for(const[path3,entry]of entries)if(entry.capacity!==void 0)roomy.push([path3,entry])}const base=new SharedIndex(index2);entries=new OverlaidIndex(base);children=new OverlaidChildren(base);for(const[path3,entry]of roomy)entries.set(path3,entry)}function childrenMap(){if(children instanceof LocalChildren)return children.map;const derived=new Map;for(const path3 of entries.keys()){const parent=parentPath(path3);if(parent===path3)continue;let names2=derived.get(parent);if(!names2){names2=new Set;derived.set(parent,names2)}names2.add(path3.slice(parent.length+1))}return derived}function follow(){if(!readOnly||extentsOnly||closing||!logAccess)return;replayLog(logBytes)}async function ownStorageOperation(operation){if(closing)throw new Error("This OPFS workspace is closing.");activeStorageOperations+=1;let failure;let failed=false;try{return await operation()}catch(cause){failed=true;failure=cause;throw cause}finally{activeStorageOperations-=1;if(closing&&activeStorageOperations===0){try{closeStorage()}catch(cause){if(failed)throw new AggregateError([failure,cause],"OPFS operation and deferred close both failed.");throw cause}}}}async function rewriteGeneration(operation){assertWritable();if(activeStorageOperations!==0)return Promise.reject(new Error("Wait for the current OPFS storage operation before replacing its generation."));rewritingGeneration=true;return ownStorageOperation(async()=>{try{return await operation()}finally{rewritingGeneration=false}})}function read(path3){if(closing)throw new Error("This OPFS workspace is closing.");const entry=entries.get(path3);if(!entry||entry.type==="directory")throw new Error(`OPFS workspace file does not exist: ${path3}`);return readEntry(entry)}function readRange(path3,offset2,length){if(closing)throw new Error("This OPFS workspace is closing.");const entry=entries.get(path3);if(!entry||entry.type==="directory")throw new Error(`OPFS workspace file does not exist: ${path3}`);const start=Math.min(Math.max(0,offset2),entry.length);const count=Math.min(Math.max(0,length),entry.length-start);if(entry.pack){const packages2=options.packages;if(!packages2)throw new Error("This store has no shared package store to read from.");return packages2.readExtent(entry.offset+start,count)}return readExtent(entry.offset+start,count)}function readEntry(entry){if(entry.pack){const packages2=options.packages;if(!packages2)throw new Error("This store has no shared package store to read from.");return packages2.readExtent(entry.offset,entry.length)}return readExtent(entry.offset,entry.length)}function readExtent(offset2,length){if(closing)throw new Error("This OPFS workspace is closing.");const access=packAccess;if(!access)throw new Error("OPFS filesystem worker is not initialized.");const value=new Uint8Array(length);if(length>0&&length<=READ_AHEAD_BYTES&&offset2>=0&&offset2+length<=immutableReadEnd){let copied=0;while(copied<length){const position=offset2+copied;const start=Math.floor(position/READ_AHEAD_BYTES)*READ_AHEAD_BYTES;let block=readAhead.get(start);if(!block){block=new Uint8Array(Math.min(READ_AHEAD_BYTES,immutableReadEnd-start));imageReader?.ensure(start,block.byteLength);if(access.read(block,{at:start})!==block.byteLength)throw new Error("An OPFS package range could not be read completely.")}readAhead.delete(start);readAhead.set(start,block);if(readAhead.size>READ_AHEAD_BLOCKS)readAhead.delete(readAhead.keys().next().value);const from=position-start;const count=Math.min(length-copied,block.byteLength-from);value.set(block.subarray(from,from+count),copied);copied+=count}return value}imageReader?.ensure(offset2,length);if(length>0&&access.read(value,{at:offset2})!==length){throw new Error("An OPFS workspace file could not be read completely.")}return value}async function initialize2(requestedProjectId,openOptions={}){if(closing&&project||!project&&activeStorageOperations!==0)throw new Error("Wait for this OPFS workspace to finish closing before opening it again.");if(initializing)throw new Error("This OPFS store is already opening a workspace.");if(project){if(projectId!==validProjectId(requestedProjectId))throw new Error("Close this OPFS store before opening another workspace.");return entries.size>0}initializing=true;closing=false;const opening=new AbortController;openingController=opening;try{entries=new Map;children=new LocalChildren;generation=void 0;imageRangesDigest=void 0;generationHandle=void 0;mutationUndo=void 0;mutationFailure=void 0;packBytes=logBytes=liveBytes=deadBytes=linked=linkedBytes=0;checkpointPrefix=void 0;rewrites=rewrittenBytes=flushes=flushMs=0;lastFlushAt=-Infinity;projectId=validProjectId(requestedProjectId);readOnly=openOptions.readOnly===true;receivedImageCompletion=readOnly?openOptions.imageCompletion:void 0;receivedImageLine=readOnly?openOptions.imageLine:void 0;extentsOnly=readOnly&&openOptions.extentsOnly===true;shared=openOptions.shared===true||readOnly;if(!shared)await acquireSessionLock(opening.signal);opening.signal.throwIfAborted();const root2=await storageRoot();opening.signal.throwIfAborted();try{const base=await root2.getDirectoryHandle(BASE_DIRECTORY,{create:!readOnly});opening.signal.throwIfAborted();project=await base.getDirectoryHandle(projectId,{create:!readOnly})}catch(cause){opening.signal.throwIfAborted();if(readOnly&¬Found(cause))return false;throw cause}opening.signal.throwIfAborted();let state=readStorageState(await readJson2(project,STATE_FILE));opening.signal.throwIfAborted();if(!state&&readOnly){await assertNoUncommittedGenerations();return false}if(!state&&shared){await environment.navigator.locks.request(PACKAGES_LOCK,{mode:"exclusive",signal:opening.signal},async()=>{opening.signal.throwIfAborted();state=readStorageState(await readJson2(project,STATE_FILE));opening.signal.throwIfAborted();if(!state){await assertNoUncommittedGenerations();await writeGeneration({files:[],pack:new ArrayBuffer(0)});await writeSweepMark(project)}});opening.signal.throwIfAborted();if(!state){generationHandle=await generationDirectory(generation,false);opening.signal.throwIfAborted();return false}}if(!state){await assertNoUncommittedGenerations();opening.signal.throwIfAborted();return false}const openCommitted=async state2=>{let directory2;try{directory2=await generationDirectory(state2.generation,false)}catch(cause){opening.signal.throwIfAborted();if(!notFound(cause))throw cause;throw new Error("The committed OPFS workspace generation is missing. Stored generations were retained.",{cause})}opening.signal.throwIfAborted();generation=state2.generation;generationInitializedAt=state2.initializedAt;imageRangesDigest=state2.imageRanges;generationHandle=directory2;if(extentsOnly){if(projectId===PACKAGES_STORE&&environment.navigator.locks){await environment.navigator.locks.request(PACKAGES_LOCK,{mode:"shared",signal:opening.signal},async()=>{await openGenerationHandles(directory2);immutableReadEnd=packAccess.getSize()})}else await openGenerationHandles(directory2);opening.signal.throwIfAborted();return true}const seed=readOnly?openOptions.seed:void 0;if(seed&&seed.generation===state2.generation){const base=new SharedIndex(seed.index);entries=new OverlaidIndex(base);children=new OverlaidChildren(base);packBytes=seed.packBytes;if(seed.changes)applyIndexRecord({packBytes:seed.packBytes,changes:seed.changes});await openGenerationHandles(directory2);opening.signal.throwIfAborted();logBytes=seed.logBytes;({liveBytes,linked,linkedBytes}=seed);deadBytes=Math.max(0,packBytes-liveBytes);startedFromSeed=true;return entries.size>0}const retained=!readOnly?await readRetainedIndex(directory2):void 0;opening.signal.throwIfAborted();if(retained){const base=new SharedIndex(retained.index);entries=new OverlaidIndex(base);children=new OverlaidChildren(base);({packBytes,liveBytes,linked,linkedBytes}=retained);const epoch=Atomics.load(new Int32Array(clock()),STORE_CLOCK_EPOCH);seedCache={generation,index:retained.index,packBytes,liveBytes,linked,linkedBytes,logBytes:0,epoch}}else{entries=readIndex(await readJson2(directory2,INDEX_FILE));opening.signal.throwIfAborted();rebuildChildren();packBytes=indexPackBytes(entries)}await openGenerationHandles(directory2);opening.signal.throwIfAborted();const represented=retained?await verifiedJournalPrefix(retained):0;opening.signal.throwIfAborted();if(represented){checkpointPrefix={generation,bytes:represented};if(seedCache)seedCache.logBytes=represented}replayLog(represented,!!retained);if(retained)deadBytes=Math.max(0,packBytes-liveBytes);else measureBytes();assertWorkspaceQuota();if(shared&&!readOnly&&!retained&&entries.size>=1e4){flushStorage();await writeIndexAtomically(directory2,entries,{access:logAccess,bytes:logBytes,packBytes})}if(!shared){packAccess.truncate(packBytes);await removeEntry(project,STAGING_DIRECTORY,true);await discardGenerations(generation);opening.signal.throwIfAborted();if(deadBytes>COMPACTION_FLOOR_BYTES&&deadBytes>liveBytes)await compact()}opening.signal.throwIfAborted();return entries.size>0};if(shared&&!readOnly){return await environment.navigator.locks.request(PACKAGES_LOCK,{mode:"exclusive",signal:opening.signal},async()=>{state=readStorageState(await readJson2(project,STATE_FILE));if(!state)throw new Error("The committed package store state is missing. Stored data was retained.");return openCommitted(state)})}return await openCommitted(state)}catch(cause){const failures=[cause];try{closeGenerationHandles()}catch(error){failures.push(error)}try{releaseLock?.()}catch(error){failures.push(error)}releaseLock=void 0;project=void 0;if(failures.length>1)throw new AggregateError(failures,"OPFS workspace open and cleanup failed.");throw cause}finally{initializing=false;openingController=void 0}}function refresh(options2){return ownStorageOperation(()=>refreshStorage(options2?.whole===true))}async function refreshStorage(whole=false){if(extentsOnly)throw new Error("A store opened for its extents alone has no index to follow.");if(readOnly&&project){const state=readStorageState(await readJson2(project,STATE_FILE));if(!state)throw new Error("The committed OPFS workspace state is missing. Stored data was retained.");if(state.generation!==generation||whole){const directory2=await generationDirectory(state.generation,false);const index2=readIndex(await readJson2(directory2,INDEX_FILE));packBytes=indexPackBytes(index2);if(state.generation!==generation){generation=state.generation;generationInitializedAt=state.initializedAt;imageRangesDigest=state.imageRanges;await openGenerationHandles(directory2)}generation=state.generation;generationHandle=directory2;entries=index2;rebuildChildren();replayLog();measureBytes();return}}const access=logAccess;if(!access||!generationHandle)return;const size=access.getSize();let reread=false;if(size<logBytes){entries=readIndex(await readJson2(generationHandle,INDEX_FILE));rebuildChildren();packBytes=indexPackBytes(entries);logBytes=0;reread=true}const before=logBytes;replayLog(logBytes);if(reread||logBytes!==before)measureBytes()}async function storageRoot(){let last;for(let attempt=0;attempt<10;attempt+=1){openingController?.signal.throwIfAborted();try{return await environment.navigator.storage.getDirectory()}catch(cause){last=cause;await new Promise(resolve2=>setTimeout(resolve2,200))}}throw last instanceof Error?last:new Error("This browser workspace's storage is unavailable.")}const OPEN_ATTEMPT_MS=1e4;async function openSyncAccess(handle,name){let refusal;const signal=openingController?.signal;for(let attempt=0;attempt<2;attempt+=1){signal?.throwIfAborted();const pending=handle.createSyncAccessHandle({mode:"readwrite-unsafe"});let timer;let abort;let claimed=false;try{const cancelled2=new Promise((_resolve,reject)=>{abort=()=>reject(signal?.reason??new DOMException("Workspace open was cancelled.","AbortError"));signal?.addEventListener("abort",abort,{once:true});if(signal?.aborted)abort()});const opened=await Promise.race([pending.then(access=>({access})).catch(cause=>{refusal=cause;return void 0}),new Promise(resolve2=>{timer=setTimeout(()=>resolve2(void 0),OPEN_ATTEMPT_MS)}),cancelled2]);signal?.throwIfAborted();if(opened){claimed=true;return opened.access}}finally{if(timer!==void 0)clearTimeout(timer);if(abort)signal?.removeEventListener("abort",abort);if(!claimed)void pending.then(access=>access.close(),()=>void 0).catch(cause=>console.error("Late workspace handle cleanup failed.",cause))}if(refusal instanceof TypeError){throw new Error(`This browser cannot share a workspace's files between pages: its file access handles have no readwrite-unsafe mode (Chrome 121 or newer has one). ${refusal.message}`)}await new Promise(resolve2=>setTimeout(resolve2,500))}const reason=refusal instanceof Error?` (${refusal.message})`:"";throw new Error(`This browser workspace's ${name} is held by another page${reason}.`)}async function openGenerationHandles(directory2){closeGenerationHandles();const pack=await directory2.getFileHandle(PACK_FILE);packAccess=await openSyncAccess(pack,"store");try{if(packAccess.getSize()<packBytes)throw new Error("The committed OPFS workspace pack is incomplete. Stored data was retained.");const log=await directory2.getFileHandle(LOG_FILE);logAccess=await openSyncAccess(log,"record of changes");logBytes=logAccess.getSize();if(imageRangesDigest){const supplied=receivedImageCompletion;const completion=supplied&&supplied.generation===generation&&supplied.rangesDigest===imageRangesDigest?supplied:void 0;let ranges;let receiptKey;if(completion?.metadata){ranges=validateImageRanges(completion.metadata.ranges);receiptKey=completion.metadata.receiptKey;if(!/^[a-f0-9]{64}$/u.test(receiptKey))throw new Error("The owner's immutable receipt key is invalid.")}else{const file2=await(await directory2.getFileHandle(IMAGE_RANGES_FILE)).getFile();const bytes2=new Uint8Array(await file2.arrayBuffer());if(await indexDigest(bytes2)!==imageRangesDigest)throw new Error("The committed immutable image ranges have changed. Stored data was retained.");ranges=validateImageRanges(JSON.parse(decoder5.decode(bytes2)));receiptKey=await indexDigest(encoder4.encode(JSON.stringify(ranges)))}if(ranges.bytes>packAccess.getSize())throw new Error("The immutable image reservation is incomplete. Stored data was retained.");const line=completion?receivedImageLine:void 0;if(!line)receivedImageLine?.port.close();receivedImageLine=void 0;imageReader=new ImageRangeReader(ranges,directory2,`${projectId}.${generation}`,completion?.completed,receiptKey,line);console.log(`[boot-trace] ${JSON.stringify({event:"image-reader-open",at:Date.now(),reader:`${projectId}.${generation}`,offered:supplied!==void 0,shared:completion!==void 0,...supplied&&!completion?{offeredGeneration:supplied.generation,generation,rangesMatch:supplied.rangesDigest===imageRangesDigest}:{}})}`);await imageReader.initialize();deferredImage=ranges.image}}catch(cause){closeGenerationHandles();throw cause}}function closeGenerationHandles(){imageReader?.close();imageReader=void 0;deferredImage=void 0;const pack=packAccess,log=logAccess;packAccess=void 0;logAccess=void 0;logBytes=0;immutableReadEnd=0;readAhead.clear();try{pack?.close()}finally{log?.close()}}function replayLog(from=0,measureChanges=false){const access=logAccess;if(!access)throw new Error("OPFS filesystem worker is not initialized.");const size=access.getSize();if(size<=from){logBytes=size;return}const buffer2=new Uint8Array(size-from);if(access.read(buffer2,{at:from})!==buffer2.byteLength)throw new Error("The OPFS workspace index log could not be read.");const packSize=packAccess?.getSize()??Infinity;const view=new DataView(buffer2.buffer);let offset2=0;const end=buffer2.byteLength;while(offset2+RECORD_HEADER_BYTES<=end){const length=view.getUint32(offset2,true);const checksum=view.getUint32(offset2+4,true);const start=offset2+RECORD_HEADER_BYTES;if(length===0||length>MAX_RECORD_BYTES||start+length>end)break;const body=buffer2.subarray(start,start+length);if(fingerprint2(body)!==checksum)break;let record;try{record=readIndexRecord(JSON.parse(decoder5.decode(body)))}catch{break}if(record.packBytes>packSize)break;applyIndexRecord(record,measureChanges);offset2=start+length}if(offset2!==end&&!shared)access.truncate(from+offset2);logBytes=from+offset2}function applyIndexRecord(record,measureChanges=false){for(const[path3,entry]of record.changes){const previous=entries.get(path3);if(entry&&sameIndexEntry(previous,entry)){attach(path3);continue}if(measureChanges){if(previous?.pack){linked-=1;linkedBytes-=previous.length}else if(previous)liveBytes-=previous.length;if(entry?.pack){linked+=1;linkedBytes+=entry.length}else if(entry)liveBytes+=entry.length}if(entry===null){entries.delete(path3);detach(path3)}else{entries.set(path3,entry);attach(path3)}}packBytes=Math.max(packBytes,record.packBytes)}function measureBytes(){liveBytes=0;linked=0;linkedBytes=0;for(const entry of entries.values()){if(entry.pack){linked+=1;linkedBytes+=entry.length}else liveBytes+=entry.length}deadBytes=Math.max(0,packBytes-liveBytes)}function indexPackBytes(index2){let end=0;for(const entry of index2.values())if(!entry.pack)end=Math.max(end,entry.offset+entry.length);return end}const SESSION_LOCK_WAIT_MS=5e3;async function acquireSessionLock(signal){if(!environment.navigator.locks)return;if(!projectId)throw new Error("OPFS filesystem project is not initialized.");const controller=new AbortController;const timer=setTimeout(()=>controller.abort(),SESSION_LOCK_WAIT_MS);try{await new Promise((resolve2,reject)=>{void environment.navigator.locks.request(`supercode-browser-filesystem-${projectId}`,{mode:"exclusive",signal:signal?AbortSignal.any([signal,controller.signal]):controller.signal},async()=>{clearTimeout(timer);resolve2();await new Promise(release2=>{releaseLock=release2})}).catch(()=>reject(signal?.aborted?signal.reason:new Error("This browser workspace is already open in another tab.")))})}finally{clearTimeout(timer)}}function validProjectId(value){if(typeof value!=="string"||!/^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$/u.test(value)){throw new Error("OPFS filesystem projectId is invalid.")}return value}async function projectDirectory(){if(!project)throw new Error("OPFS filesystem worker is not initialized.");return project}async function generationDirectory(name,create2){const root2=await(await projectDirectory()).getDirectoryHandle(GENERATIONS_DIRECTORY,{create:create2});return root2.getDirectoryHandle(name,{create:create2})}async function assertNoUncommittedGenerations(){let directory2;try{directory2=await(await projectDirectory()).getDirectoryHandle(GENERATIONS_DIRECTORY)}catch(cause){if(notFound(cause))return;throw cause}for await(const _entry of directory2.entries()){throw new Error("OPFS workspace state is missing but stored generations exist. Stored data was retained.")}}async function discardGenerations(retain2){const directory2=await projectDirectory();let root2;try{root2=await directory2.getDirectoryHandle(GENERATIONS_DIRECTORY)}catch(cause){if(notFound(cause))return;throw cause}for await(const[name]of root2.entries()){if(name!==retain2)await removeGenerationQuietly(root2,name)}}function assertWritable(){if(closing)throw new Error("This OPFS workspace is closing.");if(rewritingGeneration)throw new Error("This OPFS workspace is replacing its generation; wait for that operation before writing.");if(readOnly)throw new Error("This store is open for reading; its owner writes it.");if(mutationFailure)throw mutationFailure}async function applyMutations(mutations){applyNow(mutations)}let checkpointPending=false;let maintenanceDeferrals=0;let checkpointPrefix;let compactingLive=false;function maintain(){if(maintenanceDeferrals>0)return;const represented=checkpointPrefix&&checkpointPrefix.generation===generation&&checkpointPrefix.bytes<=logBytes?checkpointPrefix.bytes:0;if(logBytes-represented>MAX_LOG_BYTES&&!checkpointPending){checkpointPending=true;const operation=shared?environment.navigator.locks.request(PACKAGES_LOCK,{mode:"exclusive"},async()=>{if(!project||closing)return;await refreshStorage();const prefix2=checkpointPrefix;const represented2=prefix2&&prefix2.generation===generation&&prefix2.bytes<=logBytes?prefix2.bytes:0;if(logBytes-represented2>MAX_LOG_BYTES)await checkpoint()}):checkpoint();void operation.catch(cause=>console.error("The workspace's log could not be checkpointed; it is replayed at the next open.",cause)).finally(()=>{checkpointPending=false})}if(!shared&&!compactingLive&&deadBytes>SESSION_COMPACTION_BYTES&&deadBytes>liveBytes){compactingLive=true;void ownStorageOperation(compactWhileWriting).catch(cause=>console.error("The workspace could not be compacted; it keeps its generation.",cause)).finally(()=>{compactingLive=false})}}async function deferMaintenance(operation){assertWritable();maintenanceDeferrals+=1;try{return await operation()}finally{maintenanceDeferrals-=1;if(maintenanceDeferrals===0&&!closing&&project)maintain()}}function applyMutation(mutation,changes){const path3=requiredPath(mutation.path);if(mutation.operation==="write"){if(entries.get(path3)?.type==="directory")throw new Error(`OPFS write target is a directory: ${path3}`);if(!(mutation.content instanceof Uint8Array))throw new Error("OPFS write requires file content.");const value=mutation.content;if(value.byteLength>MAX_FILE_BYTES)throw new Error(`${path3} is ${value.byteLength} bytes; an OPFS workspace file holds at most ${MAX_FILE_BYTES}.`);assertBounds(path3,value.byteLength);createParents(path3,changes);const offset2=appendPack(value);setEntry(path3,{type:mutation.symlink?"symlink":"file",mode:mutation.mode??entries.get(path3)?.mode??FILE_MODE,mtimeMs:mutation.mtimeMs??Date.now(),offset:offset2,length:value.byteLength},changes);return}if(mutation.operation==="append"){const previous=entries.get(path3);if(previous&&previous.type!=="file")throw new Error(`OPFS append target is not a file: ${path3}`);if(!(mutation.content instanceof Uint8Array))throw new Error("OPFS append requires file content.");const added=mutation.content;const length=(previous?.length??0)+added.byteLength;if(length>MAX_FILE_BYTES)throw new Error(`${path3} is ${length} bytes; an OPFS workspace file holds at most ${MAX_FILE_BYTES}.`);assertBounds(path3,length);createParents(path3,changes);const mode=mutation.mode??previous?.mode??FILE_MODE;const mtimeMs=mutation.mtimeMs??Date.now();const room=previous&&!previous.pack?previous.capacity??previous.length:0;if(projectId!==PACKAGES_STORE&&previous&&!previous.pack&&previous.length>0&&(length<=room||previous.offset+room===packBytes)){writePackAt(previous.offset+previous.length,added);setEntry(path3,{...previous,mode,mtimeMs,length,capacity:Math.max(room,length)},changes);deadBytes-=Math.max(previous.length,previous.capacity??0);rewrites-=1;rewrittenBytes-=previous.length;return}const whole=new Uint8Array(length);if(previous&&previous.length>0)whole.set(readEntry(previous),0);whole.set(added,length-added.byteLength);const offset2=appendPack(whole);const capacity=Math.min(MAX_FILE_BYTES,Math.max(length,length*2,64*1024));if(capacity>length)reservePack(offset2+capacity);setEntry(path3,{type:"file",mode,mtimeMs,offset:offset2,length,capacity},changes);return}if(mutation.operation==="write-at"){const previous=entries.get(path3);if(previous&&previous.type!=="file")throw new Error(`OPFS write target is not a file: ${path3}`);if(!(mutation.content instanceof Uint8Array))throw new Error("OPFS write requires file content.");const bytes2=mutation.content;const position=mutation.position;const held=previous?.length??0;if(bytes2.byteLength===0&&previous)return;const length=bytes2.byteLength===0?held:Math.max(held,position+bytes2.byteLength);if(length>MAX_FILE_BYTES)throw new Error(`${path3} is ${length} bytes; an OPFS workspace file holds at most ${MAX_FILE_BYTES}.`);assertBounds(path3,length);createParents(path3,changes);const mode=mutation.mode??previous?.mode??FILE_MODE;const mtimeMs=mutation.mtimeMs??Date.now();const room=previous&&!previous.pack?previous.capacity??previous.length:0;if(projectId!==PACKAGES_STORE&&previous&&!previous.pack&&held>0&&(length<=room||previous.offset+room===packBytes)){if(position>held)writePackAt(previous.offset+held,new Uint8Array(position-held));if(bytesUndo&&position<held){const end=Math.min(held,position+bytes2.byteLength);bytesUndo.push([previous.offset+position,readExtent(previous.offset+position,end-position)])}writePackAt(previous.offset+position,bytes2);setEntry(path3,{...previous,mode,mtimeMs,length,capacity:Math.max(room,length)},changes);if(length!==held){deadBytes-=Math.max(previous.length,previous.capacity??0);rewrites-=1;rewrittenBytes-=previous.length}return}const whole=new Uint8Array(length);if(previous&&held>0)whole.set(readEntry(previous),0);if(bytes2.byteLength>0)whole.set(bytes2,position);const offset2=appendPack(whole);const capacity=Math.min(MAX_FILE_BYTES,Math.max(length,length*2,64*1024));if(capacity>length)reservePack(offset2+capacity);setEntry(path3,{type:"file",mode,mtimeMs,offset:offset2,length,capacity},changes);return}if(mutation.operation==="mkdir"){createParents(path3,changes);const existing=entries.get(path3);if(existing&&existing.type!=="directory")throw new Error(`OPFS path is a file: ${path3}`);setEntry(path3,{type:"directory",mode:mutation.mode??existing?.mode??DIRECTORY_MODE,mtimeMs:mutation.mtimeMs??existing?.mtimeMs??Date.now(),offset:0,length:0},changes);return}if(mutation.operation==="remove"){removeTree3(path3,changes);if(storeRoots().includes(path3)){setEntry(path3,{type:"directory",mode:DIRECTORY_MODE,mtimeMs:Date.now(),offset:0,length:0},changes)}return}if(mutation.operation==="link"){linkShared(path3,sharedPath(mutation.source),changes);return}if(mutation.operation==="rename"){renameTree(path3,requiredPath(mutation.destination),changes);return}const entry=entries.get(path3);if(!entry)throw new Error(`OPFS metadata target does not exist: ${path3}`);setEntry(path3,{...entry,mode:mutation.mode??entry.mode,mtimeMs:mutation.mtimeMs??entry.mtimeMs},changes)}function setEntry(path3,entry,changes){const previous=entries.get(path3);if(mutationUndo&&!mutationUndo.has(path3))mutationUndo.set(path3,previous);const sameExtent=previous!==void 0&&previous.type===entry.type&&previous.offset===entry.offset&&previous.length===entry.length&&previous.pack===entry.pack;if(previous&&!sameExtent){forget(previous,path3);if(previous.type!=="directory"&&entry.type!=="directory"&&previous.length>0&&!previous.pack){rewrites+=1;rewrittenBytes+=previous.length}}entries.set(path3,entry);attach(path3);if(!sameExtent){if(entry.pack){linked+=1;linkedBytes+=entry.length}else liveBytes+=entry.length}changes.push([path3,entry])}function attach(path3){const parent=parentPath(path3);if(parent===path3)return;children.mutable(parent).add(path3.slice(parent.length+1))}function detach(path3){const parent=parentPath(path3);if(children.get(parent)?.has(path3.slice(parent.length+1)))children.mutable(parent).delete(path3.slice(parent.length+1));children.delete(path3)}function rebuildChildren(){children=new LocalChildren;for(const path3 of entries.keys())attach(path3)}function descendants(prefix2){const found=[];const visit=path3=>{const entry=entries.get(path3);if(!entry)return;found.push([path3,entry]);const names2=children.get(path3);if(names2)for(const name of names2)visit(`${path3}/${name}`)};visit(prefix2);return found}function forget(previous,path3){if(previous.pack){linked-=1;linkedBytes-=previous.length;return}liveBytes-=previous.length;deadBytes+=Math.max(previous.length,previous.capacity??0)}function deleteEntry(path3,changes){const previous=entries.get(path3);if(!previous)return;if(mutationUndo&&!mutationUndo.has(path3))mutationUndo.set(path3,previous);entries.delete(path3);detach(path3);forget(previous,path3);changes.push([path3,null])}function linkShared(path3,source,changes){const packages2=options.packages;if(!packages2)throw new Error("This store has no shared package store to link from.");const prefix2=sharedPath(source);const files=packages2.descendants(prefix2);if(files.length===0)throw new Error(`The shared package store does not hold ${source}.`);createParents(path3,changes);removeTree3(path3,changes);assertEntryCount(entries.size+files.length);for(const[candidate,entry]of files){const target=candidate===prefix2?path3:`${path3}${candidate.slice(prefix2.length)}`;setEntry(target,entry.type==="directory"?{type:"directory",mode:entry.mode,mtimeMs:entry.mtimeMs,offset:0,length:0}:{type:entry.type,mode:entry.mode,mtimeMs:entry.mtimeMs,offset:entry.offset,length:entry.length,pack:PACKAGES_STORE},changes)}}function createParents(path3,changes){const above=parentPath(path3);if(above!==path3&&entries.get(above)?.type==="directory"){assertEntryCount(entries.size+(entries.has(path3)?0:1));return}const missing=[];let current3=rootOf(path3)??storeRoots()[0];if(!entries.has(current3))missing.push(current3);if(path3!==current3){for(const segment of segmentsOf(relativePath3(parentPath(path3)))){current3=`${current3}/${segment}`;const existing=entries.get(current3);if(existing&&existing.type!=="directory")throw new Error(`OPFS path parent is a file: ${current3}`);if(!existing)missing.push(current3)}}assertEntryCount(entries.size+missing.length+(entries.has(path3)?0:1));const now=Date.now();for(const directory2 of missing){setEntry(directory2,{type:"directory",mode:DIRECTORY_MODE,mtimeMs:now,offset:0,length:0},changes)}}function removeTree3(path3,changes){for(const[candidate]of descendants(path3))deleteEntry(candidate,changes)}function renameTree(source,destination,changes){if(source===destination)return;if(destination.startsWith(`${source}/`))throw new Error("An OPFS rename cannot move a directory into itself.");const moved=descendants(source);if(moved.length===0){if(entries.has(destination))return;throw new Error(`OPFS rename source does not exist: ${source}`)}createParents(destination,changes);removeTree3(destination,changes);for(const[path3]of moved)deleteEntry(path3,changes);for(const[path3,entry]of moved)setEntry(`${destination}${path3.slice(source.length)}`,entry,changes);assertEntryCount(entries.size)}function sharedPath(value){if(typeof value!=="string"||!value.startsWith(`${PACKAGES_ROOT}/`)||value.includes("\0")||value.length>4096){throw new Error("Invalid shared store path.")}segmentsOf(value.slice(PACKAGES_ROOT.length+1));return value}function storeRoots(){return projectId===PACKAGES_STORE?[PACKAGES_ROOT]:PROJECT_ROOTS}function rootOf(path3){return storeRoots().find(root2=>path3===root2||path3.startsWith(`${root2}/`))}function assertBounds(path3,bytes2){const previous=entries.get(path3);const replaced=previous&&!previous.pack?previous.length:0;const limit=shared?MAX_SHARED_PACKAGES_BYTES:maximumBytes;if(liveBytes-replaced+bytes2>limit){const holder=shared?"the origin's shared packages":"the project's own files";throw new Error(`OPFS workspace exceeds its byte limit: writing ${path3} (${bytes2} bytes) would take ${holder} past ${limit} bytes (${liveBytes} bytes held, ${replaced} replaced).`)}}function assertEntryCount(count){if(count>maximumEntries)throw new Error("OPFS workspace exceeds its entry limit.")}function assertWorkspaceQuota(){assertEntryCount(entries.size);if(liveBytes>maximumBytes)throw new Error(`OPFS workspace exceeds its byte limit: the project's own files hold ${liveBytes} bytes, past ${maximumBytes}.`)}function writePackAt(offset2,value){const access=packAccess;if(!access)throw new Error("OPFS filesystem worker is not initialized.");let written=0;while(written<value.byteLength){const count=access.write(value.subarray(written),{at:offset2+written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}packBytes=Math.max(packBytes,offset2+value.byteLength)}function reservePack(end){const access=packAccess;if(!access)throw new Error("OPFS filesystem worker is not initialized.");if(end<=packBytes)return;access.truncate(end);packBytes=end}function appendPack(value){const access=packAccess;if(!access)throw new Error("OPFS filesystem worker is not initialized.");const offset2=packBytes;let written=0;while(written<value.byteLength){const count=access.write(value.subarray(written),{at:offset2+written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}packBytes=offset2+value.byteLength;return offset2}function assertStored(log){const pack=packAccess;if(pack.getSize()>=packBytes&&log.getSize()>=logBytes)return;pack.flush();log.flush();const packSize=pack.getSize(),logSize=log.getSize();if(packSize>=packBytes&&logSize>=logBytes)return;throw Object.assign(new Error(`This browser is keeping less than the tab wrote (the store's pack holds ${packSize} of ${packBytes} bytes, its log ${logSize} of ${logBytes}): its storage is full, as a private window's is well below its quota.`),{name:"QuotaExceededError",code:"ENOSPC"})}function commit(changes,options2={}){const access=logAccess;if(!access||!packAccess)throw new Error("OPFS filesystem worker is not initialized.");if(changes.length===0)return;const body=encoder4.encode(JSON.stringify({packBytes,changes}));if(body.byteLength>MAX_RECORD_BYTES)throw new Error("An OPFS workspace index record exceeds its size limit.");const record=new Uint8Array(RECORD_HEADER_BYTES+body.byteLength);const view=new DataView(record.buffer);view.setUint32(0,body.byteLength,true);view.setUint32(4,fingerprint2(body),true);record.set(body,RECORD_HEADER_BYTES);let written=0;while(written<record.byteLength){const count=access.write(record.subarray(written),{at:logBytes+written});if(count<=0)throw new Error("The OPFS workspace index log could not be written completely.");written+=count}logBytes+=record.byteLength;assertStored(access);if(options2.publish!==false)publishLog();if(performance.now()-lastFlushAt>=FLUSH_WINDOW_MS)flushStorage();else if(flushTimer===void 0)flushTimer=setTimeout(flushStorage,FLUSH_WINDOW_MS)}function flushStorage(){if(flushTimer!==void 0){clearTimeout(flushTimer);flushTimer=void 0}if(mutationFailure)throw mutationFailure;const startedAt=performance.now();packAccess?.flush();logAccess?.flush();lastFlushAt=performance.now();flushes+=1;flushMs+=lastFlushAt-startedAt}function checkpoint(){const previous=checkpointTail;const operation=ownStorageOperation(()=>previous.catch(()=>void 0).then(checkpointStorage));checkpointTail=operation;return operation}async function checkpointStorage(){assertWritable();if(!generation)return;const checkpointGeneration=generation;const access=logAccess;const directory2=await generationDirectory(checkpointGeneration,false);if(!access||access!==logAccess||checkpointGeneration!==generation){throw new Error("OPFS workspace changed generations before its checkpoint could start.")}flushStorage();const checkpointBytes=logBytes;await writeIndexAtomically(directory2,entries,{access,bytes:checkpointBytes,packBytes});if(checkpointGeneration===generation)checkpointPrefix={generation:checkpointGeneration,bytes:checkpointBytes};if(access===logAccess&&checkpointGeneration===generation&&checkpointBytes===logBytes){beginTransition();try{access.truncate(0);access.flush();logBytes=0;checkpointPrefix={generation:checkpointGeneration,bytes:0}}finally{endTransition()}}}function writeGeneration(snapshot){return rewriteGeneration(()=>writeGenerationContents(validateSnapshot(snapshot)))}async function writeGenerationContents(snapshot){const next2=crypto.randomUUID();const directory2=await generationDirectory(next2,true);const handle=await directory2.getFileHandle(PACK_FILE,{create:true});const access=await openSyncAccess(handle,"store");const index2=new Map;let cursor=0;try{for(const entry of snapshot.files){let offset2=0;let length=0;if(entry.type!=="directory"){const value=new Uint8Array(snapshot.pack,entry.offset??0,entry.length??0);offset2=cursor;length=value.byteLength;let written=0;while(written<length){const count=access.write(value.subarray(written),{at:offset2+written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}cursor+=length}index2.set(entry.path,{type:entry.type,mode:entry.mode??(entry.type==="directory"?DIRECTORY_MODE:FILE_MODE),mtimeMs:entry.mtimeMs??Date.now(),offset:offset2,length})}for(const root2 of storeRoots()){if(!index2.has(root2))index2.set(root2,{type:"directory",mode:DIRECTORY_MODE,mtimeMs:Date.now(),offset:0,length:0})}assertEntryCount(index2.size);access.truncate(cursor);access.flush()}finally{access.close()}const prepared=await writeIndexAtomically(directory2,index2);await commitGeneration(next2,directory2,index2,cursor,prepared)}async function compact(){await retain(()=>true)}async function compactWhileWriting(){let transitioning=false;let named=false;let stayed=false;try{await compactWhileWritingIn(()=>{transitioning=true},()=>{named=true},()=>{stayed=true})}finally{if(transitioning&&(named||stayed))endTransition();else if(transitioning)retireClock()}}async function compactWhileWritingIn(began,named,stayed){const next2=crypto.randomUUID();const directory2=await generationDirectory(next2,true);const pack=await openSyncAccess(await directory2.getFileHandle(PACK_FILE,{create:true}),"store");let log;let switched=false;try{log=await openSyncAccess(await directory2.getFileHandle(LOG_FILE,{create:true}),"record of changes");log.truncate(0);const buffer2=new Uint8Array(COPY_BUFFER_BYTES);let cursor=0;const copy2=entry=>{if(entry.pack)return{...entry};if(entry.type==="directory"||entry.length===0)return{...entry,offset:0,length:0};const source=packAccess;if(!source)throw new Error("OPFS filesystem worker is not initialized.");const offset2=cursor;let copied=0;while(copied<entry.length){const span=Math.min(buffer2.byteLength,entry.length-copied);const chunk=buffer2.subarray(0,span);imageReader?.ensure(entry.offset+copied,span);if(source.read(chunk,{at:entry.offset+copied})!==span)throw new Error("An OPFS workspace file could not be read completely.");let written=0;while(written<span){const count=pack.write(chunk.subarray(written),{at:offset2+copied+written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}copied+=span}cursor+=entry.length;const{capacity:_room,...extent}=entry;return{...extent,offset:offset2}};const copies=new Map;let sliceStart=performance.now();for(const[path3,entry]of[...entries]){if(closing||rewritingGeneration)return;if(entries.get(path3)!==entry)continue;copies.set(entry,copy2(entry));if(performance.now()-sliceStart>8){await new Promise(resolve2=>setTimeout(resolve2,0));sliceStart=performance.now()}}if(closing||rewritingGeneration||!packAccess||!logAccess)return;beginTransition();began();const index2=new Map;for(const[path3,entry]of entries)index2.set(path3,copies.get(entry)??copy2(entry));pack.truncate(cursor);pack.flush();log.flush();flushStorage();const previous={pack:packAccess,log:logAccess};packAccess=pack;logAccess=log;logBytes=0;entries=index2;rebuildChildren();packBytes=cursor;generation=next2;generationHandle=directory2;measureBytes();switched=true;const document2=new Map(index2);try{previous.pack.close()}finally{previous.log.close()}try{await writeIndexAtomically(directory2,document2);const state={storageVersion:4,generation:next2,initializedAt:Date.now()};await writeJsonAtomically(await projectDirectory(),STATE_FILE,state)}catch(cause){mutationFailure=new Error("The workspace moved to a compacted generation it could not record; it takes no more writes, which its next open would discard.",{cause});throw mutationFailure}named();await discardGenerations(next2)}finally{if(!switched){stayed();try{pack.close()}finally{log?.close()}await removeGenerationQuietly(await(await projectDirectory()).getDirectoryHandle(GENERATIONS_DIRECTORY),next2)}}}async function remapLinks(moved){assertWritable();beginTransition();try{await remapLinksIn(moved)}finally{endTransition()}}async function remapLinksIn(moved){let changed=false;for(const[path3,entry]of entries){if(!entry.pack||entry.length===0)continue;const offset2=moved.get(entry.offset);if(offset2===void 0)throw new Error(`The shared store no longer holds the bytes of ${path3}.`);if(offset2===entry.offset)continue;entries.set(path3,{...entry,offset:offset2});changed=true}if(changed)await checkpoint()}function retain(keep){return rewriteGeneration(()=>retainGeneration(keep))}async function retainGeneration(keep){const source=packAccess;if(!source)throw new Error("OPFS filesystem worker is not initialized.");const moved=new Map;const next2=crypto.randomUUID();const directory2=await generationDirectory(next2,true);const handle=await directory2.getFileHandle(PACK_FILE,{create:true});const access=await openSyncAccess(handle,"store");const index2=new Map;const buffer2=new Uint8Array(COPY_BUFFER_BYTES);let cursor=0;try{for(const[path3,entry]of entries){if(!keep(path3,entry))continue;if(entry.pack){index2.set(path3,{...entry});continue}if(entry.type==="directory"||entry.length===0){index2.set(path3,{...entry,offset:0,length:0});continue}const offset2=cursor;moved.set(entry.offset,offset2);let copied=0;while(copied<entry.length){const span=Math.min(buffer2.byteLength,entry.length-copied);const chunk=buffer2.subarray(0,span);imageReader?.ensure(entry.offset+copied,span);if(source.read(chunk,{at:entry.offset+copied})!==span){throw new Error("An OPFS workspace file could not be read completely.")}let written=0;while(written<span){const count=access.write(chunk.subarray(written),{at:offset2+copied+written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}copied+=span}cursor+=entry.length;const{capacity:_room,...extent}=entry;index2.set(path3,{...extent,offset:offset2,length:entry.length})}access.truncate(cursor);access.flush()}finally{access.close()}const prepared=await writeIndexAtomically(directory2,index2);await commitGeneration(next2,directory2,index2,cursor,prepared);return moved}async function commitGeneration(name,directory2,index2,bytes2,prepared,rangesDigest){beginTransition();try{await commitGenerationIn(name,directory2,index2,bytes2,prepared,rangesDigest)}finally{endTransition()}}async function commitGenerationIn(name,directory2,index2,bytes2,prepared,rangesDigest){const journal=await directory2.getFileHandle(LOG_FILE,{create:true});const journalAccess=await openSyncAccess(journal,"record of changes");try{journalAccess.truncate(0);journalAccess.flush()}finally{journalAccess.close()}const state={storageVersion:rangesDigest?5:4,generation:name,initializedAt:Date.now(),...rangesDigest?{imageRanges:rangesDigest}:{}};await writeJsonAtomically(await projectDirectory(),STATE_FILE,state);closeGenerationHandles();generation=name;generationInitializedAt=state.initializedAt;imageRangesDigest=rangesDigest;if(prepared){const base=new SharedIndex(prepared.index);entries=new OverlaidIndex(base);children=new OverlaidChildren(base);seedCache=void 0}else{entries=index2;rebuildChildren()}packBytes=bytes2;generationHandle=directory2;await openGenerationHandles(directory2);if(prepared){({liveBytes,linked,linkedBytes}=prepared);deadBytes=Math.max(0,packBytes-liveBytes)}else measureBytes();if(!shared)await discardGenerations(name)}async function installPreparedImage(prepared,json,binary,suppliedRanges,verified=false){assertWritable();if(!shared||projectId!==PACKAGES_STORE)throw new Error("Only the shared package store can reserve immutable image extents.");if(packBytes!==0||[...entries.values()].some(entry=>entry.type!=="directory"))return false;const ranges=validateImageRanges(suppliedRanges);if(ranges.bytes!==prepared.packBytes||prepared.entries>MAX_ENTRIES||prepared.liveBytes>prepared.packBytes||json.byteLength!==prepared.json.raw||binary.byteLength!==prepared.binary.raw||!await matchesDigest(json,prepared.json.sha256,verified)||!await matchesDigest(binary,prepared.binary.sha256,verified)){throw new Error("The image's prepared metadata does not match its document.")}const newline=json.subarray(0,4096).indexOf(10);if(newline<0)throw new Error("The prepared index has no bounded retained header.");const retained=JSON.parse(`${decoder5.decode(json.subarray(0,newline-1))}}`);const measures={packBytes:prepared.packBytes,liveBytes:prepared.liveBytes,linked:0,linkedBytes:0};const header=retained.retainedIndex;if(header.version!==1||header.digest!==await retainedIndexDigestOf(prepared.binary.sha256,measures)||header.packBytes!==measures.packBytes||header.liveBytes!==measures.liveBytes||header.linked!==0||header.linkedBytes!==0){throw new Error("The prepared index's retained measures are inconsistent.")}const index2=new SharedArrayBuffer(binary.byteLength);new Uint8Array(index2).set(binary);if(new SharedIndex(index2).entryCount!==prepared.entries)throw new Error("The prepared index has the wrong number of entries.");return rewriteGeneration(async()=>{const name=crypto.randomUUID();const directory2=await generationDirectory(name,true);const pack=await directory2.getFileHandle(PACK_FILE,{create:true});const access=await openSyncAccess(pack,"immutable image reservation");try{access.truncate(prepared.packBytes);access.flush()}finally{access.close()}const rangeBytes=encoder4.encode(JSON.stringify(ranges));await writeBytesAtomically(directory2,IMAGE_RANGES_FILE,rangeBytes);await writeBytesAtomically(directory2,RETAINED_INDEX_FILE,binary);await writeBytesAtomically(directory2,INDEX_FILE,json);await commitGeneration(name,directory2,new Map,prepared.packBytes,{index:index2,...measures},await indexDigest(rangeBytes));return true})}async function installPreparedProject(prepared,json,binary,verified=false,imageInstalled){assertWritable();if(shared||!options.packages||!imageInstalled&&!options.packages.deferredImage)throw new Error("Prepared project paths require a verified shared image.");if(packBytes!==0||[...entries.values()].some(entry=>entry.type!=="directory"))return false;if(json.byteLength!==prepared.json.raw||binary.byteLength!==prepared.binary.raw||!await matchesDigest(json,prepared.json.sha256,verified)||!await matchesDigest(binary,prepared.binary.sha256,verified)){throw new Error("The image's prepared project does not match its descriptor.")}const newline=json.subarray(0,4096).indexOf(10);if(newline<0)throw new Error("The prepared project has no bounded retained header.");const header=JSON.parse(`${decoder5.decode(json.subarray(0,newline-1))}}`).retainedIndex;const measures={packBytes:0,liveBytes:0,linked:prepared.linked,linkedBytes:prepared.linkedBytes};if(header.version!==1||header.digest!==await retainedIndexDigestOf(prepared.binary.sha256,measures)||header.packBytes!==0||header.liveBytes!==0||header.linked!==prepared.linked||header.linkedBytes!==prepared.linkedBytes){throw new Error("The prepared project's retained measures are inconsistent.")}const index2=new SharedArrayBuffer(binary.byteLength);new Uint8Array(index2).set(binary);if(new SharedIndex(index2).entryCount!==prepared.entries||prepared.entries>maximumEntries)throw new Error("The prepared project has invalid entry bounds.");return rewriteGeneration(async()=>{const name=crypto.randomUUID();const directory2=await generationDirectory(name,true);const pack=await directory2.getFileHandle(PACK_FILE,{create:true});const access=await openSyncAccess(pack,"prepared project");try{access.truncate(0);access.flush()}finally{access.close()}await writeBytesAtomically(directory2,RETAINED_INDEX_FILE,binary);await writeBytesAtomically(directory2,INDEX_FILE,json);if(imageInstalled&&!await imageInstalled)return false;if(!options.packages?.deferredImage)throw new Error("Prepared project paths require a verified shared image.");await commitGeneration(name,directory2,new Map,0,{index:index2,...measures});return true})}async function readSnapshot(){if(closing)throw new Error("This OPFS workspace is closing.");if(!packAccess)throw new Error("OPFS filesystem worker is not initialized.");const files=[];const paths=[...entries.keys()].sort((left,right)=>depth4(left)-depth4(right)||(left<right?-1:1));let total=0;for(const entry of entries.values())if(entry.type!=="directory")total+=entry.length;const pack=new ArrayBuffer(total);const view=new Uint8Array(pack);let cursor=0;for(const path3 of paths){const entry=entries.get(path3);if(entry.type==="directory"){files.push({path:path3,type:"directory",mode:entry.mode,mtimeMs:entry.mtimeMs});continue}if(entry.length>0)view.set(readEntry(entry),cursor);files.push({path:path3,type:entry.type,offset:cursor,length:entry.length,mode:entry.mode,mtimeMs:entry.mtimeMs});cursor+=entry.length}for(const root2 of[...storeRoots()].reverse()){if(!entries.has(root2))files.unshift({path:root2,type:"directory",mode:DIRECTORY_MODE,mtimeMs:Date.now()})}return validateSnapshot({files,pack})}async function writeJsonAtomically(directory2,name,value){await writeBytesAtomically(directory2,name,encoder4.encode(JSON.stringify(value)))}async function writeBytesAtomically(directory2,name,bytes2){const staging=await(await projectDirectory()).getDirectoryHandle(STAGING_DIRECTORY,{create:true});const temporaryName=crypto.randomUUID();const handle=await staging.getFileHandle(temporaryName,{create:true});const access=await openSyncAccess(handle,"index");try{let written=0;while(written<bytes2.byteLength){const count=access.write(bytes2.subarray(written),{at:written});if(count<=0)throw new Error("An OPFS workspace file could not be written completely.");written+=count}access.truncate(bytes2.byteLength);access.flush()}finally{access.close()}try{await handle.move(directory2,name)}finally{await removeEntry(staging,temporaryName,false)}}const RETAINED_INDEX_FILE="index.shared";async function indexDigest(bytes2){const hash3=await crypto.subtle.digest("SHA-256",bytes2);return Array.from(new Uint8Array(hash3),byte=>byte.toString(16).padStart(2,"0")).join("")}async function matchesDigest(bytes2,digest,verified){return verified||await indexDigest(bytes2)===digest}function retainedIndexDigestOf(binaryDigest,measures){const{packBytes:packBytes2,liveBytes:liveBytes2,linked:linked2,linkedBytes:linkedBytes2,journalPrefix}=measures;return indexDigest(encoder4.encode(`${JSON.stringify({packBytes:packBytes2,liveBytes:liveBytes2,linked:linked2,linkedBytes:linkedBytes2,...journalPrefix?{journalPrefix}:{}})}:${binaryDigest}`))}async function retainedIndexDigest(bytes2,measures){const{packBytes:packBytes2,liveBytes:liveBytes2,linked:linked2,linkedBytes:linkedBytes2,journalPrefix}=measures;return indexDigest(encoder4.encode(`${JSON.stringify({packBytes:packBytes2,liveBytes:liveBytes2,linked:linked2,linkedBytes:linkedBytes2,...journalPrefix?{journalPrefix}:{}})}:${await indexDigest(bytes2)}`))}async function writeIndexAtomically(directory2,index2,journal){const document2=indexDocument(index2);if(typeof SharedArrayBuffer==="undefined"||index2.size<1e4){await writeJsonAtomically(directory2,INDEX_FILE,document2);return}const snapshot=new Map(document2.entries);const names2=new Map;const measure={packBytes:journal?.packBytes??0,liveBytes:0,linked:0,linkedBytes:0};for(const[path3,entry]of snapshot){const parent=parentPath(path3);if(parent!==path3){let children2=names2.get(parent);if(!children2){children2=new Set;names2.set(parent,children2)}children2.add(path3.slice(parent.length+1))}if(entry.pack){measure.linked+=1;measure.linkedBytes+=entry.length}else{measure.liveBytes+=entry.length;measure.packBytes=Math.max(measure.packBytes,entry.offset+entry.length)}}let encoded;try{encoded=encodeSharedIndex(snapshot,names2)}catch{await writeJsonAtomically(directory2,INDEX_FILE,document2);return}const json=JSON.stringify(document2.entries);const prefixBytes=journal?new Uint8Array(journal.bytes):void 0;if(prefixBytes&&journal.access.read(prefixBytes,{at:0})!==prefixBytes.byteLength){throw new Error("The checkpoint's journal prefix could not be read completely.")}const journalPrefix=prefixBytes?{bytes:prefixBytes.byteLength,digest:await indexDigest(prefixBytes)}:void 0;const bytes2=new Uint8Array(encoded).slice();const retained={version:journalPrefix?2:1,digest:await retainedIndexDigest(bytes2,{...measure,...journalPrefix?{journalPrefix}:{}}),...measure,...journalPrefix?{journalPrefix}:{}};try{await writeBytesAtomically(directory2,RETAINED_INDEX_FILE,bytes2)}catch{await writeJsonAtomically(directory2,INDEX_FILE,{entries:JSON.parse(json)});return}await writeBytesAtomically(directory2,INDEX_FILE,encoder4.encode(`{"retainedIndex":${JSON.stringify(retained)},
|
|
5893
5893
|
"entries":${json}}`));return{index:encoded,...measure}}async function readRetainedIndex(directory2){if(typeof SharedArrayBuffer==="undefined")return void 0;try{const handle=await directory2.getFileHandle(INDEX_FILE);const access=await openSyncAccess(handle,"index");let prefix2;try{const bytes3=new Uint8Array(Math.min(512,access.getSize()));const count=access.read(bytes3,{at:0});prefix2=decoder5.decode(bytes3.subarray(0,count))}finally{access.close()}const firstLine=prefix2.split("\n",1)[0];if(!firstLine.startsWith('{"retainedIndex":')||!firstLine.endsWith(","))return void 0;const retained=JSON.parse(firstLine.slice(0,-1)+"}").retainedIndex;if(retained.version!==1&&retained.version!==2||!/^[a-f0-9]{64}$/u.test(retained.digest)||![retained.packBytes,retained.liveBytes,retained.linked,retained.linkedBytes].every(n8=>Number.isSafeInteger(n8)&&n8>=0))return void 0;if(retained.version===1&&retained.journalPrefix!==void 0)return void 0;if(retained.version===2&&(!retained.journalPrefix||!Number.isSafeInteger(retained.journalPrefix.bytes)||retained.journalPrefix.bytes<0||!/^[a-f0-9]{64}$/u.test(retained.journalPrefix.digest)))return void 0;const binary=await directory2.getFileHandle(RETAINED_INDEX_FILE);const reader=await openSyncAccess(binary,"index");let bytes2;try{const size=reader.getSize();if(size>256*1024*1024)return void 0;bytes2=new Uint8Array(size);if(reader.read(bytes2,{at:0})!==size)return void 0}finally{reader.close()}if(await retainedIndexDigest(bytes2,retained)!==retained.digest)return void 0;const index2=new SharedArrayBuffer(bytes2.byteLength);new Uint8Array(index2).set(bytes2);const base=new SharedIndex(index2);assertEntryCount(base.entryCount);return{...retained,index:index2}}catch{return void 0}}async function verifiedJournalPrefix(retained){const prefix2=retained.journalPrefix;if(!prefix2||!logAccess||!packAccess||prefix2.bytes>logAccess.getSize()||retained.packBytes>packAccess.getSize())return 0;const bytes2=new Uint8Array(prefix2.bytes);if(logAccess.read(bytes2,{at:0})!==bytes2.byteLength)return 0;return await indexDigest(bytes2)===prefix2.digest?prefix2.bytes:0}async function readJson2(directory2,name){let handle;try{handle=await directory2.getFileHandle(name)}catch(cause){if(notFound(cause))return;throw cause}let text;if(readOnly){text=await(await handle.getFile()).text();try{return JSON.parse(text)}catch(cause){throw new Error(`Invalid OPFS workspace metadata (${name}). Stored data was retained.`,{cause})}}const access=await openSyncAccess(handle,"index");try{const size=access.getSize();const value=new Uint8Array(size);if(size>0&&access.read(value,{at:0})!==size){throw new Error("An OPFS workspace file could not be read completely.")}text=decoder5.decode(value)}finally{access.close()}try{return JSON.parse(text)}catch(cause){throw new Error(`Invalid OPFS workspace metadata (${name}). Stored data was retained.`,{cause})}}async function removeEntry(directory2,name,recursive){try{await directory2.removeEntry(name,{recursive})}catch(cause){if(!notFound(cause))throw cause}}async function removeGenerationQuietly(root2,name){try{await root2.removeEntry(name,{recursive:true})}catch{}}function validateMutation(candidate){if(!candidate||typeof candidate!=="object"||Array.isArray(candidate))throw new Error("Invalid OPFS filesystem mutation.");if(candidate.operation!=="write"&&candidate.operation!=="append"&&candidate.operation!=="write-at"&&candidate.operation!=="mkdir"&&candidate.operation!=="remove"&&candidate.operation!=="rename"&&candidate.operation!=="metadata"&&candidate.operation!=="link"){throw new Error("Invalid OPFS filesystem mutation.")}requiredPath(candidate.path);if(candidate.operation==="rename")requiredPath(candidate.destination);if((candidate.operation==="write"||candidate.operation==="append"||candidate.operation==="write-at")&&!(candidate.content instanceof Uint8Array)){throw new Error("Invalid OPFS file content.")}if(candidate.operation==="write-at"&&(!Number.isSafeInteger(candidate.position)||candidate.position<0)){throw new Error("Invalid OPFS write position.")}validateEntryMetadata(candidate);return candidate}function validateMutationBatch(candidate){if(!Array.isArray(candidate)||candidate.length===0||candidate.length>128){throw new Error("Invalid OPFS filesystem mutation batch.")}return candidate.map(mutation=>validateMutation(mutation))}function validateSnapshot(candidate){if(!candidate||!Array.isArray(candidate.files)||candidate.files.length>maximumEntries||!(candidate.pack instanceof ArrayBuffer)){throw new Error("Invalid OPFS workspace snapshot.")}const paths=new Set;const types3=new Map(storeRoots().map(root2=>[root2,"directory"]));let bytes2=0;for(const entry of candidate.files){if(!entry||typeof entry!=="object")throw new Error("Invalid OPFS workspace snapshot entry.");requiredPath(entry.path);if(entry.type!=="file"&&entry.type!=="directory"&&entry.type!=="symlink"||paths.has(entry.path)){throw new Error("Invalid or duplicate OPFS workspace entry.")}paths.add(entry.path);types3.set(entry.path,entry.type);if(storeRoots().includes(entry.path)&&entry.type!=="directory")throw new Error("The OPFS workspace root must be a directory.");if(entry.type!=="directory"){const offset2=entry.offset??0;const length=entry.length??0;if(!Number.isSafeInteger(offset2)||!Number.isSafeInteger(length)||offset2<0||length<0||length>MAX_FILE_BYTES||offset2+length>candidate.pack.byteLength){throw new Error("Invalid OPFS workspace file.")}bytes2+=length;if(bytes2>maximumBytes)throw new Error("OPFS workspace exceeds its byte limit.")}else if((entry.offset??0)!==0||(entry.length??0)!==0){throw new Error("An OPFS workspace directory cannot contain file bytes.")}validateEntryMetadata(entry)}assertEntryCount(types3.size);for(const entry of candidate.files){if(!storeRoots().includes(entry.path)&&types3.get(parentPath(entry.path))!=="directory"){throw new Error(`An OPFS workspace snapshot has no directory parent for ${entry.path}.`)}}return candidate}function validateEntryMetadata(value){if(value.mode!==void 0&&(!Number.isSafeInteger(value.mode)||value.mode<0||value.mode>4095)){throw new Error("Invalid OPFS file mode.")}if(value.mtimeMs!==void 0&&(typeof value.mtimeMs!=="number"||!Number.isFinite(value.mtimeMs)||value.mtimeMs<0)){throw new Error("Invalid OPFS modification time.")}}function indexDocument(index2){return{entries:[...index2]}}function readIndex(value){const index2=new Map;if(value===void 0)throw new Error("The committed OPFS workspace index is missing. Stored data was retained.");if(!value||typeof value!=="object"||!Array.isArray(value.entries)){throw new Error("Invalid OPFS workspace index.")}const rows=value.entries;assertEntryCount(rows.length);for(const row of rows){if(!Array.isArray(row)||row.length!==2)throw new Error("Invalid OPFS workspace index entry.");const path3=requiredPath(row[0]);if(index2.has(path3))throw new Error("Duplicate OPFS workspace index entry.");index2.set(path3,readIndexEntry(row[1]))}return index2}function readIndexEntry(value){if(!value||typeof value!=="object"||Array.isArray(value))throw new Error("Invalid OPFS workspace index entry.");const candidate=value;if(candidate.type!=="file"&&candidate.type!=="directory"&&candidate.type!=="symlink")throw new Error("Invalid OPFS workspace index entry.");validateEntryMetadata(candidate);if(candidate.mode===void 0||candidate.mtimeMs===void 0)throw new Error("Invalid OPFS workspace index entry.");if(!Number.isSafeInteger(candidate.offset)||candidate.offset<0||!Number.isSafeInteger(candidate.length)||candidate.length<0||candidate.length>MAX_FILE_BYTES){throw new Error("Invalid OPFS workspace index extent.")}if(candidate.pack!==void 0&&candidate.pack!==PACKAGES_STORE)throw new Error("Invalid OPFS workspace index entry.");return{type:candidate.type,mode:candidate.mode,mtimeMs:candidate.mtimeMs,offset:candidate.offset,length:candidate.length,...candidate.pack?{pack:candidate.pack}:{}}}function readIndexRecord(value){if(!value||typeof value!=="object"||Array.isArray(value))throw new Error("Invalid OPFS workspace index record.");const candidate=value;if(!Number.isSafeInteger(candidate.packBytes)||candidate.packBytes<0||!Array.isArray(candidate.changes)){throw new Error("Invalid OPFS workspace index record.")}const changes=[];for(const row of candidate.changes){if(!Array.isArray(row)||row.length!==2)throw new Error("Invalid OPFS workspace index record.");changes.push([requiredPath(row[0]),row[1]===null?null:readIndexEntry(row[1])])}return{packBytes:candidate.packBytes,changes}}function readStorageState(value){if(value===void 0)return;if(!value||typeof value!=="object"||Array.isArray(value))throw new Error("Invalid OPFS workspace state. Stored data was retained.");const candidate=value;if(candidate.storageVersion!==4&&candidate.storageVersion!==5||candidate.storageVersion===5&&(typeof candidate.imageRanges!=="string"||!/^[a-f0-9]{64}$/u.test(candidate.imageRanges))||candidate.storageVersion===4&&candidate.imageRanges!==void 0||typeof candidate.generation!=="string"||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(candidate.generation)||typeof candidate.initializedAt!=="number"||!Number.isFinite(candidate.initializedAt)){throw new Error("Invalid or unsupported OPFS workspace state. Stored data was retained.")}return candidate}function requiredPath(value){if(typeof value!=="string"||rootOf(value)===void 0||value.includes("\0")||value.length>4096){throw new Error("Invalid OPFS workspace path.")}relativePath3(value);return value}function relativePath3(path3){const root2=rootOf(path3);if(root2===void 0)throw new Error("Invalid OPFS workspace path.");const relative3=path3===root2?"":path3.slice(root2.length+1);segmentsOf(relative3);return relative3}function segmentsOf(relative3){const segments=relative3===""?[]:relative3.split("/");if(segments.some(segment=>!segment||segment==="."||segment===".."||segment.includes("\0"))){throw new Error("Invalid OPFS workspace path segment.")}return segments}function parentPath(path3){const parent=path3.slice(0,path3.lastIndexOf("/"));return parent===""||rootOf(parent)===void 0?rootOf(path3)??path3:parent}function depth4(path3){let segments=1;for(let index2=0;index2<path3.length;index2+=1)if(path3.charCodeAt(index2)===47)segments+=1;return segments}function notFound(cause){return cause instanceof DOMException&&cause.name==="NotFoundError"}function fingerprint2(value){let hash3=2166136261;for(let index2=0;index2<value.byteLength;index2+=1){hash3^=value[index2];hash3=Math.imul(hash3,16777619)}return hash3>>>0}if(typeof addEventListener==="function")addEventListener("close",()=>{packAccess?.flush();logAccess?.flush();closeGenerationHandles();releaseLock?.()});function applyNow(mutations,options2={}){assertWritable();if(mutationUndo)throw new Error("An OPFS mutation batch cannot be nested.");for(const mutation of mutations)validateMutation(mutation);if(!mutations.length)return[];return runBatch(changes=>{for(const mutation of mutations)applyMutation(mutation,changes)},options2)}function applyExtentsNow(bytes2,files,options2={}){assertWritable();if(mutationUndo)throw new Error("An OPFS mutation batch cannot be nested.");for(const file2 of files){requiredPath(file2.path);if(file2.type!=="file"&&file2.type!=="directory"&&file2.type!=="symlink")throw new Error(`OPFS extent ${file2.path} has no valid type.`);if(file2.type==="directory")continue;const{offset:offset2,length}=file2;if(offset2===void 0||length===void 0||!Number.isSafeInteger(offset2)||!Number.isSafeInteger(length)||offset2<0||length<0||offset2+length>bytes2.byteLength)throw new Error(`OPFS extent ${file2.path} lies outside its bytes.`);if(length>MAX_FILE_BYTES)throw new Error(`${file2.path} is ${length} bytes; an OPFS workspace file holds at most ${MAX_FILE_BYTES}.`)}if(!files.length)return[];return runBatch(changes=>{const base=bytes2.byteLength>0?appendPack(bytes2):packBytes;for(const file2 of files){const path3=requiredPath(file2.path);createParents(path3,changes);const existing=entries.get(path3);if(file2.type==="directory"){if(existing&&existing.type!=="directory")throw new Error(`OPFS path is a file: ${path3}`);setEntry(path3,{type:"directory",mode:file2.mode,mtimeMs:file2.mtimeMs,offset:0,length:0},changes);continue}if(existing?.type==="directory")throw new Error(`OPFS write target is a directory: ${path3}`);assertBounds(path3,file2.length);setEntry(path3,{type:file2.type,mode:file2.mode,mtimeMs:file2.mtimeMs,offset:base+file2.offset,length:file2.length},changes)}},options2)}function runBatch(apply,options2){if(!packAccess||!logAccess)throw new Error("OPFS filesystem worker is not initialized.");const before={packBytes,logBytes,liveBytes,deadBytes,rewrites,rewrittenBytes,linked,linkedBytes};const undo=new Map;mutationUndo=undo;const overwritten=[];bytesUndo=overwritten;const changes=[];try{apply(changes);assertWorkspaceQuota();commit(changes,{publish:!options2.durable});if(options2.durable){flushStorage();publishLog()}maintain();return changes}catch(cause){const published=clockView!==void 0&&!clockRetired&&Atomics.load(clockView,STORE_CLOCK_LOG)!==before.logBytes;if(published)beginTransition();for(const[path3,entry]of undo){if(entry===void 0)entries.delete(path3);else entries.set(path3,entry)}rebuildChildren();try{for(let index2=overwritten.length-1;index2>=0;index2-=1)writePackAt(overwritten[index2][0],overwritten[index2][1])}catch(restoreCause){cause=new AggregateError([cause,restoreCause],"OPFS could not restore bytes a failed batch wrote over.")}({packBytes,logBytes,liveBytes,deadBytes,rewrites,rewrittenBytes,linked,linkedBytes}=before);if(flushTimer!==void 0){clearTimeout(flushTimer);flushTimer=void 0}try{logAccess.truncate(logBytes);logAccess.flush();packAccess.truncate(packBytes);packAccess.flush()}catch(rollbackCause){retireClock();mutationFailure=new AggregateError([cause,rollbackCause],"OPFS could not roll back a failed batch; reopen this workspace before writing again.");throw mutationFailure}if(published)endTransition();throw cause}finally{mutationUndo=void 0;bytesUndo=void 0}}function close2(){if(initializing){openingController?.abort(new DOMException("The workspace was closed while opening.","AbortError"));return}if(closing)return;closing=true;if(activeStorageOperations!==0)return;closeStorage()}function closeStorage(){retireClock();try{flushStorage()}finally{try{closeGenerationHandles()}finally{const release2=releaseLock;releaseLock=void 0;project=void 0;try{release2?.()}finally{if(options.ownsPackages)options.packages?.close()}}}}return{initialize:initialize2,opened:()=>project!==void 0&&!closing,stats:()=>({entries:entries.size,liveBytes,deadBytes,packBytes,rewrites,rewrittenBytes,linked,linkedBytes,flushes,flushMs}),applyNow,applyExtentsNow,close:close2,readExtent,descendants,retain,remapLinks,childrenOf:path3=>[...children.get(path3)??[]].sort(),refresh,follow,clock,readerSeed,imageCompletionSeed,imageLine:()=>imageReader?.lineForReader()??options.packages?.imageLine(),imageStartupSet:()=>imageReader?.readDigests()??imageReader?.completedDigests()??[],prefetchImage:(digests,streams2)=>imageReader?.prefetch(digests,streams2)??{queued:0,done:Promise.resolve()},seeded:()=>startedFromSeed,get logBytes(){return logBytes},checkpoint,deferMaintenance,installPreparedImage,installPreparedProject,get deferredImage(){return deferredImage},get imagePlacedAt(){return project&&imageRangesDigest?generationInitializedAt:void 0},get entries(){return entries},get packBytes(){return packBytes},read,readRange,snapshot:readSnapshot,replace:writeGeneration,apply:applyMutations,flush:()=>{if(closing||!project)throw new Error("This OPFS workspace is not open.");if(rewritingGeneration)throw new Error("Wait for the OPFS generation replacement before flushing it.");flushStorage()},validateSnapshot,validateMutationBatch}}async function openPackReader(environment,projectId,seed,imageLine){const packages2=createPackStore(environment);await packages2.initialize(PACKAGES_STORE,{readOnly:true,extentsOnly:true,...seed?.packagesImage?{imageCompletion:seed.packagesImage,...imageLine?{imageLine}:{}}:{}});const project=createPackStore(environment,{packages:packages2,ownsPackages:true});let opened;try{opened=await project.initialize(projectId,{readOnly:true,...seed?{seed}:{}})}catch(cause){project.close();packages2.close();throw cause}if(!opened&&!project.opened()){packages2.close();return void 0}return project}var SWEEP_COMPACTION_BYTES=64*1024*1024;var SWEEP_INTERVAL_MS=24*60*60*1e3;var SWEEP_MARK_FILE="sweep.json";var SWEEP_GRACE_MS=14*24*60*60*1e3;async function sweepSharedPackages(environment,progress){const locks=environment.navigator.locks;if(!locks)return void 0;return locks.request(PACKAGES_OPEN_LOCK,{mode:"exclusive",ifAvailable:true},async lock=>{if(!lock)return void 0;const root2=await environment.navigator.storage.getDirectory();let base;try{base=await root2.getDirectoryHandle(BASE_DIRECTORY)}catch{return void 0}let packagesDirectory;try{packagesDirectory=await base.getDirectoryHandle(PACKAGES_STORE)}catch{return void 0}const lastSweep=await readSweepMark(packagesDirectory);if(lastSweep!==void 0&&Date.now()-lastSweep<SWEEP_INTERVAL_MS)return void 0;const projectIds=[];for await(const[name,handle]of base.entries()){if(handle.kind==="directory"&&name!==PACKAGES_STORE&&name!==STAGING_DIRECTORY&&!name.startsWith(TREE_STORE_PREFIX))projectIds.push(name)}const shared=createPackStore(environment);if(!await shared.initialize(PACKAGES_STORE,{shared:true})){shared.close();return void 0}const projects=[];const referenced=new Set;try{for(const[index2,id2]of projectIds.entries()){progress?.(`sweeping the origin's packages, project ${index2+1} of ${projectIds.length}`);const project=createPackStore(environment,{packages:shared});try{const opened=await project.initialize(id2);if(!opened&&!project.opened()){project.close();continue}}catch{project.close();continue}for(const entry of project.entries.values())if(entry.pack&&entry.length>0)referenced.add(entry.offset);projects.push(project)}const kept=new Set;const now=Date.now();for(const[path3,entry]of shared.entries){const unit=unitOf(path3);if(unit===void 0)continue;const linked=entry.type!=="directory"&&entry.length>0&&referenced.has(entry.offset);const recent=path3===`${PACKAGES_ROOT}/${unit}`&&now-Math.max(entry.mtimeMs,shared.imagePlacedAt??0)<SWEEP_GRACE_MS;if(linked||recent)kept.add(unit)}let packagesDropped=0;let bytesDropped=0;const units=new Set;for(const[path3,entry]of shared.entries){const unit=unitOf(path3);if(unit===void 0)continue;units.add(unit);if(!kept.has(unit)&&entry.type!=="directory")bytesDropped+=entry.length}if([...units].some(unit=>!kept.has(unit)&&unit!==".layers"&&unit!==".layers-deferred")){kept.delete(".layers");kept.delete(".layers-deferred")}for(const unit of units)if(!kept.has(unit))packagesDropped+=1;const keep=path3=>{const unit=unitOf(path3);return unit===void 0||kept.has(unit)};let compacted=false;if(packagesDropped>0){if(bytesDropped>=SWEEP_COMPACTION_BYTES||bytesDropped*4>=shared.packBytes){progress?.("sweeping the origin's packages, compacting");const moved=await shared.retain(keep);for(const project of projects)await project.remapLinks(moved);compacted=true}else{const removals=[];for(const unit of units)if(!kept.has(unit))removals.push({operation:"remove",path:`${PACKAGES_ROOT}/${unit}`});for(let offset2=0;offset2<removals.length;offset2+=128)await shared.apply(removals.slice(offset2,offset2+128))}}await writeSweepMark(packagesDirectory);return{projects:projects.length,packagesKept:kept.size,packagesDropped,bytesDropped,compacted}}finally{for(const project of projects)project.close();shared.close()}})}async function readSweepMark(directory2){try{const file2=await(await directory2.getFileHandle(SWEEP_MARK_FILE)).getFile();const mark=JSON.parse(await file2.text());return typeof mark.at==="number"&&Number.isFinite(mark.at)?mark.at:void 0}catch{return void 0}}async function writeSweepMark(directory2){const handle=await directory2.getFileHandle(SWEEP_MARK_FILE,{create:true});const writable=await handle.createWritable();await writable.write(JSON.stringify({at:Date.now()}));await writable.close()}function unitOf(path3){if(!path3.startsWith(`${PACKAGES_ROOT}/`))return void 0;const parts=path3.slice(PACKAGES_ROOT.length+1).split("/");if(parts[0]===".modules")return parts.length>=4?parts.slice(0,4).join("/"):void 0;if(parts[0]===".programs")return parts.length>=2?parts.slice(0,2).join("/"):void 0;if(parts[0]===".browser-packs"){if(parts[1]==="objects"&&parts.length>=3)return parts.slice(0,3).join("/");if(parts[1]==="locks"&&parts.length>=3)return parts.slice(0,3).join("/");return void 0}const packageLength=parts[0]?.startsWith("@")?2:1;return parts.length>=packageLength?parts.slice(0,packageLength).join("/"):void 0}var LocalChildren=class{map=new Map;get(path3){return this.map.get(path3)}mutable(path3){let names2=this.map.get(path3);if(!names2){names2=new Set;this.map.set(path3,names2)}return names2}delete(path3){this.map.delete(path3)}};function storeImportMutations(store,tree2,inside){const root2=normalize2(tree2.root);if(root2!==tree2.root||root2.includes("\0")||root2.includes("\\")||root2.length>4096)throw new Error("Invalid workspace import root.");if(!inside(root2))return false;if(!Array.isArray(tree2.entries)||!tree2.entries.length||tree2.entries.length>5e4)throw new Error("Invalid workspace import entry count.");const incoming2=new Map;let bytes2=0;for(const entry of tree2.entries){if(!entry||typeof entry.path!=="string"||normalize2(entry.path)!==entry.path||entry.path.includes("\0")||entry.path.includes("\\")||entry.path.length>4096||entry.path!==root2&&!entry.path.startsWith(`${root2}/`)||incoming2.has(entry.path)||entry.type!=="file"&&entry.type!=="directory"||!Number.isInteger(entry.mode)||entry.mode<0||entry.mode>4095||!Number.isFinite(entry.mtimeMs)||entry.mtimeMs<0)throw new Error("Invalid workspace import entry.");if(entry.type==="file"){if(!(entry.bytes instanceof Uint8Array))throw new Error("Workspace import file has no bytes.");bytes2+=entry.bytes.byteLength;if(bytes2>128*1024*1024)throw new Error("Workspace import exceeds its byte limit.")}incoming2.set(entry.path,entry)}if(incoming2.get(root2)?.type!=="directory")throw new Error("Workspace import has no root directory.");for(const entry of incoming2.values()){if(entry.path!==root2&&incoming2.get(parentOf(entry.path))?.type!=="directory"){throw new Error(`Workspace import has no parent directory for ${entry.path}.`)}const current3=store.entries.get(entry.path);if(!tree2.replace&¤t3&¤t3.type!==entry.type)throw new Error(`Workspace import conflicts with ${entry.path}.`)}const heldRoot=store.entries.get(root2);if(tree2.requireEmpty&&heldRoot&&(heldRoot.type!=="directory"||store.childrenOf(root2).length>0)){throw new Error(`Workspace import target is not empty: ${root2}`)}const mutations=tree2.replace?[{operation:"remove",path:root2}]:[];for(const entry of[...incoming2.values()].sort((left,right)=>depth(left.path)-depth(right.path))){mutations.push(entry.type==="directory"?{operation:"mkdir",path:entry.path,mode:entry.mode,mtimeMs:entry.mtimeMs}:{operation:"write",path:entry.path,content:entry.bytes,mode:entry.mode,mtimeMs:entry.mtimeMs})}return mutations}function normalize2(path3){if(path3.startsWith("/")&&(path3.length===1||!path3.endsWith("/"))&&!path3.includes("//")&&!path3.includes("/./")&&!path3.includes("/../")&&!path3.endsWith("/.")&&!path3.endsWith("/.."))return path3;const parts=[];for(const part of`/${path3}`.split("/")){if(!part||part===".")continue;if(part==="..")parts.pop();else parts.push(part)}return`/${parts.join("/")}`}function parentOf(path3){const at3=path3.lastIndexOf("/");return at3<=0?"/":path3.slice(0,at3)}function depth(path3){let segments=1;for(let index2=0;index2<path3.length;index2+=1)if(path3.charCodeAt(index2)===47)segments+=1;return segments}var DIRECTORY_MODE2=493;var FILE_MODE2=420;var PackedVirtualFS=class extends VirtualFS{storeRoots;store;changeListeners=new Set;deleteListeners=new Set;storeWatchers=new Map;textDecoder=new TextDecoder;textEncoder=new TextEncoder;constructor(store,roots=PROJECT_ROOTS,options={}){super();this.store=store;this.storeRoots=typeof roots==="string"?[roots]:roots;if(options.reader===true)return;for(const root2 of this.storeRoots){if(store.entries.has(root2))continue;try{store.applyNow([{operation:"mkdir",path:root2,mode:DIRECTORY_MODE2,mtimeMs:Date.now()}])}catch{}}}on(event,listener){if(event==="change")this.changeListeners.add(listener);else if(event==="delete")this.deleteListeners.add(listener);super.on(event,listener);return this}off(event,listener){if(event==="change")this.changeListeners.delete(listener);else if(event==="delete")this.deleteListeners.delete(listener);super.off(event,listener);return this}existsSync(path3){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized))return super.existsSync(normalized);return this.store.entries.has(normalized)}statSync(path3,options){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized))return super.statSync(normalized,options);const entry=this.store.entries.get(normalized);if(!entry){if(options?.throwIfNoEntry===false)return void 0;throw nodeError("ENOENT","stat",normalized)}return statsOf(entry)}lstatSync(path3,options){const normalized=normalize3(path3);const resolved=this.packedResolve(normalized,true);if(!this.packedInside(resolved))return super.lstatSync(resolved,options);const entry=this.store.entries.get(resolved);if(!entry){if(options?.throwIfNoEntry===false)return void 0;throw nodeError("ENOENT","lstat",resolved)}return statsOf(entry)}readFileSync(path3,encoding){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized))return encoding?super.readFileSync(normalized,encoding):super.readFileSync(normalized);const entry=this.store.entries.get(normalized);if(!entry)throw nodeError("ENOENT","open",normalized);if(entry.type!=="file")throw nodeError("EISDIR","read",normalized);const bytes2=this.store.read(normalized);return encoding?this.textDecoder.decode(bytes2):bytes2}readdirSync(path3){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized))return super.readdirSync(normalized);const entry=this.store.entries.get(normalized);if(!entry)throw nodeError("ENOENT","scandir",normalized);if(entry.type!=="directory")throw nodeError("ENOTDIR","scandir",normalized);return this.store.childrenOf(normalized)}holds(path3,keepLast=false){return this.packedInside(this.packedResolve(normalize3(path3),keepLast))}realpathSync(path3){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized))return super.realpathSync(normalized);if(!this.store.entries.has(normalized))throw nodeError("ENOENT","realpath",normalized);return normalized}accessSync(path3,mode){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized)){super.accessSync(normalized,mode);return}if(!this.store.entries.has(normalized))throw nodeError("ENOENT","access",normalized)}symlinkSync(target,path3){const normalized=this.packedResolve(normalize3(path3),true);if(!this.packedInside(normalized)){super.symlinkSync(target,normalized);return}const parent=this.store.entries.get(parentOf2(normalized));if(!parent||parent.type!=="directory")throw nodeError("ENOENT","symlink",normalized);if(this.store.entries.has(normalized))throw nodeError("EEXIST","symlink",normalized);this.packedApply([{operation:"write",path:normalized,content:this.textEncoder.encode(String(target)),symlink:true,mode:511,mtimeMs:Date.now()}])}readlinkSync(path3){const normalized=this.packedResolve(normalize3(path3),true);if(!this.packedInside(normalized))return super.readlinkSync(normalized);const entry=this.store.entries.get(normalized);if(!entry)throw nodeError("ENOENT","readlink",normalized);if(entry.type!=="symlink")throw nodeError("EINVAL","readlink",normalized);return this.textDecoder.decode(this.store.read(normalized))}writeFileSync(path3,data2){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized)){super.writeFileSync(path3,data2);return}const existing=this.store.entries.get(normalized);if(existing?.type==="directory")throw nodeError("EISDIR","open",normalized);const content=typeof data2==="string"?this.textEncoder.encode(data2):data2;this.packedAppeared(this.packedApply([{operation:"write",path:normalized,content,mode:existing?.mode??FILE_MODE2,mtimeMs:Date.now()}]));this.packedChanged(normalized,typeof data2==="string"?data2:void 0,existing===void 0?"rename":"change")}appendFileSync(path3,data2){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized)){super.appendFileSync(path3,data2);return}const existing=this.store.entries.get(normalized);if(existing?.type==="directory")throw nodeError("EISDIR","open",normalized);const content=typeof data2==="string"?this.textEncoder.encode(data2):data2;this.packedAppeared(this.packedApply([{operation:"append",path:normalized,content,mode:existing?.mode??FILE_MODE2,mtimeMs:Date.now()}]));this.packedChanged(normalized,void 0,existing===void 0?"rename":"change")}writeAtSync(path3,data2,position){const normalized=this.packedResolve(normalize3(path3));if(!this.packedInside(normalized)){super.writeAtSync(path3,data2,position);return}const existing=this.store.entries.get(normalized);if(existing?.type==="directory")throw nodeError("EISDIR","open",normalized);this.packedAppeared(this.packedApply([{operation:"write-at",path:normalized,content:data2,position,mode:existing?.mode??FILE_MODE2,mtimeMs:Date.now()}]));this.packedChanged(normalized,void 0,existing===void 0?"rename":"change")}mkdirSync(path3,options){const normalized=this.packedResolve(normalize3(path3),true);if(!this.packedInside(normalized)){super.mkdirSync(path3,options);return}const existing=this.store.entries.get(normalized);if(existing){if(options?.recursive&&existing.type==="directory")return;throw nodeError("EEXIST","mkdir",normalized)}if(!options?.recursive){const parent=parentOf2(normalized);const above=this.store.entries.get(parent);if(!above&&this.packedInside(parent))throw nodeError("ENOENT","mkdir",normalized);if(above&&above.type!=="directory")throw nodeError("ENOTDIR","mkdir",normalized)}this.packedAppeared(this.packedApply([{operation:"mkdir",path:normalized,mode:DIRECTORY_MODE2,mtimeMs:Date.now()}]))}unlinkSync(path3){const normalized=this.packedResolve(normalize3(path3),true);if(!this.packedInside(normalized)){super.unlinkSync(path3);return}const entry=this.store.entries.get(normalized);if(!entry)throw nodeError("ENOENT","unlink",normalized);if(entry.type==="directory")throw nodeError("EISDIR","unlink",normalized);this.packedApply([{operation:"remove",path:normalized,recursive:false}]);this.packedDeleted(normalized)}rmdirSync(path3){const normalized=normalize3(path3);if(!this.packedInside(normalized)){super.rmdirSync(path3);return}const entry=this.store.entries.get(normalized);if(!entry)throw nodeError("ENOENT","rmdir",normalized);if(entry.type!=="directory")throw nodeError("ENOTDIR","rmdir",normalized);if(this.store.childrenOf(normalized).length>0)throw nodeError("ENOTEMPTY","rmdir",normalized);this.packedApply([{operation:"remove",path:normalized,recursive:true}]);this.packedDeleted(normalized)}linkShared(source,path3){this.linkSharedBatch([{source,path:path3}])}linkSharedBatch(links){const mutations=links.map(({source,path:path3})=>{const normalized=normalize3(path3);if(!this.packedInside(normalized))throw new Error(`A shared path can only be linked inside ${this.storeRoots.join(" or ")}.`);return{operation:"link",path:normalized,source}});const startedAt=performance.now();const changes=this.store.applyNow(mutations);const indexedAt=performance.now();this.linkTiming.indexMs+=indexedAt-startedAt;for(const[changed,entry]of changes){if(entry===null){this.packedDeleted(changed);continue}if(entry.type==="file")this.packedChanged(changed,void 0)}this.linkTiming.announceMs+=performance.now()-indexedAt}linkTiming={indexMs:0,announceMs:0};chmodSync(path3,mode){const normalized=normalize3(path3);if(!this.packedInside(normalized))return;if(!this.store.entries.has(normalized))throw nodeError("ENOENT","chmod",normalized);this.packedApply([{operation:"metadata",path:normalized,mode:mode&4095}])}utimesSync(path3,_atime,mtime){const normalized=normalize3(path3);if(!this.packedInside(normalized))return;if(!this.store.entries.has(normalized))throw nodeError("ENOENT","utimes",normalized);this.packedApply([{operation:"metadata",path:normalized,mtimeMs:typeof mtime==="number"?mtime:mtime.getTime()}])}renameSync(oldPath,newPath){const source=normalize3(oldPath);const destination=normalize3(newPath);const sourceInside=this.packedInside(source);const destinationInside=this.packedInside(destination);if(!sourceInside&&!destinationInside){super.renameSync(oldPath,newPath);return}if(sourceInside&&destinationInside){if(!this.store.entries.has(source))throw nodeError("ENOENT","rename",source);const moved=[source];for(let index2=0;index2<moved.length;index2+=1){const path3=moved[index2];if(this.store.entries.get(path3)?.type!=="directory")continue;for(const name of this.store.childrenOf(path3))moved.push(`${path3}/${name}`)}this.packedApply([{operation:"rename",path:source,destination}]);for(const path3 of moved)this.packedDeleted(path3);for(const path3 of moved)this.packedChanged(`${destination}${path3.slice(source.length)}`,void 0);return}this.packedCopyTree(source,destination);this.packedRemoveTree(source)}copyFileSync(src,dest){this.writeFileSync(dest,this.readFileSync(src))}watchedPaths(){const paths=[];for(const[path3,set]of this.storeWatchers)if(set.size>0)paths.push({path:path3,recursive:[...set].some(entry=>entry.recursive)});const overlay=this.watchers;for(const[path3,set]of overlay??[]){const live2=[...set].filter(entry=>!entry.closed);if(live2.length>0)paths.push({path:path3,recursive:live2.some(entry=>entry.recursive===true)})}return paths}watch(filename,optionsOrListener,listener){const normalized=normalize3(filename);const inside=this.packedInside(normalized);const above=this.storeRoots.some(root2=>normalized==="/"||root2.startsWith(normalized+"/"));if(!inside&&!above)return super.watch(filename,optionsOrListener,listener);const overlay=inside?void 0:super.watch(filename,optionsOrListener,listener);const options=typeof optionsOrListener==="function"?{}:optionsOrListener??{};const actual=typeof optionsOrListener==="function"?optionsOrListener:listener;const entry={listener:actual??(()=>void 0),recursive:options.recursive??false};let set=this.storeWatchers.get(normalized);if(!set){set=new Set;this.storeWatchers.set(normalized,set)}set.add(entry);const watcher={close:()=>{set.delete(entry);overlay?.close()},ref(){overlay?.ref();return this},unref(){overlay?.unref();return this}};return watcher}toSnapshot(){const base=super.toSnapshot();const files=base.files.filter(entry=>!this.packedInside(entry.path));const paths=[...this.store.entries.keys()].sort((left,right)=>depth2(left)-depth2(right)||(left<right?-1:1));for(const path3 of paths){const entry=this.store.entries.get(path3);const metadata={mode:entry.mode&4095,mtimeMs:entry.mtimeMs};if(entry.type==="directory")files.push({path:path3,type:"directory",...metadata});else if(entry.type==="symlink")files.push({path:path3,type:"symlink",target:this.textDecoder.decode(this.store.read(path3)),...metadata});else files.push({path:path3,type:"file",content:base642(this.store.read(path3)),...metadata})}return{...base,files}}packedInside(path3){return this.storeRoots.some(root2=>path3===root2||path3.startsWith(`${root2}/`))}typeOf(path3){const entries=this.store.entries;return entries.typeOf?entries.typeOf(path3):entries.get(path3)?.type}packedResolve(path3,keepLast=false){if(!this.packedInside(path3))return path3;const direct=this.typeOf(path3);if(direct?direct!=="symlink"||keepLast:this.typeOf(parentOf2(path3))==="directory")return path3;let current3=path3;for(let hops=0;hops<40;hops+=1){const parts=current3.split("/").filter(Boolean);let prefix2="";let followed=false;for(let index2=0;index2<parts.length;index2+=1){prefix2=`${prefix2}/${parts[index2]}`;if(!this.packedInside(prefix2))return current3;if(keepLast&&index2===parts.length-1)break;const type2=this.typeOf(prefix2);if(!type2)return current3;if(type2!=="symlink")continue;const target=this.textDecoder.decode(this.store.read(prefix2));const base=target.startsWith("/")?target:`${parentOf2(prefix2)}/${target}`;current3=normalize3(`${base}/${parts.slice(index2+1).join("/")}`.replace(/\/$/u,""));followed=true;break}if(!followed)return current3}throw nodeError("ELOOP","stat",path3)}packedApply(mutations,options){return this.store.applyNow(mutations,options)}applyBatch(mutations){for(const mutation of mutations){if(typeof mutation.path!=="string"||!this.packedInside(normalize3(mutation.path))){throw new Error(`A batch can only be applied inside ${this.storeRoots.join(" or ")}.`)}}const changes=this.packedApply(mutations);for(const[path3,entry]of changes){if(entry===null)this.packedDeleted(path3);else if(entry.type==="file")this.packedChanged(path3,void 0)}}importTree(tree2){const mutations=storeImportMutations(this.store,tree2,path3=>this.packedInside(path3));if(!mutations)return false;const changes=this.packedApply(mutations,{durable:true});for(const[path3,entry]of changes){try{if(entry===null)this.packedDeleted(path3);else if(entry.type==="file")this.packedChanged(path3,void 0)}catch(cause){console.error("Workspace import observer failed.",cause)}}return true}packedAppeared(changes){for(const[path3,entry]of changes)if(entry!==null&&entry.type==="directory")this.packedNotifyWatchers(path3,"rename")}packedChanged(path3,text,event="change"){for(const listener of this.changeListeners)listener(path3,text??"");this.packedNotifyWatchers(path3,event)}packedDeleted(path3){for(const listener of this.deleteListeners)listener(path3);this.packedNotifyWatchers(path3,"rename")}packedNotifyWatchers(path3,event){for(const[watched,set]of this.storeWatchers){if(path3!==watched&&watched!=="/"&&!path3.startsWith(`${watched}/`))continue;const relative3=path3===watched?path3.slice(path3.lastIndexOf("/")+1):path3.slice(watched==="/"?1:watched.length+1);for(const entry of set){if(path3!==watched&&!entry.recursive&&relative3.includes("/"))continue;entry.listener(event,relative3)}}}packedCopyTree(source,destination){const stat2=this.statSync(source);if(stat2.isDirectory()){this.mkdirSync(destination,{recursive:true});for(const name of this.readdirSync(source))this.packedCopyTree(`${source}/${name}`,`${destination}/${name}`);return}this.writeFileSync(destination,this.readFileSync(source))}packedRemoveTree(path3){const stat2=this.statSync(path3);if(stat2.isDirectory()){for(const name of this.readdirSync(path3))this.packedRemoveTree(`${path3}/${name}`);this.rmdirSync(path3);return}this.unlinkSync(path3)}};function statsOf(entry){const isFile2=entry.type==="file";const isLink=entry.type==="symlink";const when=new Date(entry.mtimeMs);return{isFile:()=>isFile2,isDirectory:()=>entry.type==="directory",isSymbolicLink:()=>isLink,isBlockDevice:()=>false,isCharacterDevice:()=>false,isFIFO:()=>false,isSocket:()=>false,size:entry.type==="directory"?0:entry.length,mode:(isFile2?32768:isLink?40960:16384)|entry.mode,mtime:when,atime:when,ctime:when,birthtime:when,mtimeMs:entry.mtimeMs,atimeMs:entry.mtimeMs,ctimeMs:entry.mtimeMs,birthtimeMs:entry.mtimeMs,nlink:1,uid:0,gid:0,dev:0,ino:0,rdev:0,blksize:4096,blocks:Math.ceil((isFile2?entry.length:0)/512)}}function nodeError(code3,syscall,path3){const messages3={ENOENT:"no such file or directory",ENOTDIR:"not a directory",EISDIR:"is a directory",EEXIST:"file already exists",ENOTEMPTY:"directory not empty",EINVAL:"invalid argument",ELOOP:"too many symbolic links encountered"};const errno={ENOENT:-2,ENOTDIR:-20,EISDIR:-21,EEXIST:-17,ENOTEMPTY:-39,EINVAL:-22,ELOOP:-40};return Object.assign(new Error(`${code3}: ${messages3[code3]}, ${syscall} '${path3}'`),{code:code3,errno:errno[code3],syscall,path:path3})}function normalize3(path3){if(path3.startsWith("/")&&(path3.length===1||!path3.endsWith("/"))&&!path3.includes("//")&&!path3.includes("/./")&&!path3.includes("/../")&&!path3.endsWith("/.")&&!path3.endsWith("/.."))return path3;const parts=[];for(const part of`/${path3}`.split("/")){if(!part||part===".")continue;if(part==="..")parts.pop();else parts.push(part)}return`/${parts.join("/")}`}function parentOf2(path3){const at3=path3.lastIndexOf("/");return at3<=0?"/":path3.slice(0,at3)}function base642(value){let binary="";for(let offset2=0;offset2<value.byteLength;offset2+=32768){binary+=String.fromCharCode(...value.subarray(offset2,Math.min(value.byteLength,offset2+32768)))}return btoa(binary)}function depth2(path3){let segments=1;for(let index2=0;index2<path3.length;index2+=1)if(path3.charCodeAt(index2)===47)segments+=1;return segments}function storeReads(grant){const{opening,clock:buffer2}=grant;const clock=new Int32Array(buffer2);let reader;let local2;let synced=-1;void opening.then(opened=>{if(!opened)return;reader=opened;local2=new PackedVirtualFS(opened,PROJECT_ROOTS,{reader:true});const openedAt=grant.openedAt;if((openedAt&1)===0&&Atomics.load(clock,STORE_CLOCK_EPOCH)===openedAt)synced=openedAt},()=>void 0);let resyncing=false;let retryAt=0;const resync=epoch=>{if(resyncing||!reader||performance.now()<retryAt)return;resyncing=true;reader.refresh({whole:true}).then(()=>{if(Atomics.load(clock,STORE_CLOCK_EPOCH)===epoch)synced=epoch},()=>{retryAt=performance.now()+1e3}).finally(()=>{resyncing=false})};return(path3,keepLast,read)=>{if(!reader||!local2)return void 0;const epoch=Atomics.load(clock,STORE_CLOCK_EPOCH);if(resyncing)return void 0;if(epoch!==synced){if((epoch&1)===0)resync(epoch);return void 0}const published=Atomics.load(clock,STORE_CLOCK_LOG);if(reader.logBytes<published){try{reader.follow()}catch{return void 0}if(reader.logBytes<published)return void 0}let value;try{if(!local2.holds(path3,keepLast))return void 0;value=read(local2)}catch(cause){if(Atomics.load(clock,STORE_CLOCK_EPOCH)!==epoch||typeof cause?.code!=="string")return void 0;throw cause}if(Atomics.load(clock,STORE_CLOCK_EPOCH)!==epoch)return void 0;return{value}}}function validateNodePreparedFiles(files,limits){if(!Number.isSafeInteger(limits.maxBytes)||limits.maxBytes<1||!Number.isSafeInteger(limits.maxEntries)||limits.maxEntries<1||!Array.isArray(files)||files.length>limits.maxEntries)throw new Error("Invalid Node prepared-file limits or count.");const paths=new Map([["/","directory"]]);const encoder7=new TextEncoder;let bytes2=1;for(const file2 of files){if(!file2||typeof file2.path!=="string"||file2.path.length>limits.maxBytes||!file2.path.startsWith("/")||file2.path.endsWith("/")||file2.path.includes("\0")||file2.path.slice(1).split("/").some(part=>!part||part==="."||part==="..")||!(file2.bytes instanceof Uint8Array)||paths.has(file2.path))throw new Error("Invalid Node prepared file.");let parent="";for(const part of file2.path.slice(1).split("/").slice(0,-1)){parent+=`/${part}`;if(paths.get(parent)==="file")throw new Error("Node prepared file conflicts with a directory.");if(!paths.has(parent)){paths.set(parent,"directory");bytes2+=encoder7.encode(parent).byteLength}}paths.set(file2.path,"file");bytes2+=encoder7.encode(file2.path).byteLength+file2.bytes.byteLength;if(paths.size>limits.maxEntries)throw new Error("Node prepared files exceed their entry limit.");if(bytes2>limits.maxBytes)throw new Error("Node prepared files exceed their byte limit.")}}function captureNodePreparedFiles(filesystem,limits){validateNodePreparedFiles([],limits);const paths=["/"];const files=[];const encoder7=new TextEncoder;let entries=0,bytes2=0;while(paths.length){const path3=paths.pop();if(++entries>limits.maxEntries)throw new Error("Node prepared files exceed their entry limit.");const stat2=filesystem.lstatSync(path3);bytes2+=encoder7.encode(path3).byteLength;if(stat2.isFile()){bytes2+=stat2.size;files.push(path3)}else if(stat2.isDirectory()){const names2=filesystem.readdirSync(path3);if(entries+paths.length+names2.length>limits.maxEntries)throw new Error("Node prepared files exceed their entry limit.");for(const name of names2)paths.push(`${path3==="/"?"":path3}/${name}`)}else throw new Error("Node prepared files cannot contain symbolic links.");if(bytes2>limits.maxBytes)throw new Error("Node prepared files exceed their byte limit.")}return files.map(path3=>({path:path3,bytes:Uint8Array.from(filesystem.readFileSync(path3))}))}function nodeInvocationFilesystem(channel,policy,prepared,store){const client=new BrowserFilesystemChannelClient(channel);const shared=new VirtualFS;for(const method of["existsSync","statSync","lstatSync","readFileSync","readdirSync","realpathSync","readlinkSync","symlinkSync","writeFileSync","appendFileSync","writeAtSync","mkdirSync","unlinkSync","rmdirSync","renameSync","chmodSync","utimesSync"]){Reflect.set(shared,method,client[method].bind(client))}Reflect.set(shared,"accessSync",path3=>{client.statSync(path3)});if(store){const attempt=storeReads(store);for(const method of["existsSync","statSync","lstatSync","readFileSync","readdirSync","realpathSync","readlinkSync","accessSync"]){const owner2=Reflect.get(shared,method);const keepLast=method==="lstatSync"||method==="readlinkSync";Reflect.set(shared,method,(path3,...args)=>{const answer2=attempt(path3,keepLast,local2=>Reflect.get(local2,method).call(local2,path3,...args));return answer2?answer2.value:owner2(path3,...args)})}}const runtimeFiles=new VirtualFS;if(prepared){validateNodePreparedFiles(prepared.files,prepared.limits);for(const{path:path3,bytes:bytes2}of prepared.files){runtimeFiles.mkdirSync(path3.slice(0,path3.lastIndexOf("/"))||"/",{recursive:true});runtimeFiles.writeFileSync(path3,bytes2)}}const merged=new VirtualFS;const owner=path3=>{if(!runtimeFiles.existsSync(path3))return shared;if(runtimeFiles.statSync(path3).isDirectory()&&shared.existsSync(path3))return shared;return runtimeFiles};const mutationOwner=path3=>{const filesystem=owner(path3);if(filesystem===runtimeFiles)throw Object.assign(new Error(`EACCES: private runtime file '${path3}' is read-only`),{code:"EACCES"});return filesystem};for(const method of["statSync","lstatSync","readFileSync","realpathSync","readlinkSync","accessSync","writeFileSync","appendFileSync","writeAtSync","mkdirSync","unlinkSync","rmdirSync","chmodSync","utimesSync"]){Reflect.set(merged,method,(path3,...args)=>{const mutating=["writeFileSync","appendFileSync","writeAtSync","mkdirSync","unlinkSync","rmdirSync","chmodSync","utimesSync"].includes(method)||method==="accessSync"&&(Number(args[0]??0)&2)!==0;const filesystem=mutating?mutationOwner(path3):owner(path3);const action=Reflect.get(filesystem,method);if(!action)throw Object.assign(new Error(`Unsupported filesystem operation ${method}.`),{code:"ENOTSUP"});return action.call(filesystem,path3,...args)})}Reflect.set(merged,"existsSync",path3=>runtimeFiles.existsSync(path3)||shared.existsSync(path3));Reflect.set(merged,"readdirSync",path3=>[...new Set([...runtimeFiles.existsSync(path3)?runtimeFiles.readdirSync(path3):[],...shared.existsSync(path3)?shared.readdirSync(path3):[]])].sort());Reflect.set(merged,"renameSync",(from,to2)=>{const filesystem=mutationOwner(from);if(filesystem!==mutationOwner(to2))throw Object.assign(new Error("Cannot rename across runtime and project files."),{code:"EXDEV"});filesystem.renameSync(from,to2)});Reflect.set(merged,"symlinkSync",(target,path3)=>mutationOwner(path3).symlinkSync(target,path3));const listeners={change:new Set,delete:new Set};const watchers=new Set;const normalize4=path3=>{const parts=[];for(const part of path3.split("/")){if(part==="..")parts.pop();else if(part&&part!==".")parts.push(part)}return"/"+parts.join("/")};Reflect.set(merged,"on",(event,listener)=>{listeners[event].add(listener);return merged});Reflect.set(merged,"off",(event,listener)=>{listeners[event].delete(listener);return merged});Reflect.set(merged,"watch",((path3,optionsOrListener,listener)=>{const options=typeof optionsOrListener==="object"?optionsOrListener:{};const entry={path:normalize4(path3),directory:merged.statSync(path3).isDirectory(),recursive:options?.recursive===true,persistent:options?.persistent!==false,listener:typeof optionsOrListener==="function"?optionsOrListener:listener};watchers.add(entry);return{close(){watchers.delete(entry)},ref(){entry.persistent=true;return this},unref(){entry.persistent=false;return this}}}));return{guest:policy?createConfinedNodeFilesystem(merged,policy):merged,runtimeFiles,notify(event,changedPath){const path3=normalize4(changedPath);let content="";if(event==="change"&&listeners.change.size&&merged.existsSync(path3)&&merged.statSync(path3).isFile())content=merged.readFileSync(path3,"utf8");for(const listener of listeners[event])listener(path3,content)},notifyWatch(event,changedPath){const path3=normalize4(changedPath);for(const watcher of watchers){const relative3=path3.slice(watcher.path==="/"?1:watcher.path.length+1);const inside=watcher.directory&&(watcher.path==="/"||path3.startsWith(watcher.path+"/"));if(path3===watcher.path||inside&&(watcher.recursive||!relative3.includes("/"))){watcher.listener?.(event,inside?relative3:path3.split("/").pop())}}}}}var TAILWIND_RUNTIME_DIRECTORY="/tmp/browser-runtime-tailwind";var TAILWIND_VITE_PATH=`${TAILWIND_RUNTIME_DIRECTORY}/vite.cjs`;var STAND_IN_PATHS={"@tailwindcss/vite":TAILWIND_VITE_PATH};function ensureTailwindStandIn(filesystem){if(filesystem.existsSync(TAILWIND_VITE_PATH))return;filesystem.mkdirSync(TAILWIND_RUNTIME_DIRECTORY,{recursive:true});filesystem.writeFileSync(TAILWIND_VITE_PATH,TAILWIND_VITE_SOURCE)}var TAILWIND_VITE_SOURCE=String.raw`"use strict";
|
|
5894
5894
|
const fs = require("fs");
|