Close Open Privacy Scan

bolt Snapshot: commit 55679f5
science engine v1.22
schedule 2026-07-21T04:07:06.826828+00:00

verified_user No application data leak found

No high-confidence exfiltration was found in application code. Dependency data flows are listed separately and do not affect this verdict.

App Privacy Score

97 /100
Low privacy risk

Low risk · 296 finding(s)

Dependency score: 52 (Medium risk)

bar_chart Score Breakdown

env_fs −3

list Scan Summary

1 high 0 medium 295 low
First-party packages: 1
Dependency packages: 2
Ecosystem: npm

swap_horiz Application data flows

No application data flows were found. See dependency data flows below.

hub Dependency data flows (1)
high playwright dependency User/PII-bearing data read from the environment or filesystem flows to an external network call. This is potential data exfiltration.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:8020 pkgs/npm/[email protected]/lib/transform/esmLoader.js:8023

</> First-Party Code

first-party (npm)

npm first-party
expand_more 14 low-confidence finding(s)
low env_fs test-only Excluded from app score #65dce0e4adf09175 Environment-variable access.
repo/playwright.config.ts:24
  forbidOnly: !!process.env.CI,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #e43ed042d8a9717e Environment-variable access.
repo/playwright.config.ts:25
  workers: process.env.CI ? 2 : undefined,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs test-only Excluded from app score #d369df6716ea165f Environment-variable access.
repo/playwright.config.ts:29
    ...process.env.MCP_IN_DOCKER ? [{

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #46aa450ad9dc4cd7 Filesystem access.
repo/roll.js:1
const fs = require('fs');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #981b3c354f307fa9 Filesystem access.
repo/roll.js:8
  let content = fs.readFileSync(src, 'utf-8');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #ec11761e0d6234b0 Filesystem access.
repo/roll.js:13
  fs.writeFileSync(dst, content);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #e33e9872c006d605 Filesystem access.
repo/roll.js:19
  const json = JSON.parse(fs.readFileSync(file, 'utf-8'));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #1dda647cf908c759 Filesystem access.
repo/roll.js:30
    fs.writeFileSync(file, JSON.stringify(json, null, 2) + '\n');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #6edbfa01e1d863bd Filesystem access.
repo/update-readme.js:19
const fs = require('fs')

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #513af9df7359638f Filesystem access.
repo/update-readme.js:162
  const output = fs.readFileSync('help.txt');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #85d501aafcc24620 Environment-variable access.
repo/update-readme.js:196
  if (process.env.PRINT_ENV) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #206df7f1775cf056 Filesystem access.
repo/update-readme.js:220
  const configContent = await fs.promises.readFile(configPath, 'utf-8');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #4b1b7b786c7e0f34 Filesystem access.
repo/update-readme.js:240
  const readmeContent = await fs.promises.readFile(readmePath, 'utf-8');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs production #c0bcc7875e48937f Filesystem access.
repo/update-readme.js:244
  await fs.promises.writeFile(readmePath, withConfig, 'utf-8');

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

</> Dependencies

playwright

npm dependency
high pii_flow dependency Excluded from app score #f1b0880fc7cad2cd User/PII-bearing data read from the environment or filesystem flows to an external network call. This is potential data exfiltration.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:8023 · flow /tmp/closeopen-lsji8550/pkgs/npm/[email protected]/lib/transform/esmLoader.js:8020 → /tmp/closeopen-lsji8550/pkgs/npm/[email protected]/lib/transform/esmLoader.js:8023
    transport?.post("pushToCompilationCache", { cache: transformed.serializedCache });

User/PII-bearing data flows to an external sink — the classic data-exfiltration shape.

Fix: Confirm no user identifiers reach this sink; redact/hash before sending, or remove the flow.

expand_more 229 low-confidence finding(s)
low env_fs dependency Excluded from app score #8505ec3bd4abd048 Filesystem access.
pkgs/npm/[email protected]/lib/agents/agentParser.js:34
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9d5dd62a364083e1 Filesystem access.
pkgs/npm/[email protected]/lib/agents/agentParser.js:37
  const source = await import_fs.default.promises.readFile(filePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5820614401e19a72 Filesystem access.
pkgs/npm/[email protected]/lib/agents/generateAgents.js:38
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #055f14057997cdf2 Filesystem access.
pkgs/npm/[email protected]/lib/agents/generateAgents.js:215
      const yaml2 = import_fs.default.readFileSync(import_path.default.join(__dirname, "copilot-setup-steps.yml"), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8d329db53d42e026 Filesystem access.
pkgs/npm/[email protected]/lib/agents/generateAgents.js:282
      mcpJson = JSON.parse(import_fs.default.readFileSync(mcpJsonPath, "utf8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3665da4c44bb1c5e Filesystem access.
pkgs/npm/[email protected]/lib/agents/generateAgents.js:336
  await import_fs.default.promises.writeFile(filePath, content, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a90c3f853bb605af Filesystem access.
pkgs/npm/[email protected]/lib/agents/generateAgents.js:383
  const content = await import_fs.default.promises.readFile(import_path.default.join(__dirname, file), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #dfbe7bc0cfc2a790 Filesystem access.
pkgs/npm/[email protected]/lib/cli/reportActions.js:35
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9ccf0e92c1d312ac Filesystem access.
pkgs/npm/[email protected]/lib/cli/testActions.js:36
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0a724377729990fb Environment-variable access.
pkgs/npm/[email protected]/lib/cli/testActions.js:79
  if (process.env.PWTEST_WATCH) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3fb08615917c5011 Environment-variable access.
pkgs/npm/[email protected]/lib/cli/testActions.js:126
    pause: !!process.env.PWPAUSE,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c4c40a144e5445ce Environment-variable access.
pkgs/npm/[email protected]/lib/cli/testActions.js:158
    process.env.PWDEBUG = "1";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #135004744e0f2389 Environment-variable access.
pkgs/npm/[email protected]/lib/cli/testActions.js:190
  const shardWeights = process.env.PWTEST_SHARD_WEIGHTS;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #402806960708f58c Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:74
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b17269be8be592f2 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:81
var cacheDir = process.env.PWTEST_CACHE_DIR || (() => {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #114cdd31f152b832 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:101
          map: JSON.parse(import_fs.default.readFileSync(sourceMapPath, "utf-8")),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9f5f9202676b5428 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:124
      return { cachedCode: import_fs.default.readFileSync(cache.codePath, "utf-8") };

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0ae2d5538b6c819b Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:136
    const cachedCode = import_fs.default.readFileSync(codePath, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c28fb96f7acc8c57 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:148
        import_fs.default.writeFileSync(sourceMapPath, JSON.stringify(map), "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0d85b5e7fa1f5e3b Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:150
        import_fs.default.writeFileSync(dataPath, JSON.stringify(Object.fromEntries(data.entries()), void 0, 2), "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #456b0e05dde98664 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:151
      import_fs.default.writeFileSync(codePath, code, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #93896b118e5a7c5e Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:274
    const data = JSON.parse(await import_fs.default.promises.readFile(cache.dataPath, "utf8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8eda4839aacc40dc Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:293
var import_fs3 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b65fca8aa2ecd278 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:299
var import_fs2 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1f42f136ed5c1eda Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:313
  if (process.env.PWDEBUGIMPL)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ee27eb8656aa4ad3 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:434
      isModule2 = JSON.parse(import_fs2.default.readFileSync(packageJsonPath, "utf8")).type === "module";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5367fbd15d16f76f Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:446
      mainField = JSON.parse(import_fs2.default.readFileSync(packageJsonPath, "utf8")).main;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ac0668fb3c182412 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:724
var defaultReporter = process.env.CI ? "dot" : "list";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #75ae5ef84825d02d Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:740
var import_fs7 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #43751033df84c5f2 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:758
var import_fs6 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2d3149b1e8509e2f Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:766
var import_fs4 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #946a577877996a72 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:799
  const configString = import_fs4.default.readFileSync(configFilePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #d31a33b05d825282 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:839
var import_fs5 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #63d856ab6b4c0445 Filesystem access.
pkgs/npm/[email protected]/lib/common/index.js:873
  const code = import_fs5.default.readFileSync(filename, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0e485518dbae3661 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1086
  const hasPreprocessor = process.env.PW_TEST_SOURCE_TRANSFORM && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE.split(pathSeparator).some((f) => filename.startsWith(f));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3ddadaf7fc78b83f Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1088
  const pluginsEpilogue = hasPreprocessor ? [[process.env.PW_TEST_SOURCE_TRANSFORM]] : [];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #901ccbe6e6a19ae0 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1093
  process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f4196d44f23bf4b7 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1205
  if (process.env.PW_DISABLE_TS_ESM)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #27454e18eab44812 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1210
  if (nodeModule.registerHooks && !process.env.PLAYWRIGHT_FORCE_ASYNC_LOADER) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #eae4ffdfe8980768 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1965
      const producedEnv = [...keys].filter((key) => startingEnv[key] !== process.env[key]).map((key) => [key, process.env[key] ?? null]);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7f597a7e95b05dd2 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:1985
var kForceExitTimeout = +(process.env.PWTEST_FORCE_EXIT_TIMEOUT || 3e4);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #41d0b0377f2ae577 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:2445
  if (process.env.JEST_WORKER_ID) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #04fc4b3602f8ed74 Environment-variable access.
pkgs/npm/[email protected]/lib/common/index.js:2489
  reporter: [[process.env.CI ? "dot" : "list"]],

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6c6736947f47f3c1 Filesystem access.
pkgs/npm/[email protected]/lib/errorContext.js:34
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9753a2cc181f692e Filesystem access.
pkgs/npm/[email protected]/lib/errorContext.js:109
    source = import_fs.default.readFileSync(errorLocation.file, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #4463ab31c59762c9 Filesystem access.
pkgs/npm/[email protected]/lib/index.js:40
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #532d8fe5f5da4b10 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:234
    if (process.env.PLAYWRIGHT_DASHBOARD)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #91a13e135044a034 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:262
    await use(process.env.PLAYWRIGHT_TEST_BASE_URL);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bab642273e42d324 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:419
    if (process.env.PW_TEST_REUSE_CONTEXT)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #71792b3d61e7e0bd Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:518
  const wsEndpoint = process.env.PW_TEST_CONNECT_WS_ENDPOINT;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0e7f5f750f99d781 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:521
  const headers = process.env.PW_TEST_CONNECT_HEADERS ? JSON.parse(process.env.PW_TEST_CONNECT_HEADERS) : void 0;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7e5865959c8de842 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:525
    exposeNetwork: process.env.PW_TEST_CONNECT_EXPOSE_NETWORK

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c5fd3e5627a87eb5 Environment-variable access.
pkgs/npm/[email protected]/lib/index.js:627
    if (process.env.PLAYWRIGHT_NO_COPY_PROMPT)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #29353617649bfe01 Filesystem access.
pkgs/npm/[email protected]/lib/index.js:678
        await import_fs.default.promises.writeFile(filePath, errorContextContent, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2532d39947c78f89 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:771
    if (process.env.NODE_ENV !== "production") {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f3236acb82fb4587 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:953
    if (process.env.NODE_ENV === "production") {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b5124e9f71ea0ace Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:1069
    "production" !== process.env.NODE_ENV && (function() {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #19e26abed176b26f Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:1162
    if (process.env.NODE_ENV === "production") {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #627404ff9baacd2a Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6041
      return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1ad9331740242166 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6254
    var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #da15cc4e47d9dfb3 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6658
    var fs3 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c971aa3d07916af2 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6684
    else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #562b038e866e5910 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6718
      if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6127647cfddc7816 Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:6730
    if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c8832db07ebde58f Environment-variable access.
pkgs/npm/[email protected]/lib/matchers/expect.js:10112
              return process.env.TERM !== "dumb";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #eead91a74924f932 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12384
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #02efe4837a7b8379 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12549
    const isDifferent = !!helper.comparator(received, import_fs.default.readFileSync(helper.expectedPath), helper.options);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b4cf86c6e0d822ff Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12554
  const expected = import_fs.default.readFileSync(helper.expectedPath);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #550da7f0326d8545 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12627
      expectScreenshotOptions.expected = await import_fs.default.promises.readFile(helper.expectedPath);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f6f566db4e9c15c5 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12639
    const expected = await import_fs.default.promises.readFile(helper.expectedPath);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6c2d037d56fdd94b Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12670
  import_fs.default.writeFileSync(aPath, content);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #62fddc80790edecb Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:12692
    const text = await import_fs.default.promises.readFile(stylePath2, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5487665000c61fa0 Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:13021
var import_fs2 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3ecadfbf0e79da9e Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:13047
    expected = await import_fs2.default.promises.readFile(expectedPath, "utf8").catch(() => "");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6e372e5439ebc9eb Filesystem access.
pkgs/npm/[email protected]/lib/matchers/expect.js:13101
        await import_fs2.default.promises.writeFile(expectedPath, typedReceived.regex, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ff01e1c0fd764987 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:56
var import_fs13 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9ca6c7c3b4c991a0 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:565
  reporter: [[process.env.CI ? "dot" : "list"]],

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c1e5617dffb93bec Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:637
var fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c8052130e2efe89c Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:648
  if (!process.env.DEBUG_GIT_COMMIT_INFO)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #4659423470fb8b91 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:680
  if (process.env.GITHUB_ACTIONS) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #008ab721c9405831 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:683
      const json = JSON.parse(await fs.promises.readFile(process.env.GITHUB_EVENT_PATH, "utf8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #caded17957f2c80d Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:683
      const json = JSON.parse(await fs.promises.readFile(process.env.GITHUB_EVENT_PATH, "utf8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #253b2dc8f19975aa Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:688
      commitHref: `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/commit/${process.env.GITHUB_SHA}`,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c946d3270ae83b3a Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:689
      commitHash: process.env.GITHUB_SHA,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c8971901ae7b345e Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:690
      prHref: pr ? `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/pull/${pr.number}` : void 0,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #60f2ff71e9d29178 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:693
      buildHref: `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #514549e407f87333 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:696
  if (process.env.GITLAB_CI) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #805280bd4b5879c5 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:698
      commitHref: `${process.env.CI_PROJECT_URL}/-/commit/${process.env.CI_COMMIT_SHA}`,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #dca08b422c2f5014 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:699
      commitHash: process.env.CI_COMMIT_SHA,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9b4341af1b029678 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:700
      buildHref: process.env.CI_JOB_URL,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2bf42fdeafee4298 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:701
      branch: process.env.CI_COMMIT_REF_NAME

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #034c99281ded3536 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:704
  if (process.env.JENKINS_URL && process.env.BUILD_URL) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #558f3f3701abf922 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:706
      commitHref: process.env.BUILD_URL,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bbea5a792cfb5cf8 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:707
      commitHash: process.env.GIT_COMMIT,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #4df6ba75df745bfb Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:708
      branch: process.env.GIT_BRANCH

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2e1e23a96a6dc33c Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:916
            process.env[key.toUpperCase()] = value;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #505c88921b085746 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:996
        process.env.PLAYWRIGHT_TEST_BASE_URL = url;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5cac2692e314dca9 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1060
  if (process.env.PLAYWRIGHT_FORCE_TTY === "false" || process.env.PLAYWRIGHT_FORCE_TTY === "0") {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2a748c1ae4a189a4 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1064
  } else if (process.env.PLAYWRIGHT_FORCE_TTY === "true" || process.env.PLAYWRIGHT_FORCE_TTY === "1") {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #951d567b5c12f411 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1068
  } else if (process.env.PLAYWRIGHT_FORCE_TTY) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e650e9d0997b74b6 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1070
    const sizeMatch = process.env.PLAYWRIGHT_FORCE_TTY.match(/^(\d+)x(\d+)$/);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ca4122a735ab620f Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1075
      ttyWidth = +process.env.PLAYWRIGHT_FORCE_TTY;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #92157587222d8af1 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1084
  if (process.env.DEBUG_COLORS === "0" || process.env.DEBUG_COLORS === "false" || process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false" || process.env.NO_COLOR !== void 0 && process.env.NO_COLOR !== "")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e6a64172540b3a58 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1086
  else if (process.env.DEBUG_COLORS || process.env.FORCE_COLOR)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8917ebb687294407 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1513
  const value = process.env[name];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a6b48440cd2e5231 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1532
  const reportName = process.env[`PLAYWRIGHT_${name}_OUTPUT_NAME`] ?? options.fileName ?? options.default?.fileName;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #96706461ee23f1a7 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:1571
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #24b25cb043161984 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:1861
    const source = import_fs.default.readFileSync(location.file, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1cbe2dd3dff61111 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:1882
var import_fs8 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a17bd42f8248961c Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:1886
var import_fs3 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #de8d523c66bcb328 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:1923
        options.onStdErr && !process.env.PW_RUNNER_DEBUG ? "pipe" : "inherit",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7e9027d20f260f62 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:2021
    const timeout = +(process.env.PWTEST_CHILD_PROCESS_TIMEOUT || 5 * 60 * 1e3);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0468f97bd9705de2 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:2113
var import_fs2 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #08c7fb906d9b1b6e Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:2647
    const content = await import_fs3.default.promises.readFile(filePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9c359bc6fcc3f813 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:2681
var import_fs4 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a51cd062cafb7b99 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:2999
      name: process.env.PWTEST_BOT_NAME,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b29c4eae5cc53022 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3043
    if (!process.env.PWTEST_BLOB_DO_NOT_REMOVE)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ac4adca27a8a27d7 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3127
    if (!process.stdin.isTTY && !process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #cbd774a3605fc5d1 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3269
  return import_path7.default.relative(process.env["GITHUB_WORKSPACE"] ?? "", filePath);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #d440927d5b3fe6b2 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3279
var import_fs5 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6654f173fcbb40c0 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3346
      attachmentsBaseURL: process.env.PLAYWRIGHT_HTML_ATTACHMENTS_BASE_URL || this._options.attachmentsBaseURL || "data/",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7631ab6f8f73eb8f Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3347
      host: process.env.PLAYWRIGHT_HTML_HOST || this._options.host,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #4e1a0212245db6aa Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3348
      port: process.env.PLAYWRIGHT_HTML_PORT ? +process.env.PLAYWRIGHT_HTML_PORT : this._options.port

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #12aab77e0fd231bf Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3373
      title: process.env.PLAYWRIGHT_HTML_TITLE || this._options.title,

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e598cd4b2acdda01 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3380
    if (process.env.CI || !this._buildResult)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #550ca5f6310a3d66 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3400
  const envValue = process.env.PLAYWRIGHT_HTML_OUTPUT_DIR || process.env.PLAYWRIGHT_HTML_REPORT;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8bee221a6958a66e Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3404
  const htmlOpenEnv = process.env.PLAYWRIGHT_HTML_OPEN || process.env.PW_TEST_HTML_REPORT_OPEN;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e5a35a385362f327 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:3414
  const value = process.env[name];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #35ecf2874c19cad3 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3579
      const html = await import_fs5.default.promises.readFile(import_path8.default.join(appFolder, "index.html"), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f134bb436e043da9 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3581
        import_fs5.default.promises.writeFile(reportIndexFile, html),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3026da97d689f024 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3586
      let html = await import_fs5.default.promises.readFile(import_path8.default.join(appFolder, "index.html"), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e9d9899578cdc9aa Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3588
        import_fs5.default.promises.readFile(import_path8.default.join(appFolder, "report.js"), "utf-8"),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #690ce1d0a35b38d6 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3589
        import_fs5.default.promises.readFile(import_path8.default.join(appFolder, "report.css"), "utf-8")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #06c04fa2a63341a2 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3593
      await import_fs5.default.promises.writeFile(reportIndexFile, html);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9d55029d305cb5f8 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3697
          const buffer = import_fs5.default.readFileSync(a.path);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #d108fadab67b8263 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3701
          import_fs5.default.writeFileSync(import_path8.default.join(this._reportFolder, "data", sha1), buffer);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7e41934654729ecb Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3727
        import_fs5.default.writeFileSync(import_path8.default.join(this._reportFolder, "data", sha1), a.body);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #91c4c58ec4cb1c12 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3883
      source = import_fs5.default.readFileSync(file, "utf-8") + "\n//";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c98f1e5efde6fd0d Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3905
    source = import_fs5.default.readFileSync(location.file, "utf-8") + "\n//";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2e7a413bde7c49ca Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:3931
var import_fs6 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1c18c9dcc3ec4d1f Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4128
    await import_fs6.default.promises.writeFile(resolvedOutputFile, reportString);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bfde1d24eb0b0b26 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4149
var import_fs7 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #962cb05c47db80e8 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4192
        id: process.env[`PLAYWRIGHT_JUNIT_SUITE_ID`] || "",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #db2e0e5fb160c21a Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4193
        name: process.env[`PLAYWRIGHT_JUNIT_SUITE_NAME`] || "",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ef802113741f3803 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4206
      await import_fs7.default.promises.writeFile(this.resolvedOutputFile, reportString);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b6c7a795e260ec5d Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4465
    if (!process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2114914a3b7a1b20 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4491
    if (!process.stdin.isTTY && !process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #624d906370ba8521 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4493
    if (!process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6e97816151b7aace Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4511
      if (!process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ecc6e8c09374ef6d Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4522
    if (process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5331181cc36e2b26 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4532
    if (!process.env.PW_TEST_DEBUG_REPORTERS && this._didBegin)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7be1207b53d47f3d Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4538
    if (!process.env.PW_TEST_DEBUG_REPORTERS && this._didBegin)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a821adbe364578ca Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4550
var DOES_NOT_SUPPORT_UTF8_IN_TERMINAL = process.platform === "win32" && process.env.TERM_PROGRAM !== "vscode" && !process.env.WT_SESSION;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #853e7832218e6d8a Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4673
    if (!process.stdin.isTTY && !process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2b162b04c1cb2801 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4740
    if (process.env.PW_TEST_DEBUG_REPORTERS) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0e23406263ec22c8 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4751
    if (process.env.PW_TEST_DEBUG_REPORTERS)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6f8dd2ac5a7b1fbd Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4854
  if (process.env.PW_TEST_REPORTER) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ca9e3e5140c76463 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4855
    const name = process.env.PW_TEST_REPORTER;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1f0b9ea2d66837db Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:4868
      reporters.unshift(!process.env.CI ? new line_default() : new dot_default());

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6f4def773777a74b Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4906
    command.testList = calculateSha13(import_fs8.default.readFileSync(runOptions.testList));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #eec971f1a1c3b1eb Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4908
    command.testListInvert = calculateSha13(import_fs8.default.readFileSync(runOptions.testListInvert));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #787ff4190d020209 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4915
var import_fs11 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b08dd5a01b3953a8 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4920
var import_fs9 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bb82441dcf216245 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4947
    const source = await import_fs9.default.promises.readFile(fileName, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a2a299f3ecdfe6df Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4984
      await import_fs9.default.promises.writeFile(fileName, result);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b9221c22e491f5dd Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:4986
      await import_fs9.default.promises.writeFile(fileName, applyPatchWithConflictMarkers(source, result));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3f0dc5bef036d8b3 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:5001
    await import_fs9.default.promises.writeFile(patchFile, patches.join("\n"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b5f4de1a89bc7031 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:5069
var import_fs10 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f412db43fabb3e65 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:5087
      DEBUG_COLORS: process.env.DEBUG_COLORS === void 0 ? "1" : process.env.DEBUG_COLORS

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7ba29fe4a7aeedc3 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:6209
var import_fs12 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #91d2fda15017bb6a Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:6214
    const override = lastFailedFileOverride ?? process.env.PLAYWRIGHT_LAST_RUN_OUTPUT_FILE;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e760fd24e5836e43 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:6227
      const lastRunInfo = JSON.parse(await import_fs12.default.promises.readFile(this._lastRunFile, "utf8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bd702f2a30169e30 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:6250
    await import_fs12.default.promises.writeFile(this._lastRunFile, JSON.stringify(lastRunInfo, void 0, 2));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #bbdfdbeb2db44325 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:6323
      if (this._startingEnv[key] !== process.env[key])

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5857d9539ddd76d4 Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:6324
        env.push([key, process.env[key] ?? null]);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #cd87ffe4c163ca8c Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:6750
    if (process.env.PWTEST_DEBUG)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9b1668883abee5cb Environment-variable access.
pkgs/npm/[email protected]/lib/runner/index.js:6787
        headless: isUnderTest() && process.env.PWTEST_HEADED_FOR_TEST !== "1",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #01dbf480e195c487 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:7551
var import_fs14 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #daab9e2ff6dca79c Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:7643
    const reportJsonl = await import_fs14.default.promises.readFile(reportFile);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ae6c773d06c3cc48 Filesystem access.
pkgs/npm/[email protected]/lib/runner/index.js:7712
      await import_fs14.default.promises.writeFile(reportFile, content);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5cebfdf36d966005 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:1835
      fs7 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #84460d042ea20308 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:1921
          contents = fs7.readFileSync(path8, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2c2d28e9d40007f1 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:2187
            contents = fs7.readFileSync(source, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0472e6b9250b97f6 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:3851
        r = process.env.DEBUG;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9050c5115114d01b Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4095
      let val = process.env[key];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #59bcf9c7580835e0 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4134
        process.env.DEBUG = namespaces;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a40827e60b34a8cd Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4136
        delete process.env.DEBUG;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #44ec2865087badca Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4140
      return process.env.DEBUG;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6033a130cda8c7a8 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4174
var import_fs6 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #d2ef7f168a3f3147 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4178
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #703b4297d0c3b08a Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4194
var cacheDir = process.env.PWTEST_CACHE_DIR || (() => {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #d7ae24ac2248a96e Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4214
          map: JSON.parse(import_fs.default.readFileSync(sourceMapPath, "utf-8")),

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7d3fde49943c4ad5 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4237
      return { cachedCode: import_fs.default.readFileSync(cache.codePath, "utf-8") };

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #058c721e44b71447 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4249
    const cachedCode = import_fs.default.readFileSync(codePath, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #a6e863c95f7b3fe2 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4261
        import_fs.default.writeFileSync(sourceMapPath, JSON.stringify(map), "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c921f1e7639e1689 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4263
        import_fs.default.writeFileSync(dataPath, JSON.stringify(Object.fromEntries(data.entries()), void 0, 2), "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #cd5b1527fc1022e6 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4264
      import_fs.default.writeFileSync(codePath, code, "utf8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7040e5c526f4b62f Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4378
var import_fs5 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9c3639e3b2820c1d Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4387
var import_fs2 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8bf62b39d179da4e Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4420
  const configString = import_fs2.default.readFileSync(configFilePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #f340046180a8fb3e Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:4460
var import_fs3 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9c2c67246baee424 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:6699
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c06ce8e41925f8a2 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7460
  let value = process.env[name];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #e9a85f19776233bf Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7461
  value = value === void 0 ? process.env[`npm_config_${name.toLowerCase()}`] : value;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9217b707a1c9ecfb Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7462
  value = value === void 0 ? process.env[`npm_package_config_${name.toLowerCase()}`] : value;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b7fd6b09ef342423 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7555
      isModule2 = JSON.parse(import_fs3.default.readFileSync(packageJsonPath, "utf8")).type === "module";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #43952f033f9f6cc0 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7567
      mainField = JSON.parse(import_fs3.default.readFileSync(packageJsonPath, "utf8")).main;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #433b833fc1078be5 Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7620
var import_fs4 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0541656d27b8d38f Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7654
  const code = import_fs4.default.readFileSync(filename, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #dde4f9e840936c1f Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7824
  const hasPreprocessor = process.env.PW_TEST_SOURCE_TRANSFORM && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE && process.env.PW_TEST_SOURCE_TRANSFORM_SCOPE.split(pathSeparator).some((f) => filename.startsWith(f));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2055374cf9d4aa5f Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7826
  const pluginsEpilogue = hasPreprocessor ? [[process.env.PW_TEST_SOURCE_TRANSFORM]] : [];

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #933f17a3cda46fc2 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7831
  process.env.BROWSERSLIST_IGNORE_OLD_DATA = "true";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ac949827307c0305 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7943
  if (process.env.PW_DISABLE_TS_ESM)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b907b0d0e766d4c9 Environment-variable access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:7948
  if (nodeModule.registerHooks && !process.env.PLAYWRIGHT_FORCE_ASYNC_LOADER) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #6d62ca433b47bdab Filesystem access.
pkgs/npm/[email protected]/lib/transform/esmLoader.js:8020
  const code = import_fs6.default.readFileSync(originalFilename, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1a033bb8b7866e4b Filesystem access.
pkgs/npm/[email protected]/lib/util.js:59
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8c9a657595f6f20f Environment-variable access.
pkgs/npm/[email protected]/lib/util.js:73
  if (process.env.PWDEBUGIMPL)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #839d29b607e41d75 Filesystem access.
pkgs/npm/[email protected]/lib/util.js:258
      isModule = JSON.parse(import_fs.default.readFileSync(packageJsonPath, "utf8")).type === "module";

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9dd00b16a50e399d Filesystem access.
pkgs/npm/[email protected]/lib/util.js:270
      mainField = JSON.parse(import_fs.default.readFileSync(packageJsonPath, "utf8")).main;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #5b3408a546dc9591 Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:34
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #c8ae8e3e07a96c61 Environment-variable access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:48
  if (process.env.PWDEBUGIMPL)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #475621890dd9ae6d Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:350
var import_fs3 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9b6f254e7960a268 Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:510
var import_fs2 = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #40ae2431ddd9c43d Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:578
      this._liveTraceFile.fs.writeFile(this._liveTraceFile.file, data);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #acf9840da5eb10fc Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:649
        await import_fs2.default.promises.readFile(sourceFile, "utf8").then((source) => {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3c8a3b89fef97824 Filesystem access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:660
          contentPromise = import_fs2.default.promises.readFile(attachment.path).catch(() => void 0);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9f6a2cad8a68be93 Environment-variable access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:1365
    process.env.TEST_WORKER_INDEX = String(params.workerIndex);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #7cd302584f2998e4 Environment-variable access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:1366
    process.env.TEST_PARALLEL_INDEX = String(params.parallelIndex);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #4db1498293b91cca Environment-variable access.
pkgs/npm/[email protected]/lib/worker/workerProcessEntry.js:1380
    if (!process.env.PW_RUNNER_DEBUG) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

playwright-core

npm dependency
expand_more 52 low-confidence finding(s)
low env_fs dependency Excluded from app score #5b0e118e371df238 Environment-variable access.
pkgs/npm/[email protected]/lib/bootstrap.js:13
if (process.env.PW_INSTRUMENT_MODULES) {

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #268ffbc989b822b4 Environment-variable access.
pkgs/npm/[email protected]/lib/server/electron/loader.js:60
  process.env.PLAYWRIGHT_LEGACY_SCREENSHOT ? "" : "--enable-features=CDPScreenshotNewSurface",

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #3711643735db9572 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:1784
    var fs2 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #94b7dacf557d02cf Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:5461
    var fs2 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #9ae77c4d51a6dae9 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:5952
    var fs2 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #8bcad92771880c1f Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:5959
      if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error);

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #2b0acccff14f502d Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:6349
    var fs2 = require("fs");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0d188762ce71eb89 Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:6586
        const envPoll = process.env.CHOKIDAR_USEPOLLING;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #dd14a3f91cb9a81d Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:6597
        const envInterval = process.env.CHOKIDAR_INTERVAL;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b23aaf9de696f391 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7096
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #b78ec010e550323a Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7183
    await import_fs.default.promises.writeFile(file, JSON.stringify(descriptor, null, 2), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #749150500f272740 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7192
    const content = await import_fs.default.promises.readFile(filePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #ba7252853e803f45 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7203
    const content = import_fs.default.readFileSync(filePath, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #76673307129adec1 Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7217
    return process.env.PWTEST_SERVER_REGISTRY || registryDirectory;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #0147012482ff0d74 Filesystem access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7247
      descriptor = JSON.parse(import_fs.default.readFileSync(file, "utf-8"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #98b1b5fe66871e93 Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7285
    return process.env.XDG_CACHE_HOME || import_path2.default.join(import_os.default.homedir(), ".cache");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs dependency Excluded from app score #1c26eac3cd23e387 Environment-variable access.
pkgs/npm/[email protected]/lib/serverRegistry.js:7289
    return process.env.LOCALAPPDATA || import_path2.default.join(import_os.default.homedir(), "AppData", "Local");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #81ead0ffef98b12e Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:35
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #4754f14c19f1d465 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:44
  if (process.env.PWTEST_CLI_CHANNEL_SCAN_DISABLED_FOR_TEST)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #a30a3d361bee004e Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:72
    contents = await import_fs.default.promises.readFile(import_path.default.join(userDataDir, "DevToolsActivePort"), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #12a7d22878948e2a Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:99
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #426ee3f48a684106 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:104
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome Beta", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #31c87e623ddcdf72 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:109
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome Dev", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #9ec6591cded426ff Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:114
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Google", "Chrome SxS", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #57cf5e5f75ce8a50 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:119
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #bac53cc7f5ca068f Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:124
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge Beta", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #846c30b95347451a Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:129
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge Dev", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #3e5bb71f985e5f94 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/channelSessions.js:134
    "win32": import_path.default.join(process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local"), "Microsoft", "Edge SxS", "User Data")

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #c5c43f42c1f8d91c Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/output.js:191
    if (process.env.PWTEST_PRINT_DASHBOARD_PID_FOR_TEST)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #d3f19a7a985f8a9f Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/program.js:80
      if (process.env.CLAUDECODE || process.env.COPILOT_CLI)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #f2229a10534c990d Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/program.js:301
  const pidFilterEnv = process.env.PWTEST_KILL_ALL_PID_FILTER_FOR_TEST;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #7d1b65505cb57679 Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:40
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #17d41d12f32adc74 Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:81
      const data = await import_fs.default.promises.readFile(fileName, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #693974db39788d50 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:120
  if (process.env.PWTEST_DAEMON_SESSION_DIR)

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #9229cf7ce25aadcf Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:121
    return process.env.PWTEST_DAEMON_SESSION_DIR;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #cbba7263dfc8dfce Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:124
    localCacheDir = process.env.XDG_CACHE_HOME || import_path.default.join(import_os.default.homedir(), ".cache");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #4a5e59328a0e1660 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:128
    localCacheDir = process.env.LOCALAPPDATA || import_path.default.join(import_os.default.homedir(), "AppData", "Local");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #27642fa5c0361ed0 Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:135
  const version = process.env.PLAYWRIGHT_CLI_VERSION_FOR_TEST || import_package.packageJSON.version;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #a647105cb745eaff Environment-variable access.
pkgs/npm/[email protected]/lib/tools/cli-client/registry.js:163
  return sessionName || process.env.PLAYWRIGHT_CLI_SESSION;

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #da474c0940378f2a Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/session.js:35
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #df099a3fb96332d8 Filesystem access.
pkgs/npm/[email protected]/lib/tools/cli-client/session.js:178
          const errLogContent = import_fs.default.readFileSync(errLog, "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #21a5f5027d36aff4 Filesystem access.
pkgs/npm/[email protected]/lib/tools/utils/extension.js:36
var import_fs = __toESM(require("fs"));

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low env_fs tooling Excluded from app score unknown #236ab49af4ed914e Filesystem access.
pkgs/npm/[email protected]/lib/tools/utils/extension.js:59
    const prefs = await import_fs.default.promises.readFile(import_path.default.join(profileDir, "Preferences"), "utf-8");

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.

low egress dependency Excluded from app score #77ba1ac7e84902ad Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/htmlReport/report.js:1
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=15,d=0,f=1,p=2,m=-2,h=-3,g=-4,_=-5,v=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],y=1440,b=0,x=4,S=9,C=5,w=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],T=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],E=[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],D=[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,112,112],O=[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],k=[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],A=15;function j(){let e=this,t,n,r,i,a,o;function s(e,t,n,s,c,l,u,f,p,m,g){let v,b,x,S,C,w,T,E,D,O,k,j,ee,M,N;O=0,C=n;do r[e[t+O]]++,O++,C--;while(C!==0);if(r[0]==n)return u[0]=-1,f[0]=0,d;for(E=f[0],w=1;w<=A&&r[w]===0;w++);for(T=w,E<w&&(E=w),C=A;C!==0&&r[C]===0;C--);for(x=C,E>C&&(E=C),f[0]=E,M=1<<w;w<C;w++,M<<=1)if((M-=r[w])<0)return h;if((M-=r[C])<0)return h;for(r[C]+=M,o[1]=w=0,O=1,ee=2;--C!==0;)o[ee]=w+=r[O],ee++,O++;C=0,O=0;do(w=e[t+O])!==0&&(g[o[w]++]=C),O++;while(++C<n);for(n=o[x],o[0]=C=0,O=0,S=-1,j=-E,a[0]=0,k=0,N=0;T<=x;T++)for(v=r[T];v--!==0;){for(;T>j+E;){if(S++,j+=E,N=x-j,N=N>E?E:N,(b=1<<(w=T-j))>v+1&&(b-=v+1,ee=T,w<N))for(;++w<N&&!((b<<=1)<=r[++ee]);)b-=r[ee];if(N=1<<w,m[0]+N>y)return h;a[S]=k=m[0],m[0]+=N,S===0?u[0]=k:(o[S]=C,i[0]=w,i[1]=E,w=C>>>j-E,i[2]=k-a[S-1]-w,p.set(i,(a[S-1]+w)*3))}for(i[1]=T-j,O>=n?i[0]=192:g[O]<s?(i[0]=g[O]<256?0:96,i[2]=g[O++]):(i[0]=l[g[O]-s]+16+64,i[2]=c[g[O++]-s]),b=1<<T-j,w=C>>>j;w<N;w+=b)p.set(i,(k+w)*3);for(w=1<<T-1;(C&w)!==0;w>>>=1)C^=w;for(C^=w,D=(1<<j)-1;(C&D)!=o[S];)S--,j-=E,D=(1<<j)-1}return M!==0&&x!=1?_:d}function c(e){let s;for(t||(t=[],n=[],r=new Int32Array(16),i=[],a=new Int32Array(A),o=new Int32Array(16)),n.length<e&&(n=[]),s=0;s<e;s++)n[s]=0;for(s=0;s<16;s++)r[s]=0;for(s=0;s<3;s++)i[s]=0;a.set(r.subarray(0,A),0),o.set(r.subarray(0,16),0)}e.inflate_trees_bits=function(e,r,i,a,o){let l;return c(19),t[0]=0,l=s(e,0,19,19,null,null,i,r,a,t,n),l==h?o.msg=`oversubscribed dynamic bit lengths tree`:(l==_||r[0]===0)&&(o.msg=`incomplete dynamic bit lengths tree`,l=h),l},e.inflate_trees_dynamic=function(e,r,i,a,o,l,u,f,p){let m;return c(288),t[0]=0,m=s(i,0,e,257,E,D,l,a,f,t,n),m!=d||a[0]===0?(m==h?p.msg=`oversubscribed literal/length tree`:m!=g&&(p.msg=`incomplete literal/length tree`,m=h),m):(c(288),m=s(i,e,r,0,O,k,u,o,f,t,n),m!=d||o[0]===0&&e>257?(m==h?p.msg=`oversubscribed distance tree`:m==_?(p.msg=`incomplete distance tree`,m=h):m!=g&&(p.msg=`empty distance tree with lengths`,m=h),m):d)}}j.inflate_trees_fixed=function(e,t,n,r){return e[0]=S,t[0]=C,n[0]=w,r[0]=T,d};var ee=0,M=1,N=2,te=3,ne=4,re=5,ie=6,ae=7,P=8,oe=9;function se(){let e=this,t,n=0,r,i=0,a=0,o=0,s=0,c=0,l=0,u=0,p,g=0,_,y=0;function b(e,t,n,r,i,a,o,s){let c,l,u,p,m,g,_,y,b,x,S,C,w,T,E,D;_=s.next_in_index,y=s.avail_in,m=o.bitb,g=o.bitk,b=o.write,x=b<o.read?o.read-b-1:o.end-b,S=v[e],C=v[t];do{for(;g<20;)y--,m|=(s.read_byte(_++)&255)<<g,g+=8;if(c=m&S,l=n,u=r,D=(u+c)*3,(p=l[D])===0){m>>=l[D+1],g-=l[D+1],o.win[b++]=l[D+2],x--;continue}do{if(m>>=l[D+1],g-=l[D+1],p&16){for(p&=15,w=l[D+2]+(m&v[p]),m>>=p,g-=p;g<15;)y--,m|=(s.read_byte(_++)&255)<<g,g+=8;c=m&C,l=i,u=a,D=(u+c)*3,p=l[D];do if(m>>=l[D+1],g-=l[D+1],p&16){for(p&=15;g<p;)y--,m|=(s.read_byte(_++)&255)<<g,g+=8;if(T=l[D+2]+(m&v[p]),m>>=p,g-=p,x-=w,b>=T)E=b-T,b-E>0&&2>b-E?(o.win[b++]=o.win[E++],o.win[b++]=o.win[E++],w-=2):(o.win.set(o.win.subarray(E,E+2),b),b+=2,E+=2,w-=2);else{E=b-T;do E+=o.end;while(E<0);if(p=o.end-E,w>p){if(w-=p,b-E>0&&p>b-E)do o.win[b++]=o.win[E++];while(--p!==0);else o.win.set(o.win.subarray(E,E+p),b),b+=p,E+=p,p=0;E=0}}if(b-E>0&&w>b-E)do o.win[b++]=o.win[E++];while(--w!==0);else o.win.set(o.win.subarray(E,E+w),b),b+=w,E+=w,w=0;break}else if(!(p&64))c+=l[D+2],c+=m&v[p],D=(u+c)*3,p=l[D];else return s.msg=`invalid distance code`,w=s.avail_in-y,w=g>>3<w?g>>3:w,y+=w,_-=w,g-=w<<3,o.bitb=m,o.bitk=g,s.avail_in=y,s.total_in+=_-s.next_in_index,s.next_in_index=_,o.write=b,h;while(!0);break}if(!(p&64)){if(c+=l[D+2],c+=m&v[p],D=(u+c)*3,(p=l[D])===0){m>>=l[D+1],g-=l[D+1],o.win[b++]=l[D+2],x--;break}}else if(p&32)return w=s.avail_in-y,w=g>>3<w?g>>3:w,y+=w,_-=w,g-=w<<3,o.bitb=m,o.bitk=g,s.avail_in=y,s.total_in+=_-s.next_in_index,s.next_in_index=_,o.write=b,f;else return s.msg=`invalid literal/length code`,w=s.avail_in-y,w=g>>3<w?g>>3:w,y+=w,_-=w,g-=w<<3,o.bitb=m,o.bitk=g,s.avail_in=y,s.total_in+=_-s.next_in_index,s.next_in_index=_,o.write=b,h}while(!0)}while(x>=258&&y>=10);return w=s.avail_in-y,w=g>>3<w?g>>3:w,y+=w,_-=w,g-=w<<3,o.bitb=m,o.bitk=g,s.avail_in=y,s.total_in+=_-s.next_in_index,s.next_in_index=_,o.write=b,d}e.init=function(e,n,i,a,o,s){t=ee,l=e,u=n,p=i,g=a,_=o,y=s,r=null},e.proc=function(e,x,S){let C,w,T,E=0,D=0,O=0,k,A,j,se;for(O=x.next_in_index,k=x.avail_in,E=e.bitb,D=e.bitk,A=e.write,j=A<e.read?e.read-A-1:e.end-A;;)switch(t){case ee:if(j>=258&&k>=10&&(e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,S=b(l,u,p,g,_,y,e,x),O=x.next_in_index,k=x.avail_in,E=e.bitb,D=e.bitk,A=e.write,j=A<e.read?e.read-A-1:e.end-A,S!=d)){t=S==f?ae:oe;break}a=l,r=p,i=g,t=M;case M:for(C=a;D<C;){if(k!==0)S=d;else return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);k--,E|=(x.read_byte(O++)&255)<<D,D+=8}if(w=(i+(E&v[C]))*3,E>>>=r[w+1],D-=r[w+1],T=r[w],T===0){o=r[w+2],t=ie;break}if(T&16){s=T&15,n=r[w+2],t=N;break}if(!(T&64)){a=T,i=w/3+r[w+2];break}if(T&32){t=ae;break}return t=oe,x.msg=`invalid literal/length code`,S=h,e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);case N:for(C=s;D<C;){if(k!==0)S=d;else return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);k--,E|=(x.read_byte(O++)&255)<<D,D+=8}n+=E&v[C],E>>=C,D-=C,a=u,r=_,i=y,t=te;case te:for(C=a;D<C;){if(k!==0)S=d;else return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);k--,E|=(x.read_byte(O++)&255)<<D,D+=8}if(w=(i+(E&v[C]))*3,E>>=r[w+1],D-=r[w+1],T=r[w],T&16){s=T&15,c=r[w+2],t=ne;break}if(!(T&64)){a=T,i=w/3+r[w+2];break}return t=oe,x.msg=`invalid distance code`,S=h,e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);case ne:for(C=s;D<C;){if(k!==0)S=d;else return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);k--,E|=(x.read_byte(O++)&255)<<D,D+=8}c+=E&v[C],E>>=C,D-=C,t=re;case re:for(se=A-c;se<0;)se+=e.end;for(;n!==0;){if(j===0&&(A==e.end&&e.read!==0&&(A=0,j=A<e.read?e.read-A-1:e.end-A),j===0&&(e.write=A,S=e.inflate_flush(x,S),A=e.write,j=A<e.read?e.read-A-1:e.end-A,A==e.end&&e.read!==0&&(A=0,j=A<e.read?e.read-A-1:e.end-A),j===0)))return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);e.win[A++]=e.win[se++],j--,se==e.end&&(se=0),n--}t=ee;break;case ie:if(j===0&&(A==e.end&&e.read!==0&&(A=0,j=A<e.read?e.read-A-1:e.end-A),j===0&&(e.write=A,S=e.inflate_flush(x,S),A=e.write,j=A<e.read?e.read-A-1:e.end-A,A==e.end&&e.read!==0&&(A=0,j=A<e.read?e.read-A-1:e.end-A),j===0)))return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);S=d,e.win[A++]=o,j--,t=ee;break;case ae:if(D>7&&(D-=8,k++,O--),e.write=A,S=e.inflate_flush(x,S),A=e.write,j=A<e.read?e.read-A-1:e.end-A,e.read!=e.write)return e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);t=P;case P:return S=f,e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);case oe:return S=h,e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S);default:return S=m,e.bitb=E,e.bitk=D,x.avail_in=k,x.total_in+=O-x.next_in_index,x.next_in_index=O,e.write=A,e.inflate_flush(x,S)}},e.free=function(){}}var ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],le=0,ue=1,de=2,fe=3,pe=4,me=5,he=6,ge=7,_e=8,ve=9;function ye(e,t){let n=this,r=le,i=0,a=0,o=0,s,c=[0],l=[0],u=new se,p=0,g=new Int32Array(y*3),b=new j;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=function(e,t){t&&(t[0]=0),r==he&&u.free(e),r=le,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=function(e,t){let r,i,a;return i=e.next_out_index,a=n.read,r=(a<=n.write?n.write:n.end)-a,r>e.avail_out&&(r=e.avail_out),r!==0&&t==_&&(t=d),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(a,a+r),i),i+=r,a+=r,a==n.end&&(a=0,n.write==n.end&&(n.write=0),r=n.write-a,r>e.avail_out&&(r=e.avail_out),r!==0&&t==_&&(t=d),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(a,a+r),i),i+=r,a+=r),e.next_out_index=i,n.read=a,t},n.proc=function(e,t){let _,y,x,S,C,w,T,E;for(S=e.next_in_index,C=e.avail_in,y=n.bitb,x=n.bitk,w=n.write,T=w<n.read?n.read-w-1:n.end-w;;){let D,O,k,A,ee,M,N,te;switch(r){case le:for(;x<3;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}switch(_=y&7,p=_&1,_>>>1){case 0:y>>>=3,x-=3,_=x&7,y>>>=_,x-=_,r=ue;break;case 1:D=[],O=[],k=[[]],A=[[]],j.inflate_trees_fixed(D,O,k,A),u.init(D[0],O[0],k[0],0,A[0],0),y>>>=3,x-=3,r=he;break;case 2:y>>>=3,x-=3,r=fe;break;case 3:return y>>>=3,x-=3,r=ve,e.msg=`invalid block type`,t=h,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t)}break;case ue:for(;x<32;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}if((~y>>>16&65535)!=(y&65535))return r=ve,e.msg=`invalid stored block lengths`,t=h,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);i=y&65535,y=x=0,r=i===0?p===0?le:ge:de;break;case de:if(C===0||T===0&&(w==n.end&&n.read!==0&&(w=0,T=w<n.read?n.read-w-1:n.end-w),T===0&&(n.write=w,t=n.inflate_flush(e,t),w=n.write,T=w<n.read?n.read-w-1:n.end-w,w==n.end&&n.read!==0&&(w=0,T=w<n.read?n.read-w-1:n.end-w),T===0)))return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);if(t=d,_=i,_>C&&(_=C),_>T&&(_=T),n.win.set(e.read_buf(S,_),w),S+=_,C-=_,w+=_,T-=_,(i-=_)!==0)break;r=p===0?le:ge;break;case fe:for(;x<14;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}if(a=_=y&16383,(_&31)>29||(_>>5&31)>29)return r=ve,e.msg=`too many length or distance symbols`,t=h,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);if(_=258+(_&31)+(_>>5&31),!s||s.length<_)s=[];else for(E=0;E<_;E++)s[E]=0;y>>>=14,x-=14,o=0,r=pe;case pe:for(;o<4+(a>>>10);){for(;x<3;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}s[ce[o++]]=y&7,y>>>=3,x-=3}for(;o<19;)s[ce[o++]]=0;if(c[0]=7,_=b.inflate_trees_bits(s,c,l,g,e),_!=d)return t=_,t==h&&(s=null,r=ve),n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);o=0,r=me;case me:for(;_=a,!(o>=258+(_&31)+(_>>5&31));){let i,u;for(_=c[0];x<_;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}if(_=g[(l[0]+(y&v[_]))*3+1],u=g[(l[0]+(y&v[_]))*3+2],u<16)y>>>=_,x-=_,s[o++]=u;else{for(E=u==18?7:u-14,i=u==18?11:3;x<_+E;){if(C!==0)t=d;else return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);C--,y|=(e.read_byte(S++)&255)<<x,x+=8}if(y>>>=_,x-=_,i+=y&v[E],y>>>=E,x-=E,E=o,_=a,E+i>258+(_&31)+(_>>5&31)||u==16&&E<1)return s=null,r=ve,e.msg=`invalid bit length repeat`,t=h,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);u=u==16?s[E-1]:0;do s[E++]=u;while(--i!==0);o=E}}if(l[0]=-1,ee=[],M=[],N=[],te=[],ee[0]=9,M[0]=6,_=a,_=b.inflate_trees_dynamic(257+(_&31),1+(_>>5&31),s,ee,M,N,te,g,e),_!=d)return _==h&&(s=null,r=ve),t=_,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);u.init(ee[0],M[0],g,N[0],g,te[0]),r=he;case he:if(n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,(t=u.proc(n,e,t))!=f)return n.inflate_flush(e,t);if(t=d,u.free(e),S=e.next_in_index,C=e.avail_in,y=n.bitb,x=n.bitk,w=n.write,T=w<n.read?n.read-w-1:n.end-w,p===0){r=le;break}r=ge;case ge:if(n.write=w,t=n.inflate_flush(e,t),w=n.write,T=w<n.read?n.read-w-1:n.end-w,n.read!=n.write)return n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);r=_e;case _e:return t=f,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);case ve:return t=h,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t);default:return t=m,n.bitb=y,n.bitk=x,e.avail_in=C,e.total_in+=S-e.next_in_index,e.next_in_index=S,n.write=w,n.inflate_flush(e,t)}}},n.free=function(e){n.reset(e,null),n.win=null,g=null},n.set_dictionary=function(e,t,r){n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=function(){return+(r==ue)}}var be=32,xe=8,Se=0,Ce=1,we=2,Te=3,Ee=4,De=5,Oe=6,ke=7,Ae=12,je=13,Me=[0,0,255,255];function Ne(){let e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(e){return!e||!e.istate?m:(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=ke,e.istate.blocks.reset(e,null),d)}e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,d},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),m):(e.wbits=r,n.istate.blocks=new ye(n,1<<r),t(n),d)},e.inflate=function(e,t){let n,r;if(!e||!e.istate||!e.next_in)return m;let i=e.istate;for(t=t==x?_:d,n=_;;)switch(i.mode){case Se:if(e.avail_in===0)return n;if(n=t,e.avail_in--,e.total_in++,((i.method=e.read_byte(e.next_in_index++))&15)!=xe){i.mode=je,e.msg=`unknown compression method`,i.marker=5;break}if((i.method>>4)+8>i.wbits){i.mode=je,e.msg=`invalid win size`,i.marker=5;break}i.mode=Ce;case Ce:if(e.avail_in===0)return n;if(n=t,e.avail_in--,e.total_in++,r=e.read_byte(e.next_in_index++)&255,((i.method<<8)+r)%31!=0){i.mode=je,e.msg=`incorrect header check`,i.marker=5;break}if((r&be)===0){i.mode=ke;break}i.mode=we;case we:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need=(e.read_byte(e.next_in_index++)&255)<<24&4278190080,i.mode=Te;case Te:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need+=(e.read_byte(e.next_in_index++)&255)<<16&16711680,i.mode=Ee;case Ee:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need+=(e.read_byte(e.next_in_index++)&255)<<8&65280,i.mode=De;case De:return e.avail_in===0?n:(n=t,e.avail_in--,e.total_in++,i.need+=e.read_byte(e.next_in_index++)&255,i.mode=Oe,p);case Oe:return i.mode=je,e.msg=`need dictionary`,i.marker=0,m;case ke:if(n=i.blocks.proc(e,n),n==h){i.mode=je,i.marker=0;break}if(n==d&&(n=t),n!=f)return n;n=t,i.blocks.reset(e,i.was),i.mode=Ae;case Ae:return e.avail_in=0,f;case je:return h;default:return m}},e.inflateSetDictionary=function(e,t,n){let r=0,i=n;if(!e||!e.istate||e.istate.mode!=Oe)return m;let a=e.istate;return i>=1<<a.wbits&&(i=(1<<a.wbits)-1,r=n-i),a.blocks.set_dictionary(t,r,i),a.mode=ke,d},e.inflateSync=function(e){let n,r,i,a,o;if(!e||!e.istate)return m;let s=e.istate;if(s.mode!=je&&(s.mode=je,s.marker=0),(n=e.avail_in)===0)return _;for(r=e.next_in_index,i=s.marker;n!==0&&i<4;)e.read_byte(r)==Me[i]?i++:i=e.read_byte(r)===0?4-i:0,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,s.marker=i,i==4?(a=e.total_in,o=e.total_out,t(e),e.total_in=a,e.total_out=o,s.mode=ke,d):h},e.inflateSyncPoint=function(e){return!e||!e.istate||!e.istate.blocks?m:e.istate.blocks.sync_point()}}function Pe(){}Pe.prototype={inflateInit(e){let t=this;return t.istate=new Ne,e||=u,t.istate.inflateInit(t,e)},inflate(e){let t=this;return t.istate?t.istate.inflate(t,e):m},inflateEnd(){let e=this;if(!e.istate)return m;let t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){let e=this;return e.istate?e.istate.inflateSync(e):m},inflateSetDictionary(e,t){let n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):m},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function Fe(e){let t=this,n=new Pe,r=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,i=b,a=new Uint8Array(r),o=!1;n.inflateInit(),n.next_out=a,t.append=function(e,t){let s=[],c,l,u=0,p=0,m=0;if(e.length!==0){n.next_in_index=0,n.next_in=e,n.avail_in=e.length;do{if(n.next_out_index=0,n.avail_out=r,n.avail_in===0&&!o&&(n.next_in_index=0,o=!0),c=n.inflate(i),o&&c===_){if(n.avail_in!==0)throw Error(`inflating: bad input`)}else if(c!==d&&c!==f)throw Error(`inflating: `+n.msg);if((o||c===f)&&n.avail_in===e.length)throw Error(`inflating: bad input`);n.next_out_index&&(n.next_out_index===r?s.push(new Uint8Array(a)):s.push(a.subarray(0,n.next_out_index))),m+=n.next_out_index,t&&n.next_in_index>0&&n.next_in_index!=u&&(t(n.next_in_index),u=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return s.length>1?(l=new Uint8Array(m),s.forEach(function(e){l.set(e,p),p+=e.length})):l=s[0]?new Uint8Array(s[0]):new Uint8Array,l}},t.flush=function(){n.inflateEnd()}}var Ie=4294967295,Le=65535,Re=101010256,ze=39169,Be=21589,Ve=28789,He=25461,Ue=6534,We=2048,Ge=`undefined`,Ke=class{constructor(e){return class extends TransformStream{constructor(t,n){let r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){let t=r.flush();t&&e.enqueue(t)}})}}}},qe=64,Je=2;try{typeof navigator<`u`&&navigator.hardwareConcurrency&&(Je=navigator.hardwareConcurrency)}catch{}var Ye=Object.assign({},{chunkSize:512*1024,maxWorkers:Je,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:void 0,CompressionStreamNative:typeof CompressionStream<`u`&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream<`u`&&DecompressionStream});function Xe(){return Ye}function Ze(e){return Math.max(e.chunkSize,qe)}function Qe(e){let{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:a,useWebWorkers:o,Deflate:s,Inflate:c,CompressionStream:l,DecompressionStream:u,workerScripts:d}=e;if($e(`baseURL`,t),$e(`chunkSize`,n),$e(`maxWorkers`,r),$e(`terminateWorkerTimeout`,i),$e(`useCompressionStream`,a),$e(`useWebWorkers`,o),s&&(Ye.CompressionStream=new Ke(s)),c&&(Ye.DecompressionStream=new Ke(c)),$e(`CompressionStream`,l),$e(`DecompressionStream`,u),d!==void 0){let{deflate:e,inflate:t}=d;if((e||t)&&(Ye.workerScripts||={}),e){if(!Array.isArray(e))throw Error(`workerScripts.deflate must be an array`);Ye.workerScripts.deflate=e}if(t){if(!Array.isArray(t))throw Error(`workerScripts.inflate must be an array`);Ye.workerScripts.inflate=t}}}function $e(e,t){t!==void 0&&(Ye[e]=t)}function et(){return`application/octet-stream`}var tt=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t&1?t=t>>>1^3988292384:t>>>=1;tt[e]=t}var nt=class{constructor(e){this.crc=e||-1}append(e){let t=this.crc|0;for(let n=0,r=e.length|0;n<r;n++)t=t>>>8^tt[(t^e[n])&255];this.crc=t}get(){return~this.crc}},rt=class extends TransformStream{constructor(){let e,t=new nt;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){let n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}};function it(e){if(typeof TextEncoder>`u`){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}else return new TextEncoder().encode(e)}var at={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);let n=e[e.length-1],r=at.getPartial(n);return r===32?e.concat(t):at._shiftRight(t,r,n|0,e.slice(0,e.length-1))},bitLength(e){let t=e.length;if(t===0)return 0;let n=e[t-1];return(t-1)*32+at.getPartial(n)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));let n=e.length;return t&=31,n>0&&t&&(e[n-1]=at.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;let i=e.length?e[e.length-1]:0,a=at.getPartial(i);return r.push(at.partial(t+a&31,t+a>32?n:r.pop(),1)),r}},ot={bytes:{fromBits(e){let t=at.bitLength(e)/8,n=new Uint8Array(t),r;for(let i=0;i<t;i++)i&3||(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){let t=[],n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],(n&3)==3&&(t.push(r),r=0);return n&3&&t.push(at.partial(8*(n&3),r)),t}}},st={};st.sha1=class{constructor(e){let t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){let e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){let t=this;typeof e==`string`&&(e=ot.utf8String.toBits(e));let n=t._buffer=at.concat(t._buffer,e),r=t._length,i=t._length=r+at.bitLength(e);if(i>9007199254740991)throw Error(`Cannot hash more than 2^53 - 1 bits`);let a=new Uint32Array(n),o=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=i;e+=t.blockSize)t._block(a.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t}finalize(){let e=this,t=e._buffer,n=e._h;t=at.concat(t,[at.partial(1,1)]);for(let e=t.length+2;e&15;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r}_S(e,t){return t<<e|t>>>32-e}_block(e){let t=this,n=t._h,r=Array(80);for(let t=0;t<16;t++)r[t]=e[t];let i=n[0],a=n[1],o=n[2],s=n[3],c=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));let n=t._S(5,i)+t._f(e,a,o,s)+c+r[e]+t._key[Math.floor(e/20)]|0;c=s,s=o,o=t._S(30,a),a=i,i=n}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0}};var ct={};ct.aes=class{constructor(e){let t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();let n=t._tables[0][4],r=t._tables[1],i=e.length,a,o,s,c=1;if(i!==4&&i!==6&&i!==8)throw Error(`invalid aes key size`);for(t._key=[o=e.slice(0),s=[]],a=i;a<4*i+28;a++){let e=o[a-1];(a%i===0||i===8&&a%i===4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[e&255],a%i===0&&(e=e<<8^e>>>24^c<<24,c=c<<1^(c>>7)*283)),o[a]=o[a-i]^e}for(let e=0;a;e++,a--){let t=o[e&3?a:a-4];a<=4||e<4?s[e]=t:s[e]=r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[t&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){let e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],a=[],o,s,c,l;for(let e=0;e<256;e++)a[(i[e]=e<<1^(e>>7)*283)^e]=e;for(let u=o=0;!n[u];u^=s||1,o=a[o]||1){let a=o^o<<1^o<<2^o<<3^o<<4;a=a>>8^a&255^99,n[u]=a,r[a]=u,l=i[c=i[s=i[u]]];let d=l*16843009^c*65537^s*257^u*16843008,f=i[a]*257^a*16843008;for(let n=0;n<4;n++)e[n][u]=f=f<<24^f>>>8,t[n][a]=d=d<<24^d>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(e.length!==4)throw Error(`invalid aes block size`);let n=this._key[t],r=n.length/4-2,i=[0,0,0,0],a=this._tables[t],o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=e[0]^n[0],f=e[t?3:1]^n[1],p=e[2]^n[2],m=e[t?1:3]^n[3],h=4,g,_,v;for(let e=0;e<r;e++)g=o[d>>>24]^s[f>>16&255]^c[p>>8&255]^l[m&255]^n[h],_=o[f>>>24]^s[p>>16&255]^c[m>>8&255]^l[d&255]^n[h+1],v=o[p>>>24]^s[m>>16&255]^c[d>>8&255]^l[f&255]^n[h+2],m=o[m>>>24]^s[d>>16&255]^c[f>>8&255]^l[p&255]^n[h+3],h+=4,d=g,f=_,p=v;for(let e=0;e<4;e++)i[t?3&-e:e]=u[d>>>24]<<24^u[f>>16&255]<<16^u[p>>8&255]<<8^u[m&255]^n[h++],g=d,d=f,f=p,p=m,m=g;return i}};var lt={getRandomValues(e){let t=new Uint32Array(e.buffer),n=e=>{let t=987654321,n=4294967295;return function(){return t=36969*(t&65535)+(t>>16)&n,e=18e3*(e&65535)+(e>>16)&n,(((t<<16)+e&n)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r<e.length;r+=4){let e=n((i||Math.random())*4294967296);i=e()*987654071,t[r/4]=e()*4294967296|0}return e}},ut={};ut.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)==255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];let i=at.bitLength(t);for(let i=0;i<r;i+=4){this.incCounter(n);let r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return at.clamp(t,i)}};var dt={importKey(e){return new dt.hmacSha1(ot.bytes.toBits(e))},pbkdf2(e,t,n,r){if(n||=1e4,r<0||n<0)throw Error(`invalid params to pbkdf2`);let i=(r>>5)+1<<2,a,o,s,c,l,u=new ArrayBuffer(i),d=new DataView(u),f=0,p=at;for(t=ot.bytes.toBits(t),l=1;f<(i||1);l++){for(a=o=e.encrypt(p.concat(t,[l])),s=1;s<n;s++)for(o=e.encrypt(o),c=0;c<o.length;c++)a[c]^=o[c];for(s=0;f<(i||1)&&s<a.length;s++)d.setInt32(f,a[s]),f+=4}return u.slice(0,r/8)}};dt.hmacSha1=class{constructor(e){let t=this,n=t._hash=st.sha1,r=[[],[]];t._baseHash=[new n,new n];let i=t._baseHash[0].blockSize/32;e.length>i&&(e=new n().update(e).finalize());for(let t=0;t<i;t++)r[0][t]=e[t]^909522486,r[1][t]=e[t]^1549556828;t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){let e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){let t=this;t._updated=!0,t._resultHash.update(e)}digest(){let e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw Error(`encrypt on already updated hmac called!`);return this.update(e),this.digest(e)}};var ft=typeof crypto<`u`&&typeof crypto.getRandomValues==`function`,pt=`Invalid password`,mt=`Invalid signature`,ht=`zipjs-abort-check-password`;function gt(e){return ft?crypto.getRandomValues(e):lt.getRandomValues(e)}var _t=16,vt=`raw`,yt={name:`PBKDF2`},bt={name:`HMAC`},xt=`SHA-1`,St=Object.assign({hash:bt},yt),Ct=Object.assign({iterations:1e3,hash:{name:xt}},yt),wt=[`deriveBits`],Tt=[8,12,16],Et=[16,24,32],Dt=10,Ot=[0,0,0,0],kt=typeof crypto!=Ge,At=kt&&crypto.subtle,jt=kt&&At!==void 0,Mt=ot.bytes,Nt=ct.aes,Pt=ut.ctrGladman,Ft=dt.hmacSha1,It=kt&&jt&&typeof At.importKey==`function`,Lt=kt&&jt&&typeof At.deriveBits==`function`,Rt=class extends TransformStream{constructor({password:e,rawPassword:t,signed:n,encryptionStrength:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise(e=>this.resolveReady=e),password:Kt(e,t),signed:n,strength:r-1,pending:new Uint8Array})},async transform(e,t){let n=this,{password:r,strength:a,resolveReady:o,ready:s}=n;r?(await Vt(n,a,r,Yt(e,0,Tt[a]+2)),e=Yt(e,Tt[a]+2),i?t.error(Error(ht)):o()):await s;let c=new Uint8Array(e.length-Dt-(e.length-Dt)%_t);t.enqueue(Bt(n,e,c,0,Dt,!0))},async flush(e){let{signed:t,ctr:n,hmac:r,pending:i,ready:a}=this;if(r&&n){await a;let o=Yt(i,0,i.length-Dt),s=Yt(i,i.length-Dt),c=new Uint8Array;if(o.length){let e=Zt(Mt,o);r.update(e),c=Xt(Mt,n.update(e))}if(t){let e=Yt(Xt(Mt,r.digest()),0,Dt);for(let t=0;t<Dt;t++)if(e[t]!=s[t])throw Error(mt)}e.enqueue(c)}}})}},zt=class extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:n}){let r;super({start(){Object.assign(this,{ready:new Promise(e=>this.resolveReady=e),password:Kt(e,t),strength:n-1,pending:new Uint8Array})},async transform(e,t){let n=this,{password:r,strength:i,resolveReady:a,ready:o}=n,s=new Uint8Array;r?(s=await Ht(n,i,r),a()):await o;let c=new Uint8Array(s.length+e.length-e.length%_t);c.set(s,0),t.enqueue(Bt(n,e,c,s.length,0))},async flush(e){let{ctr:t,hmac:n,pending:i,ready:a}=this;if(n&&t){await a;let o=new Uint8Array;if(i.length){let e=t.update(Zt(Mt,i));n.update(e),o=Xt(Mt,e)}r.signature=Xt(Mt,n.digest()).slice(0,Dt),e.enqueue(qt(o,r.signature))}}}),r=this}};function Bt(e,t,n,r,i,a){let{ctr:o,hmac:s,pending:c}=e,l=t.length-i;c.length&&(t=qt(c,t),n=Jt(n,l-l%_t));let u;for(u=0;u<=l-_t;u+=_t){let e=Zt(Mt,Yt(t,u,u+_t));a&&s.update(e);let i=o.update(e);a||s.update(i),n.set(Xt(Mt,i),u+r)}return e.pending=Yt(t,u),n}async function Vt(e,t,n,r){let i=await Ut(e,t,n,Yt(r,0,Tt[t])),a=Yt(r,Tt[t]);if(i[0]!=a[0]||i[1]!=a[1])throw Error(pt)}async function Ht(e,t,n){let r=gt(new Uint8Array(Tt[t]));return qt(r,await Ut(e,t,n,r))}async function Ut(e,t,n,r){e.password=null;let i=await Wt(vt,n,St,!1,wt),a=await Gt(Object.assign({salt:r},Ct),i,8*(Et[t]*2+2)),o=new Uint8Array(a),s=Zt(Mt,Yt(o,0,Et[t])),c=Zt(Mt,Yt(o,Et[t],Et[t]*2)),l=Yt(o,Et[t]*2);return Object.assign(e,{keys:{key:s,authentication:c,passwordVerification:l},ctr:new Pt(new Nt(s),Array.from(Ot)),hmac:new Ft(c)}),l}async function Wt(e,t,n,r,i){if(It)try{return await At.importKey(e,t,n,r,i)}catch{return It=!1,dt.importKey(t)}else return dt.importKey(t)}async function Gt(e,t,n){if(Lt)try{return await At.deriveBits(e,t,n)}catch{return Lt=!1,dt.pbkdf2(t,e.salt,Ct.iterations,n)}else return dt.pbkdf2(t,e.salt,Ct.iterations,n)}function Kt(e,t){return t===void 0?it(e):t}function qt(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Jt(e,t){if(t&&t>e.length){let n=e;e=new Uint8Array(t),e.set(n,0)}return e}function Yt(e,t,n){return e.subarray(t,n)}function Xt(e,t){return e.fromBits(t)}function Zt(e,t){return e.toBits(t)}var Qt=12,$t=class extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),rn(this,e)},transform(e,t){let r=this;if(r.password){let t=tn(r,e.subarray(0,Qt));if(r.password=null,t.at(-1)!=r.passwordVerification)throw Error(pt);e=e.subarray(Qt)}n?t.error(Error(ht)):t.enqueue(tn(r,e))}})}},en=class extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),rn(this,e)},transform(e,t){let n=this,r,i;if(n.password){n.password=null;let t=gt(new Uint8Array(Qt));t[Qt-1]=n.passwordVerification,r=new Uint8Array(e.length+t.length),r.set(nn(n,t),0),i=Qt}else r=new Uint8Array(e.length),i=0;r.set(nn(n,e),i),t.enqueue(r)}})}};function tn(e,t){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=on(e)^t[r],an(e,n[r]);return n}function nn(e,t){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=on(e)^t[r],an(e,t[r]);return n}function rn(e,t){let n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new nt(n[0]),crcKey2:new nt(n[2])});for(let n=0;n<t.length;n++)an(e,t.charCodeAt(n))}function an(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=cn(Math.imul(cn(r+sn(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function on(e){let t=e.keys[2]|2;return sn(Math.imul(t,t^1)>>>8)}function sn(e){return e&255}function cn(e){return e&4294967295}var ln=`Invalid uncompressed size`,un=`deflate-raw`,dn=class extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});let{compressed:i,encrypted:a,useCompressionStream:o,zipCrypto:s,signed:c,level:l}=e,u=this,d,f,p=super.readable;(!a||s)&&c&&(d=new rt,p=hn(p,d)),i&&(p=mn(p,o,{level:l,chunkSize:t},r,n)),a&&(s?p=hn(p,new en(e)):(f=new zt(e),p=hn(p,f))),pn(u,p,()=>{let e;a&&!s&&(e=f.signature),(!a||s)&&c&&(e=new DataView(d.value.buffer).getUint32(0)),u.signature=e})}},fn=class extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});let{zipCrypto:i,encrypted:a,signed:o,signature:s,compressed:c,useCompressionStream:l}=e,u,d,f=super.readable;a&&(i?f=hn(f,new $t(e)):(d=new Rt(e),f=hn(f,d))),c&&(f=mn(f,l,{chunkSize:t},r,n)),(!a||i)&&o&&(u=new rt,f=hn(f,u)),pn(this,f,()=>{if((!a||i)&&o&&s!=new DataView(u.value.buffer).getUint32(0,!1))throw Error(mt)})}};function pn(e,t,n){t=hn(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get(){return t}})}function mn(e,t,n,r,i){try{e=hn(e,new(t&&r?r:i)(un,n))}catch(r){if(t)e=hn(e,new i(un,n));else throw r}return e}function hn(e,t){return e.pipeThrough(t)}var gn=`message`,_n=`start`,vn=`data`,yn=`close`,bn=`inflate`,xn=class extends TransformStream{constructor(e,t){super({});let n=this,{codecType:r}=e,i;r.startsWith(`deflate`)?i=dn:r.startsWith(`inflate`)&&(i=fn),n.outputSize=0;let a=0,o=new i(e,t),s=super.readable,c=new TransformStream({transform(e,t){e&&e.length&&(a+=e.length,t.enqueue(e))},flush(){Object.assign(n,{inputSize:a})}}),l=new TransformStream({transform(t,r){if(t&&t.length&&(r.enqueue(t),n.outputSize+=t.length,e.outputSize&&n.outputSize>e.outputSize))throw Error(ln)},flush(){let{signature:e}=o;Object.assign(n,{signature:e,inputSize:a})}});Object.defineProperty(n,"readable",{get(){return s.pipeThrough(c).pipeThrough(o).pipeThrough(l)}})}},Sn=class extends TransformStream{constructor(e){let t;super({transform:n,flush(e){t&&t.length&&e.enqueue(t)}});function n(r,i){if(t){let e=new Uint8Array(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(i.enqueue(r.slice(0,e)),n(r.slice(e),i)):t=r}}},Cn=typeof Worker!=Ge,wn=class{constructor(e,{readable:t,writable:n},{options:r,config:i,streamOptions:a,useWebWorkers:o,transferStreams:s,scripts:c},l){let{signal:u}=a;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new Sn(i.chunkSize)).pipeThrough(new Tn(a),{signal:u}),writable:n,options:Object.assign({},r),scripts:c,transferStreams:s,terminate(){return new Promise(t=>{let{worker:n,busy:r}=e;n?(r?e.resolveTerminated=t:(n.terminate(),t()),e.interface=null):t()})},onTaskFinished(){let{resolveTerminated:t}=e;t&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),t()),e.busy=!1,l(e)}}),(o&&Cn?On:Dn)(e,i)}},Tn=class extends TransformStream{constructor({onstart:e,onprogress:t,size:n,onend:r}){let i=0;super({async start(){e&&await En(e,n)},async transform(e,r){i+=e.length,t&&await En(t,i,n),r.enqueue(e)},async flush(){r&&await En(r,i)}})}};async function En(e,...t){try{await e(...t)}catch{}}function Dn(e,t){return{run:()=>kn(e,t)}}function On(e,t){let{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=Pn(e.scripts[0],n,e)}catch{return Cn=!1,Dn(e,t)}Object.assign(e,{worker:i,interface:{run:()=>An(e,{chunkSize:r})}})}return e.interface}async function kn({options:e,readable:t,writable:n,onTaskFinished:r},i){let a;try{a=new xn(e,i),await t.pipeThrough(a).pipeTo(n,{preventClose:!0,preventAbort:!0});let{signature:r,inputSize:o,outputSize:s}=a;return{signature:r,inputSize:o,outputSize:s}}catch(e){throw a&&(e.outputSize=a.outputSize),e}finally{r()}}async function An(e,t){let n,r,i=new Promise((e,t)=>{n=e,r=t});Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});let{readable:a,options:o,scripts:s}=e,{writable:c,closed:l}=jn(e.writable),u=Fn({type:_n,scripts:s.slice(1),options:o,config:t,readable:a,writable:c},e);u||Object.assign(e,{reader:a.getReader(),writer:c.getWriter()});let d=await i;return u||await c.getWriter().close(),await l,d}function jn(e){let t,n=new Promise(e=>t=e);return{writable:new WritableStream({async write(t){let n=e.getWriter();await n.ready,await n.write(t),n.releaseLock()},close(){t()},abort(t){return e.getWriter().abort(t)}}),closed:n}}var Mn=!0,Nn=!0;function Pn(e,t,n){let r={type:`module`},i,a;typeof e==`function`&&(e=e());try{i=new URL(e,t)}catch{i=e}if(Mn)try{a=new Worker(i)}catch{Mn=!1,a=new Worker(i,r)}else a=new Worker(i,r);return a.addEventListener(gn,e=>In(e,n)),a}function Fn(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:n,readable:r,writable:a}=e,o=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,o.push(e.value)),i&&Nn?(r&&o.push(r),a&&o.push(a)):e.readable=e.writable=null,o.length)try{return t.postMessage(e,o),!0}catch{Nn=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}async function In({data:e},t){let{type:n,value:r,messageId:i,result:a,error:o}=e,{reader:s,writer:c,resolveResult:l,rejectResult:u,onTaskFinished:d}=t;try{if(o){let{message:e,stack:t,code:n,name:r,outputSize:i}=o,a=Error(e);Object.assign(a,{stack:t,code:n,name:r,outputSize:i}),f(a)}else{if(n==`pull`){let{value:e,done:n}=await s.read();Fn({type:vn,value:e,done:n,messageId:i},t)}n==`data`&&(await c.ready,await c.write(new Uint8Array(r)),Fn({type:`ack`,messageId:i},t)),n==`close`&&f(null,a)}}catch(e){Fn({type:yn,messageId:i},t),f(e)}function f(e,t){e?u(e):l(t),c&&c.releaseLock(),d()}}var Ln=[],Rn=[],zn=0;async function Bn(e,t){let{options:n,config:r}=t,{transferStreams:i,useWebWorkers:a,useCompressionStream:o,codecType:s,compressed:c,signed:l,encrypted:u}=n,{workerScripts:d,maxWorkers:f}=r;return t.transferStreams=i||i===void 0,t.useWebWorkers=!(!c&&!l&&!u&&!t.transferStreams)&&(a||a===void 0&&r.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[s]:[],n.useCompressionStream=o||o===void 0&&r.useCompressionStream,(await p()).run();async function p(){let n=Ln.find(e=>!e.busy);if(n)return Hn(n),new wn(n,e,t,m);if(Ln.length<f){let n={indexWorker:zn};return zn++,Ln.push(n),new wn(n,e,t,m)}else return new Promise(n=>Rn.push({resolve:n,stream:e,workerOptions:t}))}function m(e){if(Rn.length){let[{resolve:t,stream:n,workerOptions:r}]=Rn.splice(0,1);t(new wn(e,n,r,m))}else e.worker?(Hn(e),Vn(e,t)):Ln=Ln.filter(t=>t!=e)}}function Vn(e,t){let{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Ln=Ln.filter(t=>t!=e);try{await e.terminate()}catch{}},r))}function Hn(e){let{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function Un(){await Promise.allSettled(Ln.map(e=>(Hn(e),e.terminate())))}var Wn=`HTTP error `,Gn=`HTTP Range not supported`,Kn=`Writer iterator completed too soon`,qn=`Writer not initialized`,Jn=`text/plain`,Yn=`Content-Length`,Xn=`Content-Range`,Zn=`Accept-Ranges`,Qn=`Range`,$n=`Content-Type`,er=`HEAD`,tr=`GET`,nr=`bytes`,rr=64*1024,ir=`writable`,ar=class{constructor(){this.size=0}init(){this.initialized=!0}},or=class extends ar{get readable(){let e=this,{chunkSize:t=rr}=e,n=new ReadableStream({start(){this.chunkOffset=0},async pull(r){let{offset:i=0,size:a,diskNumberStart:o}=n,{chunkOffset:s}=this,c=a===void 0?t:Math.min(t,a-s),l=await Lr(e,i+s,c,o);r.enqueue(l),s+t>a||a===void 0&&!l.length&&c?r.close():this.chunkOffset+=t}});return n}},sr=class extends ar{constructor(){super();let e=this,t=new WritableStream({write(t){if(!e.initialized)throw Error(qn);return e.writeUint8Array(t)}});Object.defineProperty(e,ir,{get(){return t}})}writeUint8Array(){}},cr=class extends or{constructor(e){super();let t=e.length;for(;e.charAt(t-1)==`=`;)t--;let n=e.indexOf(`,`)+1;Object.assign(this,{dataURI:e,dataStart:n,size:Math.floor((t-n)*.75)})}readUint8Array(e,t){let{dataStart:n,dataURI:r}=this,i=new Uint8Array(t),a=Math.floor(e/3)*4,o=atob(r.substring(a+n,Math.ceil((e+t)/3)*4+n)),s=e-Math.floor(a/4)*3,c=0;for(let e=s;e<s+t&&e<o.length;e++)i[e-s]=o.charCodeAt(e),c++;return c<i.length?i.subarray(0,c):i}},lr=class extends sr{constructor(e){super(),Object.assign(this,{data:`data:`+(e||``)+`;base64,`,pending:[]})}writeUint8Array(e){let t=this,n=0,r=t.pending,i=t.pending.length;for(t.pending=``,n=0;n<Math.floor((i+e.length)/3)*3-i;n++)r+=String.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=String.fromCharCode(e[n]);r.length&&(r.length>2?t.data+=btoa(r):t.pending+=r)}getData(){return this.data+btoa(this.pending)}},ur=class extends or{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){let n=this,r=e+t,i=await(e||r<n.size?n.blob.slice(e,r):n.blob).arrayBuffer();return i.byteLength>t&&(i=i.slice(e,r)),new Uint8Array(i)}},dr=class extends ar{constructor(e){super();let t=this,n=new TransformStream,r=[];e&&r.push([$n,e]),Object.defineProperty(t,ir,{get(){return n.writable}}),t.blob=new Response(n.readable,{headers:r}).blob()}getData(){return this.blob}},fr=class extends ur{constructor(e){super(new Blob([e],{type:Jn}))}},pr=class extends dr{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||e.toLowerCase()==`utf-8`})}async getData(){let{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{let t=new FileReader;return new Promise((r,i)=>{Object.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>i(t.error)}),t.readAsText(n,e)})}}},mr=class extends or{constructor(e,t){super(),gr(this,e,t)}async init(){await _r(this,Tr,xr),super.init()}readUint8Array(e,t){return vr(this,e,t,Tr,xr)}},hr=class extends or{constructor(e,t){super(),gr(this,e,t)}async init(){await _r(this,Er,Sr),super.init()}readUint8Array(e,t){return vr(this,e,t,Er,Sr)}};function gr(e,t,n){let{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:a,combineSizeEocd:o}=n;n=Object.assign({},n),delete n.preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:a,combineSizeEocd:o})}async function _r(e,t,n){let{url:r,preventHeadRequest:i,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s}=e;if(Fr(r)&&(a||o)&&(i===void 0||i)){let r=await t(tr,e,yr(e,s?-22:void 0));if(!o&&r.headers.get(Zn)!=nr)throw Error(Gn);{s&&(e.eocdCache=new Uint8Array(await r.arrayBuffer()));let i,a=r.headers.get(Xn);if(a){let e=a.trim().split(/\s*\/\s*/);if(e.length){let t=e[1];t&&t!=`*`&&(i=Number(t))}}i===void 0?await wr(e,t,n):e.size=i}}else await wr(e,t,n)}async function vr(e,t,n,r,i){let{useRangeHeader:a,forceRangeRequests:o,eocdCache:s,size:c,options:l}=e;if(a||o){if(s&&t==c-22&&n==22)return s;if(t>=c)return new Uint8Array;{t+n>c&&(n=c-t);let i=await r(tr,e,yr(e,t,n));if(i.status!=206)throw Error(Gn);return new Uint8Array(await i.arrayBuffer())}}else{let{data:r}=e;return r||await i(e,l),new Uint8Array(e.data.subarray(t,t+n))}}function yr(e,t=0,n=1){return Object.assign({},br(e),{[Qn]:`bytes=`+(t<0?t:t+`-`+(t+n-1))})}function br({options:e}){let{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function xr(e){await Cr(e,Tr)}async function Sr(e){await Cr(e,Er)}async function Cr(e,t){let n=await t(tr,e,br(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||=e.data.length}async function wr(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{let r=(await t(er,e,br(e))).headers.get(Yn);r?e.size=Number(r):await n(e,e.options)}}async function Tr(e,{options:t,url:n},r){let i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(i.status<400)return i;throw i.status==416?Error(Gn):Error(Wn+(i.statusText||i.status))}function Er(e,{url:t},n){return new Promise((r,i)=>{let a=new XMLHttpRequest;if(a.addEventListener(`load`,()=>{if(a.status<400){let e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{let n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,e=>e.toUpperCase()),e.push(n)}),r({status:a.status,arrayBuffer:()=>a.response,headers:new Map(e)})}else i(a.status==416?Error(Gn):Error(Wn+(a.statusText||a.status)))},!1),a.addEventListener(`error`,e=>i(e.detail?e.detail.error:Error(`Network error`)),!1),a.open(e,t),n)for(let e of Object.entries(n))a.setRequestHeader(e[0],e[1]);a.responseType=`arraybuffer`,a.send()})}var Dr=class extends or{constructor(e,t={}){super(),Object.assign(this,{url:e,reader:t.useXHR?new hr(e,t):new mr(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}},Or=class extends Dr{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},kr=class extends or{constructor(e){super(),e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Object.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}},Ar=class extends sr{init(e=0){Object.assign(this,{offset:0,array:new Uint8Array(e)}),super.init()}writeUint8Array(e){let t=this;if(t.offset+e.length>t.array.length){let n=t.array;t.array=new Uint8Array(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},jr=class extends or{constructor(e){super(),this.readers=e}async init(){let e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(t.map(async(n,r)=>{await n.init(),r!=t.length-1&&(e.lastDiskOffset+=n.size),e.size+=n.size})),super.init()}async readUint8Array(e,t,n=0){let r=this,{readers:i}=this,a,o=n;o==-1&&(o=i.length-1);let s=e;for(;i[o]&&s>=i[o].size;)s-=i[o].size,o++;let c=i[o];if(c){let i=c.size;if(s+t<=i)a=await Lr(c,s,t);else{let o=i-s;a=new Uint8Array(t);let l=await Lr(c,s,o);a.set(l,0);let u=await r.readUint8Array(e+o,t-o,n);a.set(u,o),l.length+u.length<t&&(a=a.subarray(0,l.length+u.length))}}else a=new Uint8Array;return r.lastDiskNumber=Math.max(o,r.lastDiskNumber),a}},Mr=class extends ar{constructor(e,t=4294967295){super();let n=this;Object.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});let r,i,a,o=new WritableStream({async write(t){let{availableSize:o}=n;if(a)t.length>=o?(await s(t.subarray(0,o)),await c(),n.diskOffset+=r.size,n.diskNumber++,a=null,await this.write(t.subarray(o))):await s(t);else{let{value:o,done:s}=await e.next();if(s&&!o)throw Error(Kn);r=o,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await Ir(r),i=o.writable,a=i.getWriter(),await this.write(t)}},async close(){await a.ready,await c()}});Object.defineProperty(n,ir,{get(){return o}});async function s(e){let t=e.length;t&&(await a.ready,await a.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function c(){await a.close()}}},Nr=class{constructor(e){return Array.isArray(e)&&(e=new jr(e)),e instanceof ReadableStream&&(e={readable:e}),e}},Pr=class{constructor(e){return e.writable===void 0&&typeof e.next==`function`&&(e=new Mr(e)),e instanceof WritableStream&&(e={writable:e}),e.size===void 0&&(e.size=0),e instanceof Mr||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}};function Fr(e){let{baseURL:t}=Xe(),{protocol:n}=new URL(e,t);return n==`http:`||n==`https:`}async function Ir(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Lr(e,t,n,r){return e.readUint8Array(t,n,r)}var Rr=jr,zr=Mr,Br=`\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `.split(``),Vr=Br.length==256;function Hr(e){if(Vr){let t=``;for(let n=0;n<e.length;n++)t+=Br[e[n]];return t}else return new TextDecoder().decode(e)}function Ur(e,t){return t&&t.trim().toLowerCase()==`cp437`?Hr(e):new TextDecoder(t).decode(e)}var Wr=`filename`,Gr=`rawFilename`,Kr=`comment`,qr=`rawComment`,Jr=`uncompressedSize`,Yr=`compressedSize`,Xr=`offset`,Zr=`diskNumberStart`,Qr=`lastModDate`,$r=`rawLastModDate`,ei=`lastAccessDate`,ti=`rawLastAccessDate`,ni=`creationDate`,ri=`rawCreationDate`,ii=[Wr,Gr,Yr,Jr,Qr,$r,Kr,qr,ei,ni,Xr,Zr,Zr,`internalFileAttribute`,`internalFileAttributes`,`externalFileAttribute`,`externalFileAttributes`,`msDosCompatible`,`zip64`,`encrypted`,`version`,`versionMadeBy`,`zipCrypto`,`directory`,`executable`,`compressionMethod`,`signature`,`extraField`,`bitFlag`,`filenameUTF8`,`commentUTF8`,`rawExtraField`,`extraFieldZip64`,`extraFieldUnicodePath`,`extraFieldUnicodeComment`,`extraFieldAES`,`extraFieldNTFS`,`extraFieldExtendedTimestamp`],ai=class{constructor(e){ii.forEach(t=>this[t]=e[t])}},oi=`filenameEncoding`,si=`commentEncoding`,ci=`extractPrependedData`,li=`extractAppendedData`,ui=`password`,di=`rawPassword`,fi=`passThrough`,pi=`signal`,mi=`checkPasswordOnly`,hi=`checkOverlappingEntryOnly`,gi=`checkOverlappingEntry`,_i=`useWebWorkers`,vi=`useCompressionStream`,yi=`transferStreams`,bi=`File format is not recognized`,xi=`End of central directory not found`,Si=`End of Zip64 central directory locator not found`,Ci=`Central directory header not found`,wi=`Local file header not found`,Ti=`Zip64 extra field not found`,Ei=`File contains encrypted entry`,Di=`Encryption method not supported`,Oi=`Compression method not supported`,ki=`Split zip file`,Ai=`Overlapping entry found`,ji=`utf-8`,Mi=`cp437`,Ni=[[Jr,Ie],[Yr,Ie],[Xr,Ie],[Zr,Le]],Pi={[Le]:{getValue:R,bytes:4},[Ie]:{getValue:Yi,bytes:8}},F=class{constructor(e,t={}){Object.assign(this,{reader:new Nr(e),options:t,config:Xe(),readRanges:[]})}async*getEntriesGenerator(e={}){let t=this,{reader:n}=t,{config:r}=t;if(await Ir(n),(n.size===void 0||!n.readUint8Array)&&(n=new ur(await new Response(n.readable).blob()),await Ir(n)),n.size<22)throw Error(bi);n.chunkSize=Ze(r);let i=await Wi(n,Re,n.size,22,Le*16);if(!i)throw R(z(await Lr(n,0,4)))==134695760?Error(ki):Error(xi);let a=z(i),o=R(a,12),s=R(a,16),c=i.offset,l=L(a,20),u=c+22+l,d=L(a,4),f=n.lastDiskNumber||0,p=L(a,6),m=L(a,8),h=0,g=0;if(s==4294967295||o==4294967295||m==65535||p==65535){let e=z(await Lr(n,i.offset-20,20));if(R(e,0)==117853008){s=Yi(e,8);let t=await Lr(n,s,56,-1),r=z(t),a=i.offset-20-56;if(R(r,0)!=101075792&&s!=a){let e=s;s=a,s>e&&(h=s-e),t=await Lr(n,s,56,-1),r=z(t)}if(R(r,0)!=101075792)throw Error(Si);d==65535&&(d=R(r,16)),p==65535&&(p=R(r,20)),m==65535&&(m=Yi(r,32)),o==4294967295&&(o=Yi(r,40)),s-=o}}if(s>=n.size&&(h=n.size-s-o-22,s=n.size-o-22),f!=d)throw Error(ki);if(s<0)throw Error(bi);let _=0,v=await Lr(n,s,o,p),y=z(v);if(o){let e=i.offset-o;if(R(y,_)!=33639248&&s!=e){let t=s;s=e,s>t&&(h+=s-t),v=await Lr(n,s,o,p),y=z(v)}}let b=i.offset-s-(n.lastDiskOffset||0);if(o!=b&&b>=0&&(o=b,v=await Lr(n,s,o,p),y=z(v)),s<0||s>=n.size)throw Error(bi);let x=Gi(t,e,oi),S=Gi(t,e,si);for(let i=0;i<m;i++){let a=new Fi(n,r,t.options);if(R(y,_)!=33639248)throw Error(Ci);Ii(a,y,_+6);let o=!!a.bitFlag.languageEncodingFlag,s=_+46,c=s+a.filenameLength,l=c+a.extraFieldLength,u=L(y,_+4),d=u>>8==0,f=u>>8==3,p=v.subarray(s,c),b=L(y,_+32),C=l+b,w=v.subarray(l,C),T=o,E=o,D=R(y,_+38),O=d&&(Ji(y,_+38)&16)==16||f&&(D>>16&61440)==16384||p.length&&p.at(-1)==47,k=f&&(D>>16&73)!=0,A=R(y,_+42)+h;Object.assign(a,{versionMadeBy:u,msDosCompatible:d,compressedSize:0,uncompressedSize:0,commentLength:b,directory:O,offset:A,diskNumberStart:L(y,_+34),internalFileAttributes:L(y,_+36),externalFileAttributes:D,rawFilename:p,filenameUTF8:T,commentUTF8:E,rawExtraField:v.subarray(c,l),executable:k}),a.internalFileAttribute=a.internalFileAttributes,a.externalFileAttribute=a.externalFileAttributes;let j=Gi(t,e,`decodeText`)||Ur,ee=T?ji:x||Mi,M=E?ji:S||Mi,N=j(p,ee);N===void 0&&(N=Ur(p,ee));let te=j(w,M);te===void 0&&(te=Ur(w,M)),Object.assign(a,{rawComment:w,filename:N,comment:te,directory:O||N.endsWith(`/`)}),g=Math.max(A,g),Li(a,a,y,_+6),a.zipCrypto=a.encrypted&&!a.extraFieldAES;let ne=new ai(a);ne.getData=(e,n)=>a.getData(e,ne,t.readRanges,n),ne.arrayBuffer=async e=>{let n=new TransformStream,[r]=await Promise.all([new Response(n.readable).arrayBuffer(),a.getData(n,ne,t.readRanges,e)]);return r},_=C;let{onprogress:re}=e;if(re)try{await re(i+1,m,new ai(a))}catch{}yield ne}let C=Gi(t,e,ci),w=Gi(t,e,li);return C&&(t.prependedData=g>0?await Lr(n,0,g):new Uint8Array),t.comment=l?await Lr(n,c+22,l):new Uint8Array,w&&(t.appendedData=u<n.size?await Lr(n,u,n.size-u):new Uint8Array),!0}async getEntries(e={}){let t=[];for await(let n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}},I=class{constructor(e={}){let{readable:t,writable:n}=new TransformStream,r=new F(t,e).getEntriesGenerator();this.readable=new ReadableStream({async pull(e){let{done:t,value:n}=await r.next();if(t)return e.close();let i={...n,readable:(function(){let{readable:e,writable:t}=new TransformStream;if(n.getData)return n.getData(t),e})()};delete i.getData,e.enqueue(i)}}),this.writable=n}},Fi=class{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n,r={}){let i=this,{reader:a,offset:o,diskNumberStart:s,extraFieldAES:c,extraFieldZip64:l,compressionMethod:u,config:d,bitFlag:f,signature:p,rawLastModDate:m,uncompressedSize:h,compressedSize:g}=i,{dataDescriptor:_}=f,v=t.localDirectory={},y=z(await Lr(a,o,30,s)),b=Gi(i,r,ui),x=Gi(i,r,di),S=Gi(i,r,fi);if(b=b&&b.length&&b,x=x&&x.length&&x,c&&c.originalCompressionMethod!=99||u!=0&&u!=8&&!S)throw Error(Oi);if(R(y,0)!=67324752)throw Error(wi);Ii(v,y,4);let{extraFieldLength:C,filenameLength:w,lastAccessDate:T,creationDate:E}=v;v.rawExtraField=C?await Lr(a,o+30+w,C,s):new Uint8Array,Li(i,v,y,4,!0),Object.assign(t,{lastAccessDate:T,creationDate:E});let D=i.encrypted&&v.encrypted&&!S,O=D&&!c;if(S||(t.zipCrypto=O),D){if(!O&&c.strength===void 0)throw Error(Di);if(!b&&!x)throw Error(Ei)}let k=o+30+w+C,A=g,j=a.readable;Object.assign(j,{diskNumberStart:s,offset:k,size:A});let ee=Gi(i,r,pi),M=Gi(i,r,mi),N=Gi(i,r,gi),te=Gi(i,r,hi);te&&(N=!0);let{onstart:ne,onprogress:re,onend:ie}=r,ae={options:{codecType:bn,password:b,rawPassword:x,zipCrypto:O,encryptionStrength:c&&c.strength,signed:Gi(i,r,`checkSignature`)&&!S,passwordVerification:O&&(_?m>>>8&255:p>>>24&255),outputSize:h,signature:p,compressed:u!=0&&!S,encrypted:i.encrypted&&!S,useWebWorkers:Gi(i,r,_i),useCompressionStream:Gi(i,r,vi),transferStreams:Gi(i,r,yi),checkPasswordOnly:M},config:d,streamOptions:{signal:ee,size:A,onstart:ne,onprogress:re,onend:ie}};N&&await Ui({reader:a,fileEntry:t,offset:o,diskNumberStart:s,signature:p,compressedSize:g,uncompressedSize:h,dataOffset:k,dataDescriptor:_||v.bitFlag.dataDescriptor,extraFieldZip64:l||v.extraFieldZip64,readRanges:n});let P;try{if(!te){M&&(e=new WritableStream),e=new Pr(e),await Ir(e,S?g:h),{writable:P}=e;let{outputSize:t}=await Bn({readable:j,writable:P},ae);if(e.size+=t,t!=(S?g:h))throw Error(ln)}}catch(t){if(t.outputSize!==void 0&&(e.size+=t.outputSize),!M||t.message!=`zipjs-abort-check-password`)throw t}finally{!Gi(i,r,`preventClose`)&&P&&!P.locked&&await P.getWriter().close()}return M||te?void 0:e.getData?e.getData():P}};function Ii(e,t,n){let r=e.rawBitFlag=L(t,n+2),i=(r&1)==1,a=R(t,n+6);Object.assign(e,{encrypted:i,version:L(t,n),bitFlag:{level:(r&6)>>1,dataDescriptor:(r&8)==8,languageEncodingFlag:(r&We)==We},rawLastModDate:a,lastModDate:Ki(a),filenameLength:L(t,n+22),extraFieldLength:L(t,n+24)})}function Li(e,t,n,r,i){let{rawExtraField:a}=t,o=t.extraField=new Map,s=z(new Uint8Array(a)),c=0;try{for(;c<a.length;){let e=L(s,c),t=L(s,c+2);o.set(e,{type:e,data:a.slice(c+4,c+4+t)}),c+=4+t}}catch{}let l=L(n,r+4);Object.assign(t,{signature:R(n,r+10),compressedSize:R(n,r+14),uncompressedSize:R(n,r+18)});let u=o.get(1);u&&(Ri(u,t),t.extraFieldZip64=u);let d=o.get(Ve);d&&(zi(d,Wr,Gr,t,e),t.extraFieldUnicodePath=d);let f=o.get(He);f&&(zi(f,Kr,qr,t,e),t.extraFieldUnicodeComment=f);let p=o.get(ze);p?(Bi(p,t,l),t.extraFieldAES=p):t.compressionMethod=l;let m=o.get(10);m&&(Vi(m,t),t.extraFieldNTFS=m);let h=o.get(Be);h&&(Hi(h,t,i),t.extraFieldExtendedTimestamp=h);let g=o.get(Ue);g&&(t.extraFieldUSDZ=g)}function Ri(e,t){t.zip64=!0;let n=z(e.data),r=Ni.filter(([e,n])=>t[e]==n);for(let i=0,a=0;i<r.length;i++){let[o,s]=r[i];if(t[o]==s){let r=Pi[s];t[o]=e[o]=r.getValue(n,a),a+=r.bytes}else if(e[o])throw Error(Ti)}}function zi(e,t,n,r,i){let a=z(e.data),o=new nt;o.append(i[n]);let s=z(new Uint8Array(4));s.setUint32(0,o.get(),!0);let c=R(a,1);Object.assign(e,{version:Ji(a,0),[t]:Ur(e.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&c==R(s,0)}),e.valid&&(r[t]=e[t],r[t+`UTF8`]=!0)}function Bi(e,t,n){let r=z(e.data),i=Ji(r,4);Object.assign(e,{vendorVersion:Ji(r,0),vendorId:Ji(r,2),strength:i,originalCompressionMethod:n,compressionMethod:L(r,5)}),t.compressionMethod=e.compressionMethod}function Vi(e,t){let n=z(e.data),r=4,i;try{for(;r<e.data.length&&!i;){let t=L(n,r),a=L(n,r+2);t==1&&(i=e.data.slice(r+4,r+4+a)),r+=4+a}}catch{}try{if(i&&i.length==24){let n=z(i),r=n.getBigUint64(0,!0),a=n.getBigUint64(8,!0),o=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:r,rawLastAccessDate:a,rawCreationDate:o});let s={lastModDate:qi(r),lastAccessDate:qi(a),creationDate:qi(o)};Object.assign(e,s),Object.assign(t,s)}}catch{}}function Hi(e,t,n){let r=z(e.data),i=Ji(r,0),a=[],o=[];n?((i&1)==1&&(a.push(Qr),o.push($r)),(i&2)==2&&(a.push(ei),o.push(ti)),(i&4)==4&&(a.push(ni),o.push(ri))):e.data.length>=5&&(a.push(Qr),o.push($r));let s=1;a.forEach((n,i)=>{if(e.data.length>=s+4){let a=R(r,s);t[n]=e[n]=new Date(a*1e3);let c=o[i];e[c]=a}s+=4})}async function Ui({reader:e,fileEntry:t,offset:n,diskNumberStart:r,signature:i,compressedSize:a,uncompressedSize:o,dataOffset:s,dataDescriptor:c,extraFieldZip64:l,readRanges:u}){let d=0;if(r)for(let t=0;t<r;t++){let n=e.readers[t];d+=n.size}let f=0;if(c&&(f=l?20:12),f){let n=await Lr(e,s+a,f+4,r);if(R(z(n),0)==134695760){let e=R(z(n),4),r,s;l?(r=Yi(z(n),8),s=Yi(z(n),16)):(r=R(z(n),8),s=R(z(n),12)),(t.encrypted&&!t.zipCrypto||e==i)&&r==a&&s==o&&(f+=4)}}let p={start:d+n,end:d+s+a+f,fileEntry:t};for(let e of u)if(e.fileEntry!=t&&p.start>=e.start&&p.start<e.end){let t=Error(Ai);throw t.overlappingEntry=e.fileEntry,t}u.push(p)}async function Wi(e,t,n,r,i){let a=new Uint8Array(4);Xi(z(a),0,t);let o=r+i;return await s(r)||await s(Math.min(o,n));async function s(t){let i=n-t,o=await Lr(e,i,t);for(let e=o.length-r;e>=0;e--)if(o[e]==a[0]&&o[e+1]==a[1]&&o[e+2]==a[2]&&o[e+3]==a[3])return{offset:i+e,buffer:o.slice(e,e+r).buffer}}}function Gi(e,t,n){return t[n]===void 0?e.options[n]:t[n]}function Ki(e){let t=(e&4294901760)>>16,n=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function qi(e){return new Date(Number(e/BigInt(1e4)-BigInt(0xa9730b66800)))}function Ji(e,t){return e.getUint8(t)}function L(e,t){return e.getUint16(t,!0)}function R(e,t){return e.getUint32(t,!0)}function Yi(e,t){return Number(e.getBigUint64(t,!0))}function Xi(e,t,n){e.setUint32(t,n,!0)}function z(e){return new DataView(e.buffer)}var Zi=s({BlobReader:()=>ur,BlobWriter:()=>dr,Data64URIReader:()=>cr,Data64URIWriter:()=>lr,ERR_BAD_FORMAT:()=>bi,ERR_CENTRAL_DIRECTORY_NOT_FOUND:()=>Ci,ERR_ENCRYPTED:()=>Ei,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:()=>Si,ERR_EOCDR_NOT_FOUND:()=>xi,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:()=>Ti,ERR_HTTP_RANGE:()=>Gn,ERR_INVALID_PASSWORD:()=>pt,ERR_INVALID_SIGNATURE:()=>mt,ERR_INVALID_UNCOMPRESSED_SIZE:()=>ln,ERR_ITERATOR_COMPLETED_TOO_SOON:()=>Kn,ERR_LOCAL_FILE_HEADER_NOT_FOUND:()=>wi,ERR_OVERLAPPING_ENTRY:()=>Ai,ERR_SPLIT_ZIP_FILE:()=>ki,ERR_UNSUPPORTED_COMPRESSION:()=>Oi,ERR_UNSUPPORTED_ENCRYPTION:()=>Di,ERR_WRITER_NOT_INITIALIZED:()=>qn,GenericReader:()=>Nr,GenericWriter:()=>Pr,HttpRangeReader:()=>Or,HttpReader:()=>Dr,Reader:()=>or,SplitDataReader:()=>jr,SplitDataWriter:()=>Mr,SplitZipReader:()=>Rr,SplitZipWriter:()=>zr,TextReader:()=>fr,TextWriter:()=>pr,Uint8ArrayReader:()=>kr,Uint8ArrayWriter:()=>Ar,Writer:()=>sr,ZipReader:()=>F,ZipReaderStream:()=>I,configure:()=>Qe,getMimeType:()=>et,initStream:()=>Ir,readUint8Array:()=>Lr,terminateWorkers:()=>Un});Qe({Inflate:Fe});var Qi=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},re={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),$i=o(((e,t)=>{t.exports=Qi()})),ea=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ta=o(((e,t)=>{t.exports=ea()})),na=o((e=>{var t=$i();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),ra=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=na()})),ia=o((e=>{var t=ta(),n=$i(),r=ra();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var ee=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function P(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),ce=ie(null),le=ie(null);function ue(e,t){switch(P(ce,t),P(se,e),P(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),P(oe,e)}function de(){ae(oe),ae(se),ae(ce)}function fe(e){e.memoizedState!==null&&P(le,e);var t=oe.current,n=Hd(t,e.type);t!==n&&(P(se,e),P(oe,n))}function pe(e){se.current===e&&(ae(oe),ae(se)),le.current===e&&(ae(le),Qf._currentValue=te)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #dac48d55e990d7ea Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/htmlReport/report.js:16
              rgb(0 0 0 / 25%) 0px 6px 12px`},Lo=({diff:e,noTargetBlank:t,hideDetails:n})=>{let[r,i]=B.useState(e.diff?`diff`:`actual`),[a,o]=B.useState(!1),[s,c]=B.useState(null),[l,u]=B.useState(`Expected`),[d,f]=B.useState(null),[p,m]=B.useState(null),[h,g]=Na();B.useEffect(()=>{(async()=>{c(await Fo(e.expected?.attachment.path)),u(e.expected?.title||`Expected`),f(await Fo(e.actual?.attachment.path)),m(await Fo(e.diff?.attachment.path))})()},[e]);let _=s&&d&&p,v=_?Math.max(s.naturalWidth,d.naturalWidth,200):500,y=_?Math.max(s.naturalHeight,d.naturalHeight,200):500,b=Math.min(1,(h.width-30)/v),x=Math.min(1,(h.width-50)/v/2),S=v*b,C=y*b,w={flex:`none`,margin:`0 10px`,cursor:`pointer`,userSelect:`none`};return(0,V.jsx)(`div`,{"data-testid":`test-result-image-mismatch`,style:{display:`flex`,flexDirection:`column`,alignItems:`center`,flex:`auto`},ref:g,children:_&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{"data-testid":`test-result-image-mismatch-tabs`,style:{display:`flex`,margin:`10px 0 20px`},children:[e.diff&&(0,V.jsx)(`div`,{style:{...w,fontWeight:r===`diff`?600:`initial`},onClick:()=>i(`diff`),children:`Diff`}),(0,V.jsx)(`div`,{style:{...w,fontWeight:r===`actual`?600:`initial`},onClick:()=>i(`actual`),children:`Actual`}),(0,V.jsx)(`div`,{style:{...w,fontWeight:r===`expected`?600:`initial`},onClick:()=>i(`expected`),children:l}),(0,V.jsx)(`div`,{style:{...w,fontWeight:r===`sxs`?600:`initial`},onClick:()=>i(`sxs`),children:`Side by side`}),(0,V.jsx)(`div`,{style:{...w,fontWeight:r===`slider`?600:`initial`},onClick:()=>i(`slider`),children:`Slider`})]}),(0,V.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,flex:`auto`,minHeight:C+60},children:[e.diff&&r===`diff`&&(0,V.jsx)(zo,{image:p,alt:`Diff`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`actual`&&(0,V.jsx)(zo,{image:d,alt:`Actual`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`expected`&&(0,V.jsx)(zo,{image:s,alt:l,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),e.diff&&r===`slider`&&(0,V.jsx)(Ro,{expectedImage:s,actualImage:d,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b,expectedTitle:l}),e.diff&&r===`sxs`&&(0,V.jsxs)(`div`,{style:{display:`flex`},children:[(0,V.jsx)(zo,{image:s,title:l,hideSize:n,canvasWidth:x*v,canvasHeight:x*y,scale:x}),(0,V.jsx)(zo,{image:a?p:d,title:a?`Diff`:`Actual`,onClick:()=>o(!a),hideSize:n,canvasWidth:x*v,canvasHeight:x*y,scale:x})]}),!e.diff&&r===`actual`&&(0,V.jsx)(zo,{image:d,title:`Actual`,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),!e.diff&&r===`expected`&&(0,V.jsx)(zo,{image:s,title:l,hideSize:n,canvasWidth:S,canvasHeight:C,scale:b}),!e.diff&&r===`sxs`&&(0,V.jsxs)(`div`,{style:{display:`flex`},children:[(0,V.jsx)(zo,{image:s,title:l,canvasWidth:x*v,canvasHeight:x*y,scale:x}),(0,V.jsx)(zo,{image:d,title:`Actual`,canvasWidth:x*v,canvasHeight:x*y,scale:x})]})]}),!n&&(0,V.jsxs)(`div`,{style:{alignSelf:`start`,lineHeight:`18px`,marginLeft:`15px`},children:[(0,V.jsx)(`div`,{children:e.diff&&(0,V.jsx)(`a`,{target:`_blank`,href:e.diff.attachment.path,rel:`noreferrer`,children:e.diff.attachment.name})}),(0,V.jsx)(`div`,{children:(0,V.jsx)(`a`,{target:t?``:`_blank`,href:e.actual.attachment.path,rel:`noreferrer`,children:e.actual.attachment.name})}),(0,V.jsx)(`div`,{children:(0,V.jsx)(`a`,{target:t?``:`_blank`,href:e.expected.attachment.path,rel:`noreferrer`,children:e.expected.attachment.name})})]})]})})},Ro=({expectedImage:e,actualImage:t,canvasWidth:n,canvasHeight:r,scale:i,expectedTitle:a,hideSize:o})=>{let s={position:`absolute`,top:0,left:0},[c,l]=B.useState(n/2),u=e.naturalWidth===t.naturalWidth&&e.naturalHeight===t.naturalHeight;return(0,V.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`,userSelect:`none`},children:[!o&&(0,V.jsxs)(`div`,{style:{margin:5},children:[!u&&(0,V.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`Actual `}),!u&&(0,V.jsx)(`span`,{children:t.naturalWidth}),!u&&(0,V.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),!u&&(0,V.jsx)(`span`,{children:t.naturalHeight}),!u&&(0,V.jsxs)(`span`,{style:{flex:`none`,margin:`0 5px 0 15px`},children:[a,` `]}),(0,V.jsx)(`span`,{children:e.naturalWidth}),(0,V.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,V.jsx)(`span`,{children:e.naturalHeight})]}),(0,V.jsxs)(`div`,{style:{position:`relative`,width:n,height:r,margin:15,...Io},children:[(0,V.jsx)(Po,{orientation:`horizontal`,offsets:[c],setOffsets:e=>l(e[0]),resizerColor:`#57606a80`,resizerWidth:6}),(0,V.jsx)(`img`,{alt:a,style:{width:e.naturalWidth*i,height:e.naturalHeight*i},draggable:`false`,src:e.src}),(0,V.jsx)(`div`,{style:{...s,bottom:0,overflow:`hidden`,width:c,...Io},children:(0,V.jsx)(`img`,{alt:`Actual`,style:{width:t.naturalWidth*i,height:t.naturalHeight*i},draggable:`false`,src:t.src})})]})]})},zo=({image:e,title:t,alt:n,hideSize:r,canvasWidth:i,canvasHeight:a,scale:o,onClick:s})=>(0,V.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`},children:[!r&&(0,V.jsxs)(`div`,{style:{margin:5},children:[t&&(0,V.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:t}),(0,V.jsx)(`span`,{children:e.naturalWidth}),(0,V.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,V.jsx)(`span`,{children:e.naturalHeight})]}),(0,V.jsx)(`div`,{style:{display:`flex`,flex:`none`,width:i,height:a,margin:15,...Io},children:(0,V.jsx)(`img`,{width:e.naturalWidth*o,height:e.naturalHeight*o,alt:t||n,style:{cursor:s?`pointer`:`initial`},draggable:`false`,src:e.src,onClick:s})})]});function Bo(e,t){let n=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,r=[],i,a={},o=!1,s=t?.fg,c=t?.bg;for(;(i=n.exec(e))!==null;){let[,,e,,n]=i;if(e)for(let n of e.split(`;`)){let e=+n;switch(e){case 0:a={};break;case 1:a[`font-weight`]=`bold`;break;case 2:a.opacity=`0.8`;break;case 3:a[`font-style`]=`italic`;break;case 4:a[`text-decoration`]=`underline`;break;case 7:o=!0;break;case 8:a.display=`none`;break;case 9:a[`text-decoration`]=`line-through`;break;case 22:delete a[`font-weight`],delete a[`font-style`],delete a.opacity,delete a[`text-decoration`];break;case 23:delete a[`font-weight`],delete a[`font-style`],delete a.opacity;break;case 24:delete a[`text-decoration`];break;case 27:o=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:s=Vo[e-30];break;case 39:s=t?.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:c=Vo[e-40];break;case 49:c=t?.bg;break;case 53:a[`text-decoration`]=`overline`;break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:s=Ho[e-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:c=Ho[e-100];break}}else if(n){let e={...a},t=o?c:s;t!==void 0&&(e.color=t),o&&s&&(e[`background-color`]=s),r.push(`<span style="${Wo(e)}">${Uo(n)}</span>`)}}return r.join(``)}var Vo={0:`var(--vscode-terminal-ansiBlack)`,1:`var(--vscode-terminal-ansiRed)`,2:`var(--vscode-terminal-ansiGreen)`,3:`var(--vscode-terminal-ansiYellow)`,4:`var(--vscode-terminal-ansiBlue)`,5:`var(--vscode-terminal-ansiMagenta)`,6:`var(--vscode-terminal-ansiCyan)`,7:`var(--vscode-terminal-ansiWhite)`},Ho={0:`var(--vscode-terminal-ansiBrightBlack)`,1:`var(--vscode-terminal-ansiBrightRed)`,2:`var(--vscode-terminal-ansiBrightGreen)`,3:`var(--vscode-terminal-ansiBrightYellow)`,4:`var(--vscode-terminal-ansiBrightBlue)`,5:`var(--vscode-terminal-ansiBrightMagenta)`,6:`var(--vscode-terminal-ansiBrightCyan)`,7:`var(--vscode-terminal-ansiBrightWhite)`};function Uo(e){return e.replace(/[&"<>]/g,e=>({"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`})[e])}function Wo(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}var Go=({code:e,children:t,testId:n})=>(0,V.jsxs)(`div`,{className:`test-error-container test-error-text`,"data-testid":n,children:[t,(0,V.jsx)(`div`,{className:`test-error-view`,dangerouslySetInnerHTML:{__html:B.useMemo(()=>Jo(e),[e])||``}})]}),Ko=({prompt:e})=>{let[t,n]=B.useState(!1);return(0,V.jsx)(`button`,{className:`button`,style:{minWidth:100},onClick:async()=>{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>{n(!1)},3e3)},children:t?`Copied`:`Copy prompt`})},qo=({diff:e})=>(0,V.jsx)(`div`,{"data-testid":`test-screenshot-error-view`,className:`test-error-view`,children:(0,V.jsx)(Lo,{diff:e,hideDetails:!0},`image-diff`)});function Jo(e){return Bo(e||``,{bg:`var(--color-canvas-subtle)`,fg:`var(--color-fg-default)`})}var Yo=({file:e,projectNames:t,isFileExpanded:n,setFileExpanded:r,footer:i})=>(0,V.jsx)(Oo,{expanded:n?n(e.fileId):void 0,noInsets:!0,setExpanded:r?(t=>r(e.fileId,t)):void 0,header:(0,V.jsx)(`span`,{className:`chip-header-allow-selection`,children:e.fileName}),footer:i,children:(0,V.jsx)(Xo,{tests:e.tests,projectNames:t})}),Xo=({tests:e,projectNames:t,runs:n,selectedTestId:r})=>{let i=H();return(0,V.jsx)(`div`,{role:`list`,children:e.map((e,a)=>{let o=n?.[a],s=lo({test:e,result:o===void 0?void 0:e.results[o]},i),c=r===e.testId;return(0,V.jsxs)(`div`,{className:La(`test-file-test`,`test-file-test-outcome-`+e.outcome,c&&`test-file-test-selected`),role:`listitem`,"aria-current":c,children:[(0,V.jsxs)(`div`,{className:`hbox`,style:{alignItems:`flex-start`},children:[(0,V.jsxs)(`div`,{className:`hbox`,children:[(0,V.jsx)(`span`,{className:`test-file-test-status-icon`,children:U(e.outcome)}),(0,V.jsxs)(`span`,{children:[(0,V.jsx)(Xa,{href:s,title:[...e.path,e.title].join(` › `),children:(0,V.jsx)(`span`,{className:`test-file-title`,children:[...e.path,e.title].join(` › `)})}),(0,V.jsx)(Ka,{style:{marginLeft:`6px`},projectNames:t,activeProjectName:e.projectName,otherLabels:e.tags})]})]}),(0,V.jsx)(`span`,{"data-testid":`test-duration`,style:{minWidth:`50px`,textAlign:`right`},children:jo(e.duration)})]}),(0,V.jsx)(`div`,{className:`test-file-details-row`,children:(0,V.jsxs)(`div`,{className:`test-file-details-row-items`,children:[(0,V.jsx)(Xa,{href:s,title:[...e.path,e.title].join(` › `),className:`test-file-path-link`,children:(0,V.jsxs)(`span`,{className:`test-file-path`,children:[e.location.file,`:`,e.location.line]})}),(0,V.jsx)(Zo,{test:e}),(0,V.jsx)(Qo,{test:e}),(0,V.jsx)(eo,{test:e,dim:!0})]})})]},`test-${e.testId}`)})})};function Zo({test:e}){let t=H();for(let n of e.results)for(let r of n.attachments)if(r.contentType.startsWith(`image/`)&&r.name.match(/-(expected|actual|diff)/))return(0,V.jsx)(Za,{href:lo({test:e,result:n,anchor:`attachment-${n.attachments.indexOf(r)}`},t),title:`View images`,dim:!0,children:Ta()})}function Qo({test:e}){let t=H(),n=e.results.find(e=>e.attachments.some(e=>e.name===`video`));return n?(0,V.jsx)(Za,{href:lo({test:e,result:n,anchor:`attachment-video`},t),title:`View video`,dim:!0,children:Ea()}):void 0}var $o=RegExp(`([\\u001B\\u009B][[\\]()#?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{0,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))`,`g`);function es(e){return e.replace($o,``)}function ts(e,t){let n=new Map;for(let r of e){let e=r.name.match(/^(.*)-(expected|actual|diff|previous)(\.[^.]+)?$/);if(!e)continue;let[,i,a,o=``]=e,s=i+o,c=n.get(s);c||(c={name:s,anchors:[`attachment-${i}`]},n.set(s,c)),c.anchors.push(`attachment-${t.attachments.indexOf(r)}`),a===`actual`&&(c.actual={attachment:r}),a===`expected`&&(c.expected={attachment:r,title:`Expected`}),a===`previous`&&(c.expected={attachment:r,title:`Previous`}),a===`diff`&&(c.diff={attachment:r})}for(let[t,r]of n)!r.actual||!r.expected?n.delete(t):(e.delete(r.actual.attachment),e.delete(r.expected.attachment),e.delete(r.diff?.attachment));return[...n.values()]}var ns=({report:e,test:t,result:n})=>{let{screenshots:r,videos:i,traces:a,otherAttachments:o,diffs:s,errors:c,otherAttachmentAnchors:l,screenshotAnchors:u,errorContext:d}=B.useMemo(()=>{let e=n.attachments.filter(e=>!e.name.startsWith(`_`)),t=new Set(e.filter(e=>e.contentType.startsWith(`image/`))),r=[...t].map(t=>`attachment-${e.indexOf(t)}`),i=e.filter(e=>e.contentType.startsWith(`video/`)),a=e.filter(e=>e.name===`trace`),o=e.find(e=>e.name===`error-context`),s=new Set(e);[...t,...i,...a].forEach(e=>s.delete(e));let c=[...s].map(t=>`attachment-${e.indexOf(t)}`),l=ts(t,n),u=n.errors.map(e=>e.message);return{screenshots:[...t],videos:i,traces:a,otherAttachments:s,diffs:l,errors:u,otherAttachmentAnchors:c,screenshotAnchors:r,errorContext:o}},[n]),[f,p]=B.useState(``);B.useEffect(()=>p(``),[n]);let m=Ma(async()=>{if(e.json().options?.noCopyPrompt||!d)return;let t=d.path?await fetch(d.path).then(e=>e.text()):d.body;if(!t)return;let r=n.attachments.find(e=>e.name===`stdout`),i=n.attachments.find(e=>e.name===`stderr`),a=r?.body&&r.contentType===`text/plain`?r.body:void 0,o=i?.body&&i.contentType===`text/plain`?i.body:void 0;a&&(t+=`

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #ff262e970edfad6f Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/assets/urlMatch-L3liM589.js:1
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e,t=`'`){let n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,`"`);if(t===`'`)return t+r.replace(/[']/g,`\\'`)+t;if(t===`"`)return t+r.replace(/["]/g,`\\"`)+t;if(t==="`")return t+r.replace(/[`]/g,"\\`")+t;throw Error(`Invalid escape char`)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1_$2`).replace(/([A-Z])([A-Z][a-z])/g,`$1_$2`).toLowerCase()}function r(e){return`"${e.replace(/["\\]/g,e=>`\\`+e)}"`}var i;function a(){i=new Map}function o(e){let t=i?.get(e);return t===void 0&&(t=e.replace(/[\u200b\u00ad]/g,``).trim().replace(/\s+/g,` `),i?.set(e,t)),t}function s(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,`$1$2$3`)}function c(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,`$1$2\\$3`).replace(/>>/g,`\\>\\>`)}function l(e,t){return typeof e==`string`?`${JSON.stringify(e)}${t?`s`:`i`}`:c(e)}function u(e,t){return typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/["]/g,`\\"`)}"${t?`s`:`i`}`:c(e)}function d(e,t,n=``){if(e.length<=t)return e;let r=[...e];return r.length>t?r.slice(0,t-n.length).join(``)+n:r.join(``)}function f(e,t){return d(e,t,`…`)}function p(e){if(!e.startsWith(`data:`))return e;let t=e.indexOf(`,`);return t===-1?e:e.slice(0,t+1)+`…`}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e,t){let n=e.length,r=t.length,i=0,a=0,o=Array(n+1).fill(null).map(()=>Array(r+1).fill(0));for(let s=1;s<=n;s++)for(let n=1;n<=r;n++)e[s-1]===t[n-1]&&(o[s][n]=o[s-1][n-1]+1,o[s][n]>i&&(i=o[s][n],a=s));return e.slice(a-i,a)}function g(e,t){try{return[`http:`,`https:`].includes(new URL(e,t).protocol)}catch{return!1}}export{m as a,s as c,n as d,t as f,l as i,o as l,p as m,a as n,e as o,f as p,u as r,h as s,g as t,r as u};

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #2df7a8b5d183012d Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/index.DLSGjmWZ.js:1
import{D as e,_ as t,b as n,g as r,i,k as a,n as o,o as s,r as c,s as l,t as u,v as d}from"./assets/defaultSettingsView-CT5oRh4X.js";import"./assets/urlMatch-L3liM589.js";var f=a(e(),1),p=a(d(),1),m=r(),h=()=>{let[e,n]=f.useState(!1),[r,a]=f.useState(),[d,p]=f.useState(),[h,_]=f.useState(g),[v,y]=f.useState({done:0,total:0}),[b,x]=f.useState(!1),[S,C]=f.useState(null),[w,T]=f.useState(null),[E,D]=f.useState(!1),O=f.useCallback(e=>{let t=new URL(window.location.href);if(!e.length)return;let n=e.item(0),r=URL.createObjectURL(n);t.searchParams.append(`trace`,r);let i=t.toString();window.history.pushState({},``,i),a(r),p(n.name),x(!1),C(null)},[]);f.useEffect(()=>{let e=async e=>{if(!e.clipboardData?.files.length)return;let t=[`application/zip`,`application/x-zip-compressed`];for(let n of e.clipboardData.files)if(!t.includes(n.type))return;e.preventDefault(),O(e.clipboardData.files)};return document.addEventListener(`paste`,e),()=>document.removeEventListener(`paste`,e)}),f.useEffect(()=>{let e=e=>{let{method:t,params:n}=e.data;if(t!==`load`||!(n?.trace instanceof Blob))return;let r=new File([n.trace],`trace.zip`,{type:`application/zip`}),i=new DataTransfer;i.items.add(r),O(i.files)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)});let k=f.useCallback(e=>{e.preventDefault(),O(e.dataTransfer.files)},[O]),A=f.useCallback(e=>{e.preventDefault(),e.target.files&&O(e.target.files)},[O]);f.useEffect(()=>{let e=new URL(window.location.href).searchParams,t=e.get(`trace`);if(n(e.has(`isServer`)),t?.startsWith(`file:`)){T(t||null);return}if(e.has(`isServer`)){let e=new URLSearchParams(window.location.search).get(`ws`),t=new URL(`../${e}`,window.location.toString());t.protocol=window.location.protocol===`https:`?`wss:`:`ws:`;let n=new o(new c(t));n.onLoadTraceRequested(async e=>{a(e.traceUrl),x(!1),C(null)}),n.initialize({}).catch(()=>{})}else t&&!t.startsWith(`blob:`)&&a(t)},[]);let j=f.useCallback(async e=>{let n=new URLSearchParams;n.set(`trace`,e);let r=await fetch(`contexts?${n.toString()}`);if(!r.ok){let{error:e}=await r.json();return C(e),e}let i=new t(e,await r.json());y({done:0,total:0}),C(null),_(i)},[]);f.useEffect(()=>{(async()=>{if(!r){_(g);return}let t=e=>{e.data.method===`progress`&&y(e.data.params)};try{navigator.serviceWorker.addEventListener(`message`,t),y({done:0,total:1});let n=await j(r);n?.includes(`please grant permission for Local Network Access`)&&(await fetch(r,{method:`HEAD`,headers:{"x-pw-serviceworker":`skip`}}),n=await j(r)),n&&(e||a(void 0))}finally{navigator.serviceWorker.removeEventListener(`message`,t)}})()},[e,r,d,j]);let M=v.done!==v.total&&v.total!==0&&!S;f.useEffect(()=>{if(M){let e=setTimeout(()=>{D(!0)},200);return()=>clearTimeout(e)}else D(!1)},[M]);let N=!!(!e&&!b&&!w&&(!r||S));return(0,m.jsxs)(`div`,{className:`vbox workbench-loader`,onDragOver:e=>{e.preventDefault(),e.dataTransfer.types.includes(`Files`)&&x(!0)},children:[(0,m.jsxs)(`div`,{className:`hbox workbench-loader-header`,...N?{inert:!0}:{},children:[(0,m.jsx)(`div`,{className:`logo`,children:(0,m.jsx)(`img`,{src:`playwright-logo.svg`,alt:`Playwright logo`})}),(0,m.jsx)(`div`,{className:`product`,children:`Playwright`}),h.title&&(0,m.jsx)(`div`,{className:`title`,children:h.title}),(0,m.jsx)(`div`,{className:`spacer`}),(0,m.jsx)(s,{icon:`settings-gear`,title:`Settings`,dialogDataTestId:`settings-toolbar-dialog`,children:(0,m.jsx)(u,{location:`trace-viewer`})})]}),(0,m.jsx)(i,{model:h,inert:N}),w&&(0,m.jsxs)(`div`,{className:`drop-target`,children:[(0,m.jsx)(`div`,{children:`Trace Viewer uses Service Workers to show traces. To view trace:`}),(0,m.jsxs)(`div`,{style:{paddingTop:20},children:[(0,m.jsxs)(`div`,{children:[`1. Click `,(0,m.jsx)(`a`,{href:w,children:`here`}),` to put your trace into the download shelf`]}),(0,m.jsxs)(`div`,{children:[`2. Go to `,(0,m.jsx)(`a`,{href:`https://trace.playwright.dev`,children:`trace.playwright.dev`})]}),(0,m.jsx)(`div`,{children:`3. Drop the trace from the download shelf into the page`})]})]}),(0,m.jsx)(l,{open:E,isModal:!0,className:`progress-dialog`,children:(0,m.jsxs)(`div`,{className:`progress-content`,children:[(0,m.jsx)(`div`,{className:`title`,role:`heading`,"aria-level":1,children:`Loading Playwright Trace...`}),(0,m.jsx)(`div`,{className:`progress-wrapper`,children:(0,m.jsx)(`div`,{className:`inner-progress`,style:{width:v.total?100*v.done/v.total+`%`:0}})})]})}),N&&(0,m.jsxs)(`div`,{className:`drop-target`,children:[(0,m.jsx)(`div`,{className:`processing-error`,role:`alert`,children:S}),(0,m.jsx)(`div`,{className:`title`,role:`heading`,"aria-level":1,children:`Drop Playwright Trace to load`}),(0,m.jsx)(`div`,{children:`or`}),(0,m.jsx)(`button`,{onClick:()=>{let e=document.createElement(`input`);e.type=`file`,e.click(),e.addEventListener(`change`,e=>A(e))},type:`button`,children:`Select file`}),(0,m.jsx)(`div`,{className:`info`,children:`Playwright Trace Viewer is a Progressive Web App, it does not send your trace anywhere, it opens it locally.`}),(0,m.jsxs)(`div`,{className:`version`,children:[`Playwright v`,`1.62.0-next`]})]}),e&&!r&&(0,m.jsx)(`div`,{className:`drop-target`,children:(0,m.jsx)(`div`,{className:`title`,children:`Select test to see the trace`})}),b&&(0,m.jsx)(`div`,{className:`drop-target`,onDragLeave:()=>{x(!1)},onDrop:e=>k(e),children:(0,m.jsx)(`div`,{className:`title`,children:`Release to analyse the Playwright Trace`})})]})},g=new t(``,[]),_=({traceJson:e})=>{let[n,r]=f.useState(void 0),[a,o]=f.useState(0),s=f.useRef(null);return f.useEffect(()=>(s.current&&clearTimeout(s.current),s.current=setTimeout(async()=>{try{r(await v(e))}catch{r(new t(``,[]))}finally{o(a+1)}},500),()=>{s.current&&clearTimeout(s.current)}),[e,a]),(0,m.jsx)(i,{isLive:!0,model:n})};async function v(e){let n=new URLSearchParams;return n.set(`trace`,e),new t(e,await(await fetch(`contexts?${n.toString()}`)).json())}(async()=>{let e=new URLSearchParams(window.location.search);if(n(),window.location.protocol!==`file:`){if(e.get(`isUnderTest`)===`true`&&await new Promise(e=>setTimeout(e,1e3)),!navigator.serviceWorker)throw Error(`Service workers are not supported.\nMake sure to serve the Trace Viewer (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register(`sw.bundle.js`),navigator.serviceWorker.controller||await new Promise(e=>{navigator.serviceWorker.oncontrollerchange=()=>e()}),setInterval(function(){fetch(`ping`)},1e4)}let t=e.get(`trace`),r=t?.endsWith(`.json`)?(0,m.jsx)(_,{traceJson:t}):(0,m.jsx)(h,{});p.createRoot(document.querySelector(`#root`)).render(r)})();

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #776e21fc9c57865b Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/snapshot.B_Jk1wbt.js:1
import{t as e}from"./assets/urlMatch-L3liM589.js";(async()=>{if(!navigator.serviceWorker)throw Error(`Service workers are not supported.\nMake sure to serve the Trace Viewer (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register(`sw.bundle.js`),navigator.serviceWorker.controller||await new Promise(e=>navigator.serviceWorker.oncontrollerchange=e);let t=new URL(location.href).searchParams.get(`trace`),n=new URLSearchParams;t&&n.set(`trace`,t),await fetch(`contexts?`+n.toString());let r=new URLSearchParams(location.search).get(`r`);if(!r||!e(r,location.href))return;let i=document.querySelector(`iframe`);i&&(i.src=r)})();

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #36e044009a072a52 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/sw.bundle.js:2
`))this._appendEvent(t)}actions(){return[...this._actionMap.values()]}_pageEntry(e){let t=this._pageEntries.get(e);return t||(t={pageId:e,screencastFrames:[]},this._pageEntries.set(e,t),this._contextEntry.pages.push(t)),t}_appendEvent(e){if(!e)return;let t=this._modernize(JSON.parse(e));for(let e of t)this._innerAppendEvent(e)}_innerAppendEvent(e){let t=this._contextEntry;switch(e.type){case`context-options`:if(e.version>O)throw new D(`The trace was created by a newer version of Playwright and is not supported by this version of the viewer. Please use latest Playwright to open the trace.`);this._version=e.version,t.origin=e.origin,t.browserName=e.browserName,t.channel=e.channel,t.title=e.title,t.platform=e.platform,t.playwrightVersion=e.playwrightVersion,t.wallTime=e.wallTime,t.startTime=e.monotonicTime,t.sdkLanguage=e.sdkLanguage,t.options=e.options,t.testIdAttributeName=e.testIdAttributeName,t.contextId=e.contextId??``,t.testTimeout=e.testTimeout;break;case`screencast-frame`:this._pageEntry(e.pageId).screencastFrames.push(e);break;case`before`:this._actionMap.set(e.callId,{...e,type:`action`,endTime:0,log:[]});break;case`input`:{let t=this._actionMap.get(e.callId);t.inputSnapshot=e.inputSnapshot,t.point=e.point;break}case`log`:{let t=this._actionMap.get(e.callId);if(!t)return;t.log.push({time:e.time,message:e.message});break}case`after`:{let t=this._actionMap.get(e.callId);t.afterSnapshot=e.afterSnapshot,t.endTime=e.endTime,t.result=e.result,t.error=e.error,t.attachments=e.attachments,t.annotations=e.annotations,e.point&&(t.point=e.point);break}case`action`:this._actionMap.set(e.callId,{...e,log:[]});break;case`event`:t.events.push(e);break;case`stdout`:t.stdio.push(e);break;case`stderr`:t.stdio.push(e);break;case`error`:t.errors.push(e);break;case`console`:t.events.push(e);break;case`resource-snapshot`:this._snapshotStorage.addResource(this._contextEntry.contextId,e.snapshot),t.resources.push(e.snapshot);break;case`frame-snapshot`:this._snapshotStorage.addFrameSnapshot(this._contextEntry.contextId,e.snapshot,this._pageEntry(e.snapshot.pageId).screencastFrames);break}`pageId`in e&&e.pageId&&this._pageEntry(e.pageId),(e.type===`action`||e.type===`before`)&&(t.startTime=Math.min(t.startTime,e.startTime)),(e.type===`action`||e.type===`after`)&&(t.endTime=Math.max(t.endTime,e.endTime)),e.type===`event`&&(t.startTime=Math.min(t.startTime,e.time),t.endTime=Math.max(t.endTime,e.time)),e.type===`screencast-frame`&&(t.startTime=Math.min(t.startTime,e.timestamp),t.endTime=Math.max(t.endTime,e.timestamp))}_processedContextCreatedEvent(){return this._version!==void 0}_modernize(e){let t=this._version??e.version??6,n=[e];for(;t<O;++t)n=this[`_modernize_${t}_to_${t+1}`].call(this,n);return n}_modernize_0_to_1(e){for(let t of e)t.type===`action`&&typeof t.metadata.error==`string`&&(t.metadata.error={error:{name:`Error`,message:t.metadata.error}});return e}_modernize_1_to_2(e){for(let t of e)t.type!==`frame-snapshot`||!t.snapshot.isMainFrame||(t.snapshot.viewport=this._contextEntry.options?.viewport||{width:1280,height:720});return e}_modernize_2_to_3(e){for(let t of e){if(t.type!==`resource-snapshot`||t.snapshot.request)continue;let e=t.snapshot;t.snapshot={_frameref:e.frameId,request:{url:e.url,method:e.method,headers:e.requestHeaders,postData:e.requestSha1?{_sha1:e.requestSha1}:void 0},response:{status:e.status,headers:e.responseHeaders,content:{mimeType:e.contentType,_sha1:e.responseSha1}},_monotonicTime:e.timestamp}}return e}_modernize_3_to_4(e){let t=[];for(let n of e){let e=this._modernize_event_3_to_4(n);e&&t.push(e)}return t}_modernize_event_3_to_4(e){if(e.type!==`action`&&e.type!==`event`)return e;let t=e.metadata;return t.internal||t.method.startsWith(`tracing`)?null:e.type===`event`?t.method===`__create__`&&t.type===`ConsoleMessage`?{type:`object`,class:t.type,guid:t.params.guid,initializer:t.params.initializer}:{type:`event`,time:t.startTime,class:t.type,method:t.method,params:t.params,pageId:t.pageId}:{type:`action`,callId:t.id,startTime:t.startTime,endTime:t.endTime,apiName:t.apiName||t.type+`.`+t.method,class:t.type,method:t.method,params:t.params,wallTime:t.wallTime||Date.now(),log:t.log,beforeSnapshot:t.snapshots.find(e=>e.title===`before`)?.snapshotName,inputSnapshot:t.snapshots.find(e=>e.title===`input`)?.snapshotName,afterSnapshot:t.snapshots.find(e=>e.title===`after`)?.snapshotName,error:t.error?.error,result:t.result,point:t.point,pageId:t.pageId}}_modernize_4_to_5(e){let t=[];for(let n of e){let e=this._modernize_event_4_to_5(n);e&&t.push(e)}return t}_modernize_event_4_to_5(e){if(e.type===`event`&&e.method===`__create__`&&e.class===`JSHandle`&&this._jsHandles.set(e.params.guid,e.params.initializer),e.type===`object`){if(e.class!==`ConsoleMessage`)return null;let t=e.initializer.args?.map(e=>e.guid?{preview:this._jsHandles.get(e.guid)?.preview||``,value:``}:{preview:e.preview||``,value:e.value||``});return this._consoleObjects.set(e.guid,{type:e.initializer.type,text:e.initializer.text,location:e.initializer.location,args:t}),null}if(e.type===`event`&&e.method===`console`){let t=this._consoleObjects.get(e.params.message?.guid||``);return t?{type:`console`,time:e.time,pageId:e.pageId,messageType:t.type,text:t.text,args:t.args,location:t.location}:null}return e}_modernize_5_to_6(e){let t=[];for(let n of e)if(t.push(n),!(n.type!==`after`||!n.log.length))for(let e of n.log)t.push({type:`log`,callId:n.callId,message:e,time:-1});return t}_modernize_6_to_7(e){let t=[];!this._processedContextCreatedEvent()&&e[0].type!==`context-options`&&t.push({type:`context-options`,origin:`testRunner`,version:6,browserName:``,options:{},platform:`unknown`,wallTime:0,monotonicTime:0,sdkLanguage:`javascript`,contextId:``});for(let n of e){if(n.type===`context-options`){t.push({...n,monotonicTime:0,origin:`library`,contextId:``});continue}if(n.type===`before`||n.type===`action`){this._contextEntry.wallTime||(this._contextEntry.wallTime=n.wallTime);let e=n,r=n;r.stepId=`${e.apiName}@${e.wallTime}`,t.push(r)}else t.push(n)}return t}_modernize_7_to_8(e){let t=[];for(let n of e)if(n.type===`before`||n.type===`action`){let e=n,r=n;e.apiName&&(r.title=e.apiName,delete r.apiName),r.stepId=e.stepId??e.callId,t.push(r)}else t.push(n);return t}},ee=class{constructor(){this.contextEntries=[],this._resourceToContentType=new Map}async load(e,t,n){this._backend=e;let r=t?.match(/(.+)\.trace$/)?.[1],a=[],o=!1;for(let e of await this._backend.entryNames()){let t=e.match(/(.+)\.trace$/);t&&(!r||r===t[1])&&a.push(t[1]||``),e.includes(`src@`)&&(o=!0)}if(!a.length)throw Error(`Cannot find .trace file`);this._snapshotStorage=new E;let s=a.length*3,c=0;for(let t of a){let r=ne();r.hasSource=o;let a=new k(r,this._snapshotStorage),l=await this._backend.readText(t+`.trace`)||``;a.appendTrace(l),n?.(++c,s);let u=await this._backend.readText(t+`.network`)||``;if(a.appendTrace(u),n?.(++c,s),r.actions=a.actions().sort((e,t)=>e.startTime-t.startTime),!e.isLive()){for(let e of r.actions.slice().reverse())if(!e.endTime&&!e.error)for(let t of r.actions)t.parentId===e.callId&&e.endTime<t.endTime&&(e.endTime=t.endTime)}let d=await this._backend.readText(t+`.stacks`);if(d){let e=i(JSON.parse(d));for(let t of r.actions)t.stack=t.stack||e.get(t.callId)}n?.(++c,s);for(let e of r.resources)e.request.postData?._sha1&&this._resourceToContentType.set(e.request.postData._sha1,te(e.request.postData.mimeType)),e.response.content?._sha1&&this._resourceToContentType.set(e.response.content._sha1,te(e.response.content.mimeType));this.contextEntries.push(r)}this._snapshotStorage.finalize()}async hasEntry(e){return this._backend.hasEntry(e)}async resourceForSha1(e){let t=await this._backend.readBlob(`resources/`+e),n=this._resourceToContentType.get(e);return!t||n===void 0||n===`x-unknown`?t:new Blob([t],{type:n})}storage(){return this._snapshotStorage}};function te(e){let t=e.match(/^(.*);\s*charset=.*$/);return t?t[1]:e}function ne(){return{origin:`testRunner`,startTime:2**53-1,wallTime:2**53-1,endTime:0,browserName:``,options:{deviceScaleFactor:1,isMobile:!1,viewport:{width:1280,height:800}},pages:[],resources:[],actions:[],events:[],errors:[],stdio:[],hasSource:!1,contextId:``}}function re(e,t){let n=Array(t.length).fill(0);return Array(t.length).fill(0).map((r,i)=>(r,a)=>{n[i]=r/a*t[i]*1e3,e(n.reduce((e,t)=>e+t,0),1e3)})}var ie=15,A=0,j=1,ae=2,M=-2,N=-3,P=-4,F=-5,I=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],oe=1440,se=0,ce=4,le=9,ue=5,de=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],fe=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],pe=[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],me=[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,112,112],he=[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],ge=[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],_e=15;function ve(){let e=this,t,n,r,i,a,o;function s(e,t,n,s,c,l,u,d,f,p,m){let h,g,_,v,y,b,x,S,C,w,T,E,D,O,k;w=0,y=n;do r[e[t+w]]++,w++,y--;while(y!==0);if(r[0]==n)return u[0]=-1,d[0]=0,A;for(S=d[0],b=1;b<=_e&&r[b]===0;b++);for(x=b,S<b&&(S=b),y=_e;y!==0&&r[y]===0;y--);for(_=y,S>y&&(S=y),d[0]=S,O=1<<b;b<y;b++,O<<=1)if((O-=r[b])<0)return N;if((O-=r[y])<0)return N;for(r[y]+=O,o[1]=b=0,w=1,D=2;--y!==0;)o[D]=b+=r[w],D++,w++;y=0,w=0;do(b=e[t+w])!==0&&(m[o[b]++]=y),w++;while(++y<n);for(n=o[_],o[0]=y=0,w=0,v=-1,E=-S,a[0]=0,T=0,k=0;x<=_;x++)for(h=r[x];h--!==0;){for(;x>E+S;){if(v++,E+=S,k=_-E,k=k>S?S:k,(g=1<<(b=x-E))>h+1&&(g-=h+1,D=x,b<k))for(;++b<k&&!((g<<=1)<=r[++D]);)g-=r[D];if(k=1<<b,p[0]+k>oe)return N;a[v]=T=p[0],p[0]+=k,v===0?u[0]=T:(o[v]=y,i[0]=b,i[1]=S,b=y>>>E-S,i[2]=T-a[v-1]-b,f.set(i,(a[v-1]+b)*3))}for(i[1]=x-E,w>=n?i[0]=192:m[w]<s?(i[0]=m[w]<256?0:96,i[2]=m[w++]):(i[0]=l[m[w]-s]+16+64,i[2]=c[m[w++]-s]),g=1<<x-E,b=y>>>E;b<k;b+=g)f.set(i,(T+b)*3);for(b=1<<x-1;(y&b)!==0;b>>>=1)y^=b;for(y^=b,C=(1<<E)-1;(y&C)!=o[v];)v--,E-=S,C=(1<<E)-1}return O!==0&&_!=1?F:A}function c(e){let s;for(t||(t=[],n=[],r=new Int32Array(16),i=[],a=new Int32Array(_e),o=new Int32Array(16)),n.length<e&&(n=[]),s=0;s<e;s++)n[s]=0;for(s=0;s<16;s++)r[s]=0;for(s=0;s<3;s++)i[s]=0;a.set(r.subarray(0,_e),0),o.set(r.subarray(0,16),0)}e.inflate_trees_bits=function(e,r,i,a,o){let l;return c(19),t[0]=0,l=s(e,0,19,19,null,null,i,r,a,t,n),l==N?o.msg=`oversubscribed dynamic bit lengths tree`:(l==F||r[0]===0)&&(o.msg=`incomplete dynamic bit lengths tree`,l=N),l},e.inflate_trees_dynamic=function(e,r,i,a,o,l,u,d,f){let p;return c(288),t[0]=0,p=s(i,0,e,257,pe,me,l,a,d,t,n),p!=A||a[0]===0?(p==N?f.msg=`oversubscribed literal/length tree`:p!=P&&(f.msg=`incomplete literal/length tree`,p=N),p):(c(288),p=s(i,e,r,0,he,ge,u,o,d,t,n),p!=A||o[0]===0&&e>257?(p==N?f.msg=`oversubscribed distance tree`:p==F?(f.msg=`incomplete distance tree`,p=N):p!=P&&(f.msg=`empty distance tree with lengths`,p=N),p):A)}}ve.inflate_trees_fixed=function(e,t,n,r){return e[0]=le,t[0]=ue,n[0]=de,r[0]=fe,A};var ye=0,be=1,xe=2,Se=3,Ce=4,we=5,Te=6,Ee=7,De=8,Oe=9;function ke(){let e=this,t,n=0,r,i=0,a=0,o=0,s=0,c=0,l=0,u=0,d,f=0,p,m=0;function h(e,t,n,r,i,a,o,s){let c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C;m=s.next_in_index,h=s.avail_in,f=o.bitb,p=o.bitk,g=o.write,_=g<o.read?o.read-g-1:o.end-g,v=I[e],y=I[t];do{for(;p<20;)h--,f|=(s.read_byte(m++)&255)<<p,p+=8;if(c=f&v,l=n,u=r,C=(u+c)*3,(d=l[C])===0){f>>=l[C+1],p-=l[C+1],o.win[g++]=l[C+2],_--;continue}do{if(f>>=l[C+1],p-=l[C+1],d&16){for(d&=15,b=l[C+2]+(f&I[d]),f>>=d,p-=d;p<15;)h--,f|=(s.read_byte(m++)&255)<<p,p+=8;c=f&y,l=i,u=a,C=(u+c)*3,d=l[C];do if(f>>=l[C+1],p-=l[C+1],d&16){for(d&=15;p<d;)h--,f|=(s.read_byte(m++)&255)<<p,p+=8;if(x=l[C+2]+(f&I[d]),f>>=d,p-=d,_-=b,g>=x)S=g-x,g-S>0&&2>g-S?(o.win[g++]=o.win[S++],o.win[g++]=o.win[S++],b-=2):(o.win.set(o.win.subarray(S,S+2),g),g+=2,S+=2,b-=2);else{S=g-x;do S+=o.end;while(S<0);if(d=o.end-S,b>d){if(b-=d,g-S>0&&d>g-S)do o.win[g++]=o.win[S++];while(--d!==0);else o.win.set(o.win.subarray(S,S+d),g),g+=d,S+=d,d=0;S=0}}if(g-S>0&&b>g-S)do o.win[g++]=o.win[S++];while(--b!==0);else o.win.set(o.win.subarray(S,S+b),g),g+=b,S+=b,b=0;break}else if(!(d&64))c+=l[C+2],c+=f&I[d],C=(u+c)*3,d=l[C];else return s.msg=`invalid distance code`,b=s.avail_in-h,b=p>>3<b?p>>3:b,h+=b,m-=b,p-=b<<3,o.bitb=f,o.bitk=p,s.avail_in=h,s.total_in+=m-s.next_in_index,s.next_in_index=m,o.write=g,N;while(!0);break}if(!(d&64)){if(c+=l[C+2],c+=f&I[d],C=(u+c)*3,(d=l[C])===0){f>>=l[C+1],p-=l[C+1],o.win[g++]=l[C+2],_--;break}}else if(d&32)return b=s.avail_in-h,b=p>>3<b?p>>3:b,h+=b,m-=b,p-=b<<3,o.bitb=f,o.bitk=p,s.avail_in=h,s.total_in+=m-s.next_in_index,s.next_in_index=m,o.write=g,j;else return s.msg=`invalid literal/length code`,b=s.avail_in-h,b=p>>3<b?p>>3:b,h+=b,m-=b,p-=b<<3,o.bitb=f,o.bitk=p,s.avail_in=h,s.total_in+=m-s.next_in_index,s.next_in_index=m,o.write=g,N}while(!0)}while(_>=258&&h>=10);return b=s.avail_in-h,b=p>>3<b?p>>3:b,h+=b,m-=b,p-=b<<3,o.bitb=f,o.bitk=p,s.avail_in=h,s.total_in+=m-s.next_in_index,s.next_in_index=m,o.write=g,A}e.init=function(e,n,i,a,o,s){t=ye,l=e,u=n,d=i,f=a,p=o,m=s,r=null},e.proc=function(e,g,_){let v,y,b,x=0,S=0,C=0,w,T,E,D;for(C=g.next_in_index,w=g.avail_in,x=e.bitb,S=e.bitk,T=e.write,E=T<e.read?e.read-T-1:e.end-T;;)switch(t){case ye:if(E>=258&&w>=10&&(e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,_=h(l,u,d,f,p,m,e,g),C=g.next_in_index,w=g.avail_in,x=e.bitb,S=e.bitk,T=e.write,E=T<e.read?e.read-T-1:e.end-T,_!=A)){t=_==j?Ee:Oe;break}a=l,r=d,i=f,t=be;case be:for(v=a;S<v;){if(w!==0)_=A;else return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);w--,x|=(g.read_byte(C++)&255)<<S,S+=8}if(y=(i+(x&I[v]))*3,x>>>=r[y+1],S-=r[y+1],b=r[y],b===0){o=r[y+2],t=Te;break}if(b&16){s=b&15,n=r[y+2],t=xe;break}if(!(b&64)){a=b,i=y/3+r[y+2];break}if(b&32){t=Ee;break}return t=Oe,g.msg=`invalid literal/length code`,_=N,e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);case xe:for(v=s;S<v;){if(w!==0)_=A;else return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);w--,x|=(g.read_byte(C++)&255)<<S,S+=8}n+=x&I[v],x>>=v,S-=v,a=u,r=p,i=m,t=Se;case Se:for(v=a;S<v;){if(w!==0)_=A;else return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);w--,x|=(g.read_byte(C++)&255)<<S,S+=8}if(y=(i+(x&I[v]))*3,x>>=r[y+1],S-=r[y+1],b=r[y],b&16){s=b&15,c=r[y+2],t=Ce;break}if(!(b&64)){a=b,i=y/3+r[y+2];break}return t=Oe,g.msg=`invalid distance code`,_=N,e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);case Ce:for(v=s;S<v;){if(w!==0)_=A;else return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);w--,x|=(g.read_byte(C++)&255)<<S,S+=8}c+=x&I[v],x>>=v,S-=v,t=we;case we:for(D=T-c;D<0;)D+=e.end;for(;n!==0;){if(E===0&&(T==e.end&&e.read!==0&&(T=0,E=T<e.read?e.read-T-1:e.end-T),E===0&&(e.write=T,_=e.inflate_flush(g,_),T=e.write,E=T<e.read?e.read-T-1:e.end-T,T==e.end&&e.read!==0&&(T=0,E=T<e.read?e.read-T-1:e.end-T),E===0)))return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);e.win[T++]=e.win[D++],E--,D==e.end&&(D=0),n--}t=ye;break;case Te:if(E===0&&(T==e.end&&e.read!==0&&(T=0,E=T<e.read?e.read-T-1:e.end-T),E===0&&(e.write=T,_=e.inflate_flush(g,_),T=e.write,E=T<e.read?e.read-T-1:e.end-T,T==e.end&&e.read!==0&&(T=0,E=T<e.read?e.read-T-1:e.end-T),E===0)))return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);_=A,e.win[T++]=o,E--,t=ye;break;case Ee:if(S>7&&(S-=8,w++,C--),e.write=T,_=e.inflate_flush(g,_),T=e.write,E=T<e.read?e.read-T-1:e.end-T,e.read!=e.write)return e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);t=De;case De:return _=j,e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);case Oe:return _=N,e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_);default:return _=M,e.bitb=x,e.bitk=S,g.avail_in=w,g.total_in+=C-g.next_in_index,g.next_in_index=C,e.write=T,e.inflate_flush(g,_)}},e.free=function(){}}var Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],je=0,Me=1,Ne=2,Pe=3,Fe=4,Ie=5,Le=6,Re=7,ze=8,L=9;function Be(e,t){let n=this,r=je,i=0,a=0,o=0,s,c=[0],l=[0],u=new ke,d=0,f=new Int32Array(oe*3),p=new ve;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=function(e,t){t&&(t[0]=0),r==Le&&u.free(e),r=je,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=function(e,t){let r,i,a;return i=e.next_out_index,a=n.read,r=(a<=n.write?n.write:n.end)-a,r>e.avail_out&&(r=e.avail_out),r!==0&&t==F&&(t=A),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(a,a+r),i),i+=r,a+=r,a==n.end&&(a=0,n.write==n.end&&(n.write=0),r=n.write-a,r>e.avail_out&&(r=e.avail_out),r!==0&&t==F&&(t=A),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(a,a+r),i),i+=r,a+=r),e.next_out_index=i,n.read=a,t},n.proc=function(e,t){let m,h,g,_,v,y,b,x;for(_=e.next_in_index,v=e.avail_in,h=n.bitb,g=n.bitk,y=n.write,b=y<n.read?n.read-y-1:n.end-y;;){let S,C,w,T,E,D,O,k;switch(r){case je:for(;g<3;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}switch(m=h&7,d=m&1,m>>>1){case 0:h>>>=3,g-=3,m=g&7,h>>>=m,g-=m,r=Me;break;case 1:S=[],C=[],w=[[]],T=[[]],ve.inflate_trees_fixed(S,C,w,T),u.init(S[0],C[0],w[0],0,T[0],0),h>>>=3,g-=3,r=Le;break;case 2:h>>>=3,g-=3,r=Pe;break;case 3:return h>>>=3,g-=3,r=L,e.msg=`invalid block type`,t=N,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t)}break;case Me:for(;g<32;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}if((~h>>>16&65535)!=(h&65535))return r=L,e.msg=`invalid stored block lengths`,t=N,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);i=h&65535,h=g=0,r=i===0?d===0?je:Re:Ne;break;case Ne:if(v===0||b===0&&(y==n.end&&n.read!==0&&(y=0,b=y<n.read?n.read-y-1:n.end-y),b===0&&(n.write=y,t=n.inflate_flush(e,t),y=n.write,b=y<n.read?n.read-y-1:n.end-y,y==n.end&&n.read!==0&&(y=0,b=y<n.read?n.read-y-1:n.end-y),b===0)))return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);if(t=A,m=i,m>v&&(m=v),m>b&&(m=b),n.win.set(e.read_buf(_,m),y),_+=m,v-=m,y+=m,b-=m,(i-=m)!==0)break;r=d===0?je:Re;break;case Pe:for(;g<14;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}if(a=m=h&16383,(m&31)>29||(m>>5&31)>29)return r=L,e.msg=`too many length or distance symbols`,t=N,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);if(m=258+(m&31)+(m>>5&31),!s||s.length<m)s=[];else for(x=0;x<m;x++)s[x]=0;h>>>=14,g-=14,o=0,r=Fe;case Fe:for(;o<4+(a>>>10);){for(;g<3;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}s[Ae[o++]]=h&7,h>>>=3,g-=3}for(;o<19;)s[Ae[o++]]=0;if(c[0]=7,m=p.inflate_trees_bits(s,c,l,f,e),m!=A)return t=m,t==N&&(s=null,r=L),n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);o=0,r=Ie;case Ie:for(;m=a,!(o>=258+(m&31)+(m>>5&31));){let i,u;for(m=c[0];g<m;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}if(m=f[(l[0]+(h&I[m]))*3+1],u=f[(l[0]+(h&I[m]))*3+2],u<16)h>>>=m,g-=m,s[o++]=u;else{for(x=u==18?7:u-14,i=u==18?11:3;g<m+x;){if(v!==0)t=A;else return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);v--,h|=(e.read_byte(_++)&255)<<g,g+=8}if(h>>>=m,g-=m,i+=h&I[x],h>>>=x,g-=x,x=o,m=a,x+i>258+(m&31)+(m>>5&31)||u==16&&x<1)return s=null,r=L,e.msg=`invalid bit length repeat`,t=N,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);u=u==16?s[x-1]:0;do s[x++]=u;while(--i!==0);o=x}}if(l[0]=-1,E=[],D=[],O=[],k=[],E[0]=9,D[0]=6,m=a,m=p.inflate_trees_dynamic(257+(m&31),1+(m>>5&31),s,E,D,O,k,f,e),m!=A)return m==N&&(s=null,r=L),t=m,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);u.init(E[0],D[0],f,O[0],f,k[0]),r=Le;case Le:if(n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,(t=u.proc(n,e,t))!=j)return n.inflate_flush(e,t);if(t=A,u.free(e),_=e.next_in_index,v=e.avail_in,h=n.bitb,g=n.bitk,y=n.write,b=y<n.read?n.read-y-1:n.end-y,d===0){r=je;break}r=Re;case Re:if(n.write=y,t=n.inflate_flush(e,t),y=n.write,b=y<n.read?n.read-y-1:n.end-y,n.read!=n.write)return n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);r=ze;case ze:return t=j,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);case L:return t=N,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t);default:return t=M,n.bitb=h,n.bitk=g,e.avail_in=v,e.total_in+=_-e.next_in_index,e.next_in_index=_,n.write=y,n.inflate_flush(e,t)}}},n.free=function(e){n.reset(e,null),n.win=null,f=null},n.set_dictionary=function(e,t,r){n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=function(){return+(r==Me)}}var Ve=32,He=8,Ue=0,We=1,Ge=2,Ke=3,qe=4,Je=5,Ye=6,Xe=7,Ze=12,R=13,Qe=[0,0,255,255];function $e(){let e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(e){return!e||!e.istate?M:(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=Xe,e.istate.blocks.reset(e,null),A)}e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,A},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),M):(e.wbits=r,n.istate.blocks=new Be(n,1<<r),t(n),A)},e.inflate=function(e,t){let n,r;if(!e||!e.istate||!e.next_in)return M;let i=e.istate;for(t=t==ce?F:A,n=F;;)switch(i.mode){case Ue:if(e.avail_in===0)return n;if(n=t,e.avail_in--,e.total_in++,((i.method=e.read_byte(e.next_in_index++))&15)!=He){i.mode=R,e.msg=`unknown compression method`,i.marker=5;break}if((i.method>>4)+8>i.wbits){i.mode=R,e.msg=`invalid win size`,i.marker=5;break}i.mode=We;case We:if(e.avail_in===0)return n;if(n=t,e.avail_in--,e.total_in++,r=e.read_byte(e.next_in_index++)&255,((i.method<<8)+r)%31!=0){i.mode=R,e.msg=`incorrect header check`,i.marker=5;break}if((r&Ve)===0){i.mode=Xe;break}i.mode=Ge;case Ge:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need=(e.read_byte(e.next_in_index++)&255)<<24&4278190080,i.mode=Ke;case Ke:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need+=(e.read_byte(e.next_in_index++)&255)<<16&16711680,i.mode=qe;case qe:if(e.avail_in===0)return n;n=t,e.avail_in--,e.total_in++,i.need+=(e.read_byte(e.next_in_index++)&255)<<8&65280,i.mode=Je;case Je:return e.avail_in===0?n:(n=t,e.avail_in--,e.total_in++,i.need+=e.read_byte(e.next_in_index++)&255,i.mode=Ye,ae);case Ye:return i.mode=R,e.msg=`need dictionary`,i.marker=0,M;case Xe:if(n=i.blocks.proc(e,n),n==N){i.mode=R,i.marker=0;break}if(n==A&&(n=t),n!=j)return n;n=t,i.blocks.reset(e,i.was),i.mode=Ze;case Ze:return e.avail_in=0,j;case R:return N;default:return M}},e.inflateSetDictionary=function(e,t,n){let r=0,i=n;if(!e||!e.istate||e.istate.mode!=Ye)return M;let a=e.istate;return i>=1<<a.wbits&&(i=(1<<a.wbits)-1,r=n-i),a.blocks.set_dictionary(t,r,i),a.mode=Xe,A},e.inflateSync=function(e){let n,r,i,a,o;if(!e||!e.istate)return M;let s=e.istate;if(s.mode!=R&&(s.mode=R,s.marker=0),(n=e.avail_in)===0)return F;for(r=e.next_in_index,i=s.marker;n!==0&&i<4;)e.read_byte(r)==Qe[i]?i++:i=e.read_byte(r)===0?4-i:0,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,s.marker=i,i==4?(a=e.total_in,o=e.total_out,t(e),e.total_in=a,e.total_out=o,s.mode=Xe,A):N},e.inflateSyncPoint=function(e){return!e||!e.istate||!e.istate.blocks?M:e.istate.blocks.sync_point()}}function et(){}et.prototype={inflateInit(e){let t=this;return t.istate=new $e,e||=ie,t.istate.inflateInit(t,e)},inflate(e){let t=this;return t.istate?t.istate.inflate(t,e):M},inflateEnd(){let e=this;if(!e.istate)return M;let t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){let e=this;return e.istate?e.istate.inflateSync(e):M},inflateSetDictionary(e,t){let n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):M},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function tt(e){let t=this,n=new et,r=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,i=se,a=new Uint8Array(r),o=!1;n.inflateInit(),n.next_out=a,t.append=function(e,t){let s=[],c,l,u=0,d=0,f=0;if(e.length!==0){n.next_in_index=0,n.next_in=e,n.avail_in=e.length;do{if(n.next_out_index=0,n.avail_out=r,n.avail_in===0&&!o&&(n.next_in_index=0,o=!0),c=n.inflate(i),o&&c===F){if(n.avail_in!==0)throw Error(`inflating: bad input`)}else if(c!==A&&c!==j)throw Error(`inflating: `+n.msg);if((o||c===j)&&n.avail_in===e.length)throw Error(`inflating: bad input`);n.next_out_index&&(n.next_out_index===r?s.push(new Uint8Array(a)):s.push(a.subarray(0,n.next_out_index))),f+=n.next_out_index,t&&n.next_in_index>0&&n.next_in_index!=u&&(t(n.next_in_index),u=n.next_in_index)}while(n.avail_in>0||n.avail_out===0);return s.length>1?(l=new Uint8Array(f),s.forEach(function(e){l.set(e,d),d+=e.length})):l=s[0]?new Uint8Array(s[0]):new Uint8Array,l}},t.flush=function(){n.inflateEnd()}}var nt=4294967295,rt=65535,it=101010256,at=39169,ot=21589,st=28789,ct=25461,lt=6534,ut=2048,dt=`undefined`,ft=class{constructor(e){return class extends TransformStream{constructor(t,n){let r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){let t=r.flush();t&&e.enqueue(t)}})}}}},pt=64,mt=2;try{typeof navigator<`u`&&navigator.hardwareConcurrency&&(mt=navigator.hardwareConcurrency)}catch{}var z=Object.assign({},{chunkSize:512*1024,maxWorkers:mt,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:void 0,CompressionStreamNative:typeof CompressionStream<`u`&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream<`u`&&DecompressionStream});function ht(){return z}function gt(e){return Math.max(e.chunkSize,pt)}function _t(e){let{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:a,useWebWorkers:o,Deflate:s,Inflate:c,CompressionStream:l,DecompressionStream:u,workerScripts:d}=e;if(B(`baseURL`,t),B(`chunkSize`,n),B(`maxWorkers`,r),B(`terminateWorkerTimeout`,i),B(`useCompressionStream`,a),B(`useWebWorkers`,o),s&&(z.CompressionStream=new ft(s)),c&&(z.DecompressionStream=new ft(c)),B(`CompressionStream`,l),B(`DecompressionStream`,u),d!==void 0){let{deflate:e,inflate:t}=d;if((e||t)&&(z.workerScripts||={}),e){if(!Array.isArray(e))throw Error(`workerScripts.deflate must be an array`);z.workerScripts.deflate=e}if(t){if(!Array.isArray(t))throw Error(`workerScripts.inflate must be an array`);z.workerScripts.inflate=t}}}function B(e,t){t!==void 0&&(z[e]=t)}function vt(){return`application/octet-stream`}var yt=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t&1?t=t>>>1^3988292384:t>>>=1;yt[e]=t}var bt=class{constructor(e){this.crc=e||-1}append(e){let t=this.crc|0;for(let n=0,r=e.length|0;n<r;n++)t=t>>>8^yt[(t^e[n])&255];this.crc=t}get(){return~this.crc}},xt=class extends TransformStream{constructor(){let e,t=new bt;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){let n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}};function St(e){if(typeof TextEncoder>`u`){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}else return new TextEncoder().encode(e)}var V={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);let n=e[e.length-1],r=V.getPartial(n);return r===32?e.concat(t):V._shiftRight(t,r,n|0,e.slice(0,e.length-1))},bitLength(e){let t=e.length;if(t===0)return 0;let n=e[t-1];return(t-1)*32+V.getPartial(n)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));let n=e.length;return t&=31,n>0&&t&&(e[n-1]=V.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial(e,t,n){return e===32?t:(n?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,n,r){for(r===void 0&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(t===0)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;let i=e.length?e[e.length-1]:0,a=V.getPartial(i);return r.push(V.partial(t+a&31,t+a>32?n:r.pop(),1)),r}},Ct={bytes:{fromBits(e){let t=V.bitLength(e)/8,n=new Uint8Array(t),r;for(let i=0;i<t;i++)i&3||(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){let t=[],n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],(n&3)==3&&(t.push(r),r=0);return n&3&&t.push(V.partial(8*(n&3),r)),t}}},wt={};wt.sha1=class{constructor(e){let t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){let e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){let t=this;typeof e==`string`&&(e=Ct.utf8String.toBits(e));let n=t._buffer=V.concat(t._buffer,e),r=t._length,i=t._length=r+V.bitLength(e);if(i>9007199254740991)throw Error(`Cannot hash more than 2^53 - 1 bits`);let a=new Uint32Array(n),o=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=i;e+=t.blockSize)t._block(a.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t}finalize(){let e=this,t=e._buffer,n=e._h;t=V.concat(t,[V.partial(1,1)]);for(let e=t.length+2;e&15;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){if(e<=19)return t&n|~t&r;if(e<=39)return t^n^r;if(e<=59)return t&n|t&r|n&r;if(e<=79)return t^n^r}_S(e,t){return t<<e|t>>>32-e}_block(e){let t=this,n=t._h,r=Array(80);for(let t=0;t<16;t++)r[t]=e[t];let i=n[0],a=n[1],o=n[2],s=n[3],c=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));let n=t._S(5,i)+t._f(e,a,o,s)+c+r[e]+t._key[Math.floor(e/20)]|0;c=s,s=o,o=t._S(30,a),a=i,i=n}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0}};var Tt={};Tt.aes=class{constructor(e){let t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();let n=t._tables[0][4],r=t._tables[1],i=e.length,a,o,s,c=1;if(i!==4&&i!==6&&i!==8)throw Error(`invalid aes key size`);for(t._key=[o=e.slice(0),s=[]],a=i;a<4*i+28;a++){let e=o[a-1];(a%i===0||i===8&&a%i===4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[e&255],a%i===0&&(e=e<<8^e>>>24^c<<24,c=c<<1^(c>>7)*283)),o[a]=o[a-i]^e}for(let e=0;a;e++,a--){let t=o[e&3?a:a-4];a<=4||e<4?s[e]=t:s[e]=r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[t&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){let e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],a=[],o,s,c,l;for(let e=0;e<256;e++)a[(i[e]=e<<1^(e>>7)*283)^e]=e;for(let u=o=0;!n[u];u^=s||1,o=a[o]||1){let a=o^o<<1^o<<2^o<<3^o<<4;a=a>>8^a&255^99,n[u]=a,r[a]=u,l=i[c=i[s=i[u]]];let d=l*16843009^c*65537^s*257^u*16843008,f=i[a]*257^a*16843008;for(let n=0;n<4;n++)e[n][u]=f=f<<24^f>>>8,t[n][a]=d=d<<24^d>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(e.length!==4)throw Error(`invalid aes block size`);let n=this._key[t],r=n.length/4-2,i=[0,0,0,0],a=this._tables[t],o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=e[0]^n[0],f=e[t?3:1]^n[1],p=e[2]^n[2],m=e[t?1:3]^n[3],h=4,g,_,v;for(let e=0;e<r;e++)g=o[d>>>24]^s[f>>16&255]^c[p>>8&255]^l[m&255]^n[h],_=o[f>>>24]^s[p>>16&255]^c[m>>8&255]^l[d&255]^n[h+1],v=o[p>>>24]^s[m>>16&255]^c[d>>8&255]^l[f&255]^n[h+2],m=o[m>>>24]^s[d>>16&255]^c[f>>8&255]^l[p&255]^n[h+3],h+=4,d=g,f=_,p=v;for(let e=0;e<4;e++)i[t?3&-e:e]=u[d>>>24]<<24^u[f>>16&255]<<16^u[p>>8&255]<<8^u[m&255]^n[h++],g=d,d=f,f=p,p=m,m=g;return i}};var Et={getRandomValues(e){let t=new Uint32Array(e.buffer),n=e=>{let t=987654321,n=4294967295;return function(){return t=36969*(t&65535)+(t>>16)&n,e=18e3*(e&65535)+(e>>16)&n,(((t<<16)+e&n)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,i;r<e.length;r+=4){let e=n((i||Math.random())*4294967296);i=e()*987654071,t[r/4]=e()*4294967296|0}return e}},Dt={};Dt.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)==255){let t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];let i=V.bitLength(t);for(let i=0;i<r;i+=4){this.incCounter(n);let r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return V.clamp(t,i)}};var H={importKey(e){return new H.hmacSha1(Ct.bytes.toBits(e))},pbkdf2(e,t,n,r){if(n||=1e4,r<0||n<0)throw Error(`invalid params to pbkdf2`);let i=(r>>5)+1<<2,a,o,s,c,l,u=new ArrayBuffer(i),d=new DataView(u),f=0,p=V;for(t=Ct.bytes.toBits(t),l=1;f<(i||1);l++){for(a=o=e.encrypt(p.concat(t,[l])),s=1;s<n;s++)for(o=e.encrypt(o),c=0;c<o.length;c++)a[c]^=o[c];for(s=0;f<(i||1)&&s<a.length;s++)d.setInt32(f,a[s]),f+=4}return u.slice(0,r/8)}};H.hmacSha1=class{constructor(e){let t=this,n=t._hash=wt.sha1,r=[[],[]];t._baseHash=[new n,new n];let i=t._baseHash[0].blockSize/32;e.length>i&&(e=new n().update(e).finalize());for(let t=0;t<i;t++)r[0][t]=e[t]^909522486,r[1][t]=e[t]^1549556828;t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){let e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){let t=this;t._updated=!0,t._resultHash.update(e)}digest(){let e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw Error(`encrypt on already updated hmac called!`);return this.update(e),this.digest(e)}};var Ot=typeof crypto<`u`&&typeof crypto.getRandomValues==`function`,kt=`Invalid password`,At=`Invalid signature`,jt=`zipjs-abort-check-password`;function Mt(e){return Ot?crypto.getRandomValues(e):Et.getRandomValues(e)}var Nt=16,Pt=`raw`,Ft={name:`PBKDF2`},It={name:`HMAC`},Lt=`SHA-1`,Rt=Object.assign({hash:It},Ft),zt=Object.assign({iterations:1e3,hash:{name:Lt}},Ft),Bt=[`deriveBits`],Vt=[8,12,16],Ht=[16,24,32],U=10,Ut=[0,0,0,0],Wt=typeof crypto!=dt,Gt=Wt&&crypto.subtle,Kt=Wt&&Gt!==void 0,W=Ct.bytes,qt=Tt.aes,Jt=Dt.ctrGladman,Yt=H.hmacSha1,Xt=Wt&&Kt&&typeof Gt.importKey==`function`,Zt=Wt&&Kt&&typeof Gt.deriveBits==`function`,Qt=class extends TransformStream{constructor({password:e,rawPassword:t,signed:n,encryptionStrength:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise(e=>this.resolveReady=e),password:sn(e,t),signed:n,strength:r-1,pending:new Uint8Array})},async transform(e,t){let n=this,{password:r,strength:a,resolveReady:o,ready:s}=n;r?(await tn(n,a,r,G(e,0,Vt[a]+2)),e=G(e,Vt[a]+2),i?t.error(Error(jt)):o()):await s;let c=new Uint8Array(e.length-U-(e.length-U)%Nt);t.enqueue(en(n,e,c,0,U,!0))},async flush(e){let{signed:t,ctr:n,hmac:r,pending:i,ready:a}=this;if(r&&n){await a;let o=G(i,0,i.length-U),s=G(i,i.length-U),c=new Uint8Array;if(o.length){let e=dn(W,o);r.update(e),c=un(W,n.update(e))}if(t){let e=G(un(W,r.digest()),0,U);for(let t=0;t<U;t++)if(e[t]!=s[t])throw Error(At)}e.enqueue(c)}}})}},$t=class extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:n}){let r;super({start(){Object.assign(this,{ready:new Promise(e=>this.resolveReady=e),password:sn(e,t),strength:n-1,pending:new Uint8Array})},async transform(e,t){let n=this,{password:r,strength:i,resolveReady:a,ready:o}=n,s=new Uint8Array;r?(s=await nn(n,i,r),a()):await o;let c=new Uint8Array(s.length+e.length-e.length%Nt);c.set(s,0),t.enqueue(en(n,e,c,s.length,0))},async flush(e){let{ctr:t,hmac:n,pending:i,ready:a}=this;if(n&&t){await a;let o=new Uint8Array;if(i.length){let e=t.update(dn(W,i));n.update(e),o=un(W,e)}r.signature=un(W,n.digest()).slice(0,U),e.enqueue(cn(o,r.signature))}}}),r=this}};function en(e,t,n,r,i,a){let{ctr:o,hmac:s,pending:c}=e,l=t.length-i;c.length&&(t=cn(c,t),n=ln(n,l-l%Nt));let u;for(u=0;u<=l-Nt;u+=Nt){let e=dn(W,G(t,u,u+Nt));a&&s.update(e);let i=o.update(e);a||s.update(i),n.set(un(W,i),u+r)}return e.pending=G(t,u),n}async function tn(e,t,n,r){let i=await rn(e,t,n,G(r,0,Vt[t])),a=G(r,Vt[t]);if(i[0]!=a[0]||i[1]!=a[1])throw Error(kt)}async function nn(e,t,n){let r=Mt(new Uint8Array(Vt[t]));return cn(r,await rn(e,t,n,r))}async function rn(e,t,n,r){e.password=null;let i=await an(Pt,n,Rt,!1,Bt),a=await on(Object.assign({salt:r},zt),i,8*(Ht[t]*2+2)),o=new Uint8Array(a),s=dn(W,G(o,0,Ht[t])),c=dn(W,G(o,Ht[t],Ht[t]*2)),l=G(o,Ht[t]*2);return Object.assign(e,{keys:{key:s,authentication:c,passwordVerification:l},ctr:new Jt(new qt(s),Array.from(Ut)),hmac:new Yt(c)}),l}async function an(e,t,n,r,i){if(Xt)try{return await Gt.importKey(e,t,n,r,i)}catch{return Xt=!1,H.importKey(t)}else return H.importKey(t)}async function on(e,t,n){if(Zt)try{return await Gt.deriveBits(e,t,n)}catch{return Zt=!1,H.pbkdf2(t,e.salt,zt.iterations,n)}else return H.pbkdf2(t,e.salt,zt.iterations,n)}function sn(e,t){return t===void 0?St(e):t}function cn(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ln(e,t){if(t&&t>e.length){let n=e;e=new Uint8Array(t),e.set(n,0)}return e}function G(e,t,n){return e.subarray(t,n)}function un(e,t){return e.fromBits(t)}function dn(e,t){return e.toBits(t)}var fn=12,pn=class extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),_n(this,e)},transform(e,t){let r=this;if(r.password){let t=hn(r,e.subarray(0,fn));if(r.password=null,t.at(-1)!=r.passwordVerification)throw Error(kt);e=e.subarray(fn)}n?t.error(Error(jt)):t.enqueue(hn(r,e))}})}},mn=class extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),_n(this,e)},transform(e,t){let n=this,r,i;if(n.password){n.password=null;let t=Mt(new Uint8Array(fn));t[fn-1]=n.passwordVerification,r=new Uint8Array(e.length+t.length),r.set(gn(n,t),0),i=fn}else r=new Uint8Array(e.length),i=0;r.set(gn(n,e),i),t.enqueue(r)}})}};function hn(e,t){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=yn(e)^t[r],vn(e,n[r]);return n}function gn(e,t){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=yn(e)^t[r],vn(e,t[r]);return n}function _n(e,t){let n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new bt(n[0]),crcKey2:new bt(n[2])});for(let n=0;n<t.length;n++)vn(e,t.charCodeAt(n))}function vn(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=xn(Math.imul(xn(r+bn(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function yn(e){let t=e.keys[2]|2;return bn(Math.imul(t,t^1)>>>8)}function bn(e){return e&255}function xn(e){return e&4294967295}var Sn=`Invalid uncompressed size`,Cn=`deflate-raw`,wn=class extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});let{compressed:i,encrypted:a,useCompressionStream:o,zipCrypto:s,signed:c,level:l}=e,u=this,d,f,p=super.readable;(!a||s)&&c&&(d=new xt,p=K(p,d)),i&&(p=Dn(p,o,{level:l,chunkSize:t},r,n)),a&&(s?p=K(p,new mn(e)):(f=new $t(e),p=K(p,f))),En(u,p,()=>{let e;a&&!s&&(e=f.signature),(!a||s)&&c&&(e=new DataView(d.value.buffer).getUint32(0)),u.signature=e})}},Tn=class extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});let{zipCrypto:i,encrypted:a,signed:o,signature:s,compressed:c,useCompressionStream:l}=e,u,d,f=super.readable;a&&(i?f=K(f,new pn(e)):(d=new Qt(e),f=K(f,d))),c&&(f=Dn(f,l,{chunkSize:t},r,n)),(!a||i)&&o&&(u=new xt,f=K(f,u)),En(this,f,()=>{if((!a||i)&&o&&s!=new DataView(u.value.buffer).getUint32(0,!1))throw Error(At)})}};function En(e,t,n){t=K(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get(){return t}})}function Dn(e,t,n,r,i){try{e=K(e,new(t&&r?r:i)(Cn,n))}catch(r){if(t)e=K(e,new i(Cn,n));else throw r}return e}function K(e,t){return e.pipeThrough(t)}var On=`message`,kn=`start`,An=`data`,jn=`close`,Mn=`inflate`,Nn=class extends TransformStream{constructor(e,t){super({});let n=this,{codecType:r}=e,i;r.startsWith(`deflate`)?i=wn:r.startsWith(`inflate`)&&(i=Tn),n.outputSize=0;let a=0,o=new i(e,t),s=super.readable,c=new TransformStream({transform(e,t){e&&e.length&&(a+=e.length,t.enqueue(e))},flush(){Object.assign(n,{inputSize:a})}}),l=new TransformStream({transform(t,r){if(t&&t.length&&(r.enqueue(t),n.outputSize+=t.length,e.outputSize&&n.outputSize>e.outputSize))throw Error(Sn)},flush(){let{signature:e}=o;Object.assign(n,{signature:e,inputSize:a})}});Object.defineProperty(n,"readable",{get(){return s.pipeThrough(c).pipeThrough(o).pipeThrough(l)}})}},Pn=class extends TransformStream{constructor(e){let t;super({transform:n,flush(e){t&&t.length&&e.enqueue(t)}});function n(r,i){if(t){let e=new Uint8Array(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(i.enqueue(r.slice(0,e)),n(r.slice(e),i)):t=r}}},Fn=typeof Worker!=dt,In=class{constructor(e,{readable:t,writable:n},{options:r,config:i,streamOptions:a,useWebWorkers:o,transferStreams:s,scripts:c},l){let{signal:u}=a;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new Pn(i.chunkSize)).pipeThrough(new Ln(a),{signal:u}),writable:n,options:Object.assign({},r),scripts:c,transferStreams:s,terminate(){return new Promise(t=>{let{worker:n,busy:r}=e;n?(r?e.resolveTerminated=t:(n.terminate(),t()),e.interface=null):t()})},onTaskFinished(){let{resolveTerminated:t}=e;t&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),t()),e.busy=!1,l(e)}}),(o&&Fn?Bn:zn)(e,i)}},Ln=class extends TransformStream{constructor({onstart:e,onprogress:t,size:n,onend:r}){let i=0;super({async start(){e&&await Rn(e,n)},async transform(e,r){i+=e.length,t&&await Rn(t,i,n),r.enqueue(e)},async flush(){r&&await Rn(r,i)}})}};async function Rn(e,...t){try{await e(...t)}catch{}}function zn(e,t){return{run:()=>Vn(e,t)}}function Bn(e,t){let{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=Kn(e.scripts[0],n,e)}catch{return Fn=!1,zn(e,t)}Object.assign(e,{worker:i,interface:{run:()=>Hn(e,{chunkSize:r})}})}return e.interface}async function Vn({options:e,readable:t,writable:n,onTaskFinished:r},i){let a;try{a=new Nn(e,i),await t.pipeThrough(a).pipeTo(n,{preventClose:!0,preventAbort:!0});let{signature:r,inputSize:o,outputSize:s}=a;return{signature:r,inputSize:o,outputSize:s}}catch(e){throw a&&(e.outputSize=a.outputSize),e}finally{r()}}async function Hn(e,t){let n,r,i=new Promise((e,t)=>{n=e,r=t});Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});let{readable:a,options:o,scripts:s}=e,{writable:c,closed:l}=Un(e.writable),u=qn({type:kn,scripts:s.slice(1),options:o,config:t,readable:a,writable:c},e);u||Object.assign(e,{reader:a.getReader(),writer:c.getWriter()});let d=await i;return u||await c.getWriter().close(),await l,d}function Un(e){let t,n=new Promise(e=>t=e);return{writable:new WritableStream({async write(t){let n=e.getWriter();await n.ready,await n.write(t),n.releaseLock()},close(){t()},abort(t){return e.getWriter().abort(t)}}),closed:n}}var Wn=!0,Gn=!0;function Kn(e,t,n){let r={type:`module`},i,a;typeof e==`function`&&(e=e());try{i=new URL(e,t)}catch{i=e}if(Wn)try{a=new Worker(i)}catch{Wn=!1,a=new Worker(i,r)}else a=new Worker(i,r);return a.addEventListener(On,e=>Jn(e,n)),a}function qn(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:n,readable:r,writable:a}=e,o=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,o.push(e.value)),i&&Gn?(r&&o.push(r),a&&o.push(a)):e.readable=e.writable=null,o.length)try{return t.postMessage(e,o),!0}catch{Gn=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}async function Jn({data:e},t){let{type:n,value:r,messageId:i,result:a,error:o}=e,{reader:s,writer:c,resolveResult:l,rejectResult:u,onTaskFinished:d}=t;try{if(o){let{message:e,stack:t,code:n,name:r,outputSize:i}=o,a=Error(e);Object.assign(a,{stack:t,code:n,name:r,outputSize:i}),f(a)}else{if(n==`pull`){let{value:e,done:n}=await s.read();qn({type:An,value:e,done:n,messageId:i},t)}n==`data`&&(await c.ready,await c.write(new Uint8Array(r)),qn({type:`ack`,messageId:i},t)),n==`close`&&f(null,a)}}catch(e){qn({type:jn,messageId:i},t),f(e)}function f(e,t){e?u(e):l(t),c&&c.releaseLock(),d()}}var q=[],Yn=[],Xn=0;async function Zn(e,t){let{options:n,config:r}=t,{transferStreams:i,useWebWorkers:a,useCompressionStream:o,codecType:s,compressed:c,signed:l,encrypted:u}=n,{workerScripts:d,maxWorkers:f}=r;return t.transferStreams=i||i===void 0,t.useWebWorkers=!(!c&&!l&&!u&&!t.transferStreams)&&(a||a===void 0&&r.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[s]:[],n.useCompressionStream=o||o===void 0&&r.useCompressionStream,(await p()).run();async function p(){let n=q.find(e=>!e.busy);if(n)return $n(n),new In(n,e,t,m);if(q.length<f){let n={indexWorker:Xn};return Xn++,q.push(n),new In(n,e,t,m)}else return new Promise(n=>Yn.push({resolve:n,stream:e,workerOptions:t}))}function m(e){if(Yn.length){let[{resolve:t,stream:n,workerOptions:r}]=Yn.splice(0,1);t(new In(e,n,r,m))}else e.worker?($n(e),Qn(e,t)):q=q.filter(t=>t!=e)}}function Qn(e,t){let{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{q=q.filter(t=>t!=e);try{await e.terminate()}catch{}},r))}function $n(e){let{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function er(){await Promise.allSettled(q.map(e=>($n(e),e.terminate())))}var tr=`HTTP error `,nr=`HTTP Range not supported`,rr=`Writer iterator completed too soon`,ir=`Writer not initialized`,ar=`text/plain`,or=`Content-Length`,sr=`Content-Range`,cr=`Accept-Ranges`,lr=`Range`,ur=`Content-Type`,dr=`HEAD`,fr=`GET`,pr=`bytes`,mr=64*1024,hr=`writable`,gr=class{constructor(){this.size=0}init(){this.initialized=!0}},J=class extends gr{get readable(){let e=this,{chunkSize:t=mr}=e,n=new ReadableStream({start(){this.chunkOffset=0},async pull(r){let{offset:i=0,size:a,diskNumberStart:o}=n,{chunkOffset:s}=this,c=a===void 0?t:Math.min(t,a-s),l=await Y(e,i+s,c,o);r.enqueue(l),s+t>a||a===void 0&&!l.length&&c?r.close():this.chunkOffset+=t}});return n}},_r=class extends gr{constructor(){super();let e=this,t=new WritableStream({write(t){if(!e.initialized)throw Error(ir);return e.writeUint8Array(t)}});Object.defineProperty(e,hr,{get(){return t}})}writeUint8Array(){}},vr=class extends J{constructor(e){super();let t=e.length;for(;e.charAt(t-1)==`=`;)t--;let n=e.indexOf(`,`)+1;Object.assign(this,{dataURI:e,dataStart:n,size:Math.floor((t-n)*.75)})}readUint8Array(e,t){let{dataStart:n,dataURI:r}=this,i=new Uint8Array(t),a=Math.floor(e/3)*4,o=atob(r.substring(a+n,Math.ceil((e+t)/3)*4+n)),s=e-Math.floor(a/4)*3,c=0;for(let e=s;e<s+t&&e<o.length;e++)i[e-s]=o.charCodeAt(e),c++;return c<i.length?i.subarray(0,c):i}},yr=class extends _r{constructor(e){super(),Object.assign(this,{data:`data:`+(e||``)+`;base64,`,pending:[]})}writeUint8Array(e){let t=this,n=0,r=t.pending,i=t.pending.length;for(t.pending=``,n=0;n<Math.floor((i+e.length)/3)*3-i;n++)r+=String.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=String.fromCharCode(e[n]);r.length&&(r.length>2?t.data+=btoa(r):t.pending+=r)}getData(){return this.data+btoa(this.pending)}},br=class extends J{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){let n=this,r=e+t,i=await(e||r<n.size?n.blob.slice(e,r):n.blob).arrayBuffer();return i.byteLength>t&&(i=i.slice(e,r)),new Uint8Array(i)}},xr=class extends gr{constructor(e){super();let t=this,n=new TransformStream,r=[];e&&r.push([ur,e]),Object.defineProperty(t,hr,{get(){return n.writable}}),t.blob=new Response(n.readable,{headers:r}).blob()}getData(){return this.blob}},Sr=class extends br{constructor(e){super(new Blob([e],{type:ar}))}},Cr=class extends xr{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||e.toLowerCase()==`utf-8`})}async getData(){let{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{let t=new FileReader;return new Promise((r,i)=>{Object.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>i(t.error)}),t.readAsText(n,e)})}}},wr=class extends J{constructor(e,t){super(),Er(this,e,t)}async init(){await Dr(this,Fr,jr),super.init()}readUint8Array(e,t){return Or(this,e,t,Fr,jr)}},Tr=class extends J{constructor(e,t){super(),Er(this,e,t)}async init(){await Dr(this,Ir,Mr),super.init()}readUint8Array(e,t){return Or(this,e,t,Ir,Mr)}};function Er(e,t,n){let{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:a,combineSizeEocd:o}=n;n=Object.assign({},n),delete n.preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:a,combineSizeEocd:o})}async function Dr(e,t,n){let{url:r,preventHeadRequest:i,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s}=e;if(Gr(r)&&(a||o)&&(i===void 0||i)){let r=await t(fr,e,kr(e,s?-22:void 0));if(!o&&r.headers.get(cr)!=pr)throw Error(nr);{s&&(e.eocdCache=new Uint8Array(await r.arrayBuffer()));let i,a=r.headers.get(sr);if(a){let e=a.trim().split(/\s*\/\s*/);if(e.length){let t=e[1];t&&t!=`*`&&(i=Number(t))}}i===void 0?await Pr(e,t,n):e.size=i}}else await Pr(e,t,n)}async function Or(e,t,n,r,i){let{useRangeHeader:a,forceRangeRequests:o,eocdCache:s,size:c,options:l}=e;if(a||o){if(s&&t==c-22&&n==22)return s;if(t>=c)return new Uint8Array;{t+n>c&&(n=c-t);let i=await r(fr,e,kr(e,t,n));if(i.status!=206)throw Error(nr);return new Uint8Array(await i.arrayBuffer())}}else{let{data:r}=e;return r||await i(e,l),new Uint8Array(e.data.subarray(t,t+n))}}function kr(e,t=0,n=1){return Object.assign({},Ar(e),{[lr]:`bytes=`+(t<0?t:t+`-`+(t+n-1))})}function Ar({options:e}){let{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function jr(e){await Nr(e,Fr)}async function Mr(e){await Nr(e,Ir)}async function Nr(e,t){let n=await t(fr,e,Ar(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||=e.data.length}async function Pr(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{let r=(await t(dr,e,Ar(e))).headers.get(or);r?e.size=Number(r):await n(e,e.options)}}async function Fr(e,{options:t,url:n},r){let i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(i.status<400)return i;throw i.status==416?Error(nr):Error(tr+(i.statusText||i.status))}function Ir(e,{url:t},n){return new Promise((r,i)=>{let a=new XMLHttpRequest;if(a.addEventListener(`load`,()=>{if(a.status<400){let e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(t=>{let n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,e=>e.toUpperCase()),e.push(n)}),r({status:a.status,arrayBuffer:()=>a.response,headers:new Map(e)})}else i(a.status==416?Error(nr):Error(tr+(a.statusText||a.status)))},!1),a.addEventListener(`error`,e=>i(e.detail?e.detail.error:Error(`Network error`)),!1),a.open(e,t),n)for(let e of Object.entries(n))a.setRequestHeader(e[0],e[1]);a.responseType=`arraybuffer`,a.send()})}var Lr=class extends J{constructor(e,t={}){super(),Object.assign(this,{url:e,reader:t.useXHR?new Tr(e,t):new wr(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}},Rr=class extends Lr{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},zr=class extends J{constructor(e){super(),e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Object.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}},Br=class extends _r{init(e=0){Object.assign(this,{offset:0,array:new Uint8Array(e)}),super.init()}writeUint8Array(e){let t=this;if(t.offset+e.length>t.array.length){let n=t.array;t.array=new Uint8Array(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},Vr=class extends J{constructor(e){super(),this.readers=e}async init(){let e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(t.map(async(n,r)=>{await n.init(),r!=t.length-1&&(e.lastDiskOffset+=n.size),e.size+=n.size})),super.init()}async readUint8Array(e,t,n=0){let r=this,{readers:i}=this,a,o=n;o==-1&&(o=i.length-1);let s=e;for(;i[o]&&s>=i[o].size;)s-=i[o].size,o++;let c=i[o];if(c){let i=c.size;if(s+t<=i)a=await Y(c,s,t);else{let o=i-s;a=new Uint8Array(t);let l=await Y(c,s,o);a.set(l,0);let u=await r.readUint8Array(e+o,t-o,n);a.set(u,o),l.length+u.length<t&&(a=a.subarray(0,l.length+u.length))}}else a=new Uint8Array;return r.lastDiskNumber=Math.max(o,r.lastDiskNumber),a}},Hr=class extends gr{constructor(e,t=4294967295){super();let n=this;Object.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});let r,i,a,o=new WritableStream({async write(t){let{availableSize:o}=n;if(a)t.length>=o?(await s(t.subarray(0,o)),await c(),n.diskOffset+=r.size,n.diskNumber++,a=null,await this.write(t.subarray(o))):await s(t);else{let{value:o,done:s}=await e.next();if(s&&!o)throw Error(rr);r=o,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await Kr(r),i=o.writable,a=i.getWriter(),await this.write(t)}},async close(){await a.ready,await c()}});Object.defineProperty(n,hr,{get(){return o}});async function s(e){let t=e.length;t&&(await a.ready,await a.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function c(){await a.close()}}},Ur=class{constructor(e){return Array.isArray(e)&&(e=new Vr(e)),e instanceof ReadableStream&&(e={readable:e}),e}},Wr=class{constructor(e){return e.writable===void 0&&typeof e.next==`function`&&(e=new Hr(e)),e instanceof WritableStream&&(e={writable:e}),e.size===void 0&&(e.size=0),e instanceof Hr||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}};function Gr(e){let{baseURL:t}=ht(),{protocol:n}=new URL(e,t);return n==`http:`||n==`https:`}async function Kr(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Y(e,t,n,r){return e.readUint8Array(t,n,r)}var qr=Vr,Jr=Hr,Yr=`\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `.split(``),Xr=Yr.length==256;function Zr(e){if(Xr){let t=``;for(let n=0;n<e.length;n++)t+=Yr[e[n]];return t}else return new TextDecoder().decode(e)}function Qr(e,t){return t&&t.trim().toLowerCase()==`cp437`?Zr(e):new TextDecoder(t).decode(e)}var $r=`filename`,ei=`rawFilename`,ti=`comment`,ni=`rawComment`,ri=`uncompressedSize`,ii=`compressedSize`,ai=`offset`,oi=`diskNumberStart`,si=`lastModDate`,ci=`rawLastModDate`,li=`lastAccessDate`,ui=`rawLastAccessDate`,di=`creationDate`,fi=`rawCreationDate`,pi=[$r,ei,ii,ri,si,ci,ti,ni,li,di,ai,oi,oi,`internalFileAttribute`,`internalFileAttributes`,`externalFileAttribute`,`externalFileAttributes`,`msDosCompatible`,`zip64`,`encrypted`,`version`,`versionMadeBy`,`zipCrypto`,`directory`,`executable`,`compressionMethod`,`signature`,`extraField`,`bitFlag`,`filenameUTF8`,`commentUTF8`,`rawExtraField`,`extraFieldZip64`,`extraFieldUnicodePath`,`extraFieldUnicodeComment`,`extraFieldAES`,`extraFieldNTFS`,`extraFieldExtendedTimestamp`],mi=class{constructor(e){pi.forEach(t=>this[t]=e[t])}},hi=`filenameEncoding`,gi=`commentEncoding`,_i=`extractPrependedData`,vi=`extractAppendedData`,yi=`password`,bi=`rawPassword`,xi=`passThrough`,Si=`signal`,Ci=`checkPasswordOnly`,wi=`checkOverlappingEntryOnly`,Ti=`checkOverlappingEntry`,Ei=`useWebWorkers`,Di=`useCompressionStream`,Oi=`transferStreams`,ki=`File format is not recognized`,Ai=`End of central directory not found`,ji=`End of Zip64 central directory locator not found`,Mi=`Central directory header not found`,Ni=`Local file header not found`,Pi=`Zip64 extra field not found`,Fi=`File contains encrypted entry`,Ii=`Encryption method not supported`,Li=`Compression method not supported`,Ri=`Split zip file`,zi=`Overlapping entry found`,Bi=`utf-8`,Vi=`cp437`,Hi=[[ri,nt],[ii,nt],[ai,nt],[oi,rt]],Ui={[rt]:{getValue:Q,bytes:4},[nt]:{getValue:aa,bytes:8}},Wi=class{constructor(e,t={}){Object.assign(this,{reader:new Ur(e),options:t,config:ht(),readRanges:[]})}async*getEntriesGenerator(e={}){let t=this,{reader:n}=t,{config:r}=t;if(await Kr(n),(n.size===void 0||!n.readUint8Array)&&(n=new br(await new Response(n.readable).blob()),await Kr(n)),n.size<22)throw Error(ki);n.chunkSize=gt(r);let i=await ta(n,it,n.size,22,rt*16);if(!i)throw Q($(await Y(n,0,4)))==134695760?Error(Ri):Error(Ai);let a=$(i),o=Q(a,12),s=Q(a,16),c=i.offset,l=Z(a,20),u=c+22+l,d=Z(a,4),f=n.lastDiskNumber||0,p=Z(a,6),m=Z(a,8),h=0,g=0;if(s==4294967295||o==4294967295||m==65535||p==65535){let e=$(await Y(n,i.offset-20,20));if(Q(e,0)==117853008){s=aa(e,8);let t=await Y(n,s,56,-1),r=$(t),a=i.offset-20-56;if(Q(r,0)!=101075792&&s!=a){let e=s;s=a,s>e&&(h=s-e),t=await Y(n,s,56,-1),r=$(t)}if(Q(r,0)!=101075792)throw Error(ji);d==65535&&(d=Q(r,16)),p==65535&&(p=Q(r,20)),m==65535&&(m=aa(r,32)),o==4294967295&&(o=aa(r,40)),s-=o}}if(s>=n.size&&(h=n.size-s-o-22,s=n.size-o-22),f!=d)throw Error(Ri);if(s<0)throw Error(ki);let _=0,v=await Y(n,s,o,p),y=$(v);if(o){let e=i.offset-o;if(Q(y,_)!=33639248&&s!=e){let t=s;s=e,s>t&&(h+=s-t),v=await Y(n,s,o,p),y=$(v)}}let b=i.offset-s-(n.lastDiskOffset||0);if(o!=b&&b>=0&&(o=b,v=await Y(n,s,o,p),y=$(v)),s<0||s>=n.size)throw Error(ki);let x=X(t,e,hi),S=X(t,e,gi);for(let i=0;i<m;i++){let a=new Ki(n,r,t.options);if(Q(y,_)!=33639248)throw Error(Mi);qi(a,y,_+6);let o=!!a.bitFlag.languageEncodingFlag,s=_+46,c=s+a.filenameLength,l=c+a.extraFieldLength,u=Z(y,_+4),d=u>>8==0,f=u>>8==3,p=v.subarray(s,c),b=Z(y,_+32),C=l+b,w=v.subarray(l,C),T=o,E=o,D=Q(y,_+38),O=d&&(ia(y,_+38)&16)==16||f&&(D>>16&61440)==16384||p.length&&p.at(-1)==47,k=f&&(D>>16&73)!=0,ee=Q(y,_+42)+h;Object.assign(a,{versionMadeBy:u,msDosCompatible:d,compressedSize:0,uncompressedSize:0,commentLength:b,directory:O,offset:ee,diskNumberStart:Z(y,_+34),internalFileAttributes:Z(y,_+36),externalFileAttributes:D,rawFilename:p,filenameUTF8:T,commentUTF8:E,rawExtraField:v.subarray(c,l),executable:k}),a.internalFileAttribute=a.internalFileAttributes,a.externalFileAttribute=a.externalFileAttributes;let te=X(t,e,`decodeText`)||Qr,ne=T?Bi:x||Vi,re=E?Bi:S||Vi,ie=te(p,ne);ie===void 0&&(ie=Qr(p,ne));let A=te(w,re);A===void 0&&(A=Qr(w,re)),Object.assign(a,{rawComment:w,filename:ie,comment:A,directory:O||ie.endsWith(`/`)}),g=Math.max(ee,g),Ji(a,a,y,_+6),a.zipCrypto=a.encrypted&&!a.extraFieldAES;let j=new mi(a);j.getData=(e,n)=>a.getData(e,j,t.readRanges,n),j.arrayBuffer=async e=>{let n=new TransformStream,[r]=await Promise.all([new Response(n.readable).arrayBuffer(),a.getData(n,j,t.readRanges,e)]);return r},_=C;let{onprogress:ae}=e;if(ae)try{await ae(i+1,m,new mi(a))}catch{}yield j}let C=X(t,e,_i),w=X(t,e,vi);return C&&(t.prependedData=g>0?await Y(n,0,g):new Uint8Array),t.comment=l?await Y(n,c+22,l):new Uint8Array,w&&(t.appendedData=u<n.size?await Y(n,u,n.size-u):new Uint8Array),!0}async getEntries(e={}){let t=[];for await(let n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}},Gi=class{constructor(e={}){let{readable:t,writable:n}=new TransformStream,r=new Wi(t,e).getEntriesGenerator();this.readable=new ReadableStream({async pull(e){let{done:t,value:n}=await r.next();if(t)return e.close();let i={...n,readable:(function(){let{readable:e,writable:t}=new TransformStream;if(n.getData)return n.getData(t),e})()};delete i.getData,e.enqueue(i)}}),this.writable=n}},Ki=class{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n,r={}){let i=this,{reader:a,offset:o,diskNumberStart:s,extraFieldAES:c,extraFieldZip64:l,compressionMethod:u,config:d,bitFlag:f,signature:p,rawLastModDate:m,uncompressedSize:h,compressedSize:g}=i,{dataDescriptor:_}=f,v=t.localDirectory={},y=$(await Y(a,o,30,s)),b=X(i,r,yi),x=X(i,r,bi),S=X(i,r,xi);if(b=b&&b.length&&b,x=x&&x.length&&x,c&&c.originalCompressionMethod!=99||u!=0&&u!=8&&!S)throw Error(Li);if(Q(y,0)!=67324752)throw Error(Ni);qi(v,y,4);let{extraFieldLength:C,filenameLength:w,lastAccessDate:T,creationDate:E}=v;v.rawExtraField=C?await Y(a,o+30+w,C,s):new Uint8Array,Ji(i,v,y,4,!0),Object.assign(t,{lastAccessDate:T,creationDate:E});let D=i.encrypted&&v.encrypted&&!S,O=D&&!c;if(S||(t.zipCrypto=O),D){if(!O&&c.strength===void 0)throw Error(Ii);if(!b&&!x)throw Error(Fi)}let k=o+30+w+C,ee=g,te=a.readable;Object.assign(te,{diskNumberStart:s,offset:k,size:ee});let ne=X(i,r,Si),re=X(i,r,Ci),ie=X(i,r,Ti),A=X(i,r,wi);A&&(ie=!0);let{onstart:j,onprogress:ae,onend:M}=r,N={options:{codecType:Mn,password:b,rawPassword:x,zipCrypto:O,encryptionStrength:c&&c.strength,signed:X(i,r,`checkSignature`)&&!S,passwordVerification:O&&(_?m>>>8&255:p>>>24&255),outputSize:h,signature:p,compressed:u!=0&&!S,encrypted:i.encrypted&&!S,useWebWorkers:X(i,r,Ei),useCompressionStream:X(i,r,Di),transferStreams:X(i,r,Oi),checkPasswordOnly:re},config:d,streamOptions:{signal:ne,size:ee,onstart:j,onprogress:ae,onend:M}};ie&&await ea({reader:a,fileEntry:t,offset:o,diskNumberStart:s,signature:p,compressedSize:g,uncompressedSize:h,dataOffset:k,dataDescriptor:_||v.bitFlag.dataDescriptor,extraFieldZip64:l||v.extraFieldZip64,readRanges:n});let P;try{if(!A){re&&(e=new WritableStream),e=new Wr(e),await Kr(e,S?g:h),{writable:P}=e;let{outputSize:t}=await Zn({readable:te,writable:P},N);if(e.size+=t,t!=(S?g:h))throw Error(Sn)}}catch(t){if(t.outputSize!==void 0&&(e.size+=t.outputSize),!re||t.message!=`zipjs-abort-check-password`)throw t}finally{!X(i,r,`preventClose`)&&P&&!P.locked&&await P.getWriter().close()}return re||A?void 0:e.getData?e.getData():P}};function qi(e,t,n){let r=e.rawBitFlag=Z(t,n+2),i=(r&1)==1,a=Q(t,n+6);Object.assign(e,{encrypted:i,version:Z(t,n),bitFlag:{level:(r&6)>>1,dataDescriptor:(r&8)==8,languageEncodingFlag:(r&ut)==ut},rawLastModDate:a,lastModDate:na(a),filenameLength:Z(t,n+22),extraFieldLength:Z(t,n+24)})}function Ji(e,t,n,r,i){let{rawExtraField:a}=t,o=t.extraField=new Map,s=$(new Uint8Array(a)),c=0;try{for(;c<a.length;){let e=Z(s,c),t=Z(s,c+2);o.set(e,{type:e,data:a.slice(c+4,c+4+t)}),c+=4+t}}catch{}let l=Z(n,r+4);Object.assign(t,{signature:Q(n,r+10),compressedSize:Q(n,r+14),uncompressedSize:Q(n,r+18)});let u=o.get(1);u&&(Yi(u,t),t.extraFieldZip64=u);let d=o.get(st);d&&(Xi(d,$r,ei,t,e),t.extraFieldUnicodePath=d);let f=o.get(ct);f&&(Xi(f,ti,ni,t,e),t.extraFieldUnicodeComment=f);let p=o.get(at);p?(Zi(p,t,l),t.extraFieldAES=p):t.compressionMethod=l;let m=o.get(10);m&&(Qi(m,t),t.extraFieldNTFS=m);let h=o.get(ot);h&&($i(h,t,i),t.extraFieldExtendedTimestamp=h);let g=o.get(lt);g&&(t.extraFieldUSDZ=g)}function Yi(e,t){t.zip64=!0;let n=$(e.data),r=Hi.filter(([e,n])=>t[e]==n);for(let i=0,a=0;i<r.length;i++){let[o,s]=r[i];if(t[o]==s){let r=Ui[s];t[o]=e[o]=r.getValue(n,a),a+=r.bytes}else if(e[o])throw Error(Pi)}}function Xi(e,t,n,r,i){let a=$(e.data),o=new bt;o.append(i[n]);let s=$(new Uint8Array(4));s.setUint32(0,o.get(),!0);let c=Q(a,1);Object.assign(e,{version:ia(a,0),[t]:Qr(e.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&c==Q(s,0)}),e.valid&&(r[t]=e[t],r[t+`UTF8`]=!0)}function Zi(e,t,n){let r=$(e.data),i=ia(r,4);Object.assign(e,{vendorVersion:ia(r,0),vendorId:ia(r,2),strength:i,originalCompressionMethod:n,compressionMethod:Z(r,5)}),t.compressionMethod=e.compressionMethod}function Qi(e,t){let n=$(e.data),r=4,i;try{for(;r<e.data.length&&!i;){let t=Z(n,r),a=Z(n,r+2);t==1&&(i=e.data.slice(r+4,r+4+a)),r+=4+a}}catch{}try{if(i&&i.length==24){let n=$(i),r=n.getBigUint64(0,!0),a=n.getBigUint64(8,!0),o=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:r,rawLastAccessDate:a,rawCreationDate:o});let s={lastModDate:ra(r),lastAccessDate:ra(a),creationDate:ra(o)};Object.assign(e,s),Object.assign(t,s)}}catch{}}function $i(e,t,n){let r=$(e.data),i=ia(r,0),a=[],o=[];n?((i&1)==1&&(a.push(si),o.push(ci)),(i&2)==2&&(a.push(li),o.push(ui)),(i&4)==4&&(a.push(di),o.push(fi))):e.data.length>=5&&(a.push(si),o.push(ci));let s=1;a.forEach((n,i)=>{if(e.data.length>=s+4){let a=Q(r,s);t[n]=e[n]=new Date(a*1e3);let c=o[i];e[c]=a}s+=4})}async function ea({reader:e,fileEntry:t,offset:n,diskNumberStart:r,signature:i,compressedSize:a,uncompressedSize:o,dataOffset:s,dataDescriptor:c,extraFieldZip64:l,readRanges:u}){let d=0;if(r)for(let t=0;t<r;t++){let n=e.readers[t];d+=n.size}let f=0;if(c&&(f=l?20:12),f){let n=await Y(e,s+a,f+4,r);if(Q($(n),0)==134695760){let e=Q($(n),4),r,s;l?(r=aa($(n),8),s=aa($(n),16)):(r=Q($(n),8),s=Q($(n),12)),(t.encrypted&&!t.zipCrypto||e==i)&&r==a&&s==o&&(f+=4)}}let p={start:d+n,end:d+s+a+f,fileEntry:t};for(let e of u)if(e.fileEntry!=t&&p.start>=e.start&&p.start<e.end){let t=Error(zi);throw t.overlappingEntry=e.fileEntry,t}u.push(p)}async function ta(e,t,n,r,i){let a=new Uint8Array(4);oa($(a),0,t);let o=r+i;return await s(r)||await s(Math.min(o,n));async function s(t){let i=n-t,o=await Y(e,i,t);for(let e=o.length-r;e>=0;e--)if(o[e]==a[0]&&o[e+1]==a[1]&&o[e+2]==a[2]&&o[e+3]==a[3])return{offset:i+e,buffer:o.slice(e,e+r).buffer}}}function X(e,t,n){return t[n]===void 0?e.options[n]:t[n]}function na(e){let t=(e&4294901760)>>16,n=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(n&63488)>>11,(n&2016)>>5,(n&31)*2,0)}catch{}}function ra(e){return new Date(Number(e/BigInt(1e4)-BigInt(0xa9730b66800)))}function ia(e,t){return e.getUint8(t)}function Z(e,t){return e.getUint16(t,!0)}function Q(e,t){return e.getUint32(t,!0)}function aa(e,t){return Number(e.getBigUint64(t,!0))}function oa(e,t,n){e.setUint32(t,n,!0)}function $(e){return new DataView(e.buffer)}var sa=t({BlobReader:()=>br,BlobWriter:()=>xr,Data64URIReader:()=>vr,Data64URIWriter:()=>yr,ERR_BAD_FORMAT:()=>ki,ERR_CENTRAL_DIRECTORY_NOT_FOUND:()=>Mi,ERR_ENCRYPTED:()=>Fi,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:()=>ji,ERR_EOCDR_NOT_FOUND:()=>Ai,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:()=>Pi,ERR_HTTP_RANGE:()=>nr,ERR_INVALID_PASSWORD:()=>kt,ERR_INVALID_SIGNATURE:()=>At,ERR_INVALID_UNCOMPRESSED_SIZE:()=>Sn,ERR_ITERATOR_COMPLETED_TOO_SOON:()=>rr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:()=>Ni,ERR_OVERLAPPING_ENTRY:()=>zi,ERR_SPLIT_ZIP_FILE:()=>Ri,ERR_UNSUPPORTED_COMPRESSION:()=>Li,ERR_UNSUPPORTED_ENCRYPTION:()=>Ii,ERR_WRITER_NOT_INITIALIZED:()=>ir,GenericReader:()=>Ur,GenericWriter:()=>Wr,HttpRangeReader:()=>Rr,HttpReader:()=>Lr,Reader:()=>J,SplitDataReader:()=>Vr,SplitDataWriter:()=>Hr,SplitZipReader:()=>qr,SplitZipWriter:()=>Jr,TextReader:()=>Sr,TextWriter:()=>Cr,Uint8ArrayReader:()=>zr,Uint8ArrayWriter:()=>Br,Writer:()=>_r,ZipReader:()=>Wi,ZipReaderStream:()=>Gi,configure:()=>_t,getMimeType:()=>vt,initStream:()=>Kr,readUint8Array:()=>Y,terminateWorkers:()=>er});_t({Inflate:tt});var ca=sa,la=class{constructor(e,t){ca.configure({baseURL:self.location.href}),this._zipReader=new ca.ZipReader(new ca.HttpReader(this._resolveTraceURI(e),{mode:`cors`,preventHeadRequest:!0}),{useWebWorkers:!1}),this._entriesPromise=this._zipReader.getEntries({onprogress:t}).then(e=>{let t=new Map;for(let n of e)t.set(n.filename,n);return t})}_resolveTraceURI(e){return e.startsWith(`https://www.dropbox.com/`)?`https://dl.dropboxusercontent.com/`+e.substring(24):e}isLive(){return!1}async entryNames(){return[...(await this._entriesPromise).keys()]}async hasEntry(e){return(await this._entriesPromise).has(e)}async readText(e){let t=(await this._entriesPromise).get(e);if(!t)return;let n=new ca.TextWriter;return await t.getData?.(n),n.getData()}async readBlob(e){let t=(await this._entriesPromise).get(e);if(!t)return;let n=new ca.BlobWriter;return await t.getData(n),n.getData()}},ua=class{constructor(e){this._entriesPromise=this._readFile(e).then(async e=>{if(!e)throw Error(`File not found`);let t=await e.json(),n=new Map;for(let e of t.entries)n.set(e.name,e.path);return n})}isLive(){return!0}async entryNames(){return[...(await this._entriesPromise).keys()]}async hasEntry(e){return(await this._entriesPromise).has(e)}async readText(e){return(await this._readEntry(e))?.text()}async readBlob(e){let t=await this._readEntry(e);return t?.status===200?await t?.blob():void 0}async _readEntry(e){let t=(await this._entriesPromise).get(e);if(t)return this._readFile(t)}async _readFile(e){let t=await fetch(e);if(t.status!==404)return t}};self.addEventListener(`install`,function(e){self.skipWaiting()}),self.addEventListener(`activate`,function(e){e.waitUntil(self.clients.claim())});var da=new URL(self.registration.scope).pathname,fa=new Map,pa=new Map,ma=self.registration.scope.startsWith(`https://`);function ha(){fa.clear(),pa.clear()}async function ga(e,t,n){try{return{loadedTrace:await _a(e,t,n)}}catch(e){return{errorResponse:new Response(JSON.stringify({error:e?.message}),{status:500,headers:{"Content-Type":`application/json`}})}}}function _a(e,t,n){let r=t.searchParams.get(`trace`);if(!r)throw Error(`trace parameter is missing`);pa.set(e,r);let i=fa.get(r);if(i)return i;let a=va(r,n);return fa.set(r,a),a.catch(()=>fa.delete(r)),a}async function va(e,t){await xa();let r=new ee;try{let[n,i]=re(t,[.5,.4,.1]),a=wa(e)||e.endsWith(`traces.dir`)?new ua(e):new la(e,n);await r.load(a,void 0,i)}catch(t){if(console.error(t),t?.message?.includes(`Cannot find .trace file`)&&await r.hasEntry(`index.html`))throw Error(`Could not load trace. Did you upload a Playwright HTML report instead? Make sure to extract the archive first and then double-click the index.html file or put it on a web server.`);if(t instanceof D)throw Error(`Could not load trace from ${e}. ${t.message}`);let n=`Could not load trace from ${e}. Make sure a valid Playwright Trace is accessible over this url.`,i=await navigator.permissions.query({name:`local-network-access`}).catch(()=>{});throw i&&i.state!==`granted`&&(n+=`

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #9f8d2c75d9f746b9 Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/sw.bundle.js:4
If your trace is in a local or private network, please grant permission for Local Network Access.`),Error(n)}return{traceLoader:r,snapshotServer:new n(r.storage(),e=>r.resourceForSha1(e))}}async function ya(e){let t=e.request;if(t.url.startsWith(`chrome-extension://`))return fetch(t);let n=new URL(t.url),r;if(t.url.startsWith(self.registration.scope)&&(r=n.pathname.substring(da.length-1)),r===`/restartServiceWorker`)return ha(),new Response(null,{status:200});if(r===`/ping`)return new Response(null,{status:200});let i=!!e.resultingClientId,a=e.clientId?await self.clients.get(e.clientId):void 0;if(i&&!r?.startsWith(`/sha1/`)){if(r?.startsWith(`/snapshot/`)){let{errorResponse:t,loadedTrace:i}=await ga(e.resultingClientId,n,Ca);if(t)return t;let a=r.substring(10),o=i.snapshotServer.serveSnapshot(a,n.searchParams,n.href);return ma&&o.headers.set(`Content-Security-Policy`,`upgrade-insecure-requests`),o}return fetch(e.request)}if(!r){if(!a)return new Response(`Sub-resource without a client`,{status:500});let{snapshotServer:e}=await _a(a.id,new URL(a.url),Sa(a));if(!e)return new Response(null,{status:404});let n=[t.url];return ma&&t.url.startsWith(`https://`)&&n.push(t.url.replace(/^https/,`http`)),e.serveResource(n,t.method,a.url)}if(r===`/contexts`||r.startsWith(`/snapshotInfo/`)||r.startsWith(`/closest-screenshot/`)||r.startsWith(`/sha1/`)){if(!a)return new Response(`Sub-resource without a client`,{status:500});let{errorResponse:e,loadedTrace:t}=await ga(a.id,n,Sa(a));if(e)return e;if(r===`/contexts`)return new Response(JSON.stringify(t.traceLoader.contextEntries),{status:200,headers:{"Content-Type":`application/json`}});if(r.startsWith(`/snapshotInfo/`)){let e=r.substring(14);return t.snapshotServer.serveSnapshotInfo(e,n.searchParams)}if(r.startsWith(`/closest-screenshot/`)){let e=r.substring(20);return t.snapshotServer.serveClosestScreenshot(e,n.searchParams)}if(r.startsWith(`/sha1/`)){let e=await t.traceLoader.resourceForSha1(r.slice(6));return e?new Response(e,{status:200,headers:ba(n.searchParams)}):new Response(null,{status:404})}}return fetch(e.request)}function ba(e){let t=e.get(`dn`),n=e.get(`dct`);if(!t)return;let r=new Headers;return r.set(`Content-Disposition`,`attachment; filename="attachment"; filename*=UTF-8''${encodeURIComponent(t)}`),n&&r.set(`Content-Type`,n),r}async function xa(){let e=await self.clients.matchAll(),t=new Set;for(let[n,r]of pa){if(!e.find(e=>e.id===n)){pa.delete(n);continue}t.add(r)}for(let e of fa.keys())t.has(e)||fa.delete(e)}function Sa(e){return(t,n)=>{e.postMessage({method:`progress`,params:{done:t,total:n}})}}function Ca(e,t){}function wa(e){return!!new URL(e,`http://localhost`).searchParams.get(`path`)?.endsWith(`.json`)}self.addEventListener(`fetch`,function(e){if(e.request.headers.get(`x-pw-serviceworker`)===`skip`)return!1;e.respondWith(ya(e))});

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low egress dependency Excluded from app score #1b5a5f5e70e2b26c Outbound request to a variable or assembled URL on a network client. Review what data is sent to this destination.
pkgs/npm/[email protected]/lib/vite/traceViewer/uiMode.CZvydVOh.js:4
Only changed`:``),onClick:()=>d(!u),children:[(0,B.jsx)(`span`,{className:`filter-label`,children:`Status:`}),` `,p,(0,B.jsx)(`span`,{className:`filter-label`,children:`Projects:`}),` `,m,o&&(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(`span`,{className:`filter-label`,children:`Only changed`})})]}),u&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`hbox`,style:{marginLeft:14,maxHeight:200,overflowY:`auto`},children:[(0,B.jsx)(`div`,{className:`filter-list`,role:`list`,"data-testid":`status-filters`,children:[...n.entries()].map(([e,t])=>(0,B.jsx)(`div`,{className:`filter-entry`,role:`listitem`,children:(0,B.jsxs)(`label`,{children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:t,onChange:()=>{let t=new Map(n);t.set(e,!t.get(e)),r(t)}}),(0,B.jsx)(`div`,{children:e})]})},e))}),(0,B.jsx)(`div`,{className:`filter-list`,role:`list`,"data-testid":`project-filters`,children:[...i.entries()].map(([e,t])=>(0,B.jsx)(`div`,{className:`filter-entry`,role:`listitem`,children:(0,B.jsxs)(`label`,{children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:t,onChange:()=>{let t=new Map(i);t.set(e,!t.get(e)),a(t);let n=c?.config?.configFile;n&&C.setObject(n+`:projects`,[...t.entries()].filter(([e,t])=>t).map(([e])=>e))}}),(0,B.jsx)(`div`,{children:e||`untitled`})]})},e))})]}),(0,B.jsx)(`div`,{className:`filter-entry`,style:{marginLeft:24},children:(0,B.jsxs)(`label`,{children:[(0,B.jsx)(`input`,{type:`checkbox`,checked:o,onChange:()=>s(!o)}),(0,B.jsx)(`div`,{children:`Show only changed files`})]})})]})]})},ce=({tag:t,style:n,onClick:r})=>(0,B.jsx)(`span`,{className:e(`tag`,`tag-color-${le(t)}`),onClick:r,style:{margin:`6px 0 0 6px`,...n},title:`Click to filter by tag: ${t}`,children:t});function le(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<8)-t);return Math.abs(t%6)}var ue=v,de=({filterText:e,testModel:t,testServerConnection:n,testTree:r,runTests:i,runningState:a,watchAll:o,watchedTreeIds:s,setWatchedTreeIds:d,isLoading:f,onItemSelected:p,requestedCollapseAllCount:m,requestedExpandAllCount:h,setFilterText:_,onRevealSource:v})=>{let[y,b]=E.useState({expandedItems:new Map}),[x,S]=E.useState(),[C,w]=E.useState(m),[T,D]=E.useState(h);E.useEffect(()=>{if(C!==m){y.expandedItems.clear();for(let e of r.flatTreeItems())y.expandedItems.set(e.id,!1);w(m),S(void 0),b({...y});return}if(T!==h){y.expandedItems.clear();for(let e of r.flatTreeItems())y.expandedItems.set(e.id,!0);D(h),S(void 0),b({...y});return}if(!a||a.itemSelectedByUser)return;let e,t=n=>{n.children.forEach(t),!e&&n.status===`failed`&&(n.kind===`test`&&a.testIds.has(n.test.id)||n.kind===`case`&&a.testIds.has(n.tests[0]?.id))&&(e=n)};t(r.rootItem),e&&S(e.id)},[a,S,r,C,w,m,T,D,h,y,b]);let O=E.useMemo(()=>{if(x)return r.treeItemById(x)},[x,r]);E.useEffect(()=>{if(!t)return;let e=fe(O,t),n;O?.kind===`test`?n=O.test:O?.kind===`case`&&O.tests.length===1&&(n=O.tests[0]),p({treeItem:O,testCase:n,testFile:e})},[t,O,p]),E.useEffect(()=>{if(!f)if(o)n?.watchNoReply({fileNames:r.fileNames()});else{let e=new Set;for(let t of s.value){let n=r.treeItemById(t)?.location.file;n&&e.add(n)}n?.watchNoReply({fileNames:[...e]})}},[f,r,o,s,n]);let k=e=>{S(e.id),i(`bounce-if-busy`,r.collectTestIds(e))},A=(t,n)=>{if(t.preventDefault(),t.stopPropagation(),t.metaKey||t.ctrlKey){let t=e.split(` `);t.includes(n)?_(t.filter(e=>e!==n).join(` `).trim()):_((e+` `+n).trim())}else _((e.split(` `).filter(e=>!e.startsWith(`@`)).join(` `)+` `+n).trim())};return(0,B.jsx)(ue,{name:`tests`,treeState:y,setTreeState:b,rootItem:r.rootItem,dataTestId:`test-tree`,render:e=>{let t=e.id.replace(/[^\w\d-_]/g,`-`),n=t+`-label`,r=t+`-time`;return(0,B.jsxs)(`div`,{className:`hbox ui-mode-tree-item`,"aria-labelledby":`${n} ${r}`,children:[(0,B.jsxs)(`div`,{id:n,className:`ui-mode-tree-item-title`,children:[(0,B.jsx)(`span`,{children:e.title}),e.kind===`case`?e.tags.map(e=>(0,B.jsx)(ce,{tag:e.slice(1),onClick:t=>A(t,e)},e)):null]}),!!e.duration&&e.status!==`skipped`&&(0,B.jsx)(`div`,{id:r,className:`ui-mode-tree-item-time`,children:g(e.duration)}),(0,B.jsxs)(c,{noMinHeight:!0,noShadow:!0,children:[(0,B.jsx)(u,{icon:`play`,title:`Run`,onClick:()=>k(e),disabled:!!a&&!a.completed}),(0,B.jsx)(u,{icon:`go-to-file`,title:`Show source`,onClick:v,style:e.kind===`group`&&e.subKind===`folder`?{visibility:`hidden`}:{}}),!o&&(0,B.jsx)(u,{icon:`eye`,title:`Watch`,onClick:()=>{s.value.has(e.id)?s.value.delete(e.id):s.value.add(e.id),d({...s})},toggled:s.value.has(e.id)})]})]})},icon:e=>l(e.status),title:e=>e.title,selectedItem:O,onAccepted:k,onSelected:e=>{a&&(a.itemSelectedByUser=!0),S(e.id)},isError:e=>e.kind===`group`?e.hasLoadErrors:!1,autoExpandDepth:e?5:1,noItemsMessage:f?`Loading…`:`No tests`})};function fe(e,t){if(!(!e||!t))return{file:e.location.file,line:e.location.line,column:e.location.column,source:{errors:t.loadErrors.filter(t=>t.location?.file===e.location.file).map(e=>({line:e.location.line,message:e.message})),content:void 0}}}function V(e){return`.playwright-artifacts-${e}`}var pe=({item:e,rootDir:t,onOpenExternally:n,revealSource:r,pathSeparator:i})=>{let[o,s]=E.useState(void 0),[c,l]=E.useState(0),u=E.useRef(null),{outputDir:d}=E.useMemo(()=>({outputDir:e.testCase?me(e.testCase):void 0}),[e]);return E.useEffect(()=>{u.current&&clearTimeout(u.current);let t=e.testCase?.results[0];if(!t||e.treeItem?.status===`scheduled`){s(void 0);return}let n=t&&t.duration>=0&&t.attachments.find(e=>e.name===`trace`);if(n&&n.path){H(n.path,t.startTime.getTime()).then(e=>s({model:e,isLive:!1}));return}if(!d){s(void 0);return}let r=[d,V(t.workerIndex),`traces`,`${e.testCase?.id}.json`].join(i);return u.current=setTimeout(async()=>{try{s({model:await H(r,Date.now()),isLive:!0})}catch{let e=new a(``,[]);e.errorDescriptors.push(...t.errors.flatMap(e=>e.message?[{message:e.message}]:[])),s({model:e,isLive:!1})}finally{l(c+1)}},500),()=>{u.current&&clearTimeout(u.current)}},[d,e,s,c,l,i]),(0,B.jsx)(p,{model:o?.model,showSourcesFirst:!0,rootDir:t,fallbackLocation:e.testFile,isLive:o?.isLive,status:e.treeItem?.status,annotations:e.testCase?.annotations??[],onOpenExternally:n,revealSource:r},`workbench`)},me=e=>{for(let t=e.parent;t;t=t.parent)if(t.project())return t.project()?.outputDir};async function H(e,t){let n=`file?path=${encodeURIComponent(e)}&timestamp=${t}`,r=new URLSearchParams;return r.set(`trace`,n),new a(n,await(await fetch(`contexts?${r.toString()}`)).json())}var he={cols:80,rows:24},U={pending:[],clear:()=>{},write:e=>U.pending.push(e),resize:()=>{}},W=new URLSearchParams(window.location.search),G=new URL(W.get(`server`)??`../`,window.location.href),ge=new URL(W.get(`ws`),G);ge.protocol=ge.protocol===`https:`?`wss:`:`ws:`;var K={args:W.getAll(`arg`),grep:W.get(`grep`)||void 0,grepInvert:W.get(`grepInvert`)||void 0,projects:W.getAll(`project`),workers:W.get(`workers`)||void 0,headed:W.has(`headed`),updateSnapshots:W.get(`updateSnapshots`)||void 0,reporters:W.has(`reporter`)?W.getAll(`reporter`):void 0,pathSeparator:W.get(`pathSeparator`)||`/`};K.updateSnapshots&&![`all`,`changed`,`none`,`missing`].includes(K.updateSnapshots)&&(K.updateSnapshots=void 0);var _e=navigator.platform===`MacIntel`;function ve(e){return e.startsWith(`/`)&&(e=e.substring(1)),e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ye(e,t,n){let r=e.passed+e.failed+e.skipped,i=t?r/t*100|0:0,a=[];return e.passed>0&&a.push(`${e.passed} passed`),e.failed>0&&a.push((0,B.jsxs)(`span`,{className:`status-line-failed`,children:[e.failed,` failed`]},`failed`)),e.skipped>0&&a.push(`${e.skipped} skipped`),(0,B.jsx)(`div`,{"data-testid":`status-line`,className:`status-line`,children:(0,B.jsxs)(`div`,{children:[n&&`Running `,r,`/`,t,` (`,i,`%)`,a.length>0&&` — `,a.map((e,t)=>(0,B.jsxs)(E.Fragment,{children:[t>0?`, `:``,e]},t))]})})}var be=({})=>{let[t,r]=E.useState(``),[i,a]=E.useState(!1),[s,l]=E.useState(!1),[d,p]=E.useState(new Map([[`passed`,!1],[`failed`,!1],[`skipped`,!1]])),[m,h]=E.useState(new Map),[g,v]=E.useState(),[x,S]=E.useState(),[w,T]=E.useState({}),[D,O]=E.useState(!1),[A,ee]=E.useState(),j=A&&!A.completed,[M,N]=n(`watch-all`,!1),[P,F]=E.useState({value:new Set}),I=E.useRef(Promise.resolve()),R=E.useRef({testIds:new Set,locations:new Set}),[te,re]=E.useState(0),[ae,oe]=E.useState(0),[ce,le]=E.useState(!1),[ue,fe]=E.useState(!0),[V,me]=E.useState(),[H,W]=E.useState(),[G,be]=E.useState(!1),[q,xe]=E.useState(!1),[Se,Ce]=E.useState(!1),we=E.useCallback(()=>Ce(!0),[Ce]),[Te,Ee]=n(`single-worker`,!1),[De,Oe]=n(`updateSnapshots`,`missing`),[J,ke]=n(`only-changed`,!1),[Ae,je]=n(`stop-on-failure`,!1),[Y]=n(`mergeFiles`,!1),Me=E.useRef(null),X=E.useCallback(()=>{me(e=>(e?.close(),new _(new y(ge))))},[]);E.useEffect(()=>{Me.current?.focus(),O(!0),X()},[X]),E.useEffect(()=>{if(!V)return;let e=[V.onStdio(e=>{if(e.buffer){let t=atob(e.buffer);U.write(t)}else U.write(e.text);e.type===`stderr`&&l(!0)}),V.onClose(()=>le(!0))];return U.resize=(e,t)=>{he={cols:e,rows:t},V.resizeTerminalNoReply({cols:e,rows:t})},()=>{for(let t of e)t.dispose()}},[V]),E.useEffect(()=>{if(!V)return;let e,t=new ne({onUpdate:n=>{clearTimeout(e),e=void 0,n?v(t.asModel()):e||=setTimeout(()=>{v(t.asModel())},250)},onError:e=>{U.write((e.stack||e.value||``)+`

Data is sent to a hardcoded external endpoint; review what leaves the process.

Fix: Verify the destination and that only non-sensitive data is sent; pin and audit the dependency.

low env_fs dependency Excluded from app score #7251adbb1c715abc Filesystem access.
pkgs/npm/[email protected]/types/types.d.ts:19
import { ReadStream } from 'fs';

Reads environment variables or the filesystem — an inventory-level capability, not a leak on its own.

Fix: Usually benign; confirm any secret read here is not later sent externally.