diff --git a/.eslintignore b/.eslintignore
deleted file mode 100644
index ae0737173e3..00000000000
--- a/.eslintignore
+++ /dev/null
@@ -1,5 +0,0 @@
-scripts
-plugins
-next.config.js
-.claude/
-worker-bundle.dist.js
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index 935fa2f2343..00000000000
--- a/.eslintrc
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "root": true,
- "extends": "next/core-web-vitals",
- "parser": "@typescript-eslint/parser",
- "plugins": ["@typescript-eslint", "eslint-plugin-react-compiler", "local-rules"],
- "rules": {
- "no-unused-vars": "off",
- "@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
- "react-hooks/exhaustive-deps": "error",
- "react/no-unknown-property": ["error", {"ignore": ["meta"]}],
- "react-compiler/react-compiler": "error",
- "local-rules/lint-markdown-code-blocks": "error",
- "no-trailing-spaces": "error"
- },
- "env": {
- "node": true,
- "commonjs": true,
- "browser": true,
- "es6": true
- },
- "overrides": [
- {
- "files": ["src/content/**/*.md"],
- "parser": "./eslint-local-rules/parser",
- "parserOptions": {
- "sourceType": "module"
- },
- "rules": {
- "no-unused-vars": "off",
- "@typescript-eslint/no-unused-vars": "off",
- "react-hooks/exhaustive-deps": "off",
- "react/no-unknown-property": "off",
- "react-compiler/react-compiler": "off",
- "local-rules/lint-markdown-code-blocks": "error"
- }
- }
- ]
-}
diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml
index 83e7f2e8a9c..fbd4af15450 100644
--- a/.github/workflows/analyze.yml
+++ b/.github/workflows/analyze.yml
@@ -42,13 +42,18 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Build next.js app
- # change this if your site requires a custom build command
- run: ./node_modules/.bin/next build
-
- # Here's the first place where next-bundle-analysis' own script is used
- # This step pulls the raw bundle stats for the current bundle
+ # This project pins the webpack pipeline (see next.config.js): the custom
+ # webpack config and Sandpack's raw-loader imports aren't Turbopack-ready,
+ # and Next 16's `next build` defaults to Turbopack. Match the `build`/`analyze`
+ # npm scripts by forcing `--webpack`.
+ run: ./node_modules/.bin/next build --webpack
+
+ # Measure the current build's bundle sizes (App Router-aware).
+ # See scripts/analyzeBundle.mjs — reads build-manifest.json + .next/static
+ # and sums gzipped sizes, since nextjs-bundle-analysis only understands the
+ # Pages Router and reports 0 B for the App Router.
- name: Analyze bundle
- run: npx -p nextjs-bundle-analysis@0.5.0 report
+ run: node scripts/analyzeBundle.mjs report
- name: Upload bundle
uses: actions/upload-artifact@v4
@@ -65,22 +70,12 @@ jobs:
name: bundle_analysis.json
path: .next/analyze/base/bundle
- # And here's the second place - this runs after we have both the current and
- # base branch bundle stats, and will compare them to determine what changed.
- # There are two configurable arguments that come from package.json:
- #
- # - budget: optional, set a budget (bytes) against which size changes are measured
- # it's set to 350kb here by default, as informed by the following piece:
- # https://infrequently.org/2021/03/the-performance-inequality-gap/
- #
- # - red-status-percentage: sets the percent size increase where you get a red
- # status indicator, defaults to 20%
- #
- # Either of these arguments can be changed or removed by editing the `nextBundleAnalysis`
- # entry in your package.json file.
+ # Compare the current build against the base-branch stats downloaded above
+ # and write the Markdown comment body. Degrades gracefully when the base
+ # branch has no stats yet (or still has the old format).
- name: Compare with base branch bundle
if: success() && github.event.number
- run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare
+ run: node scripts/analyzeBundle.mjs compare
- name: Upload analysis comment
uses: actions/upload-artifact@v4
diff --git a/.gitignore b/.gitignore
index ed9efe38d02..5baa3042a27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,9 +43,13 @@ public/rss.xml
# claude local settings
.claude/*.local.*
.claude/react/
+.claude/launch.json
# worktrees
.worktrees/
# Generated OG images (scripts/generateOgImages.mjs)
public/images/og/
+
+# Generated Sandpack RSC runtime sources (scripts/buildRscWorker.mjs)
+public/sandpack-rsc/
diff --git a/CLAUDE.md b/CLAUDE.md
index 3a081e6d517..0bb298c2ad2 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -25,8 +25,9 @@ src/
│ ├── reference/ # API reference docs
│ ├── blog/ # Blog posts
│ └── community/ # Community pages
+├── app/ # Next.js App Router routes
├── components/ # React components
-├── pages/ # Next.js pages
+├── lib/ # Server-only helpers (MDX loading, metadata)
├── hooks/ # Custom React hooks
├── utils/ # Utility functions
└── styles/ # CSS/Tailwind styles
@@ -50,3 +51,13 @@ For Sandpack code examples, invoke `/docs-sandpack`.
See `.claude/docs/react-docs-patterns.md` for comprehensive style guidelines.
Prettier is used for formatting (config in `.prettierrc`).
+
+
+
+# This is NOT the Next.js you know
+
+This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
+
+This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
+
+
diff --git a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js
index 250e0a1e58f..aa5a2a81978 100644
--- a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js
+++ b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js
@@ -10,32 +10,30 @@ const fs = require('fs');
const path = require('path');
const {ESLint} = require('eslint');
const plugin = require('..');
+const parser = require('../parser');
-const FIXTURES_DIR = path.join(
- __dirname,
- 'fixtures',
- 'src',
- 'content'
-);
-const PARSER_PATH = path.join(__dirname, '..', 'parser.js');
-
+const FIXTURES_DIR = path.join(__dirname, 'fixtures', 'src', 'content');
function createESLint({fix = false} = {}) {
return new ESLint({
- useEslintrc: false,
+ overrideConfigFile: true,
fix,
- plugins: {
- 'local-rules': plugin,
- },
- overrideConfig: {
- parser: PARSER_PATH,
- plugins: ['local-rules'],
- rules: {
- 'local-rules/lint-markdown-code-blocks': 'error',
- },
- parserOptions: {
- sourceType: 'module',
+ overrideConfig: [
+ {
+ files: ['**/*.md'],
+ languageOptions: {
+ parser,
+ parserOptions: {
+ sourceType: 'module',
+ },
+ },
+ plugins: {
+ 'local-rules': plugin,
+ },
+ rules: {
+ 'local-rules/lint-markdown-code-blocks': 'error',
+ },
},
- },
+ ],
});
}
@@ -53,11 +51,7 @@ async function lintFixture(name, {fix = false} = {}) {
async function run() {
const basicResult = await lintFixture('basic-error.md');
- assert.strictEqual(
- basicResult.messages.length,
- 1,
- 'expected one diagnostic'
- );
+ assert.strictEqual(basicResult.messages.length, 1, 'expected one diagnostic');
assert(
basicResult.messages[0].message.includes('Calling setState during render'),
'expected message to mention setState during render'
@@ -91,9 +85,7 @@ async function run() {
fix: true,
});
assert(
- duplicateFixed.output.includes(
- "{expectedErrors: {'react-compiler': [4]}}"
- ),
+ duplicateFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"),
'expected duplicates to be rewritten to a single canonical block'
);
assert(
@@ -118,14 +110,12 @@ async function run() {
fix: true,
});
assert(
- malformedFixed.output.includes(
- "{expectedErrors: {'react-compiler': [4]}}"
- ),
+ malformedFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"),
'expected malformed metadata to be replaced with canonical form'
);
}
-run().catch(error => {
+run().catch((error) => {
console.error(error);
process.exitCode = 1;
});
diff --git a/eslint-local-rules/package.json b/eslint-local-rules/package.json
index 9940fee2005..65f0abe334e 100644
--- a/eslint-local-rules/package.json
+++ b/eslint-local-rules/package.json
@@ -7,6 +7,6 @@
"test": "node __tests__/lint-markdown-code-blocks.test.js"
},
"devDependencies": {
- "eslint-mdx": "^2"
+ "eslint-mdx": "^3.8.1"
}
}
diff --git a/eslint-local-rules/yarn.lock b/eslint-local-rules/yarn.lock
index 5a7cf126da9..92f0e822012 100644
--- a/eslint-local-rules/yarn.lock
+++ b/eslint-local-rules/yarn.lock
@@ -2,19 +2,19 @@
# yarn lockfile v1
-"@babel/code-frame@^7.16.0":
- version "7.27.1"
- resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be"
- integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==
+"@babel/code-frame@^7.21.4":
+ version "7.29.7"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.7.tgz#f2fbbfea87c44a21590ec515b778b2c26d8866e7"
+ integrity sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==
dependencies:
- "@babel/helper-validator-identifier" "^7.27.1"
+ "@babel/helper-validator-identifier" "^7.29.7"
js-tokens "^4.0.0"
picocolors "^1.1.1"
-"@babel/helper-validator-identifier@^7.27.1":
- version "7.27.1"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
- integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
+"@babel/helper-validator-identifier@^7.29.7":
+ version "7.29.7"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz#bd87084ced0c796ec46bda492de6e83d29e89fc2"
+ integrity sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==
"@isaacs/cliui@^8.0.2":
version "8.0.2"
@@ -28,20 +28,35 @@
wrap-ansi "^8.1.0"
wrap-ansi-cjs "npm:wrap-ansi@^7.0.0"
-"@npmcli/config@^6.0.0":
- version "6.4.1"
- resolved "https://registry.yarnpkg.com/@npmcli/config/-/config-6.4.1.tgz#006409c739635db008e78bf58c92421cc147911d"
- integrity sha512-uSz+elSGzjCMANWa5IlbGczLYPkNI/LeR+cHrgaTqTrTSh9RHhOFA4daD2eRUz6lMtOW+Fnsb+qv7V2Zz8ML0g==
+"@npmcli/config@^8.0.0":
+ version "8.3.4"
+ resolved "https://registry.yarnpkg.com/@npmcli/config/-/config-8.3.4.tgz#e2712c2215bb2659f39718b23bf7401f9ac1da59"
+ integrity sha512-01rtHedemDNhUXdicU7s+QYz/3JyV5Naj84cvdXGH4mgCdL+agmSYaLF4LUG4vMCLzhBO8YtS0gPpH1FGvbgAw==
dependencies:
"@npmcli/map-workspaces" "^3.0.2"
+ "@npmcli/package-json" "^5.1.1"
ci-info "^4.0.0"
- ini "^4.1.0"
- nopt "^7.0.0"
- proc-log "^3.0.0"
- read-package-json-fast "^3.0.2"
+ ini "^4.1.2"
+ nopt "^7.2.1"
+ proc-log "^4.2.0"
semver "^7.3.5"
walk-up-path "^3.0.1"
+"@npmcli/git@^5.0.0":
+ version "5.0.8"
+ resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-5.0.8.tgz#8ba3ff8724192d9ccb2735a2aa5380a992c5d3d1"
+ integrity sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ==
+ dependencies:
+ "@npmcli/promise-spawn" "^7.0.0"
+ ini "^4.1.3"
+ lru-cache "^10.0.1"
+ npm-pick-manifest "^9.0.0"
+ proc-log "^4.0.0"
+ promise-inflight "^1.0.1"
+ promise-retry "^2.0.1"
+ semver "^7.3.5"
+ which "^4.0.0"
+
"@npmcli/map-workspaces@^3.0.2":
version "3.0.6"
resolved "https://registry.yarnpkg.com/@npmcli/map-workspaces/-/map-workspaces-3.0.6.tgz#27dc06c20c35ef01e45a08909cab9cb3da08cea6"
@@ -57,22 +72,35 @@
resolved "https://registry.yarnpkg.com/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz#c44d3a7c6d5c184bb6036f4d5995eee298945815"
integrity sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==
+"@npmcli/package-json@^5.1.1":
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.2.1.tgz#df69477b1023b81ff8503f2b9db4db4faea567ed"
+ integrity sha512-f7zYC6kQautXHvNbLEWgD/uGu1+xCn9izgqBfgItWSx22U0ZDekxN08A1vM8cTxj/cRVe0Q94Ode+tdoYmIOOQ==
+ dependencies:
+ "@npmcli/git" "^5.0.0"
+ glob "^10.2.2"
+ hosted-git-info "^7.0.0"
+ json-parse-even-better-errors "^3.0.0"
+ normalize-package-data "^6.0.0"
+ proc-log "^4.0.0"
+ semver "^7.5.3"
+
+"@npmcli/promise-spawn@^7.0.0":
+ version "7.0.2"
+ resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz#1d53d34ffeb5d151bfa8ec661bcccda8bbdfd532"
+ integrity sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ==
+ dependencies:
+ which "^4.0.0"
+
"@pkgjs/parseargs@^0.11.0":
version "0.11.0"
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
-"@pkgr/core@^0.1.0":
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.2.tgz#1cf95080bb7072fafaa3cb13b442fab4695c3893"
- integrity sha512-fdDH1LSGfZdTH2sxdpVMw31BanV28K/Gry0cVFxaNP77neJSkd82mM8ErPNYs9e+0O7SdHBLTDzDgwUuy18RnQ==
-
-"@types/acorn@^4.0.0":
- version "4.0.6"
- resolved "https://registry.yarnpkg.com/@types/acorn/-/acorn-4.0.6.tgz#d61ca5480300ac41a7d973dd5b84d0a591154a22"
- integrity sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==
- dependencies:
- "@types/estree" "*"
+"@pkgr/core@^0.3.6":
+ version "0.3.6"
+ resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.3.6.tgz#3569708bd4be4d8870ba32bf1c456dac81600d97"
+ integrity sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==
"@types/concat-stream@^2.0.0":
version "2.0.3"
@@ -100,24 +128,24 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.8.tgz#958b91c991b1867ced318bedea0e215ee050726e"
integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==
-"@types/hast@^2.0.0":
- version "2.3.10"
- resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.10.tgz#5c9d9e0b304bbb8879b857225c5ebab2d81d7643"
- integrity sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==
+"@types/hast@^3.0.0":
+ version "3.0.5"
+ resolved "https://registry.yarnpkg.com/@types/hast/-/hast-3.0.5.tgz#48020de4c0e63492f4ca9db42068c108f68b7f8f"
+ integrity sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==
dependencies:
- "@types/unist" "^2"
+ "@types/unist" "*"
"@types/is-empty@^1.0.0":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@types/is-empty/-/is-empty-1.2.3.tgz#a2d55ea8a5ec57bf61e411ba2a9e5132fe4f0899"
integrity sha512-4J1l5d79hoIvsrKh5VUKVRA1aIdsOb10Hu5j3J2VfP/msDnfTdGPmNp2E1Wg+vs97Bktzo+MZePFFXSGoykYJw==
-"@types/mdast@^3.0.0":
- version "3.0.15"
- resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.15.tgz#49c524a263f30ffa28b71ae282f813ed000ab9f5"
- integrity sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==
+"@types/mdast@^4.0.0":
+ version "4.0.4"
+ resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-4.0.4.tgz#7ccf72edd2f1aa7dd3437e180c64373585804dd6"
+ integrity sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==
dependencies:
- "@types/unist" "^2"
+ "@types/unist" "*"
"@types/ms@*":
version "2.1.0"
@@ -131,19 +159,24 @@
dependencies:
undici-types "~7.12.0"
-"@types/node@^18.0.0":
- version "18.19.126"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.126.tgz#b1a9e0bac6338098f465ab242cbd6a8884d79b80"
- integrity sha512-8AXQlBfrGmtYJEJUPs63F/uZQqVeFiN9o6NUjbDJYfxNxFnArlZufANPw4h6dGhYGKxcyw+TapXFvEsguzIQow==
+"@types/node@^22.0.0":
+ version "22.20.1"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.20.1.tgz#84e7cdf63cdaa20c134aa317ccc901aa21e16f0e"
+ integrity sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==
dependencies:
- undici-types "~5.26.4"
+ undici-types "~6.21.0"
"@types/supports-color@^8.0.0":
version "8.1.3"
resolved "https://registry.yarnpkg.com/@types/supports-color/-/supports-color-8.1.3.tgz#b769cdce1d1bb1a3fa794e35b62c62acdf93c139"
integrity sha512-Hy6UMpxhE3j1tLpl27exp1XqHD7n8chAiNPzWfz16LPZoMMoSc4dzLl6w9qijkEb/r5O1ozdu1CWGA2L83ZeZg==
-"@types/unist@^2", "@types/unist@^2.0.0":
+"@types/unist@*", "@types/unist@^3.0.0":
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c"
+ integrity sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==
+
+"@types/unist@^2.0.0":
version "2.0.11"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.11.tgz#11af57b127e32487774841f7a4e54eab166d03c4"
integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==
@@ -158,11 +191,16 @@ acorn-jsx@^5.0.0, acorn-jsx@^5.3.2:
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
-acorn@^8.0.0, acorn@^8.10.0, acorn@^8.9.0:
+acorn@^8.0.0:
version "8.15.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816"
integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==
+acorn@^8.15.0, acorn@^8.16.0:
+ version "8.18.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.18.0.tgz#4faf01b2d6d326bfeed97aea1f52220b5f4c1940"
+ integrity sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==
+
ansi-regex@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
@@ -287,16 +325,23 @@ dequal@^2.0.0:
resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==
-diff@^5.0.0:
- version "5.2.0"
- resolved "https://registry.yarnpkg.com/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531"
- integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==
+devlop@^1.0.0, devlop@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/devlop/-/devlop-1.1.0.tgz#4db7c2ca4dc6e0e834c30be70c94bbc976dc7018"
+ integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==
+ dependencies:
+ dequal "^2.0.0"
eastasianwidth@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
+emoji-regex@^10.2.1:
+ version "10.6.0"
+ resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.6.0.tgz#bf3d6e8f7f8fd22a65d9703475bc0147357a6b0d"
+ integrity sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==
+
emoji-regex@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
@@ -307,6 +352,11 @@ emoji-regex@^9.2.2:
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
+err-code@^2.0.2:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9"
+ integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==
+
error-ex@^1.3.2:
version "1.3.4"
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.4.tgz#b3a8d8bb6f92eecc1629e3e27d3c8607a8a32414"
@@ -314,65 +364,56 @@ error-ex@^1.3.2:
dependencies:
is-arrayish "^0.2.1"
-eslint-mdx@^2:
- version "2.3.4"
- resolved "https://registry.yarnpkg.com/eslint-mdx/-/eslint-mdx-2.3.4.tgz#87a5d95d6fcb27bafd2b15092f16f5aa559e336b"
- integrity sha512-u4NszEUyoGtR7Q0A4qs0OymsEQdCO6yqWlTzDa9vGWsK7aMotdnW0hqifHTkf6lEtA2vHk2xlkWHTCrhYLyRbw==
+eslint-mdx@^3.8.1:
+ version "3.8.1"
+ resolved "https://registry.yarnpkg.com/eslint-mdx/-/eslint-mdx-3.8.1.tgz#6fd5767271d68197b1cc72a6420e9b25e3bd3bb7"
+ integrity sha512-hnsqWwMOHqUANwxWEGt8XbwABPEr5sTOolAzqyUDFdlERpqjFE/icylb+mJl60VICL+kLbbvXWbnFLWZdTqJ2g==
dependencies:
- acorn "^8.10.0"
+ acorn "^8.15.0"
acorn-jsx "^5.3.2"
- espree "^9.6.1"
- estree-util-visit "^1.2.1"
- remark-mdx "^2.3.0"
- remark-parse "^10.0.2"
- remark-stringify "^10.0.3"
- synckit "^0.9.0"
- tslib "^2.6.1"
- unified "^10.1.2"
- unified-engine "^10.1.0"
- unist-util-visit "^4.1.2"
- uvu "^0.5.6"
- vfile "^5.3.7"
-
-eslint-visitor-keys@^3.4.1:
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
- integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
+ espree "^9.6.1 || ^10.4.0 || ^11.2.0"
+ estree-util-visit "^2.0.0"
+ remark-mdx "^3.1.0"
+ remark-parse "^11.0.0"
+ remark-stringify "^11.0.0"
+ synckit "^0.11.8"
+ unified "^11.0.5"
+ unified-engine "^11.2.2"
+ unist-util-visit "^5.0.0"
+ vfile "^6.0.3"
+
+eslint-visitor-keys@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz#9e3c9489697824d2d4ce3a8ad12628f91e9f59be"
+ integrity sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==
-espree@^9.6.1:
- version "9.6.1"
- resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f"
- integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==
+"espree@^9.6.1 || ^10.4.0 || ^11.2.0":
+ version "11.2.0"
+ resolved "https://registry.yarnpkg.com/espree/-/espree-11.2.0.tgz#01d5e47dc332aaba3059008362454a8cc34ccaa5"
+ integrity sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==
dependencies:
- acorn "^8.9.0"
+ acorn "^8.16.0"
acorn-jsx "^5.3.2"
- eslint-visitor-keys "^3.4.1"
+ eslint-visitor-keys "^5.0.1"
-estree-util-is-identifier-name@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-2.1.0.tgz#fb70a432dcb19045e77b05c8e732f1364b4b49b2"
- integrity sha512-bEN9VHRyXAUOjkKVQVvArFym08BTWB0aJPppZZr0UNyAqWsLaVfAqP7hbaTJjzHifmB5ebnR8Wm7r7yGN/HonQ==
+estree-util-is-identifier-name@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz#0b5ef4c4ff13508b34dcd01ecfa945f61fce5dbd"
+ integrity sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==
-estree-util-visit@^1.0.0, estree-util-visit@^1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/estree-util-visit/-/estree-util-visit-1.2.1.tgz#8bc2bc09f25b00827294703835aabee1cc9ec69d"
- integrity sha512-xbgqcrkIVbIG+lI/gzbvd9SGTJL4zqJKBFttUl5pP27KhAjtMKbX/mQXJ7qgyXpMgVy/zvpm0xoQQaGL8OloOw==
+estree-util-visit@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/estree-util-visit/-/estree-util-visit-2.0.0.tgz#13a9a9f40ff50ed0c022f831ddf4b58d05446feb"
+ integrity sha512-m5KgiH85xAhhW8Wta0vShLcUvOsh3LLPI2YVwcbio1l7E09NTLL1EyMZFM1OyWowoH0skScNbhOPl4kcBgzTww==
dependencies:
"@types/estree-jsx" "^1.0.0"
- "@types/unist" "^2.0.0"
+ "@types/unist" "^3.0.0"
extend@^3.0.0:
version "3.0.2"
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
-fault@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/fault/-/fault-2.0.1.tgz#d47ca9f37ca26e4bd38374a7c500b5a384755b6c"
- integrity sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==
- dependencies:
- format "^0.2.0"
-
foreground-child@^3.1.0:
version "3.3.1"
resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.1.tgz#32e8e9ed1b68a3497befb9ac2b6adf92a638576f"
@@ -381,15 +422,17 @@ foreground-child@^3.1.0:
cross-spawn "^7.0.6"
signal-exit "^4.0.1"
-format@^0.2.0:
- version "0.2.2"
- resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
- integrity sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==
-
-fs.realpath@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
- integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
+glob@^10.0.0:
+ version "10.5.0"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-10.5.0.tgz#8ec0355919cd3338c28428a23d4f24ecc5fe738c"
+ integrity sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==
+ dependencies:
+ foreground-child "^3.1.0"
+ jackspeak "^3.1.2"
+ minimatch "^9.0.4"
+ minipass "^7.1.2"
+ package-json-from-dist "^1.0.0"
+ path-scurry "^1.11.1"
glob@^10.2.2:
version "10.4.5"
@@ -403,41 +446,29 @@ glob@^10.2.2:
package-json-from-dist "^1.0.0"
path-scurry "^1.11.1"
-glob@^8.0.0:
- version "8.1.0"
- resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
- integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==
+hosted-git-info@^7.0.0:
+ version "7.0.2"
+ resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.2.tgz#9b751acac097757667f30114607ef7b661ff4f17"
+ integrity sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==
dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^5.0.1"
- once "^1.3.0"
-
-ignore@^5.0.0:
- version "5.3.2"
- resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
- integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
+ lru-cache "^10.0.1"
-import-meta-resolve@^2.0.0:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-2.2.2.tgz#75237301e72d1f0fbd74dbc6cca9324b164c2cc9"
- integrity sha512-f8KcQ1D80V7RnqVm+/lirO9zkOxjGxhaTC1IPrBGd3MEfNgmNG67tSUO9gTi2F3Blr2Az6g1vocaxzkVnWl9MA==
+ignore@^6.0.0:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-6.0.2.tgz#77cccb72a55796af1b6d2f9eb14fa326d24f4283"
+ integrity sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==
-inflight@^1.0.4:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
- integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
- dependencies:
- once "^1.3.0"
- wrappy "1"
+import-meta-resolve@^4.0.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz#08cb85b5bd37ecc8eb1e0f670dc2767002d43734"
+ integrity sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==
-inherits@2, inherits@^2.0.3:
+inherits@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
-ini@^4.1.0:
+ini@^4.1.2, ini@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/ini/-/ini-4.1.3.tgz#4c359675a6071a46985eb39b14e4a2c0ec98a795"
integrity sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==
@@ -460,11 +491,6 @@ is-arrayish@^0.2.1:
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
-is-buffer@^2.0.0:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191"
- integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==
-
is-decimal@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-2.0.1.tgz#9469d2dc190d0214fd87d78b78caecc0cc14eef7"
@@ -495,6 +521,11 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
+isexe@^3.1.1:
+ version "3.1.5"
+ resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.5.tgz#42e368f68d5e10dadfee4fda7b550bc2d8892dc9"
+ integrity sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==
+
jackspeak@^3.1.2:
version "3.4.3"
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a"
@@ -509,436 +540,422 @@ js-tokens@^4.0.0:
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
-json-parse-even-better-errors@^2.3.1:
- version "2.3.1"
- resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
- integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
-
json-parse-even-better-errors@^3.0.0:
version "3.0.2"
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz#b43d35e89c0f3be6b5fbbe9dc6c82467b30c28da"
integrity sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==
-kleur@^4.0.3:
- version "4.1.5"
- resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
- integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==
-
-lines-and-columns@^2.0.2:
+lines-and-columns@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-2.0.4.tgz#d00318855905d2660d8c0822e3f5a4715855fc42"
integrity sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==
-load-plugin@^5.0.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/load-plugin/-/load-plugin-5.1.0.tgz#15600f5191c742b16e058cfc908c227c13db0104"
- integrity sha512-Lg1CZa1CFj2CbNaxijTL6PCbzd4qGTlZov+iH2p5Xwy/ApcZJh+i6jMN2cYePouTfjJfrNu3nXFdEw8LvbjPFQ==
+load-plugin@^6.0.0:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/load-plugin/-/load-plugin-6.0.3.tgz#b0eb8ea2361744f0e54850ccbc4c8a2d94ffabe3"
+ integrity sha512-kc0X2FEUZr145odl68frm+lMJuQ23+rTXYmR6TImqPtbpmXC4vVXbWKDQ9IzndA0HfyQamWfKLhzsqGSTxE63w==
dependencies:
- "@npmcli/config" "^6.0.0"
- import-meta-resolve "^2.0.0"
+ "@npmcli/config" "^8.0.0"
+ import-meta-resolve "^4.0.0"
longest-streak@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4"
integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==
-lru-cache@^10.2.0:
+lru-cache@^10.0.1, lru-cache@^10.2.0:
version "10.4.3"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119"
integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
-mdast-util-from-markdown@^1.0.0, mdast-util-from-markdown@^1.1.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz#9421a5a247f10d31d2faed2a30df5ec89ceafcf0"
- integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==
+mdast-util-from-markdown@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz#c95822b91aab75f18a4cbe8b2f51b873ed2cf0c7"
+ integrity sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==
dependencies:
- "@types/mdast" "^3.0.0"
- "@types/unist" "^2.0.0"
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
decode-named-character-reference "^1.0.0"
- mdast-util-to-string "^3.1.0"
- micromark "^3.0.0"
- micromark-util-decode-numeric-character-reference "^1.0.0"
- micromark-util-decode-string "^1.0.0"
- micromark-util-normalize-identifier "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- unist-util-stringify-position "^3.0.0"
- uvu "^0.5.0"
-
-mdast-util-mdx-expression@^1.0.0:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.2.tgz#d027789e67524d541d6de543f36d51ae2586f220"
- integrity sha512-xIPmR5ReJDu/DHH1OoIT1HkuybIfRGYRywC+gJtI7qHjCJp/M9jrmBEJW22O8lskDWm562BX2W8TiAwRTb0rKA==
+ devlop "^1.0.0"
+ mdast-util-to-string "^4.0.0"
+ micromark "^4.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-decode-string "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-stringify-position "^4.0.0"
+
+mdast-util-mdx-expression@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz#43f0abac9adc756e2086f63822a38c8d3c3a5096"
+ integrity sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==
dependencies:
"@types/estree-jsx" "^1.0.0"
- "@types/hast" "^2.0.0"
- "@types/mdast" "^3.0.0"
- mdast-util-from-markdown "^1.0.0"
- mdast-util-to-markdown "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
-mdast-util-mdx-jsx@^2.0.0:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-2.1.4.tgz#7c1f07f10751a78963cfabee38017cbc8b7786d1"
- integrity sha512-DtMn9CmVhVzZx3f+optVDF8yFgQVt7FghCRNdlIaS3X5Bnym3hZwPbg/XW86vdpKjlc1PVj26SpnLGeJBXD3JA==
+mdast-util-mdx-jsx@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz#fd04c67a2a7499efb905a8a5c578dddc9fdada0d"
+ integrity sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==
dependencies:
"@types/estree-jsx" "^1.0.0"
- "@types/hast" "^2.0.0"
- "@types/mdast" "^3.0.0"
- "@types/unist" "^2.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
ccount "^2.0.0"
- mdast-util-from-markdown "^1.1.0"
- mdast-util-to-markdown "^1.3.0"
+ devlop "^1.1.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
parse-entities "^4.0.0"
stringify-entities "^4.0.0"
- unist-util-remove-position "^4.0.0"
- unist-util-stringify-position "^3.0.0"
- vfile-message "^3.0.0"
+ unist-util-stringify-position "^4.0.0"
+ vfile-message "^4.0.0"
-mdast-util-mdx@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/mdast-util-mdx/-/mdast-util-mdx-2.0.1.tgz#49b6e70819b99bb615d7223c088d295e53bb810f"
- integrity sha512-38w5y+r8nyKlGvNjSEqWrhG0w5PmnRA+wnBvm+ulYCct7nsGYhFVb0lljS9bQav4psDAS1eGkP2LMVcZBi/aqw==
+mdast-util-mdx@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdx/-/mdast-util-mdx-3.0.0.tgz#792f9cf0361b46bee1fdf1ef36beac424a099c41"
+ integrity sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==
dependencies:
- mdast-util-from-markdown "^1.0.0"
- mdast-util-mdx-expression "^1.0.0"
- mdast-util-mdx-jsx "^2.0.0"
- mdast-util-mdxjs-esm "^1.0.0"
- mdast-util-to-markdown "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-mdx-expression "^2.0.0"
+ mdast-util-mdx-jsx "^3.0.0"
+ mdast-util-mdxjs-esm "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
-mdast-util-mdxjs-esm@^1.0.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-1.3.1.tgz#645d02cd607a227b49721d146fd81796b2e2d15b"
- integrity sha512-SXqglS0HrEvSdUEfoXFtcg7DRl7S2cwOXc7jkuusG472Mmjag34DUDeOJUZtl+BVnyeO1frIgVpHlNRWc2gk/w==
+mdast-util-mdxjs-esm@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz#019cfbe757ad62dd557db35a695e7314bcc9fa97"
+ integrity sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==
dependencies:
"@types/estree-jsx" "^1.0.0"
- "@types/hast" "^2.0.0"
- "@types/mdast" "^3.0.0"
- mdast-util-from-markdown "^1.0.0"
- mdast-util-to-markdown "^1.0.0"
+ "@types/hast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
+ devlop "^1.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ mdast-util-to-markdown "^2.0.0"
-mdast-util-phrasing@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz#c7c21d0d435d7fb90956038f02e8702781f95463"
- integrity sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==
+mdast-util-phrasing@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz#7cc0a8dec30eaf04b7b1a9661a92adb3382aa6e3"
+ integrity sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==
dependencies:
- "@types/mdast" "^3.0.0"
- unist-util-is "^5.0.0"
+ "@types/mdast" "^4.0.0"
+ unist-util-is "^6.0.0"
-mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz#c13343cb3fc98621911d33b5cd42e7d0731171c6"
- integrity sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==
+mdast-util-to-markdown@^2.0.0:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz#f910ffe60897f04bb4b7e7ee434486f76288361b"
+ integrity sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==
dependencies:
- "@types/mdast" "^3.0.0"
- "@types/unist" "^2.0.0"
+ "@types/mdast" "^4.0.0"
+ "@types/unist" "^3.0.0"
longest-streak "^3.0.0"
- mdast-util-phrasing "^3.0.0"
- mdast-util-to-string "^3.0.0"
- micromark-util-decode-string "^1.0.0"
- unist-util-visit "^4.0.0"
+ mdast-util-phrasing "^4.0.0"
+ mdast-util-to-string "^4.0.0"
+ micromark-util-classify-character "^2.0.0"
+ micromark-util-decode-string "^2.0.0"
+ unist-util-visit "^5.0.0"
zwitch "^2.0.0"
-mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz#66f7bb6324756741c5f47a53557f0cbf16b6f789"
- integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==
+mdast-util-to-string@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz#7a5121475556a04e7eddeb67b264aae79d312814"
+ integrity sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==
dependencies:
- "@types/mdast" "^3.0.0"
+ "@types/mdast" "^4.0.0"
-micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz#1386628df59946b2d39fb2edfd10f3e8e0a75bb8"
- integrity sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==
+micromark-core-commonmark@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz#c691630e485021a68cf28dbc2b2ca27ebf678cd4"
+ integrity sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==
dependencies:
decode-named-character-reference "^1.0.0"
- micromark-factory-destination "^1.0.0"
- micromark-factory-label "^1.0.0"
- micromark-factory-space "^1.0.0"
- micromark-factory-title "^1.0.0"
- micromark-factory-whitespace "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-chunked "^1.0.0"
- micromark-util-classify-character "^1.0.0"
- micromark-util-html-tag-name "^1.0.0"
- micromark-util-normalize-identifier "^1.0.0"
- micromark-util-resolve-all "^1.0.0"
- micromark-util-subtokenize "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.1"
- uvu "^0.5.0"
-
-micromark-extension-mdx-expression@^1.0.0:
- version "1.0.8"
- resolved "https://registry.yarnpkg.com/micromark-extension-mdx-expression/-/micromark-extension-mdx-expression-1.0.8.tgz#5bc1f5fd90388e8293b3ef4f7c6f06c24aff6314"
- integrity sha512-zZpeQtc5wfWKdzDsHRBY003H2Smg+PUi2REhqgIhdzAa5xonhP03FcXxqFSerFiNUr5AWmHpaNPQTBVOS4lrXw==
+ devlop "^1.0.0"
+ micromark-factory-destination "^2.0.0"
+ micromark-factory-label "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-factory-title "^2.0.0"
+ micromark-factory-whitespace "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-classify-character "^2.0.0"
+ micromark-util-html-tag-name "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-resolve-all "^2.0.0"
+ micromark-util-subtokenize "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-mdx-expression@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-expression/-/micromark-extension-mdx-expression-3.0.1.tgz#43d058d999532fb3041195a3c3c05c46fa84543b"
+ integrity sha512-dD/ADLJ1AeMvSAKBwO22zG22N4ybhe7kFIZ3LsDI0GlsNr2A3KYxb0LdC1u5rj4Nw+CHKY0RVdnHX8vj8ejm4Q==
dependencies:
"@types/estree" "^1.0.0"
- micromark-factory-mdx-expression "^1.0.0"
- micromark-factory-space "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-events-to-acorn "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- uvu "^0.5.0"
-
-micromark-extension-mdx-jsx@^1.0.0:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/micromark-extension-mdx-jsx/-/micromark-extension-mdx-jsx-1.0.5.tgz#e72d24b7754a30d20fb797ece11e2c4e2cae9e82"
- integrity sha512-gPH+9ZdmDflbu19Xkb8+gheqEDqkSpdCEubQyxuz/Hn8DOXiXvrXeikOoBA71+e8Pfi0/UYmU3wW3H58kr7akA==
+ devlop "^1.0.0"
+ micromark-factory-mdx-expression "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-extension-mdx-jsx@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-jsx/-/micromark-extension-mdx-jsx-3.0.2.tgz#ffc98bdb649798902fa9fc5689f67f9c1c902044"
+ integrity sha512-e5+q1DjMh62LZAJOnDraSSbDMvGJ8x3cbjygy2qFEi7HCeUT4BDKCvMozPozcD6WmOt6sVvYDNBKhFSz3kjOVQ==
dependencies:
- "@types/acorn" "^4.0.0"
"@types/estree" "^1.0.0"
- estree-util-is-identifier-name "^2.0.0"
- micromark-factory-mdx-expression "^1.0.0"
- micromark-factory-space "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- uvu "^0.5.0"
- vfile-message "^3.0.0"
-
-micromark-extension-mdx-md@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/micromark-extension-mdx-md/-/micromark-extension-mdx-md-1.0.1.tgz#595d4b2f692b134080dca92c12272ab5b74c6d1a"
- integrity sha512-7MSuj2S7xjOQXAjjkbjBsHkMtb+mDGVW6uI2dBL9snOBCbZmoNgDAeZ0nSn9j3T42UE/g2xVNMn18PJxZvkBEA==
+ devlop "^1.0.0"
+ estree-util-is-identifier-name "^3.0.0"
+ micromark-factory-mdx-expression "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-extension-mdx-md@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdx-md/-/micromark-extension-mdx-md-2.0.0.tgz#1d252881ea35d74698423ab44917e1f5b197b92d"
+ integrity sha512-EpAiszsB3blw4Rpba7xTOUptcFeBFi+6PY8VnJ2hhimH+vCQDirWgsMpz7w1XcZE7LVrSAUGb9VJpG9ghlYvYQ==
dependencies:
- micromark-util-types "^1.0.0"
+ micromark-util-types "^2.0.0"
-micromark-extension-mdxjs-esm@^1.0.0:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs-esm/-/micromark-extension-mdxjs-esm-1.0.5.tgz#e4f8be9c14c324a80833d8d3a227419e2b25dec1"
- integrity sha512-xNRBw4aoURcyz/S69B19WnZAkWJMxHMT5hE36GtDAyhoyn/8TuAeqjFJQlwk+MKQsUD7b3l7kFX+vlfVWgcX1w==
+micromark-extension-mdxjs-esm@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs-esm/-/micromark-extension-mdxjs-esm-3.0.0.tgz#de21b2b045fd2059bd00d36746081de38390d54a"
+ integrity sha512-DJFl4ZqkErRpq/dAPyeWp15tGrcrrJho1hKK5uBS70BCtfrIFg81sqcTVu3Ta+KD1Tk5vAtBNElWxtAa+m8K9A==
dependencies:
"@types/estree" "^1.0.0"
- micromark-core-commonmark "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-events-to-acorn "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- unist-util-position-from-estree "^1.1.0"
- uvu "^0.5.0"
- vfile-message "^3.0.0"
-
-micromark-extension-mdxjs@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs/-/micromark-extension-mdxjs-1.0.1.tgz#f78d4671678d16395efeda85170c520ee795ded8"
- integrity sha512-7YA7hF6i5eKOfFUzZ+0z6avRG52GpWR8DL+kN47y3f2KhxbBZMhmxe7auOeaTBrW2DenbbZTf1ea9tA2hDpC2Q==
+ devlop "^1.0.0"
+ micromark-core-commonmark "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-position-from-estree "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-extension-mdxjs@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/micromark-extension-mdxjs/-/micromark-extension-mdxjs-3.0.0.tgz#b5a2e0ed449288f3f6f6c544358159557549de18"
+ integrity sha512-A873fJfhnJ2siZyUrJ31l34Uqwy4xIFmvPY1oj+Ean5PHcPBYzEsvqvWGaWcfEIr11O5Dlw3p2y0tZWpKHDejQ==
dependencies:
acorn "^8.0.0"
acorn-jsx "^5.0.0"
- micromark-extension-mdx-expression "^1.0.0"
- micromark-extension-mdx-jsx "^1.0.0"
- micromark-extension-mdx-md "^1.0.0"
- micromark-extension-mdxjs-esm "^1.0.0"
- micromark-util-combine-extensions "^1.0.0"
- micromark-util-types "^1.0.0"
-
-micromark-factory-destination@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz#eb815957d83e6d44479b3df640f010edad667b9f"
- integrity sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==
+ micromark-extension-mdx-expression "^3.0.0"
+ micromark-extension-mdx-jsx "^3.0.0"
+ micromark-extension-mdx-md "^2.0.0"
+ micromark-extension-mdxjs-esm "^3.0.0"
+ micromark-util-combine-extensions "^2.0.0"
+ micromark-util-types "^2.0.0"
+
+micromark-factory-destination@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz#8fef8e0f7081f0474fbdd92deb50c990a0264639"
+ integrity sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==
dependencies:
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-factory-label@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz#cc95d5478269085cfa2a7282b3de26eb2e2dec68"
- integrity sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==
+micromark-factory-label@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz#5267efa97f1e5254efc7f20b459a38cb21058ba1"
+ integrity sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==
dependencies:
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- uvu "^0.5.0"
+ devlop "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-factory-mdx-expression@^1.0.0:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/micromark-factory-mdx-expression/-/micromark-factory-mdx-expression-1.0.9.tgz#57ba4571b69a867a1530f34741011c71c73a4976"
- integrity sha512-jGIWzSmNfdnkJq05c7b0+Wv0Kfz3NJ3N4cBjnbO4zjXIlxJr+f8lk+5ZmwFvqdAbUy2q6B5rCY//g0QAAaXDWA==
+micromark-factory-mdx-expression@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/micromark-factory-mdx-expression/-/micromark-factory-mdx-expression-2.0.3.tgz#bb09988610589c07d1c1e4425285895041b3dfa9"
+ integrity sha512-kQnEtA3vzucU2BkrIa8/VaSAsP+EJ3CKOvhMuJgOEGg9KDC6OAY6nSnNDVRiVNRqj7Y4SlSzcStaH/5jge8JdQ==
dependencies:
"@types/estree" "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-events-to-acorn "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- unist-util-position-from-estree "^1.0.0"
- uvu "^0.5.0"
- vfile-message "^3.0.0"
-
-micromark-factory-space@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz#c8f40b0640a0150751d3345ed885a080b0d15faf"
- integrity sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==
+ devlop "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-events-to-acorn "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unist-util-position-from-estree "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-factory-space@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz#36d0212e962b2b3121f8525fc7a3c7c029f334fc"
+ integrity sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==
dependencies:
- micromark-util-character "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-factory-title@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz#dd0fe951d7a0ac71bdc5ee13e5d1465ad7f50ea1"
- integrity sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==
+micromark-factory-title@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz#237e4aa5d58a95863f01032d9ee9b090f1de6e94"
+ integrity sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==
dependencies:
- micromark-factory-space "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-factory-whitespace@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz#798fb7489f4c8abafa7ca77eed6b5745853c9705"
- integrity sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==
+micromark-factory-whitespace@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz#06b26b2983c4d27bfcc657b33e25134d4868b0b1"
+ integrity sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==
dependencies:
- micromark-factory-space "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-character@^1.0.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-1.2.0.tgz#4fedaa3646db249bc58caeb000eb3549a8ca5dcc"
- integrity sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==
+micromark-util-character@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-character/-/micromark-util-character-2.1.1.tgz#2f987831a40d4c510ac261e89852c4e9703ccda6"
+ integrity sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==
dependencies:
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-chunked@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz#37a24d33333c8c69a74ba12a14651fd9ea8a368b"
- integrity sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==
+micromark-util-chunked@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz#47fbcd93471a3fccab86cff03847fc3552db1051"
+ integrity sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==
dependencies:
- micromark-util-symbol "^1.0.0"
+ micromark-util-symbol "^2.0.0"
-micromark-util-classify-character@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz#6a7f8c8838e8a120c8e3c4f2ae97a2bff9190e9d"
- integrity sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==
+micromark-util-classify-character@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz#d399faf9c45ca14c8b4be98b1ea481bced87b629"
+ integrity sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==
dependencies:
- micromark-util-character "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-combine-extensions@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz#192e2b3d6567660a85f735e54d8ea6e3952dbe84"
- integrity sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==
+micromark-util-combine-extensions@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz#2a0f490ab08bff5cc2fd5eec6dd0ca04f89b30a9"
+ integrity sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==
dependencies:
- micromark-util-chunked "^1.0.0"
- micromark-util-types "^1.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-decode-numeric-character-reference@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz#b1e6e17009b1f20bc652a521309c5f22c85eb1c6"
- integrity sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==
+micromark-util-decode-numeric-character-reference@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz#fcf15b660979388e6f118cdb6bf7d79d73d26fe5"
+ integrity sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==
dependencies:
- micromark-util-symbol "^1.0.0"
+ micromark-util-symbol "^2.0.0"
-micromark-util-decode-string@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz#dc12b078cba7a3ff690d0203f95b5d5537f2809c"
- integrity sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==
+micromark-util-decode-string@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz#6cb99582e5d271e84efca8e61a807994d7161eb2"
+ integrity sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==
dependencies:
decode-named-character-reference "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-decode-numeric-character-reference "^1.0.0"
- micromark-util-symbol "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-symbol "^2.0.0"
-micromark-util-encode@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz#92e4f565fd4ccb19e0dcae1afab9a173bbeb19a5"
- integrity sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==
+micromark-util-encode@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz#0d51d1c095551cfaac368326963cf55f15f540b8"
+ integrity sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==
-micromark-util-events-to-acorn@^1.0.0:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-1.2.3.tgz#a4ab157f57a380e646670e49ddee97a72b58b557"
- integrity sha512-ij4X7Wuc4fED6UoLWkmo0xJQhsktfNh1J0m8g4PbIMPlx+ek/4YdW5mvbye8z/aZvAPUoxgXHrwVlXAPKMRp1w==
+micromark-util-events-to-acorn@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/micromark-util-events-to-acorn/-/micromark-util-events-to-acorn-2.0.3.tgz#e7a8a6b55a47e5a06c720d5a1c4abae8c37c98f3"
+ integrity sha512-jmsiEIiZ1n7X1Rr5k8wVExBQCg5jy4UXVADItHmNk1zkwEVhBuIUKRu3fqv+hs4nxLISi2DQGlqIOGiFxgbfHg==
dependencies:
- "@types/acorn" "^4.0.0"
"@types/estree" "^1.0.0"
- "@types/unist" "^2.0.0"
- estree-util-visit "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- uvu "^0.5.0"
- vfile-message "^3.0.0"
-
-micromark-util-html-tag-name@^1.0.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz#48fd7a25826f29d2f71479d3b4e83e94829b3588"
- integrity sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==
+ "@types/unist" "^3.0.0"
+ devlop "^1.0.0"
+ estree-util-visit "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
+ vfile-message "^4.0.0"
+
+micromark-util-html-tag-name@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz#e40403096481986b41c106627f98f72d4d10b825"
+ integrity sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==
-micromark-util-normalize-identifier@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz#7a73f824eb9f10d442b4d7f120fecb9b38ebf8b7"
- integrity sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==
+micromark-util-normalize-identifier@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz#c30d77b2e832acf6526f8bf1aa47bc9c9438c16d"
+ integrity sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==
dependencies:
- micromark-util-symbol "^1.0.0"
+ micromark-util-symbol "^2.0.0"
-micromark-util-resolve-all@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz#4652a591ee8c8fa06714c9b54cd6c8e693671188"
- integrity sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==
+micromark-util-resolve-all@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz#e1a2d62cdd237230a2ae11839027b19381e31e8b"
+ integrity sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==
dependencies:
- micromark-util-types "^1.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-sanitize-uri@^1.0.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz#613f738e4400c6eedbc53590c67b197e30d7f90d"
- integrity sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==
+micromark-util-sanitize-uri@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz#ab89789b818a58752b73d6b55238621b7faa8fd7"
+ integrity sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==
dependencies:
- micromark-util-character "^1.0.0"
- micromark-util-encode "^1.0.0"
- micromark-util-symbol "^1.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-encode "^2.0.0"
+ micromark-util-symbol "^2.0.0"
-micromark-util-subtokenize@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz#941c74f93a93eaf687b9054aeb94642b0e92edb1"
- integrity sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==
+micromark-util-subtokenize@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz#d8ade5ba0f3197a1cf6a2999fbbfe6357a1a19ee"
+ integrity sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==
dependencies:
- micromark-util-chunked "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.0"
- uvu "^0.5.0"
+ devlop "^1.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
-micromark-util-symbol@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz#813cd17837bdb912d069a12ebe3a44b6f7063142"
- integrity sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==
+micromark-util-symbol@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz#e5da494e8eb2b071a0d08fb34f6cefec6c0a19b8"
+ integrity sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==
-micromark-util-types@^1.0.0, micromark-util-types@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-1.1.0.tgz#e6676a8cae0bb86a2171c498167971886cb7e283"
- integrity sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==
+micromark-util-types@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/micromark-util-types/-/micromark-util-types-2.0.2.tgz#f00225f5f5a0ebc3254f96c36b6605c4b393908e"
+ integrity sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==
-micromark@^3.0.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/micromark/-/micromark-3.2.0.tgz#1af9fef3f995ea1ea4ac9c7e2f19c48fd5c006e9"
- integrity sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==
+micromark@^4.0.0:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/micromark/-/micromark-4.0.2.tgz#91395a3e1884a198e62116e33c9c568e39936fdb"
+ integrity sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==
dependencies:
"@types/debug" "^4.0.0"
debug "^4.0.0"
decode-named-character-reference "^1.0.0"
- micromark-core-commonmark "^1.0.1"
- micromark-factory-space "^1.0.0"
- micromark-util-character "^1.0.0"
- micromark-util-chunked "^1.0.0"
- micromark-util-combine-extensions "^1.0.0"
- micromark-util-decode-numeric-character-reference "^1.0.0"
- micromark-util-encode "^1.0.0"
- micromark-util-normalize-identifier "^1.0.0"
- micromark-util-resolve-all "^1.0.0"
- micromark-util-sanitize-uri "^1.0.0"
- micromark-util-subtokenize "^1.0.0"
- micromark-util-symbol "^1.0.0"
- micromark-util-types "^1.0.1"
- uvu "^0.5.0"
-
-minimatch@^5.0.1:
- version "5.1.6"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
- integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
- dependencies:
- brace-expansion "^2.0.1"
+ devlop "^1.0.0"
+ micromark-core-commonmark "^2.0.0"
+ micromark-factory-space "^2.0.0"
+ micromark-util-character "^2.0.0"
+ micromark-util-chunked "^2.0.0"
+ micromark-util-combine-extensions "^2.0.0"
+ micromark-util-decode-numeric-character-reference "^2.0.0"
+ micromark-util-encode "^2.0.0"
+ micromark-util-normalize-identifier "^2.0.0"
+ micromark-util-resolve-all "^2.0.0"
+ micromark-util-sanitize-uri "^2.0.0"
+ micromark-util-subtokenize "^2.0.0"
+ micromark-util-symbol "^2.0.0"
+ micromark-util-types "^2.0.0"
minimatch@^9.0.0, minimatch@^9.0.4:
version "9.0.5"
@@ -952,34 +969,58 @@ minimatch@^9.0.0, minimatch@^9.0.4:
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707"
integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
-mri@^1.1.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
- integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
-
ms@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
-nopt@^7.0.0:
+nopt@^7.2.1:
version "7.2.1"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7"
integrity sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==
dependencies:
abbrev "^2.0.0"
+normalize-package-data@^6.0.0:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-6.0.2.tgz#a7bc22167fe24025412bcff0a9651eb768b03506"
+ integrity sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==
+ dependencies:
+ hosted-git-info "^7.0.0"
+ semver "^7.3.5"
+ validate-npm-package-license "^3.0.4"
+
+npm-install-checks@^6.0.0:
+ version "6.3.0"
+ resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-6.3.0.tgz#046552d8920e801fa9f919cad569545d60e826fe"
+ integrity sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==
+ dependencies:
+ semver "^7.1.1"
+
npm-normalize-package-bin@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz#25447e32a9a7de1f51362c61a559233b89947832"
integrity sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==
-once@^1.3.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
- integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
+npm-package-arg@^11.0.0:
+ version "11.0.3"
+ resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.3.tgz#dae0c21199a99feca39ee4bfb074df3adac87e2d"
+ integrity sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==
dependencies:
- wrappy "1"
+ hosted-git-info "^7.0.0"
+ proc-log "^4.0.0"
+ semver "^7.3.5"
+ validate-npm-package-name "^5.0.0"
+
+npm-pick-manifest@^9.0.0:
+ version "9.1.0"
+ resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.1.0.tgz#83562afde52b0b07cb6244361788d319ce7e8636"
+ integrity sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA==
+ dependencies:
+ npm-install-checks "^6.0.0"
+ npm-normalize-package-bin "^3.0.0"
+ npm-package-arg "^11.0.0"
+ semver "^7.3.5"
package-json-from-dist@^1.0.0:
version "1.0.1"
@@ -999,15 +1040,16 @@ parse-entities@^4.0.0:
is-decimal "^2.0.0"
is-hexadecimal "^2.0.0"
-parse-json@^6.0.0:
- version "6.0.2"
- resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-6.0.2.tgz#6bf79c201351cc12d5d66eba48d5a097c13dc200"
- integrity sha512-SA5aMiaIjXkAiBrW/yPgLgQAQg42f7K3ACO+2l/zOvtQBwX58DMUsFJXelW2fx3yMBmWOVkR6j1MGsdSbCA4UA==
+parse-json@^7.0.0:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-7.1.1.tgz#68f7e6f0edf88c54ab14c00eb700b753b14e2120"
+ integrity sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==
dependencies:
- "@babel/code-frame" "^7.16.0"
+ "@babel/code-frame" "^7.21.4"
error-ex "^1.3.2"
- json-parse-even-better-errors "^2.3.1"
- lines-and-columns "^2.0.2"
+ json-parse-even-better-errors "^3.0.0"
+ lines-and-columns "^2.0.3"
+ type-fest "^3.8.0"
path-key@^3.1.0:
version "3.1.1"
@@ -1027,12 +1069,25 @@ picocolors@^1.1.1:
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
-proc-log@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8"
- integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==
+proc-log@^4.0.0, proc-log@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-4.2.0.tgz#b6f461e4026e75fdfe228b265e9f7a00779d7034"
+ integrity sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==
+
+promise-inflight@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
+ integrity sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==
+
+promise-retry@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22"
+ integrity sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==
+ dependencies:
+ err-code "^2.0.2"
+ retry "^0.12.0"
-read-package-json-fast@^3.0.0, read-package-json-fast@^3.0.2:
+read-package-json-fast@^3.0.0:
version "3.0.2"
resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz#394908a9725dc7a5f14e70c8e7556dff1d2b1049"
integrity sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==
@@ -1049,44 +1104,48 @@ readable-stream@^3.0.2:
string_decoder "^1.1.1"
util-deprecate "^1.0.1"
-remark-mdx@^2.3.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/remark-mdx/-/remark-mdx-2.3.0.tgz#efe678025a8c2726681bde8bf111af4a93943db4"
- integrity sha512-g53hMkpM0I98MU266IzDFMrTD980gNF3BJnkyFcmN+dD873mQeD5rdMO3Y2X+x8umQfbSE0PcoEDl7ledSA+2g==
+remark-mdx@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/remark-mdx/-/remark-mdx-3.1.1.tgz#047f97038bc7ec387aebb4b0a4fe23779999d845"
+ integrity sha512-Pjj2IYlUY3+D8x00UJsIOg5BEvfMyeI+2uLPn9VO9Wg4MEtN/VTIq2NEJQfde9PnX15KgtHyl9S0BcTnWrIuWg==
dependencies:
- mdast-util-mdx "^2.0.0"
- micromark-extension-mdxjs "^1.0.0"
+ mdast-util-mdx "^3.0.0"
+ micromark-extension-mdxjs "^3.0.0"
-remark-parse@^10.0.2:
- version "10.0.2"
- resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-10.0.2.tgz#ca241fde8751c2158933f031a4e3efbaeb8bc262"
- integrity sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==
+remark-parse@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-11.0.0.tgz#aa60743fcb37ebf6b069204eb4da304e40db45a1"
+ integrity sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==
dependencies:
- "@types/mdast" "^3.0.0"
- mdast-util-from-markdown "^1.0.0"
- unified "^10.0.0"
+ "@types/mdast" "^4.0.0"
+ mdast-util-from-markdown "^2.0.0"
+ micromark-util-types "^2.0.0"
+ unified "^11.0.0"
-remark-stringify@^10.0.3:
- version "10.0.3"
- resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-10.0.3.tgz#83b43f2445c4ffbb35b606f967d121b2b6d69717"
- integrity sha512-koyOzCMYoUHudypbj4XpnAKFbkddRMYZHwghnxd7ue5210WzGw6kOBwauJTRUMq16jsovXx8dYNvSSWP89kZ3A==
+remark-stringify@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-11.0.0.tgz#4c5b01dd711c269df1aaae11743eb7e2e7636fd3"
+ integrity sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==
dependencies:
- "@types/mdast" "^3.0.0"
- mdast-util-to-markdown "^1.0.0"
- unified "^10.0.0"
+ "@types/mdast" "^4.0.0"
+ mdast-util-to-markdown "^2.0.0"
+ unified "^11.0.0"
-sade@^1.7.3:
- version "1.8.1"
- resolved "https://registry.yarnpkg.com/sade/-/sade-1.8.1.tgz#0a78e81d658d394887be57d2a409bf703a3b2701"
- integrity sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==
- dependencies:
- mri "^1.1.0"
+retry@^0.12.0:
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b"
+ integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==
safe-buffer@~5.2.0:
version "5.2.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+semver@^7.1.1, semver@^7.5.3:
+ version "7.8.5"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-7.8.5.tgz#39b646037dd50c14fb451e7e4cac58ed8b863f69"
+ integrity sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==
+
semver@^7.3.5:
version "7.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
@@ -1109,6 +1168,32 @@ signal-exit@^4.0.1:
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
+spdx-correct@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c"
+ integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==
+ dependencies:
+ spdx-expression-parse "^3.0.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-exceptions@^2.1.0:
+ version "2.5.0"
+ resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz#5d607d27fc806f66d7b64a766650fa890f04ed66"
+ integrity sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==
+
+spdx-expression-parse@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679"
+ integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==
+ dependencies:
+ spdx-exceptions "^2.1.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-license-ids@^3.0.0:
+ version "3.0.23"
+ resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.23.tgz#b069e687b1291a32f126893ed76a27a745ee2133"
+ integrity sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==
+
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
@@ -1127,7 +1212,7 @@ string-width@^4.1.0:
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"
-string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2:
+string-width@^5.0.1, string-width@^5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
@@ -1136,6 +1221,15 @@ string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2:
emoji-regex "^9.2.2"
strip-ansi "^7.0.1"
+string-width@^6.0.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-6.1.0.tgz#96488d6ed23f9ad5d82d13522af9e4c4c3fd7518"
+ integrity sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==
+ dependencies:
+ eastasianwidth "^0.2.0"
+ emoji-regex "^10.2.1"
+ strip-ansi "^7.0.1"
+
string_decoder@^1.1.1:
version "1.3.0"
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
@@ -1177,203 +1271,186 @@ supports-color@^9.0.0:
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-9.4.0.tgz#17bfcf686288f531db3dea3215510621ccb55954"
integrity sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==
-synckit@^0.9.0:
- version "0.9.3"
- resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.9.3.tgz#1cfd60d9e61f931e07fb7f56f474b5eb31b826a7"
- integrity sha512-JJoOEKTfL1urb1mDoEblhD9NhEbWmq9jHEMEnxoC4ujUaZ4itA8vKgwkFAyNClgxplLi9tsUKX+EduK0p/l7sg==
- dependencies:
- "@pkgr/core" "^0.1.0"
- tslib "^2.6.2"
-
-to-vfile@^7.0.0:
- version "7.2.4"
- resolved "https://registry.yarnpkg.com/to-vfile/-/to-vfile-7.2.4.tgz#b97ecfcc15905ffe020bc975879053928b671378"
- integrity sha512-2eQ+rJ2qGbyw3senPI0qjuM7aut8IYXK6AEoOWb+fJx/mQYzviTckm1wDjq91QYHAPBTYzmdJXxMFA6Mk14mdw==
+synckit@^0.11.8:
+ version "0.11.13"
+ resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.11.13.tgz#062a5ea57d81befc35892f8254de5c567e97c80a"
+ integrity sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==
dependencies:
- is-buffer "^2.0.0"
- vfile "^5.1.0"
+ "@pkgr/core" "^0.3.6"
trough@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/trough/-/trough-2.2.0.tgz#94a60bd6bd375c152c1df911a4b11d5b0256f50f"
integrity sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==
-tslib@^2.6.1, tslib@^2.6.2:
- version "2.8.1"
- resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f"
- integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==
+type-fest@^3.8.0:
+ version "3.13.1"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.13.1.tgz#bb744c1f0678bea7543a2d1ec24e83e68e8c8706"
+ integrity sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==
typedarray@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
-undici-types@~5.26.4:
- version "5.26.5"
- resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
- integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
+undici-types@~6.21.0:
+ version "6.21.0"
+ resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
+ integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
undici-types@~7.12.0:
version "7.12.0"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.12.0.tgz#15c5c7475c2a3ba30659529f5cdb4674b622fafb"
integrity sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==
-unified-engine@^10.1.0:
- version "10.1.0"
- resolved "https://registry.yarnpkg.com/unified-engine/-/unified-engine-10.1.0.tgz#6899f00d1f53ee9af94f7abd0ec21242aae3f56c"
- integrity sha512-5+JDIs4hqKfHnJcVCxTid1yBoI/++FfF/1PFdSMpaftZZZY+qg2JFruRbf7PaIwa9KgLotXQV3gSjtY0IdcFGQ==
+unified-engine@^11.2.2:
+ version "11.2.2"
+ resolved "https://registry.yarnpkg.com/unified-engine/-/unified-engine-11.2.2.tgz#9e2f7e477cc1f431ae5489d67c7363b00b835d7f"
+ integrity sha512-15g/gWE7qQl9tQ3nAEbMd5h9HV1EACtFs6N9xaRBZICoCwnNGbal1kOs++ICf4aiTdItZxU2s/kYWhW7htlqJg==
dependencies:
"@types/concat-stream" "^2.0.0"
"@types/debug" "^4.0.0"
"@types/is-empty" "^1.0.0"
- "@types/node" "^18.0.0"
- "@types/unist" "^2.0.0"
+ "@types/node" "^22.0.0"
+ "@types/unist" "^3.0.0"
concat-stream "^2.0.0"
debug "^4.0.0"
- fault "^2.0.0"
- glob "^8.0.0"
- ignore "^5.0.0"
- is-buffer "^2.0.0"
+ extend "^3.0.0"
+ glob "^10.0.0"
+ ignore "^6.0.0"
is-empty "^1.0.0"
is-plain-obj "^4.0.0"
- load-plugin "^5.0.0"
- parse-json "^6.0.0"
- to-vfile "^7.0.0"
+ load-plugin "^6.0.0"
+ parse-json "^7.0.0"
trough "^2.0.0"
- unist-util-inspect "^7.0.0"
- vfile-message "^3.0.0"
- vfile-reporter "^7.0.0"
- vfile-statistics "^2.0.0"
+ unist-util-inspect "^8.0.0"
+ vfile "^6.0.0"
+ vfile-message "^4.0.0"
+ vfile-reporter "^8.0.0"
+ vfile-statistics "^3.0.0"
yaml "^2.0.0"
-unified@^10.0.0, unified@^10.1.2:
- version "10.1.2"
- resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df"
- integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==
+unified@^11.0.0, unified@^11.0.5:
+ version "11.0.5"
+ resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.5.tgz#f66677610a5c0a9ee90cab2b8d4d66037026d9e1"
+ integrity sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==
dependencies:
- "@types/unist" "^2.0.0"
+ "@types/unist" "^3.0.0"
bail "^2.0.0"
+ devlop "^1.0.0"
extend "^3.0.0"
- is-buffer "^2.0.0"
is-plain-obj "^4.0.0"
trough "^2.0.0"
- vfile "^5.0.0"
-
-unist-util-inspect@^7.0.0:
- version "7.0.2"
- resolved "https://registry.yarnpkg.com/unist-util-inspect/-/unist-util-inspect-7.0.2.tgz#858e4f02ee4053f7c6ada8bc81662901a0ee1893"
- integrity sha512-Op0XnmHUl6C2zo/yJCwhXQSm/SmW22eDZdWP2qdf4WpGrgO1ZxFodq+5zFyeRGasFjJotAnLgfuD1jkcKqiH1Q==
- dependencies:
- "@types/unist" "^2.0.0"
+ vfile "^6.0.0"
-unist-util-is@^5.0.0:
- version "5.2.1"
- resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-5.2.1.tgz#b74960e145c18dcb6226bc57933597f5486deae9"
- integrity sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==
+unist-util-inspect@^8.0.0:
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/unist-util-inspect/-/unist-util-inspect-8.1.0.tgz#ff2729b543c483041b3c29cbe04c5460a406ee25"
+ integrity sha512-mOlg8Mp33pR0eeFpo5d2902ojqFFOKMMG2hF8bmH7ZlhnmjFgh0NI3/ZDwdaBJNbvrS7LZFVrBVtIE9KZ9s7vQ==
dependencies:
- "@types/unist" "^2.0.0"
+ "@types/unist" "^3.0.0"
-unist-util-position-from-estree@^1.0.0, unist-util-position-from-estree@^1.1.0:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/unist-util-position-from-estree/-/unist-util-position-from-estree-1.1.2.tgz#8ac2480027229de76512079e377afbcabcfcce22"
- integrity sha512-poZa0eXpS+/XpoQwGwl79UUdea4ol2ZuCYguVaJS4qzIOMDzbqz8a3erUCOmubSZkaOuGamb3tX790iwOIROww==
+unist-util-is@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-6.0.1.tgz#d0a3f86f2dd0db7acd7d8c2478080b5c67f9c6a9"
+ integrity sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==
dependencies:
- "@types/unist" "^2.0.0"
+ "@types/unist" "^3.0.0"
-unist-util-remove-position@^4.0.0:
- version "4.0.2"
- resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-4.0.2.tgz#a89be6ea72e23b1a402350832b02a91f6a9afe51"
- integrity sha512-TkBb0HABNmxzAcfLf4qsIbFbaPDvMO6wa3b3j4VcEzFVaw1LBKwnW4/sRJ/atSLSzoIg41JWEdnE7N6DIhGDGQ==
+unist-util-position-from-estree@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-position-from-estree/-/unist-util-position-from-estree-2.0.0.tgz#d94da4df596529d1faa3de506202f0c9a23f2200"
+ integrity sha512-KaFVRjoqLyF6YXCbVLNad/eS4+OfPQQn2yOd7zF/h5T/CSL2v8NpN6a5TPvtbXthAGw5nG+PuTtq+DdIZr+cRQ==
dependencies:
- "@types/unist" "^2.0.0"
- unist-util-visit "^4.0.0"
+ "@types/unist" "^3.0.0"
-unist-util-stringify-position@^3.0.0:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz#03ad3348210c2d930772d64b489580c13a7db39d"
- integrity sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==
+unist-util-stringify-position@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2"
+ integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==
dependencies:
- "@types/unist" "^2.0.0"
+ "@types/unist" "^3.0.0"
-unist-util-visit-parents@^5.1.1:
- version "5.1.3"
- resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz#b4520811b0ca34285633785045df7a8d6776cfeb"
- integrity sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==
+unist-util-visit-parents@^6.0.0:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz#777df7fb98652ce16b4b7cd999d0a1a40efa3a02"
+ integrity sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==
dependencies:
- "@types/unist" "^2.0.0"
- unist-util-is "^5.0.0"
+ "@types/unist" "^3.0.0"
+ unist-util-is "^6.0.0"
-unist-util-visit@^4.0.0, unist-util-visit@^4.1.2:
- version "4.1.2"
- resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2"
- integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==
+unist-util-visit@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-5.1.0.tgz#9a2a28b0aa76a15e0da70a08a5863a2f060e2468"
+ integrity sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==
dependencies:
- "@types/unist" "^2.0.0"
- unist-util-is "^5.0.0"
- unist-util-visit-parents "^5.1.1"
+ "@types/unist" "^3.0.0"
+ unist-util-is "^6.0.0"
+ unist-util-visit-parents "^6.0.0"
util-deprecate@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
-uvu@^0.5.0, uvu@^0.5.6:
- version "0.5.6"
- resolved "https://registry.yarnpkg.com/uvu/-/uvu-0.5.6.tgz#2754ca20bcb0bb59b64e9985e84d2e81058502df"
- integrity sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==
+validate-npm-package-license@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
+ integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==
dependencies:
- dequal "^2.0.0"
- diff "^5.0.0"
- kleur "^4.0.3"
- sade "^1.7.3"
+ spdx-correct "^3.0.0"
+ spdx-expression-parse "^3.0.0"
+
+validate-npm-package-name@^5.0.0:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz#a316573e9b49f3ccd90dbb6eb52b3f06c6d604e8"
+ integrity sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==
-vfile-message@^3.0.0:
- version "3.1.4"
- resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-3.1.4.tgz#15a50816ae7d7c2d1fa87090a7f9f96612b59dea"
- integrity sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==
+vfile-message@^4.0.0:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-4.0.3.tgz#87b44dddd7b70f0641c2e3ed0864ba73e2ea8df4"
+ integrity sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==
dependencies:
- "@types/unist" "^2.0.0"
- unist-util-stringify-position "^3.0.0"
+ "@types/unist" "^3.0.0"
+ unist-util-stringify-position "^4.0.0"
-vfile-reporter@^7.0.0:
- version "7.0.5"
- resolved "https://registry.yarnpkg.com/vfile-reporter/-/vfile-reporter-7.0.5.tgz#a0cbf3922c08ad428d6db1161ec64a53b5725785"
- integrity sha512-NdWWXkv6gcd7AZMvDomlQbK3MqFWL1RlGzMn++/O2TI+68+nqxCPTvLugdOtfSzXmjh+xUyhp07HhlrbJjT+mw==
+vfile-reporter@^8.0.0:
+ version "8.1.1"
+ resolved "https://registry.yarnpkg.com/vfile-reporter/-/vfile-reporter-8.1.1.tgz#ac06a5a68f1b480609c443062dffea1cfa2d11b1"
+ integrity sha512-qxRZcnFSQt6pWKn3PAk81yLK2rO2i7CDXpy8v8ZquiEOMLSnPw6BMSi9Y1sUCwGGl7a9b3CJT1CKpnRF7pp66g==
dependencies:
"@types/supports-color" "^8.0.0"
- string-width "^5.0.0"
+ string-width "^6.0.0"
supports-color "^9.0.0"
- unist-util-stringify-position "^3.0.0"
- vfile "^5.0.0"
- vfile-message "^3.0.0"
- vfile-sort "^3.0.0"
- vfile-statistics "^2.0.0"
+ unist-util-stringify-position "^4.0.0"
+ vfile "^6.0.0"
+ vfile-message "^4.0.0"
+ vfile-sort "^4.0.0"
+ vfile-statistics "^3.0.0"
-vfile-sort@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/vfile-sort/-/vfile-sort-3.0.1.tgz#4b06ec63e2946749b0bb514e736554cd75e441a2"
- integrity sha512-1os1733XY6y0D5x0ugqSeaVJm9lYgj0j5qdcZQFyxlZOSy1jYarL77lLyb5gK4Wqr1d5OxmuyflSO3zKyFnTFw==
+vfile-sort@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/vfile-sort/-/vfile-sort-4.0.0.tgz#fa1929065b62fe5311e5391c9434f745e8641703"
+ integrity sha512-lffPI1JrbHDTToJwcq0rl6rBmkjQmMuXkAxsZPRS9DXbaJQvc642eCg6EGxcX2i1L+esbuhq+2l9tBll5v8AeQ==
dependencies:
- vfile "^5.0.0"
- vfile-message "^3.0.0"
+ vfile "^6.0.0"
+ vfile-message "^4.0.0"
-vfile-statistics@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/vfile-statistics/-/vfile-statistics-2.0.1.tgz#2e1adae1cd3a45c1ed4f2a24bd103c3d71e4bce3"
- integrity sha512-W6dkECZmP32EG/l+dp2jCLdYzmnDBIw6jwiLZSER81oR5AHRcVqL+k3Z+pfH1R73le6ayDkJRMk0sutj1bMVeg==
+vfile-statistics@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/vfile-statistics/-/vfile-statistics-3.0.0.tgz#0f5cd00c611c1862b13a9b5bc5599efaf465f2cf"
+ integrity sha512-/qlwqwWBWFOmpXujL/20P+Iuydil0rZZNglR+VNm6J0gpLHwuVM5s7g2TfVoswbXjZ4HuIhLMySEyIw5i7/D8w==
dependencies:
- vfile "^5.0.0"
- vfile-message "^3.0.0"
+ vfile "^6.0.0"
+ vfile-message "^4.0.0"
-vfile@^5.0.0, vfile@^5.1.0, vfile@^5.3.7:
- version "5.3.7"
- resolved "https://registry.yarnpkg.com/vfile/-/vfile-5.3.7.tgz#de0677e6683e3380fafc46544cfe603118826ab7"
- integrity sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==
+vfile@^6.0.0, vfile@^6.0.3:
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/vfile/-/vfile-6.0.3.tgz#3652ab1c496531852bf55a6bac57af981ebc38ab"
+ integrity sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==
dependencies:
- "@types/unist" "^2.0.0"
- is-buffer "^2.0.0"
- unist-util-stringify-position "^3.0.0"
- vfile-message "^3.0.0"
+ "@types/unist" "^3.0.0"
+ vfile-message "^4.0.0"
walk-up-path@^3.0.1:
version "3.0.1"
@@ -1387,6 +1464,13 @@ which@^2.0.1:
dependencies:
isexe "^2.0.0"
+which@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a"
+ integrity sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==
+ dependencies:
+ isexe "^3.1.1"
+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
@@ -1405,11 +1489,6 @@ wrap-ansi@^8.1.0:
string-width "^5.0.1"
strip-ansi "^7.0.1"
-wrappy@1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
- integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
-
yaml@^2.0.0:
version "2.8.1"
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.1.tgz#1870aa02b631f7e8328b93f8bc574fac5d6c4d79"
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 00000000000..9b99d58bdb8
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,59 @@
+/**
+ * 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.
+ */
+
+import {defineConfig, globalIgnores} from 'eslint/config';
+import nextVitals from 'eslint-config-next/core-web-vitals';
+import typescriptEslint from 'typescript-eslint';
+import markdownParser from './eslint-local-rules/parser.js';
+import localRules from './eslint-local-rules/index.js';
+
+export default defineConfig([
+ ...nextVitals,
+ {
+ files: ['{src,plugins}/**/*.{js,jsx,ts,tsx}'],
+ plugins: {
+ 'local-rules': localRules,
+ '@typescript-eslint': typescriptEslint.plugin,
+ },
+ rules: {
+ 'no-unused-vars': 'off',
+ '@typescript-eslint/no-unused-vars': [
+ 'error',
+ {varsIgnorePattern: '^_'},
+ ],
+ 'react-hooks/exhaustive-deps': 'error',
+ 'react/no-unknown-property': ['error', {ignore: ['meta']}],
+ 'no-trailing-spaces': 'error',
+ },
+ },
+ {
+ files: ['src/content/**/*.md'],
+ languageOptions: {
+ parser: markdownParser,
+ parserOptions: {
+ sourceType: 'module',
+ },
+ },
+ plugins: {
+ 'local-rules': localRules,
+ },
+ rules: {
+ 'local-rules/lint-markdown-code-blocks': 'error',
+ },
+ },
+ globalIgnores([
+ '.next/**',
+ 'out/**',
+ 'build/**',
+ 'next-env.d.ts',
+ 'scripts/**',
+ 'plugins/**',
+ 'next.config.js',
+ '.claude/**',
+ '**/worker-bundle.dist.js',
+ ]),
+]);
diff --git a/next-env.d.ts b/next-env.d.ts
index 52e831b4342..ce4e94a6b10 100644
--- a/next-env.d.ts
+++ b/next-env.d.ts
@@ -1,5 +1,7 @@
///
///
+import "./.next/types/routes.d.ts";
+import "./.next/types/root-params.d.ts";
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/next.config.js b/next.config.js
index c8d7bf0ed64..c3ce31809b5 100644
--- a/next.config.js
+++ b/next.config.js
@@ -15,9 +15,28 @@
const nextConfig = {
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
reactStrictMode: true,
- experimental: {
- scrollRestoration: true,
- reactCompiler: true,
+ reactCompiler: true,
+ cacheComponents: true,
+ outputFileTracingIncludes: {
+ '/*': ['./src/content/**/*.md'],
+ },
+ serverExternalPackages: [
+ '@babel/core',
+ '@babel/plugin-transform-modules-commonjs',
+ '@babel/preset-react',
+ '@mdx-js/mdx',
+ 'gray-matter',
+ 'unist-util-visit',
+ 'remark-gfm',
+ 'remark-frontmatter',
+ ],
+ turbopack: {
+ resolveAlias: {
+ 'use-sync-external-store/shim': 'react',
+ esquery: 'esquery/dist/esquery.min.js',
+ raf: './src/utils/rafShim.js',
+ process: './src/utils/processShim.js',
+ },
},
async rewrites() {
return {
diff --git a/package.json b/package.json
index 97bc1432c5e..39bddc4e749 100644
--- a/package.json
+++ b/package.json
@@ -4,12 +4,14 @@
"private": true,
"license": "CC",
"scripts": {
- "analyze": "ANALYZE=true next build",
- "dev": "next-remote-watch ./src/content",
+ "preanalyze": "node scripts/buildRscWorker.mjs",
+ "analyze": "ANALYZE=true next build --webpack",
+ "predev": "node scripts/buildRscWorker.mjs",
+ "dev": "next dev",
"prebuild:rsc": "node scripts/buildRscWorker.mjs",
"build": "node scripts/buildRscWorker.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs && node ./scripts/generateOgImages.mjs",
- "lint": "next lint && eslint \"src/content/**/*.md\"",
- "lint:fix": "next lint --fix && eslint \"src/content/**/*.md\" --fix",
+ "lint": "eslint \"{src,plugins}/**/*.{js,jsx,ts,tsx}\" && eslint \"src/content/**/*.md\"",
+ "lint:fix": "eslint --fix \"{src,plugins}/**/*.{js,jsx,ts,tsx}\" && eslint --fix \"src/content/**/*.md\"",
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
"nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
"prettier": "yarn format:source",
@@ -36,49 +38,42 @@
"classnames": "^2.2.6",
"debounce": "^1.2.1",
"github-slugger": "^1.3.0",
- "next": "15.1.12",
- "next-remote-watch": "^1.0.0",
+ "next": "16.3.0",
"parse-numeric-range": "^1.2.0",
- "raw-loader": "^4.0.2",
- "react": "^19.0.0",
- "react-collapsed": "4.0.4",
- "react-dom": "^19.0.0",
+ "react": "19.2.8",
+ "react-collapsed": "^4.2.0",
+ "react-dom": "19.2.8",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1"
},
"devDependencies": {
- "@babel/core": "^7.12.9",
- "@babel/plugin-transform-modules-commonjs": "^7.18.6",
- "@babel/preset-react": "^7.18.6",
+ "@babel/core": "^7.29.7",
+ "@babel/plugin-transform-modules-commonjs": "^7.29.7",
+ "@babel/preset-react": "^7.29.7",
"@mdx-js/mdx": "^2.1.3",
"@resvg/resvg-js": "^2.6.2",
+ "@shuding/opentype.js": "1.4.0-beta.0",
"@types/body-scroll-lock": "^2.6.1",
"@types/classnames": "^2.2.10",
"@types/debounce": "^1.2.1",
"@types/github-slugger": "^1.3.0",
"@types/mdx-js__react": "^1.5.2",
- "@types/node": "^14.6.4",
+ "@types/node": "^20",
"@types/parse-numeric-range": "^0.0.1",
- "@types/react": "^19.0.0",
- "@types/react-dom": "^19.0.0",
- "@typescript-eslint/eslint-plugin": "^5.36.2",
- "@typescript-eslint/parser": "^5.36.2",
+ "@types/prop-types": "^15.7.15",
+ "@types/react": "19.2.18",
+ "@types/react-dom": "19.2.4",
"asyncro": "^3.0.0",
"autoprefixer": "^10.4.2",
- "babel-eslint": "10.x",
"babel-plugin-react-compiler": "^1.0.0",
"chalk": "4.1.2",
"esbuild": "^0.24.0",
- "eslint": "7.x",
- "eslint-config-next": "12.0.3",
- "eslint-config-react-app": "^5.2.1",
- "eslint-plugin-flowtype": "4.x",
- "eslint-plugin-import": "2.x",
- "eslint-plugin-jsx-a11y": "6.x",
+ "eslint": "9.39.5",
+ "eslint-config-next": "16.3.0",
+ "eslint-linter-browserify": "7.32.0",
"eslint-plugin-local-rules": "link:eslint-local-rules",
- "eslint-plugin-react": "7.x",
- "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
- "eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215",
+ "eslint-plugin-react-hooks": "7.1.1",
+ "eslint-plugin-react-hooks-sandpack": "npm:eslint-plugin-react-hooks@5.2.0",
"fs-extra": "^9.0.1",
"globby": "^11.0.1",
"gray-matter": "^4.0.2",
@@ -86,13 +81,12 @@
"is-ci": "^3.0.1",
"lint-staged": ">=10",
"mdast-util-to-string": "^1.1.0",
- "metro-cache": "0.72.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.5",
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.5.1",
- "react-server-dom-webpack": "^19.2.4",
+ "react-server-dom-webpack": "19.2.8",
"reading-time": "^1.2.0",
"remark": "^12.0.1",
"remark-external-links": "^7.0.0",
@@ -106,20 +100,20 @@
"satori": "^0.26.0",
"tailwindcss": "^3.4.1",
"typescript": "^5.7.2",
+ "typescript-eslint": "8.67.0",
"unist-util-visit": "^2.0.3",
"webpack-bundle-analyzer": "^4.5.0"
},
"engines": {
- "node": ">=16.8.0"
- },
- "nextBundleAnalysis": {
- "budget": null,
- "budgetPercentIncreaseRed": 10,
- "showDetails": true
+ "node": ">=20.9.0"
},
"lint-staged": {
"*.{js,ts,jsx,tsx,css}": "yarn prettier",
"src/**/*.md": "yarn fix-headings"
},
- "packageManager": "yarn@1.22.22"
+ "packageManager": "yarn@1.22.22",
+ "resolutions": {
+ "@types/react": "19.2.18",
+ "@types/react-dom": "19.2.4"
+ }
}
diff --git a/scripts/analyzeBundle.mjs b/scripts/analyzeBundle.mjs
new file mode 100644
index 00000000000..3c213b629a4
--- /dev/null
+++ b/scripts/analyzeBundle.mjs
@@ -0,0 +1,169 @@
+/**
+ * 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.
+ */
+
+/*
+ * App Router-aware bundle-size analysis.
+ *
+ * Modeled on Next.js's own `next-stats-action`: sum the gzipped sizes of
+ * groups of build-output files and compare a PR build against the base branch.
+ * Unlike `nextjs-bundle-analysis`, this reads the real build output
+ * (`build-manifest.json` + `.next/static`) rather than the Pages-Router-only
+ * `build-manifest.json.pages`, which the App Router leaves empty.
+ *
+ * Usage:
+ * node scripts/analyzeBundle.mjs report # writes the current build's stats
+ * node scripts/analyzeBundle.mjs compare # diffs against the base-branch stats
+ *
+ * `report` -> .next/analyze/__bundle_analysis.json (uploaded as an artifact)
+ * `compare` -> .next/analyze/__bundle_analysis_comment.txt (posted by
+ * analyze_comment.yml). The base-branch artifact is expected under
+ * .next/analyze/base/bundle/ (downloaded by analyze.yml).
+ */
+
+import fs from 'fs';
+import path from 'path';
+import zlib from 'zlib';
+import {fileURLToPath} from 'url';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const root = path.resolve(__dirname, '..');
+const nextDir = path.join(root, '.next');
+const analyzeDir = path.join(nextDir, 'analyze');
+const statsFile = path.join(analyzeDir, '__bundle_analysis.json');
+const baseDir = path.join(analyzeDir, 'base', 'bundle');
+const commentFile = path.join(analyzeDir, '__bundle_analysis_comment.txt');
+
+function walk(dir) {
+ if (!fs.existsSync(dir)) return [];
+ let out = [];
+ for (const entry of fs.readdirSync(dir, {withFileTypes: true})) {
+ const p = path.join(dir, entry.name);
+ if (entry.isDirectory()) out = out.concat(walk(p));
+ else out.push(p);
+ }
+ return out;
+}
+
+function sumGroup(files) {
+ let raw = 0;
+ let gzip = 0;
+ for (const file of files) {
+ const buf = fs.readFileSync(file);
+ raw += buf.length;
+ gzip += zlib.gzipSync(buf).length;
+ }
+ return {raw, gzip, count: files.length};
+}
+
+function report() {
+ const manifest = JSON.parse(
+ fs.readFileSync(path.join(nextDir, 'build-manifest.json'), 'utf8')
+ );
+ // The shared bundle that loads on every page (App Router: rootMainFiles).
+ const globalFiles = [
+ ...(manifest.rootMainFiles || []),
+ ...(manifest.polyfillFiles || []),
+ ]
+ .map((f) => path.join(nextDir, f))
+ .filter((f) => fs.existsSync(f));
+ const jsFiles = walk(path.join(nextDir, 'static', 'chunks')).filter((f) =>
+ f.endsWith('.js')
+ );
+ const cssFiles = walk(path.join(nextDir, 'static', 'css')).filter((f) =>
+ f.endsWith('.css')
+ );
+
+ const stats = {
+ 'Global (loads on every page)': sumGroup(globalFiles),
+ 'Total JS': sumGroup(jsFiles),
+ 'Total CSS': sumGroup(cssFiles),
+ };
+
+ fs.mkdirSync(analyzeDir, {recursive: true});
+ fs.writeFileSync(statsFile, JSON.stringify(stats, null, 2));
+ console.log('Wrote', path.relative(root, statsFile));
+ for (const [name, v] of Object.entries(stats)) {
+ console.log(` ${name}: ${formatBytes(v.gzip)} gzip (${v.count} files)`);
+ }
+}
+
+function formatBytes(bytes) {
+ if (Math.abs(bytes) >= 1024 * 1024) {
+ return `${(bytes / 1024 / 1024).toFixed(2)} MB`;
+ }
+ return `${(bytes / 1024).toFixed(2)} KB`;
+}
+
+function formatDelta(cur, base) {
+ const d = cur - base;
+ if (d === 0) return 'no change';
+ return `${d > 0 ? '🔺 +' : '🟢 -'}${formatBytes(Math.abs(d))}`;
+}
+
+// New format: every value is {raw, gzip, count}. The old nextjs-bundle-analysis
+// artifact was {"/_app": {raw, gzip}, "__global": {...}} with no `count`.
+function isNewFormat(obj) {
+ const vals = obj && typeof obj === 'object' ? Object.values(obj) : [];
+ return (
+ vals.length > 0 &&
+ vals.every((v) => v && typeof v.gzip === 'number' && typeof v.count === 'number')
+ );
+}
+
+function loadBaseStats() {
+ if (!fs.existsSync(baseDir)) return null;
+ const jsons = fs.readdirSync(baseDir).filter((f) => f.endsWith('.json'));
+ if (jsons.length === 0) return null;
+ try {
+ return JSON.parse(fs.readFileSync(path.join(baseDir, jsons[0]), 'utf8'));
+ } catch {
+ return null;
+ }
+}
+
+function compare() {
+ const cur = JSON.parse(fs.readFileSync(statsFile, 'utf8'));
+ const base = loadBaseStats();
+
+ let md;
+ if (base && isNewFormat(base)) {
+ md =
+ '| Metric | Size (gzip) | Change vs base |\n|---|---|---|\n' +
+ Object.entries(cur)
+ .map(([name, v]) => {
+ const b = base[name];
+ const change = b ? formatDelta(v.gzip, b.gzip) : '— (new)';
+ return `| ${name} | ${formatBytes(v.gzip)} | ${change} |`;
+ })
+ .join('\n') +
+ '\n';
+ } else {
+ md =
+ '_No comparable base-branch data yet — the base branch has not produced ' +
+ 'stats in this format. Showing current sizes only; deltas will appear on ' +
+ 'the next run after this lands on the base branch._\n\n' +
+ '| Metric | Size (gzip) |\n|---|---|\n' +
+ Object.entries(cur)
+ .map(([name, v]) => `| ${name} | ${formatBytes(v.gzip)} |`)
+ .join('\n') +
+ '\n';
+ }
+
+ fs.mkdirSync(analyzeDir, {recursive: true});
+ fs.writeFileSync(commentFile, md);
+ console.log(md);
+}
+
+const mode = process.argv[2];
+if (mode === 'report') {
+ report();
+} else if (mode === 'compare') {
+ compare();
+} else {
+ console.error('Usage: node scripts/analyzeBundle.mjs ');
+ process.exit(1);
+}
diff --git a/scripts/buildRscWorker.mjs b/scripts/buildRscWorker.mjs
index b02cb8f432b..e2ded46fb82 100644
--- a/scripts/buildRscWorker.mjs
+++ b/scripts/buildRscWorker.mjs
@@ -42,3 +42,29 @@ const shimCode = fs.readFileSync(shimPath, 'utf8');
workerCode = shimCode + '\n' + workerCode;
fs.writeFileSync(workerOutfile, workerCode);
+
+const publicSourceDir = path.resolve(root, 'public/sandpack-rsc');
+fs.rmSync(publicSourceDir, {recursive: true, force: true});
+fs.mkdirSync(publicSourceDir, {recursive: true});
+
+const publicSources = {
+ 'webpack-shim.js': shimPath,
+ 'rsc-client.js': path.resolve(sandboxBase, 'rsc-client.js'),
+ 'react-refresh-init.js': path.resolve(
+ sandboxBase,
+ '__react_refresh_init__.js'
+ ),
+ 'worker-bundle.js': workerOutfile,
+ 'rsdw-client.js': path.resolve(
+ root,
+ 'node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js'
+ ),
+ 'react-refresh-runtime.js': path.resolve(
+ root,
+ 'node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js'
+ ),
+};
+
+for (const [name, source] of Object.entries(publicSources)) {
+ fs.copyFileSync(source, path.resolve(publicSourceDir, name));
+}
diff --git a/scripts/generateOgImages.mjs b/scripts/generateOgImages.mjs
index 937727a1cb1..bc805d38633 100644
--- a/scripts/generateOgImages.mjs
+++ b/scripts/generateOgImages.mjs
@@ -14,6 +14,7 @@ import path from 'path';
import satori from 'satori';
import {Resvg} from '@resvg/resvg-js';
import matter from 'gray-matter';
+import opentype from '@shuding/opentype.js';
const ROOT = process.cwd();
const CONTENT_DIR = path.join(ROOT, 'src', 'content');
@@ -34,6 +35,33 @@ const medium = fs.readFileSync(
path.join(ROOT, 'public', 'fonts', 'Optimistic_Display_W_Md.ttf')
);
+// Title area width: card width minus the horizontal padding (80px per side).
+const TITLE_MAX_WIDTH = 1200 - 80 * 2;
+const TITLE_MAX_FONT = 96;
+const TITLE_MIN_FONT = 56;
+// Small margin so borderline titles don't wrap and orphan a single trailing
+// character (e.g. the "p" in "renderToStaticMarkup", which is 1px too wide
+// to fit on one line at 96px).
+const TITLE_SAFETY = 8;
+
+const boldFont = opentype.parse(
+ bold.buffer.slice(bold.byteOffset, bold.byteOffset + bold.byteLength)
+);
+
+// Multi-word titles wrap cleanly at spaces, so a length bucket is fine for
+// them. Single-word titles (most API names) can only break mid-word, which
+// leaves an orphaned letter on its own line, so instead shrink them just
+// enough to fit on a single line.
+function titleFontSize(title) {
+ const trimmed = title.trim();
+ if (/\s/.test(trimmed)) {
+ return trimmed.length > 24 ? 72 : 96;
+ }
+ const widthPerPx = boldFont.getAdvanceWidth(trimmed, 1);
+ const fit = Math.floor((TITLE_MAX_WIDTH - TITLE_SAFETY) / widthPerPx);
+ return Math.max(TITLE_MIN_FONT, Math.min(TITLE_MAX_FONT, fit));
+}
+
function el(type, style, children) {
return {type, props: {style, children}};
}
@@ -103,7 +131,7 @@ function card(title, pagePath) {
flexGrow: 1,
display: 'flex',
alignItems: 'center',
- fontSize: title.length > 24 ? 72 : 96,
+ fontSize: titleFontSize(title),
fontFamily: 'Optimistic Display Bold',
color: '#f6f7f9',
lineHeight: 1.1,
diff --git a/src/app/DocsPage.tsx b/src/app/DocsPage.tsx
new file mode 100644
index 00000000000..14d55457517
--- /dev/null
+++ b/src/app/DocsPage.tsx
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+import {Page, type PageSection} from 'components/Layout/Page';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import type {PageData} from 'lib/readMarkdownPage';
+import {renderCompiledMDX} from 'utils/compileMDX';
+import type {ReactNode} from 'react';
+
+interface DocsPageProps {
+ data: PageData;
+ pathname: string;
+ section: PageSection;
+ routeTree: RouteItem;
+ children?: ReactNode;
+}
+
+export async function DocsPage({
+ data,
+ pathname,
+ section,
+ routeTree,
+ children,
+}: DocsPageProps) {
+ const {content, toc} = await renderCompiledMDX(data);
+ return (
+
+ {children ?? content}
+
+ );
+}
diff --git a/src/app/SectionPage.tsx b/src/app/SectionPage.tsx
new file mode 100644
index 00000000000..bec5589df6c
--- /dev/null
+++ b/src/app/SectionPage.tsx
@@ -0,0 +1,73 @@
+/**
+ * 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.
+ */
+
+import {notFound} from 'next/navigation';
+import type {Metadata} from 'next';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import type {PageSection} from 'components/Layout/Page';
+import {readMarkdownPage} from 'lib/readMarkdownPage';
+import {buildPageMetadata} from 'lib/buildPageMetadata';
+import {DocsPage} from './DocsPage';
+import {DocsContent} from 'components/Layout/DocsContent';
+
+interface SectionPageProps {
+ /** Segments below `src/content/`, e.g. ['learn', 'state'] or ['warnings', 'foo']. */
+ segments: string[];
+ section: PageSection;
+ routeTree: RouteItem;
+}
+
+interface SectionContentProps {
+ /** Segments below `src/content/`, e.g. ['learn', 'state']. */
+ segments: string[];
+ routeTree: RouteItem;
+}
+
+async function loadSection(segments: string[]) {
+ const data = await readMarkdownPage(segments);
+ if (!data) notFound();
+ return {data, pathname: '/' + segments.join('/')};
+}
+
+export async function SectionPage({
+ segments,
+ section,
+ routeTree,
+}: SectionPageProps) {
+ const {data, pathname} = await loadSection(segments);
+ return (
+
+ );
+}
+
+export async function SectionContent({
+ segments,
+ routeTree,
+}: SectionContentProps) {
+ const {data, pathname} = await loadSection(segments);
+ return ;
+}
+
+export async function sectionPageMetadata({
+ segments,
+ section,
+ routeTree,
+}: {
+ segments: string[];
+ section: PageSection;
+ routeTree?: RouteItem;
+}): Promise {
+ const data = await readMarkdownPage(segments);
+ if (!data) return {};
+ const pathname = '/' + segments.join('/');
+ return buildPageMetadata({data, pathname, section, routeTree});
+}
diff --git a/src/app/api/md/[...path]/route.ts b/src/app/api/md/[...path]/route.ts
new file mode 100644
index 00000000000..135645481c2
--- /dev/null
+++ b/src/app/api/md/[...path]/route.ts
@@ -0,0 +1,78 @@
+/**
+ * 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.
+ */
+
+import fs from 'fs';
+import path from 'path';
+import {NextResponse} from 'next/server';
+import {cacheLife} from 'next/cache';
+import {collectAllContentPaths, isContentPageAvailable} from 'lib/collectPaths';
+
+const FOOTER = `
+---
+
+## Sitemap
+
+[Overview of all docs pages](/llms.txt)
+`;
+
+// The content set is fixed at build time, so prerender every `.md` endpoint
+// instead of running a function per request. With Cache Components, this means
+// generateStaticParams + a cached body (no `dynamic`/`dynamicParams` configs,
+// which are disallowed when cacheComponents is on).
+export async function generateStaticParams() {
+ const paths = await collectAllContentPaths();
+ return paths.map((segments) => ({path: segments}));
+}
+
+/**
+ * Read a markdown file for the given URL segments. Cached so prerendered
+ * `.md` endpoints don't re-read from disk per request. Returns null when no
+ * matching file exists.
+ */
+async function readContentMarkdown(
+ pathSegments: string[] | undefined
+): Promise {
+ 'use cache';
+ cacheLife('max');
+ if (!pathSegments || pathSegments.length === 0) return null;
+ if (!isContentPageAvailable(pathSegments)) return null;
+
+ const filePath = pathSegments.join('/');
+ // Block /index.md URLs - use /foo.md instead of /foo/index.md
+ if (filePath.endsWith('/index') || filePath === 'index') return null;
+
+ const candidates = [
+ path.join(process.cwd(), 'src/content', filePath + '.md'),
+ path.join(process.cwd(), 'src/content', filePath, 'index.md'),
+ ];
+ for (const fullPath of candidates) {
+ try {
+ return fs.readFileSync(/* turbopackIgnore: true */ fullPath, 'utf8');
+ } catch {
+ // Try next candidate
+ }
+ }
+ return null;
+}
+
+export async function GET(
+ _req: Request,
+ ctx: {params: Promise<{path: string[]}>}
+) {
+ const {path: pathSegments} = await ctx.params;
+ const content = await readContentMarkdown(pathSegments);
+ if (content == null) {
+ return new NextResponse('Not found', {status: 404});
+ }
+ return new NextResponse(content + FOOTER, {
+ status: 200,
+ headers: {
+ 'Content-Type': 'text/plain; charset=utf-8',
+ 'Cache-Control': 'public, max-age=3600',
+ },
+ });
+}
diff --git a/src/app/blog/[[...slug]]/page.tsx b/src/app/blog/[[...slug]]/page.tsx
new file mode 100644
index 00000000000..fd48debe4aa
--- /dev/null
+++ b/src/app/blog/[[...slug]]/page.tsx
@@ -0,0 +1,41 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarBlog from '../../../sidebarBlog.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {collectSectionPaths} from 'lib/collectPaths';
+import {SectionPage, sectionPageMetadata} from '../../SectionPage';
+
+interface PageProps {
+ params: Promise<{slug?: string[]}>;
+}
+
+export async function generateStaticParams() {
+ const paths = await collectSectionPaths('blog');
+ return paths.map((slug) => ({slug}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {slug} = await params;
+ return sectionPageMetadata({
+ section: 'blog',
+ segments: ['blog', ...(slug ?? [])],
+ routeTree: sidebarBlog as RouteItem,
+ });
+}
+
+export default async function BlogPage({params}: PageProps) {
+ const {slug} = await params;
+ return (
+
+ );
+}
diff --git a/src/app/clientEffects.tsx b/src/app/clientEffects.tsx
new file mode 100644
index 00000000000..9c2d5708f47
--- /dev/null
+++ b/src/app/clientEffects.tsx
@@ -0,0 +1,49 @@
+/**
+ * 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 client';
+
+import {useEffect} from 'react';
+import {usePathname} from 'next/navigation';
+
+declare const gtag: (...args: any[]) => void;
+
+export function AnalyticsTracker() {
+ const pathname = usePathname();
+
+ useEffect(() => {
+ if (typeof window === 'undefined' || typeof gtag === 'undefined') return;
+ gtag('event', 'pageview', {event_label: pathname});
+ }, [pathname]);
+
+ useEffect(() => {
+ if (typeof window === 'undefined') return;
+ const terminationEvent = 'onpagehide' in window ? 'pagehide' : 'unload';
+ const handler = () => {
+ if (typeof gtag !== 'undefined') {
+ gtag('event', 'timing', {
+ event_label: 'JS Dependencies',
+ event: 'unload',
+ });
+ }
+ };
+ window.addEventListener(terminationEvent, handler);
+ return () => window.removeEventListener(terminationEvent, handler);
+ }, []);
+
+ return null;
+}
+
+export function ScrollRestoration() {
+ useEffect(() => {
+ const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
+ if (isSafari) {
+ history.scrollRestoration = 'auto';
+ }
+ }, []);
+ return null;
+}
diff --git a/src/app/community/[[...slug]]/page.tsx b/src/app/community/[[...slug]]/page.tsx
new file mode 100644
index 00000000000..4a55e8d1b15
--- /dev/null
+++ b/src/app/community/[[...slug]]/page.tsx
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarCommunity from '../../../sidebarCommunity.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {collectSectionPaths} from 'lib/collectPaths';
+import {SectionContent, sectionPageMetadata} from '../../SectionPage';
+
+interface PageProps {
+ params: Promise<{slug?: string[]}>;
+}
+
+export async function generateStaticParams() {
+ const paths = await collectSectionPaths('community');
+ return paths.map((slug) => ({slug}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {slug} = await params;
+ return sectionPageMetadata({
+ section: 'community',
+ segments: ['community', ...(slug ?? [])],
+ });
+}
+
+export default async function CommunityPage({params}: PageProps) {
+ const {slug} = await params;
+ return (
+
+ );
+}
diff --git a/src/app/community/layout.tsx b/src/app/community/layout.tsx
new file mode 100644
index 00000000000..a4abe747187
--- /dev/null
+++ b/src/app/community/layout.tsx
@@ -0,0 +1,32 @@
+/**
+ * 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.
+ */
+
+import {SidebarNav} from 'components/Layout/SidebarNav';
+import {TopNav} from 'components/Layout/TopNav';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import sidebarCommunity from '../../sidebarCommunity.json';
+
+export default function CommunityLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ const routeTree = sidebarCommunity as RouteItem;
+ return (
+ <>
+
+
+
+
+
+
+
+ {children}
+
+ >
+ );
+}
diff --git a/src/app/community/not-found.tsx b/src/app/community/not-found.tsx
new file mode 100644
index 00000000000..aed82f8fca2
--- /dev/null
+++ b/src/app/community/not-found.tsx
@@ -0,0 +1,19 @@
+/**
+ * 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.
+ */
+
+import sidebarCommunity from '../../sidebarCommunity.json';
+import {NotFoundContent} from 'components/Layout/NotFoundContent';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+
+export default function NotFound() {
+ return (
+
+ );
+}
diff --git a/src/pages/500.js b/src/app/error.tsx
similarity index 68%
rename from src/pages/500.js
rename to src/app/error.tsx
index 552dcf77b16..7ae0c6a08b1 100644
--- a/src/pages/500.js
+++ b/src/app/error.tsx
@@ -5,21 +5,32 @@
* LICENSE file in the root directory of this source tree.
*/
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
+'use client';
+import {useEffect} from 'react';
import {Page} from 'components/Layout/Page';
import {MDXComponents} from 'components/MDX/MDXComponents';
import sidebarLearn from '../sidebarLearn.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
const {Intro, MaxWidth, p: P, a: A} = MDXComponents;
-export default function NotFound() {
+export default function GlobalError({
+ error,
+}: {
+ error: Error & {digest?: string};
+ reset: () => void;
+}) {
+ useEffect(() => {
+ console.error(error);
+ }, [error]);
+
return (
diff --git a/src/app/errors/ErrorDecoderView.tsx b/src/app/errors/ErrorDecoderView.tsx
new file mode 100644
index 00000000000..130de4f9df2
--- /dev/null
+++ b/src/app/errors/ErrorDecoderView.tsx
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+
+import {Page} from 'components/Layout/Page';
+import {ErrorDecoderContext} from 'components/ErrorDecoderContext';
+import sidebarLearn from '../../sidebarLearn.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import type {ErrorDecoderData} from 'lib/loadErrorDecoderData';
+import {renderCompiledMDX} from 'utils/compileMDX';
+
+interface ErrorDecoderViewProps {
+ data: ErrorDecoderData;
+ pathname: string;
+}
+
+export async function ErrorDecoderView({
+ data,
+ pathname,
+}: ErrorDecoderViewProps) {
+ const {content} = await renderCompiledMDX(data);
+ return (
+
+
+
{content}
+
+
+ );
+}
diff --git a/src/app/errors/[errorCode]/page.tsx b/src/app/errors/[errorCode]/page.tsx
new file mode 100644
index 00000000000..48a864a11c8
--- /dev/null
+++ b/src/app/errors/[errorCode]/page.tsx
@@ -0,0 +1,30 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import {listErrorCodes, loadErrorDecoderData} from 'lib/loadErrorDecoderData';
+import {ErrorDecoderView} from '../ErrorDecoderView';
+
+interface PageProps {
+ params: Promise<{errorCode: string}>;
+}
+
+export async function generateStaticParams() {
+ const codes = await listErrorCodes();
+ return codes.map((errorCode) => ({errorCode}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {errorCode} = await params;
+ return {title: `Minified React error #${errorCode}`};
+}
+
+export default async function ErrorDecoderPage({params}: PageProps) {
+ const {errorCode} = await params;
+ const data = await loadErrorDecoderData(errorCode);
+ return ;
+}
diff --git a/src/app/errors/page.tsx b/src/app/errors/page.tsx
new file mode 100644
index 00000000000..5fec9bf2406
--- /dev/null
+++ b/src/app/errors/page.tsx
@@ -0,0 +1,19 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import {loadErrorDecoderData} from 'lib/loadErrorDecoderData';
+import {ErrorDecoderView} from './ErrorDecoderView';
+
+export const metadata: Metadata = {
+ title: 'Minified Error Decoder',
+};
+
+export default async function ErrorDecoderIndex() {
+ const data = await loadErrorDecoderData(null);
+ return ;
+}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
new file mode 100644
index 00000000000..d57dbab9d88
--- /dev/null
+++ b/src/app/layout.tsx
@@ -0,0 +1,221 @@
+/**
+ * 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.
+ */
+
+import type {Metadata, Viewport} from 'next';
+import Script from 'next/script';
+import {siteConfig} from '../siteConfig';
+import {AnalyticsTracker, ScrollRestoration} from './clientEffects';
+
+import '@docsearch/css';
+import '../styles/algolia.css';
+import '../styles/index.css';
+import '../styles/sandpack.css';
+
+export const viewport: Viewport = {
+ width: 'device-width',
+ initialScale: 1,
+ themeColor: '#23272f',
+};
+
+export const metadata: Metadata = {
+ metadataBase: new URL(
+ `https://${
+ siteConfig.languageCode === 'en' ? '' : siteConfig.languageCode + '.'
+ }react.dev`
+ ),
+ applicationName: 'React',
+ icons: {
+ icon: [
+ {url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png'},
+ {url: '/favicon-16x16.png', sizes: '16x16', type: 'image/png'},
+ ],
+ apple: [{url: '/apple-touch-icon.png', sizes: '180x180'}],
+ other: [
+ {rel: 'mask-icon', url: '/safari-pinned-tab.svg', color: '#404756'},
+ ],
+ },
+ manifest: '/site.webmanifest',
+ // Items here render as ``. Property-style tags
+ // (``) like `fb:app_id` must be rendered directly
+ // in `` below, since Next's `metadata.other` only emits `name=`.
+ other: {
+ 'msapplication-TileColor': '#2b5797',
+ 'google-site-verification': 'sIlAGs48RulR4DdP95YSWNKZIEtCqQmRjzn-Zq-CcD0',
+ },
+};
+
+const themeScript = `
+(function () {
+ try {
+ let logShown = false;
+ function setUwu(isUwu) {
+ try {
+ if (isUwu) {
+ localStorage.setItem('uwu', true);
+ document.documentElement.classList.add('uwu');
+ if (!logShown) {
+ console.log('uwu mode! turn off with ?uwu=0');
+ console.log('logo credit to @sawaratsuki1004 via https://github.com/SAWARATSUKI/KawaiiLogos');
+ logShown = true;
+ }
+ } else {
+ localStorage.removeItem('uwu');
+ document.documentElement.classList.remove('uwu');
+ console.log('uwu mode off. turn on with ?uwu');
+ }
+ } catch (err) { }
+ }
+ window.__setUwu = setUwu;
+ function checkQueryParam() {
+ const params = new URLSearchParams(window.location.search);
+ const value = params.get('uwu');
+ switch(value) {
+ case '':
+ case 'true':
+ case '1':
+ return true;
+ case 'false':
+ case '0':
+ return false;
+ default:
+ return null;
+ }
+ }
+ function checkLocalStorage() {
+ try {
+ return localStorage.getItem('uwu') === 'true';
+ } catch (err) {
+ return false;
+ }
+ }
+ const uwuQueryParam = checkQueryParam();
+ if (uwuQueryParam != null) {
+ setUwu(uwuQueryParam);
+ } else if (checkLocalStorage()) {
+ document.documentElement.classList.add('uwu');
+ }
+ } catch (err) { }
+})();
+
+(function () {
+ function setTheme(newTheme) {
+ window.__theme = newTheme;
+ if (newTheme === 'dark') {
+ document.documentElement.classList.add('dark');
+ } else if (newTheme === 'light') {
+ document.documentElement.classList.remove('dark');
+ }
+ }
+
+ var preferredTheme;
+ try {
+ preferredTheme = localStorage.getItem('theme');
+ } catch (err) { }
+
+ window.__setPreferredTheme = function(newTheme) {
+ preferredTheme = newTheme;
+ setTheme(newTheme);
+ try {
+ localStorage.setItem('theme', newTheme);
+ } catch (err) { }
+ };
+
+ var initialTheme = preferredTheme;
+ var darkQuery = window.matchMedia('(prefers-color-scheme: dark)');
+
+ if (!initialTheme) {
+ initialTheme = darkQuery.matches ? 'dark' : 'light';
+ }
+ setTheme(initialTheme);
+
+ darkQuery.addEventListener('change', function (e) {
+ if (!preferredTheme) {
+ setTheme(e.matches ? 'dark' : 'light');
+ }
+ });
+
+ document.documentElement.classList.add(
+ window.navigator.platform.includes('Mac')
+ ? "platform-mac"
+ : "platform-win"
+ );
+})();
+`;
+
+const FONT_PRELOADS = [
+ 'Source-Code-Pro-Regular.woff2',
+ 'Source-Code-Pro-Bold.woff2',
+ 'Optimistic_Display_W_Md.woff2',
+ 'Optimistic_Display_W_SBd.woff2',
+ 'Optimistic_Display_W_Bd.woff2',
+ 'Optimistic_Text_W_Md.woff2',
+ 'Optimistic_Text_W_Bd.woff2',
+ 'Optimistic_Text_W_Rg.woff2',
+ 'Optimistic_Text_W_It.woff2',
+];
+
+export default function RootLayout({children}: {children: React.ReactNode}) {
+ const gaId = process.env.NEXT_PUBLIC_GA_TRACKING_ID;
+ return (
+
+
+
+ {/* RSS autodiscovery */}
+
+ {/* Preconnect to Algolia DocSearch for faster first-open search */}
+
+ {/* Facebook app id is a property-style meta tag and can't be expressed
+ via Next's `metadata.other`, which emits `name=` tags. */}
+
+ {FONT_PRELOADS.map((file) => (
+
+ ))}
+ {gaId && (
+
+ )}
+ {gaId && (
+
+ )}
+
+
+
+
+ {children}
+
+
+ );
+}
diff --git a/src/app/learn/[[...slug]]/page.tsx b/src/app/learn/[[...slug]]/page.tsx
new file mode 100644
index 00000000000..fc1040708c2
--- /dev/null
+++ b/src/app/learn/[[...slug]]/page.tsx
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarLearn from '../../../sidebarLearn.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {collectSectionPaths} from 'lib/collectPaths';
+import {SectionContent, sectionPageMetadata} from '../../SectionPage';
+
+interface PageProps {
+ params: Promise<{slug?: string[]}>;
+}
+
+export async function generateStaticParams() {
+ const paths = await collectSectionPaths('learn');
+ return paths.map((slug) => ({slug}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {slug} = await params;
+ return sectionPageMetadata({
+ section: 'learn',
+ segments: ['learn', ...(slug ?? [])],
+ routeTree: sidebarLearn as RouteItem,
+ });
+}
+
+export default async function LearnPage({params}: PageProps) {
+ const {slug} = await params;
+ return (
+
+ );
+}
diff --git a/src/app/learn/layout.tsx b/src/app/learn/layout.tsx
new file mode 100644
index 00000000000..c51190b6625
--- /dev/null
+++ b/src/app/learn/layout.tsx
@@ -0,0 +1,28 @@
+/**
+ * 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.
+ */
+
+import {SidebarNav} from 'components/Layout/SidebarNav';
+import {TopNav} from 'components/Layout/TopNav';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import sidebarLearn from '../../sidebarLearn.json';
+
+export default function LearnLayout({children}: {children: React.ReactNode}) {
+ const routeTree = sidebarLearn as RouteItem;
+ return (
+ <>
+
+
+
+
+
+
+
+ {children}
+
+ >
+ );
+}
diff --git a/src/app/learn/not-found.tsx b/src/app/learn/not-found.tsx
new file mode 100644
index 00000000000..17201aeb8c0
--- /dev/null
+++ b/src/app/learn/not-found.tsx
@@ -0,0 +1,19 @@
+/**
+ * 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.
+ */
+
+import sidebarLearn from '../../sidebarLearn.json';
+import {NotFoundContent} from 'components/Layout/NotFoundContent';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+
+export default function NotFound() {
+ return (
+
+ );
+}
diff --git a/src/pages/llms.txt.tsx b/src/app/llms.txt/route.ts
similarity index 58%
rename from src/pages/llms.txt.tsx
rename to src/app/llms.txt/route.ts
index 23fda9ddf15..b187f2c424e 100644
--- a/src/pages/llms.txt.tsx
+++ b/src/app/llms.txt/route.ts
@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
-import type {GetServerSideProps} from 'next';
-import {siteConfig} from '../siteConfig';
-import sidebarLearn from '../sidebarLearn.json';
-import sidebarReference from '../sidebarReference.json';
+import {NextResponse} from 'next/server';
+import {siteConfig} from '../../siteConfig';
+import sidebarLearn from '../../sidebarLearn.json';
+import sidebarReference from '../../sidebarReference.json';
interface RouteItem {
title?: string;
@@ -39,7 +39,6 @@ interface Section {
subGroups: SubGroup[];
}
-// Clean up section header names (remove version placeholders)
function cleanSectionHeader(header: string): string {
return header
.replace(/@\{\{version\}\}/g, '')
@@ -50,8 +49,6 @@ function cleanSectionHeader(header: string): string {
.trim();
}
-// Extract routes for sidebars that use hasSectionHeader to define major sections
-// (like the API Reference sidebar)
function extractSectionedRoutes(
routes: RouteItem[],
baseUrl: string
@@ -60,16 +57,10 @@ function extractSectionedRoutes(
let currentSection: Section | null = null;
for (const route of routes) {
- // Skip external links
- if (route.path?.startsWith('http')) {
- continue;
- }
+ if (route.path?.startsWith('http')) continue;
- // Start a new section when we hit a section header
if (route.hasSectionHeader && route.sectionHeader) {
- if (currentSection) {
- sections.push(currentSection);
- }
+ if (currentSection) sections.push(currentSection);
currentSection = {
heading: cleanSectionHeader(route.sectionHeader),
pages: [],
@@ -78,27 +69,16 @@ function extractSectionedRoutes(
continue;
}
- // If no section started yet, skip
- if (!currentSection) {
- continue;
- }
+ if (!currentSection) continue;
- // Route with children - create a sub-group
if (route.title && route.routes && route.routes.length > 0) {
- const subGroup: SubGroup = {
- heading: route.title,
- pages: [],
- };
-
- // Include parent page if it has a path
+ const subGroup: SubGroup = {heading: route.title, pages: []};
if (route.path) {
subGroup.pages.push({
title: route.title,
url: `${baseUrl}${route.path}.md`,
});
}
-
- // Add child pages
for (const child of route.routes) {
if (child.title && child.path && !child.path.startsWith('http')) {
subGroup.pages.push({
@@ -107,13 +87,8 @@ function extractSectionedRoutes(
});
}
}
-
- if (subGroup.pages.length > 0) {
- currentSection.subGroups.push(subGroup);
- }
- }
- // Single page without children
- else if (route.title && route.path) {
+ if (subGroup.pages.length > 0) currentSection.subGroups.push(subGroup);
+ } else if (route.title && route.path) {
currentSection.pages.push({
title: route.title,
url: `${baseUrl}${route.path}.md`,
@@ -121,85 +96,45 @@ function extractSectionedRoutes(
}
}
- // Don't forget the last section
- if (currentSection) {
- sections.push(currentSection);
- }
-
+ if (currentSection) sections.push(currentSection);
return sections;
}
-// Extract routes for sidebars that use routes with children as the primary grouping
-// (like the Learn sidebar)
function extractGroupedRoutes(
routes: RouteItem[],
baseUrl: string
): SubGroup[] {
const groups: SubGroup[] = [];
-
for (const route of routes) {
- // Skip section headers
- if (route.hasSectionHeader) {
- continue;
- }
+ if (route.hasSectionHeader) continue;
+ if (route.path?.startsWith('http')) continue;
- // Skip external links
- if (route.path?.startsWith('http')) {
- continue;
- }
-
- // Route with children - create a group
if (route.title && route.routes && route.routes.length > 0) {
const pages: Page[] = [];
-
- // Include parent page if it has a path
if (route.path) {
- pages.push({
- title: route.title,
- url: `${baseUrl}${route.path}.md`,
- });
+ pages.push({title: route.title, url: `${baseUrl}${route.path}.md`});
}
-
- // Add child pages
for (const child of route.routes) {
if (child.title && child.path && !child.path.startsWith('http')) {
- pages.push({
- title: child.title,
- url: `${baseUrl}${child.path}.md`,
- });
+ pages.push({title: child.title, url: `${baseUrl}${child.path}.md`});
}
}
-
- if (pages.length > 0) {
- groups.push({
- heading: route.title,
- pages,
- });
- }
- }
- // Single page without children - group under its own heading
- else if (route.title && route.path) {
+ if (pages.length > 0) groups.push({heading: route.title, pages});
+ } else if (route.title && route.path) {
groups.push({
heading: route.title,
- pages: [
- {
- title: route.title,
- url: `${baseUrl}${route.path}.md`,
- },
- ],
+ pages: [{title: route.title, url: `${baseUrl}${route.path}.md`}],
});
}
}
-
return groups;
}
-// Check if sidebar uses section headers as primary grouping
function usesSectionHeaders(routes: RouteItem[]): boolean {
return routes.some((r) => r.hasSectionHeader && r.sectionHeader);
}
-export const getServerSideProps: GetServerSideProps = async ({res}) => {
+export async function GET() {
const subdomain =
siteConfig.languageCode === 'en' ? '' : siteConfig.languageCode + '.';
const baseUrl = 'https://' + subdomain + 'react.dev';
@@ -220,20 +155,15 @@ export const getServerSideProps: GetServerSideProps = async ({res}) => {
lines.push(`## ${sidebar.title}`);
if (usesSectionHeaders(sidebar.routes)) {
- // API Reference style: section headers define major groups
const sections = extractSectionedRoutes(sidebar.routes, baseUrl);
for (const section of sections) {
if (section.heading) {
lines.push('');
lines.push(`### ${section.heading}`);
}
-
- // Output pages directly under section
for (const page of section.pages) {
lines.push(`- [${page.title}](${page.url})`);
}
-
- // Output sub-groups with #### headings
for (const subGroup of section.subGroups) {
lines.push('');
lines.push(`#### ${subGroup.heading}`);
@@ -243,7 +173,6 @@ export const getServerSideProps: GetServerSideProps = async ({res}) => {
}
}
} else {
- // Learn style: routes with children define groups
const groups = extractGroupedRoutes(sidebar.routes, baseUrl);
for (const group of groups) {
lines.push('');
@@ -255,15 +184,8 @@ export const getServerSideProps: GetServerSideProps = async ({res}) => {
}
}
- const content = lines.join('\n');
-
- res.setHeader('Content-Type', 'text/plain; charset=utf-8');
- res.write(content);
- res.end();
-
- return {props: {}};
-};
-
-export default function LlmsTxt() {
- return null;
+ return new NextResponse(lines.join('\n'), {
+ status: 200,
+ headers: {'Content-Type': 'text/plain; charset=utf-8'},
+ });
}
diff --git a/src/pages/404.js b/src/app/not-found.tsx
similarity index 78%
rename from src/pages/404.js
rename to src/app/not-found.tsx
index 2b5a83bafa4..c331599170c 100644
--- a/src/pages/404.js
+++ b/src/app/not-found.tsx
@@ -5,19 +5,23 @@
* LICENSE file in the root directory of this source tree.
*/
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
+'use client';
import {Page} from 'components/Layout/Page';
import {MDXComponents} from 'components/MDX/MDXComponents';
import sidebarLearn from '../sidebarLearn.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
const {Intro, MaxWidth, p: P, a: A} = MDXComponents;
export default function NotFound() {
return (
-
+
This page doesn’t exist.
diff --git a/src/app/page.tsx b/src/app/page.tsx
new file mode 100644
index 00000000000..be650622a30
--- /dev/null
+++ b/src/app/page.tsx
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import {notFound} from 'next/navigation';
+import sidebarHome from '../sidebarHome.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {readMarkdownPage} from 'lib/readMarkdownPage';
+import {buildPageMetadata} from 'lib/buildPageMetadata';
+import {DocsPage} from './DocsPage';
+import {HomeContent} from 'components/Layout/HomeContent';
+
+export async function generateMetadata(): Promise {
+ const data = await readMarkdownPage([]);
+ if (!data) return {};
+ return buildPageMetadata({data, pathname: '/', section: 'home'});
+}
+
+export default async function HomePage() {
+ const data = await readMarkdownPage([]);
+ if (!data) notFound();
+ return (
+
+
+
+ );
+}
diff --git a/src/app/reference/[[...slug]]/page.tsx b/src/app/reference/[[...slug]]/page.tsx
new file mode 100644
index 00000000000..f92289129c9
--- /dev/null
+++ b/src/app/reference/[[...slug]]/page.tsx
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarReference from '../../../sidebarReference.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {collectSectionPaths} from 'lib/collectPaths';
+import {SectionContent, sectionPageMetadata} from '../../SectionPage';
+
+interface PageProps {
+ params: Promise<{slug?: string[]}>;
+}
+
+export async function generateStaticParams() {
+ const paths = await collectSectionPaths('reference');
+ return paths.map((slug) => ({slug}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {slug} = await params;
+ return sectionPageMetadata({
+ section: 'reference',
+ segments: ['reference', ...(slug ?? [])],
+ });
+}
+
+export default async function ReferencePage({params}: PageProps) {
+ const {slug} = await params;
+ return (
+
+ );
+}
diff --git a/src/app/reference/layout.tsx b/src/app/reference/layout.tsx
new file mode 100644
index 00000000000..78a3ec6f1f4
--- /dev/null
+++ b/src/app/reference/layout.tsx
@@ -0,0 +1,32 @@
+/**
+ * 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.
+ */
+
+import {SidebarNav} from 'components/Layout/SidebarNav';
+import {TopNav} from 'components/Layout/TopNav';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import sidebarReference from '../../sidebarReference.json';
+
+export default function ReferenceLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ const routeTree = sidebarReference as RouteItem;
+ return (
+ <>
+
+
+
+
+
+
+
+ {children}
+
+ >
+ );
+}
diff --git a/src/app/reference/not-found.tsx b/src/app/reference/not-found.tsx
new file mode 100644
index 00000000000..92f1f62c7ac
--- /dev/null
+++ b/src/app/reference/not-found.tsx
@@ -0,0 +1,19 @@
+/**
+ * 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.
+ */
+
+import sidebarReference from '../../sidebarReference.json';
+import {NotFoundContent} from 'components/Layout/NotFoundContent';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+
+export default function NotFound() {
+ return (
+
+ );
+}
diff --git a/src/app/versions/page.tsx b/src/app/versions/page.tsx
new file mode 100644
index 00000000000..3eb0dab70a0
--- /dev/null
+++ b/src/app/versions/page.tsx
@@ -0,0 +1,25 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarHome from '../../sidebarHome.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {SectionPage, sectionPageMetadata} from '../SectionPage';
+
+export async function generateMetadata(): Promise {
+ return sectionPageMetadata({section: 'unknown', segments: ['versions']});
+}
+
+export default async function VersionsPage() {
+ return (
+
+ );
+}
diff --git a/src/app/warnings/[slug]/page.tsx b/src/app/warnings/[slug]/page.tsx
new file mode 100644
index 00000000000..4ef362f969e
--- /dev/null
+++ b/src/app/warnings/[slug]/page.tsx
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import sidebarHome from '../../../sidebarHome.json';
+import type {RouteItem} from 'components/Layout/getRouteMeta';
+import {collectFlatSectionSlugs} from 'lib/collectPaths';
+import {SectionPage, sectionPageMetadata} from '../../SectionPage';
+
+interface PageProps {
+ params: Promise<{slug: string}>;
+}
+
+export async function generateStaticParams() {
+ const slugs = await collectFlatSectionSlugs('warnings');
+ return slugs.map((slug) => ({slug}));
+}
+
+export async function generateMetadata({params}: PageProps): Promise {
+ const {slug} = await params;
+ return sectionPageMetadata({
+ section: 'unknown',
+ segments: ['warnings', slug],
+ });
+}
+
+export default async function WarningPage({params}: PageProps) {
+ const {slug} = await params;
+ return (
+
+ );
+}
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index 6b79a958f25..4173ee7dd85 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
+'use client';
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/src/components/ErrorDecoderContext.tsx b/src/components/ErrorDecoderContext.tsx
index 77e9ebf7d5b..a2094511418 100644
--- a/src/components/ErrorDecoderContext.tsx
+++ b/src/components/ErrorDecoderContext.tsx
@@ -5,10 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/
-// Error Decoder requires reading pregenerated error message from getStaticProps,
-// but MDX component doesn't support props. So we use React Context to populate
-// the value without prop-drilling.
-// TODO: Replace with React.cache + React.use when migrating to Next.js App Router
+'use client';
+
+// Error Decoder needs the resolved error message in the MDX subtree but MDX
+// components can't receive props. We use a React Context populated by the
+// route's server component to avoid prop-drilling through the MDX renderer.
import {createContext, useContext} from 'react';
diff --git a/src/components/Layout/DocsContent.tsx b/src/components/Layout/DocsContent.tsx
new file mode 100644
index 00000000000..ab7e604bcba
--- /dev/null
+++ b/src/components/Layout/DocsContent.tsx
@@ -0,0 +1,77 @@
+/**
+ * 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.
+ */
+
+import {Footer} from './Footer';
+import {Toc} from './Toc';
+import {DocsPageFooter} from 'components/DocsFooter';
+import PageHeading from 'components/PageHeading';
+import {getRouteMeta} from './getRouteMeta';
+import type {RouteItem} from './getRouteMeta';
+import type {PageData} from 'lib/readMarkdownPage';
+import {renderCompiledMDX} from 'utils/compileMDX';
+
+import(/* webpackPrefetch: true */ '../MDX/CodeBlock/CodeBlock');
+
+export async function DocsContent({
+ data,
+ pathname,
+ routeTree,
+}: {
+ data: PageData;
+ pathname: string;
+ routeTree: RouteItem;
+}) {
+ const {content, toc} = await renderCompiledMDX(data);
+ const {route, nextRoute, prevRoute, breadcrumbs} = getRouteMeta(
+ pathname,
+ routeTree
+ );
+ const title = data.meta.title || route?.title || '';
+ const version = data.meta.version;
+ const description = data.meta.description || route?.description || '';
+
+ return (
+ <>
+
+
+
+);
+
+function activeCode(files: Files) {
+ const active = Object.values(files).find(
+ (file) => file.active && !file.hidden
+ );
+ const fallback = files['/src/App.js'] ?? Object.values(files)[0];
+ return active?.code ?? fallback?.code ?? '';
+}
+
+export const SandpackClientIsland = memo(function SandpackClientIsland({
+ files,
+ ...props
+}: any & {files: Files}) {
+ return (
+ }>
+
+
+ );
+});
+
+export const SandpackRSCIsland = memo(function SandpackRSCIsland({
+ files,
+ ...props
+}: any & {files: Files}) {
+ return (
+ }>
+
+
+ );
+});
diff --git a/src/components/MDX/Sandpack/SandpackRSCRoot.tsx b/src/components/MDX/Sandpack/SandpackRSCRoot.tsx
index 1c9bd058245..7e4d0d05e17 100644
--- a/src/components/MDX/Sandpack/SandpackRSCRoot.tsx
+++ b/src/components/MDX/Sandpack/SandpackRSCRoot.tsx
@@ -9,18 +9,20 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/
-import {Children} from 'react';
+import {use} from 'react';
import * as React from 'react';
-import {SandpackProvider} from '@codesandbox/sandpack-react/unstyled';
+import {
+ SandpackProvider,
+ type SandpackFile,
+} from '@codesandbox/sandpack-react/unstyled';
import {SandpackLogLevel} from '@codesandbox/sandpack-client';
import {CustomPreset} from './CustomPreset';
-import {createFileMap} from './createFileMap';
import {CustomTheme} from './Themes';
-import {templateRSC} from './templateRSC';
+import {loadTemplateRSC} from './templateRSC';
import {RscFileBridge} from './sandpack-rsc/RscFileBridge';
type SandpackProps = {
- children: React.ReactNode;
+ files: Record;
autorun?: boolean;
};
@@ -75,9 +77,9 @@ ul {
`.trim();
function SandpackRSCRoot(props: SandpackProps) {
- const {children, autorun = true} = props;
- const codeSnippets = Children.toArray(children) as React.ReactElement[];
- const files = createFileMap(codeSnippets);
+ const {files: sourceFiles, autorun = true} = props;
+ const templateRSC = use(loadTemplateRSC());
+ const files = {...sourceFiles};
if ('/index.html' in files) {
throw new Error(
@@ -88,7 +90,7 @@ function SandpackRSCRoot(props: SandpackProps) {
files['/src/styles.css'] = {
code: [sandboxStyle, files['/src/styles.css']?.code ?? ''].join('\n\n'),
- hidden: !files['/src/styles.css']?.visible,
+ hidden: sourceFiles['/src/styles.css']?.hidden ?? true,
};
return (
diff --git a/src/components/MDX/Sandpack/SandpackRoot.tsx b/src/components/MDX/Sandpack/SandpackRoot.tsx
index 48d8daee50e..51a966b63b8 100644
--- a/src/components/MDX/Sandpack/SandpackRoot.tsx
+++ b/src/components/MDX/Sandpack/SandpackRoot.tsx
@@ -9,17 +9,18 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/
-import {Children} from 'react';
import * as React from 'react';
-import {SandpackProvider} from '@codesandbox/sandpack-react/unstyled';
+import {
+ SandpackProvider,
+ type SandpackFile,
+} from '@codesandbox/sandpack-react/unstyled';
import {SandpackLogLevel} from '@codesandbox/sandpack-client';
import {CustomPreset} from './CustomPreset';
-import {createFileMap} from './createFileMap';
import {CustomTheme} from './Themes';
import {template} from './template';
type SandpackProps = {
- children: React.ReactNode;
+ files: Record;
autorun?: boolean;
};
@@ -74,9 +75,8 @@ ul {
`.trim();
function SandpackRoot(props: SandpackProps) {
- let {children, autorun = true} = props;
- const codeSnippets = Children.toArray(children) as React.ReactElement[];
- const files = createFileMap(codeSnippets);
+ const {files: sourceFiles, autorun = true} = props;
+ const files = {...sourceFiles};
if ('/index.html' in files) {
throw new Error(
@@ -87,7 +87,7 @@ function SandpackRoot(props: SandpackProps) {
files['/src/styles.css'] = {
code: [sandboxStyle, files['/src/styles.css']?.code ?? ''].join('\n\n'),
- hidden: !files['/src/styles.css']?.visible,
+ hidden: sourceFiles['/src/styles.css']?.hidden ?? true,
};
return (
diff --git a/src/components/MDX/Sandpack/Themes.tsx b/src/components/MDX/Sandpack/Themes.tsx
index 8aa34dc954b..95a483ab39b 100644
--- a/src/components/MDX/Sandpack/Themes.tsx
+++ b/src/components/MDX/Sandpack/Themes.tsx
@@ -44,7 +44,7 @@ export const CustomTheme = {
mono: tailwindConfig.theme.extend.fontFamily.mono
.join(', ')
.replace(/"/gm, ''),
- size: tailwindConfig.theme.extend.fontSize.code,
+ size: tailwindConfig.theme.extend.fontSize['sandpack-code'],
lineHeight: '24px',
},
};
diff --git a/src/components/MDX/Sandpack/createFileMap.ts b/src/components/MDX/Sandpack/createFileMap.ts
index 049face93e6..004f018aed7 100644
--- a/src/components/MDX/Sandpack/createFileMap.ts
+++ b/src/components/MDX/Sandpack/createFileMap.ts
@@ -10,6 +10,7 @@
*/
import type {SandpackFile} from '@codesandbox/sandpack-react/unstyled';
+import {isValidElement} from 'react';
import type {PropsWithChildren, ReactElement, HTMLAttributes} from 'react';
export const AppJSPath = `/src/App.js`;
@@ -79,19 +80,20 @@ function splitMeta(meta: string): string[] {
export const createFileMap = (codeSnippets: any) => {
return codeSnippets.reduce(
(result: Record, codeSnippet: React.ReactElement) => {
- if (
- (codeSnippet.type as any).mdxName !== 'pre' &&
- codeSnippet.type !== 'pre'
- ) {
+ if (!isValidElement(codeSnippet)) {
return result;
}
- const {props} = (
+ const code = (
codeSnippet.props as PropsWithChildren<{
children: ReactElement<
HTMLAttributes & {meta?: string}
>;
}>
).children;
+ if (!isValidElement(code)) {
+ return result;
+ }
+ const {props} = code;
let filePath; // path in the folder structure
let fileHidden = false; // if the file is available as a tab
let fileActive = false; // if the file tab is shown by default
diff --git a/src/components/MDX/Sandpack/index.tsx b/src/components/MDX/Sandpack/index.tsx
index a8b802cec75..8f495d17b02 100644
--- a/src/components/MDX/Sandpack/index.tsx
+++ b/src/components/MDX/Sandpack/index.tsx
@@ -5,101 +5,16 @@
* LICENSE file in the root directory of this source tree.
*/
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
-
-import {lazy, memo, Children, Suspense} from 'react';
-import {AppJSPath, createFileMap} from './createFileMap';
-
-const SandpackRoot = lazy(() => import('./SandpackRoot'));
-
-const SandpackGlimmer = ({code}: {code: string}) => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {code}
-
-
-
-
-
-
-
-
-
-
- {code.split('\n').length > 16 && (
-
- )}
-
-
-
-
-);
-
-export const SandpackClient = memo(function SandpackWrapper(props: any): any {
- const codeSnippet = createFileMap(Children.toArray(props.children));
-
- // To set the active file in the fallback we have to find the active file first.
- // If there are no active files we fallback to App.js as default.
- let activeCodeSnippet = Object.keys(codeSnippet).filter(
- (fileName) =>
- codeSnippet[fileName]?.active === true &&
- codeSnippet[fileName]?.hidden === false
- );
- let activeCode;
- if (!activeCodeSnippet.length) {
- activeCode = codeSnippet[AppJSPath].code;
- } else {
- activeCode = codeSnippet[activeCodeSnippet[0]].code;
- }
-
- return (
- }>
-
-
- );
-});
-
-const SandpackRSCRoot = lazy(() => import('./SandpackRSCRoot'));
-
-export const SandpackRSC = memo(function SandpackRSCWrapper(props: {
- children: React.ReactNode;
-}): any {
- const codeSnippet = createFileMap(Children.toArray(props.children));
-
- // To set the active file in the fallback we have to find the active file first.
- // If there are no active files we fallback to App.js as default.
- let activeCodeSnippet = Object.keys(codeSnippet).filter(
- (fileName) =>
- codeSnippet[fileName]?.active === true &&
- codeSnippet[fileName]?.hidden === false
- );
- let activeCode;
- if (!activeCodeSnippet.length) {
- activeCode = codeSnippet[AppJSPath]?.code ?? '';
- } else {
- activeCode = codeSnippet[activeCodeSnippet[0]].code;
- }
-
- return (
- }>
- {props.children}
-
- );
-});
+import {Children} from 'react';
+import {createFileMap} from './createFileMap';
+import {SandpackClientIsland, SandpackRSCIsland} from './SandpackClient';
+
+export function SandpackClient(props: any) {
+ const files = createFileMap(Children.toArray(props.children));
+ return ;
+}
+
+export function SandpackRSC(props: any) {
+ const files = createFileMap(Children.toArray(props.children));
+ return ;
+}
diff --git a/src/components/MDX/Sandpack/runESLint.tsx b/src/components/MDX/Sandpack/runESLint.tsx
index 667b22d7eb2..c3967aef3a7 100644
--- a/src/components/MDX/Sandpack/runESLint.tsx
+++ b/src/components/MDX/Sandpack/runESLint.tsx
@@ -7,7 +7,7 @@
// @ts-nocheck
-import {Linter} from 'eslint/lib/linter/linter';
+import {Linter} from 'eslint-linter-browserify';
import type {Diagnostic} from '@codemirror/lint';
import type {Text} from '@codemirror/text';
@@ -21,7 +21,7 @@ const getCodeMirrorPosition = (
const linter = new Linter();
-const reactRules = require('eslint-plugin-react-hooks').rules;
+const reactRules = require('eslint-plugin-react-hooks-sandpack').rules;
linter.defineRules({
'react-hooks/rules-of-hooks': reactRules['rules-of-hooks'],
'react-hooks/exhaustive-deps': reactRules['exhaustive-deps'],
diff --git a/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx
index cca545a40d0..b0fa742976b 100644
--- a/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx
+++ b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx
@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
-import {useEffect, useRef} from 'react';
+import {useEffect, useEffectEvent} from 'react';
import {useSandpack} from '@codesandbox/sandpack-react/unstyled';
/**
@@ -15,18 +15,14 @@ import {useSandpack} from '@codesandbox/sandpack-react/unstyled';
*/
export function RscFileBridge() {
const {sandpack, dispatch, listen} = useSandpack();
- const filesRef = useRef(sandpack.files);
-
- // TODO: fix this with useEffectEvent
- // eslint-disable-next-line react-compiler/react-compiler
- filesRef.current = sandpack.files;
+ const getFiles = useEffectEvent(() => sandpack.files);
useEffect(() => {
const unsubscribe = listen((msg: any) => {
if (msg.type !== 'done') return;
const files: Record = {};
- for (const [path, file] of Object.entries(filesRef.current)) {
+ for (const [path, file] of Object.entries(getFiles())) {
files[path] = file.code;
}
diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js
index ed41755ed78..67188497e77 100644
--- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js
+++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-client.js
@@ -191,7 +191,7 @@ export function initClient() {
Object.keys(chunkControllers).forEach(function (id) {
try {
chunkControllers[id].close();
- } catch (e) {}
+ } catch {}
delete chunkControllers[id];
});
diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js
index 7570a350cde..013ea07c1e0 100644
--- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js
+++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js
@@ -60,7 +60,7 @@ function parseDirective(code) {
ecmaVersion: '2024',
sourceType: 'source',
}).body;
- } catch (x) {
+ } catch {
return null;
}
for (var i = 0; i < body.length; i++) {
@@ -80,7 +80,7 @@ function transformInlineServerActions(code) {
var ast;
try {
ast = acorn.parse(code, {ecmaVersion: '2024', sourceType: 'source'});
- } catch (x) {
+ } catch {
return code;
}
diff --git a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js
index e30f0493508..2e8c01db5f3 100644
--- a/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js
+++ b/src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/worker-bundle.dist.js
@@ -26,9 +26,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
('use strict');
(() => {
var Z = (e, t) => () => (t || e((t = {exports: {}}).exports, t), t.exports);
- var Wc = Z((ht) => {
+ var Wc = Z((at) => {
'use strict';
- var ei = {H: null, A: null};
+ var bs = {H: null, A: null};
function Yo(e) {
var t = 'https://react.dev/errors/' + e;
if (1 < arguments.length) {
@@ -44,8 +44,9 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'
);
}
- var jc = Array.isArray,
- Jo = Symbol.for('react.transitional.element'),
+ var jc = Array.isArray;
+ function $c() {}
+ var Jo = Symbol.for('react.transitional.element'),
Af = Symbol.for('react.portal'),
Pf = Symbol.for('react.fragment'),
Nf = Symbol.for('react.strict_mode'),
@@ -54,23 +55,27 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
Of = Symbol.for('react.suspense'),
Df = Symbol.for('react.memo'),
Uc = Symbol.for('react.lazy'),
- $c = Symbol.iterator;
+ qc = Symbol.iterator;
function Mf(e) {
return e === null || typeof e != 'object'
? null
- : ((e = ($c && e[$c]) || e['@@iterator']),
+ : ((e = (qc && e[qc]) || e['@@iterator']),
typeof e == 'function' ? e : null);
}
var Hc = Object.prototype.hasOwnProperty,
Ff = Object.assign;
- function Qo(e, t, s, i, r, a) {
- return (
- (s = a.ref),
- {$$typeof: Jo, type: e, key: t, ref: s !== void 0 ? s : null, props: a}
- );
+ function Qo(e, t, s) {
+ var i = s.ref;
+ return {
+ $$typeof: Jo,
+ type: e,
+ key: t,
+ ref: i !== void 0 ? i : null,
+ props: s,
+ };
}
function Bf(e, t) {
- return Qo(e.type, t, void 0, void 0, void 0, e.props);
+ return Qo(e.type, t, e.props);
}
function Zo(e) {
return typeof e == 'object' && e !== null && e.$$typeof === Jo;
@@ -84,13 +89,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
})
);
}
- var qc = /\/+/g;
+ var Kc = /\/+/g;
function zo(e, t) {
return typeof e == 'object' && e !== null && e.key != null
? Vf('' + e.key)
: t.toString(36);
}
- function Kc() {}
function jf(e) {
switch (e.status) {
case 'fulfilled':
@@ -100,7 +104,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
default:
switch (
(typeof e.status == 'string'
- ? e.then(Kc, Kc)
+ ? e.then($c, $c)
: ((e.status = 'pending'),
e.then(
function (t) {
@@ -122,36 +126,36 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
throw e;
}
- function Zs(e, t, s, i, r) {
+ function ei(e, t, s, i, r) {
var a = typeof e;
(a === 'undefined' || a === 'boolean') && (e = null);
- var u = !1;
- if (e === null) u = !0;
+ var p = !1;
+ if (e === null) p = !0;
else
switch (a) {
case 'bigint':
case 'string':
case 'number':
- u = !0;
+ p = !0;
break;
case 'object':
switch (e.$$typeof) {
case Jo:
case Af:
- u = !0;
+ p = !0;
break;
case Uc:
- return (u = e._init), Zs(u(e._payload), t, s, i, r);
+ return (p = e._init), ei(p(e._payload), t, s, i, r);
}
}
- if (u)
+ if (p)
return (
(r = r(e)),
- (u = i === '' ? '.' + zo(e, 0) : i),
+ (p = i === '' ? '.' + zo(e, 0) : i),
jc(r)
? ((s = ''),
- u != null && (s = u.replace(qc, '$&/') + '/'),
- Zs(r, t, s, '', function (g) {
+ p != null && (s = p.replace(Kc, '$&/') + '/'),
+ ei(r, t, s, '', function (g) {
return g;
}))
: r != null &&
@@ -161,22 +165,22 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
s +
(r.key == null || (e && e.key === r.key)
? ''
- : ('' + r.key).replace(qc, '$&/') + '/') +
- u
+ : ('' + r.key).replace(Kc, '$&/') + '/') +
+ p
)),
t.push(r)),
1
);
- u = 0;
+ p = 0;
var d = i === '' ? '.' : i + ':';
if (jc(e))
- for (var y = 0; y < e.length; y++)
- (i = e[y]), (a = d + zo(i, y)), (u += Zs(i, t, s, a, r));
- else if (((y = Mf(e)), typeof y == 'function'))
- for (e = y.call(e), y = 0; !(i = e.next()).done; )
- (i = i.value), (a = d + zo(i, y++)), (u += Zs(i, t, s, a, r));
+ for (var k = 0; k < e.length; k++)
+ (i = e[k]), (a = d + zo(i, k)), (p += ei(i, t, s, a, r));
+ else if (((k = Mf(e)), typeof k == 'function'))
+ for (e = k.call(e), k = 0; !(i = e.next()).done; )
+ (i = i.value), (a = d + zo(i, k++)), (p += ei(i, t, s, a, r));
else if (a === 'object') {
- if (typeof e.then == 'function') return Zs(jf(e), t, s, i, r);
+ if (typeof e.then == 'function') return ei(jf(e), t, s, i, r);
throw (
((t = String(e)),
Error(
@@ -189,14 +193,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
))
);
}
- return u;
+ return p;
}
function _r(e, t, s) {
if (e == null) return e;
var i = [],
r = 0;
return (
- Zs(e, i, '', '', function (a) {
+ ei(e, i, '', '', function (a) {
return t.call(s, a, r++);
}),
i
@@ -227,7 +231,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
function Xo() {
return {s: 0, v: void 0, o: null, p: null};
}
- ht.Children = {
+ at.Children = {
map: _r,
forEach: function (e, t, s) {
_r(
@@ -259,14 +263,14 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return e;
},
};
- ht.Fragment = Pf;
- ht.Profiler = Rf;
- ht.StrictMode = Nf;
- ht.Suspense = Of;
- ht.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ei;
- ht.cache = function (e) {
+ at.Fragment = Pf;
+ at.Profiler = Rf;
+ at.StrictMode = Nf;
+ at.Suspense = Of;
+ at.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = bs;
+ at.cache = function (e) {
return function () {
- var t = ei.A;
+ var t = bs.A;
if (!t) return e.apply(null, arguments);
var s = t.getCacheForType(qf);
(t = s.get(e)), t === void 0 && ((t = Xo()), s.set(e, t)), (s = 0);
@@ -286,37 +290,41 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
if (t.s === 1) return t.v;
if (t.s === 2) throw t.v;
try {
- var u = e.apply(null, arguments);
- return (s = t), (s.s = 1), (s.v = u);
+ var p = e.apply(null, arguments);
+ return (s = t), (s.s = 1), (s.v = p);
} catch (d) {
- throw ((u = t), (u.s = 2), (u.v = d), d);
+ throw ((p = t), (p.s = 2), (p.v = d), d);
}
};
};
- ht.cloneElement = function (e, t, s) {
+ at.cacheSignal = function () {
+ var e = bs.A;
+ return e ? e.cacheSignal() : null;
+ };
+ at.captureOwnerStack = function () {
+ return null;
+ };
+ at.cloneElement = function (e, t, s) {
if (e == null) throw Error(Yo(267, e));
var i = Ff({}, e.props),
- r = e.key,
- a = void 0;
+ r = e.key;
if (t != null)
- for (u in (t.ref !== void 0 && (a = void 0),
- t.key !== void 0 && (r = '' + t.key),
- t))
- !Hc.call(t, u) ||
- u === 'key' ||
- u === '__self' ||
- u === '__source' ||
- (u === 'ref' && t.ref === void 0) ||
- (i[u] = t[u]);
- var u = arguments.length - 2;
- if (u === 1) i.children = s;
- else if (1 < u) {
- for (var d = Array(u), y = 0; y < u; y++) d[y] = arguments[y + 2];
- i.children = d;
- }
- return Qo(e.type, r, void 0, void 0, a, i);
+ for (a in (t.key !== void 0 && (r = '' + t.key), t))
+ !Hc.call(t, a) ||
+ a === 'key' ||
+ a === '__self' ||
+ a === '__source' ||
+ (a === 'ref' && t.ref === void 0) ||
+ (i[a] = t[a]);
+ var a = arguments.length - 2;
+ if (a === 1) i.children = s;
+ else if (1 < a) {
+ for (var p = Array(a), d = 0; d < a; d++) p[d] = arguments[d + 2];
+ i.children = p;
+ }
+ return Qo(e.type, r, i);
};
- ht.createElement = function (e, t, s) {
+ at.createElement = function (e, t, s) {
var i,
r = {},
a = null;
@@ -327,43 +335,43 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
i !== '__self' &&
i !== '__source' &&
(r[i] = t[i]);
- var u = arguments.length - 2;
- if (u === 1) r.children = s;
- else if (1 < u) {
- for (var d = Array(u), y = 0; y < u; y++) d[y] = arguments[y + 2];
+ var p = arguments.length - 2;
+ if (p === 1) r.children = s;
+ else if (1 < p) {
+ for (var d = Array(p), k = 0; k < p; k++) d[k] = arguments[k + 2];
r.children = d;
}
if (e && e.defaultProps)
- for (i in ((u = e.defaultProps), u)) r[i] === void 0 && (r[i] = u[i]);
- return Qo(e, a, void 0, void 0, null, r);
+ for (i in ((p = e.defaultProps), p)) r[i] === void 0 && (r[i] = p[i]);
+ return Qo(e, a, r);
};
- ht.createRef = function () {
+ at.createRef = function () {
return {current: null};
};
- ht.forwardRef = function (e) {
+ at.forwardRef = function (e) {
return {$$typeof: Lf, render: e};
};
- ht.isValidElement = Zo;
- ht.lazy = function (e) {
+ at.isValidElement = Zo;
+ at.lazy = function (e) {
return {$$typeof: Uc, _payload: {_status: -1, _result: e}, _init: $f};
};
- ht.memo = function (e, t) {
+ at.memo = function (e, t) {
return {$$typeof: Df, type: e, compare: t === void 0 ? null : t};
};
- ht.use = function (e) {
- return ei.H.use(e);
+ at.use = function (e) {
+ return bs.H.use(e);
};
- ht.useCallback = function (e, t) {
- return ei.H.useCallback(e, t);
+ at.useCallback = function (e, t) {
+ return bs.H.useCallback(e, t);
};
- ht.useDebugValue = function () {};
- ht.useId = function () {
- return ei.H.useId();
+ at.useDebugValue = function () {};
+ at.useId = function () {
+ return bs.H.useId();
};
- ht.useMemo = function (e, t) {
- return ei.H.useMemo(e, t);
+ at.useMemo = function (e, t) {
+ return bs.H.useMemo(e, t);
};
- ht.version = '19.0.0';
+ at.version = '19.2.8';
});
var Li = Z((e_, Gc) => {
'use strict';
@@ -402,25 +410,25 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
'use strict';
Yc.exports = Xc();
});
- var Qc = Z((jn) => {
+ var Qc = Z(($n) => {
'use strict';
var Wf = Li();
- function ns() {}
- var Sn = {
+ function ss() {}
+ var In = {
d: {
- f: ns,
+ f: ss,
r: function () {
throw Error(
'Invalid form element. requestFormReset must be passed a form that was rendered by React.'
);
},
- D: ns,
- C: ns,
- L: ns,
- m: ns,
- X: ns,
- S: ns,
- M: ns,
+ D: ss,
+ C: ss,
+ L: ss,
+ m: ss,
+ X: ss,
+ S: ss,
+ M: ss,
},
p: 0,
findDOMNode: null,
@@ -433,8 +441,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
if (e === 'font') return '';
if (typeof t == 'string') return t === 'use-credentials' ? t : '';
}
- jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Sn;
- jn.preconnect = function (e, t) {
+ $n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = In;
+ $n.preconnect = function (e, t) {
typeof e == 'string' &&
(t
? ((t = t.crossOrigin),
@@ -445,25 +453,25 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
: ''
: void 0))
: (t = null),
- Sn.d.C(e, t));
+ In.d.C(e, t));
};
- jn.prefetchDNS = function (e) {
- typeof e == 'string' && Sn.d.D(e);
+ $n.prefetchDNS = function (e) {
+ typeof e == 'string' && In.d.D(e);
};
- jn.preinit = function (e, t) {
+ $n.preinit = function (e, t) {
if (typeof e == 'string' && t && typeof t.as == 'string') {
var s = t.as,
i = br(s, t.crossOrigin),
r = typeof t.integrity == 'string' ? t.integrity : void 0,
a = typeof t.fetchPriority == 'string' ? t.fetchPriority : void 0;
s === 'style'
- ? Sn.d.S(e, typeof t.precedence == 'string' ? t.precedence : void 0, {
+ ? In.d.S(e, typeof t.precedence == 'string' ? t.precedence : void 0, {
crossOrigin: i,
integrity: r,
fetchPriority: a,
})
: s === 'script' &&
- Sn.d.X(e, {
+ In.d.X(e, {
crossOrigin: i,
integrity: r,
fetchPriority: a,
@@ -471,20 +479,20 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
});
}
};
- jn.preinitModule = function (e, t) {
+ $n.preinitModule = function (e, t) {
if (typeof e == 'string')
if (typeof t == 'object' && t !== null) {
if (t.as == null || t.as === 'script') {
var s = br(t.as, t.crossOrigin);
- Sn.d.M(e, {
+ In.d.M(e, {
crossOrigin: s,
integrity: typeof t.integrity == 'string' ? t.integrity : void 0,
nonce: typeof t.nonce == 'string' ? t.nonce : void 0,
});
}
- } else t == null && Sn.d.M(e);
+ } else t == null && In.d.M(e);
};
- jn.preload = function (e, t) {
+ $n.preload = function (e, t) {
if (
typeof e == 'string' &&
typeof t == 'object' &&
@@ -493,7 +501,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
) {
var s = t.as,
i = br(s, t.crossOrigin);
- Sn.d.L(e, s, {
+ In.d.L(e, s, {
crossOrigin: i,
integrity: typeof t.integrity == 'string' ? t.integrity : void 0,
nonce: typeof t.nonce == 'string' ? t.nonce : void 0,
@@ -509,24 +517,24 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
});
}
};
- jn.preloadModule = function (e, t) {
+ $n.preloadModule = function (e, t) {
if (typeof e == 'string')
if (t) {
var s = br(t.as, t.crossOrigin);
- Sn.d.m(e, {
+ In.d.m(e, {
as: typeof t.as == 'string' && t.as !== 'script' ? t.as : void 0,
crossOrigin: s,
integrity: typeof t.integrity == 'string' ? t.integrity : void 0,
});
- } else Sn.d.m(e);
+ } else In.d.m(e);
};
- jn.version = '19.0.0';
+ $n.version = '19.2.8';
});
var eu = Z((i_, Zc) => {
'use strict';
Zc.exports = Qc();
});
- var Zu = Z((En) => {
+ var Zu = Z((An) => {
'use strict';
var Gf = eu(),
zf = Li(),
@@ -586,11 +594,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
function xu(e, t) {
typeof e.error == 'function' ? e.error(t) : e.close();
}
- var rs = Symbol.for('react.client.reference'),
+ var os = Symbol.for('react.client.reference'),
Ar = Symbol.for('react.server.reference');
function ti(e, t, s) {
return Object.defineProperties(e, {
- $$typeof: {value: rs},
+ $$typeof: {value: os},
$$id: {value: t},
$$async: {value: s},
});
@@ -769,8 +777,8 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
},
},
bu = Gf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
- qn = bu.d;
- bu.d = {f: qn.f, r: qn.r, D: sd, C: id, L: Sr, m: Cu, X: od, S: rd, M: ad};
+ Kn = bu.d;
+ bu.d = {f: Kn.f, r: Kn.r, D: sd, C: id, L: Sr, m: Cu, X: od, S: rd, M: ad};
function sd(e) {
if (typeof e == 'string' && e) {
var t = st || null;
@@ -778,7 +786,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
var s = t.hints,
i = 'D|' + e;
s.has(i) || (s.add(i), Ut(t, 'D', e));
- } else qn.D(e);
+ } else Kn.D(e);
}
}
function id(e, t) {
@@ -790,7 +798,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
i.has(r) ||
(i.add(r),
typeof t == 'string' ? Ut(s, 'C', [e, t]) : Ut(s, 'C', e));
- } else qn.C(e, t);
+ } else Kn.C(e, t);
}
}
function Sr(e, t, s) {
@@ -800,19 +808,19 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
var r = i.hints,
a = 'L';
if (t === 'image' && s) {
- var u = s.imageSrcSet,
+ var p = s.imageSrcSet,
d = s.imageSizes,
- y = '';
- typeof u == 'string' && u !== ''
- ? ((y += '[' + u + ']'),
- typeof d == 'string' && (y += '[' + d + ']'))
- : (y += '[][]' + e),
- (a += '[image]' + y);
+ k = '';
+ typeof p == 'string' && p !== ''
+ ? ((k += '[' + p + ']'),
+ typeof d == 'string' && (k += '[' + d + ']'))
+ : (k += '[][]' + e),
+ (a += '[image]' + k);
} else a += '[' + t + ']' + e;
r.has(a) ||
(r.add(a),
(s = ji(s)) ? Ut(i, 'L', [e, t, s]) : Ut(i, 'L', [e, t]));
- } else qn.L(e, t, s);
+ } else Kn.L(e, t, s);
}
}
function Cu(e, t) {
@@ -825,7 +833,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
? void 0
: (i.add(r), (t = ji(t)) ? Ut(s, 'm', [e, t]) : Ut(s, 'm', e));
}
- qn.m(e, t);
+ Kn.m(e, t);
}
}
function rd(e, t, s) {
@@ -843,7 +851,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
? Ut(i, 'S', [e, t])
: Ut(i, 'S', e));
}
- qn.S(e, t, s);
+ Kn.S(e, t, s);
}
}
function od(e, t) {
@@ -856,7 +864,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
? void 0
: (i.add(r), (t = ji(t)) ? Ut(s, 'X', [e, t]) : Ut(s, 'X', e));
}
- qn.X(e, t);
+ Kn.X(e, t);
}
}
function ad(e, t) {
@@ -869,7 +877,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
? void 0
: (i.add(r), (t = ji(t)) ? Ut(s, 'M', [e, t]) : Ut(s, 'M', e));
}
- qn.M(e, t);
+ Kn.M(e, t);
}
}
function ji(e) {
@@ -1030,7 +1038,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return (s = new Proxy(s, cd)), e.set(s, t), s;
}
var pd = Symbol.for('react.element'),
- In = Symbol.for('react.transitional.element'),
+ En = Symbol.for('react.transitional.element'),
ua = Symbol.for('react.fragment'),
nu = Symbol.for('react.context'),
wu = Symbol.for('react.forward_ref'),
@@ -1047,15 +1055,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
: ((e = (su && e[su]) || e['@@iterator']),
typeof e == 'function' ? e : null);
}
- var Ss = Symbol.asyncIterator;
- function Cs() {}
+ var Is = Symbol.asyncIterator;
+ function kn() {}
var pa = Error(
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
);
function md(e, t, s) {
switch (
((s = e[s]),
- s === void 0 ? e.push(t) : s !== t && (t.then(Cs, Cs), (t = s)),
+ s === void 0 ? e.push(t) : s !== t && (t.then(kn, kn), (t = s)),
t.status)
) {
case 'fulfilled':
@@ -1065,7 +1073,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
default:
switch (
(typeof t.status == 'string'
- ? t.then(Cs, Cs)
+ ? t.then(kn, kn)
: ((e = t),
(e.status = 'pending'),
e.then(
@@ -1168,7 +1176,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
e.$$typeof === nu && na();
}
- throw e.$$typeof === rs
+ throw e.$$typeof === os
? e.value != null && e.value.$$typeof === nu
? Error('Cannot read a Client Context from a Server Component.')
: Error('Cannot use() an already resolved Client Reference.')
@@ -1185,12 +1193,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return e ? e.cacheController.signal : null;
},
},
- Is = zf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
- if (!Is)
+ Es = zf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
+ if (!Es)
throw Error(
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
);
- var kn = Array.isArray,
+ var vn = Array.isArray,
ii = Object.getPrototypeOf;
function Nu(e) {
return (e = Object.prototype.toString.call(e)), e.slice(8, e.length - 1);
@@ -1200,7 +1208,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
case 'string':
return JSON.stringify(10 >= e.length ? e : e.slice(0, 10) + '...');
case 'object':
- return kn(e)
+ return vn(e)
? '[...]'
: e !== null && e.$$typeof === sa
? 'client'
@@ -1239,39 +1247,39 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return '';
}
var sa = Symbol.for('react.client.reference');
- function _s(e, t) {
+ function Cs(e, t) {
var s = Nu(e);
if (s !== 'Object' && s !== 'Array') return s;
s = -1;
var i = 0;
- if (kn(e)) {
+ if (vn(e)) {
for (var r = '[', a = 0; a < e.length; a++) {
0 < a && (r += ', ');
- var u = e[a];
- (u = typeof u == 'object' && u !== null ? _s(u) : ru(u)),
+ var p = e[a];
+ (p = typeof p == 'object' && p !== null ? Cs(p) : ru(p)),
'' + a === t
- ? ((s = r.length), (i = u.length), (r += u))
+ ? ((s = r.length), (i = p.length), (r += p))
: (r =
- 10 > u.length && 40 > r.length + u.length
- ? r + u
+ 10 > p.length && 40 > r.length + p.length
+ ? r + p
: r + '...');
}
r += ']';
- } else if (e.$$typeof === In) r = '<' + Er(e.type) + '/>';
+ } else if (e.$$typeof === En) r = '<' + Er(e.type) + '/>';
else {
if (e.$$typeof === sa) return 'client';
- for (r = '{', a = Object.keys(e), u = 0; u < a.length; u++) {
- 0 < u && (r += ', ');
- var d = a[u],
- y = JSON.stringify(d);
- (r += ('"' + d + '"' === y ? d : y) + ': '),
- (y = e[d]),
- (y = typeof y == 'object' && y !== null ? _s(y) : ru(y)),
+ for (r = '{', a = Object.keys(e), p = 0; p < a.length; p++) {
+ 0 < p && (r += ', ');
+ var d = a[p],
+ k = JSON.stringify(d);
+ (r += ('"' + d + '"' === k ? d : k) + ': '),
+ (k = e[d]),
+ (k = typeof k == 'object' && k !== null ? Cs(k) : ru(k)),
d === t
- ? ((s = r.length), (i = y.length), (r += y))
+ ? ((s = r.length), (i = k.length), (r += k))
: (r =
- 10 > y.length && 40 > r.length + y.length
- ? r + y
+ 10 > k.length && 40 > r.length + k.length
+ ? r + k
: r + '...');
}
r += '}';
@@ -1291,19 +1299,19 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
var Nr = Object.prototype.hasOwnProperty,
vd = Object.prototype,
- Es = JSON.stringify;
+ As = JSON.stringify;
function xd(e) {
console.error(e);
}
- function Ru(e, t, s, i, r, a, u, d, y) {
- if (Is.A !== null && Is.A !== iu)
+ function Ru(e, t, s, i, r, a, p, d, k) {
+ if (Es.A !== null && Es.A !== iu)
throw Error(
'Currently React only supports one RSC renderer at a time.'
);
- Is.A = iu;
+ Es.A = iu;
var g = new Set(),
L = [],
- p = new Set();
+ u = new Set();
(this.type = e),
(this.status = 10),
(this.flushScheduled = !1),
@@ -1312,7 +1320,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
(this.cache = new Map()),
(this.cacheController = new AbortController()),
(this.pendingChunks = this.nextChunkId = 0),
- (this.hints = p),
+ (this.hints = u),
(this.abortableTasks = g),
(this.pingedTasks = L),
(this.completedImportChunks = []),
@@ -1323,20 +1331,20 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
(this.writtenClientReferences = new Map()),
(this.writtenServerReferences = new Map()),
(this.writtenObjects = new WeakMap()),
- (this.temporaryReferences = y),
+ (this.temporaryReferences = k),
(this.identifierPrefix = d || ''),
(this.identifierCount = 1),
(this.taintCleanupQueue = []),
(this.onError = i === void 0 ? xd : i),
- (this.onPostpone = r === void 0 ? Cs : r),
+ (this.onPostpone = r === void 0 ? kn : r),
(this.onAllReady = a),
- (this.onFatalError = u),
- (e = os(this, t, null, !1, 0, g)),
+ (this.onFatalError = p),
+ (e = as(this, t, null, !1, 0, g)),
L.push(e);
}
var st = null;
function ou(e, t, s) {
- var i = os(
+ var i = as(
e,
s,
t.keyPath,
@@ -1348,7 +1356,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
case 'fulfilled':
return (i.model = s.value), Vi(e, i), i.id;
case 'rejected':
- return Un(e, i, s.reason), i.id;
+ return Hn(e, i, s.reason), i.id;
default:
if (e.status === 12)
return (
@@ -1377,7 +1385,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
(i.model = r), Vi(e, i);
},
function (r) {
- i.status === 0 && (Un(e, i, r), un(e));
+ i.status === 0 && (Hn(e, i, r), un(e));
}
),
i.id
@@ -1385,23 +1393,23 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
function gd(e, t, s) {
function i(g) {
- if (y.status === 0)
+ if (k.status === 0)
if (g.done)
- (y.status = 1),
+ (k.status = 1),
(g =
- y.id.toString(16) +
+ k.id.toString(16) +
`:C
`),
e.completedRegularChunks.push(pn(g)),
- e.abortableTasks.delete(y),
+ e.abortableTasks.delete(k),
e.cacheController.signal.removeEventListener('abort', a),
un(e),
Or(e);
else
try {
- (y.model = g.value),
+ (k.model = g.value),
e.pendingChunks++,
- Bu(e, y),
+ Bu(e, k),
un(e),
d.read().then(i, r);
} catch (L) {
@@ -1409,32 +1417,32 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
}
function r(g) {
- y.status === 0 &&
+ k.status === 0 &&
(e.cacheController.signal.removeEventListener('abort', a),
- Un(e, y, g),
+ Hn(e, k, g),
un(e),
d.cancel(g).then(r, r));
}
function a() {
- if (y.status === 0) {
+ if (k.status === 0) {
var g = e.cacheController.signal;
g.removeEventListener('abort', a),
(g = g.reason),
e.type === 21
- ? (e.abortableTasks.delete(y), ri(y), oi(y, e))
- : (Un(e, y, g), un(e)),
+ ? (e.abortableTasks.delete(k), ri(k), oi(k, e))
+ : (Hn(e, k, g), un(e)),
d.cancel(g).then(r, r);
}
}
- var u = s.supportsBYOB;
- if (u === void 0)
+ var p = s.supportsBYOB;
+ if (p === void 0)
try {
- s.getReader({mode: 'byob'}).releaseLock(), (u = !0);
+ s.getReader({mode: 'byob'}).releaseLock(), (p = !0);
} catch {
- u = !1;
+ p = !1;
}
var d = s.getReader(),
- y = os(
+ k = as(
e,
t.model,
t.keyPath,
@@ -1445,75 +1453,75 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return (
e.pendingChunks++,
(t =
- y.id.toString(16) +
+ k.id.toString(16) +
':' +
- (u ? 'r' : 'R') +
+ (p ? 'r' : 'R') +
`
`),
e.completedRegularChunks.push(pn(t)),
e.cacheController.signal.addEventListener('abort', a),
d.read().then(i, r),
- Ct(y.id)
+ Ct(k.id)
);
}
function _d(e, t, s, i) {
- function r(y) {
+ function r(k) {
if (d.status === 0)
- if (y.done) {
- if (((d.status = 1), y.value === void 0))
+ if (k.done) {
+ if (((d.status = 1), k.value === void 0))
var g =
d.id.toString(16) +
`:C
`;
else
try {
- var L = bs(e, y.value, 0);
+ var L = ws(e, k.value, 0);
g =
d.id.toString(16) +
':C' +
- Es(Ct(L)) +
+ As(Ct(L)) +
`
`;
- } catch (p) {
- a(p);
+ } catch (u) {
+ a(u);
return;
}
e.completedRegularChunks.push(pn(g)),
e.abortableTasks.delete(d),
- e.cacheController.signal.removeEventListener('abort', u),
+ e.cacheController.signal.removeEventListener('abort', p),
un(e),
Or(e);
} else
try {
- (d.model = y.value),
+ (d.model = k.value),
e.pendingChunks++,
Bu(e, d),
un(e),
i.next().then(r, a);
- } catch (p) {
- a(p);
+ } catch (u) {
+ a(u);
}
}
- function a(y) {
+ function a(k) {
d.status === 0 &&
- (e.cacheController.signal.removeEventListener('abort', u),
- Un(e, d, y),
+ (e.cacheController.signal.removeEventListener('abort', p),
+ Hn(e, d, k),
un(e),
- typeof i.throw == 'function' && i.throw(y).then(a, a));
+ typeof i.throw == 'function' && i.throw(k).then(kn, kn));
}
- function u() {
+ function p() {
if (d.status === 0) {
- var y = e.cacheController.signal;
- y.removeEventListener('abort', u);
- var g = y.reason;
+ var k = e.cacheController.signal;
+ k.removeEventListener('abort', p);
+ var g = k.reason;
e.type === 21
? (e.abortableTasks.delete(d), ri(d), oi(d, e))
- : (Un(e, d, y.reason), un(e)),
- typeof i.throw == 'function' && i.throw(g).then(a, a);
+ : (Hn(e, d, k.reason), un(e)),
+ typeof i.throw == 'function' && i.throw(g).then(kn, kn);
}
}
s = s === i;
- var d = os(
+ var d = as(
e,
t.model,
t.keyPath,
@@ -1530,13 +1538,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
`
`),
e.completedRegularChunks.push(pn(t)),
- e.cacheController.signal.addEventListener('abort', u),
+ e.cacheController.signal.addEventListener('abort', p),
i.next().then(r, a),
Ct(d.id)
);
}
function Ut(e, t, s) {
- (s = Es(s)),
+ (s = As(s)),
(t = pn(
':H' +
t +
@@ -1575,7 +1583,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
function au() {}
function wd(e, t, s, i) {
- if (typeof i != 'object' || i === null || i.$$typeof === rs) return i;
+ if (typeof i != 'object' || i === null || i.$$typeof === os) return i;
if (typeof i.then == 'function') return Cd(e, t, i);
var r = Iu(i);
return r
@@ -1584,12 +1592,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return r.call(i);
}),
e)
- : typeof i[Ss] != 'function' ||
+ : typeof i[Is] != 'function' ||
(typeof ReadableStream == 'function' && i instanceof ReadableStream)
? i
: ((e = {}),
- (e[Ss] = function () {
- return i[Ss]();
+ (e[Is] = function () {
+ return i[Is]();
}),
e);
}
@@ -1606,7 +1614,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
(typeof r == 'object' &&
r !== null &&
typeof r.then == 'function' &&
- r.$$typeof !== rs &&
+ r.$$typeof !== os &&
r.then(au, au),
null)
);
@@ -1625,13 +1633,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
}
function cu(e, t, s) {
return t.keyPath !== null
- ? ((e = [In, ua, t.keyPath, {children: s}]), t.implicitSlot ? [e] : e)
+ ? ((e = [En, ua, t.keyPath, {children: s}]), t.implicitSlot ? [e] : e)
: s;
}
- var is = 0;
+ var rs = 0;
function uu(e, t) {
return (
- (t = os(
+ (t = as(
e,
t.model,
t.keyPath,
@@ -1640,7 +1648,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
e.abortableTasks
)),
Vi(e, t),
- ws(t.id)
+ Ss(t.id)
);
}
function ia(e, t, s, i, r, a) {
@@ -1648,7 +1656,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
throw Error(
'Refs cannot be used in Server Components, nor passed to Client Components.'
);
- if (typeof s == 'function' && s.$$typeof !== rs && s.$$typeof !== ca)
+ if (typeof s == 'function' && s.$$typeof !== os && s.$$typeof !== ca)
return lu(e, t, i, s, a);
if (s === ua && i === null)
return (
@@ -1658,11 +1666,11 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
(t.implicitSlot = s),
a
);
- if (s != null && typeof s == 'object' && s.$$typeof !== rs)
+ if (s != null && typeof s == 'object' && s.$$typeof !== os)
switch (s.$$typeof) {
case $i:
- var u = s._init;
- if (((s = u(s._payload)), e.status === 12)) throw null;
+ var p = s._init;
+ if (((s = p(s._payload)), e.status === 12)) throw null;
return ia(e, t, s, i, r, a);
case wu:
return lu(e, t, i, s.render, a);
@@ -1672,13 +1680,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
else
typeof s == 'string' &&
((r = t.formatContext),
- (u = ld(r, s, a)),
- r !== u && a.children != null && bs(e, a.children, u));
+ (p = ld(r, s, a)),
+ r !== p && a.children != null && ws(e, a.children, p));
return (
(e = i),
(i = t.keyPath),
e === null ? (e = i) : i !== null && (e = i + ',' + e),
- (a = [In, s, e, a]),
+ (a = [En, s, e, a]),
(t = t.implicitSlot && e !== null ? [a] : a),
t
);
@@ -1696,16 +1704,16 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return ra(e);
}));
}
- function os(e, t, s, i, r, a) {
+ function as(e, t, s, i, r, a) {
e.pendingChunks++;
- var u = e.nextChunkId++;
+ var p = e.nextChunkId++;
typeof t != 'object' ||
t === null ||
s !== null ||
i ||
- e.writtenObjects.set(t, Ct(u));
+ e.writtenObjects.set(t, Ct(p));
var d = {
- id: u,
+ id: p,
status: 0,
model: t,
keyPath: s,
@@ -1714,30 +1722,30 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
ping: function () {
return Vi(e, d);
},
- toJSON: function (y, g) {
- is += y.length;
+ toJSON: function (k, g) {
+ rs += k.length;
var L = d.keyPath,
- p = d.implicitSlot;
+ u = d.implicitSlot;
try {
- var h = qi(e, d, this, y, g);
+ var h = qi(e, d, this, k, g);
} catch (x) {
if (
- ((y = d.model),
- (y =
- typeof y == 'object' &&
- y !== null &&
- (y.$$typeof === In || y.$$typeof === $i)),
+ ((k = d.model),
+ (k =
+ typeof k == 'object' &&
+ k !== null &&
+ (k.$$typeof === En || k.$$typeof === $i)),
e.status === 12)
)
(d.status = 3),
e.type === 21
- ? ((L = e.nextChunkId++), (L = y ? ws(L) : Ct(L)), (h = L))
- : ((L = e.fatalError), (h = y ? ws(L) : Ct(L)));
+ ? ((L = e.nextChunkId++), (L = k ? Ss(L) : Ct(L)), (h = L))
+ : ((L = e.fatalError), (h = k ? Ss(L) : Ct(L)));
else if (
((g = x === pa ? Eu() : x),
typeof g == 'object' && g !== null && typeof g.then == 'function')
) {
- h = os(
+ h = as(
e,
d.model,
d.keyPath,
@@ -1745,20 +1753,20 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
d.formatContext,
e.abortableTasks
);
- var T = h.ping;
- g.then(T, T),
+ var y = h.ping;
+ g.then(y, y),
(h.thenableState = Au()),
(d.keyPath = L),
- (d.implicitSlot = p),
- (h = y ? ws(h.id) : Ct(h.id));
+ (d.implicitSlot = u),
+ (h = k ? Ss(h.id) : Ct(h.id));
} else
(d.keyPath = L),
- (d.implicitSlot = p),
+ (d.implicitSlot = u),
e.pendingChunks++,
(L = e.nextChunkId++),
- (p = Kn(e, g, d)),
- Rr(e, L, p),
- (h = y ? ws(L) : Ct(L));
+ (u = Un(e, g, d)),
+ Rr(e, L, u),
+ (h = k ? Ss(L) : Ct(L));
}
return h;
},
@@ -1769,12 +1777,12 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
function Ct(e) {
return '$' + e.toString(16);
}
- function ws(e) {
+ function Ss(e) {
return '$L' + e.toString(16);
}
function Lu(e, t, s) {
return (
- (e = Es(s)),
+ (e = As(s)),
(t =
t.toString(16) +
':' +
@@ -1787,60 +1795,60 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
function pu(e, t, s, i) {
var r = i.$$async ? i.$$id + '#async' : i.$$id,
a = e.writtenClientReferences,
- u = a.get(r);
- if (u !== void 0) return t[0] === In && s === '1' ? ws(u) : Ct(u);
+ p = a.get(r);
+ if (p !== void 0) return t[0] === En && s === '1' ? Ss(p) : Ct(p);
try {
var d = e.bundlerConfig,
- y = i.$$id;
- u = '';
- var g = d[y];
- if (g) u = g.name;
+ k = i.$$id;
+ p = '';
+ var g = d[k];
+ if (g) p = g.name;
else {
- var L = y.lastIndexOf('#');
- if ((L !== -1 && ((u = y.slice(L + 1)), (g = d[y.slice(0, L)])), !g))
+ var L = k.lastIndexOf('#');
+ if ((L !== -1 && ((p = k.slice(L + 1)), (g = d[k.slice(0, L)])), !g))
throw Error(
'Could not find the module "' +
- y +
+ k +
'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.'
);
}
if (g.async === !0 && i.$$async === !0)
throw Error(
'The module "' +
- y +
+ k +
'" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.'
);
- var p =
+ var u =
g.async === !0 || i.$$async === !0
- ? [g.id, g.chunks, u, 1]
- : [g.id, g.chunks, u];
+ ? [g.id, g.chunks, p, 1]
+ : [g.id, g.chunks, p];
e.pendingChunks++;
var h = e.nextChunkId++,
- T = Es(p),
+ y = As(u),
x =
h.toString(16) +
':I' +
- T +
+ y +
`
`,
w = pn(x);
return (
e.completedImportChunks.push(w),
a.set(r, h),
- t[0] === In && s === '1' ? ws(h) : Ct(h)
+ t[0] === En && s === '1' ? Ss(h) : Ct(h)
);
} catch (S) {
return (
e.pendingChunks++,
(t = e.nextChunkId++),
- (s = Kn(e, S, null)),
+ (s = Un(e, S, null)),
Rr(e, t, s),
Ct(t)
);
}
}
- function bs(e, t, s) {
- return (t = os(e, t, null, !1, s, e.abortableTasks)), Fu(e, t), t.id;
+ function ws(e, t, s) {
+ return (t = as(e, t, null, !1, s, e.abortableTasks)), Fu(e, t), t.id;
}
function Yt(e, t, s) {
e.pendingChunks++;
@@ -1848,59 +1856,59 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return Kt(e, i, t, s, !1), Ct(i);
}
function Sd(e, t) {
- function s(y) {
- if (u.status === 0)
- if (y.done)
- e.cacheController.signal.removeEventListener('abort', r), Vi(e, u);
- else return a.push(y.value), d.read().then(s).catch(i);
- }
- function i(y) {
- u.status === 0 &&
+ function s(k) {
+ if (p.status === 0)
+ if (k.done)
+ e.cacheController.signal.removeEventListener('abort', r), Vi(e, p);
+ else return a.push(k.value), d.read().then(s).catch(i);
+ }
+ function i(k) {
+ p.status === 0 &&
(e.cacheController.signal.removeEventListener('abort', r),
- Un(e, u, y),
+ Hn(e, p, k),
un(e),
- d.cancel(y).then(i, i));
+ d.cancel(k).then(i, i));
}
function r() {
- if (u.status === 0) {
- var y = e.cacheController.signal;
- y.removeEventListener('abort', r),
- (y = y.reason),
+ if (p.status === 0) {
+ var k = e.cacheController.signal;
+ k.removeEventListener('abort', r),
+ (k = k.reason),
e.type === 21
- ? (e.abortableTasks.delete(u), ri(u), oi(u, e))
- : (Un(e, u, y), un(e)),
- d.cancel(y).then(i, i);
+ ? (e.abortableTasks.delete(p), ri(p), oi(p, e))
+ : (Hn(e, p, k), un(e)),
+ d.cancel(k).then(i, i);
}
}
var a = [t.type],
- u = os(e, a, null, !1, 0, e.abortableTasks),
+ p = as(e, a, null, !1, 0, e.abortableTasks),
d = t.stream().getReader();
return (
e.cacheController.signal.addEventListener('abort', r),
d.read().then(s).catch(i),
- '$B' + u.id.toString(16)
+ '$B' + p.id.toString(16)
);
}
- var ss = !1;
+ var is = !1;
function qi(e, t, s, i, r) {
- if (((t.model = r), r === In)) return '$';
+ if (((t.model = r), r === En)) return '$';
if (r === null) return null;
if (typeof r == 'object') {
switch (r.$$typeof) {
- case In:
+ case En:
var a = null,
- u = e.writtenObjects;
+ p = e.writtenObjects;
if (t.keyPath === null && !t.implicitSlot) {
- var d = u.get(r);
+ var d = p.get(r);
if (d !== void 0)
- if (ss === r) ss = null;
+ if (is === r) is = null;
else return d;
else
i.indexOf(':') === -1 &&
- ((s = u.get(s)),
- s !== void 0 && ((a = s + ':' + i), u.set(r, a)));
+ ((s = p.get(s)),
+ s !== void 0 && ((a = s + ':' + i), p.set(r, a)));
}
- return 3200 < is
+ return 3200 < rs
? uu(e, t)
: ((i = r.props),
(s = i.ref),
@@ -1908,10 +1916,10 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
typeof e == 'object' &&
e !== null &&
a !== null &&
- (u.has(e) || u.set(e, a)),
+ (p.has(e) || p.set(e, a)),
e);
case $i:
- if (3200 < is) return uu(e, t);
+ if (3200 < rs) return uu(e, t);
if (
((t.thenableState = null),
(i = r._init),
@@ -1926,30 +1934,30 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`);
}
- if (r.$$typeof === rs) return pu(e, s, i, r);
+ if (r.$$typeof === os) return pu(e, s, i, r);
if (
e.temporaryReferences !== void 0 &&
((a = e.temporaryReferences.get(r)), a !== void 0)
)
return '$T' + a;
if (
- ((a = e.writtenObjects), (u = a.get(r)), typeof r.then == 'function')
+ ((a = e.writtenObjects), (p = a.get(r)), typeof r.then == 'function')
) {
- if (u !== void 0) {
+ if (p !== void 0) {
if (t.keyPath !== null || t.implicitSlot)
return '$@' + ou(e, t, r).toString(16);
- if (ss === r) ss = null;
- else return u;
+ if (is === r) is = null;
+ else return p;
}
return (e = '$@' + ou(e, t, r).toString(16)), a.set(r, e), e;
}
- if (u !== void 0)
- if (ss === r) {
- if (u !== Ct(t.id)) return u;
- ss = null;
- } else return u;
- else if (i.indexOf(':') === -1 && ((u = a.get(s)), u !== void 0)) {
- if (((d = i), kn(s) && s[0] === In))
+ if (p !== void 0)
+ if (is === r) {
+ if (p !== Ct(t.id)) return p;
+ is = null;
+ } else return p;
+ else if (i.indexOf(':') === -1 && ((p = a.get(s)), p !== void 0)) {
+ if (((d = i), vn(s) && s[0] === En))
switch (i) {
case '1':
d = 'type';
@@ -1963,15 +1971,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
case '4':
d = '_owner';
}
- a.set(r, u + ':' + d);
+ a.set(r, p + ':' + d);
}
- if (kn(r)) return cu(e, t, r);
+ if (vn(r)) return cu(e, t, r);
if (r instanceof Map)
- return (r = Array.from(r)), '$Q' + bs(e, r, 0).toString(16);
+ return (r = Array.from(r)), '$Q' + ws(e, r, 0).toString(16);
if (r instanceof Set)
- return (r = Array.from(r)), '$W' + bs(e, r, 0).toString(16);
+ return (r = Array.from(r)), '$W' + ws(e, r, 0).toString(16);
if (typeof FormData == 'function' && r instanceof FormData)
- return (r = Array.from(r.entries())), '$K' + bs(e, r, 0).toString(16);
+ return (r = Array.from(r.entries())), '$K' + ws(e, r, 0).toString(16);
if (r instanceof Error) return '$Z';
if (r instanceof ArrayBuffer) return Yt(e, 'A', new Uint8Array(r));
if (r instanceof Int8Array) return Yt(e, 'O', r);
@@ -1991,15 +1999,15 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
return (
(i = a.call(r)),
i === r
- ? ((r = Array.from(i)), '$i' + bs(e, r, 0).toString(16))
+ ? ((r = Array.from(i)), '$i' + ws(e, r, 0).toString(16))
: cu(e, t, Array.from(i))
);
if (typeof ReadableStream == 'function' && r instanceof ReadableStream)
return gd(e, t, r);
- if (((a = r[Ss]), typeof a == 'function'))
+ if (((a = r[Is]), typeof a == 'function'))
return (
t.keyPath !== null
- ? ((e = [In, ua, t.keyPath, {children: r}]),
+ ? ((e = [En, ua, t.keyPath, {children: r}]),
(e = t.implicitSlot ? [e] : e))
: ((i = a.call(r)), (e = _d(e, t, r, i))),
e
@@ -2008,13 +2016,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
if (((e = ii(r)), e !== vd && (e === null || ii(e) !== null)))
throw Error(
'Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.' +
- _s(s, i)
+ Cs(s, i)
);
return r;
}
if (typeof r == 'string')
return (
- (is += r.length),
+ (rs += r.length),
r[r.length - 1] === 'Z' && s[i] instanceof Date
? '$D' + r
: 1024 <= r.length && la !== null
@@ -2034,7 +2042,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
: '$NaN';
if (typeof r > 'u') return '$undefined';
if (typeof r == 'function') {
- if (r.$$typeof === rs) return pu(e, s, i, r);
+ if (r.$$typeof === os) return pu(e, s, i, r);
if (r.$$typeof === Ar)
return (
(t = e.writtenServerReferences),
@@ -2043,7 +2051,7 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
? (e = '$h' + i.toString(16))
: ((i = r.$$bound),
(i = i === null ? null : Promise.resolve(i)),
- (e = bs(e, {id: r.$$id, bound: i}, 0)),
+ (e = ws(e, {id: r.$$id, bound: i}, 0)),
t.set(r, e),
(e = '$h' + e.toString(16))),
e
@@ -2060,13 +2068,13 @@ globalThis.__webpack_get_script_filename__ = function (chunkId) {
: /^on[A-Z]/.test(i)
? Error(
'Event handlers cannot be passed to Client Component props.' +
- _s(s, i) +
+ Cs(s, i) +
`
If you need interactivity, consider converting part of this to a Client Component.`
)
: Error(
'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.' +
- _s(s, i)
+ Cs(s, i)
);
}
if (typeof r == 'symbol') {
@@ -2076,7 +2084,7 @@ If you need interactivity, consider converting part of this to a Client Componen
throw Error(
'Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(' +
(r.description + ') cannot be found among global symbols.') +
- _s(s, i)
+ Cs(s, i)
);
return (
e.pendingChunks++,
@@ -2092,10 +2100,10 @@ If you need interactivity, consider converting part of this to a Client Componen
'Type ' +
typeof r +
' is not supported in Client Component props.' +
- _s(s, i)
+ Cs(s, i)
);
}
- function Kn(e, t) {
+ function Un(e, t) {
var s = st;
st = null;
try {
@@ -2127,7 +2135,7 @@ If you need interactivity, consider converting part of this to a Client Componen
(t =
t.toString(16) +
':E' +
- Es(s) +
+ As(s) +
`
`),
(t = pn(t)),
@@ -2194,11 +2202,11 @@ If you need interactivity, consider converting part of this to a Client Componen
? Kt(e, i, 'm', s, !1)
: s instanceof DataView
? Kt(e, i, 'V', s, !1)
- : ((s = Es(s, t.toJSON)), Ou(e, t.id, s));
+ : ((s = As(s, t.toJSON)), Ou(e, t.id, s));
}
- function Un(e, t, s) {
+ function Hn(e, t, s) {
(t.status = 4),
- (s = Kn(e, s, t)),
+ (s = Un(e, s, t)),
Rr(e, t.id, s),
e.abortableTasks.delete(t),
Or(e);
@@ -2207,23 +2215,23 @@ If you need interactivity, consider converting part of this to a Client Componen
function Fu(e, t) {
if (t.status === 0) {
t.status = 5;
- var s = is;
+ var s = rs;
try {
- ss = t.model;
+ is = t.model;
var i = qi(e, t, Lr, '', t.model);
if (
- ((ss = i),
+ ((is = i),
(t.keyPath = null),
(t.implicitSlot = !1),
typeof i == 'object' && i !== null)
)
e.writtenObjects.set(i, Ct(t.id)), Mu(e, t, i);
else {
- var r = Es(i);
+ var r = As(i);
Ou(e, t.id, r);
}
(t.status = 1), e.abortableTasks.delete(t), Or(e);
- } catch (y) {
+ } catch (k) {
if (e.status === 12)
if ((e.abortableTasks.delete(t), (t.status = 0), e.type === 21))
ri(t), oi(t, e);
@@ -2232,33 +2240,33 @@ If you need interactivity, consider converting part of this to a Client Componen
ha(t), fa(t, e, a);
}
else {
- var u = y === pa ? Eu() : y;
+ var p = k === pa ? Eu() : k;
if (
- typeof u == 'object' &&
- u !== null &&
- typeof u.then == 'function'
+ typeof p == 'object' &&
+ p !== null &&
+ typeof p.then == 'function'
) {
(t.status = 0), (t.thenableState = Au());
var d = t.ping;
- u.then(d, d);
- } else Un(e, t, u);
+ p.then(d, d);
+ } else Hn(e, t, p);
}
} finally {
- is = s;
+ rs = s;
}
}
}
function Bu(e, t) {
- var s = is;
+ var s = rs;
try {
Mu(e, t, t.model);
} finally {
- is = s;
+ rs = s;
}
}
function ra(e) {
- var t = Is.H;
- Is.H = Pu;
+ var t = Es.H;
+ Es.H = Pu;
var s = st;
Mi = st = e;
try {
@@ -2267,9 +2275,9 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var r = 0; r < i.length; r++) Fu(e, i[r]);
ai(e);
} catch (a) {
- Kn(e, a, null), Ki(e, a);
+ Un(e, a, null), Ki(e, a);
} finally {
- (Is.H = t), (Mi = null), (st = s);
+ (Es.H = t), (Mi = null), (st = s);
}
}
function ha(e) {
@@ -2299,9 +2307,9 @@ If you need interactivity, consider converting part of this to a Client Componen
var a = e.completedRegularChunks;
for (i = 0; i < a.length; i++) e.pendingChunks--, Cr(t, a[i]);
a.splice(0, i);
- var u = e.completedErrorChunks;
- for (i = 0; i < u.length; i++) e.pendingChunks--, Cr(t, u[i]);
- u.splice(0, i);
+ var p = e.completedErrorChunks;
+ for (i = 0; i < p.length; i++) e.pendingChunks--, Cr(t, p[i]);
+ p.splice(0, i);
} finally {
(e.flushScheduled = !1),
ln &&
@@ -2349,7 +2357,7 @@ If you need interactivity, consider converting part of this to a Client Componen
try {
ai(e);
} catch (s) {
- Kn(e, s, null), Ki(e, s);
+ Un(e, s, null), Ki(e, s);
}
}
}
@@ -2361,7 +2369,7 @@ If you need interactivity, consider converting part of this to a Client Componen
var s = e.onAllReady;
s(), ai(e);
} catch (i) {
- Kn(e, i, null), Ki(e, i);
+ Un(e, i, null), Ki(e, i);
}
}
function Ed(e, t, s) {
@@ -2372,7 +2380,7 @@ If you need interactivity, consider converting part of this to a Client Componen
var i = e.onAllReady;
i(), ai(e);
} catch (r) {
- Kn(e, r, null), Ki(e, r);
+ Un(e, r, null), Ki(e, r);
}
}
function si(e, t) {
@@ -2401,7 +2409,7 @@ If you need interactivity, consider converting part of this to a Client Componen
'The render was aborted by the server with a promise.'
)
: t,
- r = Kn(e, i, null),
+ r = Un(e, i, null),
a = e.nextChunkId++;
(e.fatalError = a),
e.pendingChunks++,
@@ -2414,11 +2422,11 @@ If you need interactivity, consider converting part of this to a Client Componen
});
}
else {
- var u = e.onAllReady;
- u(), ai(e);
+ var p = e.onAllReady;
+ p(), ai(e);
}
} catch (d) {
- Kn(e, d, null), Ki(e, d);
+ Un(e, d, null), Ki(e, d);
}
}
function $u(e, t) {
@@ -2456,15 +2464,15 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var t = e[1], s = [], i = 0; i < t.length; ) {
var r = t[i++],
a = t[i++],
- u = wr.get(r);
- u === void 0
+ p = wr.get(r);
+ p === void 0
? (Ku.set(r, a),
(a = __webpack_chunk_load__(r)),
s.push(a),
- (u = wr.set.bind(wr, r, null)),
- a.then(u, Ad),
+ (p = wr.set.bind(wr, r, null)),
+ a.then(p, Ad),
wr.set(r, a))
- : u !== null && s.push(u);
+ : p !== null && s.push(p);
}
return e.length === 4
? s.length === 0
@@ -2603,20 +2611,20 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function Nd(e, t, s, i) {
function r(L) {
- var p = d.reason,
+ var u = d.reason,
h = d;
(h.status = 'rejected'),
(h.value = null),
(h.reason = L),
- p !== null && da(e, p, L),
+ u !== null && da(e, u, L),
Pr(e, g, L);
}
var a = t.id;
if (typeof a != 'string' || i === 'then') return null;
- var u = t.$$promise;
- if (u !== void 0)
- return u.status === 'fulfilled'
- ? ((u = u.value), i === '__proto__' ? null : (s[i] = u))
+ var p = t.$$promise;
+ if (p !== void 0)
+ return p.status === 'fulfilled'
+ ? ((p = p.value), i === '__proto__' ? null : (s[i] = p))
: (Ye
? ((a = Ye), a.deps++)
: (a = Ye =
@@ -2627,15 +2635,15 @@ If you need interactivity, consider converting part of this to a Client Componen
deps: 1,
errored: !1,
}),
- u.then(aa.bind(null, e, a, s, i), Pr.bind(null, e, a)),
+ p.then(aa.bind(null, e, a, s, i), Pr.bind(null, e, a)),
null);
var d = new Ot('blocked', null, null);
t.$$promise = d;
- var y = $u(e._bundlerConfig, a);
- if (((u = t.bound), (a = qu(y))))
- u instanceof Ot && (a = Promise.all([a, u]));
- else if (u instanceof Ot) a = Promise.resolve(u);
- else return (u = Fi(y)), (a = d), (a.status = 'fulfilled'), (a.value = u);
+ var k = $u(e._bundlerConfig, a);
+ if (((p = t.bound), (a = qu(k))))
+ p instanceof Ot && (a = Promise.all([a, p]));
+ else if (p instanceof Ot) a = Promise.resolve(p);
+ else return (p = Fi(k)), (a = d), (a.status = 'fulfilled'), (a.value = p);
if (Ye) {
var g = Ye;
g.deps++;
@@ -2643,27 +2651,27 @@ If you need interactivity, consider converting part of this to a Client Componen
g = Ye = {chunk: null, value: null, reason: null, deps: 1, errored: !1};
return (
a.then(function () {
- var L = Fi(y);
+ var L = Fi(k);
if (t.bound) {
- var p = t.bound.value;
- if (((p = kn(p) ? p.slice(0) : []), 1e3 < p.length)) {
+ var u = t.bound.value;
+ if (((u = vn(u) ? u.slice(0) : []), 1e3 < u.length)) {
r(
Error(
'Server Function has too many bound arguments. Received ' +
- p.length +
+ u.length +
' but the limit is 1000.'
)
);
return;
}
- p.unshift(null), (L = L.bind.apply(L, p));
+ u.unshift(null), (L = L.bind.apply(L, u));
}
- p = d.value;
+ u = d.value;
var h = d;
(h.status = 'fulfilled'),
(h.value = L),
(h.reason = null),
- p !== null && Mr(e, p, L, h),
+ u !== null && Mr(e, u, L, h),
aa(e, g, s, i, L);
}, r),
null
@@ -2676,14 +2684,14 @@ If you need interactivity, consider converting part of this to a Client Componen
(r !== void 0 &&
e._temporaryReferences !== void 0 &&
e._temporaryReferences.set(i, r),
- kn(i))
+ vn(i))
) {
if (a === null) {
- var u = {count: 0, fork: !1};
- e._rootArrayContexts.set(i, u);
- } else u = a;
+ var p = {count: 0, fork: !1};
+ e._rootArrayContexts.set(i, p);
+ } else p = a;
for (
- 1 < i.length && (u.fork = !0), $n(u, i.length + 1, e), t = 0;
+ 1 < i.length && (p.fork = !0), qn(p, i.length + 1, e), t = 0;
t < i.length;
t++
)
@@ -2693,22 +2701,22 @@ If you need interactivity, consider converting part of this to a Client Componen
'' + t,
i[t],
r !== void 0 ? r + ':' + t : void 0,
- u
+ p
);
} else
- for (u in i)
- Nr.call(i, u) &&
- (u === '__proto__'
- ? delete i[u]
+ for (p in i)
+ Nr.call(i, p) &&
+ (p === '__proto__'
+ ? delete i[p]
: ((t =
- r !== void 0 && u.indexOf(':') === -1
- ? r + ':' + u
+ r !== void 0 && p.indexOf(':') === -1
+ ? r + ':' + p
: void 0),
- (t = oa(e, i, u, i[u], t, null)),
- t !== void 0 ? (i[u] = t) : delete i[u]));
+ (t = oa(e, i, p, i[p], t, null)),
+ t !== void 0 ? (i[p] = t) : delete i[p]));
return i;
}
- function $n(e, t, s) {
+ function qn(e, t, s) {
if ((e.count += t) > s._arraySizeLimit && e.fork)
throw Error(
'Maximum array nesting exceeded. Large nested arrays can be dangerous. Try adding intermediate objects.'
@@ -2726,21 +2734,21 @@ If you need interactivity, consider converting part of this to a Client Componen
try {
var a = JSON.parse(r);
r = {count: 0, fork: !1};
- var u = oa(i, {'': a}, '', a, s, r),
+ var p = oa(i, {'': a}, '', a, s, r),
d = e.value;
if (d !== null)
for (e.value = null, e.reason = null, a = 0; a < d.length; a++) {
- var y = d[a];
- typeof y == 'function' ? y(u) : zu(i, y, u, r);
+ var k = d[a];
+ typeof k == 'function' ? k(p) : zu(i, k, p, r);
}
if (Ye !== null) {
if (Ye.errored) throw Ye.reason;
if (0 < Ye.deps) {
- (Ye.value = u), (Ye.reason = r), (Ye.chunk = e);
+ (Ye.value = p), (Ye.reason = r), (Ye.chunk = e);
return;
}
}
- (e.status = 'fulfilled'), (e.value = u), (e.reason = r);
+ (e.status = 'fulfilled'), (e.value = p), (e.reason = r);
} catch (g) {
(e.status = 'rejected'), (e.reason = g);
} finally {
@@ -2763,7 +2771,7 @@ If you need interactivity, consider converting part of this to a Client Componen
i = s.get(t);
return (
i ||
- ((i = e._formData.get(e._prefix + t)),
+ ((i = e._formData.data.get(e._prefix + t)),
(i =
typeof i == 'string'
? Wu(e, i, t)
@@ -2777,12 +2785,12 @@ If you need interactivity, consider converting part of this to a Client Componen
function zu(e, t, s, i) {
var r = t.handler,
a = t.parentObject,
- u = t.key,
+ p = t.key,
d = t.map,
- y = t.path;
+ k = t.path;
try {
- for (var g = 0, L = e._rootArrayContexts, p = 1; p < y.length; p++) {
- var h = y[p];
+ for (var g = 0, L = e._rootArrayContexts, u = 1; u < k.length; u++) {
+ var h = k[u];
if (
typeof s != 'object' ||
s === null ||
@@ -2790,24 +2798,24 @@ If you need interactivity, consider converting part of this to a Client Componen
!Nr.call(s, h)
)
throw Error('Invalid reference.');
- if (((s = s[h]), kn(s))) (g = 0), (i = L.get(s) || i);
+ if (((s = s[h]), vn(s))) (g = 0), (i = L.get(s) || i);
else if (((i = null), typeof s == 'string')) g = s.length;
else if (typeof s == 'bigint') {
- var T = Math.abs(Number(s));
- g = T === 0 ? 1 : Math.floor(Math.log10(T)) + 1;
+ var y = Math.abs(Number(s));
+ g = y === 0 ? 1 : Math.floor(Math.log10(y)) + 1;
} else g = ArrayBuffer.isView(s) ? s.byteLength : 0;
}
- var x = d(e, s, a, u),
+ var x = d(e, s, a, p),
w = t.arrayRoot;
w !== null &&
(i !== null
- ? (i.fork && (w.fork = !0), $n(w, i.count, e))
- : 0 < g && $n(w, g, e));
+ ? (i.fork && (w.fork = !0), qn(w, i.count, e))
+ : 0 < g && qn(w, g, e));
} catch (S) {
Pr(e, r, S);
return;
}
- aa(e, r, a, u, x);
+ aa(e, r, a, p, x);
}
function aa(e, t, s, i, r) {
i !== '__proto__' && (s[i] = r),
@@ -2833,41 +2841,44 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function Di(e, t, s, i, r, a) {
t = t.split(':');
- var u = parseInt(t[0], 16),
- d = Vr(e, u);
+ var p = parseInt(t[0], 16),
+ d = Vr(e, p);
switch (d.status) {
case 'resolved_model':
Br(d);
}
switch (d.status) {
case 'fulfilled':
- (u = d.value), (d = d.reason);
- for (var y = 0, g = e._rootArrayContexts, L = 1; L < t.length; L++) {
+ if (((p = d.value), (d = d.reason), d !== null && 'error' in d))
+ throw Error(
+ 'Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React.'
+ );
+ for (var k = 0, g = e._rootArrayContexts, L = 1; L < t.length; L++) {
if (
- ((y = t[L]),
- typeof u != 'object' ||
- u === null ||
- (ii(u) !== Uu && ii(u) !== Hu) ||
- !Nr.call(u, y))
+ ((k = t[L]),
+ typeof p != 'object' ||
+ p === null ||
+ (ii(p) !== Uu && ii(p) !== Hu) ||
+ !Nr.call(p, k))
)
throw Error('Invalid reference.');
- (u = u[y]),
- kn(u)
- ? ((y = 0), (d = g.get(u) || d))
+ (p = p[k]),
+ vn(p)
+ ? ((k = 0), (d = g.get(p) || d))
: ((d = null),
- typeof u == 'string'
- ? (y = u.length)
- : typeof u == 'bigint'
- ? ((y = Math.abs(Number(u))),
- (y = y === 0 ? 1 : Math.floor(Math.log10(y)) + 1))
- : (y = ArrayBuffer.isView(u) ? u.byteLength : 0));
+ typeof p == 'string'
+ ? (k = p.length)
+ : typeof p == 'bigint'
+ ? ((k = Math.abs(Number(p))),
+ (k = k === 0 ? 1 : Math.floor(Math.log10(k)) + 1))
+ : (k = ArrayBuffer.isView(p) ? p.byteLength : 0));
}
return (
- (s = a(e, u, s, i)),
+ (s = a(e, p, s, i)),
r !== null &&
(d !== null
- ? (d.fork && (r.fork = !0), $n(r, d.count, e))
- : 0 < y && $n(r, y, e)),
+ ? (d.fork && (r.fork = !0), qn(r, d.count, e))
+ : 0 < k && qn(r, k, e)),
s
);
case 'blocked':
@@ -2912,33 +2923,33 @@ If you need interactivity, consider converting part of this to a Client Componen
}
}
function Ld(e, t) {
- if (!kn(t)) throw Error('Invalid Map initializer.');
+ if (!vn(t)) throw Error('Invalid Map initializer.');
if (t.$$consumed === !0) throw Error('Already initialized Map.');
- return (e = new Map(t)), (t.$$consumed = !0), e;
+ return (t.$$consumed = !0), new Map(t);
}
function Od(e, t) {
- if (!kn(t)) throw Error('Invalid Set initializer.');
+ if (!vn(t)) throw Error('Invalid Set initializer.');
if (t.$$consumed === !0) throw Error('Already initialized Set.');
- return (e = new Set(t)), (t.$$consumed = !0), e;
+ return (t.$$consumed = !0), new Set(t);
}
function Dd(e, t) {
- if (!kn(t)) throw Error('Invalid Iterator initializer.');
+ if (!vn(t)) throw Error('Invalid Iterator initializer.');
if (t.$$consumed === !0) throw Error('Already initialized Iterator.');
- return (e = t[Symbol.iterator]()), (t.$$consumed = !0), e;
+ return (t.$$consumed = !0), t[Symbol.iterator]();
}
function Md(e, t, s, i) {
return i === 'then' && typeof t == 'function' ? null : t;
}
- function Jt(e, t, s, i, r, a, u) {
+ function Jt(e, t, s, i, r, a, p) {
function d(L) {
if (!g.errored) {
(g.errored = !0), (g.value = null), (g.reason = L);
- var p = g.chunk;
- p !== null && p.status === 'blocked' && Fr(e, p, L);
+ var u = g.chunk;
+ u !== null && u.status === 'blocked' && Fr(e, u, L);
}
}
t = parseInt(t.slice(2), 16);
- var y = e._prefix + t;
+ var k = e._prefix + t;
if (((i = e._chunks), i.has(t)))
throw Error('Already initialized typed array.');
if (
@@ -2946,7 +2957,7 @@ If you need interactivity, consider converting part of this to a Client Componen
t,
new Ot('rejected', null, Error('Already initialized typed array.'))
),
- (t = e._formData.get(y).arrayBuffer()),
+ (t = e._formData.data.get(k).arrayBuffer()),
Ye)
) {
var g = Ye;
@@ -2956,10 +2967,10 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
t.then(function (L) {
try {
- u !== null && $n(u, L.byteLength, e);
- var p = s === ArrayBuffer ? L : new s(L);
- y !== '__proto__' && (r[a] = p),
- a === '' && g.value === null && (g.value = p);
+ p !== null && qn(p, L.byteLength, e);
+ var u = s === ArrayBuffer ? L : new s(L);
+ k !== '__proto__' && (r[a] = u),
+ a === '' && g.value === null && (g.value = u);
} catch (h) {
d(h);
return;
@@ -2969,11 +2980,11 @@ If you need interactivity, consider converting part of this to a Client Componen
((L = g.chunk),
L !== null &&
L.status === 'blocked' &&
- ((p = L.value),
+ ((u = L.value),
(L.status = 'fulfilled'),
(L.value = g.value),
(L.reason = null),
- p !== null && Mr(e, p, g.value, L)));
+ u !== null && Mr(e, u, g.value, L)));
}, d),
null
);
@@ -2983,7 +2994,7 @@ If you need interactivity, consider converting part of this to a Client Componen
for (
s = new Ot('fulfilled', s, i),
r.set(t, s),
- e = e._formData.getAll(e._prefix + t),
+ e = e._formData.data.getAll(e._prefix + t),
t = 0;
t < e.length;
t++
@@ -2998,34 +3009,34 @@ If you need interactivity, consider converting part of this to a Client Componen
function i(g) {
s !== 'bytes' || ArrayBuffer.isView(g)
? r.enqueue(g)
- : y.error(Error('Invalid data for bytes stream.'));
+ : k.error(Error('Invalid data for bytes stream.'));
}
if (((t = parseInt(t.slice(2), 16)), e._chunks.has(t)))
throw Error('Already initialized stream.');
var r = null,
a = !1,
- u = new ReadableStream({
+ p = new ReadableStream({
type: s,
start: function (g) {
r = g;
},
}),
d = null,
- y = {
+ k = {
enqueueModel: function (g) {
if (d === null) {
var L = Wu(e, g, -1);
Br(L),
L.status === 'fulfilled'
? i(L.value)
- : (L.then(i, y.error), (d = L));
+ : (L.then(i, k.error), (d = L));
} else {
L = d;
- var p = new Ot('pending', null, null);
- p.then(i, y.error),
- (d = p),
+ var u = new Ot('pending', null, null);
+ u.then(i, k.error),
+ (d = u),
L.then(function () {
- d === p && (d = null), Gu(e, p, g, -1);
+ d === u && (d = null), Gu(e, u, g, -1);
});
}
},
@@ -3052,13 +3063,13 @@ If you need interactivity, consider converting part of this to a Client Componen
}
},
};
- return Xu(e, t, u, y), u;
+ return Xu(e, t, p, k), p;
}
function ma(e) {
this.next = e;
}
ma.prototype = {};
- ma.prototype[Ss] = function () {
+ ma.prototype[Is] = function () {
return this;
};
function mu(e, t, s) {
@@ -3067,13 +3078,13 @@ If you need interactivity, consider converting part of this to a Client Componen
var i = [],
r = !1,
a = 0,
- u = {};
+ p = {};
return (
- (u =
- ((u[Ss] = function () {
+ (p =
+ ((p[Is] = function () {
var d = 0;
- return new ma(function (y) {
- if (y !== void 0)
+ return new ma(function (k) {
+ if (k !== void 0)
throw Error(
'Values cannot be passed to next() of AsyncIterables passed to Client Components.'
);
@@ -3085,8 +3096,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return i[d++];
});
}),
- u)),
- (s = s ? u[Ss]() : u),
+ p)),
+ (s = s ? p[Is]() : p),
Xu(e, t, s, {
enqueueModel: function (d) {
a === i.length ? (i[a] = fu(e, d, !1)) : ea(e, i[a], d, !1), a++;
@@ -3120,7 +3131,7 @@ If you need interactivity, consider converting part of this to a Client Componen
if (i[0] === '$') {
switch (i[1]) {
case '$':
- return a !== null && $n(a, i.length - 1, e), i.slice(1);
+ return a !== null && qn(a, i.length - 1, e), i.slice(1);
case '@':
return (t = parseInt(i.slice(2), 16)), Vr(e, t);
case 'h':
@@ -3137,25 +3148,29 @@ If you need interactivity, consider converting part of this to a Client Componen
return (a = i.slice(2)), Di(e, a, t, s, null, Od);
case 'K':
for (
- t = i.slice(2),
- t = e._prefix + t + '_',
- s = new FormData(),
- e = e._formData,
- a = Array.from(e.keys()),
- i = 0;
- i < a.length;
- i++
+ s = i.slice(2),
+ t = e._prefix + '_',
+ s = t + s + '_',
+ a = new FormData(),
+ e = e._formData;
+ (i = e.keys),
+ i === null &&
+ ((i = e.keys = Array.from(e.data.keys())),
+ (e.keyPointer = 0)),
+ (i = i[e.keyPointer]),
+ i !== void 0;
+
)
- if (((r = a[i]), r.startsWith(t))) {
- for (
- var u = e.getAll(r), d = r.slice(t.length), y = 0;
- y < u.length;
- y++
- )
- s.append(d, u[y]);
- e.delete(r);
+ if (i.startsWith(s)) {
+ r = e.data.getAll(i);
+ for (var p = i.slice(s.length), d = 0; d < r.length; d++)
+ a.append(p, r[d]);
+ e.data.delete(i), e.keyPointer++;
+ } else {
+ if (i.startsWith(t)) break;
+ e.keyPointer++;
}
- return s;
+ return a;
case 'i':
return (a = i.slice(2)), Di(e, a, t, s, null, Dd);
case 'I':
@@ -3175,7 +3190,7 @@ If you need interactivity, consider converting part of this to a Client Componen
t.length +
' digits but the limit is 300.'
);
- return a !== null && $n(a, t.length, e), BigInt(t);
+ return a !== null && qn(a, t.length, e), BigInt(t);
case 'A':
return Jt(e, i, ArrayBuffer, 1, t, s, a);
case 'O':
@@ -3204,7 +3219,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return Jt(e, i, DataView, 1, t, s, a);
case 'B':
return (
- (t = parseInt(i.slice(2), 16)), e._formData.get(e._prefix + t)
+ (t = parseInt(i.slice(2), 16)),
+ e._formData.data.get(e._prefix + t)
);
case 'R':
return du(e, i, void 0);
@@ -3217,7 +3233,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
return (i = i.slice(1)), Di(e, i, t, s, a, Md);
}
- return a !== null && $n(a, i.length, e), i;
+ return a !== null && qn(a, i.length, e), i;
}
function Yu(e, t, s) {
var i =
@@ -3230,7 +3246,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return {
_bundlerConfig: e,
_prefix: t,
- _formData: i,
+ _formData: {data: i, keyPointer: -1, keys: null},
_chunks: a,
_closed: !1,
_closedReason: null,
@@ -3279,55 +3295,55 @@ If you need interactivity, consider converting part of this to a Client Componen
throw e.reason;
return e.value;
}
- En.createClientModuleProxy = function (e) {
+ An.createClientModuleProxy = function (e) {
return (e = ti({}, e, !1)), new Proxy(e, _u);
};
- En.createTemporaryReferenceSet = function () {
+ An.createTemporaryReferenceSet = function () {
return new WeakMap();
};
- En.decodeAction = function (e, t) {
+ An.decodeAction = function (e, t) {
var s = new FormData(),
- i = null,
- r = new Set();
- return (
- e.forEach(function (a, u) {
- u.startsWith('$ACTION_')
- ? u.startsWith('$ACTION_REF_')
- ? r.has(u) ||
- (r.add(u),
- (a = '$ACTION_' + u.slice(12) + ':'),
- (a = Qu(e, t, a)),
- (i = yu(t, a)))
- : u.startsWith('$ACTION_ID_') &&
- !r.has(u) &&
- (r.add(u), (a = u.slice(11)), (i = yu(t, {id: a, bound: null})))
- : s.append(u, a);
- }),
- i === null
- ? null
- : i.then(function (a) {
- return a.bind(null, s);
- })
- );
+ i = null;
+ if (
+ (e.forEach(function (p, d) {
+ d.startsWith('$ACTION_')
+ ? (d.startsWith('$ACTION_REF_') || d.startsWith('$ACTION_ID_')) &&
+ (i = d)
+ : s.append(d, p);
+ }),
+ i === null)
+ )
+ return null;
+ var r = i,
+ a = null;
+ if (r.startsWith('$ACTION_REF_'))
+ (r = '$ACTION_' + r.slice(12) + ':'), (e = Qu(e, t, r)), (a = yu(t, e));
+ else if (r.startsWith('$ACTION_ID_'))
+ (e = r.slice(11)), (a = yu(t, {id: e, bound: null}));
+ else throw Error('Cannot handle action key. This is a bug in React.');
+ return a.then(function (p) {
+ return p.bind(null, s);
+ });
};
- En.decodeFormState = function (e, t, s) {
+ An.decodeFormState = function (e, t, s) {
var i = t.get('$ACTION_KEY');
if (typeof i != 'string') return Promise.resolve(null);
var r = null;
if (
- (t.forEach(function (u, d) {
- d.startsWith('$ACTION_REF_') &&
- ((u = '$ACTION_' + d.slice(12) + ':'), (r = Qu(t, s, u)));
+ (t.forEach(function (d, k) {
+ k.startsWith('$ACTION_REF_') && (r = k);
}),
r === null)
)
return Promise.resolve(null);
- var a = r.id;
- return Promise.resolve(r.bound).then(function (u) {
- return u === null ? null : [e, i, a, u.length - 1];
+ var a = '$ACTION_' + r.slice(12) + ':';
+ t = Qu(t, s, a);
+ var p = t.id;
+ return Promise.resolve(t.bound).then(function (d) {
+ return d === null ? null : [e, i, p, d.length - 1];
});
};
- En.decodeReply = function (e, t, s) {
+ An.decodeReply = function (e, t, s) {
if (typeof e == 'string') {
var i = new FormData();
i.append('0', e), (e = i);
@@ -3345,7 +3361,7 @@ If you need interactivity, consider converting part of this to a Client Componen
t
);
};
- En.prerender = function (e, t, s) {
+ An.prerender = function (e, t, s) {
return new Promise(function (i, r) {
var a = new Ru(
21,
@@ -3354,7 +3370,7 @@ If you need interactivity, consider converting part of this to a Client Componen
s ? s.onError : void 0,
s ? s.onPostpone : void 0,
function () {
- var y = new ReadableStream(
+ var k = new ReadableStream(
{
type: 'bytes',
pull: function (g) {
@@ -3366,29 +3382,29 @@ If you need interactivity, consider converting part of this to a Client Componen
},
{highWaterMark: 0}
);
- i({prelude: y});
+ i({prelude: k});
},
r,
s ? s.identifierPrefix : void 0,
s ? s.temporaryReferences : void 0
);
if (s && s.signal) {
- var u = s.signal;
- if (u.aborted) si(a, u.reason);
+ var p = s.signal;
+ if (p.aborted) si(a, p.reason);
else {
var d = function () {
- si(a, u.reason), u.removeEventListener('abort', d);
+ si(a, p.reason), p.removeEventListener('abort', d);
};
- u.addEventListener('abort', d);
+ p.addEventListener('abort', d);
}
}
Vu(a);
});
};
- En.registerClientReference = function (e, t, s) {
+ An.registerClientReference = function (e, t, s) {
return ti(e, t + '#' + s, !1);
};
- En.registerServerReference = function (e, t, s) {
+ An.registerServerReference = function (e, t, s) {
return Object.defineProperties(e, {
$$typeof: {value: Ar},
$$id: {value: s === null ? t : t + '#' + s, configurable: !0},
@@ -3397,15 +3413,15 @@ If you need interactivity, consider converting part of this to a Client Componen
toString: ed,
});
};
- En.renderToReadableStream = function (e, t, s) {
+ An.renderToReadableStream = function (e, t, s) {
var i = new Ru(
20,
e,
t,
s ? s.onError : void 0,
s ? s.onPostpone : void 0,
- Cs,
- Cs,
+ kn,
+ kn,
s ? s.identifierPrefix : void 0,
s ? s.temporaryReferences : void 0
);
@@ -3425,29 +3441,29 @@ If you need interactivity, consider converting part of this to a Client Componen
start: function () {
Vu(i);
},
- pull: function (u) {
- ju(i, u);
+ pull: function (p) {
+ ju(i, p);
},
- cancel: function (u) {
- (i.destination = null), si(i, u);
+ cancel: function (p) {
+ (i.destination = null), si(i, p);
},
},
{highWaterMark: 0}
);
};
});
- var e1 = Z((Wn) => {
+ var e1 = Z((Gn) => {
'use strict';
- var Hn;
- Hn = Zu();
- Wn.renderToReadableStream = Hn.renderToReadableStream;
- Wn.decodeReply = Hn.decodeReply;
- Wn.decodeAction = Hn.decodeAction;
- Wn.decodeFormState = Hn.decodeFormState;
- Wn.registerServerReference = Hn.registerServerReference;
- Wn.registerClientReference = Hn.registerClientReference;
- Wn.createClientModuleProxy = Hn.createClientModuleProxy;
- Wn.createTemporaryReferenceSet = Hn.createTemporaryReferenceSet;
+ var Wn;
+ Wn = Zu();
+ Gn.renderToReadableStream = Wn.renderToReadableStream;
+ Gn.decodeReply = Wn.decodeReply;
+ Gn.decodeAction = Wn.decodeAction;
+ Gn.decodeFormState = Wn.decodeFormState;
+ Gn.registerServerReference = Wn.registerServerReference;
+ Gn.registerClientReference = Wn.registerClientReference;
+ Gn.createClientModuleProxy = Wn.createClientModuleProxy;
+ Gn.createTemporaryReferenceSet = Wn.createTemporaryReferenceSet;
});
var It = Z((ya) => {
'use strict';
@@ -3463,23 +3479,23 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e._as = r)] = '_as';
let a = r + 1;
e[(e._assert = a)] = '_assert';
- let u = a + 1;
- e[(e._asserts = u)] = '_asserts';
- let d = u + 1;
+ let p = a + 1;
+ e[(e._asserts = p)] = '_asserts';
+ let d = p + 1;
e[(e._async = d)] = '_async';
- let y = d + 1;
- e[(e._await = y)] = '_await';
- let g = y + 1;
+ let k = d + 1;
+ e[(e._await = k)] = '_await';
+ let g = k + 1;
e[(e._checks = g)] = '_checks';
let L = g + 1;
e[(e._constructor = L)] = '_constructor';
- let p = L + 1;
- e[(e._declare = p)] = '_declare';
- let h = p + 1;
+ let u = L + 1;
+ e[(e._declare = u)] = '_declare';
+ let h = u + 1;
e[(e._enum = h)] = '_enum';
- let T = h + 1;
- e[(e._exports = T)] = '_exports';
- let x = T + 1;
+ let y = h + 1;
+ e[(e._exports = y)] = '_exports';
+ let x = y + 1;
e[(e._from = x)] = '_from';
let w = x + 1;
e[(e._get = w)] = '_get';
@@ -3523,9 +3539,9 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e._require = nt)] = '_require';
let _t = nt + 1;
e[(e._satisfies = _t)] = '_satisfies';
- let ct = _t + 1;
- e[(e._set = ct)] = '_set';
- let wt = ct + 1;
+ let ut = _t + 1;
+ e[(e._set = ut)] = '_set';
+ let wt = ut + 1;
e[(e._static = wt)] = '_static';
let $t = wt + 1;
e[(e._symbol = $t)] = '_symbol';
@@ -3551,22 +3567,22 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.IS_RIGHT_ASSOCIATIVE = r)] = 'IS_RIGHT_ASSOCIATIVE';
let a = 128;
e[(e.IS_PREFIX = a)] = 'IS_PREFIX';
- let u = 256;
- e[(e.IS_POSTFIX = u)] = 'IS_POSTFIX';
+ let p = 256;
+ e[(e.IS_POSTFIX = p)] = 'IS_POSTFIX';
let d = 512;
e[(e.IS_EXPRESSION_START = d)] = 'IS_EXPRESSION_START';
- let y = 512;
- e[(e.num = y)] = 'num';
+ let k = 512;
+ e[(e.num = k)] = 'num';
let g = 1536;
e[(e.bigint = g)] = 'bigint';
let L = 2560;
e[(e.decimal = L)] = 'decimal';
- let p = 3584;
- e[(e.regexp = p)] = 'regexp';
+ let u = 3584;
+ e[(e.regexp = u)] = 'regexp';
let h = 4608;
e[(e.string = h)] = 'string';
- let T = 5632;
- e[(e.name = T)] = 'name';
+ let y = 5632;
+ e[(e.name = y)] = 'name';
let x = 6144;
e[(e.eof = x)] = 'eof';
let w = 7680;
@@ -3611,8 +3627,8 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.dollarBraceL = nt)] = 'dollarBraceL';
let _t = 27648;
e[(e.at = _t)] = 'at';
- let ct = 29184;
- e[(e.hash = ct)] = 'hash';
+ let ut = 29184;
+ e[(e.hash = ut)] = 'hash';
let wt = 29728;
e[(e.eq = wt)] = 'eq';
let $t = 30752;
@@ -3647,20 +3663,20 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.greaterThan = We)] = 'greaterThan';
let Ke = 46088;
e[(e.relationalOrEqual = Ke)] = 'relationalOrEqual';
- let ut = 47113;
- e[(e.bitShiftL = ut)] = 'bitShiftL';
- let pt = 48137;
- e[(e.bitShiftR = pt)] = 'bitShiftR';
+ let pt = 47113;
+ e[(e.bitShiftL = pt)] = 'bitShiftL';
+ let ht = 48137;
+ e[(e.bitShiftR = ht)] = 'bitShiftR';
let bt = 49802;
e[(e.plus = bt)] = 'plus';
let yt = 50826;
e[(e.minus = yt)] = 'minus';
let vt = 51723;
e[(e.modulo = vt)] = 'modulo';
- let bn = 52235;
- e[(e.star = bn)] = 'star';
- let Dn = 53259;
- e[(e.slash = Dn)] = 'slash';
+ let Cn = 52235;
+ e[(e.star = Cn)] = 'star';
+ let Mn = 53259;
+ e[(e.slash = Mn)] = 'slash';
let Ge = 54348;
e[(e.exponent = Ge)] = 'exponent';
let St = 55296;
@@ -3673,62 +3689,62 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.jsxTagStart = Xt)] = 'jsxTagStart';
let te = 59392;
e[(e.jsxTagEnd = te)] = 'jsxTagEnd';
- let Cn = 60928;
- e[(e.typeParameterStart = Cn)] = 'typeParameterStart';
- let Zn = 61440;
- e[(e.nonNullAssertion = Zn)] = 'nonNullAssertion';
+ let wn = 60928;
+ e[(e.typeParameterStart = wn)] = 'typeParameterStart';
+ let es = 61440;
+ e[(e.nonNullAssertion = es)] = 'nonNullAssertion';
let _i = 62480;
e[(e._break = _i)] = '_break';
- let Mn = 63504;
- e[(e._case = Mn)] = '_case';
- let xs = 64528;
- e[(e._catch = xs)] = '_catch';
- let Ds = 65552;
- e[(e._continue = Ds)] = '_continue';
+ let Fn = 63504;
+ e[(e._case = Fn)] = '_case';
+ let gs = 64528;
+ e[(e._catch = gs)] = '_catch';
+ let Ms = 65552;
+ e[(e._continue = Ms)] = '_continue';
let bi = 66576;
e[(e._debugger = bi)] = '_debugger';
- let es = 67600;
- e[(e._default = es)] = '_default';
+ let ts = 67600;
+ e[(e._default = ts)] = '_default';
let Nt = 68624;
e[(e._do = Nt)] = '_do';
let Rt = 69648;
e[(e._else = Rt)] = '_else';
let Ue = 70672;
e[(e._finally = Ue)] = '_finally';
- let wn = 71696;
- e[(e._for = wn)] = '_for';
+ let Sn = 71696;
+ e[(e._for = Sn)] = '_for';
let de = 73232;
e[(e._function = de)] = '_function';
- let Ms = 73744;
- e[(e._if = Ms)] = '_if';
- let gs = 74768;
- e[(e._return = gs)] = '_return';
+ let Fs = 73744;
+ e[(e._if = Fs)] = '_if';
+ let _s = 74768;
+ e[(e._return = _s)] = '_return';
let Ci = 75792;
e[(e._switch = Ci)] = '_switch';
- let ts = 77456;
- e[(e._throw = ts)] = '_throw';
+ let ns = 77456;
+ e[(e._throw = ns)] = '_throw';
let rn = 77840;
e[(e._try = rn)] = '_try';
let wi = 78864;
e[(e._var = wi)] = '_var';
- let Fn = 79888;
- e[(e._let = Fn)] = '_let';
- let Bn = 80912;
- e[(e._const = Bn)] = '_const';
- let Fs = 81936;
- e[(e._while = Fs)] = '_while';
+ let Bn = 79888;
+ e[(e._let = Bn)] = '_let';
+ let Vn = 80912;
+ e[(e._const = Vn)] = '_const';
+ let Bs = 81936;
+ e[(e._while = Bs)] = '_while';
let Si = 82960;
e[(e._with = Si)] = '_with';
- let Bs = 84496;
- e[(e._new = Bs)] = '_new';
- let Vs = 85520;
- e[(e._this = Vs)] = '_this';
- let js = 86544;
- e[(e._super = js)] = '_super';
- let $s = 87568;
- e[(e._class = $s)] = '_class';
- let qs = 88080;
- e[(e._extends = qs)] = '_extends';
+ let Vs = 84496;
+ e[(e._new = Vs)] = '_new';
+ let js = 85520;
+ e[(e._this = js)] = '_this';
+ let $s = 86544;
+ e[(e._super = $s)] = '_super';
+ let qs = 87568;
+ e[(e._class = qs)] = '_class';
+ let Ks = 88080;
+ e[(e._extends = Ks)] = '_extends';
let Ii = 89104;
e[(e._export = Ii)] = '_export';
let Ei = 90640;
@@ -3737,18 +3753,18 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e._yield = Ai)] = '_yield';
let Pi = 92688;
e[(e._null = Pi)] = '_null';
- let Ks = 93712;
- e[(e._true = Ks)] = '_true';
- let Us = 94736;
- e[(e._false = Us)] = '_false';
- let Hs = 95256;
- e[(e._in = Hs)] = '_in';
- let Ws = 96280;
- e[(e._instanceof = Ws)] = '_instanceof';
- let Gs = 97936;
- e[(e._typeof = Gs)] = '_typeof';
- let zs = 98960;
- e[(e._void = zs)] = '_void';
+ let Us = 93712;
+ e[(e._true = Us)] = '_true';
+ let Hs = 94736;
+ e[(e._false = Hs)] = '_false';
+ let Ws = 95256;
+ e[(e._in = Ws)] = '_in';
+ let Gs = 96280;
+ e[(e._instanceof = Gs)] = '_instanceof';
+ let zs = 97936;
+ e[(e._typeof = zs)] = '_typeof';
+ let Xs = 98960;
+ e[(e._void = Xs)] = '_void';
let jo = 99984;
e[(e._delete = jo)] = '_delete';
let $o = 100880;
@@ -3765,8 +3781,8 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e._abstract = Ko)] = '_abstract';
let le = 107024;
e[(e._static = le)] = '_static';
- let Xs = 107536;
- e[(e._public = Xs)] = '_public';
+ let Ys = 107536;
+ e[(e._public = Ys)] = '_public';
let on = 108560;
e[(e._private = on)] = '_private';
let Uo = 109584;
@@ -4030,20 +4046,20 @@ If you need interactivity, consider converting part of this to a Client Componen
};
Ui.Scope = Ta;
var $r = class {
- constructor(t, s, i, r, a, u, d, y, g, L, p, h, T) {
+ constructor(t, s, i, r, a, p, d, k, g, L, u, h, y) {
(this.potentialArrowAt = t),
(this.noAnonFunctionType = s),
(this.inDisallowConditionalTypesContext = i),
(this.tokensLength = r),
(this.scopesLength = a),
- (this.pos = u),
+ (this.pos = p),
(this.type = d),
- (this.contextualKeyword = y),
+ (this.contextualKeyword = k),
(this.start = g),
(this.end = L),
- (this.isType = p),
+ (this.isType = u),
(this.scopeDepth = h),
- (this.error = T);
+ (this.error = y);
}
};
Ui.StateSnapshot = $r;
@@ -4141,7 +4157,7 @@ If you need interactivity, consider converting part of this to a Client Componen
var Qt = Z((Kr) => {
'use strict';
Object.defineProperty(Kr, '__esModule', {value: !0});
- var as;
+ var ls;
(function (e) {
e[(e.backSpace = 8)] = 'backSpace';
let s = 10;
@@ -4152,22 +4168,22 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.carriageReturn = r)] = 'carriageReturn';
let a = 14;
e[(e.shiftOut = a)] = 'shiftOut';
- let u = 32;
- e[(e.space = u)] = 'space';
+ let p = 32;
+ e[(e.space = p)] = 'space';
let d = 33;
e[(e.exclamationMark = d)] = 'exclamationMark';
- let y = 34;
- e[(e.quotationMark = y)] = 'quotationMark';
+ let k = 34;
+ e[(e.quotationMark = k)] = 'quotationMark';
let g = 35;
e[(e.numberSign = g)] = 'numberSign';
let L = 36;
e[(e.dollarSign = L)] = 'dollarSign';
- let p = 37;
- e[(e.percentSign = p)] = 'percentSign';
+ let u = 37;
+ e[(e.percentSign = u)] = 'percentSign';
let h = 38;
e[(e.ampersand = h)] = 'ampersand';
- let T = 39;
- e[(e.apostrophe = T)] = 'apostrophe';
+ let y = 39;
+ e[(e.apostrophe = y)] = 'apostrophe';
let x = 40;
e[(e.leftParenthesis = x)] = 'leftParenthesis';
let w = 41;
@@ -4212,8 +4228,8 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.lessThan = nt)] = 'lessThan';
let _t = 61;
e[(e.equalsTo = _t)] = 'equalsTo';
- let ct = 62;
- e[(e.greaterThan = ct)] = 'greaterThan';
+ let ut = 62;
+ e[(e.greaterThan = ut)] = 'greaterThan';
let wt = 63;
e[(e.questionMark = wt)] = 'questionMark';
let $t = 64;
@@ -4248,20 +4264,20 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.uppercaseN = We)] = 'uppercaseN';
let Ke = 79;
e[(e.uppercaseO = Ke)] = 'uppercaseO';
- let ut = 80;
- e[(e.uppercaseP = ut)] = 'uppercaseP';
- let pt = 81;
- e[(e.uppercaseQ = pt)] = 'uppercaseQ';
+ let pt = 80;
+ e[(e.uppercaseP = pt)] = 'uppercaseP';
+ let ht = 81;
+ e[(e.uppercaseQ = ht)] = 'uppercaseQ';
let bt = 82;
e[(e.uppercaseR = bt)] = 'uppercaseR';
let yt = 83;
e[(e.uppercaseS = yt)] = 'uppercaseS';
let vt = 84;
e[(e.uppercaseT = vt)] = 'uppercaseT';
- let bn = 85;
- e[(e.uppercaseU = bn)] = 'uppercaseU';
- let Dn = 86;
- e[(e.uppercaseV = Dn)] = 'uppercaseV';
+ let Cn = 85;
+ e[(e.uppercaseU = Cn)] = 'uppercaseU';
+ let Mn = 86;
+ e[(e.uppercaseV = Mn)] = 'uppercaseV';
let Ge = 87;
e[(e.uppercaseW = Ge)] = 'uppercaseW';
let St = 88;
@@ -4274,62 +4290,62 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.leftSquareBracket = Xt)] = 'leftSquareBracket';
let te = 92;
e[(e.backslash = te)] = 'backslash';
- let Cn = 93;
- e[(e.rightSquareBracket = Cn)] = 'rightSquareBracket';
- let Zn = 94;
- e[(e.caret = Zn)] = 'caret';
+ let wn = 93;
+ e[(e.rightSquareBracket = wn)] = 'rightSquareBracket';
+ let es = 94;
+ e[(e.caret = es)] = 'caret';
let _i = 95;
e[(e.underscore = _i)] = 'underscore';
- let Mn = 96;
- e[(e.graveAccent = Mn)] = 'graveAccent';
- let xs = 97;
- e[(e.lowercaseA = xs)] = 'lowercaseA';
- let Ds = 98;
- e[(e.lowercaseB = Ds)] = 'lowercaseB';
+ let Fn = 96;
+ e[(e.graveAccent = Fn)] = 'graveAccent';
+ let gs = 97;
+ e[(e.lowercaseA = gs)] = 'lowercaseA';
+ let Ms = 98;
+ e[(e.lowercaseB = Ms)] = 'lowercaseB';
let bi = 99;
e[(e.lowercaseC = bi)] = 'lowercaseC';
- let es = 100;
- e[(e.lowercaseD = es)] = 'lowercaseD';
+ let ts = 100;
+ e[(e.lowercaseD = ts)] = 'lowercaseD';
let Nt = 101;
e[(e.lowercaseE = Nt)] = 'lowercaseE';
let Rt = 102;
e[(e.lowercaseF = Rt)] = 'lowercaseF';
let Ue = 103;
e[(e.lowercaseG = Ue)] = 'lowercaseG';
- let wn = 104;
- e[(e.lowercaseH = wn)] = 'lowercaseH';
+ let Sn = 104;
+ e[(e.lowercaseH = Sn)] = 'lowercaseH';
let de = 105;
e[(e.lowercaseI = de)] = 'lowercaseI';
- let Ms = 106;
- e[(e.lowercaseJ = Ms)] = 'lowercaseJ';
- let gs = 107;
- e[(e.lowercaseK = gs)] = 'lowercaseK';
+ let Fs = 106;
+ e[(e.lowercaseJ = Fs)] = 'lowercaseJ';
+ let _s = 107;
+ e[(e.lowercaseK = _s)] = 'lowercaseK';
let Ci = 108;
e[(e.lowercaseL = Ci)] = 'lowercaseL';
- let ts = 109;
- e[(e.lowercaseM = ts)] = 'lowercaseM';
+ let ns = 109;
+ e[(e.lowercaseM = ns)] = 'lowercaseM';
let rn = 110;
e[(e.lowercaseN = rn)] = 'lowercaseN';
let wi = 111;
e[(e.lowercaseO = wi)] = 'lowercaseO';
- let Fn = 112;
- e[(e.lowercaseP = Fn)] = 'lowercaseP';
- let Bn = 113;
- e[(e.lowercaseQ = Bn)] = 'lowercaseQ';
- let Fs = 114;
- e[(e.lowercaseR = Fs)] = 'lowercaseR';
+ let Bn = 112;
+ e[(e.lowercaseP = Bn)] = 'lowercaseP';
+ let Vn = 113;
+ e[(e.lowercaseQ = Vn)] = 'lowercaseQ';
+ let Bs = 114;
+ e[(e.lowercaseR = Bs)] = 'lowercaseR';
let Si = 115;
e[(e.lowercaseS = Si)] = 'lowercaseS';
- let Bs = 116;
- e[(e.lowercaseT = Bs)] = 'lowercaseT';
- let Vs = 117;
- e[(e.lowercaseU = Vs)] = 'lowercaseU';
- let js = 118;
- e[(e.lowercaseV = js)] = 'lowercaseV';
- let $s = 119;
- e[(e.lowercaseW = $s)] = 'lowercaseW';
- let qs = 120;
- e[(e.lowercaseX = qs)] = 'lowercaseX';
+ let Vs = 116;
+ e[(e.lowercaseT = Vs)] = 'lowercaseT';
+ let js = 117;
+ e[(e.lowercaseU = js)] = 'lowercaseU';
+ let $s = 118;
+ e[(e.lowercaseV = $s)] = 'lowercaseV';
+ let qs = 119;
+ e[(e.lowercaseW = qs)] = 'lowercaseW';
+ let Ks = 120;
+ e[(e.lowercaseX = Ks)] = 'lowercaseX';
let Ii = 121;
e[(e.lowercaseY = Ii)] = 'lowercaseY';
let Ei = 122;
@@ -4338,24 +4354,24 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.leftCurlyBrace = Ai)] = 'leftCurlyBrace';
let Pi = 124;
e[(e.verticalBar = Pi)] = 'verticalBar';
- let Ks = 125;
- e[(e.rightCurlyBrace = Ks)] = 'rightCurlyBrace';
- let Us = 126;
- e[(e.tilde = Us)] = 'tilde';
- let Hs = 160;
- e[(e.nonBreakingSpace = Hs)] = 'nonBreakingSpace';
- let Ws = 5760;
- e[(e.oghamSpaceMark = Ws)] = 'oghamSpaceMark';
- let Gs = 8232;
- e[(e.lineSeparator = Gs)] = 'lineSeparator';
- let zs = 8233;
- e[(e.paragraphSeparator = zs)] = 'paragraphSeparator';
- })(as || (Kr.charCodes = as = {}));
+ let Us = 125;
+ e[(e.rightCurlyBrace = Us)] = 'rightCurlyBrace';
+ let Hs = 126;
+ e[(e.tilde = Hs)] = 'tilde';
+ let Ws = 160;
+ e[(e.nonBreakingSpace = Ws)] = 'nonBreakingSpace';
+ let Gs = 5760;
+ e[(e.oghamSpaceMark = Gs)] = 'oghamSpaceMark';
+ let zs = 8232;
+ e[(e.lineSeparator = zs)] = 'lineSeparator';
+ let Xs = 8233;
+ e[(e.paragraphSeparator = Xs)] = 'paragraphSeparator';
+ })(ls || (Kr.charCodes = ls = {}));
function $d(e) {
return (
- (e >= as.digit0 && e <= as.digit9) ||
- (e >= as.lowercaseA && e <= as.lowercaseF) ||
- (e >= as.uppercaseA && e <= as.uppercaseF)
+ (e >= ls.digit0 && e <= ls.digit9) ||
+ (e >= ls.lowercaseA && e <= ls.lowercaseF) ||
+ (e >= ls.uppercaseA && e <= ls.uppercaseF)
);
}
Kr.isDigit = $d;
@@ -4411,11 +4427,11 @@ If you need interactivity, consider converting part of this to a Client Componen
}
ft.initParser = zd;
});
- var cs = Z((tn) => {
+ var us = Z((tn) => {
'use strict';
Object.defineProperty(tn, '__esModule', {value: !0});
- var ls = xt(),
- As = be(),
+ var cs = xt(),
+ Ps = be(),
Hr = Qt(),
en = Zt();
function Xd(e) {
@@ -4423,14 +4439,14 @@ If you need interactivity, consider converting part of this to a Client Componen
}
tn.isContextual = Xd;
function Yd(e) {
- let t = ls.lookaheadTypeAndKeyword.call(void 0);
- return t.type === As.TokenType.name && t.contextualKeyword === e;
+ let t = cs.lookaheadTypeAndKeyword.call(void 0);
+ return t.type === Ps.TokenType.name && t.contextualKeyword === e;
}
tn.isLookaheadContextual = Yd;
function s1(e) {
return (
en.state.contextualKeyword === e &&
- ls.eat.call(void 0, As.TokenType.name)
+ cs.eat.call(void 0, Ps.TokenType.name)
);
}
tn.eatContextual = s1;
@@ -4440,8 +4456,8 @@ If you need interactivity, consider converting part of this to a Client Componen
tn.expectContextual = Jd;
function i1() {
return (
- ls.match.call(void 0, As.TokenType.eof) ||
- ls.match.call(void 0, As.TokenType.braceR) ||
+ cs.match.call(void 0, Ps.TokenType.eof) ||
+ cs.match.call(void 0, Ps.TokenType.braceR) ||
r1()
);
}
@@ -4463,7 +4479,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
tn.hasPrecedingLineBreak = r1;
function Qd() {
- let e = ls.nextTokenStart.call(void 0);
+ let e = cs.nextTokenStart.call(void 0);
for (let t = en.state.end; t < e; t++) {
let s = en.input.charCodeAt(t);
if (
@@ -4478,7 +4494,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
tn.hasFollowingLineBreak = Qd;
function o1() {
- return ls.eat.call(void 0, As.TokenType.semi) || i1();
+ return cs.eat.call(void 0, Ps.TokenType.semi) || i1();
}
tn.isLineTerminator = o1;
function Zd() {
@@ -4486,9 +4502,9 @@ If you need interactivity, consider converting part of this to a Client Componen
}
tn.semicolon = Zd;
function em(e) {
- ls.eat.call(void 0, e) ||
+ cs.eat.call(void 0, e) ||
Wr(
- `Unexpected token, expected "${As.formatTokenType.call(void 0, e)}"`
+ `Unexpected token, expected "${Ps.formatTokenType.call(void 0, e)}"`
);
}
tn.expect = em;
@@ -4498,13 +4514,13 @@ If you need interactivity, consider converting part of this to a Client Componen
(s.pos = t),
(en.state.error = s),
(en.state.pos = en.input.length),
- ls.finishToken.call(void 0, As.TokenType.eof);
+ cs.finishToken.call(void 0, Ps.TokenType.eof);
}
tn.unexpected = Wr;
});
- var xa = Z((Ps) => {
+ var xa = Z((Ns) => {
'use strict';
- Object.defineProperty(Ps, '__esModule', {value: !0});
+ Object.defineProperty(Ns, '__esModule', {value: !0});
var va = Qt(),
tm = [
9,
@@ -4529,16 +4545,16 @@ If you need interactivity, consider converting part of this to a Client Componen
12288,
65279,
];
- Ps.WHITESPACE_CHARS = tm;
+ Ns.WHITESPACE_CHARS = tm;
var nm = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
- Ps.skipWhiteSpace = nm;
+ Ns.skipWhiteSpace = nm;
var sm = new Uint8Array(65536);
- Ps.IS_WHITESPACE = sm;
- for (let e of Ps.WHITESPACE_CHARS) Ps.IS_WHITESPACE[e] = 1;
+ Ns.IS_WHITESPACE = sm;
+ for (let e of Ns.WHITESPACE_CHARS) Ns.IS_WHITESPACE[e] = 1;
});
- var li = Z((vn) => {
+ var li = Z((xn) => {
'use strict';
- Object.defineProperty(vn, '__esModule', {value: !0});
+ Object.defineProperty(xn, '__esModule', {value: !0});
var a1 = Qt(),
im = xa();
function rm(e) {
@@ -4552,16 +4568,16 @@ If you need interactivity, consider converting part of this to a Client Componen
throw new Error('Should not be called with non-ASCII char code.');
}
var om = new Uint8Array(65536);
- vn.IS_IDENTIFIER_CHAR = om;
- for (let e = 0; e < 128; e++) vn.IS_IDENTIFIER_CHAR[e] = rm(e) ? 1 : 0;
- for (let e = 128; e < 65536; e++) vn.IS_IDENTIFIER_CHAR[e] = 1;
- for (let e of im.WHITESPACE_CHARS) vn.IS_IDENTIFIER_CHAR[e] = 0;
- vn.IS_IDENTIFIER_CHAR[8232] = 0;
- vn.IS_IDENTIFIER_CHAR[8233] = 0;
- var am = vn.IS_IDENTIFIER_CHAR.slice();
- vn.IS_IDENTIFIER_START = am;
+ xn.IS_IDENTIFIER_CHAR = om;
+ for (let e = 0; e < 128; e++) xn.IS_IDENTIFIER_CHAR[e] = rm(e) ? 1 : 0;
+ for (let e = 128; e < 65536; e++) xn.IS_IDENTIFIER_CHAR[e] = 1;
+ for (let e of im.WHITESPACE_CHARS) xn.IS_IDENTIFIER_CHAR[e] = 0;
+ xn.IS_IDENTIFIER_CHAR[8232] = 0;
+ xn.IS_IDENTIFIER_CHAR[8233] = 0;
+ var am = xn.IS_IDENTIFIER_CHAR.slice();
+ xn.IS_IDENTIFIER_START = am;
for (let e = a1.charCodes.digit0; e <= a1.charCodes.digit9; e++)
- vn.IS_IDENTIFIER_START[e] = 0;
+ xn.IS_IDENTIFIER_START[e] = 0;
});
var l1 = Z((ga) => {
'use strict';
@@ -13539,8 +13555,8 @@ If you need interactivity, consider converting part of this to a Client Componen
var h1 = Z((ba) => {
'use strict';
Object.defineProperty(ba, '__esModule', {value: !0});
- var xn = Zt(),
- us = Qt(),
+ var gn = Zt(),
+ ps = Qt(),
c1 = li(),
_a = xt(),
u1 = l1(),
@@ -13548,50 +13564,50 @@ If you need interactivity, consider converting part of this to a Client Componen
function cm() {
let e = 0,
t = 0,
- s = xn.state.pos;
+ s = gn.state.pos;
for (
;
- s < xn.input.length &&
- ((t = xn.input.charCodeAt(s)),
- !(t < us.charCodes.lowercaseA || t > us.charCodes.lowercaseZ));
+ s < gn.input.length &&
+ ((t = gn.input.charCodeAt(s)),
+ !(t < ps.charCodes.lowercaseA || t > ps.charCodes.lowercaseZ));
) {
- let r = u1.READ_WORD_TREE[e + (t - us.charCodes.lowercaseA) + 1];
+ let r = u1.READ_WORD_TREE[e + (t - ps.charCodes.lowercaseA) + 1];
if (r === -1) break;
(e = r), s++;
}
let i = u1.READ_WORD_TREE[e];
if (i > -1 && !c1.IS_IDENTIFIER_CHAR[t]) {
- (xn.state.pos = s),
+ (gn.state.pos = s),
i & 1
? _a.finishToken.call(void 0, i >>> 1)
: _a.finishToken.call(void 0, p1.TokenType.name, i >>> 1);
return;
}
- for (; s < xn.input.length; ) {
- let r = xn.input.charCodeAt(s);
+ for (; s < gn.input.length; ) {
+ let r = gn.input.charCodeAt(s);
if (c1.IS_IDENTIFIER_CHAR[r]) s++;
- else if (r === us.charCodes.backslash) {
+ else if (r === ps.charCodes.backslash) {
if (
- ((s += 2), xn.input.charCodeAt(s) === us.charCodes.leftCurlyBrace)
+ ((s += 2), gn.input.charCodeAt(s) === ps.charCodes.leftCurlyBrace)
) {
for (
;
- s < xn.input.length &&
- xn.input.charCodeAt(s) !== us.charCodes.rightCurlyBrace;
+ s < gn.input.length &&
+ gn.input.charCodeAt(s) !== ps.charCodes.rightCurlyBrace;
)
s++;
s++;
}
} else if (
- r === us.charCodes.atSign &&
- xn.input.charCodeAt(s + 1) === us.charCodes.atSign
+ r === ps.charCodes.atSign &&
+ gn.input.charCodeAt(s + 1) === ps.charCodes.atSign
)
s += 2;
else break;
}
- (xn.state.pos = s), _a.finishToken.call(void 0, p1.TokenType.name);
+ (gn.state.pos = s), _a.finishToken.call(void 0, p1.TokenType.name);
}
ba.default = cm;
});
@@ -13602,7 +13618,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return e && e.__esModule ? e : {default: e};
}
var b = Zt(),
- ci = cs(),
+ ci = us(),
F = Qt(),
d1 = li(),
wa = xa(),
@@ -13621,22 +13637,22 @@ If you need interactivity, consider converting part of this to a Client Componen
e[(e.FunctionScopedDeclaration = r)] = 'FunctionScopedDeclaration';
let a = r + 1;
e[(e.BlockScopedDeclaration = a)] = 'BlockScopedDeclaration';
- let u = a + 1;
- e[(e.ObjectShorthandTopLevelDeclaration = u)] =
+ let p = a + 1;
+ e[(e.ObjectShorthandTopLevelDeclaration = p)] =
'ObjectShorthandTopLevelDeclaration';
- let d = u + 1;
+ let d = p + 1;
e[(e.ObjectShorthandFunctionScopedDeclaration = d)] =
'ObjectShorthandFunctionScopedDeclaration';
- let y = d + 1;
- e[(e.ObjectShorthandBlockScopedDeclaration = y)] =
+ let k = d + 1;
+ e[(e.ObjectShorthandBlockScopedDeclaration = k)] =
'ObjectShorthandBlockScopedDeclaration';
- let g = y + 1;
+ let g = k + 1;
e[(e.ObjectShorthand = g)] = 'ObjectShorthand';
let L = g + 1;
e[(e.ImportDeclaration = L)] = 'ImportDeclaration';
- let p = L + 1;
- e[(e.ObjectKey = p)] = 'ObjectKey';
- let h = p + 1;
+ let u = L + 1;
+ e[(e.ObjectKey = u)] = 'ObjectKey';
+ let h = u + 1;
e[(e.ImportAccess = h)] = 'ImportAccess';
})(it || (Be.IdentifierRole = it = {}));
var f1;
@@ -14627,7 +14643,7 @@ If you need interactivity, consider converting part of this to a Client Componen
Gm = Oa(Wm),
Yr = xt(),
Re = be(),
- An = Qt(),
+ Pn = Qt(),
zm = Pa(),
Xm = Oa(zm),
Ym = hn(),
@@ -14689,7 +14705,7 @@ If you need interactivity, consider converting part of this to a Client Componen
s &&
(t += `import {createElement as ${s}} from "${this.jsxImportSource}";`);
let r = Object.entries(i)
- .map(([a, u]) => `${a} as ${u}`)
+ .map(([a, p]) => `${a} as ${p}`)
.join(', ');
if (r) {
let a =
@@ -15000,7 +15016,7 @@ If you need interactivity, consider converting part of this to a Client Componen
Jr.default = La;
function A1(e) {
let t = e.charCodeAt(0);
- return t >= An.charCodes.lowercaseA && t <= An.charCodes.lowercaseZ;
+ return t >= Pn.charCodes.lowercaseA && t <= Pn.charCodes.lowercaseZ;
}
Jr.startsWithLowerCase = A1;
function Qm(e) {
@@ -15009,19 +15025,19 @@ If you need interactivity, consider converting part of this to a Client Componen
i = !1,
r = !1;
for (let a = 0; a < e.length; a++) {
- let u = e[a];
- if (u === ' ' || u === ' ' || u === '\r') i || (s += u);
+ let p = e[a];
+ if (p === ' ' || p === ' ' || p === '\r') i || (s += p);
else if (
- u ===
+ p ===
`
`
)
(s = ''), (i = !0);
else {
- if ((r && i && (t += ' '), (t += s), (s = ''), u === '&')) {
- let {entity: d, newI: y} = P1(e, a + 1);
- (a = y - 1), (t += d);
- } else t += u;
+ if ((r && i && (t += ' '), (t += s), (s = ''), p === '&')) {
+ let {entity: d, newI: k} = P1(e, a + 1);
+ (a = k - 1), (t += d);
+ } else t += p;
(r = !0), (i = !1);
}
}
@@ -15068,35 +15084,35 @@ If you need interactivity, consider converting part of this to a Client Componen
r,
a = t;
if (e[a] === '#') {
- let u = 10;
+ let p = 10;
a++;
let d;
if (e[a] === 'x')
- for (u = 16, a++, d = a; a < e.length && ty(e.charCodeAt(a)); ) a++;
+ for (p = 16, a++, d = a; a < e.length && ty(e.charCodeAt(a)); ) a++;
else for (d = a; a < e.length && ey(e.charCodeAt(a)); ) a++;
if (e[a] === ';') {
- let y = e.slice(d, a);
- y && (a++, (r = String.fromCodePoint(parseInt(y, u))));
+ let k = e.slice(d, a);
+ k && (a++, (r = String.fromCodePoint(parseInt(k, p))));
}
} else
for (; a < e.length && i++ < 10; ) {
- let u = e[a];
- if ((a++, u === ';')) {
+ let p = e[a];
+ if ((a++, p === ';')) {
r = Gm.default.get(s);
break;
}
- s += u;
+ s += p;
}
return r ? {entity: r, newI: a} : {entity: '&', newI: t};
}
function ey(e) {
- return e >= An.charCodes.digit0 && e <= An.charCodes.digit9;
+ return e >= Pn.charCodes.digit0 && e <= Pn.charCodes.digit9;
}
function ty(e) {
return (
- (e >= An.charCodes.digit0 && e <= An.charCodes.digit9) ||
- (e >= An.charCodes.lowercaseA && e <= An.charCodes.lowercaseF) ||
- (e >= An.charCodes.uppercaseA && e <= An.charCodes.uppercaseF)
+ (e >= Pn.charCodes.digit0 && e <= Pn.charCodes.digit9) ||
+ (e >= Pn.charCodes.lowercaseA && e <= Pn.charCodes.lowercaseF) ||
+ (e >= Pn.charCodes.uppercaseA && e <= Pn.charCodes.uppercaseF)
);
}
});
@@ -15132,8 +15148,8 @@ If you need interactivity, consider converting part of this to a Client Componen
a.type === ui.TokenType.jsxName &&
a.identifierRole === Qr.IdentifierRole.Access)
) {
- let u = e.identifierNameForToken(a);
- (!sy.startsWithLowerCase.call(void 0, u) ||
+ let p = e.identifierNameForToken(a);
+ (!sy.startsWithLowerCase.call(void 0, p) ||
e.tokens[r + 1].type === ui.TokenType.dot) &&
i.add(e.identifierNameForToken(a));
}
@@ -15170,13 +15186,13 @@ If you need interactivity, consider converting part of this to a Client Componen
__init5() {
this.exportBindingsByLocalName = new Map();
}
- constructor(t, s, i, r, a, u) {
+ constructor(t, s, i, r, a, p) {
(this.nameManager = t),
(this.tokens = s),
(this.enableLegacyTypeScriptModuleInterop = i),
(this.options = r),
(this.isTypeScriptTransformEnabled = a),
- (this.helperManager = u),
+ (this.helperManager = p),
e.prototype.__init.call(this),
e.prototype.__init2.call(this),
e.prototype.__init3.call(this),
@@ -15235,17 +15251,17 @@ If you need interactivity, consider converting part of this to a Client Componen
defaultNames: i,
wildcardNames: r,
namedImports: a,
- namedExports: u,
+ namedExports: p,
exportStarNames: d,
- hasStarExport: y,
+ hasStarExport: k,
} = s;
if (
i.length === 0 &&
r.length === 0 &&
a.length === 0 &&
- u.length === 0 &&
+ p.length === 0 &&
d.length === 0 &&
- !y
+ !k
) {
this.importsToReplace.set(t, `require('${t}');`);
continue;
@@ -15255,39 +15271,39 @@ If you need interactivity, consider converting part of this to a Client Componen
this.enableLegacyTypeScriptModuleInterop
? (L = g)
: (L = r.length > 0 ? r[0] : this.getFreeIdentifierForPath(t));
- let p = `var ${g} = require('${t}');`;
+ let u = `var ${g} = require('${t}');`;
if (r.length > 0)
for (let h of r) {
- let T = this.enableLegacyTypeScriptModuleInterop
+ let y = this.enableLegacyTypeScriptModuleInterop
? g
: `${this.helperManager.getHelperName(
'interopRequireWildcard'
)}(${g})`;
- p += ` var ${h} = ${T};`;
+ u += ` var ${h} = ${y};`;
}
else
d.length > 0 && L !== g
- ? (p += ` var ${L} = ${this.helperManager.getHelperName(
+ ? (u += ` var ${L} = ${this.helperManager.getHelperName(
'interopRequireWildcard'
)}(${g});`)
: i.length > 0 &&
L !== g &&
- (p += ` var ${L} = ${this.helperManager.getHelperName(
+ (u += ` var ${L} = ${this.helperManager.getHelperName(
'interopRequireDefault'
)}(${g});`);
- for (let {importedName: h, localName: T} of u)
- p += ` ${this.helperManager.getHelperName(
+ for (let {importedName: h, localName: y} of p)
+ u += ` ${this.helperManager.getHelperName(
'createNamedExportFrom'
- )}(${g}, '${T}', '${h}');`;
- for (let h of d) p += ` exports.${h} = ${L};`;
- y &&
- (p += ` ${this.helperManager.getHelperName(
+ )}(${g}, '${y}', '${h}');`;
+ for (let h of d) u += ` exports.${h} = ${L};`;
+ k &&
+ (u += ` ${this.helperManager.getHelperName(
'createStarExport'
)}(${g});`),
- this.importsToReplace.set(t, p);
+ this.importsToReplace.set(t, u);
for (let h of i) this.identifierReplacements.set(h, `${L}.default`);
- for (let {importedName: h, localName: T} of a)
- this.identifierReplacements.set(T, `${g}.${h}`);
+ for (let {importedName: h, localName: y} of a)
+ this.identifierReplacements.set(y, `${g}.${h}`);
}
}
getFreeIdentifierForPath(t) {
@@ -15325,8 +15341,8 @@ If you need interactivity, consider converting part of this to a Client Componen
) {
let d = this.getNamedImports(t + 1);
t = d.newIndex;
- for (let y of d.namedImports)
- y.importedName === 'default' ? s.push(y.localName) : r.push(y);
+ for (let k of d.namedImports)
+ k.importedName === 'default' ? s.push(k.localName) : r.push(k);
}
if (
(this.tokens.matchesContextualAtIndex(
@@ -15339,14 +15355,14 @@ If you need interactivity, consider converting part of this to a Client Componen
'Expected string token at the end of import statement.'
);
let a = this.tokens.stringValueAtIndex(t),
- u = this.getImportInfo(a);
- u.defaultNames.push(...s),
- u.wildcardNames.push(...i),
- u.namedImports.push(...r),
+ p = this.getImportInfo(a);
+ p.defaultNames.push(...s),
+ p.wildcardNames.push(...i),
+ p.namedImports.push(...r),
s.length === 0 &&
i.length === 0 &&
r.length === 0 &&
- (u.hasBareImport = !0);
+ (p.hasBareImport = !0);
}
preprocessExportAtIndex(t) {
if (
@@ -15444,8 +15460,8 @@ If you need interactivity, consider converting part of this to a Client Componen
)
t++;
else {
- for (let {importedName: u, localName: d} of i)
- this.addExportBinding(u, d);
+ for (let {importedName: p, localName: d} of i)
+ this.addExportBinding(p, d);
return;
}
if (!this.tokens.matches1AtIndex(t, me.TokenType.string))
@@ -15567,8 +15583,8 @@ If you need interactivity, consider converting part of this to a Client Componen
(e.put = (s, i) => {
let r = e.get(s, i);
if (r !== void 0) return r;
- let {array: a, _indexes: u} = s;
- return (u[i] = a.push(i) - 1);
+ let {array: a, _indexes: p} = s;
+ return (p[i] = a.push(i) - 1);
}),
(e.pop = (s) => {
let {array: i, _indexes: r} = s;
@@ -15598,7 +15614,7 @@ If you need interactivity, consider converting part of this to a Client Componen
let S = i.charCodeAt(w);
(r[w] = S), (a[S] = w);
}
- let u =
+ let p =
typeof TextDecoder < 'u'
? new TextDecoder()
: typeof Buffer < 'u'
@@ -15624,7 +15640,7 @@ If you need interactivity, consider converting part of this to a Client Componen
A = [],
U = 0;
do {
- let M = y(w, U),
+ let M = k(w, U),
c = [],
R = !0,
W = 0;
@@ -15645,11 +15661,11 @@ If you need interactivity, consider converting part of this to a Client Componen
: (ie = [pe]),
c.push(ie);
}
- R || p(c), A.push(c), (U = M + 1);
+ R || u(c), A.push(c), (U = M + 1);
} while (U <= w.length);
return A;
}
- function y(w, S) {
+ function k(w, S) {
let A = w.indexOf(';', S);
return A === -1 ? w.length : A;
}
@@ -15667,13 +15683,13 @@ If you need interactivity, consider converting part of this to a Client Componen
function L(w, S, A) {
return S >= A ? !1 : w.charCodeAt(S) !== 44;
}
- function p(w) {
+ function u(w) {
w.sort(h);
}
function h(w, S) {
return w[0] - S[0];
}
- function T(w) {
+ function y(w) {
let S = new Int32Array(5),
A = 1024 * 16,
U = A - 36,
@@ -15684,13 +15700,13 @@ If you need interactivity, consider converting part of this to a Client Componen
for (let X = 0; X < w.length; X++) {
let ie = w[X];
if (
- (X > 0 && (R === A && ((W += u.decode(M)), (R = 0)), (M[R++] = 59)),
+ (X > 0 && (R === A && ((W += p.decode(M)), (R = 0)), (M[R++] = 59)),
ie.length !== 0)
) {
S[0] = 0;
for (let pe = 0; pe < ie.length; pe++) {
let ae = ie[pe];
- R > U && ((W += u.decode(c)), M.copyWithin(0, U, R), (R -= U)),
+ R > U && ((W += p.decode(c)), M.copyWithin(0, U, R), (R -= U)),
pe > 0 && (M[R++] = 44),
(R = x(M, R, S, ae, 0)),
ae.length !== 1 &&
@@ -15701,7 +15717,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
}
}
- return W + u.decode(M.subarray(0, R));
+ return W + p.decode(M.subarray(0, R));
}
function x(w, S, A, U, M) {
let c = U[M],
@@ -15714,7 +15730,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return S;
}
(e.decode = d),
- (e.encode = T),
+ (e.encode = y),
Object.defineProperty(e, '__esModule', {value: !0});
});
});
@@ -15748,18 +15764,18 @@ If you need interactivity, consider converting part of this to a Client Componen
function a(A) {
return A.startsWith('//');
}
- function u(A) {
+ function p(A) {
return A.startsWith('/');
}
function d(A) {
return A.startsWith('file:');
}
- function y(A) {
+ function k(A) {
return /^[.?#]/.test(A);
}
function g(A) {
let U = t.exec(A);
- return p(
+ return u(
U[1],
U[2] || '',
U[3],
@@ -15772,17 +15788,17 @@ If you need interactivity, consider converting part of this to a Client Componen
function L(A) {
let U = s.exec(A),
M = U[2];
- return p(
+ return u(
'file:',
'',
U[1] || '',
'',
- u(M) ? M : '/' + M,
+ p(M) ? M : '/' + M,
U[3] || '',
U[4] || ''
);
}
- function p(A, U, M, c, R, W, X) {
+ function u(A, U, M, c, R, W, X) {
return {
scheme: A,
user: U,
@@ -15799,7 +15815,7 @@ If you need interactivity, consider converting part of this to a Client Componen
let M = g('http:' + A);
return (M.scheme = ''), (M.type = i.SchemeRelative), M;
}
- if (u(A)) {
+ if (p(A)) {
let M = g('http://foo.com' + A);
return (M.scheme = ''), (M.host = ''), (M.type = i.AbsolutePath), M;
}
@@ -15819,14 +15835,14 @@ If you need interactivity, consider converting part of this to a Client Componen
U
);
}
- function T(A) {
+ function y(A) {
if (A.endsWith('/..')) return A;
let U = A.lastIndexOf('/');
return A.slice(0, U + 1);
}
function x(A, U) {
w(U, U.type),
- A.path === '/' ? (A.path = U.path) : (A.path = T(U.path) + A.path);
+ A.path === '/' ? (A.path = U.path) : (A.path = y(U.path) + A.path);
}
function w(A, U) {
let M = U <= i.RelativePath,
@@ -15882,7 +15898,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return R;
case i.RelativePath: {
let W = M.path.slice(1);
- return W ? (y(U || A) && !y(W) ? './' + W + R : W + R) : R || '.';
+ return W ? (k(U || A) && !k(W) ? './' + W + R : W + R) : R || '.';
}
case i.AbsolutePath:
return M.path + R;
@@ -15917,18 +15933,18 @@ If you need interactivity, consider converting part of this to a Client Componen
function a(V, G) {
return G && !G.endsWith('/') && (G += '/'), r.default(V, G);
}
- function u(V) {
+ function p(V) {
if (!V) return '';
let G = V.lastIndexOf('/');
return V.slice(0, G + 1);
}
let d = 0,
- y = 1,
+ k = 1,
g = 2,
L = 3,
- p = 4,
+ u = 4,
h = 1,
- T = 2;
+ y = 2;
function x(V, G) {
let J = w(V, 0);
if (J === V.length) return V;
@@ -15990,14 +16006,14 @@ If you need interactivity, consider converting part of this to a Client Componen
for (let he = 0; he < ve.length; he++) {
let Ie = ve[he];
if (Ie.length === 1) continue;
- let Ee = Ie[y],
+ let Ee = Ie[k],
Le = Ie[g],
Xe = Ie[L],
We = J[Ee],
Ke = We[Le] || (We[Le] = []),
- ut = G[Ee],
- pt = R(Ke, Xe, ie(Ke, Xe, ut, Le));
- ae(Ke, (ut.lastIndex = pt + 1), [Xe, re, Ie[d]]);
+ pt = G[Ee],
+ ht = R(Ke, Xe, ie(Ke, Xe, pt, Le));
+ ae(Ke, (pt.lastIndex = ht + 1), [Xe, re, Ie[d]]);
}
}
return J;
@@ -16030,7 +16046,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function Bt(V, G, J, re, ve, he, Ie, Ee, Le, Xe) {
let {sections: We} = V;
for (let Ke = 0; Ke < We.length; Ke++) {
- let {map: ut, offset: pt} = We[Ke],
+ let {map: pt, offset: ht} = We[Ke],
bt = Le,
yt = Xe;
if (Ke + 1 < We.length) {
@@ -16040,37 +16056,37 @@ If you need interactivity, consider converting part of this to a Client Componen
? (yt = Math.min(Xe, Ee + vt.column))
: bt < Le && (yt = Ee + vt.column);
}
- mt(ut, G, J, re, ve, he, Ie + pt.line, Ee + pt.column, bt, yt);
+ mt(pt, G, J, re, ve, he, Ie + ht.line, Ee + ht.column, bt, yt);
}
}
function mt(V, G, J, re, ve, he, Ie, Ee, Le, Xe) {
if ('sections' in V) return Bt(...arguments);
let We = new wt(V, G),
Ke = re.length,
- ut = he.length,
- pt = e.decodedMappings(We),
+ pt = he.length,
+ ht = e.decodedMappings(We),
{resolvedSources: bt, sourcesContent: yt} = We;
if ((kt(re, bt), kt(he, We.names), yt)) kt(ve, yt);
else for (let vt = 0; vt < bt.length; vt++) ve.push(null);
- for (let vt = 0; vt < pt.length; vt++) {
- let bn = Ie + vt;
- if (bn > Le) return;
- let Dn = At(J, bn),
+ for (let vt = 0; vt < ht.length; vt++) {
+ let Cn = Ie + vt;
+ if (Cn > Le) return;
+ let Mn = At(J, Cn),
Ge = vt === 0 ? Ee : 0,
- St = pt[vt];
+ St = ht[vt];
for (let ot = 0; ot < St.length; ot++) {
let zt = St[ot],
Xt = Ge + zt[d];
- if (bn === Le && Xt >= Xe) return;
+ if (Cn === Le && Xt >= Xe) return;
if (zt.length === 1) {
- Dn.push([Xt]);
+ Mn.push([Xt]);
continue;
}
- let te = Ke + zt[y],
- Cn = zt[g],
- Zn = zt[L];
- Dn.push(
- zt.length === 4 ? [Xt, te, Cn, Zn] : [Xt, te, Cn, Zn, ut + zt[p]]
+ let te = Ke + zt[k],
+ wn = zt[g],
+ es = zt[L];
+ Mn.push(
+ zt.length === 4 ? [Xt, te, wn, es] : [Xt, te, wn, es, pt + zt[u]]
);
}
}
@@ -16086,7 +16102,7 @@ If you need interactivity, consider converting part of this to a Client Componen
nt =
'`column` must be greater than or equal to 0 (columns start at column 0)',
_t = -1,
- ct = 1;
+ ut = 1;
(e.encodedMappings = void 0),
(e.decodedMappings = void 0),
(e.traceSegment = void 0),
@@ -16116,12 +16132,12 @@ If you need interactivity, consider converting part of this to a Client Componen
(this.sourceRoot = Le),
(this.sources = Xe),
(this.sourcesContent = We);
- let Ke = a(Le || '', u(J));
- this.resolvedSources = Xe.map((pt) => a(pt || '', Ke));
- let {mappings: ut} = ve;
- typeof ut == 'string'
- ? ((this._encoded = ut), (this._decoded = void 0))
- : ((this._encoded = void 0), (this._decoded = x(ut, re))),
+ let Ke = a(Le || '', p(J));
+ this.resolvedSources = Xe.map((ht) => a(ht || '', Ke));
+ let {mappings: pt} = ve;
+ typeof pt == 'string'
+ ? ((this._encoded = pt), (this._decoded = void 0))
+ : ((this._encoded = void 0), (this._decoded = x(pt, re))),
(this._decodedMemo = X()),
(this._bySources = void 0),
(this._bySourceMemos = void 0);
@@ -16137,21 +16153,21 @@ If you need interactivity, consider converting part of this to a Client Componen
V._decoded || (V._decoded = t.decode(V._encoded))),
(e.traceSegment = (V, G, J) => {
let re = e.decodedMappings(V);
- return G >= re.length ? null : Tn(re[G], V._decodedMemo, G, J, ct);
+ return G >= re.length ? null : Tn(re[G], V._decodedMemo, G, J, ut);
}),
(e.originalPositionFor = (V, {line: G, column: J, bias: re}) => {
if ((G--, G < 0)) throw new Error(tt);
if (J < 0) throw new Error(nt);
let ve = e.decodedMappings(V);
if (G >= ve.length) return Pt(null, null, null, null);
- let he = Tn(ve[G], V._decodedMemo, G, J, re || ct);
+ let he = Tn(ve[G], V._decodedMemo, G, J, re || ut);
if (he == null || he.length == 1) return Pt(null, null, null, null);
let {names: Ie, resolvedSources: Ee} = V;
return Pt(
- Ee[he[y]],
+ Ee[he[k]],
he[g] + 1,
he[L],
- he.length === 5 ? Ie[he[p]] : null
+ he.length === 5 ? Ie[he[u]] : null
);
}),
(e.generatedPositionFor = (
@@ -16173,8 +16189,8 @@ If you need interactivity, consider converting part of this to a Client Componen
Xe = V._bySourceMemos,
We = Le[Ee][J];
if (We == null) return qt(null, null);
- let Ke = Tn(We, Xe[Ee], J, re, ve || ct);
- return Ke == null ? qt(null, null) : qt(Ke[h] + 1, Ke[T]);
+ let Ke = Tn(We, Xe[Ee], J, re, ve || ut);
+ return Ke == null ? qt(null, null) : qt(Ke[h] + 1, Ke[y]);
}),
(e.eachMapping = (V, G) => {
let J = e.decodedMappings(V),
@@ -16186,18 +16202,18 @@ If you need interactivity, consider converting part of this to a Client Componen
Xe = he + 1,
We = Le[0],
Ke = null,
- ut = null,
pt = null,
+ ht = null,
bt = null;
Le.length !== 1 &&
- ((Ke = ve[Le[1]]), (ut = Le[2] + 1), (pt = Le[3])),
+ ((Ke = ve[Le[1]]), (pt = Le[2] + 1), (ht = Le[3])),
Le.length === 5 && (bt = re[Le[4]]),
G({
generatedLine: Xe,
generatedColumn: We,
source: Ke,
- originalLine: ut,
- originalColumn: pt,
+ originalLine: pt,
+ originalColumn: ht,
name: bt,
});
}
@@ -16240,7 +16256,7 @@ If you need interactivity, consider converting part of this to a Client Componen
);
}
(e.AnyMap = qe),
- (e.GREATEST_LOWER_BOUND = ct),
+ (e.GREATEST_LOWER_BOUND = ut),
(e.LEAST_UPPER_BOUND = _t),
(e.TraceMap = wt),
Object.defineProperty(e, '__esModule', {value: !0});
@@ -16274,7 +16290,7 @@ If you need interactivity, consider converting part of this to a Client Componen
(e.fromMap = void 0),
(e.allMappings = void 0);
let L;
- class p {
+ class u {
constructor({file: R, sourceRoot: W} = {}) {
(this._names = new t.SetArray()),
(this._sources = new t.SetArray()),
@@ -16344,7 +16360,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}),
(e.fromMap = (c) => {
let R = new i.TraceMap(c),
- W = new p({file: R.file, sourceRoot: R.sourceRoot});
+ W = new u({file: R.file, sourceRoot: R.sourceRoot});
return (
S(W._names, R.names),
S(W._sources, R.sources),
@@ -16361,21 +16377,21 @@ If you need interactivity, consider converting part of this to a Client Componen
_names: At,
} = R,
tt = h(Bt, W),
- nt = T(tt, X);
+ nt = y(tt, X);
if (!ie) return c && A(tt, nt) ? void 0 : x(tt, nt, [X]);
let _t = t.put(mt, ie),
- ct = He ? t.put(At, He) : -1;
+ ut = He ? t.put(At, He) : -1;
if (
(_t === kt.length && (kt[_t] = qe ?? null),
- !(c && U(tt, nt, _t, pe, ae, ct)))
+ !(c && U(tt, nt, _t, pe, ae, ut)))
)
- return x(tt, nt, He ? [X, _t, pe, ae, ct] : [X, _t, pe, ae]);
+ return x(tt, nt, He ? [X, _t, pe, ae, ut] : [X, _t, pe, ae]);
});
function h(c, R) {
for (let W = c.length; W <= R; W++) c[W] = [];
return c[R];
}
- function T(c, R) {
+ function y(c, R) {
let W = c.length;
for (let X = W - 1; X >= 0; W = X--) {
let ie = c[X];
@@ -16426,7 +16442,7 @@ If you need interactivity, consider converting part of this to a Client Componen
He
);
}
- (e.GenMapping = p), Object.defineProperty(e, '__esModule', {value: !0});
+ (e.GenMapping = u), Object.defineProperty(e, '__esModule', {value: !0});
});
});
var $1 = Z((Ka) => {
@@ -16435,33 +16451,33 @@ If you need interactivity, consider converting part of this to a Client Componen
var Gi = V1(),
j1 = Qt();
function hy({code: e, mappings: t}, s, i, r, a) {
- let u = fy(r, a),
+ let p = fy(r, a),
d = new Gi.GenMapping({file: i.compiledFilename}),
- y = 0,
+ k = 0,
g = t[0];
- for (; g === void 0 && y < t.length - 1; ) y++, (g = t[y]);
+ for (; g === void 0 && k < t.length - 1; ) k++, (g = t[k]);
let L = 0,
- p = 0;
- g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0);
+ u = 0;
+ g !== u && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0);
for (let w = 0; w < e.length; w++) {
if (w === g) {
- let S = g - p,
- A = u[y];
+ let S = g - u,
+ A = p[k];
for (
Gi.maybeAddSegment.call(void 0, d, L, S, s, L, A);
- (g === w || g === void 0) && y < t.length - 1;
+ (g === w || g === void 0) && k < t.length - 1;
)
- y++, (g = t[y]);
+ k++, (g = t[k]);
}
e.charCodeAt(w) === j1.charCodes.lineFeed &&
(L++,
- (p = w + 1),
- g !== p && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0));
+ (u = w + 1),
+ g !== u && Gi.maybeAddSegment.call(void 0, d, L, 0, s, L, 0));
}
let {
sourceRoot: h,
- sourcesContent: T,
+ sourcesContent: y,
...x
} = Gi.toEncodedMap.call(void 0, d);
return x;
@@ -16472,9 +16488,9 @@ If you need interactivity, consider converting part of this to a Client Componen
i = 0,
r = t[i].start,
a = 0;
- for (let u = 0; u < e.length; u++)
- u === r && ((s[i] = r - a), i++, (r = t[i].start)),
- e.charCodeAt(u) === j1.charCodes.lineFeed && (a = u + 1);
+ for (let p = 0; p < e.length; p++)
+ p === r && ((s[i] = r - a), i++, (r = t[i].start)),
+ e.charCodeAt(p) === j1.charCodes.lineFeed && (a = p + 1);
return s;
}
});
@@ -16688,16 +16704,16 @@ If you need interactivity, consider converting part of this to a Client Componen
i.pop();
for (; r >= 0 && t[r].endTokenIndex === a + 1; ) i.push(t[r]), r--;
if (a < 0) break;
- let u = e.tokens[a],
- d = e.identifierNameForToken(u);
- if (i.length > 1 && u.type === io.TokenType.name && s.has(d)) {
- if (Wa.isBlockScopedDeclaration.call(void 0, u))
+ let p = e.tokens[a],
+ d = e.identifierNameForToken(p);
+ if (i.length > 1 && p.type === io.TokenType.name && s.has(d)) {
+ if (Wa.isBlockScopedDeclaration.call(void 0, p))
K1(i[i.length - 1], e, d);
- else if (Wa.isFunctionScopedDeclaration.call(void 0, u)) {
- let y = i.length - 1;
- for (; y > 0 && !i[y].isFunctionScope; ) y--;
- if (y < 0) throw new Error('Did not find parent function scope.');
- K1(i[y], e, d);
+ else if (Wa.isFunctionScopedDeclaration.call(void 0, p)) {
+ let k = i.length - 1;
+ for (; k > 0 && !i[k].isFunctionScope; ) k--;
+ if (k < 0) throw new Error('Did not find parent function scope.');
+ K1(i[k], e, d);
}
}
}
@@ -16754,10 +16770,10 @@ If you need interactivity, consider converting part of this to a Client Componen
};
Xa.default = za;
});
- var oo = Z((Pn) => {
+ var oo = Z((Nn) => {
'use strict';
var _y =
- (Pn && Pn.__extends) ||
+ (Nn && Nn.__extends) ||
(function () {
var e = function (t, s) {
return (
@@ -16784,8 +16800,8 @@ If you need interactivity, consider converting part of this to a Client Componen
: ((i.prototype = s.prototype), new i());
};
})();
- Object.defineProperty(Pn, '__esModule', {value: !0});
- Pn.DetailContext = Pn.NoopContext = Pn.VError = void 0;
+ Object.defineProperty(Nn, '__esModule', {value: !0});
+ Nn.DetailContext = Nn.NoopContext = Nn.VError = void 0;
var z1 = (function (e) {
_y(t, e);
function t(s, i) {
@@ -16794,7 +16810,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
return t;
})(Error);
- Pn.VError = z1;
+ Nn.VError = z1;
var by = (function () {
function e() {}
return (
@@ -16811,7 +16827,7 @@ If you need interactivity, consider converting part of this to a Client Componen
e
);
})();
- Pn.NoopContext = by;
+ Nn.NoopContext = by;
var X1 = (function () {
function e() {
(this._propNames = ['']), (this._messages = [null]), (this._score = 0);
@@ -16830,12 +16846,12 @@ If you need interactivity, consider converting part of this to a Client Componen
}),
(e.prototype.resolveUnion = function (t) {
for (
- var s, i, r = t, a = null, u = 0, d = r.contexts;
- u < d.length;
- u++
+ var s, i, r = t, a = null, p = 0, d = r.contexts;
+ p < d.length;
+ p++
) {
- var y = d[u];
- (!a || y._score >= a._score) && (a = y);
+ var k = d[p];
+ (!a || k._score >= a._score) && (a = k);
}
a &&
a._score > 0 &&
@@ -16858,14 +16874,14 @@ If you need interactivity, consider converting part of this to a Client Componen
var a = this._messages[i];
a && s.push({path: t, message: a});
}
- for (var u = null, i = s.length - 1; i >= 0; i--)
- u && (s[i].nested = [u]), (u = s[i]);
- return u;
+ for (var p = null, i = s.length - 1; i >= 0; i--)
+ p && (s[i].nested = [p]), (p = s[i]);
+ return p;
}),
e
);
})();
- Pn.DetailContext = X1;
+ Nn.DetailContext = X1;
var Cy = (function () {
function e() {
this.contexts = [];
@@ -16946,7 +16962,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return e;
})();
ce.TType = Ht;
- function ps(e) {
+ function hs(e) {
return typeof e == 'string' ? Z1(e) : e;
}
function Qa(e, t) {
@@ -16967,12 +16983,12 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i, r) {
var a = this,
- u = Qa(s, this.name),
- d = u.getChecker(s, i, r);
- return u instanceof Dt || u instanceof t
+ p = Qa(s, this.name),
+ d = p.getChecker(s, i, r);
+ return p instanceof Dt || p instanceof t
? d
- : function (y, g) {
- return d(y, g) ? !0 : g.fail(null, a._failMsg, 0);
+ : function (k, g) {
+ return d(k, g) ? !0 : g.fail(null, a._failMsg, 0);
};
}),
t
@@ -16997,8 +17013,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this;
- return function (a, u) {
- return a === r.value ? !0 : u.fail(null, r._failMsg, -1);
+ return function (a, p) {
+ return a === r.value ? !0 : p.fail(null, r._failMsg, -1);
};
}),
t
@@ -17006,7 +17022,7 @@ If you need interactivity, consider converting part of this to a Client Componen
})(Ht);
ce.TLiteral = el;
function Sy(e) {
- return new ep(ps(e));
+ return new ep(hs(e));
}
ce.array = Sy;
var ep = (function (e) {
@@ -17018,11 +17034,11 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this.ttype.getChecker(s, i);
- return function (a, u) {
- if (!Array.isArray(a)) return u.fail(null, 'is not an array', 0);
+ return function (a, p) {
+ if (!Array.isArray(a)) return p.fail(null, 'is not an array', 0);
for (var d = 0; d < a.length; d++) {
- var y = r(a[d], u);
- if (!y) return u.fail(d, null, 1);
+ var k = r(a[d], p);
+ if (!k) return p.fail(d, null, 1);
}
return !0;
};
@@ -17035,7 +17051,7 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
return new tp(
e.map(function (s) {
- return ps(s);
+ return hs(s);
})
);
}
@@ -17048,21 +17064,21 @@ If you need interactivity, consider converting part of this to a Client Componen
}
return (
(t.prototype.getChecker = function (s, i) {
- var r = this.ttypes.map(function (u) {
- return u.getChecker(s, i);
+ var r = this.ttypes.map(function (p) {
+ return p.getChecker(s, i);
}),
- a = function (u, d) {
- if (!Array.isArray(u)) return d.fail(null, 'is not an array', 0);
- for (var y = 0; y < r.length; y++) {
- var g = r[y](u[y], d);
- if (!g) return d.fail(y, null, 1);
+ a = function (p, d) {
+ if (!Array.isArray(p)) return d.fail(null, 'is not an array', 0);
+ for (var k = 0; k < r.length; k++) {
+ var g = r[k](p[k], d);
+ if (!g) return d.fail(k, null, 1);
}
return !0;
};
return i
- ? function (u, d) {
- return a(u, d)
- ? u.length <= r.length
+ ? function (p, d) {
+ return a(p, d)
+ ? p.length <= r.length
? !0
: d.fail(r.length, 'is extraneous', 2)
: !1;
@@ -17077,7 +17093,7 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
return new np(
e.map(function (s) {
- return ps(s);
+ return hs(s);
})
);
}
@@ -17088,11 +17104,11 @@ If you need interactivity, consider converting part of this to a Client Componen
var i = e.call(this) || this;
i.ttypes = s;
var r = s
- .map(function (u) {
- return u instanceof Za || u instanceof el ? u.name : null;
+ .map(function (p) {
+ return p instanceof Za || p instanceof el ? p.name : null;
})
- .filter(function (u) {
- return u;
+ .filter(function (p) {
+ return p;
}),
a = s.length - r.length;
return (
@@ -17106,15 +17122,15 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this,
- a = this.ttypes.map(function (u) {
- return u.getChecker(s, i);
+ a = this.ttypes.map(function (p) {
+ return p.getChecker(s, i);
});
- return function (u, d) {
- for (var y = d.unionResolver(), g = 0; g < a.length; g++) {
- var L = a[g](u, y.createContext());
+ return function (p, d) {
+ for (var k = d.unionResolver(), g = 0; g < a.length; g++) {
+ var L = a[g](p, k.createContext());
if (L) return !0;
}
- return d.resolveUnion(y), d.fail(null, r._failMsg, 0);
+ return d.resolveUnion(k), d.fail(null, r._failMsg, 0);
};
}),
t
@@ -17125,7 +17141,7 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
return new sp(
e.map(function (s) {
- return ps(s);
+ return hs(s);
})
);
}
@@ -17139,14 +17155,14 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = new Set(),
- a = this.ttypes.map(function (u) {
- return u.getChecker(s, i, r);
+ a = this.ttypes.map(function (p) {
+ return p.getChecker(s, i, r);
});
- return function (u, d) {
- var y = a.every(function (g) {
- return g(u, d);
+ return function (p, d) {
+ var k = a.every(function (g) {
+ return g(p, d);
});
- return y ? !0 : d.fail(null, null, 0);
+ return k ? !0 : d.fail(null, null, 0);
};
}),
t
@@ -17176,8 +17192,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this;
- return function (a, u) {
- return r.validValues.has(a) ? !0 : u.fail(null, r._failMsg, 0);
+ return function (a, p) {
+ return r.validValues.has(a) ? !0 : p.fail(null, r._failMsg, 0);
};
}),
t
@@ -17207,7 +17223,7 @@ If you need interactivity, consider converting part of this to a Client Componen
throw new Error(
'Type ' + this.enumName + ' used in enumlit is not an enum type'
);
- var u = a.members[this.prop];
+ var p = a.members[this.prop];
if (!a.members.hasOwnProperty(this.prop))
throw new Error(
'Unknown value ' +
@@ -17216,8 +17232,8 @@ If you need interactivity, consider converting part of this to a Client Componen
this.prop +
' used in enumlit'
);
- return function (d, y) {
- return d === u ? !0 : y.fail(null, r._failMsg, -1);
+ return function (d, k) {
+ return d === p ? !0 : k.fail(null, r._failMsg, -1);
};
}),
t
@@ -17230,7 +17246,7 @@ If you need interactivity, consider converting part of this to a Client Componen
});
}
function Ly(e, t) {
- return t instanceof nl ? new Ja(e, t.ttype, !0) : new Ja(e, ps(t), !1);
+ return t instanceof nl ? new Ja(e, t.ttype, !0) : new Ja(e, hs(t), !1);
}
function Oy(e, t) {
return new rp(e, Ry(t));
@@ -17254,44 +17270,44 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i, r) {
var a = this,
- u = this.bases.map(function (h) {
+ p = this.bases.map(function (h) {
return Qa(s, h).getChecker(s, i);
}),
d = this.props.map(function (h) {
return h.ttype.getChecker(s, i);
}),
- y = new Q1.NoopContext(),
- g = this.props.map(function (h, T) {
- return !h.isOpt && !d[T](void 0, y);
+ k = new Q1.NoopContext(),
+ g = this.props.map(function (h, y) {
+ return !h.isOpt && !d[y](void 0, k);
}),
- L = function (h, T) {
+ L = function (h, y) {
if (typeof h != 'object' || h === null)
- return T.fail(null, 'is not an object', 0);
- for (var x = 0; x < u.length; x++) if (!u[x](h, T)) return !1;
+ return y.fail(null, 'is not an object', 0);
+ for (var x = 0; x < p.length; x++) if (!p[x](h, y)) return !1;
for (var x = 0; x < d.length; x++) {
var w = a.props[x].name,
S = h[w];
if (S === void 0) {
- if (g[x]) return T.fail(w, 'is missing', 1);
+ if (g[x]) return y.fail(w, 'is missing', 1);
} else {
- var A = d[x](S, T);
- if (!A) return T.fail(w, null, 1);
+ var A = d[x](S, y);
+ if (!A) return y.fail(w, null, 1);
}
}
return !0;
};
if (!i) return L;
- var p = this.propSet;
+ var u = this.propSet;
return (
r &&
(this.propSet.forEach(function (h) {
return r.add(h);
}),
- (p = r)),
- function (h, T) {
- if (!L(h, T)) return !1;
+ (u = r)),
+ function (h, y) {
+ if (!L(h, y)) return !1;
for (var x in h)
- if (!p.has(x)) return T.fail(x, 'is extraneous', 2);
+ if (!u.has(x)) return y.fail(x, 'is extraneous', 2);
return !0;
}
);
@@ -17301,7 +17317,7 @@ If you need interactivity, consider converting part of this to a Client Componen
})(Ht);
ce.TIface = rp;
function Dy(e) {
- return new nl(ps(e));
+ return new nl(hs(e));
}
ce.opt = Dy;
var nl = (function (e) {
@@ -17313,8 +17329,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this.ttype.getChecker(s, i);
- return function (a, u) {
- return a === void 0 || r(a, u);
+ return function (a, p) {
+ return a === void 0 || r(a, p);
};
}),
t
@@ -17331,7 +17347,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function My(e) {
for (var t = [], s = 1; s < arguments.length; s++)
t[s - 1] = arguments[s];
- return new op(new lp(t), ps(e));
+ return new op(new lp(t), hs(e));
}
ce.func = My;
var op = (function (e) {
@@ -17353,7 +17369,7 @@ If you need interactivity, consider converting part of this to a Client Componen
})(Ht);
ce.TFunc = op;
function Fy(e, t, s) {
- return new ap(e, ps(t), !!s);
+ return new ap(e, hs(t), !!s);
}
ce.param = Fy;
var ap = (function () {
@@ -17375,32 +17391,32 @@ If you need interactivity, consider converting part of this to a Client Componen
a = this.params.map(function (g) {
return g.ttype.getChecker(s, i);
}),
- u = new Q1.NoopContext(),
+ p = new Q1.NoopContext(),
d = this.params.map(function (g, L) {
- return !g.isOpt && !a[L](void 0, u);
+ return !g.isOpt && !a[L](void 0, p);
}),
- y = function (g, L) {
+ k = function (g, L) {
if (!Array.isArray(g)) return L.fail(null, 'is not an array', 0);
- for (var p = 0; p < a.length; p++) {
- var h = r.params[p];
- if (g[p] === void 0) {
- if (d[p]) return L.fail(h.name, 'is missing', 1);
+ for (var u = 0; u < a.length; u++) {
+ var h = r.params[u];
+ if (g[u] === void 0) {
+ if (d[u]) return L.fail(h.name, 'is missing', 1);
} else {
- var T = a[p](g[p], L);
- if (!T) return L.fail(h.name, null, 1);
+ var y = a[u](g[u], L);
+ if (!y) return L.fail(h.name, null, 1);
}
}
return !0;
};
return i
? function (g, L) {
- return y(g, L)
+ return k(g, L)
? g.length <= a.length
? !0
: L.fail(a.length, 'is extraneous', 2)
: !1;
}
- : y;
+ : k;
}),
t
);
@@ -17415,8 +17431,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
(t.prototype.getChecker = function (s, i) {
var r = this;
- return function (a, u) {
- return r.validator(a) ? !0 : u.fail(null, r.message, 0);
+ return function (a, p) {
+ return r.validator(a) ? !0 : p.fail(null, r.message, 0);
};
}),
t
@@ -17500,8 +17516,8 @@ If you need interactivity, consider converting part of this to a Client Componen
for (var e = 0, t = 0, s = arguments.length; t < s; t++)
e += arguments[t].length;
for (var i = Array(e), r = 0, t = 0; t < s; t++)
- for (var a = arguments[t], u = 0, d = a.length; u < d; u++, r++)
- i[r] = a[u];
+ for (var a = arguments[t], p = 0, d = a.length; p < d; p++, r++)
+ i[r] = a[p];
return i;
};
Object.defineProperty(we, '__esModule', {value: !0});
@@ -17694,9 +17710,9 @@ If you need interactivity, consider converting part of this to a Client Componen
r < a.length;
r++
)
- for (var u = a[r], d = 0, y = Object.keys(u); d < y.length; d++) {
- var g = y[d];
- i[g] = new cp(s, u[g]);
+ for (var p = a[r], d = 0, k = Object.keys(p); d < k.length; d++) {
+ var g = k[d];
+ i[g] = new cp(s, p[g]);
}
return i;
}
@@ -17712,8 +17728,8 @@ If you need interactivity, consider converting part of this to a Client Componen
s instanceof zi.TIface)
)
for (var r = 0, a = s.props; r < a.length; r++) {
- var u = a[r];
- this.props.set(u.name, u.ttype);
+ var p = a[r];
+ this.props.set(p.name, p.ttype);
}
(this.checkerPlain = this.ttype.getChecker(t, !1)),
(this.checkerStrict = this.ttype.getChecker(t, !0));
@@ -17791,9 +17807,9 @@ If you need interactivity, consider converting part of this to a Client Componen
})();
we.Checker = cp;
});
- var up = Z((Gn) => {
+ var up = Z((zn) => {
'use strict';
- Object.defineProperty(Gn, '__esModule', {value: !0});
+ Object.defineProperty(zn, '__esModule', {value: !0});
function Ky(e) {
if (e && e.__esModule) return e;
var t = {};
@@ -17812,9 +17828,9 @@ If you need interactivity, consider converting part of this to a Client Componen
Qe.lit('react-hot-loader'),
Qe.lit('jest')
);
- Gn.Transform = Hy;
+ zn.Transform = Hy;
var Wy = Qe.iface([], {compiledFilename: 'string'});
- Gn.SourceMapOptions = Wy;
+ zn.SourceMapOptions = Wy;
var Gy = Qe.iface([], {
transforms: Qe.array('Transform'),
disableESTransforms: Qe.opt('boolean'),
@@ -17832,13 +17848,13 @@ If you need interactivity, consider converting part of this to a Client Componen
sourceMapOptions: Qe.opt('SourceMapOptions'),
filePath: Qe.opt('string'),
});
- Gn.Options = Gy;
+ zn.Options = Gy;
var zy = {
- Transform: Gn.Transform,
- SourceMapOptions: Gn.SourceMapOptions,
- Options: Gn.Options,
+ Transform: zn.Transform,
+ SourceMapOptions: zn.SourceMapOptions,
+ Options: zn.Options,
};
- Gn.default = zy;
+ zn.default = zy;
});
var pp = Z((rl) => {
'use strict';
@@ -17855,35 +17871,35 @@ If you need interactivity, consider converting part of this to a Client Componen
}
rl.validateOptions = eT;
});
- var lo = Z((Nn) => {
+ var lo = Z((Rn) => {
'use strict';
- Object.defineProperty(Nn, '__esModule', {value: !0});
+ Object.defineProperty(Rn, '__esModule', {value: !0});
var tT = Ji(),
hp = hi(),
Mt = xt(),
Xi = It(),
fn = be(),
gt = Zt(),
- Yi = Ns(),
- ol = cs();
+ Yi = Rs(),
+ ol = us();
function nT() {
Mt.next.call(void 0), Yi.parseMaybeAssign.call(void 0, !1);
}
- Nn.parseSpread = nT;
+ Rn.parseSpread = nT;
function fp(e) {
Mt.next.call(void 0), ll(e);
}
- Nn.parseRest = fp;
+ Rn.parseRest = fp;
function dp(e) {
Yi.parseIdentifier.call(void 0), mp(e);
}
- Nn.parseBindingIdentifier = dp;
+ Rn.parseBindingIdentifier = dp;
function sT() {
Yi.parseIdentifier.call(void 0),
(gt.state.tokens[gt.state.tokens.length - 1].identifierRole =
Mt.IdentifierRole.ImportDeclaration);
}
- Nn.parseImportedIdentifier = sT;
+ Rn.parseImportedIdentifier = sT;
function mp(e) {
let t;
gt.state.scopeDepth === 0
@@ -17893,7 +17909,7 @@ If you need interactivity, consider converting part of this to a Client Componen
: (t = Mt.IdentifierRole.FunctionScopedDeclaration),
(gt.state.tokens[gt.state.tokens.length - 1].identifierRole = t);
}
- Nn.markPriorBindingIdentifier = mp;
+ Rn.markPriorBindingIdentifier = mp;
function ll(e) {
switch (gt.state.type) {
case fn.TokenType._this: {
@@ -17917,10 +17933,10 @@ If you need interactivity, consider converting part of this to a Client Componen
ol.unexpected.call(void 0);
}
}
- Nn.parseBindingAtom = ll;
+ Rn.parseBindingAtom = ll;
function yp(e, t, s = !1, i = !1, r = 0) {
let a = !0,
- u = !1,
+ p = !1,
d = gt.state.tokens.length;
for (; !Mt.eat.call(void 0, e) && !gt.state.error; )
if (
@@ -17928,10 +17944,10 @@ If you need interactivity, consider converting part of this to a Client Componen
? (a = !1)
: (ol.expect.call(void 0, fn.TokenType.comma),
(gt.state.tokens[gt.state.tokens.length - 1].contextId = r),
- !u &&
+ !p &&
gt.state.tokens[d].isType &&
((gt.state.tokens[gt.state.tokens.length - 1].isType = !0),
- (u = !0))),
+ (p = !0))),
!(s && Mt.match.call(void 0, fn.TokenType.comma)))
) {
if (Mt.eat.call(void 0, e)) break;
@@ -17944,7 +17960,7 @@ If you need interactivity, consider converting part of this to a Client Componen
} else iT(i, t);
}
}
- Nn.parseBindingList = yp;
+ Rn.parseBindingList = yp;
function iT(e, t) {
e &&
hp.tsParseModifiers.call(void 0, [
@@ -17970,42 +17986,42 @@ If you need interactivity, consider converting part of this to a Client Componen
Yi.parseMaybeAssign.call(void 0),
(gt.state.tokens[s].rhsEndIndex = gt.state.tokens.length);
}
- Nn.parseMaybeDefault = al;
+ Rn.parseMaybeDefault = al;
});
var hi = Z((Oe) => {
'use strict';
Object.defineProperty(Oe, '__esModule', {value: !0});
var v = xt(),
oe = It(),
- k = be(),
+ T = be(),
I = Zt(),
- _e = Ns(),
+ _e = Rs(),
di = lo(),
- Rn = nr(),
- H = cs(),
+ Ln = nr(),
+ H = us(),
rT = vl();
function ul() {
- return v.match.call(void 0, k.TokenType.name);
+ return v.match.call(void 0, T.TokenType.name);
}
function oT() {
return (
- v.match.call(void 0, k.TokenType.name) ||
- !!(I.state.type & k.TokenType.IS_KEYWORD) ||
- v.match.call(void 0, k.TokenType.string) ||
- v.match.call(void 0, k.TokenType.num) ||
- v.match.call(void 0, k.TokenType.bigint) ||
- v.match.call(void 0, k.TokenType.decimal)
+ v.match.call(void 0, T.TokenType.name) ||
+ !!(I.state.type & T.TokenType.IS_KEYWORD) ||
+ v.match.call(void 0, T.TokenType.string) ||
+ v.match.call(void 0, T.TokenType.num) ||
+ v.match.call(void 0, T.TokenType.bigint) ||
+ v.match.call(void 0, T.TokenType.decimal)
);
}
function _p() {
let e = I.state.snapshot();
return (
v.next.call(void 0),
- (v.match.call(void 0, k.TokenType.bracketL) ||
- v.match.call(void 0, k.TokenType.braceL) ||
- v.match.call(void 0, k.TokenType.star) ||
- v.match.call(void 0, k.TokenType.ellipsis) ||
- v.match.call(void 0, k.TokenType.hash) ||
+ (v.match.call(void 0, T.TokenType.bracketL) ||
+ v.match.call(void 0, T.TokenType.braceL) ||
+ v.match.call(void 0, T.TokenType.star) ||
+ v.match.call(void 0, T.TokenType.ellipsis) ||
+ v.match.call(void 0, T.TokenType.hash) ||
oT()) &&
!H.hasPrecedingLineBreak.call(void 0)
? !0
@@ -18017,41 +18033,41 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Oe.tsParseModifiers = bp;
function dl(e) {
- if (!v.match.call(void 0, k.TokenType.name)) return null;
+ if (!v.match.call(void 0, T.TokenType.name)) return null;
let t = I.state.contextualKeyword;
if (e.indexOf(t) !== -1 && _p()) {
switch (t) {
case oe.ContextualKeyword._readonly:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._readonly;
+ T.TokenType._readonly;
break;
case oe.ContextualKeyword._abstract:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._abstract;
+ T.TokenType._abstract;
break;
case oe.ContextualKeyword._static:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._static;
+ T.TokenType._static;
break;
case oe.ContextualKeyword._public:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._public;
+ T.TokenType._public;
break;
case oe.ContextualKeyword._private:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._private;
+ T.TokenType._private;
break;
case oe.ContextualKeyword._protected:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._protected;
+ T.TokenType._protected;
break;
case oe.ContextualKeyword._override:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._override;
+ T.TokenType._override;
break;
case oe.ContextualKeyword._declare:
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._declare;
+ T.TokenType._declare;
break;
default:
break;
@@ -18064,7 +18080,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function Zi() {
for (
_e.parseIdentifier.call(void 0);
- v.eat.call(void 0, k.TokenType.dot);
+ v.eat.call(void 0, T.TokenType.dot);
)
_e.parseIdentifier.call(void 0);
@@ -18072,7 +18088,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function aT() {
Zi(),
!H.hasPrecedingLineBreak.call(void 0) &&
- v.match.call(void 0, k.TokenType.lessThan) &&
+ v.match.call(void 0, T.TokenType.lessThan) &&
yi();
}
function lT() {
@@ -18082,82 +18098,82 @@ If you need interactivity, consider converting part of this to a Client Componen
v.next.call(void 0);
}
function uT() {
- H.expect.call(void 0, k.TokenType._typeof),
- v.match.call(void 0, k.TokenType._import) ? Cp() : Zi(),
+ H.expect.call(void 0, T.TokenType._typeof),
+ v.match.call(void 0, T.TokenType._import) ? Cp() : Zi(),
!H.hasPrecedingLineBreak.call(void 0) &&
- v.match.call(void 0, k.TokenType.lessThan) &&
+ v.match.call(void 0, T.TokenType.lessThan) &&
yi();
}
function Cp() {
- H.expect.call(void 0, k.TokenType._import),
- H.expect.call(void 0, k.TokenType.parenL),
- H.expect.call(void 0, k.TokenType.string),
- H.expect.call(void 0, k.TokenType.parenR),
- v.eat.call(void 0, k.TokenType.dot) && Zi(),
- v.match.call(void 0, k.TokenType.lessThan) && yi();
+ H.expect.call(void 0, T.TokenType._import),
+ H.expect.call(void 0, T.TokenType.parenL),
+ H.expect.call(void 0, T.TokenType.string),
+ H.expect.call(void 0, T.TokenType.parenR),
+ v.eat.call(void 0, T.TokenType.dot) && Zi(),
+ v.match.call(void 0, T.TokenType.lessThan) && yi();
}
function pT() {
- v.eat.call(void 0, k.TokenType._const);
- let e = v.eat.call(void 0, k.TokenType._in),
+ v.eat.call(void 0, T.TokenType._const);
+ let e = v.eat.call(void 0, T.TokenType._in),
t = H.eatContextual.call(void 0, oe.ContextualKeyword._out);
- v.eat.call(void 0, k.TokenType._const),
- (e || t) && !v.match.call(void 0, k.TokenType.name)
- ? (I.state.tokens[I.state.tokens.length - 1].type = k.TokenType.name)
+ v.eat.call(void 0, T.TokenType._const),
+ (e || t) && !v.match.call(void 0, T.TokenType.name)
+ ? (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType.name)
: _e.parseIdentifier.call(void 0),
- v.eat.call(void 0, k.TokenType._extends) && rt(),
- v.eat.call(void 0, k.TokenType.eq) && rt();
+ v.eat.call(void 0, T.TokenType._extends) && rt(),
+ v.eat.call(void 0, T.TokenType.eq) && rt();
}
function mi() {
- v.match.call(void 0, k.TokenType.lessThan) && uo();
+ v.match.call(void 0, T.TokenType.lessThan) && uo();
}
Oe.tsTryParseTypeParameters = mi;
function uo() {
let e = v.pushTypeContext.call(void 0, 0);
for (
- v.match.call(void 0, k.TokenType.lessThan) ||
- v.match.call(void 0, k.TokenType.typeParameterStart)
+ v.match.call(void 0, T.TokenType.lessThan) ||
+ v.match.call(void 0, T.TokenType.typeParameterStart)
? v.next.call(void 0)
: H.unexpected.call(void 0);
- !v.eat.call(void 0, k.TokenType.greaterThan) && !I.state.error;
+ !v.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error;
)
- pT(), v.eat.call(void 0, k.TokenType.comma);
+ pT(), v.eat.call(void 0, T.TokenType.comma);
v.popTypeContext.call(void 0, e);
}
function ml(e) {
- let t = e === k.TokenType.arrow;
+ let t = e === T.TokenType.arrow;
mi(),
- H.expect.call(void 0, k.TokenType.parenL),
+ H.expect.call(void 0, T.TokenType.parenL),
I.state.scopeDepth++,
hT(!1),
I.state.scopeDepth--,
(t || v.match.call(void 0, e)) && Qi(e);
}
function hT(e) {
- di.parseBindingList.call(void 0, k.TokenType.parenR, e);
+ di.parseBindingList.call(void 0, T.TokenType.parenR, e);
}
function co() {
- v.eat.call(void 0, k.TokenType.comma) || H.semicolon.call(void 0);
+ v.eat.call(void 0, T.TokenType.comma) || H.semicolon.call(void 0);
}
function kp() {
- ml(k.TokenType.colon), co();
+ ml(T.TokenType.colon), co();
}
function fT() {
let e = I.state.snapshot();
v.next.call(void 0);
let t =
- v.eat.call(void 0, k.TokenType.name) &&
- v.match.call(void 0, k.TokenType.colon);
+ v.eat.call(void 0, T.TokenType.name) &&
+ v.match.call(void 0, T.TokenType.colon);
return I.state.restoreFromSnapshot(e), t;
}
function wp() {
- if (!(v.match.call(void 0, k.TokenType.bracketL) && fT())) return !1;
+ if (!(v.match.call(void 0, T.TokenType.bracketL) && fT())) return !1;
let e = v.pushTypeContext.call(void 0, 0);
return (
- H.expect.call(void 0, k.TokenType.bracketL),
+ H.expect.call(void 0, T.TokenType.bracketL),
_e.parseIdentifier.call(void 0),
tr(),
- H.expect.call(void 0, k.TokenType.bracketR),
+ H.expect.call(void 0, T.TokenType.bracketR),
er(),
co(),
v.popTypeContext.call(void 0, e),
@@ -18165,25 +18181,25 @@ If you need interactivity, consider converting part of this to a Client Componen
);
}
function vp(e) {
- v.eat.call(void 0, k.TokenType.question),
+ v.eat.call(void 0, T.TokenType.question),
!e &&
- (v.match.call(void 0, k.TokenType.parenL) ||
- v.match.call(void 0, k.TokenType.lessThan))
- ? (ml(k.TokenType.colon), co())
+ (v.match.call(void 0, T.TokenType.parenL) ||
+ v.match.call(void 0, T.TokenType.lessThan))
+ ? (ml(T.TokenType.colon), co())
: (er(), co());
}
function dT() {
if (
- v.match.call(void 0, k.TokenType.parenL) ||
- v.match.call(void 0, k.TokenType.lessThan)
+ v.match.call(void 0, T.TokenType.parenL) ||
+ v.match.call(void 0, T.TokenType.lessThan)
) {
kp();
return;
}
- if (v.match.call(void 0, k.TokenType._new)) {
+ if (v.match.call(void 0, T.TokenType._new)) {
v.next.call(void 0),
- v.match.call(void 0, k.TokenType.parenL) ||
- v.match.call(void 0, k.TokenType.lessThan)
+ v.match.call(void 0, T.TokenType.parenL) ||
+ v.match.call(void 0, T.TokenType.lessThan)
? kp()
: vp(!1);
return;
@@ -18201,8 +18217,8 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function Sp() {
for (
- H.expect.call(void 0, k.TokenType.braceL);
- !v.eat.call(void 0, k.TokenType.braceR) && !I.state.error;
+ H.expect.call(void 0, T.TokenType.braceL);
+ !v.eat.call(void 0, T.TokenType.braceR) && !I.state.error;
)
dT();
@@ -18215,140 +18231,140 @@ If you need interactivity, consider converting part of this to a Client Componen
function TT() {
return (
v.next.call(void 0),
- v.eat.call(void 0, k.TokenType.plus) ||
- v.eat.call(void 0, k.TokenType.minus)
+ v.eat.call(void 0, T.TokenType.plus) ||
+ v.eat.call(void 0, T.TokenType.minus)
? H.isContextual.call(void 0, oe.ContextualKeyword._readonly)
: (H.isContextual.call(void 0, oe.ContextualKeyword._readonly) &&
v.next.call(void 0),
- !v.match.call(void 0, k.TokenType.bracketL) ||
+ !v.match.call(void 0, T.TokenType.bracketL) ||
(v.next.call(void 0), !ul())
? !1
- : (v.next.call(void 0), v.match.call(void 0, k.TokenType._in)))
+ : (v.next.call(void 0), v.match.call(void 0, T.TokenType._in)))
);
}
function kT() {
_e.parseIdentifier.call(void 0),
- H.expect.call(void 0, k.TokenType._in),
+ H.expect.call(void 0, T.TokenType._in),
rt();
}
function vT() {
- H.expect.call(void 0, k.TokenType.braceL),
- v.match.call(void 0, k.TokenType.plus) ||
- v.match.call(void 0, k.TokenType.minus)
+ H.expect.call(void 0, T.TokenType.braceL),
+ v.match.call(void 0, T.TokenType.plus) ||
+ v.match.call(void 0, T.TokenType.minus)
? (v.next.call(void 0),
H.expectContextual.call(void 0, oe.ContextualKeyword._readonly))
: H.eatContextual.call(void 0, oe.ContextualKeyword._readonly),
- H.expect.call(void 0, k.TokenType.bracketL),
+ H.expect.call(void 0, T.TokenType.bracketL),
kT(),
H.eatContextual.call(void 0, oe.ContextualKeyword._as) && rt(),
- H.expect.call(void 0, k.TokenType.bracketR),
- v.match.call(void 0, k.TokenType.plus) ||
- v.match.call(void 0, k.TokenType.minus)
- ? (v.next.call(void 0), H.expect.call(void 0, k.TokenType.question))
- : v.eat.call(void 0, k.TokenType.question),
+ H.expect.call(void 0, T.TokenType.bracketR),
+ v.match.call(void 0, T.TokenType.plus) ||
+ v.match.call(void 0, T.TokenType.minus)
+ ? (v.next.call(void 0), H.expect.call(void 0, T.TokenType.question))
+ : v.eat.call(void 0, T.TokenType.question),
LT(),
H.semicolon.call(void 0),
- H.expect.call(void 0, k.TokenType.braceR);
+ H.expect.call(void 0, T.TokenType.braceR);
}
function xT() {
for (
- H.expect.call(void 0, k.TokenType.bracketL);
- !v.eat.call(void 0, k.TokenType.bracketR) && !I.state.error;
+ H.expect.call(void 0, T.TokenType.bracketL);
+ !v.eat.call(void 0, T.TokenType.bracketR) && !I.state.error;
)
- gT(), v.eat.call(void 0, k.TokenType.comma);
+ gT(), v.eat.call(void 0, T.TokenType.comma);
}
function gT() {
- v.eat.call(void 0, k.TokenType.ellipsis)
+ v.eat.call(void 0, T.TokenType.ellipsis)
? rt()
- : (rt(), v.eat.call(void 0, k.TokenType.question)),
- v.eat.call(void 0, k.TokenType.colon) && rt();
+ : (rt(), v.eat.call(void 0, T.TokenType.question)),
+ v.eat.call(void 0, T.TokenType.colon) && rt();
}
function _T() {
- H.expect.call(void 0, k.TokenType.parenL),
+ H.expect.call(void 0, T.TokenType.parenL),
rt(),
- H.expect.call(void 0, k.TokenType.parenR);
+ H.expect.call(void 0, T.TokenType.parenR);
}
function bT() {
for (
v.nextTemplateToken.call(void 0), v.nextTemplateToken.call(void 0);
- !v.match.call(void 0, k.TokenType.backQuote) && !I.state.error;
+ !v.match.call(void 0, T.TokenType.backQuote) && !I.state.error;
)
- H.expect.call(void 0, k.TokenType.dollarBraceL),
+ H.expect.call(void 0, T.TokenType.dollarBraceL),
rt(),
v.nextTemplateToken.call(void 0),
v.nextTemplateToken.call(void 0);
v.next.call(void 0);
}
- var hs;
+ var fs;
(function (e) {
e[(e.TSFunctionType = 0)] = 'TSFunctionType';
let s = 1;
e[(e.TSConstructorType = s)] = 'TSConstructorType';
let i = s + 1;
e[(e.TSAbstractConstructorType = i)] = 'TSAbstractConstructorType';
- })(hs || (hs = {}));
+ })(fs || (fs = {}));
function cl(e) {
- e === hs.TSAbstractConstructorType &&
+ e === fs.TSAbstractConstructorType &&
H.expectContextual.call(void 0, oe.ContextualKeyword._abstract),
- (e === hs.TSConstructorType || e === hs.TSAbstractConstructorType) &&
- H.expect.call(void 0, k.TokenType._new);
+ (e === fs.TSConstructorType || e === fs.TSAbstractConstructorType) &&
+ H.expect.call(void 0, T.TokenType._new);
let t = I.state.inDisallowConditionalTypesContext;
(I.state.inDisallowConditionalTypesContext = !1),
- ml(k.TokenType.arrow),
+ ml(T.TokenType.arrow),
(I.state.inDisallowConditionalTypesContext = t);
}
function CT() {
switch (I.state.type) {
- case k.TokenType.name:
+ case T.TokenType.name:
aT();
return;
- case k.TokenType._void:
- case k.TokenType._null:
+ case T.TokenType._void:
+ case T.TokenType._null:
v.next.call(void 0);
return;
- case k.TokenType.string:
- case k.TokenType.num:
- case k.TokenType.bigint:
- case k.TokenType.decimal:
- case k.TokenType._true:
- case k.TokenType._false:
+ case T.TokenType.string:
+ case T.TokenType.num:
+ case T.TokenType.bigint:
+ case T.TokenType.decimal:
+ case T.TokenType._true:
+ case T.TokenType._false:
_e.parseLiteral.call(void 0);
return;
- case k.TokenType.minus:
+ case T.TokenType.minus:
v.next.call(void 0), _e.parseLiteral.call(void 0);
return;
- case k.TokenType._this: {
+ case T.TokenType._this: {
cT(),
H.isContextual.call(void 0, oe.ContextualKeyword._is) &&
!H.hasPrecedingLineBreak.call(void 0) &&
lT();
return;
}
- case k.TokenType._typeof:
+ case T.TokenType._typeof:
uT();
return;
- case k.TokenType._import:
+ case T.TokenType._import:
Cp();
return;
- case k.TokenType.braceL:
+ case T.TokenType.braceL:
yT() ? vT() : mT();
return;
- case k.TokenType.bracketL:
+ case T.TokenType.bracketL:
xT();
return;
- case k.TokenType.parenL:
+ case T.TokenType.parenL:
_T();
return;
- case k.TokenType.backQuote:
+ case T.TokenType.backQuote:
bT();
return;
default:
- if (I.state.type & k.TokenType.IS_KEYWORD) {
+ if (I.state.type & T.TokenType.IS_KEYWORD) {
v.next.call(void 0),
(I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType.name);
+ T.TokenType.name);
return;
}
break;
@@ -18359,27 +18375,27 @@ If you need interactivity, consider converting part of this to a Client Componen
for (
CT();
!H.hasPrecedingLineBreak.call(void 0) &&
- v.eat.call(void 0, k.TokenType.bracketL);
+ v.eat.call(void 0, T.TokenType.bracketL);
)
- v.eat.call(void 0, k.TokenType.bracketR) ||
- (rt(), H.expect.call(void 0, k.TokenType.bracketR));
+ v.eat.call(void 0, T.TokenType.bracketR) ||
+ (rt(), H.expect.call(void 0, T.TokenType.bracketR));
}
function ST() {
if (
(H.expectContextual.call(void 0, oe.ContextualKeyword._infer),
_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType._extends))
+ v.match.call(void 0, T.TokenType._extends))
) {
let e = I.state.snapshot();
- H.expect.call(void 0, k.TokenType._extends);
+ H.expect.call(void 0, T.TokenType._extends);
let t = I.state.inDisallowConditionalTypesContext;
(I.state.inDisallowConditionalTypesContext = !0),
rt(),
(I.state.inDisallowConditionalTypesContext = t),
(I.state.error ||
(!I.state.inDisallowConditionalTypesContext &&
- v.match.call(void 0, k.TokenType.question))) &&
+ v.match.call(void 0, T.TokenType.question))) &&
I.state.restoreFromSnapshot(e);
}
}
@@ -18400,42 +18416,42 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function xp() {
if (
- (v.eat.call(void 0, k.TokenType.bitwiseAND),
+ (v.eat.call(void 0, T.TokenType.bitwiseAND),
pl(),
- v.match.call(void 0, k.TokenType.bitwiseAND))
+ v.match.call(void 0, T.TokenType.bitwiseAND))
)
- for (; v.eat.call(void 0, k.TokenType.bitwiseAND); ) pl();
+ for (; v.eat.call(void 0, T.TokenType.bitwiseAND); ) pl();
}
function IT() {
if (
- (v.eat.call(void 0, k.TokenType.bitwiseOR),
+ (v.eat.call(void 0, T.TokenType.bitwiseOR),
xp(),
- v.match.call(void 0, k.TokenType.bitwiseOR))
+ v.match.call(void 0, T.TokenType.bitwiseOR))
)
- for (; v.eat.call(void 0, k.TokenType.bitwiseOR); ) xp();
+ for (; v.eat.call(void 0, T.TokenType.bitwiseOR); ) xp();
}
function ET() {
- return v.match.call(void 0, k.TokenType.lessThan)
+ return v.match.call(void 0, T.TokenType.lessThan)
? !0
- : v.match.call(void 0, k.TokenType.parenL) && PT();
+ : v.match.call(void 0, T.TokenType.parenL) && PT();
}
function AT() {
if (
- v.match.call(void 0, k.TokenType.name) ||
- v.match.call(void 0, k.TokenType._this)
+ v.match.call(void 0, T.TokenType.name) ||
+ v.match.call(void 0, T.TokenType._this)
)
return v.next.call(void 0), !0;
if (
- v.match.call(void 0, k.TokenType.braceL) ||
- v.match.call(void 0, k.TokenType.bracketL)
+ v.match.call(void 0, T.TokenType.braceL) ||
+ v.match.call(void 0, T.TokenType.bracketL)
) {
let e = 1;
for (v.next.call(void 0); e > 0 && !I.state.error; )
- v.match.call(void 0, k.TokenType.braceL) ||
- v.match.call(void 0, k.TokenType.bracketL)
+ v.match.call(void 0, T.TokenType.braceL) ||
+ v.match.call(void 0, T.TokenType.bracketL)
? e++
- : (v.match.call(void 0, k.TokenType.braceR) ||
- v.match.call(void 0, k.TokenType.bracketR)) &&
+ : (v.match.call(void 0, T.TokenType.braceR) ||
+ v.match.call(void 0, T.TokenType.bracketR)) &&
e--,
v.next.call(void 0);
return !0;
@@ -18451,16 +18467,16 @@ If you need interactivity, consider converting part of this to a Client Componen
return (
v.next.call(void 0),
!!(
- v.match.call(void 0, k.TokenType.parenR) ||
- v.match.call(void 0, k.TokenType.ellipsis) ||
+ v.match.call(void 0, T.TokenType.parenR) ||
+ v.match.call(void 0, T.TokenType.ellipsis) ||
(AT() &&
- (v.match.call(void 0, k.TokenType.colon) ||
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.question) ||
- v.match.call(void 0, k.TokenType.eq) ||
- (v.match.call(void 0, k.TokenType.parenR) &&
+ (v.match.call(void 0, T.TokenType.colon) ||
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.question) ||
+ v.match.call(void 0, T.TokenType.eq) ||
+ (v.match.call(void 0, T.TokenType.parenR) &&
(v.next.call(void 0),
- v.match.call(void 0, k.TokenType.arrow)))))
+ v.match.call(void 0, T.TokenType.arrow)))))
)
);
}
@@ -18469,14 +18485,14 @@ If you need interactivity, consider converting part of this to a Client Componen
H.expect.call(void 0, e), OT() || rt(), v.popTypeContext.call(void 0, t);
}
function RT() {
- v.match.call(void 0, k.TokenType.colon) && Qi(k.TokenType.colon);
+ v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon);
}
function er() {
- v.match.call(void 0, k.TokenType.colon) && tr();
+ v.match.call(void 0, T.TokenType.colon) && tr();
}
Oe.tsTryParseTypeAnnotation = er;
function LT() {
- v.eat.call(void 0, k.TokenType.colon) && rt();
+ v.eat.call(void 0, T.TokenType.colon) && rt();
}
function OT() {
let e = I.state.snapshot();
@@ -18484,12 +18500,12 @@ If you need interactivity, consider converting part of this to a Client Componen
? (v.next.call(void 0),
H.eatContextual.call(void 0, oe.ContextualKeyword._is)
? (rt(), !0)
- : ul() || v.match.call(void 0, k.TokenType._this)
+ : ul() || v.match.call(void 0, T.TokenType._this)
? (v.next.call(void 0),
H.eatContextual.call(void 0, oe.ContextualKeyword._is) && rt(),
!0)
: (I.state.restoreFromSnapshot(e), !1))
- : ul() || v.match.call(void 0, k.TokenType._this)
+ : ul() || v.match.call(void 0, T.TokenType._this)
? (v.next.call(void 0),
H.isContextual.call(void 0, oe.ContextualKeyword._is) &&
!H.hasPrecedingLineBreak.call(void 0)
@@ -18499,7 +18515,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function tr() {
let e = v.pushTypeContext.call(void 0, 0);
- H.expect.call(void 0, k.TokenType.colon),
+ H.expect.call(void 0, T.TokenType.colon),
rt(),
v.popTypeContext.call(void 0, e);
}
@@ -18509,35 +18525,35 @@ If you need interactivity, consider converting part of this to a Client Componen
(hl(),
I.state.inDisallowConditionalTypesContext ||
H.hasPrecedingLineBreak.call(void 0) ||
- !v.eat.call(void 0, k.TokenType._extends))
+ !v.eat.call(void 0, T.TokenType._extends))
)
return;
let e = I.state.inDisallowConditionalTypesContext;
(I.state.inDisallowConditionalTypesContext = !0),
hl(),
(I.state.inDisallowConditionalTypesContext = e),
- H.expect.call(void 0, k.TokenType.question),
+ H.expect.call(void 0, T.TokenType.question),
rt(),
- H.expect.call(void 0, k.TokenType.colon),
+ H.expect.call(void 0, T.TokenType.colon),
rt();
}
Oe.tsParseType = rt;
function DT() {
return (
H.isContextual.call(void 0, oe.ContextualKeyword._abstract) &&
- v.lookaheadType.call(void 0) === k.TokenType._new
+ v.lookaheadType.call(void 0) === T.TokenType._new
);
}
function hl() {
if (ET()) {
- cl(hs.TSFunctionType);
+ cl(fs.TSFunctionType);
return;
}
- if (v.match.call(void 0, k.TokenType._new)) {
- cl(hs.TSConstructorType);
+ if (v.match.call(void 0, T.TokenType._new)) {
+ cl(fs.TSConstructorType);
return;
} else if (DT()) {
- cl(hs.TSAbstractConstructorType);
+ cl(fs.TSAbstractConstructorType);
return;
}
IT();
@@ -18546,52 +18562,52 @@ If you need interactivity, consider converting part of this to a Client Componen
function MT() {
let e = v.pushTypeContext.call(void 0, 1);
rt(),
- H.expect.call(void 0, k.TokenType.greaterThan),
+ H.expect.call(void 0, T.TokenType.greaterThan),
v.popTypeContext.call(void 0, e),
_e.parseMaybeUnary.call(void 0);
}
Oe.tsParseTypeAssertion = MT;
function FT() {
- if (v.eat.call(void 0, k.TokenType.jsxTagStart)) {
+ if (v.eat.call(void 0, T.TokenType.jsxTagStart)) {
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType.typeParameterStart;
+ T.TokenType.typeParameterStart;
let e = v.pushTypeContext.call(void 0, 1);
for (
;
- !v.match.call(void 0, k.TokenType.greaterThan) && !I.state.error;
+ !v.match.call(void 0, T.TokenType.greaterThan) && !I.state.error;
)
- rt(), v.eat.call(void 0, k.TokenType.comma);
+ rt(), v.eat.call(void 0, T.TokenType.comma);
rT.nextJSXTagToken.call(void 0), v.popTypeContext.call(void 0, e);
}
}
Oe.tsTryParseJSXTypeArgument = FT;
function Ip() {
- for (; !v.match.call(void 0, k.TokenType.braceL) && !I.state.error; )
- BT(), v.eat.call(void 0, k.TokenType.comma);
+ for (; !v.match.call(void 0, T.TokenType.braceL) && !I.state.error; )
+ BT(), v.eat.call(void 0, T.TokenType.comma);
}
function BT() {
- Zi(), v.match.call(void 0, k.TokenType.lessThan) && yi();
+ Zi(), v.match.call(void 0, T.TokenType.lessThan) && yi();
}
function VT() {
di.parseBindingIdentifier.call(void 0, !1),
mi(),
- v.eat.call(void 0, k.TokenType._extends) && Ip(),
+ v.eat.call(void 0, T.TokenType._extends) && Ip(),
Sp();
}
function jT() {
di.parseBindingIdentifier.call(void 0, !1),
mi(),
- H.expect.call(void 0, k.TokenType.eq),
+ H.expect.call(void 0, T.TokenType.eq),
rt(),
H.semicolon.call(void 0);
}
function $T() {
if (
- (v.match.call(void 0, k.TokenType.string)
+ (v.match.call(void 0, T.TokenType.string)
? _e.parseLiteral.call(void 0)
: _e.parseIdentifier.call(void 0),
- v.eat.call(void 0, k.TokenType.eq))
+ v.eat.call(void 0, T.TokenType.eq))
) {
let e = I.state.tokens.length - 1;
_e.parseMaybeAssign.call(void 0),
@@ -18601,33 +18617,33 @@ If you need interactivity, consider converting part of this to a Client Componen
function yl() {
for (
di.parseBindingIdentifier.call(void 0, !1),
- H.expect.call(void 0, k.TokenType.braceL);
- !v.eat.call(void 0, k.TokenType.braceR) && !I.state.error;
+ H.expect.call(void 0, T.TokenType.braceL);
+ !v.eat.call(void 0, T.TokenType.braceR) && !I.state.error;
)
- $T(), v.eat.call(void 0, k.TokenType.comma);
+ $T(), v.eat.call(void 0, T.TokenType.comma);
}
function Tl() {
- H.expect.call(void 0, k.TokenType.braceL),
- Rn.parseBlockBody.call(void 0, k.TokenType.braceR);
+ H.expect.call(void 0, T.TokenType.braceL),
+ Ln.parseBlockBody.call(void 0, T.TokenType.braceR);
}
function fl() {
di.parseBindingIdentifier.call(void 0, !1),
- v.eat.call(void 0, k.TokenType.dot) ? fl() : Tl();
+ v.eat.call(void 0, T.TokenType.dot) ? fl() : Tl();
}
function Ep() {
H.isContextual.call(void 0, oe.ContextualKeyword._global)
? _e.parseIdentifier.call(void 0)
- : v.match.call(void 0, k.TokenType.string)
+ : v.match.call(void 0, T.TokenType.string)
? _e.parseExprAtom.call(void 0)
: H.unexpected.call(void 0),
- v.match.call(void 0, k.TokenType.braceL)
+ v.match.call(void 0, T.TokenType.braceL)
? Tl()
: H.semicolon.call(void 0);
}
function Ap() {
di.parseImportedIdentifier.call(void 0),
- H.expect.call(void 0, k.TokenType.eq),
+ H.expect.call(void 0, T.TokenType.eq),
KT(),
H.semicolon.call(void 0);
}
@@ -18635,7 +18651,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function qT() {
return (
H.isContextual.call(void 0, oe.ContextualKeyword._require) &&
- v.lookaheadType.call(void 0) === k.TokenType.parenL
+ v.lookaheadType.call(void 0) === T.TokenType.parenL
);
}
function KT() {
@@ -18643,61 +18659,61 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function UT() {
H.expectContextual.call(void 0, oe.ContextualKeyword._require),
- H.expect.call(void 0, k.TokenType.parenL),
- v.match.call(void 0, k.TokenType.string) || H.unexpected.call(void 0),
+ H.expect.call(void 0, T.TokenType.parenL),
+ v.match.call(void 0, T.TokenType.string) || H.unexpected.call(void 0),
_e.parseLiteral.call(void 0),
- H.expect.call(void 0, k.TokenType.parenR);
+ H.expect.call(void 0, T.TokenType.parenR);
}
function HT() {
if (H.isLineTerminator.call(void 0)) return !1;
switch (I.state.type) {
- case k.TokenType._function: {
+ case T.TokenType._function: {
let e = v.pushTypeContext.call(void 0, 1);
v.next.call(void 0);
let t = I.state.start;
return (
- Rn.parseFunction.call(void 0, t, !0),
+ Ln.parseFunction.call(void 0, t, !0),
v.popTypeContext.call(void 0, e),
!0
);
}
- case k.TokenType._class: {
+ case T.TokenType._class: {
let e = v.pushTypeContext.call(void 0, 1);
return (
- Rn.parseClass.call(void 0, !0, !1),
+ Ln.parseClass.call(void 0, !0, !1),
v.popTypeContext.call(void 0, e),
!0
);
}
- case k.TokenType._const:
+ case T.TokenType._const:
if (
- v.match.call(void 0, k.TokenType._const) &&
+ v.match.call(void 0, T.TokenType._const) &&
H.isLookaheadContextual.call(void 0, oe.ContextualKeyword._enum)
) {
let e = v.pushTypeContext.call(void 0, 1);
return (
- H.expect.call(void 0, k.TokenType._const),
+ H.expect.call(void 0, T.TokenType._const),
H.expectContextual.call(void 0, oe.ContextualKeyword._enum),
(I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._enum),
+ T.TokenType._enum),
yl(),
v.popTypeContext.call(void 0, e),
!0
);
}
- case k.TokenType._var:
- case k.TokenType._let: {
+ case T.TokenType._var:
+ case T.TokenType._let: {
let e = v.pushTypeContext.call(void 0, 1);
return (
- Rn.parseVarStatement.call(
+ Ln.parseVarStatement.call(
void 0,
- I.state.type !== k.TokenType._var
+ I.state.type !== T.TokenType._var
),
v.popTypeContext.call(void 0, e),
!0
);
}
- case k.TokenType.name: {
+ case T.TokenType.name: {
let e = v.pushTypeContext.call(void 0, 1),
t = I.state.contextualKeyword,
s = !1;
@@ -18720,11 +18736,11 @@ If you need interactivity, consider converting part of this to a Client Componen
switch (e) {
case oe.ContextualKeyword._declare: {
let t = I.state.tokens.length - 1;
- if (HT()) return (I.state.tokens[t].type = k.TokenType._declare), !0;
+ if (HT()) return (I.state.tokens[t].type = T.TokenType._declare), !0;
break;
}
case oe.ContextualKeyword._global:
- if (v.match.call(void 0, k.TokenType.braceL)) return Tl(), !0;
+ if (v.match.call(void 0, T.TokenType.braceL)) return Tl(), !0;
break;
default:
return po(e, !1);
@@ -18734,48 +18750,48 @@ If you need interactivity, consider converting part of this to a Client Componen
function po(e, t) {
switch (e) {
case oe.ContextualKeyword._abstract:
- if (fi(t) && v.match.call(void 0, k.TokenType._class))
+ if (fi(t) && v.match.call(void 0, T.TokenType._class))
return (
(I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._abstract),
- Rn.parseClass.call(void 0, !0, !1),
+ T.TokenType._abstract),
+ Ln.parseClass.call(void 0, !0, !1),
!0
);
break;
case oe.ContextualKeyword._enum:
- if (fi(t) && v.match.call(void 0, k.TokenType.name))
+ if (fi(t) && v.match.call(void 0, T.TokenType.name))
return (
(I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._enum),
+ T.TokenType._enum),
yl(),
!0
);
break;
case oe.ContextualKeyword._interface:
- if (fi(t) && v.match.call(void 0, k.TokenType.name)) {
+ if (fi(t) && v.match.call(void 0, T.TokenType.name)) {
let s = v.pushTypeContext.call(void 0, t ? 2 : 1);
return VT(), v.popTypeContext.call(void 0, s), !0;
}
break;
case oe.ContextualKeyword._module:
if (fi(t)) {
- if (v.match.call(void 0, k.TokenType.string)) {
+ if (v.match.call(void 0, T.TokenType.string)) {
let s = v.pushTypeContext.call(void 0, t ? 2 : 1);
return Ep(), v.popTypeContext.call(void 0, s), !0;
- } else if (v.match.call(void 0, k.TokenType.name)) {
+ } else if (v.match.call(void 0, T.TokenType.name)) {
let s = v.pushTypeContext.call(void 0, t ? 2 : 1);
return fl(), v.popTypeContext.call(void 0, s), !0;
}
}
break;
case oe.ContextualKeyword._namespace:
- if (fi(t) && v.match.call(void 0, k.TokenType.name)) {
+ if (fi(t) && v.match.call(void 0, T.TokenType.name)) {
let s = v.pushTypeContext.call(void 0, t ? 2 : 1);
return fl(), v.popTypeContext.call(void 0, s), !0;
}
break;
case oe.ContextualKeyword._type:
- if (fi(t) && v.match.call(void 0, k.TokenType.name)) {
+ if (fi(t) && v.match.call(void 0, T.TokenType.name)) {
let s = v.pushTypeContext.call(void 0, t ? 2 : 1);
return jT(), v.popTypeContext.call(void 0, s), !0;
}
@@ -18792,31 +18808,31 @@ If you need interactivity, consider converting part of this to a Client Componen
let e = I.state.snapshot();
return (
uo(),
- Rn.parseFunctionParams.call(void 0),
+ Ln.parseFunctionParams.call(void 0),
RT(),
- H.expect.call(void 0, k.TokenType.arrow),
+ H.expect.call(void 0, T.TokenType.arrow),
I.state.error
? (I.state.restoreFromSnapshot(e), !1)
: (_e.parseFunctionBody.call(void 0, !0), !0)
);
}
function kl() {
- I.state.type === k.TokenType.bitShiftL &&
- ((I.state.pos -= 1), v.finishToken.call(void 0, k.TokenType.lessThan)),
+ I.state.type === T.TokenType.bitShiftL &&
+ ((I.state.pos -= 1), v.finishToken.call(void 0, T.TokenType.lessThan)),
yi();
}
function yi() {
let e = v.pushTypeContext.call(void 0, 0);
for (
- H.expect.call(void 0, k.TokenType.lessThan);
- !v.eat.call(void 0, k.TokenType.greaterThan) && !I.state.error;
+ H.expect.call(void 0, T.TokenType.lessThan);
+ !v.eat.call(void 0, T.TokenType.greaterThan) && !I.state.error;
)
- rt(), v.eat.call(void 0, k.TokenType.comma);
+ rt(), v.eat.call(void 0, T.TokenType.comma);
v.popTypeContext.call(void 0, e);
}
function zT() {
- if (v.match.call(void 0, k.TokenType.name))
+ if (v.match.call(void 0, T.TokenType.name))
switch (I.state.contextualKeyword) {
case oe.ContextualKeyword._abstract:
case oe.ContextualKeyword._declare:
@@ -18834,8 +18850,8 @@ If you need interactivity, consider converting part of this to a Client Componen
Oe.tsIsDeclarationStart = zT;
function XT(e, t) {
if (
- (v.match.call(void 0, k.TokenType.colon) && Qi(k.TokenType.colon),
- !v.match.call(void 0, k.TokenType.braceL) &&
+ (v.match.call(void 0, T.TokenType.colon) && Qi(T.TokenType.colon),
+ !v.match.call(void 0, T.TokenType.braceL) &&
H.isLineTerminator.call(void 0))
) {
let s = I.state.tokens.length - 1;
@@ -18843,8 +18859,8 @@ If you need interactivity, consider converting part of this to a Client Componen
;
s >= 0 &&
(I.state.tokens[s].start >= e ||
- I.state.tokens[s].type === k.TokenType._default ||
- I.state.tokens[s].type === k.TokenType._export);
+ I.state.tokens[s].type === T.TokenType._default ||
+ I.state.tokens[s].type === T.TokenType._export);
)
(I.state.tokens[s].isType = !0), s--;
@@ -18856,29 +18872,29 @@ If you need interactivity, consider converting part of this to a Client Componen
function YT(e, t, s) {
if (
!H.hasPrecedingLineBreak.call(void 0) &&
- v.eat.call(void 0, k.TokenType.bang)
+ v.eat.call(void 0, T.TokenType.bang)
) {
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType.nonNullAssertion;
+ T.TokenType.nonNullAssertion;
return;
}
if (
- v.match.call(void 0, k.TokenType.lessThan) ||
- v.match.call(void 0, k.TokenType.bitShiftL)
+ v.match.call(void 0, T.TokenType.lessThan) ||
+ v.match.call(void 0, T.TokenType.bitShiftL)
) {
let i = I.state.snapshot();
if (!t && _e.atPossibleAsync.call(void 0) && GT()) return;
if (
(kl(),
- !t && v.eat.call(void 0, k.TokenType.parenL)
+ !t && v.eat.call(void 0, T.TokenType.parenL)
? ((I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex =
e),
_e.parseCallExpressionArguments.call(void 0))
- : v.match.call(void 0, k.TokenType.backQuote)
+ : v.match.call(void 0, T.TokenType.backQuote)
? _e.parseTemplate.call(void 0)
- : (I.state.type === k.TokenType.greaterThan ||
- (I.state.type !== k.TokenType.parenL &&
- I.state.type & k.TokenType.IS_EXPRESSION_START &&
+ : (I.state.type === T.TokenType.greaterThan ||
+ (I.state.type !== T.TokenType.parenL &&
+ I.state.type & T.TokenType.IS_EXPRESSION_START &&
!H.hasPrecedingLineBreak.call(void 0))) &&
H.unexpected.call(void 0),
I.state.error)
@@ -18887,27 +18903,27 @@ If you need interactivity, consider converting part of this to a Client Componen
else return;
} else
!t &&
- v.match.call(void 0, k.TokenType.questionDot) &&
- v.lookaheadType.call(void 0) === k.TokenType.lessThan &&
+ v.match.call(void 0, T.TokenType.questionDot) &&
+ v.lookaheadType.call(void 0) === T.TokenType.lessThan &&
(v.next.call(void 0),
(I.state.tokens[e].isOptionalChainStart = !0),
(I.state.tokens[I.state.tokens.length - 1].subscriptStartIndex = e),
yi(),
- H.expect.call(void 0, k.TokenType.parenL),
+ H.expect.call(void 0, T.TokenType.parenL),
_e.parseCallExpressionArguments.call(void 0));
_e.baseParseSubscript.call(void 0, e, t, s);
}
Oe.tsParseSubscript = YT;
function JT() {
- if (v.eat.call(void 0, k.TokenType._import))
+ if (v.eat.call(void 0, T.TokenType._import))
return (
H.isContextual.call(void 0, oe.ContextualKeyword._type) &&
- v.lookaheadType.call(void 0) !== k.TokenType.eq &&
+ v.lookaheadType.call(void 0) !== T.TokenType.eq &&
H.expectContextual.call(void 0, oe.ContextualKeyword._type),
Ap(),
!0
);
- if (v.eat.call(void 0, k.TokenType.eq))
+ if (v.eat.call(void 0, T.TokenType.eq))
return _e.parseExpression.call(void 0), H.semicolon.call(void 0), !0;
if (H.eatContextual.call(void 0, oe.ContextualKeyword._as))
return (
@@ -18918,7 +18934,7 @@ If you need interactivity, consider converting part of this to a Client Componen
);
if (H.isContextual.call(void 0, oe.ContextualKeyword._type)) {
let e = v.lookaheadType.call(void 0);
- (e === k.TokenType.braceL || e === k.TokenType.star) &&
+ (e === T.TokenType.braceL || e === T.TokenType.star) &&
v.next.call(void 0);
}
return !1;
@@ -18927,8 +18943,8 @@ If you need interactivity, consider converting part of this to a Client Componen
function QT() {
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
I.state.tokens[I.state.tokens.length - 1].identifierRole =
v.IdentifierRole.ImportDeclaration;
@@ -18936,8 +18952,8 @@ If you need interactivity, consider converting part of this to a Client Componen
}
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
(I.state.tokens[I.state.tokens.length - 1].identifierRole =
v.IdentifierRole.ImportDeclaration),
@@ -18947,8 +18963,8 @@ If you need interactivity, consider converting part of this to a Client Componen
}
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
(I.state.tokens[I.state.tokens.length - 3].identifierRole =
v.IdentifierRole.ImportAccess),
@@ -18970,8 +18986,8 @@ If you need interactivity, consider converting part of this to a Client Componen
function ZT() {
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
I.state.tokens[I.state.tokens.length - 1].identifierRole =
v.IdentifierRole.ExportAccess;
@@ -18979,8 +18995,8 @@ If you need interactivity, consider converting part of this to a Client Componen
}
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
(I.state.tokens[I.state.tokens.length - 1].identifierRole =
v.IdentifierRole.ExportAccess),
@@ -18990,8 +19006,8 @@ If you need interactivity, consider converting part of this to a Client Componen
}
if (
(_e.parseIdentifier.call(void 0),
- v.match.call(void 0, k.TokenType.comma) ||
- v.match.call(void 0, k.TokenType.braceR))
+ v.match.call(void 0, T.TokenType.comma) ||
+ v.match.call(void 0, T.TokenType.braceR))
) {
I.state.tokens[I.state.tokens.length - 3].identifierRole =
v.IdentifierRole.ExportAccess;
@@ -19009,12 +19025,12 @@ If you need interactivity, consider converting part of this to a Client Componen
function ek() {
if (
H.isContextual.call(void 0, oe.ContextualKeyword._abstract) &&
- v.lookaheadType.call(void 0) === k.TokenType._class
+ v.lookaheadType.call(void 0) === T.TokenType._class
)
return (
- (I.state.type = k.TokenType._abstract),
+ (I.state.type = T.TokenType._abstract),
v.next.call(void 0),
- Rn.parseClass.call(void 0, !0, !0),
+ Ln.parseClass.call(void 0, !0, !0),
!0
);
if (H.isContextual.call(void 0, oe.ContextualKeyword._interface)) {
@@ -19029,17 +19045,17 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Oe.tsTryParseExportDefaultExpression = ek;
function tk() {
- if (I.state.type === k.TokenType._const) {
+ if (I.state.type === T.TokenType._const) {
let e = v.lookaheadTypeAndKeyword.call(void 0);
if (
- e.type === k.TokenType.name &&
+ e.type === T.TokenType.name &&
e.contextualKeyword === oe.ContextualKeyword._enum
)
return (
- H.expect.call(void 0, k.TokenType._const),
+ H.expect.call(void 0, T.TokenType._const),
H.expectContextual.call(void 0, oe.ContextualKeyword._enum),
(I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._enum),
+ T.TokenType._enum),
yl(),
!0
);
@@ -19072,9 +19088,9 @@ If you need interactivity, consider converting part of this to a Client Componen
function ik() {
let e = H.eatContextual.call(void 0, oe.ContextualKeyword._declare);
e &&
- (I.state.tokens[I.state.tokens.length - 1].type = k.TokenType._declare);
+ (I.state.tokens[I.state.tokens.length - 1].type = T.TokenType._declare);
let t = !1;
- if (v.match.call(void 0, k.TokenType.name))
+ if (v.match.call(void 0, T.TokenType.name))
if (e) {
let s = v.pushTypeContext.call(void 0, 2);
(t = gp()), v.popTypeContext.call(void 0, s);
@@ -19082,20 +19098,20 @@ If you need interactivity, consider converting part of this to a Client Componen
if (!t)
if (e) {
let s = v.pushTypeContext.call(void 0, 2);
- Rn.parseStatement.call(void 0, !0), v.popTypeContext.call(void 0, s);
- } else Rn.parseStatement.call(void 0, !0);
+ Ln.parseStatement.call(void 0, !0), v.popTypeContext.call(void 0, s);
+ } else Ln.parseStatement.call(void 0, !0);
}
Oe.tsParseExportDeclaration = ik;
function rk(e) {
if (
(e &&
- (v.match.call(void 0, k.TokenType.lessThan) ||
- v.match.call(void 0, k.TokenType.bitShiftL)) &&
+ (v.match.call(void 0, T.TokenType.lessThan) ||
+ v.match.call(void 0, T.TokenType.bitShiftL)) &&
kl(),
H.eatContextual.call(void 0, oe.ContextualKeyword._implements))
) {
I.state.tokens[I.state.tokens.length - 1].type =
- k.TokenType._implements;
+ T.TokenType._implements;
let t = v.pushTypeContext.call(void 0, 1);
Ip(), v.popTypeContext.call(void 0, t);
}
@@ -19112,13 +19128,13 @@ If you need interactivity, consider converting part of this to a Client Componen
function lk() {
let e = v.pushTypeContext.call(void 0, 0);
H.hasPrecedingLineBreak.call(void 0) ||
- v.eat.call(void 0, k.TokenType.bang),
+ v.eat.call(void 0, T.TokenType.bang),
er(),
v.popTypeContext.call(void 0, e);
}
Oe.tsAfterParseVarHead = lk;
function ck() {
- v.match.call(void 0, k.TokenType.colon) && tr();
+ v.match.call(void 0, T.TokenType.colon) && tr();
}
Oe.tsStartParseAsyncArrowFromCallExpression = ck;
function uk(e, t) {
@@ -19126,14 +19142,14 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Oe.tsParseMaybeAssign = uk;
function Pp(e, t) {
- if (!v.match.call(void 0, k.TokenType.lessThan))
+ if (!v.match.call(void 0, T.TokenType.lessThan))
return _e.baseParseMaybeAssign.call(void 0, e, t);
let s = I.state.snapshot(),
i = _e.baseParseMaybeAssign.call(void 0, e, t);
if (I.state.error) I.state.restoreFromSnapshot(s);
else return i;
return (
- (I.state.type = k.TokenType.typeParameterStart),
+ (I.state.type = T.TokenType.typeParameterStart),
uo(),
(i = _e.baseParseMaybeAssign.call(void 0, e, t)),
i || H.unexpected.call(void 0),
@@ -19142,7 +19158,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Oe.tsParseMaybeAssignWithJSX = Pp;
function Np(e, t) {
- if (!v.match.call(void 0, k.TokenType.lessThan))
+ if (!v.match.call(void 0, T.TokenType.lessThan))
return _e.baseParseMaybeAssign.call(void 0, e, t);
let s = I.state.snapshot();
uo();
@@ -19154,28 +19170,28 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Oe.tsParseMaybeAssignWithoutJSX = Np;
function pk() {
- if (v.match.call(void 0, k.TokenType.colon)) {
+ if (v.match.call(void 0, T.TokenType.colon)) {
let e = I.state.snapshot();
- Qi(k.TokenType.colon),
+ Qi(T.TokenType.colon),
H.canInsertSemicolon.call(void 0) && H.unexpected.call(void 0),
- v.match.call(void 0, k.TokenType.arrow) || H.unexpected.call(void 0),
+ v.match.call(void 0, T.TokenType.arrow) || H.unexpected.call(void 0),
I.state.error && I.state.restoreFromSnapshot(e);
}
- return v.eat.call(void 0, k.TokenType.arrow);
+ return v.eat.call(void 0, T.TokenType.arrow);
}
Oe.tsParseArrow = pk;
function hk() {
let e = v.pushTypeContext.call(void 0, 0);
- v.eat.call(void 0, k.TokenType.question),
+ v.eat.call(void 0, T.TokenType.question),
er(),
v.popTypeContext.call(void 0, e);
}
Oe.tsParseAssignableListItemTypes = hk;
function fk() {
- (v.match.call(void 0, k.TokenType.lessThan) ||
- v.match.call(void 0, k.TokenType.bitShiftL)) &&
+ (v.match.call(void 0, T.TokenType.lessThan) ||
+ v.match.call(void 0, T.TokenType.bitShiftL)) &&
kl(),
- Rn.baseParseMaybeDecoratorArguments.call(void 0);
+ Ln.baseParseMaybeDecoratorArguments.call(void 0);
}
Oe.tsParseMaybeDecoratorArguments = fk;
});
@@ -19185,9 +19201,9 @@ If you need interactivity, consider converting part of this to a Client Componen
var Se = xt(),
Me = be(),
fe = Zt(),
- ho = Ns(),
- fs = cs(),
- at = Qt(),
+ ho = Rs(),
+ ds = us(),
+ lt = Qt(),
Rp = li(),
dk = hi();
function mk() {
@@ -19195,13 +19211,13 @@ If you need interactivity, consider converting part of this to a Client Componen
t = !1;
for (;;) {
if (fe.state.pos >= fe.input.length) {
- fs.unexpected.call(void 0, 'Unterminated JSX contents');
+ ds.unexpected.call(void 0, 'Unterminated JSX contents');
return;
}
let s = fe.input.charCodeAt(fe.state.pos);
- if (s === at.charCodes.lessThan || s === at.charCodes.leftCurlyBrace) {
+ if (s === lt.charCodes.lessThan || s === lt.charCodes.leftCurlyBrace) {
if (fe.state.pos === fe.state.start) {
- if (s === at.charCodes.lessThan) {
+ if (s === lt.charCodes.lessThan) {
fe.state.pos++,
Se.finishToken.call(void 0, Me.TokenType.jsxTagStart);
return;
@@ -19214,11 +19230,11 @@ If you need interactivity, consider converting part of this to a Client Componen
: Se.finishToken.call(void 0, Me.TokenType.jsxText);
return;
}
- s === at.charCodes.lineFeed
+ s === lt.charCodes.lineFeed
? (e = !0)
- : s !== at.charCodes.space &&
- s !== at.charCodes.carriageReturn &&
- s !== at.charCodes.tab &&
+ : s !== lt.charCodes.space &&
+ s !== lt.charCodes.carriageReturn &&
+ s !== lt.charCodes.tab &&
(t = !0),
fe.state.pos++;
}
@@ -19226,7 +19242,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function yk(e) {
for (fe.state.pos++; ; ) {
if (fe.state.pos >= fe.input.length) {
- fs.unexpected.call(void 0, 'Unterminated string constant');
+ ds.unexpected.call(void 0, 'Unterminated string constant');
return;
}
if (fe.input.charCodeAt(fe.state.pos) === e) {
@@ -19241,11 +19257,11 @@ If you need interactivity, consider converting part of this to a Client Componen
let e;
do {
if (fe.state.pos > fe.input.length) {
- fs.unexpected.call(void 0, 'Unexpectedly reached the end of input.');
+ ds.unexpected.call(void 0, 'Unexpectedly reached the end of input.');
return;
}
e = fe.input.charCodeAt(++fe.state.pos);
- } while (Rp.IS_IDENTIFIER_CHAR[e] || e === at.charCodes.dash);
+ } while (Rp.IS_IDENTIFIER_CHAR[e] || e === lt.charCodes.dash);
Se.finishToken.call(void 0, Me.TokenType.jsxName);
}
function xl() {
@@ -19266,8 +19282,8 @@ If you need interactivity, consider converting part of this to a Client Componen
if (!t) {
let s = fe.state.tokens[e],
i = fe.input.charCodeAt(s.start);
- i >= at.charCodes.lowercaseA &&
- i <= at.charCodes.lowercaseZ &&
+ i >= lt.charCodes.lowercaseA &&
+ i <= lt.charCodes.lowercaseZ &&
(s.identifierRole = null);
}
}
@@ -19283,14 +19299,14 @@ If you need interactivity, consider converting part of this to a Client Componen
dn();
return;
default:
- fs.unexpected.call(
+ ds.unexpected.call(
void 0,
'JSX value should be either an expression or a quoted JSX text'
);
}
}
function vk() {
- fs.expect.call(void 0, Me.TokenType.ellipsis),
+ ds.expect.call(void 0, Me.TokenType.ellipsis),
ho.parseExpression.call(void 0);
}
function xk(e) {
@@ -19306,16 +19322,16 @@ If you need interactivity, consider converting part of this to a Client Componen
) {
if (Se.eat.call(void 0, Me.TokenType.braceL)) {
(t = !0),
- fs.expect.call(void 0, Me.TokenType.ellipsis),
+ ds.expect.call(void 0, Me.TokenType.ellipsis),
ho.parseMaybeAssign.call(void 0),
dn();
continue;
}
t &&
fe.state.end - fe.state.start === 3 &&
- fe.input.charCodeAt(fe.state.start) === at.charCodes.lowercaseK &&
- fe.input.charCodeAt(fe.state.start + 1) === at.charCodes.lowercaseE &&
- fe.input.charCodeAt(fe.state.start + 2) === at.charCodes.lowercaseY &&
+ fe.input.charCodeAt(fe.state.start) === lt.charCodes.lowercaseK &&
+ fe.input.charCodeAt(fe.state.start + 1) === lt.charCodes.lowercaseE &&
+ fe.input.charCodeAt(fe.state.start + 2) === lt.charCodes.lowercaseY &&
(fe.state.tokens[e].jsxRole = Se.JSXRole.KeyAfterPropSpread),
Lp(Se.IdentifierRole.ObjectKey),
Se.match.call(void 0, Me.TokenType.eq) && (dn(), kk());
@@ -19363,7 +19379,7 @@ If you need interactivity, consider converting part of this to a Client Componen
Ti());
break;
default:
- fs.unexpected.call(void 0);
+ ds.unexpected.call(void 0);
return;
}
}
@@ -19378,35 +19394,35 @@ If you need interactivity, consider converting part of this to a Client Componen
let e = fe.input.charCodeAt(fe.state.pos);
if (Rp.IS_IDENTIFIER_START[e]) Tk();
else if (
- e === at.charCodes.quotationMark ||
- e === at.charCodes.apostrophe
+ e === lt.charCodes.quotationMark ||
+ e === lt.charCodes.apostrophe
)
yk(e);
else
switch ((++fe.state.pos, e)) {
- case at.charCodes.greaterThan:
+ case lt.charCodes.greaterThan:
Se.finishToken.call(void 0, Me.TokenType.jsxTagEnd);
break;
- case at.charCodes.lessThan:
+ case lt.charCodes.lessThan:
Se.finishToken.call(void 0, Me.TokenType.jsxTagStart);
break;
- case at.charCodes.slash:
+ case lt.charCodes.slash:
Se.finishToken.call(void 0, Me.TokenType.slash);
break;
- case at.charCodes.equalsTo:
+ case lt.charCodes.equalsTo:
Se.finishToken.call(void 0, Me.TokenType.eq);
break;
- case at.charCodes.leftCurlyBrace:
+ case lt.charCodes.leftCurlyBrace:
Se.finishToken.call(void 0, Me.TokenType.braceL);
break;
- case at.charCodes.dot:
+ case lt.charCodes.dot:
Se.finishToken.call(void 0, Me.TokenType.dot);
break;
- case at.charCodes.colon:
+ case lt.charCodes.colon:
Se.finishToken.call(void 0, Me.TokenType.colon);
break;
default:
- fs.unexpected.call(void 0);
+ ds.unexpected.call(void 0);
}
}
fo.nextJSXTagToken = dn;
@@ -19422,7 +19438,7 @@ If you need interactivity, consider converting part of this to a Client Componen
var mo = xt(),
ki = be(),
Fp = Zt(),
- _k = Ns(),
+ _k = Rs(),
bk = Ji(),
Ck = hi();
function wk(e) {
@@ -19447,23 +19463,23 @@ If you need interactivity, consider converting part of this to a Client Componen
}
yo.typedParseParenItem = Sk;
});
- var Ns = Z((et) => {
+ var Rs = Z((et) => {
'use strict';
Object.defineProperty(et, '__esModule', {value: !0});
- var Yn = Ji(),
+ var Jn = Ji(),
Ik = vl(),
Vp = Bp(),
- ms = hi(),
+ ys = hi(),
K = xt(),
- zn = It(),
+ Xn = It(),
jp = qr(),
B = be(),
$p = Qt(),
Ek = li(),
j = Zt(),
- ds = lo(),
- gn = nr(),
- Pe = cs(),
+ ms = lo(),
+ _n = nr(),
+ Pe = us(),
vo = class {
constructor(t) {
this.stop = t;
@@ -19477,9 +19493,9 @@ If you need interactivity, consider converting part of this to a Client Componen
et.parseExpression = sr;
function mn(e = !1, t = !1) {
return j.isTypeScriptEnabled
- ? ms.tsParseMaybeAssign.call(void 0, e, t)
+ ? ys.tsParseMaybeAssign.call(void 0, e, t)
: j.isFlowEnabled
- ? Yn.flowParseMaybeAssign.call(void 0, e, t)
+ ? Jn.flowParseMaybeAssign.call(void 0, e, t)
: qp(e, t);
}
et.parseMaybeAssign = mn;
@@ -19520,11 +19536,11 @@ If you need interactivity, consider converting part of this to a Client Componen
j.isTypeScriptEnabled &&
(B.TokenType._in & B.TokenType.PRECEDENCE_MASK) > t &&
!Pe.hasPrecedingLineBreak.call(void 0) &&
- (Pe.eatContextual.call(void 0, zn.ContextualKeyword._as) ||
- Pe.eatContextual.call(void 0, zn.ContextualKeyword._satisfies))
+ (Pe.eatContextual.call(void 0, Xn.ContextualKeyword._as) ||
+ Pe.eatContextual.call(void 0, Xn.ContextualKeyword._satisfies))
) {
let r = K.pushTypeContext.call(void 0, 1);
- ms.tsParseType.call(void 0),
+ ys.tsParseType.call(void 0),
K.popTypeContext.call(void 0, r),
K.rescan_gt.call(void 0),
To(e, t, s);
@@ -19551,9 +19567,9 @@ If you need interactivity, consider converting part of this to a Client Componen
!j.isJSXEnabled &&
K.eat.call(void 0, B.TokenType.lessThan)
)
- return ms.tsParseTypeAssertion.call(void 0), !1;
+ return ys.tsParseTypeAssertion.call(void 0), !1;
if (
- Pe.isContextual.call(void 0, zn.ContextualKeyword._module) &&
+ Pe.isContextual.call(void 0, Xn.ContextualKeyword._module) &&
K.lookaheadCharCode.call(void 0) === $p.charCodes.leftCurlyBrace &&
!Pe.hasFollowingLineBreak.call(void 0)
)
@@ -19585,7 +19601,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
et.parseExprSubscripts = Up;
function bl(e, t = !1) {
- j.isFlowEnabled ? Yn.flowParseSubscripts.call(void 0, e, t) : Hp(e, t);
+ j.isFlowEnabled ? Jn.flowParseSubscripts.call(void 0, e, t) : Hp(e, t);
}
function Hp(e, t = !1) {
let s = new vo(!1);
@@ -19595,9 +19611,9 @@ If you need interactivity, consider converting part of this to a Client Componen
et.baseParseSubscripts = Hp;
function Rk(e, t, s) {
j.isTypeScriptEnabled
- ? ms.tsParseSubscript.call(void 0, e, t, s)
+ ? ys.tsParseSubscript.call(void 0, e, t, s)
: j.isFlowEnabled
- ? Yn.flowParseSubscript.call(void 0, e, t, s)
+ ? Jn.flowParseSubscript.call(void 0, e, t, s)
: Wp(e, t, s);
}
function Wp(e, t, s) {
@@ -19639,7 +19655,7 @@ If you need interactivity, consider converting part of this to a Client Componen
(j.state.restoreFromSnapshot(i),
(s.stop = !0),
j.state.scopeDepth++,
- gn.parseFunctionParams.call(void 0),
+ _n.parseFunctionParams.call(void 0),
Ok(r));
} else {
K.next.call(void 0),
@@ -19655,7 +19671,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function Gp() {
return (
j.state.tokens[j.state.tokens.length - 1].contextualKeyword ===
- zn.ContextualKeyword._async && !Pe.canInsertSemicolon.call(void 0)
+ Xn.ContextualKeyword._async && !Pe.canInsertSemicolon.call(void 0)
);
}
et.atPossibleAsync = Gp;
@@ -19680,9 +19696,9 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function Ok(e) {
j.isTypeScriptEnabled
- ? ms.tsStartParseAsyncArrowFromCallExpression.call(void 0)
+ ? ys.tsStartParseAsyncArrowFromCallExpression.call(void 0)
: j.isFlowEnabled &&
- Yn.flowStartParseAsyncArrowFromCallExpression.call(void 0),
+ Jn.flowStartParseAsyncArrowFromCallExpression.call(void 0),
Pe.expect.call(void 0, B.TokenType.arrow),
ir(e);
}
@@ -19691,7 +19707,7 @@ If you need interactivity, consider converting part of this to a Client Componen
_o(), bl(e, !0);
}
function _o() {
- if (K.eat.call(void 0, B.TokenType.modulo)) return Xn(), !1;
+ if (K.eat.call(void 0, B.TokenType.modulo)) return Yn(), !1;
if (
K.match.call(void 0, B.TokenType.jsxText) ||
K.match.call(void 0, B.TokenType.jsxEmptyText)
@@ -19727,7 +19743,7 @@ If you need interactivity, consider converting part of this to a Client Componen
((j.state.tokens[j.state.tokens.length - 1].type =
B.TokenType.name),
K.next.call(void 0),
- Xn()),
+ Yn()),
!1
);
case B.TokenType.name: {
@@ -19735,30 +19751,30 @@ If you need interactivity, consider converting part of this to a Client Componen
s = j.state.start,
i = j.state.contextualKeyword;
return (
- Xn(),
- i === zn.ContextualKeyword._await
+ Yn(),
+ i === Xn.ContextualKeyword._await
? (Uk(), !1)
- : i === zn.ContextualKeyword._async &&
+ : i === Xn.ContextualKeyword._async &&
K.match.call(void 0, B.TokenType._function) &&
!Pe.canInsertSemicolon.call(void 0)
- ? (K.next.call(void 0), gn.parseFunction.call(void 0, s, !1), !1)
+ ? (K.next.call(void 0), _n.parseFunction.call(void 0, s, !1), !1)
: e &&
- i === zn.ContextualKeyword._async &&
+ i === Xn.ContextualKeyword._async &&
!Pe.canInsertSemicolon.call(void 0) &&
K.match.call(void 0, B.TokenType.name)
? (j.state.scopeDepth++,
- ds.parseBindingIdentifier.call(void 0, !1),
+ ms.parseBindingIdentifier.call(void 0, !1),
Pe.expect.call(void 0, B.TokenType.arrow),
ir(t),
!0)
: K.match.call(void 0, B.TokenType._do) &&
!Pe.canInsertSemicolon.call(void 0)
- ? (K.next.call(void 0), gn.parseBlock.call(void 0), !1)
+ ? (K.next.call(void 0), _n.parseBlock.call(void 0), !1)
: e &&
!Pe.canInsertSemicolon.call(void 0) &&
K.match.call(void 0, B.TokenType.arrow)
? (j.state.scopeDepth++,
- ds.markPriorBindingIdentifier.call(void 0, !1),
+ ms.markPriorBindingIdentifier.call(void 0, !1),
Pe.expect.call(void 0, B.TokenType.arrow),
ir(t),
!0)
@@ -19768,7 +19784,7 @@ If you need interactivity, consider converting part of this to a Client Componen
);
}
case B.TokenType._do:
- return K.next.call(void 0), gn.parseBlock.call(void 0), !1;
+ return K.next.call(void 0), _n.parseBlock.call(void 0), !1;
case B.TokenType.parenL:
return Xp(e);
case B.TokenType.bracketL:
@@ -19778,9 +19794,9 @@ If you need interactivity, consider converting part of this to a Client Componen
case B.TokenType._function:
return Dk(), !1;
case B.TokenType.at:
- gn.parseDecorators.call(void 0);
+ _n.parseDecorators.call(void 0);
case B.TokenType._class:
- return gn.parseClass.call(void 0, !1), !1;
+ return _n.parseClass.call(void 0, !1), !1;
case B.TokenType._new:
return Bk(), !1;
case B.TokenType.backQuote:
@@ -19802,13 +19818,13 @@ If you need interactivity, consider converting part of this to a Client Componen
}
et.parseExprAtom = _o;
function xo() {
- K.eat.call(void 0, B.TokenType.hash), Xn();
+ K.eat.call(void 0, B.TokenType.hash), Yn();
}
function Dk() {
let e = j.state.start;
- Xn(),
- K.eat.call(void 0, B.TokenType.dot) && Xn(),
- gn.parseFunction.call(void 0, e, !1);
+ Yn(),
+ K.eat.call(void 0, B.TokenType.dot) && Yn(),
+ _n.parseFunction.call(void 0, e, !1);
}
function zp() {
K.next.call(void 0);
@@ -19833,7 +19849,7 @@ If you need interactivity, consider converting part of this to a Client Componen
)
break;
if (K.match.call(void 0, B.TokenType.ellipsis)) {
- ds.parseRest.call(void 0, !1), wl();
+ ms.parseRest.call(void 0, !1), wl();
break;
} else mn(!1, !0);
}
@@ -19842,7 +19858,7 @@ If you need interactivity, consider converting part of this to a Client Componen
e && Fk() && gl()
? (j.state.restoreFromSnapshot(t),
j.state.scopeDepth++,
- gn.parseFunctionParams.call(void 0),
+ _n.parseFunctionParams.call(void 0),
gl(),
ir(s),
j.state.error ? (j.state.restoreFromSnapshot(t), Xp(!1), !1) : !0)
@@ -19857,9 +19873,9 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function gl() {
return j.isTypeScriptEnabled
- ? ms.tsParseArrow.call(void 0)
+ ? ys.tsParseArrow.call(void 0)
: j.isFlowEnabled
- ? Yn.flowParseArrow.call(void 0)
+ ? Jn.flowParseArrow.call(void 0)
: K.eat.call(void 0, B.TokenType.arrow);
}
et.parseArrow = gl;
@@ -19872,11 +19888,11 @@ If you need interactivity, consider converting part of this to a Client Componen
(Pe.expect.call(void 0, B.TokenType._new),
K.eat.call(void 0, B.TokenType.dot))
) {
- Xn();
+ Yn();
return;
}
Vk(),
- j.isFlowEnabled && Yn.flowStartParseNewArguments.call(void 0),
+ j.isFlowEnabled && Jn.flowStartParseNewArguments.call(void 0),
K.eat.call(void 0, B.TokenType.parenL) && Qp(B.TokenType.parenR);
}
function Vk() {
@@ -19914,19 +19930,19 @@ If you need interactivity, consider converting part of this to a Client Componen
if (K.match.call(void 0, B.TokenType.ellipsis)) {
let a = j.state.tokens.length;
if (
- (ds.parseSpread.call(void 0),
+ (ms.parseSpread.call(void 0),
e &&
(j.state.tokens.length === a + 2 &&
- ds.markPriorBindingIdentifier.call(void 0, t),
+ ms.markPriorBindingIdentifier.call(void 0, t),
K.eat.call(void 0, B.TokenType.braceR)))
)
break;
continue;
}
e || (r = K.eat.call(void 0, B.TokenType.star)),
- !e && Pe.isContextual.call(void 0, zn.ContextualKeyword._async)
+ !e && Pe.isContextual.call(void 0, Xn.ContextualKeyword._async)
? (r && Pe.unexpected.call(void 0),
- Xn(),
+ Yn(),
K.match.call(void 0, B.TokenType.colon) ||
K.match.call(void 0, B.TokenType.parenL) ||
K.match.call(void 0, B.TokenType.braceR) ||
@@ -19961,7 +19977,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function qk(e, t) {
if (K.eat.call(void 0, B.TokenType.colon)) {
- e ? ds.parseMaybeDefault.call(void 0, t) : mn(!1);
+ e ? ms.parseMaybeDefault.call(void 0, t) : mn(!1);
return;
}
let s;
@@ -19973,16 +19989,16 @@ If you need interactivity, consider converting part of this to a Client Componen
: (s = K.IdentifierRole.ObjectShorthandFunctionScopedDeclaration)
: (s = K.IdentifierRole.ObjectShorthand),
(j.state.tokens[j.state.tokens.length - 1].identifierRole = s),
- ds.parseMaybeDefault.call(void 0, t, !0);
+ ms.parseMaybeDefault.call(void 0, t, !0);
}
function Kk(e, t, s) {
j.isTypeScriptEnabled
- ? ms.tsStartParseObjPropValue.call(void 0)
- : j.isFlowEnabled && Yn.flowStartParseObjPropValue.call(void 0),
+ ? ys.tsStartParseObjPropValue.call(void 0)
+ : j.isFlowEnabled && Jn.flowStartParseObjPropValue.call(void 0),
$k(e, s) || qk(e, t);
}
function go(e) {
- j.isFlowEnabled && Yn.flowParseVariance.call(void 0),
+ j.isFlowEnabled && Jn.flowParseVariance.call(void 0),
K.eat.call(void 0, B.TokenType.bracketL)
? ((j.state.tokens[j.state.tokens.length - 1].contextId = e),
mn(),
@@ -20004,7 +20020,7 @@ If you need interactivity, consider converting part of this to a Client Componen
j.state.scopeDepth++;
let i = j.state.tokens.length,
r = t;
- gn.parseFunctionParams.call(void 0, r, s), Jp(e, s);
+ _n.parseFunctionParams.call(void 0, r, s), Jp(e, s);
let a = j.state.tokens.length;
j.state.scopes.push(new jp.Scope(i, a, !0)), j.state.scopeDepth--;
}
@@ -20017,16 +20033,16 @@ If you need interactivity, consider converting part of this to a Client Componen
et.parseArrowExpression = ir;
function Jp(e, t = 0) {
j.isTypeScriptEnabled
- ? ms.tsParseFunctionBodyAndFinish.call(void 0, e, t)
+ ? ys.tsParseFunctionBodyAndFinish.call(void 0, e, t)
: j.isFlowEnabled
- ? Yn.flowParseFunctionBodyAndFinish.call(void 0, t)
+ ? Jn.flowParseFunctionBodyAndFinish.call(void 0, t)
: Il(!1, t);
}
et.parseFunctionBodyAndFinish = Jp;
function Il(e, t = 0) {
e && !K.match.call(void 0, B.TokenType.braceL)
? mn()
- : gn.parseBlock.call(void 0, !0, t);
+ : _n.parseBlock.call(void 0, !0, t);
}
et.parseFunctionBody = Il;
function Qp(e, t = !1) {
@@ -20043,16 +20059,16 @@ If you need interactivity, consider converting part of this to a Client Componen
function Zp(e) {
(e && K.match.call(void 0, B.TokenType.comma)) ||
(K.match.call(void 0, B.TokenType.ellipsis)
- ? (ds.parseSpread.call(void 0), wl())
+ ? (ms.parseSpread.call(void 0), wl())
: K.match.call(void 0, B.TokenType.question)
? K.next.call(void 0)
: mn(!1, !0));
}
- function Xn() {
+ function Yn() {
K.next.call(void 0),
(j.state.tokens[j.state.tokens.length - 1].type = B.TokenType.name);
}
- et.parseIdentifier = Xn;
+ et.parseIdentifier = Yn;
function Uk() {
rr();
}
@@ -20063,9 +20079,9 @@ If you need interactivity, consider converting part of this to a Client Componen
(K.eat.call(void 0, B.TokenType.star), mn());
}
function Wk() {
- Pe.expectContextual.call(void 0, zn.ContextualKeyword._module),
+ Pe.expectContextual.call(void 0, Xn.ContextualKeyword._module),
Pe.expect.call(void 0, B.TokenType.braceL),
- gn.parseBlockBody.call(void 0, B.TokenType.braceR);
+ _n.parseBlockBody.call(void 0, B.TokenType.braceR);
}
});
var Ji = Z((Je) => {
@@ -20075,16 +20091,16 @@ If you need interactivity, consider converting part of this to a Client Componen
ye = It(),
_ = be(),
ue = Zt(),
- je = Ns(),
- ys = nr(),
- z = cs();
+ je = Rs(),
+ Ts = nr(),
+ z = us();
function Gk(e) {
return (
(e.type === _.TokenType.name || !!(e.type & _.TokenType.IS_KEYWORD)) &&
e.contextualKeyword !== ye.ContextualKeyword._from
);
}
- function Ln(e) {
+ function On(e) {
let t = C.pushTypeContext.call(void 0, 0);
z.expect.call(void 0, e || _.TokenType.colon),
Wt(),
@@ -20111,7 +20127,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function Xk() {
C.next.call(void 0),
je.parseIdentifier.call(void 0),
- C.match.call(void 0, _.TokenType.lessThan) && On(),
+ C.match.call(void 0, _.TokenType.lessThan) && Dn(),
z.expect.call(void 0, _.TokenType.parenL),
Al(),
z.expect.call(void 0, _.TokenType.parenR),
@@ -20152,7 +20168,7 @@ If you need interactivity, consider converting part of this to a Client Componen
)
C.match.call(void 0, _.TokenType._import)
- ? (C.next.call(void 0), ys.parseImport.call(void 0))
+ ? (C.next.call(void 0), Ts.parseImport.call(void 0))
: z.unexpected.call(void 0);
z.expect.call(void 0, _.TokenType.braceR);
}
@@ -20173,7 +20189,7 @@ If you need interactivity, consider converting part of this to a Client Componen
z.isContextual.call(void 0, ye.ContextualKeyword._interface) ||
z.isContextual.call(void 0, ye.ContextualKeyword._type) ||
z.isContextual.call(void 0, ye.ContextualKeyword._opaque)
- ? ys.parseExport.call(void 0)
+ ? Ts.parseExport.call(void 0)
: z.unexpected.call(void 0);
}
function Zk() {
@@ -20193,7 +20209,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function Nl(e = !1) {
if (
(So(),
- C.match.call(void 0, _.TokenType.lessThan) && On(),
+ C.match.call(void 0, _.TokenType.lessThan) && Dn(),
C.eat.call(void 0, _.TokenType._extends))
)
do bo();
@@ -20211,7 +20227,7 @@ If you need interactivity, consider converting part of this to a Client Componen
Co(e, !1, e);
}
function bo() {
- sh(!1), C.match.call(void 0, _.TokenType.lessThan) && Rs();
+ sh(!1), C.match.call(void 0, _.TokenType.lessThan) && Ls();
}
function Rl() {
Nl();
@@ -20221,22 +20237,22 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function Ll() {
So(),
- C.match.call(void 0, _.TokenType.lessThan) && On(),
- Ln(_.TokenType.eq),
+ C.match.call(void 0, _.TokenType.lessThan) && Dn(),
+ On(_.TokenType.eq),
z.semicolon.call(void 0);
}
function Ol(e) {
z.expectContextual.call(void 0, ye.ContextualKeyword._type),
So(),
- C.match.call(void 0, _.TokenType.lessThan) && On(),
- C.match.call(void 0, _.TokenType.colon) && Ln(_.TokenType.colon),
- e || Ln(_.TokenType.eq),
+ C.match.call(void 0, _.TokenType.lessThan) && Dn(),
+ C.match.call(void 0, _.TokenType.colon) && On(_.TokenType.colon),
+ e || On(_.TokenType.eq),
z.semicolon.call(void 0);
}
function s0() {
Fl(), oh(), C.eat.call(void 0, _.TokenType.eq) && Wt();
}
- function On() {
+ function Dn() {
let e = C.pushTypeContext.call(void 0, 0);
C.match.call(void 0, _.TokenType.lessThan) ||
C.match.call(void 0, _.TokenType.typeParameterStart)
@@ -20250,8 +20266,8 @@ If you need interactivity, consider converting part of this to a Client Componen
z.expect.call(void 0, _.TokenType.greaterThan),
C.popTypeContext.call(void 0, e);
}
- Je.flowParseTypeParameterDeclaration = On;
- function Rs() {
+ Je.flowParseTypeParameterDeclaration = Dn;
+ function Ls() {
let e = C.pushTypeContext.call(void 0, 0);
for (
z.expect.call(void 0, _.TokenType.lessThan);
@@ -20280,9 +20296,9 @@ If you need interactivity, consider converting part of this to a Client Componen
: je.parseIdentifier.call(void 0);
}
function r0() {
- C.lookaheadType.call(void 0) === _.TokenType.colon ? (Dl(), Ln()) : Wt(),
+ C.lookaheadType.call(void 0) === _.TokenType.colon ? (Dl(), On()) : Wt(),
z.expect.call(void 0, _.TokenType.bracketR),
- Ln();
+ On();
}
function o0() {
Dl(),
@@ -20291,11 +20307,11 @@ If you need interactivity, consider converting part of this to a Client Componen
C.match.call(void 0, _.TokenType.lessThan) ||
C.match.call(void 0, _.TokenType.parenL)
? Ml()
- : (C.eat.call(void 0, _.TokenType.question), Ln());
+ : (C.eat.call(void 0, _.TokenType.question), On());
}
function Ml() {
for (
- C.match.call(void 0, _.TokenType.lessThan) && On(),
+ C.match.call(void 0, _.TokenType.lessThan) && Dn(),
z.expect.call(void 0, _.TokenType.parenL);
!C.match.call(void 0, _.TokenType.parenR) &&
!C.match.call(void 0, _.TokenType.ellipsis) &&
@@ -20307,7 +20323,7 @@ If you need interactivity, consider converting part of this to a Client Componen
z.expect.call(void 0, _.TokenType.comma);
C.eat.call(void 0, _.TokenType.ellipsis) && wo(),
z.expect.call(void 0, _.TokenType.parenR),
- Ln();
+ On();
}
function a0() {
Ml();
@@ -20374,7 +20390,7 @@ If you need interactivity, consider converting part of this to a Client Componen
C.match.call(void 0, _.TokenType.lessThan) ||
C.match.call(void 0, _.TokenType.parenL)
? Ml()
- : (C.eat.call(void 0, _.TokenType.question), Ln());
+ : (C.eat.call(void 0, _.TokenType.question), On());
}
function c0() {
!C.eat.call(void 0, _.TokenType.semi) &&
@@ -20392,7 +20408,7 @@ If you need interactivity, consider converting part of this to a Client Componen
je.parseIdentifier.call(void 0);
}
function u0() {
- sh(!0), C.match.call(void 0, _.TokenType.lessThan) && Rs();
+ sh(!0), C.match.call(void 0, _.TokenType.lessThan) && Ls();
}
function p0() {
z.expect.call(void 0, _.TokenType._typeof), ih();
@@ -20413,7 +20429,7 @@ If you need interactivity, consider converting part of this to a Client Componen
e === _.TokenType.colon || e === _.TokenType.question
? (je.parseIdentifier.call(void 0),
C.eat.call(void 0, _.TokenType.question),
- Ln())
+ On())
: Wt();
}
function Al() {
@@ -20451,7 +20467,7 @@ If you need interactivity, consider converting part of this to a Client Componen
h0();
return;
case _.TokenType.lessThan:
- On(),
+ Dn(),
z.expect.call(void 0, _.TokenType.parenL),
Al(),
z.expect.call(void 0, _.TokenType.parenR),
@@ -20556,7 +20572,7 @@ If you need interactivity, consider converting part of this to a Client Componen
d0();
}
function vi() {
- Ln();
+ On();
}
Je.flowParseTypeAnnotation = vi;
function oh() {
@@ -20585,14 +20601,14 @@ If you need interactivity, consider converting part of this to a Client Componen
return;
}
C.next.call(void 0),
- Rs(),
+ Ls(),
z.expect.call(void 0, _.TokenType.parenL),
je.parseCallExpressionArguments.call(void 0);
return;
} else if (!t && C.match.call(void 0, _.TokenType.lessThan)) {
let i = ue.state.snapshot();
if (
- (Rs(),
+ (Ls(),
z.expect.call(void 0, _.TokenType.parenL),
je.parseCallExpressionArguments.call(void 0),
ue.state.error)
@@ -20606,7 +20622,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function T0() {
if (C.match.call(void 0, _.TokenType.lessThan)) {
let e = ue.state.snapshot();
- Rs(), ue.state.error && ue.state.restoreFromSnapshot(e);
+ Ls(), ue.state.error && ue.state.restoreFromSnapshot(e);
}
}
Je.flowStartParseNewArguments = T0;
@@ -20679,8 +20695,8 @@ If you need interactivity, consider converting part of this to a Client Componen
let e = C.pushTypeContext.call(void 0, 1);
C.next.call(void 0),
C.match.call(void 0, _.TokenType.braceL)
- ? (ys.parseExportSpecifiers.call(void 0),
- ys.parseExportFrom.call(void 0))
+ ? (Ts.parseExportSpecifiers.call(void 0),
+ Ts.parseExportFrom.call(void 0))
: Ll(),
C.popTypeContext.call(void 0, e);
} else if (z.isContextual.call(void 0, ye.ContextualKeyword._opaque)) {
@@ -20689,7 +20705,7 @@ If you need interactivity, consider converting part of this to a Client Componen
} else if (z.isContextual.call(void 0, ye.ContextualKeyword._interface)) {
let e = C.pushTypeContext.call(void 0, 1);
C.next.call(void 0), Rl(), C.popTypeContext.call(void 0, e);
- } else ys.parseStatement.call(void 0, !0);
+ } else Ts.parseStatement.call(void 0, !0);
}
Je.flowParseExportDeclaration = b0;
function C0() {
@@ -20703,20 +20719,20 @@ If you need interactivity, consider converting part of this to a Client Componen
function w0() {
if (z.eatContextual.call(void 0, ye.ContextualKeyword._type)) {
let e = C.pushTypeContext.call(void 0, 2);
- ys.baseParseExportStar.call(void 0), C.popTypeContext.call(void 0, e);
- } else ys.baseParseExportStar.call(void 0);
+ Ts.baseParseExportStar.call(void 0), C.popTypeContext.call(void 0, e);
+ } else Ts.baseParseExportStar.call(void 0);
}
Je.flowParseExportStar = w0;
function S0(e) {
if (
- (e && C.match.call(void 0, _.TokenType.lessThan) && Rs(),
+ (e && C.match.call(void 0, _.TokenType.lessThan) && Ls(),
z.isContextual.call(void 0, ye.ContextualKeyword._implements))
) {
let t = C.pushTypeContext.call(void 0, 0);
C.next.call(void 0),
(ue.state.tokens[ue.state.tokens.length - 1].type =
_.TokenType._implements);
- do So(), C.match.call(void 0, _.TokenType.lessThan) && Rs();
+ do So(), C.match.call(void 0, _.TokenType.lessThan) && Ls();
while (C.eat.call(void 0, _.TokenType.comma));
C.popTypeContext.call(void 0, t);
}
@@ -20724,7 +20740,7 @@ If you need interactivity, consider converting part of this to a Client Componen
Je.flowAfterParseClassSuper = S0;
function I0() {
C.match.call(void 0, _.TokenType.lessThan) &&
- (On(),
+ (Dn(),
C.match.call(void 0, _.TokenType.parenL) || z.unexpected.call(void 0));
}
Je.flowStartParseObjPropValue = I0;
@@ -20771,7 +20787,7 @@ If you need interactivity, consider converting part of this to a Client Componen
function N0() {
if (C.match.call(void 0, _.TokenType.lessThan)) {
let e = C.pushTypeContext.call(void 0, 0);
- On(), C.popTypeContext.call(void 0, e);
+ Dn(), C.popTypeContext.call(void 0, e);
}
}
Je.flowStartParseFunctionParams = N0;
@@ -20798,7 +20814,7 @@ If you need interactivity, consider converting part of this to a Client Componen
else return i;
let r = C.pushTypeContext.call(void 0, 0);
if (
- (On(),
+ (Dn(),
C.popTypeContext.call(void 0, r),
(i = je.baseParseMaybeAssign.call(void 0, e, t)),
i)
@@ -20842,7 +20858,7 @@ If you need interactivity, consider converting part of this to a Client Componen
ue.state.scopeDepth++;
let e = ue.state.tokens.length;
return (
- ys.parseFunctionParams.call(void 0),
+ Ts.parseFunctionParams.call(void 0),
je.parseArrow.call(void 0)
? (je.parseArrowExpression.call(void 0, e), !0)
: !1
@@ -20886,17 +20902,17 @@ If you need interactivity, consider converting part of this to a Client Componen
dt = hi(),
$ = xt(),
ke = It(),
- Ts = qr(),
+ ks = qr(),
D = be(),
lh = Qt(),
P = Zt(),
- De = Ns(),
- ks = lo(),
- ee = cs();
+ De = Rs(),
+ vs = lo(),
+ ee = us();
function q0() {
if (
(ql(D.TokenType.eof),
- P.state.scopes.push(new Ts.Scope(0, P.state.tokens.length, !0)),
+ P.state.scopes.push(new ks.Scope(0, P.state.tokens.length, !0)),
P.state.scopeDepth !== 0)
)
throw new Error(
@@ -20905,11 +20921,11 @@ If you need interactivity, consider converting part of this to a Client Componen
return new $0.File(P.state.tokens, P.state.scopes);
}
Tt.parseTopLevel = q0;
- function _n(e) {
+ function bn(e) {
(P.isFlowEnabled && Ft.flowTryParseStatement.call(void 0)) ||
($.match.call(void 0, D.TokenType.at) && $l(), K0(e));
}
- Tt.parseStatement = _n;
+ Tt.parseStatement = bn;
function K0(e) {
if (P.isTypeScriptEnabled && dt.tsTryParseStatementContent.call(void 0))
return;
@@ -21046,7 +21062,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
function G0() {
$.next.call(void 0),
- _n(!1),
+ bn(!1),
ee.expect.call(void 0, D.TokenType._while),
De.parseParenExpression.call(void 0),
$.eat.call(void 0, D.TokenType.semi);
@@ -21056,7 +21072,7 @@ If you need interactivity, consider converting part of this to a Client Componen
let e = P.state.tokens.length;
Y0();
let t = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--;
+ P.state.scopes.push(new ks.Scope(e, t, !1)), P.state.scopeDepth--;
}
function X0() {
return !(
@@ -21111,8 +21127,8 @@ If you need interactivity, consider converting part of this to a Client Componen
function Q0() {
$.next.call(void 0),
De.parseParenExpression.call(void 0),
- _n(!1),
- $.eat.call(void 0, D.TokenType._else) && _n(!1);
+ bn(!1),
+ $.eat.call(void 0, D.TokenType._else) && bn(!1);
}
function Z0() {
$.next.call(void 0),
@@ -21137,10 +21153,10 @@ If you need interactivity, consider converting part of this to a Client Componen
$.next.call(void 0),
s && De.parseExpression.call(void 0),
ee.expect.call(void 0, D.TokenType.colon);
- } else _n(!0);
+ } else bn(!0);
$.next.call(void 0);
let t = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--;
+ P.state.scopes.push(new ks.Scope(e, t, !1)), P.state.scopeDepth--;
}
function tv() {
$.next.call(void 0),
@@ -21148,7 +21164,7 @@ If you need interactivity, consider converting part of this to a Client Componen
ee.semicolon.call(void 0);
}
function nv() {
- ks.parseBindingAtom.call(void 0, !0),
+ vs.parseBindingAtom.call(void 0, !0),
P.isTypeScriptEnabled && dt.tsTryParseTypeAnnotation.call(void 0);
}
function sv() {
@@ -21168,7 +21184,7 @@ If you need interactivity, consider converting part of this to a Client Componen
e != null)
) {
let t = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(e, t, !1)), P.state.scopeDepth--;
+ P.state.scopes.push(new ks.Scope(e, t, !1)), P.state.scopeDepth--;
}
}
$.eat.call(void 0, D.TokenType._finally) && gi();
@@ -21178,13 +21194,13 @@ If you need interactivity, consider converting part of this to a Client Componen
}
Tt.parseVarStatement = Vl;
function iv() {
- $.next.call(void 0), De.parseParenExpression.call(void 0), _n(!1);
+ $.next.call(void 0), De.parseParenExpression.call(void 0), bn(!1);
}
function rv() {
$.next.call(void 0);
}
function ov() {
- _n(!0);
+ bn(!0);
}
function av(e) {
P.isTypeScriptEnabled
@@ -21201,11 +21217,11 @@ If you need interactivity, consider converting part of this to a Client Componen
ql(D.TokenType.braceR),
t && (P.state.tokens[P.state.tokens.length - 1].contextId = t);
let i = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(s, i, e)), P.state.scopeDepth--;
+ P.state.scopes.push(new ks.Scope(s, i, e)), P.state.scopeDepth--;
}
Tt.parseBlock = gi;
function ql(e) {
- for (; !$.eat.call(void 0, e) && !P.state.error; ) _n(!0);
+ for (; !$.eat.call(void 0, e) && !P.state.error; ) bn(!0);
}
Tt.parseBlockBody = ql;
function Bl() {
@@ -21216,7 +21232,7 @@ If you need interactivity, consider converting part of this to a Client Componen
$.match.call(void 0, D.TokenType.parenR) ||
De.parseExpression.call(void 0),
ee.expect.call(void 0, D.TokenType.parenR),
- _n(!1);
+ bn(!1);
}
function ch(e) {
e
@@ -21224,7 +21240,7 @@ If you need interactivity, consider converting part of this to a Client Componen
: $.next.call(void 0),
De.parseExpression.call(void 0),
ee.expect.call(void 0, D.TokenType.parenR),
- _n(!1);
+ bn(!1);
}
function fh(e, t) {
for (;;) {
@@ -21237,7 +21253,7 @@ If you need interactivity, consider converting part of this to a Client Componen
}
}
function lv(e) {
- ks.parseBindingAtom.call(void 0, e),
+ vs.parseBindingAtom.call(void 0, e),
P.isTypeScriptEnabled
? dt.tsAfterParseVarHead.call(void 0)
: P.isFlowEnabled && Ft.flowAfterParseVarHead.call(void 0);
@@ -21252,14 +21268,14 @@ If you need interactivity, consider converting part of this to a Client Componen
let i = null;
$.match.call(void 0, D.TokenType.name) &&
(t || ((i = P.state.tokens.length), P.state.scopeDepth++),
- ks.parseBindingIdentifier.call(void 0, !1));
+ vs.parseBindingIdentifier.call(void 0, !1));
let r = P.state.tokens.length;
P.state.scopeDepth++, dh(), De.parseFunctionBodyAndFinish.call(void 0, e);
let a = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(r, a, !0)),
+ P.state.scopes.push(new ks.Scope(r, a, !0)),
P.state.scopeDepth--,
i !== null &&
- (P.state.scopes.push(new Ts.Scope(i, a, !0)), P.state.scopeDepth--);
+ (P.state.scopes.push(new ks.Scope(i, a, !0)), P.state.scopeDepth--);
}
Tt.parseFunction = lr;
function dh(e = !1, t = 0) {
@@ -21268,7 +21284,7 @@ If you need interactivity, consider converting part of this to a Client Componen
: P.isFlowEnabled && Ft.flowStartParseFunctionParams.call(void 0),
ee.expect.call(void 0, D.TokenType.parenL),
t && (P.state.tokens[P.state.tokens.length - 1].contextId = t),
- ks.parseBindingList.call(void 0, D.TokenType.parenR, !1, !1, e, t),
+ vs.parseBindingList.call(void 0, D.TokenType.parenR, !1, !1, e, t),
t && (P.state.tokens[P.state.tokens.length - 1].contextId = t);
}
Tt.parseFunctionParams = dh;
@@ -21288,7 +21304,7 @@ If you need interactivity, consider converting part of this to a Client Componen
i !== null))
) {
let a = P.state.tokens.length;
- P.state.scopes.push(new Ts.Scope(i, a, !1)), P.state.scopeDepth--;
+ P.state.scopes.push(new ks.Scope(i, a, !1)), P.state.scopeDepth--;
}
}
Tt.parseClass = Io;
@@ -21445,7 +21461,7 @@ If you need interactivity, consider converting part of this to a Client Componen
(!e || t) &&
ee.isContextual.call(void 0, ke.ContextualKeyword._implements)) ||
($.match.call(void 0, D.TokenType.name) &&
- ks.parseBindingIdentifier.call(void 0, !0),
+ vs.parseBindingIdentifier.call(void 0, !0),
P.isTypeScriptEnabled
? dt.tsTryParseTypeParameters.call(void 0)
: P.isFlowEnabled &&
@@ -21510,7 +21526,7 @@ If you need interactivity, consider converting part of this to a Client Componen
? dt.tsParseExportDeclaration.call(void 0)
: P.isFlowEnabled
? Ft.flowParseExportDeclaration.call(void 0)
- : _n(!0);
+ : bn(!0);
}
function yv() {
if (P.isTypeScriptEnabled && dt.tsIsDeclarationStart.call(void 0))
@@ -21667,7 +21683,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return $.match.call(void 0, D.TokenType.name);
}
function uh() {
- ks.parseImportedIdentifier.call(void 0);
+ vs.parseImportedIdentifier.call(void 0);
}
function wv() {
P.isFlowEnabled && Ft.flowStartParseImportSpecifiers.call(void 0);
@@ -21708,12 +21724,12 @@ If you need interactivity, consider converting part of this to a Client Componen
Ft.flowParseImportSpecifier.call(void 0);
return;
}
- ks.parseImportedIdentifier.call(void 0),
+ vs.parseImportedIdentifier.call(void 0),
ee.isContextual.call(void 0, ke.ContextualKeyword._as) &&
((P.state.tokens[P.state.tokens.length - 1].identifierRole =
$.IdentifierRole.ImportAccess),
$.next.call(void 0),
- ks.parseImportedIdentifier.call(void 0));
+ vs.parseImportedIdentifier.call(void 0));
}
function gh() {
ee.isContextual.call(void 0, ke.ContextualKeyword._assert) &&
@@ -22081,12 +22097,12 @@ If you need interactivity, consider converting part of this to a Client Componen
function Mv(e, t, s, i) {
let r = t.snapshot(),
a = Fv(t),
- u = [],
+ p = [],
d = [],
- y = [],
+ k = [],
g = null,
L = [],
- p = [],
+ u = [],
h = t.currentToken().contextId;
if (h == null)
throw new Error(
@@ -22097,14 +22113,14 @@ If you need interactivity, consider converting part of this to a Client Componen
t.matchesContextual(Ih.ContextualKeyword._constructor) &&
!t.currentToken().isType
)
- ({constructorInitializerStatements: u, constructorInsertPos: g} =
+ ({constructorInitializerStatements: p, constructorInsertPos: g} =
Eh(t));
else if (t.matches1(Ne.TokenType.semi))
- i || p.push({start: t.currentIndex(), end: t.currentIndex() + 1}),
+ i || u.push({start: t.currentIndex(), end: t.currentIndex() + 1}),
t.nextToken();
else if (t.currentToken().isType) t.nextToken();
else {
- let T = t.currentIndex(),
+ let y = t.currentIndex(),
x = !1,
w = !1,
S = !1;
@@ -22127,7 +22143,7 @@ If you need interactivity, consider converting part of this to a Client Componen
t.matchesContextual(Ih.ContextualKeyword._constructor) &&
!t.currentToken().isType
) {
- ({constructorInitializerStatements: u, constructorInsertPos: g} =
+ ({constructorInitializerStatements: p, constructorInsertPos: g} =
Eh(t));
continue;
}
@@ -22151,7 +22167,7 @@ If you need interactivity, consider converting part of this to a Client Componen
for (t.nextToken(); t.currentIndex() < M; ) e.processToken();
let c;
x
- ? ((c = s.claimFreeName('__initStatic')), y.push(c))
+ ? ((c = s.claimFreeName('__initStatic')), k.push(c))
: ((c = s.claimFreeName('__init')), d.push(c)),
L.push({
initializerName: c,
@@ -22159,28 +22175,28 @@ If you need interactivity, consider converting part of this to a Client Componen
start: A,
end: t.currentIndex(),
});
- } else (!i || S) && p.push({start: T, end: t.currentIndex()});
+ } else (!i || S) && u.push({start: y, end: t.currentIndex()});
}
return (
t.restoreToSnapshot(r),
i
? {
headerInfo: a,
- constructorInitializerStatements: u,
+ constructorInitializerStatements: p,
instanceInitializerNames: [],
staticInitializerNames: [],
constructorInsertPos: g,
fields: [],
- rangesToRemove: p,
+ rangesToRemove: u,
}
: {
headerInfo: a,
- constructorInitializerStatements: u,
+ constructorInitializerStatements: p,
instanceInitializerNames: d,
- staticInitializerNames: y,
+ staticInitializerNames: k,
constructorInsertPos: g,
fields: L,
- rangesToRemove: p,
+ rangesToRemove: u,
}
);
}
@@ -22226,8 +22242,8 @@ If you need interactivity, consider converting part of this to a Client Componen
throw new Error(
'Expected identifier after access modifiers in constructor arg.'
);
- let u = e.identifierNameForToken(a);
- t.push(`this.${u} = ${u}`);
+ let p = e.identifierNameForToken(a);
+ t.push(`this.${p} = ${p}`);
}
} else e.nextToken();
e.nextToken();
@@ -22354,8 +22370,8 @@ If you need interactivity, consider converting part of this to a Client Componen
return !1;
let a = t.tokenAtRelativeIndex(2);
if (a.type !== Rh.TokenType.name) return !1;
- let u = t.identifierNameForToken(a);
- return s.typeDeclarations.has(u) && !s.valueDeclarations.has(u);
+ let p = t.identifierNameForToken(a);
+ return s.typeDeclarations.has(p) && !s.valueDeclarations.has(p);
}
ic.default = Wv;
});
@@ -22366,7 +22382,7 @@ If you need interactivity, consider converting part of this to a Client Componen
return e && e.__esModule ? e : {default: e};
}
var Lo = xt(),
- Ls = It(),
+ Os = It(),
N = be(),
Gv = ec(),
zv = ur(Gv),
@@ -22389,16 +22405,16 @@ If you need interactivity, consider converting part of this to a Client Componen
__init3() {
this.hadDefaultExport = !1;
}
- constructor(t, s, i, r, a, u, d, y, g, L) {
+ constructor(t, s, i, r, a, p, d, k, g, L) {
super(),
(this.rootTransformer = t),
(this.tokens = s),
(this.importProcessor = i),
(this.nameManager = r),
(this.helperManager = a),
- (this.reactHotLoaderTransformer = u),
+ (this.reactHotLoaderTransformer = p),
(this.enableLegacyBabel5ModuleInterop = d),
- (this.enableLegacyTypeScriptModuleInterop = y),
+ (this.enableLegacyTypeScriptModuleInterop = k),
(this.isTypeScriptTransformEnabled = g),
(this.preserveDynamicImport = L),
e.prototype.__init.call(this),
@@ -22507,14 +22523,14 @@ module.exports = exports.default;
removeImportAndDetectIfType() {
if (
(this.tokens.removeInitialToken(),
- this.tokens.matchesContextual(Ls.ContextualKeyword._type) &&
+ this.tokens.matchesContextual(Os.ContextualKeyword._type) &&
!this.tokens.matches1AtIndex(
this.tokens.currentIndex() + 1,
N.TokenType.comma
) &&
!this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 1,
- Ls.ContextualKeyword._from
+ Os.ContextualKeyword._from
))
)
return this.removeRemainingImport(), !0;
@@ -22643,7 +22659,7 @@ module.exports = exports.default;
this.tokens.matches2(N.TokenType._export, N.TokenType.name) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 1,
- Ls.ContextualKeyword._type
+ Os.ContextualKeyword._type
)
) {
if (
@@ -22659,7 +22675,7 @@ module.exports = exports.default;
this.tokens.matches1(N.TokenType._as) &&
(this.tokens.removeToken(), this.tokens.removeToken());
return (
- this.tokens.matchesContextual(Ls.ContextualKeyword._from) &&
+ this.tokens.matchesContextual(Os.ContextualKeyword._from) &&
this.tokens.matches1AtIndex(
this.tokens.currentIndex() + 1,
N.TokenType.string
@@ -22739,13 +22755,13 @@ module.exports = exports.default;
let r = this.tokens.identifierNameForToken(s),
a = this.importProcessor.resolveExportBinding(r);
if (!a) return !1;
- let u = this.tokens.rawCodeForToken(i),
+ let p = this.tokens.rawCodeForToken(i),
d = this.importProcessor.getIdentifierReplacement(r) || r;
- if (u === '++')
+ if (p === '++')
this.tokens.replaceToken(`(${d} = ${a} = ${d} + 1, ${d} - 1)`);
- else if (u === '--')
+ else if (p === '--')
this.tokens.replaceToken(`(${d} = ${a} = ${d} - 1, ${d} + 1)`);
- else throw new Error(`Unexpected operator: ${u}`);
+ else throw new Error(`Unexpected operator: ${p}`);
return this.tokens.removeToken(), !0;
}
processExportDefault() {
@@ -22765,7 +22781,7 @@ module.exports = exports.default;
) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 2,
- Ls.ContextualKeyword._async
+ Os.ContextualKeyword._async
))
) {
this.tokens.removeInitialToken(), this.tokens.removeToken();
@@ -22936,7 +22952,7 @@ module.exports = exports.default;
else if (
this.tokens.matches2(N.TokenType.name, N.TokenType._function)
) {
- if (!this.tokens.matchesContextual(Ls.ContextualKeyword._async))
+ if (!this.tokens.matchesContextual(Os.ContextualKeyword._async))
throw new Error('Expected async keyword in function export.');
this.tokens.copyToken(), this.tokens.copyToken();
}
@@ -23005,7 +23021,7 @@ module.exports = exports.default;
)}`
);
}
- if (this.tokens.matchesContextual(Ls.ContextualKeyword._from)) {
+ if (this.tokens.matchesContextual(Os.ContextualKeyword._from)) {
this.tokens.removeToken();
let s = this.tokens.stringValue();
this.tokens.replaceTokenTrimmingLeftWhitespace(
@@ -23044,7 +23060,7 @@ module.exports = exports.default;
function pr(e) {
return e && e.__esModule ? e : {default: e};
}
- var Jn = It(),
+ var Qn = It(),
se = be(),
nx = ec(),
sx = pr(nx),
@@ -23059,7 +23075,7 @@ module.exports = exports.default;
cx = hn(),
ux = pr(cx),
lc = class extends ux.default {
- constructor(t, s, i, r, a, u) {
+ constructor(t, s, i, r, a, p) {
super(),
(this.tokens = t),
(this.nameManager = s),
@@ -23067,13 +23083,13 @@ module.exports = exports.default;
(this.reactHotLoaderTransformer = r),
(this.isTypeScriptTransformEnabled = a),
(this.nonTypeIdentifiers = a
- ? ox.getNonTypeIdentifiers.call(void 0, t, u)
+ ? ox.getNonTypeIdentifiers.call(void 0, t, p)
: new Set()),
(this.declarationInfo = a
? ix.default.call(void 0, t)
: Fh.EMPTY_DECLARATION_INFO),
(this.injectCreateRequireForImportRequire =
- !!u.injectCreateRequireForImportRequire);
+ !!p.injectCreateRequireForImportRequire);
}
process() {
if (
@@ -23093,7 +23109,7 @@ module.exports = exports.default;
) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 1,
- Jn.ContextualKeyword._type
+ Qn.ContextualKeyword._type
)
) {
this.tokens.removeInitialToken();
@@ -23112,7 +23128,7 @@ module.exports = exports.default;
) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 2,
- Jn.ContextualKeyword._type
+ Qn.ContextualKeyword._type
)
) {
this.tokens.removeInitialToken();
@@ -23129,7 +23145,7 @@ module.exports = exports.default;
this.tokens.matches2(se.TokenType._export, se.TokenType.name) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 1,
- Jn.ContextualKeyword._type
+ Qn.ContextualKeyword._type
)
) {
if (
@@ -23145,7 +23161,7 @@ module.exports = exports.default;
this.tokens.matches1(se.TokenType._as) &&
(this.tokens.removeToken(), this.tokens.removeToken());
return (
- this.tokens.matchesContextual(Jn.ContextualKeyword._from) &&
+ this.tokens.matchesContextual(Qn.ContextualKeyword._from) &&
this.tokens.matches1AtIndex(
this.tokens.currentIndex() + 1,
se.TokenType.string
@@ -23197,23 +23213,23 @@ module.exports = exports.default;
removeImportTypeBindings() {
if (
(this.tokens.copyExpectedToken(se.TokenType._import),
- this.tokens.matchesContextual(Jn.ContextualKeyword._type) &&
+ this.tokens.matchesContextual(Qn.ContextualKeyword._type) &&
!this.tokens.matches1AtIndex(
this.tokens.currentIndex() + 1,
se.TokenType.comma
) &&
!this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 1,
- Jn.ContextualKeyword._from
+ Qn.ContextualKeyword._from
))
)
return !0;
if (this.tokens.matches1(se.TokenType.string))
return this.tokens.copyToken(), !1;
- this.tokens.matchesContextual(Jn.ContextualKeyword._module) &&
+ this.tokens.matchesContextual(Qn.ContextualKeyword._module) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 2,
- Jn.ContextualKeyword._from
+ Qn.ContextualKeyword._from
) &&
this.tokens.copyToken();
let t = !1,
@@ -23299,7 +23315,7 @@ module.exports = exports.default;
) &&
this.tokens.matchesContextualAtIndex(
this.tokens.currentIndex() + 2,
- Jn.ContextualKeyword._async
+ Qn.ContextualKeyword._async
)) ||
this.tokens.matches4(
se.TokenType._export,
@@ -23477,11 +23493,11 @@ module.exports = exports.default;
r === 'access' || r === 'optionalAccess'
? ((t = s), (s = a(s)))
: (r === 'call' || r === 'optionalCall') &&
- ((s = a((...u) => s.call(t, ...u))), (t = void 0));
+ ((s = a((...p) => s.call(t, ...p))), (t = void 0));
}
return s;
}
- var Qn = be(),
+ var Zn = be(),
yx = hn(),
Tx = dx(yx),
Do = 'jest',
@@ -23501,10 +23517,10 @@ module.exports = exports.default;
process() {
return this.tokens.currentToken().scopeDepth === 0 &&
this.tokens.matches4(
- Qn.TokenType.name,
- Qn.TokenType.dot,
- Qn.TokenType.name,
- Qn.TokenType.parenL
+ Zn.TokenType.name,
+ Zn.TokenType.dot,
+ Zn.TokenType.name,
+ Zn.TokenType.parenL
) &&
this.tokens.identifierName() === Do
? mx([
@@ -23535,9 +23551,9 @@ module.exports = exports.default;
for (
;
this.tokens.matches3(
- Qn.TokenType.dot,
- Qn.TokenType.name,
- Qn.TokenType.parenL
+ Zn.TokenType.dot,
+ Zn.TokenType.name,
+ Zn.TokenType.parenL
);
) {
@@ -23551,7 +23567,7 @@ module.exports = exports.default;
this.tokens.copyToken(),
this.tokens.copyToken(),
this.rootTransformer.processBalancedCode(),
- this.tokens.copyExpectedToken(Qn.TokenType.parenR),
+ this.tokens.copyExpectedToken(Zn.TokenType.parenR),
this.tokens.appendCode(';}'),
(t = !1);
} else
@@ -23559,7 +23575,7 @@ module.exports = exports.default;
this.tokens.copyToken(),
this.tokens.copyToken(),
this.rootTransformer.processBalancedCode(),
- this.tokens.copyExpectedToken(Qn.TokenType.parenR),
+ this.tokens.copyExpectedToken(Zn.TokenType.parenR),
(t = !0);
}
return !0;
@@ -24178,7 +24194,7 @@ ${s.map(
return e && e.__esModule ? e : {default: e};
}
var jx = It(),
- lt = be(),
+ ct = be(),
$x = Ah(),
qx = yn($x),
Kx = Oh(),
@@ -24215,7 +24231,7 @@ ${s.map(
e.prototype.__init2.call(this),
(this.nameManager = t.nameManager),
(this.helperManager = t.helperManager);
- let {tokenProcessor: a, importProcessor: u} = t;
+ let {tokenProcessor: a, importProcessor: p} = t;
(this.tokens = a),
(this.isImportsTransformEnabled = s.includes('imports')),
(this.isReactHotLoaderTransformEnabled =
@@ -24228,9 +24244,9 @@ ${s.map(
s.includes('jsx') &&
(r.jsxRuntime !== 'preserve' &&
this.transformers.push(
- new Qx.default(this, a, u, this.nameManager, r)
+ new Qx.default(this, a, p, this.nameManager, r)
),
- this.transformers.push(new og.default(this, a, u, r)));
+ this.transformers.push(new og.default(this, a, p, r)));
let d = null;
if (s.includes('react-hot-loader')) {
if (!r.filePath)
@@ -24240,7 +24256,7 @@ ${s.map(
(d = new lg.default(a, r.filePath)), this.transformers.push(d);
}
if (s.includes('imports')) {
- if (u === null)
+ if (p === null)
throw new Error(
'Expected non-null importProcessor with imports transform enabled.'
);
@@ -24248,7 +24264,7 @@ ${s.map(
new Ux.default(
this,
a,
- u,
+ p,
this.nameManager,
this.helperManager,
d,
@@ -24279,30 +24295,30 @@ ${s.map(
),
s.includes('jest') &&
this.transformers.push(
- new Yx.default(this, a, this.nameManager, u)
+ new Yx.default(this, a, this.nameManager, p)
);
}
transform() {
this.tokens.reset(), this.processBalancedCode();
let s = this.isImportsTransformEnabled ? '"use strict";' : '';
- for (let u of this.transformers) s += u.getPrefixCode();
+ for (let p of this.transformers) s += p.getPrefixCode();
(s += this.helperManager.emitHelpers()),
- (s += this.generatedVariables.map((u) => ` var ${u};`).join(''));
- for (let u of this.transformers) s += u.getHoistedCode();
+ (s += this.generatedVariables.map((p) => ` var ${p};`).join(''));
+ for (let p of this.transformers) s += p.getHoistedCode();
let i = '';
- for (let u of this.transformers) i += u.getSuffixCode();
+ for (let p of this.transformers) i += p.getSuffixCode();
let r = this.tokens.finish(),
{code: a} = r;
if (a.startsWith('#!')) {
- let u = a.indexOf(`
+ let p = a.indexOf(`
`);
return (
- u === -1 &&
- ((u = a.length),
+ p === -1 &&
+ ((p = a.length),
(a += `
`)),
{
- code: a.slice(0, u + 1) + s + a.slice(u + 1) + i,
+ code: a.slice(0, p + 1) + s + a.slice(p + 1) + i,
mappings: this.shiftMappings(r.mappings, s.length),
}
);
@@ -24317,16 +24333,16 @@ ${s.map(
s = 0;
for (; !this.tokens.isAtEnd(); ) {
if (
- this.tokens.matches1(lt.TokenType.braceL) ||
- this.tokens.matches1(lt.TokenType.dollarBraceL)
+ this.tokens.matches1(ct.TokenType.braceL) ||
+ this.tokens.matches1(ct.TokenType.dollarBraceL)
)
t++;
- else if (this.tokens.matches1(lt.TokenType.braceR)) {
+ else if (this.tokens.matches1(ct.TokenType.braceR)) {
if (t === 0) return;
t--;
}
- if (this.tokens.matches1(lt.TokenType.parenL)) s++;
- else if (this.tokens.matches1(lt.TokenType.parenR)) {
+ if (this.tokens.matches1(ct.TokenType.parenL)) s++;
+ else if (this.tokens.matches1(ct.TokenType.parenR)) {
if (s === 0) return;
s--;
}
@@ -24334,7 +24350,7 @@ ${s.map(
}
}
processToken() {
- if (this.tokens.matches1(lt.TokenType._class)) {
+ if (this.tokens.matches1(ct.TokenType._class)) {
this.processClass();
return;
}
@@ -24342,7 +24358,7 @@ ${s.map(
this.tokens.copyToken();
}
processNamedClass() {
- if (!this.tokens.matches2(lt.TokenType._class, lt.TokenType.name))
+ if (!this.tokens.matches2(ct.TokenType._class, ct.TokenType.name))
throw new Error('Expected identifier for exported class name.');
let t = this.tokens.identifierNameAtIndex(
this.tokens.currentIndex() + 1
@@ -24371,86 +24387,86 @@ ${s.map(
if (a == null)
throw new Error('Expected class to have a context ID.');
for (
- this.tokens.copyExpectedToken(lt.TokenType._class);
- !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceL, a);
+ this.tokens.copyExpectedToken(ct.TokenType._class);
+ !this.tokens.matchesContextIdAndLabel(ct.TokenType.braceL, a);
)
this.processToken();
this.processClassBody(t, i);
- let u = t.staticInitializerNames.map((d) => `${i}.${d}()`);
+ let p = t.staticInitializerNames.map((d) => `${i}.${d}()`);
s
? this.tokens.appendCode(
- `, ${u.map((d) => `${d}, `).join('')}${i})`
+ `, ${p.map((d) => `${d}, `).join('')}${i})`
)
: t.staticInitializerNames.length > 0 &&
- this.tokens.appendCode(` ${u.map((d) => `${d};`).join(' ')}`);
+ this.tokens.appendCode(` ${p.map((d) => `${d};`).join(' ')}`);
}
processClassBody(t, s) {
let {
headerInfo: i,
constructorInsertPos: r,
constructorInitializerStatements: a,
- fields: u,
+ fields: p,
instanceInitializerNames: d,
- rangesToRemove: y,
+ rangesToRemove: k,
} = t,
g = 0,
L = 0,
- p = this.tokens.currentToken().contextId;
- if (p == null)
+ u = this.tokens.currentToken().contextId;
+ if (u == null)
throw new Error('Expected non-null context ID on class.');
- this.tokens.copyExpectedToken(lt.TokenType.braceL),
+ this.tokens.copyExpectedToken(ct.TokenType.braceL),
this.isReactHotLoaderTransformEnabled &&
this.tokens.appendCode(
'__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}'
);
let h = a.length + d.length > 0;
if (r === null && h) {
- let T = this.makeConstructorInitCode(a, d, s);
+ let y = this.makeConstructorInitCode(a, d, s);
if (i.hasSuperclass) {
let x = this.nameManager.claimFreeName('args');
this.tokens.appendCode(
- `constructor(...${x}) { super(...${x}); ${T}; }`
+ `constructor(...${x}) { super(...${x}); ${y}; }`
);
- } else this.tokens.appendCode(`constructor() { ${T}; }`);
+ } else this.tokens.appendCode(`constructor() { ${y}; }`);
}
for (
;
- !this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR, p);
+ !this.tokens.matchesContextIdAndLabel(ct.TokenType.braceR, u);
)
- if (g < u.length && this.tokens.currentIndex() === u[g].start) {
- let T = !1;
+ if (g < p.length && this.tokens.currentIndex() === p[g].start) {
+ let y = !1;
for (
- this.tokens.matches1(lt.TokenType.bracketL)
+ this.tokens.matches1(ct.TokenType.bracketL)
? this.tokens.copyTokenWithPrefix(
- `${u[g].initializerName}() {this`
+ `${p[g].initializerName}() {this`
)
- : this.tokens.matches1(lt.TokenType.string) ||
- this.tokens.matches1(lt.TokenType.num)
+ : this.tokens.matches1(ct.TokenType.string) ||
+ this.tokens.matches1(ct.TokenType.num)
? (this.tokens.copyTokenWithPrefix(
- `${u[g].initializerName}() {this[`
+ `${p[g].initializerName}() {this[`
),
- (T = !0))
+ (y = !0))
: this.tokens.copyTokenWithPrefix(
- `${u[g].initializerName}() {this.`
+ `${p[g].initializerName}() {this.`
);
- this.tokens.currentIndex() < u[g].end;
+ this.tokens.currentIndex() < p[g].end;
)
- T &&
- this.tokens.currentIndex() === u[g].equalsIndex &&
+ y &&
+ this.tokens.currentIndex() === p[g].equalsIndex &&
this.tokens.appendCode(']'),
this.processToken();
this.tokens.appendCode('}'), g++;
} else if (
- L < y.length &&
- this.tokens.currentIndex() >= y[L].start
+ L < k.length &&
+ this.tokens.currentIndex() >= k[L].start
) {
for (
- this.tokens.currentIndex() < y[L].end &&
+ this.tokens.currentIndex() < k[L].end &&
this.tokens.removeInitialToken();
- this.tokens.currentIndex() < y[L].end;
+ this.tokens.currentIndex() < k[L].end;
)
this.tokens.removeToken();
@@ -24464,7 +24480,7 @@ ${s.map(
),
this.processToken())
: this.processToken();
- this.tokens.copyExpectedToken(lt.TokenType.braceR);
+ this.tokens.copyExpectedToken(ct.TokenType.braceR);
}
makeConstructorInitCode(t, s, i) {
return [...t, ...s.map((r) => `${i}.prototype.${r}.call(this)`)].join(
@@ -24473,12 +24489,12 @@ ${s.map(
}
processPossibleArrowParamEnd() {
if (
- this.tokens.matches2(lt.TokenType.parenR, lt.TokenType.colon) &&
+ this.tokens.matches2(ct.TokenType.parenR, ct.TokenType.colon) &&
this.tokens.tokenAtRelativeIndex(1).isType
) {
let t = this.tokens.currentIndex() + 1;
for (; this.tokens.tokens[t].isType; ) t++;
- if (this.tokens.matches1AtIndex(t, lt.TokenType.arrow)) {
+ if (this.tokens.matches1AtIndex(t, ct.TokenType.arrow)) {
for (
this.tokens.removeInitialToken();
this.tokens.currentIndex() < t;
@@ -24493,14 +24509,14 @@ ${s.map(
processPossibleAsyncArrowWithTypeParams() {
if (
!this.tokens.matchesContextual(jx.ContextualKeyword._async) &&
- !this.tokens.matches1(lt.TokenType._async)
+ !this.tokens.matches1(ct.TokenType._async)
)
return !1;
let t = this.tokens.tokenAtRelativeIndex(1);
- if (t.type !== lt.TokenType.lessThan || !t.isType) return !1;
+ if (t.type !== ct.TokenType.lessThan || !t.isType) return !1;
let s = this.tokens.currentIndex() + 1;
for (; this.tokens.tokens[s].isType; ) s++;
- if (this.tokens.matches1AtIndex(s, lt.TokenType.parenL)) {
+ if (this.tokens.matches1AtIndex(s, ct.TokenType.parenL)) {
for (
this.tokens.replaceToken('async ('),
this.tokens.removeInitialToken();
@@ -24618,31 +24634,31 @@ ${s.map(
),
r = ['Location', 'Label', 'Raw', ...s, ...i],
a = new fg.default(e),
- u = [r, ...t.map(y)],
+ p = [r, ...t.map(k)],
d = r.map(() => 0);
- for (let h of u)
- for (let T = 0; T < h.length; T++) d[T] = Math.max(d[T], h[T].length);
- return u.map((h) => h.map((T, x) => T.padEnd(d[x])).join(' ')).join(`
+ for (let h of p)
+ for (let y = 0; y < h.length; y++) d[y] = Math.max(d[y], h[y].length);
+ return p.map((h) => h.map((y, x) => y.padEnd(d[x])).join(' ')).join(`
`);
- function y(h) {
- let T = e.slice(h.start, h.end);
+ function k(h) {
+ let y = e.slice(h.start, h.end);
return [
L(h.start, h.end),
dg.formatTokenType.call(void 0, h.type),
- yg(String(T), 14),
+ yg(String(y), 14),
...s.map((x) => g(h[x], x)),
...i.map((x) => g(h.type[x], x)),
];
}
- function g(h, T) {
- return h === !0 ? T : h === !1 || h === null ? '' : String(h);
+ function g(h, y) {
+ return h === !0 ? y : h === !1 || h === null ? '' : String(h);
}
- function L(h, T) {
- return `${p(h)}-${p(T)}`;
+ function L(h, y) {
+ return `${u(h)}-${u(y)}`;
}
- function p(h) {
- let T = a.locationForIndex(h);
- return T ? `${T.line + 1}:${T.column + 1}` : 'Unknown';
+ function u(h) {
+ let y = a.locationForIndex(h);
+ return y ? `${y.line + 1}:${y.column + 1}` : 'Unknown';
}
}
Ac.default = mg;
@@ -24704,28 +24720,28 @@ ${s.map(
var uf = Z((fr) => {
'use strict';
Object.defineProperty(fr, '__esModule', {value: !0});
- function vs(e) {
+ function xs(e) {
return e && e.__esModule ? e : {default: e};
}
var bg = N1(),
- Cg = vs(bg),
+ Cg = xs(bg),
wg = $1(),
- Sg = vs(wg),
+ Sg = xs(wg),
Ig = q1(),
Eg = H1(),
- lf = vs(Eg),
+ lf = xs(Eg),
Ag = G1(),
- Pg = vs(Ag),
+ Pg = xs(Ag),
Ng = pp(),
Rg = Ul(),
Lg = Sh(),
- Og = vs(Lg),
+ Og = xs(Lg),
Dg = tf(),
- Mg = vs(Dg),
+ Mg = xs(Dg),
Fg = of(),
- Bg = vs(Fg),
+ Bg = xs(Fg),
Vg = af(),
- jg = vs(Vg);
+ jg = xs(Vg);
function $g() {
return '3.32.0';
}
@@ -24778,34 +24794,34 @@ ${s.map(
i = t.transforms.includes('typescript'),
r = t.transforms.includes('flow'),
a = t.disableESTransforms === !0,
- u = Rg.parse.call(void 0, e, s, i, r),
- d = u.tokens,
- y = u.scopes,
+ p = Rg.parse.call(void 0, e, s, i, r),
+ d = p.tokens,
+ k = p.scopes,
g = new Pg.default(e, d),
L = new Ig.HelperManager(g),
- p = new Og.default(e, d, r, a, L),
+ u = new Og.default(e, d, r, a, L),
h = !!t.enableLegacyTypeScriptModuleInterop,
- T = null;
+ y = null;
return (
t.transforms.includes('imports')
- ? ((T = new Cg.default(
+ ? ((y = new Cg.default(
g,
- p,
+ u,
h,
t,
t.transforms.includes('typescript'),
L
)),
- T.preprocessTokens(),
- lf.default.call(void 0, p, y, T.getGlobalNames()),
- t.transforms.includes('typescript') && T.pruneTypeOnlyImports())
+ y.preprocessTokens(),
+ lf.default.call(void 0, u, k, y.getGlobalNames()),
+ t.transforms.includes('typescript') && y.pruneTypeOnlyImports())
: t.transforms.includes('typescript') &&
- lf.default.call(void 0, p, y, jg.default.call(void 0, p)),
+ lf.default.call(void 0, u, k, jg.default.call(void 0, u)),
{
- tokenProcessor: p,
- scopes: y,
+ tokenProcessor: u,
+ scopes: k,
nameManager: g,
- importProcessor: T,
+ importProcessor: y,
helperManager: L,
}
);
@@ -24885,17 +24901,17 @@ ${s.map(
'implements interface let package private protected public static yield',
strictBind: 'eval arguments',
},
- u =
+ p =
'break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this',
d = {
- 5: u,
- '5module': u + ' export import',
- 6: u + ' const class extends export import super',
+ 5: p,
+ '5module': p + ' export import',
+ 6: p + ' const class extends export import super',
},
- y = /^in(stanceof)?$/,
+ k = /^in(stanceof)?$/,
g = new RegExp('[' + r + ']'),
L = new RegExp('[' + r + i + ']');
- function p(n, o) {
+ function u(n, o) {
for (var l = 65536, f = 0; f < o.length; f += 2) {
if (((l += o[f]), l > n)) return !1;
if (((l += o[f + 1]), l >= n)) return !0;
@@ -24915,9 +24931,9 @@ ${s.map(
? n >= 170 && g.test(String.fromCharCode(n))
: o === !1
? !1
- : p(n, s);
+ : u(n, s);
}
- function T(n, o) {
+ function y(n, o) {
return n < 48
? n === 36
: n < 58
@@ -24934,7 +24950,7 @@ ${s.map(
? n >= 170 && L.test(String.fromCharCode(n))
: o === !1
? !1
- : p(n, s) || p(n, t);
+ : u(n, s) || u(n, t);
}
var x = function (o, l) {
l === void 0 && (l = {}),
@@ -25087,11 +25103,11 @@ ${s.map(
}
var _t =
/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,
- ct = function (o, l) {
+ ut = function (o, l) {
(this.line = o), (this.column = l);
};
- ct.prototype.offset = function (o) {
- return new ct(this.line, this.column + o);
+ ut.prototype.offset = function (o) {
+ return new ut(this.line, this.column + o);
};
var wt = function (o, l, f) {
(this.start = l),
@@ -25101,7 +25117,7 @@ ${s.map(
function $t(n, o) {
for (var l = 1, f = 0; ; ) {
var m = ie(n, f, o);
- if (m < 0) return new ct(l, o - f);
+ if (m < 0) return new ut(l, o - f);
++l, (f = m);
}
}
@@ -25173,15 +25189,15 @@ Defaulting to 2020, but this will stop working in the future.`)),
Xe = 256,
We = 512,
Ke = G | J | Xe;
- function ut(n, o) {
+ function pt(n, o) {
return J | (n ? re : 0) | (o ? ve : 0);
}
- var pt = 0,
+ var ht = 0,
bt = 1,
yt = 2,
vt = 3,
- bn = 4,
- Dn = 5,
+ Cn = 4,
+ Mn = 5,
Ge = function (o, l, f) {
(this.options = o = Tn(o)),
(this.sourceFile = o.sourceFile),
@@ -25474,8 +25490,8 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.finishNode(n, 'Program')
);
};
- var Cn = {kind: 'loop'},
- Zn = {kind: 'switch'};
+ var wn = {kind: 'loop'},
+ es = {kind: 'switch'};
(te.isLet = function (n) {
if (this.options.ecmaVersion < 6 || !this.isContextual('let'))
return !1;
@@ -25487,10 +25503,10 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (n) return !1;
if (f === 123 || (f > 55295 && f < 56320)) return !0;
if (h(f, !0)) {
- for (var m = l + 1; T((f = this.input.charCodeAt(m)), !0); ) ++m;
+ for (var m = l + 1; y((f = this.input.charCodeAt(m)), !0); ) ++m;
if (f === 92 || (f > 55295 && f < 56320)) return !0;
var E = this.input.slice(l, m);
- if (!y.test(E)) return !0;
+ if (!k.test(E)) return !0;
}
return !1;
}),
@@ -25506,7 +25522,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.input.slice(o, o + 8) === 'function' &&
(o + 8 === this.input.length ||
!(
- T((l = this.input.charCodeAt(o + 8))) ||
+ y((l = this.input.charCodeAt(o + 8))) ||
(l > 55295 && l < 56320)
))
);
@@ -25527,7 +25543,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (
this.input.slice(f, m) !== 'using' ||
m === this.input.length ||
- T((E = this.input.charCodeAt(m))) ||
+ y((E = this.input.charCodeAt(m))) ||
(E > 55295 && E < 56320)
)
return !1;
@@ -25541,7 +25557,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (
this.input.slice(f, Y) === 'of' &&
(Y === this.input.length ||
- (!T((Q = this.input.charCodeAt(Y))) &&
+ (!y((Q = this.input.charCodeAt(Y))) &&
!(Q > 55295 && Q < 56320)))
)
return !1;
@@ -25703,7 +25719,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(te.parseDoStatement = function (n) {
return (
this.next(),
- this.labels.push(Cn),
+ this.labels.push(wn),
(n.body = this.parseStatement('do')),
this.labels.pop(),
this.expect(c._while),
@@ -25721,7 +25737,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
? this.lastTokStart
: -1;
if (
- (this.labels.push(Cn),
+ (this.labels.push(wn),
this.enterScope(0),
this.expect(c.parenL),
this.type === c.semi)
@@ -25799,7 +25815,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
: (l > -1 && this.unexpected(l), this.parseFor(n, o));
}),
(te.parseFunctionStatement = function (n, o, l) {
- return this.next(), this.parseFunction(n, Mn | (l ? 0 : xs), !1, o);
+ return this.next(), this.parseFunction(n, Fn | (l ? 0 : gs), !1, o);
}),
(te.parseIfStatement = function (n) {
return (
@@ -25829,7 +25845,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(n.discriminant = this.parseParenExpression()),
(n.cases = []),
this.expect(c.braceL),
- this.labels.push(Zn),
+ this.labels.push(es),
this.enterScope(0);
for (var o, l = !1; this.type !== c.braceR; )
if (this.type === c._case || this.type === c._default) {
@@ -25875,7 +25891,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
o = n.type === 'Identifier';
return (
this.enterScope(o ? Ie : 0),
- this.checkLValPattern(n, o ? bn : yt),
+ this.checkLValPattern(n, o ? Cn : yt),
this.expect(c.parenR),
n
);
@@ -25918,7 +25934,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
return (
this.next(),
(n.test = this.parseParenExpression()),
- this.labels.push(Cn),
+ this.labels.push(wn),
(n.body = this.parseStatement('while')),
this.labels.pop(),
this.finishNode(n, 'WhileStatement')
@@ -26078,20 +26094,20 @@ Defaulting to 2020, but this will stop working in the future.`)),
: this.parseBindingAtom()),
this.checkLValPattern(n.id, o === 'var' ? bt : yt, !1);
});
- var Mn = 1,
- xs = 2,
- Ds = 4;
+ var Fn = 1,
+ gs = 2,
+ Ms = 4;
(te.parseFunction = function (n, o, l, f, m) {
this.initFunction(n),
(this.options.ecmaVersion >= 9 ||
(this.options.ecmaVersion >= 6 && !f)) &&
- (this.type === c.star && o & xs && this.unexpected(),
+ (this.type === c.star && o & gs && this.unexpected(),
(n.generator = this.eat(c.star))),
this.options.ecmaVersion >= 8 && (n.async = !!f),
- o & Mn &&
- ((n.id = o & Ds && this.type !== c.name ? null : this.parseIdent()),
+ o & Fn &&
+ ((n.id = o & Ms && this.type !== c.name ? null : this.parseIdent()),
n.id &&
- !(o & xs) &&
+ !(o & gs) &&
this.checkLValSimple(
n.id,
this.strict || n.generator || n.async
@@ -26107,8 +26123,8 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.yieldPos = 0),
(this.awaitPos = 0),
(this.awaitIdentPos = 0),
- this.enterScope(ut(n.async, n.generator)),
- o & Mn || (n.id = this.type === c.name ? this.parseIdent() : null),
+ this.enterScope(pt(n.async, n.generator)),
+ o & Fn || (n.id = this.type === c.name ? this.parseIdent() : null),
this.parseFunctionParams(n),
this.parseFunctionBody(n, l, !1, m),
(this.yieldPos = E),
@@ -26116,7 +26132,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.awaitIdentPos = Y),
this.finishNode(
n,
- o & Mn ? 'FunctionDeclaration' : 'FunctionExpression'
+ o & Fn ? 'FunctionDeclaration' : 'FunctionExpression'
)
);
}),
@@ -26207,7 +26223,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
: this.parseClassElementName(l),
o < 13 || this.type === c.parenL || O !== 'method' || m || E)
) {
- var Te = !l.static && es(l, 'constructor'),
+ var Te = !l.static && ts(l, 'constructor'),
xe = Te && n;
Te &&
O !== 'method' &&
@@ -26247,7 +26263,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
? (o && this.raise(m.start, "Constructor can't be a generator"),
l && this.raise(m.start, "Constructor can't be an async method"))
: n.static &&
- es(n, 'prototype') &&
+ ts(n, 'prototype') &&
this.raise(
m.start,
'Classes may not have a static property named prototype'
@@ -26274,13 +26290,13 @@ Defaulting to 2020, but this will stop working in the future.`)),
}),
(te.parseClassField = function (n) {
return (
- es(n, 'constructor')
+ ts(n, 'constructor')
? this.raise(
n.key.start,
"Classes can't have a field named 'constructor'"
)
: n.static &&
- es(n, 'prototype') &&
+ ts(n, 'prototype') &&
this.raise(
n.key.start,
"Classes can't have a static field named 'prototype'"
@@ -26369,7 +26385,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
: ((n[l] = m), !1)
);
}
- function es(n, o) {
+ function ts(n, o) {
var l = n.computed,
f = n.key;
return (
@@ -26449,7 +26465,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
return (
this.next(),
n && this.next(),
- this.parseFunction(o, Mn | Ds, !1, n)
+ this.parseFunction(o, Fn | Ms, !1, n)
);
} else if (this.type === c._class) {
var l = this.startNode();
@@ -26821,8 +26837,8 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
}),
(Nt.checkLValSimple = function (n, o, l) {
- o === void 0 && (o = pt);
- var f = o !== pt;
+ o === void 0 && (o = ht);
+ var f = o !== ht;
switch (n.type) {
case 'Identifier':
this.strict &&
@@ -26844,7 +26860,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(mt(l, n.name) &&
this.raiseRecoverable(n.start, 'Argument name clash'),
(l[n.name] = !0)),
- o !== Dn && this.declareName(n.name, o, n.start));
+ o !== Mn && this.declareName(n.name, o, n.start));
break;
case 'ChainExpression':
this.raiseRecoverable(
@@ -26869,7 +26885,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
}),
(Nt.checkLValPattern = function (n, o, l) {
- switch ((o === void 0 && (o = pt), n.type)) {
+ switch ((o === void 0 && (o = ht), n.type)) {
case 'ObjectPattern':
for (var f = 0, m = n.properties; f < m.length; f += 1) {
var E = m[f];
@@ -26887,7 +26903,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
}),
(Nt.checkLValInnerPattern = function (n, o, l) {
- switch ((o === void 0 && (o = pt), n.type)) {
+ switch ((o === void 0 && (o = ht), n.type)) {
case 'Property':
this.checkLValInnerPattern(n.value, o, l);
break;
@@ -26922,14 +26938,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
f_expr_gen: new Rt('function', !0, !1, null, !0),
f_gen: new Rt('function', !1, !1, null, !0),
},
- wn = Ge.prototype;
- (wn.initialContext = function () {
+ Sn = Ge.prototype;
+ (Sn.initialContext = function () {
return [Ue.b_stat];
}),
- (wn.curContext = function () {
+ (Sn.curContext = function () {
return this.context[this.context.length - 1];
}),
- (wn.braceIsBlock = function (n) {
+ (Sn.braceIsBlock = function (n) {
var o = this.curContext();
return o === Ue.f_expr || o === Ue.f_stat
? !0
@@ -26949,14 +26965,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
? !1
: !this.exprAllowed;
}),
- (wn.inGeneratorContext = function () {
+ (Sn.inGeneratorContext = function () {
for (var n = this.context.length - 1; n >= 1; n--) {
var o = this.context[n];
if (o.token === 'function') return o.generator;
}
return !1;
}),
- (wn.updateContext = function (n) {
+ (Sn.updateContext = function (n) {
var o,
l = this.type;
l.keyword && n === c.dot
@@ -26965,7 +26981,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
? o.call(this, n)
: (this.exprAllowed = l.beforeExpr);
}),
- (wn.overrideContext = function (n) {
+ (Sn.overrideContext = function (n) {
this.curContext() !== n &&
(this.context[this.context.length - 1] = n);
}),
@@ -27230,12 +27246,12 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.checkExpressionErrors(n, !0),
Q
? this.checkLValSimple(Y.argument)
- : this.strict && Y.operator === 'delete' && Ms(Y.argument)
+ : this.strict && Y.operator === 'delete' && Fs(Y.argument)
? this.raiseRecoverable(
Y.start,
'Deleting local variable in strict mode'
)
- : Y.operator === 'delete' && gs(Y.argument)
+ : Y.operator === 'delete' && _s(Y.argument)
? this.raiseRecoverable(
Y.start,
'Private fields can not be deleted'
@@ -27280,18 +27296,18 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
else return O;
});
- function Ms(n) {
+ function Fs(n) {
return (
n.type === 'Identifier' ||
- (n.type === 'ParenthesizedExpression' && Ms(n.expression))
+ (n.type === 'ParenthesizedExpression' && Fs(n.expression))
);
}
- function gs(n) {
+ function _s(n) {
return (
(n.type === 'MemberExpression' &&
n.property.type === 'PrivateIdentifier') ||
- (n.type === 'ChainExpression' && gs(n.expression)) ||
- (n.type === 'ParenthesizedExpression' && gs(n.expression))
+ (n.type === 'ChainExpression' && _s(n.expression)) ||
+ (n.type === 'ParenthesizedExpression' && _s(n.expression))
);
}
(de.parseExprSubscripts = function (n, o) {
@@ -27379,7 +27395,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
var Ze = new Xt(),
Lt = this.yieldPos,
Ri = this.awaitPos,
- Ys = this.awaitIdentPos;
+ Js = this.awaitIdentPos;
(this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0);
var gr = this.parseExprList(
c.parenR,
@@ -27398,28 +27414,28 @@ Defaulting to 2020, but this will stop working in the future.`)),
),
(this.yieldPos = Lt),
(this.awaitPos = Ri),
- (this.awaitIdentPos = Ys),
+ (this.awaitIdentPos = Js),
this.parseSubscriptAsyncArrow(o, l, gr, O)
);
this.checkExpressionErrors(Ze, !0),
(this.yieldPos = Lt || this.yieldPos),
(this.awaitPos = Ri || this.awaitPos),
- (this.awaitIdentPos = Ys || this.awaitIdentPos);
- var Js = this.startNodeAt(o, l);
- (Js.callee = n),
- (Js.arguments = gr),
- Y && (Js.optional = Q),
- (n = this.finishNode(Js, 'CallExpression'));
+ (this.awaitIdentPos = Js || this.awaitIdentPos);
+ var Qs = this.startNodeAt(o, l);
+ (Qs.callee = n),
+ (Qs.arguments = gr),
+ Y && (Qs.optional = Q),
+ (n = this.finishNode(Qs, 'CallExpression'));
} else if (this.type === c.backQuote) {
(Q || E) &&
this.raise(
this.start,
'Optional chaining cannot appear in the tag of tagged template expressions'
);
- var Qs = this.startNodeAt(o, l);
- (Qs.tag = n),
- (Qs.quasi = this.parseTemplate({isTagged: !0})),
- (n = this.finishNode(Qs, 'TaggedTemplateExpression'));
+ var Zs = this.startNodeAt(o, l);
+ (Zs.tag = n),
+ (Zs.quasi = this.parseTemplate({isTagged: !0})),
+ (n = this.finishNode(Zs, 'TaggedTemplateExpression'));
}
return n;
}),
@@ -27668,7 +27684,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
Ze = new Xt(),
Lt = this.yieldPos,
Ri = this.awaitPos,
- Ys;
+ Js;
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== c.parenR; )
if (
(Te ? (Te = !1) : this.expect(c.comma),
@@ -27677,7 +27693,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
xe = !0;
break;
} else if (this.type === c.ellipsis) {
- (Ys = this.start),
+ (Js = this.start),
Q.push(this.parseParenItem(this.parseRestBinding())),
this.type === c.comma &&
this.raiseRecoverable(
@@ -27687,7 +27703,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
break;
} else Q.push(this.parseMaybeAssign(!1, Ze, this.parseParenItem));
var gr = this.lastTokEnd,
- Js = this.lastTokEndLoc;
+ Qs = this.lastTokEndLoc;
if (
(this.expect(c.parenR),
n && this.shouldParseArrow(Q) && this.eat(c.arrow))
@@ -27700,21 +27716,21 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.parseParenArrowList(l, f, Q, o)
);
(!Q.length || xe) && this.unexpected(this.lastTokStart),
- Ys && this.unexpected(Ys),
+ Js && this.unexpected(Js),
this.checkExpressionErrors(Ze, !0),
(this.yieldPos = Lt || this.yieldPos),
(this.awaitPos = Ri || this.awaitPos),
Q.length > 1
? ((m = this.startNodeAt(O, Y)),
(m.expressions = Q),
- this.finishNodeAt(m, 'SequenceExpression', gr, Js))
+ this.finishNodeAt(m, 'SequenceExpression', gr, Qs))
: (m = Q[0]);
} else m = this.parseParenExpression();
if (this.options.preserveParens) {
- var Qs = this.startNodeAt(l, f);
+ var Zs = this.startNodeAt(l, f);
return (
- (Qs.expression = m),
- this.finishNode(Qs, 'ParenthesizedExpression')
+ (Zs.expression = m),
+ this.finishNode(Zs, 'ParenthesizedExpression')
);
} else return m;
}),
@@ -28000,7 +28016,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.yieldPos = 0),
(this.awaitPos = 0),
(this.awaitIdentPos = 0),
- this.enterScope(ut(o, f.generator) | Ee | (l ? Le : 0)),
+ this.enterScope(pt(o, f.generator) | Ee | (l ? Le : 0)),
this.expect(c.parenL),
(f.params = this.parseBindingList(
c.parenR,
@@ -28020,7 +28036,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
E = this.awaitPos,
O = this.awaitIdentPos;
return (
- this.enterScope(ut(l, !1) | he),
+ this.enterScope(pt(l, !1) | he),
this.initFunction(n),
this.options.ecmaVersion >= 8 && (n.async = !!l),
(this.yieldPos = 0),
@@ -28061,7 +28077,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
n,
!E && !O && !o && !l && this.isSimpleParamList(n.params)
),
- this.strict && n.id && this.checkLValSimple(n.id, Dn),
+ this.strict && n.id && this.checkLValSimple(n.id, Mn),
(n.body = this.parseBlock(!1, void 0, O && !E)),
(n.expression = !1),
this.adaptDirectivePrologue(n.body.body),
@@ -28226,18 +28242,18 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.finishNode(o, 'AwaitExpression')
);
});
- var ts = Ge.prototype;
- (ts.raise = function (n, o) {
+ var ns = Ge.prototype;
+ (ns.raise = function (n, o) {
var l = $t(this.input, n);
(o += ' (' + l.line + ':' + l.column + ')'),
this.sourceFile && (o += ' in ' + this.sourceFile);
var f = new SyntaxError(o);
throw ((f.pos = n), (f.loc = l), (f.raisedAt = this.pos), f);
}),
- (ts.raiseRecoverable = ts.raise),
- (ts.curPosition = function () {
+ (ns.raiseRecoverable = ns.raise),
+ (ns.curPosition = function () {
if (this.options.locations)
- return new ct(this.curLine, this.pos - this.lineStart);
+ return new ut(this.curLine, this.pos - this.lineStart);
});
var rn = Ge.prototype,
wi = function (o) {
@@ -28265,7 +28281,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
m.var.indexOf(n) > -1),
m.lexical.push(n),
this.inModule && m.flags & G && delete this.undefinedExports[n];
- } else if (o === bn) {
+ } else if (o === Cn) {
var E = this.currentScope();
E.lexical.push(n);
} else if (o === vt) {
@@ -28319,7 +28335,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (o.flags & (Ke | We | Xe) && !(o.flags & he)) return o;
}
});
- var Fn = function (o, l, f) {
+ var Bn = function (o, l, f) {
(this.type = ''),
(this.start = l),
(this.end = 0),
@@ -28328,14 +28344,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.sourceFile = o.options.directSourceFile),
o.options.ranges && (this.range = [l, 0]);
},
- Bn = Ge.prototype;
- (Bn.startNode = function () {
- return new Fn(this, this.start, this.startLoc);
+ Vn = Ge.prototype;
+ (Vn.startNode = function () {
+ return new Bn(this, this.start, this.startLoc);
}),
- (Bn.startNodeAt = function (n, o) {
- return new Fn(this, n, o);
+ (Vn.startNodeAt = function (n, o) {
+ return new Bn(this, n, o);
});
- function Fs(n, o, l, f) {
+ function Bs(n, o, l, f) {
return (
(n.type = o),
(n.end = l),
@@ -28344,54 +28360,54 @@ Defaulting to 2020, but this will stop working in the future.`)),
n
);
}
- (Bn.finishNode = function (n, o) {
- return Fs.call(this, n, o, this.lastTokEnd, this.lastTokEndLoc);
+ (Vn.finishNode = function (n, o) {
+ return Bs.call(this, n, o, this.lastTokEnd, this.lastTokEndLoc);
}),
- (Bn.finishNodeAt = function (n, o, l, f) {
- return Fs.call(this, n, o, l, f);
+ (Vn.finishNodeAt = function (n, o, l, f) {
+ return Bs.call(this, n, o, l, f);
}),
- (Bn.copyNode = function (n) {
- var o = new Fn(this, n.start, this.startLoc);
+ (Vn.copyNode = function (n) {
+ var o = new Bn(this, n.start, this.startLoc);
for (var l in n) o[l] = n[l];
return o;
});
var Si =
'Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz',
- Bs =
+ Vs =
'ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS',
- Vs = Bs + ' Extended_Pictographic',
- js = Vs,
- $s = js + ' EBase EComp EMod EPres ExtPict',
- qs = $s,
- Ii = qs,
- Ei = {9: Bs, 10: Vs, 11: js, 12: $s, 13: qs, 14: Ii},
+ js = Vs + ' Extended_Pictographic',
+ $s = js,
+ qs = $s + ' EBase EComp EMod EPres ExtPict',
+ Ks = qs,
+ Ii = Ks,
+ Ei = {9: Vs, 10: js, 11: $s, 12: qs, 13: Ks, 14: Ii},
Ai =
'Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji',
Pi = {9: '', 10: '', 11: '', 12: '', 13: '', 14: Ai},
- Ks =
- 'Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu',
Us =
- 'Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb',
+ 'Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu',
Hs =
- Us +
- ' Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd',
+ 'Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb',
Ws =
Hs +
- ' Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho',
+ ' Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd',
Gs =
Ws +
- ' Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi',
+ ' Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho',
zs =
Gs +
+ ' Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi',
+ Xs =
+ zs +
' Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith',
- jo = zs + ' ' + Si,
- $o = {9: Us, 10: Hs, 11: Ws, 12: Gs, 13: zs, 14: jo},
+ jo = Xs + ' ' + Si,
+ $o = {9: Hs, 10: Ws, 11: Gs, 12: zs, 13: Xs, 14: jo},
mr = {};
function qo(n) {
var o = (mr[n] = {
- binary: tt(Ei[n] + ' ' + Ks),
+ binary: tt(Ei[n] + ' ' + Us),
binaryOfStrings: tt(Pi[n]),
- nonBinary: {General_Category: tt(Ks), Script: tt($o[n])},
+ nonBinary: {General_Category: tt(Us), Script: tt($o[n])},
});
(o.nonBinary.Script_Extensions = o.nonBinary.Script),
(o.nonBinary.gc = o.nonBinary.General_Category),
@@ -28403,17 +28419,17 @@ Defaulting to 2020, but this will stop working in the future.`)),
qo(Ko);
}
var le = Ge.prototype,
- Xs = function (o, l) {
+ Ys = function (o, l) {
(this.parent = o), (this.base = l || this);
};
- (Xs.prototype.separatedFrom = function (o) {
+ (Ys.prototype.separatedFrom = function (o) {
for (var l = this; l; l = l.parent)
for (var f = o; f; f = f.parent)
if (l.base === f.base && l !== f) return !0;
return !1;
}),
- (Xs.prototype.sibling = function () {
- return new Xs(this.parent, this.base);
+ (Ys.prototype.sibling = function () {
+ return new Ys(this.parent, this.base);
});
var on = function (o) {
(this.parser = o),
@@ -28567,7 +28583,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
(le.regexp_disjunction = function (n) {
var o = this.options.ecmaVersion >= 16;
for (
- o && (n.branchID = new Xs(n.branchID, null)),
+ o && (n.branchID = new Ys(n.branchID, null)),
this.regexp_alternative(n);
n.eat(124);
@@ -28850,7 +28866,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
};
function Go(n) {
- return T(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205;
+ return y(n, !0) || n === 36 || n === 95 || n === 8204 || n === 8205;
}
(le.regexp_eatAtomEscape = function (n) {
return this.regexp_eatBackReference(n) ||
@@ -28990,11 +29006,11 @@ Defaulting to 2020, but this will stop working in the future.`)),
return !1;
});
var Rc = 0,
- Vn = 1,
+ jn = 1,
an = 2;
le.regexp_eatCharacterClassEscape = function (n) {
var o = n.current();
- if (xf(o)) return (n.lastIntValue = -1), n.advance(), Vn;
+ if (xf(o)) return (n.lastIntValue = -1), n.advance(), jn;
var l = !1;
if (
n.switchU &&
@@ -29029,7 +29045,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
var l = n.lastStringValue;
if (this.regexp_eatUnicodePropertyValue(n)) {
var f = n.lastStringValue;
- return this.regexp_validateUnicodePropertyNameAndValue(n, l, f), Vn;
+ return this.regexp_validateUnicodePropertyNameAndValue(n, l, f), jn;
}
}
if (((n.pos = o), this.regexp_eatLoneUnicodePropertyNameOrValue(n))) {
@@ -29045,7 +29061,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
n.raise('Invalid property value');
}),
(le.regexp_validateUnicodePropertyNameOrValue = function (n, o) {
- if (n.unicodeProperties.binary.test(o)) return Vn;
+ if (n.unicodeProperties.binary.test(o)) return jn;
if (n.switchV && n.unicodeProperties.binaryOfStrings.test(o))
return an;
n.raise('Invalid property name');
@@ -29087,10 +29103,10 @@ Defaulting to 2020, but this will stop working in the future.`)),
}),
(le.regexp_classContents = function (n) {
return n.current() === 93
- ? Vn
+ ? jn
: n.switchV
? this.regexp_classSetExpression(n)
- : (this.regexp_nonEmptyClassRanges(n), Vn);
+ : (this.regexp_nonEmptyClassRanges(n), jn);
}),
(le.regexp_nonEmptyClassRanges = function (n) {
for (; this.regexp_eatClassAtom(n); ) {
@@ -29135,7 +29151,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
}),
(le.regexp_classSetExpression = function (n) {
- var o = Vn,
+ var o = jn,
l;
if (!this.regexp_eatClassSetRange(n))
if ((l = this.regexp_eatClassSetOperand(n))) {
@@ -29145,7 +29161,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
n.current() !== 38 &&
(l = this.regexp_eatClassSetOperand(n))
) {
- l !== an && (o = Vn);
+ l !== an && (o = jn);
continue;
}
n.raise('Invalid character in character class');
@@ -29182,7 +29198,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
}),
(le.regexp_eatClassSetOperand = function (n) {
return this.regexp_eatClassSetCharacter(n)
- ? Vn
+ ? jn
: this.regexp_eatClassStringDisjunction(n) ||
this.regexp_eatNestedClass(n);
}),
@@ -29225,7 +29241,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
}),
(le.regexp_classString = function (n) {
for (var o = 0; this.regexp_eatClassSetCharacter(n); ) o++;
- return o === 1 ? Vn : an;
+ return o === 1 ? jn : an;
}),
(le.regexp_eatClassSetCharacter = function (n) {
var o = n.pos;
@@ -30048,7 +30064,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
) {
var m = this.fullCharCodeAtPos();
- if (T(m, f)) this.pos += m <= 65535 ? 1 : 2;
+ if (y(m, f)) this.pos += m <= 65535 ? 1 : 2;
else if (m === 92) {
(this.containsEsc = !0), (n += this.input.slice(l, this.pos));
var E = this.pos;
@@ -30059,7 +30075,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
),
++this.pos;
var O = this.readCodePoint();
- (o ? h : T)(O, f) ||
+ (o ? h : y)(O, f) ||
this.invalidStringToken(E, 'Invalid Unicode escape'),
(n += nt(O)),
(l = this.pos);
@@ -30078,16 +30094,16 @@ Defaulting to 2020, but this will stop working in the future.`)),
Parser: Ge,
version: Vc,
defaultOptions: Pt,
- Position: ct,
+ Position: ut,
SourceLocation: wt,
getLineInfo: $t,
- Node: Fn,
+ Node: Bn,
TokenType: x,
tokTypes: c,
keywordTypes: U,
TokContext: Rt,
tokContexts: Ue,
- isIdentifierChar: T,
+ isIdentifierChar: y,
isIdentifierStart: h,
Token: xr,
isNewLine: X,
@@ -30104,16 +30120,16 @@ Defaulting to 2020, but this will stop working in the future.`)),
function Ef(n, o) {
return Ge.tokenizer(n, o);
}
- (e.Node = Fn),
+ (e.Node = Bn),
(e.Parser = Ge),
- (e.Position = ct),
+ (e.Position = ut),
(e.SourceLocation = wt),
(e.TokContext = Rt),
(e.Token = xr),
(e.TokenType = x),
(e.defaultOptions = Pt),
(e.getLineInfo = $t),
- (e.isIdentifierChar = T),
+ (e.isIdentifierChar = y),
(e.isIdentifierStart = h),
(e.isNewLine = X),
(e.keywordTypes = U),
@@ -30139,14 +30155,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
})(Bo, function (e, t) {
'use strict';
var s = '\u2716';
- function i(p) {
- return p.name === s;
+ function i(u) {
+ return u.name === s;
}
function r() {}
- var a = function (h, T) {
+ var a = function (h, y) {
if (
- (T === void 0 && (T = {}),
- (this.toks = this.constructor.BaseParser.tokenizer(h, T)),
+ (y === void 0 && (y = {}),
+ (this.toks = this.constructor.BaseParser.tokenizer(h, y)),
(this.options = this.toks.options),
(this.input = this.toks.input),
(this.tok = this.last = {type: t.tokTypes.eof, start: 0, end: 0}),
@@ -30183,9 +30199,9 @@ Defaulting to 2020, but this will stop working in the future.`)),
? new t.Node(this.toks, h[0], h[1])
: new t.Node(this.toks, h);
}),
- (a.prototype.finishNode = function (h, T) {
+ (a.prototype.finishNode = function (h, y) {
return (
- (h.type = T),
+ (h.type = y),
(h.end = this.last.end),
this.options.locations && (h.loc.end = this.last.loc.end),
this.options.ranges && (h.range[1] = this.last.end),
@@ -30193,19 +30209,19 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
}),
(a.prototype.dummyNode = function (h) {
- var T = this.startNode();
+ var y = this.startNode();
return (
- (T.type = h),
- (T.end = T.start),
- this.options.locations && (T.loc.end = T.loc.start),
- this.options.ranges && (T.range[1] = T.start),
+ (y.type = h),
+ (y.end = y.start),
+ this.options.locations && (y.loc.end = y.loc.start),
+ this.options.ranges && (y.range[1] = y.start),
(this.last = {
type: t.tokTypes.name,
- start: T.start,
- end: T.start,
- loc: T.loc,
+ start: y.start,
+ end: y.start,
+ loc: y.loc,
}),
- T
+ y
);
}),
(a.prototype.dummyIdent = function () {
@@ -30237,9 +30253,9 @@ Defaulting to 2020, but this will stop working in the future.`)),
}),
(a.prototype.expect = function (h) {
if (this.eat(h)) return !0;
- for (var T = 1; T <= 2; T++)
- if (this.lookAhead(T).type === h) {
- for (var x = 0; x < T; x++) this.next();
+ for (var y = 1; y <= 2; y++)
+ if (this.lookAhead(y).type === h) {
+ for (var x = 0; x < y; x++) this.next();
return !0;
}
}),
@@ -30259,50 +30275,50 @@ Defaulting to 2020, but this will stop working in the future.`)),
return h;
}),
(a.prototype.indentationAfter = function (h) {
- for (var T = 0; ; ++h) {
+ for (var y = 0; ; ++h) {
var x = this.input.charCodeAt(h);
- if (x === 32) ++T;
- else if (x === 9) T += this.options.tabSize;
- else return T;
+ if (x === 32) ++y;
+ else if (x === 9) y += this.options.tabSize;
+ else return y;
}
}),
- (a.prototype.closes = function (h, T, x, w) {
+ (a.prototype.closes = function (h, y, x, w) {
return this.tok.type === h || this.tok.type === t.tokTypes.eof
? !0
: x !== this.curLineStart &&
- this.curIndent < T &&
+ this.curIndent < y &&
this.tokenStartsLine() &&
(!w ||
this.nextLineStart >= this.input.length ||
- this.indentationAfter(this.nextLineStart) < T);
+ this.indentationAfter(this.nextLineStart) < y);
}),
(a.prototype.tokenStartsLine = function () {
for (var h = this.tok.start - 1; h >= this.curLineStart; --h) {
- var T = this.input.charCodeAt(h);
- if (T !== 9 && T !== 32) return !1;
+ var y = this.input.charCodeAt(h);
+ if (y !== 9 && y !== 32) return !1;
}
return !0;
}),
- (a.prototype.extend = function (h, T) {
- this[h] = T(this[h]);
+ (a.prototype.extend = function (h, y) {
+ this[h] = y(this[h]);
}),
(a.prototype.parse = function () {
return this.next(), this.parseTopLevel();
}),
(a.extend = function () {
- for (var h = [], T = arguments.length; T--; ) h[T] = arguments[T];
+ for (var h = [], y = arguments.length; y--; ) h[y] = arguments[y];
for (var x = this, w = 0; w < h.length; w++) x = h[w](x);
return x;
}),
- (a.parse = function (h, T) {
- return new this(h, T).parse();
+ (a.parse = function (h, y) {
+ return new this(h, y).parse();
}),
(a.BaseParser = t.Parser);
- var u = a.prototype;
- function d(p) {
- return (p < 14 && p > 8) || p === 32 || p === 160 || t.isNewLine(p);
+ var p = a.prototype;
+ function d(u) {
+ return (u < 14 && u > 8) || u === 32 || u === 160 || t.isNewLine(u);
}
- (u.next = function () {
+ (p.next = function () {
if (
((this.last = this.tok),
this.ahead.length
@@ -30316,7 +30332,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.curIndent = this.indentationAfter(this.curLineStart);
}
}),
- (u.readToken = function () {
+ (p.readToken = function () {
for (;;)
try {
return (
@@ -30329,116 +30345,116 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
} catch (S) {
if (!(S instanceof SyntaxError)) throw S;
- var p = S.message,
+ var u = S.message,
h = S.raisedAt,
- T = !0;
- if (/unterminated/i.test(p))
- if (((h = this.lineEnd(S.pos + 1)), /string/.test(p)))
- T = {
+ y = !0;
+ if (/unterminated/i.test(u))
+ if (((h = this.lineEnd(S.pos + 1)), /string/.test(u)))
+ y = {
start: S.pos,
end: h,
type: t.tokTypes.string,
value: this.input.slice(S.pos + 1, h),
};
- else if (/regular expr/i.test(p)) {
+ else if (/regular expr/i.test(u)) {
var x = this.input.slice(S.pos, h);
try {
x = new RegExp(x);
} catch {}
- T = {start: S.pos, end: h, type: t.tokTypes.regexp, value: x};
+ y = {start: S.pos, end: h, type: t.tokTypes.regexp, value: x};
} else
- /template/.test(p)
- ? (T = {
+ /template/.test(u)
+ ? (y = {
start: S.pos,
end: h,
type: t.tokTypes.template,
value: this.input.slice(S.pos, h),
})
- : (T = !1);
+ : (y = !1);
else if (
/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test(
- p
+ u
)
)
for (; h < this.input.length && !d(this.input.charCodeAt(h)); )
++h;
- else if (/character escape|expected hexadecimal/i.test(p))
+ else if (/character escape|expected hexadecimal/i.test(u))
for (; h < this.input.length; ) {
var w = this.input.charCodeAt(h++);
if (w === 34 || w === 39 || t.isNewLine(w)) break;
}
- else if (/unexpected character/i.test(p)) h++, (T = !1);
- else if (/regular expression/i.test(p)) T = !0;
+ else if (/unexpected character/i.test(u)) h++, (y = !1);
+ else if (/regular expression/i.test(u)) y = !0;
else throw S;
if (
(this.resetTo(h),
- T === !0 &&
- (T = {start: h, end: h, type: t.tokTypes.name, value: s}),
- T)
+ y === !0 &&
+ (y = {start: h, end: h, type: t.tokTypes.name, value: s}),
+ y)
)
return (
this.options.locations &&
- (T.loc = new t.SourceLocation(
+ (y.loc = new t.SourceLocation(
this.toks,
- t.getLineInfo(this.input, T.start),
- t.getLineInfo(this.input, T.end)
+ t.getLineInfo(this.input, y.start),
+ t.getLineInfo(this.input, y.end)
)),
- T
+ y
);
}
}),
- (u.resetTo = function (p) {
- (this.toks.pos = p), (this.toks.containsEsc = !1);
- var h = this.input.charAt(p - 1);
+ (p.resetTo = function (u) {
+ (this.toks.pos = u), (this.toks.containsEsc = !1);
+ var h = this.input.charAt(u - 1);
if (
((this.toks.exprAllowed =
!h ||
/[[{(,;:?/*=+\-~!|&%^<>]/.test(h) ||
(/[enwfd]/.test(h) &&
/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(
- this.input.slice(p - 10, p)
+ this.input.slice(u - 10, u)
))),
this.options.locations)
) {
(this.toks.curLine = 1),
(this.toks.lineStart = t.lineBreakG.lastIndex = 0);
- for (var T; (T = t.lineBreakG.exec(this.input)) && T.index < p; )
+ for (var y; (y = t.lineBreakG.exec(this.input)) && y.index < u; )
++this.toks.curLine,
- (this.toks.lineStart = T.index + T[0].length);
+ (this.toks.lineStart = y.index + y[0].length);
}
}),
- (u.lookAhead = function (p) {
- for (; p > this.ahead.length; ) this.ahead.push(this.readToken());
- return this.ahead[p - 1];
+ (p.lookAhead = function (u) {
+ for (; u > this.ahead.length; ) this.ahead.push(this.readToken());
+ return this.ahead[u - 1];
});
- var y = a.prototype;
- (y.parseTopLevel = function () {
- var p = this.startNodeAt(
+ var k = a.prototype;
+ (k.parseTopLevel = function () {
+ var u = this.startNodeAt(
this.options.locations ? [0, t.getLineInfo(this.input, 0)] : 0
);
- for (p.body = []; this.tok.type !== t.tokTypes.eof; )
- p.body.push(this.parseStatement());
+ for (u.body = []; this.tok.type !== t.tokTypes.eof; )
+ u.body.push(this.parseStatement());
return (
- this.toks.adaptDirectivePrologue(p.body),
+ this.toks.adaptDirectivePrologue(u.body),
(this.last = this.tok),
- (p.sourceType =
+ (u.sourceType =
this.options.sourceType === 'commonjs'
? 'script'
: this.options.sourceType),
- this.finishNode(p, 'Program')
+ this.finishNode(u, 'Program')
);
}),
- (y.parseStatement = function () {
- var p = this.tok.type,
+ (k.parseStatement = function () {
+ var u = this.tok.type,
h = this.startNode(),
- T;
+ y;
switch (
- (this.toks.isLet() && ((p = t.tokTypes._var), (T = 'let')), p)
+ (this.toks.isLet() && ((u = t.tokTypes._var), (y = 'let')), u)
) {
case t.tokTypes._break:
case t.tokTypes._continue:
this.next();
- var x = p === t.tokTypes._break;
+ var x = u === t.tokTypes._break;
return (
this.semicolon() || this.canInsertSemicolon()
? (h.label = null)
@@ -30598,7 +30614,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
case t.tokTypes._var:
case t.tokTypes._const:
- return this.parseVar(h, !1, T || this.tok.value);
+ return this.parseVar(h, !1, y || this.tok.value);
case t.tokTypes._while:
return (
this.next(),
@@ -30644,7 +30660,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.tok.type === t.tokTypes.eof
? this.finishNode(h, 'EmptyStatement')
: this.parseStatement())
- : p === t.tokTypes.name &&
+ : u === t.tokTypes.name &&
qe.type === 'Identifier' &&
this.eat(t.tokTypes.colon)
? ((h.body = this.parseStatement()),
@@ -30655,52 +30671,52 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.finishNode(h, 'ExpressionStatement'));
}
}),
- (y.parseBlock = function () {
- var p = this.startNode();
+ (k.parseBlock = function () {
+ var u = this.startNode();
this.pushCx(), this.expect(t.tokTypes.braceL);
var h = this.curIndent,
- T = this.curLineStart;
- for (p.body = []; !this.closes(t.tokTypes.braceR, h, T, !0); )
- p.body.push(this.parseStatement());
+ y = this.curLineStart;
+ for (u.body = []; !this.closes(t.tokTypes.braceR, h, y, !0); )
+ u.body.push(this.parseStatement());
return (
this.popCx(),
this.eat(t.tokTypes.braceR),
- this.finishNode(p, 'BlockStatement')
+ this.finishNode(u, 'BlockStatement')
);
}),
- (y.parseFor = function (p, h) {
+ (k.parseFor = function (u, h) {
return (
- (p.init = h),
- (p.test = p.update = null),
+ (u.init = h),
+ (u.test = u.update = null),
this.eat(t.tokTypes.semi) &&
this.tok.type !== t.tokTypes.semi &&
- (p.test = this.parseExpression()),
+ (u.test = this.parseExpression()),
this.eat(t.tokTypes.semi) &&
this.tok.type !== t.tokTypes.parenR &&
- (p.update = this.parseExpression()),
+ (u.update = this.parseExpression()),
this.popCx(),
this.expect(t.tokTypes.parenR),
- (p.body = this.parseStatement()),
- this.finishNode(p, 'ForStatement')
+ (u.body = this.parseStatement()),
+ this.finishNode(u, 'ForStatement')
);
}),
- (y.parseForIn = function (p, h) {
- var T =
+ (k.parseForIn = function (u, h) {
+ var y =
this.tok.type === t.tokTypes._in
? 'ForInStatement'
: 'ForOfStatement';
return (
this.next(),
- (p.left = h),
- (p.right = this.parseExpression()),
+ (u.left = h),
+ (u.right = this.parseExpression()),
this.popCx(),
this.expect(t.tokTypes.parenR),
- (p.body = this.parseStatement()),
- this.finishNode(p, T)
+ (u.body = this.parseStatement()),
+ this.finishNode(u, y)
);
}),
- (y.parseVar = function (p, h, T) {
- (p.kind = T), this.next(), (p.declarations = []);
+ (k.parseVar = function (u, h, y) {
+ (u.kind = y), this.next(), (u.declarations = []);
do {
var x = this.startNode();
(x.id =
@@ -30710,23 +30726,23 @@ Defaulting to 2020, but this will stop working in the future.`)),
(x.init = this.eat(t.tokTypes.eq)
? this.parseMaybeAssign(h)
: null),
- p.declarations.push(this.finishNode(x, 'VariableDeclarator'));
+ u.declarations.push(this.finishNode(x, 'VariableDeclarator'));
} while (this.eat(t.tokTypes.comma));
- if (!p.declarations.length) {
+ if (!u.declarations.length) {
var w = this.startNode();
(w.id = this.dummyIdent()),
- p.declarations.push(this.finishNode(w, 'VariableDeclarator'));
+ u.declarations.push(this.finishNode(w, 'VariableDeclarator'));
}
return (
- h || this.semicolon(), this.finishNode(p, 'VariableDeclaration')
+ h || this.semicolon(), this.finishNode(u, 'VariableDeclaration')
);
}),
- (y.parseClass = function (p) {
+ (k.parseClass = function (u) {
var h = this.startNode();
this.next(),
this.tok.type === t.tokTypes.name
? (h.id = this.parseIdent())
- : p === !0
+ : u === !0
? (h.id = this.dummyIdent())
: (h.id = null),
(h.superClass = this.eat(t.tokTypes._extends)
@@ -30735,13 +30751,13 @@ Defaulting to 2020, but this will stop working in the future.`)),
(h.body = this.startNode()),
(h.body.body = []),
this.pushCx();
- var T = this.curIndent + 1,
+ var y = this.curIndent + 1,
x = this.curLineStart;
for (
this.eat(t.tokTypes.braceL),
- this.curIndent + 1 < T &&
- ((T = this.curIndent), (x = this.curLineStart));
- !this.closes(t.tokTypes.braceR, T, x);
+ this.curIndent + 1 < y &&
+ ((y = this.curIndent), (x = this.curLineStart));
+ !this.closes(t.tokTypes.braceR, y, x);
) {
var w = this.parseClassElement();
@@ -30755,14 +30771,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.last.loc.end = this.tok.loc.start)),
this.semicolon(),
this.finishNode(h.body, 'ClassBody'),
- this.finishNode(h, p ? 'ClassDeclaration' : 'ClassExpression')
+ this.finishNode(h, u ? 'ClassDeclaration' : 'ClassExpression')
);
}),
- (y.parseClassElement = function () {
+ (k.parseClassElement = function () {
if (this.eat(t.tokTypes.semi)) return null;
- var p = this.options,
- h = p.ecmaVersion,
- T = p.locations,
+ var u = this.options,
+ h = u.ecmaVersion,
+ y = u.locations,
x = this.curIndent,
w = this.curLineStart,
S = this.startNode(),
@@ -30798,7 +30814,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (A)
(S.computed = !1),
(S.key = this.startNodeAt(
- T
+ y
? [this.toks.lastTokStart, this.toks.lastTokStartLoc]
: this.toks.lastTokStart
)),
@@ -30850,68 +30866,68 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
return S;
}),
- (y.parseClassStaticBlock = function (p) {
+ (k.parseClassStaticBlock = function (u) {
var h = this.curIndent,
- T = this.curLineStart;
+ y = this.curLineStart;
for (
- p.body = [], this.pushCx();
- !this.closes(t.tokTypes.braceR, h, T, !0);
+ u.body = [], this.pushCx();
+ !this.closes(t.tokTypes.braceR, h, y, !0);
)
- p.body.push(this.parseStatement());
+ u.body.push(this.parseStatement());
return (
this.popCx(),
this.eat(t.tokTypes.braceR),
- this.finishNode(p, 'StaticBlock')
+ this.finishNode(u, 'StaticBlock')
);
}),
- (y.isClassElementNameStart = function () {
+ (k.isClassElementNameStart = function () {
return this.toks.isClassElementNameStart();
}),
- (y.parseClassElementName = function (p) {
+ (k.parseClassElementName = function (u) {
this.toks.type === t.tokTypes.privateId
- ? ((p.computed = !1), (p.key = this.parsePrivateIdent()))
- : this.parsePropertyName(p);
+ ? ((u.computed = !1), (u.key = this.parsePrivateIdent()))
+ : this.parsePropertyName(u);
}),
- (y.parseFunction = function (p, h, T) {
+ (k.parseFunction = function (u, h, y) {
var x = this.inAsync,
w = this.inGenerator,
S = this.inFunction;
return (
- this.initFunction(p),
+ this.initFunction(u),
this.options.ecmaVersion >= 6 &&
- (p.generator = this.eat(t.tokTypes.star)),
- this.options.ecmaVersion >= 8 && (p.async = !!T),
+ (u.generator = this.eat(t.tokTypes.star)),
+ this.options.ecmaVersion >= 8 && (u.async = !!y),
this.tok.type === t.tokTypes.name
- ? (p.id = this.parseIdent())
- : h === !0 && (p.id = this.dummyIdent()),
- (this.inAsync = p.async),
- (this.inGenerator = p.generator),
+ ? (u.id = this.parseIdent())
+ : h === !0 && (u.id = this.dummyIdent()),
+ (this.inAsync = u.async),
+ (this.inGenerator = u.generator),
(this.inFunction = !0),
- (p.params = this.parseFunctionParams()),
- (p.body = this.parseBlock()),
- this.toks.adaptDirectivePrologue(p.body.body),
+ (u.params = this.parseFunctionParams()),
+ (u.body = this.parseBlock()),
+ this.toks.adaptDirectivePrologue(u.body.body),
(this.inAsync = x),
(this.inGenerator = w),
(this.inFunction = S),
- this.finishNode(p, h ? 'FunctionDeclaration' : 'FunctionExpression')
+ this.finishNode(u, h ? 'FunctionDeclaration' : 'FunctionExpression')
);
}),
- (y.parseExport = function () {
- var p = this.startNode();
+ (k.parseExport = function () {
+ var u = this.startNode();
if ((this.next(), this.eat(t.tokTypes.star)))
return (
this.options.ecmaVersion >= 11 &&
(this.eatContextual('as')
- ? (p.exported = this.parseExprAtom())
- : (p.exported = null)),
- (p.source = this.eatContextual('from')
+ ? (u.exported = this.parseExprAtom())
+ : (u.exported = null)),
+ (u.source = this.eatContextual('from')
? this.parseExprAtom()
: this.dummyString()),
this.options.ecmaVersion >= 16 &&
- (p.attributes = this.parseWithClause()),
+ (u.attributes = this.parseWithClause()),
this.semicolon(),
- this.finishNode(p, 'ExportAllDeclaration')
+ this.finishNode(u, 'ExportAllDeclaration')
);
if (this.eat(t.tokTypes._default)) {
var h;
@@ -30919,38 +30935,38 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.tok.type === t.tokTypes._function ||
(h = this.toks.isAsyncFunction())
) {
- var T = this.startNode();
+ var y = this.startNode();
this.next(),
h && this.next(),
- (p.declaration = this.parseFunction(T, 'nullableID', h));
+ (u.declaration = this.parseFunction(y, 'nullableID', h));
} else
this.tok.type === t.tokTypes._class
- ? (p.declaration = this.parseClass('nullableID'))
- : ((p.declaration = this.parseMaybeAssign()), this.semicolon());
- return this.finishNode(p, 'ExportDefaultDeclaration');
+ ? (u.declaration = this.parseClass('nullableID'))
+ : ((u.declaration = this.parseMaybeAssign()), this.semicolon());
+ return this.finishNode(u, 'ExportDefaultDeclaration');
}
return (
this.tok.type.keyword ||
this.toks.isLet() ||
this.toks.isAsyncFunction()
- ? ((p.declaration = this.parseStatement()),
- (p.specifiers = []),
- (p.source = null))
- : ((p.declaration = null),
- (p.specifiers = this.parseExportSpecifierList()),
- (p.source = this.eatContextual('from')
+ ? ((u.declaration = this.parseStatement()),
+ (u.specifiers = []),
+ (u.source = null))
+ : ((u.declaration = null),
+ (u.specifiers = this.parseExportSpecifierList()),
+ (u.source = this.eatContextual('from')
? this.parseExprAtom()
: null),
this.options.ecmaVersion >= 16 &&
- (p.attributes = this.parseWithClause()),
+ (u.attributes = this.parseWithClause()),
this.semicolon()),
- this.finishNode(p, 'ExportNamedDeclaration')
+ this.finishNode(u, 'ExportNamedDeclaration')
);
}),
- (y.parseImport = function () {
- var p = this.startNode();
+ (k.parseImport = function () {
+ var u = this.startNode();
if ((this.next(), this.tok.type === t.tokTypes.string))
- (p.specifiers = []), (p.source = this.parseExprAtom());
+ (u.specifiers = []), (u.source = this.parseExprAtom());
else {
var h;
this.tok.type === t.tokTypes.name &&
@@ -30959,32 +30975,32 @@ Defaulting to 2020, but this will stop working in the future.`)),
(h.local = this.parseIdent()),
this.finishNode(h, 'ImportDefaultSpecifier'),
this.eat(t.tokTypes.comma)),
- (p.specifiers = this.parseImportSpecifiers()),
- (p.source =
+ (u.specifiers = this.parseImportSpecifiers()),
+ (u.source =
this.eatContextual('from') &&
this.tok.type === t.tokTypes.string
? this.parseExprAtom()
: this.dummyString()),
- h && p.specifiers.unshift(h);
+ h && u.specifiers.unshift(h);
}
return (
this.options.ecmaVersion >= 16 &&
- (p.attributes = this.parseWithClause()),
+ (u.attributes = this.parseWithClause()),
this.semicolon(),
- this.finishNode(p, 'ImportDeclaration')
+ this.finishNode(u, 'ImportDeclaration')
);
}),
- (y.parseImportSpecifiers = function () {
- var p = [];
+ (k.parseImportSpecifiers = function () {
+ var u = [];
if (this.tok.type === t.tokTypes.star) {
var h = this.startNode();
this.next(),
(h.local = this.eatContextual('as')
? this.parseIdent()
: this.dummyIdent()),
- p.push(this.finishNode(h, 'ImportNamespaceSpecifier'));
+ u.push(this.finishNode(h, 'ImportNamespaceSpecifier'));
} else {
- var T = this.curIndent,
+ var y = this.curIndent,
x = this.curLineStart,
w = this.nextLineStart;
for (
@@ -30993,7 +31009,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.curLineStart > w && (w = this.curLineStart);
!this.closes(
t.tokTypes.braceR,
- T + (this.curLineStart <= w ? 1 : 0),
+ y + (this.curLineStart <= w ? 1 : 0),
x
);
@@ -31015,17 +31031,17 @@ Defaulting to 2020, but this will stop working in the future.`)),
: S.imported),
this.finishNode(S, 'ImportSpecifier');
}
- p.push(S), this.eat(t.tokTypes.comma);
+ u.push(S), this.eat(t.tokTypes.comma);
}
this.eat(t.tokTypes.braceR), this.popCx();
}
- return p;
+ return u;
}),
- (y.parseWithClause = function () {
- var p = [];
- if (!this.eat(t.tokTypes._with)) return p;
+ (k.parseWithClause = function () {
+ var u = [];
+ if (!this.eat(t.tokTypes._with)) return u;
var h = this.curIndent,
- T = this.curLineStart,
+ y = this.curLineStart,
x = this.nextLineStart;
for (
this.pushCx(),
@@ -31034,7 +31050,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
!this.closes(
t.tokTypes.braceR,
h + (this.curLineStart <= x ? 1 : 0),
- T
+ y
);
) {
@@ -31055,15 +31071,15 @@ Defaulting to 2020, but this will stop working in the future.`)),
w.value = this.parseExprAtom();
else break;
}
- p.push(this.finishNode(w, 'ImportAttribute')),
+ u.push(this.finishNode(w, 'ImportAttribute')),
this.eat(t.tokTypes.comma);
}
- return this.eat(t.tokTypes.braceR), this.popCx(), p;
+ return this.eat(t.tokTypes.braceR), this.popCx(), u;
}),
- (y.parseExportSpecifierList = function () {
- var p = [],
+ (k.parseExportSpecifierList = function () {
+ var u = [],
h = this.curIndent,
- T = this.curLineStart,
+ y = this.curLineStart,
x = this.nextLineStart;
for (
this.pushCx(),
@@ -31072,7 +31088,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
!this.closes(
t.tokTypes.braceR,
h + (this.curLineStart <= x ? 1 : 0),
- T
+ y
) && !this.isContextual('from');
) {
@@ -31082,47 +31098,47 @@ Defaulting to 2020, but this will stop working in the future.`)),
? this.parseModuleExportName()
: w.local),
this.finishNode(w, 'ExportSpecifier'),
- p.push(w),
+ u.push(w),
this.eat(t.tokTypes.comma);
}
- return this.eat(t.tokTypes.braceR), this.popCx(), p;
+ return this.eat(t.tokTypes.braceR), this.popCx(), u;
}),
- (y.parseModuleExportName = function () {
+ (k.parseModuleExportName = function () {
return this.options.ecmaVersion >= 13 &&
this.tok.type === t.tokTypes.string
? this.parseExprAtom()
: this.parseIdent();
});
var g = a.prototype;
- (g.checkLVal = function (p) {
- if (!p) return p;
- switch (p.type) {
+ (g.checkLVal = function (u) {
+ if (!u) return u;
+ switch (u.type) {
case 'Identifier':
case 'MemberExpression':
- return p;
+ return u;
case 'ParenthesizedExpression':
- return (p.expression = this.checkLVal(p.expression)), p;
+ return (u.expression = this.checkLVal(u.expression)), u;
default:
return this.dummyIdent();
}
}),
- (g.parseExpression = function (p) {
+ (g.parseExpression = function (u) {
var h = this.storeCurrentPos(),
- T = this.parseMaybeAssign(p);
+ y = this.parseMaybeAssign(u);
if (this.tok.type === t.tokTypes.comma) {
var x = this.startNodeAt(h);
- for (x.expressions = [T]; this.eat(t.tokTypes.comma); )
- x.expressions.push(this.parseMaybeAssign(p));
+ for (x.expressions = [y]; this.eat(t.tokTypes.comma); )
+ x.expressions.push(this.parseMaybeAssign(u));
return this.finishNode(x, 'SequenceExpression');
}
- return T;
+ return y;
}),
(g.parseParenExpression = function () {
this.pushCx(), this.expect(t.tokTypes.parenL);
- var p = this.parseExpression();
- return this.popCx(), this.expect(t.tokTypes.parenR), p;
+ var u = this.parseExpression();
+ return this.popCx(), this.expect(t.tokTypes.parenR), u;
}),
- (g.parseMaybeAssign = function (p) {
+ (g.parseMaybeAssign = function (u) {
if (this.inGenerator && this.toks.isContextual('yield')) {
var h = this.startNode();
return (
@@ -31136,10 +31152,10 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.finishNode(h, 'YieldExpression')
);
}
- var T = this.storeCurrentPos(),
- x = this.parseMaybeConditional(p);
+ var y = this.storeCurrentPos(),
+ x = this.parseMaybeConditional(u);
if (this.tok.type.isAssign) {
- var w = this.startNodeAt(T);
+ var w = this.startNodeAt(y);
return (
(w.operator = this.tok.value),
(w.left =
@@ -31147,46 +31163,46 @@ Defaulting to 2020, but this will stop working in the future.`)),
? this.toAssignable(x)
: this.checkLVal(x)),
this.next(),
- (w.right = this.parseMaybeAssign(p)),
+ (w.right = this.parseMaybeAssign(u)),
this.finishNode(w, 'AssignmentExpression')
);
}
return x;
}),
- (g.parseMaybeConditional = function (p) {
+ (g.parseMaybeConditional = function (u) {
var h = this.storeCurrentPos(),
- T = this.parseExprOps(p);
+ y = this.parseExprOps(u);
if (this.eat(t.tokTypes.question)) {
var x = this.startNodeAt(h);
return (
- (x.test = T),
+ (x.test = y),
(x.consequent = this.parseMaybeAssign()),
(x.alternate = this.expect(t.tokTypes.colon)
- ? this.parseMaybeAssign(p)
+ ? this.parseMaybeAssign(u)
: this.dummyIdent()),
this.finishNode(x, 'ConditionalExpression')
);
}
- return T;
+ return y;
}),
- (g.parseExprOps = function (p) {
+ (g.parseExprOps = function (u) {
var h = this.storeCurrentPos(),
- T = this.curIndent,
+ y = this.curIndent,
x = this.curLineStart;
- return this.parseExprOp(this.parseMaybeUnary(!1), h, -1, p, T, x);
+ return this.parseExprOp(this.parseMaybeUnary(!1), h, -1, u, y, x);
}),
- (g.parseExprOp = function (p, h, T, x, w, S) {
+ (g.parseExprOp = function (u, h, y, x, w, S) {
if (
this.curLineStart !== S &&
this.curIndent < w &&
this.tokenStartsLine()
)
- return p;
+ return u;
var A = this.tok.type.binop;
- if (A != null && (!x || this.tok.type !== t.tokTypes._in) && A > T) {
+ if (A != null && (!x || this.tok.type !== t.tokTypes._in) && A > y) {
var U = this.startNodeAt(h);
if (
- ((U.left = p),
+ ((U.left = u),
(U.operator = this.tok.value),
this.next(),
this.curLineStart !== S &&
@@ -31212,14 +31228,14 @@ Defaulting to 2020, but this will stop working in the future.`)),
? 'LogicalExpression'
: 'BinaryExpression'
),
- this.parseExprOp(U, h, T, x, w, S)
+ this.parseExprOp(U, h, y, x, w, S)
);
}
- return p;
+ return u;
}),
- (g.parseMaybeUnary = function (p) {
+ (g.parseMaybeUnary = function (u) {
var h = this.storeCurrentPos(),
- T;
+ y;
if (
this.options.ecmaVersion >= 8 &&
this.toks.isContextual('await') &&
@@ -31227,62 +31243,62 @@ Defaulting to 2020, but this will stop working in the future.`)),
(this.toks.inModule && this.options.ecmaVersion >= 13) ||
(!this.inFunction && this.options.allowAwaitOutsideFunction))
)
- (T = this.parseAwait()), (p = !0);
+ (y = this.parseAwait()), (u = !0);
else if (this.tok.type.prefix) {
var x = this.startNode(),
w = this.tok.type === t.tokTypes.incDec;
- w || (p = !0),
+ w || (u = !0),
(x.operator = this.tok.value),
(x.prefix = !0),
this.next(),
(x.argument = this.parseMaybeUnary(!0)),
w && (x.argument = this.checkLVal(x.argument)),
- (T = this.finishNode(
+ (y = this.finishNode(
x,
w ? 'UpdateExpression' : 'UnaryExpression'
));
} else if (this.tok.type === t.tokTypes.ellipsis) {
var S = this.startNode();
this.next(),
- (S.argument = this.parseMaybeUnary(p)),
- (T = this.finishNode(S, 'SpreadElement'));
- } else if (!p && this.tok.type === t.tokTypes.privateId)
- T = this.parsePrivateIdent();
+ (S.argument = this.parseMaybeUnary(u)),
+ (y = this.finishNode(S, 'SpreadElement'));
+ } else if (!u && this.tok.type === t.tokTypes.privateId)
+ y = this.parsePrivateIdent();
else
for (
- T = this.parseExprSubscripts();
+ y = this.parseExprSubscripts();
this.tok.type.postfix && !this.canInsertSemicolon();
) {
var A = this.startNodeAt(h);
(A.operator = this.tok.value),
(A.prefix = !1),
- (A.argument = this.checkLVal(T)),
+ (A.argument = this.checkLVal(y)),
this.next(),
- (T = this.finishNode(A, 'UpdateExpression'));
+ (y = this.finishNode(A, 'UpdateExpression'));
}
- if (!p && this.eat(t.tokTypes.starstar)) {
+ if (!u && this.eat(t.tokTypes.starstar)) {
var U = this.startNodeAt(h);
return (
(U.operator = '**'),
- (U.left = T),
+ (U.left = y),
(U.right = this.parseMaybeUnary(!1)),
this.finishNode(U, 'BinaryExpression')
);
}
- return T;
+ return y;
}),
(g.parseExprSubscripts = function () {
- var p = this.storeCurrentPos();
+ var u = this.storeCurrentPos();
return this.parseSubscripts(
this.parseExprAtom(),
- p,
+ u,
!1,
this.curIndent,
this.curLineStart
);
}),
- (g.parseSubscripts = function (p, h, T, x, w) {
+ (g.parseSubscripts = function (u, h, y, x, w) {
for (var S = this.options.ecmaVersion >= 11, A = !1; ; ) {
if (
this.curLineStart !== w &&
@@ -31292,8 +31308,8 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (this.tok.type === t.tokTypes.dot && this.curIndent === x) --x;
else break;
var U =
- p.type === 'Identifier' &&
- p.name === 'async' &&
+ u.type === 'Identifier' &&
+ u.name === 'async' &&
!this.canInsertSemicolon(),
M = S && this.eat(t.tokTypes.questionDot);
if (
@@ -31305,7 +31321,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.eat(t.tokTypes.dot))
) {
var c = this.startNodeAt(h);
- (c.object = p),
+ (c.object = u),
this.curLineStart !== w &&
this.curIndent <= x &&
this.tokenStartsLine()
@@ -31314,100 +31330,100 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.parsePropertyAccessor() || this.dummyIdent()),
(c.computed = !1),
S && (c.optional = M),
- (p = this.finishNode(c, 'MemberExpression'));
+ (u = this.finishNode(c, 'MemberExpression'));
} else if (this.tok.type === t.tokTypes.bracketL) {
this.pushCx(), this.next();
var R = this.startNodeAt(h);
- (R.object = p),
+ (R.object = u),
(R.property = this.parseExpression()),
(R.computed = !0),
S && (R.optional = M),
this.popCx(),
this.expect(t.tokTypes.bracketR),
- (p = this.finishNode(R, 'MemberExpression'));
- } else if (!T && this.tok.type === t.tokTypes.parenL) {
+ (u = this.finishNode(R, 'MemberExpression'));
+ } else if (!y && this.tok.type === t.tokTypes.parenL) {
var W = this.parseExprList(t.tokTypes.parenR);
if (U && this.eat(t.tokTypes.arrow))
return this.parseArrowExpression(this.startNodeAt(h), W, !0);
var X = this.startNodeAt(h);
- (X.callee = p),
+ (X.callee = u),
(X.arguments = W),
S && (X.optional = M),
- (p = this.finishNode(X, 'CallExpression'));
+ (u = this.finishNode(X, 'CallExpression'));
} else if (this.tok.type === t.tokTypes.backQuote) {
var ie = this.startNodeAt(h);
- (ie.tag = p),
+ (ie.tag = u),
(ie.quasi = this.parseTemplate()),
- (p = this.finishNode(ie, 'TaggedTemplateExpression'));
+ (u = this.finishNode(ie, 'TaggedTemplateExpression'));
} else break;
}
if (A) {
var pe = this.startNodeAt(h);
- (pe.expression = p), (p = this.finishNode(pe, 'ChainExpression'));
+ (pe.expression = u), (u = this.finishNode(pe, 'ChainExpression'));
}
- return p;
+ return u;
}),
(g.parseExprAtom = function () {
- var p;
+ var u;
switch (this.tok.type) {
case t.tokTypes._this:
case t.tokTypes._super:
var h =
this.tok.type === t.tokTypes._this ? 'ThisExpression' : 'Super';
- return (p = this.startNode()), this.next(), this.finishNode(p, h);
+ return (u = this.startNode()), this.next(), this.finishNode(u, h);
case t.tokTypes.name:
- var T = this.storeCurrentPos(),
+ var y = this.storeCurrentPos(),
x = this.parseIdent(),
w = !1;
if (x.name === 'async' && !this.canInsertSemicolon()) {
if (this.eat(t.tokTypes._function))
return (
this.toks.overrideContext(t.tokContexts.f_expr),
- this.parseFunction(this.startNodeAt(T), !1, !0)
+ this.parseFunction(this.startNodeAt(y), !1, !0)
);
this.tok.type === t.tokTypes.name &&
((x = this.parseIdent()), (w = !0));
}
return this.eat(t.tokTypes.arrow)
- ? this.parseArrowExpression(this.startNodeAt(T), [x], w)
+ ? this.parseArrowExpression(this.startNodeAt(y), [x], w)
: x;
case t.tokTypes.regexp:
- p = this.startNode();
+ u = this.startNode();
var S = this.tok.value;
return (
- (p.regex = {pattern: S.pattern, flags: S.flags}),
- (p.value = S.value),
- (p.raw = this.input.slice(this.tok.start, this.tok.end)),
+ (u.regex = {pattern: S.pattern, flags: S.flags}),
+ (u.value = S.value),
+ (u.raw = this.input.slice(this.tok.start, this.tok.end)),
this.next(),
- this.finishNode(p, 'Literal')
+ this.finishNode(u, 'Literal')
);
case t.tokTypes.num:
case t.tokTypes.string:
return (
- (p = this.startNode()),
- (p.value = this.tok.value),
- (p.raw = this.input.slice(this.tok.start, this.tok.end)),
+ (u = this.startNode()),
+ (u.value = this.tok.value),
+ (u.raw = this.input.slice(this.tok.start, this.tok.end)),
this.tok.type === t.tokTypes.num &&
- p.raw.charCodeAt(p.raw.length - 1) === 110 &&
- (p.bigint =
- p.value != null
- ? p.value.toString()
- : p.raw.slice(0, -1).replace(/_/g, '')),
+ u.raw.charCodeAt(u.raw.length - 1) === 110 &&
+ (u.bigint =
+ u.value != null
+ ? u.value.toString()
+ : u.raw.slice(0, -1).replace(/_/g, '')),
this.next(),
- this.finishNode(p, 'Literal')
+ this.finishNode(u, 'Literal')
);
case t.tokTypes._null:
case t.tokTypes._true:
case t.tokTypes._false:
return (
- (p = this.startNode()),
- (p.value =
+ (u = this.startNode()),
+ (u.value =
this.tok.type === t.tokTypes._null
? null
: this.tok.type === t.tokTypes._true),
- (p.raw = this.tok.type.keyword),
+ (u.raw = this.tok.type.keyword),
this.next(),
- this.finishNode(p, 'Literal')
+ this.finishNode(u, 'Literal')
);
case t.tokTypes.parenL:
var A = this.storeCurrentPos();
@@ -31430,9 +31446,9 @@ Defaulting to 2020, but this will stop working in the future.`)),
return U;
case t.tokTypes.bracketL:
return (
- (p = this.startNode()),
- (p.elements = this.parseExprList(t.tokTypes.bracketR, !0)),
- this.finishNode(p, 'ArrayExpression')
+ (u = this.startNode()),
+ (u.elements = this.parseExprList(t.tokTypes.bracketR, !0)),
+ this.finishNode(u, 'ArrayExpression')
);
case t.tokTypes.braceL:
return (
@@ -31442,7 +31458,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
return this.parseClass(!1);
case t.tokTypes._function:
return (
- (p = this.startNode()), this.next(), this.parseFunction(p, !1)
+ (u = this.startNode()), this.next(), this.parseFunction(u, !1)
);
case t.tokTypes._new:
return this.parseNew();
@@ -31457,64 +31473,64 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
}),
(g.parseExprImport = function () {
- var p = this.startNode(),
+ var u = this.startNode(),
h = this.parseIdent(!0);
switch (this.tok.type) {
case t.tokTypes.parenL:
- return this.parseDynamicImport(p);
+ return this.parseDynamicImport(u);
case t.tokTypes.dot:
- return (p.meta = h), this.parseImportMeta(p);
+ return (u.meta = h), this.parseImportMeta(u);
default:
- return (p.name = 'import'), this.finishNode(p, 'Identifier');
+ return (u.name = 'import'), this.finishNode(u, 'Identifier');
}
}),
- (g.parseDynamicImport = function (p) {
+ (g.parseDynamicImport = function (u) {
var h = this.parseExprList(t.tokTypes.parenR);
return (
- (p.source = h[0] || this.dummyString()),
- (p.options = h[1] || null),
- this.finishNode(p, 'ImportExpression')
+ (u.source = h[0] || this.dummyString()),
+ (u.options = h[1] || null),
+ this.finishNode(u, 'ImportExpression')
);
}),
- (g.parseImportMeta = function (p) {
+ (g.parseImportMeta = function (u) {
return (
this.next(),
- (p.property = this.parseIdent(!0)),
- this.finishNode(p, 'MetaProperty')
+ (u.property = this.parseIdent(!0)),
+ this.finishNode(u, 'MetaProperty')
);
}),
(g.parseNew = function () {
- var p = this.startNode(),
+ var u = this.startNode(),
h = this.curIndent,
- T = this.curLineStart,
+ y = this.curLineStart,
x = this.parseIdent(!0);
if (this.options.ecmaVersion >= 6 && this.eat(t.tokTypes.dot))
return (
- (p.meta = x),
- (p.property = this.parseIdent(!0)),
- this.finishNode(p, 'MetaProperty')
+ (u.meta = x),
+ (u.property = this.parseIdent(!0)),
+ this.finishNode(u, 'MetaProperty')
);
var w = this.storeCurrentPos();
return (
- (p.callee = this.parseSubscripts(
+ (u.callee = this.parseSubscripts(
this.parseExprAtom(),
w,
!0,
h,
- T
+ y
)),
this.tok.type === t.tokTypes.parenL
- ? (p.arguments = this.parseExprList(t.tokTypes.parenR))
- : (p.arguments = []),
- this.finishNode(p, 'NewExpression')
+ ? (u.arguments = this.parseExprList(t.tokTypes.parenR))
+ : (u.arguments = []),
+ this.finishNode(u, 'NewExpression')
);
}),
(g.parseTemplateElement = function () {
- var p = this.startNode();
+ var u = this.startNode();
return (
this.tok.type === t.tokTypes.invalidTemplate
- ? (p.value = {raw: this.tok.value, cooked: null})
- : (p.value = {
+ ? (u.value = {raw: this.tok.value, cooked: null})
+ : (u.value = {
raw: this.input.slice(this.tok.start, this.tok.end).replace(
/\r\n?/g,
`
@@ -31523,39 +31539,39 @@ Defaulting to 2020, but this will stop working in the future.`)),
cooked: this.tok.value,
}),
this.next(),
- (p.tail = this.tok.type === t.tokTypes.backQuote),
- this.finishNode(p, 'TemplateElement')
+ (u.tail = this.tok.type === t.tokTypes.backQuote),
+ this.finishNode(u, 'TemplateElement')
);
}),
(g.parseTemplate = function () {
- var p = this.startNode();
- this.next(), (p.expressions = []);
+ var u = this.startNode();
+ this.next(), (u.expressions = []);
var h = this.parseTemplateElement();
- for (p.quasis = [h]; !h.tail; )
+ for (u.quasis = [h]; !h.tail; )
this.next(),
- p.expressions.push(this.parseExpression()),
+ u.expressions.push(this.parseExpression()),
this.expect(t.tokTypes.braceR)
? (h = this.parseTemplateElement())
: ((h = this.startNode()),
(h.value = {cooked: '', raw: ''}),
(h.tail = !0),
this.finishNode(h, 'TemplateElement')),
- p.quasis.push(h);
+ u.quasis.push(h);
return (
this.expect(t.tokTypes.backQuote),
- this.finishNode(p, 'TemplateLiteral')
+ this.finishNode(u, 'TemplateLiteral')
);
}),
(g.parseObj = function () {
- var p = this.startNode();
- (p.properties = []), this.pushCx();
+ var u = this.startNode();
+ (u.properties = []), this.pushCx();
var h = this.curIndent + 1,
- T = this.curLineStart;
+ y = this.curLineStart;
for (
this.eat(t.tokTypes.braceL),
this.curIndent + 1 < h &&
- ((h = this.curIndent), (T = this.curLineStart));
- !this.closes(t.tokTypes.braceR, h, T);
+ ((h = this.curIndent), (y = this.curLineStart));
+ !this.closes(t.tokTypes.braceR, h, y);
) {
var x = this.startNode(),
@@ -31567,7 +31583,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
this.eat(t.tokTypes.ellipsis)
) {
(x.argument = this.parseMaybeAssign()),
- p.properties.push(this.finishNode(x, 'SpreadElement')),
+ u.properties.push(this.finishNode(x, 'SpreadElement')),
this.eat(t.tokTypes.comma);
continue;
}
@@ -31624,7 +31640,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
else x.value = this.dummyIdent();
x.shorthand = !0;
}
- p.properties.push(this.finishNode(x, 'Property')),
+ u.properties.push(this.finishNode(x, 'Property')),
this.eat(t.tokTypes.comma);
}
return (
@@ -31633,23 +31649,23 @@ Defaulting to 2020, but this will stop working in the future.`)),
((this.last.end = this.tok.start),
this.options.locations &&
(this.last.loc.end = this.tok.loc.start)),
- this.finishNode(p, 'ObjectExpression')
+ this.finishNode(u, 'ObjectExpression')
);
}),
- (g.parsePropertyName = function (p) {
+ (g.parsePropertyName = function (u) {
if (this.options.ecmaVersion >= 6)
if (this.eat(t.tokTypes.bracketL)) {
- (p.computed = !0),
- (p.key = this.parseExpression()),
+ (u.computed = !0),
+ (u.key = this.parseExpression()),
this.expect(t.tokTypes.bracketR);
return;
- } else p.computed = !1;
+ } else u.computed = !1;
var h =
this.tok.type === t.tokTypes.num ||
this.tok.type === t.tokTypes.string
? this.parseExprAtom()
: this.parseIdent();
- p.key = h || this.dummyIdent();
+ u.key = h || this.dummyIdent();
}),
(g.parsePropertyAccessor = function () {
if (this.tok.type === t.tokTypes.name || this.tok.type.keyword)
@@ -31658,135 +31674,135 @@ Defaulting to 2020, but this will stop working in the future.`)),
return this.parsePrivateIdent();
}),
(g.parseIdent = function () {
- var p =
+ var u =
this.tok.type === t.tokTypes.name
? this.tok.value
: this.tok.type.keyword;
- if (!p) return this.dummyIdent();
+ if (!u) return this.dummyIdent();
this.tok.type.keyword && (this.toks.type = t.tokTypes.name);
var h = this.startNode();
- return this.next(), (h.name = p), this.finishNode(h, 'Identifier');
+ return this.next(), (h.name = u), this.finishNode(h, 'Identifier');
}),
(g.parsePrivateIdent = function () {
- var p = this.startNode();
+ var u = this.startNode();
return (
- (p.name = this.tok.value),
+ (u.name = this.tok.value),
this.next(),
- this.finishNode(p, 'PrivateIdentifier')
+ this.finishNode(u, 'PrivateIdentifier')
);
}),
- (g.initFunction = function (p) {
- (p.id = null),
- (p.params = []),
+ (g.initFunction = function (u) {
+ (u.id = null),
+ (u.params = []),
this.options.ecmaVersion >= 6 &&
- ((p.generator = !1), (p.expression = !1)),
- this.options.ecmaVersion >= 8 && (p.async = !1);
+ ((u.generator = !1), (u.expression = !1)),
+ this.options.ecmaVersion >= 8 && (u.async = !1);
}),
- (g.toAssignable = function (p, h) {
+ (g.toAssignable = function (u, h) {
if (
!(
- !p ||
- p.type === 'Identifier' ||
- (p.type === 'MemberExpression' && !h)
+ !u ||
+ u.type === 'Identifier' ||
+ (u.type === 'MemberExpression' && !h)
)
)
- if (p.type === 'ParenthesizedExpression')
- this.toAssignable(p.expression, h);
+ if (u.type === 'ParenthesizedExpression')
+ this.toAssignable(u.expression, h);
else {
if (this.options.ecmaVersion < 6) return this.dummyIdent();
- if (p.type === 'ObjectExpression') {
- p.type = 'ObjectPattern';
- for (var T = 0, x = p.properties; T < x.length; T += 1) {
- var w = x[T];
+ if (u.type === 'ObjectExpression') {
+ u.type = 'ObjectPattern';
+ for (var y = 0, x = u.properties; y < x.length; y += 1) {
+ var w = x[y];
this.toAssignable(w, h);
}
- } else if (p.type === 'ArrayExpression')
- (p.type = 'ArrayPattern'), this.toAssignableList(p.elements, h);
- else if (p.type === 'Property') this.toAssignable(p.value, h);
- else if (p.type === 'SpreadElement')
- (p.type = 'RestElement'), this.toAssignable(p.argument, h);
- else if (p.type === 'AssignmentExpression')
- (p.type = 'AssignmentPattern'), delete p.operator;
+ } else if (u.type === 'ArrayExpression')
+ (u.type = 'ArrayPattern'), this.toAssignableList(u.elements, h);
+ else if (u.type === 'Property') this.toAssignable(u.value, h);
+ else if (u.type === 'SpreadElement')
+ (u.type = 'RestElement'), this.toAssignable(u.argument, h);
+ else if (u.type === 'AssignmentExpression')
+ (u.type = 'AssignmentPattern'), delete u.operator;
else return this.dummyIdent();
}
- return p;
+ return u;
}),
- (g.toAssignableList = function (p, h) {
- for (var T = 0, x = p; T < x.length; T += 1) {
- var w = x[T];
+ (g.toAssignableList = function (u, h) {
+ for (var y = 0, x = u; y < x.length; y += 1) {
+ var w = x[y];
this.toAssignable(w, h);
}
- return p;
+ return u;
}),
- (g.parseFunctionParams = function (p) {
+ (g.parseFunctionParams = function (u) {
return (
- (p = this.parseExprList(t.tokTypes.parenR)),
- this.toAssignableList(p, !0)
+ (u = this.parseExprList(t.tokTypes.parenR)),
+ this.toAssignableList(u, !0)
);
}),
- (g.parseMethod = function (p, h) {
- var T = this.startNode(),
+ (g.parseMethod = function (u, h) {
+ var y = this.startNode(),
x = this.inAsync,
w = this.inGenerator,
S = this.inFunction;
return (
- this.initFunction(T),
- this.options.ecmaVersion >= 6 && (T.generator = !!p),
- this.options.ecmaVersion >= 8 && (T.async = !!h),
- (this.inAsync = T.async),
- (this.inGenerator = T.generator),
+ this.initFunction(y),
+ this.options.ecmaVersion >= 6 && (y.generator = !!u),
+ this.options.ecmaVersion >= 8 && (y.async = !!h),
+ (this.inAsync = y.async),
+ (this.inGenerator = y.generator),
(this.inFunction = !0),
- (T.params = this.parseFunctionParams()),
- (T.body = this.parseBlock()),
- this.toks.adaptDirectivePrologue(T.body.body),
+ (y.params = this.parseFunctionParams()),
+ (y.body = this.parseBlock()),
+ this.toks.adaptDirectivePrologue(y.body.body),
(this.inAsync = x),
(this.inGenerator = w),
(this.inFunction = S),
- this.finishNode(T, 'FunctionExpression')
+ this.finishNode(y, 'FunctionExpression')
);
}),
- (g.parseArrowExpression = function (p, h, T) {
+ (g.parseArrowExpression = function (u, h, y) {
var x = this.inAsync,
w = this.inGenerator,
S = this.inFunction;
return (
- this.initFunction(p),
- this.options.ecmaVersion >= 8 && (p.async = !!T),
- (this.inAsync = p.async),
+ this.initFunction(u),
+ this.options.ecmaVersion >= 8 && (u.async = !!y),
+ (this.inAsync = u.async),
(this.inGenerator = !1),
(this.inFunction = !0),
- (p.params = this.toAssignableList(h, !0)),
- (p.expression = this.tok.type !== t.tokTypes.braceL),
- p.expression
- ? (p.body = this.parseMaybeAssign())
- : ((p.body = this.parseBlock()),
- this.toks.adaptDirectivePrologue(p.body.body)),
+ (u.params = this.toAssignableList(h, !0)),
+ (u.expression = this.tok.type !== t.tokTypes.braceL),
+ u.expression
+ ? (u.body = this.parseMaybeAssign())
+ : ((u.body = this.parseBlock()),
+ this.toks.adaptDirectivePrologue(u.body.body)),
(this.inAsync = x),
(this.inGenerator = w),
(this.inFunction = S),
- this.finishNode(p, 'ArrowFunctionExpression')
+ this.finishNode(u, 'ArrowFunctionExpression')
);
}),
- (g.parseExprList = function (p, h) {
+ (g.parseExprList = function (u, h) {
this.pushCx();
- var T = this.curIndent,
+ var y = this.curIndent,
x = this.curLineStart,
w = [];
- for (this.next(); !this.closes(p, T + 1, x); ) {
+ for (this.next(); !this.closes(u, y + 1, x); ) {
if (this.eat(t.tokTypes.comma)) {
w.push(h ? null : this.dummyIdent());
continue;
}
var S = this.parseMaybeAssign();
if (i(S)) {
- if (this.closes(p, T, x)) break;
+ if (this.closes(u, y, x)) break;
this.next();
} else w.push(S);
this.eat(t.tokTypes.comma);
}
return (
this.popCx(),
- this.eat(p) ||
+ this.eat(u) ||
((this.last.end = this.tok.start),
this.options.locations &&
(this.last.loc.end = this.tok.loc.start)),
@@ -31794,16 +31810,16 @@ Defaulting to 2020, but this will stop working in the future.`)),
);
}),
(g.parseAwait = function () {
- var p = this.startNode();
+ var u = this.startNode();
return (
this.next(),
- (p.argument = this.parseMaybeUnary()),
- this.finishNode(p, 'AwaitExpression')
+ (u.argument = this.parseMaybeUnary()),
+ this.finishNode(u, 'AwaitExpression')
);
}),
(t.defaultOptions.tabSize = 4);
- function L(p, h) {
- return a.parse(p, h);
+ function L(u, h) {
+ return a.parse(u, h);
}
(e.LooseParser = a), (e.isDummy = i), (e.parse = L);
});
@@ -31813,7 +31829,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
dr = e1(),
Hg = uf(),
Tf = df(),
- Os = null;
+ Ds = null;
function kf() {
return new Proxy(
{},
@@ -31861,24 +31877,24 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
var s = [],
i = 0;
- function r(T, x) {
- if (!(!T || typeof T != 'object')) {
+ function r(y, x) {
+ if (!(!y || typeof y != 'object')) {
var w =
- T.type === 'FunctionDeclaration' ||
- T.type === 'FunctionExpression' ||
- T.type === 'ArrowFunctionExpression';
- if (w && x > 0 && T.body && T.body.type === 'BlockStatement')
- for (var S = T.body.body, A = 0; A < S.length; A++) {
+ y.type === 'FunctionDeclaration' ||
+ y.type === 'FunctionExpression' ||
+ y.type === 'ArrowFunctionExpression';
+ if (w && x > 0 && y.body && y.body.type === 'BlockStatement')
+ for (var S = y.body.body, A = 0; A < S.length; A++) {
var U = S[A];
if (U.type !== 'ExpressionStatement') break;
if (U.directive === 'use server') {
s.push({
- funcStart: T.start,
- funcEnd: T.end,
+ funcStart: y.start,
+ funcEnd: y.end,
dStart: U.start,
dEnd: U.end,
- name: T.id ? T.id.name : 'action' + i,
- isDecl: T.type === 'FunctionDeclaration',
+ name: y.id ? y.id.name : 'action' + i,
+ isDecl: y.type === 'FunctionDeclaration',
}),
i++;
return;
@@ -31886,9 +31902,9 @@ Defaulting to 2020, but this will stop working in the future.`)),
if (!U.directive) break;
}
var M = w ? x + 1 : x;
- for (var c in T)
+ for (var c in y)
if (!(c === 'start' || c === 'end' || c === 'type')) {
- var R = T[c];
+ var R = y[c];
if (Array.isArray(R))
for (var W = 0; W < R.length; W++)
R[W] && typeof R[W].type == 'string' && r(R[W], M);
@@ -31897,19 +31913,19 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
}
if (
- (t.body.forEach(function (T) {
- r(T, 0);
+ (t.body.forEach(function (y) {
+ r(y, 0);
}),
s.length === 0)
)
return e;
- s.sort(function (T, x) {
- return x.funcStart - T.funcStart;
+ s.sort(function (y, x) {
+ return x.funcStart - y.funcStart;
});
- for (var a = e, u = 0; u < s.length; u++) {
+ for (var a = e, p = 0; p < s.length; p++) {
for (
- var d = s[u], y = d.dEnd, g = a.charAt(y);
- y < a.length &&
+ var d = s[p], k = d.dEnd, g = a.charAt(k);
+ k < a.length &&
(g === ' ' ||
g ===
`
@@ -31918,11 +31934,11 @@ Defaulting to 2020, but this will stop working in the future.`)),
g === ' ');
)
- y++, (g = a.charAt(y));
- a = a.slice(0, d.dStart) + a.slice(y);
- var L = y - d.dStart,
- p = d.funcEnd - L,
- h = a.slice(d.funcStart, p);
+ k++, (g = a.charAt(k));
+ a = a.slice(0, d.dStart) + a.slice(k);
+ var L = k - d.dStart,
+ u = d.funcEnd - L,
+ h = a.slice(d.funcStart, u);
d.isDecl
? (a =
a.slice(0, d.funcStart) +
@@ -31933,7 +31949,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
", '" +
d.name +
"');" +
- a.slice(p))
+ a.slice(u))
: (a =
a.slice(0, d.funcStart) +
'__rsa(' +
@@ -31941,7 +31957,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
", '" +
d.name +
"')" +
- a.slice(p));
+ a.slice(u));
}
return a;
}
@@ -31973,34 +31989,34 @@ Defaulting to 2020, but this will stop working in the future.`)),
jsxRuntime: 'automatic',
production: !0,
}).code;
- } catch (T) {
- i = h + ': ' + (T.message || String(T));
+ } catch (y) {
+ i = h + ': ' + (y.message || String(y));
}
}),
i)
)
return {type: 'error', error: i};
- function r(h, T) {
- if (t[T]) return T;
- if (T.startsWith('.')) {
- var x = zg(h, T);
+ function r(h, y) {
+ if (t[y]) return y;
+ if (y.startsWith('.')) {
+ var x = zg(h, y);
if (t[x] || s[x]) return x;
for (var w = ['.js', '.jsx', '.ts', '.tsx'], S = 0; S < w.length; S++) {
var A = x + w[S];
if (t[A] || s[A]) return A;
}
}
- return T;
+ return y;
}
var a = {},
- u = {};
+ p = {};
function d(h) {
if (t[h]) return t[h];
if (!s[h]) throw new Error('Module "' + h + '" not found');
if (a[h]) return a[h].exports;
- var T = Wg(e[h]);
- if (T === 'use client')
- return (t[h] = dr.createClientModuleProxy(h)), (u[h] = !0), t[h];
+ var y = Wg(e[h]);
+ if (y === 'use client')
+ return (t[h] = dr.createClientModuleProxy(h)), (p[h] = !0), t[h];
var x = {exports: {}};
a[h] = x;
var w = function (c) {
@@ -32010,7 +32026,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
},
S = s[h];
if (
- (T !== 'use server' && (S = Gg(S)),
+ (y !== 'use server' && (S = Gg(S)),
new Function('module', 'exports', 'require', 'React', '__rsa', S)(
x,
x.exports,
@@ -32021,7 +32037,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
),
(t[h] = x.exports),
- T === 'use server')
+ y === 'use server')
)
for (var A = Object.keys(x.exports), U = 0; U < A.length; U++) {
var M = A[U];
@@ -32029,22 +32045,22 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
return delete a[h], x.exports;
}
- var y = {exports: {}};
+ var k = {exports: {}};
Object.keys(s).forEach(function (h) {
d(h),
(h === '/src/App.js' || h === './App.js' || h === './src/App.js') &&
- (y.exports = t[h]);
+ (k.exports = t[h]);
}),
- (Os = {module: y.exports});
+ (Ds = {module: k.exports});
var g = {};
function L(h) {
if (!g[h]) {
g[h] = !0;
- var T = s[h];
- if (T)
+ var y = s[h];
+ if (y)
for (
var x = /require\(["']([^"']+)["']\)/g, w;
- (w = x.exec(T)) !== null;
+ (w = x.exec(y)) !== null;
) {
var S = w[1];
@@ -32062,20 +32078,20 @@ Defaulting to 2020, but this will stop working in the future.`)),
}
}
}
- Object.keys(u).forEach(function (h) {
+ Object.keys(p).forEach(function (h) {
L(h);
});
- var p = {};
+ var u = {};
return (
Object.keys(g).forEach(function (h) {
- p[h] = s[h];
+ u[h] = s[h];
}),
- {type: 'deployed', compiledClients: p, clientEntries: u}
+ {type: 'deployed', compiledClients: u, clientEntries: p}
);
}
function Yg() {
- if (!Os) throw new Error('No code deployed');
- var e = Os.module.default || Os.module,
+ if (!Ds) throw new Error('No code deployed');
+ var e = Ds.module.default || Ds.module,
t = Vo.createElement(e);
return dr.renderToReadableStream(t, kf(), {
onError: function (s) {
@@ -32084,7 +32100,7 @@ Defaulting to 2020, but this will stop working in the future.`)),
});
}
function Jg(e, t) {
- if (!Os) throw new Error('No code deployed');
+ if (!Ds) throw new Error('No code deployed');
var s = Nc[e];
if (!s) throw new Error('Action "' + e + '" not found');
var i = t;
@@ -32094,15 +32110,15 @@ Defaulting to 2020, but this will stop working in the future.`)),
i.append(t.__formData[r][0], t.__formData[r][1]);
}
return Promise.resolve(dr.decodeReply(i)).then(function (a) {
- var u = Promise.resolve(s.apply(null, a));
- return u.then(function () {
- var d = Os.module.default || Os.module;
+ var p = Promise.resolve(s.apply(null, a));
+ return p.then(function () {
+ var d = Ds.module.default || Ds.module;
return dr.renderToReadableStream(
- {root: Vo.createElement(d), returnValue: u},
+ {root: Vo.createElement(d), returnValue: p},
kf(),
{
- onError: function (y) {
- return console.error('[RSC Server Error]', y), msg;
+ onError: function (k) {
+ return console.error('[RSC Server Error]', k), msg;
},
}
);
diff --git a/src/components/MDX/Sandpack/templateRSC.ts b/src/components/MDX/Sandpack/templateRSC.ts
index efc4c940cfc..e8cd6d580ef 100644
--- a/src/components/MDX/Sandpack/templateRSC.ts
+++ b/src/components/MDX/Sandpack/templateRSC.ts
@@ -16,45 +16,71 @@ function hideFiles(files: SandpackFiles): SandpackFiles {
);
}
-// --- Load RSC infrastructure files as raw strings via raw-loader ---
-const RSC_SOURCE_FILES = {
- 'webpack-shim':
- require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/webpack-shim.js') as string,
- 'rsc-client':
- require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/rsc-client.js') as string,
- 'react-refresh-init':
- require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/__react_refresh_init__.js') as string,
- 'worker-bundle': `export default ${JSON.stringify(
- require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/worker-bundle.dist.js') as string
- )};`,
- 'rsdw-client':
- require('!raw-loader?esModule=false!../../../../node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js') as string,
-};
+const sourceNames = [
+ 'webpack-shim',
+ 'rsc-client',
+ 'react-refresh-init',
+ 'worker-bundle',
+ 'rsdw-client',
+ 'react-refresh-runtime',
+] as const;
-// Load react-refresh runtime and strip the process.env.NODE_ENV guard
-// so it works in Sandpack's bundler which may not replace process.env.
-const reactRefreshRaw =
- require('!raw-loader?esModule=false!../../../../node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js') as string;
+async function loadSource(name: typeof sourceNames[number]) {
+ const response = await fetch(`/sandpack-rsc/${name}.js`);
+ if (!response.ok) {
+ throw new Error(`Could not load the ${name} Sandpack runtime source.`);
+ }
+ return response.text();
+}
-// Wrap as a CJS module that Sandpack can require.
-// Strip the `if (process.env.NODE_ENV !== "production")` guard so the
-// runtime always executes inside the sandbox.
-const reactRefreshModule = reactRefreshRaw.replace(
- /if \(process\.env\.NODE_ENV !== "production"\) \{/,
- '{'
-);
+let templatePromise: Promise | null = null;
-// Entry point that bootstraps the RSC client pipeline.
-// __react_refresh_init__ must be imported BEFORE rsc-client so the
-// DevTools hook stub exists before React's renderer loads.
-const indexEntry = `
+export function loadTemplateRSC() {
+ templatePromise ??= Promise.all(sourceNames.map(loadSource)).then(
+ (values) => {
+ const sources = Object.fromEntries(
+ sourceNames.map((name, index) => [name, values[index]])
+ );
+ const reactRefreshModule = sources['react-refresh-runtime'].replace(
+ /if \(process\.env\.NODE_ENV !== "production"\) \{/,
+ '{'
+ );
+ return createTemplate({
+ webpackShim: sources['webpack-shim'],
+ rscClient: sources['rsc-client'],
+ reactRefreshInit: sources['react-refresh-init'],
+ workerBundle: sources['worker-bundle'],
+ rsdwClient: sources['rsdw-client'],
+ reactRefreshModule,
+ });
+ }
+ );
+ return templatePromise;
+}
+
+function createTemplate({
+ webpackShim,
+ rscClient,
+ reactRefreshInit,
+ workerBundle,
+ rsdwClient,
+ reactRefreshModule,
+}: {
+ webpackShim: string;
+ rscClient: string;
+ reactRefreshInit: string;
+ workerBundle: string;
+ rsdwClient: string;
+ reactRefreshModule: string;
+}): SandpackFiles {
+ const indexEntry = `
import './styles.css';
import './__react_refresh_init__';
import { initClient } from './rsc-client.js';
initClient();
`.trim();
-const indexHTML = `
+ const indexHTML = `
@@ -68,20 +94,16 @@ const indexHTML = `
`.trim();
-export const templateRSC: SandpackFiles = {
- ...hideFiles({
+ return hideFiles({
'/public/index.html': indexHTML,
'/src/index.js': indexEntry,
- '/src/__react_refresh_init__.js': RSC_SOURCE_FILES['react-refresh-init'],
- '/src/rsc-client.js': RSC_SOURCE_FILES['rsc-client'],
- '/src/rsc-server.js': RSC_SOURCE_FILES['worker-bundle'],
- '/src/__webpack_shim__.js': RSC_SOURCE_FILES['webpack-shim'],
- // RSDW client as a Sandpack local dependency (bypasses Babel bundler)
+ '/src/__react_refresh_init__.js': reactRefreshInit,
+ '/src/rsc-client.js': rscClient,
+ '/src/rsc-server.js': `export default ${JSON.stringify(workerBundle)};`,
+ '/src/__webpack_shim__.js': webpackShim,
'/node_modules/react-server-dom-webpack/package.json':
'{"name":"react-server-dom-webpack","main":"index.js"}',
- '/node_modules/react-server-dom-webpack/client.browser.js':
- RSC_SOURCE_FILES['rsdw-client'],
- // react-refresh runtime as a Sandpack local dependency
+ '/node_modules/react-server-dom-webpack/client.browser.js': rsdwClient,
'/node_modules/react-refresh/package.json':
'{"name":"react-refresh","main":"runtime.js"}',
'/node_modules/react-refresh/runtime.js': reactRefreshModule,
@@ -91,12 +113,12 @@ export const templateRSC: SandpackFiles = {
version: '0.0.0',
main: '/src/index.js',
dependencies: {
- react: '19.2.4',
- 'react-dom': '19.2.4',
+ react: '19.2.8',
+ 'react-dom': '19.2.8',
},
},
null,
2
),
- }),
-};
+ });
+}
diff --git a/src/components/MDX/TerminalBlock.tsx b/src/components/MDX/TerminalBlock.tsx
index 0fd0160d665..3ba2091583c 100644
--- a/src/components/MDX/TerminalBlock.tsx
+++ b/src/components/MDX/TerminalBlock.tsx
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
+'use client';
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
diff --git a/src/components/MDX/TocContext.tsx b/src/components/MDX/TocContext.tsx
index 80489536937..7fa0adccca5 100644
--- a/src/components/MDX/TocContext.tsx
+++ b/src/components/MDX/TocContext.tsx
@@ -9,7 +9,6 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/
-import {createContext} from 'react';
import type {ReactNode} from 'react';
export type TocItem = {
@@ -18,8 +17,3 @@ export type TocItem = {
depth: number;
};
export type Toc = Array;
-
-export const TocContext = createContext([]);
-
-// Lets badge components render compactly when inside the table of contents.
-export const IsInTocContext = createContext(false);
diff --git a/src/components/PageHeading.tsx b/src/components/PageHeading.tsx
index ba4b413a09b..5d63f283a78 100644
--- a/src/components/PageHeading.tsx
+++ b/src/components/PageHeading.tsx
@@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
+'use client';
+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
@@ -15,7 +17,7 @@ import {H1} from './MDX/Heading';
import type {RouteTag, RouteItem} from './Layout/getRouteMeta';
import * as React from 'react';
import {useState, useEffect} from 'react';
-import {useRouter} from 'next/router';
+import {usePathname} from 'next/navigation';
import {IconCanary} from './Icon/IconCanary';
import {IconExperimental} from './Icon/IconExperimental';
import {IconCopy} from './Icon/IconCopy';
@@ -32,7 +34,7 @@ interface PageHeadingProps {
}
function CopyAsMarkdownButton() {
- const {asPath} = useRouter();
+ const pathname = usePathname() || '/';
const [copied, setCopied] = useState(false);
useEffect(() => {
@@ -42,7 +44,7 @@ function CopyAsMarkdownButton() {
}, [copied]);
async function fetchPageBlob() {
- const cleanPath = asPath.split(/[?#]/)[0];
+ const cleanPath = pathname.split(/[?#]/)[0];
const res = await fetch(cleanPath + '.md');
if (!res.ok) throw new Error('Failed to fetch');
const text = await res.text();
diff --git a/src/components/Search.tsx b/src/components/Search.tsx
index 24b066d70f4..ed73f5c0fa0 100644
--- a/src/components/Search.tsx
+++ b/src/components/Search.tsx
@@ -9,9 +9,10 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/
-import Head from 'next/head';
+'use client';
+
import Link from 'next/link';
-import Router from 'next/router';
+import {useRouter} from 'next/navigation';
import {lazy, useEffect} from 'react';
import * as React from 'react';
import {createPortal} from 'react-dom';
@@ -118,14 +119,9 @@ export function Search({
},
}: SearchProps) {
useDocSearchKeyboardEvents({isOpen, onOpen, onClose});
+ const router = useRouter();
return (
<>
-
-
-
{isOpen &&
createPortal(
{
diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx
deleted file mode 100644
index 90604102023..00000000000
--- a/src/components/Seo.tsx
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * 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.
- */
-
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
-
-import * as React from 'react';
-import Head from 'next/head';
-import {withRouter, Router} from 'next/router';
-import {siteConfig} from '../siteConfig';
-import {finishedTranslations} from 'utils/finishedTranslations';
-
-export interface SeoProps {
- title: string;
- titleForTitleTag: undefined | string;
- description?: string;
- image?: string;
- // jsonld?: JsonLDType | Array;
- children?: React.ReactNode;
- isHomePage: boolean;
- searchOrder?: number;
-}
-
-// If you are a maintainer of a language fork,
-// deployedTranslations has been moved to src/utils/finishedTranslations.ts.
-
-function getDomain(languageCode: string): string {
- const subdomain = languageCode === 'en' ? '' : languageCode + '.';
- return subdomain + 'react.dev';
-}
-
-export const Seo = withRouter(
- ({
- title,
- titleForTitleTag,
- image = '/images/og-default.png',
- router,
- children,
- isHomePage,
- searchOrder,
- }: SeoProps & {router: Router}) => {
- const siteDomain = getDomain(siteConfig.languageCode);
- const canonicalUrl = `https://${siteDomain}${
- router.asPath.split(/[\?\#]/)[0]
- }`;
- // Allow setting a different title for Google results
- const pageTitle =
- (titleForTitleTag ?? title) + (isHomePage ? '' : ' – React');
- // Twitter's meta parser is not very good.
- const twitterTitle = pageTitle.replace(/[<>]/g, '');
- let description = isHomePage
- ? 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.'
- : 'The library for web and native user interfaces';
- return (
-
-
- {title != null && {pageTitle}}
- {isHomePage && (
- // Let Google figure out a good description for each page.
-
- )}
-
-
- {finishedTranslations.map((languageCode) => (
-
- ))}
-
-
-
- {title != null && (
-
- )}
- {description != null && (
-
- )}
-
-
-
-
- {title != null && (
-
- )}
- {description != null && (
-
- )}
-
-
- {searchOrder != null && (
-
- )}
-
-
-
-
-
-
-
-
-
- {children}
-
- );
- }
-);
diff --git a/src/hooks/usePendingRoute.ts b/src/hooks/usePendingRoute.ts
index 17d7525b4f8..6c2ab0197f4 100644
--- a/src/hooks/usePendingRoute.ts
+++ b/src/hooks/usePendingRoute.ts
@@ -9,40 +9,8 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/
-import {useRouter} from 'next/router';
-import {useState, useRef, useEffect} from 'react';
-
-const usePendingRoute = () => {
- const {events} = useRouter();
- const [pendingRoute, setPendingRoute] = useState(null);
- const currentRoute = useRef(null);
- useEffect(() => {
- let routeTransitionTimer: any = null;
-
- const handleRouteChangeStart = (url: string) => {
- clearTimeout(routeTransitionTimer);
- routeTransitionTimer = setTimeout(() => {
- if (currentRoute.current !== url) {
- currentRoute.current = url;
- setPendingRoute(url);
- }
- }, 100);
- };
- const handleRouteChangeComplete = () => {
- setPendingRoute(null);
- clearTimeout(routeTransitionTimer);
- };
- events.on('routeChangeStart', handleRouteChangeStart);
- events.on('routeChangeComplete', handleRouteChangeComplete);
-
- return () => {
- events.off('routeChangeStart', handleRouteChangeStart);
- events.off('routeChangeComplete', handleRouteChangeComplete);
- clearTimeout(routeTransitionTimer);
- };
- }, [events]);
-
- return pendingRoute;
-};
+// App Router has no equivalent of router.events. Pending-state highlighting is
+// dropped; still triggers transitions internally.
+const usePendingRoute = (): string | null => null;
export default usePendingRoute;
diff --git a/src/lib/buildPageMetadata.ts b/src/lib/buildPageMetadata.ts
new file mode 100644
index 00000000000..2b73178ade3
--- /dev/null
+++ b/src/lib/buildPageMetadata.ts
@@ -0,0 +1,106 @@
+/**
+ * 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.
+ */
+
+import type {Metadata} from 'next';
+import {siteConfig} from '../siteConfig';
+import {finishedTranslations} from 'utils/finishedTranslations';
+import {getRouteMeta, type RouteItem} from 'components/Layout/getRouteMeta';
+import type {PageData} from './readMarkdownPage';
+import type {PageSection} from 'components/Layout/Page';
+
+function getDomain(languageCode: string): string {
+ const subdomain = languageCode === 'en' ? '' : languageCode + '.';
+ return subdomain + 'react.dev';
+}
+
+export function buildPageMetadata({
+ data,
+ pathname,
+ section,
+ routeTree,
+}: {
+ data: PageData;
+ pathname: string;
+ section: PageSection;
+ /**
+ * Optional sidebar tree, used to compute the Algolia `algolia-search-order`
+ * meta tag for Learn/Blog pages. Omit for routes outside those sections.
+ */
+ routeTree?: RouteItem;
+}): Metadata {
+ const isHomePage = pathname === '/';
+ const isBlogIndex = section === 'blog' && pathname === '/blog';
+ const title = data.meta.title || '';
+ const titleForTitleTag = data.meta.titleForTitleTag;
+ const pageTitle =
+ (titleForTitleTag ?? title) + (isHomePage ? '' : ' – React');
+ const twitterTitle = pageTitle.replace(/[<>]/g, '');
+
+ const description = isHomePage
+ ? 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.'
+ : 'The library for web and native user interfaces';
+
+ const siteDomain = getDomain(siteConfig.languageCode);
+ const canonicalUrl = `https://${siteDomain}${pathname}`;
+ // OG images are generated per page at build time by
+ // scripts/generateOgImages.mjs. Pages without a generated card
+ // (home, errors) fall back to the static section image.
+ const ogImage =
+ isHomePage || !title || pathname.startsWith('/errors')
+ ? `https://${siteDomain}/images/og-${
+ section === 'unknown' ? 'default' : section
+ }.png`
+ : `https://${siteDomain}/images/og/${pathname
+ .slice(1)
+ .replace(/\//g, '-')}.png`;
+
+ const languages: Record = {
+ 'x-default': canonicalUrl.replace(siteDomain, getDomain('en')),
+ };
+ for (const code of finishedTranslations) {
+ languages[code] = canonicalUrl.replace(siteDomain, getDomain(code));
+ }
+
+ // Match the Pages Router behavior: emit `algolia-search-order` on Learn
+ // pages and Blog post pages (not the Blog index) so Algolia can preserve
+ // the docs sidebar ordering in search results.
+ const other: Record = {};
+ if (
+ routeTree &&
+ (section === 'learn' || (section === 'blog' && !isBlogIndex))
+ ) {
+ const {order} = getRouteMeta(pathname, routeTree);
+ if (order != null) {
+ other['algolia-search-order'] = String(order);
+ }
+ }
+
+ return {
+ title: pageTitle,
+ description: isHomePage ? description : undefined,
+ alternates: {
+ canonical: canonicalUrl,
+ languages,
+ },
+ openGraph: {
+ type: 'website',
+ url: canonicalUrl,
+ title: pageTitle,
+ description,
+ images: [{url: ogImage}],
+ },
+ twitter: {
+ card: 'summary_large_image',
+ site: '@reactjs',
+ creator: '@reactjs',
+ title: twitterTitle,
+ description,
+ images: [ogImage],
+ },
+ other: Object.keys(other).length > 0 ? other : undefined,
+ };
+}
diff --git a/src/lib/collectPaths.ts b/src/lib/collectPaths.ts
new file mode 100644
index 00000000000..ab1488526e7
--- /dev/null
+++ b/src/lib/collectPaths.ts
@@ -0,0 +1,102 @@
+/**
+ * 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.
+ */
+
+import 'server-only';
+import fs from 'fs';
+import path from 'path';
+import {promisify} from 'util';
+import {cacheLife} from 'next/cache';
+
+const readdir = promisify(fs.readdir);
+const stat = promisify(fs.stat);
+
+const ROOT = path.join(process.cwd(), 'src/content');
+const DEV_ONLY_PAGES = new Set(['learn/rsc-sandbox-test']);
+
+export function isContentPageAvailable(segments: string[]): boolean {
+ return (
+ process.env.NODE_ENV !== 'production' ||
+ !DEV_ONLY_PAGES.has(segments.join('/'))
+ );
+}
+
+async function getFiles(dir: string, base: string): Promise {
+ const subdirs = await readdir(dir);
+ const files = await Promise.all(
+ subdirs.map(async (subdir) => {
+ const res = path.resolve(dir, subdir);
+ return (await stat(res)).isDirectory()
+ ? getFiles(res, base)
+ : res.slice(base.length + 1);
+ })
+ );
+ return files.flat().filter((file) => file.endsWith('.md'));
+}
+
+function getSegments(file: string): string[] {
+ const segments = file.slice(0, -3).replace(/\\/g, '/').split('/');
+ if (segments[segments.length - 1] === 'index') {
+ segments.pop();
+ }
+ return segments;
+}
+
+/**
+ * Collect all content paths under a top-level section folder.
+ * Returns each path as an array of segments, *without* the section prefix.
+ *
+ * Example: for section="learn", returns [['state'], ['state', 'managing-state'], ...]
+ */
+export async function collectSectionPaths(
+ section: string
+): Promise {
+ 'use cache';
+ cacheLife('max');
+ const dir = path.join(ROOT, section);
+ if (!fs.existsSync(dir)) return [];
+ const files = await getFiles(dir, dir);
+ return files
+ .map((file) => getSegments(file))
+ .filter((segments) => isContentPageAvailable([section, ...segments]));
+}
+
+/**
+ * Collect every content path under `src/content` as segment arrays, with
+ * `index` collapsed the same way the `.md` route handler resolves them
+ * (e.g. `learn/index.md` -> ['learn'], served at `/learn.md`). Used to
+ * statically prerender the markdown route handler.
+ */
+export async function collectAllContentPaths(): Promise {
+ 'use cache';
+ cacheLife('max');
+ const files = await getFiles(ROOT, ROOT);
+ return (
+ files
+ .map((file) => getSegments(file))
+ // Drop the root `index.md` (-> []); `/index.md` isn't a served URL and an
+ // empty catch-all param can't be prerendered.
+ .filter((segments) => segments.length > 0)
+ .filter(isContentPageAvailable)
+ );
+}
+
+/**
+ * Collect a flat list of slugs (one segment) for a top-level section
+ * that only contains direct `.md` files (no subdirectories), e.g. `warnings/`.
+ */
+export async function collectFlatSectionSlugs(
+ section: string
+): Promise {
+ 'use cache';
+ cacheLife('max');
+ const dir = path.join(ROOT, section);
+ if (!fs.existsSync(dir)) return [];
+ const entries = await readdir(dir);
+ return entries
+ .filter((name) => name.endsWith('.md') && name !== 'index.md')
+ .map((name) => name.slice(0, -3));
+}
diff --git a/src/lib/loadErrorDecoderData.ts b/src/lib/loadErrorDecoderData.ts
new file mode 100644
index 00000000000..8b0cd25b057
--- /dev/null
+++ b/src/lib/loadErrorDecoderData.ts
@@ -0,0 +1,72 @@
+/**
+ * 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.
+ */
+
+import 'server-only';
+import fs from 'fs';
+import path from 'path';
+import {notFound} from 'next/navigation';
+import {cacheLife} from 'next/cache';
+import compileMDX from 'utils/compileMDX';
+import type {CompiledMDX} from 'utils/compileMDX';
+
+export interface ErrorDecoderData extends CompiledMDX {
+ errorCode: string | null;
+ errorMessage: string | null;
+}
+
+async function loadErrorCodes(): Promise> {
+ 'use cache';
+ cacheLife('max');
+ const res = await fetch(
+ 'https://raw.githubusercontent.com/facebook/react/main/scripts/error-codes/codes.json'
+ );
+ return (await res.json()) as Record;
+}
+
+/**
+ * Compile the error decoder MDX for a given code. Cached at this layer so the
+ * page render and `generateMetadata` share one compile. `notFound()` is kept
+ * in the caller because it can't be thrown from inside a `'use cache'` scope.
+ */
+async function compileErrorDecoderData(
+ code: string | null,
+ errorCodes: Record
+): Promise {
+ 'use cache';
+ cacheLife('max');
+ const rootDir = path.join(process.cwd(), 'src/content/errors');
+ const targetPath = code || 'index';
+ let mdx: string;
+ try {
+ mdx = fs.readFileSync(path.join(rootDir, targetPath + '.md'), 'utf8');
+ } catch {
+ mdx = fs.readFileSync(path.join(rootDir, 'generic.md'), 'utf8');
+ }
+
+ const compiled = await compileMDX(mdx);
+
+ return {
+ ...compiled,
+ errorCode: code,
+ errorMessage: code ? errorCodes[code] : null,
+ };
+}
+
+export async function loadErrorDecoderData(
+ code: string | null
+): Promise {
+ const errorCodes = await loadErrorCodes();
+ if (code && !errorCodes[code]) {
+ notFound();
+ }
+ return compileErrorDecoderData(code, errorCodes);
+}
+
+export async function listErrorCodes(): Promise {
+ const errorCodes = await loadErrorCodes();
+ return Object.keys(errorCodes);
+}
diff --git a/src/lib/readMarkdownPage.ts b/src/lib/readMarkdownPage.ts
new file mode 100644
index 00000000000..c77e0939ae8
--- /dev/null
+++ b/src/lib/readMarkdownPage.ts
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+import 'server-only';
+import fs from 'fs/promises';
+import path from 'path';
+import {cacheLife} from 'next/cache';
+import {isContentPageAvailable} from './collectPaths';
+import compileMDX from 'utils/compileMDX';
+import type {CompiledMDX} from 'utils/compileMDX';
+
+export type PageData = CompiledMDX;
+
+const ROOT = path.join(process.cwd(), 'src/content');
+
+/**
+ * Read and compile an MDX page from src/content. Resolves either
+ * `.md` or `/index.md`. Returns null when neither exists.
+ *
+ * Cached at this layer (keyed on `segments`) so the page render and its
+ * `generateMetadata` share one compile, and so callers don't each need
+ * their own `'use cache'`. Content only changes on deploy, so `'max'`.
+ *
+ * Returns null (rather than throwing) for a missing file: throwing inside a
+ * `'use cache'` scope surfaces as a render error instead of letting callers
+ * fall through to `notFound()`.
+ */
+export async function readMarkdownPage(
+ segments: string[]
+): Promise {
+ 'use cache';
+ cacheLife('max');
+ if (!isContentPageAvailable(segments)) return null;
+ const routePath = segments.join('/') || 'index';
+ let mdx: string | null = null;
+ for (const candidate of [
+ path.join(ROOT, routePath + '.md'),
+ path.join(ROOT, routePath, 'index.md'),
+ ]) {
+ try {
+ mdx = await fs.readFile(/* turbopackIgnore: true */ candidate, 'utf8');
+ break;
+ } catch {
+ // Try next candidate.
+ }
+ }
+ if (mdx == null) return null;
+ const compiled = await compileMDX(mdx);
+ if (routePath === 'index') {
+ compiled.toc = [];
+ }
+ if (routePath.endsWith('/translations')) {
+ compiled.languages = await (
+ await fetch(
+ 'https://raw.githubusercontent.com/reactjs/translations.react.dev/main/langs/langs.json'
+ )
+ ).json();
+ }
+ return compiled;
+}
diff --git a/src/pages/[[...markdownPath]].js b/src/pages/[[...markdownPath]].js
deleted file mode 100644
index 1c6f2c7ae3f..00000000000
--- a/src/pages/[[...markdownPath]].js
+++ /dev/null
@@ -1,195 +0,0 @@
-/**
- * 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.
- */
-
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
-
-import {Fragment, useMemo} from 'react';
-import {useRouter} from 'next/router';
-import {Page} from 'components/Layout/Page';
-import sidebarHome from '../sidebarHome.json';
-import sidebarLearn from '../sidebarLearn.json';
-import sidebarReference from '../sidebarReference.json';
-import sidebarCommunity from '../sidebarCommunity.json';
-import sidebarBlog from '../sidebarBlog.json';
-import {MDXComponents} from 'components/MDX/MDXComponents';
-import compileMDX from 'utils/compileMDX';
-import {generateRssFeed} from '../utils/rss';
-
-export default function Layout({content, toc, meta, languages}) {
- const parsedContent = useMemo(
- () => JSON.parse(content, reviveNodeOnClient),
- [content]
- );
- const parsedToc = useMemo(() => JSON.parse(toc, reviveNodeOnClient), [toc]);
- const section = useActiveSection();
- let routeTree;
- switch (section) {
- case 'home':
- case 'unknown':
- routeTree = sidebarHome;
- break;
- case 'learn':
- routeTree = sidebarLearn;
- break;
- case 'reference':
- routeTree = sidebarReference;
- break;
- case 'community':
- routeTree = sidebarCommunity;
- break;
- case 'blog':
- routeTree = sidebarBlog;
- break;
- }
- return (
-
- {parsedContent}
-
- );
-}
-
-function useActiveSection() {
- const {asPath} = useRouter();
- const cleanedPath = asPath.split(/[\?\#]/)[0];
- if (cleanedPath === '/') {
- return 'home';
- } else if (cleanedPath.startsWith('/reference')) {
- return 'reference';
- } else if (asPath.startsWith('/learn')) {
- return 'learn';
- } else if (asPath.startsWith('/community')) {
- return 'community';
- } else if (asPath.startsWith('/blog')) {
- return 'blog';
- } else {
- return 'unknown';
- }
-}
-
-// Deserialize a client React tree from JSON.
-function reviveNodeOnClient(parentPropertyName, val) {
- if (Array.isArray(val) && val[0] == '$r') {
- // Assume it's a React element.
- let Type = val[1];
- let key = val[2];
- if (key == null) {
- key = parentPropertyName; // Index within a parent.
- }
- let props = val[3];
- if (Type === 'wrapper') {
- Type = Fragment;
- props = {children: props.children};
- }
- if (Type in MDXComponents) {
- Type = MDXComponents[Type];
- }
- if (!Type) {
- console.error('Unknown type: ' + Type);
- Type = Fragment;
- }
- return ;
- } else {
- return val;
- }
-}
-
-// Put MDX output into JSON for client.
-export async function getStaticProps(context) {
- generateRssFeed();
- const fs = require('fs');
- const rootDir = process.cwd() + '/src/content/';
-
- // Read MDX from the file.
- let path = (context.params.markdownPath || []).join('/') || 'index';
- let mdx;
- try {
- mdx = fs.readFileSync(rootDir + path + '.md', 'utf8');
- } catch {
- mdx = fs.readFileSync(rootDir + path + '/index.md', 'utf8');
- }
-
- const {toc, content, meta, languages} = await compileMDX(mdx, path, {});
- return {
- props: {
- toc,
- content,
- meta,
- languages,
- },
- };
-}
-
-// Collect all MDX files for static generation.
-export async function getStaticPaths() {
- const {promisify} = require('util');
- const {resolve} = require('path');
- const fs = require('fs');
- const readdir = promisify(fs.readdir);
- const stat = promisify(fs.stat);
- const rootDir = process.cwd() + '/src/content';
-
- // Pages that should only be available in development.
- const devOnlyPages = new Set(['learn/rsc-sandbox-test']);
-
- // Find all MD files recursively.
- async function getFiles(dir) {
- const subdirs = await readdir(dir);
- const files = await Promise.all(
- subdirs.map(async (subdir) => {
- const res = resolve(dir, subdir);
- return (await stat(res)).isDirectory()
- ? getFiles(res)
- : res.slice(rootDir.length + 1);
- })
- );
- return (
- files
- .flat()
- // ignores `errors/*.md`, they will be handled by `pages/errors/[errorCode].tsx`
- .filter((file) => file.endsWith('.md') && !file.startsWith('errors/'))
- );
- }
-
- // 'foo/bar/baz.md' -> ['foo', 'bar', 'baz']
- // 'foo/bar/qux/index.md' -> ['foo', 'bar', 'qux']
- function getSegments(file) {
- let segments = file.slice(0, -3).replace(/\\/g, '/').split('/');
- if (segments[segments.length - 1] === 'index') {
- segments.pop();
- }
- return segments;
- }
-
- const files = await getFiles(rootDir);
-
- const paths = files
- .map((file) => ({
- params: {
- markdownPath: getSegments(file),
- // ^^^ CAREFUL HERE.
- // If you rename markdownPath, update patches/next-remote-watch.patch too.
- // Otherwise you'll break Fast Refresh for all MD files.
- },
- }))
- .filter((entry) => {
- if (process.env.NODE_ENV !== 'production') return true;
- const pagePath = entry.params.markdownPath.join('/');
- return !devOnlyPages.has(pagePath);
- });
-
- return {
- paths: paths,
- fallback: false,
- };
-}
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
deleted file mode 100644
index 80a0a0f8641..00000000000
--- a/src/pages/_app.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * 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.
- */
-
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
-
-import {useEffect} from 'react';
-import {AppProps} from 'next/app';
-import {useRouter} from 'next/router';
-
-import '@docsearch/css';
-import '../styles/algolia.css';
-import '../styles/index.css';
-import '../styles/sandpack.css';
-
-if (typeof window !== 'undefined') {
- const terminationEvent = 'onpagehide' in window ? 'pagehide' : 'unload';
- window.addEventListener(terminationEvent, function () {
- // @ts-ignore
- gtag('event', 'timing', {
- event_label: 'JS Dependencies',
- event: 'unload',
- });
- });
-}
-
-export default function MyApp({Component, pageProps}: AppProps) {
- const router = useRouter();
-
- useEffect(() => {
- // Taken from StackOverflow. Trying to detect both Safari desktop and mobile.
- const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
- if (isSafari) {
- // This is kind of a lie.
- // We still rely on the manual Next.js scrollRestoration logic.
- // However, we *also* don't want Safari grey screen during the back swipe gesture.
- // Seems like it doesn't hurt to enable auto restore *and* Next.js logic at the same time.
- history.scrollRestoration = 'auto';
- } else {
- // For other browsers, let Next.js set scrollRestoration to 'manual'.
- // It seems to work better for Chrome and Firefox which don't animate the back swipe.
- }
- }, []);
-
- useEffect(() => {
- const handleRouteChange = (url: string) => {
- const cleanedUrl = url.split(/[\?\#]/)[0];
- // @ts-ignore
- gtag('event', 'pageview', {
- event_label: cleanedUrl,
- });
- };
- router.events.on('routeChangeComplete', handleRouteChange);
- return () => {
- router.events.off('routeChangeComplete', handleRouteChange);
- };
- }, [router.events]);
-
- return ;
-}
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
deleted file mode 100644
index f0f47374ad3..00000000000
--- a/src/pages/_document.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-/**
- * 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.
- */
-
-/*
- * Copyright (c) Facebook, Inc. and its affiliates.
- */
-
-import {Html, Head, Main, NextScript} from 'next/document';
-import {siteConfig} from '../siteConfig';
-
-const MyDocument = () => {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-};
-
-export default MyDocument;
diff --git a/src/pages/api/md/[...path].ts b/src/pages/api/md/[...path].ts
deleted file mode 100644
index 5f80e4e88cd..00000000000
--- a/src/pages/api/md/[...path].ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * 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.
- */
-
-import type {NextApiRequest, NextApiResponse} from 'next';
-import fs from 'fs';
-import path from 'path';
-
-const FOOTER = `
----
-
-## Sitemap
-
-[Overview of all docs pages](/llms.txt)
-`;
-
-export default function handler(req: NextApiRequest, res: NextApiResponse) {
- const pathSegments = req.query.path;
- if (!pathSegments) {
- return res.status(404).send('Not found');
- }
-
- const filePath = Array.isArray(pathSegments)
- ? pathSegments.join('/')
- : pathSegments;
-
- // Block /index.md URLs - use /foo.md instead of /foo/index.md
- if (filePath.endsWith('/index') || filePath === 'index') {
- return res.status(404).send('Not found');
- }
-
- // Try exact path first, then with /index
- const candidates = [
- path.join(process.cwd(), 'src/content', filePath + '.md'),
- path.join(process.cwd(), 'src/content', filePath, 'index.md'),
- ];
-
- for (const fullPath of candidates) {
- try {
- const content = fs.readFileSync(fullPath, 'utf8');
- res.setHeader('Content-Type', 'text/plain; charset=utf-8');
- res.setHeader('Cache-Control', 'public, max-age=3600');
- return res.status(200).send(content + FOOTER);
- } catch {
- // Try next candidate
- }
- }
-
- res.status(404).send('Not found');
-}
diff --git a/src/pages/errors/[errorCode].tsx b/src/pages/errors/[errorCode].tsx
deleted file mode 100644
index 51a9952e7bc..00000000000
--- a/src/pages/errors/[errorCode].tsx
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * 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.
- */
-
-import {Fragment, useMemo} from 'react';
-import {Page} from 'components/Layout/Page';
-import {MDXComponents} from 'components/MDX/MDXComponents';
-import sidebarLearn from 'sidebarLearn.json';
-import type {RouteItem} from 'components/Layout/getRouteMeta';
-import {GetStaticPaths, GetStaticProps, InferGetStaticPropsType} from 'next';
-import {ErrorDecoderContext} from 'components/ErrorDecoderContext';
-import compileMDX from 'utils/compileMDX';
-
-interface ErrorDecoderProps {
- errorCode: string | null;
- errorMessage: string | null;
- content: string;
- toc: string;
- meta: any;
-}
-
-export default function ErrorDecoderPage({
- errorMessage,
- errorCode,
- content,
-}: InferGetStaticPropsType) {
- const parsedContent = useMemo(
- () => JSON.parse(content, reviveNodeOnClient),
- [content]
- );
-
- return (
-
-
-
{parsedContent}
- {/*
-
- We highly recommend using the development build locally when debugging
- your app since it tracks additional debug info and provides helpful
- warnings about potential problems in your apps, but if you encounter
- an exception while using the production build, this page will
- reassemble the original error message.
-