From 7bf3d77b5e3dce3f8d52e76ac84f91bfd44ef008 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 6 Aug 2023 13:00:12 -0700 Subject: [PATCH] Revert "Implement new forking technique for vendored packages. (#51083)" (#53640) This reverts commit e06880ea4c061fc5c298b262d01f347edd8dce74. reverts: https://github.com/vercel/next.js/pull/51083 x-ref: [slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1691349686136519) x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1691349579712979?thread_ts=1691217652.833079&cid=C03S8ED1DKM) --- .eslintignore | 1 - .gitignore | 1 - .prettierignore_staged | 1 - .vscode/settings.json | 5 +- package.json | 16 +- .../next-core/js/src/entry/app/hydrate.tsx | 2 +- .../next-core/js/types/compiled-next.d.ts | 2 +- .../crates/next-core/js/types/modules.d.ts | 1 + .../crates/next-core/src/next_import_map.rs | 171 ++-- packages/next/package.json | 16 +- packages/next/src/build/index.ts | 85 +- packages/next/src/build/webpack-config.ts | 301 ++++-- .../next-edge-app-route-loader/index.ts | 2 +- .../loaders/next-edge-ssr-loader/index.ts | 2 +- .../plugins/next-trace-entrypoints-plugin.ts | 195 +--- .../nextjs-require-cache-hot-reloader.ts | 6 +- .../resolve-plugins/next-resolve-plugin.ts | 299 ------ .../router-reducer/fetch-server-response.ts | 18 +- .../reducers/server-action-reducer.ts | 26 +- .../next/src/compiled/@vercel/nft/index.js | 4 +- .../compiled/react-dom-experimental}/LICENSE | 0 ...t-dom-server-legacy.browser.development.js | 4 +- ...om-server-legacy.browser.production.min.js | 4 +- ...eact-dom-server-legacy.node.development.js | 4 +- ...t-dom-server-legacy.node.production.min.js | 4 +- ...t-dom-server-rendering-stub.development.js | 4 +- ...om-server-rendering-stub.production.min.js | 4 +- .../react-dom-server.browser.development.js | 4 +- ...react-dom-server.browser.production.min.js | 4 +- .../cjs/react-dom-server.edge.development.js | 4 +- .../react-dom-server.edge.production.min.js | 4 +- .../cjs/react-dom-server.node.development.js | 4 +- .../react-dom-server.node.production.min.js | 4 +- .../react-dom-static.browser.development.js | 4 +- ...react-dom-static.browser.production.min.js | 4 +- .../cjs/react-dom-static.edge.development.js | 4 +- .../react-dom-static.edge.production.min.js | 4 +- .../cjs/react-dom-static.node.development.js | 4 +- .../react-dom-static.node.production.min.js | 4 +- .../react-dom-unstable_testing.development.js | 6 +- ...act-dom-unstable_testing.production.min.js | 8 +- .../cjs/react-dom.development.js | 6 +- .../cjs/react-dom.production.min.js | 8 +- .../cjs/react-dom.profiling.min.js | 8 +- .../react-dom-experimental}/client.js | 0 .../compiled/react-dom-experimental}/index.js | 0 .../react-dom-experimental}/package.json | 8 +- .../react-dom-experimental}/profiling.js | 0 .../server-rendering-stub.js | 0 .../react-dom-experimental}/server.browser.js | 0 .../react-dom-experimental}/server.edge.js | 0 .../react-dom-experimental}/server.js | 0 .../react-dom-experimental}/server.node.js | 0 .../react-dom-experimental}/static.edge.js | 0 .../compiled/react-dom}/LICENSE | 0 ...t-dom-server-legacy.browser.development.js | 4 +- ...om-server-legacy.browser.production.min.js | 4 +- ...eact-dom-server-legacy.node.development.js | 4 +- ...t-dom-server-legacy.node.production.min.js | 4 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 4 +- ...react-dom-server.browser.production.min.js | 4 +- .../cjs/react-dom-server.edge.development.js | 4 +- .../react-dom-server.edge.production.min.js | 4 +- .../cjs/react-dom-server.node.development.js | 4 +- .../react-dom-server.node.production.min.js | 4 +- .../react-dom}/cjs/react-dom.development.js | 6 +- .../cjs/react-dom.production.min.js | 8 +- .../react-dom}/cjs/react-dom.profiling.min.js | 8 +- .../compiled/react-dom}/client.js | 0 .../compiled/react-dom}/index.js | 0 .../compiled/react-dom}/package.json | 8 +- .../compiled/react-dom}/profiling.js | 0 .../react-dom}/server-rendering-stub.js | 0 .../compiled/react-dom}/server.browser.js | 0 .../compiled/react-dom}/server.edge.js | 0 .../compiled/react-dom}/server.js | 0 .../compiled/react-dom}/server.node.js | 0 .../compiled/react-experimental}/LICENSE | 0 .../cjs/react-jsx-dev-runtime.development.js | 2 +- .../react-jsx-dev-runtime.production.min.js | 0 .../react-jsx-dev-runtime.profiling.min.js | 0 .../cjs/react-jsx-runtime.development.js | 2 +- .../cjs/react-jsx-runtime.production.min.js | 2 +- .../cjs/react-jsx-runtime.profiling.min.js | 2 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- .../compiled/react-experimental}/index.js | 0 .../react-experimental}/jsx-dev-runtime.js | 0 .../react-experimental}/jsx-runtime.js | 0 .../compiled/react-experimental}/package.json | 3 +- .../react.shared-subset.js | 0 .../LICENSE | 0 ...-dom-webpack-client.browser.development.js | 0 ...m-webpack-client.browser.production.min.js | 0 ...ver-dom-webpack-client.edge.development.js | 0 ...-dom-webpack-client.edge.production.min.js | 0 ...ver-dom-webpack-client.node.development.js | 0 ...-dom-webpack-client.node.production.min.js | 0 ...bpack-client.node.unbundled.development.js | 0 ...ck-client.node.unbundled.production.min.js | 0 .../react-server-dom-webpack-node-register.js | 0 .../cjs/react-server-dom-webpack-plugin.js | 0 ...-dom-webpack-server.browser.development.js | 0 ...m-webpack-server.browser.production.min.js | 0 ...ver-dom-webpack-server.edge.development.js | 0 ...-dom-webpack-server.edge.production.min.js | 0 ...ver-dom-webpack-server.node.development.js | 0 ...-dom-webpack-server.node.production.min.js | 0 ...bpack-server.node.unbundled.development.js | 0 ...ck-server.node.unbundled.production.min.js | 0 .../client.browser.js | 0 .../client.edge.js | 0 .../client.js | 0 .../client.node.js | 0 .../client.node.unbundled.js | 0 .../index.js | 0 .../node-register.js | 0 .../package.json | 8 +- .../plugin.js | 0 .../server.browser.js | 0 .../server.edge.js | 0 .../server.js | 0 .../server.node.js | 0 .../server.node.unbundled.js | 0 .../react-server-dom-webpack}/LICENSE | 0 ...-dom-webpack-client.browser.development.js | 0 ...m-webpack-client.browser.production.min.js | 0 ...t-server-dom-webpack-client.development.js | 889 ++++++++++++++++++ ...ver-dom-webpack-client.edge.development.js | 0 ...-dom-webpack-client.edge.production.min.js | 0 ...ver-dom-webpack-client.node.development.js | 0 ...-dom-webpack-client.node.production.min.js | 0 ...bpack-client.node.unbundled.development.js | 0 ...ck-client.node.unbundled.production.min.js | 0 ...erver-dom-webpack-client.production.min.js | 26 + .../react-server-dom-webpack-node-register.js | 0 .../cjs/react-server-dom-webpack-plugin.js | 0 ...-dom-webpack-server.browser.development.js | 0 ...m-webpack-server.browser.production.min.js | 0 ...ver-dom-webpack-server.edge.development.js | 0 ...-dom-webpack-server.edge.production.min.js | 0 ...ver-dom-webpack-server.node.development.js | 0 ...-dom-webpack-server.node.production.min.js | 0 ...bpack-server.node.unbundled.development.js | 0 ...ck-server.node.unbundled.production.min.js | 0 .../client.browser.js | 0 .../react-server-dom-webpack}/client.edge.js | 0 .../react-server-dom-webpack}/client.js | 0 .../react-server-dom-webpack}/client.node.js | 0 .../client.node.unbundled.js | 0 .../react-server-dom-webpack}/index.js | 0 .../node-register.js | 0 .../react-server-dom-webpack}/package.json | 8 +- .../react-server-dom-webpack}/plugin.js | 0 .../server.browser.js | 0 .../react-server-dom-webpack}/server.edge.js | 0 .../react-server-dom-webpack}/server.js | 0 .../react-server-dom-webpack}/server.node.js | 0 .../server.node.unbundled.js | 0 .../compiled/react}/LICENSE | 0 .../cjs/react-jsx-dev-runtime.development.js | 2 +- .../react-jsx-dev-runtime.production.min.js | 0 .../react-jsx-dev-runtime.profiling.min.js | 0 .../cjs/react-jsx-runtime.development.js | 2 +- .../cjs/react-jsx-runtime.production.min.js | 2 +- .../cjs/react-jsx-runtime.profiling.min.js | 2 +- .../compiled/react}/cjs/react.development.js | 2 +- .../react}/cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- .../compiled/react}/index.js | 0 .../compiled/react}/jsx-dev-runtime.js | 0 .../compiled/react}/jsx-runtime.js | 0 .../compiled/react}/package.json | 3 +- .../compiled/react}/react.shared-subset.js | 0 packages/next/src/lib/constants.ts | 10 +- .../create-server-components-renderer.tsx | 1 - .../next/src/server/app-render/entry-base.ts | 2 +- .../preloads.ts} | 6 + .../src/server/lib/router-utils/setup-dev.ts | 4 +- packages/next/src/server/require-hook.ts | 171 ++-- packages/next/taskfile.js | 187 ++-- packages/next/types/misc.d.ts | 17 + .../client-only-vendored/error.js | 4 - .../client-only-vendored/index.js | 0 .../client-only-vendored/package.json | 22 - .../scheduler-experimental-vendored/LICENSE | 21 - .../scheduler-unstable_mock.development.js | 711 -------------- .../scheduler-unstable_mock.production.min.js | 20 - ...cheduler-unstable_post_task.development.js | 213 ----- ...duler-unstable_post_task.production.min.js | 14 - .../cjs/scheduler.development.js | 639 ------------- .../cjs/scheduler.native.development.js | 552 ----------- .../cjs/scheduler.native.production.min.js | 19 - .../cjs/scheduler.production.min.js | 20 - .../scheduler-experimental-vendored/index.js | 7 - .../index.native.js | 7 - .../package.json | 7 - .../unstable_mock.js | 7 - .../unstable_post_task.js | 7 - .../node_modules/scheduler-vendored/LICENSE | 21 - .../scheduler-unstable_mock.development.js | 711 -------------- .../scheduler-unstable_mock.production.min.js | 20 - ...cheduler-unstable_post_task.development.js | 213 ----- ...duler-unstable_post_task.production.min.js | 14 - .../cjs/scheduler.development.js | 639 ------------- .../cjs/scheduler.native.development.js | 552 ----------- .../cjs/scheduler.native.production.min.js | 19 - .../cjs/scheduler.production.min.js | 20 - .../node_modules/scheduler-vendored/index.js | 7 - .../scheduler-vendored/index.native.js | 7 - .../scheduler-vendored/package.json | 7 - .../scheduler-vendored/unstable_mock.js | 7 - .../scheduler-vendored/unstable_post_task.js | 7 - .../server-only-vendored/empty.js | 0 .../server-only-vendored/index.js | 4 - .../server-only-vendored/package.json | 22 - pnpm-lock.yaml | 342 +++---- scripts/sync-react.js | 2 +- .../basic/modularize-imports.test.ts | 2 +- .../app/_components/junk-drawer/augment.ts | 3 - .../app/_components/junk-drawer/getValue.ts | 6 - .../app/_components/junk-drawer/thingOne.ts | 6 - .../app/_components/junk-drawer/thingTwo.ts | 6 - .../app/account/ClientShared.tsx | 13 - .../app-dir/chunk-loading/app/account/page.js | 20 - .../chunk-loading/app/feed/ClientShared.tsx | 14 - .../app-dir/chunk-loading/app/feed/page.js | 13 - test/e2e/app-dir/chunk-loading/app/layout.tsx | 21 - test/e2e/app-dir/chunk-loading/app/page.tsx | 14 - test/e2e/app-dir/chunk-loading/app/styles.css | 3 - .../components/DynamicShared.tsx | 15 - .../chunk-loading/components/LazyShared.tsx | 10 - .../chunk-loading/components/SuperShared.tsx | 537 ----------- .../chunk-loading/components/links.tsx | 20 - test/e2e/app-dir/chunk-loading/index.test.ts | 14 - test/e2e/app-dir/chunk-loading/next.config.js | 1 - .../app-dir/chunk-loading/pages/page/about.js | 23 - test/e2e/yarn-pnp/test/utils.ts | 1 - test/lib/create-next-install.js | 18 +- 244 files changed, 1732 insertions(+), 6623 deletions(-) delete mode 100644 packages/next/src/build/webpack/resolve-plugins/next-resolve-plugin.ts rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-legacy.browser.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-legacy.browser.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-legacy.node.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-legacy.node.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-rendering-stub.development.js (98%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server-rendering-stub.production.min.js (58%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.browser.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.browser.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.edge.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.edge.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.node.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-server.node.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.browser.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.browser.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.edge.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.edge.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.node.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-static.node.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-unstable_testing.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom-unstable_testing.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/cjs/react-dom.profiling.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/client.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/index.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/package.json (88%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/profiling.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/server-rendering-stub.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/server.browser.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/server.edge.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/server.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/server.node.js (100%) rename packages/next/{vendored/node_modules/react-dom-experimental-vendored => src/compiled/react-dom-experimental}/static.edge.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-legacy.browser.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-legacy.browser.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-legacy.node.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-legacy.node.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-rendering-stub.development.js (98%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server-rendering-stub.production.min.js (96%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.browser.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.browser.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.edge.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.edge.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.node.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom-server.node.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom.development.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom.production.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/cjs/react-dom.profiling.min.js (99%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/client.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/index.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/package.json (85%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/profiling.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/server-rendering-stub.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/server.browser.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/server.edge.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/server.js (100%) rename packages/next/{vendored/node_modules/react-dom-vendored => src/compiled/react-dom}/server.node.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-dev-runtime.development.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-dev-runtime.production.min.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-dev-runtime.profiling.min.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-runtime.development.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-runtime.production.min.js (68%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react-jsx-runtime.profiling.min.js (68%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react.development.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react.production.min.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react.shared-subset.development.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/cjs/react.shared-subset.production.min.js (99%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/index.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/jsx-dev-runtime.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/jsx-runtime.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react-experimental}/package.json (80%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react-experimental}/react.shared-subset.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.browser.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.browser.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.edge.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.edge.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.node.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.node.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.node.unbundled.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-node-register.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-plugin.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.browser.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.browser.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.edge.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.edge.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.node.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.node.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.node.unbundled.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/client.browser.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/client.edge.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/client.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/client.node.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/client.node.unbundled.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/index.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/node-register.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack-experimental}/package.json (86%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/plugin.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/server.browser.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/server.edge.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/server.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/server.node.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack-experimental}/server.node.unbundled.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.browser.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.browser.production.min.js (100%) create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.edge.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.edge.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.node.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.node.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.node.unbundled.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js (100%) create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-node-register.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-plugin.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.browser.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.browser.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.edge.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.edge.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.node.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.node.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.node.unbundled.development.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/client.browser.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/client.edge.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/client.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/client.node.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/client.node.unbundled.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/index.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/node-register.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-experimental-vendored => src/compiled/react-server-dom-webpack}/package.json (88%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/plugin.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/server.browser.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/server.edge.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/server.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/server.node.js (100%) rename packages/next/{vendored/node_modules/react-server-dom-webpack-vendored => src/compiled/react-server-dom-webpack}/server.node.unbundled.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/LICENSE (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-dev-runtime.development.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-dev-runtime.production.min.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-dev-runtime.profiling.min.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-runtime.development.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-runtime.production.min.js (70%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react-jsx-runtime.profiling.min.js (69%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react.development.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react.production.min.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react.shared-subset.development.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/cjs/react.shared-subset.production.min.js (99%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/index.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/jsx-dev-runtime.js (100%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/jsx-runtime.js (100%) rename packages/next/{vendored/node_modules/react-experimental-vendored => src/compiled/react}/package.json (77%) rename packages/next/{vendored/node_modules/react-vendored => src/compiled/react}/react.shared-subset.js (100%) rename packages/next/src/server/app-render/{preloads.serverlayer.ts => rsc/preloads.ts} (82%) delete mode 100644 packages/next/vendored/node_modules/client-only-vendored/error.js delete mode 100644 packages/next/vendored/node_modules/client-only-vendored/index.js delete mode 100644 packages/next/vendored/node_modules/client-only-vendored/package.json delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/LICENSE delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/index.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/index.native.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/package.json delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_mock.js delete mode 100644 packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_post_task.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/LICENSE delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.development.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.production.min.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/index.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/index.native.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/package.json delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/unstable_mock.js delete mode 100644 packages/next/vendored/node_modules/scheduler-vendored/unstable_post_task.js delete mode 100644 packages/next/vendored/node_modules/server-only-vendored/empty.js delete mode 100644 packages/next/vendored/node_modules/server-only-vendored/index.js delete mode 100644 packages/next/vendored/node_modules/server-only-vendored/package.json delete mode 100644 test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/augment.ts delete mode 100644 test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/getValue.ts delete mode 100644 test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingOne.ts delete mode 100644 test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingTwo.ts delete mode 100644 test/e2e/app-dir/chunk-loading/app/account/ClientShared.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/app/account/page.js delete mode 100644 test/e2e/app-dir/chunk-loading/app/feed/ClientShared.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/app/feed/page.js delete mode 100644 test/e2e/app-dir/chunk-loading/app/layout.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/app/page.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/app/styles.css delete mode 100644 test/e2e/app-dir/chunk-loading/components/DynamicShared.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/components/LazyShared.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/components/SuperShared.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/components/links.tsx delete mode 100644 test/e2e/app-dir/chunk-loading/index.test.ts delete mode 100644 test/e2e/app-dir/chunk-loading/next.config.js delete mode 100644 test/e2e/app-dir/chunk-loading/pages/page/about.js diff --git a/.eslintignore b/.eslintignore index d0ca8899accd4..8284a8fb19a3c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -16,7 +16,6 @@ examples/with-tigris/db/models/todoItems.ts packages/next/src/bundles/webpack/packages/*.runtime.js packages/next/src/bundles/webpack/packages/lazy-compilation-*.js packages/next/src/compiled/**/* -packages/next/vendored/**/* packages/react-refresh-utils/**/*.js packages/react-dev-overlay/lib/** **/__tmp__/** diff --git a/.gitignore b/.gitignore index 5250ec020de39..edc995f04a90f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ packages/next/wasm/@next # dependencies node_modules -!packages/next/vendored/node_modules package-lock.json yarn.lock !/yarn.lock diff --git a/.prettierignore_staged b/.prettierignore_staged index d4a0b146166c1..295ca7337c512 100644 --- a/.prettierignore_staged +++ b/.prettierignore_staged @@ -3,7 +3,6 @@ **/dist/** packages/next-swc/crates/** packages/next/src/compiled/**/* -packages/next/vendored/**/* packages/next/bundles/webpack/packages/*.runtime.js lerna.json packages/next-codemod/transforms/__testfixtures__/**/* diff --git a/.vscode/settings.json b/.vscode/settings.json index a9bc2ccbb691f..2de2ef61939c7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,8 +23,9 @@ "debug.javascript.unmapMissingSources": true, "files.exclude": { - "*[!test]**/node_modules": true, - "**/node_modules": false + "**/node_modules": false, + "node_modules": true, + "*[!test]**/node_modules": true }, // Ensure enough terminal history is preserved when running tests. diff --git a/package.json b/package.json index b296027eebb12..905dbf6c4fd43 100644 --- a/package.json +++ b/package.json @@ -188,14 +188,14 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-546fe4681-20230713", + "react-builtin": "npm:react@18.3.0-canary-9377e1010-20230712", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-546fe4681-20230713", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-546fe4681-20230713", - "react-experimental-builtin": "npm:react@0.0.0-experimental-546fe4681-20230713", - "react-server-dom-webpack": "18.3.0-canary-546fe4681-20230713", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-546fe4681-20230713", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-9377e1010-20230712", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-9377e1010-20230712", + "react-experimental-builtin": "npm:react@0.0.0-experimental-9377e1010-20230712", + "react-server-dom-webpack": "18.3.0-canary-9377e1010-20230712", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-9377e1010-20230712", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -205,8 +205,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.1", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-546fe4681-20230713", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-546fe4681-20230713", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-9377e1010-20230712", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-9377e1010-20230712", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next-swc/crates/next-core/js/src/entry/app/hydrate.tsx b/packages/next-swc/crates/next-core/js/src/entry/app/hydrate.tsx index 263a498e8f91d..d713ab7e31570 100644 --- a/packages/next-swc/crates/next-core/js/src/entry/app/hydrate.tsx +++ b/packages/next-swc/crates/next-core/js/src/entry/app/hydrate.tsx @@ -2,7 +2,7 @@ import ReactDOMClient from 'react-dom/client' import React, { use } from 'react' import type { ReactElement } from 'react' import { version } from 'next/package.json' -import { createFromReadableStream } from 'react-server-dom-webpack/client' +import { createFromReadableStream } from 'next/dist/compiled/react-server-dom-webpack/client' import { callServer } from 'next/dist/client/app-call-server' import { linkGc } from 'next/dist/client/app-link-gc' diff --git a/packages/next-swc/crates/next-core/js/types/compiled-next.d.ts b/packages/next-swc/crates/next-core/js/types/compiled-next.d.ts index 1e18aaa8ad607..bc9f894f61ea4 100644 --- a/packages/next-swc/crates/next-core/js/types/compiled-next.d.ts +++ b/packages/next-swc/crates/next-core/js/types/compiled-next.d.ts @@ -1 +1 @@ -declare module 'react-server-dom-webpack/client' +declare module 'next/dist/compiled/react-server-dom-webpack/client' diff --git a/packages/next-swc/crates/next-core/js/types/modules.d.ts b/packages/next-swc/crates/next-core/js/types/modules.d.ts index 2d7c84fc86156..d398527ab3bdc 100644 --- a/packages/next-swc/crates/next-core/js/types/modules.d.ts +++ b/packages/next-swc/crates/next-core/js/types/modules.d.ts @@ -1,3 +1,4 @@ declare module 'next/dist/client/components/static-generation-async-storage.js' declare module 'next/dist/client/components/request-async-storage.js' declare module 'next/dist/client/components/hooks-server-context.js' +declare module 'next/dist/compiled/react-server-dom-webpack/server.edge' diff --git a/packages/next-swc/crates/next-core/src/next_import_map.rs b/packages/next-swc/crates/next-core/src/next_import_map.rs index f5b8988f63832..e099e880944ba 100644 --- a/packages/next-swc/crates/next-core/src/next_import_map.rs +++ b/packages/next-swc/crates/next-core/src/next_import_map.rs @@ -58,8 +58,6 @@ pub async fn get_next_client_import_map( ) .await?; - let vendor_dir = get_next_package(project_path).join("vendored".into()); - match ty.into_value() { ClientContextType::Pages { pages_dir } => { insert_alias_to_alternatives( @@ -87,35 +85,31 @@ pub async fn get_next_client_import_map( ], ); } - ClientContextType::App { app_dir: _ } => { + ClientContextType::App { app_dir } => { + import_map.insert_exact_alias( + "react", + request_to_import_mapping(app_dir, "next/dist/compiled/react"), + ); + import_map.insert_wildcard_alias( + "react/", + request_to_import_mapping(app_dir, "next/dist/compiled/react/*"), + ); + import_map.insert_exact_alias( + "react-dom", + request_to_import_mapping(app_dir, "next/dist/compiled/react-dom"), + ); + import_map.insert_wildcard_alias( + "react-dom/", + request_to_import_mapping(app_dir, "next/dist/compiled/react-dom/*"), + ); + import_map.insert_wildcard_alias( + "react-server-dom-webpack/", + request_to_import_mapping(app_dir, "next/dist/compiled/react-server-dom-webpack/*"), + ); import_map.insert_exact_alias( "next/dynamic", request_to_import_mapping(project_path, "next/dist/shared/lib/app-dynamic"), ); - - for (package_name, vendored_name) in [ - ("react", "react-vendored"), - ("react-dom", "react-dom-vendored"), - ( - "react-server-dom-webpack", - "react-server-dom-webpack-vendored", - ), - ("scheduler", "scheduler-vendored"), - ("client-only", "client-only-vendored"), - ("server-only", "server-only-vendored"), - ] { - import_map.insert_exact_alias( - package_name, - request_to_import_mapping(vendor_dir, vendored_name), - ); - import_map.insert_wildcard_alias( - format!("{}{}", package_name, "/"), - request_to_import_mapping( - vendor_dir, - format!("{}{}", vendored_name, "/*").as_str(), - ), - ); - } } ClientContextType::Fallback => {} ClientContextType::Other => {} @@ -217,7 +211,7 @@ pub async fn get_next_server_import_map( let ty = ty.into_value(); - insert_next_server_special_aliases(project_path, &mut import_map, ty, mode).await?; + insert_next_server_special_aliases(&mut import_map, ty, mode).await?; let external = ImportMapping::External(None).cell(); match ty { @@ -289,7 +283,7 @@ pub async fn get_next_edge_import_map( let ty = ty.into_value(); - insert_next_server_special_aliases(project_path, &mut import_map, ty, mode).await?; + insert_next_server_special_aliases(&mut import_map, ty, mode).await?; match ty { ServerContextType::Pages { .. } | ServerContextType::PagesData { .. } => {} @@ -363,12 +357,10 @@ static NEXT_ALIASES: [(&str, &str); 23] = [ ]; pub async fn insert_next_server_special_aliases( - project_path: Vc, import_map: &mut ImportMap, ty: ServerContextType, mode: NextMode, ) -> Result<()> { - let vendor_dir = get_next_package(project_path).join("vendored".into()); match (mode, ty) { (_, ServerContextType::Pages { pages_dir }) => { import_map.insert_exact_alias( @@ -417,30 +409,29 @@ pub async fn insert_next_server_special_aliases( // @opentelemetry/api request_to_import_mapping(app_dir, "next/dist/compiled/@opentelemetry/api"), ); - - for (package_name, vendored_name) in [ - ("react", "react-vendored"), - ("react-dom", "react-dom-vendored"), - ( - "react-server-dom-webpack", - "react-server-dom-webpack-vendored", + import_map.insert_exact_alias( + "react", + request_to_import_mapping(app_dir, "next/dist/compiled/react"), + ); + import_map.insert_wildcard_alias( + "react/", + request_to_import_mapping(app_dir, "next/dist/compiled/react/*"), + ); + import_map.insert_exact_alias( + "react-dom", + request_to_import_mapping( + app_dir, + "next/dist/compiled/react-dom/server-rendering-stub.js", ), - ("scheduler", "scheduler-vendored"), - ("client-only", "client-only-vendored"), - ("server-only", "server-only-vendored"), - ] { - import_map.insert_exact_alias( - package_name, - request_to_import_mapping(vendor_dir, vendored_name), - ); - import_map.insert_wildcard_alias( - format!("{}{}", package_name, "/"), - request_to_import_mapping( - vendor_dir, - format!("{}{}", vendored_name, "/*").as_str(), - ), - ); - } + ); + import_map.insert_wildcard_alias( + "react-dom/", + request_to_import_mapping(app_dir, "next/dist/compiled/react-dom/*"), + ); + import_map.insert_wildcard_alias( + "react-server-dom-webpack/", + request_to_import_mapping(app_dir, "next/dist/compiled/react-server-dom-webpack/*"), + ); } // NOTE(alexkirsz) This logic maps loosely to // `next.js/packages/next/src/build/webpack-config.ts`, where: @@ -462,28 +453,28 @@ pub async fn insert_next_server_special_aliases( // @opentelemetry/api request_to_import_mapping(app_dir, "next/dist/compiled/@opentelemetry/api"), ); - - for (package_name, vendored_name) in [ - ("react", "react-vendored"), - ("react-dom", "react-dom-vendored"), + import_map.insert_exact_alias( + "react", + request_to_import_mapping(app_dir, "next/dist/compiled/react/react.shared-subset"), + ); + import_map.insert_exact_alias( + "react-dom", + request_to_import_mapping( + app_dir, + "next/dist/compiled/react-dom/server-rendering-stub", + ), + ); + for (wildcard_alias, request) in [ + ("react/", "next/dist/compiled/react/*"), + ("react-dom/", "next/dist/compiled/react-dom/*"), ( - "react-server-dom-webpack", - "react-server-dom-webpack-vendored", + "react-server-dom-webpack/", + "next/dist/compiled/react-server-dom-webpack/*", ), - ("scheduler", "scheduler-vendored"), - ("client-only", "client-only-vendored"), - ("server-only", "server-only-vendored"), ] { - import_map.insert_exact_alias( - package_name, - request_to_import_mapping(vendor_dir, vendored_name), - ); import_map.insert_wildcard_alias( - format!("{}{}", package_name, "/"), - request_to_import_mapping( - vendor_dir, - format!("{}{}", vendored_name, "/*").as_str(), - ), + wildcard_alias, + request_to_import_mapping(app_dir, request), ); } } @@ -491,25 +482,31 @@ pub async fn insert_next_server_special_aliases( // // * always uses externals, to ensure we're using the same React instance as the Next.js // runtime + // * maps react-dom -> react-dom/server-rendering-stub + // * passes through react and (react|react-dom|react-server-dom-webpack)/(.*) to + // next/dist/compiled/react and next/dist/compiled/$1/$2 resp. (NextMode::Build | NextMode::Development, ServerContextType::AppSSR { .. }) => { - for package_name in [ + import_map.insert_exact_alias( "react", + external_request_to_import_mapping("next/dist/compiled/react"), + ); + import_map.insert_exact_alias( "react-dom", - "react-server-dom-webpack", - "scheduler", - "client-only", - "server-only", + external_request_to_import_mapping( + "next/dist/compiled/react-dom/server-rendering-stub", + ), + ); + + for (wildcard_alias, request) in [ + ("react/", "next/dist/compiled/react/*"), + ("react-dom/", "next/dist/compiled/react-dom/*"), + ( + "react-server-dom-webpack/", + "next/dist/compiled/react-server-dom-webpack/*", + ), ] { - import_map.insert_exact_alias( - package_name, - external_request_to_import_mapping(package_name), - ); - import_map.insert_wildcard_alias( - format!("{}{}", package_name, "/"), - external_request_to_import_mapping( - format!("{}{}", package_name, "/*").as_str(), - ), - ); + let import_mapping = external_request_to_import_mapping(request); + import_map.insert_wildcard_alias(wildcard_alias, import_mapping); } } (_, ServerContextType::Middleware) => {} diff --git a/packages/next/package.json b/packages/next/package.json index 6c1e28340d6ba..591cca52c488e 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -10,8 +10,6 @@ "types": "index.d.ts", "files": [ "dist", - "vendored", - "vendored/node_modules", "app.js", "app.d.ts", "babel.js", @@ -108,18 +106,6 @@ "optional": true } }, - "optionalDependencies": { - "client-only-vendored": "file:vendored/node_modules/client-only-vendored", - "react-dom-experimental-vendored": "file:vendored/node_modules/react-dom-experimental-vendored", - "react-dom-vendored": "file:vendored/node_modules/react-dom-vendored", - "react-experimental-vendored": "file:vendored/node_modules/react-experimental-vendored", - "react-server-dom-webpack-experimental-vendored": "file:vendored/node_modules/react-server-dom-webpack-experimental-vendored", - "react-server-dom-webpack-vendored": "file:vendored/node_modules/react-server-dom-webpack-vendored", - "react-vendored": "file:vendored/node_modules/react-vendored", - "scheduler-experimental-vendored": "file:vendored/node_modules/scheduler-experimental-vendored", - "scheduler-vendored": "file:vendored/node_modules/scheduler-vendored", - "server-only-vendored": "file:vendored/node_modules/server-only-vendored" - }, "devDependencies": { "@ampproject/toolbox-optimizer": "2.8.3", "@babel/code-frame": "7.12.11", @@ -197,7 +183,7 @@ "@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5", "@types/ws": "8.2.0", "@vercel/ncc": "0.34.0", - "@vercel/nft": "0.23.0", + "@vercel/nft": "0.22.6", "acorn": "8.5.0", "ajv": "8.11.0", "amphtml-validator": "1.0.35", diff --git a/packages/next/src/build/index.ts b/packages/next/src/build/index.ts index 61c35e056e89c..cd165993d43ac 100644 --- a/packages/next/src/build/index.ts +++ b/packages/next/src/build/index.ts @@ -141,7 +141,11 @@ import { createValidFileMatcher } from '../server/lib/find-page-file' import { startTypeChecking } from './type-check' import { generateInterceptionRoutesRewrites } from '../lib/generate-interception-routes-rewrites' import { buildDataRoute } from '../server/lib/router-utils/build-data-route' -import { globalOverrides } from '../server/require-hook' +import { + baseOverrides, + defaultOverrides, + experimentalOverrides, +} from '../server/require-hook' import { initialize } from '../server/lib/incremental-cache-server' import { nodeFs } from '../server/lib/node-fs-methods' @@ -1840,11 +1844,6 @@ export default async function build( if (!isGenerate && config.outputFileTracing) { let nodeFileTrace: any - let nftResolve: any - let resolveHook: any - const packageBase = require.resolve('next/package.json') - const vendorDir = path.join(packageBase, '../vendored/node_modules') - if (config.experimental.turbotrace) { if (!binding?.isWasm) { nodeFileTrace = binding.turbo.startTrace @@ -1854,70 +1853,6 @@ export default async function build( if (!nodeFileTrace) { nodeFileTrace = require('next/dist/compiled/@vercel/nft').nodeFileTrace - nftResolve = require('next/dist/compiled/@vercel/nft').resolve - resolveHook = async ( - id: string, - parent: string, - job: any, - isCjs: boolean - ) => { - if (id[0] !== '.' && id[0] !== '/' && id[0] !== '\\') { - // We have a bare specifier and might need to resolve this to a vendored package - const slash = id.indexOf('/') - const requestBase = slash === -1 ? id : id.slice(0, slash) - switch (requestBase) { - case 'react': - case 'react-dom': - case 'react-server-dom-webpack': - case 'scheduler': { - let vendoredPath: string - if (id === 'react-dom') { - vendoredPath = '/server-rendering-stub' - } else { - vendoredPath = slash === -1 ? '' : id.slice(slash) - } - - const nodeModulesPackage = nftResolve(id, parent, job, isCjs) - const vendoredPackage = nftResolve( - requestBase + '-vendored' + vendoredPath, - vendorDir, - job, - isCjs - ) - const vendoredExperimentalPackage = nftResolve( - requestBase + '-experimental-vendored' + vendoredPath, - vendorDir, - job, - isCjs - ) - - const asyncResults = Promise.all([ - nodeModulesPackage, - vendoredPackage, - vendoredExperimentalPackage, - ]) - - return asyncResults - } - case 'server-only': - case 'client-only': { - const asyncResults = Promise.all([ - nftResolve(id, parent, job, isCjs), - nftResolve( - requestBase + '-vendored' + id.slice(requestBase.length), - vendorDir, - job, - isCjs - ), - ]) - return asyncResults - } - default: - } - } - - return nftResolve(id, parent, job, isCjs) - } } const includeExcludeSpan = nextBuildSpan.traceChild( @@ -2100,9 +2035,15 @@ export default async function build( ) const sharedEntriesSet = [ + ...Object.values(baseOverrides).map((override) => + require.resolve(override) + ), + ...Object.values(experimentalOverrides).map((override) => + require.resolve(override) + ), ...(config.experimental.turbotrace ? [] - : Object.values(globalOverrides).map((value) => + : Object.values(defaultOverrides).map((value) => require.resolve(value) )), ] @@ -2219,7 +2160,6 @@ export default async function build( processCwd: config.experimental.turbotrace?.processCwd, logDetail: config.experimental.turbotrace?.logDetail, showAll: config.experimental.turbotrace?.logAll, - resolve: resolveHook, }, turboTasksForTrace ) @@ -2244,7 +2184,6 @@ export default async function build( base: root, processCwd: dir, ignore: ignoreFn, - resolve: resolveHook, }) const [vanillaFiles, minimalFiles]: NodeFileTraceResult[] = diff --git a/packages/next/src/build/webpack-config.ts b/packages/next/src/build/webpack-config.ts index 032df69f340de..a0d3868cc7283 100644 --- a/packages/next/src/build/webpack-config.ts +++ b/packages/next/src/build/webpack-config.ts @@ -66,10 +66,6 @@ import { loadBindings } from './swc' import { AppBuildManifestPlugin } from './webpack/plugins/app-build-manifest-plugin' import { SubresourceIntegrityPlugin } from './webpack/plugins/subresource-integrity-plugin' import { NextFontManifestPlugin } from './webpack/plugins/next-font-manifest-plugin' -import { - NextResolvePlugin, - NextAppResolvePlugin, -} from './webpack/resolve-plugins/next-resolve-plugin' import { getSupportedBrowsers } from './utils' type ExcludesFalse = (x: T | false) => x is T @@ -87,9 +83,6 @@ const NEXT_PROJECT_ROOT_DIST_CLIENT = path.join( 'client' ) -const isAppRouterLayer = (layer: string | null) => - Boolean(layer && WEBPACK_LAYERS.GROUP.app.includes(layer)) - const isWebpackServerLayer = (layer: string | null) => Boolean(layer && WEBPACK_LAYERS.GROUP.server.includes(layer)) @@ -106,10 +99,6 @@ const babelIncludeRegexes: RegExp[] = [ const reactPackagesRegex = /^(react|react-dom|react-server-dom-webpack)($|\/)/ -const ssrLayerRegex = - /next[\\/]dist[\\/](esm[\\/])?(client|server)[\\/].*?(?:\.|[\\/])clientlayer(?:$|(?:\.(tsx|ts|js|cjs|mjs|jsx))|\\|\/)/ -const serverComponentsLayerRegex = - /next[\\/]dist[\\/](esm[\\/])?(client|server)[\\/].*?(?:\.|[\\/])serverlayer(?:$|(?:\.(tsx|ts|js|cjs|mjs|jsx))|\\|\/)/ const asyncStoragesRegex = /next[\\/]dist[\\/](esm[\\/])?client[\\/]components[\\/](static-generation-async-storage|action-async-storage|request-async-storage)/ @@ -423,6 +412,75 @@ export function getDefineEnv({ } } +function getReactProfilingInProduction() { + return { + 'react-dom$': 'react-dom/profiling', + 'scheduler/tracing': 'scheduler/tracing-profiling', + } +} + +function createRSCAliases( + bundledReactChannel: string, + opts: { + reactProductionProfiling: boolean + reactSharedSubset: boolean + reactDomServerRenderingStub: boolean + reactServerCondition?: boolean + } +) { + const alias: Record = { + react$: `next/dist/compiled/react${bundledReactChannel}`, + 'react-dom$': `next/dist/compiled/react-dom${bundledReactChannel}`, + 'react/jsx-runtime$': `next/dist/compiled/react${bundledReactChannel}/jsx-runtime`, + 'react/jsx-dev-runtime$': `next/dist/compiled/react${bundledReactChannel}/jsx-dev-runtime`, + 'react-dom/client$': `next/dist/compiled/react-dom${bundledReactChannel}/client`, + 'react-dom/server$': `next/dist/compiled/react-dom${bundledReactChannel}/server`, + 'react-dom/server.edge$': `next/dist/compiled/react-dom${bundledReactChannel}/server.edge`, + 'react-dom/server.browser$': `next/dist/compiled/react-dom${bundledReactChannel}/server.browser`, + 'react-server-dom-webpack/client$': `next/dist/compiled/react-server-dom-webpack${bundledReactChannel}/client`, + 'react-server-dom-webpack/client.edge$': `next/dist/compiled/react-server-dom-webpack${bundledReactChannel}/client.edge`, + 'react-server-dom-webpack/server.edge$': `next/dist/compiled/react-server-dom-webpack${bundledReactChannel}/server.edge`, + 'react-server-dom-webpack/server.node$': `next/dist/compiled/react-server-dom-webpack${bundledReactChannel}/server.node`, + } + + if (opts.reactSharedSubset) { + alias[ + 'react$' + ] = `next/dist/compiled/react${bundledReactChannel}/react.shared-subset` + } + // Use server rendering stub for RSC + // x-ref: https://github.com/facebook/react/pull/25436 + if (opts.reactDomServerRenderingStub) { + alias[ + 'react-dom$' + ] = `next/dist/compiled/react-dom${bundledReactChannel}/server-rendering-stub` + } + + // Alias `server-only` and `client-only` modules to their server/client only, vendored versions. + // These aliases are necessary if the user doesn't have those two packages installed manually. + if (typeof opts.reactServerCondition !== 'undefined') { + if (opts.reactServerCondition) { + // Alias to the `react-server` exports. + alias['server-only$'] = 'next/dist/compiled/server-only/empty' + alias['client-only$'] = 'next/dist/compiled/client-only/error' + } else { + alias['server-only$'] = 'next/dist/compiled/server-only/index' + alias['client-only$'] = 'next/dist/compiled/client-only/index' + } + } + + if (opts.reactProductionProfiling) { + alias[ + 'react-dom$' + ] = `next/dist/compiled/react-dom${bundledReactChannel}/profiling` + alias[ + 'scheduler/tracing' + ] = `next/dist/compiled/scheduler${bundledReactChannel}/tracing-profiling` + } + + return alias +} + const devtoolRevertWarning = execOnce( (devtool: webpack.Configuration['devtool']) => { console.warn( @@ -1103,6 +1161,7 @@ export default async function getBaseWebpackConfig( [ROOT_DIR_ALIAS]: dir, [DOT_NEXT_ALIAS]: distDir, ...(isClient || isEdgeServer ? getOptimizedAliases() : {}), + ...(reactProductionProfiling ? getReactProfilingInProduction() : {}), [RSC_ACTION_VALIDATE_ALIAS]: 'next/dist/build/webpack/loaders/next-flight-loader/action-validate', @@ -1140,12 +1199,7 @@ export default async function getBaseWebpackConfig( ...(isEdgeServer && { conditionNames: edgeConditionNames, }), - plugins: [ - new NextResolvePlugin({ - serverRuntime: !isClient, - profilingReact: reactProductionProfiling, - }), - ], + plugins: [], } const terserOptions: any = { @@ -1280,18 +1334,20 @@ export default async function getBaseWebpackConfig( request === 'react/jsx-runtime' ) { if (isAppLayer) { - return `commonjs ${request}` + return `commonjs next/dist/compiled/${request.replace( + 'react', + 'react' + bundledReactChannel + )}` } return } - if (reactPackagesRegex.test(request)) { - if (layer === WEBPACK_LAYERS.reactServerComponents) { - // We bundle all react packages in RSC + // Special internal modules that must be bundled for Server Components. + if (layer === WEBPACK_LAYERS.reactServerComponents) { + // React needs to be bundled for Server Components so the special + // `react-server` export condition can be used. + if (reactPackagesRegex.test(request)) { return - } else { - // we external all react packages in SSR - return `commonjs ${request}` } } @@ -1305,6 +1361,24 @@ export default async function getBaseWebpackConfig( } if (reactPackagesRegex.test(request)) { + // override react-dom to server-rendering-stub for server + if ( + request === 'react-dom' && + (layer === WEBPACK_LAYERS.serverSideRendering || + layer === WEBPACK_LAYERS.reactServerComponents || + layer === WEBPACK_LAYERS.actionBrowser) + ) { + request = `next/dist/compiled/react-dom${bundledReactChannel}/server-rendering-stub` + } else if (isAppLayer) { + request = + 'next/dist/compiled/' + + request.replace( + /^(react-server-dom-webpack|react-dom|react)/, + (name) => { + return name + bundledReactChannel + } + ) + } return `commonjs ${request}` } @@ -1876,69 +1950,52 @@ export default async function getBaseWebpackConfig( rules: [ ...(hasAppDir ? [ - // First we instantiate our NextAppResolverPlugin if the request has any layer information. This - // works because App Router entrypoints begin with a layer and Page Router entrypoints do not { - issuerLayer: isAppRouterLayer, - resolve: { - plugins: [ - '...', - new NextAppResolvePlugin({ - experimentalReact: useServerActions, - serverRuntime: !isClient, - }), - ], - }, + // Make sure that AsyncLocalStorage module instance is shared between server and client + // layers. + layer: WEBPACK_LAYERS.shared, + test: asyncStoragesRegex, }, - // Next we set layers when crossing boundaries - ...(isEdgeServer - ? [ - // The Edge bundle includes the server in its entrypoint, so it has to - // be in the SSR layer — here we convert the actual page request to - // the RSC layer via a webpack rule. - { - resourceQuery: new RegExp( - WEBPACK_RESOURCE_QUERIES.edgeRSCEntry - ), - layer: WEBPACK_LAYERS.reactServerComponents, - resolve: { - conditionNames: reactServerCondition, - }, - }, - ] - : []), + // Convert metadata routes to separate layer { resourceQuery: new RegExp( WEBPACK_RESOURCE_QUERIES.metadataRoute ), layer: WEBPACK_LAYERS.appMetadataRoute, - resolve: { - conditionNames: reactServerCondition, - }, }, { - include: [ - ssrLayerRegex, - // TODO refactor the client layer regex to work for this path and then rename the files to module.clientlayer - /next[\\/]dist[\\/](esm[\\/])?server[\\/]future[\\/]route-modules[\\/]app-page[\\/]module/, - ], + // Ensure that the app page module is in the client layers, this + // enables React to work correctly for RSC. layer: WEBPACK_LAYERS.serverSideRendering, + test: /next[\\/]dist[\\/](esm[\\/])?server[\\/]future[\\/]route-modules[\\/]app-page[\\/]module/, }, { - include: serverComponentsLayerRegex, - layer: WEBPACK_LAYERS.reactServerComponents, - resolve: { - conditionNames: reactServerCondition, + // All app dir layers need to use this configured resolution logic + issuerLayer: { + or: [ + WEBPACK_LAYERS.reactServerComponents, + WEBPACK_LAYERS.serverSideRendering, + WEBPACK_LAYERS.appPagesBrowser, + WEBPACK_LAYERS.actionBrowser, + WEBPACK_LAYERS.shared, + ], }, - }, - { - include: asyncStoragesRegex, - layer: WEBPACK_LAYERS.shared, - }, - { - issuerLayer: isWebpackServerLayer, resolve: { - conditionNames: reactServerCondition, + alias: { + // Alias next/head component to noop for RSC + [require.resolve('next/head')]: require.resolve( + 'next/dist/client/components/noop-head' + ), + // Alias next/dynamic + [require.resolve('next/dynamic')]: require.resolve( + 'next/dist/shared/lib/app-dynamic' + ), + ...createRSCAliases(bundledReactChannel, { + reactSharedSubset: false, + reactDomServerRenderingStub: false, + reactProductionProfiling, + }), + }, }, }, ] @@ -1946,7 +2003,9 @@ export default async function getBaseWebpackConfig( ...(hasAppDir && !isClient ? [ { - issuerLayer: isWebpackServerLayer, + issuerLayer: { + or: [isWebpackServerLayer], + }, test: { // Resolve it if it is a source code file, and it has NOT been // opted out of bundling. @@ -1957,6 +2016,19 @@ export default async function getBaseWebpackConfig( }, ], }, + resolve: { + conditionNames: reactServerCondition, + // If missing the alias override here, the default alias will be used which aliases + // react to the direct file path, not the package name. In that case the condition + // will be ignored completely. + alias: createRSCAliases(bundledReactChannel, { + reactSharedSubset: true, + reactDomServerRenderingStub: true, + reactServerCondition: true, + // No server components profiling + reactProductionProfiling, + }), + }, use: { loader: 'next-flight-loader', }, @@ -1975,6 +2047,80 @@ export default async function getBaseWebpackConfig( } as any, ] : []), + ...(hasAppDir && isEdgeServer + ? [ + // The Edge bundle includes the server in its entrypoint, so it has to + // be in the SSR layer — here we convert the actual page request to + // the RSC layer via a webpack rule. + { + resourceQuery: new RegExp( + WEBPACK_RESOURCE_QUERIES.edgeSSREntry + ), + layer: WEBPACK_LAYERS.reactServerComponents, + }, + ] + : []), + ...(hasServerComponents + ? [ + { + // Alias react-dom for ReactDOM.preload usage. + // Alias react for switching between default set and share subset. + oneOf: [ + { + exclude: [asyncStoragesRegex], + issuerLayer: { + or: [isWebpackServerLayer], + }, + test: { + // Resolve it if it is a source code file, and it has NOT been + // opted out of bundling. + and: [ + codeCondition.test, + { + not: [optOutBundlingPackageRegex], + }, + ], + }, + resolve: { + // It needs `conditionNames` here to require the proper asset, + // when react is acting as dependency of compiled/react-dom. + alias: createRSCAliases(bundledReactChannel, { + reactSharedSubset: true, + reactDomServerRenderingStub: true, + reactServerCondition: true, + reactProductionProfiling, + }), + }, + }, + { + test: codeCondition.test, + issuerLayer: WEBPACK_LAYERS.serverSideRendering, + resolve: { + alias: createRSCAliases(bundledReactChannel, { + reactSharedSubset: false, + reactDomServerRenderingStub: true, + reactServerCondition: false, + reactProductionProfiling, + }), + }, + }, + ], + }, + { + test: codeCondition.test, + issuerLayer: WEBPACK_LAYERS.appPagesBrowser, + resolve: { + alias: createRSCAliases(bundledReactChannel, { + // Only alias server rendering stub in client SSR layer. + reactSharedSubset: false, + reactDomServerRenderingStub: false, + reactServerCondition: false, + reactProductionProfiling, + }), + }, + }, + ] + : []), { oneOf: [ { @@ -2004,7 +2150,7 @@ export default async function getBaseWebpackConfig( { test: codeCondition.test, resourceQuery: new RegExp( - WEBPACK_RESOURCE_QUERIES.edgeRSCEntry + WEBPACK_RESOURCE_QUERIES.edgeSSREntry ), use: swcLoaderForServerLayer, }, @@ -2176,7 +2322,7 @@ export default async function getBaseWebpackConfig( ] : []), { - test: /(node_modules|next[/\\]vendored[/\\]node_modules)[/\\]client-only(-vendored)?[/\\]error.js/, + test: /(node_modules|next[/\\]dist[/\\]compiled)[/\\]client-only[/\\]error.js/, loader: 'next-invalid-import-error-loader', issuerLayer: { or: [isWebpackServerLayer], @@ -2187,7 +2333,7 @@ export default async function getBaseWebpackConfig( }, }, { - test: /(node_modules|next[/\\]vendored[/\\]node_modules)[/\\]server-only(-vendored)?[/\\]index.js/, + test: /(node_modules|next[/\\]dist[/\\]compiled)[/\\]server-only[/\\]index.js/, loader: 'next-invalid-import-error-loader', issuerLayer: WEBPACK_LAYERS.serverSideRendering, options: { @@ -2251,7 +2397,6 @@ export default async function getBaseWebpackConfig( appDirEnabled: hasAppDir, turbotrace: config.experimental.turbotrace, traceIgnores: config.experimental.outputFileTracingIgnores || [], - experimentalReact: useServerActions, } ), // Moment.js is an extremely popular library that bundles large locale files diff --git a/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts b/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts index 8a0c2b89b5c58..5d2ae74df14b0 100644 --- a/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts +++ b/packages/next/src/build/webpack/loaders/next-edge-app-route-loader/index.ts @@ -50,7 +50,7 @@ const EdgeAppRouteLoader: webpack.LoaderDefinitionFunction = const pageModPath = `${appDirLoader}${stringifiedPagePath.substring( 1, stringifiedPagePath.length - 1 - )}${isAppDir ? `?${WEBPACK_RESOURCE_QUERIES.edgeRSCEntry}` : ''}` + )}${isAppDir ? `?${WEBPACK_RESOURCE_QUERIES.edgeSSREntry}` : ''}` const transformed = ` import 'next/dist/esm/server/web/globals' diff --git a/packages/next/src/build/webpack/plugins/next-trace-entrypoints-plugin.ts b/packages/next/src/build/webpack/plugins/next-trace-entrypoints-plugin.ts index 8732319ddb618..2be64402d3205 100644 --- a/packages/next/src/build/webpack/plugins/next-trace-entrypoints-plugin.ts +++ b/packages/next/src/build/webpack/plugins/next-trace-entrypoints-plugin.ts @@ -4,9 +4,7 @@ import { spans } from './profiling-plugin' import isError from '../../../lib/is-error' import { nodeFileTrace, - resolve as nftResolve, NodeFileTraceReasons, - NodeFileTraceOptions, } from 'next/dist/compiled/@vercel/nft' import { CLIENT_REFERENCE_MANIFEST, @@ -104,17 +102,6 @@ function getFilesMapFromReasons( return parentFilesMap } -async function traceChunks( - chunksToTrace: Set, - config: NodeFileTraceOptions -): Promise>> { - const result = await nodeFileTrace([...chunksToTrace], config) - const reasons = result.reasons - const fileList = result.fileList - result.esmFileList.forEach((esmFile) => fileList.add(esmFile)) - return getFilesMapFromReasons(fileList, reasons) -} - export interface TurbotraceAction { action: 'print' | 'annotate' input: string[] @@ -154,7 +141,6 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { private esmExternals?: NextConfigComplete['experimental']['esmExternals'] private turbotrace?: NextConfigComplete['experimental']['turbotrace'] private chunksToTrace: string[] = [] - private experimentalReact: boolean constructor({ rootDir, @@ -165,7 +151,6 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { esmExternals, outputFileTracingRoot, turbotrace, - experimentalReact, }: { rootDir: string appDir: string | undefined @@ -175,7 +160,6 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { outputFileTracingRoot?: string esmExternals?: NextConfigComplete['experimental']['esmExternals'] turbotrace?: NextConfigComplete['experimental']['turbotrace'] - experimentalReact?: boolean }) { this.rootDir = rootDir this.appDir = appDir @@ -186,7 +170,6 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { this.traceIgnores = traceIgnores || [] this.tracingRoot = outputFileTracingRoot || rootDir this.turbotrace = turbotrace - this.experimentalReact = experimentalReact === true } // Here we output all traced assets and webpack chunks to a @@ -201,96 +184,59 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { const outputPath = compilation.outputOptions.path await span.traceChild('create-trace-assets').traceAsyncFn(async () => { - const packageBase = require.resolve('next/package.json') - const vendorDir = nodePath.join(packageBase, '../vendored/node_modules') - const entryFilesMap = new Map>() + const chunksToTrace = new Set() const isTraceable = (file: string) => !NOT_TRACEABLE.some((suffix) => { return file.endsWith(suffix) }) - const ignores = [...TRACE_IGNORES, ...this.traceIgnores] - - const ignoreFn = (path: string) => { - return isMatch(path, ignores, { contains: true, dot: true }) - } + for (const entrypoint of compilation.entrypoints.values()) { + const entryFiles = new Set() - const appRouterChunksToTrace = new Set() - const appRouterTraceConfig: NodeFileTraceOptions = { - base: this.tracingRoot, - processCwd: this.rootDir, - readFile: async (path) => { - if (appRouterChunksToTrace.has(path)) { - const source = - assets[ - nodePath.relative(outputPath, path).replace(/\\/g, '/') - ]?.source?.() - if (source) return source - } - try { - return await new Promise((resolve, reject) => { - ;( - compilation.inputFileSystem - .readFile as typeof import('fs').readFile - )(path, (err, data) => { - if (err) return reject(err) - resolve(data) - }) - }) - } catch (e) { - if (isError(e) && (e.code === 'ENOENT' || e.code === 'EISDIR')) { - return null + for (const chunk of entrypoint + .getEntrypointChunk() + .getAllReferencedChunks()) { + for (const file of chunk.files) { + if (isTraceable(file)) { + const filePath = nodePath.join(outputPath, file) + chunksToTrace.add(filePath) + entryFiles.add(filePath) } - throw e } - }, - resolve: async (id, parent, job, isCjs) => { - if (id[0] !== '.' && id[0] !== '/' && id[0] !== '\\') { - // We have a bare specifier and might need to resolve this to a vendored package - const slash = id.indexOf('/') - const requestBase = slash === -1 ? id : id.slice(0, slash) - switch (requestBase) { - case 'react': - case 'react-dom': - case 'react-server-dom-webpack': - case 'scheduler': { - let vendoredPath: string - if (id === 'react-dom') { - vendoredPath = '/server-rendering-stub' - } else { - vendoredPath = slash === -1 ? '' : id.slice(slash) - } - - let vendoredRequest = this.experimentalReact - ? requestBase + '-experimental-vendored' + vendoredPath - : requestBase + '-vendored' + vendoredPath - - return nftResolve(vendoredRequest, vendorDir, job, isCjs) - } - case 'server-only': - case 'client-only': { - return nftResolve(id, vendorDir, job, isCjs) - } - default: + for (const file of chunk.auxiliaryFiles) { + if (isTraceable(file)) { + const filePath = nodePath.join(outputPath, file) + chunksToTrace.add(filePath) + entryFiles.add(filePath) } } + } + entryFilesMap.set(entrypoint, entryFiles) + } - return nftResolve(id, parent, job, isCjs) - }, - readlink, - stat, - ignore: ignoreFn, - mixedModules: true, + // startTrace existed and callable + if (this.turbotrace) { + let binding = await loadBindings() + if ( + !binding?.isWasm && + typeof binding.turbo.startTrace === 'function' + ) { + this.chunksToTrace = [...chunksToTrace] + return + } } + const ignores = [...TRACE_IGNORES, ...this.traceIgnores] - const pageRouterChunksToTrace = new Set() - const pageRouterTraceConfig: NodeFileTraceOptions = { + const ignoreFn = (path: string) => { + return isMatch(path, ignores, { contains: true, dot: true }) + } + const result = await nodeFileTrace([...chunksToTrace], { base: this.tracingRoot, processCwd: this.rootDir, readFile: async (path) => { - if (pageRouterChunksToTrace.has(path)) { + if (chunksToTrace.has(path)) { const source = assets[ nodePath.relative(outputPath, path).replace(/\\/g, '/') @@ -318,88 +264,31 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance { stat, ignore: ignoreFn, mixedModules: true, - } - - for (const entrypoint of compilation.entrypoints.values()) { - // Tracing is cached separately for App Router vs Pages Router since the module resolution is not identical - // across these two types of entrypoints. - const isAppRouter = entrypoint.name.startsWith('app/') - - // We store all the chunks needed for tracing for just this entrypoint - const chunksToTrace = isAppRouter - ? appRouterChunksToTrace - : pageRouterChunksToTrace - - const entryFiles = new Set() - - for (const chunk of entrypoint - .getEntrypointChunk() - .getAllReferencedChunks()) { - for (const file of chunk.files) { - if (isTraceable(file)) { - const filePath = nodePath.join(outputPath, file) - chunksToTrace.add(filePath) - entryFiles.add(filePath) - } - } - for (const file of chunk.auxiliaryFiles) { - if (isTraceable(file)) { - const filePath = nodePath.join(outputPath, file) - chunksToTrace.add(filePath) - entryFiles.add(filePath) - } - } - } - entryFilesMap.set(entrypoint, entryFiles) - } - - // startTrace existed and callable - if (this.turbotrace) { - let binding = await loadBindings() - if ( - !binding?.isWasm && - typeof binding.turbo.startTrace === 'function' - ) { - this.chunksToTrace = [ - ...new Set([...appRouterChunksToTrace, ...pageRouterChunksToTrace]), - ] - return - } - } + }) + const reasons = result.reasons + const fileList = result.fileList + result.esmFileList.forEach((file) => fileList.add(file)) - const [appRouterParentFileMap, pageRouterParentFileMap] = - await Promise.all([ - traceChunks(appRouterChunksToTrace, appRouterTraceConfig), - traceChunks(pageRouterChunksToTrace, pageRouterTraceConfig), - ]) + const parentFilesMap = getFilesMapFromReasons(fileList, reasons) - // We now have a filemap for every App Router and Page Router entrypoint. We iterate through all entrypoints and their files - // and collect all traced dependencies now for (const [entrypoint, entryFiles] of entryFilesMap) { - const isAppRouter = entrypoint.name.startsWith('app/') - const traceOutputName = `../${entrypoint.name}.js.nft.json` const traceOutputPath = nodePath.dirname( nodePath.join(outputPath, traceOutputName) ) const allEntryFiles = new Set() - const fileMap = isAppRouter - ? appRouterParentFileMap - : pageRouterParentFileMap - entryFiles.forEach((file) => { - fileMap + parentFilesMap .get(nodePath.relative(this.tracingRoot, file)) ?.forEach((child) => { allEntryFiles.add(nodePath.join(this.tracingRoot, child)) }) }) - // don't include the entry itself in the trace entryFiles.delete(nodePath.join(outputPath, `../${entrypoint.name}.js`)) - if (isAppRouter) { + if (entrypoint.name.startsWith('app/')) { // include the client reference manifest const clientManifestsForPage = entrypoint.name.endsWith('/page') || diff --git a/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts b/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts index cfe61856dfd87..107e2e03f07bb 100644 --- a/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts +++ b/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts @@ -12,11 +12,9 @@ const originModules = [ require.resolve('../../../server/require'), require.resolve('../../../server/load-components'), require.resolve('../../../server/next-server'), + require.resolve('../../../compiled/react-server-dom-webpack/client.edge'), require.resolve( - '../../../../vendored/node_modules/react-server-dom-webpack-vendored/client.edge' - ), - require.resolve( - '../../../../vendored/node_modules/react-server-dom-webpack-experimental-vendored/client.edge' + '../../../compiled/react-server-dom-webpack-experimental/client.edge' ), ] diff --git a/packages/next/src/build/webpack/resolve-plugins/next-resolve-plugin.ts b/packages/next/src/build/webpack/resolve-plugins/next-resolve-plugin.ts deleted file mode 100644 index ebf846f633d29..0000000000000 --- a/packages/next/src/build/webpack/resolve-plugins/next-resolve-plugin.ts +++ /dev/null @@ -1,299 +0,0 @@ -import { webpack } from 'next/dist/compiled/webpack/webpack' -import { resolve } from 'node:path' - -const registeredPlugins = new Set() - -// This matches up to the first path separator unless the path starts with `.` or `/` or `\` -const upToFirstSeparator = /^[^.\\/][^\\/]*/ - -type NextResolvePluginOptions = { - serverRuntime?: boolean - profilingReact?: boolean -} - -export class NextResolvePlugin { - private readonly options: NextAppResolvePluginOptions - private readonly profilingReact: boolean - - constructor(options?: NextResolvePluginOptions) { - if (!registeredPlugins.has(NextResolvePlugin)) { - webpack.util.serialization.register( - NextResolvePlugin, - 'next/dist/build/webpack/plugins/next-resolve-plugin', - 'NextResolvePlugin', - new (class NextResolvePluginSerializer { - serialize(source: NextResolvePlugin, { write }: any) { - const o = source.getOptions() - write(o) - } - - deserialize({ read }: any) { - const o = read() - return new NextResolvePlugin(o) - } - })() - ) - registeredPlugins.add(NextResolvePlugin) - } - - this.options = options || {} - - // Some logic below depends on whether we are bundling to run on edge/node vs the browser. - this.profilingReact = - (options && - options.profilingReact === true && - options.serverRuntime !== true) || - false - } - - getOptions() { - return this.options - } - - apply(resolver: webpack.Resolver) { - const target = resolver.ensureHook('resolve') - - resolver - .getHook('before-resolve') - .tapAsync( - 'NextResolvePlugin', - (request: any, resolveContext: any, callback: any) => { - // We only use vendored packages for App Router builds - const requestString = request.request - - const packageMatch = requestString.match(upToFirstSeparator) - - if (packageMatch) { - // Determine the package we are trying to resolve - let packageName = packageMatch[0] || '' - - switch (packageName) { - case 'react-dom': - case 'scheduler': { - if (this.profilingReact) { - // We are in profiling mode and need to swap in the profiler tracing build - let alias: string - if (requestString === 'react-dom') { - alias = 'react-dom/profiling' - } else if (requestString.startsWith('scheduler/tracing')) { - alias = - 'scheduler/tracing-profiling' + - requestString.slice('scheduler/tracing'.length) - } else { - return callback() - } - - return resolver.doResolve( - target, - { - ...request, - request: alias, - }, - 'aliasing ' + packageName, - resolveContext, - callback - ) - } - break - } - default: - } - } - - return callback() - } - ) - } -} - -type NextAppResolvePluginOptions = { - experimentalReact?: boolean - serverRuntime?: boolean -} - -export class NextAppResolvePlugin { - private readonly options: NextAppResolvePluginOptions - private readonly serverRuntime: boolean - private readonly aliases: Map - private readonly reactVendoredPackageSuffix: string - private readonly vendorPath: string - - constructor(options?: NextAppResolvePluginOptions) { - if (!registeredPlugins.has(NextAppResolvePlugin)) { - webpack.util.serialization.register( - NextAppResolvePlugin, - 'next/dist/build/webpack/plugins/next-resolve-plugin', - 'NextAppResolvePlugin', - new (class NextAppResolvePluginSerializer { - serialize(source: NextAppResolvePlugin, { write }: any) { - const o = source.getOptions() - write(o) - } - - deserialize({ read }: any) { - const o = read() - return new NextAppResolvePlugin(o) - } - })() - ) - registeredPlugins.add(NextAppResolvePlugin) - } - - this.options = options || {} - - // Some logic below depends on whether we are bundling to run on edge/node vs the browser. - this.serverRuntime = (options && options.serverRuntime) || false - - // Alias resolving is bespoke so this is better modeled by a map than with switch branches like we do - // with vendored resolves where the logic follows a consistent pattern for most packages. Think of aliasing as - // being for individual files and vendoring for entire packages. - // This aliasing is subtly different from builtin webpack aliasing. It matches exact request strings rather than path segments. - // This choice was made for practicality and simplicity, there just aren't any instances that needed segment based aliasing - // after adopting vendoring. If this changes in the future we will need to refactor this to support aliasing path segments. - this.aliases = new Map([ - ['next/head', 'next/dist/client/components/noop-head'], - ['next/dynamic', 'next/dist/shared/lib/app-dynamic'], - ]) - - // React packages are renamed to support experimental channels and to avoid Haste package name warnings - this.reactVendoredPackageSuffix = - options && options.experimentalReact - ? '-experimental-vendored' - : '-vendored' - - const nextPackage = require.resolve('next/package.json') - this.vendorPath = resolve(nextPackage, '../vendored') - } - - getOptions() { - return this.options - } - - getVendoredRequestObject(requestObject: any, vendoredRequest: string) { - return { - ...requestObject, - path: this.vendorPath, - request: vendoredRequest, - } - } - - getAliasedRequestObject(requestObject: any, aliasedRequest: string) { - return { - ...requestObject, - request: aliasedRequest, - } - } - - apply(resolver: webpack.Resolver) { - const target = resolver.ensureHook('resolve') - - resolver - .getHook('before-resolve') - .tapAsync( - 'NextAppResolvePlugin', - (request: any, resolveContext: any, callback: any) => { - // We only use vendored packages for App Router builds - const requestString = request.request - - if (request.path === this.vendorPath) { - // Webpack resolves cyclicly and so after redirecting a resolve to vendor this hook runs again. - // We can fast path this to avoid recomputing the package name below by assuming any resolve that - // has a path of the vendorPath is already vendored. This is safe because there are no modules - // that natively resolve from this path. - return callback() - } - - const packageMatch = requestString.match(upToFirstSeparator) - if (packageMatch) { - // Determine the package we are trying to resolve - let packageName = packageMatch[0] || '' - - switch (packageName) { - case 'next': { - // Next is common and if the runtime does not optimally compile this code we can at least - // speed it up by short circuiting the switch early for the most common packages - break - } - case 'react-dom': { - // react-dom has a special alias when vendoring on the server. Once this is integrated into the react-dom - // package we can unify this branch with the other react branches below - let packagePath = requestString.slice(packageName.length) - if (packagePath === '' && this.serverRuntime) { - if (this.serverRuntime) { - // We're bundling for a server environment and requiring the top level package "react-dom". - // We substitute the server-rendering-stub instead to avoid loading all of react-dom on the server. - // In the future we will remove this once the react-dom top level export no longer contains the - // entire client build - packagePath = '/server-rendering-stub' - } - } - // Restart the resolution process from the vendored package path and the augmented react package name - return resolver.doResolve( - target, - this.getVendoredRequestObject( - request, - packageName + this.reactVendoredPackageSuffix + packagePath - ), - 'vendoring ' + packageName, - resolveContext, - callback - ) - } - case 'react': - case 'react-server-dom-webpack': - case 'scheduler': { - let packagePath = requestString.slice(packageName.length) - // Restart the resolution process from the vendored package path and the augmented react package name - return resolver.doResolve( - target, - this.getVendoredRequestObject( - request, - packageName + this.reactVendoredPackageSuffix + packagePath - ), - 'vendoring ' + packageName, - resolveContext, - callback - ) - } - - // packages that are not renamed when vendored - case 'server-only': - case 'client-only': { - // Restart the resolution process from teh vendored package path - return resolver.doResolve( - target, - this.getVendoredRequestObject( - request, - packageName + - '-vendored' + - requestString.slice(packageName.length) - ), - 'vendoring ' + packageName, - resolveContext, - callback - ) - } - default: - // This package does not require vendoring but the request might still - // need to be aliased. We continue below to the alias path - } - } - - // If this was a vendorable request we would have already returned. Now we check if the request is aliasable - const alias = this.aliases.get(requestString) - if (alias) { - // We restart resolution with the alias in place of the original request - return resolver.doResolve( - target, - this.getAliasedRequestObject(request, alias), - 'aliasing ' + requestString, - resolveContext, - callback - ) - } - // No alias configured, continue with the existing resolution process - return callback() - } - ) - } -} diff --git a/packages/next/src/client/components/router-reducer/fetch-server-response.ts b/packages/next/src/client/components/router-reducer/fetch-server-response.ts index 11925ae572735..689d27df7798f 100644 --- a/packages/next/src/client/components/router-reducer/fetch-server-response.ts +++ b/packages/next/src/client/components/router-reducer/fetch-server-response.ts @@ -1,5 +1,8 @@ 'use client' +// @ts-ignore +// eslint-disable-next-line import/no-extraneous-dependencies +import { createFromFetch } from 'react-server-dom-webpack/client' import type { FlightRouterState, FlightData, @@ -18,13 +21,6 @@ import { callServer } from '../../app-call-server' import { PrefetchKind } from './router-reducer-types' import { hexHash } from '../../../shared/lib/hash' -// Marking this as a namespace import to avoid erroring on the server where the node version is loaded -// This code is only actually called on the client so it's fine for the node package to be -// used on the server as long as no methods are actually called from it. -// @TODO-APP Refactor this to use forking so the SSR variant doesn't load any code -// eslint-disable-next-line import/no-extraneous-dependencies -import * as ReactServerDOMClient from 'react-server-dom-webpack/client' - type FetchServerResponseResult = [ flightData: FlightData, canonicalUrlOverride: URL | undefined @@ -122,10 +118,12 @@ export async function fetchServerResponse( } // Handle the `fetch` readable stream that can be unwrapped by `React.use`. - const [buildId, flightData]: NextFlightResponse = - await ReactServerDOMClient.createFromFetch(Promise.resolve(res), { + const [buildId, flightData]: NextFlightResponse = await createFromFetch( + Promise.resolve(res), + { callServer, - }) + } + ) if (currentBuildId !== buildId) { return doMpaNavigation(res.url) diff --git a/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts b/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts index c83483d4fcb05..dc130b1c70f14 100644 --- a/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts +++ b/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts @@ -11,13 +11,10 @@ import { } from '../../app-router-headers' import { createRecordFromThenable } from '../create-record-from-thenable' import { readRecordValue } from '../read-record-value' - -// Marking this as a namespace import to avoid erroring on the server where the node version is loaded -// This code is only actually called on the client so it's fine for the node package to be -// used on the server as long as no methods are actually called from it. -// @TODO-APP Refactor this to use forking so the SSR variant doesn't load any code // eslint-disable-next-line import/no-extraneous-dependencies -import * as ReactServerDOMClient from 'react-server-dom-webpack/client' +import { createFromFetch } from 'react-server-dom-webpack/client' +// eslint-disable-next-line import/no-extraneous-dependencies +import { encodeReply } from 'react-server-dom-webpack/client' import { ReadonlyReducerState, @@ -48,14 +45,7 @@ async function fetchServerAction( state: ReadonlyReducerState, { actionId, actionArgs }: ServerActionAction ): Promise { - // We access encodeReply in this way to avoid validation of ESM imports in webpack bundling. - // We expect this function to only be called from the browser where encodeReply will exist. - // Whereas it does not exist on the server but we will never call this function on the server. - // @TODO-APP use forking to provide a server / browser implementation of fetchServerAction - let body - if (typeof window !== 'undefined') { - body = await ReactServerDOMClient.encodeReply(actionArgs) - } + const body = await encodeReply(actionArgs) const res = await fetch('', { method: 'POST', @@ -105,10 +95,12 @@ async function fetchServerAction( res.headers.get('content-type') === RSC_CONTENT_TYPE_HEADER if (isFlightResponse) { - const response: ActionFlightResponse = - await ReactServerDOMClient.createFromFetch(Promise.resolve(res), { + const response: ActionFlightResponse = await createFromFetch( + Promise.resolve(res), + { callServer, - }) + } + ) if (location) { // if it was a redirection, then result is just a regular RSC payload diff --git a/packages/next/src/compiled/@vercel/nft/index.js b/packages/next/src/compiled/@vercel/nft/index.js index 4a589f2a8138d..c95185aa3d22a 100644 --- a/packages/next/src/compiled/@vercel/nft/index.js +++ b/packages/next/src/compiled/@vercel/nft/index.js @@ -1,6 +1,6 @@ -(()=>{var __webpack_modules__={5841:(e,t,r)=>{"use strict";e.exports=t;t.mockS3Http=r(9361).get_mockS3Http();t.mockS3Http("on");const s=t.mockS3Http("get");const a=r(7147);const o=r(1017);const u=r(1758);const c=r(9544);c.disableProgress();const f=r(5977);const d=r(2361).EventEmitter;const p=r(3837).inherits;const h=["clean","install","reinstall","build","rebuild","package","testpackage","publish","unpublish","info","testbinary","reveal","configure"];const v={};c.heading="node-pre-gyp";if(s){c.warn(`mocking s3 to ${process.env.node_pre_gyp_mock_s3}`)}Object.defineProperty(t,"find",{get:function(){return r(5921).find},enumerable:true});function Run({package_json_path:e="./package.json",argv:t}){this.package_json_path=e;this.commands={};const r=this;h.forEach((e=>{r.commands[e]=function(t,s){c.verbose("command",e,t);return require("./"+e)(r,t,s)}}));this.parseArgv(t);this.binaryHostSet=false}p(Run,d);t.Run=Run;const D=Run.prototype;D.package=r(7399);D.configDefs={help:Boolean,arch:String,debug:Boolean,directory:String,proxy:String,loglevel:String};D.shorthands={release:"--no-debug",C:"--directory",debug:"--debug",j:"--jobs",silent:"--loglevel=silent",silly:"--loglevel=silly",verbose:"--loglevel=verbose"};D.aliases=v;D.parseArgv=function parseOpts(e){this.opts=u(this.configDefs,this.shorthands,e);this.argv=this.opts.argv.remain.slice();const t=this.todo=[];e=this.argv.map((e=>{if(e in this.aliases){e=this.aliases[e]}return e}));e.slice().forEach((r=>{if(r in this.commands){const s=e.splice(0,e.indexOf(r));e.shift();if(t.length>0){t[t.length-1].args=s}t.push({name:r,args:[]})}}));if(t.length>0){t[t.length-1].args=e.splice(0)}let r=this.package_json_path;if(this.opts.directory){r=o.join(this.opts.directory,r)}this.package_json=JSON.parse(a.readFileSync(r));this.todo=f.expand_commands(this.package_json,this.opts,t);const s="npm_config_";Object.keys(process.env).forEach((e=>{if(e.indexOf(s)!==0)return;const t=process.env[e];if(e===s+"loglevel"){c.level=t}else{e=e.substring(s.length);if(e==="argv"){if(this.opts.argv&&this.opts.argv.remain&&this.opts.argv.remain.length){}else{this.opts[e]=t}}else{this.opts[e]=t}}}));if(this.opts.loglevel){c.level=this.opts.loglevel}c.resume()};D.setBinaryHostProperty=function(e){if(this.binaryHostSet){return this.package_json.binary.host}const t=this.package_json;if(!t||!t.binary||t.binary.host){return""}if(!t.binary.staging_host||!t.binary.production_host){return""}let r="production_host";if(e==="publish"){r="staging_host"}const s=process.env.node_pre_gyp_s3_host;if(s==="staging"||s==="production"){r=`${s}_host`}else if(this.opts["s3_host"]==="staging"||this.opts["s3_host"]==="production"){r=`${this.opts["s3_host"]}_host`}else if(this.opts["s3_host"]||s){throw new Error(`invalid s3_host ${this.opts["s3_host"]||s}`)}t.binary.host=t.binary[r];this.binaryHostSet=true;return t.binary.host};D.usage=function usage(){const e=[""," Usage: node-pre-gyp [options]",""," where is one of:",h.map((e=>" - "+e+" - "+require("./"+e).usage)).join("\n"),"","node-pre-gyp@"+this.version+" "+o.resolve(__dirname,".."),"node@"+process.versions.node].join("\n");return e};Object.defineProperty(D,"version",{get:function(){return this.package.version},enumerable:true})},5921:(e,t,r)=>{"use strict";const s=r(5841);const a=r(2821);const o=r(5977);const u=r(7147).existsSync||r(1017).existsSync;const c=r(1017);e.exports=t;t.usage="Finds the require path for the node-pre-gyp installed module";t.validate=function(e,t){a.validate_config(e,t)};t.find=function(e,t){if(!u(e)){throw new Error(e+"does not exist")}const r=new s.Run({package_json_path:e,argv:process.argv});r.setBinaryHostProperty();const f=r.package_json;a.validate_config(f,t);let d;if(o.get_napi_build_versions(f,t)){d=o.get_best_napi_build_version(f,t)}t=t||{};if(!t.module_root)t.module_root=c.dirname(e);const p=a.evaluate(f,t,d);return p.module}},5977:(e,t,r)=>{"use strict";const s=r(7147);e.exports=t;const a=process.version.substr(1).replace(/-.*$/,"").split(".").map((e=>+e));const o=["build","clean","configure","package","publish","reveal","testbinary","testpackage","unpublish"];const u="napi_build_version=";e.exports.get_napi_version=function(){let e=process.versions.napi;if(!e){if(a[0]===9&&a[1]>=3)e=2;else if(a[0]===8)e=1}return e};e.exports.get_napi_version_as_string=function(t){const r=e.exports.get_napi_version(t);return r?""+r:""};e.exports.validate_package_json=function(t,r){const s=t.binary;const a=pathOK(s.module_path);const o=pathOK(s.remote_path);const u=pathOK(s.package_name);const c=e.exports.get_napi_build_versions(t,r,true);const f=e.exports.get_napi_build_versions_raw(t);if(c){c.forEach((e=>{if(!(parseInt(e,10)===e&&e>0)){throw new Error("All values specified in napi_versions must be positive integers.")}}))}if(c&&(!a||!o&&!u)){throw new Error("When napi_versions is specified; module_path and either remote_path or "+"package_name must contain the substitution string '{napi_build_version}`.")}if((a||o||u)&&!f){throw new Error("When the substitution string '{napi_build_version}` is specified in "+"module_path, remote_path, or package_name; napi_versions must also be specified.")}if(c&&!e.exports.get_best_napi_build_version(t,r)&&e.exports.build_napi_only(t)){throw new Error("The Node-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports Node-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}if(f&&!c&&e.exports.build_napi_only(t)){throw new Error("The Node-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports Node-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}};function pathOK(e){return e&&(e.indexOf("{napi_build_version}")!==-1||e.indexOf("{node_napi_label}")!==-1)}e.exports.expand_commands=function(t,r,s){const a=[];const c=e.exports.get_napi_build_versions(t,r);s.forEach((s=>{if(c&&s.name==="install"){const o=e.exports.get_best_napi_build_version(t,r);const c=o?[u+o]:[];a.push({name:s.name,args:c})}else if(c&&o.indexOf(s.name)!==-1){c.forEach((e=>{const t=s.args.slice();t.push(u+e);a.push({name:s.name,args:t})}))}else{a.push(s)}}));return a};e.exports.get_napi_build_versions=function(t,s,a){const o=r(9544);let u=[];const c=e.exports.get_napi_version(s?s.target:undefined);if(t.binary&&t.binary.napi_versions){t.binary.napi_versions.forEach((e=>{const t=u.indexOf(e)!==-1;if(!t&&c&&e<=c){u.push(e)}else if(a&&!t&&c){o.info("This Node instance does not support builds for Node-API version",e)}}))}if(s&&s["build-latest-napi-version-only"]){let e=0;u.forEach((t=>{if(t>e)e=t}));u=e?[e]:[]}return u.length?u:undefined};e.exports.get_napi_build_versions_raw=function(e){const t=[];if(e.binary&&e.binary.napi_versions){e.binary.napi_versions.forEach((e=>{if(t.indexOf(e)===-1){t.push(e)}}))}return t.length?t:undefined};e.exports.get_command_arg=function(e){return u+e};e.exports.get_napi_build_version_from_command_args=function(e){for(let t=0;t{if(e>s&&e<=t){s=e}}))}return s===0?undefined:s};e.exports.build_napi_only=function(e){return e.binary&&e.binary.package_name&&e.binary.package_name.indexOf("{node_napi_label}")===-1}},9361:(e,t,r)=>{"use strict";e.exports=t;const s=r(7310);const a=r(7147);const o=r(1017);e.exports.detect=function(e,t){const r=e.hosted_path;const a=s.parse(r);t.prefix=!a.pathname||a.pathname==="/"?"":a.pathname.replace("/","");if(e.bucket&&e.region){t.bucket=e.bucket;t.region=e.region;t.endpoint=e.host;t.s3ForcePathStyle=e.s3ForcePathStyle}else{const e=a.hostname.split(".s3");const r=e[0];if(!r){return}if(!t.bucket){t.bucket=r}if(!t.region){const r=e[1].slice(1).split(".")[0];if(r==="amazonaws"){t.region="us-east-1"}else{t.region=r}}}};e.exports.get_s3=function(e){if(process.env.node_pre_gyp_mock_s3){const e=r(3930);const t=r(2037);e.config.basePath=`${t.tmpdir()}/mock`;const s=e.S3();const wcb=e=>(t,...r)=>{if(t&&t.code==="ENOENT"){t.code="NotFound"}return e(t,...r)};return{listObjects(e,t){return s.listObjects(e,wcb(t))},headObject(e,t){return s.headObject(e,wcb(t))},deleteObject(e,t){return s.deleteObject(e,wcb(t))},putObject(e,t){return s.putObject(e,wcb(t))}}}const t=r(2355);t.config.update(e);const s=new t.S3;return{listObjects(e,t){return s.listObjects(e,t)},headObject(e,t){return s.headObject(e,t)},deleteObject(e,t){return s.deleteObject(e,t)},putObject(e,t){return s.putObject(e,t)}}};e.exports.get_mockS3Http=function(){let e=false;if(!process.env.node_pre_gyp_mock_s3){return()=>e}const t=r(4997);const s="https://mapbox-node-pre-gyp-public-testing-bucket.s3.us-east-1.amazonaws.com";const u=process.env.node_pre_gyp_mock_s3+"/mapbox-node-pre-gyp-public-testing-bucket";const mock_http=()=>{function get(e,t){const r=o.join(u,e.replace("%2B","+"));try{a.accessSync(r,a.constants.R_OK)}catch(e){return[404,"not found\n"]}return[200,a.createReadStream(r)]}return t(s).persist().get((()=>e)).reply(get)};mock_http(t,s,u);const mockS3Http=t=>{const r=e;if(t==="off"){e=false}else if(t==="on"){e=true}else if(t!=="get"){throw new Error(`illegal action for setMockHttp ${t}`)}return r};return mockS3Http}},2821:(e,t,r)=>{"use strict";e.exports=t;const s=r(1017);const a=r(7849);const o=r(7310);const u=r(5104);const c=r(5977);let f;if(process.env.NODE_PRE_GYP_ABI_CROSSWALK){f=require(process.env.NODE_PRE_GYP_ABI_CROSSWALK)}else{f=r(9448)}const d={};Object.keys(f).forEach((e=>{const t=e.split(".")[0];if(!d[t]){d[t]=e}}));function get_electron_abi(e,t){if(!e){throw new Error("get_electron_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if electron is the target.")}const r=a.parse(t);return e+"-v"+r.major+"."+r.minor}e.exports.get_electron_abi=get_electron_abi;function get_node_webkit_abi(e,t){if(!e){throw new Error("get_node_webkit_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if node-webkit is the target.")}return e+"-v"+t}e.exports.get_node_webkit_abi=get_node_webkit_abi;function get_node_abi(e,t){if(!e){throw new Error("get_node_abi requires valid runtime arg")}if(!t){throw new Error("get_node_abi requires valid process.versions object")}const r=a.parse(t.node);if(r.major===0&&r.minor%2){return e+"-v"+t.node}else{return t.modules?e+"-v"+ +t.modules:"v8-"+t.v8.split(".").slice(0,2).join(".")}}e.exports.get_node_abi=get_node_abi;function get_runtime_abi(e,t){if(!e){throw new Error("get_runtime_abi requires valid runtime arg")}if(e==="node-webkit"){return get_node_webkit_abi(e,t||process.versions["node-webkit"])}else if(e==="electron"){return get_electron_abi(e,t||process.versions.electron)}else{if(e!=="node"){throw new Error("Unknown Runtime: '"+e+"'")}if(!t){return get_node_abi(e,process.versions)}else{let r;if(f[t]){r=f[t]}else{const e=t.split(".").map((e=>+e));if(e.length!==3){throw new Error("Unknown target version: "+t)}const s=e[0];let a=e[1];let o=e[2];if(s===1){while(true){if(a>0)--a;if(o>0)--o;const e=""+s+"."+a+"."+o;if(f[e]){r=f[e];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+e+" as ABI compatible target");break}if(a===0&&o===0){break}}}else if(s>=2){if(d[s]){r=f[d[s]];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+d[s]+" as ABI compatible target")}}else if(s===0){if(e[1]%2===0){while(--o>0){const e=""+s+"."+a+"."+o;if(f[e]){r=f[e];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+e+" as ABI compatible target");break}}}}}if(!r){throw new Error("Unsupported target version: "+t)}const s={node:t,v8:r.v8+".0",modules:r.node_abi>1?r.node_abi:undefined};return get_node_abi(e,s)}}}e.exports.get_runtime_abi=get_runtime_abi;const p=["module_name","module_path","host"];function validate_config(e,t){const r=e.name+" package.json is not node-pre-gyp ready:\n";const s=[];if(!e.main){s.push("main")}if(!e.version){s.push("version")}if(!e.name){s.push("name")}if(!e.binary){s.push("binary")}const a=e.binary;if(a){p.forEach((e=>{if(!a[e]||typeof a[e]!=="string"){s.push("binary."+e)}}))}if(s.length>=1){throw new Error(r+"package.json must declare these properties: \n"+s.join("\n"))}if(a){const e=o.parse(a.host).protocol;if(e==="http:"){throw new Error("'host' protocol ("+e+") is invalid - only 'https:' is accepted")}}c.validate_package_json(e,t)}e.exports.validate_config=validate_config;function eval_template(e,t){Object.keys(t).forEach((r=>{const s="{"+r+"}";while(e.indexOf(s)>-1){e=e.replace(s,t[r])}}));return e}function fix_slashes(e){if(e.slice(-1)!=="/"){return e+"/"}return e}function drop_double_slashes(e){return e.replace(/\/\//g,"/")}function get_process_runtime(e){let t="node";if(e["node-webkit"]){t="node-webkit"}else if(e.electron){t="electron"}return t}e.exports.get_process_runtime=get_process_runtime;const h="{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz";const v="";e.exports.evaluate=function(e,t,r){t=t||{};validate_config(e,t);const f=e.version;const d=a.parse(f);const p=t.runtime||get_process_runtime(process.versions);const D={name:e.name,configuration:t.debug?"Debug":"Release",debug:t.debug,module_name:e.binary.module_name,version:d.version,prerelease:d.prerelease.length?d.prerelease.join("."):"",build:d.build.length?d.build.join("."):"",major:d.major,minor:d.minor,patch:d.patch,runtime:p,node_abi:get_runtime_abi(p,t.target),node_abi_napi:c.get_napi_version(t.target)?"napi":get_runtime_abi(p,t.target),napi_version:c.get_napi_version(t.target),napi_build_version:r||"",node_napi_label:r?"napi-v"+r:get_runtime_abi(p,t.target),target:t.target||"",platform:t.target_platform||process.platform,target_platform:t.target_platform||process.platform,arch:t.target_arch||process.arch,target_arch:t.target_arch||process.arch,libc:t.target_libc||u.family||"unknown",module_main:e.main,toolset:t.toolset||"",bucket:e.binary.bucket,region:e.binary.region,s3ForcePathStyle:e.binary.s3ForcePathStyle||false};const g=D.module_name.replace("-","_");const y=process.env["npm_config_"+g+"_binary_host_mirror"]||e.binary.host;D.host=fix_slashes(eval_template(y,D));D.module_path=eval_template(e.binary.module_path,D);if(t.module_root){D.module_path=s.join(t.module_root,D.module_path)}else{D.module_path=s.resolve(D.module_path)}D.module=s.join(D.module_path,D.module_name+".node");D.remote_path=e.binary.remote_path?drop_double_slashes(fix_slashes(eval_template(e.binary.remote_path,D))):v;const m=e.binary.package_name?e.binary.package_name:h;D.package_name=eval_template(m,D);D.staged_tarball=s.join("build/stage",D.remote_path,D.package_name);D.hosted_path=o.resolve(D.host,D.remote_path);D.hosted_tarball=o.resolve(D.hosted_path,D.package_name);return D}},9247:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(1017));const o=r(3982);const u=r(9663);const c=r(8868);const f=r(1988);const d=s(r(3331));const p=r(4882);const h=s(r(3535));const v=r(2705);const D=r(709);const g=r(4006);const y=s(r(8752));const m=s(r(8440));const _=s(r(9042));const E=s(r(5841));const w=r(7310);const x=f.Parser.extend();const F=s(r(2037));const C=r(9810);const S=s(r(2382));const k={cwd:()=>K,env:{NODE_ENV:c.UNKNOWN,[c.UNKNOWN]:true},[c.UNKNOWN]:true};const A=Symbol();const R=Symbol();const O=Symbol();const T=Symbol();const j=Symbol();const B=Symbol();const L=Symbol();const N=Symbol();const I=Symbol();const P={access:B,accessSync:B,createReadStream:B,exists:B,existsSync:B,fstat:B,fstatSync:B,lstat:B,lstatSync:B,open:B,readdir:L,readdirSync:L,readFile:B,readFileSync:B,stat:B,statSync:B};const W={...P,pathExists:B,pathExistsSync:B,readJson:B,readJSON:B,readJsonSync:B,readJSONSync:B};const M=Object.assign(Object.create(null),{bindings:{default:N},express:{default:function(){return{[c.UNKNOWN]:true,set:A,engine:R}}},fs:{default:P,...P},"fs-extra":{default:W,...W},"graceful-fs":{default:P,...P},process:{default:k,...k},path:{default:{}},os:{default:F.default,...F.default},"@mapbox/node-pre-gyp":{default:E.default,...E.default},"node-pre-gyp":D.pregyp,"node-pre-gyp/lib/pre-binding":D.pregyp,"node-pre-gyp/lib/pre-binding.js":D.pregyp,"node-gyp-build":{default:I},nbind:{init:O,default:{init:O}},"resolve-from":{default:S.default},"strong-globalize":{default:{SetRootDir:T},SetRootDir:T},pkginfo:{default:j}});const $={_interopRequireDefault:g.normalizeDefaultRequire,_interopRequireWildcard:g.normalizeWildcardRequire,__importDefault:g.normalizeDefaultRequire,__importStar:g.normalizeWildcardRequire,MONGOOSE_DRIVER_PATH:undefined,URL:w.URL,Object:{assign:Object.assign}};$.global=$.GLOBAL=$.globalThis=$;const q=Symbol();D.pregyp.find[q]=true;const U=M.path;Object.keys(a.default).forEach((e=>{const t=a.default[e];if(typeof t==="function"){const r=function mockPath(){return t.apply(mockPath,arguments)};r[q]=true;U[e]=U.default[e]=r}else{U[e]=U.default[e]=t}}));U.resolve=U.default.resolve=function(...e){return a.default.resolve.apply(this,[K,...e])};U.resolve[q]=true;const G=new Set([".h",".cmake",".c",".cpp"]);const H=new Set(["CHANGELOG.md","README.md","readme.md","changelog.md"]);let K;const z=/^\/[^\/]+|^[a-z]:[\\/][^\\/]+/i;function isAbsolutePathOrUrl(e){if(e instanceof w.URL)return e.protocol==="file:";if(typeof e==="string"){if(e.startsWith("file:")){try{new w.URL(e);return true}catch{return false}}return z.test(e)}return false}const V=Symbol();const Y=/([\/\\]\*\*[\/\\]\*)+/g;async function analyze(e,t,r){const s=new Set;const f=new Set;const g=new Set;const E=a.default.dirname(e);K=r.cwd;const F=(0,v.getPackageBase)(e);const emitAssetDirectory=e=>{if(!r.analysis.emitGlobs)return;const t=e.indexOf(c.WILDCARD);const o=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const u=e.substring(0,o);const f=e.slice(o);const d=f.replace(c.wildcardRegEx,((e,t)=>f[t-1]===a.default.sep?"**/*":"*")).replace(Y,"/**/*")||"/**/*";if(r.ignoreFn(a.default.relative(r.base,u+d)))return;P=P.then((async()=>{if(r.log)console.log("Globbing "+u+d);const e=await new Promise(((e,t)=>(0,h.default)(u+d,{mark:true,ignore:u+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));e.filter((e=>!G.has(a.default.extname(e))&&!H.has(a.default.basename(e))&&!e.endsWith("/"))).forEach((e=>s.add(e)))}))};let P=Promise.resolve();t=t.replace(/^#![^\n\r]*[\r\n]/,"");let W;let U=false;try{W=x.parse(t,{ecmaVersion:"latest",allowReturnOutsideFunction:true});U=false}catch(t){const s=t&&t.message&&t.message.includes("sourceType: module");if(!s){r.warnings.add(new Error(`Failed to parse ${e} as script:\n${t&&t.message}`))}}if(!W){try{W=x.parse(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:true});U=true}catch(t){r.warnings.add(new Error(`Failed to parse ${e} as module:\n${t&&t.message}`));return{assets:s,deps:f,imports:g,isESM:false}}}const Q=(0,w.pathToFileURL)(e).href;const J=Object.assign(Object.create(null),{__dirname:{shadowDepth:0,value:{value:a.default.resolve(e,"..")}},__filename:{shadowDepth:0,value:{value:e}},process:{shadowDepth:0,value:{value:k}}});if(!U||r.mixedModules){J.require={shadowDepth:0,value:{value:{[c.FUNCTION](e){f.add(e);const t=M[e.startsWith("node:")?e.slice(5):e];return t.default},resolve(t){return(0,m.default)(t,e,r)}}}};J.require.value.value.resolve[q]=true}function setKnownBinding(e,t){if(e==="require")return;J[e]={shadowDepth:0,value:t}}function getKnownBinding(e){const t=J[e];if(t){if(t.shadowDepth===0){return t.value}}return undefined}function hasKnownBindingValue(e){const t=J[e];return t&&t.shadowDepth===0}if((U||r.mixedModules)&&isAst(W)){for(const e of W.body){if(e.type==="ImportDeclaration"){const t=String(e.source.value);f.add(t);const r=M[t.startsWith("node:")?t.slice(5):t];if(r){for(const t of e.specifiers){if(t.type==="ImportNamespaceSpecifier")setKnownBinding(t.local.name,{value:r});else if(t.type==="ImportDefaultSpecifier"&&"default"in r)setKnownBinding(t.local.name,{value:r.default});else if(t.type==="ImportSpecifier"&&t.imported.name in r)setKnownBinding(t.local.name,{value:r[t.imported.name]})}}}else if(e.type==="ExportNamedDeclaration"||e.type==="ExportAllDeclaration"){if(e.source)f.add(String(e.source.value))}}}async function computePureStaticValue(e,t=true){const r=Object.create(null);Object.keys($).forEach((e=>{r[e]={value:$[e]}}));Object.keys(J).forEach((e=>{r[e]=getKnownBinding(e)}));r["import.meta"]={url:Q};const s=await(0,c.evaluate)(e,r,t);return s}let X;let Z;let ee=false;function emitWildcardRequire(e){if(!r.analysis.emitGlobs||!e.startsWith("./")&&!e.startsWith("../"))return;e=a.default.resolve(E,e);const t=e.indexOf(c.WILDCARD);const s=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const o=e.substring(0,s);const u=e.slice(s);let d=u.replace(c.wildcardRegEx,((e,t)=>u[t-1]===a.default.sep?"**/*":"*"))||"/**/*";if(!d.endsWith("*"))d+="?("+(r.ts?".ts|.tsx|":"")+".js|.json|.node)";if(r.ignoreFn(a.default.relative(r.base,o+d)))return;P=P.then((async()=>{if(r.log)console.log("Globbing "+o+d);const e=await new Promise(((e,t)=>(0,h.default)(o+d,{mark:true,ignore:o+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));e.filter((e=>!G.has(a.default.extname(e))&&!H.has(a.default.basename(e))&&!e.endsWith("/"))).forEach((e=>f.add(e)))}))}async function processRequireArg(e,t=false){if(e.type==="ConditionalExpression"){await processRequireArg(e.consequent,t);await processRequireArg(e.alternate,t);return}if(e.type==="LogicalExpression"){await processRequireArg(e.left,t);await processRequireArg(e.right,t);return}let r=await computePureStaticValue(e,true);if(!r)return;if("value"in r&&typeof r.value==="string"){if(!r.wildcards)(t?g:f).add(r.value);else if(r.wildcards.length>=1)emitWildcardRequire(r.value)}else{if("then"in r&&typeof r.then==="string")(t?g:f).add(r.then);if("else"in r&&typeof r.else==="string")(t?g:f).add(r.else)}}let te=(0,u.attachScopes)(W,"scope");if(isAst(W)){(0,C.handleWrappers)(W);await(0,y.default)({id:e,ast:W,emitDependency:e=>f.add(e),emitAsset:e=>s.add(e),emitAssetDirectory:emitAssetDirectory,job:r})}async function backtrack(e,t){if(!X)throw new Error("Internal error: No staticChildNode for backtrack.");const r=await computePureStaticValue(e,true);if(r){if("value"in r&&typeof r.value!=="symbol"||"then"in r&&typeof r.then!=="symbol"&&typeof r.else!=="symbol"){Z=r;X=e;if(t)t.skip();return}}await emitStaticChildAsset()}await(0,o.asyncWalk)(W,{async enter(t,o){const u=t;const c=o;if(u.scope){te=u.scope;for(const e in u.scope.declarations){if(e in J)J[e].shadowDepth++}}if(X)return;if(!c)return;if(u.type==="Identifier"){if((0,p.isIdentifierRead)(u,c)&&r.analysis.computeFileReferences){let e;if(typeof(e=getKnownBinding(u.name)?.value)==="string"&&e.match(z)||e&&(typeof e==="function"||typeof e==="object")&&e[q]){Z={value:typeof e==="string"?e:undefined};X=u;await backtrack(c,this)}}}else if(r.analysis.computeFileReferences&&u.type==="MemberExpression"&&u.object.type==="MetaProperty"&&u.object.meta.name==="import"&&u.object.property.name==="meta"&&(u.property.computed?u.property.value:u.property.name)==="url"){Z={value:Q};X=u;await backtrack(c,this)}else if(u.type==="ImportExpression"){await processRequireArg(u.source,true);return}else if(u.type==="CallExpression"){if((!U||r.mixedModules)&&u.callee.type==="Identifier"&&u.arguments.length){if(u.callee.name==="require"&&J.require.shadowDepth===0){await processRequireArg(u.arguments[0]);return}}else if((!U||r.mixedModules)&&u.callee.type==="MemberExpression"&&u.callee.object.type==="Identifier"&&u.callee.object.name==="module"&&"module"in J===false&&u.callee.property.type==="Identifier"&&!u.callee.computed&&u.callee.property.name==="require"&&u.arguments.length){await processRequireArg(u.arguments[0]);return}else if((!U||r.mixedModules)&&u.callee.type==="MemberExpression"&&u.callee.object.type==="Identifier"&&u.callee.object.name==="require"&&J.require.shadowDepth===0&&u.callee.property.type==="Identifier"&&!u.callee.computed&&u.callee.property.name==="resolve"&&u.arguments.length){await processRequireArg(u.arguments[0]);return}const t=r.analysis.evaluatePureExpressions&&await computePureStaticValue(u.callee,false);if(t&&"value"in t&&typeof t.value==="function"&&t.value[q]&&r.analysis.computeFileReferences){Z=await computePureStaticValue(u,true);if(Z&&c){X=u;await backtrack(c,this)}}else if(t&&"value"in t&&typeof t.value==="symbol"){switch(t.value){case V:if(u.arguments.length===1&&u.arguments[0].type==="Literal"&&u.callee.type==="Identifier"&&J.require.shadowDepth===0){await processRequireArg(u.arguments[0])}break;case N:if(u.arguments.length){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&e.value){let t;if(typeof e.value==="object")t=e.value;else if(typeof e.value==="string")t={bindings:e.value};if(!t.path){t.path=true}t.module_root=F;let r;try{r=(0,d.default)(t)}catch(e){}if(r){Z={value:r};X=u;await emitStaticChildAsset()}}}break;case I:if(u.arguments.length===1&&u.arguments[0].type==="Identifier"&&u.arguments[0].name==="__dirname"&&J.__dirname.shadowDepth===0){let e;try{const t=(0,S.default)(E,"node-gyp-build");e=require(t).path(E)}catch(t){try{e=_.default.path(E)}catch(e){}}if(e){Z={value:e};X=u;await emitStaticChildAsset()}}break;case O:if(u.arguments.length){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&(typeof e.value==="string"||typeof e.value==="undefined")){const t=(0,D.nbind)(e.value);if(t&&t.path){f.add(a.default.relative(E,t.path).replace(/\\/g,"/"));return this.skip()}}}break;case A:if(u.arguments.length===2&&u.arguments[0].type==="Literal"&&u.arguments[0].value==="view engine"&&!ee){await processRequireArg(u.arguments[1]);return this.skip()}break;case R:ee=true;break;case B:case L:if(u.arguments[0]&&r.analysis.computeFileReferences){Z=await computePureStaticValue(u.arguments[0],true);if(Z){X=u.arguments[0];if(t.value===L&&u.arguments[0].type==="Identifier"&&u.arguments[0].name==="__dirname"){emitAssetDirectory(E)}else{await backtrack(c,this)}return this.skip()}}break;case T:if(u.arguments[0]){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&e.value)emitAssetDirectory(e.value+"/intl");return this.skip()}break;case j:let o=a.default.resolve(e,"../package.json");const p=a.default.resolve("/package.json");while(o!==p&&await r.stat(o)===null)o=a.default.resolve(o,"../../package.json");if(o!==p)s.add(o);break}}}else if(u.type==="VariableDeclaration"&&c&&!(0,p.isVarLoop)(c)&&r.analysis.evaluatePureExpressions){for(const e of u.declarations){if(!e.init)continue;const t=await computePureStaticValue(e.init,true);if(t){if(e.id.type==="Identifier"){setKnownBinding(e.id.name,t)}else if(e.id.type==="ObjectPattern"&&"value"in t){for(const r of e.id.properties){if(r.type!=="Property"||r.key.type!=="Identifier"||r.value.type!=="Identifier"||typeof t.value!=="object"||t.value===null||!(r.key.name in t.value))continue;setKnownBinding(r.value.name,{value:t.value[r.key.name]})}}if(!("value"in t)&&isAbsolutePathOrUrl(t.then)&&isAbsolutePathOrUrl(t.else)){Z=t;X=e.init;await emitStaticChildAsset()}}}}else if(u.type==="AssignmentExpression"&&c&&!(0,p.isLoop)(c)&&r.analysis.evaluatePureExpressions){if(!hasKnownBindingValue(u.left.name)){const e=await computePureStaticValue(u.right,false);if(e&&"value"in e){if(u.left.type==="Identifier"){setKnownBinding(u.left.name,e)}else if(u.left.type==="ObjectPattern"){for(const t of u.left.properties){if(t.type!=="Property"||t.key.type!=="Identifier"||t.value.type!=="Identifier"||typeof e.value!=="object"||e.value===null||!(t.key.name in e.value))continue;setKnownBinding(t.value.name,{value:e.value[t.key.name]})}}if(isAbsolutePathOrUrl(e.value)){Z=e;X=u.right;await emitStaticChildAsset()}}}}else if((!U||r.mixedModules)&&(u.type==="FunctionDeclaration"||u.type==="FunctionExpression"||u.type==="ArrowFunctionExpression")&&(u.arguments||u.params)[0]&&(u.arguments||u.params)[0].type==="Identifier"){let e;let t;if((u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression")&&c&&c.type==="VariableDeclarator"&&c.id.type==="Identifier"){e=c.id;t=u.arguments||u.params}else if(u.id){e=u.id;t=u.arguments||u.params}if(e&&u.body.body){let r,s=false;for(let e=0;ee&&e.id&&e.id.type==="Identifier"&&e.init&&e.init.type==="CallExpression"&&e.init.callee.type==="Identifier"&&e.init.callee.name==="require"&&J.require.shadowDepth===0&&e.init.arguments[0]&&e.init.arguments[0].type==="Identifier"&&e.init.arguments[0].name===t[0].name))}if(r&&u.body.body[e].type==="ReturnStatement"&&u.body.body[e].argument&&u.body.body[e].argument.type==="Identifier"&&u.body.body[e].argument.name===r.id.name){s=true;break}}if(s)setKnownBinding(e.name,{value:V})}}},async leave(e,t){const r=e;const s=t;if(r.scope){if(te.parent){te=te.parent}for(const e in r.scope.declarations){if(e in J){if(J[e].shadowDepth>0)J[e].shadowDepth--;else delete J[e]}}}if(X&&s)await backtrack(s,this)}});await P;return{assets:s,deps:f,imports:g,isESM:U};async function emitAssetPath(e){const t=e.indexOf(c.WILDCARD);const o=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const u=e.substring(0,o);try{var f=await r.stat(u);if(f===null){throw new Error("file not found")}}catch(e){return}if(t!==-1&&f.isFile())return;if(f.isFile()){s.add(e)}else if(f.isDirectory()){if(validWildcard(e))emitAssetDirectory(e)}}function validWildcard(t){let s="";if(t.endsWith(a.default.sep))s=a.default.sep;else if(t.endsWith(a.default.sep+c.WILDCARD))s=a.default.sep+c.WILDCARD;else if(t.endsWith(c.WILDCARD))s=c.WILDCARD;if(t===E+s)return false;if(t===K+s)return false;if(t.endsWith(a.default.sep+"node_modules"+s))return false;if(E.startsWith(t.slice(0,t.length-s.length)+a.default.sep))return false;if(F){const s=e.substring(0,e.indexOf(a.default.sep+"node_modules"))+a.default.sep+"node_modules"+a.default.sep;if(!t.startsWith(s)){if(r.log)console.log("Skipping asset emission of "+t.replace(c.wildcardRegEx,"*")+" for "+e+" as it is outside the package base "+F);return false}}return true}function resolveAbsolutePathOrUrl(e){return e instanceof w.URL?(0,w.fileURLToPath)(e):e.startsWith("file:")?(0,w.fileURLToPath)(new w.URL(e)):a.default.resolve(e)}async function emitStaticChildAsset(){if(!Z){return}if("value"in Z&&isAbsolutePathOrUrl(Z.value)){try{const e=resolveAbsolutePathOrUrl(Z.value);await emitAssetPath(e)}catch(e){}}else if("then"in Z&&"else"in Z&&isAbsolutePathOrUrl(Z.then)&&isAbsolutePathOrUrl(Z.else)){let e;try{e=resolveAbsolutePathOrUrl(Z.then)}catch(e){}let t;try{t=resolveAbsolutePathOrUrl(Z.else)}catch(e){}if(e)await emitAssetPath(e);if(t)await emitAssetPath(t)}else if(X&&X.type==="ArrayExpression"&&"value"in Z&&Z.value instanceof Array){for(const e of Z.value){try{const t=resolveAbsolutePathOrUrl(e);await emitAssetPath(t)}catch(e){}}}X=Z=undefined}}t["default"]=analyze;function isAst(e){return"body"in e}},2580:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CachedFileSystem=void 0;const a=r(1017);const o=s(r(6450));const u=r(5749);const c=o.default.promises.readFile;const f=o.default.promises.readlink;const d=o.default.promises.stat;class CachedFileSystem{constructor({cache:e,fileIOConcurrency:t}){this.fileIOQueue=new u.Sema(t);this.fileCache=e?.fileCache??new Map;this.statCache=e?.statCache??new Map;this.symlinkCache=e?.symlinkCache??new Map;if(e){e.fileCache=this.fileCache;e.statCache=this.statCache;e.symlinkCache=this.symlinkCache}}async readlink(e){const t=this.symlinkCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalReadlink);this.symlinkCache.set(e,r);return r}async readFile(e){const t=this.fileCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalReadFile);this.fileCache.set(e,r);return r}async stat(e){const t=this.statCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalStat);this.statCache.set(e,r);return r}async _internalReadlink(e){try{const t=await f(e);const r=this.statCache.get(e);if(r)this.statCache.set((0,a.resolve)(e,t),r);return t}catch(e){if(e.code!=="EINVAL"&&e.code!=="ENOENT"&&e.code!=="UNKNOWN")throw e;return null}}async _internalReadFile(e){try{return(await c(e)).toString()}catch(e){if(e.code==="ENOENT"||e.code==="EISDIR"){return null}throw e}}async _internalStat(e){try{return await d(e)}catch(e){if(e.code==="ENOENT"){return null}throw e}}async executeFileIO(e,t){await this.fileIOQueue.acquire();try{return t.call(this,e)}finally{this.fileIOQueue.release()}}}t.CachedFileSystem=CachedFileSystem},9634:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var a=Object.getOwnPropertyDescriptor(t,r);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,a)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.resolve=t.nodeFileTrace=void 0;a(r(2721),t);var u=r(3233);Object.defineProperty(t,"nodeFileTrace",{enumerable:true,get:function(){return u.nodeFileTrace}});const c=o(r(8440));t.resolve=c.default},3233:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var a=Object.getOwnPropertyDescriptor(t,r);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,a)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))s(t,e,r);a(t,e);return t};var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Job=t.nodeFileTrace=void 0;const c=r(1017);const f=u(r(9247));const d=o(r(8440));const p=r(2540);const h=r(1767);const v=r(1017);const D=r(2580);function inPath(e,t){const r=(0,v.join)(t,c.sep);return e.startsWith(r)&&e!==r}async function nodeFileTrace(e,t={}){const r=new Job(t);if(t.readFile)r.readFile=t.readFile;if(t.stat)r.stat=t.stat;if(t.readlink)r.readlink=t.readlink;if(t.resolve)r.resolve=t.resolve;r.ts=true;await Promise.all(e.map((async e=>{const t=(0,c.resolve)(e);await r.emitFile(t,"initial");return r.emitDependency(t)})));const s={fileList:r.fileList,esmFileList:r.esmFileList,reasons:r.reasons,warnings:r.warnings};return s}t.nodeFileTrace=nodeFileTrace;class Job{constructor({base:e=process.cwd(),processCwd:t,exports:r,conditions:s=r||["node"],exportsOnly:a=false,paths:o={},ignore:u,log:f=false,mixedModules:h=false,ts:v=true,analysis:g={},cache:y,fileIOConcurrency:m=1024}){this.reasons=new Map;this.maybeEmitDep=async(e,t,r)=>{let s="";let a;try{s=await this.resolve(e,t,this,r)}catch(o){a=o;try{if(this.ts&&e.endsWith(".js")&&o instanceof d.NotFoundError){const o=e.slice(0,-3)+".ts";s=await this.resolve(o,t,this,r);a=undefined}}catch(e){a=e}}if(a){this.warnings.add(new Error(`Failed to resolve dependency "${e}":\n${a?.message}`));return}if(Array.isArray(s)){for(const e of s){if(e.startsWith("node:"))return;await this.emitDependency(e,t)}}else{if(s.startsWith("node:"))return;await this.emitDependency(s,t)}};this.ts=v;e=(0,c.resolve)(e);this.ignoreFn=e=>{if(e.startsWith(".."+c.sep))return true;return false};if(typeof u==="string")u=[u];if(typeof u==="function"){const e=u;this.ignoreFn=t=>{if(t.startsWith(".."+c.sep))return true;if(e(t))return true;return false}}else if(Array.isArray(u)){const t=u.map((t=>(0,c.relative)(e,(0,c.resolve)(e||process.cwd(),t))));this.ignoreFn=e=>{if(e.startsWith(".."+c.sep))return true;if((0,p.isMatch)(e,t))return true;return false}}this.base=e;this.cwd=(0,c.resolve)(t||e);this.conditions=s;this.exportsOnly=a;const _={};for(const t of Object.keys(o)){const r=o[t].endsWith("/");const s=(0,c.resolve)(e,o[t]);_[t]=s+(r?"/":"")}this.paths=_;this.log=f;this.mixedModules=h;this.cachedFileSystem=new D.CachedFileSystem({cache:y,fileIOConcurrency:m});this.analysis={};if(g!==false){Object.assign(this.analysis,{emitGlobs:true,computeFileReferences:true,evaluatePureExpressions:true},g===true?{}:g)}this.analysisCache=y&&y.analysisCache||new Map;if(y){y.analysisCache=this.analysisCache}this.fileList=new Set;this.esmFileList=new Set;this.processed=new Set;this.warnings=new Set}async readlink(e){return this.cachedFileSystem.readlink(e)}async isFile(e){const t=await this.stat(e);if(t)return t.isFile();return false}async isDir(e){const t=await this.stat(e);if(t)return t.isDirectory();return false}async stat(e){return this.cachedFileSystem.stat(e)}async resolve(e,t,r,s){return(0,d.default)(e,t,r,s)}async readFile(e){return this.cachedFileSystem.readFile(e)}async realpath(e,t,r=new Set){if(r.has(e))throw new Error("Recursive symlink detected resolving "+e);r.add(e);const s=await this.readlink(e);if(s){const a=(0,c.dirname)(e);const o=(0,c.resolve)(a,s);const u=await this.realpath(a,t);if(inPath(e,u))await this.emitFile(e,"resolve",t,true);return this.realpath(o,t,r)}if(!inPath(e,this.base))return e;return(0,v.join)(await this.realpath((0,c.dirname)(e),t,r),(0,c.basename)(e))}async emitFile(e,t,r,s=false){if(!s){e=await this.realpath(e,r)}e=(0,c.relative)(this.base,e);if(r){r=(0,c.relative)(this.base,r)}let a=this.reasons.get(e);if(!a){a={type:[t],ignored:false,parents:new Set};this.reasons.set(e,a)}else if(!a.type.includes(t)){a.type.push(t)}if(r&&this.ignoreFn(e,r)){if(!this.fileList.has(e)&&a){a.ignored=true}return false}if(r){a.parents.add(r)}this.fileList.add(e);return true}async getPjsonBoundary(e){const t=e.indexOf(c.sep);let r;while((r=e.lastIndexOf(c.sep))>t){e=e.slice(0,r);if(await this.isFile(e+c.sep+"package.json"))return e}return undefined}async emitDependency(e,t){if(this.processed.has(e)){if(t){await this.emitFile(e,"dependency",t)}return}this.processed.add(e);const r=await this.emitFile(e,"dependency",t);if(!r)return;if(e.endsWith(".json"))return;if(e.endsWith(".node"))return await(0,h.sharedLibEmit)(e,this);if(e.endsWith(".js")||e.endsWith(".ts")){const t=await this.getPjsonBoundary(e);if(t)await this.emitFile(t+c.sep+"package.json","resolve",e)}let s;const a=this.analysisCache.get(e);if(a){s=a}else{const t=await this.readFile(e);if(t===null)throw new Error("File "+e+" does not exist.");s=await(0,f.default)(e,t.toString(),this);this.analysisCache.set(e,s)}const{deps:o,imports:u,assets:d,isESM:p}=s;if(p){this.esmFileList.add((0,c.relative)(this.base,e))}await Promise.all([...[...d].map((async t=>{const r=(0,c.extname)(t);if(r===".js"||r===".mjs"||r===".node"||r===""||this.ts&&(r===".ts"||r===".tsx")&&t.startsWith(this.base)&&t.slice(this.base.length).indexOf(c.sep+"node_modules"+c.sep)===-1)await this.emitDependency(t,e);else await this.emitFile(t,"asset",e)})),...[...o].map((async t=>this.maybeEmitDep(t,e,!p))),...[...u].map((async t=>this.maybeEmitDep(t,e,false)))])}}t.Job=Job},8440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NotFoundError=void 0;const s=r(1017);async function resolveDependency(e,t,r,a=true){let o;if((0,s.isAbsolute)(e)||e==="."||e===".."||e.startsWith("./")||e.startsWith("../")){const a=e.endsWith("/");o=await resolvePath((0,s.resolve)(t,"..",e)+(a?"/":""),t,r)}else if(e[0]==="#"){o=await packageImportsResolve(e,t,r,a)}else{o=await resolvePackage(e,t,r,a)}if(Array.isArray(o)){return Promise.all(o.map((e=>r.realpath(e,t))))}else if(o.startsWith("node:")){return o}else{return r.realpath(o,t)}}t["default"]=resolveDependency;async function resolvePath(e,t,r){const s=await resolveFile(e,t,r)||await resolveDir(e,t,r);if(!s){throw new NotFoundError(e,t)}return s}async function resolveFile(e,t,r){if(e.endsWith("/"))return undefined;e=await r.realpath(e,t);if(await r.isFile(e))return e;if(r.ts&&e.startsWith(r.base)&&e.slice(r.base.length).indexOf(s.sep+"node_modules"+s.sep)===-1&&await r.isFile(e+".ts"))return e+".ts";if(r.ts&&e.startsWith(r.base)&&e.slice(r.base.length).indexOf(s.sep+"node_modules"+s.sep)===-1&&await r.isFile(e+".tsx"))return e+".tsx";if(await r.isFile(e+".js"))return e+".js";if(await r.isFile(e+".json"))return e+".json";if(await r.isFile(e+".node"))return e+".node";return undefined}async function resolveDir(e,t,r){if(e.endsWith("/"))e=e.slice(0,-1);if(!await r.isDir(e))return;const a=await getPkgCfg(e,r);if(a&&typeof a.main==="string"){const o=await resolveFile((0,s.resolve)(e,a.main),t,r)||await resolveFile((0,s.resolve)(e,a.main,"index"),t,r);if(o){await r.emitFile(e+s.sep+"package.json","resolve",t);return o}}return resolveFile((0,s.resolve)(e,"index"),t,r)}class NotFoundError extends Error{constructor(e,t){super("Cannot find module '"+e+"' loaded from "+t);this.code="MODULE_NOT_FOUND"}}t.NotFoundError=NotFoundError;const a=new Set([...r(8102)._builtinLibs,"constants","module","timers","console","_stream_writable","_stream_readable","_stream_duplex","process","sys"]);function getPkgName(e){const t=e.split("/");if(e[0]==="@"&&t.length>1)return t.length>1?t.slice(0,2).join("/"):null;return t.length?t[0]:null}async function getPkgCfg(e,t){const r=await t.readFile(e+s.sep+"package.json");if(r){try{return JSON.parse(r.toString())}catch(e){}}return undefined}function getExportsTarget(e,t,r){if(typeof e==="string"){return e}else if(e===null){return e}else if(Array.isArray(e)){for(const s of e){const e=getExportsTarget(s,t,r);if(e===null||typeof e==="string"&&e.startsWith("./"))return e}}else if(typeof e==="object"){for(const s of Object.keys(e)){if(s==="default"||s==="require"&&r||s==="import"&&!r||t.includes(s)){const a=getExportsTarget(e[s],t,r);if(a!==undefined)return a}}}return undefined}function resolveExportsImports(e,t,r,s,a,o){let u;if(a){if(!(typeof t==="object"&&!Array.isArray(t)&&t!==null))return undefined;u=t}else if(typeof t==="string"||Array.isArray(t)||t===null||typeof t==="object"&&Object.keys(t).length&&Object.keys(t)[0][0]!=="."){u={".":t}}else{u=t}if(r in u){const t=getExportsTarget(u[r],s.conditions,o);if(typeof t==="string"&&t.startsWith("./"))return e+t.slice(1)}for(const t of Object.keys(u).sort(((e,t)=>t.length-e.length))){if(t.endsWith("*")&&r.startsWith(t.slice(0,-1))){const a=getExportsTarget(u[t],s.conditions,o);if(typeof a==="string"&&a.startsWith("./"))return e+a.slice(1).replace(/\*/g,r.slice(t.length-1))}if(!t.endsWith("/"))continue;if(r.startsWith(t)){const a=getExportsTarget(u[t],s.conditions,o);if(typeof a==="string"&&a.endsWith("/")&&a.startsWith("./"))return e+a.slice(1)+r.slice(t.length)}}return undefined}async function packageImportsResolve(e,t,r,a){if(e!=="#"&&!e.startsWith("#/")&&r.conditions){const o=await r.getPjsonBoundary(t);if(o){const u=await getPkgCfg(o,r);const{imports:c}=u||{};if(u&&c!==null&&c!==undefined){let u=resolveExportsImports(o,c,e,r,true,a);if(u){if(a)u=await resolveFile(u,t,r)||await resolveDir(u,t,r);else if(!await r.isFile(u))throw new NotFoundError(u,t);if(u){await r.emitFile(o+s.sep+"package.json","resolve",t);return u}}}}}throw new NotFoundError(e,t)}async function resolvePackage(e,t,r,o){let u=t;if(a.has(e))return"node:"+e;if(e.startsWith("node:"))return e;const c=getPkgName(e)||"";let f;if(r.conditions){const a=await r.getPjsonBoundary(t);if(a){const u=await getPkgCfg(a,r);const{exports:d}=u||{};if(u&&u.name&&u.name===c&&d!==null&&d!==undefined){f=resolveExportsImports(a,d,"."+e.slice(c.length),r,false,o);if(f){if(o)f=await resolveFile(f,t,r)||await resolveDir(f,t,r);else if(!await r.isFile(f))throw new NotFoundError(f,t)}if(f)await r.emitFile(a+s.sep+"package.json","resolve",t)}}}let d;const p=u.indexOf(s.sep);while((d=u.lastIndexOf(s.sep))>p){u=u.slice(0,d);const a=u+s.sep+"node_modules";const p=await r.stat(a);if(!p||!p.isDirectory())continue;const h=await getPkgCfg(a+s.sep+c,r);const{exports:v}=h||{};if(r.conditions&&v!==undefined&&v!==null&&!f){let u;if(!r.exportsOnly)u=await resolveFile(a+s.sep+e,t,r)||await resolveDir(a+s.sep+e,t,r);let f=resolveExportsImports(a+s.sep+c,v,"."+e.slice(c.length),r,false,o);if(f){if(o)f=await resolveFile(f,t,r)||await resolveDir(f,t,r);else if(!await r.isFile(f))throw new NotFoundError(f,t)}if(f){await r.emitFile(a+s.sep+c+s.sep+"package.json","resolve",t);if(u&&u!==f)return[f,u];return f}if(u)return u}else{const o=await resolveFile(a+s.sep+e,t,r)||await resolveDir(a+s.sep+e,t,r);if(o){if(f&&f!==o)return[o,f];return o}}}if(f)return f;if(Object.hasOwnProperty.call(r.paths,e)){return r.paths[e]}for(const s of Object.keys(r.paths)){if(s.endsWith("/")&&e.startsWith(s)){const a=r.paths[s]+e.slice(s.length);const o=await resolveFile(a,t,r)||await resolveDir(a,t,r);if(!o){throw new NotFoundError(e,t)}return o}}throw new NotFoundError(e,t)}},2721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isLoop=t.isVarLoop=t.isIdentifierRead=void 0;function isIdentifierRead(e,t){switch(t.type){case"ObjectPattern":case"ArrayPattern":return false;case"AssignmentExpression":return t.right===e;case"MemberExpression":return t.computed||e===t.object;case"Property":return e===t.value;case"MethodDefinition":return false;case"VariableDeclarator":return t.id!==e;case"ExportSpecifier":return false;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":return false;default:return true}}t.isIdentifierRead=isIdentifierRead;function isVarLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"}t.isVarLoop=isVarLoop;function isLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="WhileStatement"||e.type==="DoWhileStatement"}t.isLoop=isLoop},709:function(__unused_webpack_module,exports,__nccwpck_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.nbind=exports.pregyp=void 0;const path_1=__importDefault(__nccwpck_require__(1017));const graceful_fs_1=__importDefault(__nccwpck_require__(6450));const versioning=__nccwpck_require__(2821);const napi=__nccwpck_require__(5977);const pregypFind=(e,t)=>{const r=JSON.parse(graceful_fs_1.default.readFileSync(e).toString());versioning.validate_config(r,t);var s;if(napi.get_napi_build_versions(r,t)){s=napi.get_best_napi_build_version(r,t)}t=t||{};if(!t.module_root)t.module_root=path_1.default.dirname(e);var a=versioning.evaluate(r,t,s);return a.module};exports.pregyp={default:{find:pregypFind},find:pregypFind};function makeModulePathList(e,t){return[[e,t],[e,"build",t],[e,"build","Debug",t],[e,"build","Release",t],[e,"out","Debug",t],[e,"Debug",t],[e,"out","Release",t],[e,"Release",t],[e,"build","default",t],[e,process.env["NODE_BINDINGS_COMPILED_DIR"]||"compiled",process.versions.node,process.platform,process.arch,t]]}function findCompiledModule(basePath,specList){var resolvedList=[];var ext=path_1.default.extname(basePath);for(var _i=0,specList_1=specList;_i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPackageName=t.getPackageBase=void 0;const r=/^(@[^\\\/]+[\\\/])?[^\\\/]+/;function getPackageBase(e){const t=e.lastIndexOf("node_modules");if(t!==-1&&(e[t-1]==="/"||e[t-1]==="\\")&&(e[t+12]==="/"||e[t+12]==="\\")){const s=e.slice(t+13).match(r);if(s)return e.slice(0,t+13+s[0].length)}return undefined}t.getPackageBase=getPackageBase;function getPackageName(e){const t=e.lastIndexOf("node_modules");if(t!==-1&&(e[t-1]==="/"||e[t-1]==="\\")&&(e[t+12]==="/"||e[t+12]==="\\")){const s=e.slice(t+13).match(r);if(s&&s.length>0){return s[0].replace(/\\/g,"/")}}return undefined}t.getPackageName=getPackageName},4006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeWildcardRequire=t.normalizeDefaultRequire=void 0;function normalizeDefaultRequire(e){if(e&&e.__esModule)return e;return{default:e}}t.normalizeDefaultRequire=normalizeDefaultRequire;const r=Object.prototype.hasOwnProperty;function normalizeWildcardRequire(e){if(e&&e.__esModule)return e;const t={};for(const s in e){if(!r.call(e,s))continue;t[s]=e[s]}t["default"]=e;return t}t.normalizeWildcardRequire=normalizeWildcardRequire},1767:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.sharedLibEmit=void 0;const a=s(r(2037));const o=s(r(3535));const u=r(2705);let c="";switch(a.default.platform()){case"darwin":c="/**/*.@(dylib|so?(.*))";break;case"win32":c="/**/*.dll";break;default:c="/**/*.so?(.*)"}async function sharedLibEmit(e,t){const r=(0,u.getPackageBase)(e);if(!r)return;const s=await new Promise(((e,t)=>(0,o.default)(r+c,{ignore:r+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));await Promise.all(s.map((r=>t.emitFile(r,"sharedlib",e))))}t.sharedLibEmit=sharedLibEmit},8752:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=r(1017);const o=s(r(8440));const u=r(2705);const c=r(6450);const f={"@generated/photon"({id:e,emitAssetDirectory:t}){if(e.endsWith("@generated/photon/index.js")){t((0,a.resolve)((0,a.dirname)(e),"runtime/"))}},argon2({id:e,emitAssetDirectory:t}){if(e.endsWith("argon2/argon2.js")){t((0,a.resolve)((0,a.dirname)(e),"build","Release"));t((0,a.resolve)((0,a.dirname)(e),"prebuilds"));t((0,a.resolve)((0,a.dirname)(e),"lib","binding"))}},bull({id:e,emitAssetDirectory:t}){if(e.endsWith("bull/lib/commands/index.js")){t((0,a.resolve)((0,a.dirname)(e)))}},camaro({id:e,emitAsset:t}){if(e.endsWith("camaro/dist/camaro.js")){t((0,a.resolve)((0,a.dirname)(e),"camaro.wasm"))}},esbuild({id:e,emitAssetDirectory:t}){if(e.endsWith("esbuild/lib/main.js")){const r=(0,a.resolve)(e,"..","..","package.json");const s=JSON.parse((0,c.readFileSync)(r,"utf8"));for(const r of Object.keys(s.optionalDependencies||{})){const s=(0,a.resolve)(e,"..","..","..",r);t(s)}}},"google-gax"({id:e,ast:t,emitAssetDirectory:r}){if(e.endsWith("google-gax/build/src/grpc.js")){for(const s of t.body){if(s.type==="VariableDeclaration"&&s.declarations[0].id.type==="Identifier"&&s.declarations[0].id.name==="googleProtoFilesDir"){r((0,a.resolve)((0,a.dirname)(e),"../../../google-proto-files"))}}}},oracledb({id:e,ast:t,emitAsset:r}){if(e.endsWith("oracledb/lib/oracledb.js")){for(const s of t.body){if(s.type==="ForStatement"&&"body"in s.body&&s.body.body&&Array.isArray(s.body.body)&&s.body.body[0]&&s.body.body[0].type==="TryStatement"&&s.body.body[0].block.body[0]&&s.body.body[0].block.body[0].type==="ExpressionStatement"&&s.body.body[0].block.body[0].expression.type==="AssignmentExpression"&&s.body.body[0].block.body[0].expression.operator==="="&&s.body.body[0].block.body[0].expression.left.type==="Identifier"&&s.body.body[0].block.body[0].expression.left.name==="oracledbCLib"&&s.body.body[0].block.body[0].expression.right.type==="CallExpression"&&s.body.body[0].block.body[0].expression.right.callee.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.callee.name==="require"&&s.body.body[0].block.body[0].expression.right.arguments.length===1&&s.body.body[0].block.body[0].expression.right.arguments[0].type==="MemberExpression"&&s.body.body[0].block.body[0].expression.right.arguments[0].computed===true&&s.body.body[0].block.body[0].expression.right.arguments[0].object.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.arguments[0].object.name==="binaryLocations"&&s.body.body[0].block.body[0].expression.right.arguments[0].property.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.arguments[0].property.name==="i"){s.body.body[0].block.body[0].expression.right.arguments=[{type:"Literal",value:"_"}];const t=global._unit?"3.0.0":JSON.parse((0,c.readFileSync)(e.slice(0,-15)+"package.json","utf8")).version;const o=Number(t.slice(0,t.indexOf(".")))>=4;const u="oracledb-"+(o?t:"abi"+process.versions.modules)+"-"+process.platform+"-"+process.arch+".node";r((0,a.resolve)(e,"../../build/Release/"+u))}}}},"phantomjs-prebuilt"({id:e,emitAssetDirectory:t}){if(e.endsWith("phantomjs-prebuilt/lib/phantomjs.js")){t((0,a.resolve)((0,a.dirname)(e),"..","bin"))}},"remark-prism"({id:e,emitAssetDirectory:t}){const r="remark-prism/src/highlight.js";if(e.endsWith(r)){try{const s=e.slice(0,-r.length);t((0,a.resolve)(s,"prismjs","components"))}catch(e){}}},semver({id:e,emitAsset:t}){if(e.endsWith("semver/index.js")){t((0,a.resolve)(e.replace("index.js","preload.js")))}},"socket.io":async function({id:e,ast:t,job:r}){if(e.endsWith("socket.io/lib/index.js")){async function replaceResolvePathStatement(t){if(t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&t.expression.operator==="="&&t.expression.right.type==="CallExpression"&&t.expression.right.callee.type==="Identifier"&&t.expression.right.callee.name==="read"&&t.expression.right.arguments.length>=1&&t.expression.right.arguments[0].type==="CallExpression"&&t.expression.right.arguments[0].callee.type==="Identifier"&&t.expression.right.arguments[0].callee.name==="resolvePath"&&t.expression.right.arguments[0].arguments.length===1&&t.expression.right.arguments[0].arguments[0].type==="Literal"){const s=t.expression.right.arguments[0].arguments[0].value;let u;try{const t=await(0,o.default)(String(s),e,r);if(typeof t==="string"){u=t}else{return undefined}}catch(e){return undefined}const c="/"+(0,a.relative)((0,a.dirname)(e),u);t.expression.right.arguments[0]={type:"BinaryExpression",start:t.expression.right.arguments[0].start,end:t.expression.right.arguments[0].end,operator:"+",left:{type:"Identifier",name:"__dirname"},right:{type:"Literal",value:c,raw:JSON.stringify(c)}}}return undefined}for(const e of t.body){if(e.type==="ExpressionStatement"&&e.expression.type==="AssignmentExpression"&&e.expression.operator==="="&&e.expression.left.type==="MemberExpression"&&e.expression.left.object.type==="MemberExpression"&&e.expression.left.object.object.type==="Identifier"&&e.expression.left.object.object.name==="Server"&&e.expression.left.object.property.type==="Identifier"&&e.expression.left.object.property.name==="prototype"&&e.expression.left.property.type==="Identifier"&&e.expression.left.property.name==="serveClient"&&e.expression.right.type==="FunctionExpression"){for(const t of e.expression.right.body.body){if(t.type==="IfStatement"&&t.consequent&&"body"in t.consequent&&t.consequent.body){const e=t.consequent.body;let r=false;if(Array.isArray(e)&&e[0]&&e[0].type==="ExpressionStatement"){r=await replaceResolvePathStatement(e[0])}if(Array.isArray(e)&&e[1]&&e[1].type==="TryStatement"&&e[1].block.body&&e[1].block.body[0]){r=await replaceResolvePathStatement(e[1].block.body[0])||r}return}}}}}},typescript({id:e,emitAssetDirectory:t}){if(e.endsWith("typescript/lib/tsc.js")){t((0,a.resolve)(e,"../"))}},"uglify-es"({id:e,emitAsset:t}){if(e.endsWith("uglify-es/tools/node.js")){t((0,a.resolve)(e,"../../lib/utils.js"));t((0,a.resolve)(e,"../../lib/ast.js"));t((0,a.resolve)(e,"../../lib/parse.js"));t((0,a.resolve)(e,"../../lib/transform.js"));t((0,a.resolve)(e,"../../lib/scope.js"));t((0,a.resolve)(e,"../../lib/output.js"));t((0,a.resolve)(e,"../../lib/compress.js"));t((0,a.resolve)(e,"../../lib/sourcemap.js"));t((0,a.resolve)(e,"../../lib/mozilla-ast.js"));t((0,a.resolve)(e,"../../lib/propmangle.js"));t((0,a.resolve)(e,"../../lib/minify.js"));t((0,a.resolve)(e,"../exports.js"))}},"uglify-js"({id:e,emitAsset:t,emitAssetDirectory:r}){if(e.endsWith("uglify-js/tools/node.js")){r((0,a.resolve)(e,"../../lib"));t((0,a.resolve)(e,"../exports.js"))}},"playwright-core"({id:e,emitAsset:t}){if(e.endsWith("playwright-core/index.js")){t((0,a.resolve)((0,a.dirname)(e),"browsers.json"))}},"geo-tz"({id:e,emitAsset:t}){if(e.endsWith("geo-tz/dist/geo-tz.js")){t((0,a.resolve)((0,a.dirname)(e),"../data/geo.dat"))}},pixelmatch({id:e,emitDependency:t}){if(e.endsWith("pixelmatch/index.js")){t((0,a.resolve)((0,a.dirname)(e),"bin/pixelmatch"))}}};async function handleSpecialCases({id:e,ast:t,emitDependency:r,emitAsset:s,emitAssetDirectory:a,job:o}){const c=(0,u.getPackageName)(e);const d=f[c||""];e=e.replace(/\\/g,"/");if(d)await d({id:e,ast:t,emitDependency:r,emitAsset:s,emitAssetDirectory:a,job:o})}t["default"]=handleSpecialCases},8868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wildcardRegEx=t.WILDCARD=t.FUNCTION=t.UNKNOWN=t.evaluate=void 0;const s=r(7310);async function evaluate(e,t={},r=true){const s={computeBranches:r,vars:t};return walk(e);function walk(e){const t=a[e.type];if(t){return t.call(s,e,walk)}return undefined}}t.evaluate=evaluate;t.UNKNOWN=Symbol();t.FUNCTION=Symbol();t.WILDCARD="";t.wildcardRegEx=/\x1a/g;function countWildcards(e){t.wildcardRegEx.lastIndex=0;let r=0;while(t.wildcardRegEx.exec(e))r++;return r}const a={ArrayExpression:async function ArrayExpression(e,t){const r=[];for(let s=0,a=e.elements.length;ss.value}}}return undefined},BinaryExpression:async function BinaryExpression(e,r){const s=e.operator;let a=await r(e.left);if(!a&&s!=="+")return;let o=await r(e.right);if(!a&&!o)return;if(!a){if(this.computeBranches&&o&&"value"in o&&typeof o.value==="string")return{value:t.WILDCARD+o.value,wildcards:[e.left,...o.wildcards||[]]};return}if(!o){if(this.computeBranches&&s==="+"){if(a&&"value"in a&&typeof a.value==="string")return{value:a.value+t.WILDCARD,wildcards:[...a.wildcards||[],e.right]}}if(!("test"in a)&&s==="||"&&a.value)return a;return}if("test"in a&&"value"in o){const e=o.value;if(s==="==")return{test:a.test,then:a.then==e,else:a.else==e};if(s==="===")return{test:a.test,then:a.then===e,else:a.else===e};if(s==="!=")return{test:a.test,then:a.then!=e,else:a.else!=e};if(s==="!==")return{test:a.test,then:a.then!==e,else:a.else!==e};if(s==="+")return{test:a.test,then:a.then+e,else:a.else+e};if(s==="-")return{test:a.test,then:a.then-e,else:a.else-e};if(s==="*")return{test:a.test,then:a.then*e,else:a.else*e};if(s==="/")return{test:a.test,then:a.then/e,else:a.else/e};if(s==="%")return{test:a.test,then:a.then%e,else:a.else%e};if(s==="<")return{test:a.test,then:a.then")return{test:a.test,then:a.then>e,else:a.else>e};if(s===">=")return{test:a.test,then:a.then>=e,else:a.else>=e};if(s==="|")return{test:a.test,then:a.then|e,else:a.else|e};if(s==="&")return{test:a.test,then:a.then&e,else:a.else&e};if(s==="^")return{test:a.test,then:a.then^e,else:a.else^e};if(s==="&&")return{test:a.test,then:a.then&&e,else:a.else&&e};if(s==="||")return{test:a.test,then:a.then||e,else:a.else||e}}else if("test"in o&&"value"in a){const e=a.value;if(s==="==")return{test:o.test,then:e==o.then,else:e==o.else};if(s==="===")return{test:o.test,then:e===o.then,else:e===o.else};if(s==="!=")return{test:o.test,then:e!=o.then,else:e!=o.else};if(s==="!==")return{test:o.test,then:e!==o.then,else:e!==o.else};if(s==="+")return{test:o.test,then:e+o.then,else:e+o.else};if(s==="-")return{test:o.test,then:e-o.then,else:e-o.else};if(s==="*")return{test:o.test,then:e*o.then,else:e*o.else};if(s==="/")return{test:o.test,then:e/o.then,else:e/o.else};if(s==="%")return{test:o.test,then:e%o.then,else:e%o.else};if(s==="<")return{test:o.test,then:e")return{test:o.test,then:e>o.then,else:e>o.else};if(s===">=")return{test:o.test,then:e>=o.then,else:e>=o.else};if(s==="|")return{test:o.test,then:e|o.then,else:e|o.else};if(s==="&")return{test:o.test,then:e&o.then,else:e&o.else};if(s==="^")return{test:o.test,then:e^o.then,else:e^o.else};if(s==="&&")return{test:o.test,then:e&&o.then,else:a&&o.else};if(s==="||")return{test:o.test,then:e||o.then,else:a||o.else}}else if("value"in a&&"value"in o){if(s==="==")return{value:a.value==o.value};if(s==="===")return{value:a.value===o.value};if(s==="!=")return{value:a.value!=o.value};if(s==="!==")return{value:a.value!==o.value};if(s==="+"){const e={value:a.value+o.value};let t=[];if("wildcards"in a&&a.wildcards){t=t.concat(a.wildcards)}if("wildcards"in o&&o.wildcards){t=t.concat(o.wildcards)}if(t.length>0){e.wildcards=t}return e}if(s==="-")return{value:a.value-o.value};if(s==="*")return{value:a.value*o.value};if(s==="/")return{value:a.value/o.value};if(s==="%")return{value:a.value%o.value};if(s==="<")return{value:a.value")return{value:a.value>o.value};if(s===">=")return{value:a.value>=o.value};if(s==="|")return{value:a.value|o.value};if(s==="&")return{value:a.value&o.value};if(s==="^")return{value:a.value^o.value};if(s==="&&")return{value:a.value&&o.value};if(s==="||")return{value:a.value||o.value}}return},CallExpression:async function CallExpression(e,r){const s=await r(e.callee);if(!s||"test"in s)return;let a=s.value;if(typeof a==="object"&&a!==null)a=a[t.FUNCTION];if(typeof a!=="function")return;let o=null;if(e.callee.object){o=await r(e.callee.object);o=o&&"value"in o&&o.value?o.value:null}let u;let c=[];let f;let d=e.arguments.length>0&&e.callee.property?.name!=="concat";const p=[];for(let s=0,a=e.arguments.length;sp.push(e)))}else{if(!this.computeBranches)return;a={value:t.WILDCARD};p.push(e.arguments[s])}if("test"in a){if(p.length)return;if(u)return;u=a.test;f=c.concat([]);c.push(a.then);f.push(a.else)}else{c.push(a.value);if(f)f.push(a.value)}}if(d)return;try{const e=await a.apply(o,c);if(e===t.UNKNOWN)return;if(!u){if(p.length){if(typeof e!=="string"||countWildcards(e)!==p.length)return;return{value:e,wildcards:p}}return{value:e}}const r=await a.apply(o,f);if(e===t.UNKNOWN)return;return{test:u,then:e,else:r}}catch(e){return}},ConditionalExpression:async function ConditionalExpression(e,t){const r=await t(e.test);if(r&&"value"in r)return r.value?t(e.consequent):t(e.alternate);if(!this.computeBranches)return;const s=await t(e.consequent);if(!s||"wildcards"in s||"test"in s)return;const a=await t(e.alternate);if(!a||"wildcards"in a||"test"in a)return;return{test:e.test,then:s.value,else:a.value}},ExpressionStatement:async function ExpressionStatement(e,t){return t(e.expression)},Identifier:async function Identifier(e,t){if(Object.hasOwnProperty.call(this.vars,e.name))return this.vars[e.name];return undefined},Literal:async function Literal(e,t){return{value:e.value}},MemberExpression:async function MemberExpression(e,r){const s=await r(e.object);if(!s||"test"in s||typeof s.value==="function"){return undefined}if(e.property.type==="Identifier"){if(typeof s.value==="string"&&e.property.name==="concat"){return{value:{[t.FUNCTION]:(...e)=>s.value.concat(e)}}}if(typeof s.value==="object"&&s.value!==null){const a=s.value;if(e.computed){const o=await r(e.property);if(o&&"value"in o&&o.value){const e=a[o.value];if(e===t.UNKNOWN)return undefined;return{value:e}}if(!a[t.UNKNOWN]&&Object.keys(s).length===0){return{value:undefined}}}else if(e.property.name in a){const r=a[e.property.name];if(r===t.UNKNOWN)return undefined;return{value:r}}else if(a[t.UNKNOWN])return undefined}else{return{value:undefined}}}const a=await r(e.property);if(!a||"test"in a)return undefined;if(typeof s.value==="object"&&s.value!==null){if(a.value in s.value){const e=s.value[a.value];if(e===t.UNKNOWN)return undefined;return{value:e}}else if(s.value[t.UNKNOWN]){return undefined}}else{return{value:undefined}}return undefined},MetaProperty:async function MetaProperty(e){if(e.meta.name==="import"&&e.property.name==="meta")return{value:this.vars["import.meta"]};return undefined},NewExpression:async function NewExpression(e,t){const r=await t(e.callee);if(r&&"value"in r&&r.value===s.URL&&e.arguments.length){const r=await t(e.arguments[0]);if(!r)return undefined;let a=null;if(e.arguments[1]){a=await t(e.arguments[1]);if(!a||!("value"in a))return undefined}if("value"in r){if(a){try{return{value:new s.URL(r.value,a.value)}}catch{return undefined}}try{return{value:new s.URL(r.value)}}catch{return undefined}}else{const e=r.test;if(a){try{return{test:e,then:new s.URL(r.then,a.value),else:new s.URL(r.else,a.value)}}catch{return undefined}}try{return{test:e,then:new s.URL(r.then),else:new s.URL(r.else)}}catch{return undefined}}}return undefined},ObjectExpression:async function ObjectExpression(e,r){const s={};for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.handleWrappers=void 0;const s=r(3982);function isUndefinedOrVoid(e){return e.type==="Identifier"&&e.name==="undefined"||e.type==="UnaryExpression"&&e.operator==="void"&&e.argument.type==="Literal"&&e.argument.value===0}function handleWrappers(e){let t;if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="UnaryExpression"&&e.body[0].expression.operator==="!"&&e.body[0].expression.argument.type==="CallExpression"&&e.body[0].expression.argument.callee.type==="FunctionExpression"&&e.body[0].expression.argument.arguments.length===1)t=e.body[0].expression.argument;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="CallExpression"&&e.body[0].expression.callee.type==="FunctionExpression"&&(e.body[0].expression.arguments.length===1||e.body[0].expression.arguments.length===0))t=e.body[0].expression;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="AssignmentExpression"&&e.body[0].expression.left.type==="MemberExpression"&&e.body[0].expression.left.object.type==="Identifier"&&e.body[0].expression.left.object.name==="module"&&e.body[0].expression.left.property.type==="Identifier"&&e.body[0].expression.left.property.name==="exports"&&e.body[0].expression.right.type==="CallExpression"&&e.body[0].expression.right.callee.type==="FunctionExpression"&&e.body[0].expression.right.arguments.length===1)t=e.body[0].expression.right;if(t){let e;let r;if(t.arguments[0]&&t.arguments[0].type==="ConditionalExpression"&&t.arguments[0].test.type==="LogicalExpression"&&t.arguments[0].test.operator==="&&"&&t.arguments[0].test.left.type==="BinaryExpression"&&t.arguments[0].test.left.operator==="==="&&t.arguments[0].test.left.left.type==="UnaryExpression"&&t.arguments[0].test.left.left.operator==="typeof"&&"name"in t.arguments[0].test.left.left.argument&&t.arguments[0].test.left.left.argument.name==="define"&&t.arguments[0].test.left.right.type==="Literal"&&t.arguments[0].test.left.right.value==="function"&&t.arguments[0].test.right.type==="MemberExpression"&&t.arguments[0].test.right.object.type==="Identifier"&&t.arguments[0].test.right.property.type==="Identifier"&&t.arguments[0].test.right.property.name==="amd"&&t.arguments[0].test.right.computed===false&&t.arguments[0].alternate.type==="FunctionExpression"&&t.arguments[0].alternate.params.length===1&&t.arguments[0].alternate.params[0].type==="Identifier"&&t.arguments[0].alternate.body.body.length===1&&t.arguments[0].alternate.body.body[0].type==="ExpressionStatement"&&t.arguments[0].alternate.body.body[0].expression.type==="AssignmentExpression"&&t.arguments[0].alternate.body.body[0].expression.left.type==="MemberExpression"&&t.arguments[0].alternate.body.body[0].expression.left.object.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.left.object.name==="module"&&t.arguments[0].alternate.body.body[0].expression.left.property.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.left.property.name==="exports"&&t.arguments[0].alternate.body.body[0].expression.left.computed===false&&t.arguments[0].alternate.body.body[0].expression.right.type==="CallExpression"&&t.arguments[0].alternate.body.body[0].expression.right.callee.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.right.callee.name===t.arguments[0].alternate.params[0].name&&"body"in t.callee&&"body"in t.callee.body&&Array.isArray(t.callee.body.body)&&t.arguments[0].alternate.body.body[0].expression.right.arguments.length===1&&t.arguments[0].alternate.body.body[0].expression.right.arguments[0].type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.right.arguments[0].name==="require"){let e=t.callee.body.body;if(e[0].type==="ExpressionStatement"&&e[0].expression.type==="Literal"&&e[0].expression.value==="use strict"){e=e.slice(1)}if(e.length===1&&e[0].type==="ExpressionStatement"&&e[0].expression.type==="CallExpression"&&e[0].expression.callee.type==="Identifier"&&e[0].expression.callee.name===t.arguments[0].test.right.object.name&&e[0].expression.arguments.length===1&&e[0].expression.arguments[0].type==="FunctionExpression"&&e[0].expression.arguments[0].params.length===1&&e[0].expression.arguments[0].params[0].type==="Identifier"&&e[0].expression.arguments[0].params[0].name==="require"){const t=e[0].expression.arguments[0];t.params=[];try{delete t.scope.declarations.require}catch(e){}}}else if(t.arguments[0]&&t.arguments[0].type==="FunctionExpression"&&t.arguments[0].params.length===0&&(t.arguments[0].body.body.length===1||t.arguments[0].body.body.length===2&&t.arguments[0].body.body[0].type==="VariableDeclaration"&&t.arguments[0].body.body[0].declarations.length===3&&t.arguments[0].body.body[0].declarations.every((e=>e.init===null&&e.id.type==="Identifier")))&&t.arguments[0].body.body[t.arguments[0].body.body.length-1].type==="ReturnStatement"&&(e=t.arguments[0].body.body[t.arguments[0].body.body.length-1])&&e.argument?.type==="CallExpression"&&e.argument.arguments.length&&e.argument.arguments.every((e=>e&&e.type==="Literal"&&typeof e.value==="number"))&&e.argument.callee.type==="CallExpression"&&(e.argument.callee.callee.type==="FunctionExpression"||e.argument.callee.callee.type==="CallExpression"&&e.argument.callee.callee.callee.type==="FunctionExpression"&&e.argument.callee.callee.arguments.length===0)&&e.argument.callee.arguments.length===3&&e.argument.callee.arguments[0].type==="ObjectExpression"&&e.argument.callee.arguments[1].type==="ObjectExpression"&&e.argument.callee.arguments[2].type==="ArrayExpression"){const t=e.argument.callee.arguments[0].properties;const r={};if(t.every((e=>{if(e.type!=="Property"||e.computed!==false||e.key.type!=="Literal"||typeof e.key.value!=="number"||e.value.type!=="ArrayExpression"||e.value.elements.length!==2||!e.value.elements[0]||!e.value.elements[1]||e.value.elements[0].type!=="FunctionExpression"||e.value.elements[1].type!=="ObjectExpression"){return false}const t=e.value.elements[1].properties;for(const e of t){if(e.type!=="Property"||e.value.type!=="Identifier"&&e.value.type!=="Literal"&&!isUndefinedOrVoid(e.value)||!(e.key.type==="Literal"&&typeof e.key.value==="string"||e.key.type==="Identifier")||e.computed){return false}if(isUndefinedOrVoid(e.value)){if(e.key.type==="Identifier"){r[e.key.name]={type:"Literal",start:e.key.start,end:e.key.end,value:e.key.name,raw:JSON.stringify(e.key.name)}}else if(e.key.type==="Literal"){r[String(e.key.value)]=e.key}}}return true}))){const t=Object.keys(r);const s=e.argument.callee.arguments[1];s.properties=t.map((e=>({type:"Property",method:false,shorthand:false,computed:false,kind:"init",key:r[e],value:{type:"ObjectExpression",properties:[{type:"Property",kind:"init",method:false,shorthand:false,computed:false,key:{type:"Identifier",name:"exports"},value:{type:"CallExpression",optional:false,callee:{type:"Identifier",name:"require"},arguments:[r[e]]}}]}})))}}else if(t.arguments[0]&&t.arguments[0].type==="FunctionExpression"&&t.arguments[0].params.length===2&&t.arguments[0].params[0].type==="Identifier"&&t.arguments[0].params[1].type==="Identifier"&&"body"in t.callee&&"body"in t.callee.body&&Array.isArray(t.callee.body.body)&&t.callee.body.body.length===1){const e=t.callee.body.body[0];if(e.type==="IfStatement"&&e.test.type==="LogicalExpression"&&e.test.operator==="&&"&&e.test.left.type==="BinaryExpression"&&e.test.left.left.type==="UnaryExpression"&&e.test.left.left.operator==="typeof"&&e.test.left.left.argument.type==="Identifier"&&e.test.left.left.argument.name==="module"&&e.test.left.right.type==="Literal"&&e.test.left.right.value==="object"&&e.test.right.type==="BinaryExpression"&&e.test.right.left.type==="UnaryExpression"&&e.test.right.left.operator==="typeof"&&e.test.right.left.argument.type==="MemberExpression"&&e.test.right.left.argument.object.type==="Identifier"&&e.test.right.left.argument.object.name==="module"&&e.test.right.left.argument.property.type==="Identifier"&&e.test.right.left.argument.property.name==="exports"&&e.test.right.right.type==="Literal"&&e.test.right.right.value==="object"&&e.consequent.type==="BlockStatement"&&e.consequent.body.length>0){let r;if(e.consequent.body[0].type==="VariableDeclaration"&&e.consequent.body[0].declarations[0].init&&e.consequent.body[0].declarations[0].init.type==="CallExpression")r=e.consequent.body[0].declarations[0].init;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="CallExpression")r=e.consequent.body[0].expression;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="AssignmentExpression"&&e.consequent.body[0].expression.operator==="="&&e.consequent.body[0].expression.right.type==="CallExpression")r=e.consequent.body[0].expression.right;if(r&&r.callee.type==="Identifier"&&"params"in t.callee&&t.callee.params.length>0&&"name"in t.callee.params[0]&&r.callee.name===t.callee.params[0].name&&r.arguments.length===2&&r.arguments[0].type==="Identifier"&&r.arguments[0].name==="require"&&r.arguments[1].type==="Identifier"&&r.arguments[1].name==="exports"){const e=t.arguments[0];e.params=[];try{const t=e.scope;delete t.declarations.require;delete t.declarations.exports}catch(e){}}}}else if(t.callee.type==="FunctionExpression"&&t.callee.body.body.length>2&&t.callee.body.body[0].type==="VariableDeclaration"&&t.callee.body.body[0].declarations.length===1&&t.callee.body.body[0].declarations[0].type==="VariableDeclarator"&&t.callee.body.body[0].declarations[0].id.type==="Identifier"&&t.callee.body.body[0].declarations[0].init&&(t.callee.body.body[0].declarations[0].init.type==="ObjectExpression"&&t.callee.body.body[0].declarations[0].init.properties.length===0||t.callee.body.body[0].declarations[0].init.type==="CallExpression"&&t.callee.body.body[0].declarations[0].init.arguments.length===1)&&(t.callee.body.body[1]&&t.callee.body.body[1].type==="FunctionDeclaration"&&t.callee.body.body[1].params.length===1&&t.callee.body.body[1].body.body.length>=3||t.callee.body.body[2]&&t.callee.body.body[2].type==="FunctionDeclaration"&&t.callee.body.body[2].params.length===1&&t.callee.body.body[2].body.body.length>=3)&&(t.arguments[0]&&(t.arguments[0].type==="ArrayExpression"&&(r=t.arguments[0])&&t.arguments[0].elements.length>0&&t.arguments[0].elements.every((e=>e&&e.type==="FunctionExpression"))||t.arguments[0].type==="ObjectExpression"&&(r=t.arguments[0])&&t.arguments[0].properties&&t.arguments[0].properties.length>0&&t.arguments[0].properties.every((e=>e&&e.type==="Property"&&!e.computed&&e.key&&e.key.type==="Literal"&&(typeof e.key.value==="string"||typeof e.key.value==="number")&&e.value&&e.value.type==="FunctionExpression"))))||t.arguments.length===0&&t.callee.type==="FunctionExpression"&&t.callee.params.length===0&&t.callee.body.type==="BlockStatement"&&t.callee.body.body.length>5&&t.callee.body.body[0].type==="VariableDeclaration"&&t.callee.body.body[0].declarations.length===1&&t.callee.body.body[0].declarations[0].id.type==="Identifier"&&t.callee.body.body[1].type==="ExpressionStatement"&&t.callee.body.body[1].expression.type==="AssignmentExpression"&&t.callee.body.body[2].type==="ExpressionStatement"&&t.callee.body.body[2].expression.type==="AssignmentExpression"&&t.callee.body.body[3].type==="ExpressionStatement"&&t.callee.body.body[3].expression.type==="AssignmentExpression"&&t.callee.body.body[3].expression.left.type==="MemberExpression"&&t.callee.body.body[3].expression.left.object.type==="Identifier"&&t.callee.body.body[3].expression.left.object.name===t.callee.body.body[0].declarations[0].id.name&&t.callee.body.body[3].expression.left.property.type==="Identifier"&&t.callee.body.body[3].expression.left.property.name==="modules"&&t.callee.body.body[3].expression.right.type==="ObjectExpression"&&t.callee.body.body[3].expression.right.properties.every((e=>e&&e.type==="Property"&&!e.computed&&e.key&&e.key.type==="Literal"&&(typeof e.key.value==="string"||typeof e.key.value==="number")&&e.value&&e.value.type==="FunctionExpression"))&&(r=t.callee.body.body[3].expression.right)&&(t.callee.body.body[4].type==="VariableDeclaration"&&t.callee.body.body[4].declarations.length===1&&t.callee.body.body[4].declarations[0].init&&t.callee.body.body[4].declarations[0].init.type==="CallExpression"&&t.callee.body.body[4].declarations[0].init.callee.type==="Identifier"&&t.callee.body.body[4].declarations[0].init.callee.name==="require"||t.callee.body.body[5].type==="VariableDeclaration"&&t.callee.body.body[5].declarations.length===1&&t.callee.body.body[5].declarations[0].init&&t.callee.body.body[5].declarations[0].init.type==="CallExpression"&&t.callee.body.body[5].declarations[0].init.callee.type==="Identifier"&&t.callee.body.body[5].declarations[0].init.callee.name==="require")){const e=new Map;let t;if(r.type==="ArrayExpression")t=r.elements.filter((e=>e?.type==="FunctionExpression")).map(((e,t)=>[String(t),e]));else t=r.properties.map((e=>[String(e.key.value),e.value]));for(const[r,s]of t){const t=s.body.body.length===1?s.body.body[0]:(s.body.body.length===2||s.body.body.length===3&&s.body.body[2].type==="EmptyStatement")&&s.body.body[0].type==="ExpressionStatement"&&s.body.body[0].expression.type==="Literal"&&s.body.body[0].expression.value==="use strict"?s.body.body[1]:null;if(t&&t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&t.expression.operator==="="&&t.expression.left.type==="MemberExpression"&&t.expression.left.object.type==="Identifier"&&"params"in s&&s.params.length>0&&"name"in s.params[0]&&t.expression.left.object.name===s.params[0].name&&t.expression.left.property.type==="Identifier"&&t.expression.left.property.name==="exports"&&t.expression.right.type==="CallExpression"&&t.expression.right.callee.type==="Identifier"&&t.expression.right.callee.name==="require"&&t.expression.right.arguments.length===1&&t.expression.right.arguments[0].type==="Literal"){e.set(r,t.expression.right.arguments[0].value)}}for(const[,r]of t){if("params"in r&&r.params.length===3&&r.params[2].type==="Identifier"){const t=new Map;(0,s.walk)(r.body,{enter(s,a){const o=s;const u=a;if(o.type==="CallExpression"&&o.callee.type==="Identifier"&&"name"in r.params[2]&&o.callee.name===r.params[2].name&&o.arguments.length===1&&o.arguments[0].type==="Literal"){const r=e.get(String(o.arguments[0].value));if(r){const e={type:"CallExpression",optional:false,callee:{type:"Identifier",name:"require"},arguments:[{type:"Literal",value:r}]};const s=u;if("right"in s&&s.right===o){s.right=e}else if("left"in s&&s.left===o){s.left=e}else if("object"in s&&s.object===o){s.object=e}else if("callee"in s&&s.callee===o){s.callee=e}else if("arguments"in s&&s.arguments.some((e=>e===o))){s.arguments=s.arguments.map((t=>t===o?e:t))}else if("init"in s&&s.init===o){if(s.type==="VariableDeclarator"&&s.id.type==="Identifier")t.set(s.id.name,r);s.init=e}}}else if(o.type==="CallExpression"&&o.callee.type==="MemberExpression"&&o.callee.object.type==="Identifier"&&"name"in r.params[2]&&o.callee.object.name===r.params[2].name&&o.callee.property.type==="Identifier"&&o.callee.property.name==="n"&&o.arguments.length===1&&o.arguments[0].type==="Identifier"){if(u&&"init"in u&&u.init===o){const e=o.arguments[0];const t={type:"CallExpression",optional:false,callee:{type:"MemberExpression",computed:false,optional:false,object:{type:"Identifier",name:"Object"},property:{type:"Identifier",name:"assign"}},arguments:[{type:"ArrowFunctionExpression",expression:true,params:[],body:e},{type:"ObjectExpression",properties:[{type:"Property",kind:"init",method:false,computed:false,shorthand:false,key:{type:"Identifier",name:"a"},value:e}]}]};u.init=t}}}})}}}}}t.handleWrappers=handleWrappers},351:(e,t)=>{e.exports=t=abbrev.abbrev=abbrev;abbrev.monkeyPatch=monkeyPatch;function monkeyPatch(){Object.defineProperty(Array.prototype,"abbrev",{value:function(){return abbrev(this)},enumerable:false,configurable:true,writable:true});Object.defineProperty(Object.prototype,"abbrev",{value:function(){return abbrev(Object.keys(this))},enumerable:false,configurable:true,writable:true})}function abbrev(e){if(arguments.length!==1||!Array.isArray(e)){e=Array.prototype.slice.call(arguments,0)}for(var t=0,r=e.length,s=[];tt?1:-1}},878:e=>{"use strict";function isArguments(e){return e!=null&&typeof e==="object"&&e.hasOwnProperty("callee")}var t={"*":{label:"any",check:function(){return true}},A:{label:"array",check:function(e){return Array.isArray(e)||isArguments(e)}},S:{label:"string",check:function(e){return typeof e==="string"}},N:{label:"number",check:function(e){return typeof e==="number"}},F:{label:"function",check:function(e){return typeof e==="function"}},O:{label:"object",check:function(e){return typeof e==="object"&&e!=null&&!t.A.check(e)&&!t.E.check(e)}},B:{label:"boolean",check:function(e){return typeof e==="boolean"}},E:{label:"error",check:function(e){return e instanceof Error}},Z:{label:"null",check:function(e){return e==null}}};function addSchema(e,t){var r=t[e.length]=t[e.length]||[];if(r.indexOf(e)===-1)r.push(e)}var r=e.exports=function(e,r){if(arguments.length!==2)throw wrongNumberOfArgs(["SA"],arguments.length);if(!e)throw missingRequiredArg(0,"rawSchemas");if(!r)throw missingRequiredArg(1,"args");if(!t.S.check(e))throw invalidType(0,["string"],e);if(!t.A.check(r))throw invalidType(1,["array"],r);var s=e.split("|");var a={};s.forEach((function(e){for(var r=0;r{"use strict";t.TrackerGroup=r(308);t.Tracker=r(7605);t.TrackerStream=r(374)},5299:(e,t,r)=>{"use strict";var s=r(2361).EventEmitter;var a=r(3837);var o=0;var u=e.exports=function(e){s.call(this);this.id=++o;this.name=e};a.inherits(u,s)},308:(e,t,r)=>{"use strict";var s=r(3837);var a=r(5299);var o=r(7605);var u=r(374);var c=e.exports=function(e){a.call(this,e);this.parentGroup=null;this.trackers=[];this.completion={};this.weight={};this.totalWeight=0;this.finished=false;this.bubbleChange=bubbleChange(this)};s.inherits(c,a);function bubbleChange(e){return function(t,r,s){e.completion[s.id]=r;if(e.finished)return;e.emit("change",t||e.name,e.completed(),e)}}c.prototype.nameInTree=function(){var e=[];var t=this;while(t){e.unshift(t.name);t=t.parentGroup}return e.join("/")};c.prototype.addUnit=function(e,t){if(e.addUnit){var r=this;while(r){if(e===r){throw new Error("Attempted to add tracker group "+e.name+" to tree that already includes it "+this.nameInTree(this))}r=r.parentGroup}e.parentGroup=this}this.weight[e.id]=t||1;this.totalWeight+=this.weight[e.id];this.trackers.push(e);this.completion[e.id]=e.completed();e.on("change",this.bubbleChange);if(!this.finished)this.emit("change",e.name,this.completion[e.id],e);return e};c.prototype.completed=function(){if(this.trackers.length===0)return 0;var e=1/this.totalWeight;var t=0;for(var r=0;r{"use strict";var s=r(3837);var a=r(8511);var o=r(857);var u=r(7605);var c=e.exports=function(e,t,r){a.Transform.call(this,r);this.tracker=new u(e,t);this.name=e;this.id=this.tracker.id;this.tracker.on("change",delegateChange(this))};s.inherits(c,a.Transform);function delegateChange(e){return function(t,r,s){e.emit("change",t,r,e)}}c.prototype._transform=function(e,t,r){this.tracker.completeWork(e.length?e.length:1);this.push(e);r()};c.prototype._flush=function(e){this.tracker.finish();e()};o(c.prototype,"tracker").method("completed").method("addWork").method("finish")},7605:(e,t,r)=>{"use strict";var s=r(3837);var a=r(5299);var o=e.exports=function(e,t){a.call(this,e);this.workDone=0;this.workTodo=t||0};s.inherits(o,a);o.prototype.completed=function(){return this.workTodo===0?0:this.workDone/this.workTodo};o.prototype.addWork=function(e){this.workTodo+=e;this.emit("change",this.name,this.completed(),this)};o.prototype.completeWork=function(e){this.workDone+=e;if(this.workDone>this.workTodo)this.workDone=this.workTodo;this.emit("change",this.name,this.completed(),this)};o.prototype.finish=function(){this.workTodo=this.workDone=1;this.emit("change",this.name,1,this)}},3331:(module,exports,__nccwpck_require__)=>{var fs=__nccwpck_require__(7147),path=__nccwpck_require__(1017),fileURLToPath=__nccwpck_require__(7121),join=path.join,dirname=path.dirname,exists=fs.accessSync&&function(e){try{fs.accessSync(e)}catch(e){return false}return true}||fs.existsSync||path.existsSync,defaults={arrow:process.env.NODE_BINDINGS_ARROW||" → ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function bindings(opts){if(typeof opts=="string"){opts={bindings:opts}}else if(!opts){opts={}}Object.keys(defaults).map((function(e){if(!(e in opts))opts[e]=defaults[e]}));if(!opts.module_root){opts.module_root=exports.getRoot(exports.getFileName())}if(path.extname(opts.bindings)!=".node"){opts.bindings+=".node"}var requireFunc=true?eval("require"):0;var tries=[],i=0,l=opts.try.length,n,b,err;for(;i{"use strict";e.exports=function(e,t){if(e===null||e===undefined){throw TypeError()}e=String(e);var r=e.length;var s=t?Number(t):0;if(Number.isNaN(s)){s=0}if(s<0||s>=r){return undefined}var a=e.charCodeAt(s);if(a>=55296&&a<=56319&&r>s+1){var o=e.charCodeAt(s+1);if(o>=56320&&o<=57343){return(a-55296)*1024+o-56320+65536}}return a}},3844:(e,t)=>{"use strict";var r="[";t.up=function up(e){return r+(e||"")+"A"};t.down=function down(e){return r+(e||"")+"B"};t.forward=function forward(e){return r+(e||"")+"C"};t.back=function back(e){return r+(e||"")+"D"};t.nextLine=function nextLine(e){return r+(e||"")+"E"};t.previousLine=function previousLine(e){return r+(e||"")+"F"};t.horizontalAbsolute=function horizontalAbsolute(e){if(e==null)throw new Error("horizontalAboslute requires a column to position to");return r+e+"G"};t.eraseData=function eraseData(){return r+"J"};t.eraseLine=function eraseLine(){return r+"K"};t.goto=function(e,t){return r+t+";"+e+"H"};t.gotoSOL=function(){return"\r"};t.beep=function(){return""};t.hideCursor=function hideCursor(){return r+"?25l"};t.showCursor=function showCursor(){return r+"?25h"};var s={reset:0,bold:1,italic:3,underline:4,inverse:7,stopBold:22,stopItalic:23,stopUnderline:24,stopInverse:27,white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,bgWhite:47,bgBlack:40,bgBlue:44,bgCyan:46,bgGreen:42,bgMagenta:45,bgRed:41,bgYellow:43,grey:90,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97,bgGrey:100,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107};t.color=function color(e){if(arguments.length!==1||!Array.isArray(e)){e=Array.prototype.slice.call(arguments)}return r+e.map(colorNameToCode).join(";")+"m"};function colorNameToCode(e){if(s[e]!=null)return s[e];throw new Error("Unknown color or style name: "+e)}},1504:(e,t)=>{function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},857:e=>{e.exports=Delegator;function Delegator(e,t){if(!(this instanceof Delegator))return new Delegator(e,t);this.proto=e;this.target=t;this.methods=[];this.getters=[];this.setters=[];this.fluents=[]}Delegator.prototype.method=function(e){var t=this.proto;var r=this.target;this.methods.push(e);t[e]=function(){return this[r][e].apply(this[r],arguments)};return this};Delegator.prototype.access=function(e){return this.getter(e).setter(e)};Delegator.prototype.getter=function(e){var t=this.proto;var r=this.target;this.getters.push(e);t.__defineGetter__(e,(function(){return this[r][e]}));return this};Delegator.prototype.setter=function(e){var t=this.proto;var r=this.target;this.setters.push(e);t.__defineSetter__(e,(function(t){return this[r][e]=t}));return this};Delegator.prototype.fluent=function(e){var t=this.proto;var r=this.target;this.fluents.push(e);t[e]=function(t){if("undefined"!=typeof t){this[r][e]=t;return this}else{return this[r][e]}};return this}},5104:(e,t,r)=>{"use strict";var s=r(2037).platform();var a=r(2081).spawnSync;var o=r(7147).readdirSync;var u="glibc";var c="musl";var f={encoding:"utf8",env:process.env};if(!a){a=function(){return{status:126,stdout:"",stderr:""}}}function contains(e){return function(t){return t.indexOf(e)!==-1}}function versionFromMuslLdd(e){return e.split(/[\r\n]+/)[1].trim().split(/\s/)[1]}function safeReaddirSync(e){try{return o(e)}catch(e){}return[]}var d="";var p="";var h="";if(s==="linux"){var v=a("getconf",["GNU_LIBC_VERSION"],f);if(v.status===0){d=u;p=v.stdout.trim().split(" ")[1];h="getconf"}else{var D=a("ldd",["--version"],f);if(D.status===0&&D.stdout.indexOf(c)!==-1){d=c;p=versionFromMuslLdd(D.stdout);h="ldd"}else if(D.status===1&&D.stderr.indexOf(c)!==-1){d=c;p=versionFromMuslLdd(D.stderr);h="ldd"}else{var g=safeReaddirSync("/lib");if(g.some(contains("-linux-gnu"))){d=u;h="filesystem"}else if(g.some(contains("libc.musl-"))){d=c;h="filesystem"}else if(g.some(contains("ld-musl-"))){d=c;h="filesystem"}else{var y=safeReaddirSync("/usr/sbin");if(y.some(contains("glibc"))){d=u;h="filesystem"}}}}}var m=d!==""&&d!==u;e.exports={GLIBC:u,MUSL:c,family:d,version:p,method:h,isNonGlibcLinux:m}},3876:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},7121:(e,t,r)=>{var s=r(1017).sep||"/";e.exports=fileUriToPath;function fileUriToPath(e){if("string"!=typeof e||e.length<=7||"file://"!=e.substring(0,7)){throw new TypeError("must pass in a file:// URI to convert to a file path")}var t=decodeURI(e.substring(7));var r=t.indexOf("/");var a=t.substring(0,r);var o=t.substring(r+1);if("localhost"==a)a="";if(a){a=s+s+a}o=o.replace(/^(.+)\|/,"$1:");if(s=="\\"){o=o.replace(/\//g,"\\")}if(/^.+\:/.test(o)){}else{o=s+o}return a+o}},8862:(e,t,r)=>{"use strict";var s=r(5154);var a=r(4044);e.exports={activityIndicator:function(e,t,r){if(e.spun==null)return;return s(t,e.spun)},progressbar:function(e,t,r){if(e.completed==null)return;return a(t,r,e.completed)}}},2905:(e,t,r)=>{"use strict";var s=r(3837);var a=t.User=function User(e){var t=new Error(e);Error.captureStackTrace(t,User);t.code="EGAUGE";return t};t.MissingTemplateValue=function MissingTemplateValue(e,t){var r=new a(s.format('Missing template value "%s"',e.type));Error.captureStackTrace(r,MissingTemplateValue);r.template=e;r.values=t;return r};t.Internal=function Internal(e){var t=new Error(e);Error.captureStackTrace(t,Internal);t.code="EGAUGEINTERNAL";return t}},1191:e=>{"use strict";e.exports=isWin32()||isColorTerm();function isWin32(){return process.platform==="win32"}function isColorTerm(){var e=/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i;return!!process.env.COLORTERM||e.test(process.env.TERM)}},287:(e,t,r)=>{"use strict";var s=r(4052);var a=r(5214);var o=r(1191);var u=r(7234);var c=r(9986);var f=r(7131);var d=r(5751);var p=r(5498);e.exports=Gauge;function callWith(e,t){return function(){return t.call(e)}}function Gauge(e,t){var r,a;if(e&&e.write){a=e;r=t||{}}else if(t&&t.write){a=t;r=e||{}}else{a=d.stderr;r=e||t||{}}this._status={spun:0,section:"",subsection:""};this._paused=false;this._disabled=true;this._showing=false;this._onScreen=false;this._needsRedraw=false;this._hideCursor=r.hideCursor==null?true:r.hideCursor;this._fixedFramerate=r.fixedFramerate==null?!/^v0\.8\./.test(d.version):r.fixedFramerate;this._lastUpdateAt=null;this._updateInterval=r.updateInterval==null?50:r.updateInterval;this._themes=r.themes||c;this._theme=r.theme;var o=this._computeTheme(r.theme);var u=r.template||[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",kerning:1,default:""},{type:"subsection",kerning:1,default:""}];this.setWriteTo(a,r.tty);var f=r.Plumbing||s;this._gauge=new f(o,u,this.getWidth());this._$$doRedraw=callWith(this,this._doRedraw);this._$$handleSizeChange=callWith(this,this._handleSizeChange);this._cleanupOnExit=r.cleanupOnExit==null||r.cleanupOnExit;this._removeOnExit=null;if(r.enabled||r.enabled==null&&this._tty&&this._tty.isTTY){this.enable()}else{this.disable()}}Gauge.prototype={};Gauge.prototype.isEnabled=function(){return!this._disabled};Gauge.prototype.setTemplate=function(e){this._gauge.setTemplate(e);if(this._showing)this._requestRedraw()};Gauge.prototype._computeTheme=function(e){if(!e)e={};if(typeof e==="string"){e=this._themes.getTheme(e)}else if(e&&(Object.keys(e).length===0||e.hasUnicode!=null||e.hasColor!=null)){var t=e.hasUnicode==null?a():e.hasUnicode;var r=e.hasColor==null?o:e.hasColor;e=this._themes.getDefault({hasUnicode:t,hasColor:r,platform:e.platform})}return e};Gauge.prototype.setThemeset=function(e){this._themes=e;this.setTheme(this._theme)};Gauge.prototype.setTheme=function(e){this._gauge.setTheme(this._computeTheme(e));if(this._showing)this._requestRedraw();this._theme=e};Gauge.prototype._requestRedraw=function(){this._needsRedraw=true;if(!this._fixedFramerate)this._doRedraw()};Gauge.prototype.getWidth=function(){return(this._tty&&this._tty.columns||80)-1};Gauge.prototype.setWriteTo=function(e,t){var r=!this._disabled;if(r)this.disable();this._writeTo=e;this._tty=t||e===d.stderr&&d.stdout.isTTY&&d.stdout||e.isTTY&&e||this._tty;if(this._gauge)this._gauge.setWidth(this.getWidth());if(r)this.enable()};Gauge.prototype.enable=function(){if(!this._disabled)return;this._disabled=false;if(this._tty)this._enableEvents();if(this._showing)this.show()};Gauge.prototype.disable=function(){if(this._disabled)return;if(this._showing){this._lastUpdateAt=null;this._showing=false;this._doRedraw();this._showing=true}this._disabled=true;if(this._tty)this._disableEvents()};Gauge.prototype._enableEvents=function(){if(this._cleanupOnExit){this._removeOnExit=u(callWith(this,this.disable))}this._tty.on("resize",this._$$handleSizeChange);if(this._fixedFramerate){this.redrawTracker=f(this._$$doRedraw,this._updateInterval);if(this.redrawTracker.unref)this.redrawTracker.unref()}};Gauge.prototype._disableEvents=function(){this._tty.removeListener("resize",this._$$handleSizeChange);if(this._fixedFramerate)clearInterval(this.redrawTracker);if(this._removeOnExit)this._removeOnExit()};Gauge.prototype.hide=function(e){if(this._disabled)return e&&d.nextTick(e);if(!this._showing)return e&&d.nextTick(e);this._showing=false;this._doRedraw();e&&p(e)};Gauge.prototype.show=function(e,t){this._showing=true;if(typeof e==="string"){this._status.section=e}else if(typeof e==="object"){var r=Object.keys(e);for(var s=0;s{"use strict";var s=r(3844);var a=r(7238);var o=r(878);var u=e.exports=function(e,t,r){if(!r)r=80;o("OAN",[e,t,r]);this.showing=false;this.theme=e;this.width=r;this.template=t};u.prototype={};u.prototype.setTheme=function(e){o("O",[e]);this.theme=e};u.prototype.setTemplate=function(e){o("A",[e]);this.template=e};u.prototype.setWidth=function(e){o("N",[e]);this.width=e};u.prototype.hide=function(){return s.gotoSOL()+s.eraseLine()};u.prototype.hideCursor=s.hideCursor;u.prototype.showCursor=s.showCursor;u.prototype.show=function(e){var t=Object.create(this.theme);for(var r in e){t[r]=e[r]}return a(this.width,this.template,t).trim()+s.color("reset")+s.eraseLine()+s.gotoSOL()}},5751:e=>{"use strict";e.exports=process},4044:(e,t,r)=>{"use strict";var s=r(878);var a=r(7238);var o=r(5791);var u=r(8321);e.exports=function(e,t,r){s("ONN",[e,t,r]);if(r<0)r=0;if(r>1)r=1;if(t<=0)return"";var o=Math.round(t*r);var u=t-o;var c=[{type:"complete",value:repeat(e.complete,o),length:o},{type:"remaining",value:repeat(e.remaining,u),length:u}];return a(t,c,e)};function repeat(e,t){var r="";var s=t;do{if(s%2){r+=e}s=Math.floor(s/2);e+=e}while(s&&u(r){"use strict";var s=r(1365);var a=r(878);var o=r(3540);var u=r(5791);var c=r(2905);var f=r(8855);function renderValueWithValues(e){return function(t){return renderValue(t,e)}}var d=e.exports=function(e,t,r){var a=prepareItems(e,t,r);var o=a.map(renderValueWithValues(r)).join("");return s.left(u(o,e),e)};function preType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"pre"+t}function postType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"post"+t}function hasPreOrPost(e,t){if(!e.type)return;return t[preType(e)]||t[postType(e)]}function generatePreAndPost(e,t){var r=o({},e);var s=Object.create(t);var a=[];var u=preType(r);var c=postType(r);if(s[u]){a.push({value:s[u]});s[u]=null}r.minLength=null;r.length=null;r.maxLength=null;a.push(r);s[r.type]=s[r.type];if(s[c]){a.push({value:s[c]});s[c]=null}return function(e,t,r){return d(r,a,s)}}function prepareItems(e,t,r){function cloneAndObjectify(t,s,a){var o=new f(t,e);var u=o.type;if(o.value==null){if(!(u in r)){if(o.default==null){throw new c.MissingTemplateValue(o,r)}else{o.value=o.default}}else{o.value=r[u]}}if(o.value==null||o.value==="")return null;o.index=s;o.first=s===0;o.last=s===a.length-1;if(hasPreOrPost(o,r))o.value=generatePreAndPost(o,r);return o}var s=t.map(cloneAndObjectify).filter((function(e){return e!=null}));var a=0;var o=e;var u=s.length;function consumeSpace(e){if(e>o)e=o;a+=e;o-=e}function finishSizing(e,t){if(e.finished)throw new c.Internal("Tried to finish template item that was already finished");if(t===Infinity)throw new c.Internal("Length of template item cannot be infinity");if(t!=null)e.length=t;e.minLength=null;e.maxLength=null;--u;e.finished=true;if(e.length==null)e.length=e.getBaseLength();if(e.length==null)throw new c.Internal("Finished template items must have a length");consumeSpace(e.getLength())}s.forEach((function(e){if(!e.kerning)return;var t=e.first?0:s[e.index-1].padRight;if(!e.first&&t=h){finishSizing(e,e.minLength);p=true}}))}while(p&&d++{"use strict";var s=r(5751);try{e.exports=setImmediate}catch(t){e.exports=s.nextTick}},7131:e=>{"use strict";e.exports=setInterval},5154:e=>{"use strict";e.exports=function spin(e,t){return e[t%e.length]}},8855:(e,t,r)=>{"use strict";var s=r(8321);e.exports=TemplateItem;function isPercent(e){if(typeof e!=="string")return false;return e.slice(-1)==="%"}function percent(e){return Number(e.slice(0,-1))/100}function TemplateItem(e,t){this.overallOutputLength=t;this.finished=false;this.type=null;this.value=null;this.length=null;this.maxLength=null;this.minLength=null;this.kerning=null;this.align="left";this.padLeft=0;this.padRight=0;this.index=null;this.first=null;this.last=null;if(typeof e==="string"){this.value=e}else{for(var r in e)this[r]=e[r]}if(isPercent(this.length)){this.length=Math.round(this.overallOutputLength*percent(this.length))}if(isPercent(this.minLength)){this.minLength=Math.round(this.overallOutputLength*percent(this.minLength))}if(isPercent(this.maxLength)){this.maxLength=Math.round(this.overallOutputLength*percent(this.maxLength))}return this}TemplateItem.prototype={};TemplateItem.prototype.getBaseLength=function(){var e=this.length;if(e==null&&typeof this.value==="string"&&this.maxLength==null&&this.minLength==null){e=s(this.value)}return e};TemplateItem.prototype.getLength=function(){var e=this.getBaseLength();if(e==null)return null;return e+this.padLeft+this.padRight};TemplateItem.prototype.getMaxLength=function(){if(this.maxLength==null)return null;return this.maxLength+this.padLeft+this.padRight};TemplateItem.prototype.getMinLength=function(){if(this.minLength==null)return null;return this.minLength+this.padLeft+this.padRight}},8469:(e,t,r)=>{"use strict";var s=r(3540);e.exports=function(){return a.newThemeSet()};var a={};a.baseTheme=r(8862);a.newTheme=function(e,t){if(!t){t=e;e=this.baseTheme}return s({},e,t)};a.getThemeNames=function(){return Object.keys(this.themes)};a.addTheme=function(e,t,r){this.themes[e]=this.newTheme(t,r)};a.addToAllThemes=function(e){var t=this.themes;Object.keys(t).forEach((function(r){s(t[r],e)}));s(this.baseTheme,e)};a.getTheme=function(e){if(!this.themes[e])throw this.newMissingThemeError(e);return this.themes[e]};a.setDefault=function(e,t){if(t==null){t=e;e={}}var r=e.platform==null?"fallback":e.platform;var s=!!e.hasUnicode;var a=!!e.hasColor;if(!this.defaults[r])this.defaults[r]={true:{},false:{}};this.defaults[r][s][a]=t};a.getDefault=function(e){if(!e)e={};var t=e.platform||process.platform;var r=this.defaults[t]||this.defaults.fallback;var a=!!e.hasUnicode;var o=!!e.hasColor;if(!r)throw this.newMissingDefaultThemeError(t,a,o);if(!r[a][o]){if(a&&o&&r[!a][o]){a=false}else if(a&&o&&r[a][!o]){o=false}else if(a&&o&&r[!a][!o]){a=false;o=false}else if(a&&!o&&r[!a][o]){a=false}else if(!a&&o&&r[a][!o]){o=false}else if(r===this.defaults.fallback){throw this.newMissingDefaultThemeError(t,a,o)}}if(r[a][o]){return this.getTheme(r[a][o])}else{return this.getDefault(s({},e,{platform:"fallback"}))}};a.newMissingThemeError=function newMissingThemeError(e){var t=new Error('Could not find a gauge theme named "'+e+'"');Error.captureStackTrace.call(t,newMissingThemeError);t.theme=e;t.code="EMISSINGTHEME";return t};a.newMissingDefaultThemeError=function newMissingDefaultThemeError(e,t,r){var s=new Error("Could not find a gauge theme for your platform/unicode/color use combo:\n"+" platform = "+e+"\n"+" hasUnicode = "+t+"\n"+" hasColor = "+r);Error.captureStackTrace.call(s,newMissingDefaultThemeError);s.platform=e;s.hasUnicode=t;s.hasColor=r;s.code="EMISSINGTHEME";return s};a.newThemeSet=function(){var themeset=function(e){return themeset.getDefault(e)};return s(themeset,a,{themes:s({},this.themes),baseTheme:s({},this.baseTheme),defaults:JSON.parse(JSON.stringify(this.defaults||{}))})}},9986:(e,t,r)=>{"use strict";var s=r(3844);var a=r(8469);var o=e.exports=new a;o.addTheme("ASCII",{preProgressbar:"[",postProgressbar:"]",progressbarTheme:{complete:"#",remaining:"."},activityIndicatorTheme:"-\\|/",preSubsection:">"});o.addTheme("colorASCII",o.getTheme("ASCII"),{progressbarTheme:{preComplete:s.color("inverse"),complete:" ",postComplete:s.color("stopInverse"),preRemaining:s.color("brightBlack"),remaining:".",postRemaining:s.color("reset")}});o.addTheme("brailleSpinner",{preProgressbar:"⸨",postProgressbar:"⸩",progressbarTheme:{complete:"░",remaining:"⠂"},activityIndicatorTheme:"⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏",preSubsection:">"});o.addTheme("colorBrailleSpinner",o.getTheme("brailleSpinner"),{progressbarTheme:{preComplete:s.color("inverse"),complete:" ",postComplete:s.color("stopInverse"),preRemaining:s.color("brightBlack"),remaining:"░",postRemaining:s.color("reset")}});o.setDefault({},"ASCII");o.setDefault({hasColor:true},"colorASCII");o.setDefault({platform:"darwin",hasUnicode:true},"brailleSpinner");o.setDefault({platform:"darwin",hasUnicode:true,hasColor:true},"colorBrailleSpinner")},5791:(e,t,r)=>{"use strict";var s=r(8321);var a=r(7518);e.exports=wideTruncate;function wideTruncate(e,t){if(s(e)===0)return e;if(t<=0)return"";if(s(e)<=t)return e;var r=a(e);var o=e.length+r.length;var u=e.slice(0,t+o);while(s(u)>t){u=u.slice(0,-1)}return u}},8567:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},6450:(e,t,r)=>{var s=r(7147);var a=r(2164);var o=r(5653);var u=r(8567);var c=r(3837);var f;var d;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){f=Symbol.for("graceful-fs.queue");d=Symbol.for("graceful-fs.previous")}else{f="___graceful-fs.queue";d="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,f,{get:function(){return t}})}var p=noop;if(c.debuglog)p=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))p=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!s[f]){var h=global[f]||[];publishQueue(s,h);s.close=function(e){function close(t,r){return e.call(s,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,d,{value:e});return close}(s.close);s.closeSync=function(e){function closeSync(t){e.apply(s,arguments);resetQueue()}Object.defineProperty(closeSync,d,{value:e});return closeSync}(s.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){p(s[f]);r(9491).equal(s[f].length,0)}))}}if(!global[f]){publishQueue(global,s[f])}e.exports=patch(u(s));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched){e.exports=patch(s);s.__patched=true}function patch(e){a(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,s){if(typeof r==="function")s=r,r=null;return go$readFile(e,r,s);function go$readFile(e,r,s,a){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,s],t,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,s,a){if(typeof s==="function")a=s,s=null;return go$writeFile(e,t,s,a);function go$writeFile(e,t,s,a,o){return r(e,t,s,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,s,a],r,o||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var s=e.appendFile;if(s)e.appendFile=appendFile;function appendFile(e,t,r,a){if(typeof r==="function")a=r,r=null;return go$appendFile(e,t,r,a);function go$appendFile(e,t,r,a,o){return s(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,a],s,o||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var u=e.copyFile;if(u)e.copyFile=copyFile;function copyFile(e,t,r,s){if(typeof r==="function"){s=r;r=0}return go$copyFile(e,t,r,s);function go$copyFile(e,t,r,s,a){return u(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,s],o,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var c=e.readdir;e.readdir=readdir;var f=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var s=f.test(process.version)?function go$readdir(e,t,r,s){return c(e,fs$readdirCallback(e,t,r,s))}:function go$readdir(e,t,r,s){return c(e,t,fs$readdirCallback(e,t,r,s))};return s(e,t,r);function fs$readdirCallback(e,t,r,a){return function(o,u){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([s,[e,t,r],o,a||Date.now(),Date.now()]);else{if(u&&u.sort)u.sort();if(typeof r==="function")r.call(this,o,u)}}}}if(process.version.substr(0,4)==="v0.8"){var d=o(e);ReadStream=d.ReadStream;WriteStream=d.WriteStream}var p=e.ReadStream;if(p){ReadStream.prototype=Object.create(p.prototype);ReadStream.prototype.open=ReadStream$open}var h=e.WriteStream;if(h){WriteStream.prototype=Object.create(h.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var v=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:true,configurable:true});var D=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(e){D=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return p.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return h.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var g=e.open;e.open=open;function open(e,t,r,s){if(typeof r==="function")s=r,r=null;return go$open(e,t,r,s);function go$open(e,t,r,s,a){return g(e,t,r,(function(o,u){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,s],o,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}return e}function enqueue(e){p("ENQUEUE",e[0].name,e[1]);s[f].push(e);retry()}var v;function resetQueue(){var e=Date.now();for(var t=0;t2){s[f][t][3]=e;s[f][t][4]=e}}retry()}function retry(){clearTimeout(v);v=undefined;if(s[f].length===0)return;var e=s[f].shift();var t=e[0];var r=e[1];var a=e[2];var o=e[3];var u=e[4];if(o===undefined){p("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){p("TIMEOUT",t.name,r);var c=r.pop();if(typeof c==="function")c.call(null,a)}else{var d=Date.now()-u;var h=Math.max(u-o,1);var D=Math.min(h*1.2,100);if(d>=D){p("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{s[f].push(e)}}if(v===undefined){v=setTimeout(retry,0)}}},5653:(e,t,r)=>{var s=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);s.call(this);var a=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var u=0,c=o.length;uthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){a.emit("error",e);a.readable=false;return}a.fd=t;a.emit("open",t);a._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);s.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var a=Object.keys(r);for(var o=0,u=a.length;o= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},2164:(e,t,r)=>{var s=r(2057);var a=process.cwd;var o=null;var u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=a.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){o=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(s.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,s){if(s)process.nextTick(s)};e.lchownSync=function(){}}if(u==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,s,a){var o=Date.now();var u=0;t(r,s,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM"||c.code==="EBUSY")&&Date.now()-o<6e4){setTimeout((function(){e.stat(s,(function(e,o){if(e&&e.code==="ENOENT")t(r,s,CB);else a(c)}))}),u);if(u<100)u+=10;return}if(a)a(c)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,s,a,o,u,c){var f;if(c&&typeof c==="function"){var d=0;f=function(p,h,v){if(p&&p.code==="EAGAIN"&&d<10){d++;return t.call(e,r,s,a,o,u,f)}c.apply(this,arguments)}}return t.call(e,r,s,a,o,u,f)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,s,a,o,u){var c=0;while(true){try{return t.call(e,r,s,a,o,u)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,a){e.open(t,s.O_WRONLY|s.O_SYMLINK,r,(function(t,s){if(t){if(a)a(t);return}e.fchmod(s,r,(function(t){e.close(s,(function(e){if(a)a(t||e)}))}))}))};e.lchmodSync=function(t,r){var a=e.openSync(t,s.O_WRONLY|s.O_SYMLINK,r);var o=true;var u;try{u=e.fchmodSync(a,r);o=false}finally{if(o){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return u}}function patchLutimes(e){if(s.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,a,o){e.open(t,s.O_SYMLINK,(function(t,s){if(t){if(o)o(t);return}e.futimes(s,r,a,(function(t){e.close(s,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,a){var o=e.openSync(t,s.O_SYMLINK);var u;var c=true;try{u=e.futimesSync(o,r,a);c=false}finally{if(c){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return u}}else if(e.futimes){e.lutimes=function(e,t,r,s){if(s)process.nextTick(s)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,s,a){return t.call(e,r,s,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,s){try{return t.call(e,r,s)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,s,a,o){return t.call(e,r,s,a,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,s,a){try{return t.call(e,r,s,a)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,s,a){if(typeof s==="function"){a=s;s=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(a)a.apply(this,arguments)}return s?t.call(e,r,s,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,s){var a=s?t.call(e,r,s):t.call(e,r);if(a){if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296}return a}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5214:(e,t,r)=>{"use strict";var s=r(2037);var a=e.exports=function(){if(s.type()=="Windows_NT"){return false}var e=/UTF-?8$/i;var t=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return e.test(t)}},2842:(e,t,r)=>{try{var s=r(3837);if(typeof s.inherits!=="function")throw"";e.exports=s.inherits}catch(t){e.exports=r(3782)}},3782:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},3279:(e,t,r)=>{"use strict";var s=r(3979);e.exports=function(e){if(s(e)){return false}if(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false}},8502:e=>{"use strict";const isFullwidthCodePoint=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false};e.exports=isFullwidthCodePoint;e.exports["default"]=isFullwidthCodePoint},1551:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},9042:(e,t,r)=>{if(typeof process.addon==="function"){e.exports=process.addon.bind(process)}else{e.exports=r(5850)}},5850:(module,__unused_webpack_exports,__nccwpck_require__)=>{var fs=__nccwpck_require__(7147);var path=__nccwpck_require__(1017);var os=__nccwpck_require__(2037);var runtimeRequire=true?eval("require"):0;var vars=process.config&&process.config.variables||{};var prebuildsOnly=!!process.env.PREBUILDS_ONLY;var abi=process.versions.modules;var runtime=isElectron()?"electron":isNwjs()?"node-webkit":"node";var arch=process.env.npm_config_arch||os.arch();var platform=process.env.npm_config_platform||os.platform();var libc=process.env.LIBC||(isAlpine(platform)?"musl":"glibc");var armv=process.env.ARM_VERSION||(arch==="arm64"?"8":vars.arm_version)||"";var uv=(process.versions.uv||"").split(".")[0];module.exports=load;function load(e){return runtimeRequire(load.resolve(e))}load.resolve=load.path=function(e){e=path.resolve(e||".");try{var t=runtimeRequire(path.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");if(process.env[t+"_PREBUILD"])e=process.env[t+"_PREBUILD"]}catch(e){}if(!prebuildsOnly){var r=getFirst(path.join(e,"build/Release"),matchBuild);if(r)return r;var s=getFirst(path.join(e,"build/Debug"),matchBuild);if(s)return s}var a=resolve(e);if(a)return a;var o=resolve(path.dirname(process.execPath));if(o)return o;var u=["platform="+platform,"arch="+arch,"runtime="+runtime,"abi="+abi,"uv="+uv,armv?"armv="+armv:"","libc="+libc,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",true?"webpack=true":0].filter(Boolean).join(" ");throw new Error("No native build was found for "+u+"\n loaded from: "+e+"\n");function resolve(e){var t=readdirSync(path.join(e,"prebuilds")).map(parseTuple);var r=t.filter(matchTuple(platform,arch)).sort(compareTuples)[0];if(!r)return;var s=path.join(e,"prebuilds",r.name);var a=readdirSync(s).map(parseTags);var o=a.filter(matchTags(runtime,abi));var u=o.sort(compareTags(runtime))[0];if(u)return path.join(s,u.file)}};function readdirSync(e){try{return fs.readdirSync(e)}catch(e){return[]}}function getFirst(e,t){var r=readdirSync(e).filter(t);return r[0]&&path.join(e,r[0])}function matchBuild(e){return/\.node$/.test(e)}function parseTuple(e){var t=e.split("-");if(t.length!==2)return;var r=t[0];var s=t[1].split("+");if(!r)return;if(!s.length)return;if(!s.every(Boolean))return;return{name:e,platform:r,architectures:s}}function matchTuple(e,t){return function(r){if(r==null)return false;if(r.platform!==e)return false;return r.architectures.includes(t)}}function compareTuples(e,t){return e.architectures.length-t.architectures.length}function parseTags(e){var t=e.split(".");var r=t.pop();var s={file:e,specificity:0};if(r!=="node")return;for(var a=0;ar.specificity?-1:1}else{return 0}}}function isNwjs(){return!!(process.versions&&process.versions.nw)}function isElectron(){if(process.versions&&process.versions.electron)return true;if(process.env.ELECTRON_RUN_AS_NODE)return true;return typeof window!=="undefined"&&window.process&&window.process.type==="renderer"}function isAlpine(e){return e==="linux"&&fs.existsSync("/etc/alpine-release")}load.parseTags=parseTags;load.matchTags=matchTags;load.compareTags=compareTags;load.parseTuple=parseTuple;load.matchTuple=matchTuple;load.compareTuples=compareTuples},1758:(e,t,r)=>{var s=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?function(){console.error.apply(console,arguments)}:function(){};var a=r(7310),o=r(1017),u=r(2781).Stream,c=r(351),f=r(2037);e.exports=t=nopt;t.clean=clean;t.typeDefs={String:{type:String,validate:validateString},Boolean:{type:Boolean,validate:validateBoolean},url:{type:a,validate:validateUrl},Number:{type:Number,validate:validateNumber},path:{type:o,validate:validatePath},Stream:{type:u,validate:validateStream},Date:{type:Date,validate:validateDate}};function nopt(e,r,a,o){a=a||process.argv;e=e||{};r=r||{};if(typeof o!=="number")o=2;s(e,r,a,o);a=a.slice(o);var u={},c,f={remain:[],cooked:a,original:a.slice(0)};parse(a,u,f.remain,e,r);clean(u,e,t.typeDefs);u.argv=f;Object.defineProperty(u.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:false});return u}function clean(e,r,a){a=a||t.typeDefs;var o={},u=[false,true,null,String,Array];Object.keys(e).forEach((function(c){if(c==="argv")return;var f=e[c],d=Array.isArray(f),p=r[c];if(!d)f=[f];if(!p)p=u;if(p===Array)p=u.concat(Array);if(!Array.isArray(p))p=[p];s("val=%j",f);s("types=",p);f=f.map((function(u){if(typeof u==="string"){s("string %j",u);u=u.trim();if(u==="null"&&~p.indexOf(null)||u==="true"&&(~p.indexOf(true)||~p.indexOf(Boolean))||u==="false"&&(~p.indexOf(false)||~p.indexOf(Boolean))){u=JSON.parse(u);s("jsonable %j",u)}else if(~p.indexOf(Number)&&!isNaN(u)){s("convert to number",u);u=+u}else if(~p.indexOf(Date)&&!isNaN(Date.parse(u))){s("convert to date",u);u=new Date(u)}}if(!r.hasOwnProperty(c)){return u}if(u===false&&~p.indexOf(null)&&!(~p.indexOf(false)||~p.indexOf(Boolean))){u=null}var f={};f[c]=u;s("prevalidated val",f,u,r[c]);if(!validate(f,c,u,r[c],a)){if(t.invalidHandler){t.invalidHandler(c,u,r[c],e)}else if(t.invalidHandler!==false){s("invalid: "+c+"="+u,r[c])}return o}s("validated val",f,u,r[c]);return f[c]})).filter((function(e){return e!==o}));if(!f.length&&p.indexOf(Array)===-1){s("VAL HAS NO LENGTH, DELETE IT",f,c,p.indexOf(Array));delete e[c]}else if(d){s(d,e[c],f);e[c]=f}else e[c]=f[0];s("k=%s val=%j",c,f,e[c])}))}function validateString(e,t,r){e[t]=String(r)}function validatePath(e,t,r){if(r===true)return false;if(r===null)return true;r=String(r);var s=process.platform==="win32",a=s?/^~(\/|\\)/:/^~\//,u=f.homedir();if(u&&r.match(a)){e[t]=o.resolve(u,r.substr(2))}else{e[t]=o.resolve(r)}return true}function validateNumber(e,t,r){s("validate Number %j %j %j",t,r,isNaN(r));if(isNaN(r))return false;e[t]=+r}function validateDate(e,t,r){var a=Date.parse(r);s("validate Date %j %j %j",t,r,a);if(isNaN(a))return false;e[t]=new Date(r)}function validateBoolean(e,t,r){if(r instanceof Boolean)r=r.valueOf();else if(typeof r==="string"){if(!isNaN(r))r=!!+r;else if(r==="null"||r==="false")r=false;else r=true}else r=!!r;e[t]=r}function validateUrl(e,t,r){r=a.parse(String(r));if(!r.host)return false;e[t]=r.href}function validateStream(e,t,r){if(!(r instanceof u))return false;e[t]=r}function validate(e,t,r,a,o){if(Array.isArray(a)){for(var u=0,c=a.length;u1){var D=h.indexOf("=");if(D>-1){v=true;var g=h.substr(D+1);h=h.substr(0,D);e.splice(p,1,h,g)}var y=resolveShort(h,o,d,f);s("arg=%j shRes=%j",h,y);if(y){s(h,y);e.splice.apply(e,[p,1].concat(y));if(h!==y[0]){p--;continue}}h=h.replace(/^-+/,"");var m=null;while(h.toLowerCase().indexOf("no-")===0){m=!m;h=h.substr(3)}if(f[h])h=f[h];var _=a[h];var E=Array.isArray(_);if(E&&_.length===1){E=false;_=_[0]}var w=_===Array||E&&_.indexOf(Array)!==-1;if(!a.hasOwnProperty(h)&&t.hasOwnProperty(h)){if(!Array.isArray(t[h]))t[h]=[t[h]];w=true}var x,F=e[p+1];var C=typeof m==="boolean"||_===Boolean||E&&_.indexOf(Boolean)!==-1||typeof _==="undefined"&&!v||F==="false"&&(_===null||E&&~_.indexOf(null));if(C){x=!m;if(F==="true"||F==="false"){x=JSON.parse(F);F=null;if(m)x=!x;p++}if(E&&F){if(~_.indexOf(F)){x=F;p++}else if(F==="null"&&~_.indexOf(null)){x=null;p++}else if(!F.match(/^-{2,}[^-]/)&&!isNaN(F)&&~_.indexOf(Number)){x=+F;p++}else if(!F.match(/^-[^-]/)&&~_.indexOf(String)){x=F;p++}}if(w)(t[h]=t[h]||[]).push(x);else t[h]=x;continue}if(_===String){if(F===undefined){F=""}else if(F.match(/^-{1,2}[^-]+/)){F="";p--}}if(F&&F.match(/^-{2,}$/)){F=undefined;p--}x=F===undefined?true:F;if(w)(t[h]=t[h]||[]).push(x);else t[h]=x;p++;continue}r.push(h)}}function resolveShort(e,t,r,a){e=e.replace(/^-+/,"");if(a[e]===e)return null;if(t[e]){if(t[e]&&!Array.isArray(t[e]))t[e]=t[e].split(/\s+/);return t[e]}var o=t.___singles;if(!o){o=Object.keys(t).filter((function(e){return e.length===1})).reduce((function(e,t){e[t]=true;return e}),{});t.___singles=o;s("shorthand singles",o)}var u=e.split("").filter((function(e){return o[e]}));if(u.join("")===e)return u.map((function(e){return t[e]})).reduce((function(e,t){return e.concat(t)}),[]);if(a[e]&&!t[e])return null;if(r[e])e=r[e];if(t[e]&&!Array.isArray(t[e]))t[e]=t[e].split(/\s+/);return t[e]}},9544:(e,t,r)=>{"use strict";var s=r(4906);var a=r(287);var o=r(2361).EventEmitter;var u=t=e.exports=new o;var c=r(3837);var f=r(2656);var d=r(3844);f(true);var p=process.stderr;Object.defineProperty(u,"stream",{set:function(e){p=e;if(this.gauge)this.gauge.setWriteTo(p,p)},get:function(){return p}});var h;u.useColor=function(){return h!=null?h:p.isTTY};u.enableColor=function(){h=true;this.gauge.setTheme({hasColor:h,hasUnicode:v})};u.disableColor=function(){h=false;this.gauge.setTheme({hasColor:h,hasUnicode:v})};u.level="info";u.gauge=new a(p,{enabled:false,theme:{hasColor:u.useColor()},template:[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",default:""},":",{type:"logline",kerning:1,default:""}]});u.tracker=new s.TrackerGroup;u.progressEnabled=u.gauge.isEnabled();var v;u.enableUnicode=function(){v=true;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:v})};u.disableUnicode=function(){v=false;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:v})};u.setGaugeThemeset=function(e){this.gauge.setThemeset(e)};u.setGaugeTemplate=function(e){this.gauge.setTemplate(e)};u.enableProgress=function(){if(this.progressEnabled)return;this.progressEnabled=true;this.tracker.on("change",this.showProgress);if(this._pause)return;this.gauge.enable()};u.disableProgress=function(){if(!this.progressEnabled)return;this.progressEnabled=false;this.tracker.removeListener("change",this.showProgress);this.gauge.disable()};var D=["newGroup","newItem","newStream"];var mixinLog=function(e){Object.keys(u).forEach((function(t){if(t[0]==="_")return;if(D.filter((function(e){return e===t})).length)return;if(e[t])return;if(typeof u[t]!=="function")return;var r=u[t];e[t]=function(){return r.apply(u,arguments)}}));if(e instanceof s.TrackerGroup){D.forEach((function(t){var r=e[t];e[t]=function(){return mixinLog(r.apply(e,arguments))}}))}return e};D.forEach((function(e){u[e]=function(){return mixinLog(this.tracker[e].apply(this.tracker,arguments))}}));u.clearProgress=function(e){if(!this.progressEnabled)return e&&process.nextTick(e);this.gauge.hide(e)};u.showProgress=function(e,t){if(!this.progressEnabled)return;var r={};if(e)r.section=e;var s=u.record[u.record.length-1];if(s){r.subsection=s.prefix;var a=u.disp[s.level]||s.level;var o=this._format(a,u.style[s.level]);if(s.prefix)o+=" "+this._format(s.prefix,this.prefixStyle);o+=" "+s.message.split(/\r?\n/)[0];r.logline=o}r.completed=t||this.tracker.completed();this.gauge.show(r)}.bind(u);u.pause=function(){this._paused=true;if(this.progressEnabled)this.gauge.disable()};u.resume=function(){if(!this._paused)return;this._paused=false;var e=this._buffer;this._buffer=[];e.forEach((function(e){this.emitLog(e)}),this);if(this.progressEnabled)this.gauge.enable()};u._buffer=[];var g=0;u.record=[];u.maxRecordSize=1e4;u.log=function(e,t,r){var s=this.levels[e];if(s===undefined){return this.emit("error",new Error(c.format("Undefined log level: %j",e)))}var a=new Array(arguments.length-2);var o=null;for(var u=2;up/10){var v=Math.floor(p*.9);this.record=this.record.slice(-1*v)}this.emitLog(d)}.bind(u);u.emitLog=function(e){if(this._paused){this._buffer.push(e);return}if(this.progressEnabled)this.gauge.pulse(e.prefix);var t=this.levels[e.level];if(t===undefined)return;if(t0&&!isFinite(t))return;var r=u.disp[e.level]!=null?u.disp[e.level]:e.level;this.clearProgress();e.message.split(/\r?\n/).forEach((function(t){if(this.heading){this.write(this.heading,this.headingStyle);this.write(" ")}this.write(r,u.style[e.level]);var s=e.prefix||"";if(s)this.write(" ");this.write(s,this.prefixStyle);this.write(" "+t+"\n")}),this);this.showProgress()};u._format=function(e,t){if(!p)return;var r="";if(this.useColor()){t=t||{};var s=[];if(t.fg)s.push(t.fg);if(t.bg)s.push("bg"+t.bg[0].toUpperCase()+t.bg.slice(1));if(t.bold)s.push("bold");if(t.underline)s.push("underline");if(t.inverse)s.push("inverse");if(s.length)r+=d.color(s);if(t.beep)r+=d.beep()}r+=e;if(this.useColor()){r+=d.color("reset")}return r};u.write=function(e,t){if(!p)return;p.write(this._format(e,t))};u.addLevel=function(e,t,r,s){if(s==null)s=e;this.levels[e]=t;this.style[e]=r;if(!this[e]){this[e]=function(){var t=new Array(arguments.length+1);t[0]=e;for(var r=0;r{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},3540:e=>{"use strict"; +(()=>{var __webpack_modules__={5841:(e,t,r)=>{"use strict";e.exports=t;t.mockS3Http=r(9361).get_mockS3Http();t.mockS3Http("on");const s=t.mockS3Http("get");const a=r(7147);const o=r(1017);const u=r(1758);const c=r(9544);c.disableProgress();const f=r(5977);const d=r(2361).EventEmitter;const p=r(3837).inherits;const h=["clean","install","reinstall","build","rebuild","package","testpackage","publish","unpublish","info","testbinary","reveal","configure"];const v={};c.heading="node-pre-gyp";if(s){c.warn(`mocking s3 to ${process.env.node_pre_gyp_mock_s3}`)}Object.defineProperty(t,"find",{get:function(){return r(5921).find},enumerable:true});function Run({package_json_path:e="./package.json",argv:t}){this.package_json_path=e;this.commands={};const r=this;h.forEach((e=>{r.commands[e]=function(t,s){c.verbose("command",e,t);return require("./"+e)(r,t,s)}}));this.parseArgv(t);this.binaryHostSet=false}p(Run,d);t.Run=Run;const D=Run.prototype;D.package=r(7399);D.configDefs={help:Boolean,arch:String,debug:Boolean,directory:String,proxy:String,loglevel:String};D.shorthands={release:"--no-debug",C:"--directory",debug:"--debug",j:"--jobs",silent:"--loglevel=silent",silly:"--loglevel=silly",verbose:"--loglevel=verbose"};D.aliases=v;D.parseArgv=function parseOpts(e){this.opts=u(this.configDefs,this.shorthands,e);this.argv=this.opts.argv.remain.slice();const t=this.todo=[];e=this.argv.map((e=>{if(e in this.aliases){e=this.aliases[e]}return e}));e.slice().forEach((r=>{if(r in this.commands){const s=e.splice(0,e.indexOf(r));e.shift();if(t.length>0){t[t.length-1].args=s}t.push({name:r,args:[]})}}));if(t.length>0){t[t.length-1].args=e.splice(0)}let r=this.package_json_path;if(this.opts.directory){r=o.join(this.opts.directory,r)}this.package_json=JSON.parse(a.readFileSync(r));this.todo=f.expand_commands(this.package_json,this.opts,t);const s="npm_config_";Object.keys(process.env).forEach((e=>{if(e.indexOf(s)!==0)return;const t=process.env[e];if(e===s+"loglevel"){c.level=t}else{e=e.substring(s.length);if(e==="argv"){if(this.opts.argv&&this.opts.argv.remain&&this.opts.argv.remain.length){}else{this.opts[e]=t}}else{this.opts[e]=t}}}));if(this.opts.loglevel){c.level=this.opts.loglevel}c.resume()};D.setBinaryHostProperty=function(e){if(this.binaryHostSet){return this.package_json.binary.host}const t=this.package_json;if(!t||!t.binary||t.binary.host){return""}if(!t.binary.staging_host||!t.binary.production_host){return""}let r="production_host";if(e==="publish"){r="staging_host"}const s=process.env.node_pre_gyp_s3_host;if(s==="staging"||s==="production"){r=`${s}_host`}else if(this.opts["s3_host"]==="staging"||this.opts["s3_host"]==="production"){r=`${this.opts["s3_host"]}_host`}else if(this.opts["s3_host"]||s){throw new Error(`invalid s3_host ${this.opts["s3_host"]||s}`)}t.binary.host=t.binary[r];this.binaryHostSet=true;return t.binary.host};D.usage=function usage(){const e=[""," Usage: node-pre-gyp [options]",""," where is one of:",h.map((e=>" - "+e+" - "+require("./"+e).usage)).join("\n"),"","node-pre-gyp@"+this.version+" "+o.resolve(__dirname,".."),"node@"+process.versions.node].join("\n");return e};Object.defineProperty(D,"version",{get:function(){return this.package.version},enumerable:true})},5921:(e,t,r)=>{"use strict";const s=r(5841);const a=r(2821);const o=r(5977);const u=r(7147).existsSync||r(1017).existsSync;const c=r(1017);e.exports=t;t.usage="Finds the require path for the node-pre-gyp installed module";t.validate=function(e,t){a.validate_config(e,t)};t.find=function(e,t){if(!u(e)){throw new Error(e+"does not exist")}const r=new s.Run({package_json_path:e,argv:process.argv});r.setBinaryHostProperty();const f=r.package_json;a.validate_config(f,t);let d;if(o.get_napi_build_versions(f,t)){d=o.get_best_napi_build_version(f,t)}t=t||{};if(!t.module_root)t.module_root=c.dirname(e);const p=a.evaluate(f,t,d);return p.module}},5977:(e,t,r)=>{"use strict";const s=r(7147);e.exports=t;const a=process.version.substr(1).replace(/-.*$/,"").split(".").map((e=>+e));const o=["build","clean","configure","package","publish","reveal","testbinary","testpackage","unpublish"];const u="napi_build_version=";e.exports.get_napi_version=function(){let e=process.versions.napi;if(!e){if(a[0]===9&&a[1]>=3)e=2;else if(a[0]===8)e=1}return e};e.exports.get_napi_version_as_string=function(t){const r=e.exports.get_napi_version(t);return r?""+r:""};e.exports.validate_package_json=function(t,r){const s=t.binary;const a=pathOK(s.module_path);const o=pathOK(s.remote_path);const u=pathOK(s.package_name);const c=e.exports.get_napi_build_versions(t,r,true);const f=e.exports.get_napi_build_versions_raw(t);if(c){c.forEach((e=>{if(!(parseInt(e,10)===e&&e>0)){throw new Error("All values specified in napi_versions must be positive integers.")}}))}if(c&&(!a||!o&&!u)){throw new Error("When napi_versions is specified; module_path and either remote_path or "+"package_name must contain the substitution string '{napi_build_version}`.")}if((a||o||u)&&!f){throw new Error("When the substitution string '{napi_build_version}` is specified in "+"module_path, remote_path, or package_name; napi_versions must also be specified.")}if(c&&!e.exports.get_best_napi_build_version(t,r)&&e.exports.build_napi_only(t)){throw new Error("The Node-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports Node-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}if(f&&!c&&e.exports.build_napi_only(t)){throw new Error("The Node-API version of this Node instance is "+e.exports.get_napi_version(r?r.target:undefined)+". "+"This module supports Node-API version(s) "+e.exports.get_napi_build_versions_raw(t)+". "+"This Node instance cannot run this module.")}};function pathOK(e){return e&&(e.indexOf("{napi_build_version}")!==-1||e.indexOf("{node_napi_label}")!==-1)}e.exports.expand_commands=function(t,r,s){const a=[];const c=e.exports.get_napi_build_versions(t,r);s.forEach((s=>{if(c&&s.name==="install"){const o=e.exports.get_best_napi_build_version(t,r);const c=o?[u+o]:[];a.push({name:s.name,args:c})}else if(c&&o.indexOf(s.name)!==-1){c.forEach((e=>{const t=s.args.slice();t.push(u+e);a.push({name:s.name,args:t})}))}else{a.push(s)}}));return a};e.exports.get_napi_build_versions=function(t,s,a){const o=r(9544);let u=[];const c=e.exports.get_napi_version(s?s.target:undefined);if(t.binary&&t.binary.napi_versions){t.binary.napi_versions.forEach((e=>{const t=u.indexOf(e)!==-1;if(!t&&c&&e<=c){u.push(e)}else if(a&&!t&&c){o.info("This Node instance does not support builds for Node-API version",e)}}))}if(s&&s["build-latest-napi-version-only"]){let e=0;u.forEach((t=>{if(t>e)e=t}));u=e?[e]:[]}return u.length?u:undefined};e.exports.get_napi_build_versions_raw=function(e){const t=[];if(e.binary&&e.binary.napi_versions){e.binary.napi_versions.forEach((e=>{if(t.indexOf(e)===-1){t.push(e)}}))}return t.length?t:undefined};e.exports.get_command_arg=function(e){return u+e};e.exports.get_napi_build_version_from_command_args=function(e){for(let t=0;t{if(e>s&&e<=t){s=e}}))}return s===0?undefined:s};e.exports.build_napi_only=function(e){return e.binary&&e.binary.package_name&&e.binary.package_name.indexOf("{node_napi_label}")===-1}},9361:(e,t,r)=>{"use strict";e.exports=t;const s=r(7310);const a=r(7147);const o=r(1017);e.exports.detect=function(e,t){const r=e.hosted_path;const a=s.parse(r);t.prefix=!a.pathname||a.pathname==="/"?"":a.pathname.replace("/","");if(e.bucket&&e.region){t.bucket=e.bucket;t.region=e.region;t.endpoint=e.host;t.s3ForcePathStyle=e.s3ForcePathStyle}else{const e=a.hostname.split(".s3");const r=e[0];if(!r){return}if(!t.bucket){t.bucket=r}if(!t.region){const r=e[1].slice(1).split(".")[0];if(r==="amazonaws"){t.region="us-east-1"}else{t.region=r}}}};e.exports.get_s3=function(e){if(process.env.node_pre_gyp_mock_s3){const e=r(3930);const t=r(2037);e.config.basePath=`${t.tmpdir()}/mock`;const s=e.S3();const wcb=e=>(t,...r)=>{if(t&&t.code==="ENOENT"){t.code="NotFound"}return e(t,...r)};return{listObjects(e,t){return s.listObjects(e,wcb(t))},headObject(e,t){return s.headObject(e,wcb(t))},deleteObject(e,t){return s.deleteObject(e,wcb(t))},putObject(e,t){return s.putObject(e,wcb(t))}}}const t=r(2355);t.config.update(e);const s=new t.S3;return{listObjects(e,t){return s.listObjects(e,t)},headObject(e,t){return s.headObject(e,t)},deleteObject(e,t){return s.deleteObject(e,t)},putObject(e,t){return s.putObject(e,t)}}};e.exports.get_mockS3Http=function(){let e=false;if(!process.env.node_pre_gyp_mock_s3){return()=>e}const t=r(4997);const s="https://mapbox-node-pre-gyp-public-testing-bucket.s3.us-east-1.amazonaws.com";const u=process.env.node_pre_gyp_mock_s3+"/mapbox-node-pre-gyp-public-testing-bucket";const mock_http=()=>{function get(e,t){const r=o.join(u,e.replace("%2B","+"));try{a.accessSync(r,a.constants.R_OK)}catch(e){return[404,"not found\n"]}return[200,a.createReadStream(r)]}return t(s).persist().get((()=>e)).reply(get)};mock_http(t,s,u);const mockS3Http=t=>{const r=e;if(t==="off"){e=false}else if(t==="on"){e=true}else if(t!=="get"){throw new Error(`illegal action for setMockHttp ${t}`)}return r};return mockS3Http}},2821:(e,t,r)=>{"use strict";e.exports=t;const s=r(1017);const a=r(7849);const o=r(7310);const u=r(5104);const c=r(5977);let f;if(process.env.NODE_PRE_GYP_ABI_CROSSWALK){f=require(process.env.NODE_PRE_GYP_ABI_CROSSWALK)}else{f=r(9448)}const d={};Object.keys(f).forEach((e=>{const t=e.split(".")[0];if(!d[t]){d[t]=e}}));function get_electron_abi(e,t){if(!e){throw new Error("get_electron_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if electron is the target.")}const r=a.parse(t);return e+"-v"+r.major+"."+r.minor}e.exports.get_electron_abi=get_electron_abi;function get_node_webkit_abi(e,t){if(!e){throw new Error("get_node_webkit_abi requires valid runtime arg")}if(typeof t==="undefined"){throw new Error("Empty target version is not supported if node-webkit is the target.")}return e+"-v"+t}e.exports.get_node_webkit_abi=get_node_webkit_abi;function get_node_abi(e,t){if(!e){throw new Error("get_node_abi requires valid runtime arg")}if(!t){throw new Error("get_node_abi requires valid process.versions object")}const r=a.parse(t.node);if(r.major===0&&r.minor%2){return e+"-v"+t.node}else{return t.modules?e+"-v"+ +t.modules:"v8-"+t.v8.split(".").slice(0,2).join(".")}}e.exports.get_node_abi=get_node_abi;function get_runtime_abi(e,t){if(!e){throw new Error("get_runtime_abi requires valid runtime arg")}if(e==="node-webkit"){return get_node_webkit_abi(e,t||process.versions["node-webkit"])}else if(e==="electron"){return get_electron_abi(e,t||process.versions.electron)}else{if(e!=="node"){throw new Error("Unknown Runtime: '"+e+"'")}if(!t){return get_node_abi(e,process.versions)}else{let r;if(f[t]){r=f[t]}else{const e=t.split(".").map((e=>+e));if(e.length!==3){throw new Error("Unknown target version: "+t)}const s=e[0];let a=e[1];let o=e[2];if(s===1){while(true){if(a>0)--a;if(o>0)--o;const e=""+s+"."+a+"."+o;if(f[e]){r=f[e];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+e+" as ABI compatible target");break}if(a===0&&o===0){break}}}else if(s>=2){if(d[s]){r=f[d[s]];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+d[s]+" as ABI compatible target")}}else if(s===0){if(e[1]%2===0){while(--o>0){const e=""+s+"."+a+"."+o;if(f[e]){r=f[e];console.log("Warning: node-pre-gyp could not find exact match for "+t);console.log("Warning: but node-pre-gyp successfully choose "+e+" as ABI compatible target");break}}}}}if(!r){throw new Error("Unsupported target version: "+t)}const s={node:t,v8:r.v8+".0",modules:r.node_abi>1?r.node_abi:undefined};return get_node_abi(e,s)}}}e.exports.get_runtime_abi=get_runtime_abi;const p=["module_name","module_path","host"];function validate_config(e,t){const r=e.name+" package.json is not node-pre-gyp ready:\n";const s=[];if(!e.main){s.push("main")}if(!e.version){s.push("version")}if(!e.name){s.push("name")}if(!e.binary){s.push("binary")}const a=e.binary;if(a){p.forEach((e=>{if(!a[e]||typeof a[e]!=="string"){s.push("binary."+e)}}))}if(s.length>=1){throw new Error(r+"package.json must declare these properties: \n"+s.join("\n"))}if(a){const e=o.parse(a.host).protocol;if(e==="http:"){throw new Error("'host' protocol ("+e+") is invalid - only 'https:' is accepted")}}c.validate_package_json(e,t)}e.exports.validate_config=validate_config;function eval_template(e,t){Object.keys(t).forEach((r=>{const s="{"+r+"}";while(e.indexOf(s)>-1){e=e.replace(s,t[r])}}));return e}function fix_slashes(e){if(e.slice(-1)!=="/"){return e+"/"}return e}function drop_double_slashes(e){return e.replace(/\/\//g,"/")}function get_process_runtime(e){let t="node";if(e["node-webkit"]){t="node-webkit"}else if(e.electron){t="electron"}return t}e.exports.get_process_runtime=get_process_runtime;const h="{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz";const v="";e.exports.evaluate=function(e,t,r){t=t||{};validate_config(e,t);const f=e.version;const d=a.parse(f);const p=t.runtime||get_process_runtime(process.versions);const D={name:e.name,configuration:t.debug?"Debug":"Release",debug:t.debug,module_name:e.binary.module_name,version:d.version,prerelease:d.prerelease.length?d.prerelease.join("."):"",build:d.build.length?d.build.join("."):"",major:d.major,minor:d.minor,patch:d.patch,runtime:p,node_abi:get_runtime_abi(p,t.target),node_abi_napi:c.get_napi_version(t.target)?"napi":get_runtime_abi(p,t.target),napi_version:c.get_napi_version(t.target),napi_build_version:r||"",node_napi_label:r?"napi-v"+r:get_runtime_abi(p,t.target),target:t.target||"",platform:t.target_platform||process.platform,target_platform:t.target_platform||process.platform,arch:t.target_arch||process.arch,target_arch:t.target_arch||process.arch,libc:t.target_libc||u.family||"unknown",module_main:e.main,toolset:t.toolset||"",bucket:e.binary.bucket,region:e.binary.region,s3ForcePathStyle:e.binary.s3ForcePathStyle||false};const g=D.module_name.replace("-","_");const y=process.env["npm_config_"+g+"_binary_host_mirror"]||e.binary.host;D.host=fix_slashes(eval_template(y,D));D.module_path=eval_template(e.binary.module_path,D);if(t.module_root){D.module_path=s.join(t.module_root,D.module_path)}else{D.module_path=s.resolve(D.module_path)}D.module=s.join(D.module_path,D.module_name+".node");D.remote_path=e.binary.remote_path?drop_double_slashes(fix_slashes(eval_template(e.binary.remote_path,D))):v;const m=e.binary.package_name?e.binary.package_name:h;D.package_name=eval_template(m,D);D.staged_tarball=s.join("build/stage",D.remote_path,D.package_name);D.hosted_path=o.resolve(D.host,D.remote_path);D.hosted_tarball=o.resolve(D.hosted_path,D.package_name);return D}},7498:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=s(r(1017));const o=r(3982);const u=r(9663);const c=r(4370);const f=r(1988);const d=s(r(3331));const p=r(9336);const h=s(r(3535));const v=r(1226);const D=r(2100);const g=r(7393);const y=s(r(1415));const m=s(r(1));const _=s(r(7663));const E=s(r(5841));const w=r(7310);const x=f.Parser.extend();const F=s(r(2037));const C=r(3791);const S=s(r(2382));const k={cwd:()=>K,env:{NODE_ENV:c.UNKNOWN,[c.UNKNOWN]:true},[c.UNKNOWN]:true};const A=Symbol();const R=Symbol();const O=Symbol();const T=Symbol();const j=Symbol();const B=Symbol();const L=Symbol();const N=Symbol();const I=Symbol();const P={access:B,accessSync:B,createReadStream:B,exists:B,existsSync:B,fstat:B,fstatSync:B,lstat:B,lstatSync:B,open:B,readdir:L,readdirSync:L,readFile:B,readFileSync:B,stat:B,statSync:B};const W={...P,pathExists:B,pathExistsSync:B,readJson:B,readJSON:B,readJsonSync:B,readJSONSync:B};const M=Object.assign(Object.create(null),{bindings:{default:N},express:{default:function(){return{[c.UNKNOWN]:true,set:A,engine:R}}},fs:{default:P,...P},"fs-extra":{default:W,...W},"graceful-fs":{default:P,...P},process:{default:k,...k},path:{default:{}},os:{default:F.default,...F.default},"@mapbox/node-pre-gyp":{default:E.default,...E.default},"node-pre-gyp":D.pregyp,"node-pre-gyp/lib/pre-binding":D.pregyp,"node-pre-gyp/lib/pre-binding.js":D.pregyp,"node-gyp-build":{default:I},nbind:{init:O,default:{init:O}},"resolve-from":{default:S.default},"strong-globalize":{default:{SetRootDir:T},SetRootDir:T},pkginfo:{default:j}});const $={_interopRequireDefault:g.normalizeDefaultRequire,_interopRequireWildcard:g.normalizeWildcardRequire,__importDefault:g.normalizeDefaultRequire,__importStar:g.normalizeWildcardRequire,MONGOOSE_DRIVER_PATH:undefined,URL:w.URL,Object:{assign:Object.assign}};$.global=$.GLOBAL=$.globalThis=$;const q=Symbol();D.pregyp.find[q]=true;const U=M.path;Object.keys(a.default).forEach((e=>{const t=a.default[e];if(typeof t==="function"){const r=function mockPath(){return t.apply(mockPath,arguments)};r[q]=true;U[e]=U.default[e]=r}else{U[e]=U.default[e]=t}}));U.resolve=U.default.resolve=function(...e){return a.default.resolve.apply(this,[K,...e])};U.resolve[q]=true;const G=new Set([".h",".cmake",".c",".cpp"]);const H=new Set(["CHANGELOG.md","README.md","readme.md","changelog.md"]);let K;const z=/^\/[^\/]+|^[a-z]:[\\/][^\\/]+/i;function isAbsolutePathOrUrl(e){if(e instanceof w.URL)return e.protocol==="file:";if(typeof e==="string"){if(e.startsWith("file:")){try{new w.URL(e);return true}catch{return false}}return z.test(e)}return false}const V=Symbol();const Y=/([\/\\]\*\*[\/\\]\*)+/g;async function analyze(e,t,r){const s=new Set;const f=new Set;const g=new Set;const E=a.default.dirname(e);K=r.cwd;const F=(0,v.getPackageBase)(e);const emitAssetDirectory=e=>{if(!r.analysis.emitGlobs)return;const t=e.indexOf(c.WILDCARD);const o=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const u=e.substring(0,o);const f=e.slice(o);const d=f.replace(c.wildcardRegEx,((e,t)=>f[t-1]===a.default.sep?"**/*":"*")).replace(Y,"/**/*")||"/**/*";if(r.ignoreFn(a.default.relative(r.base,u+d)))return;P=P.then((async()=>{if(r.log)console.log("Globbing "+u+d);const e=await new Promise(((e,t)=>(0,h.default)(u+d,{mark:true,ignore:u+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));e.filter((e=>!G.has(a.default.extname(e))&&!H.has(a.default.basename(e))&&!e.endsWith("/"))).forEach((e=>s.add(e)))}))};let P=Promise.resolve();t=t.replace(/^#![^\n\r]*[\r\n]/,"");let W;let U=false;try{W=x.parse(t,{ecmaVersion:"latest",allowReturnOutsideFunction:true});U=false}catch(t){const s=t&&t.message&&t.message.includes("sourceType: module");if(!s){r.warnings.add(new Error(`Failed to parse ${e} as script:\n${t&&t.message}`))}}if(!W){try{W=x.parse(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:true});U=true}catch(t){r.warnings.add(new Error(`Failed to parse ${e} as module:\n${t&&t.message}`));return{assets:s,deps:f,imports:g,isESM:false}}}const Q=(0,w.pathToFileURL)(e).href;const J=Object.assign(Object.create(null),{__dirname:{shadowDepth:0,value:{value:a.default.resolve(e,"..")}},__filename:{shadowDepth:0,value:{value:e}},process:{shadowDepth:0,value:{value:k}}});if(!U||r.mixedModules){J.require={shadowDepth:0,value:{value:{[c.FUNCTION](e){f.add(e);const t=M[e.startsWith("node:")?e.slice(5):e];return t.default},resolve(t){return(0,m.default)(t,e,r)}}}};J.require.value.value.resolve[q]=true}function setKnownBinding(e,t){if(e==="require")return;J[e]={shadowDepth:0,value:t}}function getKnownBinding(e){const t=J[e];if(t){if(t.shadowDepth===0){return t.value}}return undefined}function hasKnownBindingValue(e){const t=J[e];return t&&t.shadowDepth===0}if((U||r.mixedModules)&&isAst(W)){for(const e of W.body){if(e.type==="ImportDeclaration"){const t=String(e.source.value);f.add(t);const r=M[t.startsWith("node:")?t.slice(5):t];if(r){for(const t of e.specifiers){if(t.type==="ImportNamespaceSpecifier")setKnownBinding(t.local.name,{value:r});else if(t.type==="ImportDefaultSpecifier"&&"default"in r)setKnownBinding(t.local.name,{value:r.default});else if(t.type==="ImportSpecifier"&&t.imported.name in r)setKnownBinding(t.local.name,{value:r[t.imported.name]})}}}else if(e.type==="ExportNamedDeclaration"||e.type==="ExportAllDeclaration"){if(e.source)f.add(String(e.source.value))}}}async function computePureStaticValue(e,t=true){const r=Object.create(null);Object.keys($).forEach((e=>{r[e]={value:$[e]}}));Object.keys(J).forEach((e=>{r[e]=getKnownBinding(e)}));r["import.meta"]={url:Q};const s=await(0,c.evaluate)(e,r,t);return s}let X;let Z;let ee=false;function emitWildcardRequire(e){if(!r.analysis.emitGlobs||!e.startsWith("./")&&!e.startsWith("../"))return;e=a.default.resolve(E,e);const t=e.indexOf(c.WILDCARD);const s=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const o=e.substring(0,s);const u=e.slice(s);let d=u.replace(c.wildcardRegEx,((e,t)=>u[t-1]===a.default.sep?"**/*":"*"))||"/**/*";if(!d.endsWith("*"))d+="?("+(r.ts?".ts|.tsx|":"")+".js|.json|.node)";if(r.ignoreFn(a.default.relative(r.base,o+d)))return;P=P.then((async()=>{if(r.log)console.log("Globbing "+o+d);const e=await new Promise(((e,t)=>(0,h.default)(o+d,{mark:true,ignore:o+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));e.filter((e=>!G.has(a.default.extname(e))&&!H.has(a.default.basename(e))&&!e.endsWith("/"))).forEach((e=>f.add(e)))}))}async function processRequireArg(e,t=false){if(e.type==="ConditionalExpression"){await processRequireArg(e.consequent,t);await processRequireArg(e.alternate,t);return}if(e.type==="LogicalExpression"){await processRequireArg(e.left,t);await processRequireArg(e.right,t);return}let r=await computePureStaticValue(e,true);if(!r)return;if("value"in r&&typeof r.value==="string"){if(!r.wildcards)(t?g:f).add(r.value);else if(r.wildcards.length>=1)emitWildcardRequire(r.value)}else{if("then"in r&&typeof r.then==="string")(t?g:f).add(r.then);if("else"in r&&typeof r.else==="string")(t?g:f).add(r.else)}}let te=(0,u.attachScopes)(W,"scope");if(isAst(W)){(0,C.handleWrappers)(W);await(0,y.default)({id:e,ast:W,emitDependency:e=>f.add(e),emitAsset:e=>s.add(e),emitAssetDirectory:emitAssetDirectory,job:r})}async function backtrack(e,t){if(!X)throw new Error("Internal error: No staticChildNode for backtrack.");const r=await computePureStaticValue(e,true);if(r){if("value"in r&&typeof r.value!=="symbol"||"then"in r&&typeof r.then!=="symbol"&&typeof r.else!=="symbol"){Z=r;X=e;if(t)t.skip();return}}await emitStaticChildAsset()}await(0,o.asyncWalk)(W,{async enter(t,o){const u=t;const c=o;if(u.scope){te=u.scope;for(const e in u.scope.declarations){if(e in J)J[e].shadowDepth++}}if(X)return;if(!c)return;if(u.type==="Identifier"){if((0,p.isIdentifierRead)(u,c)&&r.analysis.computeFileReferences){let e;if(typeof(e=getKnownBinding(u.name)?.value)==="string"&&e.match(z)||e&&(typeof e==="function"||typeof e==="object")&&e[q]){Z={value:typeof e==="string"?e:undefined};X=u;await backtrack(c,this)}}}else if(r.analysis.computeFileReferences&&u.type==="MemberExpression"&&u.object.type==="MetaProperty"&&u.object.meta.name==="import"&&u.object.property.name==="meta"&&(u.property.computed?u.property.value:u.property.name)==="url"){Z={value:Q};X=u;await backtrack(c,this)}else if(u.type==="ImportExpression"){await processRequireArg(u.source,true);return}else if(u.type==="CallExpression"){if((!U||r.mixedModules)&&u.callee.type==="Identifier"&&u.arguments.length){if(u.callee.name==="require"&&J.require.shadowDepth===0){await processRequireArg(u.arguments[0]);return}}else if((!U||r.mixedModules)&&u.callee.type==="MemberExpression"&&u.callee.object.type==="Identifier"&&u.callee.object.name==="module"&&"module"in J===false&&u.callee.property.type==="Identifier"&&!u.callee.computed&&u.callee.property.name==="require"&&u.arguments.length){await processRequireArg(u.arguments[0]);return}else if((!U||r.mixedModules)&&u.callee.type==="MemberExpression"&&u.callee.object.type==="Identifier"&&u.callee.object.name==="require"&&J.require.shadowDepth===0&&u.callee.property.type==="Identifier"&&!u.callee.computed&&u.callee.property.name==="resolve"&&u.arguments.length){await processRequireArg(u.arguments[0]);return}const t=r.analysis.evaluatePureExpressions&&await computePureStaticValue(u.callee,false);if(t&&"value"in t&&typeof t.value==="function"&&t.value[q]&&r.analysis.computeFileReferences){Z=await computePureStaticValue(u,true);if(Z&&c){X=u;await backtrack(c,this)}}else if(t&&"value"in t&&typeof t.value==="symbol"){switch(t.value){case V:if(u.arguments.length===1&&u.arguments[0].type==="Literal"&&u.callee.type==="Identifier"&&J.require.shadowDepth===0){await processRequireArg(u.arguments[0])}break;case N:if(u.arguments.length){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&e.value){let t;if(typeof e.value==="object")t=e.value;else if(typeof e.value==="string")t={bindings:e.value};if(!t.path){t.path=true}t.module_root=F;let r;try{r=(0,d.default)(t)}catch(e){}if(r){Z={value:r};X=u;await emitStaticChildAsset()}}}break;case I:if(u.arguments.length===1&&u.arguments[0].type==="Identifier"&&u.arguments[0].name==="__dirname"&&J.__dirname.shadowDepth===0){let e;try{const t=(0,S.default)(E,"node-gyp-build");e=require(t).path(E)}catch(t){try{e=_.default.path(E)}catch(e){}}if(e){Z={value:e};X=u;await emitStaticChildAsset()}}break;case O:if(u.arguments.length){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&(typeof e.value==="string"||typeof e.value==="undefined")){const t=(0,D.nbind)(e.value);if(t&&t.path){f.add(a.default.relative(E,t.path).replace(/\\/g,"/"));return this.skip()}}}break;case A:if(u.arguments.length===2&&u.arguments[0].type==="Literal"&&u.arguments[0].value==="view engine"&&!ee){await processRequireArg(u.arguments[1]);return this.skip()}break;case R:ee=true;break;case B:case L:if(u.arguments[0]&&r.analysis.computeFileReferences){Z=await computePureStaticValue(u.arguments[0],true);if(Z){X=u.arguments[0];if(t.value===L&&u.arguments[0].type==="Identifier"&&u.arguments[0].name==="__dirname"){emitAssetDirectory(E)}else{await backtrack(c,this)}return this.skip()}}break;case T:if(u.arguments[0]){const e=await computePureStaticValue(u.arguments[0],false);if(e&&"value"in e&&e.value)emitAssetDirectory(e.value+"/intl");return this.skip()}break;case j:let o=a.default.resolve(e,"../package.json");const p=a.default.resolve("/package.json");while(o!==p&&await r.stat(o)===null)o=a.default.resolve(o,"../../package.json");if(o!==p)s.add(o);break}}}else if(u.type==="VariableDeclaration"&&c&&!(0,p.isVarLoop)(c)&&r.analysis.evaluatePureExpressions){for(const e of u.declarations){if(!e.init)continue;const t=await computePureStaticValue(e.init,true);if(t){if(e.id.type==="Identifier"){setKnownBinding(e.id.name,t)}else if(e.id.type==="ObjectPattern"&&"value"in t){for(const r of e.id.properties){if(r.type!=="Property"||r.key.type!=="Identifier"||r.value.type!=="Identifier"||typeof t.value!=="object"||t.value===null||!(r.key.name in t.value))continue;setKnownBinding(r.value.name,{value:t.value[r.key.name]})}}if(!("value"in t)&&isAbsolutePathOrUrl(t.then)&&isAbsolutePathOrUrl(t.else)){Z=t;X=e.init;await emitStaticChildAsset()}}}}else if(u.type==="AssignmentExpression"&&c&&!(0,p.isLoop)(c)&&r.analysis.evaluatePureExpressions){if(!hasKnownBindingValue(u.left.name)){const e=await computePureStaticValue(u.right,false);if(e&&"value"in e){if(u.left.type==="Identifier"){setKnownBinding(u.left.name,e)}else if(u.left.type==="ObjectPattern"){for(const t of u.left.properties){if(t.type!=="Property"||t.key.type!=="Identifier"||t.value.type!=="Identifier"||typeof e.value!=="object"||e.value===null||!(t.key.name in e.value))continue;setKnownBinding(t.value.name,{value:e.value[t.key.name]})}}if(isAbsolutePathOrUrl(e.value)){Z=e;X=u.right;await emitStaticChildAsset()}}}}else if((!U||r.mixedModules)&&(u.type==="FunctionDeclaration"||u.type==="FunctionExpression"||u.type==="ArrowFunctionExpression")&&(u.arguments||u.params)[0]&&(u.arguments||u.params)[0].type==="Identifier"){let e;let t;if((u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression")&&c&&c.type==="VariableDeclarator"&&c.id.type==="Identifier"){e=c.id;t=u.arguments||u.params}else if(u.id){e=u.id;t=u.arguments||u.params}if(e&&u.body.body){let r,s=false;for(let e=0;ee&&e.id&&e.id.type==="Identifier"&&e.init&&e.init.type==="CallExpression"&&e.init.callee.type==="Identifier"&&e.init.callee.name==="require"&&J.require.shadowDepth===0&&e.init.arguments[0]&&e.init.arguments[0].type==="Identifier"&&e.init.arguments[0].name===t[0].name))}if(r&&u.body.body[e].type==="ReturnStatement"&&u.body.body[e].argument&&u.body.body[e].argument.type==="Identifier"&&u.body.body[e].argument.name===r.id.name){s=true;break}}if(s)setKnownBinding(e.name,{value:V})}}},async leave(e,t){const r=e;const s=t;if(r.scope){if(te.parent){te=te.parent}for(const e in r.scope.declarations){if(e in J){if(J[e].shadowDepth>0)J[e].shadowDepth--;else delete J[e]}}}if(X&&s)await backtrack(s,this)}});await P;return{assets:s,deps:f,imports:g,isESM:U};async function emitAssetPath(e){const t=e.indexOf(c.WILDCARD);const o=t===-1?e.length:e.lastIndexOf(a.default.sep,t);const u=e.substring(0,o);try{var f=await r.stat(u);if(f===null){throw new Error("file not found")}}catch(e){return}if(t!==-1&&f.isFile())return;if(f.isFile()){s.add(e)}else if(f.isDirectory()){if(validWildcard(e))emitAssetDirectory(e)}}function validWildcard(t){let s="";if(t.endsWith(a.default.sep))s=a.default.sep;else if(t.endsWith(a.default.sep+c.WILDCARD))s=a.default.sep+c.WILDCARD;else if(t.endsWith(c.WILDCARD))s=c.WILDCARD;if(t===E+s)return false;if(t===K+s)return false;if(t.endsWith(a.default.sep+"node_modules"+s))return false;if(E.startsWith(t.slice(0,t.length-s.length)+a.default.sep))return false;if(F){const s=e.substring(0,e.indexOf(a.default.sep+"node_modules"))+a.default.sep+"node_modules"+a.default.sep;if(!t.startsWith(s)){if(r.log)console.log("Skipping asset emission of "+t.replace(c.wildcardRegEx,"*")+" for "+e+" as it is outside the package base "+F);return false}}return true}function resolveAbsolutePathOrUrl(e){return e instanceof w.URL?(0,w.fileURLToPath)(e):e.startsWith("file:")?(0,w.fileURLToPath)(new w.URL(e)):a.default.resolve(e)}async function emitStaticChildAsset(){if(!Z){return}if("value"in Z&&isAbsolutePathOrUrl(Z.value)){try{const e=resolveAbsolutePathOrUrl(Z.value);await emitAssetPath(e)}catch(e){}}else if("then"in Z&&"else"in Z&&isAbsolutePathOrUrl(Z.then)&&isAbsolutePathOrUrl(Z.else)){let e;try{e=resolveAbsolutePathOrUrl(Z.then)}catch(e){}let t;try{t=resolveAbsolutePathOrUrl(Z.else)}catch(e){}if(e)await emitAssetPath(e);if(t)await emitAssetPath(t)}else if(X&&X.type==="ArrayExpression"&&"value"in Z&&Z.value instanceof Array){for(const e of Z.value){try{const t=resolveAbsolutePathOrUrl(e);await emitAssetPath(t)}catch(e){}}}X=Z=undefined}}t["default"]=analyze;function isAst(e){return"body"in e}},529:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CachedFileSystem=void 0;const a=r(1017);const o=s(r(9165));const u=r(5749);const c=o.default.promises.readFile;const f=o.default.promises.readlink;const d=o.default.promises.stat;class CachedFileSystem{constructor({cache:e,fileIOConcurrency:t}){this.fileIOQueue=new u.Sema(t);this.fileCache=e?.fileCache??new Map;this.statCache=e?.statCache??new Map;this.symlinkCache=e?.symlinkCache??new Map;if(e){e.fileCache=this.fileCache;e.statCache=this.statCache;e.symlinkCache=this.symlinkCache}}async readlink(e){const t=this.symlinkCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalReadlink);this.symlinkCache.set(e,r);return r}async readFile(e){const t=this.fileCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalReadFile);this.fileCache.set(e,r);return r}async stat(e){const t=this.statCache.get(e);if(t!==undefined)return t;const r=this.executeFileIO(e,this._internalStat);this.statCache.set(e,r);return r}async _internalReadlink(e){try{const t=await f(e);const r=this.statCache.get(e);if(r)this.statCache.set((0,a.resolve)(e,t),r);return t}catch(e){if(e.code!=="EINVAL"&&e.code!=="ENOENT"&&e.code!=="UNKNOWN")throw e;return null}}async _internalReadFile(e){try{return(await c(e)).toString()}catch(e){if(e.code==="ENOENT"||e.code==="EISDIR"){return null}throw e}}async _internalStat(e){try{return await d(e)}catch(e){if(e.code==="ENOENT"){return null}throw e}}async executeFileIO(e,t){await this.fileIOQueue.acquire();try{return t.call(this,e)}finally{this.fileIOQueue.release()}}}t.CachedFileSystem=CachedFileSystem},6223:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var a=Object.getOwnPropertyDescriptor(t,r);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,a)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var a=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))s(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.nodeFileTrace=void 0;a(r(8470),t);var o=r(2411);Object.defineProperty(t,"nodeFileTrace",{enumerable:true,get:function(){return o.nodeFileTrace}})},2411:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var a=Object.getOwnPropertyDescriptor(t,r);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,a)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))s(t,e,r);a(t,e);return t};var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Job=t.nodeFileTrace=void 0;const c=r(1017);const f=u(r(7498));const d=o(r(1));const p=r(2540);const h=r(8908);const v=r(1017);const D=r(529);function inPath(e,t){const r=(0,v.join)(t,c.sep);return e.startsWith(r)&&e!==r}async function nodeFileTrace(e,t={}){const r=new Job(t);if(t.readFile)r.readFile=t.readFile;if(t.stat)r.stat=t.stat;if(t.readlink)r.readlink=t.readlink;if(t.resolve)r.resolve=t.resolve;r.ts=true;await Promise.all(e.map((async e=>{const t=(0,c.resolve)(e);await r.emitFile(t,"initial");return r.emitDependency(t)})));const s={fileList:r.fileList,esmFileList:r.esmFileList,reasons:r.reasons,warnings:r.warnings};return s}t.nodeFileTrace=nodeFileTrace;class Job{constructor({base:e=process.cwd(),processCwd:t,exports:r,conditions:s=r||["node"],exportsOnly:a=false,paths:o={},ignore:u,log:f=false,mixedModules:h=false,ts:v=true,analysis:g={},cache:y,fileIOConcurrency:m=1024}){this.reasons=new Map;this.maybeEmitDep=async(e,t,r)=>{let s="";let a;try{s=await this.resolve(e,t,this,r)}catch(o){a=o;try{if(this.ts&&e.endsWith(".js")&&o instanceof d.NotFoundError){const o=e.slice(0,-3)+".ts";s=await this.resolve(o,t,this,r);a=undefined}}catch(e){a=e}}if(a){this.warnings.add(new Error(`Failed to resolve dependency "${e}":\n${a?.message}`));return}if(Array.isArray(s)){for(const e of s){if(e.startsWith("node:"))return;await this.emitDependency(e,t)}}else{if(s.startsWith("node:"))return;await this.emitDependency(s,t)}};this.ts=v;e=(0,c.resolve)(e);this.ignoreFn=e=>{if(e.startsWith(".."+c.sep))return true;return false};if(typeof u==="string")u=[u];if(typeof u==="function"){const e=u;this.ignoreFn=t=>{if(t.startsWith(".."+c.sep))return true;if(e(t))return true;return false}}else if(Array.isArray(u)){const t=u.map((t=>(0,c.relative)(e,(0,c.resolve)(e||process.cwd(),t))));this.ignoreFn=e=>{if(e.startsWith(".."+c.sep))return true;if((0,p.isMatch)(e,t))return true;return false}}this.base=e;this.cwd=(0,c.resolve)(t||e);this.conditions=s;this.exportsOnly=a;const _={};for(const t of Object.keys(o)){const r=o[t].endsWith("/");const s=(0,c.resolve)(e,o[t]);_[t]=s+(r?"/":"")}this.paths=_;this.log=f;this.mixedModules=h;this.cachedFileSystem=new D.CachedFileSystem({cache:y,fileIOConcurrency:m});this.analysis={};if(g!==false){Object.assign(this.analysis,{emitGlobs:true,computeFileReferences:true,evaluatePureExpressions:true},g===true?{}:g)}this.analysisCache=y&&y.analysisCache||new Map;if(y){y.analysisCache=this.analysisCache}this.fileList=new Set;this.esmFileList=new Set;this.processed=new Set;this.warnings=new Set}async readlink(e){return this.cachedFileSystem.readlink(e)}async isFile(e){const t=await this.stat(e);if(t)return t.isFile();return false}async isDir(e){const t=await this.stat(e);if(t)return t.isDirectory();return false}async stat(e){return this.cachedFileSystem.stat(e)}async resolve(e,t,r,s){return(0,d.default)(e,t,r,s)}async readFile(e){return this.cachedFileSystem.readFile(e)}async realpath(e,t,r=new Set){if(r.has(e))throw new Error("Recursive symlink detected resolving "+e);r.add(e);const s=await this.readlink(e);if(s){const a=(0,c.dirname)(e);const o=(0,c.resolve)(a,s);const u=await this.realpath(a,t);if(inPath(e,u))await this.emitFile(e,"resolve",t,true);return this.realpath(o,t,r)}if(!inPath(e,this.base))return e;return(0,v.join)(await this.realpath((0,c.dirname)(e),t,r),(0,c.basename)(e))}async emitFile(e,t,r,s=false){if(!s){e=await this.realpath(e,r)}e=(0,c.relative)(this.base,e);if(r){r=(0,c.relative)(this.base,r)}let a=this.reasons.get(e);if(!a){a={type:[t],ignored:false,parents:new Set};this.reasons.set(e,a)}else if(!a.type.includes(t)){a.type.push(t)}if(r&&this.ignoreFn(e,r)){if(!this.fileList.has(e)&&a){a.ignored=true}return false}if(r){a.parents.add(r)}this.fileList.add(e);return true}async getPjsonBoundary(e){const t=e.indexOf(c.sep);let r;while((r=e.lastIndexOf(c.sep))>t){e=e.slice(0,r);if(await this.isFile(e+c.sep+"package.json"))return e}return undefined}async emitDependency(e,t){if(this.processed.has(e)){if(t){await this.emitFile(e,"dependency",t)}return}this.processed.add(e);const r=await this.emitFile(e,"dependency",t);if(!r)return;if(e.endsWith(".json"))return;if(e.endsWith(".node"))return await(0,h.sharedLibEmit)(e,this);if(e.endsWith(".js")||e.endsWith(".ts")){const t=await this.getPjsonBoundary(e);if(t)await this.emitFile(t+c.sep+"package.json","resolve",e)}let s;const a=this.analysisCache.get(e);if(a){s=a}else{const t=await this.readFile(e);if(t===null)throw new Error("File "+e+" does not exist.");s=await(0,f.default)(e,t.toString(),this);this.analysisCache.set(e,s)}const{deps:o,imports:u,assets:d,isESM:p}=s;if(p){this.esmFileList.add((0,c.relative)(this.base,e))}await Promise.all([...[...d].map((async t=>{const r=(0,c.extname)(t);if(r===".js"||r===".mjs"||r===".node"||r===""||this.ts&&(r===".ts"||r===".tsx")&&t.startsWith(this.base)&&t.slice(this.base.length).indexOf(c.sep+"node_modules"+c.sep)===-1)await this.emitDependency(t,e);else await this.emitFile(t,"asset",e)})),...[...o].map((async t=>this.maybeEmitDep(t,e,!p))),...[...u].map((async t=>this.maybeEmitDep(t,e,false)))])}}t.Job=Job},1:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NotFoundError=void 0;const s=r(1017);async function resolveDependency(e,t,r,a=true){let o;if((0,s.isAbsolute)(e)||e==="."||e===".."||e.startsWith("./")||e.startsWith("../")){const a=e.endsWith("/");o=await resolvePath((0,s.resolve)(t,"..",e)+(a?"/":""),t,r)}else if(e[0]==="#"){o=await packageImportsResolve(e,t,r,a)}else{o=await resolvePackage(e,t,r,a)}if(Array.isArray(o)){return Promise.all(o.map((e=>r.realpath(e,t))))}else if(o.startsWith("node:")){return o}else{return r.realpath(o,t)}}t["default"]=resolveDependency;async function resolvePath(e,t,r){const s=await resolveFile(e,t,r)||await resolveDir(e,t,r);if(!s){throw new NotFoundError(e,t)}return s}async function resolveFile(e,t,r){if(e.endsWith("/"))return undefined;e=await r.realpath(e,t);if(await r.isFile(e))return e;if(r.ts&&e.startsWith(r.base)&&e.slice(r.base.length).indexOf(s.sep+"node_modules"+s.sep)===-1&&await r.isFile(e+".ts"))return e+".ts";if(r.ts&&e.startsWith(r.base)&&e.slice(r.base.length).indexOf(s.sep+"node_modules"+s.sep)===-1&&await r.isFile(e+".tsx"))return e+".tsx";if(await r.isFile(e+".js"))return e+".js";if(await r.isFile(e+".json"))return e+".json";if(await r.isFile(e+".node"))return e+".node";return undefined}async function resolveDir(e,t,r){if(e.endsWith("/"))e=e.slice(0,-1);if(!await r.isDir(e))return;const a=await getPkgCfg(e,r);if(a&&typeof a.main==="string"){const o=await resolveFile((0,s.resolve)(e,a.main),t,r)||await resolveFile((0,s.resolve)(e,a.main,"index"),t,r);if(o){await r.emitFile(e+s.sep+"package.json","resolve",t);return o}}return resolveFile((0,s.resolve)(e,"index"),t,r)}class NotFoundError extends Error{constructor(e,t){super("Cannot find module '"+e+"' loaded from "+t);this.code="MODULE_NOT_FOUND"}}t.NotFoundError=NotFoundError;const a=new Set([...r(8102)._builtinLibs,"constants","module","timers","console","_stream_writable","_stream_readable","_stream_duplex","process","sys"]);function getPkgName(e){const t=e.split("/");if(e[0]==="@"&&t.length>1)return t.length>1?t.slice(0,2).join("/"):null;return t.length?t[0]:null}async function getPkgCfg(e,t){const r=await t.readFile(e+s.sep+"package.json");if(r){try{return JSON.parse(r.toString())}catch(e){}}return undefined}function getExportsTarget(e,t,r){if(typeof e==="string"){return e}else if(e===null){return e}else if(Array.isArray(e)){for(const s of e){const e=getExportsTarget(s,t,r);if(e===null||typeof e==="string"&&e.startsWith("./"))return e}}else if(typeof e==="object"){for(const s of Object.keys(e)){if(s==="default"||s==="require"&&r||s==="import"&&!r||t.includes(s)){const a=getExportsTarget(e[s],t,r);if(a!==undefined)return a}}}return undefined}function resolveExportsImports(e,t,r,s,a,o){let u;if(a){if(!(typeof t==="object"&&!Array.isArray(t)&&t!==null))return undefined;u=t}else if(typeof t==="string"||Array.isArray(t)||t===null||typeof t==="object"&&Object.keys(t).length&&Object.keys(t)[0][0]!=="."){u={".":t}}else{u=t}if(r in u){const t=getExportsTarget(u[r],s.conditions,o);if(typeof t==="string"&&t.startsWith("./"))return e+t.slice(1)}for(const t of Object.keys(u).sort(((e,t)=>t.length-e.length))){if(t.endsWith("*")&&r.startsWith(t.slice(0,-1))){const a=getExportsTarget(u[t],s.conditions,o);if(typeof a==="string"&&a.startsWith("./"))return e+a.slice(1).replace(/\*/g,r.slice(t.length-1))}if(!t.endsWith("/"))continue;if(r.startsWith(t)){const a=getExportsTarget(u[t],s.conditions,o);if(typeof a==="string"&&a.endsWith("/")&&a.startsWith("./"))return e+a.slice(1)+r.slice(t.length)}}return undefined}async function packageImportsResolve(e,t,r,a){if(e!=="#"&&!e.startsWith("#/")&&r.conditions){const o=await r.getPjsonBoundary(t);if(o){const u=await getPkgCfg(o,r);const{imports:c}=u||{};if(u&&c!==null&&c!==undefined){let u=resolveExportsImports(o,c,e,r,true,a);if(u){if(a)u=await resolveFile(u,t,r)||await resolveDir(u,t,r);else if(!await r.isFile(u))throw new NotFoundError(u,t);if(u){await r.emitFile(o+s.sep+"package.json","resolve",t);return u}}}}}throw new NotFoundError(e,t)}async function resolvePackage(e,t,r,o){let u=t;if(a.has(e))return"node:"+e;if(e.startsWith("node:"))return e;const c=getPkgName(e)||"";let f;if(r.conditions){const a=await r.getPjsonBoundary(t);if(a){const u=await getPkgCfg(a,r);const{exports:d}=u||{};if(u&&u.name&&u.name===c&&d!==null&&d!==undefined){f=resolveExportsImports(a,d,"."+e.slice(c.length),r,false,o);if(f){if(o)f=await resolveFile(f,t,r)||await resolveDir(f,t,r);else if(!await r.isFile(f))throw new NotFoundError(f,t)}if(f)await r.emitFile(a+s.sep+"package.json","resolve",t)}}}let d;const p=u.indexOf(s.sep);while((d=u.lastIndexOf(s.sep))>p){u=u.slice(0,d);const a=u+s.sep+"node_modules";const p=await r.stat(a);if(!p||!p.isDirectory())continue;const h=await getPkgCfg(a+s.sep+c,r);const{exports:v}=h||{};if(r.conditions&&v!==undefined&&v!==null&&!f){let u;if(!r.exportsOnly)u=await resolveFile(a+s.sep+e,t,r)||await resolveDir(a+s.sep+e,t,r);let f=resolveExportsImports(a+s.sep+c,v,"."+e.slice(c.length),r,false,o);if(f){if(o)f=await resolveFile(f,t,r)||await resolveDir(f,t,r);else if(!await r.isFile(f))throw new NotFoundError(f,t)}if(f){await r.emitFile(a+s.sep+c+s.sep+"package.json","resolve",t);if(u&&u!==f)return[f,u];return f}if(u)return u}else{const o=await resolveFile(a+s.sep+e,t,r)||await resolveDir(a+s.sep+e,t,r);if(o){if(f&&f!==o)return[o,f];return o}}}if(f)return f;if(Object.hasOwnProperty.call(r.paths,e)){return r.paths[e]}for(const s of Object.keys(r.paths)){if(s.endsWith("/")&&e.startsWith(s)){const a=r.paths[s]+e.slice(s.length);const o=await resolveFile(a,t,r)||await resolveDir(a,t,r);if(!o){throw new NotFoundError(e,t)}return o}}throw new NotFoundError(e,t)}},8470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isLoop=t.isVarLoop=t.isIdentifierRead=void 0;function isIdentifierRead(e,t){switch(t.type){case"ObjectPattern":case"ArrayPattern":return false;case"AssignmentExpression":return t.right===e;case"MemberExpression":return t.computed||e===t.object;case"Property":return e===t.value;case"MethodDefinition":return false;case"VariableDeclarator":return t.id!==e;case"ExportSpecifier":return false;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":return false;default:return true}}t.isIdentifierRead=isIdentifierRead;function isVarLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"}t.isVarLoop=isVarLoop;function isLoop(e){return e.type==="ForStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="WhileStatement"||e.type==="DoWhileStatement"}t.isLoop=isLoop},2100:function(__unused_webpack_module,exports,__nccwpck_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:true});exports.nbind=exports.pregyp=void 0;const path_1=__importDefault(__nccwpck_require__(1017));const graceful_fs_1=__importDefault(__nccwpck_require__(9165));const versioning=__nccwpck_require__(2821);const napi=__nccwpck_require__(5977);const pregypFind=(e,t)=>{const r=JSON.parse(graceful_fs_1.default.readFileSync(e).toString());versioning.validate_config(r,t);var s;if(napi.get_napi_build_versions(r,t)){s=napi.get_best_napi_build_version(r,t)}t=t||{};if(!t.module_root)t.module_root=path_1.default.dirname(e);var a=versioning.evaluate(r,t,s);return a.module};exports.pregyp={default:{find:pregypFind},find:pregypFind};function makeModulePathList(e,t){return[[e,t],[e,"build",t],[e,"build","Debug",t],[e,"build","Release",t],[e,"out","Debug",t],[e,"Debug",t],[e,"out","Release",t],[e,"Release",t],[e,"build","default",t],[e,process.env["NODE_BINDINGS_COMPILED_DIR"]||"compiled",process.versions.node,process.platform,process.arch,t]]}function findCompiledModule(basePath,specList){var resolvedList=[];var ext=path_1.default.extname(basePath);for(var _i=0,specList_1=specList;_i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPackageName=t.getPackageBase=void 0;const r=/^(@[^\\\/]+[\\\/])?[^\\\/]+/;function getPackageBase(e){const t=e.lastIndexOf("node_modules");if(t!==-1&&(e[t-1]==="/"||e[t-1]==="\\")&&(e[t+12]==="/"||e[t+12]==="\\")){const s=e.slice(t+13).match(r);if(s)return e.slice(0,t+13+s[0].length)}return undefined}t.getPackageBase=getPackageBase;function getPackageName(e){const t=e.lastIndexOf("node_modules");if(t!==-1&&(e[t-1]==="/"||e[t-1]==="\\")&&(e[t+12]==="/"||e[t+12]==="\\")){const s=e.slice(t+13).match(r);if(s&&s.length>0){return s[0].replace(/\\/g,"/")}}return undefined}t.getPackageName=getPackageName},7393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeWildcardRequire=t.normalizeDefaultRequire=void 0;function normalizeDefaultRequire(e){if(e&&e.__esModule)return e;return{default:e}}t.normalizeDefaultRequire=normalizeDefaultRequire;const r=Object.prototype.hasOwnProperty;function normalizeWildcardRequire(e){if(e&&e.__esModule)return e;const t={};for(const s in e){if(!r.call(e,s))continue;t[s]=e[s]}t["default"]=e;return t}t.normalizeWildcardRequire=normalizeWildcardRequire},8908:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.sharedLibEmit=void 0;const a=s(r(2037));const o=s(r(3535));const u=r(1226);let c="";switch(a.default.platform()){case"darwin":c="/**/*.@(dylib|so?(.*))";break;case"win32":c="/**/*.dll";break;default:c="/**/*.so?(.*)"}async function sharedLibEmit(e,t){const r=(0,u.getPackageBase)(e);if(!r)return;const s=await new Promise(((e,t)=>(0,o.default)(r+c,{ignore:r+"/**/node_modules/**/*"},((r,s)=>r?t(r):e(s)))));await Promise.all(s.map((r=>t.emitFile(r,"sharedlib",e))))}t.sharedLibEmit=sharedLibEmit},1415:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=r(1017);const o=s(r(1));const u=r(1226);const c=r(9165);const f={"@generated/photon"({id:e,emitAssetDirectory:t}){if(e.endsWith("@generated/photon/index.js")){t((0,a.resolve)((0,a.dirname)(e),"runtime/"))}},argon2({id:e,emitAssetDirectory:t}){if(e.endsWith("argon2/argon2.js")){t((0,a.resolve)((0,a.dirname)(e),"build","Release"));t((0,a.resolve)((0,a.dirname)(e),"prebuilds"));t((0,a.resolve)((0,a.dirname)(e),"lib","binding"))}},bull({id:e,emitAssetDirectory:t}){if(e.endsWith("bull/lib/commands/index.js")){t((0,a.resolve)((0,a.dirname)(e)))}},camaro({id:e,emitAsset:t}){if(e.endsWith("camaro/dist/camaro.js")){t((0,a.resolve)((0,a.dirname)(e),"camaro.wasm"))}},esbuild({id:e,emitAssetDirectory:t}){if(e.endsWith("esbuild/lib/main.js")){const r=(0,a.resolve)(e,"..","..","package.json");const s=JSON.parse((0,c.readFileSync)(r,"utf8"));for(const r of Object.keys(s.optionalDependencies||{})){const s=(0,a.resolve)(e,"..","..","..",r);t(s)}}},"google-gax"({id:e,ast:t,emitAssetDirectory:r}){if(e.endsWith("google-gax/build/src/grpc.js")){for(const s of t.body){if(s.type==="VariableDeclaration"&&s.declarations[0].id.type==="Identifier"&&s.declarations[0].id.name==="googleProtoFilesDir"){r((0,a.resolve)((0,a.dirname)(e),"../../../google-proto-files"))}}}},oracledb({id:e,ast:t,emitAsset:r}){if(e.endsWith("oracledb/lib/oracledb.js")){for(const s of t.body){if(s.type==="ForStatement"&&"body"in s.body&&s.body.body&&Array.isArray(s.body.body)&&s.body.body[0]&&s.body.body[0].type==="TryStatement"&&s.body.body[0].block.body[0]&&s.body.body[0].block.body[0].type==="ExpressionStatement"&&s.body.body[0].block.body[0].expression.type==="AssignmentExpression"&&s.body.body[0].block.body[0].expression.operator==="="&&s.body.body[0].block.body[0].expression.left.type==="Identifier"&&s.body.body[0].block.body[0].expression.left.name==="oracledbCLib"&&s.body.body[0].block.body[0].expression.right.type==="CallExpression"&&s.body.body[0].block.body[0].expression.right.callee.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.callee.name==="require"&&s.body.body[0].block.body[0].expression.right.arguments.length===1&&s.body.body[0].block.body[0].expression.right.arguments[0].type==="MemberExpression"&&s.body.body[0].block.body[0].expression.right.arguments[0].computed===true&&s.body.body[0].block.body[0].expression.right.arguments[0].object.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.arguments[0].object.name==="binaryLocations"&&s.body.body[0].block.body[0].expression.right.arguments[0].property.type==="Identifier"&&s.body.body[0].block.body[0].expression.right.arguments[0].property.name==="i"){s.body.body[0].block.body[0].expression.right.arguments=[{type:"Literal",value:"_"}];const t=global._unit?"3.0.0":JSON.parse((0,c.readFileSync)(e.slice(0,-15)+"package.json","utf8")).version;const o=Number(t.slice(0,t.indexOf(".")))>=4;const u="oracledb-"+(o?t:"abi"+process.versions.modules)+"-"+process.platform+"-"+process.arch+".node";r((0,a.resolve)(e,"../../build/Release/"+u))}}}},"phantomjs-prebuilt"({id:e,emitAssetDirectory:t}){if(e.endsWith("phantomjs-prebuilt/lib/phantomjs.js")){t((0,a.resolve)((0,a.dirname)(e),"..","bin"))}},"remark-prism"({id:e,emitAssetDirectory:t}){const r="remark-prism/src/highlight.js";if(e.endsWith(r)){try{const s=e.slice(0,-r.length);t((0,a.resolve)(s,"prismjs","components"))}catch(e){}}},semver({id:e,emitAsset:t}){if(e.endsWith("semver/index.js")){t((0,a.resolve)(e.replace("index.js","preload.js")))}},"socket.io":async function({id:e,ast:t,job:r}){if(e.endsWith("socket.io/lib/index.js")){async function replaceResolvePathStatement(t){if(t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&t.expression.operator==="="&&t.expression.right.type==="CallExpression"&&t.expression.right.callee.type==="Identifier"&&t.expression.right.callee.name==="read"&&t.expression.right.arguments.length>=1&&t.expression.right.arguments[0].type==="CallExpression"&&t.expression.right.arguments[0].callee.type==="Identifier"&&t.expression.right.arguments[0].callee.name==="resolvePath"&&t.expression.right.arguments[0].arguments.length===1&&t.expression.right.arguments[0].arguments[0].type==="Literal"){const s=t.expression.right.arguments[0].arguments[0].value;let u;try{const t=await(0,o.default)(String(s),e,r);if(typeof t==="string"){u=t}else{return undefined}}catch(e){return undefined}const c="/"+(0,a.relative)((0,a.dirname)(e),u);t.expression.right.arguments[0]={type:"BinaryExpression",start:t.expression.right.arguments[0].start,end:t.expression.right.arguments[0].end,operator:"+",left:{type:"Identifier",name:"__dirname"},right:{type:"Literal",value:c,raw:JSON.stringify(c)}}}return undefined}for(const e of t.body){if(e.type==="ExpressionStatement"&&e.expression.type==="AssignmentExpression"&&e.expression.operator==="="&&e.expression.left.type==="MemberExpression"&&e.expression.left.object.type==="MemberExpression"&&e.expression.left.object.object.type==="Identifier"&&e.expression.left.object.object.name==="Server"&&e.expression.left.object.property.type==="Identifier"&&e.expression.left.object.property.name==="prototype"&&e.expression.left.property.type==="Identifier"&&e.expression.left.property.name==="serveClient"&&e.expression.right.type==="FunctionExpression"){for(const t of e.expression.right.body.body){if(t.type==="IfStatement"&&t.consequent&&"body"in t.consequent&&t.consequent.body){const e=t.consequent.body;let r=false;if(Array.isArray(e)&&e[0]&&e[0].type==="ExpressionStatement"){r=await replaceResolvePathStatement(e[0])}if(Array.isArray(e)&&e[1]&&e[1].type==="TryStatement"&&e[1].block.body&&e[1].block.body[0]){r=await replaceResolvePathStatement(e[1].block.body[0])||r}return}}}}}},typescript({id:e,emitAssetDirectory:t}){if(e.endsWith("typescript/lib/tsc.js")){t((0,a.resolve)(e,"../"))}},"uglify-es"({id:e,emitAsset:t}){if(e.endsWith("uglify-es/tools/node.js")){t((0,a.resolve)(e,"../../lib/utils.js"));t((0,a.resolve)(e,"../../lib/ast.js"));t((0,a.resolve)(e,"../../lib/parse.js"));t((0,a.resolve)(e,"../../lib/transform.js"));t((0,a.resolve)(e,"../../lib/scope.js"));t((0,a.resolve)(e,"../../lib/output.js"));t((0,a.resolve)(e,"../../lib/compress.js"));t((0,a.resolve)(e,"../../lib/sourcemap.js"));t((0,a.resolve)(e,"../../lib/mozilla-ast.js"));t((0,a.resolve)(e,"../../lib/propmangle.js"));t((0,a.resolve)(e,"../../lib/minify.js"));t((0,a.resolve)(e,"../exports.js"))}},"uglify-js"({id:e,emitAsset:t,emitAssetDirectory:r}){if(e.endsWith("uglify-js/tools/node.js")){r((0,a.resolve)(e,"../../lib"));t((0,a.resolve)(e,"../exports.js"))}},"playwright-core"({id:e,emitAsset:t}){if(e.endsWith("playwright-core/index.js")){t((0,a.resolve)((0,a.dirname)(e),"browsers.json"))}},"geo-tz"({id:e,emitAsset:t}){if(e.endsWith("geo-tz/dist/geo-tz.js")){t((0,a.resolve)((0,a.dirname)(e),"../data/geo.dat"))}},pixelmatch({id:e,emitDependency:t}){if(e.endsWith("pixelmatch/index.js")){t((0,a.resolve)((0,a.dirname)(e),"bin/pixelmatch"))}}};async function handleSpecialCases({id:e,ast:t,emitDependency:r,emitAsset:s,emitAssetDirectory:a,job:o}){const c=(0,u.getPackageName)(e);const d=f[c||""];e=e.replace(/\\/g,"/");if(d)await d({id:e,ast:t,emitDependency:r,emitAsset:s,emitAssetDirectory:a,job:o})}t["default"]=handleSpecialCases},4370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wildcardRegEx=t.WILDCARD=t.FUNCTION=t.UNKNOWN=t.evaluate=void 0;const s=r(7310);async function evaluate(e,t={},r=true){const s={computeBranches:r,vars:t};return walk(e);function walk(e){const t=a[e.type];if(t){return t.call(s,e,walk)}return undefined}}t.evaluate=evaluate;t.UNKNOWN=Symbol();t.FUNCTION=Symbol();t.WILDCARD="";t.wildcardRegEx=/\x1a/g;function countWildcards(e){t.wildcardRegEx.lastIndex=0;let r=0;while(t.wildcardRegEx.exec(e))r++;return r}const a={ArrayExpression:async function ArrayExpression(e,t){const r=[];for(let s=0,a=e.elements.length;ss.value}}}return undefined},BinaryExpression:async function BinaryExpression(e,r){const s=e.operator;let a=await r(e.left);if(!a&&s!=="+")return;let o=await r(e.right);if(!a&&!o)return;if(!a){if(this.computeBranches&&o&&"value"in o&&typeof o.value==="string")return{value:t.WILDCARD+o.value,wildcards:[e.left,...o.wildcards||[]]};return}if(!o){if(this.computeBranches&&s==="+"){if(a&&"value"in a&&typeof a.value==="string")return{value:a.value+t.WILDCARD,wildcards:[...a.wildcards||[],e.right]}}if(!("test"in a)&&s==="||"&&a.value)return a;return}if("test"in a&&"value"in o){const e=o.value;if(s==="==")return{test:a.test,then:a.then==e,else:a.else==e};if(s==="===")return{test:a.test,then:a.then===e,else:a.else===e};if(s==="!=")return{test:a.test,then:a.then!=e,else:a.else!=e};if(s==="!==")return{test:a.test,then:a.then!==e,else:a.else!==e};if(s==="+")return{test:a.test,then:a.then+e,else:a.else+e};if(s==="-")return{test:a.test,then:a.then-e,else:a.else-e};if(s==="*")return{test:a.test,then:a.then*e,else:a.else*e};if(s==="/")return{test:a.test,then:a.then/e,else:a.else/e};if(s==="%")return{test:a.test,then:a.then%e,else:a.else%e};if(s==="<")return{test:a.test,then:a.then")return{test:a.test,then:a.then>e,else:a.else>e};if(s===">=")return{test:a.test,then:a.then>=e,else:a.else>=e};if(s==="|")return{test:a.test,then:a.then|e,else:a.else|e};if(s==="&")return{test:a.test,then:a.then&e,else:a.else&e};if(s==="^")return{test:a.test,then:a.then^e,else:a.else^e};if(s==="&&")return{test:a.test,then:a.then&&e,else:a.else&&e};if(s==="||")return{test:a.test,then:a.then||e,else:a.else||e}}else if("test"in o&&"value"in a){const e=a.value;if(s==="==")return{test:o.test,then:e==o.then,else:e==o.else};if(s==="===")return{test:o.test,then:e===o.then,else:e===o.else};if(s==="!=")return{test:o.test,then:e!=o.then,else:e!=o.else};if(s==="!==")return{test:o.test,then:e!==o.then,else:e!==o.else};if(s==="+")return{test:o.test,then:e+o.then,else:e+o.else};if(s==="-")return{test:o.test,then:e-o.then,else:e-o.else};if(s==="*")return{test:o.test,then:e*o.then,else:e*o.else};if(s==="/")return{test:o.test,then:e/o.then,else:e/o.else};if(s==="%")return{test:o.test,then:e%o.then,else:e%o.else};if(s==="<")return{test:o.test,then:e")return{test:o.test,then:e>o.then,else:e>o.else};if(s===">=")return{test:o.test,then:e>=o.then,else:e>=o.else};if(s==="|")return{test:o.test,then:e|o.then,else:e|o.else};if(s==="&")return{test:o.test,then:e&o.then,else:e&o.else};if(s==="^")return{test:o.test,then:e^o.then,else:e^o.else};if(s==="&&")return{test:o.test,then:e&&o.then,else:a&&o.else};if(s==="||")return{test:o.test,then:e||o.then,else:a||o.else}}else if("value"in a&&"value"in o){if(s==="==")return{value:a.value==o.value};if(s==="===")return{value:a.value===o.value};if(s==="!=")return{value:a.value!=o.value};if(s==="!==")return{value:a.value!==o.value};if(s==="+"){const e={value:a.value+o.value};let t=[];if("wildcards"in a&&a.wildcards){t=t.concat(a.wildcards)}if("wildcards"in o&&o.wildcards){t=t.concat(o.wildcards)}if(t.length>0){e.wildcards=t}return e}if(s==="-")return{value:a.value-o.value};if(s==="*")return{value:a.value*o.value};if(s==="/")return{value:a.value/o.value};if(s==="%")return{value:a.value%o.value};if(s==="<")return{value:a.value")return{value:a.value>o.value};if(s===">=")return{value:a.value>=o.value};if(s==="|")return{value:a.value|o.value};if(s==="&")return{value:a.value&o.value};if(s==="^")return{value:a.value^o.value};if(s==="&&")return{value:a.value&&o.value};if(s==="||")return{value:a.value||o.value}}return},CallExpression:async function CallExpression(e,r){const s=await r(e.callee);if(!s||"test"in s)return;let a=s.value;if(typeof a==="object"&&a!==null)a=a[t.FUNCTION];if(typeof a!=="function")return;let o=null;if(e.callee.object){o=await r(e.callee.object);o=o&&"value"in o&&o.value?o.value:null}let u;let c=[];let f;let d=e.arguments.length>0&&e.callee.property?.name!=="concat";const p=[];for(let s=0,a=e.arguments.length;sp.push(e)))}else{if(!this.computeBranches)return;a={value:t.WILDCARD};p.push(e.arguments[s])}if("test"in a){if(p.length)return;if(u)return;u=a.test;f=c.concat([]);c.push(a.then);f.push(a.else)}else{c.push(a.value);if(f)f.push(a.value)}}if(d)return;try{const e=await a.apply(o,c);if(e===t.UNKNOWN)return;if(!u){if(p.length){if(typeof e!=="string"||countWildcards(e)!==p.length)return;return{value:e,wildcards:p}}return{value:e}}const r=await a.apply(o,f);if(e===t.UNKNOWN)return;return{test:u,then:e,else:r}}catch(e){return}},ConditionalExpression:async function ConditionalExpression(e,t){const r=await t(e.test);if(r&&"value"in r)return r.value?t(e.consequent):t(e.alternate);if(!this.computeBranches)return;const s=await t(e.consequent);if(!s||"wildcards"in s||"test"in s)return;const a=await t(e.alternate);if(!a||"wildcards"in a||"test"in a)return;return{test:e.test,then:s.value,else:a.value}},ExpressionStatement:async function ExpressionStatement(e,t){return t(e.expression)},Identifier:async function Identifier(e,t){if(Object.hasOwnProperty.call(this.vars,e.name))return this.vars[e.name];return undefined},Literal:async function Literal(e,t){return{value:e.value}},MemberExpression:async function MemberExpression(e,r){const s=await r(e.object);if(!s||"test"in s||typeof s.value==="function"){return undefined}if(e.property.type==="Identifier"){if(typeof s.value==="string"&&e.property.name==="concat"){return{value:{[t.FUNCTION]:(...e)=>s.value.concat(e)}}}if(typeof s.value==="object"&&s.value!==null){const a=s.value;if(e.computed){const o=await r(e.property);if(o&&"value"in o&&o.value){const e=a[o.value];if(e===t.UNKNOWN)return undefined;return{value:e}}if(!a[t.UNKNOWN]&&Object.keys(s).length===0){return{value:undefined}}}else if(e.property.name in a){const r=a[e.property.name];if(r===t.UNKNOWN)return undefined;return{value:r}}else if(a[t.UNKNOWN])return undefined}else{return{value:undefined}}}const a=await r(e.property);if(!a||"test"in a)return undefined;if(typeof s.value==="object"&&s.value!==null){if(a.value in s.value){const e=s.value[a.value];if(e===t.UNKNOWN)return undefined;return{value:e}}else if(s.value[t.UNKNOWN]){return undefined}}else{return{value:undefined}}return undefined},MetaProperty:async function MetaProperty(e){if(e.meta.name==="import"&&e.property.name==="meta")return{value:this.vars["import.meta"]};return undefined},NewExpression:async function NewExpression(e,t){const r=await t(e.callee);if(r&&"value"in r&&r.value===s.URL&&e.arguments.length){const r=await t(e.arguments[0]);if(!r)return undefined;let a=null;if(e.arguments[1]){a=await t(e.arguments[1]);if(!a||!("value"in a))return undefined}if("value"in r){if(a){try{return{value:new s.URL(r.value,a.value)}}catch{return undefined}}try{return{value:new s.URL(r.value)}}catch{return undefined}}else{const e=r.test;if(a){try{return{test:e,then:new s.URL(r.then,a.value),else:new s.URL(r.else,a.value)}}catch{return undefined}}try{return{test:e,then:new s.URL(r.then),else:new s.URL(r.else)}}catch{return undefined}}}return undefined},ObjectExpression:async function ObjectExpression(e,r){const s={};for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.handleWrappers=void 0;const s=r(3982);function isUndefinedOrVoid(e){return e.type==="Identifier"&&e.name==="undefined"||e.type==="UnaryExpression"&&e.operator==="void"&&e.argument.type==="Literal"&&e.argument.value===0}function handleWrappers(e){let t;if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="UnaryExpression"&&e.body[0].expression.operator==="!"&&e.body[0].expression.argument.type==="CallExpression"&&e.body[0].expression.argument.callee.type==="FunctionExpression"&&e.body[0].expression.argument.arguments.length===1)t=e.body[0].expression.argument;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="CallExpression"&&e.body[0].expression.callee.type==="FunctionExpression"&&(e.body[0].expression.arguments.length===1||e.body[0].expression.arguments.length===0))t=e.body[0].expression;else if(e.body.length===1&&e.body[0].type==="ExpressionStatement"&&e.body[0].expression.type==="AssignmentExpression"&&e.body[0].expression.left.type==="MemberExpression"&&e.body[0].expression.left.object.type==="Identifier"&&e.body[0].expression.left.object.name==="module"&&e.body[0].expression.left.property.type==="Identifier"&&e.body[0].expression.left.property.name==="exports"&&e.body[0].expression.right.type==="CallExpression"&&e.body[0].expression.right.callee.type==="FunctionExpression"&&e.body[0].expression.right.arguments.length===1)t=e.body[0].expression.right;if(t){let e;let r;if(t.arguments[0]&&t.arguments[0].type==="ConditionalExpression"&&t.arguments[0].test.type==="LogicalExpression"&&t.arguments[0].test.operator==="&&"&&t.arguments[0].test.left.type==="BinaryExpression"&&t.arguments[0].test.left.operator==="==="&&t.arguments[0].test.left.left.type==="UnaryExpression"&&t.arguments[0].test.left.left.operator==="typeof"&&"name"in t.arguments[0].test.left.left.argument&&t.arguments[0].test.left.left.argument.name==="define"&&t.arguments[0].test.left.right.type==="Literal"&&t.arguments[0].test.left.right.value==="function"&&t.arguments[0].test.right.type==="MemberExpression"&&t.arguments[0].test.right.object.type==="Identifier"&&t.arguments[0].test.right.property.type==="Identifier"&&t.arguments[0].test.right.property.name==="amd"&&t.arguments[0].test.right.computed===false&&t.arguments[0].alternate.type==="FunctionExpression"&&t.arguments[0].alternate.params.length===1&&t.arguments[0].alternate.params[0].type==="Identifier"&&t.arguments[0].alternate.body.body.length===1&&t.arguments[0].alternate.body.body[0].type==="ExpressionStatement"&&t.arguments[0].alternate.body.body[0].expression.type==="AssignmentExpression"&&t.arguments[0].alternate.body.body[0].expression.left.type==="MemberExpression"&&t.arguments[0].alternate.body.body[0].expression.left.object.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.left.object.name==="module"&&t.arguments[0].alternate.body.body[0].expression.left.property.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.left.property.name==="exports"&&t.arguments[0].alternate.body.body[0].expression.left.computed===false&&t.arguments[0].alternate.body.body[0].expression.right.type==="CallExpression"&&t.arguments[0].alternate.body.body[0].expression.right.callee.type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.right.callee.name===t.arguments[0].alternate.params[0].name&&"body"in t.callee&&"body"in t.callee.body&&Array.isArray(t.callee.body.body)&&t.arguments[0].alternate.body.body[0].expression.right.arguments.length===1&&t.arguments[0].alternate.body.body[0].expression.right.arguments[0].type==="Identifier"&&t.arguments[0].alternate.body.body[0].expression.right.arguments[0].name==="require"){let e=t.callee.body.body;if(e[0].type==="ExpressionStatement"&&e[0].expression.type==="Literal"&&e[0].expression.value==="use strict"){e=e.slice(1)}if(e.length===1&&e[0].type==="ExpressionStatement"&&e[0].expression.type==="CallExpression"&&e[0].expression.callee.type==="Identifier"&&e[0].expression.callee.name===t.arguments[0].test.right.object.name&&e[0].expression.arguments.length===1&&e[0].expression.arguments[0].type==="FunctionExpression"&&e[0].expression.arguments[0].params.length===1&&e[0].expression.arguments[0].params[0].type==="Identifier"&&e[0].expression.arguments[0].params[0].name==="require"){const t=e[0].expression.arguments[0];t.params=[];try{delete t.scope.declarations.require}catch(e){}}}else if(t.arguments[0]&&t.arguments[0].type==="FunctionExpression"&&t.arguments[0].params.length===0&&(t.arguments[0].body.body.length===1||t.arguments[0].body.body.length===2&&t.arguments[0].body.body[0].type==="VariableDeclaration"&&t.arguments[0].body.body[0].declarations.length===3&&t.arguments[0].body.body[0].declarations.every((e=>e.init===null&&e.id.type==="Identifier")))&&t.arguments[0].body.body[t.arguments[0].body.body.length-1].type==="ReturnStatement"&&(e=t.arguments[0].body.body[t.arguments[0].body.body.length-1])&&e.argument?.type==="CallExpression"&&e.argument.arguments.length&&e.argument.arguments.every((e=>e&&e.type==="Literal"&&typeof e.value==="number"))&&e.argument.callee.type==="CallExpression"&&(e.argument.callee.callee.type==="FunctionExpression"||e.argument.callee.callee.type==="CallExpression"&&e.argument.callee.callee.callee.type==="FunctionExpression"&&e.argument.callee.callee.arguments.length===0)&&e.argument.callee.arguments.length===3&&e.argument.callee.arguments[0].type==="ObjectExpression"&&e.argument.callee.arguments[1].type==="ObjectExpression"&&e.argument.callee.arguments[2].type==="ArrayExpression"){const t=e.argument.callee.arguments[0].properties;const r={};if(t.every((e=>{if(e.type!=="Property"||e.computed!==false||e.key.type!=="Literal"||typeof e.key.value!=="number"||e.value.type!=="ArrayExpression"||e.value.elements.length!==2||!e.value.elements[0]||!e.value.elements[1]||e.value.elements[0].type!=="FunctionExpression"||e.value.elements[1].type!=="ObjectExpression"){return false}const t=e.value.elements[1].properties;for(const e of t){if(e.type!=="Property"||e.value.type!=="Identifier"&&e.value.type!=="Literal"&&!isUndefinedOrVoid(e.value)||!(e.key.type==="Literal"&&typeof e.key.value==="string"||e.key.type==="Identifier")||e.computed){return false}if(isUndefinedOrVoid(e.value)){if(e.key.type==="Identifier"){r[e.key.name]={type:"Literal",start:e.key.start,end:e.key.end,value:e.key.name,raw:JSON.stringify(e.key.name)}}else if(e.key.type==="Literal"){r[String(e.key.value)]=e.key}}}return true}))){const t=Object.keys(r);const s=e.argument.callee.arguments[1];s.properties=t.map((e=>({type:"Property",method:false,shorthand:false,computed:false,kind:"init",key:r[e],value:{type:"ObjectExpression",properties:[{type:"Property",kind:"init",method:false,shorthand:false,computed:false,key:{type:"Identifier",name:"exports"},value:{type:"CallExpression",optional:false,callee:{type:"Identifier",name:"require"},arguments:[r[e]]}}]}})))}}else if(t.arguments[0]&&t.arguments[0].type==="FunctionExpression"&&t.arguments[0].params.length===2&&t.arguments[0].params[0].type==="Identifier"&&t.arguments[0].params[1].type==="Identifier"&&"body"in t.callee&&"body"in t.callee.body&&Array.isArray(t.callee.body.body)&&t.callee.body.body.length===1){const e=t.callee.body.body[0];if(e.type==="IfStatement"&&e.test.type==="LogicalExpression"&&e.test.operator==="&&"&&e.test.left.type==="BinaryExpression"&&e.test.left.left.type==="UnaryExpression"&&e.test.left.left.operator==="typeof"&&e.test.left.left.argument.type==="Identifier"&&e.test.left.left.argument.name==="module"&&e.test.left.right.type==="Literal"&&e.test.left.right.value==="object"&&e.test.right.type==="BinaryExpression"&&e.test.right.left.type==="UnaryExpression"&&e.test.right.left.operator==="typeof"&&e.test.right.left.argument.type==="MemberExpression"&&e.test.right.left.argument.object.type==="Identifier"&&e.test.right.left.argument.object.name==="module"&&e.test.right.left.argument.property.type==="Identifier"&&e.test.right.left.argument.property.name==="exports"&&e.test.right.right.type==="Literal"&&e.test.right.right.value==="object"&&e.consequent.type==="BlockStatement"&&e.consequent.body.length>0){let r;if(e.consequent.body[0].type==="VariableDeclaration"&&e.consequent.body[0].declarations[0].init&&e.consequent.body[0].declarations[0].init.type==="CallExpression")r=e.consequent.body[0].declarations[0].init;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="CallExpression")r=e.consequent.body[0].expression;else if(e.consequent.body[0].type==="ExpressionStatement"&&e.consequent.body[0].expression.type==="AssignmentExpression"&&e.consequent.body[0].expression.operator==="="&&e.consequent.body[0].expression.right.type==="CallExpression")r=e.consequent.body[0].expression.right;if(r&&r.callee.type==="Identifier"&&"params"in t.callee&&t.callee.params.length>0&&"name"in t.callee.params[0]&&r.callee.name===t.callee.params[0].name&&r.arguments.length===2&&r.arguments[0].type==="Identifier"&&r.arguments[0].name==="require"&&r.arguments[1].type==="Identifier"&&r.arguments[1].name==="exports"){const e=t.arguments[0];e.params=[];try{const t=e.scope;delete t.declarations.require;delete t.declarations.exports}catch(e){}}}}else if(t.callee.type==="FunctionExpression"&&t.callee.body.body.length>2&&t.callee.body.body[0].type==="VariableDeclaration"&&t.callee.body.body[0].declarations.length===1&&t.callee.body.body[0].declarations[0].type==="VariableDeclarator"&&t.callee.body.body[0].declarations[0].id.type==="Identifier"&&t.callee.body.body[0].declarations[0].init&&(t.callee.body.body[0].declarations[0].init.type==="ObjectExpression"&&t.callee.body.body[0].declarations[0].init.properties.length===0||t.callee.body.body[0].declarations[0].init.type==="CallExpression"&&t.callee.body.body[0].declarations[0].init.arguments.length===1)&&(t.callee.body.body[1]&&t.callee.body.body[1].type==="FunctionDeclaration"&&t.callee.body.body[1].params.length===1&&t.callee.body.body[1].body.body.length>=3||t.callee.body.body[2]&&t.callee.body.body[2].type==="FunctionDeclaration"&&t.callee.body.body[2].params.length===1&&t.callee.body.body[2].body.body.length>=3)&&(t.arguments[0]&&(t.arguments[0].type==="ArrayExpression"&&(r=t.arguments[0])&&t.arguments[0].elements.length>0&&t.arguments[0].elements.every((e=>e&&e.type==="FunctionExpression"))||t.arguments[0].type==="ObjectExpression"&&(r=t.arguments[0])&&t.arguments[0].properties&&t.arguments[0].properties.length>0&&t.arguments[0].properties.every((e=>e&&e.type==="Property"&&!e.computed&&e.key&&e.key.type==="Literal"&&(typeof e.key.value==="string"||typeof e.key.value==="number")&&e.value&&e.value.type==="FunctionExpression"))))||t.arguments.length===0&&t.callee.type==="FunctionExpression"&&t.callee.params.length===0&&t.callee.body.type==="BlockStatement"&&t.callee.body.body.length>5&&t.callee.body.body[0].type==="VariableDeclaration"&&t.callee.body.body[0].declarations.length===1&&t.callee.body.body[0].declarations[0].id.type==="Identifier"&&t.callee.body.body[1].type==="ExpressionStatement"&&t.callee.body.body[1].expression.type==="AssignmentExpression"&&t.callee.body.body[2].type==="ExpressionStatement"&&t.callee.body.body[2].expression.type==="AssignmentExpression"&&t.callee.body.body[3].type==="ExpressionStatement"&&t.callee.body.body[3].expression.type==="AssignmentExpression"&&t.callee.body.body[3].expression.left.type==="MemberExpression"&&t.callee.body.body[3].expression.left.object.type==="Identifier"&&t.callee.body.body[3].expression.left.object.name===t.callee.body.body[0].declarations[0].id.name&&t.callee.body.body[3].expression.left.property.type==="Identifier"&&t.callee.body.body[3].expression.left.property.name==="modules"&&t.callee.body.body[3].expression.right.type==="ObjectExpression"&&t.callee.body.body[3].expression.right.properties.every((e=>e&&e.type==="Property"&&!e.computed&&e.key&&e.key.type==="Literal"&&(typeof e.key.value==="string"||typeof e.key.value==="number")&&e.value&&e.value.type==="FunctionExpression"))&&(r=t.callee.body.body[3].expression.right)&&(t.callee.body.body[4].type==="VariableDeclaration"&&t.callee.body.body[4].declarations.length===1&&t.callee.body.body[4].declarations[0].init&&t.callee.body.body[4].declarations[0].init.type==="CallExpression"&&t.callee.body.body[4].declarations[0].init.callee.type==="Identifier"&&t.callee.body.body[4].declarations[0].init.callee.name==="require"||t.callee.body.body[5].type==="VariableDeclaration"&&t.callee.body.body[5].declarations.length===1&&t.callee.body.body[5].declarations[0].init&&t.callee.body.body[5].declarations[0].init.type==="CallExpression"&&t.callee.body.body[5].declarations[0].init.callee.type==="Identifier"&&t.callee.body.body[5].declarations[0].init.callee.name==="require")){const e=new Map;let t;if(r.type==="ArrayExpression")t=r.elements.filter((e=>e?.type==="FunctionExpression")).map(((e,t)=>[String(t),e]));else t=r.properties.map((e=>[String(e.key.value),e.value]));for(const[r,s]of t){const t=s.body.body.length===1?s.body.body[0]:(s.body.body.length===2||s.body.body.length===3&&s.body.body[2].type==="EmptyStatement")&&s.body.body[0].type==="ExpressionStatement"&&s.body.body[0].expression.type==="Literal"&&s.body.body[0].expression.value==="use strict"?s.body.body[1]:null;if(t&&t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&t.expression.operator==="="&&t.expression.left.type==="MemberExpression"&&t.expression.left.object.type==="Identifier"&&"params"in s&&s.params.length>0&&"name"in s.params[0]&&t.expression.left.object.name===s.params[0].name&&t.expression.left.property.type==="Identifier"&&t.expression.left.property.name==="exports"&&t.expression.right.type==="CallExpression"&&t.expression.right.callee.type==="Identifier"&&t.expression.right.callee.name==="require"&&t.expression.right.arguments.length===1&&t.expression.right.arguments[0].type==="Literal"){e.set(r,t.expression.right.arguments[0].value)}}for(const[,r]of t){if("params"in r&&r.params.length===3&&r.params[2].type==="Identifier"){const t=new Map;(0,s.walk)(r.body,{enter(s,a){const o=s;const u=a;if(o.type==="CallExpression"&&o.callee.type==="Identifier"&&"name"in r.params[2]&&o.callee.name===r.params[2].name&&o.arguments.length===1&&o.arguments[0].type==="Literal"){const r=e.get(String(o.arguments[0].value));if(r){const e={type:"CallExpression",optional:false,callee:{type:"Identifier",name:"require"},arguments:[{type:"Literal",value:r}]};const s=u;if("right"in s&&s.right===o){s.right=e}else if("left"in s&&s.left===o){s.left=e}else if("object"in s&&s.object===o){s.object=e}else if("callee"in s&&s.callee===o){s.callee=e}else if("arguments"in s&&s.arguments.some((e=>e===o))){s.arguments=s.arguments.map((t=>t===o?e:t))}else if("init"in s&&s.init===o){if(s.type==="VariableDeclarator"&&s.id.type==="Identifier")t.set(s.id.name,r);s.init=e}}}else if(o.type==="CallExpression"&&o.callee.type==="MemberExpression"&&o.callee.object.type==="Identifier"&&"name"in r.params[2]&&o.callee.object.name===r.params[2].name&&o.callee.property.type==="Identifier"&&o.callee.property.name==="n"&&o.arguments.length===1&&o.arguments[0].type==="Identifier"){if(u&&"init"in u&&u.init===o){const e=o.arguments[0];const t={type:"CallExpression",optional:false,callee:{type:"MemberExpression",computed:false,optional:false,object:{type:"Identifier",name:"Object"},property:{type:"Identifier",name:"assign"}},arguments:[{type:"ArrowFunctionExpression",expression:true,params:[],body:e},{type:"ObjectExpression",properties:[{type:"Property",kind:"init",method:false,computed:false,shorthand:false,key:{type:"Identifier",name:"a"},value:e}]}]};u.init=t}}}})}}}}}t.handleWrappers=handleWrappers},351:(e,t)=>{e.exports=t=abbrev.abbrev=abbrev;abbrev.monkeyPatch=monkeyPatch;function monkeyPatch(){Object.defineProperty(Array.prototype,"abbrev",{value:function(){return abbrev(this)},enumerable:false,configurable:true,writable:true});Object.defineProperty(Object.prototype,"abbrev",{value:function(){return abbrev(Object.keys(this))},enumerable:false,configurable:true,writable:true})}function abbrev(e){if(arguments.length!==1||!Array.isArray(e)){e=Array.prototype.slice.call(arguments,0)}for(var t=0,r=e.length,s=[];tt?1:-1}},878:e=>{"use strict";function isArguments(e){return e!=null&&typeof e==="object"&&e.hasOwnProperty("callee")}var t={"*":{label:"any",check:function(){return true}},A:{label:"array",check:function(e){return Array.isArray(e)||isArguments(e)}},S:{label:"string",check:function(e){return typeof e==="string"}},N:{label:"number",check:function(e){return typeof e==="number"}},F:{label:"function",check:function(e){return typeof e==="function"}},O:{label:"object",check:function(e){return typeof e==="object"&&e!=null&&!t.A.check(e)&&!t.E.check(e)}},B:{label:"boolean",check:function(e){return typeof e==="boolean"}},E:{label:"error",check:function(e){return e instanceof Error}},Z:{label:"null",check:function(e){return e==null}}};function addSchema(e,t){var r=t[e.length]=t[e.length]||[];if(r.indexOf(e)===-1)r.push(e)}var r=e.exports=function(e,r){if(arguments.length!==2)throw wrongNumberOfArgs(["SA"],arguments.length);if(!e)throw missingRequiredArg(0,"rawSchemas");if(!r)throw missingRequiredArg(1,"args");if(!t.S.check(e))throw invalidType(0,["string"],e);if(!t.A.check(r))throw invalidType(1,["array"],r);var s=e.split("|");var a={};s.forEach((function(e){for(var r=0;r{"use strict";t.TrackerGroup=r(308);t.Tracker=r(7605);t.TrackerStream=r(374)},5299:(e,t,r)=>{"use strict";var s=r(2361).EventEmitter;var a=r(3837);var o=0;var u=e.exports=function(e){s.call(this);this.id=++o;this.name=e};a.inherits(u,s)},308:(e,t,r)=>{"use strict";var s=r(3837);var a=r(5299);var o=r(7605);var u=r(374);var c=e.exports=function(e){a.call(this,e);this.parentGroup=null;this.trackers=[];this.completion={};this.weight={};this.totalWeight=0;this.finished=false;this.bubbleChange=bubbleChange(this)};s.inherits(c,a);function bubbleChange(e){return function(t,r,s){e.completion[s.id]=r;if(e.finished)return;e.emit("change",t||e.name,e.completed(),e)}}c.prototype.nameInTree=function(){var e=[];var t=this;while(t){e.unshift(t.name);t=t.parentGroup}return e.join("/")};c.prototype.addUnit=function(e,t){if(e.addUnit){var r=this;while(r){if(e===r){throw new Error("Attempted to add tracker group "+e.name+" to tree that already includes it "+this.nameInTree(this))}r=r.parentGroup}e.parentGroup=this}this.weight[e.id]=t||1;this.totalWeight+=this.weight[e.id];this.trackers.push(e);this.completion[e.id]=e.completed();e.on("change",this.bubbleChange);if(!this.finished)this.emit("change",e.name,this.completion[e.id],e);return e};c.prototype.completed=function(){if(this.trackers.length===0)return 0;var e=1/this.totalWeight;var t=0;for(var r=0;r{"use strict";var s=r(3837);var a=r(8511);var o=r(857);var u=r(7605);var c=e.exports=function(e,t,r){a.Transform.call(this,r);this.tracker=new u(e,t);this.name=e;this.id=this.tracker.id;this.tracker.on("change",delegateChange(this))};s.inherits(c,a.Transform);function delegateChange(e){return function(t,r,s){e.emit("change",t,r,e)}}c.prototype._transform=function(e,t,r){this.tracker.completeWork(e.length?e.length:1);this.push(e);r()};c.prototype._flush=function(e){this.tracker.finish();e()};o(c.prototype,"tracker").method("completed").method("addWork").method("finish")},7605:(e,t,r)=>{"use strict";var s=r(3837);var a=r(5299);var o=e.exports=function(e,t){a.call(this,e);this.workDone=0;this.workTodo=t||0};s.inherits(o,a);o.prototype.completed=function(){return this.workTodo===0?0:this.workDone/this.workTodo};o.prototype.addWork=function(e){this.workTodo+=e;this.emit("change",this.name,this.completed(),this)};o.prototype.completeWork=function(e){this.workDone+=e;if(this.workDone>this.workTodo)this.workDone=this.workTodo;this.emit("change",this.name,this.completed(),this)};o.prototype.finish=function(){this.workTodo=this.workDone=1;this.emit("change",this.name,1,this)}},3331:(module,exports,__nccwpck_require__)=>{var fs=__nccwpck_require__(7147),path=__nccwpck_require__(1017),fileURLToPath=__nccwpck_require__(7121),join=path.join,dirname=path.dirname,exists=fs.accessSync&&function(e){try{fs.accessSync(e)}catch(e){return false}return true}||fs.existsSync||path.existsSync,defaults={arrow:process.env.NODE_BINDINGS_ARROW||" → ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function bindings(opts){if(typeof opts=="string"){opts={bindings:opts}}else if(!opts){opts={}}Object.keys(defaults).map((function(e){if(!(e in opts))opts[e]=defaults[e]}));if(!opts.module_root){opts.module_root=exports.getRoot(exports.getFileName())}if(path.extname(opts.bindings)!=".node"){opts.bindings+=".node"}var requireFunc=true?eval("require"):0;var tries=[],i=0,l=opts.try.length,n,b,err;for(;i{"use strict";e.exports=function(e,t){if(e===null||e===undefined){throw TypeError()}e=String(e);var r=e.length;var s=t?Number(t):0;if(Number.isNaN(s)){s=0}if(s<0||s>=r){return undefined}var a=e.charCodeAt(s);if(a>=55296&&a<=56319&&r>s+1){var o=e.charCodeAt(s+1);if(o>=56320&&o<=57343){return(a-55296)*1024+o-56320+65536}}return a}},3844:(e,t)=>{"use strict";var r="[";t.up=function up(e){return r+(e||"")+"A"};t.down=function down(e){return r+(e||"")+"B"};t.forward=function forward(e){return r+(e||"")+"C"};t.back=function back(e){return r+(e||"")+"D"};t.nextLine=function nextLine(e){return r+(e||"")+"E"};t.previousLine=function previousLine(e){return r+(e||"")+"F"};t.horizontalAbsolute=function horizontalAbsolute(e){if(e==null)throw new Error("horizontalAboslute requires a column to position to");return r+e+"G"};t.eraseData=function eraseData(){return r+"J"};t.eraseLine=function eraseLine(){return r+"K"};t.goto=function(e,t){return r+t+";"+e+"H"};t.gotoSOL=function(){return"\r"};t.beep=function(){return""};t.hideCursor=function hideCursor(){return r+"?25l"};t.showCursor=function showCursor(){return r+"?25h"};var s={reset:0,bold:1,italic:3,underline:4,inverse:7,stopBold:22,stopItalic:23,stopUnderline:24,stopInverse:27,white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,bgWhite:47,bgBlack:40,bgBlue:44,bgCyan:46,bgGreen:42,bgMagenta:45,bgRed:41,bgYellow:43,grey:90,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97,bgGrey:100,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107};t.color=function color(e){if(arguments.length!==1||!Array.isArray(e)){e=Array.prototype.slice.call(arguments)}return r+e.map(colorNameToCode).join(";")+"m"};function colorNameToCode(e){if(s[e]!=null)return s[e];throw new Error("Unknown color or style name: "+e)}},1504:(e,t)=>{function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},857:e=>{e.exports=Delegator;function Delegator(e,t){if(!(this instanceof Delegator))return new Delegator(e,t);this.proto=e;this.target=t;this.methods=[];this.getters=[];this.setters=[];this.fluents=[]}Delegator.prototype.method=function(e){var t=this.proto;var r=this.target;this.methods.push(e);t[e]=function(){return this[r][e].apply(this[r],arguments)};return this};Delegator.prototype.access=function(e){return this.getter(e).setter(e)};Delegator.prototype.getter=function(e){var t=this.proto;var r=this.target;this.getters.push(e);t.__defineGetter__(e,(function(){return this[r][e]}));return this};Delegator.prototype.setter=function(e){var t=this.proto;var r=this.target;this.setters.push(e);t.__defineSetter__(e,(function(t){return this[r][e]=t}));return this};Delegator.prototype.fluent=function(e){var t=this.proto;var r=this.target;this.fluents.push(e);t[e]=function(t){if("undefined"!=typeof t){this[r][e]=t;return this}else{return this[r][e]}};return this}},5104:(e,t,r)=>{"use strict";var s=r(2037).platform();var a=r(2081).spawnSync;var o=r(7147).readdirSync;var u="glibc";var c="musl";var f={encoding:"utf8",env:process.env};if(!a){a=function(){return{status:126,stdout:"",stderr:""}}}function contains(e){return function(t){return t.indexOf(e)!==-1}}function versionFromMuslLdd(e){return e.split(/[\r\n]+/)[1].trim().split(/\s/)[1]}function safeReaddirSync(e){try{return o(e)}catch(e){}return[]}var d="";var p="";var h="";if(s==="linux"){var v=a("getconf",["GNU_LIBC_VERSION"],f);if(v.status===0){d=u;p=v.stdout.trim().split(" ")[1];h="getconf"}else{var D=a("ldd",["--version"],f);if(D.status===0&&D.stdout.indexOf(c)!==-1){d=c;p=versionFromMuslLdd(D.stdout);h="ldd"}else if(D.status===1&&D.stderr.indexOf(c)!==-1){d=c;p=versionFromMuslLdd(D.stderr);h="ldd"}else{var g=safeReaddirSync("/lib");if(g.some(contains("-linux-gnu"))){d=u;h="filesystem"}else if(g.some(contains("libc.musl-"))){d=c;h="filesystem"}else if(g.some(contains("ld-musl-"))){d=c;h="filesystem"}else{var y=safeReaddirSync("/usr/sbin");if(y.some(contains("glibc"))){d=u;h="filesystem"}}}}}var m=d!==""&&d!==u;e.exports={GLIBC:u,MUSL:c,family:d,version:p,method:h,isNonGlibcLinux:m}},3876:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},7121:(e,t,r)=>{var s=r(1017).sep||"/";e.exports=fileUriToPath;function fileUriToPath(e){if("string"!=typeof e||e.length<=7||"file://"!=e.substring(0,7)){throw new TypeError("must pass in a file:// URI to convert to a file path")}var t=decodeURI(e.substring(7));var r=t.indexOf("/");var a=t.substring(0,r);var o=t.substring(r+1);if("localhost"==a)a="";if(a){a=s+s+a}o=o.replace(/^(.+)\|/,"$1:");if(s=="\\"){o=o.replace(/\//g,"\\")}if(/^.+\:/.test(o)){}else{o=s+o}return a+o}},8862:(e,t,r)=>{"use strict";var s=r(5154);var a=r(4044);e.exports={activityIndicator:function(e,t,r){if(e.spun==null)return;return s(t,e.spun)},progressbar:function(e,t,r){if(e.completed==null)return;return a(t,r,e.completed)}}},2905:(e,t,r)=>{"use strict";var s=r(3837);var a=t.User=function User(e){var t=new Error(e);Error.captureStackTrace(t,User);t.code="EGAUGE";return t};t.MissingTemplateValue=function MissingTemplateValue(e,t){var r=new a(s.format('Missing template value "%s"',e.type));Error.captureStackTrace(r,MissingTemplateValue);r.template=e;r.values=t;return r};t.Internal=function Internal(e){var t=new Error(e);Error.captureStackTrace(t,Internal);t.code="EGAUGEINTERNAL";return t}},1191:e=>{"use strict";e.exports=isWin32()||isColorTerm();function isWin32(){return process.platform==="win32"}function isColorTerm(){var e=/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i;return!!process.env.COLORTERM||e.test(process.env.TERM)}},287:(e,t,r)=>{"use strict";var s=r(4052);var a=r(5214);var o=r(1191);var u=r(7234);var c=r(9986);var f=r(7131);var d=r(5751);var p=r(5498);e.exports=Gauge;function callWith(e,t){return function(){return t.call(e)}}function Gauge(e,t){var r,a;if(e&&e.write){a=e;r=t||{}}else if(t&&t.write){a=t;r=e||{}}else{a=d.stderr;r=e||t||{}}this._status={spun:0,section:"",subsection:""};this._paused=false;this._disabled=true;this._showing=false;this._onScreen=false;this._needsRedraw=false;this._hideCursor=r.hideCursor==null?true:r.hideCursor;this._fixedFramerate=r.fixedFramerate==null?!/^v0\.8\./.test(d.version):r.fixedFramerate;this._lastUpdateAt=null;this._updateInterval=r.updateInterval==null?50:r.updateInterval;this._themes=r.themes||c;this._theme=r.theme;var o=this._computeTheme(r.theme);var u=r.template||[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",kerning:1,default:""},{type:"subsection",kerning:1,default:""}];this.setWriteTo(a,r.tty);var f=r.Plumbing||s;this._gauge=new f(o,u,this.getWidth());this._$$doRedraw=callWith(this,this._doRedraw);this._$$handleSizeChange=callWith(this,this._handleSizeChange);this._cleanupOnExit=r.cleanupOnExit==null||r.cleanupOnExit;this._removeOnExit=null;if(r.enabled||r.enabled==null&&this._tty&&this._tty.isTTY){this.enable()}else{this.disable()}}Gauge.prototype={};Gauge.prototype.isEnabled=function(){return!this._disabled};Gauge.prototype.setTemplate=function(e){this._gauge.setTemplate(e);if(this._showing)this._requestRedraw()};Gauge.prototype._computeTheme=function(e){if(!e)e={};if(typeof e==="string"){e=this._themes.getTheme(e)}else if(e&&(Object.keys(e).length===0||e.hasUnicode!=null||e.hasColor!=null)){var t=e.hasUnicode==null?a():e.hasUnicode;var r=e.hasColor==null?o:e.hasColor;e=this._themes.getDefault({hasUnicode:t,hasColor:r,platform:e.platform})}return e};Gauge.prototype.setThemeset=function(e){this._themes=e;this.setTheme(this._theme)};Gauge.prototype.setTheme=function(e){this._gauge.setTheme(this._computeTheme(e));if(this._showing)this._requestRedraw();this._theme=e};Gauge.prototype._requestRedraw=function(){this._needsRedraw=true;if(!this._fixedFramerate)this._doRedraw()};Gauge.prototype.getWidth=function(){return(this._tty&&this._tty.columns||80)-1};Gauge.prototype.setWriteTo=function(e,t){var r=!this._disabled;if(r)this.disable();this._writeTo=e;this._tty=t||e===d.stderr&&d.stdout.isTTY&&d.stdout||e.isTTY&&e||this._tty;if(this._gauge)this._gauge.setWidth(this.getWidth());if(r)this.enable()};Gauge.prototype.enable=function(){if(!this._disabled)return;this._disabled=false;if(this._tty)this._enableEvents();if(this._showing)this.show()};Gauge.prototype.disable=function(){if(this._disabled)return;if(this._showing){this._lastUpdateAt=null;this._showing=false;this._doRedraw();this._showing=true}this._disabled=true;if(this._tty)this._disableEvents()};Gauge.prototype._enableEvents=function(){if(this._cleanupOnExit){this._removeOnExit=u(callWith(this,this.disable))}this._tty.on("resize",this._$$handleSizeChange);if(this._fixedFramerate){this.redrawTracker=f(this._$$doRedraw,this._updateInterval);if(this.redrawTracker.unref)this.redrawTracker.unref()}};Gauge.prototype._disableEvents=function(){this._tty.removeListener("resize",this._$$handleSizeChange);if(this._fixedFramerate)clearInterval(this.redrawTracker);if(this._removeOnExit)this._removeOnExit()};Gauge.prototype.hide=function(e){if(this._disabled)return e&&d.nextTick(e);if(!this._showing)return e&&d.nextTick(e);this._showing=false;this._doRedraw();e&&p(e)};Gauge.prototype.show=function(e,t){this._showing=true;if(typeof e==="string"){this._status.section=e}else if(typeof e==="object"){var r=Object.keys(e);for(var s=0;s{"use strict";var s=r(3844);var a=r(7238);var o=r(878);var u=e.exports=function(e,t,r){if(!r)r=80;o("OAN",[e,t,r]);this.showing=false;this.theme=e;this.width=r;this.template=t};u.prototype={};u.prototype.setTheme=function(e){o("O",[e]);this.theme=e};u.prototype.setTemplate=function(e){o("A",[e]);this.template=e};u.prototype.setWidth=function(e){o("N",[e]);this.width=e};u.prototype.hide=function(){return s.gotoSOL()+s.eraseLine()};u.prototype.hideCursor=s.hideCursor;u.prototype.showCursor=s.showCursor;u.prototype.show=function(e){var t=Object.create(this.theme);for(var r in e){t[r]=e[r]}return a(this.width,this.template,t).trim()+s.color("reset")+s.eraseLine()+s.gotoSOL()}},5751:e=>{"use strict";e.exports=process},4044:(e,t,r)=>{"use strict";var s=r(878);var a=r(7238);var o=r(5791);var u=r(8321);e.exports=function(e,t,r){s("ONN",[e,t,r]);if(r<0)r=0;if(r>1)r=1;if(t<=0)return"";var o=Math.round(t*r);var u=t-o;var c=[{type:"complete",value:repeat(e.complete,o),length:o},{type:"remaining",value:repeat(e.remaining,u),length:u}];return a(t,c,e)};function repeat(e,t){var r="";var s=t;do{if(s%2){r+=e}s=Math.floor(s/2);e+=e}while(s&&u(r){"use strict";var s=r(1365);var a=r(878);var o=r(3540);var u=r(5791);var c=r(2905);var f=r(8855);function renderValueWithValues(e){return function(t){return renderValue(t,e)}}var d=e.exports=function(e,t,r){var a=prepareItems(e,t,r);var o=a.map(renderValueWithValues(r)).join("");return s.left(u(o,e),e)};function preType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"pre"+t}function postType(e){var t=e.type[0].toUpperCase()+e.type.slice(1);return"post"+t}function hasPreOrPost(e,t){if(!e.type)return;return t[preType(e)]||t[postType(e)]}function generatePreAndPost(e,t){var r=o({},e);var s=Object.create(t);var a=[];var u=preType(r);var c=postType(r);if(s[u]){a.push({value:s[u]});s[u]=null}r.minLength=null;r.length=null;r.maxLength=null;a.push(r);s[r.type]=s[r.type];if(s[c]){a.push({value:s[c]});s[c]=null}return function(e,t,r){return d(r,a,s)}}function prepareItems(e,t,r){function cloneAndObjectify(t,s,a){var o=new f(t,e);var u=o.type;if(o.value==null){if(!(u in r)){if(o.default==null){throw new c.MissingTemplateValue(o,r)}else{o.value=o.default}}else{o.value=r[u]}}if(o.value==null||o.value==="")return null;o.index=s;o.first=s===0;o.last=s===a.length-1;if(hasPreOrPost(o,r))o.value=generatePreAndPost(o,r);return o}var s=t.map(cloneAndObjectify).filter((function(e){return e!=null}));var a=0;var o=e;var u=s.length;function consumeSpace(e){if(e>o)e=o;a+=e;o-=e}function finishSizing(e,t){if(e.finished)throw new c.Internal("Tried to finish template item that was already finished");if(t===Infinity)throw new c.Internal("Length of template item cannot be infinity");if(t!=null)e.length=t;e.minLength=null;e.maxLength=null;--u;e.finished=true;if(e.length==null)e.length=e.getBaseLength();if(e.length==null)throw new c.Internal("Finished template items must have a length");consumeSpace(e.getLength())}s.forEach((function(e){if(!e.kerning)return;var t=e.first?0:s[e.index-1].padRight;if(!e.first&&t=h){finishSizing(e,e.minLength);p=true}}))}while(p&&d++{"use strict";var s=r(5751);try{e.exports=setImmediate}catch(t){e.exports=s.nextTick}},7131:e=>{"use strict";e.exports=setInterval},5154:e=>{"use strict";e.exports=function spin(e,t){return e[t%e.length]}},8855:(e,t,r)=>{"use strict";var s=r(8321);e.exports=TemplateItem;function isPercent(e){if(typeof e!=="string")return false;return e.slice(-1)==="%"}function percent(e){return Number(e.slice(0,-1))/100}function TemplateItem(e,t){this.overallOutputLength=t;this.finished=false;this.type=null;this.value=null;this.length=null;this.maxLength=null;this.minLength=null;this.kerning=null;this.align="left";this.padLeft=0;this.padRight=0;this.index=null;this.first=null;this.last=null;if(typeof e==="string"){this.value=e}else{for(var r in e)this[r]=e[r]}if(isPercent(this.length)){this.length=Math.round(this.overallOutputLength*percent(this.length))}if(isPercent(this.minLength)){this.minLength=Math.round(this.overallOutputLength*percent(this.minLength))}if(isPercent(this.maxLength)){this.maxLength=Math.round(this.overallOutputLength*percent(this.maxLength))}return this}TemplateItem.prototype={};TemplateItem.prototype.getBaseLength=function(){var e=this.length;if(e==null&&typeof this.value==="string"&&this.maxLength==null&&this.minLength==null){e=s(this.value)}return e};TemplateItem.prototype.getLength=function(){var e=this.getBaseLength();if(e==null)return null;return e+this.padLeft+this.padRight};TemplateItem.prototype.getMaxLength=function(){if(this.maxLength==null)return null;return this.maxLength+this.padLeft+this.padRight};TemplateItem.prototype.getMinLength=function(){if(this.minLength==null)return null;return this.minLength+this.padLeft+this.padRight}},8469:(e,t,r)=>{"use strict";var s=r(3540);e.exports=function(){return a.newThemeSet()};var a={};a.baseTheme=r(8862);a.newTheme=function(e,t){if(!t){t=e;e=this.baseTheme}return s({},e,t)};a.getThemeNames=function(){return Object.keys(this.themes)};a.addTheme=function(e,t,r){this.themes[e]=this.newTheme(t,r)};a.addToAllThemes=function(e){var t=this.themes;Object.keys(t).forEach((function(r){s(t[r],e)}));s(this.baseTheme,e)};a.getTheme=function(e){if(!this.themes[e])throw this.newMissingThemeError(e);return this.themes[e]};a.setDefault=function(e,t){if(t==null){t=e;e={}}var r=e.platform==null?"fallback":e.platform;var s=!!e.hasUnicode;var a=!!e.hasColor;if(!this.defaults[r])this.defaults[r]={true:{},false:{}};this.defaults[r][s][a]=t};a.getDefault=function(e){if(!e)e={};var t=e.platform||process.platform;var r=this.defaults[t]||this.defaults.fallback;var a=!!e.hasUnicode;var o=!!e.hasColor;if(!r)throw this.newMissingDefaultThemeError(t,a,o);if(!r[a][o]){if(a&&o&&r[!a][o]){a=false}else if(a&&o&&r[a][!o]){o=false}else if(a&&o&&r[!a][!o]){a=false;o=false}else if(a&&!o&&r[!a][o]){a=false}else if(!a&&o&&r[a][!o]){o=false}else if(r===this.defaults.fallback){throw this.newMissingDefaultThemeError(t,a,o)}}if(r[a][o]){return this.getTheme(r[a][o])}else{return this.getDefault(s({},e,{platform:"fallback"}))}};a.newMissingThemeError=function newMissingThemeError(e){var t=new Error('Could not find a gauge theme named "'+e+'"');Error.captureStackTrace.call(t,newMissingThemeError);t.theme=e;t.code="EMISSINGTHEME";return t};a.newMissingDefaultThemeError=function newMissingDefaultThemeError(e,t,r){var s=new Error("Could not find a gauge theme for your platform/unicode/color use combo:\n"+" platform = "+e+"\n"+" hasUnicode = "+t+"\n"+" hasColor = "+r);Error.captureStackTrace.call(s,newMissingDefaultThemeError);s.platform=e;s.hasUnicode=t;s.hasColor=r;s.code="EMISSINGTHEME";return s};a.newThemeSet=function(){var themeset=function(e){return themeset.getDefault(e)};return s(themeset,a,{themes:s({},this.themes),baseTheme:s({},this.baseTheme),defaults:JSON.parse(JSON.stringify(this.defaults||{}))})}},9986:(e,t,r)=>{"use strict";var s=r(3844);var a=r(8469);var o=e.exports=new a;o.addTheme("ASCII",{preProgressbar:"[",postProgressbar:"]",progressbarTheme:{complete:"#",remaining:"."},activityIndicatorTheme:"-\\|/",preSubsection:">"});o.addTheme("colorASCII",o.getTheme("ASCII"),{progressbarTheme:{preComplete:s.color("inverse"),complete:" ",postComplete:s.color("stopInverse"),preRemaining:s.color("brightBlack"),remaining:".",postRemaining:s.color("reset")}});o.addTheme("brailleSpinner",{preProgressbar:"⸨",postProgressbar:"⸩",progressbarTheme:{complete:"░",remaining:"⠂"},activityIndicatorTheme:"⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏",preSubsection:">"});o.addTheme("colorBrailleSpinner",o.getTheme("brailleSpinner"),{progressbarTheme:{preComplete:s.color("inverse"),complete:" ",postComplete:s.color("stopInverse"),preRemaining:s.color("brightBlack"),remaining:"░",postRemaining:s.color("reset")}});o.setDefault({},"ASCII");o.setDefault({hasColor:true},"colorASCII");o.setDefault({platform:"darwin",hasUnicode:true},"brailleSpinner");o.setDefault({platform:"darwin",hasUnicode:true,hasColor:true},"colorBrailleSpinner")},5791:(e,t,r)=>{"use strict";var s=r(8321);var a=r(7518);e.exports=wideTruncate;function wideTruncate(e,t){if(s(e)===0)return e;if(t<=0)return"";if(s(e)<=t)return e;var r=a(e);var o=e.length+r.length;var u=e.slice(0,t+o);while(s(u)>t){u=u.slice(0,-1)}return u}},4444:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},9165:(e,t,r)=>{var s=r(7147);var a=r(8986);var o=r(7078);var u=r(4444);var c=r(3837);var f;var d;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){f=Symbol.for("graceful-fs.queue");d=Symbol.for("graceful-fs.previous")}else{f="___graceful-fs.queue";d="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,f,{get:function(){return t}})}var p=noop;if(c.debuglog)p=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))p=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!s[f]){var h=global[f]||[];publishQueue(s,h);s.close=function(e){function close(t,r){return e.call(s,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,d,{value:e});return close}(s.close);s.closeSync=function(e){function closeSync(t){e.apply(s,arguments);resetQueue()}Object.defineProperty(closeSync,d,{value:e});return closeSync}(s.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){p(s[f]);r(9491).equal(s[f].length,0)}))}}if(!global[f]){publishQueue(global,s[f])}e.exports=patch(u(s));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched){e.exports=patch(s);s.__patched=true}function patch(e){a(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,s){if(typeof r==="function")s=r,r=null;return go$readFile(e,r,s);function go$readFile(e,r,s,a){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,s],t,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,s,a){if(typeof s==="function")a=s,s=null;return go$writeFile(e,t,s,a);function go$writeFile(e,t,s,a,o){return r(e,t,s,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,s,a],r,o||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var s=e.appendFile;if(s)e.appendFile=appendFile;function appendFile(e,t,r,a){if(typeof r==="function")a=r,r=null;return go$appendFile(e,t,r,a);function go$appendFile(e,t,r,a,o){return s(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,a],s,o||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var u=e.copyFile;if(u)e.copyFile=copyFile;function copyFile(e,t,r,s){if(typeof r==="function"){s=r;r=0}return go$copyFile(e,t,r,s);function go$copyFile(e,t,r,s,a){return u(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,s],o,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var c=e.readdir;e.readdir=readdir;var f=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var s=f.test(process.version)?function go$readdir(e,t,r,s){return c(e,fs$readdirCallback(e,t,r,s))}:function go$readdir(e,t,r,s){return c(e,t,fs$readdirCallback(e,t,r,s))};return s(e,t,r);function fs$readdirCallback(e,t,r,a){return function(o,u){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([s,[e,t,r],o,a||Date.now(),Date.now()]);else{if(u&&u.sort)u.sort();if(typeof r==="function")r.call(this,o,u)}}}}if(process.version.substr(0,4)==="v0.8"){var d=o(e);ReadStream=d.ReadStream;WriteStream=d.WriteStream}var p=e.ReadStream;if(p){ReadStream.prototype=Object.create(p.prototype);ReadStream.prototype.open=ReadStream$open}var h=e.WriteStream;if(h){WriteStream.prototype=Object.create(h.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var v=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:true,configurable:true});var D=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(e){D=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return p.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return h.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var g=e.open;e.open=open;function open(e,t,r,s){if(typeof r==="function")s=r,r=null;return go$open(e,t,r,s);function go$open(e,t,r,s,a){return g(e,t,r,(function(o,u){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,s],o,a||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}return e}function enqueue(e){p("ENQUEUE",e[0].name,e[1]);s[f].push(e);retry()}var v;function resetQueue(){var e=Date.now();for(var t=0;t2){s[f][t][3]=e;s[f][t][4]=e}}retry()}function retry(){clearTimeout(v);v=undefined;if(s[f].length===0)return;var e=s[f].shift();var t=e[0];var r=e[1];var a=e[2];var o=e[3];var u=e[4];if(o===undefined){p("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){p("TIMEOUT",t.name,r);var c=r.pop();if(typeof c==="function")c.call(null,a)}else{var d=Date.now()-u;var h=Math.max(u-o,1);var D=Math.min(h*1.2,100);if(d>=D){p("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{s[f].push(e)}}if(v===undefined){v=setTimeout(retry,0)}}},7078:(e,t,r)=>{var s=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);s.call(this);var a=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var u=0,c=o.length;uthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){a.emit("error",e);a.readable=false;return}a.fd=t;a.emit("open",t);a._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);s.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var a=Object.keys(r);for(var o=0,u=a.length;o= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},8986:(e,t,r)=>{var s=r(2057);var a=process.cwd;var o=null;var u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=a.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){o=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(s.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,s){if(s)process.nextTick(s)};e.lchownSync=function(){}}if(u==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,s,a){var o=Date.now();var u=0;t(r,s,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(s,(function(e,o){if(e&&e.code==="ENOENT")t(r,s,CB);else a(c)}))}),u);if(u<100)u+=10;return}if(a)a(c)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,s,a,o,u,c){var f;if(c&&typeof c==="function"){var d=0;f=function(p,h,v){if(p&&p.code==="EAGAIN"&&d<10){d++;return t.call(e,r,s,a,o,u,f)}c.apply(this,arguments)}}return t.call(e,r,s,a,o,u,f)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,s,a,o,u){var c=0;while(true){try{return t.call(e,r,s,a,o,u)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,a){e.open(t,s.O_WRONLY|s.O_SYMLINK,r,(function(t,s){if(t){if(a)a(t);return}e.fchmod(s,r,(function(t){e.close(s,(function(e){if(a)a(t||e)}))}))}))};e.lchmodSync=function(t,r){var a=e.openSync(t,s.O_WRONLY|s.O_SYMLINK,r);var o=true;var u;try{u=e.fchmodSync(a,r);o=false}finally{if(o){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return u}}function patchLutimes(e){if(s.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,a,o){e.open(t,s.O_SYMLINK,(function(t,s){if(t){if(o)o(t);return}e.futimes(s,r,a,(function(t){e.close(s,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,a){var o=e.openSync(t,s.O_SYMLINK);var u;var c=true;try{u=e.futimesSync(o,r,a);c=false}finally{if(c){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return u}}else if(e.futimes){e.lutimes=function(e,t,r,s){if(s)process.nextTick(s)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,s,a){return t.call(e,r,s,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,s){try{return t.call(e,r,s)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,s,a,o){return t.call(e,r,s,a,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,s,a){try{return t.call(e,r,s,a)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,s,a){if(typeof s==="function"){a=s;s=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(a)a.apply(this,arguments)}return s?t.call(e,r,s,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,s){var a=s?t.call(e,r,s):t.call(e,r);if(a){if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296}return a}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5214:(e,t,r)=>{"use strict";var s=r(2037);var a=e.exports=function(){if(s.type()=="Windows_NT"){return false}var e=/UTF-?8$/i;var t=process.env.LC_ALL||process.env.LC_CTYPE||process.env.LANG;return e.test(t)}},2842:(e,t,r)=>{try{var s=r(3837);if(typeof s.inherits!=="function")throw"";e.exports=s.inherits}catch(t){e.exports=r(3782)}},3782:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},3279:(e,t,r)=>{"use strict";var s=r(3979);e.exports=function(e){if(s(e)){return false}if(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false}},8502:e=>{"use strict";const isFullwidthCodePoint=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false};e.exports=isFullwidthCodePoint;e.exports["default"]=isFullwidthCodePoint},1551:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},7663:(module,__unused_webpack_exports,__nccwpck_require__)=>{var fs=__nccwpck_require__(7147);var path=__nccwpck_require__(1017);var os=__nccwpck_require__(2037);var runtimeRequire=true?eval("require"):0;var vars=process.config&&process.config.variables||{};var prebuildsOnly=!!process.env.PREBUILDS_ONLY;var abi=process.versions.modules;var runtime=isElectron()?"electron":"node";var arch=os.arch();var platform=os.platform();var libc=process.env.LIBC||(isAlpine(platform)?"musl":"glibc");var armv=process.env.ARM_VERSION||(arch==="arm64"?"8":vars.arm_version)||"";var uv=(process.versions.uv||"").split(".")[0];module.exports=load;function load(e){return runtimeRequire(load.path(e))}load.path=function(e){e=path.resolve(e||".");try{var t=runtimeRequire(path.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");if(process.env[t+"_PREBUILD"])e=process.env[t+"_PREBUILD"]}catch(e){}if(!prebuildsOnly){var r=getFirst(path.join(e,"build/Release"),matchBuild);if(r)return r;var s=getFirst(path.join(e,"build/Debug"),matchBuild);if(s)return s}var a=resolve(e);if(a)return a;var o=resolve(path.dirname(process.execPath));if(o)return o;var u=["platform="+platform,"arch="+arch,"runtime="+runtime,"abi="+abi,"uv="+uv,armv?"armv="+armv:"","libc="+libc,"node="+process.versions.node,process.versions&&process.versions.electron?"electron="+process.versions.electron:"",true?"webpack=true":0].filter(Boolean).join(" ");throw new Error("No native build was found for "+u+"\n loaded from: "+e+"\n");function resolve(e){var t=path.join(e,"prebuilds",platform+"-"+arch);var r=readdirSync(t).map(parseTags);var s=r.filter(matchTags(runtime,abi));var a=s.sort(compareTags(runtime))[0];if(a)return path.join(t,a.file)}};function readdirSync(e){try{return fs.readdirSync(e)}catch(e){return[]}}function getFirst(e,t){var r=readdirSync(e).filter(t);return r[0]&&path.join(e,r[0])}function matchBuild(e){return/\.node$/.test(e)}function parseTags(e){var t=e.split(".");var r=t.pop();var s={file:e,specificity:0};if(r!=="node")return;for(var a=0;ar.specificity?-1:1}else{return 0}}}function isElectron(){if(process.versions&&process.versions.electron)return true;if(process.env.ELECTRON_RUN_AS_NODE)return true;return typeof window!=="undefined"&&window.process&&window.process.type==="renderer"}function isAlpine(e){return e==="linux"&&fs.existsSync("/etc/alpine-release")}load.parseTags=parseTags;load.matchTags=matchTags;load.compareTags=compareTags},1758:(e,t,r)=>{var s=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?function(){console.error.apply(console,arguments)}:function(){};var a=r(7310),o=r(1017),u=r(2781).Stream,c=r(351),f=r(2037);e.exports=t=nopt;t.clean=clean;t.typeDefs={String:{type:String,validate:validateString},Boolean:{type:Boolean,validate:validateBoolean},url:{type:a,validate:validateUrl},Number:{type:Number,validate:validateNumber},path:{type:o,validate:validatePath},Stream:{type:u,validate:validateStream},Date:{type:Date,validate:validateDate}};function nopt(e,r,a,o){a=a||process.argv;e=e||{};r=r||{};if(typeof o!=="number")o=2;s(e,r,a,o);a=a.slice(o);var u={},c,f={remain:[],cooked:a,original:a.slice(0)};parse(a,u,f.remain,e,r);clean(u,e,t.typeDefs);u.argv=f;Object.defineProperty(u.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:false});return u}function clean(e,r,a){a=a||t.typeDefs;var o={},u=[false,true,null,String,Array];Object.keys(e).forEach((function(c){if(c==="argv")return;var f=e[c],d=Array.isArray(f),p=r[c];if(!d)f=[f];if(!p)p=u;if(p===Array)p=u.concat(Array);if(!Array.isArray(p))p=[p];s("val=%j",f);s("types=",p);f=f.map((function(u){if(typeof u==="string"){s("string %j",u);u=u.trim();if(u==="null"&&~p.indexOf(null)||u==="true"&&(~p.indexOf(true)||~p.indexOf(Boolean))||u==="false"&&(~p.indexOf(false)||~p.indexOf(Boolean))){u=JSON.parse(u);s("jsonable %j",u)}else if(~p.indexOf(Number)&&!isNaN(u)){s("convert to number",u);u=+u}else if(~p.indexOf(Date)&&!isNaN(Date.parse(u))){s("convert to date",u);u=new Date(u)}}if(!r.hasOwnProperty(c)){return u}if(u===false&&~p.indexOf(null)&&!(~p.indexOf(false)||~p.indexOf(Boolean))){u=null}var f={};f[c]=u;s("prevalidated val",f,u,r[c]);if(!validate(f,c,u,r[c],a)){if(t.invalidHandler){t.invalidHandler(c,u,r[c],e)}else if(t.invalidHandler!==false){s("invalid: "+c+"="+u,r[c])}return o}s("validated val",f,u,r[c]);return f[c]})).filter((function(e){return e!==o}));if(!f.length&&p.indexOf(Array)===-1){s("VAL HAS NO LENGTH, DELETE IT",f,c,p.indexOf(Array));delete e[c]}else if(d){s(d,e[c],f);e[c]=f}else e[c]=f[0];s("k=%s val=%j",c,f,e[c])}))}function validateString(e,t,r){e[t]=String(r)}function validatePath(e,t,r){if(r===true)return false;if(r===null)return true;r=String(r);var s=process.platform==="win32",a=s?/^~(\/|\\)/:/^~\//,u=f.homedir();if(u&&r.match(a)){e[t]=o.resolve(u,r.substr(2))}else{e[t]=o.resolve(r)}return true}function validateNumber(e,t,r){s("validate Number %j %j %j",t,r,isNaN(r));if(isNaN(r))return false;e[t]=+r}function validateDate(e,t,r){var a=Date.parse(r);s("validate Date %j %j %j",t,r,a);if(isNaN(a))return false;e[t]=new Date(r)}function validateBoolean(e,t,r){if(r instanceof Boolean)r=r.valueOf();else if(typeof r==="string"){if(!isNaN(r))r=!!+r;else if(r==="null"||r==="false")r=false;else r=true}else r=!!r;e[t]=r}function validateUrl(e,t,r){r=a.parse(String(r));if(!r.host)return false;e[t]=r.href}function validateStream(e,t,r){if(!(r instanceof u))return false;e[t]=r}function validate(e,t,r,a,o){if(Array.isArray(a)){for(var u=0,c=a.length;u1){var D=h.indexOf("=");if(D>-1){v=true;var g=h.substr(D+1);h=h.substr(0,D);e.splice(p,1,h,g)}var y=resolveShort(h,o,d,f);s("arg=%j shRes=%j",h,y);if(y){s(h,y);e.splice.apply(e,[p,1].concat(y));if(h!==y[0]){p--;continue}}h=h.replace(/^-+/,"");var m=null;while(h.toLowerCase().indexOf("no-")===0){m=!m;h=h.substr(3)}if(f[h])h=f[h];var _=a[h];var E=Array.isArray(_);if(E&&_.length===1){E=false;_=_[0]}var w=_===Array||E&&_.indexOf(Array)!==-1;if(!a.hasOwnProperty(h)&&t.hasOwnProperty(h)){if(!Array.isArray(t[h]))t[h]=[t[h]];w=true}var x,F=e[p+1];var C=typeof m==="boolean"||_===Boolean||E&&_.indexOf(Boolean)!==-1||typeof _==="undefined"&&!v||F==="false"&&(_===null||E&&~_.indexOf(null));if(C){x=!m;if(F==="true"||F==="false"){x=JSON.parse(F);F=null;if(m)x=!x;p++}if(E&&F){if(~_.indexOf(F)){x=F;p++}else if(F==="null"&&~_.indexOf(null)){x=null;p++}else if(!F.match(/^-{2,}[^-]/)&&!isNaN(F)&&~_.indexOf(Number)){x=+F;p++}else if(!F.match(/^-[^-]/)&&~_.indexOf(String)){x=F;p++}}if(w)(t[h]=t[h]||[]).push(x);else t[h]=x;continue}if(_===String){if(F===undefined){F=""}else if(F.match(/^-{1,2}[^-]+/)){F="";p--}}if(F&&F.match(/^-{2,}$/)){F=undefined;p--}x=F===undefined?true:F;if(w)(t[h]=t[h]||[]).push(x);else t[h]=x;p++;continue}r.push(h)}}function resolveShort(e,t,r,a){e=e.replace(/^-+/,"");if(a[e]===e)return null;if(t[e]){if(t[e]&&!Array.isArray(t[e]))t[e]=t[e].split(/\s+/);return t[e]}var o=t.___singles;if(!o){o=Object.keys(t).filter((function(e){return e.length===1})).reduce((function(e,t){e[t]=true;return e}),{});t.___singles=o;s("shorthand singles",o)}var u=e.split("").filter((function(e){return o[e]}));if(u.join("")===e)return u.map((function(e){return t[e]})).reduce((function(e,t){return e.concat(t)}),[]);if(a[e]&&!t[e])return null;if(r[e])e=r[e];if(t[e]&&!Array.isArray(t[e]))t[e]=t[e].split(/\s+/);return t[e]}},9544:(e,t,r)=>{"use strict";var s=r(4906);var a=r(287);var o=r(2361).EventEmitter;var u=t=e.exports=new o;var c=r(3837);var f=r(2656);var d=r(3844);f(true);var p=process.stderr;Object.defineProperty(u,"stream",{set:function(e){p=e;if(this.gauge)this.gauge.setWriteTo(p,p)},get:function(){return p}});var h;u.useColor=function(){return h!=null?h:p.isTTY};u.enableColor=function(){h=true;this.gauge.setTheme({hasColor:h,hasUnicode:v})};u.disableColor=function(){h=false;this.gauge.setTheme({hasColor:h,hasUnicode:v})};u.level="info";u.gauge=new a(p,{enabled:false,theme:{hasColor:u.useColor()},template:[{type:"progressbar",length:20},{type:"activityIndicator",kerning:1,length:1},{type:"section",default:""},":",{type:"logline",kerning:1,default:""}]});u.tracker=new s.TrackerGroup;u.progressEnabled=u.gauge.isEnabled();var v;u.enableUnicode=function(){v=true;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:v})};u.disableUnicode=function(){v=false;this.gauge.setTheme({hasColor:this.useColor(),hasUnicode:v})};u.setGaugeThemeset=function(e){this.gauge.setThemeset(e)};u.setGaugeTemplate=function(e){this.gauge.setTemplate(e)};u.enableProgress=function(){if(this.progressEnabled)return;this.progressEnabled=true;this.tracker.on("change",this.showProgress);if(this._pause)return;this.gauge.enable()};u.disableProgress=function(){if(!this.progressEnabled)return;this.progressEnabled=false;this.tracker.removeListener("change",this.showProgress);this.gauge.disable()};var D=["newGroup","newItem","newStream"];var mixinLog=function(e){Object.keys(u).forEach((function(t){if(t[0]==="_")return;if(D.filter((function(e){return e===t})).length)return;if(e[t])return;if(typeof u[t]!=="function")return;var r=u[t];e[t]=function(){return r.apply(u,arguments)}}));if(e instanceof s.TrackerGroup){D.forEach((function(t){var r=e[t];e[t]=function(){return mixinLog(r.apply(e,arguments))}}))}return e};D.forEach((function(e){u[e]=function(){return mixinLog(this.tracker[e].apply(this.tracker,arguments))}}));u.clearProgress=function(e){if(!this.progressEnabled)return e&&process.nextTick(e);this.gauge.hide(e)};u.showProgress=function(e,t){if(!this.progressEnabled)return;var r={};if(e)r.section=e;var s=u.record[u.record.length-1];if(s){r.subsection=s.prefix;var a=u.disp[s.level]||s.level;var o=this._format(a,u.style[s.level]);if(s.prefix)o+=" "+this._format(s.prefix,this.prefixStyle);o+=" "+s.message.split(/\r?\n/)[0];r.logline=o}r.completed=t||this.tracker.completed();this.gauge.show(r)}.bind(u);u.pause=function(){this._paused=true;if(this.progressEnabled)this.gauge.disable()};u.resume=function(){if(!this._paused)return;this._paused=false;var e=this._buffer;this._buffer=[];e.forEach((function(e){this.emitLog(e)}),this);if(this.progressEnabled)this.gauge.enable()};u._buffer=[];var g=0;u.record=[];u.maxRecordSize=1e4;u.log=function(e,t,r){var s=this.levels[e];if(s===undefined){return this.emit("error",new Error(c.format("Undefined log level: %j",e)))}var a=new Array(arguments.length-2);var o=null;for(var u=2;up/10){var v=Math.floor(p*.9);this.record=this.record.slice(-1*v)}this.emitLog(d)}.bind(u);u.emitLog=function(e){if(this._paused){this._buffer.push(e);return}if(this.progressEnabled)this.gauge.pulse(e.prefix);var t=this.levels[e.level];if(t===undefined)return;if(t0&&!isFinite(t))return;var r=u.disp[e.level]!=null?u.disp[e.level]:e.level;this.clearProgress();e.message.split(/\r?\n/).forEach((function(t){if(this.heading){this.write(this.heading,this.headingStyle);this.write(" ")}this.write(r,u.style[e.level]);var s=e.prefix||"";if(s)this.write(" ");this.write(s,this.prefixStyle);this.write(" "+t+"\n")}),this);this.showProgress()};u._format=function(e,t){if(!p)return;var r="";if(this.useColor()){t=t||{};var s=[];if(t.fg)s.push(t.fg);if(t.bg)s.push("bg"+t.bg[0].toUpperCase()+t.bg.slice(1));if(t.bold)s.push("bold");if(t.underline)s.push("underline");if(t.inverse)s.push("inverse");if(s.length)r+=d.color(s);if(t.beep)r+=d.beep()}r+=e;if(this.useColor()){r+=d.color("reset")}return r};u.write=function(e,t){if(!p)return;p.write(this._format(e,t))};u.addLevel=function(e,t,r,s){if(s==null)s=e;this.levels[e]=t;this.style[e]=r;if(!this[e]){this[e]=function(){var t=new Array(arguments.length+1);t[0]=e;for(var r=0;r{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},3540:e=>{"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var t=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var s=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var s=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(s.join("")!=="0123456789"){return false}var a={};"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e}));if(Object.keys(Object.assign({},a)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,a){var o;var u=toObject(e);var c;for(var f=1;f{"use strict";e.exports=r(7250)},7798:(e,t,r)=>{"use strict";const s=r(1017);const a="\\\\/";const o=`[^${a}]`;const u="\\.";const c="\\+";const f="\\?";const d="\\/";const p="(?=.)";const h="[^/]";const v=`(?:${d}|$)`;const D=`(?:^|${d})`;const g=`${u}{1,2}${v}`;const y=`(?!${u})`;const m=`(?!${D}${g})`;const _=`(?!${u}{0,1}${v})`;const E=`(?!${g})`;const w=`[^.${d}]`;const x=`${h}*?`;const F={DOT_LITERAL:u,PLUS_LITERAL:c,QMARK_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:p,QMARK:h,END_ANCHOR:v,DOTS_SLASH:g,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:w,STAR:x,START_ANCHOR:D};const C={...F,SLASH_LITERAL:`[${a}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${u}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${a}])${u}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?C:F}}},3632:(e,t,r)=>{"use strict";const s=r(7798);const a=r(5502);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_BACKREF:f,REPLACEMENTS:d}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>a.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=d[e]||e;const r={...t};const p=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let h=e.length;if(h>p){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${p}`)}const v={type:"bos",value:"",output:r.prepend||""};const D=[v];const g=r.capture?"":"?:";const y=a.isWindows(t);const m=s.globChars(y);const _=s.extglobChars(m);const{DOT_LITERAL:E,PLUS_LITERAL:w,SLASH_LITERAL:x,ONE_CHAR:F,DOTS_SLASH:C,NO_DOT:S,NO_DOT_SLASH:k,NO_DOTS_SLASH:A,QMARK:R,QMARK_NO_DOT:O,STAR:T,START_ANCHOR:j}=m;const globstar=e=>`(${g}(?:(?!${j}${e.dot?C:E}).)*?)`;const B=r.dot?"":S;const L=r.dot?R:O;let N=r.bash===true?globstar(r):T;if(r.capture){N=`(${N})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const I={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:D};e=a.removePrefix(e,I);h=e.length;const P=[];const W=[];const M=[];let $=v;let q;const eos=()=>I.index===h-1;const U=I.peek=(t=1)=>e[I.index+t];const G=I.advance=()=>e[++I.index]||"";const remaining=()=>e.slice(I.index+1);const consume=(e="",t=0)=>{I.consumed+=e;I.index+=t};const append=e=>{I.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){G();I.start++;e++}if(e%2===0){return false}I.negated=true;I.start++;return true};const increment=e=>{I[e]++;M.push(e)};const decrement=e=>{I[e]--;M.pop()};const push=e=>{if($.type==="globstar"){const t=I.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||P.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){I.output=I.output.slice(0,-$.output.length);$.type="star";$.value="*";$.output=N;I.output+=$.output}}if(P.length&&e.type!=="paren"){P[P.length-1].inner+=e.value}if(e.value||e.output)append(e);if($&&$.type==="text"&&e.type==="text"){$.value+=e.value;$.output=($.output||"")+e.value;return}e.prev=$;D.push(e);$=e};const extglobOpen=(e,t)=>{const s={..._[t],conditions:1,inner:""};s.prev=$;s.parens=I.parens;s.output=I.output;const a=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:I.output?"":F});push({type:"paren",extglob:true,value:G(),output:a});P.push(s)};const extglobClose=e=>{let s=e.close+(r.capture?")":"");let a;if(e.type==="negate"){let o=N;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==N||eos()||/^\)+$/.test(remaining())){s=e.close=`)$))${o}`}if(e.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const r=parse(a,{...t,fastpaths:false}).output;s=e.close=`)${r})${o})`}if(e.prev.type==="bos"){I.negatedExtglob=true}}push({type:"paren",extglob:true,value:q,output:s});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(f,((e,t,r,a,o,u)=>{if(a==="\\"){s=true;return e}if(a==="?"){if(t){return t+a+(o?R.repeat(o.length):"")}if(u===0){return L+(o?R.repeat(o.length):"")}return R.repeat(r.length)}if(a==="."){return E.repeat(r.length)}if(a==="*"){if(t){return t+a+(o?N:"")}return N}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){I.output=e;return I}I.output=a.wrapOutput(o,I,t);return I}while(!eos()){q=G();if(q==="\0"){continue}if(q==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){q+="\\";push({type:"text",value:q});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;I.index+=s;if(s%2!==0){q+="\\"}}if(r.unescape===true){q=G()}else{q+=G()}if(I.brackets===0){push({type:"text",value:q});continue}}if(I.brackets>0&&(q!=="]"||$.value==="["||$.value==="[^")){if(r.posix!==false&&q===":"){const e=$.value.slice(1);if(e.includes("[")){$.posix=true;if(e.includes(":")){const e=$.value.lastIndexOf("[");const t=$.value.slice(0,e);const r=$.value.slice(e+2);const s=u[r];if(s){$.value=t+s;I.backtrack=true;G();if(!v.output&&D.indexOf($)===1){v.output=F}continue}}}}if(q==="["&&U()!==":"||q==="-"&&U()==="]"){q=`\\${q}`}if(q==="]"&&($.value==="["||$.value==="[^")){q=`\\${q}`}if(r.posix===true&&q==="!"&&$.value==="["){q="^"}$.value+=q;append({value:q});continue}if(I.quotes===1&&q!=='"'){q=a.escapeRegex(q);$.value+=q;append({value:q});continue}if(q==='"'){I.quotes=I.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:q})}continue}if(q==="("){increment("parens");push({type:"paren",value:q});continue}if(q===")"){if(I.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=P[P.length-1];if(e&&I.parens===e.parens+1){extglobClose(P.pop());continue}push({type:"paren",value:q,output:I.parens?")":"\\)"});decrement("parens");continue}if(q==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}q=`\\${q}`}else{increment("brackets")}push({type:"bracket",value:q});continue}if(q==="]"){if(r.nobracket===true||$&&$.type==="bracket"&&$.value.length===1){push({type:"text",value:q,output:`\\${q}`});continue}if(I.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:q,output:`\\${q}`});continue}decrement("brackets");const e=$.value.slice(1);if($.posix!==true&&e[0]==="^"&&!e.includes("/")){q=`/${q}`}$.value+=q;append({value:q});if(r.literalBrackets===false||a.hasRegexChars(e)){continue}const t=a.escapeRegex($.value);I.output=I.output.slice(0,-$.value.length);if(r.literalBrackets===true){I.output+=t;$.value=t;continue}$.value=`(${g}${t}|${$.value})`;I.output+=$.value;continue}if(q==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:q,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};W.push(e);push(e);continue}if(q==="}"){const e=W[W.length-1];if(r.nobrace===true||!e){push({type:"text",value:q,output:q});continue}let t=")";if(e.dots===true){const e=D.slice();const s=[];for(let t=e.length-1;t>=0;t--){D.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);I.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=I.output.slice(0,e.outputIndex);const s=I.tokens.slice(e.tokensIndex);e.value=e.output="\\{";q=t="\\}";I.output=r;for(const e of s){I.output+=e.output||e.value}}push({type:"brace",value:q,output:t});decrement("braces");W.pop();continue}if(q==="|"){if(P.length>0){P[P.length-1].conditions++}push({type:"text",value:q});continue}if(q===","){let e=q;const t=W[W.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:q,output:e});continue}if(q==="/"){if($.type==="dot"&&I.index===I.start+1){I.start=I.index+1;I.consumed="";I.output="";D.pop();$=v;continue}push({type:"slash",value:q,output:x});continue}if(q==="."){if(I.braces>0&&$.type==="dot"){if($.value===".")$.output=E;const e=W[W.length-1];$.type="dots";$.output+=q;$.value+=q;e.dots=true;continue}if(I.braces+I.parens===0&&$.type!=="bos"&&$.type!=="slash"){push({type:"text",value:q,output:E});continue}push({type:"dot",value:q,output:E});continue}if(q==="?"){const e=$&&$.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",q);continue}if($&&$.type==="paren"){const e=U();let t=q;if(e==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if($.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${q}`}push({type:"text",value:q,output:t});continue}if(r.dot!==true&&($.type==="slash"||$.type==="bos")){push({type:"qmark",value:q,output:O});continue}push({type:"qmark",value:q,output:R});continue}if(q==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",q);continue}}if(r.nonegate!==true&&I.index===0){negate();continue}}if(q==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",q);continue}if($&&$.value==="("||r.regex===false){push({type:"plus",value:q,output:w});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||I.parens>0){push({type:"plus",value:q});continue}push({type:"plus",value:w});continue}if(q==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:q,output:""});continue}push({type:"text",value:q});continue}if(q!=="*"){if(q==="$"||q==="^"){q=`\\${q}`}const e=c.exec(remaining());if(e){q+=e[0];I.index+=e[0].length}push({type:"text",value:q});continue}if($&&($.type==="globstar"||$.star===true)){$.type="star";$.star=true;$.value+=q;$.output=N;I.backtrack=true;I.globstar=true;consume(q);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",q);continue}if($.type==="star"){if(r.noglobstar===true){consume(q);continue}const s=$.prev;const a=s.prev;const o=s.type==="slash"||s.type==="bos";const u=a&&(a.type==="star"||a.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:q,output:""});continue}const c=I.braces>0&&(s.type==="comma"||s.type==="brace");const f=P.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!c&&!f){push({type:"star",value:q,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[I.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){$.type="globstar";$.value+=q;$.output=globstar(r);I.output=$.output;I.globstar=true;consume(q);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!u&&eos()){I.output=I.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=globstar(r)+(r.strictSlashes?")":"|$)");$.value+=q;I.globstar=true;I.output+=s.output+$.output;consume(q);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=`${globstar(r)}${x}|${x}${e})`;$.value+=q;I.output+=s.output+$.output;I.globstar=true;consume(q+G());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){$.type="globstar";$.value+=q;$.output=`(?:^|${x}|${globstar(r)}${x})`;I.output=$.output;I.globstar=true;consume(q+G());push({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-$.output.length);$.type="globstar";$.output=globstar(r);$.value+=q;I.output+=$.output;I.globstar=true;consume(q);continue}const s={type:"star",value:q,output:N};if(r.bash===true){s.output=".*?";if($.type==="bos"||$.type==="slash"){s.output=B+s.output}push(s);continue}if($&&($.type==="bracket"||$.type==="paren")&&r.regex===true){s.output=q;push(s);continue}if(I.index===I.start||$.type==="slash"||$.type==="dot"){if($.type==="dot"){I.output+=k;$.output+=k}else if(r.dot===true){I.output+=A;$.output+=A}else{I.output+=B;$.output+=B}if(U()!=="*"){I.output+=F;$.output+=F}}push(s)}while(I.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));I.output=a.escapeLast(I.output,"[");decrement("brackets")}while(I.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));I.output=a.escapeLast(I.output,"(");decrement("parens")}while(I.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));I.output=a.escapeLast(I.output,"{");decrement("braces")}if(r.strictSlashes!==true&&($.type==="star"||$.type==="bracket")){push({type:"maybe_slash",value:"",output:`${x}?`})}if(I.backtrack===true){I.output="";for(const e of I.tokens){I.output+=e.output!=null?e.output:e.value;if(e.suffix){I.output+=e.suffix}}}return I};parse.fastpaths=(e,t)=>{const r={...t};const u=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const c=e.length;if(c>u){throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${u}`)}e=d[e]||e;const f=a.isWindows(t);const{DOT_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:v,DOTS_SLASH:D,NO_DOT:g,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:_,START_ANCHOR:E}=s.globChars(f);const w=r.dot?y:g;const x=r.dot?m:g;const F=r.capture?"":"?:";const C={negated:false,prefix:""};let S=r.bash===true?".*?":_;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${F}(?:(?!${E}${e.dot?D:p}).)*?)`};const create=e=>{switch(e){case"*":return`${w}${v}${S}`;case".*":return`${p}${v}${S}`;case"*.*":return`${w}${S}${p}${v}${S}`;case"*/*":return`${w}${S}${h}${v}${x}${S}`;case"**":return w+globstar(r);case"**/*":return`(?:${w}${globstar(r)}${h})?${x}${v}${S}`;case"**/*.*":return`(?:${w}${globstar(r)}${h})?${x}${S}${p}${v}${S}`;case"**/.*":return`(?:${w}${globstar(r)}${h})?${p}${v}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+p+t[2]}}};const k=a.removePrefix(e,C);let A=create(k);if(A&&r.strictSlashes!==true){A+=`${h}?`}return A};e.exports=parse},7250:(e,t,r)=>{"use strict";const s=r(1017);const a=r(2964);const o=r(3632);const u=r(5502);const c=r(7798);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const a=t||{};const o=u.isWindows(t);const c=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const f=c.state;delete c.state;let isIgnored=()=>false;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:u,match:d,output:p}=picomatch.test(r,c,t,{glob:e,posix:o});const h={glob:e,state:f,regex:c,posix:o,input:r,output:p,match:d,isMatch:u};if(typeof a.onResult==="function"){a.onResult(h)}if(u===false){h.isMatch=false;return s?h:false}if(isIgnored(r)){if(typeof a.onIgnore==="function"){a.onIgnore(h)}h.isMatch=false;return s?h:false}if(typeof a.onMatch==="function"){a.onMatch(h)}return s?h:true};if(r){matcher.state=f}return matcher};picomatch.test=(e,t,r,{glob:s,posix:a}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const c=o.format||(a?u.toPosixSlashes:null);let f=e===s;let d=f&&c?c(e):e;if(f===false){d=c?c(e):e;f=d===s}if(f===false||o.capture===true){if(o.matchBase===true||o.basename===true){f=picomatch.matchBase(e,t,r,a)}else{f=t.exec(d)}}return{isMatch:Boolean(f),match:f,output:d}};picomatch.matchBase=(e,t,r,a=u.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>a(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const a=t||{};const o=a.contains?"":"^";const u=a.contains?"":"$";let c=`${o}(?:${e.output})${u}`;if(e&&e.negated===true){c=`^(?!${c}).*$`}const f=picomatch.toRegex(c,t);if(s===true){f.state=e}return f};picomatch.makeRe=(e,t={},r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){a.output=o.fastpaths(e,t)}if(!a.output){a=o(e,t)}return picomatch.compileRe(a,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=c;e.exports=picomatch},2964:(e,t,r)=>{"use strict";const s=r(5502);const{CHAR_ASTERISK:a,CHAR_AT:o,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:c,CHAR_DOT:f,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:h,CHAR_LEFT_PARENTHESES:v,CHAR_LEFT_SQUARE_BRACKET:D,CHAR_PLUS:g,CHAR_QUESTION_MARK:y,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=r(7798);const isPathSeparator=e=>e===p||e===u;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const w=e.length-1;const x=r.parts===true||r.scanToEnd===true;const F=[];const C=[];const S=[];let k=e;let A=-1;let R=0;let O=0;let T=false;let j=false;let B=false;let L=false;let N=false;let I=false;let P=false;let W=false;let M=false;let $=false;let q=0;let U;let G;let H={value:"",depth:0,isGlob:false};const eos=()=>A>=w;const peek=()=>k.charCodeAt(A+1);const advance=()=>{U=G;return k.charCodeAt(++A)};while(A0){z=k.slice(0,R);k=k.slice(R);O-=R}if(K&&B===true&&O>0){K=k.slice(0,O);V=k.slice(O)}else if(B===true){K="";V=k}else{K=k}if(K&&K!==""&&K!=="/"&&K!==k){if(isPathSeparator(K.charCodeAt(K.length-1))){K=K.slice(0,-1)}}if(r.unescape===true){if(V)V=s.removeBackslashes(V);if(K&&P===true){K=s.removeBackslashes(K)}}const Y={prefix:z,input:e,start:R,base:K,glob:V,isBrace:T,isBracket:j,isGlob:B,isExtglob:L,isGlobstar:N,negated:W,negatedExtglob:M};if(r.tokens===true){Y.maxDepth=0;if(!isPathSeparator(G)){C.push(H)}Y.tokens=C}if(r.parts===true||r.tokens===true){let t;for(let s=0;s{"use strict";const s=r(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:u,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:f}=r(7798);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>c.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(f,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(u,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return a===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const a=e.lastIndexOf(r,s);if(a===-1)return e;if(e[a-1]==="\\")return t.escapeLast(e,r,a-1);return`${e.slice(0,a)}\\${e.slice(a)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const a=r.contains?"":"$";let o=`${s}(?:${e})${a}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},9182:e=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,s){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var a=arguments.length;var o,u;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,s)}));default:o=new Array(a-1);u=0;while(u{"use strict";var s=r(9182);var a=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var o=Object.create(r(1504));o.inherits=r(2842);var u=r(7355);var c=r(3517);o.inherits(Duplex,u);{var f=a(c.prototype);for(var d=0;d{"use strict";e.exports=PassThrough;var s=r(2162);var a=Object.create(r(1504));a.inherits=r(2842);a.inherits(PassThrough,s);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);s.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},7355:(e,t,r)=>{"use strict";var s=r(9182);e.exports=Readable;var a=r(1551);var o;Readable.ReadableState=ReadableState;var u=r(2361).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var c=r(2641);var f=r(291).Buffer;var d=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return f.from(e)}function _isUint8Array(e){return f.isBuffer(e)||e instanceof d}var p=Object.create(r(1504));p.inherits=r(2842);var h=r(3837);var v=void 0;if(h&&h.debuglog){v=h.debuglog("stream")}else{v=function(){}}var D=r(4865);var g=r(2604);var y;p.inherits(Readable,c);var m=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(a(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){o=o||r(4928);e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var u=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(s&&(u||u===0))this.highWaterMark=u;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new D;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(4426).s;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||r(4928);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}c.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=g.destroy;Readable.prototype._undestroy=g.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var s;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=f.from(e,t);t=""}s=true}}else{s=true}return readableAddChunk(this,e,t,false,s)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,s,a){var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var u;if(!a)u=chunkInvalid(o,t);if(u){e.emit("error",u)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==f.prototype){t=_uint8ArrayToBuffer(t)}if(s){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,t,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!s){o.reading=false}}return needMoreData(o)}function addChunk(e,t,r,s){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(s)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=_){e=_}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){v("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){v("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var s=t.needReadable;v("need readable",s);if(t.length===0||t.length-e0)a=fromList(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(a!==null)this.emit("data",a);return a};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){v("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)s.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){v("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;s.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(a.pipes,e)!==-1)&&!f){v("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;d=true}r.pause()}}function onerror(t){v("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){v("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){v("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!a.flowing){v("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;v("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var s=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var s;if(eo.length?o.length:e;if(u===o.length)a+=o;else a+=o.slice(0,e);e-=u;if(e===0){if(u===o.length){++s;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=o.slice(u)}break}++s}t.length-=s;return a}function copyFromBuffer(e,t){var r=f.allocUnsafe(e);var s=t.head;var a=1;s.data.copy(r);e-=s.data.length;while(s=s.next){var o=s.data;var u=e>o.length?o.length:e;o.copy(r,r.length-e,0,u);e-=u;if(e===0){if(u===o.length){++a;if(s.next)t.head=s.next;else t.head=t.tail=null}else{t.head=s;s.data=o.slice(u)}break}++a}t.length-=a;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;s.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,s=e.length;r{"use strict";e.exports=Transform;var s=r(4928);var a=Object.create(r(1504));a.inherits=r(2842);a.inherits(Transform,s);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var s=r.writecb;if(!s){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);s(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length{"use strict";var s=r(9182);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:s.nextTick;var o;Writable.WritableState=WritableState;var u=Object.create(r(1504));u.inherits=r(2842);var c={deprecate:r(6124)};var f=r(2641);var d=r(291).Buffer;var p=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return d.from(e)}function _isUint8Array(e){return d.isBuffer(e)||e instanceof p}var h=r(2604);u.inherits(Writable,f);function nop(){}function WritableState(e,t){o=o||r(4928);e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var u=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(s&&(u||u===0))this.highWaterMark=u;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var f=e.decodeStrings===false;this.decodeStrings=!f;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var v;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){v=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(v.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{v=function(e){return e instanceof this}}function Writable(e){o=o||r(4928);if(!v.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}f.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);s.nextTick(t,r)}function validChunk(e,t,r,a){var o=true;var u=false;if(r===null){u=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){u=new TypeError("Invalid non-string/buffer chunk")}if(u){e.emit("error",u);s.nextTick(a,u);o=false}return o}Writable.prototype.write=function(e,t,r){var s=this._writableState;var a=false;var o=!s.objectMode&&_isUint8Array(e);if(o&&!d.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(o)t="buffer";else if(!t)t=s.defaultEncoding;if(typeof r!=="function")r=nop;if(s.ended)writeAfterEnd(this,r);else if(o||validChunk(this,s,e,r)){s.pendingcb++;a=writeOrBuffer(this,s,o,e,t,r)}return a};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=d.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,s,a,o){if(!r){var u=decodeChunk(t,s,a);if(s!==u){r=true;a="buffer";s=u}}var c=t.objectMode?1:s.length;t.length+=c;var f=t.length{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var s=r(291).Buffer;var a=r(3837);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return s.alloc(0);if(this.length===1)return this.head.data;var t=s.allocUnsafe(e>>>0);var r=this.head;var a=0;while(r){copyBuffer(r.data,t,a);a+=r.data.length;r=r.next}return t};return BufferList}();if(a&&a.inspect&&a.inspect.custom){e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e}}},2604:(e,t,r)=>{"use strict";var s=r(9182);function destroy(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(a||o){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){s.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){s.nextTick(emitErrorNT,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},2641:(e,t,r)=>{e.exports=r(2781)},8511:(e,t,r)=>{var s=r(2781);if(process.env.READABLE_STREAM==="disable"&&s){e.exports=s;t=e.exports=s.Readable;t.Readable=s.Readable;t.Writable=s.Writable;t.Duplex=s.Duplex;t.Transform=s.Transform;t.PassThrough=s.PassThrough;t.Stream=s}else{t=e.exports=r(7355);t.Stream=s||t;t.Readable=t;t.Writable=r(3517);t.Duplex=r(4928);t.Transform=r(2162);t.PassThrough=r(9924)}},2382:(e,t,r)=>{"use strict";const s=r(1017);const a=r(8188);const o=r(7147);const resolveFrom=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=o.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=s.resolve(e)}else if(r){return}else{throw t}}const u=s.join(e,"noop.js");const resolveFileName=()=>a._resolveFilename(t,{id:u,filename:u,paths:a._nodeModulePaths(e)});if(r){try{return resolveFileName()}catch(e){return}}return resolveFileName()};e.exports=(e,t)=>resolveFrom(e,t);e.exports.silent=(e,t)=>resolveFrom(e,t,true)},4700:(e,t,r)=>{const s=r(9491);const a=r(1017);const o=r(7147);let u=undefined;try{u=r(3535)}catch(e){}const c={nosort:true,silent:true};let f=0;const d=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||o[t];t=t+"Sync";e[t]=e[t]||o[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&u===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s.equal(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.equal(typeof t,"object","rimraf: options should be object");defaults(t);let a=0;let o=null;let c=0;const next=e=>{o=o||e;if(--c===0)r(o)};const afterGlob=(e,s)=>{if(e)return r(e);c=s.length;if(c===0)return r();s.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&arimraf_(e,t,CB)),a*100)}if(r.code==="EMFILE"&&frimraf_(e,t,CB)),f++)}if(r.code==="ENOENT")r=null}f=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!u.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,s)=>{if(!r)return afterGlob(null,[e]);u(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.lstat(e,((s,a)=>{if(s&&s.code==="ENOENT")return r(null);if(s&&s.code==="EPERM"&&d)fixWinEPERM(e,t,s,r);if(a&&a.isDirectory())return rmdir(e,t,s,r);t.unlink(e,(s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return d?fixWinEPERM(e,t,s,r):rmdir(e,t,s,r);if(s.code==="EISDIR")return rmdir(e,t,s,r)}return r(s)}))}))};const fixWinEPERM=(e,t,r,a)=>{s(e);s(t);s(typeof a==="function");t.chmod(e,438,(s=>{if(s)a(s.code==="ENOENT"?null:r);else t.stat(e,((s,o)=>{if(s)a(s.code==="ENOENT"?null:r);else if(o.isDirectory())rmdir(e,t,r,a);else t.unlink(e,a)}))}))};const fixWinEPERMSync=(e,t,r)=>{s(e);s(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let a;try{a=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(a.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,a)=>{s(e);s(t);s(typeof a==="function");t.rmdir(e,(s=>{if(s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM"))rmkids(e,t,a);else if(s&&s.code==="ENOTDIR")a(r);else a(s)}))};const rmkids=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.readdir(e,((s,o)=>{if(s)return r(s);let u=o.length;if(u===0)return t.rmdir(e,r);let c;o.forEach((s=>{rimraf(a.join(e,s),t,(s=>{if(c)return;if(s)return r(c=s);if(--u===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!u.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(s){r=u.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e{s(e);s(t);try{t.rmdirSync(e)}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR")throw r;if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(a.join(e,r),t)));const r=d?100:1;let o=0;do{let s=true;try{const a=t.rmdirSync(e,t);s=false;return a}finally{if(++o{var s=r(4300);var a=s.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=s}else{copyProps(s,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return a(e,t,r)}copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var s=a(e);if(t!==undefined){if(typeof r==="string"){s.fill(t,r)}else{s.fill(t)}}else{s.fill(0)}return s};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s.SlowBuffer(e)}},2656:e=>{e.exports=function(e){[process.stdout,process.stderr].forEach((function(t){if(t._handle&&t.isTTY&&typeof t._handle.setBlocking==="function"){t._handle.setBlocking(e)}}))}},7234:(e,t,r)=>{var s=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(s)){e.exports=function(){return function(){}}}else{var a=r(9491);var o=r(8986);var u=/^win/i.test(s.platform);var c=r(2361);if(typeof c!=="function"){c=c.EventEmitter}var f;if(s.__signal_exit_emitter__){f=s.__signal_exit_emitter__}else{f=s.__signal_exit_emitter__=new c;f.count=0;f.emitted={}}if(!f.infinite){f.setMaxListeners(Infinity);f.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}a.equal(typeof e,"function","a callback must be provided for exit handler");if(v===false){D()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){f.removeListener(r,e);if(f.listeners("exit").length===0&&f.listeners("afterexit").length===0){d()}};f.on(r,e);return remove};var d=function unload(){if(!v||!processOk(global.process)){return}v=false;o.forEach((function(e){try{s.removeListener(e,h[e])}catch(e){}}));s.emit=m;s.reallyExit=g;f.count-=1};e.exports.unload=d;var p=function emit(e,t,r){if(f.emitted[e]){return}f.emitted[e]=true;f.emit(e,t,r)};var h={};o.forEach((function(e){h[e]=function listener(){if(!processOk(global.process)){return}var t=s.listeners(e);if(t.length===f.count){d();p("exit",null,e);p("afterexit",null,e);if(u&&e==="SIGHUP"){e="SIGINT"}s.kill(s.pid,e)}}}));e.exports.signals=function(){return o};var v=false;var D=function load(){if(v||!processOk(global.process)){return}v=true;f.count+=1;o=o.filter((function(e){try{s.on(e,h[e]);return true}catch(e){return false}}));s.emit=_;s.reallyExit=y};e.exports.load=D;var g=s.reallyExit;var y=function processReallyExit(e){if(!processOk(global.process)){return}s.exitCode=e||0;p("exit",s.exitCode,null);p("afterexit",s.exitCode,null);g.call(s,s.exitCode)};var m=s.emit;var _=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){s.exitCode=t}var r=m.apply(this,arguments);p("exit",s.exitCode,null);p("afterexit",s.exitCode,null);return r}else{return m.apply(this,arguments)}}}},8986:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},8321:(e,t,r)=>{"use strict";var s=r(7518);var a=r(8589);var o=r(3279);e.exports=function(e){if(typeof e!=="string"||e.length===0){return 0}var t=0;e=s(e);for(var r=0;r=127&&u<=159){continue}if(u>=65536){r++}if(o(u)){t+=2}else{t++}}return t}},5663:(e,t,r)=>{"use strict";const s=r(7518);const a=r(8502);const o=r(3876);const stringWidth=e=>{if(typeof e!=="string"||e.length===0){return 0}e=s(e);if(e.length===0){return 0}e=e.replace(o()," ");let t=0;for(let r=0;r=127&&s<=159){continue}if(s>=768&&s<=879){continue}if(s>65535){r++}t+=a(s)?2:1}return t};e.exports=stringWidth;e.exports["default"]=stringWidth},4426:(e,t,r)=>{"use strict";var s=r(291).Buffer;var a=s.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(s.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=s.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var s=t.length-1;if(s=0){if(a>0)e.lastNeed=a-1;return a}if(--s=0){if(a>0)e.lastNeed=a-2;return a}if(--s=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var s=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,s);return e.toString("utf8",t,s)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},6124:(e,t,r)=>{e.exports=r(3837).deprecate},1365:(e,t,r)=>{"use strict";var s=r(5663);t.center=alignCenter;t.left=alignLeft;t.right=alignRight;function createPadding(e){var t="";var r=" ";var s=e;do{if(s%2){t+=r}s=Math.floor(s/2);r+=r}while(s);return t}function alignLeft(e,t){var r=e.trimRight();if(r.length===0&&e.length>=t)return e;var a="";var o=s(r);if(o=t)return e;var a="";var o=s(r);if(o=t)return e;var a="";var o="";var u=s(r);if(u{module.exports=eval("require")("aws-sdk")},3930:module=>{module.exports=eval("require")("mock-aws-s3")},4997:module=>{module.exports=eval("require")("nock")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},8188:e=>{"use strict";e.exports=require("module")},1988:e=>{"use strict";e.exports=require("next/dist/compiled/acorn")},5749:e=>{"use strict";e.exports=require("next/dist/compiled/async-sema")},3535:e=>{"use strict";e.exports=require("next/dist/compiled/glob")},2540:e=>{"use strict";e.exports=require("next/dist/compiled/micromatch")},7849:e=>{"use strict";e.exports=require("next/dist/compiled/semver")},7518:e=>{"use strict";e.exports=require("next/dist/compiled/strip-ansi")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},8102:e=>{"use strict";e.exports=require("repl")},2781:e=>{"use strict";e.exports=require("stream")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(1017);var a=r(3846);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var o=_interopDefaultLegacy(a);const u=function addExtension(e,t=".js"){let r=`${e}`;if(!s.extname(e))r+=t;return r};class WalkerBase{constructor(){WalkerBase.prototype.__init.call(this);WalkerBase.prototype.__init2.call(this);WalkerBase.prototype.__init3.call(this);WalkerBase.prototype.__init4.call(this)}__init(){this.should_skip=false}__init2(){this.should_remove=false}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=true,remove:()=>this.should_remove=true,replace:e=>this.replacement=e}}replace(e,t,r,s){if(e){if(r!==null){e[t][r]=s}else{e[t]=s}}}remove(e,t,r){if(e){if(r!==null){e[t].splice(r,1)}else{delete e[t]}}}}class SyncWalkerClass extends WalkerBase{constructor(e){super();this.enter=e.enter;this.leave=e.leave}visit(e,t,r,s,a,o){if(e){if(r){const s=this.should_skip;const u=this.should_remove;const c=this.replacement;this.should_skip=false;this.should_remove=false;this.replacement=null;r.call(this.context,e,t,a,o);if(this.replacement){e=this.replacement;this.replace(t,a,o,e)}if(this.should_remove){this.remove(t,a,o)}const f=this.should_skip;const d=this.should_remove;this.should_skip=s;this.should_remove=u;this.replacement=c;if(f)return e;if(d)return null}for(const t in e){const a=e[t];if(typeof a!=="object"){continue}else if(Array.isArray(a)){for(let o=0;o{f(e).forEach((e=>{this.declarations[e]=true}))}))}}addDeclaration(e,t,r){if(!t&&this.isBlockScope){this.parent.addDeclaration(e,t,r)}else if(e.id){f(e.id).forEach((e=>{this.declarations[e]=true}))}}contains(e){return this.declarations[e]||(this.parent?this.parent.contains(e):false)}}const p=function attachScopes(e,t="scope"){let r=new Scope;walk(e,{enter(e,s){const a=e;if(/(Function|Class)Declaration/.test(a.type)){r.addDeclaration(a,false,false)}if(a.type==="VariableDeclaration"){const{kind:e}=a;const t=d[e];a.declarations.forEach((e=>{r.addDeclaration(e,t,true)}))}let o;if(/Function/.test(a.type)){const e=a;o=new Scope({parent:r,block:false,params:e.params});if(e.type==="FunctionExpression"&&e.id){o.addDeclaration(e,false,false)}}if(/For(In|Of)?Statement/.test(a.type)){o=new Scope({parent:r,block:true})}if(a.type==="BlockStatement"&&!/Function/.test(s.type)){o=new Scope({parent:r,block:true})}if(a.type==="CatchClause"){o=new Scope({parent:r,params:a.param?[a.param]:[],block:true})}if(o){Object.defineProperty(a,t,{value:o,configurable:true});r=o}},leave(e){const s=e;if(s[t])r=r.parent}});return r};function isArray(e){return Array.isArray(e)}function ensureArray(e){if(isArray(e))return e;if(e==null)return[];return[e]}const h=function normalizePath(e){return e.split(s.win32.sep).join(s.posix.sep)};function getMatcherString(e,t){if(t===false||s.isAbsolute(e)||e.startsWith("*")){return h(e)}const r=h(s.resolve(t||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return s.posix.join(r,h(e))}const v=function createFilter(e,t,r){const s=r&&r.resolve;const getMatcher=e=>e instanceof RegExp?e:{test:t=>{const r=getMatcherString(e,s);const a=o["default"](r,{dot:true});const u=a(t);return u}};const a=ensureArray(e).map(getMatcher);const u=ensureArray(t).map(getMatcher);return function result(e){if(typeof e!=="string")return false;if(/\0/.test(e))return false;const t=h(e);for(let e=0;et.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(t[0])||y.has(t)){t=`_${t}`}return t||"_"};function stringify(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function serializeArray(e,t,r){let s="[";const a=t?`\n${r}${t}`:"";for(let o=0;o0?",":""}${a}${serialize(u,t,r+t)}`}return`${s}${t?`\n${r}`:""}]`}function serializeObject(e,t,r){let s="{";const a=t?`\n${r}${t}`:"";const o=Object.entries(e);for(let e=0;e0?",":""}${a}${f}:${t?" ":""}${serialize(c,t,r+t)}`}return`${s}${t?`\n${r}`:""}}`}function serialize(e,t,r){if(typeof e==="object"&&e!==null){if(Array.isArray(e))return serializeArray(e,t,r);if(e instanceof Date)return`new Date(${e.getTime()})`;if(e instanceof RegExp)return e.toString();return serializeObject(e,t,r)}if(typeof e==="number"){if(e===Infinity)return"Infinity";if(e===-Infinity)return"-Infinity";if(e===0)return 1/e===Infinity?"0":"-0";if(e!==e)return"NaN"}if(typeof e==="symbol"){const t=Symbol.keyFor(e);if(t!==undefined)return`Symbol.for(${stringify(t)})`}if(typeof e==="bigint")return`${e}n`;return stringify(e)}const _=function dataToEsm(e,t={}){const r=t.compact?"":"indent"in t?t.indent:"\t";const s=t.compact?"":" ";const a=t.compact?"":"\n";const o=t.preferConst?"const":"var";if(t.namedExports===false||typeof e!=="object"||Array.isArray(e)||e instanceof Date||e instanceof RegExp||e===null){const a=serialize(e,t.compact?null:r,"");const o=s||(/^[{[\-\/]/.test(a)?"":" ");return`export default${o}${a};`}let u="";const c=[];for(const[f,d]of Object.entries(e)){if(f===m(f)){if(t.objectShorthand)c.push(f);else c.push(`${f}:${s}${f}`);u+=`export ${o} ${f}${s}=${s}${serialize(d,t.compact?null:r,"")};${a}`}else{c.push(`${stringify(f)}:${s}${serialize(d,t.compact?null:r,"")}`)}}return`${u}export default${s}{${a}${r}${c.join(`,${a}${r}`)}${a}};${a}`};var E={addExtension:u,attachScopes:p,createFilter:v,dataToEsm:_,extractAssignedNames:f,makeLegalIdentifier:m,normalizePath:h};t.addExtension=u;t.attachScopes=p;t.createFilter=v;t.dataToEsm=_;t["default"]=E;t.extractAssignedNames=f;t.makeLegalIdentifier=m;t.normalizePath=h},3982:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";class WalkerBase{constructor(){this.should_skip=false;this.should_remove=false;this.replacement=null;this.context={skip:()=>this.should_skip=true,remove:()=>this.should_remove=true,replace:e=>this.replacement=e}}replace(e,t,r,s){if(e){if(r!==null){e[t][r]=s}else{e[t]=s}}}remove(e,t,r){if(e){if(r!==null){e[t].splice(r,1)}else{delete e[t]}}}}class SyncWalker extends WalkerBase{constructor(e,t){super();this.enter=e;this.leave=t}visit(e,t,r,s){if(e){if(this.enter){const a=this.should_skip;const o=this.should_remove;const u=this.replacement;this.should_skip=false;this.should_remove=false;this.replacement=null;this.enter.call(this.context,e,t,r,s);if(this.replacement){e=this.replacement;this.replace(t,r,s,e)}if(this.should_remove){this.remove(t,r,s)}const c=this.should_skip;const f=this.should_remove;this.should_skip=a;this.should_remove=o;this.replacement=u;if(c)return e;if(f)return null}for(const t in e){const r=e[t];if(typeof r!=="object"){continue}else if(Array.isArray(r)){for(let s=0;s{"use strict";e.exports=JSON.parse('{"0.1.14":{"node_abi":null,"v8":"1.3"},"0.1.15":{"node_abi":null,"v8":"1.3"},"0.1.16":{"node_abi":null,"v8":"1.3"},"0.1.17":{"node_abi":null,"v8":"1.3"},"0.1.18":{"node_abi":null,"v8":"1.3"},"0.1.19":{"node_abi":null,"v8":"2.0"},"0.1.20":{"node_abi":null,"v8":"2.0"},"0.1.21":{"node_abi":null,"v8":"2.0"},"0.1.22":{"node_abi":null,"v8":"2.0"},"0.1.23":{"node_abi":null,"v8":"2.0"},"0.1.24":{"node_abi":null,"v8":"2.0"},"0.1.25":{"node_abi":null,"v8":"2.0"},"0.1.26":{"node_abi":null,"v8":"2.0"},"0.1.27":{"node_abi":null,"v8":"2.1"},"0.1.28":{"node_abi":null,"v8":"2.1"},"0.1.29":{"node_abi":null,"v8":"2.1"},"0.1.30":{"node_abi":null,"v8":"2.1"},"0.1.31":{"node_abi":null,"v8":"2.1"},"0.1.32":{"node_abi":null,"v8":"2.1"},"0.1.33":{"node_abi":null,"v8":"2.1"},"0.1.90":{"node_abi":null,"v8":"2.2"},"0.1.91":{"node_abi":null,"v8":"2.2"},"0.1.92":{"node_abi":null,"v8":"2.2"},"0.1.93":{"node_abi":null,"v8":"2.2"},"0.1.94":{"node_abi":null,"v8":"2.2"},"0.1.95":{"node_abi":null,"v8":"2.2"},"0.1.96":{"node_abi":null,"v8":"2.2"},"0.1.97":{"node_abi":null,"v8":"2.2"},"0.1.98":{"node_abi":null,"v8":"2.2"},"0.1.99":{"node_abi":null,"v8":"2.2"},"0.1.100":{"node_abi":null,"v8":"2.2"},"0.1.101":{"node_abi":null,"v8":"2.3"},"0.1.102":{"node_abi":null,"v8":"2.3"},"0.1.103":{"node_abi":null,"v8":"2.3"},"0.1.104":{"node_abi":null,"v8":"2.3"},"0.2.0":{"node_abi":1,"v8":"2.3"},"0.2.1":{"node_abi":1,"v8":"2.3"},"0.2.2":{"node_abi":1,"v8":"2.3"},"0.2.3":{"node_abi":1,"v8":"2.3"},"0.2.4":{"node_abi":1,"v8":"2.3"},"0.2.5":{"node_abi":1,"v8":"2.3"},"0.2.6":{"node_abi":1,"v8":"2.3"},"0.3.0":{"node_abi":1,"v8":"2.5"},"0.3.1":{"node_abi":1,"v8":"2.5"},"0.3.2":{"node_abi":1,"v8":"3.0"},"0.3.3":{"node_abi":1,"v8":"3.0"},"0.3.4":{"node_abi":1,"v8":"3.0"},"0.3.5":{"node_abi":1,"v8":"3.0"},"0.3.6":{"node_abi":1,"v8":"3.0"},"0.3.7":{"node_abi":1,"v8":"3.0"},"0.3.8":{"node_abi":1,"v8":"3.1"},"0.4.0":{"node_abi":1,"v8":"3.1"},"0.4.1":{"node_abi":1,"v8":"3.1"},"0.4.2":{"node_abi":1,"v8":"3.1"},"0.4.3":{"node_abi":1,"v8":"3.1"},"0.4.4":{"node_abi":1,"v8":"3.1"},"0.4.5":{"node_abi":1,"v8":"3.1"},"0.4.6":{"node_abi":1,"v8":"3.1"},"0.4.7":{"node_abi":1,"v8":"3.1"},"0.4.8":{"node_abi":1,"v8":"3.1"},"0.4.9":{"node_abi":1,"v8":"3.1"},"0.4.10":{"node_abi":1,"v8":"3.1"},"0.4.11":{"node_abi":1,"v8":"3.1"},"0.4.12":{"node_abi":1,"v8":"3.1"},"0.5.0":{"node_abi":1,"v8":"3.1"},"0.5.1":{"node_abi":1,"v8":"3.4"},"0.5.2":{"node_abi":1,"v8":"3.4"},"0.5.3":{"node_abi":1,"v8":"3.4"},"0.5.4":{"node_abi":1,"v8":"3.5"},"0.5.5":{"node_abi":1,"v8":"3.5"},"0.5.6":{"node_abi":1,"v8":"3.6"},"0.5.7":{"node_abi":1,"v8":"3.6"},"0.5.8":{"node_abi":1,"v8":"3.6"},"0.5.9":{"node_abi":1,"v8":"3.6"},"0.5.10":{"node_abi":1,"v8":"3.7"},"0.6.0":{"node_abi":1,"v8":"3.6"},"0.6.1":{"node_abi":1,"v8":"3.6"},"0.6.2":{"node_abi":1,"v8":"3.6"},"0.6.3":{"node_abi":1,"v8":"3.6"},"0.6.4":{"node_abi":1,"v8":"3.6"},"0.6.5":{"node_abi":1,"v8":"3.6"},"0.6.6":{"node_abi":1,"v8":"3.6"},"0.6.7":{"node_abi":1,"v8":"3.6"},"0.6.8":{"node_abi":1,"v8":"3.6"},"0.6.9":{"node_abi":1,"v8":"3.6"},"0.6.10":{"node_abi":1,"v8":"3.6"},"0.6.11":{"node_abi":1,"v8":"3.6"},"0.6.12":{"node_abi":1,"v8":"3.6"},"0.6.13":{"node_abi":1,"v8":"3.6"},"0.6.14":{"node_abi":1,"v8":"3.6"},"0.6.15":{"node_abi":1,"v8":"3.6"},"0.6.16":{"node_abi":1,"v8":"3.6"},"0.6.17":{"node_abi":1,"v8":"3.6"},"0.6.18":{"node_abi":1,"v8":"3.6"},"0.6.19":{"node_abi":1,"v8":"3.6"},"0.6.20":{"node_abi":1,"v8":"3.6"},"0.6.21":{"node_abi":1,"v8":"3.6"},"0.7.0":{"node_abi":1,"v8":"3.8"},"0.7.1":{"node_abi":1,"v8":"3.8"},"0.7.2":{"node_abi":1,"v8":"3.8"},"0.7.3":{"node_abi":1,"v8":"3.9"},"0.7.4":{"node_abi":1,"v8":"3.9"},"0.7.5":{"node_abi":1,"v8":"3.9"},"0.7.6":{"node_abi":1,"v8":"3.9"},"0.7.7":{"node_abi":1,"v8":"3.9"},"0.7.8":{"node_abi":1,"v8":"3.9"},"0.7.9":{"node_abi":1,"v8":"3.11"},"0.7.10":{"node_abi":1,"v8":"3.9"},"0.7.11":{"node_abi":1,"v8":"3.11"},"0.7.12":{"node_abi":1,"v8":"3.11"},"0.8.0":{"node_abi":1,"v8":"3.11"},"0.8.1":{"node_abi":1,"v8":"3.11"},"0.8.2":{"node_abi":1,"v8":"3.11"},"0.8.3":{"node_abi":1,"v8":"3.11"},"0.8.4":{"node_abi":1,"v8":"3.11"},"0.8.5":{"node_abi":1,"v8":"3.11"},"0.8.6":{"node_abi":1,"v8":"3.11"},"0.8.7":{"node_abi":1,"v8":"3.11"},"0.8.8":{"node_abi":1,"v8":"3.11"},"0.8.9":{"node_abi":1,"v8":"3.11"},"0.8.10":{"node_abi":1,"v8":"3.11"},"0.8.11":{"node_abi":1,"v8":"3.11"},"0.8.12":{"node_abi":1,"v8":"3.11"},"0.8.13":{"node_abi":1,"v8":"3.11"},"0.8.14":{"node_abi":1,"v8":"3.11"},"0.8.15":{"node_abi":1,"v8":"3.11"},"0.8.16":{"node_abi":1,"v8":"3.11"},"0.8.17":{"node_abi":1,"v8":"3.11"},"0.8.18":{"node_abi":1,"v8":"3.11"},"0.8.19":{"node_abi":1,"v8":"3.11"},"0.8.20":{"node_abi":1,"v8":"3.11"},"0.8.21":{"node_abi":1,"v8":"3.11"},"0.8.22":{"node_abi":1,"v8":"3.11"},"0.8.23":{"node_abi":1,"v8":"3.11"},"0.8.24":{"node_abi":1,"v8":"3.11"},"0.8.25":{"node_abi":1,"v8":"3.11"},"0.8.26":{"node_abi":1,"v8":"3.11"},"0.8.27":{"node_abi":1,"v8":"3.11"},"0.8.28":{"node_abi":1,"v8":"3.11"},"0.9.0":{"node_abi":1,"v8":"3.11"},"0.9.1":{"node_abi":10,"v8":"3.11"},"0.9.2":{"node_abi":10,"v8":"3.11"},"0.9.3":{"node_abi":10,"v8":"3.13"},"0.9.4":{"node_abi":10,"v8":"3.13"},"0.9.5":{"node_abi":10,"v8":"3.13"},"0.9.6":{"node_abi":10,"v8":"3.15"},"0.9.7":{"node_abi":10,"v8":"3.15"},"0.9.8":{"node_abi":10,"v8":"3.15"},"0.9.9":{"node_abi":11,"v8":"3.15"},"0.9.10":{"node_abi":11,"v8":"3.15"},"0.9.11":{"node_abi":11,"v8":"3.14"},"0.9.12":{"node_abi":11,"v8":"3.14"},"0.10.0":{"node_abi":11,"v8":"3.14"},"0.10.1":{"node_abi":11,"v8":"3.14"},"0.10.2":{"node_abi":11,"v8":"3.14"},"0.10.3":{"node_abi":11,"v8":"3.14"},"0.10.4":{"node_abi":11,"v8":"3.14"},"0.10.5":{"node_abi":11,"v8":"3.14"},"0.10.6":{"node_abi":11,"v8":"3.14"},"0.10.7":{"node_abi":11,"v8":"3.14"},"0.10.8":{"node_abi":11,"v8":"3.14"},"0.10.9":{"node_abi":11,"v8":"3.14"},"0.10.10":{"node_abi":11,"v8":"3.14"},"0.10.11":{"node_abi":11,"v8":"3.14"},"0.10.12":{"node_abi":11,"v8":"3.14"},"0.10.13":{"node_abi":11,"v8":"3.14"},"0.10.14":{"node_abi":11,"v8":"3.14"},"0.10.15":{"node_abi":11,"v8":"3.14"},"0.10.16":{"node_abi":11,"v8":"3.14"},"0.10.17":{"node_abi":11,"v8":"3.14"},"0.10.18":{"node_abi":11,"v8":"3.14"},"0.10.19":{"node_abi":11,"v8":"3.14"},"0.10.20":{"node_abi":11,"v8":"3.14"},"0.10.21":{"node_abi":11,"v8":"3.14"},"0.10.22":{"node_abi":11,"v8":"3.14"},"0.10.23":{"node_abi":11,"v8":"3.14"},"0.10.24":{"node_abi":11,"v8":"3.14"},"0.10.25":{"node_abi":11,"v8":"3.14"},"0.10.26":{"node_abi":11,"v8":"3.14"},"0.10.27":{"node_abi":11,"v8":"3.14"},"0.10.28":{"node_abi":11,"v8":"3.14"},"0.10.29":{"node_abi":11,"v8":"3.14"},"0.10.30":{"node_abi":11,"v8":"3.14"},"0.10.31":{"node_abi":11,"v8":"3.14"},"0.10.32":{"node_abi":11,"v8":"3.14"},"0.10.33":{"node_abi":11,"v8":"3.14"},"0.10.34":{"node_abi":11,"v8":"3.14"},"0.10.35":{"node_abi":11,"v8":"3.14"},"0.10.36":{"node_abi":11,"v8":"3.14"},"0.10.37":{"node_abi":11,"v8":"3.14"},"0.10.38":{"node_abi":11,"v8":"3.14"},"0.10.39":{"node_abi":11,"v8":"3.14"},"0.10.40":{"node_abi":11,"v8":"3.14"},"0.10.41":{"node_abi":11,"v8":"3.14"},"0.10.42":{"node_abi":11,"v8":"3.14"},"0.10.43":{"node_abi":11,"v8":"3.14"},"0.10.44":{"node_abi":11,"v8":"3.14"},"0.10.45":{"node_abi":11,"v8":"3.14"},"0.10.46":{"node_abi":11,"v8":"3.14"},"0.10.47":{"node_abi":11,"v8":"3.14"},"0.10.48":{"node_abi":11,"v8":"3.14"},"0.11.0":{"node_abi":12,"v8":"3.17"},"0.11.1":{"node_abi":12,"v8":"3.18"},"0.11.2":{"node_abi":12,"v8":"3.19"},"0.11.3":{"node_abi":12,"v8":"3.19"},"0.11.4":{"node_abi":12,"v8":"3.20"},"0.11.5":{"node_abi":12,"v8":"3.20"},"0.11.6":{"node_abi":12,"v8":"3.20"},"0.11.7":{"node_abi":12,"v8":"3.20"},"0.11.8":{"node_abi":13,"v8":"3.21"},"0.11.9":{"node_abi":13,"v8":"3.22"},"0.11.10":{"node_abi":13,"v8":"3.22"},"0.11.11":{"node_abi":14,"v8":"3.22"},"0.11.12":{"node_abi":14,"v8":"3.22"},"0.11.13":{"node_abi":14,"v8":"3.25"},"0.11.14":{"node_abi":14,"v8":"3.26"},"0.11.15":{"node_abi":14,"v8":"3.28"},"0.11.16":{"node_abi":14,"v8":"3.28"},"0.12.0":{"node_abi":14,"v8":"3.28"},"0.12.1":{"node_abi":14,"v8":"3.28"},"0.12.2":{"node_abi":14,"v8":"3.28"},"0.12.3":{"node_abi":14,"v8":"3.28"},"0.12.4":{"node_abi":14,"v8":"3.28"},"0.12.5":{"node_abi":14,"v8":"3.28"},"0.12.6":{"node_abi":14,"v8":"3.28"},"0.12.7":{"node_abi":14,"v8":"3.28"},"0.12.8":{"node_abi":14,"v8":"3.28"},"0.12.9":{"node_abi":14,"v8":"3.28"},"0.12.10":{"node_abi":14,"v8":"3.28"},"0.12.11":{"node_abi":14,"v8":"3.28"},"0.12.12":{"node_abi":14,"v8":"3.28"},"0.12.13":{"node_abi":14,"v8":"3.28"},"0.12.14":{"node_abi":14,"v8":"3.28"},"0.12.15":{"node_abi":14,"v8":"3.28"},"0.12.16":{"node_abi":14,"v8":"3.28"},"0.12.17":{"node_abi":14,"v8":"3.28"},"0.12.18":{"node_abi":14,"v8":"3.28"},"1.0.0":{"node_abi":42,"v8":"3.31"},"1.0.1":{"node_abi":42,"v8":"3.31"},"1.0.2":{"node_abi":42,"v8":"3.31"},"1.0.3":{"node_abi":42,"v8":"4.1"},"1.0.4":{"node_abi":42,"v8":"4.1"},"1.1.0":{"node_abi":43,"v8":"4.1"},"1.2.0":{"node_abi":43,"v8":"4.1"},"1.3.0":{"node_abi":43,"v8":"4.1"},"1.4.1":{"node_abi":43,"v8":"4.1"},"1.4.2":{"node_abi":43,"v8":"4.1"},"1.4.3":{"node_abi":43,"v8":"4.1"},"1.5.0":{"node_abi":43,"v8":"4.1"},"1.5.1":{"node_abi":43,"v8":"4.1"},"1.6.0":{"node_abi":43,"v8":"4.1"},"1.6.1":{"node_abi":43,"v8":"4.1"},"1.6.2":{"node_abi":43,"v8":"4.1"},"1.6.3":{"node_abi":43,"v8":"4.1"},"1.6.4":{"node_abi":43,"v8":"4.1"},"1.7.1":{"node_abi":43,"v8":"4.1"},"1.8.1":{"node_abi":43,"v8":"4.1"},"1.8.2":{"node_abi":43,"v8":"4.1"},"1.8.3":{"node_abi":43,"v8":"4.1"},"1.8.4":{"node_abi":43,"v8":"4.1"},"2.0.0":{"node_abi":44,"v8":"4.2"},"2.0.1":{"node_abi":44,"v8":"4.2"},"2.0.2":{"node_abi":44,"v8":"4.2"},"2.1.0":{"node_abi":44,"v8":"4.2"},"2.2.0":{"node_abi":44,"v8":"4.2"},"2.2.1":{"node_abi":44,"v8":"4.2"},"2.3.0":{"node_abi":44,"v8":"4.2"},"2.3.1":{"node_abi":44,"v8":"4.2"},"2.3.2":{"node_abi":44,"v8":"4.2"},"2.3.3":{"node_abi":44,"v8":"4.2"},"2.3.4":{"node_abi":44,"v8":"4.2"},"2.4.0":{"node_abi":44,"v8":"4.2"},"2.5.0":{"node_abi":44,"v8":"4.2"},"3.0.0":{"node_abi":45,"v8":"4.4"},"3.1.0":{"node_abi":45,"v8":"4.4"},"3.2.0":{"node_abi":45,"v8":"4.4"},"3.3.0":{"node_abi":45,"v8":"4.4"},"3.3.1":{"node_abi":45,"v8":"4.4"},"4.0.0":{"node_abi":46,"v8":"4.5"},"4.1.0":{"node_abi":46,"v8":"4.5"},"4.1.1":{"node_abi":46,"v8":"4.5"},"4.1.2":{"node_abi":46,"v8":"4.5"},"4.2.0":{"node_abi":46,"v8":"4.5"},"4.2.1":{"node_abi":46,"v8":"4.5"},"4.2.2":{"node_abi":46,"v8":"4.5"},"4.2.3":{"node_abi":46,"v8":"4.5"},"4.2.4":{"node_abi":46,"v8":"4.5"},"4.2.5":{"node_abi":46,"v8":"4.5"},"4.2.6":{"node_abi":46,"v8":"4.5"},"4.3.0":{"node_abi":46,"v8":"4.5"},"4.3.1":{"node_abi":46,"v8":"4.5"},"4.3.2":{"node_abi":46,"v8":"4.5"},"4.4.0":{"node_abi":46,"v8":"4.5"},"4.4.1":{"node_abi":46,"v8":"4.5"},"4.4.2":{"node_abi":46,"v8":"4.5"},"4.4.3":{"node_abi":46,"v8":"4.5"},"4.4.4":{"node_abi":46,"v8":"4.5"},"4.4.5":{"node_abi":46,"v8":"4.5"},"4.4.6":{"node_abi":46,"v8":"4.5"},"4.4.7":{"node_abi":46,"v8":"4.5"},"4.5.0":{"node_abi":46,"v8":"4.5"},"4.6.0":{"node_abi":46,"v8":"4.5"},"4.6.1":{"node_abi":46,"v8":"4.5"},"4.6.2":{"node_abi":46,"v8":"4.5"},"4.7.0":{"node_abi":46,"v8":"4.5"},"4.7.1":{"node_abi":46,"v8":"4.5"},"4.7.2":{"node_abi":46,"v8":"4.5"},"4.7.3":{"node_abi":46,"v8":"4.5"},"4.8.0":{"node_abi":46,"v8":"4.5"},"4.8.1":{"node_abi":46,"v8":"4.5"},"4.8.2":{"node_abi":46,"v8":"4.5"},"4.8.3":{"node_abi":46,"v8":"4.5"},"4.8.4":{"node_abi":46,"v8":"4.5"},"4.8.5":{"node_abi":46,"v8":"4.5"},"4.8.6":{"node_abi":46,"v8":"4.5"},"4.8.7":{"node_abi":46,"v8":"4.5"},"4.9.0":{"node_abi":46,"v8":"4.5"},"4.9.1":{"node_abi":46,"v8":"4.5"},"5.0.0":{"node_abi":47,"v8":"4.6"},"5.1.0":{"node_abi":47,"v8":"4.6"},"5.1.1":{"node_abi":47,"v8":"4.6"},"5.2.0":{"node_abi":47,"v8":"4.6"},"5.3.0":{"node_abi":47,"v8":"4.6"},"5.4.0":{"node_abi":47,"v8":"4.6"},"5.4.1":{"node_abi":47,"v8":"4.6"},"5.5.0":{"node_abi":47,"v8":"4.6"},"5.6.0":{"node_abi":47,"v8":"4.6"},"5.7.0":{"node_abi":47,"v8":"4.6"},"5.7.1":{"node_abi":47,"v8":"4.6"},"5.8.0":{"node_abi":47,"v8":"4.6"},"5.9.0":{"node_abi":47,"v8":"4.6"},"5.9.1":{"node_abi":47,"v8":"4.6"},"5.10.0":{"node_abi":47,"v8":"4.6"},"5.10.1":{"node_abi":47,"v8":"4.6"},"5.11.0":{"node_abi":47,"v8":"4.6"},"5.11.1":{"node_abi":47,"v8":"4.6"},"5.12.0":{"node_abi":47,"v8":"4.6"},"6.0.0":{"node_abi":48,"v8":"5.0"},"6.1.0":{"node_abi":48,"v8":"5.0"},"6.2.0":{"node_abi":48,"v8":"5.0"},"6.2.1":{"node_abi":48,"v8":"5.0"},"6.2.2":{"node_abi":48,"v8":"5.0"},"6.3.0":{"node_abi":48,"v8":"5.0"},"6.3.1":{"node_abi":48,"v8":"5.0"},"6.4.0":{"node_abi":48,"v8":"5.0"},"6.5.0":{"node_abi":48,"v8":"5.1"},"6.6.0":{"node_abi":48,"v8":"5.1"},"6.7.0":{"node_abi":48,"v8":"5.1"},"6.8.0":{"node_abi":48,"v8":"5.1"},"6.8.1":{"node_abi":48,"v8":"5.1"},"6.9.0":{"node_abi":48,"v8":"5.1"},"6.9.1":{"node_abi":48,"v8":"5.1"},"6.9.2":{"node_abi":48,"v8":"5.1"},"6.9.3":{"node_abi":48,"v8":"5.1"},"6.9.4":{"node_abi":48,"v8":"5.1"},"6.9.5":{"node_abi":48,"v8":"5.1"},"6.10.0":{"node_abi":48,"v8":"5.1"},"6.10.1":{"node_abi":48,"v8":"5.1"},"6.10.2":{"node_abi":48,"v8":"5.1"},"6.10.3":{"node_abi":48,"v8":"5.1"},"6.11.0":{"node_abi":48,"v8":"5.1"},"6.11.1":{"node_abi":48,"v8":"5.1"},"6.11.2":{"node_abi":48,"v8":"5.1"},"6.11.3":{"node_abi":48,"v8":"5.1"},"6.11.4":{"node_abi":48,"v8":"5.1"},"6.11.5":{"node_abi":48,"v8":"5.1"},"6.12.0":{"node_abi":48,"v8":"5.1"},"6.12.1":{"node_abi":48,"v8":"5.1"},"6.12.2":{"node_abi":48,"v8":"5.1"},"6.12.3":{"node_abi":48,"v8":"5.1"},"6.13.0":{"node_abi":48,"v8":"5.1"},"6.13.1":{"node_abi":48,"v8":"5.1"},"6.14.0":{"node_abi":48,"v8":"5.1"},"6.14.1":{"node_abi":48,"v8":"5.1"},"6.14.2":{"node_abi":48,"v8":"5.1"},"6.14.3":{"node_abi":48,"v8":"5.1"},"6.14.4":{"node_abi":48,"v8":"5.1"},"6.15.0":{"node_abi":48,"v8":"5.1"},"6.15.1":{"node_abi":48,"v8":"5.1"},"6.16.0":{"node_abi":48,"v8":"5.1"},"6.17.0":{"node_abi":48,"v8":"5.1"},"6.17.1":{"node_abi":48,"v8":"5.1"},"7.0.0":{"node_abi":51,"v8":"5.4"},"7.1.0":{"node_abi":51,"v8":"5.4"},"7.2.0":{"node_abi":51,"v8":"5.4"},"7.2.1":{"node_abi":51,"v8":"5.4"},"7.3.0":{"node_abi":51,"v8":"5.4"},"7.4.0":{"node_abi":51,"v8":"5.4"},"7.5.0":{"node_abi":51,"v8":"5.4"},"7.6.0":{"node_abi":51,"v8":"5.5"},"7.7.0":{"node_abi":51,"v8":"5.5"},"7.7.1":{"node_abi":51,"v8":"5.5"},"7.7.2":{"node_abi":51,"v8":"5.5"},"7.7.3":{"node_abi":51,"v8":"5.5"},"7.7.4":{"node_abi":51,"v8":"5.5"},"7.8.0":{"node_abi":51,"v8":"5.5"},"7.9.0":{"node_abi":51,"v8":"5.5"},"7.10.0":{"node_abi":51,"v8":"5.5"},"7.10.1":{"node_abi":51,"v8":"5.5"},"8.0.0":{"node_abi":57,"v8":"5.8"},"8.1.0":{"node_abi":57,"v8":"5.8"},"8.1.1":{"node_abi":57,"v8":"5.8"},"8.1.2":{"node_abi":57,"v8":"5.8"},"8.1.3":{"node_abi":57,"v8":"5.8"},"8.1.4":{"node_abi":57,"v8":"5.8"},"8.2.0":{"node_abi":57,"v8":"5.8"},"8.2.1":{"node_abi":57,"v8":"5.8"},"8.3.0":{"node_abi":57,"v8":"6.0"},"8.4.0":{"node_abi":57,"v8":"6.0"},"8.5.0":{"node_abi":57,"v8":"6.0"},"8.6.0":{"node_abi":57,"v8":"6.0"},"8.7.0":{"node_abi":57,"v8":"6.1"},"8.8.0":{"node_abi":57,"v8":"6.1"},"8.8.1":{"node_abi":57,"v8":"6.1"},"8.9.0":{"node_abi":57,"v8":"6.1"},"8.9.1":{"node_abi":57,"v8":"6.1"},"8.9.2":{"node_abi":57,"v8":"6.1"},"8.9.3":{"node_abi":57,"v8":"6.1"},"8.9.4":{"node_abi":57,"v8":"6.1"},"8.10.0":{"node_abi":57,"v8":"6.2"},"8.11.0":{"node_abi":57,"v8":"6.2"},"8.11.1":{"node_abi":57,"v8":"6.2"},"8.11.2":{"node_abi":57,"v8":"6.2"},"8.11.3":{"node_abi":57,"v8":"6.2"},"8.11.4":{"node_abi":57,"v8":"6.2"},"8.12.0":{"node_abi":57,"v8":"6.2"},"8.13.0":{"node_abi":57,"v8":"6.2"},"8.14.0":{"node_abi":57,"v8":"6.2"},"8.14.1":{"node_abi":57,"v8":"6.2"},"8.15.0":{"node_abi":57,"v8":"6.2"},"8.15.1":{"node_abi":57,"v8":"6.2"},"8.16.0":{"node_abi":57,"v8":"6.2"},"8.16.1":{"node_abi":57,"v8":"6.2"},"8.16.2":{"node_abi":57,"v8":"6.2"},"8.17.0":{"node_abi":57,"v8":"6.2"},"9.0.0":{"node_abi":59,"v8":"6.2"},"9.1.0":{"node_abi":59,"v8":"6.2"},"9.2.0":{"node_abi":59,"v8":"6.2"},"9.2.1":{"node_abi":59,"v8":"6.2"},"9.3.0":{"node_abi":59,"v8":"6.2"},"9.4.0":{"node_abi":59,"v8":"6.2"},"9.5.0":{"node_abi":59,"v8":"6.2"},"9.6.0":{"node_abi":59,"v8":"6.2"},"9.6.1":{"node_abi":59,"v8":"6.2"},"9.7.0":{"node_abi":59,"v8":"6.2"},"9.7.1":{"node_abi":59,"v8":"6.2"},"9.8.0":{"node_abi":59,"v8":"6.2"},"9.9.0":{"node_abi":59,"v8":"6.2"},"9.10.0":{"node_abi":59,"v8":"6.2"},"9.10.1":{"node_abi":59,"v8":"6.2"},"9.11.0":{"node_abi":59,"v8":"6.2"},"9.11.1":{"node_abi":59,"v8":"6.2"},"9.11.2":{"node_abi":59,"v8":"6.2"},"10.0.0":{"node_abi":64,"v8":"6.6"},"10.1.0":{"node_abi":64,"v8":"6.6"},"10.2.0":{"node_abi":64,"v8":"6.6"},"10.2.1":{"node_abi":64,"v8":"6.6"},"10.3.0":{"node_abi":64,"v8":"6.6"},"10.4.0":{"node_abi":64,"v8":"6.7"},"10.4.1":{"node_abi":64,"v8":"6.7"},"10.5.0":{"node_abi":64,"v8":"6.7"},"10.6.0":{"node_abi":64,"v8":"6.7"},"10.7.0":{"node_abi":64,"v8":"6.7"},"10.8.0":{"node_abi":64,"v8":"6.7"},"10.9.0":{"node_abi":64,"v8":"6.8"},"10.10.0":{"node_abi":64,"v8":"6.8"},"10.11.0":{"node_abi":64,"v8":"6.8"},"10.12.0":{"node_abi":64,"v8":"6.8"},"10.13.0":{"node_abi":64,"v8":"6.8"},"10.14.0":{"node_abi":64,"v8":"6.8"},"10.14.1":{"node_abi":64,"v8":"6.8"},"10.14.2":{"node_abi":64,"v8":"6.8"},"10.15.0":{"node_abi":64,"v8":"6.8"},"10.15.1":{"node_abi":64,"v8":"6.8"},"10.15.2":{"node_abi":64,"v8":"6.8"},"10.15.3":{"node_abi":64,"v8":"6.8"},"10.16.0":{"node_abi":64,"v8":"6.8"},"10.16.1":{"node_abi":64,"v8":"6.8"},"10.16.2":{"node_abi":64,"v8":"6.8"},"10.16.3":{"node_abi":64,"v8":"6.8"},"10.17.0":{"node_abi":64,"v8":"6.8"},"10.18.0":{"node_abi":64,"v8":"6.8"},"10.18.1":{"node_abi":64,"v8":"6.8"},"10.19.0":{"node_abi":64,"v8":"6.8"},"10.20.0":{"node_abi":64,"v8":"6.8"},"10.20.1":{"node_abi":64,"v8":"6.8"},"10.21.0":{"node_abi":64,"v8":"6.8"},"10.22.0":{"node_abi":64,"v8":"6.8"},"10.22.1":{"node_abi":64,"v8":"6.8"},"10.23.0":{"node_abi":64,"v8":"6.8"},"10.23.1":{"node_abi":64,"v8":"6.8"},"10.23.2":{"node_abi":64,"v8":"6.8"},"10.23.3":{"node_abi":64,"v8":"6.8"},"10.24.0":{"node_abi":64,"v8":"6.8"},"10.24.1":{"node_abi":64,"v8":"6.8"},"11.0.0":{"node_abi":67,"v8":"7.0"},"11.1.0":{"node_abi":67,"v8":"7.0"},"11.2.0":{"node_abi":67,"v8":"7.0"},"11.3.0":{"node_abi":67,"v8":"7.0"},"11.4.0":{"node_abi":67,"v8":"7.0"},"11.5.0":{"node_abi":67,"v8":"7.0"},"11.6.0":{"node_abi":67,"v8":"7.0"},"11.7.0":{"node_abi":67,"v8":"7.0"},"11.8.0":{"node_abi":67,"v8":"7.0"},"11.9.0":{"node_abi":67,"v8":"7.0"},"11.10.0":{"node_abi":67,"v8":"7.0"},"11.10.1":{"node_abi":67,"v8":"7.0"},"11.11.0":{"node_abi":67,"v8":"7.0"},"11.12.0":{"node_abi":67,"v8":"7.0"},"11.13.0":{"node_abi":67,"v8":"7.0"},"11.14.0":{"node_abi":67,"v8":"7.0"},"11.15.0":{"node_abi":67,"v8":"7.0"},"12.0.0":{"node_abi":72,"v8":"7.4"},"12.1.0":{"node_abi":72,"v8":"7.4"},"12.2.0":{"node_abi":72,"v8":"7.4"},"12.3.0":{"node_abi":72,"v8":"7.4"},"12.3.1":{"node_abi":72,"v8":"7.4"},"12.4.0":{"node_abi":72,"v8":"7.4"},"12.5.0":{"node_abi":72,"v8":"7.5"},"12.6.0":{"node_abi":72,"v8":"7.5"},"12.7.0":{"node_abi":72,"v8":"7.5"},"12.8.0":{"node_abi":72,"v8":"7.5"},"12.8.1":{"node_abi":72,"v8":"7.5"},"12.9.0":{"node_abi":72,"v8":"7.6"},"12.9.1":{"node_abi":72,"v8":"7.6"},"12.10.0":{"node_abi":72,"v8":"7.6"},"12.11.0":{"node_abi":72,"v8":"7.7"},"12.11.1":{"node_abi":72,"v8":"7.7"},"12.12.0":{"node_abi":72,"v8":"7.7"},"12.13.0":{"node_abi":72,"v8":"7.7"},"12.13.1":{"node_abi":72,"v8":"7.7"},"12.14.0":{"node_abi":72,"v8":"7.7"},"12.14.1":{"node_abi":72,"v8":"7.7"},"12.15.0":{"node_abi":72,"v8":"7.7"},"12.16.0":{"node_abi":72,"v8":"7.8"},"12.16.1":{"node_abi":72,"v8":"7.8"},"12.16.2":{"node_abi":72,"v8":"7.8"},"12.16.3":{"node_abi":72,"v8":"7.8"},"12.17.0":{"node_abi":72,"v8":"7.8"},"12.18.0":{"node_abi":72,"v8":"7.8"},"12.18.1":{"node_abi":72,"v8":"7.8"},"12.18.2":{"node_abi":72,"v8":"7.8"},"12.18.3":{"node_abi":72,"v8":"7.8"},"12.18.4":{"node_abi":72,"v8":"7.8"},"12.19.0":{"node_abi":72,"v8":"7.8"},"12.19.1":{"node_abi":72,"v8":"7.8"},"12.20.0":{"node_abi":72,"v8":"7.8"},"12.20.1":{"node_abi":72,"v8":"7.8"},"12.20.2":{"node_abi":72,"v8":"7.8"},"12.21.0":{"node_abi":72,"v8":"7.8"},"12.22.0":{"node_abi":72,"v8":"7.8"},"12.22.1":{"node_abi":72,"v8":"7.8"},"13.0.0":{"node_abi":79,"v8":"7.8"},"13.0.1":{"node_abi":79,"v8":"7.8"},"13.1.0":{"node_abi":79,"v8":"7.8"},"13.2.0":{"node_abi":79,"v8":"7.9"},"13.3.0":{"node_abi":79,"v8":"7.9"},"13.4.0":{"node_abi":79,"v8":"7.9"},"13.5.0":{"node_abi":79,"v8":"7.9"},"13.6.0":{"node_abi":79,"v8":"7.9"},"13.7.0":{"node_abi":79,"v8":"7.9"},"13.8.0":{"node_abi":79,"v8":"7.9"},"13.9.0":{"node_abi":79,"v8":"7.9"},"13.10.0":{"node_abi":79,"v8":"7.9"},"13.10.1":{"node_abi":79,"v8":"7.9"},"13.11.0":{"node_abi":79,"v8":"7.9"},"13.12.0":{"node_abi":79,"v8":"7.9"},"13.13.0":{"node_abi":79,"v8":"7.9"},"13.14.0":{"node_abi":79,"v8":"7.9"},"14.0.0":{"node_abi":83,"v8":"8.1"},"14.1.0":{"node_abi":83,"v8":"8.1"},"14.2.0":{"node_abi":83,"v8":"8.1"},"14.3.0":{"node_abi":83,"v8":"8.1"},"14.4.0":{"node_abi":83,"v8":"8.1"},"14.5.0":{"node_abi":83,"v8":"8.3"},"14.6.0":{"node_abi":83,"v8":"8.4"},"14.7.0":{"node_abi":83,"v8":"8.4"},"14.8.0":{"node_abi":83,"v8":"8.4"},"14.9.0":{"node_abi":83,"v8":"8.4"},"14.10.0":{"node_abi":83,"v8":"8.4"},"14.10.1":{"node_abi":83,"v8":"8.4"},"14.11.0":{"node_abi":83,"v8":"8.4"},"14.12.0":{"node_abi":83,"v8":"8.4"},"14.13.0":{"node_abi":83,"v8":"8.4"},"14.13.1":{"node_abi":83,"v8":"8.4"},"14.14.0":{"node_abi":83,"v8":"8.4"},"14.15.0":{"node_abi":83,"v8":"8.4"},"14.15.1":{"node_abi":83,"v8":"8.4"},"14.15.2":{"node_abi":83,"v8":"8.4"},"14.15.3":{"node_abi":83,"v8":"8.4"},"14.15.4":{"node_abi":83,"v8":"8.4"},"14.15.5":{"node_abi":83,"v8":"8.4"},"14.16.0":{"node_abi":83,"v8":"8.4"},"14.16.1":{"node_abi":83,"v8":"8.4"},"15.0.0":{"node_abi":88,"v8":"8.6"},"15.0.1":{"node_abi":88,"v8":"8.6"},"15.1.0":{"node_abi":88,"v8":"8.6"},"15.2.0":{"node_abi":88,"v8":"8.6"},"15.2.1":{"node_abi":88,"v8":"8.6"},"15.3.0":{"node_abi":88,"v8":"8.6"},"15.4.0":{"node_abi":88,"v8":"8.6"},"15.5.0":{"node_abi":88,"v8":"8.6"},"15.5.1":{"node_abi":88,"v8":"8.6"},"15.6.0":{"node_abi":88,"v8":"8.6"},"15.7.0":{"node_abi":88,"v8":"8.6"},"15.8.0":{"node_abi":88,"v8":"8.6"},"15.9.0":{"node_abi":88,"v8":"8.6"},"15.10.0":{"node_abi":88,"v8":"8.6"},"15.11.0":{"node_abi":88,"v8":"8.6"},"15.12.0":{"node_abi":88,"v8":"8.6"},"15.13.0":{"node_abi":88,"v8":"8.6"},"15.14.0":{"node_abi":88,"v8":"8.6"},"16.0.0":{"node_abi":93,"v8":"9.0"}}')},7399:e=>{"use strict";e.exports=JSON.parse('{"name":"@mapbox/node-pre-gyp","description":"Node.js native addon binary install tool","version":"1.0.5","keywords":["native","addon","module","c","c++","bindings","binary"],"license":"BSD-3-Clause","author":"Dane Springmeyer ","repository":{"type":"git","url":"git://github.com/mapbox/node-pre-gyp.git"},"bin":"./bin/node-pre-gyp","main":"./lib/node-pre-gyp.js","dependencies":{"detect-libc":"^1.0.3","https-proxy-agent":"^5.0.0","make-dir":"^3.1.0","node-fetch":"^2.6.1","nopt":"^5.0.0","npmlog":"^4.1.2","rimraf":"^3.0.2","semver":"^7.3.4","tar":"^6.1.0"},"devDependencies":{"@mapbox/cloudfriend":"^4.6.0","@mapbox/eslint-config-mapbox":"^3.0.0","action-walk":"^2.2.0","aws-sdk":"^2.840.0","codecov":"^3.8.1","eslint":"^7.18.0","eslint-plugin-node":"^11.1.0","mock-aws-s3":"^4.0.1","nock":"^12.0.3","node-addon-api":"^3.1.0","nyc":"^15.1.0","tape":"^5.2.2","tar-fs":"^2.1.1"},"nyc":{"all":true,"skip-full":false,"exclude":["test/**"]},"scripts":{"coverage":"nyc --all --include index.js --include lib/ npm test","upload-coverage":"nyc report --reporter json && codecov --clear --flags=unit --file=./coverage/coverage-final.json","lint":"eslint bin/node-pre-gyp lib/*js lib/util/*js test/*js scripts/*js","fix":"npm run lint -- --fix","update-crosswalk":"node scripts/abi_crosswalk.js","test":"tape test/*test.js"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var s=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[e]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(9634);module.exports=__webpack_exports__})(); \ No newline at end of file +*/var t=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var s=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var s=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if(s.join("")!=="0123456789"){return false}var a={};"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e}));if(Object.keys(Object.assign({},a)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,a){var o;var u=toObject(e);var c;for(var f=1;f{"use strict";e.exports=r(7250)},7798:(e,t,r)=>{"use strict";const s=r(1017);const a="\\\\/";const o=`[^${a}]`;const u="\\.";const c="\\+";const f="\\?";const d="\\/";const p="(?=.)";const h="[^/]";const v=`(?:${d}|$)`;const D=`(?:^|${d})`;const g=`${u}{1,2}${v}`;const y=`(?!${u})`;const m=`(?!${D}${g})`;const _=`(?!${u}{0,1}${v})`;const E=`(?!${g})`;const w=`[^.${d}]`;const x=`${h}*?`;const F={DOT_LITERAL:u,PLUS_LITERAL:c,QMARK_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:p,QMARK:h,END_ANCHOR:v,DOTS_SLASH:g,NO_DOT:y,NO_DOTS:m,NO_DOT_SLASH:_,NO_DOTS_SLASH:E,QMARK_NO_DOT:w,STAR:x,START_ANCHOR:D};const C={...F,SLASH_LITERAL:`[${a}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${u}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${a}])${u}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?C:F}}},3632:(e,t,r)=>{"use strict";const s=r(7798);const a=r(5502);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_BACKREF:f,REPLACEMENTS:d}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>a.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=d[e]||e;const r={...t};const p=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let h=e.length;if(h>p){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${p}`)}const v={type:"bos",value:"",output:r.prepend||""};const D=[v];const g=r.capture?"":"?:";const y=a.isWindows(t);const m=s.globChars(y);const _=s.extglobChars(m);const{DOT_LITERAL:E,PLUS_LITERAL:w,SLASH_LITERAL:x,ONE_CHAR:F,DOTS_SLASH:C,NO_DOT:S,NO_DOT_SLASH:k,NO_DOTS_SLASH:A,QMARK:R,QMARK_NO_DOT:O,STAR:T,START_ANCHOR:j}=m;const globstar=e=>`(${g}(?:(?!${j}${e.dot?C:E}).)*?)`;const B=r.dot?"":S;const L=r.dot?R:O;let N=r.bash===true?globstar(r):T;if(r.capture){N=`(${N})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const I={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:D};e=a.removePrefix(e,I);h=e.length;const P=[];const W=[];const M=[];let $=v;let q;const eos=()=>I.index===h-1;const U=I.peek=(t=1)=>e[I.index+t];const G=I.advance=()=>e[++I.index]||"";const remaining=()=>e.slice(I.index+1);const consume=(e="",t=0)=>{I.consumed+=e;I.index+=t};const append=e=>{I.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){G();I.start++;e++}if(e%2===0){return false}I.negated=true;I.start++;return true};const increment=e=>{I[e]++;M.push(e)};const decrement=e=>{I[e]--;M.pop()};const push=e=>{if($.type==="globstar"){const t=I.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||P.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){I.output=I.output.slice(0,-$.output.length);$.type="star";$.value="*";$.output=N;I.output+=$.output}}if(P.length&&e.type!=="paren"){P[P.length-1].inner+=e.value}if(e.value||e.output)append(e);if($&&$.type==="text"&&e.type==="text"){$.value+=e.value;$.output=($.output||"")+e.value;return}e.prev=$;D.push(e);$=e};const extglobOpen=(e,t)=>{const s={..._[t],conditions:1,inner:""};s.prev=$;s.parens=I.parens;s.output=I.output;const a=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:I.output?"":F});push({type:"paren",extglob:true,value:G(),output:a});P.push(s)};const extglobClose=e=>{let s=e.close+(r.capture?")":"");let a;if(e.type==="negate"){let o=N;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==N||eos()||/^\)+$/.test(remaining())){s=e.close=`)$))${o}`}if(e.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const r=parse(a,{...t,fastpaths:false}).output;s=e.close=`)${r})${o})`}if(e.prev.type==="bos"){I.negatedExtglob=true}}push({type:"paren",extglob:true,value:q,output:s});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(f,((e,t,r,a,o,u)=>{if(a==="\\"){s=true;return e}if(a==="?"){if(t){return t+a+(o?R.repeat(o.length):"")}if(u===0){return L+(o?R.repeat(o.length):"")}return R.repeat(r.length)}if(a==="."){return E.repeat(r.length)}if(a==="*"){if(t){return t+a+(o?N:"")}return N}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){I.output=e;return I}I.output=a.wrapOutput(o,I,t);return I}while(!eos()){q=G();if(q==="\0"){continue}if(q==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){q+="\\";push({type:"text",value:q});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;I.index+=s;if(s%2!==0){q+="\\"}}if(r.unescape===true){q=G()}else{q+=G()}if(I.brackets===0){push({type:"text",value:q});continue}}if(I.brackets>0&&(q!=="]"||$.value==="["||$.value==="[^")){if(r.posix!==false&&q===":"){const e=$.value.slice(1);if(e.includes("[")){$.posix=true;if(e.includes(":")){const e=$.value.lastIndexOf("[");const t=$.value.slice(0,e);const r=$.value.slice(e+2);const s=u[r];if(s){$.value=t+s;I.backtrack=true;G();if(!v.output&&D.indexOf($)===1){v.output=F}continue}}}}if(q==="["&&U()!==":"||q==="-"&&U()==="]"){q=`\\${q}`}if(q==="]"&&($.value==="["||$.value==="[^")){q=`\\${q}`}if(r.posix===true&&q==="!"&&$.value==="["){q="^"}$.value+=q;append({value:q});continue}if(I.quotes===1&&q!=='"'){q=a.escapeRegex(q);$.value+=q;append({value:q});continue}if(q==='"'){I.quotes=I.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:q})}continue}if(q==="("){increment("parens");push({type:"paren",value:q});continue}if(q===")"){if(I.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=P[P.length-1];if(e&&I.parens===e.parens+1){extglobClose(P.pop());continue}push({type:"paren",value:q,output:I.parens?")":"\\)"});decrement("parens");continue}if(q==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}q=`\\${q}`}else{increment("brackets")}push({type:"bracket",value:q});continue}if(q==="]"){if(r.nobracket===true||$&&$.type==="bracket"&&$.value.length===1){push({type:"text",value:q,output:`\\${q}`});continue}if(I.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:q,output:`\\${q}`});continue}decrement("brackets");const e=$.value.slice(1);if($.posix!==true&&e[0]==="^"&&!e.includes("/")){q=`/${q}`}$.value+=q;append({value:q});if(r.literalBrackets===false||a.hasRegexChars(e)){continue}const t=a.escapeRegex($.value);I.output=I.output.slice(0,-$.value.length);if(r.literalBrackets===true){I.output+=t;$.value=t;continue}$.value=`(${g}${t}|${$.value})`;I.output+=$.value;continue}if(q==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:q,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};W.push(e);push(e);continue}if(q==="}"){const e=W[W.length-1];if(r.nobrace===true||!e){push({type:"text",value:q,output:q});continue}let t=")";if(e.dots===true){const e=D.slice();const s=[];for(let t=e.length-1;t>=0;t--){D.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);I.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=I.output.slice(0,e.outputIndex);const s=I.tokens.slice(e.tokensIndex);e.value=e.output="\\{";q=t="\\}";I.output=r;for(const e of s){I.output+=e.output||e.value}}push({type:"brace",value:q,output:t});decrement("braces");W.pop();continue}if(q==="|"){if(P.length>0){P[P.length-1].conditions++}push({type:"text",value:q});continue}if(q===","){let e=q;const t=W[W.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:q,output:e});continue}if(q==="/"){if($.type==="dot"&&I.index===I.start+1){I.start=I.index+1;I.consumed="";I.output="";D.pop();$=v;continue}push({type:"slash",value:q,output:x});continue}if(q==="."){if(I.braces>0&&$.type==="dot"){if($.value===".")$.output=E;const e=W[W.length-1];$.type="dots";$.output+=q;$.value+=q;e.dots=true;continue}if(I.braces+I.parens===0&&$.type!=="bos"&&$.type!=="slash"){push({type:"text",value:q,output:E});continue}push({type:"dot",value:q,output:E});continue}if(q==="?"){const e=$&&$.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",q);continue}if($&&$.type==="paren"){const e=U();let t=q;if(e==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if($.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${q}`}push({type:"text",value:q,output:t});continue}if(r.dot!==true&&($.type==="slash"||$.type==="bos")){push({type:"qmark",value:q,output:O});continue}push({type:"qmark",value:q,output:R});continue}if(q==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",q);continue}}if(r.nonegate!==true&&I.index===0){negate();continue}}if(q==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",q);continue}if($&&$.value==="("||r.regex===false){push({type:"plus",value:q,output:w});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||I.parens>0){push({type:"plus",value:q});continue}push({type:"plus",value:w});continue}if(q==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:q,output:""});continue}push({type:"text",value:q});continue}if(q!=="*"){if(q==="$"||q==="^"){q=`\\${q}`}const e=c.exec(remaining());if(e){q+=e[0];I.index+=e[0].length}push({type:"text",value:q});continue}if($&&($.type==="globstar"||$.star===true)){$.type="star";$.star=true;$.value+=q;$.output=N;I.backtrack=true;I.globstar=true;consume(q);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",q);continue}if($.type==="star"){if(r.noglobstar===true){consume(q);continue}const s=$.prev;const a=s.prev;const o=s.type==="slash"||s.type==="bos";const u=a&&(a.type==="star"||a.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:q,output:""});continue}const c=I.braces>0&&(s.type==="comma"||s.type==="brace");const f=P.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!c&&!f){push({type:"star",value:q,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[I.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){$.type="globstar";$.value+=q;$.output=globstar(r);I.output=$.output;I.globstar=true;consume(q);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!u&&eos()){I.output=I.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=globstar(r)+(r.strictSlashes?")":"|$)");$.value+=q;I.globstar=true;I.output+=s.output+$.output;consume(q);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=`${globstar(r)}${x}|${x}${e})`;$.value+=q;I.output+=s.output+$.output;I.globstar=true;consume(q+G());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){$.type="globstar";$.value+=q;$.output=`(?:^|${x}|${globstar(r)}${x})`;I.output=$.output;I.globstar=true;consume(q+G());push({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-$.output.length);$.type="globstar";$.output=globstar(r);$.value+=q;I.output+=$.output;I.globstar=true;consume(q);continue}const s={type:"star",value:q,output:N};if(r.bash===true){s.output=".*?";if($.type==="bos"||$.type==="slash"){s.output=B+s.output}push(s);continue}if($&&($.type==="bracket"||$.type==="paren")&&r.regex===true){s.output=q;push(s);continue}if(I.index===I.start||$.type==="slash"||$.type==="dot"){if($.type==="dot"){I.output+=k;$.output+=k}else if(r.dot===true){I.output+=A;$.output+=A}else{I.output+=B;$.output+=B}if(U()!=="*"){I.output+=F;$.output+=F}}push(s)}while(I.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));I.output=a.escapeLast(I.output,"[");decrement("brackets")}while(I.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));I.output=a.escapeLast(I.output,"(");decrement("parens")}while(I.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));I.output=a.escapeLast(I.output,"{");decrement("braces")}if(r.strictSlashes!==true&&($.type==="star"||$.type==="bracket")){push({type:"maybe_slash",value:"",output:`${x}?`})}if(I.backtrack===true){I.output="";for(const e of I.tokens){I.output+=e.output!=null?e.output:e.value;if(e.suffix){I.output+=e.suffix}}}return I};parse.fastpaths=(e,t)=>{const r={...t};const u=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const c=e.length;if(c>u){throw new SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${u}`)}e=d[e]||e;const f=a.isWindows(t);const{DOT_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:v,DOTS_SLASH:D,NO_DOT:g,NO_DOTS:y,NO_DOTS_SLASH:m,STAR:_,START_ANCHOR:E}=s.globChars(f);const w=r.dot?y:g;const x=r.dot?m:g;const F=r.capture?"":"?:";const C={negated:false,prefix:""};let S=r.bash===true?".*?":_;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${F}(?:(?!${E}${e.dot?D:p}).)*?)`};const create=e=>{switch(e){case"*":return`${w}${v}${S}`;case".*":return`${p}${v}${S}`;case"*.*":return`${w}${S}${p}${v}${S}`;case"*/*":return`${w}${S}${h}${v}${x}${S}`;case"**":return w+globstar(r);case"**/*":return`(?:${w}${globstar(r)}${h})?${x}${v}${S}`;case"**/*.*":return`(?:${w}${globstar(r)}${h})?${x}${S}${p}${v}${S}`;case"**/.*":return`(?:${w}${globstar(r)}${h})?${p}${v}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+p+t[2]}}};const k=a.removePrefix(e,C);let A=create(k);if(A&&r.strictSlashes!==true){A+=`${h}?`}return A};e.exports=parse},7250:(e,t,r)=>{"use strict";const s=r(1017);const a=r(2964);const o=r(3632);const u=r(5502);const c=r(7798);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const a=t||{};const o=u.isWindows(t);const c=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const f=c.state;delete c.state;let isIgnored=()=>false;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:u,match:d,output:p}=picomatch.test(r,c,t,{glob:e,posix:o});const h={glob:e,state:f,regex:c,posix:o,input:r,output:p,match:d,isMatch:u};if(typeof a.onResult==="function"){a.onResult(h)}if(u===false){h.isMatch=false;return s?h:false}if(isIgnored(r)){if(typeof a.onIgnore==="function"){a.onIgnore(h)}h.isMatch=false;return s?h:false}if(typeof a.onMatch==="function"){a.onMatch(h)}return s?h:true};if(r){matcher.state=f}return matcher};picomatch.test=(e,t,r,{glob:s,posix:a}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const c=o.format||(a?u.toPosixSlashes:null);let f=e===s;let d=f&&c?c(e):e;if(f===false){d=c?c(e):e;f=d===s}if(f===false||o.capture===true){if(o.matchBase===true||o.basename===true){f=picomatch.matchBase(e,t,r,a)}else{f=t.exec(d)}}return{isMatch:Boolean(f),match:f,output:d}};picomatch.matchBase=(e,t,r,a=u.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>a(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const a=t||{};const o=a.contains?"":"^";const u=a.contains?"":"$";let c=`${o}(?:${e.output})${u}`;if(e&&e.negated===true){c=`^(?!${c}).*$`}const f=picomatch.toRegex(c,t);if(s===true){f.state=e}return f};picomatch.makeRe=(e,t={},r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){a.output=o.fastpaths(e,t)}if(!a.output){a=o(e,t)}return picomatch.compileRe(a,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=c;e.exports=picomatch},2964:(e,t,r)=>{"use strict";const s=r(5502);const{CHAR_ASTERISK:a,CHAR_AT:o,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:c,CHAR_DOT:f,CHAR_EXCLAMATION_MARK:d,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:h,CHAR_LEFT_PARENTHESES:v,CHAR_LEFT_SQUARE_BRACKET:D,CHAR_PLUS:g,CHAR_QUESTION_MARK:y,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:E}=r(7798);const isPathSeparator=e=>e===p||e===u;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const w=e.length-1;const x=r.parts===true||r.scanToEnd===true;const F=[];const C=[];const S=[];let k=e;let A=-1;let R=0;let O=0;let T=false;let j=false;let B=false;let L=false;let N=false;let I=false;let P=false;let W=false;let M=false;let $=false;let q=0;let U;let G;let H={value:"",depth:0,isGlob:false};const eos=()=>A>=w;const peek=()=>k.charCodeAt(A+1);const advance=()=>{U=G;return k.charCodeAt(++A)};while(A0){z=k.slice(0,R);k=k.slice(R);O-=R}if(K&&B===true&&O>0){K=k.slice(0,O);V=k.slice(O)}else if(B===true){K="";V=k}else{K=k}if(K&&K!==""&&K!=="/"&&K!==k){if(isPathSeparator(K.charCodeAt(K.length-1))){K=K.slice(0,-1)}}if(r.unescape===true){if(V)V=s.removeBackslashes(V);if(K&&P===true){K=s.removeBackslashes(K)}}const Y={prefix:z,input:e,start:R,base:K,glob:V,isBrace:T,isBracket:j,isGlob:B,isExtglob:L,isGlobstar:N,negated:W,negatedExtglob:M};if(r.tokens===true){Y.maxDepth=0;if(!isPathSeparator(G)){C.push(H)}Y.tokens=C}if(r.parts===true||r.tokens===true){let t;for(let s=0;s{"use strict";const s=r(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:u,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:f}=r(7798);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>c.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(f,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(u,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return a===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const a=e.lastIndexOf(r,s);if(a===-1)return e;if(e[a-1]==="\\")return t.escapeLast(e,r,a-1);return`${e.slice(0,a)}\\${e.slice(a)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const a=r.contains?"":"$";let o=`${s}(?:${e})${a}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},9182:e=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,s){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var a=arguments.length;var o,u;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,s)}));default:o=new Array(a-1);u=0;while(u{"use strict";var s=r(9182);var a=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var o=Object.create(r(1504));o.inherits=r(2842);var u=r(7355);var c=r(3517);o.inherits(Duplex,u);{var f=a(c.prototype);for(var d=0;d{"use strict";e.exports=PassThrough;var s=r(2162);var a=Object.create(r(1504));a.inherits=r(2842);a.inherits(PassThrough,s);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);s.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},7355:(e,t,r)=>{"use strict";var s=r(9182);e.exports=Readable;var a=r(1551);var o;Readable.ReadableState=ReadableState;var u=r(2361).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var c=r(2641);var f=r(291).Buffer;var d=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return f.from(e)}function _isUint8Array(e){return f.isBuffer(e)||e instanceof d}var p=Object.create(r(1504));p.inherits=r(2842);var h=r(3837);var v=void 0;if(h&&h.debuglog){v=h.debuglog("stream")}else{v=function(){}}var D=r(4865);var g=r(2604);var y;p.inherits(Readable,c);var m=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(a(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){o=o||r(4928);e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var u=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(s&&(u||u===0))this.highWaterMark=u;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new D;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(4426).s;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||r(4928);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}c.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=g.destroy;Readable.prototype._undestroy=g.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var s;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=f.from(e,t);t=""}s=true}}else{s=true}return readableAddChunk(this,e,t,false,s)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,s,a){var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var u;if(!a)u=chunkInvalid(o,t);if(u){e.emit("error",u)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==f.prototype){t=_uint8ArrayToBuffer(t)}if(s){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,t,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!s){o.reading=false}}return needMoreData(o)}function addChunk(e,t,r,s){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(s)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=_){e=_}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){v("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){v("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var s=t.needReadable;v("need readable",s);if(t.length===0||t.length-e0)a=fromList(e,t);else a=null;if(a===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(a!==null)this.emit("data",a);return a};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){v("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)s.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){v("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;s.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(a.pipes,e)!==-1)&&!f){v("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;d=true}r.pause()}}function onerror(t){v("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){v("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){v("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!a.flowing){v("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;v("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var s=t.pipes;var a=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var s;if(eo.length?o.length:e;if(u===o.length)a+=o;else a+=o.slice(0,e);e-=u;if(e===0){if(u===o.length){++s;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=o.slice(u)}break}++s}t.length-=s;return a}function copyFromBuffer(e,t){var r=f.allocUnsafe(e);var s=t.head;var a=1;s.data.copy(r);e-=s.data.length;while(s=s.next){var o=s.data;var u=e>o.length?o.length:e;o.copy(r,r.length-e,0,u);e-=u;if(e===0){if(u===o.length){++a;if(s.next)t.head=s.next;else t.head=t.tail=null}else{t.head=s;s.data=o.slice(u)}break}++a}t.length-=a;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;s.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,s=e.length;r{"use strict";e.exports=Transform;var s=r(4928);var a=Object.create(r(1504));a.inherits=r(2842);a.inherits(Transform,s);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var s=r.writecb;if(!s){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);s(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length{"use strict";var s=r(9182);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:s.nextTick;var o;Writable.WritableState=WritableState;var u=Object.create(r(1504));u.inherits=r(2842);var c={deprecate:r(6124)};var f=r(2641);var d=r(291).Buffer;var p=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return d.from(e)}function _isUint8Array(e){return d.isBuffer(e)||e instanceof p}var h=r(2604);u.inherits(Writable,f);function nop(){}function WritableState(e,t){o=o||r(4928);e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var u=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(s&&(u||u===0))this.highWaterMark=u;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var f=e.decodeStrings===false;this.decodeStrings=!f;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var v;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){v=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(v.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{v=function(e){return e instanceof this}}function Writable(e){o=o||r(4928);if(!v.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}f.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);s.nextTick(t,r)}function validChunk(e,t,r,a){var o=true;var u=false;if(r===null){u=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){u=new TypeError("Invalid non-string/buffer chunk")}if(u){e.emit("error",u);s.nextTick(a,u);o=false}return o}Writable.prototype.write=function(e,t,r){var s=this._writableState;var a=false;var o=!s.objectMode&&_isUint8Array(e);if(o&&!d.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(o)t="buffer";else if(!t)t=s.defaultEncoding;if(typeof r!=="function")r=nop;if(s.ended)writeAfterEnd(this,r);else if(o||validChunk(this,s,e,r)){s.pendingcb++;a=writeOrBuffer(this,s,o,e,t,r)}return a};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=d.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,s,a,o){if(!r){var u=decodeChunk(t,s,a);if(s!==u){r=true;a="buffer";s=u}}var c=t.objectMode?1:s.length;t.length+=c;var f=t.length{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var s=r(291).Buffer;var a=r(3837);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return s.alloc(0);if(this.length===1)return this.head.data;var t=s.allocUnsafe(e>>>0);var r=this.head;var a=0;while(r){copyBuffer(r.data,t,a);a+=r.data.length;r=r.next}return t};return BufferList}();if(a&&a.inspect&&a.inspect.custom){e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e}}},2604:(e,t,r)=>{"use strict";var s=r(9182);function destroy(e,t){var r=this;var a=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(a||o){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){s.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){s.nextTick(emitErrorNT,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},2641:(e,t,r)=>{e.exports=r(2781)},8511:(e,t,r)=>{var s=r(2781);if(process.env.READABLE_STREAM==="disable"&&s){e.exports=s;t=e.exports=s.Readable;t.Readable=s.Readable;t.Writable=s.Writable;t.Duplex=s.Duplex;t.Transform=s.Transform;t.PassThrough=s.PassThrough;t.Stream=s}else{t=e.exports=r(7355);t.Stream=s||t;t.Readable=t;t.Writable=r(3517);t.Duplex=r(4928);t.Transform=r(2162);t.PassThrough=r(9924)}},2382:(e,t,r)=>{"use strict";const s=r(1017);const a=r(8188);const o=r(7147);const resolveFrom=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=o.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=s.resolve(e)}else if(r){return}else{throw t}}const u=s.join(e,"noop.js");const resolveFileName=()=>a._resolveFilename(t,{id:u,filename:u,paths:a._nodeModulePaths(e)});if(r){try{return resolveFileName()}catch(e){return}}return resolveFileName()};e.exports=(e,t)=>resolveFrom(e,t);e.exports.silent=(e,t)=>resolveFrom(e,t,true)},4700:(e,t,r)=>{const s=r(9491);const a=r(1017);const o=r(7147);let u=undefined;try{u=r(3535)}catch(e){}const c={nosort:true,silent:true};let f=0;const d=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||o[t];t=t+"Sync";e[t]=e[t]||o[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&u===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s.equal(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.equal(typeof t,"object","rimraf: options should be object");defaults(t);let a=0;let o=null;let c=0;const next=e=>{o=o||e;if(--c===0)r(o)};const afterGlob=(e,s)=>{if(e)return r(e);c=s.length;if(c===0)return r();s.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&arimraf_(e,t,CB)),a*100)}if(r.code==="EMFILE"&&frimraf_(e,t,CB)),f++)}if(r.code==="ENOENT")r=null}f=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!u.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,s)=>{if(!r)return afterGlob(null,[e]);u(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.lstat(e,((s,a)=>{if(s&&s.code==="ENOENT")return r(null);if(s&&s.code==="EPERM"&&d)fixWinEPERM(e,t,s,r);if(a&&a.isDirectory())return rmdir(e,t,s,r);t.unlink(e,(s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return d?fixWinEPERM(e,t,s,r):rmdir(e,t,s,r);if(s.code==="EISDIR")return rmdir(e,t,s,r)}return r(s)}))}))};const fixWinEPERM=(e,t,r,a)=>{s(e);s(t);s(typeof a==="function");t.chmod(e,438,(s=>{if(s)a(s.code==="ENOENT"?null:r);else t.stat(e,((s,o)=>{if(s)a(s.code==="ENOENT"?null:r);else if(o.isDirectory())rmdir(e,t,r,a);else t.unlink(e,a)}))}))};const fixWinEPERMSync=(e,t,r)=>{s(e);s(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let a;try{a=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(a.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,a)=>{s(e);s(t);s(typeof a==="function");t.rmdir(e,(s=>{if(s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM"))rmkids(e,t,a);else if(s&&s.code==="ENOTDIR")a(r);else a(s)}))};const rmkids=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.readdir(e,((s,o)=>{if(s)return r(s);let u=o.length;if(u===0)return t.rmdir(e,r);let c;o.forEach((s=>{rimraf(a.join(e,s),t,(s=>{if(c)return;if(s)return r(c=s);if(--u===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!u.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(s){r=u.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e{s(e);s(t);try{t.rmdirSync(e)}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR")throw r;if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(a.join(e,r),t)));const r=d?100:1;let o=0;do{let s=true;try{const a=t.rmdirSync(e,t);s=false;return a}finally{if(++o{var s=r(4300);var a=s.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=s}else{copyProps(s,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return a(e,t,r)}copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var s=a(e);if(t!==undefined){if(typeof r==="string"){s.fill(t,r)}else{s.fill(t)}}else{s.fill(0)}return s};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s.SlowBuffer(e)}},2656:e=>{e.exports=function(e){[process.stdout,process.stderr].forEach((function(t){if(t._handle&&t.isTTY&&typeof t._handle.setBlocking==="function"){t._handle.setBlocking(e)}}))}},7234:(e,t,r)=>{var s=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(s)){e.exports=function(){return function(){}}}else{var a=r(9491);var o=r(6462);var u=/^win/i.test(s.platform);var c=r(2361);if(typeof c!=="function"){c=c.EventEmitter}var f;if(s.__signal_exit_emitter__){f=s.__signal_exit_emitter__}else{f=s.__signal_exit_emitter__=new c;f.count=0;f.emitted={}}if(!f.infinite){f.setMaxListeners(Infinity);f.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}a.equal(typeof e,"function","a callback must be provided for exit handler");if(v===false){D()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){f.removeListener(r,e);if(f.listeners("exit").length===0&&f.listeners("afterexit").length===0){d()}};f.on(r,e);return remove};var d=function unload(){if(!v||!processOk(global.process)){return}v=false;o.forEach((function(e){try{s.removeListener(e,h[e])}catch(e){}}));s.emit=m;s.reallyExit=g;f.count-=1};e.exports.unload=d;var p=function emit(e,t,r){if(f.emitted[e]){return}f.emitted[e]=true;f.emit(e,t,r)};var h={};o.forEach((function(e){h[e]=function listener(){if(!processOk(global.process)){return}var t=s.listeners(e);if(t.length===f.count){d();p("exit",null,e);p("afterexit",null,e);if(u&&e==="SIGHUP"){e="SIGINT"}s.kill(s.pid,e)}}}));e.exports.signals=function(){return o};var v=false;var D=function load(){if(v||!processOk(global.process)){return}v=true;f.count+=1;o=o.filter((function(e){try{s.on(e,h[e]);return true}catch(e){return false}}));s.emit=_;s.reallyExit=y};e.exports.load=D;var g=s.reallyExit;var y=function processReallyExit(e){if(!processOk(global.process)){return}s.exitCode=e||0;p("exit",s.exitCode,null);p("afterexit",s.exitCode,null);g.call(s,s.exitCode)};var m=s.emit;var _=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){s.exitCode=t}var r=m.apply(this,arguments);p("exit",s.exitCode,null);p("afterexit",s.exitCode,null);return r}else{return m.apply(this,arguments)}}}},6462:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},8321:(e,t,r)=>{"use strict";var s=r(7518);var a=r(8589);var o=r(3279);e.exports=function(e){if(typeof e!=="string"||e.length===0){return 0}var t=0;e=s(e);for(var r=0;r=127&&u<=159){continue}if(u>=65536){r++}if(o(u)){t+=2}else{t++}}return t}},5663:(e,t,r)=>{"use strict";const s=r(7518);const a=r(8502);const o=r(3876);const stringWidth=e=>{if(typeof e!=="string"||e.length===0){return 0}e=s(e);if(e.length===0){return 0}e=e.replace(o()," ");let t=0;for(let r=0;r=127&&s<=159){continue}if(s>=768&&s<=879){continue}if(s>65535){r++}t+=a(s)?2:1}return t};e.exports=stringWidth;e.exports["default"]=stringWidth},4426:(e,t,r)=>{"use strict";var s=r(291).Buffer;var a=s.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(s.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=s.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var s=t.length-1;if(s=0){if(a>0)e.lastNeed=a-1;return a}if(--s=0){if(a>0)e.lastNeed=a-2;return a}if(--s=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var s=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,s);return e.toString("utf8",t,s)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},6124:(e,t,r)=>{e.exports=r(3837).deprecate},1365:(e,t,r)=>{"use strict";var s=r(5663);t.center=alignCenter;t.left=alignLeft;t.right=alignRight;function createPadding(e){var t="";var r=" ";var s=e;do{if(s%2){t+=r}s=Math.floor(s/2);r+=r}while(s);return t}function alignLeft(e,t){var r=e.trimRight();if(r.length===0&&e.length>=t)return e;var a="";var o=s(r);if(o=t)return e;var a="";var o=s(r);if(o=t)return e;var a="";var o="";var u=s(r);if(u{module.exports=eval("require")("aws-sdk")},3930:module=>{module.exports=eval("require")("mock-aws-s3")},4997:module=>{module.exports=eval("require")("nock")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},8188:e=>{"use strict";e.exports=require("module")},1988:e=>{"use strict";e.exports=require("next/dist/compiled/acorn")},5749:e=>{"use strict";e.exports=require("next/dist/compiled/async-sema")},3535:e=>{"use strict";e.exports=require("next/dist/compiled/glob")},2540:e=>{"use strict";e.exports=require("next/dist/compiled/micromatch")},7849:e=>{"use strict";e.exports=require("next/dist/compiled/semver")},7518:e=>{"use strict";e.exports=require("next/dist/compiled/strip-ansi")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},8102:e=>{"use strict";e.exports=require("repl")},2781:e=>{"use strict";e.exports=require("stream")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(1017);var a=r(3846);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var o=_interopDefaultLegacy(a);const u=function addExtension(e,t=".js"){let r=`${e}`;if(!s.extname(e))r+=t;return r};class WalkerBase{constructor(){WalkerBase.prototype.__init.call(this);WalkerBase.prototype.__init2.call(this);WalkerBase.prototype.__init3.call(this);WalkerBase.prototype.__init4.call(this)}__init(){this.should_skip=false}__init2(){this.should_remove=false}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=true,remove:()=>this.should_remove=true,replace:e=>this.replacement=e}}replace(e,t,r,s){if(e){if(r!==null){e[t][r]=s}else{e[t]=s}}}remove(e,t,r){if(e){if(r!==null){e[t].splice(r,1)}else{delete e[t]}}}}class SyncWalkerClass extends WalkerBase{constructor(e){super();this.enter=e.enter;this.leave=e.leave}visit(e,t,r,s,a,o){if(e){if(r){const s=this.should_skip;const u=this.should_remove;const c=this.replacement;this.should_skip=false;this.should_remove=false;this.replacement=null;r.call(this.context,e,t,a,o);if(this.replacement){e=this.replacement;this.replace(t,a,o,e)}if(this.should_remove){this.remove(t,a,o)}const f=this.should_skip;const d=this.should_remove;this.should_skip=s;this.should_remove=u;this.replacement=c;if(f)return e;if(d)return null}for(const t in e){const a=e[t];if(typeof a!=="object"){continue}else if(Array.isArray(a)){for(let o=0;o{f(e).forEach((e=>{this.declarations[e]=true}))}))}}addDeclaration(e,t,r){if(!t&&this.isBlockScope){this.parent.addDeclaration(e,t,r)}else if(e.id){f(e.id).forEach((e=>{this.declarations[e]=true}))}}contains(e){return this.declarations[e]||(this.parent?this.parent.contains(e):false)}}const p=function attachScopes(e,t="scope"){let r=new Scope;walk(e,{enter(e,s){const a=e;if(/(Function|Class)Declaration/.test(a.type)){r.addDeclaration(a,false,false)}if(a.type==="VariableDeclaration"){const{kind:e}=a;const t=d[e];a.declarations.forEach((e=>{r.addDeclaration(e,t,true)}))}let o;if(/Function/.test(a.type)){const e=a;o=new Scope({parent:r,block:false,params:e.params});if(e.type==="FunctionExpression"&&e.id){o.addDeclaration(e,false,false)}}if(/For(In|Of)?Statement/.test(a.type)){o=new Scope({parent:r,block:true})}if(a.type==="BlockStatement"&&!/Function/.test(s.type)){o=new Scope({parent:r,block:true})}if(a.type==="CatchClause"){o=new Scope({parent:r,params:a.param?[a.param]:[],block:true})}if(o){Object.defineProperty(a,t,{value:o,configurable:true});r=o}},leave(e){const s=e;if(s[t])r=r.parent}});return r};function isArray(e){return Array.isArray(e)}function ensureArray(e){if(isArray(e))return e;if(e==null)return[];return[e]}const h=function normalizePath(e){return e.split(s.win32.sep).join(s.posix.sep)};function getMatcherString(e,t){if(t===false||s.isAbsolute(e)||e.startsWith("*")){return h(e)}const r=h(s.resolve(t||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return s.posix.join(r,h(e))}const v=function createFilter(e,t,r){const s=r&&r.resolve;const getMatcher=e=>e instanceof RegExp?e:{test:t=>{const r=getMatcherString(e,s);const a=o["default"](r,{dot:true});const u=a(t);return u}};const a=ensureArray(e).map(getMatcher);const u=ensureArray(t).map(getMatcher);return function result(e){if(typeof e!=="string")return false;if(/\0/.test(e))return false;const t=h(e);for(let e=0;et.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(t[0])||y.has(t)){t=`_${t}`}return t||"_"};function stringify(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function serializeArray(e,t,r){let s="[";const a=t?`\n${r}${t}`:"";for(let o=0;o0?",":""}${a}${serialize(u,t,r+t)}`}return`${s}${t?`\n${r}`:""}]`}function serializeObject(e,t,r){let s="{";const a=t?`\n${r}${t}`:"";const o=Object.entries(e);for(let e=0;e0?",":""}${a}${f}:${t?" ":""}${serialize(c,t,r+t)}`}return`${s}${t?`\n${r}`:""}}`}function serialize(e,t,r){if(typeof e==="object"&&e!==null){if(Array.isArray(e))return serializeArray(e,t,r);if(e instanceof Date)return`new Date(${e.getTime()})`;if(e instanceof RegExp)return e.toString();return serializeObject(e,t,r)}if(typeof e==="number"){if(e===Infinity)return"Infinity";if(e===-Infinity)return"-Infinity";if(e===0)return 1/e===Infinity?"0":"-0";if(e!==e)return"NaN"}if(typeof e==="symbol"){const t=Symbol.keyFor(e);if(t!==undefined)return`Symbol.for(${stringify(t)})`}if(typeof e==="bigint")return`${e}n`;return stringify(e)}const _=function dataToEsm(e,t={}){const r=t.compact?"":"indent"in t?t.indent:"\t";const s=t.compact?"":" ";const a=t.compact?"":"\n";const o=t.preferConst?"const":"var";if(t.namedExports===false||typeof e!=="object"||Array.isArray(e)||e instanceof Date||e instanceof RegExp||e===null){const a=serialize(e,t.compact?null:r,"");const o=s||(/^[{[\-\/]/.test(a)?"":" ");return`export default${o}${a};`}let u="";const c=[];for(const[f,d]of Object.entries(e)){if(f===m(f)){if(t.objectShorthand)c.push(f);else c.push(`${f}:${s}${f}`);u+=`export ${o} ${f}${s}=${s}${serialize(d,t.compact?null:r,"")};${a}`}else{c.push(`${stringify(f)}:${s}${serialize(d,t.compact?null:r,"")}`)}}return`${u}export default${s}{${a}${r}${c.join(`,${a}${r}`)}${a}};${a}`};var E={addExtension:u,attachScopes:p,createFilter:v,dataToEsm:_,extractAssignedNames:f,makeLegalIdentifier:m,normalizePath:h};t.addExtension=u;t.attachScopes=p;t.createFilter=v;t.dataToEsm=_;t["default"]=E;t.extractAssignedNames=f;t.makeLegalIdentifier=m;t.normalizePath=h},3982:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";class WalkerBase{constructor(){this.should_skip=false;this.should_remove=false;this.replacement=null;this.context={skip:()=>this.should_skip=true,remove:()=>this.should_remove=true,replace:e=>this.replacement=e}}replace(e,t,r,s){if(e){if(r!==null){e[t][r]=s}else{e[t]=s}}}remove(e,t,r){if(e){if(r!==null){e[t].splice(r,1)}else{delete e[t]}}}}class SyncWalker extends WalkerBase{constructor(e,t){super();this.enter=e;this.leave=t}visit(e,t,r,s){if(e){if(this.enter){const a=this.should_skip;const o=this.should_remove;const u=this.replacement;this.should_skip=false;this.should_remove=false;this.replacement=null;this.enter.call(this.context,e,t,r,s);if(this.replacement){e=this.replacement;this.replace(t,r,s,e)}if(this.should_remove){this.remove(t,r,s)}const c=this.should_skip;const f=this.should_remove;this.should_skip=a;this.should_remove=o;this.replacement=u;if(c)return e;if(f)return null}for(const t in e){const r=e[t];if(typeof r!=="object"){continue}else if(Array.isArray(r)){for(let s=0;s{"use strict";e.exports=JSON.parse('{"0.1.14":{"node_abi":null,"v8":"1.3"},"0.1.15":{"node_abi":null,"v8":"1.3"},"0.1.16":{"node_abi":null,"v8":"1.3"},"0.1.17":{"node_abi":null,"v8":"1.3"},"0.1.18":{"node_abi":null,"v8":"1.3"},"0.1.19":{"node_abi":null,"v8":"2.0"},"0.1.20":{"node_abi":null,"v8":"2.0"},"0.1.21":{"node_abi":null,"v8":"2.0"},"0.1.22":{"node_abi":null,"v8":"2.0"},"0.1.23":{"node_abi":null,"v8":"2.0"},"0.1.24":{"node_abi":null,"v8":"2.0"},"0.1.25":{"node_abi":null,"v8":"2.0"},"0.1.26":{"node_abi":null,"v8":"2.0"},"0.1.27":{"node_abi":null,"v8":"2.1"},"0.1.28":{"node_abi":null,"v8":"2.1"},"0.1.29":{"node_abi":null,"v8":"2.1"},"0.1.30":{"node_abi":null,"v8":"2.1"},"0.1.31":{"node_abi":null,"v8":"2.1"},"0.1.32":{"node_abi":null,"v8":"2.1"},"0.1.33":{"node_abi":null,"v8":"2.1"},"0.1.90":{"node_abi":null,"v8":"2.2"},"0.1.91":{"node_abi":null,"v8":"2.2"},"0.1.92":{"node_abi":null,"v8":"2.2"},"0.1.93":{"node_abi":null,"v8":"2.2"},"0.1.94":{"node_abi":null,"v8":"2.2"},"0.1.95":{"node_abi":null,"v8":"2.2"},"0.1.96":{"node_abi":null,"v8":"2.2"},"0.1.97":{"node_abi":null,"v8":"2.2"},"0.1.98":{"node_abi":null,"v8":"2.2"},"0.1.99":{"node_abi":null,"v8":"2.2"},"0.1.100":{"node_abi":null,"v8":"2.2"},"0.1.101":{"node_abi":null,"v8":"2.3"},"0.1.102":{"node_abi":null,"v8":"2.3"},"0.1.103":{"node_abi":null,"v8":"2.3"},"0.1.104":{"node_abi":null,"v8":"2.3"},"0.2.0":{"node_abi":1,"v8":"2.3"},"0.2.1":{"node_abi":1,"v8":"2.3"},"0.2.2":{"node_abi":1,"v8":"2.3"},"0.2.3":{"node_abi":1,"v8":"2.3"},"0.2.4":{"node_abi":1,"v8":"2.3"},"0.2.5":{"node_abi":1,"v8":"2.3"},"0.2.6":{"node_abi":1,"v8":"2.3"},"0.3.0":{"node_abi":1,"v8":"2.5"},"0.3.1":{"node_abi":1,"v8":"2.5"},"0.3.2":{"node_abi":1,"v8":"3.0"},"0.3.3":{"node_abi":1,"v8":"3.0"},"0.3.4":{"node_abi":1,"v8":"3.0"},"0.3.5":{"node_abi":1,"v8":"3.0"},"0.3.6":{"node_abi":1,"v8":"3.0"},"0.3.7":{"node_abi":1,"v8":"3.0"},"0.3.8":{"node_abi":1,"v8":"3.1"},"0.4.0":{"node_abi":1,"v8":"3.1"},"0.4.1":{"node_abi":1,"v8":"3.1"},"0.4.2":{"node_abi":1,"v8":"3.1"},"0.4.3":{"node_abi":1,"v8":"3.1"},"0.4.4":{"node_abi":1,"v8":"3.1"},"0.4.5":{"node_abi":1,"v8":"3.1"},"0.4.6":{"node_abi":1,"v8":"3.1"},"0.4.7":{"node_abi":1,"v8":"3.1"},"0.4.8":{"node_abi":1,"v8":"3.1"},"0.4.9":{"node_abi":1,"v8":"3.1"},"0.4.10":{"node_abi":1,"v8":"3.1"},"0.4.11":{"node_abi":1,"v8":"3.1"},"0.4.12":{"node_abi":1,"v8":"3.1"},"0.5.0":{"node_abi":1,"v8":"3.1"},"0.5.1":{"node_abi":1,"v8":"3.4"},"0.5.2":{"node_abi":1,"v8":"3.4"},"0.5.3":{"node_abi":1,"v8":"3.4"},"0.5.4":{"node_abi":1,"v8":"3.5"},"0.5.5":{"node_abi":1,"v8":"3.5"},"0.5.6":{"node_abi":1,"v8":"3.6"},"0.5.7":{"node_abi":1,"v8":"3.6"},"0.5.8":{"node_abi":1,"v8":"3.6"},"0.5.9":{"node_abi":1,"v8":"3.6"},"0.5.10":{"node_abi":1,"v8":"3.7"},"0.6.0":{"node_abi":1,"v8":"3.6"},"0.6.1":{"node_abi":1,"v8":"3.6"},"0.6.2":{"node_abi":1,"v8":"3.6"},"0.6.3":{"node_abi":1,"v8":"3.6"},"0.6.4":{"node_abi":1,"v8":"3.6"},"0.6.5":{"node_abi":1,"v8":"3.6"},"0.6.6":{"node_abi":1,"v8":"3.6"},"0.6.7":{"node_abi":1,"v8":"3.6"},"0.6.8":{"node_abi":1,"v8":"3.6"},"0.6.9":{"node_abi":1,"v8":"3.6"},"0.6.10":{"node_abi":1,"v8":"3.6"},"0.6.11":{"node_abi":1,"v8":"3.6"},"0.6.12":{"node_abi":1,"v8":"3.6"},"0.6.13":{"node_abi":1,"v8":"3.6"},"0.6.14":{"node_abi":1,"v8":"3.6"},"0.6.15":{"node_abi":1,"v8":"3.6"},"0.6.16":{"node_abi":1,"v8":"3.6"},"0.6.17":{"node_abi":1,"v8":"3.6"},"0.6.18":{"node_abi":1,"v8":"3.6"},"0.6.19":{"node_abi":1,"v8":"3.6"},"0.6.20":{"node_abi":1,"v8":"3.6"},"0.6.21":{"node_abi":1,"v8":"3.6"},"0.7.0":{"node_abi":1,"v8":"3.8"},"0.7.1":{"node_abi":1,"v8":"3.8"},"0.7.2":{"node_abi":1,"v8":"3.8"},"0.7.3":{"node_abi":1,"v8":"3.9"},"0.7.4":{"node_abi":1,"v8":"3.9"},"0.7.5":{"node_abi":1,"v8":"3.9"},"0.7.6":{"node_abi":1,"v8":"3.9"},"0.7.7":{"node_abi":1,"v8":"3.9"},"0.7.8":{"node_abi":1,"v8":"3.9"},"0.7.9":{"node_abi":1,"v8":"3.11"},"0.7.10":{"node_abi":1,"v8":"3.9"},"0.7.11":{"node_abi":1,"v8":"3.11"},"0.7.12":{"node_abi":1,"v8":"3.11"},"0.8.0":{"node_abi":1,"v8":"3.11"},"0.8.1":{"node_abi":1,"v8":"3.11"},"0.8.2":{"node_abi":1,"v8":"3.11"},"0.8.3":{"node_abi":1,"v8":"3.11"},"0.8.4":{"node_abi":1,"v8":"3.11"},"0.8.5":{"node_abi":1,"v8":"3.11"},"0.8.6":{"node_abi":1,"v8":"3.11"},"0.8.7":{"node_abi":1,"v8":"3.11"},"0.8.8":{"node_abi":1,"v8":"3.11"},"0.8.9":{"node_abi":1,"v8":"3.11"},"0.8.10":{"node_abi":1,"v8":"3.11"},"0.8.11":{"node_abi":1,"v8":"3.11"},"0.8.12":{"node_abi":1,"v8":"3.11"},"0.8.13":{"node_abi":1,"v8":"3.11"},"0.8.14":{"node_abi":1,"v8":"3.11"},"0.8.15":{"node_abi":1,"v8":"3.11"},"0.8.16":{"node_abi":1,"v8":"3.11"},"0.8.17":{"node_abi":1,"v8":"3.11"},"0.8.18":{"node_abi":1,"v8":"3.11"},"0.8.19":{"node_abi":1,"v8":"3.11"},"0.8.20":{"node_abi":1,"v8":"3.11"},"0.8.21":{"node_abi":1,"v8":"3.11"},"0.8.22":{"node_abi":1,"v8":"3.11"},"0.8.23":{"node_abi":1,"v8":"3.11"},"0.8.24":{"node_abi":1,"v8":"3.11"},"0.8.25":{"node_abi":1,"v8":"3.11"},"0.8.26":{"node_abi":1,"v8":"3.11"},"0.8.27":{"node_abi":1,"v8":"3.11"},"0.8.28":{"node_abi":1,"v8":"3.11"},"0.9.0":{"node_abi":1,"v8":"3.11"},"0.9.1":{"node_abi":10,"v8":"3.11"},"0.9.2":{"node_abi":10,"v8":"3.11"},"0.9.3":{"node_abi":10,"v8":"3.13"},"0.9.4":{"node_abi":10,"v8":"3.13"},"0.9.5":{"node_abi":10,"v8":"3.13"},"0.9.6":{"node_abi":10,"v8":"3.15"},"0.9.7":{"node_abi":10,"v8":"3.15"},"0.9.8":{"node_abi":10,"v8":"3.15"},"0.9.9":{"node_abi":11,"v8":"3.15"},"0.9.10":{"node_abi":11,"v8":"3.15"},"0.9.11":{"node_abi":11,"v8":"3.14"},"0.9.12":{"node_abi":11,"v8":"3.14"},"0.10.0":{"node_abi":11,"v8":"3.14"},"0.10.1":{"node_abi":11,"v8":"3.14"},"0.10.2":{"node_abi":11,"v8":"3.14"},"0.10.3":{"node_abi":11,"v8":"3.14"},"0.10.4":{"node_abi":11,"v8":"3.14"},"0.10.5":{"node_abi":11,"v8":"3.14"},"0.10.6":{"node_abi":11,"v8":"3.14"},"0.10.7":{"node_abi":11,"v8":"3.14"},"0.10.8":{"node_abi":11,"v8":"3.14"},"0.10.9":{"node_abi":11,"v8":"3.14"},"0.10.10":{"node_abi":11,"v8":"3.14"},"0.10.11":{"node_abi":11,"v8":"3.14"},"0.10.12":{"node_abi":11,"v8":"3.14"},"0.10.13":{"node_abi":11,"v8":"3.14"},"0.10.14":{"node_abi":11,"v8":"3.14"},"0.10.15":{"node_abi":11,"v8":"3.14"},"0.10.16":{"node_abi":11,"v8":"3.14"},"0.10.17":{"node_abi":11,"v8":"3.14"},"0.10.18":{"node_abi":11,"v8":"3.14"},"0.10.19":{"node_abi":11,"v8":"3.14"},"0.10.20":{"node_abi":11,"v8":"3.14"},"0.10.21":{"node_abi":11,"v8":"3.14"},"0.10.22":{"node_abi":11,"v8":"3.14"},"0.10.23":{"node_abi":11,"v8":"3.14"},"0.10.24":{"node_abi":11,"v8":"3.14"},"0.10.25":{"node_abi":11,"v8":"3.14"},"0.10.26":{"node_abi":11,"v8":"3.14"},"0.10.27":{"node_abi":11,"v8":"3.14"},"0.10.28":{"node_abi":11,"v8":"3.14"},"0.10.29":{"node_abi":11,"v8":"3.14"},"0.10.30":{"node_abi":11,"v8":"3.14"},"0.10.31":{"node_abi":11,"v8":"3.14"},"0.10.32":{"node_abi":11,"v8":"3.14"},"0.10.33":{"node_abi":11,"v8":"3.14"},"0.10.34":{"node_abi":11,"v8":"3.14"},"0.10.35":{"node_abi":11,"v8":"3.14"},"0.10.36":{"node_abi":11,"v8":"3.14"},"0.10.37":{"node_abi":11,"v8":"3.14"},"0.10.38":{"node_abi":11,"v8":"3.14"},"0.10.39":{"node_abi":11,"v8":"3.14"},"0.10.40":{"node_abi":11,"v8":"3.14"},"0.10.41":{"node_abi":11,"v8":"3.14"},"0.10.42":{"node_abi":11,"v8":"3.14"},"0.10.43":{"node_abi":11,"v8":"3.14"},"0.10.44":{"node_abi":11,"v8":"3.14"},"0.10.45":{"node_abi":11,"v8":"3.14"},"0.10.46":{"node_abi":11,"v8":"3.14"},"0.10.47":{"node_abi":11,"v8":"3.14"},"0.10.48":{"node_abi":11,"v8":"3.14"},"0.11.0":{"node_abi":12,"v8":"3.17"},"0.11.1":{"node_abi":12,"v8":"3.18"},"0.11.2":{"node_abi":12,"v8":"3.19"},"0.11.3":{"node_abi":12,"v8":"3.19"},"0.11.4":{"node_abi":12,"v8":"3.20"},"0.11.5":{"node_abi":12,"v8":"3.20"},"0.11.6":{"node_abi":12,"v8":"3.20"},"0.11.7":{"node_abi":12,"v8":"3.20"},"0.11.8":{"node_abi":13,"v8":"3.21"},"0.11.9":{"node_abi":13,"v8":"3.22"},"0.11.10":{"node_abi":13,"v8":"3.22"},"0.11.11":{"node_abi":14,"v8":"3.22"},"0.11.12":{"node_abi":14,"v8":"3.22"},"0.11.13":{"node_abi":14,"v8":"3.25"},"0.11.14":{"node_abi":14,"v8":"3.26"},"0.11.15":{"node_abi":14,"v8":"3.28"},"0.11.16":{"node_abi":14,"v8":"3.28"},"0.12.0":{"node_abi":14,"v8":"3.28"},"0.12.1":{"node_abi":14,"v8":"3.28"},"0.12.2":{"node_abi":14,"v8":"3.28"},"0.12.3":{"node_abi":14,"v8":"3.28"},"0.12.4":{"node_abi":14,"v8":"3.28"},"0.12.5":{"node_abi":14,"v8":"3.28"},"0.12.6":{"node_abi":14,"v8":"3.28"},"0.12.7":{"node_abi":14,"v8":"3.28"},"0.12.8":{"node_abi":14,"v8":"3.28"},"0.12.9":{"node_abi":14,"v8":"3.28"},"0.12.10":{"node_abi":14,"v8":"3.28"},"0.12.11":{"node_abi":14,"v8":"3.28"},"0.12.12":{"node_abi":14,"v8":"3.28"},"0.12.13":{"node_abi":14,"v8":"3.28"},"0.12.14":{"node_abi":14,"v8":"3.28"},"0.12.15":{"node_abi":14,"v8":"3.28"},"0.12.16":{"node_abi":14,"v8":"3.28"},"0.12.17":{"node_abi":14,"v8":"3.28"},"0.12.18":{"node_abi":14,"v8":"3.28"},"1.0.0":{"node_abi":42,"v8":"3.31"},"1.0.1":{"node_abi":42,"v8":"3.31"},"1.0.2":{"node_abi":42,"v8":"3.31"},"1.0.3":{"node_abi":42,"v8":"4.1"},"1.0.4":{"node_abi":42,"v8":"4.1"},"1.1.0":{"node_abi":43,"v8":"4.1"},"1.2.0":{"node_abi":43,"v8":"4.1"},"1.3.0":{"node_abi":43,"v8":"4.1"},"1.4.1":{"node_abi":43,"v8":"4.1"},"1.4.2":{"node_abi":43,"v8":"4.1"},"1.4.3":{"node_abi":43,"v8":"4.1"},"1.5.0":{"node_abi":43,"v8":"4.1"},"1.5.1":{"node_abi":43,"v8":"4.1"},"1.6.0":{"node_abi":43,"v8":"4.1"},"1.6.1":{"node_abi":43,"v8":"4.1"},"1.6.2":{"node_abi":43,"v8":"4.1"},"1.6.3":{"node_abi":43,"v8":"4.1"},"1.6.4":{"node_abi":43,"v8":"4.1"},"1.7.1":{"node_abi":43,"v8":"4.1"},"1.8.1":{"node_abi":43,"v8":"4.1"},"1.8.2":{"node_abi":43,"v8":"4.1"},"1.8.3":{"node_abi":43,"v8":"4.1"},"1.8.4":{"node_abi":43,"v8":"4.1"},"2.0.0":{"node_abi":44,"v8":"4.2"},"2.0.1":{"node_abi":44,"v8":"4.2"},"2.0.2":{"node_abi":44,"v8":"4.2"},"2.1.0":{"node_abi":44,"v8":"4.2"},"2.2.0":{"node_abi":44,"v8":"4.2"},"2.2.1":{"node_abi":44,"v8":"4.2"},"2.3.0":{"node_abi":44,"v8":"4.2"},"2.3.1":{"node_abi":44,"v8":"4.2"},"2.3.2":{"node_abi":44,"v8":"4.2"},"2.3.3":{"node_abi":44,"v8":"4.2"},"2.3.4":{"node_abi":44,"v8":"4.2"},"2.4.0":{"node_abi":44,"v8":"4.2"},"2.5.0":{"node_abi":44,"v8":"4.2"},"3.0.0":{"node_abi":45,"v8":"4.4"},"3.1.0":{"node_abi":45,"v8":"4.4"},"3.2.0":{"node_abi":45,"v8":"4.4"},"3.3.0":{"node_abi":45,"v8":"4.4"},"3.3.1":{"node_abi":45,"v8":"4.4"},"4.0.0":{"node_abi":46,"v8":"4.5"},"4.1.0":{"node_abi":46,"v8":"4.5"},"4.1.1":{"node_abi":46,"v8":"4.5"},"4.1.2":{"node_abi":46,"v8":"4.5"},"4.2.0":{"node_abi":46,"v8":"4.5"},"4.2.1":{"node_abi":46,"v8":"4.5"},"4.2.2":{"node_abi":46,"v8":"4.5"},"4.2.3":{"node_abi":46,"v8":"4.5"},"4.2.4":{"node_abi":46,"v8":"4.5"},"4.2.5":{"node_abi":46,"v8":"4.5"},"4.2.6":{"node_abi":46,"v8":"4.5"},"4.3.0":{"node_abi":46,"v8":"4.5"},"4.3.1":{"node_abi":46,"v8":"4.5"},"4.3.2":{"node_abi":46,"v8":"4.5"},"4.4.0":{"node_abi":46,"v8":"4.5"},"4.4.1":{"node_abi":46,"v8":"4.5"},"4.4.2":{"node_abi":46,"v8":"4.5"},"4.4.3":{"node_abi":46,"v8":"4.5"},"4.4.4":{"node_abi":46,"v8":"4.5"},"4.4.5":{"node_abi":46,"v8":"4.5"},"4.4.6":{"node_abi":46,"v8":"4.5"},"4.4.7":{"node_abi":46,"v8":"4.5"},"4.5.0":{"node_abi":46,"v8":"4.5"},"4.6.0":{"node_abi":46,"v8":"4.5"},"4.6.1":{"node_abi":46,"v8":"4.5"},"4.6.2":{"node_abi":46,"v8":"4.5"},"4.7.0":{"node_abi":46,"v8":"4.5"},"4.7.1":{"node_abi":46,"v8":"4.5"},"4.7.2":{"node_abi":46,"v8":"4.5"},"4.7.3":{"node_abi":46,"v8":"4.5"},"4.8.0":{"node_abi":46,"v8":"4.5"},"4.8.1":{"node_abi":46,"v8":"4.5"},"4.8.2":{"node_abi":46,"v8":"4.5"},"4.8.3":{"node_abi":46,"v8":"4.5"},"4.8.4":{"node_abi":46,"v8":"4.5"},"4.8.5":{"node_abi":46,"v8":"4.5"},"4.8.6":{"node_abi":46,"v8":"4.5"},"4.8.7":{"node_abi":46,"v8":"4.5"},"4.9.0":{"node_abi":46,"v8":"4.5"},"4.9.1":{"node_abi":46,"v8":"4.5"},"5.0.0":{"node_abi":47,"v8":"4.6"},"5.1.0":{"node_abi":47,"v8":"4.6"},"5.1.1":{"node_abi":47,"v8":"4.6"},"5.2.0":{"node_abi":47,"v8":"4.6"},"5.3.0":{"node_abi":47,"v8":"4.6"},"5.4.0":{"node_abi":47,"v8":"4.6"},"5.4.1":{"node_abi":47,"v8":"4.6"},"5.5.0":{"node_abi":47,"v8":"4.6"},"5.6.0":{"node_abi":47,"v8":"4.6"},"5.7.0":{"node_abi":47,"v8":"4.6"},"5.7.1":{"node_abi":47,"v8":"4.6"},"5.8.0":{"node_abi":47,"v8":"4.6"},"5.9.0":{"node_abi":47,"v8":"4.6"},"5.9.1":{"node_abi":47,"v8":"4.6"},"5.10.0":{"node_abi":47,"v8":"4.6"},"5.10.1":{"node_abi":47,"v8":"4.6"},"5.11.0":{"node_abi":47,"v8":"4.6"},"5.11.1":{"node_abi":47,"v8":"4.6"},"5.12.0":{"node_abi":47,"v8":"4.6"},"6.0.0":{"node_abi":48,"v8":"5.0"},"6.1.0":{"node_abi":48,"v8":"5.0"},"6.2.0":{"node_abi":48,"v8":"5.0"},"6.2.1":{"node_abi":48,"v8":"5.0"},"6.2.2":{"node_abi":48,"v8":"5.0"},"6.3.0":{"node_abi":48,"v8":"5.0"},"6.3.1":{"node_abi":48,"v8":"5.0"},"6.4.0":{"node_abi":48,"v8":"5.0"},"6.5.0":{"node_abi":48,"v8":"5.1"},"6.6.0":{"node_abi":48,"v8":"5.1"},"6.7.0":{"node_abi":48,"v8":"5.1"},"6.8.0":{"node_abi":48,"v8":"5.1"},"6.8.1":{"node_abi":48,"v8":"5.1"},"6.9.0":{"node_abi":48,"v8":"5.1"},"6.9.1":{"node_abi":48,"v8":"5.1"},"6.9.2":{"node_abi":48,"v8":"5.1"},"6.9.3":{"node_abi":48,"v8":"5.1"},"6.9.4":{"node_abi":48,"v8":"5.1"},"6.9.5":{"node_abi":48,"v8":"5.1"},"6.10.0":{"node_abi":48,"v8":"5.1"},"6.10.1":{"node_abi":48,"v8":"5.1"},"6.10.2":{"node_abi":48,"v8":"5.1"},"6.10.3":{"node_abi":48,"v8":"5.1"},"6.11.0":{"node_abi":48,"v8":"5.1"},"6.11.1":{"node_abi":48,"v8":"5.1"},"6.11.2":{"node_abi":48,"v8":"5.1"},"6.11.3":{"node_abi":48,"v8":"5.1"},"6.11.4":{"node_abi":48,"v8":"5.1"},"6.11.5":{"node_abi":48,"v8":"5.1"},"6.12.0":{"node_abi":48,"v8":"5.1"},"6.12.1":{"node_abi":48,"v8":"5.1"},"6.12.2":{"node_abi":48,"v8":"5.1"},"6.12.3":{"node_abi":48,"v8":"5.1"},"6.13.0":{"node_abi":48,"v8":"5.1"},"6.13.1":{"node_abi":48,"v8":"5.1"},"6.14.0":{"node_abi":48,"v8":"5.1"},"6.14.1":{"node_abi":48,"v8":"5.1"},"6.14.2":{"node_abi":48,"v8":"5.1"},"6.14.3":{"node_abi":48,"v8":"5.1"},"6.14.4":{"node_abi":48,"v8":"5.1"},"6.15.0":{"node_abi":48,"v8":"5.1"},"6.15.1":{"node_abi":48,"v8":"5.1"},"6.16.0":{"node_abi":48,"v8":"5.1"},"6.17.0":{"node_abi":48,"v8":"5.1"},"6.17.1":{"node_abi":48,"v8":"5.1"},"7.0.0":{"node_abi":51,"v8":"5.4"},"7.1.0":{"node_abi":51,"v8":"5.4"},"7.2.0":{"node_abi":51,"v8":"5.4"},"7.2.1":{"node_abi":51,"v8":"5.4"},"7.3.0":{"node_abi":51,"v8":"5.4"},"7.4.0":{"node_abi":51,"v8":"5.4"},"7.5.0":{"node_abi":51,"v8":"5.4"},"7.6.0":{"node_abi":51,"v8":"5.5"},"7.7.0":{"node_abi":51,"v8":"5.5"},"7.7.1":{"node_abi":51,"v8":"5.5"},"7.7.2":{"node_abi":51,"v8":"5.5"},"7.7.3":{"node_abi":51,"v8":"5.5"},"7.7.4":{"node_abi":51,"v8":"5.5"},"7.8.0":{"node_abi":51,"v8":"5.5"},"7.9.0":{"node_abi":51,"v8":"5.5"},"7.10.0":{"node_abi":51,"v8":"5.5"},"7.10.1":{"node_abi":51,"v8":"5.5"},"8.0.0":{"node_abi":57,"v8":"5.8"},"8.1.0":{"node_abi":57,"v8":"5.8"},"8.1.1":{"node_abi":57,"v8":"5.8"},"8.1.2":{"node_abi":57,"v8":"5.8"},"8.1.3":{"node_abi":57,"v8":"5.8"},"8.1.4":{"node_abi":57,"v8":"5.8"},"8.2.0":{"node_abi":57,"v8":"5.8"},"8.2.1":{"node_abi":57,"v8":"5.8"},"8.3.0":{"node_abi":57,"v8":"6.0"},"8.4.0":{"node_abi":57,"v8":"6.0"},"8.5.0":{"node_abi":57,"v8":"6.0"},"8.6.0":{"node_abi":57,"v8":"6.0"},"8.7.0":{"node_abi":57,"v8":"6.1"},"8.8.0":{"node_abi":57,"v8":"6.1"},"8.8.1":{"node_abi":57,"v8":"6.1"},"8.9.0":{"node_abi":57,"v8":"6.1"},"8.9.1":{"node_abi":57,"v8":"6.1"},"8.9.2":{"node_abi":57,"v8":"6.1"},"8.9.3":{"node_abi":57,"v8":"6.1"},"8.9.4":{"node_abi":57,"v8":"6.1"},"8.10.0":{"node_abi":57,"v8":"6.2"},"8.11.0":{"node_abi":57,"v8":"6.2"},"8.11.1":{"node_abi":57,"v8":"6.2"},"8.11.2":{"node_abi":57,"v8":"6.2"},"8.11.3":{"node_abi":57,"v8":"6.2"},"8.11.4":{"node_abi":57,"v8":"6.2"},"8.12.0":{"node_abi":57,"v8":"6.2"},"8.13.0":{"node_abi":57,"v8":"6.2"},"8.14.0":{"node_abi":57,"v8":"6.2"},"8.14.1":{"node_abi":57,"v8":"6.2"},"8.15.0":{"node_abi":57,"v8":"6.2"},"8.15.1":{"node_abi":57,"v8":"6.2"},"8.16.0":{"node_abi":57,"v8":"6.2"},"8.16.1":{"node_abi":57,"v8":"6.2"},"8.16.2":{"node_abi":57,"v8":"6.2"},"8.17.0":{"node_abi":57,"v8":"6.2"},"9.0.0":{"node_abi":59,"v8":"6.2"},"9.1.0":{"node_abi":59,"v8":"6.2"},"9.2.0":{"node_abi":59,"v8":"6.2"},"9.2.1":{"node_abi":59,"v8":"6.2"},"9.3.0":{"node_abi":59,"v8":"6.2"},"9.4.0":{"node_abi":59,"v8":"6.2"},"9.5.0":{"node_abi":59,"v8":"6.2"},"9.6.0":{"node_abi":59,"v8":"6.2"},"9.6.1":{"node_abi":59,"v8":"6.2"},"9.7.0":{"node_abi":59,"v8":"6.2"},"9.7.1":{"node_abi":59,"v8":"6.2"},"9.8.0":{"node_abi":59,"v8":"6.2"},"9.9.0":{"node_abi":59,"v8":"6.2"},"9.10.0":{"node_abi":59,"v8":"6.2"},"9.10.1":{"node_abi":59,"v8":"6.2"},"9.11.0":{"node_abi":59,"v8":"6.2"},"9.11.1":{"node_abi":59,"v8":"6.2"},"9.11.2":{"node_abi":59,"v8":"6.2"},"10.0.0":{"node_abi":64,"v8":"6.6"},"10.1.0":{"node_abi":64,"v8":"6.6"},"10.2.0":{"node_abi":64,"v8":"6.6"},"10.2.1":{"node_abi":64,"v8":"6.6"},"10.3.0":{"node_abi":64,"v8":"6.6"},"10.4.0":{"node_abi":64,"v8":"6.7"},"10.4.1":{"node_abi":64,"v8":"6.7"},"10.5.0":{"node_abi":64,"v8":"6.7"},"10.6.0":{"node_abi":64,"v8":"6.7"},"10.7.0":{"node_abi":64,"v8":"6.7"},"10.8.0":{"node_abi":64,"v8":"6.7"},"10.9.0":{"node_abi":64,"v8":"6.8"},"10.10.0":{"node_abi":64,"v8":"6.8"},"10.11.0":{"node_abi":64,"v8":"6.8"},"10.12.0":{"node_abi":64,"v8":"6.8"},"10.13.0":{"node_abi":64,"v8":"6.8"},"10.14.0":{"node_abi":64,"v8":"6.8"},"10.14.1":{"node_abi":64,"v8":"6.8"},"10.14.2":{"node_abi":64,"v8":"6.8"},"10.15.0":{"node_abi":64,"v8":"6.8"},"10.15.1":{"node_abi":64,"v8":"6.8"},"10.15.2":{"node_abi":64,"v8":"6.8"},"10.15.3":{"node_abi":64,"v8":"6.8"},"10.16.0":{"node_abi":64,"v8":"6.8"},"10.16.1":{"node_abi":64,"v8":"6.8"},"10.16.2":{"node_abi":64,"v8":"6.8"},"10.16.3":{"node_abi":64,"v8":"6.8"},"10.17.0":{"node_abi":64,"v8":"6.8"},"10.18.0":{"node_abi":64,"v8":"6.8"},"10.18.1":{"node_abi":64,"v8":"6.8"},"10.19.0":{"node_abi":64,"v8":"6.8"},"10.20.0":{"node_abi":64,"v8":"6.8"},"10.20.1":{"node_abi":64,"v8":"6.8"},"10.21.0":{"node_abi":64,"v8":"6.8"},"10.22.0":{"node_abi":64,"v8":"6.8"},"10.22.1":{"node_abi":64,"v8":"6.8"},"10.23.0":{"node_abi":64,"v8":"6.8"},"10.23.1":{"node_abi":64,"v8":"6.8"},"10.23.2":{"node_abi":64,"v8":"6.8"},"10.23.3":{"node_abi":64,"v8":"6.8"},"10.24.0":{"node_abi":64,"v8":"6.8"},"10.24.1":{"node_abi":64,"v8":"6.8"},"11.0.0":{"node_abi":67,"v8":"7.0"},"11.1.0":{"node_abi":67,"v8":"7.0"},"11.2.0":{"node_abi":67,"v8":"7.0"},"11.3.0":{"node_abi":67,"v8":"7.0"},"11.4.0":{"node_abi":67,"v8":"7.0"},"11.5.0":{"node_abi":67,"v8":"7.0"},"11.6.0":{"node_abi":67,"v8":"7.0"},"11.7.0":{"node_abi":67,"v8":"7.0"},"11.8.0":{"node_abi":67,"v8":"7.0"},"11.9.0":{"node_abi":67,"v8":"7.0"},"11.10.0":{"node_abi":67,"v8":"7.0"},"11.10.1":{"node_abi":67,"v8":"7.0"},"11.11.0":{"node_abi":67,"v8":"7.0"},"11.12.0":{"node_abi":67,"v8":"7.0"},"11.13.0":{"node_abi":67,"v8":"7.0"},"11.14.0":{"node_abi":67,"v8":"7.0"},"11.15.0":{"node_abi":67,"v8":"7.0"},"12.0.0":{"node_abi":72,"v8":"7.4"},"12.1.0":{"node_abi":72,"v8":"7.4"},"12.2.0":{"node_abi":72,"v8":"7.4"},"12.3.0":{"node_abi":72,"v8":"7.4"},"12.3.1":{"node_abi":72,"v8":"7.4"},"12.4.0":{"node_abi":72,"v8":"7.4"},"12.5.0":{"node_abi":72,"v8":"7.5"},"12.6.0":{"node_abi":72,"v8":"7.5"},"12.7.0":{"node_abi":72,"v8":"7.5"},"12.8.0":{"node_abi":72,"v8":"7.5"},"12.8.1":{"node_abi":72,"v8":"7.5"},"12.9.0":{"node_abi":72,"v8":"7.6"},"12.9.1":{"node_abi":72,"v8":"7.6"},"12.10.0":{"node_abi":72,"v8":"7.6"},"12.11.0":{"node_abi":72,"v8":"7.7"},"12.11.1":{"node_abi":72,"v8":"7.7"},"12.12.0":{"node_abi":72,"v8":"7.7"},"12.13.0":{"node_abi":72,"v8":"7.7"},"12.13.1":{"node_abi":72,"v8":"7.7"},"12.14.0":{"node_abi":72,"v8":"7.7"},"12.14.1":{"node_abi":72,"v8":"7.7"},"12.15.0":{"node_abi":72,"v8":"7.7"},"12.16.0":{"node_abi":72,"v8":"7.8"},"12.16.1":{"node_abi":72,"v8":"7.8"},"12.16.2":{"node_abi":72,"v8":"7.8"},"12.16.3":{"node_abi":72,"v8":"7.8"},"12.17.0":{"node_abi":72,"v8":"7.8"},"12.18.0":{"node_abi":72,"v8":"7.8"},"12.18.1":{"node_abi":72,"v8":"7.8"},"12.18.2":{"node_abi":72,"v8":"7.8"},"12.18.3":{"node_abi":72,"v8":"7.8"},"12.18.4":{"node_abi":72,"v8":"7.8"},"12.19.0":{"node_abi":72,"v8":"7.8"},"12.19.1":{"node_abi":72,"v8":"7.8"},"12.20.0":{"node_abi":72,"v8":"7.8"},"12.20.1":{"node_abi":72,"v8":"7.8"},"12.20.2":{"node_abi":72,"v8":"7.8"},"12.21.0":{"node_abi":72,"v8":"7.8"},"12.22.0":{"node_abi":72,"v8":"7.8"},"12.22.1":{"node_abi":72,"v8":"7.8"},"13.0.0":{"node_abi":79,"v8":"7.8"},"13.0.1":{"node_abi":79,"v8":"7.8"},"13.1.0":{"node_abi":79,"v8":"7.8"},"13.2.0":{"node_abi":79,"v8":"7.9"},"13.3.0":{"node_abi":79,"v8":"7.9"},"13.4.0":{"node_abi":79,"v8":"7.9"},"13.5.0":{"node_abi":79,"v8":"7.9"},"13.6.0":{"node_abi":79,"v8":"7.9"},"13.7.0":{"node_abi":79,"v8":"7.9"},"13.8.0":{"node_abi":79,"v8":"7.9"},"13.9.0":{"node_abi":79,"v8":"7.9"},"13.10.0":{"node_abi":79,"v8":"7.9"},"13.10.1":{"node_abi":79,"v8":"7.9"},"13.11.0":{"node_abi":79,"v8":"7.9"},"13.12.0":{"node_abi":79,"v8":"7.9"},"13.13.0":{"node_abi":79,"v8":"7.9"},"13.14.0":{"node_abi":79,"v8":"7.9"},"14.0.0":{"node_abi":83,"v8":"8.1"},"14.1.0":{"node_abi":83,"v8":"8.1"},"14.2.0":{"node_abi":83,"v8":"8.1"},"14.3.0":{"node_abi":83,"v8":"8.1"},"14.4.0":{"node_abi":83,"v8":"8.1"},"14.5.0":{"node_abi":83,"v8":"8.3"},"14.6.0":{"node_abi":83,"v8":"8.4"},"14.7.0":{"node_abi":83,"v8":"8.4"},"14.8.0":{"node_abi":83,"v8":"8.4"},"14.9.0":{"node_abi":83,"v8":"8.4"},"14.10.0":{"node_abi":83,"v8":"8.4"},"14.10.1":{"node_abi":83,"v8":"8.4"},"14.11.0":{"node_abi":83,"v8":"8.4"},"14.12.0":{"node_abi":83,"v8":"8.4"},"14.13.0":{"node_abi":83,"v8":"8.4"},"14.13.1":{"node_abi":83,"v8":"8.4"},"14.14.0":{"node_abi":83,"v8":"8.4"},"14.15.0":{"node_abi":83,"v8":"8.4"},"14.15.1":{"node_abi":83,"v8":"8.4"},"14.15.2":{"node_abi":83,"v8":"8.4"},"14.15.3":{"node_abi":83,"v8":"8.4"},"14.15.4":{"node_abi":83,"v8":"8.4"},"14.15.5":{"node_abi":83,"v8":"8.4"},"14.16.0":{"node_abi":83,"v8":"8.4"},"14.16.1":{"node_abi":83,"v8":"8.4"},"15.0.0":{"node_abi":88,"v8":"8.6"},"15.0.1":{"node_abi":88,"v8":"8.6"},"15.1.0":{"node_abi":88,"v8":"8.6"},"15.2.0":{"node_abi":88,"v8":"8.6"},"15.2.1":{"node_abi":88,"v8":"8.6"},"15.3.0":{"node_abi":88,"v8":"8.6"},"15.4.0":{"node_abi":88,"v8":"8.6"},"15.5.0":{"node_abi":88,"v8":"8.6"},"15.5.1":{"node_abi":88,"v8":"8.6"},"15.6.0":{"node_abi":88,"v8":"8.6"},"15.7.0":{"node_abi":88,"v8":"8.6"},"15.8.0":{"node_abi":88,"v8":"8.6"},"15.9.0":{"node_abi":88,"v8":"8.6"},"15.10.0":{"node_abi":88,"v8":"8.6"},"15.11.0":{"node_abi":88,"v8":"8.6"},"15.12.0":{"node_abi":88,"v8":"8.6"},"15.13.0":{"node_abi":88,"v8":"8.6"},"15.14.0":{"node_abi":88,"v8":"8.6"},"16.0.0":{"node_abi":93,"v8":"9.0"}}')},7399:e=>{"use strict";e.exports=JSON.parse('{"name":"@mapbox/node-pre-gyp","description":"Node.js native addon binary install tool","version":"1.0.5","keywords":["native","addon","module","c","c++","bindings","binary"],"license":"BSD-3-Clause","author":"Dane Springmeyer ","repository":{"type":"git","url":"git://github.com/mapbox/node-pre-gyp.git"},"bin":"./bin/node-pre-gyp","main":"./lib/node-pre-gyp.js","dependencies":{"detect-libc":"^1.0.3","https-proxy-agent":"^5.0.0","make-dir":"^3.1.0","node-fetch":"^2.6.1","nopt":"^5.0.0","npmlog":"^4.1.2","rimraf":"^3.0.2","semver":"^7.3.4","tar":"^6.1.0"},"devDependencies":{"@mapbox/cloudfriend":"^4.6.0","@mapbox/eslint-config-mapbox":"^3.0.0","action-walk":"^2.2.0","aws-sdk":"^2.840.0","codecov":"^3.8.1","eslint":"^7.18.0","eslint-plugin-node":"^11.1.0","mock-aws-s3":"^4.0.1","nock":"^12.0.3","node-addon-api":"^3.1.0","nyc":"^15.1.0","tape":"^5.2.2","tar-fs":"^2.1.1"},"nyc":{"all":true,"skip-full":false,"exclude":["test/**"]},"scripts":{"coverage":"nyc --all --include index.js --include lib/ npm test","upload-coverage":"nyc report --reporter json && codecov --clear --flags=unit --file=./coverage/coverage-final.json","lint":"eslint bin/node-pre-gyp lib/*js lib/util/*js test/*js scripts/*js","fix":"npm run lint -- --fix","update-crosswalk":"node scripts/abi_crosswalk.js","test":"tape test/*test.js"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var s=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete __webpack_module_cache__[e]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(6223);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/next/vendored/node_modules/react-dom-experimental-vendored/LICENSE b/packages/next/src/compiled/react-dom-experimental/LICENSE similarity index 100% rename from packages/next/vendored/node_modules/react-dom-experimental-vendored/LICENSE rename to packages/next/src/compiled/react-dom-experimental/LICENSE diff --git a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js similarity index 99% rename from packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.development.js rename to packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index 14fff639db184..ed668daaf196f 100644 --- a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -14,10 +14,10 @@ if (process.env.NODE_ENV !== "production") { (function() { 'use strict'; -var React = require('react'); +var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-546fe4681-20230713'; +var ReactVersion = '18.3.0-experimental-9377e1010-20230712'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; diff --git a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js similarity index 99% rename from packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.production.min.js rename to packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index d1b10a737af0a..c53b1d3f50308 100644 --- a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -7,7 +7,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -'use strict';var aa=require("react"),ba=require("react-dom");function k(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cja||(a.current=ia[ja],ia[ja]=null,ja--)}function E(a,b){ja++;ia[ja]=a.current;a.current=b} var la=Symbol.for("react.element"),ma=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),qa=Symbol.for("react.provider"),ra=Symbol.for("react.context"),sa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),ya=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode"); var za=Symbol.for("react.offscreen"),Aa=Symbol.for("react.legacy_hidden"),Ba=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Ca=Symbol.for("react.default_value"),Da=Symbol.for("react.memo_cache_sentinel"),Ea=Symbol.iterator;function Fa(a){if(null===a||"object"!==typeof a)return null;a=Ea&&a[Ea]||a["@@iterator"];return"function"===typeof a?a:null} @@ -421,9 +421,9 @@ d);f?f.parentNode.insertBefore(e,f.nextSibling):(a=9===a.nodeType?a.head:a,a.ins Eo.prototype.unmount=Do.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Ek(function(){hl(null,a,null,null)});b[Ab]=null}};function Eo(a){this._internalRoot=a}Eo.prototype.unstable_scheduleHydration=function(a){if(a){var b=F;a={blockedOn:null,target:a,priority:b};for(var c=0;cc&&(c=h)),h ")+"\n\nNo matching component was found for:\n ")+a.join(" > ")}return null}; exports.hydrate=function(a,b,c){if(!Go(b))throw Error(t(200));return Jo(null,a,b,!0,c)};exports.hydrateRoot=function(a,b,c){if(!Fo(a))throw Error(t(405));var d=!1,e="",f=Co;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(d=!0),void 0!==c.identifierPrefix&&(e=c.identifierPrefix),void 0!==c.onRecoverableError&&(f=c.onRecoverableError));b=gl(b,null,a,1,null!=c?c:null,d,!1,e,f);a[Ab]=b.current;Bo.current=no;si(a);return new Eo(b)}; exports.observeVisibleRects=function(a,b,c,d){a=fk(a,b);var e=go(a,c,d).disconnect;return{disconnect:function(){e()}}};exports.preconnect=function(a,b){var c=Ko.current;c&&c.preconnect(a,b)};exports.prefetchDNS=function(a){var b=Ko.current;b&&b.prefetchDNS(a)};exports.preinit=function(a,b){var c=Ko.current;c&&c.preinit(a,b)};exports.preload=function(a,b){var c=Ko.current;c&&c.preload(a,b)};exports.render=function(a,b,c){if(!Go(b))throw Error(t(200));return Jo(null,a,b,!1,c)}; -exports.unmountComponentAtNode=function(a){if(!Go(a))throw Error(t(40));return a._reactRootContainer?(Ek(function(){Jo(null,null,a,!1,function(){a._reactRootContainer=null;a[Ab]=null})}),!0):!1};exports.unstable_batchedUpdates=Dk;exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!Go(c))throw Error(t(200));if(null==a||void 0===a._reactInternals)throw Error(t(38));return Jo(a,b,c,!1,d)};exports.unstable_runWithPriority=ub;exports.version="18.3.0-experimental-546fe4681-20230713"; +exports.unmountComponentAtNode=function(a){if(!Go(a))throw Error(t(40));return a._reactRootContainer?(Ek(function(){Jo(null,null,a,!1,function(){a._reactRootContainer=null;a[Ab]=null})}),!0):!1};exports.unstable_batchedUpdates=Dk;exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!Go(c))throw Error(t(200));if(null==a||void 0===a._reactInternals)throw Error(t(38));return Jo(a,b,c,!1,d)};exports.unstable_runWithPriority=ub;exports.version="18.3.0-experimental-9377e1010-20230712"; diff --git a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js similarity index 99% rename from packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.development.js rename to packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index 6cb7508f2d0cb..b05a9f9b8da9f 100644 --- a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -23,8 +23,8 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var React = require('react'); -var Scheduler = require('scheduler'); + var React = require("next/dist/compiled/react-experimental"); +var Scheduler = require("next/dist/compiled/scheduler-experimental"); var Internals = { usingClientEntryPoint: false, @@ -27761,7 +27761,7 @@ identifierPrefix, onRecoverableError, transitionCallbacks) { return root; } -var ReactVersion = '18.3.0-experimental-546fe4681-20230713'; +var ReactVersion = '18.3.0-experimental-9377e1010-20230712'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.min.js similarity index 99% rename from packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.production.min.js rename to packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.min.js index 8b75c82ae36b4..6eb6193683c75 100644 --- a/packages/next/vendored/node_modules/react-dom-experimental-vendored/cjs/react-dom.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.min.js @@ -10,7 +10,7 @@ /* Modernizr 3.0.0pre (Custom Build) | MIT */ -'use strict';var aa=require("react"),ba=require("scheduler"),ca={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function t(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cja||(a.current=ia[ja],ia[ja]=null,ja--)}function E(a,b){ja++;ia[ja]=a.current;a.current=b} var la=Symbol.for("react.element"),ma=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),qa=Symbol.for("react.provider"),ra=Symbol.for("react.context"),sa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),ya=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode"); var za=Symbol.for("react.offscreen"),Aa=Symbol.for("react.legacy_hidden"),Ba=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Ca=Symbol.for("react.default_value"),Da=Symbol.for("react.memo_cache_sentinel"),Ea=Symbol.iterator;function Fa(a){if(null===a||"object"!==typeof a)return null;a=Ea&&a[Ea]||a["@@iterator"];return"function"===typeof a?a:null} @@ -409,11 +409,11 @@ d);f?f.parentNode.insertBefore(e,f.nextSibling):(a=9===a.nodeType?a.head:a,a.ins no.prototype.unmount=mo.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;qk(function(){Uk(null,a,null,null)});b[Ab]=null}};function no(a){this._internalRoot=a}no.prototype.unstable_scheduleHydration=function(a){if(a){var b=F;a={blockedOn:null,target:a,priority:b};for(var c=0;cja||(a.current=ia[ja],ia[ja]=null,ja--)}function E(a,b){ja++;ia[ja]=a.current;a.current=b} var la=Symbol.for("react.element"),ma=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),qa=Symbol.for("react.provider"),ra=Symbol.for("react.context"),sa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),ya=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode"); var za=Symbol.for("react.offscreen"),Aa=Symbol.for("react.legacy_hidden"),Ba=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Ca=Symbol.for("react.default_value"),Da=Symbol.for("react.memo_cache_sentinel"),Ea=Symbol.iterator;function Fa(a){if(null===a||"object"!==typeof a)return null;a=Ea&&a[Ea]||a["@@iterator"];return"function"===typeof a?a:null} @@ -439,15 +439,15 @@ d);f?f.parentNode.insertBefore(e,f.nextSibling):(a=9===a.nodeType?a.head:a,a.ins $o.prototype.unmount=Zo.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;cl(function(){Gl(null,a,null,null)});b[Pb]=null}};function $o(a){this._internalRoot=a}$o.prototype.unstable_scheduleHydration=function(a){if(a){var b=H;a={blockedOn:null,target:a,priority:b};for(var c=0;cha||(a.current=fa[ha],fa[ha]=null,ha--)}function E(a,b){ha++;fa[ha]=a.current;a.current=b} var ja=Symbol.for("react.element"),ka=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),na=Symbol.for("react.profiler"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.context"),qa=Symbol.for("react.server_context"),ra=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),va=Symbol.for("react.lazy"),wa=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode"); var xa=Symbol.for("react.offscreen"),ya=Symbol.for("react.legacy_hidden"),za=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Aa=Symbol.for("react.default_value"),Ba=Symbol.iterator;function Ca(a){if(null===a||"object"!==typeof a)return null;a=Ba&&a[Ba]||a["@@iterator"];return"function"===typeof a?a:null}var Da=ia(null),Ea=ia(null),Fa=ia(null); @@ -393,11 +393,11 @@ d);f?f.parentNode.insertBefore(e,f.nextSibling):(a=9===a.nodeType?a.head:a,a.ins Rn.prototype.unmount=Qn.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Xj(function(){Bk(null,a,null,null)});b[vb]=null}};function Rn(a){this._internalRoot=a}Rn.prototype.unstable_scheduleHydration=function(a){if(a){var b=H;a={blockedOn:null,target:a,priority:b};for(var c=0;cha||(a.current=fa[ha],fa[ha]=null,ha--)}function E(a,b){ha++;fa[ha]=a.current;a.current=b} var ja=Symbol.for("react.element"),ka=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),na=Symbol.for("react.profiler"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.context"),qa=Symbol.for("react.server_context"),ra=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),va=Symbol.for("react.lazy"),wa=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode"); var xa=Symbol.for("react.offscreen"),ya=Symbol.for("react.legacy_hidden"),za=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Aa=Symbol.for("react.default_value"),Ba=Symbol.iterator;function Ca(a){if(null===a||"object"!==typeof a)return null;a=Ba&&a[Ba]||a["@@iterator"];return"function"===typeof a?a:null}var Da=ia(null),Ea=ia(null),Fa=ia(null); @@ -422,15 +422,15 @@ d);f?f.parentNode.insertBefore(e,f.nextSibling):(a=9===a.nodeType?a.head:a,a.ins Eo.prototype.unmount=Do.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Kk(function(){nl(null,a,null,null)});b[Kb]=null}};function Eo(a){this._internalRoot=a}Eo.prototype.unstable_scheduleHydration=function(a){if(a){var b=G;a={blockedOn:null,target:a,priority:b};for(var c=0;c 0) { + return Promise.all(promises); + } else { + return null; + } +} // Actually require the module or suspend if it's not yet ready. +// Increase priority if necessary. + +function requireModule(moduleData) { + var moduleExports; + + if (moduleData.async) { + // We assume that preloadModule has been called before, which + // should have added something to the module cache. + var promise = asyncModuleCache.get(moduleData.id); + + if (promise.status === 'fulfilled') { + moduleExports = promise.value; + } else { + throw promise.reason; + } + } else { + moduleExports = globalThis.__next_require__(moduleData.id); + } + + if (moduleData.name === '*') { + // This is a placeholder value that represents that the caller imported this + // as a CommonJS module as is. + return moduleExports; + } + + if (moduleData.name === '') { + // This is a placeholder value that represents that the caller accessed the + // default property of this if it was an ESM interop module. + return moduleExports.__esModule ? moduleExports.default : moduleExports; + } + + return moduleExports[moduleData.name]; +} + +// ATTENTION +// When adding new symbols to this file, +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' +// The Symbol used to tag the ReactElement-like types. +var REACT_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_LAZY_TYPE = Symbol.for('react.lazy'); +var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value'); + +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + +var ContextRegistry = ReactSharedInternals.ContextRegistry; +function getOrCreateServerContext(globalName) { + if (!ContextRegistry[globalName]) { + ContextRegistry[globalName] = React.createServerContext(globalName, // $FlowFixMe function signature doesn't reflect the symbol value + REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED); + } + + return ContextRegistry[globalName]; +} + +var PENDING = 'pending'; +var BLOCKED = 'blocked'; +var RESOLVED_MODEL = 'resolved_model'; +var RESOLVED_MODULE = 'resolved_module'; +var INITIALIZED = 'fulfilled'; +var ERRORED = 'rejected'; // $FlowFixMe[missing-this-annot] + +function Chunk(status, value, reason, response) { + this.status = status; + this.value = value; + this.reason = reason; + this._response = response; +} // We subclass Promise.prototype so that we get other methods like .catch + + +Chunk.prototype = Object.create(Promise.prototype); // TODO: This doesn't return a new Promise chain unlike the real .then + +Chunk.prototype.then = function (resolve, reject) { + var chunk = this; // If we have resolved content, we try to initialize it first which + // might put us back into one of the other states. + + switch (chunk.status) { + case RESOLVED_MODEL: + initializeModelChunk(chunk); + break; + + case RESOLVED_MODULE: + initializeModuleChunk(chunk); + break; + } // The status might have changed after initialization. + + + switch (chunk.status) { + case INITIALIZED: + resolve(chunk.value); + break; + + case PENDING: + case BLOCKED: + if (resolve) { + if (chunk.value === null) { + chunk.value = []; + } + + chunk.value.push(resolve); + } + + if (reject) { + if (chunk.reason === null) { + chunk.reason = []; + } + + chunk.reason.push(reject); + } + + break; + + default: + reject(chunk.reason); + break; + } +}; + +function readChunk(chunk) { + // If we have resolved content, we try to initialize it first which + // might put us back into one of the other states. + switch (chunk.status) { + case RESOLVED_MODEL: + initializeModelChunk(chunk); + break; + + case RESOLVED_MODULE: + initializeModuleChunk(chunk); + break; + } // The status might have changed after initialization. + + + switch (chunk.status) { + case INITIALIZED: + return chunk.value; + + case PENDING: + case BLOCKED: + // eslint-disable-next-line no-throw-literal + throw chunk; + + default: + throw chunk.reason; + } +} + +function getRoot(response) { + var chunk = getChunk(response, 0); + return chunk; +} + +function createPendingChunk(response) { + // $FlowFixMe Flow doesn't support functions as constructors + return new Chunk(PENDING, null, null, response); +} + +function createBlockedChunk(response) { + // $FlowFixMe Flow doesn't support functions as constructors + return new Chunk(BLOCKED, null, null, response); +} + +function createErrorChunk(response, error) { + // $FlowFixMe Flow doesn't support functions as constructors + return new Chunk(ERRORED, null, error, response); +} + +function wakeChunk(listeners, value) { + for (var i = 0; i < listeners.length; i++) { + var listener = listeners[i]; + listener(value); + } +} + +function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) { + switch (chunk.status) { + case INITIALIZED: + wakeChunk(resolveListeners, chunk.value); + break; + + case PENDING: + case BLOCKED: + chunk.value = resolveListeners; + chunk.reason = rejectListeners; + break; + + case ERRORED: + if (rejectListeners) { + wakeChunk(rejectListeners, chunk.reason); + } + + break; + } +} + +function triggerErrorOnChunk(chunk, error) { + if (chunk.status !== PENDING && chunk.status !== BLOCKED) { + // We already resolved. We didn't expect to see this. + return; + } + + var listeners = chunk.reason; + var erroredChunk = chunk; + erroredChunk.status = ERRORED; + erroredChunk.reason = error; + + if (listeners !== null) { + wakeChunk(listeners, error); + } +} + +function createResolvedModelChunk(response, value) { + // $FlowFixMe Flow doesn't support functions as constructors + return new Chunk(RESOLVED_MODEL, value, null, response); +} + +function createResolvedModuleChunk(response, value) { + // $FlowFixMe Flow doesn't support functions as constructors + return new Chunk(RESOLVED_MODULE, value, null, response); +} + +function resolveModelChunk(chunk, value) { + if (chunk.status !== PENDING) { + // We already resolved. We didn't expect to see this. + return; + } + + var resolveListeners = chunk.value; + var rejectListeners = chunk.reason; + var resolvedChunk = chunk; + resolvedChunk.status = RESOLVED_MODEL; + resolvedChunk.value = value; + + if (resolveListeners !== null) { + // This is unfortunate that we're reading this eagerly if + // we already have listeners attached since they might no + // longer be rendered or might not be the highest pri. + initializeModelChunk(resolvedChunk); // The status might have changed after initialization. + + wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners); + } +} + +function resolveModuleChunk(chunk, value) { + if (chunk.status !== PENDING && chunk.status !== BLOCKED) { + // We already resolved. We didn't expect to see this. + return; + } + + var resolveListeners = chunk.value; + var rejectListeners = chunk.reason; + var resolvedChunk = chunk; + resolvedChunk.status = RESOLVED_MODULE; + resolvedChunk.value = value; + + if (resolveListeners !== null) { + initializeModuleChunk(resolvedChunk); + wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners); + } +} + +var initializingChunk = null; +var initializingChunkBlockedModel = null; + +function initializeModelChunk(chunk) { + var prevChunk = initializingChunk; + var prevBlocked = initializingChunkBlockedModel; + initializingChunk = chunk; + initializingChunkBlockedModel = null; + + try { + var value = parseModel(chunk._response, chunk.value); + + if (initializingChunkBlockedModel !== null && initializingChunkBlockedModel.deps > 0) { + initializingChunkBlockedModel.value = value; // We discovered new dependencies on modules that are not yet resolved. + // We have to go the BLOCKED state until they're resolved. + + var blockedChunk = chunk; + blockedChunk.status = BLOCKED; + blockedChunk.value = null; + blockedChunk.reason = null; + } else { + var initializedChunk = chunk; + initializedChunk.status = INITIALIZED; + initializedChunk.value = value; + } + } catch (error) { + var erroredChunk = chunk; + erroredChunk.status = ERRORED; + erroredChunk.reason = error; + } finally { + initializingChunk = prevChunk; + initializingChunkBlockedModel = prevBlocked; + } +} + +function initializeModuleChunk(chunk) { + try { + var value = requireModule(chunk.value); + var initializedChunk = chunk; + initializedChunk.status = INITIALIZED; + initializedChunk.value = value; + } catch (error) { + var erroredChunk = chunk; + erroredChunk.status = ERRORED; + erroredChunk.reason = error; + } +} // Report that any missing chunks in the model is now going to throw this +// error upon read. Also notify any pending promises. + + +function reportGlobalError(response, error) { + response._chunks.forEach(function (chunk) { + // If this chunk was already resolved or errored, it won't + // trigger an error but if it wasn't then we need to + // because we won't be getting any new data to resolve it. + if (chunk.status === PENDING) { + triggerErrorOnChunk(chunk, error); + } + }); +} + +function createElement(type, key, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type: type, + key: key, + ref: null, + props: props, + // Record the component responsible for creating this element. + _owner: null + }; + + { + // We don't really need to add any of these but keeping them for good measure. + // Unfortunately, _store is enumerable in jest matchers so for equality to + // work, I need to keep it or make _store non-enumerable in the other file. + element._store = {}; + Object.defineProperty(element._store, 'validated', { + configurable: false, + enumerable: false, + writable: true, + value: true // This element has already been validated on the server. + + }); + Object.defineProperty(element, '_self', { + configurable: false, + enumerable: false, + writable: false, + value: null + }); + Object.defineProperty(element, '_source', { + configurable: false, + enumerable: false, + writable: false, + value: null + }); + } + + return element; +} + +function createLazyChunkWrapper(chunk) { + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: chunk, + _init: readChunk + }; + return lazyType; +} + +function getChunk(response, id) { + var chunks = response._chunks; + var chunk = chunks.get(id); + + if (!chunk) { + chunk = createPendingChunk(response); + chunks.set(id, chunk); + } + + return chunk; +} + +function createModelResolver(chunk, parentObject, key) { + var blocked; + + if (initializingChunkBlockedModel) { + blocked = initializingChunkBlockedModel; + blocked.deps++; + } else { + blocked = initializingChunkBlockedModel = { + deps: 1, + value: null + }; + } + + return function (value) { + parentObject[key] = value; + blocked.deps--; + + if (blocked.deps === 0) { + if (chunk.status !== BLOCKED) { + return; + } + + var resolveListeners = chunk.value; + var initializedChunk = chunk; + initializedChunk.status = INITIALIZED; + initializedChunk.value = blocked.value; + + if (resolveListeners !== null) { + wakeChunk(resolveListeners, blocked.value); + } + } + }; +} + +function createModelReject(chunk) { + return function (error) { + return triggerErrorOnChunk(chunk, error); + }; +} + +function parseModelString(response, parentObject, key, value) { + if (value[0] === '$') { + if (value === '$') { + // A very common symbol. + return REACT_ELEMENT_TYPE; + } + + switch (value[1]) { + case '$': + { + // This was an escaped string value. + return value.substring(1); + } + + case 'L': + { + // Lazy node + var id = parseInt(value.substring(2), 16); + var chunk = getChunk(response, id); // We create a React.lazy wrapper around any lazy values. + // When passed into React, we'll know how to suspend on this. + + return createLazyChunkWrapper(chunk); + } + + case '@': + { + // Promise + var _id = parseInt(value.substring(2), 16); + + var _chunk = getChunk(response, _id); + + return _chunk; + } + + case 'S': + { + return Symbol.for(value.substring(2)); + } + + case 'P': + { + return getOrCreateServerContext(value.substring(2)).Provider; + } + + default: + { + // We assume that anything else is a reference ID. + var _id2 = parseInt(value.substring(1), 16); + + var _chunk2 = getChunk(response, _id2); + + switch (_chunk2.status) { + case RESOLVED_MODEL: + initializeModelChunk(_chunk2); + break; + + case RESOLVED_MODULE: + initializeModuleChunk(_chunk2); + break; + } // The status might have changed after initialization. + + + switch (_chunk2.status) { + case INITIALIZED: + return _chunk2.value; + + case PENDING: + case BLOCKED: + var parentChunk = initializingChunk; + + _chunk2.then(createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk)); + + return null; + + default: + throw _chunk2.reason; + } + } + } + } + + return value; +} +function parseModelTuple(response, value) { + var tuple = value; + + if (tuple[0] === REACT_ELEMENT_TYPE) { + // TODO: Consider having React just directly accept these arrays as elements. + // Or even change the ReactElement type to be an array. + return createElement(tuple[1], tuple[2], tuple[3]); + } + + return value; +} +function createResponse(bundlerConfig) { + var chunks = new Map(); + var response = { + _bundlerConfig: bundlerConfig, + _chunks: chunks + }; + return response; +} +function resolveModel(response, id, model) { + var chunks = response._chunks; + var chunk = chunks.get(id); + + if (!chunk) { + chunks.set(id, createResolvedModelChunk(response, model)); + } else { + resolveModelChunk(chunk, model); + } +} +function resolveModule(response, id, model) { + var chunks = response._chunks; + var chunk = chunks.get(id); + var moduleMetaData = parseModel(response, model); + var moduleReference = resolveClientReference(response._bundlerConfig, moduleMetaData); // TODO: Add an option to encode modules that are lazy loaded. + // For now we preload all modules as early as possible since it's likely + // that we'll need them. + + var promise = preloadModule(moduleReference); + + if (promise) { + var blockedChunk; + + if (!chunk) { + // Technically, we should just treat promise as the chunk in this + // case. Because it'll just behave as any other promise. + blockedChunk = createBlockedChunk(response); + chunks.set(id, blockedChunk); + } else { + // This can't actually happen because we don't have any forward + // references to modules. + blockedChunk = chunk; + blockedChunk.status = BLOCKED; + } + + promise.then(function () { + return resolveModuleChunk(blockedChunk, moduleReference); + }, function (error) { + return triggerErrorOnChunk(blockedChunk, error); + }); + } else { + if (!chunk) { + chunks.set(id, createResolvedModuleChunk(response, moduleReference)); + } else { + // This can't actually happen because we don't have any forward + // references to modules. + resolveModuleChunk(chunk, moduleReference); + } + } +} +function resolveErrorDev(response, id, digest, message, stack) { + + + var error = new Error(message || 'An error occurred in the Server Components render but no message was provided'); + error.stack = stack; + error.digest = digest; + var errorWithDigest = error; + var chunks = response._chunks; + var chunk = chunks.get(id); + + if (!chunk) { + chunks.set(id, createErrorChunk(response, errorWithDigest)); + } else { + triggerErrorOnChunk(chunk, errorWithDigest); + } +} +function close(response) { + // In case there are any remaining unresolved chunks, they won't + // be resolved now. So we need to issue an error to those. + // Ideally we should be able to early bail out if we kept a + // ref count of pending chunks. + reportGlobalError(response, new Error('Connection closed.')); +} + +function processFullRow(response, row) { + if (row === '') { + return; + } + + var colon = row.indexOf(':', 0); + var id = parseInt(row.substring(0, colon), 16); + var tag = row[colon + 1]; // When tags that are not text are added, check them here before + // parsing the row as text. + // switch (tag) { + // } + + switch (tag) { + case 'I': + { + resolveModule(response, id, row.substring(colon + 2)); + return; + } + + case 'E': + { + var errorInfo = JSON.parse(row.substring(colon + 2)); + + { + resolveErrorDev(response, id, errorInfo.digest, errorInfo.message, errorInfo.stack); + } + + return; + } + + default: + { + // We assume anything else is JSON. + resolveModel(response, id, row.substring(colon + 1)); + return; + } + } +} + +function processStringChunk(response, chunk, offset) { + var linebreak = chunk.indexOf('\n', offset); + + while (linebreak > -1) { + var fullrow = response._partialRow + chunk.substring(offset, linebreak); + processFullRow(response, fullrow); + response._partialRow = ''; + offset = linebreak + 1; + linebreak = chunk.indexOf('\n', offset); + } + + response._partialRow += chunk.substring(offset); +} +function processBinaryChunk(response, chunk) { + + var stringDecoder = response._stringDecoder; + var linebreak = chunk.indexOf(10); // newline + + while (linebreak > -1) { + var fullrow = response._partialRow + readFinalStringChunk(stringDecoder, chunk.subarray(0, linebreak)); + processFullRow(response, fullrow); + response._partialRow = ''; + chunk = chunk.subarray(linebreak + 1); + linebreak = chunk.indexOf(10); // newline + } + + response._partialRow += readPartialStringChunk(stringDecoder, chunk); +} + +function createFromJSONCallback(response) { + // $FlowFixMe[missing-this-annot] + return function (key, value) { + if (typeof value === 'string') { + // We can't use .bind here because we need the "this" value. + return parseModelString(response, this, key, value); + } + + if (typeof value === 'object' && value !== null) { + return parseModelTuple(response, value); + } + + return value; + }; +} + +function createResponse$1(bundlerConfig) { + // NOTE: CHECK THE COMPILER OUTPUT EACH TIME YOU CHANGE THIS. + // It should be inlined to one object literal but minor changes can break it. + var stringDecoder = createStringDecoder() ; + var response = createResponse(bundlerConfig); + response._partialRow = ''; + + { + response._stringDecoder = stringDecoder; + } // Don't inline this call because it causes closure to outline the call above. + + + response._fromJSON = createFromJSONCallback(response); + return response; +} + +function startReadingFromStream(response, stream) { + var reader = stream.getReader(); + + function progress(_ref) { + var done = _ref.done, + value = _ref.value; + + if (done) { + close(response); + return; + } + + var buffer = value; + processBinaryChunk(response, buffer); + return reader.read().then(progress).catch(error); + } + + function error(e) { + reportGlobalError(response, e); + } + + reader.read().then(progress).catch(error); +} + +function createFromReadableStream(stream, options) { + var response = createResponse$1(options && options.moduleMap ? options.moduleMap : null); + startReadingFromStream(response, stream); + return getRoot(response); +} + +function createFromFetch(promiseForResponse, options) { + var response = createResponse$1(options && options.moduleMap ? options.moduleMap : null); + promiseForResponse.then(function (r) { + startReadingFromStream(response, r.body); + }, function (e) { + reportGlobalError(response, e); + }); + return getRoot(response); +} + +function createFromXHR(request, options) { + var response = createResponse$1(options && options.moduleMap ? options.moduleMap : null); + var processedLength = 0; + + function progress(e) { + var chunk = request.responseText; + processStringChunk(response, chunk, processedLength); + processedLength = chunk.length; + } + + function load(e) { + progress(); + close(response); + } + + function error(e) { + reportGlobalError(response, new TypeError('Network error')); + } + + request.addEventListener('progress', progress); + request.addEventListener('load', load); + request.addEventListener('error', error); + request.addEventListener('abort', error); + request.addEventListener('timeout', error); + return getRoot(response); +} + +exports.createFromFetch = createFromFetch; +exports.createFromReadableStream = createFromReadableStream; +exports.createFromXHR = createFromXHR; + })(); +} diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.edge.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.edge.development.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.edge.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.edge.production.min.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.development.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.production.min.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.unbundled.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.unbundled.development.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js diff --git a/packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js similarity index 100% rename from packages/next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js rename to packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js new file mode 100644 index 0000000000000..3565ad7ef6e1b --- /dev/null +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.production.min.js @@ -0,0 +1,26 @@ +/** + * @license React + * react-server-dom-webpack-client.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +'use strict';var h=require("react"),l={stream:!0};function m(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}var n=new Map,p=new Map;function q(){} +function r(a){for(var b=a.chunks,c=[],d=0;d( require: any loadChunk: any } - createFromReadableStream: any }, { transformStream, diff --git a/packages/next/src/server/app-render/entry-base.ts b/packages/next/src/server/app-render/entry-base.ts index 517d0ae23ed1a..c35c8cb20279c 100644 --- a/packages/next/src/server/app-render/entry-base.ts +++ b/packages/next/src/server/app-render/entry-base.ts @@ -30,7 +30,7 @@ const { // eslint-disable-next-line import/no-extraneous-dependencies } = require('react-server-dom-webpack/server.edge') const { preloadStyle, preloadFont, preconnect } = - require('next/dist/server/app-render/preloads.serverlayer') as typeof import('../../server/app-render/preloads.serverlayer') + require('next/dist/server/app-render/rsc/preloads') as typeof import('../../server/app-render/rsc/preloads') export { AppRouter, diff --git a/packages/next/src/server/app-render/preloads.serverlayer.ts b/packages/next/src/server/app-render/rsc/preloads.ts similarity index 82% rename from packages/next/src/server/app-render/preloads.serverlayer.ts rename to packages/next/src/server/app-render/rsc/preloads.ts index 53f50436f2c3c..85ff5abbc33bd 100644 --- a/packages/next/src/server/app-render/preloads.serverlayer.ts +++ b/packages/next/src/server/app-render/rsc/preloads.ts @@ -1,3 +1,9 @@ +/* + +Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader. + +*/ + import ReactDOM from 'react-dom' const stylePreloadOptions = { as: 'style' } diff --git a/packages/next/src/server/lib/router-utils/setup-dev.ts b/packages/next/src/server/lib/router-utils/setup-dev.ts index 2c57c8ecbdf93..3815aaea063ab 100644 --- a/packages/next/src/server/lib/router-utils/setup-dev.ts +++ b/packages/next/src/server/lib/router-utils/setup-dev.ts @@ -255,11 +255,11 @@ async function startWatcher(opts: SetupOpts) { .concat([ // We need to clear the chunk cache in react require.resolve( - 'next/vendored/node_modules/react-server-dom-webpack-vendored/cjs/react-server-dom-webpack-client.edge.development.js' + 'next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js' ), // And this redirecting module as well require.resolve( - 'next/vendored/node_modules/react-server-dom-webpack-vendored/client.edge.js' + 'next/dist/compiled/react-server-dom-webpack/client.edge.js' ), ]) ) diff --git a/packages/next/src/server/require-hook.ts b/packages/next/src/server/require-hook.ts index 7a73d73ac4194..146cbd89c87d4 100644 --- a/packages/next/src/server/require-hook.ts +++ b/packages/next/src/server/require-hook.ts @@ -4,16 +4,12 @@ // This module will only be loaded once per process. -const { resolve: pathResolve, dirname } = require('path') -const Module = require('module') -const resolveFilename = Module._resolveFilename +const { dirname } = require('path') +const mod = require('module') +const resolveFilename = mod._resolveFilename const hookPropertyMap = new Map() -export function addHookAliases(aliases: [string, string][] = []) { - for (const [key, value] of aliases) { - hookPropertyMap.set(key, value) - } -} +let aliasedPrebundledReact = false const resolve = process.env.NEXT_MINIMAL ? // @ts-ignore @@ -23,18 +19,85 @@ const resolve = process.env.NEXT_MINIMAL const toResolveMap = (map: Record): [string, string][] => Object.entries(map).map(([key, value]) => [key, resolve(value)]) -export const globalOverrides = { +export const defaultOverrides = { 'styled-jsx': dirname(resolve('styled-jsx/package.json')), 'styled-jsx/style': resolve('styled-jsx/style'), } +export const baseOverrides = { + react: 'next/dist/compiled/react', + 'react/package.json': 'next/dist/compiled/react/package.json', + 'react/jsx-runtime': 'next/dist/compiled/react/jsx-runtime', + 'react/jsx-dev-runtime': 'next/dist/compiled/react/jsx-dev-runtime', + 'react-dom': 'next/dist/compiled/react-dom/server-rendering-stub', + 'react-dom/package.json': 'next/dist/compiled/react-dom/package.json', + 'react-dom/client': 'next/dist/compiled/react-dom/client', + 'react-dom/server': 'next/dist/compiled/react-dom/server', + 'react-dom/server.browser': 'next/dist/compiled/react-dom/server.browser', + 'react-dom/server.edge': 'next/dist/compiled/react-dom/server.edge', + 'react-server-dom-webpack/client': + 'next/dist/compiled/react-server-dom-webpack/client', + 'react-server-dom-webpack/client.edge': + 'next/dist/compiled/react-server-dom-webpack/client.edge', + 'react-server-dom-webpack/server.edge': + 'next/dist/compiled/react-server-dom-webpack/server.edge', + 'react-server-dom-webpack/server.node': + 'next/dist/compiled/react-server-dom-webpack/server.node', +} + +export const experimentalOverrides = { + react: 'next/dist/compiled/react-experimental', + 'react/jsx-runtime': 'next/dist/compiled/react-experimental/jsx-runtime', + 'react/jsx-dev-runtime': + 'next/dist/compiled/react-experimental/jsx-dev-runtime', + 'react-dom': + 'next/dist/compiled/react-dom-experimental/server-rendering-stub', + 'react/package.json': 'next/dist/compiled/react-experimental/package.json', + 'react-dom/package.json': + 'next/dist/compiled/react-dom-experimental/package.json', + 'react-dom/client': 'next/dist/compiled/react-dom-experimental/client', + 'react-dom/server': 'next/dist/compiled/react-dom-experimental/server', + 'react-dom/server.browser': + 'next/dist/compiled/react-dom-experimental/server.browser', + 'react-dom/server.edge': + 'next/dist/compiled/react-dom-experimental/server.edge', + 'react-server-dom-webpack/client': + 'next/dist/compiled/react-server-dom-webpack-experimental/client', + 'react-server-dom-webpack/client.edge': + 'next/dist/compiled/react-server-dom-webpack-experimental/client.edge', + 'react-server-dom-webpack/server.edge': + 'next/dist/compiled/react-server-dom-webpack-experimental/server.edge', + 'react-server-dom-webpack/server.node': + 'next/dist/compiled/react-server-dom-webpack-experimental/server.node', +} + +export function addHookAliases(aliases: [string, string][] = []) { + for (const [key, value] of aliases) { + hookPropertyMap.set(key, value) + } +} + // Add default aliases -addHookAliases(toResolveMap(globalOverrides)) +addHookAliases(toResolveMap(defaultOverrides)) -const nextPackageAnchor = resolve('next/package.json') -const vendoredPath = pathResolve(nextPackageAnchor, '../vendored') +// Override built-in React packages if necessary +function overrideReact() { + if (process.env.__NEXT_PRIVATE_PREBUNDLED_REACT) { + aliasedPrebundledReact = true + + // Require these modules with static paths to make sure they are tracked by + // NFT when building the app in standalone mode, as we are now conditionally + // aliasing them it's tricky to track them in build time. + if (process.env.__NEXT_PRIVATE_PREBUNDLED_REACT === 'experimental') { + addHookAliases(toResolveMap(experimentalOverrides)) + } else { + addHookAliases(toResolveMap(baseOverrides)) + } + } +} +overrideReact() -Module._resolveFilename = function ( +mod._resolveFilename = function ( originalResolveFilename: typeof resolveFilename, requestMap: Map, request: string, @@ -42,88 +105,14 @@ Module._resolveFilename = function ( isMain: boolean, options: any ) { - /** - * With vendoring we transparently resolve package specifiers to a vendored package substitute - * while still maintaining normal module resolution semantics. In particular it is important - * that export maps and main fields defined in package.json files continue to work through this - * vendoring process. This only really matters however for bare specifiers such as `require('foo/bar')` - * - * Path specifiers such as `require('./foo/bar')` don't have any package resolution semantics to maintain - * so they can be transparently aliased by simply replacing the specifier with the alias value. In both this - * file and the corresponding webpack plugins that perfom similar functionality we distinguish vendoring from - * aliasing because the requirement of maintaining package semantics is very important. - * - * It should be noted that while `require('next/vendored/react')` looks like a bare specifier it is for the - * `next` package not `react`. If we alias `react` to this `next/vendored/react` it will not use the - * exports map defined in the react package to resolve this request. This is important for things like the "react-server" - * condition which loads a shared subset of React that can run in RSC. - * - * A rule of thumb for whether you want to vendor something or alias is whether the replacement is for an entire - * package vs a few files and whether the replacement is structurally indentical. Our vendoring of React packages is - * a good example of this whereas our aliasing of a precompiled webpack build is a good example for aliasing - * where the aliasing is to files that bear no resemblance to the uncompiled package structure - */ - if (request[0] !== '.' && request[0] !== '/' && request[0] !== '\\') { - // We have a bare specifier and might need to resolve this to a vendored package - const slash = request.indexOf('/') - const requestBase = slash === -1 ? request : request.slice(0, slash) - switch (requestBase) { - case 'react': - case 'react-dom': - case 'react-server-dom-webpack': - case 'scheduler': - // We have a React package. We don't always vendor React, we only do so for App Router at the moment. - // We can determine whether we should vendor this request by checking an environment variable - if (!process.env.__NEXT_PRIVATE_PREBUNDLED_REACT) { - break - } - - let requestPath: string - if (request === 'react-dom') { - // this hook always runs on the server and so we unconditionally rewrite - // bare react-dom resolutions to /server-rendering-stub. Webpack will pick - // the right react-dom when it resolves this for the client so we don't need - // to consider that here. - // When React publishes a version where the top level react-dom export does not - // contain all of the client we will remove this special aliasing. - requestPath = '/server-rendering-stub' - } else { - requestPath = slash === -1 ? '' : request.slice(slash) - } - - // Haste complains when more than one package is loaded with the same package and we also have - // both canary and experimental channels of vendored react packages so when we copy the packages - // into the project we modify their names both in the file-system and within the package.json - const vendoredSuffix = - process.env.__NEXT_PRIVATE_PREBUNDLED_REACT === 'experimental' - ? '-experimental-vendored' - : '-vendored' - - const vendoredRequest = requestBase + vendoredSuffix + requestPath - - // This will resolve the modified request from the path next/vendored rather than - // where the actual require originated. - return resolve(vendoredRequest, { - paths: [vendoredPath], - }) - case 'client-only': - case 'server-only': { - return resolve( - requestBase + '-vendored' + request.slice(requestBase.length), - { - paths: [vendoredPath], - } - ) - } - default: - // If we have no special vendoring defined for this package we fall through to check for aliasing - } + if (process.env.__NEXT_PRIVATE_PREBUNDLED_REACT && !aliasedPrebundledReact) { + // In case the environment variable is set after the module is loaded. + overrideReact() } - // If an alias is registered for this request we resolve the alias instead otherwise we resolve the request const hookResolved = requestMap.get(request) if (hookResolved) request = hookResolved - return originalResolveFilename.call(Module, request, parent, isMain, options) + return originalResolveFilename.call(mod, request, parent, isMain, options) // We use `bind` here to avoid referencing outside variables to create potential memory leaks. }.bind(null, resolveFilename, hookPropertyMap) diff --git a/packages/next/taskfile.js b/packages/next/taskfile.js index 853320588c42a..722fd8e414b26 100644 --- a/packages/next/taskfile.js +++ b/packages/next/taskfile.js @@ -5,7 +5,6 @@ const glob = require('glob') const fs = require('fs-extra') // eslint-disable-next-line import/no-extraneous-dependencies const resolveFrom = require('resolve-from') -const execa = require('execa') export async function next__polyfill_nomodule(task, opts) { await task @@ -1655,82 +1654,26 @@ export async function ncc_icss_utils(task, opts) { .target('src/compiled/icss-utils') } -export async function vendor_deps(task, opts) { - await task.clear('vendored/*').serial([ - 'vendor_react', - 'vendor_poison_packages', - // @TODO-APP to properly install transitive dependencies it may be better to install - // the vendored packages using a tarball. However pnpm does not support this when installing - // without bundleDepedencies and when using this feature transitive deps are not included. For - // now let's avoid the packing of these vendored deps until we can figure out a better option - // that works across all package managers consitently - // 'package_vendored' - ]) -} - -export async function package_vendored(task) { - const nextPath = dirname(require.resolve('next/package.json')) - const vendoredDir = join(nextPath, 'vendored') - const vendoredPackagesDir = join(nextPath, 'vendored/node_modules') - const files = await fs.readdir(vendoredPackagesDir) - for (let file of files) { - const pkgFolder = join(vendoredPackagesDir, file) - const pkgJSON = join(pkgFolder, 'package.json') - try { - await fs.stat(pkgJSON) - } catch (e) { - require('console').error( - 'When attempting to package vendored pacakges we found a package without a package.json. This is likely an error in the task that prepares the vendored package source. The package in question is: ' + - pkgFolder - ) - throw e - } - try { - const result = await execa('npm', ['pack'], { - cwd: join(pkgFolder), - }) - const packedName = result.stdout.trim() - await fs.move( - join(pkgFolder, packedName), - join(vendoredDir, file + '.tgz') - ) - } catch (e) { - require('console').error( - 'There was an error packing a vendored package. This is a critical error because it can cause next to fail to install in certain package managers. The actual error encounter follows this message. The package in question is: ' + - pkgFolder - ) - throw e - } - } -} - -// externals['scheduler'] = 'next/dist/compiled/scheduler-experimental' -// externals['scheduler'] = 'next/dist/compiled/scheduler' -export async function vendor_react(task_) { - function* vendor_react_vendored_impl(task, opts) { - const builtInChannel = opts.experimental - ? `-experimental-builtin` - : `-builtin` - const channel = opts.experimental ? `-experimental` : `` - const packageSuffix = opts.experimental - ? `-experimental-vendored` - : `-vendored` +externals['scheduler'] = 'next/dist/compiled/scheduler-experimental' +externals['scheduler'] = 'next/dist/compiled/scheduler' +export async function copy_vendor_react(task_) { + function* copy_vendor_react_impl(task, opts) { + const channel = opts.experimental ? `experimental-builtin` : `builtin` + const packageSuffix = opts.experimental ? `-experimental` : `` // Override the `react`, `react-dom` and `scheduler`'s package names to avoid // "The name `react` was looked up in the Haste module map" warnings. // TODO-APP: remove unused fields from package.json and unused files - function overridePackageName(source, suffix) { + function overridePackageName(source) { const json = JSON.parse(source) - json.name = json.name + suffix + json.name = json.name + '-' + channel return JSON.stringify( { name: json.name, main: json.main, - // Version is required for certain package managers to be able to - // recognize these as valid packages even though they are vendored - version: json.version, exports: json.exports, dependencies: json.dependencies, + peerDependencies: json.peerDependencies, browser: json.browser, }, null, @@ -1739,38 +1682,29 @@ export async function vendor_react(task_) { } const schedulerDir = dirname( - relative( - __dirname, - require.resolve(`scheduler${builtInChannel}/package.json`) - ) + relative(__dirname, require.resolve(`scheduler-${channel}/package.json`)) ) yield task .source(join(schedulerDir, '*.{json,js}')) // eslint-disable-next-line require-yield .run({ every: true }, function* (file) { if (file.base === 'package.json') { - file.data = overridePackageName(file.data.toString(), packageSuffix) + file.data = overridePackageName(file.data.toString()) } }) - .target(`vendored/node_modules/scheduler${packageSuffix}`) + .target(`src/compiled/scheduler${packageSuffix}`) yield task .source(join(schedulerDir, 'cjs/**/*.js')) - .target(`vendored/node_modules/scheduler${packageSuffix}/cjs`) + .target(`src/compiled/scheduler${packageSuffix}/cjs`) yield task .source(join(schedulerDir, 'LICENSE')) - .target(`vendored/node_modules/scheduler${packageSuffix}`) + .target(`src/compiled/scheduler${packageSuffix}`) const reactDir = dirname( - relative( - __dirname, - require.resolve(`react${builtInChannel}/package.json`) - ) + relative(__dirname, require.resolve(`react-${channel}/package.json`)) ) const reactDomDir = dirname( - relative( - __dirname, - require.resolve(`react-dom${builtInChannel}/package.json`) - ) + relative(__dirname, require.resolve(`react-dom-${channel}/package.json`)) ) yield task @@ -1778,37 +1712,63 @@ export async function vendor_react(task_) { // eslint-disable-next-line require-yield .run({ every: true }, function* (file) { if (file.base === 'package.json') { - file.data = overridePackageName(file.data.toString(), packageSuffix) + file.data = overridePackageName(file.data.toString()) } }) - .target(`vendored/node_modules/react${packageSuffix}`) + .target(`src/compiled/react${packageSuffix}`) yield task .source(join(reactDir, 'LICENSE')) - .target(`vendored/node_modules/react${packageSuffix}`) + .target(`src/compiled/react${packageSuffix}`) yield task .source(join(reactDir, 'cjs/**/*.js')) - .target(`vendored/node_modules/react${packageSuffix}/cjs`) + // eslint-disable-next-line require-yield + .run({ every: true }, function* (file) { + const source = file.data.toString() + // We replace the module/chunk loading code with our own implementation in Next.js. + file.data = source.replace( + /require\(["']react["']\)/g, + `require("next/dist/compiled/react${packageSuffix}")` + ) + }) + .target(`src/compiled/react${packageSuffix}/cjs`) yield task .source(join(reactDomDir, '*.{json,js}')) // eslint-disable-next-line require-yield .run({ every: true }, function* (file) { if (file.base === 'package.json') { - file.data = overridePackageName(file.data.toString(), packageSuffix) + file.data = overridePackageName(file.data.toString()) } }) - .target(`vendored/node_modules/react-dom${packageSuffix}`) + .target(`src/compiled/react-dom${packageSuffix}`) yield task .source(join(reactDomDir, 'LICENSE')) - .target(`vendored/node_modules/react-dom${packageSuffix}`) + .target(`src/compiled/react-dom${packageSuffix}`) yield task .source(join(reactDomDir, 'cjs/**/*.js')) - .target(`vendored/node_modules/react-dom${packageSuffix}/cjs`) + // eslint-disable-next-line require-yield + .run({ every: true }, function* (file) { + const source = file.data.toString() + // We replace the module/chunk loading code with our own implementation in Next.js. + file.data = source + .replace( + /require\(["']scheduler["']\)/g, + `require("next/dist/compiled/scheduler${packageSuffix}")` + ) + .replace( + /require\(["']react["']\)/g, + `require("next/dist/compiled/react${packageSuffix}")` + ) + + // Note that we don't replace `react-dom` with `next/dist/compiled/react-dom` + // as it mighe be aliased to the server rendering stub. + }) + .target(`src/compiled/react-dom${packageSuffix}/cjs`) // Remove unused files const reactDomCompiledDir = join( __dirname, - `vendored/node_modules/react-dom${packageSuffix}` + `src/compiled/react-dom${packageSuffix}` ) const itemsToRemove = [ 'static.js', @@ -1833,12 +1793,12 @@ export async function vendor_react(task_) { const reactServerDomDir = dirname( relative( __dirname, - require.resolve(`react-server-dom-webpack${channel}/package.json`) + require.resolve(`react-server-dom-webpack${packageSuffix}/package.json`) ) ) yield task .source(join(reactServerDomDir, 'LICENSE')) - .target(`vendored/node_modules/react-server-dom-webpack${packageSuffix}`) + .target(`src/compiled/react-server-dom-webpack${packageSuffix}`) yield task .source(join(reactServerDomDir, '{package.json,*.js,cjs/**/*.js}')) // eslint-disable-next-line require-yield @@ -1852,55 +1812,30 @@ export async function vendor_react(task_) { .replace(/__webpack_require__/g, 'globalThis.__next_require__') if (file.base === 'package.json') { - file.data = overridePackageName(file.data, packageSuffix) + file.data = overridePackageName(file.data) } }) - .target(`vendored/node_modules/react-server-dom-webpack${packageSuffix}`) + .target(`src/compiled/react-server-dom-webpack${packageSuffix}`) } // As taskr transpiles async functions into generators, to reuse the same logic // we need to directly write this iteration logic here. - for (const res of vendor_react_vendored_impl(task_, { - experimental: false, - })) { + for (const res of copy_vendor_react_impl(task_, { experimental: false })) { await res } - for (const res of vendor_react_vendored_impl(task_, { - experimental: true, - })) { + for (const res of copy_vendor_react_impl(task_, { experimental: true })) { await res } } // eslint-disable-next-line camelcase -export async function vendor_poison_packages(task, opts) { - function overridePackageName(source, suffix) { - const json = JSON.parse(source) - if (!json.name.endsWith(suffix)) { - json.name = json.name + suffix - } - return JSON.stringify(json, null, 2) - } - +export async function ncc_rsc_poison_packages(task, opts) { await task .source(join(dirname(require.resolve('server-only')), '*')) - // eslint-disable-next-line require-yield - .run({ every: true }, function* (file) { - if (file.base === 'package.json') { - file.data = overridePackageName(file.data.toString(), '-vendored') - } - }) - .target('vendored/node_modules/server-only-vendored') - + .target('src/compiled/server-only') await task .source(join(dirname(require.resolve('client-only')), '*')) - // eslint-disable-next-line require-yield - .run({ every: true }, function* (file) { - if (file.base === 'package.json') { - file.data = overridePackageName(file.data.toString(), '-vendored') - } - }) - .target('vendored/node_modules/client-only-vendored') + .target('src/compiled/client-only') } externals['sass-loader'] = 'next/dist/compiled/sass-loader' @@ -2402,7 +2337,7 @@ export async function ncc(task, opts) { 'copy_babel_runtime', 'copy_vercel_og', 'copy_constants_browserify', - 'vendor_deps', + 'copy_vendor_react', 'copy_react_is', 'ncc_sass_loader', 'ncc_jest_worker', diff --git a/packages/next/types/misc.d.ts b/packages/next/types/misc.d.ts index 5463cdf1a2301..2b68db6002606 100644 --- a/packages/next/types/misc.d.ts +++ b/packages/next/types/misc.d.ts @@ -10,7 +10,15 @@ declare module 'next/dist/compiled/postcss-modules-scope' declare module 'next/dist/compiled/babel/plugin-transform-modules-commonjs' declare module 'next/dist/compiled/babel/plugin-syntax-jsx' declare module 'next/dist/compiled/loader-utils2' +declare module 'next/dist/compiled/react-server-dom-webpack/client' +declare module 'next/dist/compiled/react-server-dom-webpack/client.edge' +declare module 'next/dist/compiled/react-server-dom-webpack/client.browser' +declare module 'next/dist/compiled/react-server-dom-webpack/server.browser' +declare module 'next/dist/compiled/react-server-dom-webpack/server.edge' declare module 'next/dist/client/app-call-server' +declare module 'next/dist/compiled/react-dom/server' +declare module 'next/dist/compiled/react-dom/server.edge' +declare module 'next/dist/compiled/react-dom/server.browser' declare module 'next/dist/compiled/browserslist' declare module 'react-server-dom-webpack/client' declare module 'react-dom/server.browser' @@ -359,6 +367,15 @@ declare module 'next/dist/compiled/@segment/ajv-human-errors' { export = m } +declare module 'next/dist/compiled/react' { + import * as m from 'react' + export = m +} +declare module 'next/dist/compiled/react-dom' { + import * as m from 'react-dom' + export = m +} + declare module 'next/dist/compiled/stacktrace-parser' { import * as m from 'stacktrace-parser' export = m diff --git a/packages/next/vendored/node_modules/client-only-vendored/error.js b/packages/next/vendored/node_modules/client-only-vendored/error.js deleted file mode 100644 index 2e0083d083ce4..0000000000000 --- a/packages/next/vendored/node_modules/client-only-vendored/error.js +++ /dev/null @@ -1,4 +0,0 @@ -throw new Error( - "This module cannot be imported from a Server Component module. " + - "It should only be used from a Client Component." -); diff --git a/packages/next/vendored/node_modules/client-only-vendored/index.js b/packages/next/vendored/node_modules/client-only-vendored/index.js deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/packages/next/vendored/node_modules/client-only-vendored/package.json b/packages/next/vendored/node_modules/client-only-vendored/package.json deleted file mode 100644 index 35a5ff3b162b6..0000000000000 --- a/packages/next/vendored/node_modules/client-only-vendored/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "client-only-vendored", - "description": "This is a marker package to indicate that a module can only be used in Client Components.", - "keywords": [ - "react" - ], - "version": "0.0.1", - "homepage": "https://reactjs.org/", - "bugs": "https://github.com/facebook/react/issues", - "license": "MIT", - "files": [ - "index.js", - "error.js" - ], - "main": "index.js", - "exports": { - ".": { - "react-server": "./error.js", - "default": "./index.js" - } - } -} \ No newline at end of file diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/LICENSE b/packages/next/vendored/node_modules/scheduler-experimental-vendored/LICENSE deleted file mode 100644 index b93be90515ccd..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Meta Platforms, Inc. and affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.development.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.development.js deleted file mode 100644 index 441cf2f56f11a..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.development.js +++ /dev/null @@ -1,711 +0,0 @@ -/** - * @license React - * scheduler-unstable_mock.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -var enableSchedulerDebugging = false; -var enableProfiling = false; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; -var currentMockTime = 0; -var scheduledCallback = null; -var scheduledTimeout = null; -var timeoutTime = -1; -var yieldedValues = null; -var expectedNumberOfYields = -1; -var didStop = false; -var isFlushing = false; -var needsPaint = false; -var shouldYieldForPaint = false; -var disableYieldValue = false; - -function setDisableYieldValue(newValue) { - disableYieldValue = newValue; -} - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = getCurrentTime(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - - if (shouldYieldForPaint) { - needsPaint = true; - return true; - } - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_runWithPriority(priorityLevel, eventHandler) { - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - case LowPriority: - case IdlePriority: - break; - - default: - priorityLevel = NormalPriority; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_next(eventHandler) { - var priorityLevel; - - switch (currentPriorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel; - break; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return] - // $FlowFixMe[missing-this-annot] - - return function () { - // This is a fork of runWithPriority, inlined for performance. - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = parentPriorityLevel; - - try { - return callback.apply(this, arguments); - } finally { - currentPriorityLevel = previousPriorityLevel; - } - }; -} - -function unstable_scheduleCallback(priorityLevel, callback, options) { - var currentTime = getCurrentTime(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_pauseExecution() { -} - -function unstable_continueExecution() { - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } -} - -function unstable_getFirstCallbackNode() { - return peek(taskQueue); -} - -function unstable_cancelCallback(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel; -} - -function requestHostCallback(callback) { - scheduledCallback = callback; -} - -function requestHostTimeout(callback, ms) { - scheduledTimeout = callback; - timeoutTime = currentMockTime + ms; -} - -function cancelHostTimeout() { - scheduledTimeout = null; - timeoutTime = -1; -} - -function shouldYieldToHost() { - if (expectedNumberOfYields === 0 && yieldedValues === null || expectedNumberOfYields !== -1 && yieldedValues !== null && yieldedValues.length >= expectedNumberOfYields || shouldYieldForPaint && needsPaint) { - // We yielded at least as many values as expected. Stop flushing. - didStop = true; - return true; - } - - return false; -} - -function getCurrentTime() { - return currentMockTime; -} - -function forceFrameRate() {// No-op -} - -function reset() { - if (isFlushing) { - throw new Error('Cannot reset while already flushing work.'); - } - - currentMockTime = 0; - scheduledCallback = null; - scheduledTimeout = null; - timeoutTime = -1; - yieldedValues = null; - expectedNumberOfYields = -1; - didStop = false; - isFlushing = false; - needsPaint = false; -} // Should only be used via an assertion helper that inspects the yielded values. - - -function unstable_flushNumberOfYields(count) { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - expectedNumberOfYields = count; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork && !didStop); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - expectedNumberOfYields = -1; - didStop = false; - isFlushing = false; - } - } -} - -function unstable_flushUntilNextPaint() { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - shouldYieldForPaint = true; - needsPaint = false; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork && !didStop); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - shouldYieldForPaint = false; - didStop = false; - isFlushing = false; - } - } - - return false; -} - -function unstable_hasPendingWork() { - return scheduledCallback !== null; -} - -function unstable_flushExpired() { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - isFlushing = true; - - try { - var hasMoreWork = scheduledCallback(false, currentMockTime); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - isFlushing = false; - } - } -} - -function unstable_flushAllWithoutAsserting() { - // Returns false if no work was flushed. - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork); - - if (!hasMoreWork) { - scheduledCallback = null; - } - - return true; - } finally { - isFlushing = false; - } - } else { - return false; - } -} - -function unstable_clearLog() { - if (yieldedValues === null) { - return []; - } - - var values = yieldedValues; - yieldedValues = null; - return values; -} - -function unstable_flushAll() { - if (yieldedValues !== null) { - throw new Error('Log is not empty. Assert on the log of yielded values before ' + 'flushing additional work.'); - } - - unstable_flushAllWithoutAsserting(); - - if (yieldedValues !== null) { - throw new Error('While flushing work, something yielded a value. Use an ' + 'assertion helper to assert on the log of yielded values, e.g. ' + 'expect(Scheduler).toFlushAndYield([...])'); - } -} - -function log(value) { - // eslint-disable-next-line react-internal/no-production-logging - if (console.log.name === 'disabledLog' || disableYieldValue) { - // If console.log has been patched, we assume we're in render - // replaying and we ignore any values yielding in the second pass. - return; - } - - if (yieldedValues === null) { - yieldedValues = [value]; - } else { - yieldedValues.push(value); - } -} - -function unstable_advanceTime(ms) { - // eslint-disable-next-line react-internal/no-production-logging - if (console.log.name === 'disabledLog' || disableYieldValue) { - // If console.log has been patched, we assume we're in render - // replaying and we ignore any time advancing in the second pass. - return; - } - - currentMockTime += ms; - - if (scheduledTimeout !== null && timeoutTime <= currentMockTime) { - scheduledTimeout(currentMockTime); - timeoutTime = -1; - scheduledTimeout = null; - } -} - -function requestPaint() { - needsPaint = true; -} -var unstable_Profiling = null; - -exports.log = log; -exports.reset = reset; -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_advanceTime = unstable_advanceTime; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_clearLog = unstable_clearLog; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_flushAll = unstable_flushAll; -exports.unstable_flushAllWithoutAsserting = unstable_flushAllWithoutAsserting; -exports.unstable_flushExpired = unstable_flushExpired; -exports.unstable_flushNumberOfYields = unstable_flushNumberOfYields; -exports.unstable_flushUntilNextPaint = unstable_flushUntilNextPaint; -exports.unstable_forceFrameRate = forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_hasPendingWork = unstable_hasPendingWork; -exports.unstable_next = unstable_next; -exports.unstable_now = getCurrentTime; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_setDisableYieldValue = setDisableYieldValue; -exports.unstable_shouldYield = shouldYieldToHost; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.production.min.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.production.min.js deleted file mode 100644 index 92dfc9eea69d5..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_mock.production.min.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license React - * scheduler-unstable_mock.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(A,c))vg(F,A)?(a[d]=F,a[v]=c,d=v):(a[d]=A,a[u]=c,d=u);else if(vg(F,c))a[d]=F,a[v]=c,d=v;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var l=[],m=[],n=1,p=null,q=3,r=!1,t=!1,w=!1,x=0,y=null,B=null,C=-1,D=null,E=-1,G=!1,H=!1,I=!1,J=!1,K=!1;function L(a){for(var b=h(m);null!==b;){if(null===b.callback)k(m);else if(b.startTime<=a)k(m),b.sortIndex=b.expirationTime,f(l,b);else break;b=h(m)}}function M(a){w=!1;L(a);if(!t)if(null!==h(l))t=!0,y=N;else{var b=h(m);null!==b&&(a=b.startTime-a,B=M,C=x+a)}} -function N(a,b){t=!1;w&&(w=!1,B=null,C=-1);r=!0;var c=q;try{a:{L(b);for(p=h(l);null!==p&&(!(p.expirationTime>b)||a&&!O());){var d=p.callback;if("function"===typeof d){p.callback=null;q=p.priorityLevel;var e=d(p.expirationTime<=b);b=x;if("function"===typeof e){if(p.callback=e,L(b),J){var z=I=!0;break a}}else p===h(l)&&k(l),L(b)}else k(l);p=h(l)}if(null!==p)z=!0;else{var u=h(m);if(null!==u){var A=u.startTime-b;B=M;C=x+A}z=!1}}return z}finally{p=null,q=c,r=!1}} -function O(){return 0===E&&null===D||-1!==E&&null!==D&&D.length>=E||J&&I?G=!0:!1}function P(){if(H)throw Error("Already flushing work.");if(null!==y){var a=y;H=!0;try{var b=!0;do b=a(!0,x);while(b);b||(y=null);return!0}finally{H=!1}}else return!1}exports.log=function(a){"disabledLog"===console.log.name||K||(null===D?D=[a]:D.push(a))};exports.reset=function(){if(H)throw Error("Cannot reset while already flushing work.");x=0;B=y=null;C=-1;D=null;E=-1;I=H=G=!1};exports.unstable_IdlePriority=5; -exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_advanceTime=function(a){"disabledLog"===console.log.name||K||(x+=a,null!==B&&C<=x&&(B(x),C=-1,B=null))};exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_clearLog=function(){if(null===D)return[];var a=D;D=null;return a};exports.unstable_continueExecution=function(){t||r||(t=!0,y=N)}; -exports.unstable_flushAll=function(){if(null!==D)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");P();if(null!==D)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");};exports.unstable_flushAllWithoutAsserting=P; -exports.unstable_flushExpired=function(){if(H)throw Error("Already flushing work.");if(null!==y){H=!0;try{y(!1,x)||(y=null)}finally{H=!1}}};exports.unstable_flushNumberOfYields=function(a){if(H)throw Error("Already flushing work.");if(null!==y){var b=y;E=a;H=!0;try{a=!0;do a=b(!0,x);while(a&&!G);a||(y=null)}finally{E=-1,H=G=!1}}}; -exports.unstable_flushUntilNextPaint=function(){if(H)throw Error("Already flushing work.");if(null!==y){var a=y;J=!0;I=!1;H=!0;try{var b=!0;do b=a(!0,x);while(b&&!G);b||(y=null)}finally{H=G=J=!1}}return!1};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return q};exports.unstable_getFirstCallbackNode=function(){return h(l)};exports.unstable_hasPendingWork=function(){return null!==y}; -exports.unstable_next=function(a){switch(q){case 1:case 2:case 3:var b=3;break;default:b=q}var c=q;q=b;try{return a()}finally{q=c}};exports.unstable_now=function(){return x};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){I=!0};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=q;q=a;try{return b()}finally{q=c}}; -exports.unstable_scheduleCallback=function(a,b,c){var d=x;"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0d?(a.sortIndex=c,f(m,a),null===h(l)&&a===h(m)&&(w?(B=null,C=-1):w=!0,B=M,C=x+(c-d))):(a.sortIndex=e,f(l,a),t||r||(t=!0,y=N));return a}; -exports.unstable_setDisableYieldValue=function(a){K=a};exports.unstable_shouldYield=O;exports.unstable_wrapCallback=function(a){var b=q;return function(){var c=q;q=b;try{return a.apply(this,arguments)}finally{q=c}}}; diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.development.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.development.js deleted file mode 100644 index 0c443feabc9f7..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.development.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @license React - * scheduler-unstable_post_task.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -var perf = window.performance; -var setTimeout = window.setTimeout; // Use experimental Chrome Scheduler postTask API. - -var scheduler = global.scheduler; -var getCurrentTime = perf.now.bind(perf); -var unstable_now = getCurrentTime; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var yieldInterval = 5; -var deadline = 0; -var currentPriorityLevel_DEPRECATED = NormalPriority; // `isInputPending` is not available. Since we have no way of knowing if -// there's pending input, always yield at the end of the frame. - -function unstable_shouldYield() { - return getCurrentTime() >= deadline; -} -function unstable_requestPaint() {// Since we yield every frame regardless, `requestPaint` has no effect. -} -function unstable_scheduleCallback(priorityLevel, callback, options) { - var postTaskPriority; - - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - postTaskPriority = 'user-blocking'; - break; - - case LowPriority: - case NormalPriority: - postTaskPriority = 'user-visible'; - break; - - case IdlePriority: - postTaskPriority = 'background'; - break; - - default: - postTaskPriority = 'user-visible'; - break; - } - - var controller = new TaskController(); - var postTaskOptions = { - priority: postTaskPriority, - delay: typeof options === 'object' && options !== null ? options.delay : 0, - signal: controller.signal - }; - var node = { - _controller: controller - }; - scheduler.postTask(runTask.bind(null, priorityLevel, postTaskPriority, node, callback), postTaskOptions).catch(handleAbortError); - return node; -} - -function runTask(priorityLevel, postTaskPriority, node, callback) { - deadline = getCurrentTime() + yieldInterval; - - try { - currentPriorityLevel_DEPRECATED = priorityLevel; - var didTimeout_DEPRECATED = false; - var result = callback(didTimeout_DEPRECATED); - - if (typeof result === 'function') { - // Assume this is a continuation - var continuation = result; - var continuationController = new TaskController(); - var continuationOptions = { - priority: postTaskPriority, - signal: continuationController.signal - }; // Update the original callback node's controller, since even though we're - // posting a new task, conceptually it's the same one. - - node._controller = continuationController; - var nextTask = runTask.bind(null, priorityLevel, postTaskPriority, node, continuation); - - if (scheduler.yield !== undefined) { - scheduler.yield(continuationOptions).then(nextTask).catch(handleAbortError); - } else { - scheduler.postTask(nextTask, continuationOptions).catch(handleAbortError); - } - } - } catch (error) { - // We're inside a `postTask` promise. If we don't handle this error, then it - // will trigger an "Unhandled promise rejection" error. We don't want that, - // but we do want the default error reporting behavior that normal - // (non-Promise) tasks get for unhandled errors. - // - // So we'll re-throw the error inside a regular browser task. - setTimeout(function () { - throw error; - }); - } finally { - currentPriorityLevel_DEPRECATED = NormalPriority; - } -} - -function handleAbortError(error) {// Abort errors are an implementation detail. We don't expose the - // TaskController to the user, nor do we expose the promise that is returned - // from `postTask`. So we should suppress them, since there's no way for the - // user to handle them. -} - -function unstable_cancelCallback(node) { - var controller = node._controller; - controller.abort(); -} -function unstable_runWithPriority(priorityLevel, callback) { - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = priorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } -} -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel_DEPRECATED; -} -function unstable_next(callback) { - var priorityLevel; - - switch (currentPriorityLevel_DEPRECATED) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel_DEPRECATED; - break; - } - - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = priorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } -} -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel_DEPRECATED; - return function () { - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = parentPriorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } - }; -} -function unstable_forceFrameRate() {} -function unstable_pauseExecution() {} -function unstable_continueExecution() {} -function unstable_getFirstCallbackNode() { - return null; -} // Currently no profiling build - -var unstable_Profiling = null; - -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = unstable_forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_now = unstable_now; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = unstable_requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = unstable_shouldYield; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.production.min.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.production.min.js deleted file mode 100644 index 935414e26913b..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler-unstable_post_task.production.min.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license React - * scheduler-unstable_post_task.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';var a=window.performance,g=window.setTimeout,h=global.scheduler,k=a.now.bind(a),l=0,m=3;function n(c,d,b,f){l=k()+5;try{m=c;var e=f(!1);if("function"===typeof e){var p=new TaskController,q={priority:d,signal:p.signal};b._controller=p;var r=n.bind(null,c,d,b,e);void 0!==h.yield?h.yield(q).then(r).catch(t):h.postTask(r,q).catch(t)}}catch(u){g(function(){throw u;})}finally{m=3}}function t(){}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1; -exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(c){c._controller.abort()};exports.unstable_continueExecution=function(){};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return m};exports.unstable_getFirstCallbackNode=function(){return null}; -exports.unstable_next=function(c){switch(m){case 1:case 2:case 3:var d=3;break;default:d=m}var b=m;m=d;try{return c()}finally{m=b}};exports.unstable_now=k;exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(c,d){var b=m;m=c;try{return d()}finally{m=b}}; -exports.unstable_scheduleCallback=function(c,d,b){switch(c){case 1:case 2:var f="user-blocking";break;case 4:case 3:f="user-visible";break;case 5:f="background";break;default:f="user-visible"}var e=new TaskController;b={priority:f,delay:"object"===typeof b&&null!==b?b.delay:0,signal:e.signal};e={_controller:e};h.postTask(n.bind(null,c,f,e,d),b).catch(t);return e};exports.unstable_shouldYield=function(){return k()>=l}; -exports.unstable_wrapCallback=function(c){var d=m;return function(){var b=m;m=d;try{return c()}finally{m=b}}}; diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.development.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.development.js deleted file mode 100644 index a077ed35315ae..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.development.js +++ /dev/null @@ -1,639 +0,0 @@ -/** - * @license React - * scheduler.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); -} - var enableSchedulerDebugging = false; -var enableProfiling = false; -var frameYieldMs = 5; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -exports.unstable_now = void 0; -var hasPerformanceNow = // $FlowFixMe[method-unbinding] -typeof performance === 'object' && typeof performance.now === 'function'; - -if (hasPerformanceNow) { - var localPerformance = performance; - - exports.unstable_now = function () { - return localPerformance.now(); - }; -} else { - var localDate = Date; - var initialTime = localDate.now(); - - exports.unstable_now = function () { - return localDate.now() - initialTime; - }; -} // Max 31 bit integer. The max integer size in V8 for 32-bit systems. -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. - -var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; -var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; -var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom - -typeof navigator !== 'undefined' && // $FlowFixMe[prop-missing] -navigator.scheduling !== undefined && // $FlowFixMe[incompatible-type] -navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = exports.unstable_now(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - return true; - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_runWithPriority(priorityLevel, eventHandler) { - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - case LowPriority: - case IdlePriority: - break; - - default: - priorityLevel = NormalPriority; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_next(eventHandler) { - var priorityLevel; - - switch (currentPriorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel; - break; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return] - // $FlowFixMe[missing-this-annot] - - return function () { - // This is a fork of runWithPriority, inlined for performance. - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = parentPriorityLevel; - - try { - return callback.apply(this, arguments); - } finally { - currentPriorityLevel = previousPriorityLevel; - } - }; -} - -function unstable_scheduleCallback(priorityLevel, callback, options) { - var currentTime = exports.unstable_now(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_pauseExecution() { -} - -function unstable_continueExecution() { - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } -} - -function unstable_getFirstCallbackNode() { - return peek(taskQueue); -} - -function unstable_cancelCallback(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel; -} - -var isMessageLoopRunning = false; -var scheduledHostCallback = null; -var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var frameInterval = frameYieldMs; -var startTime = -1; - -function shouldYieldToHost() { - var timeElapsed = exports.unstable_now() - startTime; - - if (timeElapsed < frameInterval) { - // The main thread has only been blocked for a really short amount of time; - // smaller than a single frame. Don't yield yet. - return false; - } // The main thread has been blocked for a non-negligible amount of time. We - - - return true; -} - -function requestPaint() { - -} - -function forceFrameRate(fps) { - if (fps < 0 || fps > 125) { - // Using console['error'] to evade Babel and ESLint - console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported'); - return; - } - - if (fps > 0) { - frameInterval = Math.floor(1000 / fps); - } else { - // reset the framerate - frameInterval = frameYieldMs; - } -} - -var performWorkUntilDeadline = function () { - if (scheduledHostCallback !== null) { - var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread - // has been blocked. - - startTime = currentTime; - var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the - // error can be observed. - // - // Intentionally not using a try-catch, since that makes some debugging - // techniques harder. Instead, if `scheduledHostCallback` errors, then - // `hasMoreWork` will remain true, and we'll continue the work loop. - - var hasMoreWork = true; - - try { - // $FlowFixMe[not-a-function] found when upgrading Flow - hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); - } finally { - if (hasMoreWork) { - // If there's more work, schedule the next message event at the end - // of the preceding one. - schedulePerformWorkUntilDeadline(); - } else { - isMessageLoopRunning = false; - scheduledHostCallback = null; - } - } - } else { - isMessageLoopRunning = false; - } // Yielding to the browser will give it a chance to paint, so we can -}; - -var schedulePerformWorkUntilDeadline; - -if (typeof localSetImmediate === 'function') { - // Node.js and old IE. - // There's a few reasons for why we prefer setImmediate. - // - // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. - // (Even though this is a DOM fork of the Scheduler, you could get here - // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) - // https://github.com/facebook/react/issues/20756 - // - // But also, it runs earlier which is the semantic we want. - // If other browsers ever implement it, it's better to use it. - // Although both of these would be inferior to native scheduling. - schedulePerformWorkUntilDeadline = function () { - localSetImmediate(performWorkUntilDeadline); - }; -} else if (typeof MessageChannel !== 'undefined') { - // DOM and Worker environments. - // We prefer MessageChannel because of the 4ms setTimeout clamping. - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = performWorkUntilDeadline; - - schedulePerformWorkUntilDeadline = function () { - port.postMessage(null); - }; -} else { - // We should only fallback here in non-browser environments. - schedulePerformWorkUntilDeadline = function () { - // $FlowFixMe[not-a-function] nullable value - localSetTimeout(performWorkUntilDeadline, 0); - }; -} - -function requestHostCallback(callback) { - scheduledHostCallback = callback; - - if (!isMessageLoopRunning) { - isMessageLoopRunning = true; - schedulePerformWorkUntilDeadline(); - } -} - -function requestHostTimeout(callback, ms) { - // $FlowFixMe[not-a-function] nullable value - taskTimeoutID = localSetTimeout(function () { - callback(exports.unstable_now()); - }, ms); -} - -function cancelHostTimeout() { - // $FlowFixMe[not-a-function] nullable value - localClearTimeout(taskTimeoutID); - taskTimeoutID = -1; -} -var unstable_Profiling = null; - -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = shouldYieldToHost; -exports.unstable_wrapCallback = unstable_wrapCallback; - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); -} - - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.development.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.development.js deleted file mode 100644 index aa057d37d2b25..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.development.js +++ /dev/null @@ -1,552 +0,0 @@ -/** - * @license React - * scheduler.native.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -var enableSchedulerDebugging = false; -var enableProfiling = false; -var frameYieldMs = 5; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -var getCurrentTime; -var hasPerformanceNow = // $FlowFixMe[method-unbinding] -typeof performance === 'object' && typeof performance.now === 'function'; - -if (hasPerformanceNow) { - var localPerformance = performance; - - getCurrentTime = function () { - return localPerformance.now(); - }; -} else { - var localDate = Date; - var initialTime = localDate.now(); - - getCurrentTime = function () { - return localDate.now() - initialTime; - }; -} // Max 31 bit integer. The max integer size in V8 for 32-bit systems. -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. - -var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; -var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; -var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom - -typeof navigator !== 'undefined' && // $FlowFixMe[prop-missing] -navigator.scheduling !== undefined && // $FlowFixMe[incompatible-type] -navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = getCurrentTime(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - return true; - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_scheduleCallback$1(priorityLevel, callback, options) { - var currentTime = getCurrentTime(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_cancelCallback$1(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel$1() { - return currentPriorityLevel; -} - -var isMessageLoopRunning = false; -var scheduledHostCallback = null; -var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var frameInterval = frameYieldMs; -var startTime = -1; - -function shouldYieldToHost() { - var timeElapsed = getCurrentTime() - startTime; - - if (timeElapsed < frameInterval) { - // The main thread has only been blocked for a really short amount of time; - // smaller than a single frame. Don't yield yet. - return false; - } // The main thread has been blocked for a non-negligible amount of time. We - - - return true; -} - -function requestPaint() { - -} - -var performWorkUntilDeadline = function () { - if (scheduledHostCallback !== null) { - var currentTime = getCurrentTime(); // Keep track of the start time so we can measure how long the main thread - // has been blocked. - - startTime = currentTime; - var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the - // error can be observed. - // - // Intentionally not using a try-catch, since that makes some debugging - // techniques harder. Instead, if `scheduledHostCallback` errors, then - // `hasMoreWork` will remain true, and we'll continue the work loop. - - var hasMoreWork = true; - - try { - // $FlowFixMe[not-a-function] found when upgrading Flow - hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); - } finally { - if (hasMoreWork) { - // If there's more work, schedule the next message event at the end - // of the preceding one. - schedulePerformWorkUntilDeadline(); - } else { - isMessageLoopRunning = false; - scheduledHostCallback = null; - } - } - } else { - isMessageLoopRunning = false; - } // Yielding to the browser will give it a chance to paint, so we can -}; - -var schedulePerformWorkUntilDeadline; - -if (typeof localSetImmediate === 'function') { - // Node.js and old IE. - // There's a few reasons for why we prefer setImmediate. - // - // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. - // (Even though this is a DOM fork of the Scheduler, you could get here - // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) - // https://github.com/facebook/react/issues/20756 - // - // But also, it runs earlier which is the semantic we want. - // If other browsers ever implement it, it's better to use it. - // Although both of these would be inferior to native scheduling. - schedulePerformWorkUntilDeadline = function () { - localSetImmediate(performWorkUntilDeadline); - }; -} else if (typeof MessageChannel !== 'undefined') { - // DOM and Worker environments. - // We prefer MessageChannel because of the 4ms setTimeout clamping. - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = performWorkUntilDeadline; - - schedulePerformWorkUntilDeadline = function () { - port.postMessage(null); - }; -} else { - // We should only fallback here in non-browser environments. - schedulePerformWorkUntilDeadline = function () { - // $FlowFixMe[not-a-function] nullable value - localSetTimeout(performWorkUntilDeadline, 0); - }; -} - -function requestHostCallback(callback) { - scheduledHostCallback = callback; - - if (!isMessageLoopRunning) { - isMessageLoopRunning = true; - schedulePerformWorkUntilDeadline(); - } -} - -function requestHostTimeout(callback, ms) { - // $FlowFixMe[not-a-function] nullable value - taskTimeoutID = localSetTimeout(function () { - callback(getCurrentTime()); - }, ms); -} - -function cancelHostTimeout() { - // $FlowFixMe[not-a-function] nullable value - localClearTimeout(taskTimeoutID); - taskTimeoutID = -1; -} - -// https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp - -var unstable_UserBlockingPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_UserBlockingPriority : UserBlockingPriority; -var unstable_NormalPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_NormalPriority : NormalPriority; -var unstable_IdlePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_IdlePriority : IdlePriority; -var unstable_LowPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_LowPriority : LowPriority; -var unstable_ImmediatePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_ImmediatePriority : ImmediatePriority; -var unstable_scheduleCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_scheduleCallback : unstable_scheduleCallback$1; -var unstable_cancelCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_cancelCallback : unstable_cancelCallback$1; -var unstable_getCurrentPriorityLevel = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_getCurrentPriorityLevel : unstable_getCurrentPriorityLevel$1; -var unstable_shouldYield = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_shouldYield : shouldYieldToHost; -var unstable_requestPaint = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_requestPaint : requestPaint; -var unstable_now = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_now : getCurrentTime; // These were never implemented on the native scheduler because React never calls them. -// For consistency, let's disable them altogether and make them throw. - -var unstable_next = throwNotImplemented; -var unstable_runWithPriority = throwNotImplemented; -var unstable_wrapCallback = throwNotImplemented; -var unstable_continueExecution = throwNotImplemented; -var unstable_pauseExecution = throwNotImplemented; -var unstable_getFirstCallbackNode = throwNotImplemented; -var unstable_forceFrameRate = throwNotImplemented; -var unstable_Profiling = null; - -function throwNotImplemented() { - throw Error('Not implemented.'); -} // Flow magic to verify the exports of this file match the original version. - -exports.unstable_IdlePriority = unstable_IdlePriority; -exports.unstable_ImmediatePriority = unstable_ImmediatePriority; -exports.unstable_LowPriority = unstable_LowPriority; -exports.unstable_NormalPriority = unstable_NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = unstable_UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = unstable_forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_now = unstable_now; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = unstable_requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = unstable_shouldYield; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.production.min.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.production.min.js deleted file mode 100644 index 4df62008ab6d4..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.native.production.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license React - * scheduler.native.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(E,c))ng(A,E)?(a[d]=A,a[n]=c,d=n):(a[d]=E,a[m]=c,d=m);else if(ng(A,c))a[d]=A,a[n]=c,d=n;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var l;if("object"===typeof performance&&"function"===typeof performance.now){var p=performance;l=function(){return p.now()}}else{var q=Date,r=q.now();l=function(){return q.now()-r}}var u=[],v=[],w=1,x=null,y=3,z=!1,B=!1,C=!1,D="function"===typeof setTimeout?setTimeout:null,F="function"===typeof clearTimeout?clearTimeout:null,G="undefined"!==typeof setImmediate?setImmediate:null; -"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function H(a){for(var b=h(v);null!==b;){if(null===b.callback)k(v);else if(b.startTime<=a)k(v),b.sortIndex=b.expirationTime,f(u,b);else break;b=h(v)}}function I(a){C=!1;H(a);if(!B)if(null!==h(u))B=!0,J=K,L||(L=!0,M());else{var b=h(v);null!==b&&N(I,b.startTime-a)}} -function K(a,b){B=!1;C&&(C=!1,F(O),O=-1);z=!0;var c=y;try{a:{H(b);for(x=h(u);null!==x&&(!(x.expirationTime>b)||a&&!P());){var d=x.callback;if("function"===typeof d){x.callback=null;y=x.priorityLevel;var e=d(x.expirationTime<=b);b=l();if("function"===typeof e){x.callback=e;H(b);var t=!0;break a}else x===h(u)&&k(u),H(b)}else k(u);x=h(u)}if(null!==x)t=!0;else{var m=h(v);null!==m&&N(I,m.startTime-b);t=!1}}return t}finally{x=null,y=c,z=!1}} -function Q(a,b,c){var d=l();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0d?(a.sortIndex=c,f(v,a),null===h(u)&&a===h(v)&&(C?(F(O),O=-1):C=!0,N(I,c-d))):(a.sortIndex=e,f(u,a),B||z||(B=!0,J=K,L||(L=!0,M())));return a}function R(a){a.callback=null}function S(){return y} -var L=!1,J=null,O=-1,T=-1;function P(){return 5>l()-T?!1:!0}function U(){}function V(){if(null!==J){var a=l();T=a;var b=!0;try{b=J(!0,a)}finally{b?M():(L=!1,J=null)}}else L=!1}var M;if("function"===typeof G)M=function(){G(V)};else if("undefined"!==typeof MessageChannel){var W=new MessageChannel,X=W.port2;W.port1.onmessage=V;M=function(){X.postMessage(null)}}else M=function(){D(V,0)};function N(a,b){O=D(function(){a(l())},b)} -var Y="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_UserBlockingPriority:2,aa="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_NormalPriority:3,ba="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_LowPriority:4,ca="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_ImmediatePriority:1,da="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_scheduleCallback:Q,ea="undefined"!== -typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_cancelCallback:R,fa="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_getCurrentPriorityLevel:S,ha="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_shouldYield:P,ia="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_requestPaint:U,ja="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_now:l; -function Z(){throw Error("Not implemented.");}exports.unstable_IdlePriority="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_IdlePriority:5;exports.unstable_ImmediatePriority=ca;exports.unstable_LowPriority=ba;exports.unstable_NormalPriority=aa;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=Y;exports.unstable_cancelCallback=ea;exports.unstable_continueExecution=Z;exports.unstable_forceFrameRate=Z;exports.unstable_getCurrentPriorityLevel=fa; -exports.unstable_getFirstCallbackNode=Z;exports.unstable_next=Z;exports.unstable_now=ja;exports.unstable_pauseExecution=Z;exports.unstable_requestPaint=ia;exports.unstable_runWithPriority=Z;exports.unstable_scheduleCallback=da;exports.unstable_shouldYield=ha;exports.unstable_wrapCallback=Z; diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.production.min.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.production.min.js deleted file mode 100644 index db83442d9c9dd..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/cjs/scheduler.production.min.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(D,c))ng(x,D)?(a[d]=x,a[n]=c,d=n):(a[d]=D,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}exports.unstable_now=void 0;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,r=p.now();exports.unstable_now=function(){return p.now()-r}} -var t=[],u=[],v=1,w=null,y=3,z=!1,A=!1,B=!1,C="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending?navigator.scheduling.isInputPending.bind(navigator.scheduling):null; -function G(a){for(var b=h(u);null!==b;){if(null===b.callback)k(u);else if(b.startTime<=a)k(u),b.sortIndex=b.expirationTime,f(t,b);else break;b=h(u)}}function H(a){B=!1;G(a);if(!A)if(null!==h(t))A=!0,I(J);else{var b=h(u);null!==b&&K(H,b.startTime-a)}} -function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{a:{G(b);for(w=h(t);null!==w&&(!(w.expirationTime>b)||a&&!M());){var d=w.callback;if("function"===typeof d){w.callback=null;y=w.priorityLevel;var e=d(w.expirationTime<=b);b=exports.unstable_now();if("function"===typeof e){w.callback=e;G(b);var q=!0;break a}else w===h(t)&&k(t),G(b)}else k(t);w=h(t)}if(null!==w)q=!0;else{var m=h(u);null!==m&&K(H,m.startTime-b);q=!1}}return q}finally{w=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1; -function M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(u,a),null===h(t)&&a===h(u)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(t,a),A||z||(A=!0,I(J)));return a}; -exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}}; diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.js deleted file mode 100644 index 77770b0c219e2..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler.production.min.js'); -} else { - module.exports = require('./cjs/scheduler.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.native.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.native.js deleted file mode 100644 index 4b65547421073..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/index.native.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler.native.production.min.js'); -} else { - module.exports = require('./cjs/scheduler.native.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/package.json b/packages/next/vendored/node_modules/scheduler-experimental-vendored/package.json deleted file mode 100644 index 26a993da3131c..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "scheduler-experimental-vendored", - "version": "0.0.0-experimental-546fe4681-20230713", - "dependencies": { - "loose-envify": "^1.1.0" - } -} \ No newline at end of file diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_mock.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_mock.js deleted file mode 100644 index e72ea3186f005..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_mock.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler-unstable_mock.production.min.js'); -} else { - module.exports = require('./cjs/scheduler-unstable_mock.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_post_task.js b/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_post_task.js deleted file mode 100644 index 62ecbd5a072bc..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-experimental-vendored/unstable_post_task.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler-unstable_post_task.production.min.js'); -} else { - module.exports = require('./cjs/scheduler-unstable_post_task.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/LICENSE b/packages/next/vendored/node_modules/scheduler-vendored/LICENSE deleted file mode 100644 index b93be90515ccd..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Meta Platforms, Inc. and affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.development.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.development.js deleted file mode 100644 index 441cf2f56f11a..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.development.js +++ /dev/null @@ -1,711 +0,0 @@ -/** - * @license React - * scheduler-unstable_mock.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -var enableSchedulerDebugging = false; -var enableProfiling = false; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; -var currentMockTime = 0; -var scheduledCallback = null; -var scheduledTimeout = null; -var timeoutTime = -1; -var yieldedValues = null; -var expectedNumberOfYields = -1; -var didStop = false; -var isFlushing = false; -var needsPaint = false; -var shouldYieldForPaint = false; -var disableYieldValue = false; - -function setDisableYieldValue(newValue) { - disableYieldValue = newValue; -} - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = getCurrentTime(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - - if (shouldYieldForPaint) { - needsPaint = true; - return true; - } - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_runWithPriority(priorityLevel, eventHandler) { - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - case LowPriority: - case IdlePriority: - break; - - default: - priorityLevel = NormalPriority; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_next(eventHandler) { - var priorityLevel; - - switch (currentPriorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel; - break; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return] - // $FlowFixMe[missing-this-annot] - - return function () { - // This is a fork of runWithPriority, inlined for performance. - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = parentPriorityLevel; - - try { - return callback.apply(this, arguments); - } finally { - currentPriorityLevel = previousPriorityLevel; - } - }; -} - -function unstable_scheduleCallback(priorityLevel, callback, options) { - var currentTime = getCurrentTime(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_pauseExecution() { -} - -function unstable_continueExecution() { - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } -} - -function unstable_getFirstCallbackNode() { - return peek(taskQueue); -} - -function unstable_cancelCallback(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel; -} - -function requestHostCallback(callback) { - scheduledCallback = callback; -} - -function requestHostTimeout(callback, ms) { - scheduledTimeout = callback; - timeoutTime = currentMockTime + ms; -} - -function cancelHostTimeout() { - scheduledTimeout = null; - timeoutTime = -1; -} - -function shouldYieldToHost() { - if (expectedNumberOfYields === 0 && yieldedValues === null || expectedNumberOfYields !== -1 && yieldedValues !== null && yieldedValues.length >= expectedNumberOfYields || shouldYieldForPaint && needsPaint) { - // We yielded at least as many values as expected. Stop flushing. - didStop = true; - return true; - } - - return false; -} - -function getCurrentTime() { - return currentMockTime; -} - -function forceFrameRate() {// No-op -} - -function reset() { - if (isFlushing) { - throw new Error('Cannot reset while already flushing work.'); - } - - currentMockTime = 0; - scheduledCallback = null; - scheduledTimeout = null; - timeoutTime = -1; - yieldedValues = null; - expectedNumberOfYields = -1; - didStop = false; - isFlushing = false; - needsPaint = false; -} // Should only be used via an assertion helper that inspects the yielded values. - - -function unstable_flushNumberOfYields(count) { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - expectedNumberOfYields = count; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork && !didStop); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - expectedNumberOfYields = -1; - didStop = false; - isFlushing = false; - } - } -} - -function unstable_flushUntilNextPaint() { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - shouldYieldForPaint = true; - needsPaint = false; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork && !didStop); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - shouldYieldForPaint = false; - didStop = false; - isFlushing = false; - } - } - - return false; -} - -function unstable_hasPendingWork() { - return scheduledCallback !== null; -} - -function unstable_flushExpired() { - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - isFlushing = true; - - try { - var hasMoreWork = scheduledCallback(false, currentMockTime); - - if (!hasMoreWork) { - scheduledCallback = null; - } - } finally { - isFlushing = false; - } - } -} - -function unstable_flushAllWithoutAsserting() { - // Returns false if no work was flushed. - if (isFlushing) { - throw new Error('Already flushing work.'); - } - - if (scheduledCallback !== null) { - var cb = scheduledCallback; - isFlushing = true; - - try { - var hasMoreWork = true; - - do { - hasMoreWork = cb(true, currentMockTime); - } while (hasMoreWork); - - if (!hasMoreWork) { - scheduledCallback = null; - } - - return true; - } finally { - isFlushing = false; - } - } else { - return false; - } -} - -function unstable_clearLog() { - if (yieldedValues === null) { - return []; - } - - var values = yieldedValues; - yieldedValues = null; - return values; -} - -function unstable_flushAll() { - if (yieldedValues !== null) { - throw new Error('Log is not empty. Assert on the log of yielded values before ' + 'flushing additional work.'); - } - - unstable_flushAllWithoutAsserting(); - - if (yieldedValues !== null) { - throw new Error('While flushing work, something yielded a value. Use an ' + 'assertion helper to assert on the log of yielded values, e.g. ' + 'expect(Scheduler).toFlushAndYield([...])'); - } -} - -function log(value) { - // eslint-disable-next-line react-internal/no-production-logging - if (console.log.name === 'disabledLog' || disableYieldValue) { - // If console.log has been patched, we assume we're in render - // replaying and we ignore any values yielding in the second pass. - return; - } - - if (yieldedValues === null) { - yieldedValues = [value]; - } else { - yieldedValues.push(value); - } -} - -function unstable_advanceTime(ms) { - // eslint-disable-next-line react-internal/no-production-logging - if (console.log.name === 'disabledLog' || disableYieldValue) { - // If console.log has been patched, we assume we're in render - // replaying and we ignore any time advancing in the second pass. - return; - } - - currentMockTime += ms; - - if (scheduledTimeout !== null && timeoutTime <= currentMockTime) { - scheduledTimeout(currentMockTime); - timeoutTime = -1; - scheduledTimeout = null; - } -} - -function requestPaint() { - needsPaint = true; -} -var unstable_Profiling = null; - -exports.log = log; -exports.reset = reset; -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_advanceTime = unstable_advanceTime; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_clearLog = unstable_clearLog; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_flushAll = unstable_flushAll; -exports.unstable_flushAllWithoutAsserting = unstable_flushAllWithoutAsserting; -exports.unstable_flushExpired = unstable_flushExpired; -exports.unstable_flushNumberOfYields = unstable_flushNumberOfYields; -exports.unstable_flushUntilNextPaint = unstable_flushUntilNextPaint; -exports.unstable_forceFrameRate = forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_hasPendingWork = unstable_hasPendingWork; -exports.unstable_next = unstable_next; -exports.unstable_now = getCurrentTime; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_setDisableYieldValue = setDisableYieldValue; -exports.unstable_shouldYield = shouldYieldToHost; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.production.min.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.production.min.js deleted file mode 100644 index 92dfc9eea69d5..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_mock.production.min.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license React - * scheduler-unstable_mock.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(A,c))vg(F,A)?(a[d]=F,a[v]=c,d=v):(a[d]=A,a[u]=c,d=u);else if(vg(F,c))a[d]=F,a[v]=c,d=v;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var l=[],m=[],n=1,p=null,q=3,r=!1,t=!1,w=!1,x=0,y=null,B=null,C=-1,D=null,E=-1,G=!1,H=!1,I=!1,J=!1,K=!1;function L(a){for(var b=h(m);null!==b;){if(null===b.callback)k(m);else if(b.startTime<=a)k(m),b.sortIndex=b.expirationTime,f(l,b);else break;b=h(m)}}function M(a){w=!1;L(a);if(!t)if(null!==h(l))t=!0,y=N;else{var b=h(m);null!==b&&(a=b.startTime-a,B=M,C=x+a)}} -function N(a,b){t=!1;w&&(w=!1,B=null,C=-1);r=!0;var c=q;try{a:{L(b);for(p=h(l);null!==p&&(!(p.expirationTime>b)||a&&!O());){var d=p.callback;if("function"===typeof d){p.callback=null;q=p.priorityLevel;var e=d(p.expirationTime<=b);b=x;if("function"===typeof e){if(p.callback=e,L(b),J){var z=I=!0;break a}}else p===h(l)&&k(l),L(b)}else k(l);p=h(l)}if(null!==p)z=!0;else{var u=h(m);if(null!==u){var A=u.startTime-b;B=M;C=x+A}z=!1}}return z}finally{p=null,q=c,r=!1}} -function O(){return 0===E&&null===D||-1!==E&&null!==D&&D.length>=E||J&&I?G=!0:!1}function P(){if(H)throw Error("Already flushing work.");if(null!==y){var a=y;H=!0;try{var b=!0;do b=a(!0,x);while(b);b||(y=null);return!0}finally{H=!1}}else return!1}exports.log=function(a){"disabledLog"===console.log.name||K||(null===D?D=[a]:D.push(a))};exports.reset=function(){if(H)throw Error("Cannot reset while already flushing work.");x=0;B=y=null;C=-1;D=null;E=-1;I=H=G=!1};exports.unstable_IdlePriority=5; -exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_advanceTime=function(a){"disabledLog"===console.log.name||K||(x+=a,null!==B&&C<=x&&(B(x),C=-1,B=null))};exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_clearLog=function(){if(null===D)return[];var a=D;D=null;return a};exports.unstable_continueExecution=function(){t||r||(t=!0,y=N)}; -exports.unstable_flushAll=function(){if(null!==D)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");P();if(null!==D)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");};exports.unstable_flushAllWithoutAsserting=P; -exports.unstable_flushExpired=function(){if(H)throw Error("Already flushing work.");if(null!==y){H=!0;try{y(!1,x)||(y=null)}finally{H=!1}}};exports.unstable_flushNumberOfYields=function(a){if(H)throw Error("Already flushing work.");if(null!==y){var b=y;E=a;H=!0;try{a=!0;do a=b(!0,x);while(a&&!G);a||(y=null)}finally{E=-1,H=G=!1}}}; -exports.unstable_flushUntilNextPaint=function(){if(H)throw Error("Already flushing work.");if(null!==y){var a=y;J=!0;I=!1;H=!0;try{var b=!0;do b=a(!0,x);while(b&&!G);b||(y=null)}finally{H=G=J=!1}}return!1};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return q};exports.unstable_getFirstCallbackNode=function(){return h(l)};exports.unstable_hasPendingWork=function(){return null!==y}; -exports.unstable_next=function(a){switch(q){case 1:case 2:case 3:var b=3;break;default:b=q}var c=q;q=b;try{return a()}finally{q=c}};exports.unstable_now=function(){return x};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){I=!0};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=q;q=a;try{return b()}finally{q=c}}; -exports.unstable_scheduleCallback=function(a,b,c){var d=x;"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0d?(a.sortIndex=c,f(m,a),null===h(l)&&a===h(m)&&(w?(B=null,C=-1):w=!0,B=M,C=x+(c-d))):(a.sortIndex=e,f(l,a),t||r||(t=!0,y=N));return a}; -exports.unstable_setDisableYieldValue=function(a){K=a};exports.unstable_shouldYield=O;exports.unstable_wrapCallback=function(a){var b=q;return function(){var c=q;q=b;try{return a.apply(this,arguments)}finally{q=c}}}; diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.development.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.development.js deleted file mode 100644 index 0c443feabc9f7..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.development.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @license React - * scheduler-unstable_post_task.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -var perf = window.performance; -var setTimeout = window.setTimeout; // Use experimental Chrome Scheduler postTask API. - -var scheduler = global.scheduler; -var getCurrentTime = perf.now.bind(perf); -var unstable_now = getCurrentTime; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var yieldInterval = 5; -var deadline = 0; -var currentPriorityLevel_DEPRECATED = NormalPriority; // `isInputPending` is not available. Since we have no way of knowing if -// there's pending input, always yield at the end of the frame. - -function unstable_shouldYield() { - return getCurrentTime() >= deadline; -} -function unstable_requestPaint() {// Since we yield every frame regardless, `requestPaint` has no effect. -} -function unstable_scheduleCallback(priorityLevel, callback, options) { - var postTaskPriority; - - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - postTaskPriority = 'user-blocking'; - break; - - case LowPriority: - case NormalPriority: - postTaskPriority = 'user-visible'; - break; - - case IdlePriority: - postTaskPriority = 'background'; - break; - - default: - postTaskPriority = 'user-visible'; - break; - } - - var controller = new TaskController(); - var postTaskOptions = { - priority: postTaskPriority, - delay: typeof options === 'object' && options !== null ? options.delay : 0, - signal: controller.signal - }; - var node = { - _controller: controller - }; - scheduler.postTask(runTask.bind(null, priorityLevel, postTaskPriority, node, callback), postTaskOptions).catch(handleAbortError); - return node; -} - -function runTask(priorityLevel, postTaskPriority, node, callback) { - deadline = getCurrentTime() + yieldInterval; - - try { - currentPriorityLevel_DEPRECATED = priorityLevel; - var didTimeout_DEPRECATED = false; - var result = callback(didTimeout_DEPRECATED); - - if (typeof result === 'function') { - // Assume this is a continuation - var continuation = result; - var continuationController = new TaskController(); - var continuationOptions = { - priority: postTaskPriority, - signal: continuationController.signal - }; // Update the original callback node's controller, since even though we're - // posting a new task, conceptually it's the same one. - - node._controller = continuationController; - var nextTask = runTask.bind(null, priorityLevel, postTaskPriority, node, continuation); - - if (scheduler.yield !== undefined) { - scheduler.yield(continuationOptions).then(nextTask).catch(handleAbortError); - } else { - scheduler.postTask(nextTask, continuationOptions).catch(handleAbortError); - } - } - } catch (error) { - // We're inside a `postTask` promise. If we don't handle this error, then it - // will trigger an "Unhandled promise rejection" error. We don't want that, - // but we do want the default error reporting behavior that normal - // (non-Promise) tasks get for unhandled errors. - // - // So we'll re-throw the error inside a regular browser task. - setTimeout(function () { - throw error; - }); - } finally { - currentPriorityLevel_DEPRECATED = NormalPriority; - } -} - -function handleAbortError(error) {// Abort errors are an implementation detail. We don't expose the - // TaskController to the user, nor do we expose the promise that is returned - // from `postTask`. So we should suppress them, since there's no way for the - // user to handle them. -} - -function unstable_cancelCallback(node) { - var controller = node._controller; - controller.abort(); -} -function unstable_runWithPriority(priorityLevel, callback) { - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = priorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } -} -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel_DEPRECATED; -} -function unstable_next(callback) { - var priorityLevel; - - switch (currentPriorityLevel_DEPRECATED) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel_DEPRECATED; - break; - } - - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = priorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } -} -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel_DEPRECATED; - return function () { - var previousPriorityLevel = currentPriorityLevel_DEPRECATED; - currentPriorityLevel_DEPRECATED = parentPriorityLevel; - - try { - return callback(); - } finally { - currentPriorityLevel_DEPRECATED = previousPriorityLevel; - } - }; -} -function unstable_forceFrameRate() {} -function unstable_pauseExecution() {} -function unstable_continueExecution() {} -function unstable_getFirstCallbackNode() { - return null; -} // Currently no profiling build - -var unstable_Profiling = null; - -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = unstable_forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_now = unstable_now; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = unstable_requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = unstable_shouldYield; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.production.min.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.production.min.js deleted file mode 100644 index 935414e26913b..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler-unstable_post_task.production.min.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license React - * scheduler-unstable_post_task.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';var a=window.performance,g=window.setTimeout,h=global.scheduler,k=a.now.bind(a),l=0,m=3;function n(c,d,b,f){l=k()+5;try{m=c;var e=f(!1);if("function"===typeof e){var p=new TaskController,q={priority:d,signal:p.signal};b._controller=p;var r=n.bind(null,c,d,b,e);void 0!==h.yield?h.yield(q).then(r).catch(t):h.postTask(r,q).catch(t)}}catch(u){g(function(){throw u;})}finally{m=3}}function t(){}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1; -exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(c){c._controller.abort()};exports.unstable_continueExecution=function(){};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return m};exports.unstable_getFirstCallbackNode=function(){return null}; -exports.unstable_next=function(c){switch(m){case 1:case 2:case 3:var d=3;break;default:d=m}var b=m;m=d;try{return c()}finally{m=b}};exports.unstable_now=k;exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(c,d){var b=m;m=c;try{return d()}finally{m=b}}; -exports.unstable_scheduleCallback=function(c,d,b){switch(c){case 1:case 2:var f="user-blocking";break;case 4:case 3:f="user-visible";break;case 5:f="background";break;default:f="user-visible"}var e=new TaskController;b={priority:f,delay:"object"===typeof b&&null!==b?b.delay:0,signal:e.signal};e={_controller:e};h.postTask(n.bind(null,c,f,e,d),b).catch(t);return e};exports.unstable_shouldYield=function(){return k()>=l}; -exports.unstable_wrapCallback=function(c){var d=m;return function(){var b=m;m=d;try{return c()}finally{m=b}}}; diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.development.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.development.js deleted file mode 100644 index a077ed35315ae..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.development.js +++ /dev/null @@ -1,639 +0,0 @@ -/** - * @license React - * scheduler.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); -} - var enableSchedulerDebugging = false; -var enableProfiling = false; -var frameYieldMs = 5; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -exports.unstable_now = void 0; -var hasPerformanceNow = // $FlowFixMe[method-unbinding] -typeof performance === 'object' && typeof performance.now === 'function'; - -if (hasPerformanceNow) { - var localPerformance = performance; - - exports.unstable_now = function () { - return localPerformance.now(); - }; -} else { - var localDate = Date; - var initialTime = localDate.now(); - - exports.unstable_now = function () { - return localDate.now() - initialTime; - }; -} // Max 31 bit integer. The max integer size in V8 for 32-bit systems. -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. - -var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; -var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; -var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom - -typeof navigator !== 'undefined' && // $FlowFixMe[prop-missing] -navigator.scheduling !== undefined && // $FlowFixMe[incompatible-type] -navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = exports.unstable_now(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - return true; - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_runWithPriority(priorityLevel, eventHandler) { - switch (priorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - case LowPriority: - case IdlePriority: - break; - - default: - priorityLevel = NormalPriority; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_next(eventHandler) { - var priorityLevel; - - switch (currentPriorityLevel) { - case ImmediatePriority: - case UserBlockingPriority: - case NormalPriority: - // Shift down to normal priority - priorityLevel = NormalPriority; - break; - - default: - // Anything lower than normal priority should remain at the current level. - priorityLevel = currentPriorityLevel; - break; - } - - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = priorityLevel; - - try { - return eventHandler(); - } finally { - currentPriorityLevel = previousPriorityLevel; - } -} - -function unstable_wrapCallback(callback) { - var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return] - // $FlowFixMe[missing-this-annot] - - return function () { - // This is a fork of runWithPriority, inlined for performance. - var previousPriorityLevel = currentPriorityLevel; - currentPriorityLevel = parentPriorityLevel; - - try { - return callback.apply(this, arguments); - } finally { - currentPriorityLevel = previousPriorityLevel; - } - }; -} - -function unstable_scheduleCallback(priorityLevel, callback, options) { - var currentTime = exports.unstable_now(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_pauseExecution() { -} - -function unstable_continueExecution() { - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } -} - -function unstable_getFirstCallbackNode() { - return peek(taskQueue); -} - -function unstable_cancelCallback(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel() { - return currentPriorityLevel; -} - -var isMessageLoopRunning = false; -var scheduledHostCallback = null; -var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var frameInterval = frameYieldMs; -var startTime = -1; - -function shouldYieldToHost() { - var timeElapsed = exports.unstable_now() - startTime; - - if (timeElapsed < frameInterval) { - // The main thread has only been blocked for a really short amount of time; - // smaller than a single frame. Don't yield yet. - return false; - } // The main thread has been blocked for a non-negligible amount of time. We - - - return true; -} - -function requestPaint() { - -} - -function forceFrameRate(fps) { - if (fps < 0 || fps > 125) { - // Using console['error'] to evade Babel and ESLint - console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported'); - return; - } - - if (fps > 0) { - frameInterval = Math.floor(1000 / fps); - } else { - // reset the framerate - frameInterval = frameYieldMs; - } -} - -var performWorkUntilDeadline = function () { - if (scheduledHostCallback !== null) { - var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread - // has been blocked. - - startTime = currentTime; - var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the - // error can be observed. - // - // Intentionally not using a try-catch, since that makes some debugging - // techniques harder. Instead, if `scheduledHostCallback` errors, then - // `hasMoreWork` will remain true, and we'll continue the work loop. - - var hasMoreWork = true; - - try { - // $FlowFixMe[not-a-function] found when upgrading Flow - hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); - } finally { - if (hasMoreWork) { - // If there's more work, schedule the next message event at the end - // of the preceding one. - schedulePerformWorkUntilDeadline(); - } else { - isMessageLoopRunning = false; - scheduledHostCallback = null; - } - } - } else { - isMessageLoopRunning = false; - } // Yielding to the browser will give it a chance to paint, so we can -}; - -var schedulePerformWorkUntilDeadline; - -if (typeof localSetImmediate === 'function') { - // Node.js and old IE. - // There's a few reasons for why we prefer setImmediate. - // - // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. - // (Even though this is a DOM fork of the Scheduler, you could get here - // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) - // https://github.com/facebook/react/issues/20756 - // - // But also, it runs earlier which is the semantic we want. - // If other browsers ever implement it, it's better to use it. - // Although both of these would be inferior to native scheduling. - schedulePerformWorkUntilDeadline = function () { - localSetImmediate(performWorkUntilDeadline); - }; -} else if (typeof MessageChannel !== 'undefined') { - // DOM and Worker environments. - // We prefer MessageChannel because of the 4ms setTimeout clamping. - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = performWorkUntilDeadline; - - schedulePerformWorkUntilDeadline = function () { - port.postMessage(null); - }; -} else { - // We should only fallback here in non-browser environments. - schedulePerformWorkUntilDeadline = function () { - // $FlowFixMe[not-a-function] nullable value - localSetTimeout(performWorkUntilDeadline, 0); - }; -} - -function requestHostCallback(callback) { - scheduledHostCallback = callback; - - if (!isMessageLoopRunning) { - isMessageLoopRunning = true; - schedulePerformWorkUntilDeadline(); - } -} - -function requestHostTimeout(callback, ms) { - // $FlowFixMe[not-a-function] nullable value - taskTimeoutID = localSetTimeout(function () { - callback(exports.unstable_now()); - }, ms); -} - -function cancelHostTimeout() { - // $FlowFixMe[not-a-function] nullable value - localClearTimeout(taskTimeoutID); - taskTimeoutID = -1; -} -var unstable_Profiling = null; - -exports.unstable_IdlePriority = IdlePriority; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_LowPriority = LowPriority; -exports.unstable_NormalPriority = NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = shouldYieldToHost; -exports.unstable_wrapCallback = unstable_wrapCallback; - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); -} - - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.development.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.development.js deleted file mode 100644 index aa057d37d2b25..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.development.js +++ /dev/null @@ -1,552 +0,0 @@ -/** - * @license React - * scheduler.native.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -var enableSchedulerDebugging = false; -var enableProfiling = false; -var frameYieldMs = 5; - -function push(heap, node) { - var index = heap.length; - heap.push(node); - siftUp(heap, node, index); -} -function peek(heap) { - return heap.length === 0 ? null : heap[0]; -} -function pop(heap) { - if (heap.length === 0) { - return null; - } - - var first = heap[0]; - var last = heap.pop(); - - if (last !== first) { - heap[0] = last; - siftDown(heap, last, 0); - } - - return first; -} - -function siftUp(heap, node, i) { - var index = i; - - while (index > 0) { - var parentIndex = index - 1 >>> 1; - var parent = heap[parentIndex]; - - if (compare(parent, node) > 0) { - // The parent is larger. Swap positions. - heap[parentIndex] = node; - heap[index] = parent; - index = parentIndex; - } else { - // The parent is smaller. Exit. - return; - } - } -} - -function siftDown(heap, node, i) { - var index = i; - var length = heap.length; - var halfLength = length >>> 1; - - while (index < halfLength) { - var leftIndex = (index + 1) * 2 - 1; - var left = heap[leftIndex]; - var rightIndex = leftIndex + 1; - var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. - - if (compare(left, node) < 0) { - if (rightIndex < length && compare(right, left) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - heap[index] = left; - heap[leftIndex] = node; - index = leftIndex; - } - } else if (rightIndex < length && compare(right, node) < 0) { - heap[index] = right; - heap[rightIndex] = node; - index = rightIndex; - } else { - // Neither child is smaller. Exit. - return; - } - } -} - -function compare(a, b) { - // Compare sort index first, then task id. - var diff = a.sortIndex - b.sortIndex; - return diff !== 0 ? diff : a.id - b.id; -} - -// TODO: Use symbols? -var ImmediatePriority = 1; -var UserBlockingPriority = 2; -var NormalPriority = 3; -var LowPriority = 4; -var IdlePriority = 5; - -function markTaskErrored(task, ms) { -} - -/* eslint-disable no-var */ -var getCurrentTime; -var hasPerformanceNow = // $FlowFixMe[method-unbinding] -typeof performance === 'object' && typeof performance.now === 'function'; - -if (hasPerformanceNow) { - var localPerformance = performance; - - getCurrentTime = function () { - return localPerformance.now(); - }; -} else { - var localDate = Date; - var initialTime = localDate.now(); - - getCurrentTime = function () { - return localDate.now() - initialTime; - }; -} // Max 31 bit integer. The max integer size in V8 for 32-bit systems. -// Math.pow(2, 30) - 1 -// 0b111111111111111111111111111111 - - -var maxSigned31BitInt = 1073741823; // Times out immediately - -var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out - -var USER_BLOCKING_PRIORITY_TIMEOUT = 250; -var NORMAL_PRIORITY_TIMEOUT = 5000; -var LOW_PRIORITY_TIMEOUT = 10000; // Never times out - -var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap - -var taskQueue = []; -var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. - -var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. -var currentTask = null; -var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. - -var isPerformingWork = false; -var isHostCallbackScheduled = false; -var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. - -var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; -var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; -var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom - -typeof navigator !== 'undefined' && // $FlowFixMe[prop-missing] -navigator.scheduling !== undefined && // $FlowFixMe[incompatible-type] -navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; - -function advanceTimers(currentTime) { - // Check for tasks that are no longer delayed and add them to the queue. - var timer = peek(timerQueue); - - while (timer !== null) { - if (timer.callback === null) { - // Timer was cancelled. - pop(timerQueue); - } else if (timer.startTime <= currentTime) { - // Timer fired. Transfer to the task queue. - pop(timerQueue); - timer.sortIndex = timer.expirationTime; - push(taskQueue, timer); - } else { - // Remaining timers are pending. - return; - } - - timer = peek(timerQueue); - } -} - -function handleTimeout(currentTime) { - isHostTimeoutScheduled = false; - advanceTimers(currentTime); - - if (!isHostCallbackScheduled) { - if (peek(taskQueue) !== null) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - } - } -} - -function flushWork(hasTimeRemaining, initialTime) { - - - isHostCallbackScheduled = false; - - if (isHostTimeoutScheduled) { - // We scheduled a timeout but it's no longer needed. Cancel it. - isHostTimeoutScheduled = false; - cancelHostTimeout(); - } - - isPerformingWork = true; - var previousPriorityLevel = currentPriorityLevel; - - try { - var currentTime; if (enableProfiling) ; else { - // No catch in prod code path. - return workLoop(hasTimeRemaining, initialTime); - } - } finally { - currentTask = null; - currentPriorityLevel = previousPriorityLevel; - isPerformingWork = false; - } -} - -function workLoop(hasTimeRemaining, initialTime) { - var currentTime = initialTime; - advanceTimers(currentTime); - currentTask = peek(taskQueue); - - while (currentTask !== null && !(enableSchedulerDebugging )) { - if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { - // This currentTask hasn't expired, and we've reached the deadline. - break; - } // $FlowFixMe[incompatible-use] found when upgrading Flow - - - var callback = currentTask.callback; - - if (typeof callback === 'function') { - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow - - currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow - - var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; - - var continuationCallback = callback(didUserCallbackTimeout); - currentTime = getCurrentTime(); - - if (typeof continuationCallback === 'function') { - // If a continuation is returned, immediately yield to the main thread - // regardless of how much time is left in the current time slice. - // $FlowFixMe[incompatible-use] found when upgrading Flow - currentTask.callback = continuationCallback; - - advanceTimers(currentTime); - return true; - } else { - - if (currentTask === peek(taskQueue)) { - pop(taskQueue); - } - - advanceTimers(currentTime); - } - } else { - pop(taskQueue); - } - - currentTask = peek(taskQueue); - } // Return whether there's additional work - - - if (currentTask !== null) { - return true; - } else { - var firstTimer = peek(timerQueue); - - if (firstTimer !== null) { - requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); - } - - return false; - } -} - -function unstable_scheduleCallback$1(priorityLevel, callback, options) { - var currentTime = getCurrentTime(); - var startTime; - - if (typeof options === 'object' && options !== null) { - var delay = options.delay; - - if (typeof delay === 'number' && delay > 0) { - startTime = currentTime + delay; - } else { - startTime = currentTime; - } - } else { - startTime = currentTime; - } - - var timeout; - - switch (priorityLevel) { - case ImmediatePriority: - timeout = IMMEDIATE_PRIORITY_TIMEOUT; - break; - - case UserBlockingPriority: - timeout = USER_BLOCKING_PRIORITY_TIMEOUT; - break; - - case IdlePriority: - timeout = IDLE_PRIORITY_TIMEOUT; - break; - - case LowPriority: - timeout = LOW_PRIORITY_TIMEOUT; - break; - - case NormalPriority: - default: - timeout = NORMAL_PRIORITY_TIMEOUT; - break; - } - - var expirationTime = startTime + timeout; - var newTask = { - id: taskIdCounter++, - callback: callback, - priorityLevel: priorityLevel, - startTime: startTime, - expirationTime: expirationTime, - sortIndex: -1 - }; - - if (startTime > currentTime) { - // This is a delayed task. - newTask.sortIndex = startTime; - push(timerQueue, newTask); - - if (peek(taskQueue) === null && newTask === peek(timerQueue)) { - // All tasks are delayed, and this is the task with the earliest delay. - if (isHostTimeoutScheduled) { - // Cancel an existing timeout. - cancelHostTimeout(); - } else { - isHostTimeoutScheduled = true; - } // Schedule a timeout. - - - requestHostTimeout(handleTimeout, startTime - currentTime); - } - } else { - newTask.sortIndex = expirationTime; - push(taskQueue, newTask); - // wait until the next time we yield. - - - if (!isHostCallbackScheduled && !isPerformingWork) { - isHostCallbackScheduled = true; - requestHostCallback(flushWork); - } - } - - return newTask; -} - -function unstable_cancelCallback$1(task) { - // remove from the queue because you can't remove arbitrary nodes from an - // array based heap, only the first one.) - - - task.callback = null; -} - -function unstable_getCurrentPriorityLevel$1() { - return currentPriorityLevel; -} - -var isMessageLoopRunning = false; -var scheduledHostCallback = null; -var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main -// thread, like user events. By default, it yields multiple times per frame. -// It does not attempt to align with frame boundaries, since most tasks don't -// need to be frame aligned; for those that do, use requestAnimationFrame. - -var frameInterval = frameYieldMs; -var startTime = -1; - -function shouldYieldToHost() { - var timeElapsed = getCurrentTime() - startTime; - - if (timeElapsed < frameInterval) { - // The main thread has only been blocked for a really short amount of time; - // smaller than a single frame. Don't yield yet. - return false; - } // The main thread has been blocked for a non-negligible amount of time. We - - - return true; -} - -function requestPaint() { - -} - -var performWorkUntilDeadline = function () { - if (scheduledHostCallback !== null) { - var currentTime = getCurrentTime(); // Keep track of the start time so we can measure how long the main thread - // has been blocked. - - startTime = currentTime; - var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the - // error can be observed. - // - // Intentionally not using a try-catch, since that makes some debugging - // techniques harder. Instead, if `scheduledHostCallback` errors, then - // `hasMoreWork` will remain true, and we'll continue the work loop. - - var hasMoreWork = true; - - try { - // $FlowFixMe[not-a-function] found when upgrading Flow - hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); - } finally { - if (hasMoreWork) { - // If there's more work, schedule the next message event at the end - // of the preceding one. - schedulePerformWorkUntilDeadline(); - } else { - isMessageLoopRunning = false; - scheduledHostCallback = null; - } - } - } else { - isMessageLoopRunning = false; - } // Yielding to the browser will give it a chance to paint, so we can -}; - -var schedulePerformWorkUntilDeadline; - -if (typeof localSetImmediate === 'function') { - // Node.js and old IE. - // There's a few reasons for why we prefer setImmediate. - // - // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. - // (Even though this is a DOM fork of the Scheduler, you could get here - // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) - // https://github.com/facebook/react/issues/20756 - // - // But also, it runs earlier which is the semantic we want. - // If other browsers ever implement it, it's better to use it. - // Although both of these would be inferior to native scheduling. - schedulePerformWorkUntilDeadline = function () { - localSetImmediate(performWorkUntilDeadline); - }; -} else if (typeof MessageChannel !== 'undefined') { - // DOM and Worker environments. - // We prefer MessageChannel because of the 4ms setTimeout clamping. - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = performWorkUntilDeadline; - - schedulePerformWorkUntilDeadline = function () { - port.postMessage(null); - }; -} else { - // We should only fallback here in non-browser environments. - schedulePerformWorkUntilDeadline = function () { - // $FlowFixMe[not-a-function] nullable value - localSetTimeout(performWorkUntilDeadline, 0); - }; -} - -function requestHostCallback(callback) { - scheduledHostCallback = callback; - - if (!isMessageLoopRunning) { - isMessageLoopRunning = true; - schedulePerformWorkUntilDeadline(); - } -} - -function requestHostTimeout(callback, ms) { - // $FlowFixMe[not-a-function] nullable value - taskTimeoutID = localSetTimeout(function () { - callback(getCurrentTime()); - }, ms); -} - -function cancelHostTimeout() { - // $FlowFixMe[not-a-function] nullable value - localClearTimeout(taskTimeoutID); - taskTimeoutID = -1; -} - -// https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp - -var unstable_UserBlockingPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_UserBlockingPriority : UserBlockingPriority; -var unstable_NormalPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_NormalPriority : NormalPriority; -var unstable_IdlePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_IdlePriority : IdlePriority; -var unstable_LowPriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_LowPriority : LowPriority; -var unstable_ImmediatePriority = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_ImmediatePriority : ImmediatePriority; -var unstable_scheduleCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_scheduleCallback : unstable_scheduleCallback$1; -var unstable_cancelCallback = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_cancelCallback : unstable_cancelCallback$1; -var unstable_getCurrentPriorityLevel = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_getCurrentPriorityLevel : unstable_getCurrentPriorityLevel$1; -var unstable_shouldYield = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_shouldYield : shouldYieldToHost; -var unstable_requestPaint = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_requestPaint : requestPaint; -var unstable_now = typeof nativeRuntimeScheduler !== 'undefined' ? nativeRuntimeScheduler.unstable_now : getCurrentTime; // These were never implemented on the native scheduler because React never calls them. -// For consistency, let's disable them altogether and make them throw. - -var unstable_next = throwNotImplemented; -var unstable_runWithPriority = throwNotImplemented; -var unstable_wrapCallback = throwNotImplemented; -var unstable_continueExecution = throwNotImplemented; -var unstable_pauseExecution = throwNotImplemented; -var unstable_getFirstCallbackNode = throwNotImplemented; -var unstable_forceFrameRate = throwNotImplemented; -var unstable_Profiling = null; - -function throwNotImplemented() { - throw Error('Not implemented.'); -} // Flow magic to verify the exports of this file match the original version. - -exports.unstable_IdlePriority = unstable_IdlePriority; -exports.unstable_ImmediatePriority = unstable_ImmediatePriority; -exports.unstable_LowPriority = unstable_LowPriority; -exports.unstable_NormalPriority = unstable_NormalPriority; -exports.unstable_Profiling = unstable_Profiling; -exports.unstable_UserBlockingPriority = unstable_UserBlockingPriority; -exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_forceFrameRate = unstable_forceFrameRate; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_next = unstable_next; -exports.unstable_now = unstable_now; -exports.unstable_pauseExecution = unstable_pauseExecution; -exports.unstable_requestPaint = unstable_requestPaint; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_scheduleCallback = unstable_scheduleCallback; -exports.unstable_shouldYield = unstable_shouldYield; -exports.unstable_wrapCallback = unstable_wrapCallback; - })(); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.production.min.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.production.min.js deleted file mode 100644 index 4df62008ab6d4..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.native.production.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license React - * scheduler.native.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(E,c))ng(A,E)?(a[d]=A,a[n]=c,d=n):(a[d]=E,a[m]=c,d=m);else if(ng(A,c))a[d]=A,a[n]=c,d=n;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var l;if("object"===typeof performance&&"function"===typeof performance.now){var p=performance;l=function(){return p.now()}}else{var q=Date,r=q.now();l=function(){return q.now()-r}}var u=[],v=[],w=1,x=null,y=3,z=!1,B=!1,C=!1,D="function"===typeof setTimeout?setTimeout:null,F="function"===typeof clearTimeout?clearTimeout:null,G="undefined"!==typeof setImmediate?setImmediate:null; -"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function H(a){for(var b=h(v);null!==b;){if(null===b.callback)k(v);else if(b.startTime<=a)k(v),b.sortIndex=b.expirationTime,f(u,b);else break;b=h(v)}}function I(a){C=!1;H(a);if(!B)if(null!==h(u))B=!0,J=K,L||(L=!0,M());else{var b=h(v);null!==b&&N(I,b.startTime-a)}} -function K(a,b){B=!1;C&&(C=!1,F(O),O=-1);z=!0;var c=y;try{a:{H(b);for(x=h(u);null!==x&&(!(x.expirationTime>b)||a&&!P());){var d=x.callback;if("function"===typeof d){x.callback=null;y=x.priorityLevel;var e=d(x.expirationTime<=b);b=l();if("function"===typeof e){x.callback=e;H(b);var t=!0;break a}else x===h(u)&&k(u),H(b)}else k(u);x=h(u)}if(null!==x)t=!0;else{var m=h(v);null!==m&&N(I,m.startTime-b);t=!1}}return t}finally{x=null,y=c,z=!1}} -function Q(a,b,c){var d=l();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0d?(a.sortIndex=c,f(v,a),null===h(u)&&a===h(v)&&(C?(F(O),O=-1):C=!0,N(I,c-d))):(a.sortIndex=e,f(u,a),B||z||(B=!0,J=K,L||(L=!0,M())));return a}function R(a){a.callback=null}function S(){return y} -var L=!1,J=null,O=-1,T=-1;function P(){return 5>l()-T?!1:!0}function U(){}function V(){if(null!==J){var a=l();T=a;var b=!0;try{b=J(!0,a)}finally{b?M():(L=!1,J=null)}}else L=!1}var M;if("function"===typeof G)M=function(){G(V)};else if("undefined"!==typeof MessageChannel){var W=new MessageChannel,X=W.port2;W.port1.onmessage=V;M=function(){X.postMessage(null)}}else M=function(){D(V,0)};function N(a,b){O=D(function(){a(l())},b)} -var Y="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_UserBlockingPriority:2,aa="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_NormalPriority:3,ba="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_LowPriority:4,ca="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_ImmediatePriority:1,da="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_scheduleCallback:Q,ea="undefined"!== -typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_cancelCallback:R,fa="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_getCurrentPriorityLevel:S,ha="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_shouldYield:P,ia="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_requestPaint:U,ja="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_now:l; -function Z(){throw Error("Not implemented.");}exports.unstable_IdlePriority="undefined"!==typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_IdlePriority:5;exports.unstable_ImmediatePriority=ca;exports.unstable_LowPriority=ba;exports.unstable_NormalPriority=aa;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=Y;exports.unstable_cancelCallback=ea;exports.unstable_continueExecution=Z;exports.unstable_forceFrameRate=Z;exports.unstable_getCurrentPriorityLevel=fa; -exports.unstable_getFirstCallbackNode=Z;exports.unstable_next=Z;exports.unstable_now=ja;exports.unstable_pauseExecution=Z;exports.unstable_requestPaint=ia;exports.unstable_runWithPriority=Z;exports.unstable_scheduleCallback=da;exports.unstable_shouldYield=ha;exports.unstable_wrapCallback=Z; diff --git a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.production.min.js b/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.production.min.js deleted file mode 100644 index db83442d9c9dd..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/cjs/scheduler.production.min.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(D,c))ng(x,D)?(a[d]=x,a[n]=c,d=n):(a[d]=D,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}exports.unstable_now=void 0;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,r=p.now();exports.unstable_now=function(){return p.now()-r}} -var t=[],u=[],v=1,w=null,y=3,z=!1,A=!1,B=!1,C="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending?navigator.scheduling.isInputPending.bind(navigator.scheduling):null; -function G(a){for(var b=h(u);null!==b;){if(null===b.callback)k(u);else if(b.startTime<=a)k(u),b.sortIndex=b.expirationTime,f(t,b);else break;b=h(u)}}function H(a){B=!1;G(a);if(!A)if(null!==h(t))A=!0,I(J);else{var b=h(u);null!==b&&K(H,b.startTime-a)}} -function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{a:{G(b);for(w=h(t);null!==w&&(!(w.expirationTime>b)||a&&!M());){var d=w.callback;if("function"===typeof d){w.callback=null;y=w.priorityLevel;var e=d(w.expirationTime<=b);b=exports.unstable_now();if("function"===typeof e){w.callback=e;G(b);var q=!0;break a}else w===h(t)&&k(t),G(b)}else k(t);w=h(t)}if(null!==w)q=!0;else{var m=h(u);null!==m&&K(H,m.startTime-b);q=!1}}return q}finally{w=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1; -function M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(u,a),null===h(t)&&a===h(u)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(t,a),A||z||(A=!0,I(J)));return a}; -exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}}; diff --git a/packages/next/vendored/node_modules/scheduler-vendored/index.js b/packages/next/vendored/node_modules/scheduler-vendored/index.js deleted file mode 100644 index 77770b0c219e2..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler.production.min.js'); -} else { - module.exports = require('./cjs/scheduler.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/index.native.js b/packages/next/vendored/node_modules/scheduler-vendored/index.native.js deleted file mode 100644 index 4b65547421073..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/index.native.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler.native.production.min.js'); -} else { - module.exports = require('./cjs/scheduler.native.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/package.json b/packages/next/vendored/node_modules/scheduler-vendored/package.json deleted file mode 100644 index 37e41c00324cd..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "scheduler-vendored", - "version": "0.24.0-canary-546fe4681-20230713", - "dependencies": { - "loose-envify": "^1.1.0" - } -} \ No newline at end of file diff --git a/packages/next/vendored/node_modules/scheduler-vendored/unstable_mock.js b/packages/next/vendored/node_modules/scheduler-vendored/unstable_mock.js deleted file mode 100644 index e72ea3186f005..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/unstable_mock.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler-unstable_mock.production.min.js'); -} else { - module.exports = require('./cjs/scheduler-unstable_mock.development.js'); -} diff --git a/packages/next/vendored/node_modules/scheduler-vendored/unstable_post_task.js b/packages/next/vendored/node_modules/scheduler-vendored/unstable_post_task.js deleted file mode 100644 index 62ecbd5a072bc..0000000000000 --- a/packages/next/vendored/node_modules/scheduler-vendored/unstable_post_task.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -if (process.env.NODE_ENV === 'production') { - module.exports = require('./cjs/scheduler-unstable_post_task.production.min.js'); -} else { - module.exports = require('./cjs/scheduler-unstable_post_task.development.js'); -} diff --git a/packages/next/vendored/node_modules/server-only-vendored/empty.js b/packages/next/vendored/node_modules/server-only-vendored/empty.js deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/packages/next/vendored/node_modules/server-only-vendored/index.js b/packages/next/vendored/node_modules/server-only-vendored/index.js deleted file mode 100644 index e480b5cf2285a..0000000000000 --- a/packages/next/vendored/node_modules/server-only-vendored/index.js +++ /dev/null @@ -1,4 +0,0 @@ -throw new Error( - "This module cannot be imported from a Client Component module. " + - "It should only be used from a Server Component." -); diff --git a/packages/next/vendored/node_modules/server-only-vendored/package.json b/packages/next/vendored/node_modules/server-only-vendored/package.json deleted file mode 100644 index ce816b495fb64..0000000000000 --- a/packages/next/vendored/node_modules/server-only-vendored/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "server-only-vendored", - "description": "This is a marker package to indicate that a module can only be used in Server Components.", - "keywords": [ - "react" - ], - "version": "0.0.1", - "homepage": "https://reactjs.org/", - "bugs": "https://github.com/facebook/react/issues", - "license": "MIT", - "files": [ - "index.js", - "empty.js" - ], - "main": "index.js", - "exports": { - ".": { - "react-server": "./empty.js", - "default": "./index.js" - } - } -} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7e69f08b2d1d9..910cffc912768 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -411,8 +411,8 @@ importers: specifier: npm:react@17.0.2 version: /react@17.0.2 react-builtin: - specifier: npm:react@18.3.0-canary-546fe4681-20230713 - version: /react@18.3.0-canary-546fe4681-20230713 + specifier: npm:react@18.3.0-canary-9377e1010-20230712 + version: /react@18.3.0-canary-9377e1010-20230712 react-dom: specifier: 18.2.0 version: 18.2.0(react@18.2.0) @@ -420,20 +420,20 @@ importers: specifier: npm:react-dom@17.0.2 version: /react-dom@17.0.2(react@18.2.0) react-dom-builtin: - specifier: npm:react-dom@18.3.0-canary-546fe4681-20230713 - version: /react-dom@18.3.0-canary-546fe4681-20230713(react@18.2.0) + specifier: npm:react-dom@18.3.0-canary-9377e1010-20230712 + version: /react-dom@18.3.0-canary-9377e1010-20230712(react@18.2.0) react-dom-experimental-builtin: - specifier: npm:react-dom@0.0.0-experimental-546fe4681-20230713 - version: /react-dom@0.0.0-experimental-546fe4681-20230713(react@18.2.0) + specifier: npm:react-dom@0.0.0-experimental-9377e1010-20230712 + version: /react-dom@0.0.0-experimental-9377e1010-20230712(react@18.2.0) react-experimental-builtin: - specifier: npm:react@0.0.0-experimental-546fe4681-20230713 - version: /react@0.0.0-experimental-546fe4681-20230713 + specifier: npm:react@0.0.0-experimental-9377e1010-20230712 + version: /react@0.0.0-experimental-9377e1010-20230712 react-server-dom-webpack: - specifier: 18.3.0-canary-546fe4681-20230713 - version: 18.3.0-canary-546fe4681-20230713(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0) + specifier: 18.3.0-canary-9377e1010-20230712 + version: 18.3.0-canary-9377e1010-20230712(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0) react-server-dom-webpack-experimental: - specifier: npm:react-server-dom-webpack@0.0.0-experimental-546fe4681-20230713 - version: /react-server-dom-webpack@0.0.0-experimental-546fe4681-20230713(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0) + specifier: npm:react-server-dom-webpack@0.0.0-experimental-9377e1010-20230712 + version: /react-server-dom-webpack@0.0.0-experimental-9377e1010-20230712(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0) react-ssr-prepass: specifier: 1.0.8 version: 1.0.8(react-is@16.13.1)(react@18.2.0) @@ -462,11 +462,11 @@ importers: specifier: 0.10.1 version: 0.10.1 scheduler-builtin: - specifier: npm:scheduler@0.24.0-canary-546fe4681-20230713 - version: /scheduler@0.24.0-canary-546fe4681-20230713 + specifier: npm:scheduler@0.24.0-canary-9377e1010-20230712 + version: /scheduler@0.24.0-canary-9377e1010-20230712 scheduler-experimental-builtin: - specifier: npm:scheduler@0.0.0-experimental-546fe4681-20230713 - version: /scheduler@0.0.0-experimental-546fe4681-20230713 + specifier: npm:scheduler@0.0.0-experimental-9377e1010-20230712 + version: /scheduler@0.0.0-experimental-9377e1010-20230712 seedrandom: specifier: 3.0.5 version: 3.0.5 @@ -726,37 +726,6 @@ importers: zod: specifier: 3.21.4 version: 3.21.4 - optionalDependencies: - client-only-vendored: - specifier: file:vendored/node_modules/client-only-vendored - version: file:packages/next/vendored/node_modules/client-only-vendored - react-dom-experimental-vendored: - specifier: file:vendored/node_modules/react-dom-experimental-vendored - version: file:packages/next/vendored/node_modules/react-dom-experimental-vendored - react-dom-vendored: - specifier: file:vendored/node_modules/react-dom-vendored - version: file:packages/next/vendored/node_modules/react-dom-vendored - react-experimental-vendored: - specifier: file:vendored/node_modules/react-experimental-vendored - version: file:packages/next/vendored/node_modules/react-experimental-vendored - react-server-dom-webpack-experimental-vendored: - specifier: file:vendored/node_modules/react-server-dom-webpack-experimental-vendored - version: file:packages/next/vendored/node_modules/react-server-dom-webpack-experimental-vendored - react-server-dom-webpack-vendored: - specifier: file:vendored/node_modules/react-server-dom-webpack-vendored - version: file:packages/next/vendored/node_modules/react-server-dom-webpack-vendored - react-vendored: - specifier: file:vendored/node_modules/react-vendored - version: file:packages/next/vendored/node_modules/react-vendored - scheduler-experimental-vendored: - specifier: file:vendored/node_modules/scheduler-experimental-vendored - version: file:packages/next/vendored/node_modules/scheduler-experimental-vendored - scheduler-vendored: - specifier: file:vendored/node_modules/scheduler-vendored - version: file:packages/next/vendored/node_modules/scheduler-vendored - server-only-vendored: - specifier: file:vendored/node_modules/server-only-vendored - version: file:packages/next/vendored/node_modules/server-only-vendored devDependencies: '@ampproject/toolbox-optimizer': specifier: 2.8.3 @@ -987,8 +956,8 @@ importers: specifier: 0.34.0 version: 0.34.0 '@vercel/nft': - specifier: 0.23.0 - version: 0.23.0 + specifier: 0.22.6 + version: 0.22.6 acorn: specifier: 8.5.0 version: 8.5.0 @@ -5634,7 +5603,7 @@ packages: jest-util: 27.5.1 jest-validate: 27.0.6 jest-watcher: 27.0.6 - micromatch: 4.0.4 + micromatch: 4.0.5 p-each-series: 2.2.0 rimraf: 3.0.2 slash: 3.0.0 @@ -5714,7 +5683,7 @@ packages: chalk: 4.1.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.0 istanbul-lib-instrument: 4.0.3 @@ -5812,7 +5781,7 @@ packages: jest-haste-map: 27.5.1 jest-regex-util: 27.5.1 jest-util: 27.5.1 - micromatch: 4.0.4 + micromatch: 4.0.5 pirates: 4.0.5 slash: 3.0.0 source-map: 0.6.1 @@ -5936,7 +5905,7 @@ packages: npm-package-arg: 8.1.0 p-map: 4.0.0 pacote: 11.2.6 - semver: 7.3.7 + semver: 7.5.4 transitivePeerDependencies: - bluebird - supports-color @@ -5967,7 +5936,7 @@ packages: p-map-series: 2.1.0 p-waterfall: 2.1.1 read-package-tree: 5.3.1 - semver: 7.3.7 + semver: 7.5.4 dev: true /@lerna/changed@4.0.0: @@ -6072,7 +6041,7 @@ packages: npm-package-arg: 8.1.0 npmlog: 4.1.2 pify: 5.0.0 - semver: 7.3.7 + semver: 7.5.4 dev: true /@lerna/create-symlink@4.0.0: @@ -6100,7 +6069,7 @@ packages: p-reduce: 2.1.0 pacote: 11.2.6 pify: 5.0.0 - semver: 7.3.7 + semver: 7.5.4 slash: 3.0.0 validate-npm-package-license: 3.0.4 validate-npm-package-name: 3.0.0 @@ -6211,7 +6180,7 @@ packages: engines: {node: '>= 10.18.0'} dependencies: '@lerna/child-process': 4.0.0 - semver: 7.3.7 + semver: 7.5.4 dev: true /@lerna/import@4.0.0: @@ -6383,7 +6352,7 @@ packages: '@lerna/validation-error': 4.0.0 npm-package-arg: 8.1.0 npmlog: 4.1.2 - semver: 7.3.7 + semver: 7.5.4 dev: true /@lerna/package@4.0.0: @@ -6399,7 +6368,7 @@ packages: resolution: {integrity: sha512-GQqguzETdsYRxOSmdFZ6zDBXDErIETWOqomLERRY54f4p+tk4aJjoVdd9xKwehC9TBfIFvlRbL1V9uQGHh1opg==} engines: {node: '>= 10.18.0'} dependencies: - semver: 7.3.7 + semver: 7.5.4 dev: true /@lerna/profiler@4.0.0: @@ -6468,7 +6437,7 @@ packages: p-map: 4.0.0 p-pipe: 3.1.0 pacote: 11.2.6 - semver: 7.3.7 + semver: 7.5.4 transitivePeerDependencies: - bluebird - encoding @@ -6600,7 +6569,7 @@ packages: p-pipe: 3.1.0 p-reduce: 2.1.0 p-waterfall: 2.1.1 - semver: 7.3.7 + semver: 7.5.4 slash: 3.0.0 temp-write: 4.0.0 write-json-file: 4.3.0 @@ -6627,7 +6596,7 @@ packages: nopt: 5.0.0 npmlog: 4.1.2 rimraf: 3.0.2 - semver: 7.3.7 + semver: 7.5.4 tar: 6.1.15 transitivePeerDependencies: - encoding @@ -6817,7 +6786,7 @@ packages: resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==} dependencies: '@gar/promisify': 1.1.3 - semver: 7.3.7 + semver: 7.5.4 dev: true /@npmcli/git@2.0.4: @@ -6829,7 +6798,7 @@ packages: npm-pick-manifest: 6.1.0 promise-inflight: 1.0.1 promise-retry: 1.1.1 - semver: 7.3.7 + semver: 7.5.4 unique-filename: 1.1.1 which: 2.0.2 transitivePeerDependencies: @@ -7107,7 +7076,7 @@ packages: '@rollup/pluginutils': 3.1.0(rollup@2.35.1) commondir: 1.0.1 estree-walker: 2.0.2 - glob: 7.1.7 + glob: 7.2.0 is-reference: 1.2.1 magic-string: 0.25.7 resolve: 1.22.1 @@ -8313,7 +8282,7 @@ packages: debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.3.7 + semver: 7.5.4 tsutils: 3.21.0(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: @@ -8445,21 +8414,21 @@ packages: hasBin: true dev: true - /@vercel/nft@0.23.0: - resolution: {integrity: sha512-1iuPjyltiPqyZrvc/bW1CyICRdng8bVhpJT8MsIXV7Wj+mRFyJs9krsHbVy2pZwu7BMAgforQsT5TCY1JoBDxw==} + /@vercel/nft@0.22.6: + resolution: {integrity: sha512-gTsFnnT4mGxodr4AUlW3/urY+8JKKB452LwF3m477RFUJTAaDmcz2JqFuInzvdybYIeyIv1sSONEJxsxnbQ5JQ==} engines: {node: '>=14'} hasBin: true dependencies: '@mapbox/node-pre-gyp': 1.0.5 '@rollup/pluginutils': 4.2.1 - acorn: 8.8.2 + acorn: 8.8.0 async-sema: 3.1.1 bindings: 1.5.0 estree-walker: 2.0.2 - glob: 7.1.7 - graceful-fs: 4.2.11 + glob: 7.2.0 + graceful-fs: 4.2.10 micromatch: 4.0.4 - node-gyp-build: 4.6.0 + node-gyp-build: 4.2.3 resolve-from: 5.0.0 transitivePeerDependencies: - encoding @@ -8664,6 +8633,7 @@ packages: engines: {node: '>=0.4.0'} dependencies: acorn: 8.5.0 + dev: true /acorn-node@1.8.2: resolution: {integrity: sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==} @@ -9937,7 +9907,7 @@ packages: '@npmcli/move-file': 1.0.1 chownr: 2.0.0 fs-minipass: 2.1.0 - glob: 7.1.7 + glob: 7.2.0 infer-owner: 1.0.4 lru-cache: 6.0.0 minipass: 3.1.3 @@ -12866,7 +12836,7 @@ packages: optionator: 0.9.1 progress: 2.0.3 regexpp: 3.2.0 - semver: 7.3.7 + semver: 7.5.4 strip-ansi: 6.0.1 strip-json-comments: 3.1.1 table: 6.8.0 @@ -13566,7 +13536,7 @@ packages: dependencies: detect-file: 1.0.0 is-glob: 4.0.3 - micromatch: 4.0.4 + micromatch: 4.0.5 resolve-dir: 1.0.1 dev: true @@ -14132,7 +14102,6 @@ packages: minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 - dev: true /global-dirs@2.1.0: resolution: {integrity: sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==} @@ -14691,7 +14660,7 @@ packages: deepmerge: 4.2.2 eslint: 7.32.0 espree: 7.3.1 - glob: 7.1.7 + glob: 7.2.0 inquirer: 7.3.3 json-merge-patch: 1.0.2 minimist: 1.2.6 @@ -15079,12 +15048,12 @@ packages: resolution: {integrity: sha512-PO64kVeArePvhX7Ff0jVWkpnE1DfGRvaWcStYrPugcJz9twQGYibagKJuIMHCX7ENcp0M6LJlcjLBuLD5KeJMg==} engines: {node: '>=10'} dependencies: - glob: 7.1.7 + glob: 7.2.0 npm-package-arg: 8.1.0 promzard: 0.3.0 read: 1.0.7 read-package-json: 3.0.0 - semver: 7.3.7 + semver: 7.5.4 validate-npm-package-license: 3.0.4 validate-npm-package-name: 3.0.0 dev: true @@ -15952,7 +15921,7 @@ packages: babel-jest: 27.0.6(@babel/core@7.18.0) chalk: 4.1.2 deepmerge: 4.2.2 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 is-ci: 3.0.0 jest-circus: 27.5.1 @@ -15965,7 +15934,7 @@ packages: jest-runner: 27.0.6 jest-util: 27.5.1 jest-validate: 27.5.1 - micromatch: 4.0.4 + micromatch: 4.0.5 pretty-format: 27.5.1 transitivePeerDependencies: - bufferutil @@ -16100,7 +16069,7 @@ packages: jest-serializer: 27.5.1 jest-util: 27.5.1 jest-worker: 27.5.1 - micromatch: 4.0.4 + micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: fsevents: 2.3.2 @@ -16118,7 +16087,7 @@ packages: jest-regex-util: 29.4.3 jest-util: 29.5.0 jest-worker: 29.5.0 - micromatch: 4.0.4 + micromatch: 4.0.5 walker: 1.0.8 optionalDependencies: fsevents: 2.3.2 @@ -16222,7 +16191,7 @@ packages: '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.11 - micromatch: 4.0.4 + micromatch: 4.0.5 pretty-format: 26.6.2 slash: 3.0.0 stack-utils: 2.0.6 @@ -16237,7 +16206,7 @@ packages: '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.11 - micromatch: 4.0.4 + micromatch: 4.0.5 pretty-format: 27.5.1 slash: 3.0.0 stack-utils: 2.0.5 @@ -16251,7 +16220,7 @@ packages: '@types/stack-utils': 2.0.1 chalk: 4.1.2 graceful-fs: 4.2.11 - micromatch: 4.0.4 + micromatch: 4.0.5 pretty-format: 29.5.0 slash: 3.0.0 stack-utils: 2.0.6 @@ -16406,7 +16375,7 @@ packages: cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 jest-haste-map: 27.5.1 jest-message-util: 27.5.1 @@ -16438,7 +16407,7 @@ packages: cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 execa: 5.0.0 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 jest-haste-map: 27.5.1 jest-message-util: 27.5.1 @@ -16486,7 +16455,7 @@ packages: jest-util: 27.5.1 natural-compare: 1.4.0 pretty-format: 27.5.1 - semver: 7.3.7 + semver: 7.5.4 transitivePeerDependencies: - supports-color dev: true @@ -16516,7 +16485,7 @@ packages: jest-util: 27.5.1 natural-compare: 1.4.0 pretty-format: 27.5.1 - semver: 7.3.7 + semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -17073,7 +17042,7 @@ packages: normalize-package-data: 3.0.0 npm-package-arg: 8.1.0 npm-registry-fetch: 9.0.0 - semver: 7.3.7 + semver: 7.5.4 ssri: 8.0.1 transitivePeerDependencies: - bluebird @@ -18353,6 +18322,7 @@ packages: dependencies: braces: 3.0.2 picomatch: 2.2.3 + dev: true /micromatch@4.0.5: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} @@ -18715,6 +18685,7 @@ packages: /neo-async@2.6.1: resolution: {integrity: sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==} + dev: true /neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} @@ -18853,6 +18824,11 @@ packages: hasBin: true dev: true + /node-gyp-build@4.2.3: + resolution: {integrity: sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg==} + hasBin: true + dev: true + /node-gyp-build@4.6.0: resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==} hasBin: true @@ -18864,7 +18840,7 @@ packages: hasBin: true dependencies: env-paths: 2.2.1 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 mkdirp: 0.5.5 nopt: 4.0.3 @@ -18882,13 +18858,13 @@ packages: hasBin: true dependencies: env-paths: 2.2.1 - glob: 7.1.7 + glob: 7.2.0 graceful-fs: 4.2.11 nopt: 5.0.0 npmlog: 4.1.2 request: 2.88.2 rimraf: 3.0.2 - semver: 7.3.7 + semver: 7.5.4 tar: 6.1.15 which: 2.0.2 dev: true @@ -18970,7 +18946,7 @@ packages: dependencies: hosted-git-info: 3.0.8 resolve: 1.22.2 - semver: 7.3.7 + semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -19012,7 +18988,7 @@ packages: resolution: {integrity: sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w==} engines: {node: '>=10'} dependencies: - semver: 7.3.7 + semver: 7.5.4 dev: true /npm-lifecycle@3.1.5: @@ -19037,7 +19013,7 @@ packages: engines: {node: '>=10'} dependencies: hosted-git-info: 3.0.8 - semver: 7.3.7 + semver: 7.5.4 validate-npm-package-name: 3.0.0 dev: true @@ -19046,7 +19022,7 @@ packages: engines: {node: '>=10'} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 ignore-walk: 3.0.4 npm-bundled: 1.1.2 npm-normalize-package-bin: 1.0.1 @@ -19057,7 +19033,7 @@ packages: dependencies: npm-install-checks: 4.0.0 npm-package-arg: 8.1.0 - semver: 7.3.7 + semver: 7.5.4 dev: true /npm-registry-fetch@9.0.0: @@ -19983,6 +19959,7 @@ packages: /picomatch@2.2.3: resolution: {integrity: sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==} engines: {node: '>=8.6'} + dev: true /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} @@ -20382,7 +20359,7 @@ packages: /postcss-functions@3.0.0: resolution: {integrity: sha1-DpTQFERwCkgd4g3k1V+yZAVkJQ4=} dependencies: - glob: 7.1.7 + glob: 7.2.0 object-assign: 4.1.1 postcss: 6.0.23 postcss-value-parser: 3.3.1 @@ -21707,7 +21684,7 @@ packages: engines: {node: '>=4.4.0', npm: '>=5.2.0'} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 postcss: 7.0.32 postcss-selector-parser: 6.0.11 yargs: 14.2.2 @@ -21833,14 +21810,14 @@ packages: strip-json-comments: 2.0.1 dev: true - /react-dom@0.0.0-experimental-546fe4681-20230713(react@18.2.0): - resolution: {integrity: sha512-/gw7HwNhWEV41e2mQLmZx/+a1qomAdqwODv6t1ECMKkSk3hk8Y22dHuMy+lpv4UqoIRDnslde1jvHWnNxTbUVg==} + /react-dom@0.0.0-experimental-9377e1010-20230712(react@18.2.0): + resolution: {integrity: sha512-4XJsX6mgF/HBslBkAZTkLxdKEV5CdmJ7Fyx07LOhrXq8g7TaZ5cf8sE36Tf0a0Qy8H+XksWo5ki+RNP4GG3kZA==} peerDependencies: - react: 0.0.0-experimental-546fe4681-20230713 + react: 0.0.0-experimental-9377e1010-20230712 dependencies: loose-envify: 1.4.0 react: 18.2.0 - scheduler: 0.0.0-experimental-546fe4681-20230713 + scheduler: 0.0.0-experimental-9377e1010-20230712 dev: true /react-dom@17.0.2(react@17.0.2): @@ -21874,14 +21851,14 @@ packages: react: 18.2.0 scheduler: 0.23.0 - /react-dom@18.3.0-canary-546fe4681-20230713(react@18.2.0): - resolution: {integrity: sha512-m99kIuTDiL3/zmsB4o1ENCtE7xvkTx+0AV9bm29jRod+wFE0jadyov8a7zhoHTVgkjgKy231rykh01NDRsVgag==} + /react-dom@18.3.0-canary-9377e1010-20230712(react@18.2.0): + resolution: {integrity: sha512-FO5XiviYzw54sMTz2goNvM6lyZwyEZeSa4PaJmoWAQPM2HeN3H5U6W40Ryic/xt0xz6X1egyaTCDFikLP13E1w==} peerDependencies: - react: 18.3.0-canary-546fe4681-20230713 + react: 18.3.0-canary-9377e1010-20230712 dependencies: loose-envify: 1.4.0 react: 18.2.0 - scheduler: 0.24.0-canary-546fe4681-20230713 + scheduler: 0.24.0-canary-9377e1010-20230712 dev: true /react-is@16.13.1: @@ -21902,12 +21879,12 @@ packages: resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} engines: {node: '>=0.10.0'} - /react-server-dom-webpack@0.0.0-experimental-546fe4681-20230713(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): - resolution: {integrity: sha512-pRYhVtx6y4rbi9G/JA98Pqjmj37n0JO2rkUxOFukS90/5b2KsFVtRuLCxaEWEqlm8nrdErbMDvmN66+8XqT6OQ==} + /react-server-dom-webpack@0.0.0-experimental-9377e1010-20230712(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): + resolution: {integrity: sha512-4uJ6vAvy+GVNM/9TMhT6XtQDoESwHRN17lgrL6ljyw+JGs5XUFyKkI2+JjXnrRpdOAbAJnmhoMQ7iuLRzukD1Q==} engines: {node: '>=0.10.0'} peerDependencies: - react: 0.0.0-experimental-546fe4681-20230713 - react-dom: 0.0.0-experimental-546fe4681-20230713 + react: 0.0.0-experimental-9377e1010-20230712 + react-dom: 0.0.0-experimental-9377e1010-20230712 webpack: ^5.59.0 dependencies: acorn-loose: 8.3.0 @@ -21918,17 +21895,17 @@ packages: webpack: 5.86.0(@swc/core@1.3.55) dev: true - /react-server-dom-webpack@18.3.0-canary-546fe4681-20230713(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): - resolution: {integrity: sha512-wkrhVXLP/u92djDInZZbcyh+wpf1vztPU38oS02nKR2YrgUGWYmOaBY05lGfJW/Pb79P8d0WALz/6vv6CiLTjQ==} + /react-server-dom-webpack@18.3.0-canary-9377e1010-20230712(react-dom@18.2.0)(react@18.2.0)(webpack@5.86.0): + resolution: {integrity: sha512-gWewRkEN4q0/gUPBmcZ1xM6qyBIC/ZGX6x/mJ38k85X7c7MeXPnyS3u5+PxKmynOgxkYW9kGLuYKkSOlenUZoQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 18.3.0-canary-546fe4681-20230713 - react-dom: 18.3.0-canary-546fe4681-20230713 + react: 18.3.0-canary-9377e1010-20230712 + react-dom: 18.3.0-canary-9377e1010-20230712 webpack: ^5.59.0 dependencies: acorn-loose: 8.3.0 loose-envify: 1.4.0 - neo-async: 2.6.1 + neo-async: 2.6.2 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) webpack: 5.86.0(@swc/core@1.3.55) @@ -21982,8 +21959,8 @@ packages: react-lifecycles-compat: 3.0.4 dev: true - /react@0.0.0-experimental-546fe4681-20230713: - resolution: {integrity: sha512-vZkeBQKoS10F5wSB0N2/rJYYTCJXMHNx+guIK4kYt6tTa5EPL5+GSlysjkrlULNrqHKxgem+JV79A7wnt1fVEg==} + /react@0.0.0-experimental-9377e1010-20230712: + resolution: {integrity: sha512-fFLeQYGYfe4Rm5my1Juk02ARjDyNBUzaS9b56ppYb7nb3Wx4PhhEq3eu+apsVo61BvHLjUcarPztFjdJAwMJAA==} engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 @@ -22002,8 +21979,8 @@ packages: dependencies: loose-envify: 1.4.0 - /react@18.3.0-canary-546fe4681-20230713: - resolution: {integrity: sha512-f/2PlFd4/vNgNiKA8VHr/YgMsK+f6bbkA+Ec/mBIgMd5Z6J6t6IicXYrUXJCPnE+HH5TS1ACgO6pIgduOgxBEw==} + /react@18.3.0-canary-9377e1010-20230712: + resolution: {integrity: sha512-Ra5iJ5aCtpSympvD83HO4SDQIt3E9v5PpZxB7sLlCHVeJ3INPUIj++7IcJ9o8dEQnNShq/D9TzcHt7w9z+0B2g==} engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 @@ -22030,7 +22007,7 @@ packages: /read-package-json@2.1.1: resolution: {integrity: sha512-dAiqGtVc/q5doFz6096CcnXhpYk0ZN8dEKVkGLU0CsASt8SrgF6SF7OTKAYubfvFhWaqofl+Y8HK19GR8jwW+A==} dependencies: - glob: 7.1.7 + glob: 7.2.0 json-parse-better-errors: 1.0.2 normalize-package-data: 2.5.0 npm-normalize-package-bin: 1.0.1 @@ -22042,7 +22019,7 @@ packages: resolution: {integrity: sha512-4TnJZ5fnDs+/3deg1AuMExL4R1SFNRLQeOhV9c8oDKm3eoG6u8xU0r0mNNRJHi3K6B+jXmT7JOhwhAklWw9SSQ==} engines: {node: '>=10'} dependencies: - glob: 7.1.7 + glob: 7.2.0 json-parse-even-better-errors: 2.3.1 normalize-package-data: 3.0.0 npm-normalize-package-bin: 1.0.1 @@ -22767,21 +22744,21 @@ packages: resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 dev: false /rimraf@2.7.1: resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 dev: true /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 /ripemd160@2.0.2: resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} @@ -23005,10 +22982,11 @@ packages: xmlchars: 2.2.0 dev: true - /scheduler@0.0.0-experimental-546fe4681-20230713: - resolution: {integrity: sha512-erBGUg1HGmkjFMXB13bTmWeziYzqjTJNBDKBZhHixAXAs8PJu72/y+Nfj0rgrHgIYuF3SQG4cRpaJj7SOXBd/w==} + /scheduler@0.0.0-experimental-9377e1010-20230712: + resolution: {integrity: sha512-pkFpahSit9iIM42pNH4ltPV33F2Ga0ktHGl17fRbhxZlH8IJ8PUbpJV3Y6FOqmM92ovx1J3ZAyEAUpcgbXzYOA==} dependencies: loose-envify: 1.4.0 + dev: true /scheduler@0.20.2: resolution: {integrity: sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==} @@ -23021,10 +22999,11 @@ packages: dependencies: loose-envify: 1.4.0 - /scheduler@0.24.0-canary-546fe4681-20230713: - resolution: {integrity: sha512-/JDhG6OGuF/3x22+q9i2WY/PmUKqbKVOHUavQ3HJosQcyM3I5SD5G+Jjd6U2CO/CjFISBWuc73F7u9oWElWOSQ==} + /scheduler@0.24.0-canary-9377e1010-20230712: + resolution: {integrity: sha512-q41gMmhVpNqY8Dofvbih1yroUWavo7eIi53tFUza5f4uuacC6DPUW7n9jhOT1rnKgWN9byF+Tl/ls5oRVLHnrA==} dependencies: loose-envify: 1.4.0 + dev: true /schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -23128,6 +23107,7 @@ packages: hasBin: true dependencies: lru-cache: 6.0.0 + dev: true /semver@7.3.8: resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} @@ -23276,7 +23256,7 @@ packages: engines: {node: '>=4'} hasBin: true dependencies: - glob: 7.1.7 + glob: 7.2.0 interpret: 1.4.0 rechoir: 0.6.2 dev: true @@ -24394,7 +24374,7 @@ packages: engines: {node: '>=8'} dependencies: '@istanbuljs/schema': 0.1.2 - glob: 7.1.7 + glob: 7.2.0 minimatch: 3.1.2 /text-extensions@1.9.0: @@ -24990,7 +24970,7 @@ packages: debug: 4.3.4 fault: 1.0.4 figures: 3.1.0 - glob: 7.1.7 + glob: 7.2.0 ignore: 5.2.4 is-buffer: 2.0.4 is-empty: 1.2.0 @@ -25706,7 +25686,7 @@ packages: dev: true /whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + resolution: {integrity: sha1-lmRU6HZUYuN2RNNib2dCzotwll0=} dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 @@ -26101,98 +26081,6 @@ packages: loader-runner: 4.3.0 dev: false - file:packages/next/vendored/node_modules/client-only-vendored: - resolution: {directory: packages/next/vendored/node_modules/client-only-vendored, type: directory} - name: client-only-vendored - requiresBuild: true - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-dom-experimental-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-dom-experimental-vendored, type: directory} - name: react-dom-experimental-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - scheduler: 0.0.0-experimental-546fe4681-20230713 - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-dom-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-dom-vendored, type: directory} - name: react-dom-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - scheduler: 0.24.0-canary-546fe4681-20230713 - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-experimental-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-experimental-vendored, type: directory} - name: react-experimental-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-server-dom-webpack-experimental-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-server-dom-webpack-experimental-vendored, type: directory} - name: react-server-dom-webpack-experimental-vendored - requiresBuild: true - dependencies: - acorn-loose: 8.3.0 - loose-envify: 1.4.0 - neo-async: 2.6.1 - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-server-dom-webpack-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-server-dom-webpack-vendored, type: directory} - name: react-server-dom-webpack-vendored - requiresBuild: true - dependencies: - acorn-loose: 8.3.0 - loose-envify: 1.4.0 - neo-async: 2.6.1 - dev: false - optional: true - - file:packages/next/vendored/node_modules/react-vendored: - resolution: {directory: packages/next/vendored/node_modules/react-vendored, type: directory} - name: react-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - dev: false - optional: true - - file:packages/next/vendored/node_modules/scheduler-experimental-vendored: - resolution: {directory: packages/next/vendored/node_modules/scheduler-experimental-vendored, type: directory} - name: scheduler-experimental-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - dev: false - optional: true - - file:packages/next/vendored/node_modules/scheduler-vendored: - resolution: {directory: packages/next/vendored/node_modules/scheduler-vendored, type: directory} - name: scheduler-vendored - requiresBuild: true - dependencies: - loose-envify: 1.4.0 - dev: false - optional: true - - file:packages/next/vendored/node_modules/server-only-vendored: - resolution: {directory: packages/next/vendored/node_modules/server-only-vendored, type: directory} - name: server-only-vendored - requiresBuild: true - dev: false - optional: true - github.com/watson/ci-info/f43f6a1cefff47fb361c88cf4b943fdbcaafe540: resolution: {tarball: https://codeload.github.com/watson/ci-info/tar.gz/f43f6a1cefff47fb361c88cf4b943fdbcaafe540} name: ci-info diff --git a/scripts/sync-react.js b/scripts/sync-react.js index 4d07e72a78ac9..ca022ade21256 100644 --- a/scripts/sync-react.js +++ b/scripts/sync-react.js @@ -111,7 +111,7 @@ Or, run this command with no arguments to use the most recently published versio } console.log('Building vendored React files...\n') - const nccSubprocess = execa('pnpm', ['taskr', 'vendor_react'], { + const nccSubprocess = execa('pnpm', ['taskr', 'copy_vendor_react'], { cwd: path.join(cwd, 'packages', 'next'), }) if (nccSubprocess.stdout) { diff --git a/test/development/basic/modularize-imports.test.ts b/test/development/basic/modularize-imports.test.ts index 8125a01913455..a9c0814f0a6df 100644 --- a/test/development/basic/modularize-imports.test.ts +++ b/test/development/basic/modularize-imports.test.ts @@ -11,7 +11,7 @@ describe('modularize-imports', () => { app: new FileRef(join(__dirname, 'modularize-imports/app')), }, dependencies: { - 'lucide-react': 'latest', + 'lucide-react': '0.263.1', }, }) }) diff --git a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/augment.ts b/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/augment.ts deleted file mode 100644 index 2508eb61f6a05..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/augment.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function augment(input) { - return input.slice(6) + input.slice(0, 6) -} diff --git a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/getValue.ts b/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/getValue.ts deleted file mode 100644 index 40f30be71cfa4..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/getValue.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { augment } from './augment' - -export function getValue(seed) { - let value = seed > 'asdfasd' ? 'll9' + seed : seed + 'aasdf' - return augment(value) -} diff --git a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingOne.ts b/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingOne.ts deleted file mode 100644 index 95dc4844ad075..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingOne.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { augment } from './augment' - -export function thingOne() { - let x = ((Math.random() * 100000) | 0).toString(16) - console.log('thingOne', augment(x)) -} diff --git a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingTwo.ts b/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingTwo.ts deleted file mode 100644 index e223c750d60e0..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/_components/junk-drawer/thingTwo.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { getValue } from './getValue' - -export function thingTwo() { - let x = ((Math.random() * 100000) | 0).toString(16) - console.log('thingTwo', getValue(x)) -} diff --git a/test/e2e/app-dir/chunk-loading/app/account/ClientShared.tsx b/test/e2e/app-dir/chunk-loading/app/account/ClientShared.tsx deleted file mode 100644 index 6dce596785255..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/account/ClientShared.tsx +++ /dev/null @@ -1,13 +0,0 @@ -'use client' - -import { SuperShared } from '../../components/SuperShared' -import { LazyShared } from '../../components/LazyShared' -import 'client-only' - -export function ClientShared() { - return -} - -export function ClientDynamicShared() { - return -} diff --git a/test/e2e/app-dir/chunk-loading/app/account/page.js b/test/e2e/app-dir/chunk-loading/app/account/page.js deleted file mode 100644 index 9191a33a6eabd..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/account/page.js +++ /dev/null @@ -1,20 +0,0 @@ -import { ClientShared, ClientDynamicShared } from './ClientShared' -import 'server-only' - -export default function AccountPage() { - return ( -
-

Account Page

-

- Welcome to your account page. Here you can increment your account - counter -

-
- -
-
- -
-
- ) -} diff --git a/test/e2e/app-dir/chunk-loading/app/feed/ClientShared.tsx b/test/e2e/app-dir/chunk-loading/app/feed/ClientShared.tsx deleted file mode 100644 index 4ae9af45a7fb8..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/feed/ClientShared.tsx +++ /dev/null @@ -1,14 +0,0 @@ -'use client' - -import { useReducer } from 'react' - -import { LazyShared } from '../../components/LazyShared' - -export function ClientDynamicShared() { - let [shouldload, load] = useReducer(() => true, false) - if (shouldload) { - return - } else { - return - } -} diff --git a/test/e2e/app-dir/chunk-loading/app/feed/page.js b/test/e2e/app-dir/chunk-loading/app/feed/page.js deleted file mode 100644 index 2469ba5baab34..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/feed/page.js +++ /dev/null @@ -1,13 +0,0 @@ -import { ClientDynamicShared } from './ClientShared' - -export default function FeedPage() { - return ( -
-

Feed Page

-

Welcome to your feed page.

-
- -
-
- ) -} diff --git a/test/e2e/app-dir/chunk-loading/app/layout.tsx b/test/e2e/app-dir/chunk-loading/app/layout.tsx deleted file mode 100644 index d245f9218b312..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/layout.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Links } from '../components/links' - -export const metadata = { - title: 'Next.js', - description: 'Generated by Next.js', -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - - {children} - - - - ) -} diff --git a/test/e2e/app-dir/chunk-loading/app/page.tsx b/test/e2e/app-dir/chunk-loading/app/page.tsx deleted file mode 100644 index e57fc3350a334..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/page.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import './styles.css' - -export default function Page() { - return ( -
-

Chunk-Loading

-

- This fixture is a testbed for chunk loading. It has a variety of - sub-pages that combine client components as well as dynamic imports. It - should demonstrate optimal chunk loading characteristics with no errors -

-
- ) -} diff --git a/test/e2e/app-dir/chunk-loading/app/styles.css b/test/e2e/app-dir/chunk-loading/app/styles.css deleted file mode 100644 index aa1634c255034..0000000000000 --- a/test/e2e/app-dir/chunk-loading/app/styles.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background-color: red; -} diff --git a/test/e2e/app-dir/chunk-loading/components/DynamicShared.tsx b/test/e2e/app-dir/chunk-loading/components/DynamicShared.tsx deleted file mode 100644 index e98cab626a66d..0000000000000 --- a/test/e2e/app-dir/chunk-loading/components/DynamicShared.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import dynamic from 'next/dynamic' - -const DynamicSuperShared = dynamic( - async () => { - const module = await import('./SuperShared') - return module.SuperShared - }, - { - loading: () =>
loading...
, - } -) - -export function DynamicShared() { - return -} diff --git a/test/e2e/app-dir/chunk-loading/components/LazyShared.tsx b/test/e2e/app-dir/chunk-loading/components/LazyShared.tsx deleted file mode 100644 index e5a6bf932e69d..0000000000000 --- a/test/e2e/app-dir/chunk-loading/components/LazyShared.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { lazy } from 'react' - -const LazySuperShared = lazy(async () => { - const module = await import('./SuperShared') - return { default: module.SuperShared } -}) - -export function LazyShared() { - return -} diff --git a/test/e2e/app-dir/chunk-loading/components/SuperShared.tsx b/test/e2e/app-dir/chunk-loading/components/SuperShared.tsx deleted file mode 100644 index 3b1f5c9fa740b..0000000000000 --- a/test/e2e/app-dir/chunk-loading/components/SuperShared.tsx +++ /dev/null @@ -1,537 +0,0 @@ -import { thingOne } from '../app/_components/junk-drawer/thingOne' -import { thingTwo } from '../app/_components/junk-drawer/thingTwo' - -export function SuperShared({ from }: { from: 'flight' | 'fizz' | 'dynamic' }) { - const phrase = - from === 'flight' - ? 'loaded on the server (RSC)' - : from === 'fizz' - ? 'loaded on the client (Fizz/Fiber)' - : from === 'dynamic' - ? 'loaded dynamically' - : 'not configured to say where it was loaded' - - if (typeof globalThis.UNKNOWN_GLOBAL_BINDING === 'boolean') { - thingOne() - let foo = - 'I need to use up significant bytes to make this file be split into its own chunk' - foo = 'to do that I am going to add a lot of big string such as this one' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - foo = - 'I should just alternately repeat this and another string over and over again' - foo = - 'This is the other repeating string. It should be about the same length' - console.log('foo', foo) - thingTwo() - } - return ( -

- this component is part of the server graph and the client graph. It is - also going to be dynamically imported by webpack. This particular instance - was {phrase}. -

- ) -} diff --git a/test/e2e/app-dir/chunk-loading/components/links.tsx b/test/e2e/app-dir/chunk-loading/components/links.tsx deleted file mode 100644 index 2ea2e1ca87fab..0000000000000 --- a/test/e2e/app-dir/chunk-loading/components/links.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import Link from 'next/link' - -export function Links() { - return ( -
    -
  • - Feed -
  • -
  • - Account -
  • -
  • - about -
  • -
  • - Home -
  • -
- ) -} diff --git a/test/e2e/app-dir/chunk-loading/index.test.ts b/test/e2e/app-dir/chunk-loading/index.test.ts deleted file mode 100644 index ce3be46e36e9c..0000000000000 --- a/test/e2e/app-dir/chunk-loading/index.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { createNextDescribe } from 'e2e-utils' - -createNextDescribe( - 'app-dir build size', - { - files: __dirname, - skipDeployment: true, - }, - ({ next, isNextStart }) => { - it('creates a sandbox', async () => { - return - }) - } -) diff --git a/test/e2e/app-dir/chunk-loading/next.config.js b/test/e2e/app-dir/chunk-loading/next.config.js deleted file mode 100644 index 4ba52ba2c8df6..0000000000000 --- a/test/e2e/app-dir/chunk-loading/next.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {} diff --git a/test/e2e/app-dir/chunk-loading/pages/page/about.js b/test/e2e/app-dir/chunk-loading/pages/page/about.js deleted file mode 100644 index 08193ac51bf12..0000000000000 --- a/test/e2e/app-dir/chunk-loading/pages/page/about.js +++ /dev/null @@ -1,23 +0,0 @@ -import { useReducer } from 'react' -import { Links } from '../../components/links' - -import { DynamicShared } from '../../components/DynamicShared' - -export function getServerSideProps() { - return { props: {} } -} - -export default function About() { - let [shouldload, load] = useReducer(() => true, false) - return ( - <> -
About
- {shouldload ? ( - - ) : ( - - )} - - - ) -} diff --git a/test/e2e/yarn-pnp/test/utils.ts b/test/e2e/yarn-pnp/test/utils.ts index 2f4afd27f0261..94281898e2786 100644 --- a/test/e2e/yarn-pnp/test/utils.ts +++ b/test/e2e/yarn-pnp/test/utils.ts @@ -23,7 +23,6 @@ export function runTests( (versionParts[0] === 16 && versionParts[1] >= 14) ) { let next: NextInstance - jest.setTimeout(8 * 60 * 1000) beforeAll(async () => { const srcDir = join(__dirname, '../../../../examples', example) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index f9cf1006e2d25..09a1c0dcb2fdc 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -105,17 +105,12 @@ async function createNextInstall({ { filter: (item) => { return ( - // We allowlist this node_modules because it would otherwise be excluded below - item.includes('vendored/node_modules') || - // We denylist the following items - !( - item.includes('node_modules') || - item.includes('pnpm-lock.yaml') || - item.includes('.DS_Store') || - // Exclude Rust compilation files - /next[\\/]build[\\/]swc[\\/]target/.test(item) || - /next-swc[\\/]target/.test(item) - ) + !item.includes('node_modules') && + !item.includes('pnpm-lock.yaml') && + !item.includes('.DS_Store') && + // Exclude Rust compilation files + !/next[\\/]build[\\/]swc[\\/]target/.test(item) && + !/next-swc[\\/]target/.test(item) ) }, } @@ -205,7 +200,6 @@ async function createNextInstall({ tmpRepoDir, } } - return installDir }) }